@evenicanpm/storefront-core 1.0.5 → 1.1.0
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 +37 -0
- package/.storybook/preview.ts +14 -0
- package/README.md +17 -2
- package/__mocks__/next-font.js +4 -0
- package/package.json +19 -13
- package/src/api-manager/datasources/e4/graphqlRequestSdk.ts +265 -5
- package/src/api-manager/schemas/product.schema.ts +2 -2
- package/src/api-manager/services/cart/mutations/add-discount-code.ts +11 -0
- package/src/api-manager/services/cart/mutations/checkout.ts +1 -1
- package/src/api-manager/services/create-query.ts +11 -4
- package/src/api-manager/services/product/queries/get-product-availability.ts +1 -2
- package/src/api-manager/services/user/mutations/add-to-wishlist.ts +2 -2
- package/src/api-manager/services/user/mutations/copy-cart-to-wishlist.ts +2 -1
- package/src/api-manager/services/user/mutations/remove-from-wishlist.ts +4 -4
- package/src/api-manager/services/user/mutations/update-wishlist.ts +2 -1
- package/src/api-manager/services/user/queries/get-wishlist-details.ts +2 -2
- package/src/cms/blocks/components/product-carousel/index.tsx +6 -3
- package/src/cms/blocks/components/product-section-fullwidth/index.tsx +2 -2
- package/src/cms/blocks/components/shared/product-grid.tsx +5 -2
- package/src/cms/interfaces/navigation.ts +9 -9
- package/src/components/Blocks/Components/CategoryCarousel/index.tsx +3 -3
- package/src/components/Blocks/Components/HeroCarousel/index.tsx +2 -2
- package/src/components/Blocks/Components/ProductCarousel/index.tsx +5 -5
- package/src/components/Blocks/Components/ProductSectionFullWidth/index.tsx +6 -6
- package/src/components/Blocks/Components/Services/service-card.tsx +4 -1
- package/src/components/Blocks/Components/shared/featured-product-card.tsx +2 -2
- package/src/components/Blocks/Components/shared/product-category-item.tsx +3 -3
- package/src/components/Blocks/Components/shared/product-grid.tsx +2 -2
- package/src/components/Blocks/Components/shared/top-categories-card.tsx +1 -1
- package/src/components/Blocks/Components/shared/top-rating-product-card.tsx +6 -3
- package/src/components/Footer/sections/FooterAppStore.tsx +1 -1
- package/src/components/Footer/sections/FooterContact.tsx +1 -1
- package/src/components/Footer/sections/FooterLogo.tsx +2 -2
- package/src/components/Footer/sections/FooterSocialLinks.tsx +1 -1
- package/src/components/_components/MiniCartClient.tsx +2 -2
- package/src/components/_components/accordion/accordion-header.tsx +1 -1
- package/src/components/_components/carousel-cards/carousel-card-1/carousel-card-1.tsx +2 -2
- package/src/components/_components/carousel-cards/carousel-card-2/carousel-card-2.tsx +9 -4
- package/src/components/_components/carousel-cards/carousel-card-3/carousel-card-3.tsx +6 -3
- package/src/components/_components/carousel-cards/carousel-card-4/carousel-card-4.tsx +6 -1
- package/src/components/_components/categories/category-list/category-list.tsx +3 -3
- package/src/components/_components/categories/mega-menu/banner.tsx +7 -3
- package/src/components/_components/categories/mega-menu/column-list.tsx +3 -3
- package/src/components/_components/categories/mega-menu/mega-menu-1.tsx +2 -2
- package/src/components/_components/category-cards/category-card-1/category-card-1.tsx +2 -2
- package/src/components/_components/countdown/count-box.tsx +4 -1
- package/src/components/_components/countdown/count-down.tsx +1 -1
- package/src/components/_components/data-table/table-header.tsx +1 -1
- package/src/components/_components/footer/components/app-store.tsx +1 -1
- package/src/components/_components/footer/components/logo.tsx +2 -2
- package/src/components/_components/footer/components/social-links.tsx +1 -1
- package/src/components/_components/footer/footer-1.tsx +1 -1
- package/src/components/_components/footer/footer-2.tsx +2 -2
- package/src/components/_components/footer/footer-3.tsx +2 -2
- package/src/components/_components/footer/footer-4.tsx +3 -3
- package/src/components/_components/header/components/categories-menu.tsx +3 -3
- package/src/components/_components/header/components/mobile-header.tsx +9 -6
- package/src/components/_components/header/components/user.tsx +5 -5
- package/src/components/_components/header/header.tsx +2 -2
- package/src/components/_components/header/sticky-header.tsx +3 -3
- package/src/components/_components/mini-cart/components/cart-item.tsx +5 -2
- package/src/components/_components/mini-cart/components/empty-view.tsx +2 -2
- package/src/components/_components/mini-cart/components/top-header.tsx +5 -2
- package/src/components/_components/mini-cart/mini-cart.tsx +3 -3
- package/src/components/_components/mobile-navigation/mobile-navigation-bar.tsx +5 -5
- package/src/components/_components/nav-link/nav-link-2.tsx +1 -1
- package/src/components/_components/nav-link/nav-link-3.tsx +1 -1
- package/src/components/_components/navbar/categories.tsx +3 -3
- package/src/components/_components/navbar/category-based-menu/category-based-menu.tsx +1 -1
- package/src/components/_components/navbar/category-based-menu/components/child-categories.tsx +2 -2
- package/src/components/_components/navbar/mega-menu/category-list.tsx +1 -1
- package/src/components/_components/navbar/mega-menu/mega-menu.tsx +1 -1
- package/src/components/_components/navbar/mobile-menu/mobile-menu.tsx +2 -2
- package/src/components/_components/navbar/mobile-menu/render-levels.tsx +3 -3
- package/src/components/_components/navbar/nav-list/nav-item-child.tsx +3 -3
- package/src/components/_components/navbar/nav-list/nav-list.tsx +4 -4
- package/src/components/_components/newsletter/newsletter.tsx +5 -1
- package/src/components/_components/newsletter/social-icons.tsx +1 -1
- package/src/components/_components/page-sidenav/grocery-side-nav/components/link-item.tsx +2 -2
- package/src/components/_components/page-sidenav/grocery-side-nav/components/list-item.tsx +2 -2
- package/src/components/_components/page-sidenav/grocery-side-nav/components/nav-accordion.tsx +2 -2
- package/src/components/_components/page-sidenav/grocery-side-nav/grocery-side-nav.tsx +3 -3
- package/src/components/_components/page-sidenav/health-beauty-side-nav/components/list-item.tsx +2 -2
- package/src/components/_components/page-sidenav/health-beauty-side-nav/components/nav-accordion.tsx +2 -2
- package/src/components/_components/page-sidenav/health-beauty-side-nav/components/render-child.tsx +2 -2
- package/src/components/_components/page-sidenav/health-beauty-side-nav/health-beauty-side-nav.tsx +5 -5
- package/src/components/_components/page-sidenav/side-navbar/components/list-item.tsx +1 -1
- package/src/components/_components/page-sidenav/side-navbar/components/nav-accordion.tsx +3 -3
- package/src/components/_components/page-sidenav/side-navbar/components/render-child.tsx +1 -1
- package/src/components/_components/page-sidenav/side-navbar/side-nav-bar.tsx +4 -4
- package/src/components/_components/page-sidenav/side-navbar-2/components/sidebar-accordion.tsx +1 -1
- package/src/components/_components/page-sidenav/side-navbar-2/side-navbar-2.tsx +2 -2
- package/src/components/_components/product-cards/product-card-1/components/quantity-buttons.tsx +2 -2
- package/src/components/_components/product-cards/product-card-1/product-card.tsx +2 -2
- package/src/components/_components/product-cards/product-card-10/product-card.tsx +9 -5
- package/src/components/_components/product-cards/product-card-11/product-card.tsx +6 -3
- package/src/components/_components/product-cards/product-card-12/product-card.tsx +4 -4
- package/src/components/_components/product-cards/product-card-13/product-card.tsx +6 -3
- package/src/components/_components/product-cards/product-card-14/product-card.tsx +7 -4
- package/src/components/_components/product-cards/product-card-15/product-card.tsx +6 -3
- package/src/components/_components/product-cards/product-card-16/components/quantity-buttons.tsx +2 -2
- package/src/components/_components/product-cards/product-card-16/product-card.tsx +5 -2
- package/src/components/_components/product-cards/product-card-2/components/product-price.tsx +2 -2
- package/src/components/_components/product-cards/product-card-2/product-card.tsx +4 -4
- package/src/components/_components/product-cards/product-card-3/components/hover-actions.tsx +1 -1
- package/src/components/_components/product-cards/product-card-3/product-card.tsx +2 -2
- package/src/components/_components/product-cards/product-card-4/components/hover-actions.tsx +1 -1
- package/src/components/_components/product-cards/product-card-4/product-card.tsx +2 -2
- package/src/components/_components/product-cards/product-card-5/components/hover-actions.tsx +1 -1
- package/src/components/_components/product-cards/product-card-5/product-card.tsx +2 -2
- package/src/components/_components/product-cards/product-card-6/components/hover-actions.tsx +1 -1
- package/src/components/_components/product-cards/product-card-6/product-card.tsx +3 -3
- package/src/components/_components/product-cards/product-card-7/components/quantity-buttons.tsx +2 -2
- package/src/components/_components/product-cards/product-card-7/product-card.tsx +5 -2
- package/src/components/_components/product-cards/product-card-8/product-card.tsx +9 -5
- package/src/components/_components/product-cards/product-card-9/components/add-to-cart.tsx +5 -2
- package/src/components/_components/product-cards/product-card-9/product-card.tsx +1 -1
- package/src/components/_components/product-cards/product-price.tsx +2 -2
- package/src/components/_components/product-cards/product-rating.tsx +2 -2
- package/src/components/_components/product-cards/product-title.tsx +1 -1
- package/src/components/_components/product-cards/use-product.ts +1 -1
- package/src/components/_components/product-dimensions/product-dimensions.tsx +1 -1
- package/src/components/_components/product-quantity-buttons/product-quantity-buttons.tsx +2 -2
- package/src/components/_components/products-view/products-grid-view.tsx +2 -2
- package/src/components/_components/products-view/products-list-view.tsx +2 -2
- package/src/components/_components/search-box/components/category-dropdown.tsx +1 -1
- package/src/components/_components/search-box/components/search-result.tsx +1 -1
- package/src/components/_components/search-box/hooks/use-search.ts +1 -1
- package/src/components/_components/search-box/search-input-category.tsx +3 -3
- package/src/components/_components/service-cards/service-card-1/service-card-1.tsx +5 -2
- package/src/components/_components/service-cards/service-card-2/service-card-2.tsx +5 -2
- package/src/components/_components/service-cards/service-card-3/service-card-3.tsx +4 -1
- package/src/components/_components/settings/setting.tsx +3 -3
- package/src/components/_components/side-nav/side-nav.tsx +1 -1
- package/src/components/_components/stories/story-content/story-content.tsx +1 -1
- package/src/components/_components/stories/story-item/story-item.tsx +1 -1
- package/src/components/_components/topbar/top-bar.tsx +6 -3
- package/src/components/_components/wishlist-modal/wishlist-modal-item.tsx +1 -1
- package/src/components-v2/accordion/accordion-header.stories.tsx +28 -0
- package/src/components-v2/categories/category-list/category-list.tsx +2 -2
- package/src/components-v2/categories/category-list/styles.ts +3 -2
- package/src/components-v2/categories/mega-menu/column-list.tsx +1 -1
- package/src/components-v2/categories/mega-menu/mega-menu-1.tsx +6 -3
- package/src/components-v2/categories/mega-menu/mega-menu-2.tsx +2 -2
- package/src/components-v2/header/__tests__/user.test.tsx +12 -12
- package/src/components-v2/header/components/user.tsx +12 -11
- package/src/components-v2/mini-cart/mini-cart.tsx +9 -14
- package/src/components-v2/mobile-navigation/mobile-navigation-bar.tsx +1 -1
- package/src/components-v2/navbar/mobile-menu/mobile-menu.tsx +2 -2
- package/src/components-v2/product-cards/favorite-button.tsx +52 -0
- package/src/components-v2/product-cards/product-card/product-card.tsx +87 -47
- package/src/components-v2/product-cards/product-card-plp/product-card.tsx +140 -51
- package/src/components-v2/product-cards/product-card-plp/styles/index.ts +17 -0
- package/src/components-v2/product-cards/product-card-plp-list/product-card.tsx +76 -42
- package/src/components-v2/product-cards/product-card-search/product-card.tsx +50 -21
- package/src/components-v2/product-cards/product-card-search/styles/index.ts +0 -10
- package/src/components-v2/product-dialog/compound/product-dialog.tsx +39 -15
- package/src/components-v2/product-quantity-buttons/compound/quantity-buttons-root.tsx +22 -7
- package/src/components-v2/product-quantity-variants/index.tsx +1 -1
- package/src/components-v2/products-view/compound/context.ts +46 -1
- package/src/components-v2/products-view/compound/products-grid-view.tsx +23 -14
- package/src/components-v2/products-view/compound/products-list-view.tsx +12 -3
- package/src/components-v2/search-bar/compound/context.ts +24 -3
- package/src/components-v2/search-bar/compound/results-item-lg.tsx +14 -13
- package/src/components-v2/search-bar/compound/results-item-sm.tsx +5 -5
- package/src/components-v2/search-bar/compound/results-suspense.tsx +3 -3
- package/src/components-v2/search-bar/compound/results.tsx +4 -4
- package/src/components-v2/search-bar/compound/textfield-adornment-category.tsx +1 -1
- package/src/components-v2/search-bar/compound/textfield.tsx +3 -3
- package/src/components-v2/search-bar/hooks/use-click-outside.ts +1 -1
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/add-to-wishlist-button.tsx +2 -6
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-bottom-ui.tsx +6 -1
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-dialog.tsx +22 -15
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-list.tsx +8 -7
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/context.ts +8 -8
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-item.tsx +29 -19
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/hooks/use-add-to-wishlist.ts +27 -77
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/index.tsx +1 -9
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-bottom-ui.tsx +7 -2
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-dialog.tsx +20 -12
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-form.tsx +25 -5
- package/src/hooks/use-cart.ts +11 -14
- package/src/hooks/use-favorite.ts +17 -0
- package/src/hooks/use-variants.ts +4 -3
- package/src/pages/account/addresses/address-item.tsx +1 -1
- package/src/pages/account/dashboard-header.tsx +3 -3
- package/src/pages/account/navigation.tsx +5 -2
- package/src/pages/account/no-records.tsx +1 -1
- package/src/pages/account/orders/order-progress.tsx +5 -2
- package/src/pages/account/orders/order-row.tsx +4 -1
- package/src/pages/account/orders/order-summary.tsx +6 -2
- package/src/pages/account/orders/ordered-products.tsx +9 -2
- package/src/pages/account/profile/user-info.tsx +5 -2
- package/src/pages/account/wishlist/create-new-list.tsx +1 -1
- package/src/pages/account/wishlist/wishlist-item.tsx +2 -2
- package/src/pages/checkout/checkout-alt-form/address-card.tsx +5 -2
- package/src/pages/checkout/checkout-alt-form/checkout-step.tsx +3 -3
- package/src/pages/checkout/checkout-alt-form/customer-information.tsx +1 -1
- package/src/pages/checkout/checkout-alt-form/delivery-address.tsx +5 -1
- package/src/pages/checkout/checkout-alt-form/delivery-options.tsx +6 -2
- package/src/pages/checkout/checkout-alt-form/edit-address-form.tsx +1 -1
- package/src/pages/checkout/checkout-alt-form/heading.tsx +2 -2
- package/src/pages/checkout/checkout-alt-form/new-address-form.tsx +9 -4
- package/src/pages/checkout/checkout-alt-form/payment-details.tsx +6 -3
- package/src/pages/checkout/checkout-alt-summary/cart-item.tsx +5 -2
- package/src/pages/checkout/checkout-alt-summary/checkout-alt-summary.tsx +4 -2
- package/src/pages/checkout/checkout-alt-summary/list-item.tsx +2 -2
- package/src/pages/confirmation/address.tsx +4 -1
- package/src/pages/confirmation/confirmation-summary.tsx +6 -3
- package/src/pages/confirmation/ordered-products.tsx +9 -2
- package/src/pages/product-details/available-shops.tsx +5 -2
- package/src/pages/product-details/bopis/find-in-store-modal.tsx +1 -1
- package/src/pages/product-details/bopis/pickup-option-select.tsx +1 -1
- package/src/pages/product-details/frequently-bought.tsx +9 -2
- package/src/pages/product-details/frequently-product-card.tsx +8 -5
- package/src/pages/product-details/product-comment.tsx +7 -2
- package/src/pages/product-details/product-description.tsx +1 -1
- package/src/pages/product-details/product-filter-card.tsx +11 -3
- package/src/pages/product-details/product-intro/product-intro-images.tsx +4 -1
- package/src/pages/product-details/product-intro/product-intro.tsx +8 -5
- package/src/pages/product-details/product-review.tsx +5 -2
- package/src/pages/product-details/related-products.tsx +2 -2
- package/src/pages/product-list/facet-group.tsx +1 -1
- package/src/pages/product-list/list-filter.tsx +5 -2
- package/src/pages/product-list/pagination.tsx +1 -1
- package/src/pages/product-list/quick-view-dialog-content.tsx +2 -2
- package/src/pages/product-list/selected-facets.tsx +1 -1
- package/src/pages/quickorder/order-upload.tsx +1 -1
- package/src/pages/quickorder/quick-order-form.tsx +6 -3
- package/src/pages/quickorder/quick-order-row.tsx +1 -1
- package/src/pages-v2/account/account-navigation.tsx +1 -1
- package/src/pages-v2/account/orders/order-summary.tsx +5 -2
- package/src/pages-v2/account/profile/user-info.tsx +6 -3
- package/src/pages-v2/account/wishlist/wishlist-item.tsx +1 -1
- package/src/pages-v2/cart/__tests__/checkout-form.test.tsx +1 -1
- package/src/pages-v2/cart/estimate-shipping.tsx +3 -0
- package/src/pages-v2/checkout/checkout-alt-form/checkout-step.tsx +4 -4
- package/src/pages-v2/checkout/checkout-alt-form/steps/address/address-card.tsx +1 -1
- package/src/pages-v2/checkout/checkout-alt-form/steps/address/delivery-address.tsx +12 -5
- package/src/pages-v2/checkout/checkout-alt-form/steps/address/new-address-form.tsx +27 -5
- package/src/pages-v2/checkout/checkout-alt-form/steps/address/styles.ts +2 -1
- package/src/pages-v2/checkout/checkout-alt-form/steps/customer-info/customer-information.tsx +27 -7
- package/src/pages-v2/checkout/checkout-alt-form/steps/shipping/delivery-options.tsx +8 -1
- package/src/pages-v2/confirmation/address.tsx +5 -1
- package/src/pages-v2/product-details/available-shops.tsx +4 -1
- package/src/pages-v2/product-details/bopis/find-in-store-button.tsx +1 -1
- package/src/pages-v2/product-details/bopis/find-in-store-modal.tsx +3 -5
- package/src/pages-v2/product-details/product-intro/compound/context.ts +69 -12
- package/src/pages-v2/product-details/product-intro/compound/product-info.tsx +73 -27
- package/src/pages-v2/product-details/product-intro/compound/product-intro-images.tsx +19 -6
- package/src/pages-v2/product-details/product-intro/utils.ts +2 -2
- package/src/pages-v2/product-details/product-tabs.tsx +19 -4
- package/src/pages-v2/product-details/related-products.tsx +3 -3
- package/src/pages-v2/quickorder/context.ts +2 -2
- package/src/pages-v2/quickorder/order-upload.tsx +6 -2
- package/src/pages-v2/quickorder/provider.tsx +24 -9
- package/src/pages-v2/quickorder/quick-order-actions.tsx +2 -2
- package/src/pages-v2/quickorder/quick-order-header.tsx +6 -3
- package/src/pages-v2/quickorder/quick-order-row.tsx +1 -1
- package/src/pages-v2/quickorder/quick-order-table.tsx +10 -4
- package/src/pages-v2/quickorder/quick-order-upload.tsx +2 -2
- package/src/stories/Button.stories.ts +54 -0
- package/src/stories/Button.tsx +35 -0
- package/src/stories/Configure.mdx +364 -0
- package/src/stories/Header.stories.ts +34 -0
- package/src/stories/Header.tsx +54 -0
- package/src/stories/Page.stories.ts +33 -0
- package/src/stories/Page.tsx +73 -0
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +1 -0
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +1 -0
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +1 -0
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +1 -0
- package/src/stories/assets/youtube.svg +1 -0
- package/src/stories/button.css +30 -0
- package/src/stories/header.css +32 -0
- package/src/stories/page.css +68 -0
- package/src/theme/build-mui-theme.ts +104 -0
- package/src/theme/components.ts +163 -0
- package/src/theme/emotion-cache.tsx +101 -0
- package/src/theme/theme-colors.ts +205 -0
- package/src/theme/theme-options-sample.ts +69 -0
- package/src/theme/theme-options.ts +172 -0
- package/src/theme/theme-provider.tsx +44 -0
- package/src/theme/typography.ts +22 -0
- package/src/theme/utils.ts +17 -0
- package/tsconfig.json +3 -1
- package/src/api-manager/lib/cart-cookie-handler.ts +0 -14
- package/src/components-v2/product-cards/product-card/components/hover-actions.tsx +0 -37
- package/src/components-v2/product-cards/product-card-plp/components/quantity-buttons.tsx +0 -54
- package/src/components-v2/product-cards/product-card-plp-list/components/add-to-cart.tsx +0 -63
- package/src/components-v2/product-cards/product-card-plp-list/components/favorite-button.tsx +0 -27
- package/src/components-v2/product-cards/use-product.ts +0 -35
- package/src/components-v2/products-view/products-grid-view.tsx +0 -65
- package/src/components-v2/products-view/products-list-view.tsx +0 -66
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/context.ts +0 -2
- /package/src/components-v2/product-cards/{product-card/components/quantity-buttons.tsx → quantity-buttons.tsx} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import Box from "@mui/material/Box";
|
|
2
2
|
// GLOBAL CUSTOM COMPONENTS
|
|
3
|
-
import Scrollbar from "
|
|
4
|
-
import { H5 } from "
|
|
5
|
-
import FlexBox from "
|
|
3
|
+
import Scrollbar from "@evenicanpm/storefront-core/src/components/_components/scrollbar/index";
|
|
4
|
+
import { H5 } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
5
|
+
import FlexBox from "@evenicanpm/storefront-core/src/components/_components/flex-box/flex-box";
|
|
6
6
|
// LOCAL CUSTOM COMPONENTS
|
|
7
7
|
import ListItem from "./components/list-item";
|
|
8
8
|
import Accordion from "./components/nav-accordion";
|
|
9
9
|
// STYLED COMPONENTS
|
|
10
10
|
import { BorderBox, ColorBorder, NavbarRoot } from "./styles/index";
|
|
11
11
|
// CUSTOM DATA MODEL
|
|
12
|
-
import { CategoryNavList } from "
|
|
12
|
+
import { CategoryNavList } from "@evenicanpm/storefront-core/src/components/_components/bazaar-types";
|
|
13
13
|
|
|
14
14
|
// ==================================================================
|
|
15
15
|
interface Props {
|
package/src/components/_components/page-sidenav/side-navbar-2/components/sidebar-accordion.tsx
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
NavExpandRoot,
|
|
11
11
|
} from "../styles/index";
|
|
12
12
|
// CUSTOM DATA MODEL
|
|
13
|
-
import { Category } from "
|
|
13
|
+
import { Category } from "@evenicanpm/storefront-core/src/components/_components/bazaar-types";
|
|
14
14
|
|
|
15
15
|
// ================================================================
|
|
16
16
|
interface Props extends PropsWithChildren {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { usePathname, useRouter } from "next/navigation";
|
|
4
4
|
// GLOBAL CUSTOM COMPONENT
|
|
5
|
-
import Scrollbar from "
|
|
5
|
+
import Scrollbar from "@evenicanpm/storefront-core/src/components/_components/scrollbar/index";
|
|
6
6
|
// LOCAL CUSTOM COMPONENT
|
|
7
7
|
import ButtonContent from "./components/button-content";
|
|
8
8
|
import SidebarAccordion from "./components/sidebar-accordion";
|
|
9
9
|
// STYLED COMPONENTS
|
|
10
10
|
import { NavItemButton } from "./styles/index";
|
|
11
11
|
// CUSTOM DATA MODEL
|
|
12
|
-
import { Category } from "
|
|
12
|
+
import { Category } from "@evenicanpm/storefront-core/src/components/_components/bazaar-types";
|
|
13
13
|
|
|
14
14
|
// ==============================================================
|
|
15
15
|
type Props = { navigation: Category[] };
|
package/src/components/_components/product-cards/product-card-1/components/quantity-buttons.tsx
CHANGED
|
@@ -4,8 +4,8 @@ import Button from "@mui/material/Button";
|
|
|
4
4
|
import Add from "@mui/icons-material/Add";
|
|
5
5
|
import Remove from "@mui/icons-material/Remove";
|
|
6
6
|
// GLOBAL CUSTOM COMPONENTS
|
|
7
|
-
import { FlexBox } from "
|
|
8
|
-
import { Paragraph } from "
|
|
7
|
+
import { FlexBox } from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
8
|
+
import { Paragraph } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
9
9
|
import { CircularProgress } from "@mui/material";
|
|
10
10
|
|
|
11
11
|
// ==============================================================
|
|
@@ -4,8 +4,8 @@ import Link from "next/link";
|
|
|
4
4
|
import Box from "@mui/material/Box";
|
|
5
5
|
import Rating from "@mui/material/Rating";
|
|
6
6
|
// GLOBAL CUSTOM COMPONENTS
|
|
7
|
-
import LazyImage from "
|
|
8
|
-
import { Span } from "
|
|
7
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
8
|
+
import { Span } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
9
9
|
// LOCAL CUSTOM HOOK
|
|
10
10
|
// LOCAL CUSTOM COMPONENTS
|
|
11
11
|
import ProductPrice from "../product-price";
|
|
@@ -11,10 +11,14 @@ import FavoriteBorder from "@mui/icons-material/FavoriteBorder";
|
|
|
11
11
|
// LOCAL CUSTOM HOOK
|
|
12
12
|
import useProduct from "../use-product";
|
|
13
13
|
// GLOBAL CUSTOM COMPONENTS
|
|
14
|
-
import LazyImage from "
|
|
15
|
-
import { FlexRowCenter } from "
|
|
16
|
-
import {
|
|
17
|
-
|
|
14
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
15
|
+
import { FlexRowCenter } from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
16
|
+
import {
|
|
17
|
+
H4,
|
|
18
|
+
Paragraph,
|
|
19
|
+
Small,
|
|
20
|
+
} from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
21
|
+
import ProductViewDialog from "@evenicanpm/storefront-core/src/components/_components/products-view/product-view-dialog";
|
|
18
22
|
// STYLED COMPONENTS
|
|
19
23
|
import {
|
|
20
24
|
StyledIconButton,
|
|
@@ -25,7 +29,7 @@ import {
|
|
|
25
29
|
// CUSTOM UTILS LIBRARY FUNCTION
|
|
26
30
|
import { currency } from "@/lib/lib";
|
|
27
31
|
// CUSTOM DATA MODEL
|
|
28
|
-
import { Product } from "
|
|
32
|
+
import { Product } from "@evenicanpm/storefront-core/src/components/_components/bazaar-types";
|
|
29
33
|
|
|
30
34
|
// ==============================================================
|
|
31
35
|
type Props = { product: Product };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import Box from "@mui/material/Box";
|
|
2
2
|
// GLOBAL CUSTOM COMPONENTS
|
|
3
|
-
import LazyImage from "
|
|
4
|
-
import {
|
|
3
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
4
|
+
import {
|
|
5
|
+
H3,
|
|
6
|
+
Paragraph,
|
|
7
|
+
} from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
5
8
|
import {
|
|
6
9
|
FlexBetween,
|
|
7
10
|
FlexRowCenter,
|
|
8
|
-
} from "
|
|
11
|
+
} from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
9
12
|
// STYLED COMPONENTS
|
|
10
13
|
import { CardRoot, PriceText } from "./styles/index";
|
|
11
14
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import Link from "next/link";
|
|
2
2
|
import Rating from "@mui/material/Rating";
|
|
3
3
|
// GLOBAL CUSTOM COMPONENTS
|
|
4
|
-
import { H6 } from "
|
|
5
|
-
import LazyImage from "
|
|
6
|
-
import { FlexBox } from "
|
|
4
|
+
import { H6 } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
5
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
6
|
+
import { FlexBox } from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
7
7
|
// CUSTOM UTILS LIBRARY FUNCTIONS
|
|
8
8
|
import { calculateDiscount, currency } from "@/lib/lib";
|
|
9
9
|
// STYLED COMPONENTS
|
|
10
10
|
import { PriceText } from "./styles/index";
|
|
11
11
|
// CUSTOM DATA MODEL
|
|
12
|
-
import { Product } from "
|
|
12
|
+
import { Product } from "@evenicanpm/storefront-core/src/components/_components/bazaar-types";
|
|
13
13
|
|
|
14
14
|
// ==============================================================
|
|
15
15
|
type Props = { product: Product };
|
|
@@ -2,14 +2,17 @@ import Link from "next/link";
|
|
|
2
2
|
// LOCAL CUSTOM COMPONENTS
|
|
3
3
|
import DiscountChip from "../discount-chip";
|
|
4
4
|
// GLOBAL CUSTOM COMPONENTS
|
|
5
|
-
import LazyImage from "
|
|
6
|
-
import {
|
|
5
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
6
|
+
import {
|
|
7
|
+
H3,
|
|
8
|
+
Paragraph,
|
|
9
|
+
} from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
7
10
|
// CUSTOM UTILS LIBRARY FUNCTIONS
|
|
8
11
|
import { calculateDiscount, currency } from "@/lib/lib";
|
|
9
12
|
// STYLED COMPONENTS
|
|
10
13
|
import { CardRoot, PriceText } from "./styles/index";
|
|
11
14
|
// CUSTOM DATA MODEL
|
|
12
|
-
import { Product } from "
|
|
15
|
+
import { Product } from "@evenicanpm/storefront-core/src/components/_components/bazaar-types";
|
|
13
16
|
|
|
14
17
|
// ==============================================================
|
|
15
18
|
type Props = { product: Product };
|
|
@@ -9,9 +9,12 @@ import clsx from "clsx";
|
|
|
9
9
|
import Add from "@mui/icons-material/Add";
|
|
10
10
|
import Remove from "@mui/icons-material/Remove";
|
|
11
11
|
// GLOBAL CUSTOM COMPONENTS
|
|
12
|
-
import LazyImage from "
|
|
13
|
-
import { FlexBox } from "
|
|
14
|
-
import {
|
|
12
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
13
|
+
import { FlexBox } from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
14
|
+
import {
|
|
15
|
+
H6,
|
|
16
|
+
Paragraph,
|
|
17
|
+
} from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
15
18
|
// LOCAL CUSTOM HOOKS
|
|
16
19
|
import useProduct from "../use-product";
|
|
17
20
|
// CUSTOM UTILS LIBRARY FUNCTIONS
|
|
@@ -19,7 +22,7 @@ import { calculateDiscount, currency } from "@/lib/lib";
|
|
|
19
22
|
// STYLED COMPONENTS
|
|
20
23
|
import { Content, PriceText } from "./styles/index";
|
|
21
24
|
// CUSTOM DATA MODEL
|
|
22
|
-
import { Product } from "
|
|
25
|
+
import { Product } from "@evenicanpm/storefront-core/src/components/_components/bazaar-types";
|
|
23
26
|
|
|
24
27
|
// ==============================================================
|
|
25
28
|
interface Props {
|
|
@@ -7,8 +7,11 @@ import ButtonBase from "@mui/material/ButtonBase";
|
|
|
7
7
|
import Add from "@mui/icons-material/Add";
|
|
8
8
|
import Remove from "@mui/icons-material/Remove";
|
|
9
9
|
// GLOBAL CUSTOM COMPONENTS
|
|
10
|
-
import LazyImage from "
|
|
11
|
-
import {
|
|
10
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
11
|
+
import {
|
|
12
|
+
H6,
|
|
13
|
+
Paragraph,
|
|
14
|
+
} from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
12
15
|
// LOCAL CUSTOM HOOKS
|
|
13
16
|
import useProduct from "../use-product";
|
|
14
17
|
// CUSTOM UTILS LIBRARY FUNCTIONS
|
|
@@ -16,7 +19,7 @@ import { calculateDiscount, currency } from "@/lib/lib";
|
|
|
16
19
|
// STYLED COMPONENTS
|
|
17
20
|
import { Content, PriceText, StyledRoot } from "./styles/index";
|
|
18
21
|
// CUSTOM DATA MODEL
|
|
19
|
-
import { Product } from "
|
|
22
|
+
import { Product } from "@evenicanpm/storefront-core/src/components/_components/bazaar-types";
|
|
20
23
|
|
|
21
24
|
// ==============================================================
|
|
22
25
|
interface Props {
|
package/src/components/_components/product-cards/product-card-16/components/quantity-buttons.tsx
CHANGED
|
@@ -4,8 +4,8 @@ import Button from "@mui/material/Button";
|
|
|
4
4
|
import Add from "@mui/icons-material/Add";
|
|
5
5
|
import Remove from "@mui/icons-material/Remove";
|
|
6
6
|
// GLOBAL CUSTOM COMPONENTS
|
|
7
|
-
import { FlexBox } from "
|
|
8
|
-
import { Paragraph } from "
|
|
7
|
+
import { FlexBox } from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
8
|
+
import { Paragraph } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
9
9
|
|
|
10
10
|
// ==============================================================
|
|
11
11
|
interface Props {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import Link from "next/link";
|
|
2
2
|
import Rating from "@mui/material/Rating";
|
|
3
3
|
// GLOBAL CUSTOM COMPONENTS
|
|
4
|
-
import { H6 } from "
|
|
5
|
-
import {
|
|
4
|
+
import { H6 } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
5
|
+
import {
|
|
6
|
+
FlexBetween,
|
|
7
|
+
FlexBox,
|
|
8
|
+
} from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
6
9
|
import ImageWithFallback from "../../../ImageWithFallback";
|
|
7
10
|
// CUSTOM UTILS LIBRARY FUNCTIONS
|
|
8
11
|
import { calculateDiscount, currency } from "@/lib/lib";
|
package/src/components/_components/product-cards/product-card-2/components/product-price.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Box from "@mui/material/Box";
|
|
2
2
|
// GLOBAL CUSTOM COMPONENTS
|
|
3
|
-
import { FlexBox } from "
|
|
4
|
-
import { Paragraph } from "
|
|
3
|
+
import { FlexBox } from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
4
|
+
import { Paragraph } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
5
5
|
// CUSTOM UTILS LIBRARY FUNCTIONS
|
|
6
6
|
import { calculateDiscount, currency } from "@/lib/lib";
|
|
7
7
|
|
|
@@ -7,10 +7,10 @@ import Rating from "@mui/material/Rating";
|
|
|
7
7
|
import ProductPrice from "./components/product-price";
|
|
8
8
|
import FavoriteButton from "./components/favorite-button";
|
|
9
9
|
// GLOBAL CUSTOM COMPONENTS
|
|
10
|
-
import HoverBox from "
|
|
11
|
-
import { H6 } from "
|
|
12
|
-
import LazyImage from "
|
|
13
|
-
import { FlexBetween } from "
|
|
10
|
+
import HoverBox from "@evenicanpm/storefront-core/src/components/_components/HoverBox";
|
|
11
|
+
import { H6 } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
12
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
13
|
+
import { FlexBetween } from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
14
14
|
|
|
15
15
|
// ========================================================
|
|
16
16
|
interface Props {
|
package/src/components/_components/product-cards/product-card-3/components/hover-actions.tsx
CHANGED
|
@@ -8,7 +8,7 @@ import RemoveRedEye from "@mui/icons-material/RemoveRedEye";
|
|
|
8
8
|
import FavoriteBorder from "@mui/icons-material/FavoriteBorder";
|
|
9
9
|
import AddShoppingCart from "@mui/icons-material/AddShoppingCart";
|
|
10
10
|
// GLOBAL CUSTOM COMPONENT
|
|
11
|
-
import { Span } from "
|
|
11
|
+
import { Span } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
12
12
|
// STYLED COMPONENTS
|
|
13
13
|
import { HoverButtonBox, ItemController } from "../styles/index";
|
|
14
14
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import Link from "next/link";
|
|
4
4
|
// GLOBAL CUSTOM COMPONENTS
|
|
5
|
-
import LazyImage from "
|
|
6
|
-
import ProductViewDialog from "
|
|
5
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
6
|
+
import ProductViewDialog from "@evenicanpm/storefront-core/src/components/_components/products-view/product-view-dialog";
|
|
7
7
|
// LOCAL CUSTOM HOOKS
|
|
8
8
|
import useProduct from "../use-product";
|
|
9
9
|
// LOCAL CUSTOM COMPONENTS
|
package/src/components/_components/product-cards/product-card-4/components/hover-actions.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import ShoppingCart from "@mui/icons-material/ShoppingCart";
|
|
|
4
4
|
import RemoveRedEye from "@mui/icons-material/RemoveRedEye";
|
|
5
5
|
import FavoriteBorder from "@mui/icons-material/FavoriteBorder";
|
|
6
6
|
// GLOBAL CUSTOM COMPONENT
|
|
7
|
-
import { Span } from "
|
|
7
|
+
import { Span } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
8
8
|
// STYLED COMPONENT
|
|
9
9
|
import { HoverWrapper } from "../styles/index";
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Link from "next/link";
|
|
2
2
|
import Box from "@mui/material/Box";
|
|
3
3
|
// GLOBAL CUSTOM COMPONENTS
|
|
4
|
-
import LazyImage from "
|
|
5
|
-
import ProductViewDialog from "
|
|
4
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
5
|
+
import ProductViewDialog from "@evenicanpm/storefront-core/src/components/_components/products-view/product-view-dialog";
|
|
6
6
|
// LOCAL CUSTOM HOOKS
|
|
7
7
|
import useProduct from "../use-product";
|
|
8
8
|
// LOCAL CUSTOM COMPONENTS
|
package/src/components/_components/product-cards/product-card-5/components/hover-actions.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import RemoveRedEye from "@mui/icons-material/RemoveRedEye";
|
|
|
5
5
|
import FavoriteBorder from "@mui/icons-material/FavoriteBorder";
|
|
6
6
|
import AddShoppingCart from "@mui/icons-material/AddShoppingCart";
|
|
7
7
|
// GLOBAL CUSTOM COMPONENT
|
|
8
|
-
import { Span } from "
|
|
8
|
+
import { Span } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
9
9
|
// STYLED COMPONENT
|
|
10
10
|
import { HoverWrapper } from "../styles/index";
|
|
11
11
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import Link from "next/link";
|
|
4
4
|
// GLOBAL CUSTOM COMPONENTS
|
|
5
|
-
import LazyImage from "
|
|
6
|
-
import ProductViewDialog from "
|
|
5
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
6
|
+
import ProductViewDialog from "@evenicanpm/storefront-core/src/components/_components/products-view/product-view-dialog";
|
|
7
7
|
// LOCAL CUSTOM HOOKS
|
|
8
8
|
import useProduct from "../use-product";
|
|
9
9
|
// LOCAL CUSTOM COMPONENTS
|
package/src/components/_components/product-cards/product-card-6/components/hover-actions.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import RemoveRedEye from "@mui/icons-material/RemoveRedEye";
|
|
|
5
5
|
import FavoriteBorder from "@mui/icons-material/FavoriteBorder";
|
|
6
6
|
import AddShoppingCart from "@mui/icons-material/AddShoppingCart";
|
|
7
7
|
// GLOBAL CUSTOM COMPONENT
|
|
8
|
-
import { Span } from "
|
|
8
|
+
import { Span } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
9
9
|
// STYLED COMPONENT
|
|
10
10
|
import { ItemController } from "../styles/index";
|
|
11
11
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import Link from "next/link";
|
|
4
4
|
// LOCAL CUSTOM COMPONENTS
|
|
5
|
-
import LazyImage from "
|
|
6
|
-
import ProductViewDialog from "
|
|
5
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
6
|
+
import ProductViewDialog from "@evenicanpm/storefront-core/src/components/_components/products-view/product-view-dialog";
|
|
7
7
|
// LOCAL CUSTOM HOOK
|
|
8
8
|
import useProduct from "../use-product";
|
|
9
9
|
// LOCAL CUSTOM COMPONENTS
|
|
@@ -15,7 +15,7 @@ import ProductRating from "../product-rating";
|
|
|
15
15
|
// STYLED COMPONENTS
|
|
16
16
|
import { ContentWrapper, ImgBox, StyledCard } from "./styles/index";
|
|
17
17
|
// CUSTOM DATA MODEL
|
|
18
|
-
import { Product } from "
|
|
18
|
+
import { Product } from "@evenicanpm/storefront-core/src/components/_components/bazaar-types";
|
|
19
19
|
|
|
20
20
|
// ============================================================
|
|
21
21
|
interface Props extends Partial<Product> {
|
package/src/components/_components/product-cards/product-card-7/components/quantity-buttons.tsx
CHANGED
|
@@ -3,8 +3,8 @@ import { Fragment } from "react";
|
|
|
3
3
|
import Add from "@mui/icons-material/Add";
|
|
4
4
|
import Remove from "@mui/icons-material/Remove";
|
|
5
5
|
// GLOBAL CUSTOM COMPONENT
|
|
6
|
-
import { FlexBox } from "
|
|
7
|
-
import { Paragraph } from "
|
|
6
|
+
import { FlexBox } from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
7
|
+
import { Paragraph } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
8
8
|
// STYLED COMPONENT
|
|
9
9
|
import { StyledButton } from "../styles/index";
|
|
10
10
|
|
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
import Link from "next/link";
|
|
4
4
|
import { SxProps, Theme } from "@mui/material/styles";
|
|
5
5
|
// GLOBAL CUSTOM COMPONENTS
|
|
6
|
-
import LazyImage from "
|
|
7
|
-
import {
|
|
6
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
7
|
+
import {
|
|
8
|
+
H3,
|
|
9
|
+
Span,
|
|
10
|
+
} from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
8
11
|
// LOCAL CUSTOM HOOK
|
|
9
12
|
import useProduct from "../use-product";
|
|
10
13
|
// LOCAL CUSTOM COMPONENTS
|
|
@@ -10,12 +10,16 @@ import AddShoppingCart from "@mui/icons-material/AddShoppingCart";
|
|
|
10
10
|
// LOCAL CUSTOM HOOK
|
|
11
11
|
import useProduct from "../use-product";
|
|
12
12
|
// GLOBAL CUSTOM COMPONENTS
|
|
13
|
-
import LazyImage from "
|
|
14
|
-
import { FlexRowCenter } from "
|
|
15
|
-
import {
|
|
13
|
+
import LazyImage from "@evenicanpm/storefront-core/src/components/_components/LazyImage";
|
|
14
|
+
import { FlexRowCenter } from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
15
|
+
import {
|
|
16
|
+
H4,
|
|
17
|
+
Paragraph,
|
|
18
|
+
Small,
|
|
19
|
+
} from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
16
20
|
import ProductViewDialog, {
|
|
17
21
|
ProductInfo,
|
|
18
|
-
} from "
|
|
22
|
+
} from "@evenicanpm/storefront-core/src/components/_components/products-view/product-view-dialog";
|
|
19
23
|
// CUSTOM UTILS LIBRARY FUNCTION
|
|
20
24
|
import { currency } from "@/lib/lib";
|
|
21
25
|
// CUSTOM COMPONENTS
|
|
@@ -28,7 +32,7 @@ import {
|
|
|
28
32
|
QuickViewSmallButton,
|
|
29
33
|
} from "./styles/index";
|
|
30
34
|
// CUSTOM DATA MODEL
|
|
31
|
-
import { Product } from "
|
|
35
|
+
import { Product } from "@evenicanpm/storefront-core/src/components/_components/bazaar-types";
|
|
32
36
|
import { DialogType } from "@/_components/search-box/search-input-category";
|
|
33
37
|
import { RemoveRedEye } from "@mui/icons-material";
|
|
34
38
|
import buildDetailUrl from "@/lib/build-detail-url";
|
|
@@ -3,8 +3,11 @@ import Button from "@mui/material/Button";
|
|
|
3
3
|
import Add from "@mui/icons-material/Add";
|
|
4
4
|
import Remove from "@mui/icons-material/Remove";
|
|
5
5
|
// GLOBAL CUSTOM COMPONENTS
|
|
6
|
-
import { H5 } from "
|
|
7
|
-
import {
|
|
6
|
+
import { H5 } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
7
|
+
import {
|
|
8
|
+
FlexBetween,
|
|
9
|
+
FlexBox,
|
|
10
|
+
} from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
8
11
|
|
|
9
12
|
// ==============================================================
|
|
10
13
|
interface Props {
|
|
@@ -3,7 +3,7 @@ import Card from "@mui/material/Card";
|
|
|
3
3
|
import Rating from "@mui/material/Rating";
|
|
4
4
|
import styled from "@mui/material/styles/styled";
|
|
5
5
|
// GLOBAL CUSTOM COMPONENTS
|
|
6
|
-
import { H5 } from "
|
|
6
|
+
import { H5 } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
7
7
|
import ImageWithFallback from "../../../ImageWithFallback";
|
|
8
8
|
// LOCAL CUSTOM HOOK
|
|
9
9
|
import useProduct from "../use-product";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Box from "@mui/material/Box";
|
|
2
2
|
// GLOBAL CUSTOM COMPONENTS
|
|
3
|
-
import FlexBox from "
|
|
4
|
-
import { Paragraph } from "
|
|
3
|
+
import FlexBox from "@evenicanpm/storefront-core/src/components/_components/flex-box/flex-box";
|
|
4
|
+
import { Paragraph } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
5
5
|
// CUSTOM UTILS LIBRARY FUNCTIONS
|
|
6
6
|
import { calculateDiscount, currency } from "@/lib/lib";
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Rating from "@mui/material/Rating";
|
|
2
2
|
import { BoxProps } from "@mui/material/Box";
|
|
3
3
|
// GLOBAL CUSTOM COMPONENTS
|
|
4
|
-
import { Span } from "
|
|
5
|
-
import FlexBox from "
|
|
4
|
+
import { Span } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
5
|
+
import FlexBox from "@evenicanpm/storefront-core/src/components/_components/flex-box/flex-box";
|
|
6
6
|
|
|
7
7
|
// ==============================================================
|
|
8
8
|
interface Props extends BoxProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Link from "next/link";
|
|
2
|
-
import { H3 } from "
|
|
2
|
+
import { H3 } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
3
3
|
|
|
4
4
|
// ==============================================================
|
|
5
5
|
type Props = { title: string; slug: string };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import Box from "@mui/material/Box";
|
|
3
3
|
import Chip from "@mui/material/Chip";
|
|
4
|
-
import { H6 } from "
|
|
4
|
+
import { H6 } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
ProductDimensionType,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { FlexBox } from "
|
|
2
|
+
import { FlexBox } from "@evenicanpm/storefront-core/src/components/_components/flex-box";
|
|
3
3
|
import Button from "@mui/material/Button";
|
|
4
|
-
import { H3 } from "
|
|
4
|
+
import { H3 } from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
5
5
|
import { MdAdd as Add } from "react-icons/md";
|
|
6
6
|
import { MdRemove as Remove } from "react-icons/md";
|
|
7
7
|
import CircularProgress from "@mui/material/CircularProgress";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment, ReactNode } from "react";
|
|
2
2
|
import Grid from "@mui/material/Grid2";
|
|
3
3
|
// GLOBAL CUSTOM COMPONENTS
|
|
4
|
-
import { FlexBetween } from "
|
|
5
|
-
import ProductCard16 from "
|
|
4
|
+
import { FlexBetween } from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
5
|
+
import ProductCard16 from "@evenicanpm/storefront-core/src/components/_components/product-cards/product-card-16/index";
|
|
6
6
|
// DATA MODEL
|
|
7
7
|
import { ProductSearchResult as Product } from "@msdyn365-commerce/retail-proxy";
|
|
8
8
|
import { ProductPrice } from "@/api-manager/schemas/product.schema";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
// GLOBAL CUSTOM COMPONENTS
|
|
3
|
-
import FlexBetween from "
|
|
4
|
-
import { ProductCard9 } from "
|
|
3
|
+
import FlexBetween from "@evenicanpm/storefront-core/src/components/_components/flex-box/flex-between";
|
|
4
|
+
import { ProductCard9 } from "@evenicanpm/storefront-core/src/components/_components/product-cards/product-card-9/index";
|
|
5
5
|
// DATA MODEL
|
|
6
6
|
import { ProductSearchResult as Product } from "@msdyn365-commerce/retail-proxy";
|
|
7
7
|
import { ProductPrice } from "@/api-manager/schemas/product.schema";
|
|
@@ -5,7 +5,7 @@ import TouchRipple from "@mui/material/ButtonBase";
|
|
|
5
5
|
import useTheme from "@mui/material/styles/useTheme";
|
|
6
6
|
import { MdKeyboardArrowDown as KeyboardArrowDownOutlined } from "react-icons/md";
|
|
7
7
|
|
|
8
|
-
import Menu from "
|
|
8
|
+
import Menu from "@evenicanpm/storefront-core/src/components/_components/BazaarMenu";
|
|
9
9
|
import { DropDownHandler } from "../styles/index";
|
|
10
10
|
import { CategoryHierarchy } from "@/lib/category-helpers";
|
|
11
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import NavLink from "
|
|
2
|
+
import NavLink from "@evenicanpm/storefront-core/src/components/_components/nav-link/nav-link";
|
|
3
3
|
import MenuItem from "@mui/material/MenuItem";
|
|
4
4
|
import { SearchResultCard } from "../styles/index";
|
|
5
5
|
import { ProductSearchResult } from "@msdyn365-commerce/retail-proxy";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { ChangeEvent, useState, useEffect, useCallback } from "react";
|
|
4
|
-
import useSearchProducts from "
|
|
4
|
+
import useSearchProducts from "@evenicanpm/storefront-core/src/api-manager/services/product/mutations/search-products";
|
|
5
5
|
import { ProductSearchResult } from "@msdyn365-commerce/retail-proxy";
|
|
6
6
|
|
|
7
7
|
const DEBOUNCE_TIME = 100;
|
|
@@ -6,11 +6,11 @@ import TextField from "@mui/material/TextField";
|
|
|
6
6
|
import SearchResult from "./components/search-result";
|
|
7
7
|
import CategoryDropdown from "./components/category-dropdown";
|
|
8
8
|
// CUSTOM ICON COMPONENT
|
|
9
|
-
import Search from "
|
|
9
|
+
import Search from "@evenicanpm/storefront-core/src/components/_components/icons/search";
|
|
10
10
|
import { useTranslations } from "next-intl";
|
|
11
11
|
import React, { FormEvent, useState } from "react";
|
|
12
|
-
import getCategories from "
|
|
13
|
-
import searchProducts from "
|
|
12
|
+
import getCategories from "@evenicanpm/storefront-core/src/api-manager/services/categories/queries/get-categories";
|
|
13
|
+
import searchProducts from "@evenicanpm/storefront-core/src/api-manager/services/product/queries/search-products";
|
|
14
14
|
import { INPUT_SX } from "./styles/index";
|
|
15
15
|
import _ from "lodash";
|
|
16
16
|
import ProductViewDialog, {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
// GLOBAL CUSTOM COMPONENTS
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
H6,
|
|
4
|
+
Paragraph,
|
|
5
|
+
} from "@evenicanpm/storefront-core/src/components/_components/Typography";
|
|
3
6
|
import {
|
|
4
7
|
FlexBox,
|
|
5
8
|
FlexRowCenter,
|
|
6
|
-
} from "
|
|
9
|
+
} from "@evenicanpm/storefront-core/src/components/_components/flex-box/index";
|
|
7
10
|
// LOCAL CUSTOM COMPONENTS
|
|
8
11
|
import IconComponent from "../icon-component";
|
|
9
12
|
|