@jetshop/template-trend 6.2.3 → 6.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.linaria-cache/packages/template-trend/src/components/Auth/LogInPage.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/Address.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/CustomerType.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/LoginFields.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/SignUpPage.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/UI/Form.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Cart/CartButton.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Cart/CartFlyout.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/Cart/CartItem.linaria.css +8 -0
- package/.linaria-cache/packages/template-trend/src/components/Cart/FreeShipping.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/CategoryHeader.linaria.css +8 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/ActiveFilters.linaria.css +6 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Filter.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/FilterDrawer.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/FilterDropdownMenu.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/ActiveCarot.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/FilterButton.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/ListAccordion.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/shared/styles.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/RangeFilters.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/ProductCard.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/ProductGrid.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/ProductGridWindow.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/StandardCategoryPage.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/WindowedCategoryPage.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/ContentPage/ContentPage.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/ContentPage/SubPageNavigation.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/CookieConsent.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Forms/GlobalError.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Forms/Input.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/Forms/InputStatus.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/Forms/Success.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Container.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Content/index.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Footer/Footer.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Footer/SocialLinks.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/Categories/MobileCategories.linaria.css +6 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/CategoryMenu.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/CategoryMenuContainer.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/SubMenuSection.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/SubMenuWrapper.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/ChannelSelector/ChannelSelector.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/ChannelSelector/ChannelSelectorModal.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/ChannelSelector/Selector.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/Header.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/Logo.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/LogoSearchBar.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/MobileMenu.linaria.css +6 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/RecommendedChannel/ChannelBanner.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/RecommendedChannel/RecommendedChannelSelector.linaria.css +9 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/SearchBar.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/SearchButton.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/TopNav.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/MaxWidth.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Notifications.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/LoadingPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/CustomerNameHeader.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/DeleteAccount.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/MyPages.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/MyPagesSidebar.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/MyPagesStartPage.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/ListOrder.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderDetail/ListDetail.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderDetail/OrderTotals.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderDetail/ShippingPayment.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderListPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/ProfileDeliveryAddresses.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/ProfilePage.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/NavigationTree/NavTree.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Newsletter/NewsletterField.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/NotFoundPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Pagination/Pagination.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductList/AddToCart.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductList/Favourite.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductList/Favourites.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductList/Product.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/AddToCart/AddToCartForm.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/AddToCart/ProductToast.linaria.css +9 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/Campaigns.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ConfigurationSelector.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/Images/ImageContainer.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/PackageProduct/IncludedInPackages.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/PackageProduct/PackageProduct.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/PackageProduct/PackageProductItem.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/PriceHistory.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductInfo.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductInfoAccordion.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductPageLoadingState.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/RelatedProducts.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/NotifyWhenBack.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/StockOrb.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/StockStatusIndicator.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/WarehouseStock.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/VariantSelector.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/styledComponents.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/CategoryList.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchMeta.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchPage.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchResults.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchTerm.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/WindowedSearchResults.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/Row.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageCampaign.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageCategories.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageHTMLContent.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageHero.linaria.css +6 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageProductGrid.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/StartPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Store/Store.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreList.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreLocator.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreMap.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreMarker.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreSearch.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/UserLocation.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/Badge.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/Button.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/CloseButton.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/Headings.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/Spinner.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/fonts/loadFontCss.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/globalStyles.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Breadcrumbs/Breadcrumbs.linaria.css +2 -0
- package/.linaria-cache/packages/ui/Button/Button.linaria.css +2 -0
- package/.linaria-cache/packages/ui/Button/SecondaryButton.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Button/TrendButton.linaria.css +1 -0
- package/.linaria-cache/packages/ui/ChannelSelector/ChannelSelector.linaria.css +3 -0
- package/.linaria-cache/packages/ui/ChannelSelector/ChannelSelectorButtons.linaria.css +2 -0
- package/.linaria-cache/packages/ui/ChannelSelector/LargeSelector.linaria.css +1 -0
- package/.linaria-cache/packages/ui/ChannelSelector/MiniSelector.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Checkbox/Checkbox.linaria.css +4 -0
- package/.linaria-cache/packages/ui/Checkbox/CheckboxGroup.linaria.css +3 -0
- package/.linaria-cache/packages/ui/DropdownMenu/DropdownMenu.linaria.css +2 -0
- package/.linaria-cache/packages/ui/ErrorBoundary/Generic.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Gallery/Gallery.linaria.css +2 -0
- package/.linaria-cache/packages/ui/JetshopText.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Loading/LoadingBar.linaria.css +2 -0
- package/.linaria-cache/packages/ui/Modal/Drawer/Drawer.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Modal/ModalProvider.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Modal/ModalRoot.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Pagination/Pagination.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Pagination/usePagination.linaria.css +1 -0
- package/.linaria-cache/packages/ui/PreOrderDateSelector/PreOrderDateSelector.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Price/Price.linaria.css +4 -0
- package/.linaria-cache/packages/ui/ProductList/Badges.linaria.css +7 -0
- package/.linaria-cache/packages/ui/ProductSpecifications/ProductSpecifications.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Search/SearchField.linaria.css +5 -0
- package/.linaria-cache/packages/ui/Search/SearchPage/SearchMeta.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Select/Components.linaria.css +10 -0
- package/.linaria-cache/packages/ui/Theme/sanitizeCss.linaria.css +1 -0
- package/package.json +5 -5
- package/schema.graphql +5 -0
- package/dist/src/client.js +0 -6
- package/dist/src/client.js.map +0 -1
- package/dist/src/components/Auth/ForgotPassword.js +0 -30
- package/dist/src/components/Auth/ForgotPassword.js.map +0 -1
- package/dist/src/components/Auth/ForgotPassword.loadable.js +0 -7
- package/dist/src/components/Auth/ForgotPassword.loadable.js.map +0 -1
- package/dist/src/components/Auth/LogInPage.js +0 -69
- package/dist/src/components/Auth/LogInPage.js.map +0 -1
- package/dist/src/components/Auth/LogInPage.loadable.js +0 -7
- package/dist/src/components/Auth/LogInPage.loadable.js.map +0 -1
- package/dist/src/components/Auth/ResetPassword.js +0 -30
- package/dist/src/components/Auth/ResetPassword.js.map +0 -1
- package/dist/src/components/Auth/ResetPassword.loadable.js +0 -7
- package/dist/src/components/Auth/ResetPassword.loadable.js.map +0 -1
- package/dist/src/components/Auth/Signup/Address.js +0 -34
- package/dist/src/components/Auth/Signup/Address.js.map +0 -1
- package/dist/src/components/Auth/Signup/CustomerType.js +0 -30
- package/dist/src/components/Auth/Signup/CustomerType.js.map +0 -1
- package/dist/src/components/Auth/Signup/LoginFields.js +0 -31
- package/dist/src/components/Auth/Signup/LoginFields.js.map +0 -1
- package/dist/src/components/Auth/Signup/PID.js +0 -11
- package/dist/src/components/Auth/Signup/PID.js.map +0 -1
- package/dist/src/components/Auth/Signup/SSN.js +0 -29
- package/dist/src/components/Auth/Signup/SSN.js.map +0 -1
- package/dist/src/components/Auth/Signup/SignUpPage.js +0 -78
- package/dist/src/components/Auth/Signup/SignUpPage.js.map +0 -1
- package/dist/src/components/Auth/Signup/SignUpPage.loadable.js +0 -7
- package/dist/src/components/Auth/Signup/SignUpPage.loadable.js.map +0 -1
- package/dist/src/components/Auth/Signup/useSignupValidation.js +0 -29
- package/dist/src/components/Auth/Signup/useSignupValidation.js.map +0 -1
- package/dist/src/components/Auth/UI/Form.js +0 -33
- package/dist/src/components/Auth/UI/Form.js.map +0 -1
- package/dist/src/components/Cart/CartButton.js +0 -46
- package/dist/src/components/Cart/CartButton.js.map +0 -1
- package/dist/src/components/Cart/CartFlyout.js +0 -190
- package/dist/src/components/Cart/CartFlyout.js.map +0 -1
- package/dist/src/components/Cart/CartItem.js +0 -155
- package/dist/src/components/Cart/CartItem.js.map +0 -1
- package/dist/src/components/Cart/FreeShipping.js +0 -51
- package/dist/src/components/Cart/FreeShipping.js.map +0 -1
- package/dist/src/components/CategoryPage/CategoryHeader.js +0 -104
- package/dist/src/components/CategoryPage/CategoryHeader.js.map +0 -1
- package/dist/src/components/CategoryPage/CategoryHeaderLoadingState.js +0 -13
- package/dist/src/components/CategoryPage/CategoryHeaderLoadingState.js.map +0 -1
- package/dist/src/components/CategoryPage/CategoryPage.js +0 -26
- package/dist/src/components/CategoryPage/CategoryPage.js.map +0 -1
- package/dist/src/components/CategoryPage/CategoryPage.loadable.js +0 -7
- package/dist/src/components/CategoryPage/CategoryPage.loadable.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/ActiveFilters.js +0 -79
- package/dist/src/components/CategoryPage/Filters/ActiveFilters.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/BooleanFilters.js +0 -18
- package/dist/src/components/CategoryPage/Filters/BooleanFilters.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Filter.js +0 -97
- package/dist/src/components/CategoryPage/Filters/Filter.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/FilterDrawer.js +0 -91
- package/dist/src/components/CategoryPage/Filters/FilterDrawer.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/FilterDropdownMenu.js +0 -77
- package/dist/src/components/CategoryPage/Filters/FilterDropdownMenu.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/ListFilters.js +0 -38
- package/dist/src/components/CategoryPage/Filters/ListFilters.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Mobile/ActiveCarot.js +0 -15
- package/dist/src/components/CategoryPage/Filters/Mobile/ActiveCarot.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Mobile/FilterButton.js +0 -107
- package/dist/src/components/CategoryPage/Filters/Mobile/FilterButton.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Mobile/ListAccordion.js +0 -44
- package/dist/src/components/CategoryPage/Filters/Mobile/ListAccordion.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Mobile/RangeAccordion.js +0 -21
- package/dist/src/components/CategoryPage/Filters/Mobile/RangeAccordion.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Mobile/SortOrderAccordion.js +0 -30
- package/dist/src/components/CategoryPage/Filters/Mobile/SortOrderAccordion.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Mobile/shared/styles.js +0 -12
- package/dist/src/components/CategoryPage/Filters/Mobile/shared/styles.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/MultiListFilters.js +0 -37
- package/dist/src/components/CategoryPage/Filters/MultiListFilters.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/RangeFilters.js +0 -122
- package/dist/src/components/CategoryPage/Filters/RangeFilters.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/SortOrders.js +0 -29
- package/dist/src/components/CategoryPage/Filters/SortOrders.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/index.js +0 -2
- package/dist/src/components/CategoryPage/Filters/index.js.map +0 -1
- package/dist/src/components/CategoryPage/ProductCard.js +0 -98
- package/dist/src/components/CategoryPage/ProductCard.js.map +0 -1
- package/dist/src/components/CategoryPage/ProductGrid.js +0 -89
- package/dist/src/components/CategoryPage/ProductGrid.js.map +0 -1
- package/dist/src/components/CategoryPage/ProductGridWindow.js +0 -48
- package/dist/src/components/CategoryPage/ProductGridWindow.js.map +0 -1
- package/dist/src/components/CategoryPage/StandardCategoryPage.js +0 -51
- package/dist/src/components/CategoryPage/StandardCategoryPage.js.map +0 -1
- package/dist/src/components/CategoryPage/WindowedCategoryPage.js +0 -87
- package/dist/src/components/CategoryPage/WindowedCategoryPage.js.map +0 -1
- package/dist/src/components/CategoryPage/index.js +0 -2
- package/dist/src/components/CategoryPage/index.js.map +0 -1
- package/dist/src/components/ContentPage/ContentPage.js +0 -64
- package/dist/src/components/ContentPage/ContentPage.js.map +0 -1
- package/dist/src/components/ContentPage/ContentPage.loadable.js +0 -7
- package/dist/src/components/ContentPage/ContentPage.loadable.js.map +0 -1
- package/dist/src/components/ContentPage/SubPageNavigation.js +0 -164
- package/dist/src/components/ContentPage/SubPageNavigation.js.map +0 -1
- package/dist/src/components/ContentPage/index.js +0 -2
- package/dist/src/components/ContentPage/index.js.map +0 -1
- package/dist/src/components/CookieConsent.js +0 -84
- package/dist/src/components/CookieConsent.js.map +0 -1
- package/dist/src/components/Forms/GlobalError.js +0 -28
- package/dist/src/components/Forms/GlobalError.js.map +0 -1
- package/dist/src/components/Forms/Input.js +0 -79
- package/dist/src/components/Forms/Input.js.map +0 -1
- package/dist/src/components/Forms/InputStatus.js +0 -42
- package/dist/src/components/Forms/InputStatus.js.map +0 -1
- package/dist/src/components/Forms/Success.js +0 -25
- package/dist/src/components/Forms/Success.js.map +0 -1
- package/dist/src/components/Layout/Container.js +0 -19
- package/dist/src/components/Layout/Container.js.map +0 -1
- package/dist/src/components/Layout/Content/index.js +0 -7
- package/dist/src/components/Layout/Content/index.js.map +0 -1
- package/dist/src/components/Layout/Footer/Footer.js +0 -106
- package/dist/src/components/Layout/Footer/Footer.js.map +0 -1
- package/dist/src/components/Layout/Footer/FooterLinks.js +0 -24
- package/dist/src/components/Layout/Footer/FooterLinks.js.map +0 -1
- package/dist/src/components/Layout/Footer/SocialLinks.js +0 -62
- package/dist/src/components/Layout/Footer/SocialLinks.js.map +0 -1
- package/dist/src/components/Layout/Header/Categories/Categories.js +0 -10
- package/dist/src/components/Layout/Header/Categories/Categories.js.map +0 -1
- package/dist/src/components/Layout/Header/Categories/MobileCategories.js +0 -128
- package/dist/src/components/Layout/Header/Categories/MobileCategories.js.map +0 -1
- package/dist/src/components/Layout/Header/Categories/__util__/getCategoriesByLevel.js +0 -4
- package/dist/src/components/Layout/Header/Categories/__util__/getCategoriesByLevel.js.map +0 -1
- package/dist/src/components/Layout/Header/Categories/__util__/getCategoriesUnderParent.js +0 -4
- package/dist/src/components/Layout/Header/Categories/__util__/getCategoriesUnderParent.js.map +0 -1
- package/dist/src/components/Layout/Header/Categories/__util__/hasChildCategories.js +0 -4
- package/dist/src/components/Layout/Header/Categories/__util__/hasChildCategories.js.map +0 -1
- package/dist/src/components/Layout/Header/CategoryMenu/CategoryMenu.js +0 -21
- package/dist/src/components/Layout/Header/CategoryMenu/CategoryMenu.js.map +0 -1
- package/dist/src/components/Layout/Header/CategoryMenu/CategoryMenuContainer.js +0 -55
- package/dist/src/components/Layout/Header/CategoryMenu/CategoryMenuContainer.js.map +0 -1
- package/dist/src/components/Layout/Header/CategoryMenu/SubMenuSection.js +0 -60
- package/dist/src/components/Layout/Header/CategoryMenu/SubMenuSection.js.map +0 -1
- package/dist/src/components/Layout/Header/CategoryMenu/SubMenuWrapper.js +0 -78
- package/dist/src/components/Layout/Header/CategoryMenu/SubMenuWrapper.js.map +0 -1
- package/dist/src/components/Layout/Header/ChannelSelector/ChannelSelector.js +0 -26
- package/dist/src/components/Layout/Header/ChannelSelector/ChannelSelector.js.map +0 -1
- package/dist/src/components/Layout/Header/ChannelSelector/ChannelSelectorModal.js +0 -36
- package/dist/src/components/Layout/Header/ChannelSelector/ChannelSelectorModal.js.map +0 -1
- package/dist/src/components/Layout/Header/ChannelSelector/LanguageSelector.js +0 -12
- package/dist/src/components/Layout/Header/ChannelSelector/LanguageSelector.js.map +0 -1
- package/dist/src/components/Layout/Header/ChannelSelector/Selector.js +0 -120
- package/dist/src/components/Layout/Header/ChannelSelector/Selector.js.map +0 -1
- package/dist/src/components/Layout/Header/ChannelSelector/flattenCountries.js +0 -15
- package/dist/src/components/Layout/Header/ChannelSelector/flattenCountries.js.map +0 -1
- package/dist/src/components/Layout/Header/Header.js +0 -189
- package/dist/src/components/Layout/Header/Header.js.map +0 -1
- package/dist/src/components/Layout/Header/Logo.js +0 -40
- package/dist/src/components/Layout/Header/Logo.js.map +0 -1
- package/dist/src/components/Layout/Header/LogoSearchBar.js +0 -15
- package/dist/src/components/Layout/Header/LogoSearchBar.js.map +0 -1
- package/dist/src/components/Layout/Header/MobileMenu.js +0 -76
- package/dist/src/components/Layout/Header/MobileMenu.js.map +0 -1
- package/dist/src/components/Layout/Header/RecommendedChannel/ChannelBanner.js +0 -218
- package/dist/src/components/Layout/Header/RecommendedChannel/ChannelBanner.js.map +0 -1
- package/dist/src/components/Layout/Header/RecommendedChannel/RecommendedChannelSelector.js +0 -123
- package/dist/src/components/Layout/Header/RecommendedChannel/RecommendedChannelSelector.js.map +0 -1
- package/dist/src/components/Layout/Header/SearchBar.js +0 -79
- package/dist/src/components/Layout/Header/SearchBar.js.map +0 -1
- package/dist/src/components/Layout/Header/SearchButton.js +0 -50
- package/dist/src/components/Layout/Header/SearchButton.js.map +0 -1
- package/dist/src/components/Layout/Header/SubCategoryNav.js +0 -71
- package/dist/src/components/Layout/Header/SubCategoryNav.js.map +0 -1
- package/dist/src/components/Layout/Header/TopNav.js +0 -63
- package/dist/src/components/Layout/Header/TopNav.js.map +0 -1
- package/dist/src/components/Layout/MaxWidth.js +0 -19
- package/dist/src/components/Layout/MaxWidth.js.map +0 -1
- package/dist/src/components/Layout/Notifications.js +0 -70
- package/dist/src/components/Layout/Notifications.js.map +0 -1
- package/dist/src/components/LoadingPage.js +0 -19
- package/dist/src/components/LoadingPage.js.map +0 -1
- package/dist/src/components/LogOut.loadable.js +0 -7
- package/dist/src/components/LogOut.loadable.js.map +0 -1
- package/dist/src/components/MyPages/ChangePasswordPage.js +0 -26
- package/dist/src/components/MyPages/ChangePasswordPage.js.map +0 -1
- package/dist/src/components/MyPages/CustomerNameHeader.js +0 -28
- package/dist/src/components/MyPages/CustomerNameHeader.js.map +0 -1
- package/dist/src/components/MyPages/DeleteAccount.js +0 -47
- package/dist/src/components/MyPages/DeleteAccount.js.map +0 -1
- package/dist/src/components/MyPages/MyPages.js +0 -152
- package/dist/src/components/MyPages/MyPages.js.map +0 -1
- package/dist/src/components/MyPages/MyPages.loadable.js +0 -7
- package/dist/src/components/MyPages/MyPages.loadable.js.map +0 -1
- package/dist/src/components/MyPages/MyPagesBreadcrumbs.js +0 -18
- package/dist/src/components/MyPages/MyPagesBreadcrumbs.js.map +0 -1
- package/dist/src/components/MyPages/MyPagesSidebar.js +0 -81
- package/dist/src/components/MyPages/MyPagesSidebar.js.map +0 -1
- package/dist/src/components/MyPages/MyPagesStartPage.js +0 -99
- package/dist/src/components/MyPages/MyPagesStartPage.js.map +0 -1
- package/dist/src/components/MyPages/Newsletter.js +0 -33
- package/dist/src/components/MyPages/Newsletter.js.map +0 -1
- package/dist/src/components/MyPages/Orders/ListOrder.js +0 -159
- package/dist/src/components/MyPages/Orders/ListOrder.js.map +0 -1
- package/dist/src/components/MyPages/Orders/OrderDetail/Contact.js +0 -38
- package/dist/src/components/MyPages/Orders/OrderDetail/Contact.js.map +0 -1
- package/dist/src/components/MyPages/Orders/OrderDetail/ListDetail.js +0 -196
- package/dist/src/components/MyPages/Orders/OrderDetail/ListDetail.js.map +0 -1
- package/dist/src/components/MyPages/Orders/OrderDetail/OrderTotals.js +0 -81
- package/dist/src/components/MyPages/Orders/OrderDetail/OrderTotals.js.map +0 -1
- package/dist/src/components/MyPages/Orders/OrderDetail/ShippingPayment.js +0 -37
- package/dist/src/components/MyPages/Orders/OrderDetail/ShippingPayment.js.map +0 -1
- package/dist/src/components/MyPages/Orders/OrderListPage.js +0 -56
- package/dist/src/components/MyPages/Orders/OrderListPage.js.map +0 -1
- package/dist/src/components/MyPages/ProfileDeliveryAddresses.js +0 -93
- package/dist/src/components/MyPages/ProfileDeliveryAddresses.js.map +0 -1
- package/dist/src/components/MyPages/ProfilePage.js +0 -109
- package/dist/src/components/MyPages/ProfilePage.js.map +0 -1
- package/dist/src/components/MyPages/ProfileView.js +0 -42
- package/dist/src/components/MyPages/ProfileView.js.map +0 -1
- package/dist/src/components/NavigationTree/NavTree.js +0 -53
- package/dist/src/components/NavigationTree/NavTree.js.map +0 -1
- package/dist/src/components/NavigationTree/NavTreePage.js +0 -7
- package/dist/src/components/NavigationTree/NavTreePage.js.map +0 -1
- package/dist/src/components/NavigationTree/NavTreePage.loadable.js +0 -7
- package/dist/src/components/NavigationTree/NavTreePage.loadable.js.map +0 -1
- package/dist/src/components/Newsletter/NewsletterField.js +0 -93
- package/dist/src/components/Newsletter/NewsletterField.js.map +0 -1
- package/dist/src/components/NotFoundPage.js +0 -59
- package/dist/src/components/NotFoundPage.js.map +0 -1
- package/dist/src/components/NotFoundPage.loadable.js +0 -7
- package/dist/src/components/NotFoundPage.loadable.js.map +0 -1
- package/dist/src/components/Pages/About.js +0 -7
- package/dist/src/components/Pages/About.js.map +0 -1
- package/dist/src/components/Pagination/Pagination.js +0 -29
- package/dist/src/components/Pagination/Pagination.js.map +0 -1
- package/dist/src/components/Pagination/PaginationWrapper.js +0 -16
- package/dist/src/components/Pagination/PaginationWrapper.js.map +0 -1
- package/dist/src/components/PreviewRoute.loadable.js +0 -7
- package/dist/src/components/PreviewRoute.loadable.js.map +0 -1
- package/dist/src/components/ProductList/AddToCart.js +0 -46
- package/dist/src/components/ProductList/AddToCart.js.map +0 -1
- package/dist/src/components/ProductList/Favourite.js +0 -46
- package/dist/src/components/ProductList/Favourite.js.map +0 -1
- package/dist/src/components/ProductList/FavouriteCount.js +0 -15
- package/dist/src/components/ProductList/FavouriteCount.js.map +0 -1
- package/dist/src/components/ProductList/Favourites.js +0 -187
- package/dist/src/components/ProductList/Favourites.js.map +0 -1
- package/dist/src/components/ProductList/Lister.js +0 -22
- package/dist/src/components/ProductList/Lister.js.map +0 -1
- package/dist/src/components/ProductList/Product.js +0 -62
- package/dist/src/components/ProductList/Product.js.map +0 -1
- package/dist/src/components/ProductList/SelectVariant.js +0 -47
- package/dist/src/components/ProductList/SelectVariant.js.map +0 -1
- package/dist/src/components/ProductList/productListQueries.js +0 -15
- package/dist/src/components/ProductList/productListQueries.js.map +0 -1
- package/dist/src/components/ProductPage/AddToCart/AddToCartForm.js +0 -110
- package/dist/src/components/ProductPage/AddToCart/AddToCartForm.js.map +0 -1
- package/dist/src/components/ProductPage/AddToCart/ProductToast.js +0 -118
- package/dist/src/components/ProductPage/AddToCart/ProductToast.js.map +0 -1
- package/dist/src/components/ProductPage/AddToCart/useProductToast.js +0 -21
- package/dist/src/components/ProductPage/AddToCart/useProductToast.js.map +0 -1
- package/dist/src/components/ProductPage/Campaigns.js +0 -43
- package/dist/src/components/ProductPage/Campaigns.js.map +0 -1
- package/dist/src/components/ProductPage/ConfigurationSelector.js +0 -62
- package/dist/src/components/ProductPage/ConfigurationSelector.js.map +0 -1
- package/dist/src/components/ProductPage/Images/ImageContainer.js +0 -45
- package/dist/src/components/ProductPage/Images/ImageContainer.js.map +0 -1
- package/dist/src/components/ProductPage/Images/Thumbnails.js +0 -32
- package/dist/src/components/ProductPage/Images/Thumbnails.js.map +0 -1
- package/dist/src/components/ProductPage/PackageProduct/IncludedInPackages.js +0 -32
- package/dist/src/components/ProductPage/PackageProduct/IncludedInPackages.js.map +0 -1
- package/dist/src/components/ProductPage/PackageProduct/PackageProduct.js +0 -170
- package/dist/src/components/ProductPage/PackageProduct/PackageProduct.js.map +0 -1
- package/dist/src/components/ProductPage/PackageProduct/PackageProductItem.js +0 -92
- package/dist/src/components/ProductPage/PackageProduct/PackageProductItem.js.map +0 -1
- package/dist/src/components/ProductPage/PriceHistory.js +0 -99
- package/dist/src/components/ProductPage/PriceHistory.js.map +0 -1
- package/dist/src/components/ProductPage/ProductInfo.js +0 -55
- package/dist/src/components/ProductPage/ProductInfo.js.map +0 -1
- package/dist/src/components/ProductPage/ProductInfoAccordion.js +0 -46
- package/dist/src/components/ProductPage/ProductInfoAccordion.js.map +0 -1
- package/dist/src/components/ProductPage/ProductPage.js +0 -174
- package/dist/src/components/ProductPage/ProductPage.js.map +0 -1
- package/dist/src/components/ProductPage/ProductPage.loadable.js +0 -7
- package/dist/src/components/ProductPage/ProductPage.loadable.js.map +0 -1
- package/dist/src/components/ProductPage/ProductPageLoadingState.js +0 -55
- package/dist/src/components/ProductPage/ProductPageLoadingState.js.map +0 -1
- package/dist/src/components/ProductPage/QuantityContainer.js +0 -21
- package/dist/src/components/ProductPage/QuantityContainer.js.map +0 -1
- package/dist/src/components/ProductPage/RelatedProducts.js +0 -45
- package/dist/src/components/ProductPage/RelatedProducts.js.map +0 -1
- package/dist/src/components/ProductPage/SizePicker.js +0 -37
- package/dist/src/components/ProductPage/SizePicker.js.map +0 -1
- package/dist/src/components/ProductPage/StockStatus/NotifyWhenBack.js +0 -93
- package/dist/src/components/ProductPage/StockStatus/NotifyWhenBack.js.map +0 -1
- package/dist/src/components/ProductPage/StockStatus/StockOrb.js +0 -31
- package/dist/src/components/ProductPage/StockStatus/StockOrb.js.map +0 -1
- package/dist/src/components/ProductPage/StockStatus/StockStatusIndicator.js +0 -33
- package/dist/src/components/ProductPage/StockStatus/StockStatusIndicator.js.map +0 -1
- package/dist/src/components/ProductPage/StockStatus/WarehouseStock.js +0 -255
- package/dist/src/components/ProductPage/StockStatus/WarehouseStock.js.map +0 -1
- package/dist/src/components/ProductPage/VariantSelector.js +0 -138
- package/dist/src/components/ProductPage/VariantSelector.js.map +0 -1
- package/dist/src/components/ProductPage/styledComponents.js +0 -11
- package/dist/src/components/ProductPage/styledComponents.js.map +0 -1
- package/dist/src/components/ProductPage/useProductValidationMessage.js +0 -24
- package/dist/src/components/ProductPage/useProductValidationMessage.js.map +0 -1
- package/dist/src/components/SearchPage/CategoryList.js +0 -129
- package/dist/src/components/SearchPage/CategoryList.js.map +0 -1
- package/dist/src/components/SearchPage/EmptySearchResults.js +0 -23
- package/dist/src/components/SearchPage/EmptySearchResults.js.map +0 -1
- package/dist/src/components/SearchPage/SearchMeta.js +0 -27
- package/dist/src/components/SearchPage/SearchMeta.js.map +0 -1
- package/dist/src/components/SearchPage/SearchPage.js +0 -52
- package/dist/src/components/SearchPage/SearchPage.js.map +0 -1
- package/dist/src/components/SearchPage/SearchPage.loadable.js +0 -7
- package/dist/src/components/SearchPage/SearchPage.loadable.js.map +0 -1
- package/dist/src/components/SearchPage/SearchResults.js +0 -60
- package/dist/src/components/SearchPage/SearchResults.js.map +0 -1
- package/dist/src/components/SearchPage/SearchTerm.js +0 -11
- package/dist/src/components/SearchPage/SearchTerm.js.map +0 -1
- package/dist/src/components/SearchPage/WindowedSearchResults.js +0 -80
- package/dist/src/components/SearchPage/WindowedSearchResults.js.map +0 -1
- package/dist/src/components/SearchPage/index.js +0 -3
- package/dist/src/components/SearchPage/index.js.map +0 -1
- package/dist/src/components/Shop.js +0 -82
- package/dist/src/components/Shop.js.map +0 -1
- package/dist/src/components/StartPage/Content/Row.js +0 -40
- package/dist/src/components/StartPage/Content/Row.js.map +0 -1
- package/dist/src/components/StartPage/Content/StartPageCampaign.js +0 -112
- package/dist/src/components/StartPage/Content/StartPageCampaign.js.map +0 -1
- package/dist/src/components/StartPage/Content/StartPageCategories.js +0 -80
- package/dist/src/components/StartPage/Content/StartPageCategories.js.map +0 -1
- package/dist/src/components/StartPage/Content/StartPageHTMLContent.js +0 -74
- package/dist/src/components/StartPage/Content/StartPageHTMLContent.js.map +0 -1
- package/dist/src/components/StartPage/Content/StartPageHero.js +0 -73
- package/dist/src/components/StartPage/Content/StartPageHero.js.map +0 -1
- package/dist/src/components/StartPage/Content/StartPageProductGrid.js +0 -69
- package/dist/src/components/StartPage/Content/StartPageProductGrid.js.map +0 -1
- package/dist/src/components/StartPage/StartPage.js +0 -37
- package/dist/src/components/StartPage/StartPage.js.map +0 -1
- package/dist/src/components/StartPage/StartPage.loadable.js +0 -7
- package/dist/src/components/StartPage/StartPage.loadable.js.map +0 -1
- package/dist/src/components/StartPage/index.js +0 -3
- package/dist/src/components/StartPage/index.js.map +0 -1
- package/dist/src/components/Store/Store.js +0 -26
- package/dist/src/components/Store/Store.js.map +0 -1
- package/dist/src/components/Store/Store.loadable.js +0 -7
- package/dist/src/components/Store/Store.loadable.js.map +0 -1
- package/dist/src/components/Store/StoreDetail.js +0 -13
- package/dist/src/components/Store/StoreDetail.js.map +0 -1
- package/dist/src/components/StoreLocator/StoreList.js +0 -160
- package/dist/src/components/StoreLocator/StoreList.js.map +0 -1
- package/dist/src/components/StoreLocator/StoreLocator.js +0 -133
- package/dist/src/components/StoreLocator/StoreLocator.js.map +0 -1
- package/dist/src/components/StoreLocator/StoreLocator.loadable.js +0 -7
- package/dist/src/components/StoreLocator/StoreLocator.loadable.js.map +0 -1
- package/dist/src/components/StoreLocator/StoreMap.js +0 -116
- package/dist/src/components/StoreLocator/StoreMap.js.map +0 -1
- package/dist/src/components/StoreLocator/StoreMarker.js +0 -63
- package/dist/src/components/StoreLocator/StoreMarker.js.map +0 -1
- package/dist/src/components/StoreLocator/StoreSearch.js +0 -47
- package/dist/src/components/StoreLocator/StoreSearch.js.map +0 -1
- package/dist/src/components/StoreLocator/UserLocation.js +0 -76
- package/dist/src/components/StoreLocator/UserLocation.js.map +0 -1
- package/dist/src/components/StoreLocator/useLocationState.js +0 -14
- package/dist/src/components/StoreLocator/useLocationState.js.map +0 -1
- package/dist/src/components/StoreLocator/useMapState.js +0 -16
- package/dist/src/components/StoreLocator/useMapState.js.map +0 -1
- package/dist/src/components/Theme.js +0 -6
- package/dist/src/components/Theme.js.map +0 -1
- package/dist/src/components/ui/Badge.js +0 -33
- package/dist/src/components/ui/Badge.js.map +0 -1
- package/dist/src/components/ui/Button.js +0 -93
- package/dist/src/components/ui/Button.js.map +0 -1
- package/dist/src/components/ui/CloseButton.js +0 -18
- package/dist/src/components/ui/CloseButton.js.map +0 -1
- package/dist/src/components/ui/Divider.js +0 -11
- package/dist/src/components/ui/Divider.js.map +0 -1
- package/dist/src/components/ui/Headings.js +0 -19
- package/dist/src/components/ui/Headings.js.map +0 -1
- package/dist/src/components/ui/RadioGroupWithLabels.js +0 -16
- package/dist/src/components/ui/RadioGroupWithLabels.js.map +0 -1
- package/dist/src/components/ui/Spinner.js +0 -39
- package/dist/src/components/ui/Spinner.js.map +0 -1
- package/dist/src/fonts/loadFontCss.js +0 -51
- package/dist/src/fonts/loadFontCss.js.map +0 -1
- package/dist/src/globalStyles.js +0 -83
- package/dist/src/globalStyles.js.map +0 -1
- package/dist/src/server.js +0 -12
- package/dist/src/server.js.map +0 -1
- package/dist/src/shop.config.js +0 -68
- package/dist/src/shop.config.js.map +0 -1
- package/dist/src/theme-variables.js +0 -65
- package/dist/src/theme-variables.js.map +0 -1
- package/dist/translations/cs.json +0 -788
- package/dist/translations/da.json +0 -791
- package/dist/translations/de.json +0 -788
- package/dist/translations/en.json +0 -794
- package/dist/translations/es.json +0 -788
- package/dist/translations/et.json +0 -788
- package/dist/translations/fi.json +0 -794
- package/dist/translations/fr.json +0 -788
- package/dist/translations/index.js +0 -18
- package/dist/translations/index.js.map +0 -1
- package/dist/translations/it.json +0 -788
- package/dist/translations/lv.json +0 -788
- package/dist/translations/nb.json +0 -791
- package/dist/translations/nl.json +0 -788
- package/dist/translations/pl.json +0 -788
- package/dist/translations/ru.json +0 -788
- package/dist/translations/sk.json +0 -788
- package/dist/translations/sr.json +0 -464
- package/dist/translations/sv.json +0 -794
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { useQuery } from '@apollo/client';
|
|
2
|
-
import React, { Fragment } from 'react';
|
|
3
|
-
import { styled } from 'linaria/react';
|
|
4
|
-
import { ListOrder } from './Orders/ListOrder';
|
|
5
|
-
import CustomerOrders from './Orders/CustomerOrders.gql';
|
|
6
|
-
import useCustomerOrdersQuery from '@jetshop/core/hooks/useCustomerOrdersQuery';
|
|
7
|
-
import t from '@jetshop/intl';
|
|
8
|
-
import { Link } from 'react-router-dom';
|
|
9
|
-
import { StyledCarrot } from '@jetshop/ui/Select/Components';
|
|
10
|
-
import { useShopConfig } from '@jetshop/core/hooks/useShopConfig';
|
|
11
|
-
import Head from '@jetshop/core/components/Head';
|
|
12
|
-
import { Intl } from '@jetshop/intl';
|
|
13
|
-
import MyPagesContent from './MyPagesContent.gql';
|
|
14
|
-
import { theme } from '../Theme';
|
|
15
|
-
const MyPagesStartPageWrapper = styled('div') `
|
|
16
|
-
.list-order {
|
|
17
|
-
background-color: white;
|
|
18
|
-
}
|
|
19
|
-
${theme.below.sm} {
|
|
20
|
-
padding: 0px;
|
|
21
|
-
margin-top: 24px;
|
|
22
|
-
}
|
|
23
|
-
.section-wrapper {
|
|
24
|
-
width: 100%;
|
|
25
|
-
${theme.below.sm} {
|
|
26
|
-
padding-left: 12px;
|
|
27
|
-
padding-right: 12px;
|
|
28
|
-
margin-top: 24px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
.section-title {
|
|
32
|
-
font-weight: 600;
|
|
33
|
-
font-size: 16px;
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
height: 40px;
|
|
37
|
-
}
|
|
38
|
-
.list-order {
|
|
39
|
-
margin-bottom: 18px;
|
|
40
|
-
}
|
|
41
|
-
.show-all-orders {
|
|
42
|
-
color: ${theme.colors.blue};
|
|
43
|
-
font-size: 0.875em;
|
|
44
|
-
text-decoration: none;
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: flex-end;
|
|
48
|
-
margin-top: 2em;
|
|
49
|
-
:hover {
|
|
50
|
-
opacity: 0.8;
|
|
51
|
-
}
|
|
52
|
-
svg {
|
|
53
|
-
margin-left: 0.5em;
|
|
54
|
-
fill: currentColor;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
`;
|
|
58
|
-
const WelcomeWrapper = styled('div') `
|
|
59
|
-
margin-bottom: 38px;
|
|
60
|
-
`;
|
|
61
|
-
function StartPageOrders() {
|
|
62
|
-
const { routes } = useShopConfig();
|
|
63
|
-
const { orders, loading } = useCustomerOrdersQuery({
|
|
64
|
-
query: CustomerOrders,
|
|
65
|
-
variables: {
|
|
66
|
-
first: 2
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
if (loading) {
|
|
70
|
-
return React.createElement(ListOrder, { placeholder: true });
|
|
71
|
-
}
|
|
72
|
-
if (!loading && orders.length === 0) {
|
|
73
|
-
return (React.createElement(Fragment, null,
|
|
74
|
-
React.createElement("p", { style: { marginBottom: '.5em' } }, t('No orders found')),
|
|
75
|
-
React.createElement(ListOrder, { placeholder: true, className: "empty" })));
|
|
76
|
-
}
|
|
77
|
-
return (React.createElement(React.Fragment, null,
|
|
78
|
-
orders.map(order => (React.createElement(ListOrder, { order: order, key: order.id }))),
|
|
79
|
-
React.createElement(Link, { to: `${routes.myPages.path}/orders`, className: "show-all-orders" },
|
|
80
|
-
React.createElement("span", null, t('Show All Orders')),
|
|
81
|
-
React.createElement(StyledCarrot, null))));
|
|
82
|
-
}
|
|
83
|
-
function Welcome() {
|
|
84
|
-
const { data } = useQuery(MyPagesContent);
|
|
85
|
-
return (React.createElement(WelcomeWrapper, null, data && (React.createElement("div", { dangerouslySetInnerHTML: {
|
|
86
|
-
__html: data.myPagesContent.welcomeText
|
|
87
|
-
} }))));
|
|
88
|
-
}
|
|
89
|
-
function MyPagesStartPage() {
|
|
90
|
-
return (React.createElement(React.Fragment, null,
|
|
91
|
-
React.createElement(Intl, null, t => React.createElement(Head, { data: { title: t('My Pages') } })),
|
|
92
|
-
React.createElement(MyPagesStartPageWrapper, { className: "main-wrapper" },
|
|
93
|
-
React.createElement(Welcome, null),
|
|
94
|
-
React.createElement("div", { className: "section-wrapper" },
|
|
95
|
-
React.createElement("h2", { className: "section-title" }, t('Recent Orders')),
|
|
96
|
-
React.createElement(StartPageOrders, null)))));
|
|
97
|
-
}
|
|
98
|
-
export default MyPagesStartPage;
|
|
99
|
-
//# sourceMappingURL=MyPagesStartPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MyPagesStartPage.js","sourceRoot":"","sources":["../../../../src/components/MyPages/MyPagesStart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AS,EAAC,iBAAiB;gBAC9B,4BAAI,SAAS,EAAC,eAAe,IAAE,CAAC,CAAC,eAAe,CAAC,CAAM;gBACvD,oBAAC,eAAe,OAAG,CACf,CACkB,CACzB,CACJ,CAAC;AACJ,CAAC;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { CustomerUpdateFormProvider } from '@jetshop/core/components/Auth/CustomerUpdateForm';
|
|
2
|
-
import t from '@jetshop/intl';
|
|
3
|
-
import React, { useState } from 'react';
|
|
4
|
-
import { GlobalError } from '../Forms/GlobalError';
|
|
5
|
-
import { RadioGroupWithLabels } from '../ui/RadioGroupWithLabels';
|
|
6
|
-
import customerProfileQuery from './customerProfileQuery.gql';
|
|
7
|
-
import { BlockTitle, ButtonContainer, PrimaryButton } from './ProfilePage';
|
|
8
|
-
import { Success } from '../Forms/Success';
|
|
9
|
-
export function Newsletter() {
|
|
10
|
-
const [success, setSuccess] = useState(false);
|
|
11
|
-
return (React.createElement("div", { className: "block", id: "newsletter" },
|
|
12
|
-
React.createElement(BlockTitle, null, t('Newsletters')),
|
|
13
|
-
React.createElement(CustomerUpdateFormProvider, { customerProfileQuery: customerProfileQuery, onSubmit: () => {
|
|
14
|
-
setSuccess(false);
|
|
15
|
-
}, onSubmitSuccess: () => {
|
|
16
|
-
setSuccess(true);
|
|
17
|
-
}, render: ({ isSubmitting, isValid, values, status }) => (React.createElement(React.Fragment, null,
|
|
18
|
-
React.createElement(RadioGroupWithLabels, { name: "preferences.type.acceptsEmail", items: [
|
|
19
|
-
{
|
|
20
|
-
label: t('I want newsletters'),
|
|
21
|
-
value: true
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
label: t("I don't want newsletters"),
|
|
25
|
-
value: false
|
|
26
|
-
}
|
|
27
|
-
] }),
|
|
28
|
-
status && status.globalError && (React.createElement(GlobalError, { style: { marginBottom: '2em' } }, status.globalError)),
|
|
29
|
-
success && (React.createElement(Success, { style: { marginBottom: '2em' } }, t('Your preferences have been updated.'))),
|
|
30
|
-
React.createElement(ButtonContainer, null,
|
|
31
|
-
React.createElement(PrimaryButton, { type: "submit", disabled: isSubmitting || !isValid }, t(isSubmitting ? 'Hold on a moment…' : 'Save'))))) })));
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=Newsletter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Newsletter.js","sourceRoot":"","sources":["../../../../src/components/MyPages/Newsletter.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAC9F,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,oBAAoB,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,UAAU,UAAU;IACxB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO,CACL,6BAAK,SAAS,EAAC,OAAO,EAAC,EAAE,EAAC,YAAY;QACpC,oBAAC,UAAU,QAAE,CAAC,CAAC,aAAa,CAAC,CAAc;QAC3C,oBAAC,0BAA0B,IACzB,oBAAoB,EAAE,oBAAoB,EAC1C,QAAQ,EAAE,GAAG,EAAE;gBACb,UAAU,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC,EACD,eAAe,EAAE,GAAG,EAAE;gBACpB,UAAU,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC,EACD,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CACrD;gBACE,oBAAC,oBAAoB,IACnB,IAAI,EAAC,+BAA+B,EACpC,KAAK,EAAE;wBACL;4BACE,KAAK,EAAE,CAAC,CAAC,oBAAoB,CAAC;4BAC9B,KAAK,EAAE,IAAI;yBACZ;wBACD;4BACE,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;4BACpC,KAAK,EAAE,KAAK;yBACb;qBACF,GACD;gBAED,MAAM,IAAI,MAAM,CAAC,WAAW,IAAI,CAC/B,oBAAC,WAAW,IAAC,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,IACxC,MAAM,CAAC,WAAW,CACP,CACf;gBAEA,OAAO,IAAI,CACV,oBAAC,OAAO,IAAC,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,IACpC,CAAC,CAAC,qCAAqC,CAAC,CACjC,CACX;gBAED,oBAAC,eAAe;oBACd,oBAAC,aAAa,IAAC,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,YAAY,IAAI,CAAC,OAAO,IAC5D,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CACjC,CACA,CACjB,CACJ,GACD,CACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import t from '@jetshop/intl';
|
|
2
|
-
import { LoadingLine } from '@jetshop/ui/Loading/LoadingLine';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { styled } from 'linaria/react';
|
|
5
|
-
import { cx } from 'linaria';
|
|
6
|
-
import { Price } from '@jetshop/ui/Price';
|
|
7
|
-
import { ListDetail } from './OrderDetail/ListDetail';
|
|
8
|
-
import { ReactComponent as Box } from '../../../svg/Box.svg';
|
|
9
|
-
import { theme } from '../../Theme';
|
|
10
|
-
const StyledListOrder = styled('section') `
|
|
11
|
-
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
|
|
12
|
-
background: white;
|
|
13
|
-
border-radius: 3px;
|
|
14
|
-
display: grid;
|
|
15
|
-
grid-template-columns: 6rem 1fr;
|
|
16
|
-
grid-template-rows: 1fr;
|
|
17
|
-
grid-template-areas:
|
|
18
|
-
'image details'
|
|
19
|
-
'image actions'
|
|
20
|
-
'full full';
|
|
21
|
-
|
|
22
|
-
${theme.below.md} {
|
|
23
|
-
grid-template-areas:
|
|
24
|
-
'image details'
|
|
25
|
-
'actions actions'
|
|
26
|
-
'full full';
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&.empty {
|
|
30
|
-
opacity: 0.4;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.order-image {
|
|
34
|
-
grid-area: image;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
align-items: center;
|
|
37
|
-
display: flex;
|
|
38
|
-
|
|
39
|
-
svg {
|
|
40
|
-
width: 2em;
|
|
41
|
-
height: 2em;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.order-details {
|
|
46
|
-
grid-area: details;
|
|
47
|
-
padding: 1em;
|
|
48
|
-
display: flex;
|
|
49
|
-
section {
|
|
50
|
-
margin-right: 10%;
|
|
51
|
-
flex: 1 1 33%;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
${theme.below.md} {
|
|
55
|
-
margin: 0;
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
section + section {
|
|
58
|
-
margin-top: 1em;
|
|
59
|
-
margin-right: 0;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.order-actions {
|
|
65
|
-
grid-area: actions;
|
|
66
|
-
display: flex;
|
|
67
|
-
border-top: 1px solid #f0f0f0;
|
|
68
|
-
|
|
69
|
-
${theme.below.sm} {
|
|
70
|
-
flex-direction: column;
|
|
71
|
-
border-top: 0;
|
|
72
|
-
section,
|
|
73
|
-
a {
|
|
74
|
-
display: block;
|
|
75
|
-
border-left: 0;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
section,
|
|
80
|
-
button {
|
|
81
|
-
padding: 0 1rem;
|
|
82
|
-
height: 3rem;
|
|
83
|
-
display: inline-flex;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
align-items: center;
|
|
86
|
-
}
|
|
87
|
-
.actions {
|
|
88
|
-
margin-left: auto;
|
|
89
|
-
${theme.below.sm} {
|
|
90
|
-
margin-left: 0;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
button {
|
|
95
|
-
text-decoration: none;
|
|
96
|
-
border-left: 1px solid #f0f0f0;
|
|
97
|
-
text-transform: uppercase;
|
|
98
|
-
font-size: 0.75em;
|
|
99
|
-
color: ${theme.colors.darkgrey};
|
|
100
|
-
cursor: pointer;
|
|
101
|
-
background: transparent;
|
|
102
|
-
|
|
103
|
-
${theme.below.sm} {
|
|
104
|
-
text-align: center;
|
|
105
|
-
display: flex;
|
|
106
|
-
border-top: 1px solid #f0f0f0;
|
|
107
|
-
text-transform: none;
|
|
108
|
-
font-size: 0.875em;
|
|
109
|
-
width: 100%;
|
|
110
|
-
border-left: 0;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.order-status {
|
|
116
|
-
color: ${theme.colors.blue};
|
|
117
|
-
font-weight: 600;
|
|
118
|
-
|
|
119
|
-
${theme.below.sm} {
|
|
120
|
-
background: #f8f8f8;
|
|
121
|
-
margin: 1em;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
h3 {
|
|
126
|
-
font-size: 0.75em;
|
|
127
|
-
text-transform: uppercase;
|
|
128
|
-
color: #777777;
|
|
129
|
-
margin-bottom: 0.5em;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.full-detail {
|
|
133
|
-
grid-area: full;
|
|
134
|
-
border-top: 1px solid ${theme.colors.tablegrey};
|
|
135
|
-
padding-top: 1em;
|
|
136
|
-
}
|
|
137
|
-
`;
|
|
138
|
-
export function ListOrder({ order, index, placeholder = false, showFullDetail = false, className }) {
|
|
139
|
-
const [expanded, setExpanded] = React.useState(showFullDetail);
|
|
140
|
-
const toggle = () => setExpanded(state => !state);
|
|
141
|
-
return (React.createElement(StyledListOrder, { className: cx('list-order', className) },
|
|
142
|
-
React.createElement("div", { className: "order-image" },
|
|
143
|
-
React.createElement(Box, null)),
|
|
144
|
-
React.createElement("div", { className: "order-details" },
|
|
145
|
-
React.createElement("section", null,
|
|
146
|
-
React.createElement("h3", null, t('Order Number')),
|
|
147
|
-
placeholder ? React.createElement(LoadingLine, null) : order.orderNumber),
|
|
148
|
-
React.createElement("section", null,
|
|
149
|
-
React.createElement("h3", null, t('Order Date')),
|
|
150
|
-
placeholder ? React.createElement(LoadingLine, null) : order.orderDate),
|
|
151
|
-
React.createElement("section", null,
|
|
152
|
-
React.createElement("h3", null, t('Total Price')),
|
|
153
|
-
placeholder ? (React.createElement(LoadingLine, null)) : (React.createElement(Price, { price: order.total, currency: order.currency.format })))),
|
|
154
|
-
React.createElement("div", { className: "order-actions" },
|
|
155
|
-
React.createElement("section", { className: "order-status" }, placeholder ? React.createElement(LoadingLine, null) : order.status.description),
|
|
156
|
-
!placeholder && order.hasOrderDetails && (React.createElement("div", { className: "actions" }, expanded ? (React.createElement("button", { onClick: toggle }, t('Show less'))) : (React.createElement("button", { onClick: toggle }, t('Show details')))))),
|
|
157
|
-
expanded && order && (React.createElement(ListDetail, { id: order.id, className: "full-detail" }))));
|
|
158
|
-
}
|
|
159
|
-
//# sourceMappingURL=ListOrder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListOrder.js","sourceRoot":"","sources":["../../../../../src/components/MyPages/Orders/ListOrder.js"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAA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S,EAAC,aAAa,GAAG,CACrD,CACe,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { cx } from 'linaria';
|
|
14
|
-
import t from '@jetshop/intl';
|
|
15
|
-
export function Contact(_a) {
|
|
16
|
-
var { contactInfo, title, className } = _a, rest = __rest(_a, ["contactInfo", "title", "className"]);
|
|
17
|
-
if (!contactInfo)
|
|
18
|
-
return null;
|
|
19
|
-
const { address } = contactInfo;
|
|
20
|
-
return (React.createElement("section", Object.assign({ style: { padding: '1em', lineHeight: 1.5 }, className: cx(className) }, rest),
|
|
21
|
-
React.createElement("h2", null, title),
|
|
22
|
-
React.createElement("div", null,
|
|
23
|
-
contactInfo.firstName,
|
|
24
|
-
" ",
|
|
25
|
-
contactInfo.lastName),
|
|
26
|
-
address && (React.createElement(React.Fragment, null,
|
|
27
|
-
React.createElement("div", null, address.street),
|
|
28
|
-
React.createElement("div", null,
|
|
29
|
-
address.postcode,
|
|
30
|
-
" ",
|
|
31
|
-
address.city),
|
|
32
|
-
address.country && React.createElement("div", null, address.country.name))),
|
|
33
|
-
contactInfo.phone && (React.createElement(React.Fragment, null,
|
|
34
|
-
React.createElement("strong", null, t('Phone:')),
|
|
35
|
-
" ",
|
|
36
|
-
contactInfo.phone))));
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=Contact.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Contact.js","sourceRoot":"","sources":["../../../../../../src/components/MyPages/Orders/OrderDetail/Contact.js"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,CAAC,MAAM,eAAe,CAAC;AAE9B,MAAM,UAAU,OAAO,CAAC,EAA0C;QAA1C,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,OAAW,EAAN,IAAI,cAAxC,qCAA0C,CAAF;IAC9D,IAAI,CAAC,WAAW;QAAE,OAAO,IAAI,CAAC;IAE9B,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC;IAEhC,OAAO,CACL,+CACE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,EAC1C,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IACpB,IAAI;QAER,gCAAK,KAAK,CAAM;QAChB;YACG,WAAW,CAAC,SAAS;;YAAG,WAAW,CAAC,QAAQ,CACzC;QAEL,OAAO,IAAI,CACV;YACE,iCAAM,OAAO,CAAC,MAAM,CAAO;YAC3B;gBACG,OAAO,CAAC,QAAQ;;gBAAG,OAAO,CAAC,IAAI,CAC5B;YACL,OAAO,CAAC,OAAO,IAAI,iCAAM,OAAO,CAAC,OAAO,CAAC,IAAI,CAAO,CACpD,CACJ;QAEA,WAAW,CAAC,KAAK,IAAI,CACpB;YACE,oCAAS,CAAC,CAAC,QAAQ,CAAC,CAAU;;YAAE,WAAW,CAAC,KAAK,CAChD,CACJ,CACO,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import useOrderDetailQuery from '@jetshop/core/hooks/useOrderDetailQuery';
|
|
2
|
-
import Image from '@jetshop/ui/Image';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { css, cx } from 'linaria';
|
|
5
|
-
import { Price } from '@jetshop/ui/Price';
|
|
6
|
-
import { theme } from '../../../Theme';
|
|
7
|
-
import OrderDetail from './OrderDetail.gql';
|
|
8
|
-
import { OrderTotals } from './OrderTotals';
|
|
9
|
-
import { ShippingPayment } from './ShippingPayment';
|
|
10
|
-
import t from '@jetshop/intl';
|
|
11
|
-
import ProductLink from '@jetshop/ui/ProductLink';
|
|
12
|
-
const fullDetail = css `
|
|
13
|
-
font-size: 0.875rem;
|
|
14
|
-
line-height: 1.25;
|
|
15
|
-
h2 {
|
|
16
|
-
font-weight: bold;
|
|
17
|
-
}
|
|
18
|
-
&.loading {
|
|
19
|
-
opacity: 0.5;
|
|
20
|
-
}
|
|
21
|
-
&.error,
|
|
22
|
-
&.loading {
|
|
23
|
-
padding: 1em;
|
|
24
|
-
text-align: center;
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
27
|
-
const listDetailHeader = css `
|
|
28
|
-
display: grid;
|
|
29
|
-
display: -ms-grid;
|
|
30
|
-
grid-template-areas: 'left left center right';
|
|
31
|
-
grid-template-columns: 4rem 2fr 0.65fr 1fr;
|
|
32
|
-
-ms-grid-columns: 4rem 2fr 0.65fr 1fr;
|
|
33
|
-
padding: 0 1em;
|
|
34
|
-
border-bottom: 1px solid ${theme.colors.tablegrey};
|
|
35
|
-
h3 {
|
|
36
|
-
text-transform: uppercase;
|
|
37
|
-
padding-bottom: 0.5em;
|
|
38
|
-
font-size: 1em;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.prod {
|
|
42
|
-
grid-area: left;
|
|
43
|
-
-ms-grid-row: 1;
|
|
44
|
-
-ms-grid-column: 1;
|
|
45
|
-
-ms-grid-column-span: 2;
|
|
46
|
-
}
|
|
47
|
-
.qty {
|
|
48
|
-
grid-area: center;
|
|
49
|
-
-ms-grid-row: 1;
|
|
50
|
-
-ms-grid-column: 3;
|
|
51
|
-
}
|
|
52
|
-
.price {
|
|
53
|
-
-ms-grid-row: 1;
|
|
54
|
-
-ms-grid-column: 4;
|
|
55
|
-
grid-area: right;
|
|
56
|
-
text-align: right;
|
|
57
|
-
}
|
|
58
|
-
`;
|
|
59
|
-
const variantValue = css `
|
|
60
|
-
display: block;
|
|
61
|
-
`;
|
|
62
|
-
function ListDetailHeader() {
|
|
63
|
-
return (React.createElement("header", { className: listDetailHeader },
|
|
64
|
-
React.createElement("h3", { className: "prod" }, t('Product')),
|
|
65
|
-
React.createElement("h3", { className: "qty" }, t('Quantity')),
|
|
66
|
-
React.createElement("h3", { className: "price" }, t('Price'))));
|
|
67
|
-
}
|
|
68
|
-
function OrderItem({ item, currency }) {
|
|
69
|
-
const { product } = item;
|
|
70
|
-
const isVariant = item.variant;
|
|
71
|
-
const variantNamesValues = isVariant
|
|
72
|
-
? item.variant.values.map((value, index) => `${item.variantOptionNames[index]}: ${value}`)
|
|
73
|
-
: [];
|
|
74
|
-
return product ? (React.createElement("li", { className: orderItem },
|
|
75
|
-
React.createElement("div", { className: "image-wrapper" }, product.images && product.images.length > 0 && (React.createElement(React.Fragment, null,
|
|
76
|
-
React.createElement(ProductLink, { product: product },
|
|
77
|
-
React.createElement(Image, { sizes: "4rem", aspect: "3:4", alt: isVariant
|
|
78
|
-
? (item.variant.images &&
|
|
79
|
-
item.variant.images[0] &&
|
|
80
|
-
item.variant.images[0].alt) ||
|
|
81
|
-
(product.images &&
|
|
82
|
-
product.images[0] &&
|
|
83
|
-
product.images[0].alt)
|
|
84
|
-
: product.images &&
|
|
85
|
-
product.images[0] &&
|
|
86
|
-
product.images[0].alt, src: isVariant
|
|
87
|
-
? (item.variant.images &&
|
|
88
|
-
item.variant.images[0] &&
|
|
89
|
-
item.variant.images[0].url) ||
|
|
90
|
-
(product.images &&
|
|
91
|
-
product.images[0] &&
|
|
92
|
-
product.images[0].url)
|
|
93
|
-
: product.images &&
|
|
94
|
-
product.images[0] &&
|
|
95
|
-
product.images[0].url, className: "prod-image" }))))),
|
|
96
|
-
React.createElement("div", { className: "name" },
|
|
97
|
-
product.subName && React.createElement("div", { className: "subname" }, product.subName),
|
|
98
|
-
React.createElement(ProductLink, { product: product }, item.name)),
|
|
99
|
-
React.createElement("div", { className: "qty" }, item.quantity),
|
|
100
|
-
React.createElement("div", { className: "price" },
|
|
101
|
-
React.createElement(Price, { price: item.total, currency: currency })),
|
|
102
|
-
isVariant && (React.createElement("div", { className: "attributes" }, variantNamesValues.map(v => (React.createElement("span", { key: v, className: variantValue }, v))))))) : (React.createElement("p", { style: { margin: '1em 0 1em 1em' } }, t('Product no longer available.')));
|
|
103
|
-
}
|
|
104
|
-
const orderItem = css `
|
|
105
|
-
display: grid;
|
|
106
|
-
display: -ms-grid;
|
|
107
|
-
-ms-grid-columns: 4rem 2fr 0.5fr 1fr;
|
|
108
|
-
-ms-grid-rows: 1fr min-content;
|
|
109
|
-
grid-template-columns: 4rem 2fr 0.5fr 1fr;
|
|
110
|
-
grid-template-rows: 1fr min-content;
|
|
111
|
-
padding: 1em;
|
|
112
|
-
border-bottom: 1px solid ${theme.colors.tablegrey};
|
|
113
|
-
grid-template-areas:
|
|
114
|
-
'image name qty price'
|
|
115
|
-
'image attributes attributes attributes';
|
|
116
|
-
|
|
117
|
-
:last-child {
|
|
118
|
-
border-bottom: none;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.image-wrapper {
|
|
122
|
-
grid-area: image;
|
|
123
|
-
-ms-grid-row: 1;
|
|
124
|
-
-ms-grid-row-span: 2;
|
|
125
|
-
-ms-grid-column: 1;
|
|
126
|
-
padding-right: 1em;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.qty {
|
|
130
|
-
grid-area: qty;
|
|
131
|
-
-ms-grid-row: 1;
|
|
132
|
-
-ms-grid-column: 3;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.price {
|
|
136
|
-
grid-area: price;
|
|
137
|
-
-ms-grid-row: 1;
|
|
138
|
-
-ms-grid-column: 4;
|
|
139
|
-
text-align: right;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.attributes {
|
|
143
|
-
grid-area: attributes;
|
|
144
|
-
-ms-grid-row: 2;
|
|
145
|
-
-ms-grid-column: 2;
|
|
146
|
-
-ms-grid-column-span: 3;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.name {
|
|
150
|
-
grid-area: name;
|
|
151
|
-
-ms-grid-row: 1;
|
|
152
|
-
-ms-grid-column: 2;
|
|
153
|
-
line-height: 1.25;
|
|
154
|
-
.subname {
|
|
155
|
-
color: ${theme.colors.mediumgrey};
|
|
156
|
-
}
|
|
157
|
-
a {
|
|
158
|
-
color: ${theme.colors.darkgrey};
|
|
159
|
-
:hover {
|
|
160
|
-
opacity: 0.8;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.variant-value {
|
|
166
|
-
font-size: 0.875em;
|
|
167
|
-
padding-right: 0.5em;
|
|
168
|
-
padding-left: 0.5em;
|
|
169
|
-
border-right: 1px solid ${theme.colors.tablegrey};
|
|
170
|
-
:last-of-type {
|
|
171
|
-
border-right: 0;
|
|
172
|
-
padding-right: 0;
|
|
173
|
-
}
|
|
174
|
-
:first-of-type {
|
|
175
|
-
padding-left: 0;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
`;
|
|
179
|
-
export function ListDetail({ id, className }) {
|
|
180
|
-
const { loading, error, order } = useOrderDetailQuery({
|
|
181
|
-
query: OrderDetail,
|
|
182
|
-
id
|
|
183
|
-
});
|
|
184
|
-
if (loading)
|
|
185
|
-
return (React.createElement("div", { className: cx(fullDetail, 'loading', className) },
|
|
186
|
-
React.createElement(ListDetailHeader, null),
|
|
187
|
-
t('Loading more data…')));
|
|
188
|
-
if (error)
|
|
189
|
-
return (React.createElement("div", { className: cx(fullDetail, 'error', className) }, t.rich('Something went wrong when retrieving order {id}. Please try again later.', { id })));
|
|
190
|
-
return (React.createElement("section", { className: cx(fullDetail, className) },
|
|
191
|
-
React.createElement(ListDetailHeader, null),
|
|
192
|
-
React.createElement("ul", null, order.items.map(item => (React.createElement(OrderItem, { item: item, key: item.articleNumber, currency: order.currency.format })))),
|
|
193
|
-
React.createElement(OrderTotals, { total: order.total, delivery: order.deliveryMethod, currency: order.currency.format }),
|
|
194
|
-
React.createElement(ShippingPayment, { deliveryInfo: order.deliveryInfo, billingInfo: order.billingInfo, paymentMethod: order.paymentMethod })));
|
|
195
|
-
}
|
|
196
|
-
//# sourceMappingURL=ListDetail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListDetail.js","sourceRoot":"","sources":["../../../../../../src/components/MyPages/Orders/OrderDetail/ListDetail.js"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,yCAAyC,CAAC;AAC1E,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAElD,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAcrB,CAAC;AAEF,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;6BAOC,KAAK,CAAC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;CAwBlD,CAAC;AAEF,MAAM,YAAY,GAAG,GAAG,CAAA;;CAEvB,CAAC;AAEF,SAAS,gBAAgB;IACvB,OAAO,CACL,g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,oBAAC,SAAS,IACR,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,IAAI,CAAC,aAAa,EACvB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,GAC/B,CACH,CAAC,CACC;QAEL,oBAAC,WAAW,IACV,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,KAAK,CAAC,cAAc,EAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,GAC/B;QAEF,oBAAC,eAAe,IACd,YAAY,EAAE,KAAK,CAAC,YAAY,EAChC,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,aAAa,EAAE,KAAK,CAAC,aAAa,GAClC,CACM,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import t from '@jetshop/intl';
|
|
13
|
-
import { Currency } from '@jetshop/ui/Price/Currency';
|
|
14
|
-
import { css, cx } from 'linaria';
|
|
15
|
-
import React from 'react';
|
|
16
|
-
import { Price } from '@jetshop/ui/Price';
|
|
17
|
-
import { theme } from '../../../Theme';
|
|
18
|
-
import { useChannelSettings } from '@jetshop/core/hooks/Channels/useChannelSettings';
|
|
19
|
-
export function OrderTotals(_a) {
|
|
20
|
-
var { total, delivery, currency, className } = _a, rest = __rest(_a, ["total", "delivery", "currency", "className"]);
|
|
21
|
-
const { pricesIncVat } = useChannelSettings();
|
|
22
|
-
const { tracking } = delivery;
|
|
23
|
-
return (React.createElement("section", Object.assign({ className: cx(className, styles) }, rest),
|
|
24
|
-
React.createElement("dl", null,
|
|
25
|
-
React.createElement("dt", null, t('Delivery:')),
|
|
26
|
-
' ',
|
|
27
|
-
React.createElement("dd", null,
|
|
28
|
-
"(",
|
|
29
|
-
delivery.name,
|
|
30
|
-
") ",
|
|
31
|
-
React.createElement(Price, { price: delivery.fee, currency: currency })),
|
|
32
|
-
tracking && (React.createElement(React.Fragment, null,
|
|
33
|
-
React.createElement("dt", null, t('Track delivery:')),
|
|
34
|
-
React.createElement("dd", null,
|
|
35
|
-
React.createElement("a", { href: tracking.trackingUrl, target: "new" }, tracking.trackingUrlText)))),
|
|
36
|
-
React.createElement("dt", null, pricesIncVat ? t('Total incl. VAT') : t('Total excl. VAT')),
|
|
37
|
-
' ',
|
|
38
|
-
React.createElement("dd", { className: "total-price" },
|
|
39
|
-
React.createElement(Price, { price: total, currency: currency })),
|
|
40
|
-
React.createElement("dt", null,
|
|
41
|
-
pricesIncVat ? t('of which VAT') : t('+ VAT'),
|
|
42
|
-
":"),
|
|
43
|
-
' ',
|
|
44
|
-
React.createElement("dd", null,
|
|
45
|
-
React.createElement(Currency, { value: total.vat, currency: currency })))));
|
|
46
|
-
}
|
|
47
|
-
const styles = css `
|
|
48
|
-
text-align: right;
|
|
49
|
-
padding: 1em;
|
|
50
|
-
border-top: 1px solid ${theme.colors.tablegrey};
|
|
51
|
-
|
|
52
|
-
dl {
|
|
53
|
-
display: flex;
|
|
54
|
-
flex-wrap: wrap;
|
|
55
|
-
max-width: 23rem;
|
|
56
|
-
margin-left: auto;
|
|
57
|
-
line-height: 1.5;
|
|
58
|
-
|
|
59
|
-
div {
|
|
60
|
-
display: inline-block;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
dt {
|
|
64
|
-
flex: 1 1 50%;
|
|
65
|
-
}
|
|
66
|
-
dd {
|
|
67
|
-
flex: 1 1 50%;
|
|
68
|
-
|
|
69
|
-
a {
|
|
70
|
-
color: ${theme.colors.blue};
|
|
71
|
-
:hover {
|
|
72
|
-
opacity: 0.8;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.total-price {
|
|
78
|
-
font-weight: bold;
|
|
79
|
-
}
|
|
80
|
-
`;
|
|
81
|
-
//# sourceMappingURL=OrderTotals.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrderTotals.js","sourceRoot":"","sources":["../../../../../../src/components/MyPages/Orders/OrderDetail/OrderTotals.js"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAErF,MAAM,UAAU,WAAW,CAAC,EAAiD;QAAjD,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,OAAW,EAAN,IAAI,cAA/C,8CAAiD,CAAF;IACzE,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAC9C,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC;IAE9B,OAAO,CACL,+CAAS,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,IAAM,IAAI;QACjD;YACE,gCAAK,CAAC,CAAC,WAAW,CAAC,CAAM;YAAC,GAAG;YAC7B;;gBACI,QAAQ,CAAC,IAAI;;gBAAG,oBAAC,KAAK,IAAC,KAAK,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