@evenicanpm/storefront-core 1.8.4 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.ts +2 -3
- package/.storybook/preview.tsx +0 -2
- package/__mocks__/create-mutation.ts +16 -8
- package/__mocks__/next-image.tsx +12 -3
- package/docs.tsconfig.json +5 -5
- package/package.json +3 -3
- package/src/api-manager/datasources/d365/d365-cart.datasource.ts +13 -8
- package/src/api-manager/datasources/d365/d365-categories.datasource.ts +2 -3
- package/src/api-manager/datasources/d365/d365-order.datasource.ts +4 -4
- package/src/api-manager/datasources/d365/d365-organization.datasource.ts +15 -8
- package/src/api-manager/datasources/d365/d365-product.datasource.ts +34 -19
- package/src/api-manager/datasources/d365/d365-user.datasource.ts +47 -19
- package/src/api-manager/datasources/e4/address/e4-address.remaps.ts +2 -2
- package/src/api-manager/datasources/e4/cart/e4-cart.datasource.ts +7 -5
- package/src/api-manager/datasources/e4/cart/e4-cart.remaps.ts +1 -1
- package/src/api-manager/datasources/e4/categories/e4-categories.translator.ts +3 -3
- package/src/api-manager/datasources/e4/product/e4-product.remaps.ts +3 -3
- package/src/api-manager/datasources/e4/product/e4-product.translator.ts +3 -1
- package/src/api-manager/datasources/e4/user/e4-user.datasource.ts +4 -8
- package/src/api-manager/index.ts +10 -128
- package/src/api-manager/lib/category-helpers.ts +1 -1
- package/src/api-manager/lib/get-graphql-client.ts +2 -2
- package/src/api-manager/schemas/product.schema.ts +9 -0
- package/src/api-manager/services/create-extension-query.ts +1 -1
- package/src/api-manager/services/create-query.ts +106 -266
- package/src/api-manager/types/Datasource.ts +0 -3
- package/src/auth/auth-options.test.ts +1 -1
- package/src/auth/msal.ts +1 -1
- package/src/auth/providers/entra-external-id-provider.ts +1 -1
- package/src/auth/providers/index.ts +1 -1
- package/src/cms/blocks/components/category-card.tsx +0 -1
- package/src/cms/blocks/components/category-carousel/index.tsx +3 -4
- package/src/cms/blocks/components/featured-categories.tsx +1 -2
- package/src/cms/blocks/components/featured-products.tsx +1 -2
- package/src/cms/blocks/components/footer/index.tsx +1 -2
- package/src/cms/blocks/components/footer/sections/footer-app-store.tsx +2 -2
- package/src/cms/blocks/components/footer/sections/footer-contact.tsx +1 -2
- package/src/cms/blocks/components/footer/sections/footer-links.tsx +1 -1
- package/src/cms/blocks/components/footer/sections/footer-logo.tsx +2 -3
- package/src/cms/blocks/components/footer/sections/footer-social-links.tsx +7 -3
- package/src/cms/blocks/components/footer.tsx +0 -1
- package/src/cms/blocks/components/hero-carousel/index.tsx +2 -3
- package/src/cms/blocks/components/hero.tsx +0 -1
- package/src/cms/blocks/components/image.tsx +0 -1
- package/src/cms/blocks/components/media-card.tsx +0 -1
- package/src/cms/blocks/components/product-carousel/index.tsx +3 -4
- package/src/cms/blocks/components/product-section-fullwidth/index.tsx +4 -5
- package/src/cms/blocks/components/rich-text.tsx +0 -1
- package/src/cms/blocks/components/seo/index.tsx +1 -2
- package/src/cms/blocks/components/services/index.tsx +0 -1
- package/src/cms/blocks/components/services/service-card.tsx +1 -2
- package/src/cms/blocks/components/shared/featured-product-card.tsx +3 -4
- package/src/cms/blocks/components/shared/product-category-item.tsx +4 -4
- package/src/cms/blocks/components/shared/product-grid.tsx +2 -3
- package/src/cms/blocks/components/shared/top-categories-card.tsx +2 -3
- package/src/cms/blocks/components/shared/top-rating-product-card.tsx +4 -5
- package/src/cms/blocks/icons/components/category.tsx +1 -1
- package/src/cms/blocks/icons/components/dotted-star.tsx +1 -1
- package/src/cms/blocks/icons/components/fallback-icon.tsx +0 -1
- package/src/cms/blocks/icons/components/gift-box.tsx +1 -1
- package/src/cms/blocks/icons/components/light.tsx +1 -1
- package/src/cms/blocks/icons/components/new-arrival.tsx +1 -1
- package/src/cms/blocks/icons/components/rank-badge.tsx +1 -1
- package/src/cms/blocks/icons/index.ts +1 -6
- package/src/{components-v2 → components}/BazaarTextField.tsx +8 -8
- package/src/{components-v2 → components}/CountryInput.stories.tsx +4 -2
- package/src/{components-v2 → components}/DropZone.tsx +1 -1
- package/src/{components-v2 → components}/ImageWithFallback.tsx +1 -1
- package/src/{components-v2 → components}/T/__tests__/T.test.tsx +9 -13
- package/src/{components-v2 → components}/T/index.tsx +0 -1
- package/src/{components-v2 → components}/Typography.tsx +0 -1
- package/src/components/_tests_/BazaarCard.test.tsx +16 -0
- package/src/components/_tests_/BazaarImage.test.tsx +18 -0
- package/src/components/_tests_/BazaarMenu.test.tsx +46 -0
- package/src/components/_tests_/BazaarSwitch.test.tsx +17 -0
- package/src/components/_tests_/BazaarTextField.test.tsx +22 -0
- package/src/components/_tests_/BoxShadowCard.test.tsx +14 -0
- package/src/components/_tests_/DropZone.test.tsx +51 -0
- package/src/components/_tests_/HoverBox.test.tsx +9 -0
- package/src/components/_tests_/Image.test.tsx +12 -0
- package/src/components/_tests_/ImageWithFallback.test.tsx +76 -0
- package/src/components/_tests_/LazyImage.test.tsx +32 -0
- package/src/components/_tests_/Loading.test.tsx +15 -0
- package/src/components/_tests_/SearchInput.test.tsx +14 -0
- package/src/components/_tests_/SnackbarProvider.test.tsx +22 -0
- package/src/components/_tests_/Typography.test.tsx +53 -0
- package/src/components/_tests_/WhiteButton.test.tsx +20 -0
- package/src/components/_tests_/countries-input.test.tsx +39 -0
- package/src/components/_tests_/no-records.test.tsx +14 -0
- package/src/components/_tests_/site-logo.test.tsx +28 -0
- package/src/{components-v2 → components}/accordion/accordion-header.tsx +1 -1
- package/src/{components-v2 → components}/accordion/index.ts +1 -1
- package/src/{components-v2 → components}/carousel/carousel.tsx +3 -3
- package/src/{components-v2 → components}/carousel/components/carousel-arrows.tsx +1 -1
- package/src/{components-v2 → components}/carousel/components/carousel-dots.tsx +1 -1
- package/src/{components-v2 → components}/carousel/index.ts +1 -1
- package/src/{components-v2 → components}/carousel-cards/carousel-card-1/carousel-card-1.tsx +3 -3
- package/src/components/carousel-cards/carousel-card-1/index.ts +1 -0
- package/src/{components-v2 → components}/categories/Categories.stories.tsx +1 -1
- package/src/{components-v2 → components}/categories/__tests__/category-menu.test.tsx +1 -1
- package/src/{components-v2 → components}/categories/category-list/category-list.tsx +5 -5
- package/src/{components-v2/navbar/mega-menu → components/categories/category-list}/index.ts +1 -1
- package/src/{components-v2 → components}/categories/category-list/styles.ts +1 -1
- package/src/{components-v2 → components}/categories/category-list-item/category-menu-item.tsx +1 -1
- package/src/components/categories/category-list-item/index.ts +1 -0
- package/src/{components-v2 → components}/categories/category-menu.tsx +1 -1
- package/src/{components-v2 → components}/categories/mega-menu/banner.tsx +3 -3
- package/src/{components-v2 → components}/categories/mega-menu/column-list.tsx +4 -4
- package/src/{components-v2 → components}/categories/mega-menu/mega-menu-1.tsx +3 -3
- package/src/{components-v2 → components}/categories/mega-menu/mega-menu-2.tsx +4 -4
- package/src/{components-v2 → components}/countries-input.tsx +1 -1
- package/src/{components-v2 → components}/flex-box/__tests__/flex-box.test.tsx +6 -8
- package/src/components/flex-box/index.ts +5 -0
- package/src/{components-v2 → components}/header/__tests__/header.test.tsx +8 -4
- package/src/{components-v2 → components}/header/__tests__/user.test.tsx +1 -1
- package/src/{components-v2 → components}/header/components/categories-menu.tsx +3 -3
- package/src/{components-v2 → components}/header/components/mobile-header.tsx +11 -11
- package/src/{components-v2 → components}/header/components/user.tsx +3 -3
- package/src/{components-v2 → components}/header/header.tsx +6 -6
- package/src/{components-v2 → components}/header/index.ts +1 -1
- package/src/{components-v2 → components}/header/sticky-header.tsx +3 -3
- package/src/{components-v2 → components}/icons/cart-bag.tsx +1 -0
- package/src/{components-v2 → components}/icons/category-outline.tsx +1 -0
- package/src/{components-v2 → components}/icons/category.tsx +1 -0
- package/src/{components-v2 → components}/icons/home.tsx +1 -0
- package/src/{components-v2 → components}/icons/search.tsx +1 -0
- package/src/{components-v2 → components}/icons/shopping-bag-outlined.tsx +1 -0
- package/src/{components-v2 → components}/icons/up-down.tsx +1 -0
- package/src/{components-v2 → components}/icons/user.tsx +1 -0
- package/src/{components-v2 → components}/icons/user2.tsx +1 -0
- package/src/{components-v2 → components}/mini-cart/components/cart-item.tsx +2 -2
- package/src/{components-v2 → components}/mini-cart/components/empty-view.tsx +2 -2
- package/src/{components-v2 → components}/mini-cart/components/top-header.tsx +2 -2
- package/src/{components-v2 → components}/mini-cart/index.ts +1 -1
- package/src/{components-v2 → components}/mini-cart/mini-cart-trigger.tsx +3 -5
- package/src/{components-v2 → components}/mini-cart/mini-cart.tsx +5 -5
- package/src/{components-v2 → components}/mobile-navigation/MobileNavigationBar.stories.tsx +2 -2
- package/src/{components-v2 → components}/mobile-navigation/index.ts +1 -1
- package/src/{components-v2 → components}/mobile-navigation/mobile-navigation-bar.tsx +5 -5
- package/src/{components-v2 → components}/mobile-navigation/styles/index.ts +2 -2
- package/src/{components-v2 → components}/nav-link/__tests__/nav-link.test.tsx +2 -1
- package/src/{components-v2 → components}/nav-link/index.ts +3 -3
- package/src/{components-v2 → components}/nav-link/nav-link-2.tsx +1 -1
- package/src/{components-v2 → components}/nav-link/nav-link-3.tsx +1 -1
- package/src/{components-v2 → components}/nav-link/nav-link.tsx +20 -10
- package/src/{components-v2 → components}/navbar/__tests__/navbar.test.tsx +4 -7
- package/src/{components-v2 → components}/navbar/categories.tsx +4 -4
- package/src/{components-v2 → components}/navbar/category-based-menu/category-based-menu.tsx +5 -5
- package/src/components/navbar/category-based-menu/index.ts +1 -0
- package/src/{components-v2 → components}/navbar/category-based-menu/styles.ts +4 -4
- package/src/{components-v2 → components}/navbar/index.ts +1 -1
- package/src/components/navbar/mega-menu/index.ts +1 -0
- package/src/{components-v2 → components}/navbar/mega-menu/mega-menu.tsx +10 -4
- package/src/{components-v2 → components}/navbar/mega-menu/styles.ts +1 -1
- package/src/{components-v2 → components}/navbar/mobile-menu/index.ts +1 -1
- package/src/{components-v2 → components}/navbar/mobile-menu/mobile-menu.test.tsx +4 -3
- package/src/{components-v2 → components}/navbar/mobile-menu/mobile-menu.tsx +4 -4
- package/src/{components-v2 → components}/navbar/nav-list/cms-nav.test.tsx +1 -2
- package/src/components/navbar/nav-list/index.ts +1 -0
- package/src/{components-v2 → components}/navbar/nav-list/nav-item-child.tsx +4 -4
- package/src/{components-v2 → components}/navbar/nav-list/nav-list.tsx +8 -8
- package/src/{components-v2 → components}/navbar/navbar.tsx +3 -3
- package/src/{components-v2 → components}/navbar/styles.ts +2 -2
- package/src/{components-v2 → components}/navbar/utils/transform-nav.test.ts +1 -1
- package/src/{components-v2 → components}/no-records.tsx +1 -2
- package/src/{components-v2 → components}/product-cards/favorite-button.tsx +0 -1
- package/src/{components-v2/navbar/nav-list → components/product-cards/product-card}/index.ts +1 -1
- package/src/{components-v2 → components}/product-cards/product-card/product-card.tsx +11 -11
- package/src/{components-v2 → components}/product-cards/product-card/styles/index.ts +3 -3
- package/src/{components-v2/categories/category-list → components/product-cards/product-card-plp}/index.ts +1 -1
- package/src/{components-v2 → components}/product-cards/product-card-plp/product-card.tsx +9 -9
- package/src/{components-v2 → components}/product-cards/product-card-plp-list/ProductCardPlpList.stories.tsx +0 -1
- package/src/components/product-cards/product-card-plp-list/index.ts +1 -0
- package/src/{components-v2 → components}/product-cards/product-card-plp-list/product-card.tsx +9 -9
- package/src/{components-v2 → components}/product-cards/product-card-search/ProductCardSearch.stories.tsx +0 -1
- package/src/components/product-cards/product-card-search/index.ts +1 -0
- package/src/{components-v2 → components}/product-cards/product-card-search/product-card.tsx +7 -7
- package/src/{components-v2 → components}/product-cards/product-price.tsx +2 -2
- package/src/{components-v2 → components}/product-cards/product-rating.tsx +2 -2
- package/src/{components-v2 → components}/product-cards/product-title.tsx +1 -1
- package/src/{components-v2 → components}/product-cards/quantity-buttons.tsx +2 -2
- package/src/{components-v2 → components}/product-dialog/__tests__/product-dialog.test.tsx +1 -1
- package/src/{components-v2 → components}/product-dialog/compound/product-dialog.tsx +5 -5
- package/src/{components-v2 → components}/product-dialog/index.tsx +1 -1
- package/src/{components-v2 → components}/product-dimensions/Dimensions.stories.tsx +2 -4
- package/src/{components-v2 → components}/product-dimensions/__tests__/product-dimensions.test.tsx +2 -2
- package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group-error.tsx +4 -4
- package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group-label.tsx +2 -2
- package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group-list-chip.tsx +2 -2
- package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group-list.tsx +2 -2
- package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group.tsx +3 -3
- package/src/{components-v2 → components}/product-dimensions/compound/dimensions.tsx +2 -2
- package/src/{components-v2 → components}/product-dimensions/index.tsx +1 -1
- package/src/{components-v2 → components}/product-quantity-buttons/ProductQuantity.stories.tsx +1 -3
- package/src/{components-v2 → components}/product-quantity-buttons/__tests__/product-quantity-buttons.test.tsx +12 -2
- package/src/{components-v2 → components}/product-quantity-buttons/compound/quantity-buttons-root.tsx +3 -3
- package/src/{components-v2 → components}/product-quantity-buttons/index.tsx +1 -2
- package/src/{components-v2 → components}/product-quantity-variants/ProductQuantity.stories.tsx +1 -3
- package/src/{components-v2 → components}/product-quantity-variants/__tests__/product-quantity-variants.test.tsx +6 -4
- package/src/{components-v2 → components}/product-quantity-variants/index.tsx +2 -2
- package/src/{components-v2 → components}/products-view/ProductsGrid.stories.tsx +1 -3
- package/src/{components-v2 → components}/products-view/ProductsList.stories.tsx +1 -3
- package/src/{components-v2 → components}/products-view/__tests__/products-view.test.tsx +31 -12
- package/src/{components-v2 → components}/products-view/compound/products-grid-view.tsx +7 -7
- package/src/{components-v2 → components}/products-view/compound/products-list-view.tsx +4 -4
- package/src/{components-v2 → components}/products-view/compound/types.ts +1 -1
- package/src/{components-v2 → components}/products-view/index.tsx +3 -3
- package/src/{components-v2/side-nav → components/progress}/index.ts +1 -1
- package/src/{components-v2 → components}/progress/progress.tsx +3 -3
- package/src/{components-v2 → components}/scrollbar/Scrollbar.stories.tsx +1 -3
- package/src/{components-v2 → components}/scrollbar/__tests__/scrollbar.test.tsx +7 -1
- package/src/{components-v2/progress → components/scrollbar}/index.ts +1 -1
- package/src/{components-v2 → components}/scrollbar/scrollbar.tsx +1 -1
- package/src/{components-v2 → components}/search-bar/SearchBarLarge.stories.tsx +1 -3
- package/src/{components-v2 → components}/search-bar/__tests__/search-bar.test.tsx +7 -1
- package/src/{components-v2 → components}/search-bar/compound/results-item-lg.tsx +2 -3
- package/src/{components-v2 → components}/search-bar/compound/results-item-sm.tsx +4 -5
- package/src/{components-v2 → components}/search-bar/compound/results-suspense.tsx +5 -5
- package/src/{components-v2 → components}/search-bar/compound/results.tsx +2 -2
- package/src/{components-v2 → components}/search-bar/compound/search-bar-root.tsx +5 -5
- package/src/{components-v2 → components}/search-bar/compound/textfield-adornment-category.tsx +3 -4
- package/src/{components-v2 → components}/search-bar/compound/textfield-adornment-search-icon.tsx +1 -1
- package/src/{components-v2 → components}/search-bar/compound/textfield.tsx +5 -6
- package/src/{components-v2 → components}/search-bar/index.tsx +1 -1
- package/src/{components-v2 → components}/search-bar/utils/findCategoryNameById.ts +3 -3
- package/src/{components-v2 → components}/section/__tests__/section.test.tsx +14 -7
- package/src/{components-v2 → components}/section/compound/section-header.tsx +2 -2
- package/src/{components-v2 → components}/section/compound/section.tsx +1 -1
- package/src/{components-v2 → components}/section/index.ts +1 -1
- package/src/{components-v2 → components}/side-nav/SideNav.stories.tsx +1 -1
- package/src/{components-v2 → components}/side-nav/__tests__/side-nav.test.tsx +17 -14
- package/src/{components-v2/scrollbar → components/side-nav}/index.ts +1 -1
- package/src/{components-v2 → components}/side-nav/side-nav.tsx +1 -1
- package/src/{components-v2 → components}/site-logo.tsx +8 -1
- package/src/{components-v2 → components}/wishlist-dialogs/__tests__/create-new-list.test.tsx +1 -1
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/add-to-wishlist-button.tsx +3 -3
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-bottom-ui.tsx +2 -2
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-dialog.tsx +4 -4
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-list.tsx +3 -3
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-header.tsx +3 -4
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-item.tsx +4 -4
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/index.tsx +1 -1
- package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/compound/create-wishlist-bottom-ui.tsx +2 -2
- package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/compound/create-wishlist-dialog.tsx +2 -2
- package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/compound/create-wishlist-form.tsx +2 -2
- package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/create-wishlist-button.tsx +2 -2
- package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/index.tsx +1 -1
- package/src/{components-v2 → components}/wishlist-dialogs/styles.ts +1 -1
- package/src/hooks/use-nextauth-session.ts +4 -1
- package/src/hooks/use-overflow-detect.ts +4 -4
- package/src/lib/cart-cookie-handler.ts +2 -2
- package/src/lib/category-helpers.ts +1 -1
- package/src/lib/lib.ts +2 -2
- package/src/lib/page-slugs.ts +0 -2
- package/src/lib/refiner-utils.ts +5 -5
- package/src/{pages-v2 → pages}/account/account-navigation.tsx +20 -23
- package/src/{pages-v2 → pages}/account/addresses/address-form.tsx +15 -7
- package/src/{pages-v2 → pages}/account/addresses/address-item.tsx +2 -2
- package/src/{pages-v2 → pages}/account/dashboard-header.tsx +5 -5
- package/src/{pages-v2 → pages}/account/orders/icons/delivery.tsx +1 -0
- package/src/{pages-v2 → pages}/account/orders/icons/package-box.tsx +1 -0
- package/src/{pages-v2 → pages}/account/orders/icons/truck-filled.tsx +1 -0
- package/src/{pages-v2 → pages}/account/orders/order-progress.tsx +5 -5
- package/src/{pages-v2 → pages}/account/orders/order-row.tsx +2 -2
- package/src/{pages-v2 → pages}/account/orders/order-summary.tsx +4 -4
- package/src/{pages-v2 → pages}/account/orders/ordered-products.tsx +2 -2
- package/src/{pages-v2 → pages}/account/profile/profile-button.test.tsx +2 -2
- package/src/{pages-v2 → pages}/account/profile/profile-button.tsx +1 -1
- package/src/{pages-v2 → pages}/account/profile/user-info.tsx +2 -2
- package/src/{pages-v2 → pages}/account/styles.ts +1 -1
- package/src/{pages-v2 → pages}/account/wishlist/create-new-list.tsx +2 -2
- package/src/{pages-v2 → pages}/account/wishlist/create-wishlist-button.tsx +2 -2
- package/src/{pages-v2 → pages}/account/wishlist/wishlist-item.tsx +3 -3
- package/src/{pages-v2 → pages}/blog/blog-card.tsx +4 -4
- package/src/{pages-v2 → pages}/cart/__tests__/cart-item.test.tsx +1 -1
- package/src/{pages-v2 → pages}/cart/__tests__/checkout-form.test.tsx +1 -1
- package/src/{pages-v2 → pages}/cart/__tests__/estimate-shipping.test.tsx +11 -11
- package/src/{pages-v2 → pages}/cart/cart-item.tsx +50 -22
- package/src/{pages-v2 → pages}/cart/checkout-form.tsx +5 -5
- package/src/{pages-v2 → pages}/cart/coupon-entry.tsx +2 -2
- package/src/{pages-v2 → pages}/cart/estimate-shipping.tsx +2 -2
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/checkout-form.tsx +2 -2
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/checkout-step.tsx +5 -5
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/index.ts +1 -1
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/step-heading.tsx +4 -4
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/address/address-card.tsx +2 -2
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/address/delivery-address.tsx +25 -21
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/address/new-address-form.tsx +3 -3
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/customer-info/customer-information.tsx +2 -2
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/payment/payment-details.tsx +36 -16
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/shipping/delivery-date.tsx +2 -2
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/shipping/delivery-options.tsx +3 -3
- package/src/{pages-v2 → pages}/checkout/checkout-alt-summary/cart-item.tsx +3 -3
- package/src/{pages-v2 → pages}/checkout/checkout-alt-summary/checkout-alt-summary.tsx +4 -4
- package/src/pages/checkout/checkout-alt-summary/index.ts +1 -0
- package/src/{pages-v2 → pages}/checkout/checkout-alt-summary/list-item.tsx +2 -2
- package/src/{pages-v2 → pages}/confirmation/address.tsx +2 -2
- package/src/{pages-v2 → pages}/confirmation/confirmation-summary.tsx +3 -3
- package/src/{pages-v2 → pages}/confirmation/ordered-products.tsx +2 -2
- package/src/{pages-v2 → pages}/product-details/available-shops.tsx +2 -5
- package/src/{pages-v2 → pages}/product-details/bopis/find-in-store-button.tsx +1 -2
- package/src/{pages-v2 → pages}/product-details/bopis/find-in-store-modal.tsx +4 -8
- package/src/{pages-v2 → pages}/product-details/bopis/pickup-option-select.tsx +1 -1
- package/src/pages/product-details/bopis/store-card/index.ts +1 -0
- package/src/{pages-v2 → pages}/product-details/bopis/store-card/shop-card.tsx +5 -5
- package/src/{pages-v2 → pages}/product-details/currency.ts +2 -2
- package/src/{pages-v2 → pages}/product-details/frequently-bought.tsx +3 -3
- package/src/{pages-v2 → pages}/product-details/frequently-product-card.tsx +5 -5
- package/src/{pages-v2 → pages}/product-details/product-comment.tsx +2 -2
- package/src/{pages-v2 → pages}/product-details/product-description.tsx +4 -2
- package/src/{pages-v2 → pages}/product-details/product-filter-card.tsx +5 -5
- package/src/{pages-v2 → pages}/product-details/product-intro/compound/product-info.tsx +8 -9
- package/src/{pages-v2 → pages}/product-details/product-intro/compound/product-intro-images.tsx +4 -4
- package/src/{pages-v2 → pages}/product-details/product-intro/compound/product-intro.tsx +3 -3
- package/src/{pages-v2 → pages}/product-details/product-intro/compound/thumbnail-with-skeleton.tsx +4 -1
- package/src/{pages-v2 → pages}/product-details/product-review.tsx +3 -6
- package/src/{pages-v2 → pages}/product-details/product-tabs.tsx +1 -1
- package/src/{pages-v2 → pages}/product-details/related-products.tsx +2 -2
- package/src/{pages-v2 → pages}/product-list/breadcrumbs.tsx +0 -1
- package/src/{pages-v2 → pages}/product-list/facet-group.tsx +1 -1
- package/src/{pages-v2 → pages}/product-list/list-filter.tsx +2 -3
- package/src/{pages-v2 → pages}/product-list/pagination.tsx +1 -1
- package/src/{pages-v2 → pages}/product-list/product-list-context.tsx +4 -4
- package/src/{pages-v2 → pages}/product-list/product-list-view.tsx +6 -6
- package/src/{pages-v2 → pages}/product-list/quick-view-dialog-content.tsx +6 -11
- package/src/{pages-v2 → pages}/product-list/selected-facets.tsx +2 -2
- package/src/{pages-v2 → pages}/product-list/utils/search-for-category.ts +3 -3
- package/src/{pages-v2 → pages}/quickorder/context.ts +8 -2
- package/src/{pages-v2 → pages}/quickorder/order-upload.tsx +31 -10
- package/src/{pages-v2 → pages}/quickorder/provider.tsx +16 -17
- package/src/{pages-v2 → pages}/quickorder/quick-order-header.tsx +3 -3
- package/src/{pages-v2 → pages}/quickorder/quick-order-row.tsx +1 -1
- package/src/{pages-v2 → pages}/quickorder/quick-order-table.tsx +1 -1
- package/src/{pages-v2 → pages}/quickorder/quick-order.tsx +27 -21
- package/src/providers/nav-provider/index.tsx +1 -1
- package/src/providers/notifications/README.md +1 -1
- package/src/providers/notifications/notification-context.tsx +10 -4
- package/tsconfig.json +1 -2
- package/typedoc.js +1 -1
- package/src/components-v2/carousel-cards/carousel-card-1/index.ts +0 -1
- package/src/components-v2/categories/category-list-item/index.ts +0 -1
- package/src/components-v2/flex-box/index.ts +0 -5
- package/src/components-v2/navbar/category-based-menu/index.ts +0 -1
- package/src/components-v2/product-cards/product-card/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-plp/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-plp-list/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-search/index.ts +0 -1
- package/src/pages-v2/checkout/checkout-alt-summary/index.ts +0 -1
- package/src/pages-v2/product-details/bopis/store-card/index.ts +0 -1
- package/src/{components-v2 → components}/BazaarCard.stories.tsx +0 -0
- package/src/{components-v2 → components}/BazaarCard.tsx +0 -0
- package/src/{components-v2 → components}/BazaarImage.tsx +0 -0
- package/src/{components-v2 → components}/BazaarMenu.stories.tsx +0 -0
- package/src/{components-v2 → components}/BazaarMenu.tsx +0 -0
- package/src/{components-v2 → components}/BazaarSwitch.stories.tsx +0 -0
- package/src/{components-v2 → components}/BazaarSwitch.tsx +0 -0
- package/src/{components-v2 → components}/BazaarTextField.stories.tsx +0 -0
- package/src/{components-v2 → components}/BorderShadowCard.stories.tsx +0 -0
- package/src/{components-v2 → components}/BoxShadowCard.tsx +0 -0
- package/src/{components-v2 → components}/DropZone.stories.tsx +0 -0
- package/src/{components-v2 → components}/HoverBox.stories.tsx +0 -0
- package/src/{components-v2 → components}/HoverBox.tsx +0 -0
- package/src/{components-v2 → components}/Image.tsx +0 -0
- package/src/{components-v2 → components}/LazyImage.tsx +0 -0
- package/src/{components-v2 → components}/Loading.stories.tsx +0 -0
- package/src/{components-v2 → components}/Loading.tsx +0 -0
- package/src/{components-v2 → components}/NoRecords.stories.tsx +0 -0
- package/src/{components-v2 → components}/README.md +0 -0
- package/src/{components-v2 → components}/SearchInput.stories.tsx +0 -0
- package/src/{components-v2 → components}/SearchInput.tsx +0 -0
- package/src/{components-v2 → components}/SiteLogo.stories.tsx +0 -0
- package/src/{components-v2 → components}/SnackbarProvider.tsx +0 -0
- package/src/{components-v2 → components}/Typography.stories.tsx +0 -0
- package/src/{components-v2 → components}/WhiteButton.stories.tsx +0 -0
- package/src/{components-v2 → components}/WhiteButton.tsx +0 -0
- package/src/{components-v2 → components}/accordion/AccordionHeader.stories.tsx +0 -0
- package/src/{components-v2 → components}/accordion/__tests__/accordion-header.test.tsx +0 -0
- package/src/{components-v2 → components}/carousel/Carousel.stories.tsx +0 -0
- package/src/{components-v2 → components}/carousel/__tests__/carousel.test.tsx +0 -0
- package/src/{components-v2 → components}/carousel/styles/index.ts +0 -0
- package/src/{components-v2 → components}/carousel-cards/carousel-card-1/CarouselCard1.stories.tsx +0 -0
- package/src/{components-v2 → components}/carousel-cards/carousel-card-1/__tests__/carousel-card-1.test.tsx +0 -0
- package/src/{components-v2 → components}/carousel-cards/carousel-card-1/styles.ts +0 -0
- package/src/{components-v2 → components}/categories/category-list/types.ts +0 -0
- package/src/{components-v2 → components}/categories/category-list-item/styles.ts +0 -0
- package/src/{components-v2 → components}/categories/mega-menu/styles.ts +0 -0
- package/src/{components-v2 → components}/categories/types.ts +0 -0
- package/src/{components-v2 → components}/flex-box/Flex.stories.tsx +0 -0
- package/src/{components-v2 → components}/flex-box/flex-between.tsx +0 -0
- package/src/{components-v2 → components}/flex-box/flex-box.tsx +0 -0
- package/src/{components-v2 → components}/flex-box/flex-row-center.tsx +0 -0
- package/src/{components-v2 → components}/header/Header.stories.tsx +0 -0
- package/src/{components-v2 → components}/header/hooks/use-header.ts +0 -0
- package/src/{components-v2 → components}/header/styles/index.ts +0 -0
- package/src/{components-v2 → components}/icons/__tests__/icons.test.tsx +1 -1
- package/src/{components-v2 → components}/mini-cart/__tests__/cart-item.test.tsx +0 -0
- package/src/{components-v2 → components}/mini-cart/__tests__/mini-cart.test.tsx +0 -0
- package/src/{components-v2 → components}/mini-cart/__tests__/test-cart-empty.json +0 -0
- package/src/{components-v2 → components}/mini-cart/__tests__/test-cart-with-item.json +0 -0
- package/src/{components-v2 → components}/mini-cart/components/bottom-actions.tsx +0 -0
- package/src/{components-v2 → components}/mobile-navigation/__tests__/mobile-navigation-bar.test.tsx +2 -2
- package/src/{components-v2 → components}/nav-link/NavLink.stories.tsx +0 -0
- package/src/{components-v2 → components}/nav-link/NavLink2.stories.tsx +0 -0
- package/src/{components-v2 → components}/nav-link/NavLink3.stories.tsx +0 -0
- package/src/{components-v2 → components}/navbar/category-based-menu/types.ts +0 -0
- package/src/{components-v2 → components}/navbar/utils/transform-nav.ts +0 -0
- package/src/{components-v2 → components}/product-cards/__tests__/product-cards.test.tsx +0 -0
- package/src/{components-v2 → components}/product-cards/discount-chip.tsx +0 -0
- package/src/{components-v2 → components}/product-cards/product-card/ProductCard.stories.tsx +0 -0
- package/src/{components-v2 → components}/product-cards/product-card-plp/ProductCardPlp.stories.tsx +0 -0
- package/src/{components-v2 → components}/product-cards/product-card-plp/styles/index.ts +0 -0
- package/src/{components-v2 → components}/product-cards/product-card-plp-list/components/tags.tsx +0 -0
- package/src/{components-v2 → components}/product-cards/product-card-search/styles/index.ts +0 -0
- package/src/{components-v2 → components}/product-dialog/ProductDialog.stories.tsx +0 -0
- package/src/{components-v2 → components}/product-dimensions/__mocks__/data.ts +0 -0
- package/src/{components-v2 → components}/product-dimensions/utils/has-selected-dimension.ts +0 -0
- package/src/{components-v2 → components}/products-view/compound/context.ts +0 -0
- package/src/{components-v2 → components}/progress/ProgressBar.stories.tsx +0 -0
- package/src/{components-v2 → components}/progress/__tests__/progress.test.tsx +0 -0
- package/src/{components-v2 → components}/scrollbar/styles.ts +0 -0
- package/src/{components-v2 → components}/search-bar/compound/context.ts +0 -0
- package/src/{components-v2 → components}/search-bar/compound/textfield-adornment-button.tsx +0 -0
- package/src/{components-v2 → components}/search-bar/hooks/use-click-outside.ts +0 -0
- package/src/{components-v2 → components}/search-bar/hooks/use-search.ts +0 -0
- package/src/{components-v2 → components}/search-bar/styles/index.ts +0 -0
- package/src/{components-v2 → components}/section/Section.stories.tsx +0 -0
- package/src/{components-v2 → components}/wishlist-dialogs/__tests__/wishlistDetailData.json +0 -0
- package/src/{components-v2 → components}/wishlist-dialogs/__tests__/wishlistsData.json +0 -0
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/AddToWishlist.stories.tsx +0 -0
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/context.ts +0 -0
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/hooks/use-add-to-wishlist.ts +0 -0
- package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/CreateWishlistButton.stories.tsx +0 -0
- package/src/{pages-v2 → pages}/README.md +0 -0
- package/src/{pages-v2 → pages}/account/table-row.tsx +0 -0
- package/src/{pages-v2 → pages}/blog/pagination.tsx +0 -0
- package/src/{pages-v2 → pages}/cart/__tests__/cart-with-items.json +0 -0
- package/src/{pages-v2 → pages}/cart/__tests__/conutries.json +0 -0
- package/src/{pages-v2 → pages}/cart/__tests__/countries.json +0 -0
- package/src/{pages-v2 → pages}/cart/wrapper.tsx +0 -0
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/node.tsx +0 -0
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/address/styles.ts +0 -0
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/payment/safe-card-preview-data.tsx +0 -0
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/types.ts +0 -0
- package/src/{pages-v2 → pages}/product-details/bopis/search-header.tsx +0 -0
- package/src/{pages-v2 → pages}/product-details/bopis/store-card/styles.ts +0 -0
- package/src/{pages-v2 → pages}/product-details/bopis/store-card/utils/convertSecondsToTime.ts +0 -0
- package/src/{pages-v2 → pages}/product-details/bopis/store-card/utils/getDaysResources.ts +0 -0
- package/src/{pages-v2 → pages}/product-details/checkbox-label.tsx +0 -0
- package/src/{pages-v2 → pages}/product-details/product-intro/compound/context.ts +0 -0
- package/src/{pages-v2 → pages}/product-details/product-intro/utils.ts +0 -0
- package/src/{pages-v2 → pages}/product-details/types.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/checkbox-label.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/facet.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/product-list-state.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/product-rating.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/quick-view-dialog.tsx +4 -4
- package/src/{pages-v2 → pages}/product-list/range-filter.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/scrollbar.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/search-bar.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/side-nav.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/swatch.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/types.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/use-product-list.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/useCategoryFilter.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/utils/facet-helpers.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/utils/generate-breadcrumbs.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/utils/getCategoryFilterFromSlug.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/utils/product-list-helper.ts +4 -4
- /package/src/{pages-v2 → pages}/product-list/utils/product-list-types.ts +0 -0
- /package/src/{pages-v2 → pages}/product-list/utils/sort-options.ts +0 -0
- /package/src/{pages-v2 → pages}/product-list/utils/use-previous-refiners.ts +0 -0
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { render, screen
|
|
1
|
+
import { fireEvent, render, screen } from "@testing-library/react";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
import { vi } from "vitest";
|
|
4
4
|
import SideNav from "../side-nav";
|
|
5
5
|
|
|
6
|
-
vi.mock(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
vi.mock(
|
|
7
|
+
"@evenicanpm/storefront-core/src/components/scrollbar/scrollbar",
|
|
8
|
+
() => ({
|
|
9
|
+
default: ({
|
|
10
|
+
children,
|
|
11
|
+
autoHide,
|
|
12
|
+
}: {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
autoHide?: boolean;
|
|
15
|
+
}) => (
|
|
16
|
+
<div data-testid="scrollbar" data-autohide={autoHide}>
|
|
17
|
+
{children}
|
|
18
|
+
</div>
|
|
19
|
+
),
|
|
20
|
+
}),
|
|
21
|
+
);
|
|
19
22
|
|
|
20
23
|
vi.mock("@mui/material/Drawer", () => ({
|
|
21
24
|
default: ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "@evenicanpm/storefront-core/src/components-
|
|
1
|
+
export { default } from "@evenicanpm/storefront-core/src/components/side-nav/side-nav";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// GLOBAL CUSTOM COMPONENT
|
|
2
|
-
import Scrollbar from "@evenicanpm/storefront-core/src/components
|
|
2
|
+
import Scrollbar from "@evenicanpm/storefront-core/src/components/scrollbar/index";
|
|
3
3
|
import Drawer from "@mui/material/Drawer";
|
|
4
4
|
import { type ReactNode, useEffect, useState } from "react";
|
|
5
5
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import Image from "next/image";
|
|
3
4
|
import Link from "next/link";
|
|
4
5
|
|
|
5
6
|
interface SiteLogoProps {
|
|
@@ -9,7 +10,13 @@ interface SiteLogoProps {
|
|
|
9
10
|
const SiteLogo: React.FC<SiteLogoProps> = () => {
|
|
10
11
|
return (
|
|
11
12
|
<Link href="/">
|
|
12
|
-
<
|
|
13
|
+
<Image
|
|
14
|
+
src="/logo-blue.png"
|
|
15
|
+
alt="E4 Logo"
|
|
16
|
+
width={180}
|
|
17
|
+
height={54}
|
|
18
|
+
style={{ width: "auto", height: 54 }}
|
|
19
|
+
/>
|
|
13
20
|
</Link>
|
|
14
21
|
);
|
|
15
22
|
};
|
package/src/{components-v2 → components}/wishlist-dialogs/__tests__/create-new-list.test.tsx
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import CreateNewList from "@evenicanpm/storefront-core/src/components
|
|
1
|
+
import CreateNewList from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/create-wishlist/index";
|
|
2
2
|
import {
|
|
3
3
|
Notification,
|
|
4
4
|
NotificationProvider,
|
package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/add-to-wishlist-button.tsx
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import T from "@evenicanpm/storefront-core/src/components
|
|
4
|
-
import AddToWishlistDialog from "@evenicanpm/storefront-core/src/components
|
|
3
|
+
import T from "@evenicanpm/storefront-core/src/components/T";
|
|
4
|
+
import AddToWishlistDialog from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/add-to-wishlist/index";
|
|
5
5
|
import { Button, type ButtonProps } from "@mui/material";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
|
|
@@ -23,7 +23,7 @@ const AddToWishlistButton = (props: Props) => {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
// conditionally render button styles based on variant (pdp or minicart)
|
|
26
|
-
let style:
|
|
26
|
+
let style: ButtonProps["sx"];
|
|
27
27
|
let btnFullwidth: boolean;
|
|
28
28
|
let btnColor: ButtonProps["color"];
|
|
29
29
|
let btnVariant: ButtonProps["variant"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AddToWishListDialogContext } from "@evenicanpm/storefront-core/src/components
|
|
1
|
+
import { AddToWishListDialogContext } from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/add-to-wishlist/compound/context";
|
|
2
2
|
import { Button, Grid } from "@mui/material";
|
|
3
3
|
import { useTranslations } from "next-intl";
|
|
4
|
-
import
|
|
4
|
+
import { useContext } from "react";
|
|
5
5
|
|
|
6
6
|
const AddToWishListBottomUI = () => {
|
|
7
7
|
const t = useTranslations("Account.Wishlists");
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
// API AND CONTEXT
|
|
4
4
|
import getWishlists from "@evenicanpm/storefront-core/src/api-manager/services/user/queries/get-wishlists";
|
|
5
|
-
import AddToWishListBottomUI from "@evenicanpm/storefront-core/src/components
|
|
6
|
-
import WishlistList from "@evenicanpm/storefront-core/src/components
|
|
7
|
-
import { AddToWishListDialogContext } from "@evenicanpm/storefront-core/src/components
|
|
5
|
+
import AddToWishListBottomUI from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-bottom-ui";
|
|
6
|
+
import WishlistList from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-list";
|
|
7
|
+
import { AddToWishListDialogContext } from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/add-to-wishlist/compound/context";
|
|
8
8
|
// LOCAL COMPONENTS
|
|
9
|
-
import DialogHeader from "@evenicanpm/storefront-core/src/components
|
|
9
|
+
import DialogHeader from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-header";
|
|
10
10
|
import { Dialog, DialogContent } from "@mui/material";
|
|
11
11
|
import { useSession } from "next-auth/react";
|
|
12
12
|
import type React from "react";
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import type { Wishlist } from "@evenicanpm/storefront-core/src/api-manager/schemas/user.schema";
|
|
6
|
-
import NoRecords from "@evenicanpm/storefront-core/src/components
|
|
6
|
+
import NoRecords from "@evenicanpm/storefront-core/src/components/no-records";
|
|
7
7
|
// API AND CONTEXT
|
|
8
8
|
import {
|
|
9
9
|
AddToWishListDialogContext,
|
|
10
10
|
WishListItemContext,
|
|
11
|
-
} from "@evenicanpm/storefront-core/src/components
|
|
11
|
+
} from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/add-to-wishlist/compound/context";
|
|
12
12
|
// LOCAL COMPONENTS
|
|
13
|
-
import WishlistItem from "@evenicanpm/storefront-core/src/components
|
|
13
|
+
import WishlistItem from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-item";
|
|
14
14
|
import { useContext } from "react";
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
* @module Add-To-Wishlist-Dialog
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import FlexBox from "@evenicanpm/storefront-core/src/components
|
|
5
|
+
import FlexBox from "@evenicanpm/storefront-core/src/components/flex-box/flex-box";
|
|
6
6
|
// GLOBAL COMPONENTS
|
|
7
|
-
import { H2 } from "@evenicanpm/storefront-core/src/components
|
|
7
|
+
import { H2 } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
8
8
|
// LOCAL COMPONENTS
|
|
9
|
-
import CreateWishlistButton from "@evenicanpm/storefront-core/src/components
|
|
9
|
+
import CreateWishlistButton from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/create-wishlist/create-wishlist-button";
|
|
10
10
|
import { IconButton, styled, type Theme } from "@mui/material";
|
|
11
11
|
import useMediaQuery from "@mui/material/useMediaQuery";
|
|
12
12
|
import { useSession } from "next-auth/react";
|
|
13
13
|
import { useTranslations } from "next-intl";
|
|
14
|
-
import React from "react";
|
|
15
14
|
// ICONS
|
|
16
15
|
import { MdFavorite } from "react-icons/md";
|
|
17
16
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @module Add-To-Wishlist-Dialog
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { Paragraph } from "@evenicanpm/storefront-core/src/components
|
|
5
|
+
import { Paragraph } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
6
6
|
import {
|
|
7
7
|
AddToWishListDialogContext,
|
|
8
8
|
WishListItemContext,
|
|
9
|
-
} from "@evenicanpm/storefront-core/src/components
|
|
10
|
-
import UseWishlist from "@evenicanpm/storefront-core/src/components
|
|
11
|
-
import { StyledTableRow } from "@evenicanpm/storefront-core/src/components
|
|
9
|
+
} from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/add-to-wishlist/compound/context";
|
|
10
|
+
import UseWishlist from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/add-to-wishlist/hooks/use-add-to-wishlist";
|
|
11
|
+
import { StyledTableRow } from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/styles";
|
|
12
12
|
import { Add, Delete } from "@mui/icons-material";
|
|
13
13
|
import { IconButton } from "@mui/material";
|
|
14
14
|
import { format } from "date-fns";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AddToWishlistDialog from "@evenicanpm/storefront-core/src/components
|
|
1
|
+
import AddToWishlistDialog from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-dialog";
|
|
2
2
|
|
|
3
3
|
interface Props {
|
|
4
4
|
open: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CreateNewWishlistContext } from "@evenicanpm/storefront-core/src/components
|
|
1
|
+
import { CreateNewWishlistContext } from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/create-wishlist/compound/create-wishlist-dialog";
|
|
2
2
|
import { Button } from "@mui/material";
|
|
3
3
|
import Grid from "@mui/material/Grid2";
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
|
-
import
|
|
5
|
+
import { useContext } from "react";
|
|
6
6
|
|
|
7
7
|
function BottomUI() {
|
|
8
8
|
const t = useTranslations("Account.Wishlists");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// API
|
|
2
2
|
import useCreateWishlist from "@evenicanpm/storefront-core/src/api-manager/services/user/mutations/create-wishlist";
|
|
3
3
|
// Global Custom components
|
|
4
|
-
import { H5 } from "@evenicanpm/storefront-core/src/components
|
|
5
|
-
import CreateNewWishlistForm from "@evenicanpm/storefront-core/src/components
|
|
4
|
+
import { H5 } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
5
|
+
import CreateNewWishlistForm from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/create-wishlist/compound/create-wishlist-form";
|
|
6
6
|
import { useNotification } from "@evenicanpm/storefront-core/src/providers/notifications/use-notification";
|
|
7
7
|
import { CircularProgress, Dialog, DialogContent } from "@mui/material";
|
|
8
8
|
// Forms
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// Global Custom components
|
|
6
|
-
import BottomUI from "@evenicanpm/storefront-core/src/components
|
|
7
|
-
import { CreateNewWishlistContext } from "@evenicanpm/storefront-core/src/components
|
|
6
|
+
import BottomUI from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/create-wishlist/compound/create-wishlist-bottom-ui";
|
|
7
|
+
import { CreateNewWishlistContext } from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/create-wishlist/compound/create-wishlist-dialog";
|
|
8
8
|
import { Box, Checkbox, FormControlLabel, TextField } from "@mui/material";
|
|
9
9
|
import Grid from "@mui/material/Grid2";
|
|
10
10
|
import { useTranslations } from "next-intl";
|
package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/create-wishlist-button.tsx
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import T from "@evenicanpm/storefront-core/src/components
|
|
4
|
-
import CreateNewListDialog from "@evenicanpm/storefront-core/src/components
|
|
3
|
+
import T from "@evenicanpm/storefront-core/src/components/T";
|
|
4
|
+
import CreateNewListDialog from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/create-wishlist/index";
|
|
5
5
|
import { Button } from "@mui/material";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import CreateNewList from "@evenicanpm/storefront-core/src/components
|
|
1
|
+
import CreateNewList from "@evenicanpm/storefront-core/src/components/wishlist-dialogs/create-wishlist/compound/create-wishlist-dialog";
|
|
2
2
|
|
|
3
3
|
interface Props {
|
|
4
4
|
open: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import NavLink, {
|
|
2
2
|
type NavLinkProps,
|
|
3
|
-
} from "@evenicanpm/storefront-core/src/components
|
|
3
|
+
} from "@evenicanpm/storefront-core/src/components/nav-link/nav-link";
|
|
4
4
|
import Card, { type CardProps } from "@mui/material/Card";
|
|
5
5
|
import styled from "@mui/material/styles/styled";
|
|
6
6
|
import type { ComponentType } from "react";
|
|
@@ -42,7 +42,10 @@ export function useAppSession() {
|
|
|
42
42
|
await initializeMsal();
|
|
43
43
|
const res = await getMsalInstance().handleRedirectPromise();
|
|
44
44
|
if (res) {
|
|
45
|
-
const { given_name, family_name } = res.idTokenClaims as
|
|
45
|
+
const { given_name, family_name } = res.idTokenClaims as {
|
|
46
|
+
given_name?: string;
|
|
47
|
+
family_name?: string;
|
|
48
|
+
};
|
|
46
49
|
if (given_name && family_name) {
|
|
47
50
|
updateUser({
|
|
48
51
|
AccountNumber: "",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
|
|
5
5
|
export default function useOverflowDetect() {
|
|
6
6
|
const elementRef = useRef<HTMLElement | null>(null);
|
|
7
7
|
const [isLeftOverflowing, setLeftIsOverflowing] = useState(false);
|
|
8
8
|
const [isRightOverflowing, setRightIsOverflowing] = useState(false);
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const checkOverflow = useCallback(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
12
|
|
|
13
13
|
if (element) {
|
|
@@ -19,7 +19,7 @@ export default function useOverflowDetect() {
|
|
|
19
19
|
|
|
20
20
|
if (elementRect.right > viewportWidth) setRightIsOverflowing(true);
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
}, []);
|
|
23
23
|
|
|
24
24
|
useEffect(() => {
|
|
25
25
|
window.addEventListener("resize", checkOverflow);
|
|
@@ -28,7 +28,7 @@ export default function useOverflowDetect() {
|
|
|
28
28
|
return () => {
|
|
29
29
|
window.removeEventListener("resize", checkOverflow);
|
|
30
30
|
};
|
|
31
|
-
}, []);
|
|
31
|
+
}, [checkOverflow]);
|
|
32
32
|
|
|
33
33
|
return { elementRef, isRightOverflowing, isLeftOverflowing, checkOverflow };
|
|
34
34
|
}
|
package/src/lib/lib.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { formatDistanceStrict } from "date-fns";
|
|
|
9
9
|
|
|
10
10
|
function getDateDifference(date: string | number | Date) {
|
|
11
11
|
const distance = formatDistanceStrict(new Date(), new Date(date));
|
|
12
|
-
return distance
|
|
12
|
+
return `${distance} ago`;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -58,4 +58,4 @@ function currency(price: number, fraction = 2) {
|
|
|
58
58
|
return formatCurrency;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export { currency, getDateDifference,
|
|
61
|
+
export { calculateDiscount, currency, getDateDifference, renderProductCount };
|
package/src/lib/page-slugs.ts
CHANGED
package/src/lib/refiner-utils.ts
CHANGED
|
@@ -12,11 +12,11 @@ const convertParameterToRefiner = (parameter: string): ProductRefinerValue => {
|
|
|
12
12
|
sourceValue,
|
|
13
13
|
] = parameter.split("|");
|
|
14
14
|
return {
|
|
15
|
-
RefinerRecordId: Number.parseInt(recordId),
|
|
16
|
-
DataTypeValue: Number.parseInt(dataTypeValue),
|
|
15
|
+
RefinerRecordId: Number.parseInt(recordId, 10),
|
|
16
|
+
DataTypeValue: Number.parseInt(dataTypeValue, 10),
|
|
17
17
|
LeftValueBoundString: leftBoundString,
|
|
18
18
|
RightValueBoundString: rightBoundString,
|
|
19
|
-
RefinerSourceValue: Number.parseInt(sourceValue),
|
|
19
|
+
RefinerSourceValue: Number.parseInt(sourceValue, 10),
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ const areRefinersEqual = (r1: ProductRefinerValue, r2: ProductRefinerValue) =>
|
|
|
26
26
|
r1.RightValueBoundString === r2.RightValueBoundString;
|
|
27
27
|
|
|
28
28
|
export {
|
|
29
|
-
convertRefinerToParameter,
|
|
30
|
-
convertParameterToRefiner,
|
|
31
29
|
areRefinersEqual,
|
|
30
|
+
convertParameterToRefiner,
|
|
31
|
+
convertRefinerToParameter,
|
|
32
32
|
};
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
import getUser from "@evenicanpm/storefront-core/src/api-manager/services/user/queries/get-user";
|
|
5
5
|
import getUserCounts from "@evenicanpm/storefront-core/src/api-manager/services/user/queries/get-user-counts";
|
|
6
6
|
// GLOBAL CUSTOM COMPONENTS
|
|
7
|
-
import FlexBox from "@evenicanpm/storefront-core/src/components
|
|
7
|
+
import FlexBox from "@evenicanpm/storefront-core/src/components/flex-box/flex-box";
|
|
8
8
|
import {
|
|
9
9
|
Paragraph,
|
|
10
10
|
Span,
|
|
11
|
-
} from "@evenicanpm/storefront-core/src/components
|
|
11
|
+
} from "@evenicanpm/storefront-core/src/components/Typography";
|
|
12
12
|
// STYLED COMPONENTS
|
|
13
13
|
import {
|
|
14
14
|
MainContainer,
|
|
15
15
|
StyledNavLink,
|
|
16
|
-
} from "@evenicanpm/storefront-core/src/pages
|
|
16
|
+
} from "@evenicanpm/storefront-core/src/pages/account/styles";
|
|
17
17
|
import { usePathname } from "next/navigation";
|
|
18
18
|
import { useTranslations } from "next-intl";
|
|
19
19
|
import { createContext, Fragment, type ReactNode } from "react";
|
|
@@ -114,25 +114,22 @@ const AccountNavigation = ({ items, children }: AccountNavigationProps) => {
|
|
|
114
114
|
return (
|
|
115
115
|
<AccountNavigationContext.Provider value={{ items: mergedItems }}>
|
|
116
116
|
<MainContainer>
|
|
117
|
-
{children ||
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
))}
|
|
134
|
-
</>
|
|
135
|
-
)}
|
|
117
|
+
{children ||
|
|
118
|
+
mergedItems.map((section) => (
|
|
119
|
+
<AccountNavigation.Section
|
|
120
|
+
key={section.title}
|
|
121
|
+
title={section.title}
|
|
122
|
+
>
|
|
123
|
+
{section.list.map((item) => (
|
|
124
|
+
<AccountNavigation.Item
|
|
125
|
+
key={item.title}
|
|
126
|
+
{...item}
|
|
127
|
+
isActive={pathname?.includes(item.href) ?? false}
|
|
128
|
+
label={t(item.title)}
|
|
129
|
+
/>
|
|
130
|
+
))}
|
|
131
|
+
</AccountNavigation.Section>
|
|
132
|
+
))}
|
|
136
133
|
</MainContainer>
|
|
137
134
|
</AccountNavigationContext.Provider>
|
|
138
135
|
);
|
|
@@ -156,7 +153,7 @@ AccountNavigation.Section = ({ title, children }: SectionProps) => {
|
|
|
156
153
|
|
|
157
154
|
interface ItemProps {
|
|
158
155
|
href: string;
|
|
159
|
-
Icon: React.ComponentType<
|
|
156
|
+
Icon: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
160
157
|
count?: number;
|
|
161
158
|
label: string;
|
|
162
159
|
isActive?: boolean;
|
|
@@ -28,8 +28,18 @@ import { useLocale, useTranslations } from "next-intl";
|
|
|
28
28
|
import React, { createContext, useContext } from "react";
|
|
29
29
|
import { z } from "zod";
|
|
30
30
|
|
|
31
|
+
interface AddressFormValues {
|
|
32
|
+
Name: string;
|
|
33
|
+
Street: string;
|
|
34
|
+
City: string;
|
|
35
|
+
State: string;
|
|
36
|
+
ZipCode: string;
|
|
37
|
+
Country: string;
|
|
38
|
+
Phone: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
31
41
|
interface FormContextValue {
|
|
32
|
-
formik: ReturnType<typeof useFormik<
|
|
42
|
+
formik: ReturnType<typeof useFormik<AddressFormValues>>;
|
|
33
43
|
countries: CountryRegionInfo[] | undefined;
|
|
34
44
|
states: { StateId?: string; StateName?: string }[] | undefined;
|
|
35
45
|
selectedCountry: CountryRegionInfo | null;
|
|
@@ -78,9 +88,7 @@ const AddressForm = ({ address, children }: RootProps) => {
|
|
|
78
88
|
Phone: z.string().optional().default(""),
|
|
79
89
|
});
|
|
80
90
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
const initialValues: FormSchemaType = {
|
|
91
|
+
const initialValues: AddressFormValues = {
|
|
84
92
|
Name: address?.Name ?? "",
|
|
85
93
|
Street: address?.Street ?? "",
|
|
86
94
|
City: address?.City ?? "",
|
|
@@ -90,7 +98,7 @@ const AddressForm = ({ address, children }: RootProps) => {
|
|
|
90
98
|
Phone: address?.Phone ?? "",
|
|
91
99
|
};
|
|
92
100
|
|
|
93
|
-
const handleSubmit = async (values:
|
|
101
|
+
const handleSubmit = async (values: AddressFormValues) => {
|
|
94
102
|
let newAddress: Address = {
|
|
95
103
|
Name: values.Name,
|
|
96
104
|
Street: values.Street,
|
|
@@ -123,7 +131,7 @@ const AddressForm = ({ address, children }: RootProps) => {
|
|
|
123
131
|
}
|
|
124
132
|
};
|
|
125
133
|
|
|
126
|
-
const formik = useFormik<
|
|
134
|
+
const formik = useFormik<AddressFormValues>({
|
|
127
135
|
initialValues,
|
|
128
136
|
onSubmit: handleSubmit,
|
|
129
137
|
validate: withZodSchema(FormSchema),
|
|
@@ -140,7 +148,7 @@ const AddressForm = ({ address, children }: RootProps) => {
|
|
|
140
148
|
|
|
141
149
|
// ------------------- Fields -------------------
|
|
142
150
|
interface FieldProps {
|
|
143
|
-
name: keyof
|
|
151
|
+
name: keyof AddressFormValues;
|
|
144
152
|
label?: string;
|
|
145
153
|
required?: boolean;
|
|
146
154
|
}
|
|
@@ -5,8 +5,8 @@ import type { Address } from "@evenicanpm/storefront-core/src/api-manager/schema
|
|
|
5
5
|
import useDeleteAddress from "@evenicanpm/storefront-core/src/api-manager/services/address/mutations/delete-address";
|
|
6
6
|
import useUpdateUser from "@evenicanpm/storefront-core/src/api-manager/services/user/mutations/update-user";
|
|
7
7
|
// Custom Components
|
|
8
|
-
import { Paragraph } from "@evenicanpm/storefront-core/src/components
|
|
9
|
-
import TableRow from "@evenicanpm/storefront-core/src/pages
|
|
8
|
+
import { Paragraph } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
9
|
+
import TableRow from "@evenicanpm/storefront-core/src/pages/account/table-row";
|
|
10
10
|
import { useNotification } from "@evenicanpm/storefront-core/src/providers/notifications/use-notification";
|
|
11
11
|
import { Box, Button, Chip } from "@mui/material";
|
|
12
12
|
import IconButton from "@mui/material/IconButton";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import FlexBox from "@evenicanpm/storefront-core/src/components
|
|
3
|
+
import FlexBox from "@evenicanpm/storefront-core/src/components/flex-box/flex-box";
|
|
4
4
|
// GLOBAL CUSTOM COMPONENTS
|
|
5
|
-
import SideNav from "@evenicanpm/storefront-core/src/components
|
|
6
|
-
import { H2 } from "@evenicanpm/storefront-core/src/components
|
|
7
|
-
import Navigation from "@evenicanpm/storefront-core/src/pages
|
|
5
|
+
import SideNav from "@evenicanpm/storefront-core/src/components/side-nav/index";
|
|
6
|
+
import { H2 } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
7
|
+
import Navigation from "@evenicanpm/storefront-core/src/pages/account/account-navigation";
|
|
8
8
|
import {
|
|
9
9
|
Box,
|
|
10
10
|
Button,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "@mui/material";
|
|
16
16
|
import Link from "next/link";
|
|
17
17
|
import { useTranslations } from "next-intl";
|
|
18
|
-
import
|
|
18
|
+
import { createContext, type ReactNode, useContext } from "react";
|
|
19
19
|
import type { IconType } from "react-icons";
|
|
20
20
|
import { MdMenu as Menu } from "react-icons/md";
|
|
21
21
|
|
|
@@ -2,6 +2,7 @@ import createSvgIcon from "@mui/material/utils/createSvgIcon";
|
|
|
2
2
|
|
|
3
3
|
const Delivery = createSvgIcon(
|
|
4
4
|
<svg fill="currentColor" viewBox="0 0 32 32">
|
|
5
|
+
<title>Delivery</title>
|
|
5
6
|
<path d="M24.0531 1.69349L23.7031 2.33374C23.5704 2.57647 23.3708 2.77603 23.1281 2.90874L22.4878 3.25874C22.4584 3.27482 22.4339 3.29852 22.4167 3.32735C22.3996 3.35619 22.3906 3.38909 22.3906 3.42262C22.3906 3.45614 22.3996 3.48905 22.4167 3.51788C22.4339 3.54671 22.4584 3.57041 22.4878 3.58649L23.1281 3.93649C23.3708 4.0692 23.5704 4.26876 23.7031 4.51149L24.0531 5.15174C24.0691 5.18122 24.0928 5.20583 24.1217 5.22297C24.1506 5.24011 24.1835 5.24916 24.2171 5.24916C24.2506 5.24916 24.2836 5.24011 24.3124 5.22297C24.3413 5.20583 24.365 5.18122 24.3811 5.15174L24.7311 4.51149C24.8639 4.26884 25.0634 4.0693 25.3061 3.93649L25.9463 3.58649C25.9757 3.57041 26.0003 3.54671 26.0174 3.51788C26.0345 3.48905 26.0435 3.45614 26.0435 3.42262C26.0435 3.38909 26.0345 3.35619 26.0174 3.32735C26.0003 3.29852 25.9757 3.27482 25.9463 3.25874L25.3061 2.90874C25.0634 2.77593 24.8639 2.5764 24.7311 2.33374L24.3811 1.69349C24.365 1.66401 24.3413 1.63941 24.3124 1.62226C24.2836 1.60512 24.2506 1.59607 24.2171 1.59607C24.1835 1.59607 24.1506 1.60512 24.1217 1.62226C24.0928 1.63941 24.0691 1.66401 24.0531 1.69349Z" />
|
|
6
7
|
<path d="M27.4868 6.42496L27.2408 6.87496C27.1475 7.04555 27.0072 7.18577 26.8366 7.27896L26.3866 7.52496C26.3659 7.53626 26.3487 7.55292 26.3367 7.57317C26.3247 7.59343 26.3184 7.61654 26.3184 7.64008C26.3184 7.66363 26.3247 7.68674 26.3367 7.70699C26.3487 7.72725 26.3659 7.7439 26.3866 7.75521L26.8366 8.00121C27.0072 8.0944 27.1475 8.23462 27.2408 8.40521L27.4868 8.85521C27.4981 8.87593 27.5147 8.89323 27.535 8.90528C27.5552 8.91733 27.5784 8.9237 27.602 8.9237C27.6255 8.9237 27.6487 8.91733 27.6689 8.90528C27.6892 8.89323 27.7058 8.87593 27.7171 8.85521L27.9631 8.40521C28.0562 8.23422 28.1964 8.09357 28.3671 7.99996L28.8171 7.75396C28.8377 7.74265 28.855 7.726 28.867 7.70574C28.879 7.68549 28.8853 7.66238 28.8853 7.63883C28.8853 7.61529 28.879 7.59218 28.867 7.57192C28.855 7.55167 28.8377 7.53501 28.8171 7.52371L28.3671 7.27771C28.1966 7.18443 28.0564 7.04423 27.9631 6.87371L27.7171 6.42371C27.7057 6.40305 27.689 6.38584 27.6687 6.37389C27.6483 6.36195 27.6252 6.35571 27.6016 6.35584C27.578 6.35596 27.5549 6.36245 27.5347 6.37462C27.5145 6.38678 27.498 6.40417 27.4868 6.42496Z" />
|
|
7
8
|
<path d="M22.72 27.117C22.2155 26.7778 21.395 26.9463 20.616 27.144C20.3484 27.2145 20.0852 27.3007 19.8278 27.402C19.3339 27.6067 18.806 27.717 18.2715 27.727C17.6673 27.717 16.961 27.5575 16.5123 27.8078C16.4668 27.8331 16.4165 27.8487 16.3647 27.8536C16.3129 27.8584 16.2606 27.8524 16.2112 27.8359C16.1618 27.8195 16.1164 27.7929 16.0779 27.7579C16.0393 27.723 16.0084 27.6803 15.9873 27.6328C15.951 27.541 15.9505 27.439 15.9859 27.3469C16.0214 27.2548 16.0901 27.1794 16.1785 27.1355C16.8433 26.7855 17.6623 27.0173 18.3395 27.1148C18.742 27.1795 19.1513 27.1907 19.5568 27.1483C19.6799 27.1304 19.7915 27.066 19.8685 26.9684C19.9456 26.8707 19.9823 26.7472 19.971 26.6233C19.9497 26.5028 19.8999 26.3892 19.8257 26.2919C19.7515 26.1946 19.6551 26.1165 19.5445 26.064C19.1475 25.8553 17.709 25.464 16.7735 25.273C15.285 24.9739 13.739 25.1859 12.386 25.8748C11.6408 26.2278 9.50876 27.6795 8.98101 28.504C8.90689 28.6092 8.8747 28.7382 8.89076 28.8658C8.94426 29.3465 10.3875 30.7326 10.8303 30.8761C10.9111 30.9062 10.9981 30.9159 11.0836 30.9044C11.1692 30.8929 11.2505 30.8605 11.3205 30.8101C11.5873 30.6386 12.174 30.0625 12.765 29.855C13.8595 29.47 15.6748 29.8025 16.5585 29.7815C17.8585 29.7503 22.201 28.6373 22.8718 28.0315C23.1388 27.7913 23.0415 27.333 22.72 27.117Z" />
|
|
@@ -2,6 +2,7 @@ import createSvgIcon from "@mui/material/utils/createSvgIcon";
|
|
|
2
2
|
|
|
3
3
|
const PackageBox = createSvgIcon(
|
|
4
4
|
<svg fill="currentColor" viewBox="0 0 32 32">
|
|
5
|
+
<title>Package Box</title>
|
|
5
6
|
<path d="M7.40692 11.3465L20.5779 4.304L16.0004 2L2.41992 8.836L7.40692 11.3465Z" />
|
|
6
7
|
<path d="M24.5773 6.3175L11.4062 13.36L15.9998 15.6725L29.5803 8.83601L24.5773 6.3175Z" />
|
|
7
8
|
<path d="M15.625 16.3275L11 13.9995V19.1145L9 17.101H7V11.986L2 9.46948V23.1415L15.625 30V16.3275Z" />
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FlexBetween,
|
|
3
3
|
FlexBox,
|
|
4
|
-
} from "@evenicanpm/storefront-core/src/components
|
|
4
|
+
} from "@evenicanpm/storefront-core/src/components/flex-box/index";
|
|
5
5
|
// GLOBAL CUSTOM COMPONENTS
|
|
6
|
-
import { Paragraph } from "@evenicanpm/storefront-core/src/components
|
|
6
|
+
import { Paragraph } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
7
7
|
// CUSTOM ICON COMPONENTS
|
|
8
|
-
import Delivery from "@evenicanpm/storefront-core/src/pages
|
|
9
|
-
import PackageBox from "@evenicanpm/storefront-core/src/pages
|
|
10
|
-
import TruckFilled from "@evenicanpm/storefront-core/src/pages
|
|
8
|
+
import Delivery from "@evenicanpm/storefront-core/src/pages/account/orders/icons/delivery";
|
|
9
|
+
import PackageBox from "@evenicanpm/storefront-core/src/pages/account/orders/icons/package-box";
|
|
10
|
+
import TruckFilled from "@evenicanpm/storefront-core/src/pages/account/orders/icons/truck-filled";
|
|
11
11
|
import Avatar from "@mui/material/Avatar";
|
|
12
12
|
import Box from "@mui/material/Box";
|
|
13
13
|
import Card from "@mui/material/Card";
|
|
@@ -2,9 +2,9 @@ import type { SalesOrder } from "@evenicanpm/storefront-core/src/api-manager/sch
|
|
|
2
2
|
import {
|
|
3
3
|
H6,
|
|
4
4
|
Paragraph,
|
|
5
|
-
} from "@evenicanpm/storefront-core/src/components
|
|
5
|
+
} from "@evenicanpm/storefront-core/src/components/Typography";
|
|
6
6
|
import useCurrencyFormatter from "@evenicanpm/storefront-core/src/lib/currency-formatter";
|
|
7
|
-
import TableRow from "@evenicanpm/storefront-core/src/pages
|
|
7
|
+
import TableRow from "@evenicanpm/storefront-core/src/pages/account/table-row";
|
|
8
8
|
import type { ChipProps } from "@mui/material";
|
|
9
9
|
import Box from "@mui/material/Box";
|
|
10
10
|
import Chip from "@mui/material/Chip";
|