@evenicanpm/storefront-core 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs.tsconfig.json +35 -0
- package/package.json +6 -3
- package/src/api-manager/schemas/product.schema.ts +0 -1
- package/src/api-manager/services/create-query.ts +10 -0
- package/src/api-manager/services/product/queries/get-product-availability.ts +1 -1
- package/src/api-manager/services/user/mutations/add-to-wishlist.ts +23 -3
- package/src/api-manager/services/user/mutations/remove-from-wishlist.ts +23 -0
- package/src/cms/blocks/Components/CategoryCarousel/index.tsx +6 -7
- package/src/cms/blocks/Components/HeroCarousel/index.tsx +25 -19
- package/src/cms/blocks/Components/ProductCarousel/index.tsx +44 -38
- package/src/cms/blocks/Components/ProductSectionFullWidth/index.tsx +7 -3
- package/src/cms/blocks/Components/shared/product-grid.tsx +38 -23
- package/src/components/_components/wishlist/add-to-wishlist-dialog.tsx +1 -1
- package/src/components/_components/wishlist/remove-from-wishlist-dialog.tsx +1 -1
- package/src/components/_components/wishlist-modal/add-to-wishlist-dialog.tsx +1 -1
- package/src/components/_components/wishlist-modal/remove-from-wishlist-dialog.tsx +1 -1
- package/src/components-v2/carousel/carousel.tsx +69 -35
- package/src/components-v2/carousel/components/carousel-arrows.tsx +40 -46
- package/src/components-v2/carousel/components/carousel-dots.tsx +10 -13
- package/src/components-v2/carousel/index.ts +0 -2
- package/src/components-v2/carousel-cards/carousel-card-1/carousel-card-1.tsx +68 -49
- package/src/components-v2/categories/category-list/category-list.tsx +83 -41
- package/src/components-v2/categories/category-list/styles.ts +7 -1
- package/src/components-v2/categories/category-menu.tsx +2 -0
- package/src/components-v2/categories/mega-menu/banner.tsx +68 -37
- package/src/components-v2/categories/mega-menu/column-list.tsx +59 -52
- package/src/components-v2/categories/mega-menu/mega-menu-1.tsx +19 -1
- package/src/components-v2/categories/mega-menu/mega-menu-2.tsx +32 -2
- package/src/components-v2/header/components/mobile-header.tsx +119 -46
- package/src/components-v2/header/components/user.tsx +163 -117
- package/src/components-v2/header/header.tsx +62 -42
- package/src/components-v2/header/sticky-header.tsx +34 -2
- package/src/components-v2/mini-cart/components/bottom-actions.tsx +71 -17
- package/src/components-v2/mini-cart/components/cart-item.tsx +159 -101
- package/src/components-v2/mini-cart/components/empty-view.tsx +59 -19
- package/src/components-v2/mini-cart/components/top-header.tsx +61 -22
- package/src/components-v2/mini-cart/mini-cart-trigger.tsx +99 -0
- package/src/components-v2/mini-cart/mini-cart.tsx +111 -43
- package/src/components-v2/mobile-navigation/mobile-navigation-bar.tsx +93 -48
- package/src/components-v2/navbar/categories.tsx +70 -16
- package/src/components-v2/navbar/category-based-menu/category-based-menu.tsx +135 -41
- package/src/components-v2/navbar/mega-menu/mega-menu.tsx +115 -48
- package/src/components-v2/navbar/mobile-menu/mobile-menu.test.tsx +111 -0
- package/src/components-v2/navbar/mobile-menu/mobile-menu.tsx +127 -56
- package/src/components-v2/navbar/nav-list/nav-list.tsx +125 -103
- package/src/components-v2/navbar/navbar.tsx +72 -20
- package/src/components-v2/product-cards/{product-card-1 → product-card}/components/quantity-buttons.tsx +1 -1
- package/src/components-v2/product-cards/product-card/product-card.tsx +410 -0
- package/src/components-v2/product-cards/{product-card-1 → product-card}/styles/index.ts +6 -0
- package/src/components-v2/product-cards/product-card-plp/product-card.tsx +161 -0
- package/src/components-v2/product-cards/product-card-plp-list/index.ts +1 -0
- package/src/components-v2/product-cards/product-card-plp-list/product-card.tsx +219 -0
- package/src/components-v2/product-cards/product-card-search/product-card.tsx +166 -0
- package/src/components-v2/product-dialog/compound/product-dialog.tsx +225 -0
- package/src/components-v2/product-dialog/index.tsx +29 -0
- package/src/components-v2/product-dimensions/{components → compound}/dimensions-group-error.tsx +1 -1
- package/src/components-v2/product-dimensions/{components → compound}/dimensions-group-label.tsx +1 -1
- package/src/components-v2/product-dimensions/{components → compound}/dimensions-group-list-chip.tsx +1 -1
- package/src/components-v2/product-dimensions/{components → compound}/dimensions-group-list.tsx +1 -1
- package/src/components-v2/product-dimensions/{components → compound}/dimensions-group.tsx +1 -1
- package/src/components-v2/product-dimensions/{components → compound}/dimensions.tsx +0 -3
- package/src/components-v2/product-dimensions/index.tsx +1 -1
- package/src/components-v2/product-quantity-buttons/compound/quantity-buttons-root.tsx +181 -0
- package/src/components-v2/product-quantity-buttons/index.tsx +22 -0
- package/src/components-v2/product-quantity-variants/index.tsx +90 -0
- package/src/components-v2/products-view/compound/context.ts +25 -0
- package/src/components-v2/products-view/compound/products-grid-view.tsx +109 -0
- package/src/components-v2/products-view/compound/products-list-view.tsx +98 -0
- package/src/components-v2/products-view/compound/types.ts +12 -0
- package/src/components-v2/products-view/index.tsx +45 -0
- package/src/components-v2/products-view/products-grid-view.tsx +24 -11
- package/src/components-v2/products-view/products-list-view.tsx +29 -12
- package/src/components-v2/search-bar/compound/context.ts +31 -0
- package/src/components-v2/search-bar/compound/results-item-lg.tsx +43 -0
- package/src/components-v2/search-bar/compound/results-item-sm.tsx +48 -0
- package/src/components-v2/search-bar/compound/results-suspense.tsx +49 -0
- package/src/components-v2/search-bar/compound/results.tsx +42 -0
- package/src/components-v2/search-bar/compound/search-bar-root.tsx +64 -0
- package/src/components-v2/search-bar/compound/textfield-adornment-button.tsx +22 -0
- package/src/components-v2/{search-box/components/category-dropdown.tsx → search-bar/compound/textfield-adornment-category.tsx} +29 -7
- package/src/components-v2/search-bar/compound/textfield-adornment-search-icon.tsx +34 -0
- package/src/components-v2/search-bar/compound/textfield.tsx +58 -0
- package/src/components-v2/search-bar/hooks/use-click-outside.ts +20 -0
- package/src/components-v2/search-bar/hooks/use-search.ts +63 -0
- package/src/components-v2/search-bar/index.tsx +36 -0
- package/src/components-v2/{search-box → search-bar}/styles/index.ts +5 -3
- package/src/components-v2/search-bar/utils/findCategoryNameById.ts +18 -0
- package/src/components-v2/section/compound/section-header.tsx +63 -0
- package/src/components-v2/section/compound/section.tsx +26 -0
- package/src/components-v2/section/index.ts +1 -0
- package/src/components-v2/side-nav/side-nav.tsx +4 -5
- package/src/components-v2/sticky/index.ts +1 -1
- package/src/components-v2/{wishlist-modal → wishlist-dialogs/add-to-wishlist}/add-to-wishlist-button.tsx +1 -1
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-bottom-ui.tsx +35 -0
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-dialog.tsx +79 -0
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-list.tsx +41 -0
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/context.ts +29 -0
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-header.tsx +74 -0
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-item.tsx +82 -0
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/hooks/use-add-to-wishlist.ts +152 -0
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/index.tsx +39 -0
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/context.ts +2 -0
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-bottom-ui.tsx +42 -0
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-dialog.tsx +92 -0
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-form.tsx +96 -0
- package/src/components-v2/{wishlist/components → wishlist-dialogs/create-wishlist}/create-wishlist-button.tsx +5 -3
- package/src/components-v2/wishlist-dialogs/create-wishlist/index.tsx +22 -0
- package/src/hooks/use-cart.ts +29 -23
- package/src/hooks/use-variants.ts +106 -53
- package/src/lib/build-detail-url.ts +2 -1
- package/src/pages/product-details/product-intro/product-intro.tsx +26 -23
- package/src/pages/product-list/quick-view-dialog-content.tsx +18 -9
- package/src/pages-v2/product-details/bopis/find-in-store-button.tsx +9 -8
- package/src/pages-v2/product-details/bopis/find-in-store-modal.tsx +2 -2
- package/src/{components-v2/shop-card → pages-v2/product-details/bopis/store-card}/shop-card.tsx +17 -48
- package/src/pages-v2/product-details/bopis/store-card/utils/convertSecondsToTime.ts +8 -0
- package/src/pages-v2/product-details/bopis/store-card/utils/getDaysResources.ts +25 -0
- package/src/pages-v2/product-details/product-intro/compound/context.ts +52 -0
- package/src/pages-v2/product-details/product-intro/compound/product-info.tsx +231 -0
- package/src/pages-v2/product-details/product-intro/compound/product-intro-images.tsx +124 -0
- package/src/pages-v2/product-details/product-intro/compound/product-intro.tsx +49 -0
- package/src/pages-v2/product-details/product-intro/compound/thumbnail-with-skeleton.tsx +28 -0
- package/src/pages-v2/product-details/product-intro/utils.ts +42 -0
- package/src/pages-v2/product-details/product-tabs.tsx +87 -21
- package/src/pages-v2/product-details/related-products.tsx +26 -12
- package/src/pages-v2/product-list/quick-view-dialog-content.tsx +17 -10
- package/typedoc.js +3 -1
- package/src/components-v2/MiniCartClient.tsx +0 -65
- package/src/components-v2/carousel-cards/carousel-card-2/carousel-card-2.tsx +0 -78
- package/src/components-v2/carousel-cards/carousel-card-2/index.ts +0 -1
- package/src/components-v2/carousel-cards/carousel-card-2/styles.ts +0 -26
- package/src/components-v2/carousel-cards/carousel-card-3/carousel-card-3.tsx +0 -37
- package/src/components-v2/carousel-cards/carousel-card-3/index.ts +0 -1
- package/src/components-v2/carousel-cards/carousel-card-3/styles.ts +0 -28
- package/src/components-v2/carousel-cards/carousel-card-4/carousel-card-4.tsx +0 -81
- package/src/components-v2/carousel-cards/carousel-card-4/index.ts +0 -1
- package/src/components-v2/carousel-cards/carousel-card-4/styles.ts +0 -27
- package/src/components-v2/category-cards/category-card-1/category-card-1.tsx +0 -21
- package/src/components-v2/category-cards/category-card-1/index.ts +0 -1
- package/src/components-v2/category-cards/category-card-1/styles.ts +0 -37
- package/src/components-v2/countdown/count-box.tsx +0 -19
- package/src/components-v2/countdown/count-down.tsx +0 -24
- package/src/components-v2/countdown/index.tsx +0 -2
- package/src/components-v2/countdown/useCountDown.ts +0 -41
- package/src/components-v2/data-table/index.ts +0 -2
- package/src/components-v2/data-table/table-header.tsx +0 -91
- package/src/components-v2/data-table/table-pagination.tsx +0 -36
- package/src/components-v2/footer/components/about-links.tsx +0 -23
- package/src/components-v2/footer/components/app-store.tsx +0 -38
- package/src/components-v2/footer/components/customer-care-links.tsx +0 -21
- package/src/components-v2/footer/components/logo.tsx +0 -23
- package/src/components-v2/footer/components/social-links.tsx +0 -43
- package/src/components-v2/footer/data/index.ts +0 -54
- package/src/components-v2/footer/footer-1.tsx +0 -62
- package/src/components-v2/footer/footer-2.tsx +0 -57
- package/src/components-v2/footer/footer-3.tsx +0 -53
- package/src/components-v2/footer/footer-4.tsx +0 -71
- package/src/components-v2/footer/index.ts +0 -4
- package/src/components-v2/footer/styles/index.ts +0 -42
- package/src/components-v2/navbar/category-based-menu/components/categories.tsx +0 -44
- package/src/components-v2/navbar/category-based-menu/components/category-item.tsx +0 -31
- package/src/components-v2/navbar/category-based-menu/components/child-categories.tsx +0 -38
- package/src/components-v2/navbar/mega-menu/category-list.tsx +0 -29
- package/src/components-v2/navbar/mobile-menu/render-levels.test.tsx +0 -71
- package/src/components-v2/navbar/mobile-menu/render-levels.tsx +0 -62
- package/src/components-v2/newsletter/index.ts +0 -1
- package/src/components-v2/newsletter/newsletter.tsx +0 -112
- package/src/components-v2/newsletter/social-icons.tsx +0 -35
- package/src/components-v2/newsletter/styles.ts +0 -65
- package/src/components-v2/page-sidenav/grocery-side-nav/components/link-item.tsx +0 -21
- package/src/components-v2/page-sidenav/grocery-side-nav/components/list-item.tsx +0 -27
- package/src/components-v2/page-sidenav/grocery-side-nav/components/nav-accordion.tsx +0 -36
- package/src/components-v2/page-sidenav/grocery-side-nav/components/render-child.tsx +0 -26
- package/src/components-v2/page-sidenav/grocery-side-nav/grocery-side-nav.tsx +0 -32
- package/src/components-v2/page-sidenav/grocery-side-nav/index.ts +0 -1
- package/src/components-v2/page-sidenav/grocery-side-nav/styles/index.ts +0 -11
- package/src/components-v2/page-sidenav/health-beauty-side-nav/components/list-item.tsx +0 -27
- package/src/components-v2/page-sidenav/health-beauty-side-nav/components/nav-accordion.tsx +0 -44
- package/src/components-v2/page-sidenav/health-beauty-side-nav/components/render-child.tsx +0 -20
- package/src/components-v2/page-sidenav/health-beauty-side-nav/health-beauty-side-nav.tsx +0 -43
- package/src/components-v2/page-sidenav/health-beauty-side-nav/index.ts +0 -1
- package/src/components-v2/page-sidenav/health-beauty-side-nav/styles/index.ts +0 -27
- package/src/components-v2/page-sidenav/side-navbar/components/list-item.tsx +0 -25
- package/src/components-v2/page-sidenav/side-navbar/components/nav-accordion.tsx +0 -46
- package/src/components-v2/page-sidenav/side-navbar/components/render-child.tsx +0 -20
- package/src/components-v2/page-sidenav/side-navbar/index.ts +0 -1
- package/src/components-v2/page-sidenav/side-navbar/side-nav-bar.tsx +0 -77
- package/src/components-v2/page-sidenav/side-navbar/styles/index.ts +0 -73
- package/src/components-v2/page-sidenav/side-navbar-2/components/button-content.tsx +0 -32
- package/src/components-v2/page-sidenav/side-navbar-2/components/sidebar-accordion.tsx +0 -66
- package/src/components-v2/page-sidenav/side-navbar-2/index.ts +0 -1
- package/src/components-v2/page-sidenav/side-navbar-2/side-navbar-2.tsx +0 -63
- package/src/components-v2/page-sidenav/side-navbar-2/styles/index.ts +0 -68
- package/src/components-v2/product-cards/product-card-1/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-1/product-card-1-wrapper.tsx +0 -304
- package/src/components-v2/product-cards/product-card-1/product-card.tsx +0 -107
- package/src/components-v2/product-cards/product-card-10/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-10/product-card.tsx +0 -128
- package/src/components-v2/product-cards/product-card-10/styles/index.ts +0 -38
- package/src/components-v2/product-cards/product-card-11/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-11/product-card.tsx +0 -66
- package/src/components-v2/product-cards/product-card-11/styles/index.ts +0 -16
- package/src/components-v2/product-cards/product-card-12/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-12/product-card.tsx +0 -42
- package/src/components-v2/product-cards/product-card-12/styles/index.ts +0 -16
- package/src/components-v2/product-cards/product-card-13/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-13/product-card.tsx +0 -48
- package/src/components-v2/product-cards/product-card-13/styles/index.ts +0 -25
- package/src/components-v2/product-cards/product-card-14/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-14/product-card.tsx +0 -125
- package/src/components-v2/product-cards/product-card-14/styles/index.ts +0 -40
- package/src/components-v2/product-cards/product-card-15/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-15/product-card.tsx +0 -121
- package/src/components-v2/product-cards/product-card-15/styles/index.ts +0 -57
- package/src/components-v2/product-cards/product-card-16/product-card.tsx +0 -116
- package/src/components-v2/product-cards/product-card-2/components/favorite-button.tsx +0 -29
- package/src/components-v2/product-cards/product-card-2/components/product-price.tsx +0 -26
- package/src/components-v2/product-cards/product-card-2/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-2/product-card.tsx +0 -70
- package/src/components-v2/product-cards/product-card-3/components/hover-actions.tsx +0 -83
- package/src/components-v2/product-cards/product-card-3/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-3/product-card.tsx +0 -110
- package/src/components-v2/product-cards/product-card-3/styles/index.ts +0 -89
- package/src/components-v2/product-cards/product-card-4/components/hover-actions.tsx +0 -50
- package/src/components-v2/product-cards/product-card-4/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-4/product-card.tsx +0 -128
- package/src/components-v2/product-cards/product-card-4/styles/index.ts +0 -66
- package/src/components-v2/product-cards/product-card-5/components/button-actions.tsx +0 -49
- package/src/components-v2/product-cards/product-card-5/components/hover-actions.tsx +0 -50
- package/src/components-v2/product-cards/product-card-5/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-5/product-card.tsx +0 -137
- package/src/components-v2/product-cards/product-card-5/styles/index.ts +0 -94
- package/src/components-v2/product-cards/product-card-6/components/hover-actions.tsx +0 -50
- package/src/components-v2/product-cards/product-card-6/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-6/product-card.tsx +0 -121
- package/src/components-v2/product-cards/product-card-6/styles/index.ts +0 -63
- package/src/components-v2/product-cards/product-card-7/components/product-status.tsx +0 -18
- package/src/components-v2/product-cards/product-card-7/components/quantity-buttons.tsx +0 -47
- package/src/components-v2/product-cards/product-card-7/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-7/product-card.tsx +0 -139
- package/src/components-v2/product-cards/product-card-7/styles/index.ts +0 -98
- package/src/components-v2/product-cards/product-card-8/product-card.tsx +0 -151
- package/src/components-v2/product-cards/product-card-9/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-9/product-card.tsx +0 -169
- package/src/components-v2/product-cards/product-card-wishlist/components/hover-actions.tsx +0 -37
- package/src/components-v2/product-cards/product-card-wishlist/product-card.tsx +0 -118
- package/src/components-v2/product-cards/product-card-wishlist/styles/index.ts +0 -53
- package/src/components-v2/product-quantity-buttons/product-quantity-buttons.tsx +0 -88
- package/src/components-v2/products-view/product-view-dialog.tsx +0 -218
- package/src/components-v2/search-box/__test__/search-input-category.test.tsx +0 -110
- package/src/components-v2/search-box/__test__/search-input.test.tsx +0 -137
- package/src/components-v2/search-box/__test__/search-results.json +0 -165
- package/src/components-v2/search-box/components/search-result.tsx +0 -86
- package/src/components-v2/search-box/hooks/use-search.ts +0 -63
- package/src/components-v2/search-box/index.ts +0 -2
- package/src/components-v2/search-box/search-input-category.test.tsx +0 -110
- package/src/components-v2/search-box/search-input-category.tsx +0 -203
- package/src/components-v2/search-box/search-input.test.tsx +0 -41
- package/src/components-v2/search-box/search-input.tsx +0 -66
- package/src/components-v2/section-header/index.ts +0 -2
- package/src/components-v2/section-header/section-creator.tsx +0 -29
- package/src/components-v2/section-header/section-header.tsx +0 -44
- package/src/components-v2/service-cards/icon-component.tsx +0 -18
- package/src/components-v2/service-cards/service-card-1/index.ts +0 -1
- package/src/components-v2/service-cards/service-card-1/service-card-1.tsx +0 -42
- package/src/components-v2/service-cards/service-card-2/index.ts +0 -1
- package/src/components-v2/service-cards/service-card-2/service-card-2.tsx +0 -37
- package/src/components-v2/service-cards/service-card-3/index.ts +0 -1
- package/src/components-v2/service-cards/service-card-3/service-card-3.tsx +0 -28
- package/src/components-v2/service-cards/service-card-3/styles.ts +0 -23
- package/src/components-v2/settings/index.ts +0 -1
- package/src/components-v2/settings/setting.tsx +0 -141
- package/src/components-v2/settings/styles.ts +0 -57
- package/src/components-v2/sticky-wrapper/index.ts +0 -1
- package/src/components-v2/sticky-wrapper/sticky-wrapper.tsx +0 -21
- package/src/components-v2/sticky-wrapper/styles.ts +0 -25
- package/src/components-v2/stories/story-content/index.ts +0 -1
- package/src/components-v2/stories/story-content/story-content.tsx +0 -28
- package/src/components-v2/stories/story-content/styles.ts +0 -22
- package/src/components-v2/stories/story-item/index.ts +0 -1
- package/src/components-v2/stories/story-item/story-item.tsx +0 -24
- package/src/components-v2/stories/story-item/styles.ts +0 -11
- package/src/components-v2/stories/story-viewer/index.ts +0 -1
- package/src/components-v2/stories/story-viewer/story-viewer.tsx +0 -44
- package/src/components-v2/stories/story-viewer/styles.ts +0 -15
- package/src/components-v2/subscribe-input/index.ts +0 -1
- package/src/components-v2/subscribe-input/styles.ts +0 -14
- package/src/components-v2/subscribe-input/subscribe-input.tsx +0 -43
- package/src/components-v2/topbar/index.ts +0 -1
- package/src/components-v2/topbar/styles.ts +0 -55
- package/src/components-v2/topbar/top-bar.tsx +0 -115
- package/src/components-v2/wishlist/add-to-wishlist-dialog.tsx +0 -161
- package/src/components-v2/wishlist/components/create-new-list.tsx +0 -167
- package/src/components-v2/wishlist/components/dashboard-header.tsx +0 -123
- package/src/components-v2/wishlist/components/navigation.tsx +0 -87
- package/src/components-v2/wishlist/components/no-records.tsx +0 -20
- package/src/components-v2/wishlist/components/wishlist-modal-item.tsx +0 -66
- package/src/components-v2/wishlist/remove-from-wishlist-dialog.tsx +0 -175
- package/src/components-v2/wishlist-modal/TODO.md +0 -10
- package/src/components-v2/wishlist-modal/add-to-wishlist-dialog.tsx +0 -161
- package/src/components-v2/wishlist-modal/remove-from-wishlist-dialog.tsx +0 -174
- package/src/components-v2/wishlist-modal/wishlist-modal-item.tsx +0 -65
- package/src/pages-v2/product-details/product-intro/product-intro-images.tsx +0 -90
- package/src/pages-v2/product-details/product-intro/product-intro.tsx +0 -256
- /package/src/{pages-v2/account → components-v2}/no-records.tsx +0 -0
- /package/src/components-v2/product-cards/{product-card-1 → product-card}/components/hover-actions.tsx +0 -0
- /package/src/components-v2/product-cards/{product-card-16 → product-card}/index.ts +0 -0
- /package/src/components-v2/product-cards/{product-card-16 → product-card-plp}/components/quantity-buttons.tsx +0 -0
- /package/src/components-v2/product-cards/{product-card-wishlist → product-card-plp}/index.ts +0 -0
- /package/src/components-v2/product-cards/{product-card-16 → product-card-plp}/styles/index.ts +0 -0
- /package/src/components-v2/product-cards/{product-card-9 → product-card-plp-list}/components/add-to-cart.tsx +0 -0
- /package/src/components-v2/product-cards/{product-card-9 → product-card-plp-list}/components/favorite-button.tsx +0 -0
- /package/src/components-v2/product-cards/{product-card-9 → product-card-plp-list}/components/tags.tsx +0 -0
- /package/src/components-v2/product-cards/{product-card-8 → product-card-search}/index.ts +0 -0
- /package/src/components-v2/product-cards/{product-card-8 → product-card-search}/styles/index.ts +0 -0
- /package/src/components-v2/sticky/{Sticky.tsx → sticky.tsx} +0 -0
- /package/src/components-v2/{wishlist → wishlist-dialogs}/styles.ts +0 -0
- /package/src/{components-v2/shop-card → pages-v2/product-details/bopis/store-card}/index.ts +0 -0
- /package/src/{components-v2/shop-card → pages-v2/product-details/bopis/store-card}/styles.ts +0 -0
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { ChangeEvent } from "react";
|
|
2
|
-
import styled from "@mui/material/styles/styled";
|
|
3
|
-
import Checkbox from "@mui/material/Checkbox";
|
|
4
|
-
import TableRow from "@mui/material/TableRow";
|
|
5
|
-
import TableCell from "@mui/material/TableCell";
|
|
6
|
-
import TableHead from "@mui/material/TableHead";
|
|
7
|
-
import TableSortLabel from "@mui/material/TableSortLabel";
|
|
8
|
-
// CUSTOM ICON COMPONENT
|
|
9
|
-
import UpDown from "@evenicanpm/storefront-core/src/components-v2/icons/up-down";
|
|
10
|
-
|
|
11
|
-
// STYLED COMPONENTS
|
|
12
|
-
const StyledTableCell = styled(TableCell)(({ theme }) => ({
|
|
13
|
-
fontWeight: 600,
|
|
14
|
-
padding: "16px 20px",
|
|
15
|
-
color: theme.palette.grey[900],
|
|
16
|
-
}));
|
|
17
|
-
|
|
18
|
-
// ----------------------------------------------------------------------
|
|
19
|
-
interface Props {
|
|
20
|
-
heading: Headings[];
|
|
21
|
-
orderBy: string;
|
|
22
|
-
rowCount: number;
|
|
23
|
-
numSelected: number;
|
|
24
|
-
order: "asc" | "desc";
|
|
25
|
-
hideSelectBtn?: boolean;
|
|
26
|
-
onRequestSort: (id: string) => void;
|
|
27
|
-
onSelectAllClick?: (checked: boolean, defaultSelect: string) => void;
|
|
28
|
-
}
|
|
29
|
-
// ----------------------------------------------------------------------
|
|
30
|
-
export type Key = string | number | bigint;
|
|
31
|
-
export type Align = "inherit" | "left" | "center" | "right" | "justify";
|
|
32
|
-
export type SortDirection = "asc" | "desc" | false;
|
|
33
|
-
|
|
34
|
-
export type Headings = {
|
|
35
|
-
label: string;
|
|
36
|
-
align: Align;
|
|
37
|
-
key: Key;
|
|
38
|
-
sortDirection: SortDirection;
|
|
39
|
-
id: string;
|
|
40
|
-
};
|
|
41
|
-
// ----------------------------------------------------------------------
|
|
42
|
-
export default function TableHeader(props: Props) {
|
|
43
|
-
const {
|
|
44
|
-
order,
|
|
45
|
-
heading,
|
|
46
|
-
orderBy,
|
|
47
|
-
rowCount,
|
|
48
|
-
numSelected,
|
|
49
|
-
onRequestSort,
|
|
50
|
-
onSelectAllClick,
|
|
51
|
-
hideSelectBtn = false,
|
|
52
|
-
} = props;
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<TableHead sx={{ backgroundColor: "grey.200" }}>
|
|
56
|
-
<TableRow>
|
|
57
|
-
{!hideSelectBtn ? (
|
|
58
|
-
<StyledTableCell align="left">
|
|
59
|
-
<Checkbox
|
|
60
|
-
color="info"
|
|
61
|
-
checked={rowCount > 0 && numSelected === rowCount}
|
|
62
|
-
onChange={(event: ChangeEvent<HTMLInputElement>) =>
|
|
63
|
-
onSelectAllClick?.(event.target.checked, "product")
|
|
64
|
-
}
|
|
65
|
-
/>
|
|
66
|
-
</StyledTableCell>
|
|
67
|
-
) : null}
|
|
68
|
-
|
|
69
|
-
{heading.map((headCell) => (
|
|
70
|
-
<StyledTableCell
|
|
71
|
-
key={headCell.id}
|
|
72
|
-
align={headCell.align}
|
|
73
|
-
sortDirection={orderBy === headCell.id ? order : false}
|
|
74
|
-
>
|
|
75
|
-
<TableSortLabel
|
|
76
|
-
active={orderBy === headCell.id}
|
|
77
|
-
onClick={() => onRequestSort(headCell.id)}
|
|
78
|
-
direction={orderBy === headCell.id ? order : "asc"}
|
|
79
|
-
sx={{ "& .MuiTableSortLabel-icon": { opacity: 1 } }}
|
|
80
|
-
IconComponent={() => (
|
|
81
|
-
<UpDown sx={{ fontSize: 14, ml: 1, color: "grey.600" }} />
|
|
82
|
-
)}
|
|
83
|
-
>
|
|
84
|
-
{headCell.label}
|
|
85
|
-
</TableSortLabel>
|
|
86
|
-
</StyledTableCell>
|
|
87
|
-
))}
|
|
88
|
-
</TableRow>
|
|
89
|
-
</TableHead>
|
|
90
|
-
);
|
|
91
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import Pagination, { PaginationProps } from "@mui/material/Pagination";
|
|
2
|
-
import styled from "@mui/material/styles/styled";
|
|
3
|
-
|
|
4
|
-
// STYLED COMPONENT
|
|
5
|
-
const StyledPagination = styled(Pagination)(({ theme }) => ({
|
|
6
|
-
"& .MuiPaginationItem-root": {
|
|
7
|
-
fontSize: 14,
|
|
8
|
-
fontWeight: 500,
|
|
9
|
-
color: theme.palette.grey[900],
|
|
10
|
-
border: `1px solid transparent`,
|
|
11
|
-
},
|
|
12
|
-
"& .MuiPaginationItem-page:hover": {
|
|
13
|
-
borderRadius: 20,
|
|
14
|
-
backgroundColor: "transparent",
|
|
15
|
-
color: theme.palette.info.main,
|
|
16
|
-
border: `1px solid ${theme.palette.info.main}`,
|
|
17
|
-
},
|
|
18
|
-
"& .MuiPaginationItem-page.Mui-selected": {
|
|
19
|
-
borderRadius: 20,
|
|
20
|
-
backgroundColor: "transparent",
|
|
21
|
-
color: theme.palette.info.main,
|
|
22
|
-
border: `1px solid ${theme.palette.info.main}`,
|
|
23
|
-
":hover": { backgroundColor: "transparent" },
|
|
24
|
-
},
|
|
25
|
-
"& .MuiPaginationItem-previousNext": {
|
|
26
|
-
margin: 10,
|
|
27
|
-
borderRadius: 20,
|
|
28
|
-
color: theme.palette.info.main,
|
|
29
|
-
border: `1px solid ${theme.palette.info.main}`,
|
|
30
|
-
"&:hover": { backgroundColor: "transparent" },
|
|
31
|
-
},
|
|
32
|
-
}));
|
|
33
|
-
|
|
34
|
-
export default function TablePagination(props: PaginationProps) {
|
|
35
|
-
return <StyledPagination {...props} />;
|
|
36
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Fragment } from "react";
|
|
2
|
-
import { Heading, StyledLink } from "../styles/index";
|
|
3
|
-
import { ABOUT_LINKS } from "../data/index";
|
|
4
|
-
|
|
5
|
-
// ==============================================================
|
|
6
|
-
type Props = { isDark?: boolean };
|
|
7
|
-
// ==============================================================
|
|
8
|
-
|
|
9
|
-
export default function AboutLinks({ isDark }: Props) {
|
|
10
|
-
return (
|
|
11
|
-
<Fragment>
|
|
12
|
-
<Heading>About Us</Heading>
|
|
13
|
-
|
|
14
|
-
<div>
|
|
15
|
-
{ABOUT_LINKS.map((item, ind) => (
|
|
16
|
-
<StyledLink isDark={isDark} href="/" key={ind}>
|
|
17
|
-
{item}
|
|
18
|
-
</StyledLink>
|
|
19
|
-
))}
|
|
20
|
-
</div>
|
|
21
|
-
</Fragment>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import Box from "@mui/material/Box";
|
|
2
|
-
// GLOBAL CUSTOM COMPONENT
|
|
3
|
-
import FlexBox from "@evenicanpm/storefront-core/src/components-v2/flex-box/flex-box";
|
|
4
|
-
// CUSTOM ICON COMPONENTS
|
|
5
|
-
import { PLAY_APP_STORE_DATA } from "../data/index";
|
|
6
|
-
|
|
7
|
-
export default function AppStore() {
|
|
8
|
-
return (
|
|
9
|
-
<FlexBox flexWrap="wrap" m={-1}>
|
|
10
|
-
{PLAY_APP_STORE_DATA.map(({ icon: Icon, subtitle, title, url }) => (
|
|
11
|
-
<a href={url} key={title} target="_blank" rel="noreferrer noopener">
|
|
12
|
-
<Box
|
|
13
|
-
m={1}
|
|
14
|
-
gap={1}
|
|
15
|
-
p="10px 16px"
|
|
16
|
-
color="white"
|
|
17
|
-
display="flex"
|
|
18
|
-
bgcolor="#161d2b"
|
|
19
|
-
borderRadius="5px"
|
|
20
|
-
alignItems="center"
|
|
21
|
-
>
|
|
22
|
-
<Icon />
|
|
23
|
-
|
|
24
|
-
<div>
|
|
25
|
-
<Box fontSize="8px" fontWeight="600" lineHeight="1">
|
|
26
|
-
{subtitle}
|
|
27
|
-
</Box>
|
|
28
|
-
|
|
29
|
-
<Box fontSize="14px" fontWeight="700">
|
|
30
|
-
{title}
|
|
31
|
-
</Box>
|
|
32
|
-
</div>
|
|
33
|
-
</Box>
|
|
34
|
-
</a>
|
|
35
|
-
))}
|
|
36
|
-
</FlexBox>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Fragment } from "react";
|
|
2
|
-
import { Heading, StyledLink } from "../styles/index";
|
|
3
|
-
import { CUSTOMER_CARE_LINKS } from "../data/index";
|
|
4
|
-
|
|
5
|
-
// ==============================================================
|
|
6
|
-
type Props = { isDark?: boolean };
|
|
7
|
-
// ==============================================================
|
|
8
|
-
|
|
9
|
-
export default function CustomerCareLinks({ isDark }: Props) {
|
|
10
|
-
return (
|
|
11
|
-
<Fragment>
|
|
12
|
-
<Heading>Customer Care</Heading>
|
|
13
|
-
|
|
14
|
-
{CUSTOMER_CARE_LINKS.map((item, ind) => (
|
|
15
|
-
<StyledLink isDark={isDark} href="/" key={ind}>
|
|
16
|
-
{item}
|
|
17
|
-
</StyledLink>
|
|
18
|
-
))}
|
|
19
|
-
</Fragment>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Fragment } from "react";
|
|
2
|
-
import Link from "next/link";
|
|
3
|
-
import AppStore from "./app-store";
|
|
4
|
-
import Image from "@evenicanpm/storefront-core/src/components-v2/BazaarImage";
|
|
5
|
-
import { Paragraph } from "@evenicanpm/storefront-core/src/components-v2/Typography";
|
|
6
|
-
|
|
7
|
-
export default function LogoSection() {
|
|
8
|
-
return (
|
|
9
|
-
<Fragment>
|
|
10
|
-
<Link href="/">
|
|
11
|
-
<Image mb={2.5} src="/assets/images/logo.svg" alt="logo" />
|
|
12
|
-
</Link>
|
|
13
|
-
|
|
14
|
-
<Paragraph mb={2.5} color="grey.500">
|
|
15
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Auctor libero
|
|
16
|
-
id et, in gravida. Sit diam duis mauris nulla cursus. Erat et lectus vel
|
|
17
|
-
ut sollicitudin elit at amet.
|
|
18
|
-
</Paragraph>
|
|
19
|
-
|
|
20
|
-
<AppStore />
|
|
21
|
-
</Fragment>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import IconButton from "@mui/material/IconButton";
|
|
4
|
-
import styled from "@mui/material/styles/styled";
|
|
5
|
-
// GLOBAL CUSTOM COMPONENT
|
|
6
|
-
import FlexBox from "@evenicanpm/storefront-core/src/components-v2/flex-box/flex-box";
|
|
7
|
-
// DATA
|
|
8
|
-
import { SOCIAL_ICON_LINKS } from "../data/index";
|
|
9
|
-
|
|
10
|
-
// STYLED COMPONENTS
|
|
11
|
-
const StyledIconButton = styled(IconButton, {
|
|
12
|
-
shouldForwardProp: (prop) => prop !== "variant",
|
|
13
|
-
})<Props>(({ variant, theme }) => ({
|
|
14
|
-
margin: 4,
|
|
15
|
-
fontSize: 12,
|
|
16
|
-
padding: "10px",
|
|
17
|
-
...(variant === "light" && {
|
|
18
|
-
backgroundColor: "rgba(0,0,0,0.2)",
|
|
19
|
-
}),
|
|
20
|
-
...(variant === "dark" && {
|
|
21
|
-
backgroundColor: theme.palette.grey[700],
|
|
22
|
-
":hover": { backgroundColor: theme.palette.grey[800] },
|
|
23
|
-
}),
|
|
24
|
-
".icon": { color: "white" },
|
|
25
|
-
}));
|
|
26
|
-
|
|
27
|
-
// ==============================================================
|
|
28
|
-
type Props = { variant?: "light" | "dark" };
|
|
29
|
-
// ==============================================================
|
|
30
|
-
|
|
31
|
-
export default function SocialLinks({ variant = "light" }: Props) {
|
|
32
|
-
return (
|
|
33
|
-
<FlexBox className="flex" mx={-0.625}>
|
|
34
|
-
{SOCIAL_ICON_LINKS.map(({ Icon, url }, ind) => (
|
|
35
|
-
<a href={url} target="_blank" rel="noreferrer noopenner" key={ind}>
|
|
36
|
-
<StyledIconButton variant={variant}>
|
|
37
|
-
<Icon fontSize="inherit" className="icon" />
|
|
38
|
-
</StyledIconButton>
|
|
39
|
-
</a>
|
|
40
|
-
))}
|
|
41
|
-
</FlexBox>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// CUSTOM ICON COMPONENTS
|
|
2
|
-
// import Google from "icons/Google";
|
|
3
|
-
// import Twitter from "icons/Twitter";
|
|
4
|
-
// import Youtube from "icons/Youtube";
|
|
5
|
-
// import Facebook from "icons/Facebook";
|
|
6
|
-
// import Instagram from "icons/Instagram";
|
|
7
|
-
// import PlayStore from "icons/PlayStore";
|
|
8
|
-
// import AppleStore from "icons/AppleStore";
|
|
9
|
-
|
|
10
|
-
import FallbackIcon from "@/cms/blocks/Icons/Components/FallbackIcon";
|
|
11
|
-
|
|
12
|
-
const Google = FallbackIcon;
|
|
13
|
-
const Twitter = FallbackIcon;
|
|
14
|
-
const Youtube = FallbackIcon;
|
|
15
|
-
const Facebook = FallbackIcon;
|
|
16
|
-
const Instagram = FallbackIcon;
|
|
17
|
-
const PlayStore = FallbackIcon;
|
|
18
|
-
const AppleStore = FallbackIcon;
|
|
19
|
-
|
|
20
|
-
export const ABOUT_LINKS = [
|
|
21
|
-
"Careers",
|
|
22
|
-
"Our Stores",
|
|
23
|
-
"Our Cares",
|
|
24
|
-
"Terms & Conditions",
|
|
25
|
-
"Privacy Policy",
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
export const CUSTOMER_CARE_LINKS = [
|
|
29
|
-
"Help Center",
|
|
30
|
-
"Track Your Order",
|
|
31
|
-
"Corporate & Bulk Purchasing",
|
|
32
|
-
"Returns & Refunds",
|
|
33
|
-
];
|
|
34
|
-
|
|
35
|
-
export const SOCIAL_ICON_LINKS = [
|
|
36
|
-
{ Icon: Facebook, url: "https://www.facebook.com/UILibOfficial" },
|
|
37
|
-
{ Icon: Twitter, url: "https://twitter.com/uilibofficial" },
|
|
38
|
-
{
|
|
39
|
-
Icon: Youtube,
|
|
40
|
-
url: "https://www.youtube.com/channel/UCsIyD-TSO1wQFz-n2Y4i3Rg",
|
|
41
|
-
},
|
|
42
|
-
{ Icon: Google, url: "https://www.google.com/search?q=ui-lib.com" },
|
|
43
|
-
{ Icon: Instagram, url: "https://www.instagram.com/uilibofficial/" },
|
|
44
|
-
];
|
|
45
|
-
|
|
46
|
-
export const PLAY_APP_STORE_DATA = [
|
|
47
|
-
{ url: "/", icon: PlayStore, title: "Google Play", subtitle: "Get it on" },
|
|
48
|
-
{
|
|
49
|
-
url: "/",
|
|
50
|
-
icon: AppleStore,
|
|
51
|
-
title: "App Store",
|
|
52
|
-
subtitle: "Download on the",
|
|
53
|
-
},
|
|
54
|
-
];
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import Box from "@mui/material/Box";
|
|
2
|
-
import Grid from "@mui/material/Grid";
|
|
3
|
-
import Container from "@mui/material/Container";
|
|
4
|
-
// LOCAL CUSTOM COMPONENT
|
|
5
|
-
import LogoSection from "./components/logo";
|
|
6
|
-
import AboutLinks from "./components/about-links";
|
|
7
|
-
import SocialLinks from "./components/social-links";
|
|
8
|
-
import CustomerCareLinks from "./components/customer-care-links";
|
|
9
|
-
// GLOBAL CUSTOM COMPONENTS
|
|
10
|
-
import { Paragraph } from "@evenicanpm/storefront-core/src/components-v2/Typography";
|
|
11
|
-
// STYLED COMPONENTS
|
|
12
|
-
import { Heading } from "./styles/index";
|
|
13
|
-
|
|
14
|
-
export default function Footer1() {
|
|
15
|
-
return (
|
|
16
|
-
<Box component="footer" bgcolor="#222935" mb={{ sm: 0, xs: 7 }}>
|
|
17
|
-
<Box
|
|
18
|
-
component={Container}
|
|
19
|
-
color="white"
|
|
20
|
-
overflow="hidden"
|
|
21
|
-
py={{ sm: 10, xs: 4 }}
|
|
22
|
-
>
|
|
23
|
-
<Grid container spacing={3}>
|
|
24
|
-
<Grid item lg={4} md={6} sm={6} xs={12}>
|
|
25
|
-
<LogoSection />
|
|
26
|
-
</Grid>
|
|
27
|
-
|
|
28
|
-
{/* ABOUT US LINKS */}
|
|
29
|
-
<Grid item lg={2} md={6} sm={6} xs={12}>
|
|
30
|
-
<AboutLinks />
|
|
31
|
-
</Grid>
|
|
32
|
-
|
|
33
|
-
{/* CUSTOMER CARE LINKS */}
|
|
34
|
-
<Grid item lg={3} md={6} sm={6} xs={12}>
|
|
35
|
-
<CustomerCareLinks />
|
|
36
|
-
</Grid>
|
|
37
|
-
|
|
38
|
-
{/* CONTACT & SOCIAL LINKS */}
|
|
39
|
-
<Grid item lg={3} md={6} sm={6} xs={12}>
|
|
40
|
-
{/* CONTACT INFORMATION */}
|
|
41
|
-
<Heading>Contact Us</Heading>
|
|
42
|
-
|
|
43
|
-
<Paragraph py={0.6} color="grey.500">
|
|
44
|
-
70 Washington Square South, New York, NY 10012, United States
|
|
45
|
-
</Paragraph>
|
|
46
|
-
|
|
47
|
-
<Paragraph py={0.6} color="grey.500">
|
|
48
|
-
Email: uilib.help@gmail.com
|
|
49
|
-
</Paragraph>
|
|
50
|
-
|
|
51
|
-
<Paragraph py={0.6} mb={2} color="grey.500">
|
|
52
|
-
Phone: +1 1123 456 780
|
|
53
|
-
</Paragraph>
|
|
54
|
-
|
|
55
|
-
{/* SOCIAL LINKS WITH ICON */}
|
|
56
|
-
<SocialLinks />
|
|
57
|
-
</Grid>
|
|
58
|
-
</Grid>
|
|
59
|
-
</Box>
|
|
60
|
-
</Box>
|
|
61
|
-
);
|
|
62
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import Link from "next/link";
|
|
2
|
-
import Box from "@mui/material/Box";
|
|
3
|
-
import Grid from "@mui/material/Grid2";
|
|
4
|
-
// LOCAL CUSTOM COMPONENTS
|
|
5
|
-
import AppStore from "./components/app-store";
|
|
6
|
-
import SocialLinks from "./components/social-links";
|
|
7
|
-
// GLOBAL CUSTOM COMPONENTS
|
|
8
|
-
import BazaarImage from "@evenicanpm/storefront-core/src/components-v2/BazaarImage";
|
|
9
|
-
import { Paragraph } from "@evenicanpm/storefront-core/src/components-v2/Typography";
|
|
10
|
-
// DATA
|
|
11
|
-
import { CUSTOMER_CARE_LINKS } from "./data/index";
|
|
12
|
-
// STYLED COMPONENTS
|
|
13
|
-
import { StyledFooter, StyledLink } from "./styles/index";
|
|
14
|
-
|
|
15
|
-
export default function Footer2() {
|
|
16
|
-
return (
|
|
17
|
-
<StyledFooter
|
|
18
|
-
sx={{
|
|
19
|
-
padding: 5,
|
|
20
|
-
color: "white",
|
|
21
|
-
borderRadius: 2,
|
|
22
|
-
bgcolor: "#141850",
|
|
23
|
-
mb: { md: 2, xs: 10 },
|
|
24
|
-
}}
|
|
25
|
-
>
|
|
26
|
-
<Grid container spacing={6}>
|
|
27
|
-
<Grid size={{ sm: 3, xs: 12 }}>
|
|
28
|
-
<Link href="/">
|
|
29
|
-
<BazaarImage mb={2.5} src="/assets/images/logo.svg" alt="logo" />
|
|
30
|
-
</Link>
|
|
31
|
-
|
|
32
|
-
<Paragraph mb={2.5} color="grey.500" maxWidth="370px">
|
|
33
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Auctor
|
|
34
|
-
libero id et, in gravida. Sit diam duis mauris nulla cursus. Erat et
|
|
35
|
-
lectus vel ut sollicitudin elit at amet.
|
|
36
|
-
</Paragraph>
|
|
37
|
-
|
|
38
|
-
<AppStore />
|
|
39
|
-
</Grid>
|
|
40
|
-
|
|
41
|
-
<Grid size={{ sm: 6, xs: 12 }}>
|
|
42
|
-
{/* CUSTOMER CARE LINKS */}
|
|
43
|
-
<Box mb={2} mt={{ md: 6, xs: 2 }}>
|
|
44
|
-
{CUSTOMER_CARE_LINKS.map((item, ind) => (
|
|
45
|
-
<StyledLink href="/" key={ind}>
|
|
46
|
-
{item}
|
|
47
|
-
</StyledLink>
|
|
48
|
-
))}
|
|
49
|
-
</Box>
|
|
50
|
-
|
|
51
|
-
{/* SOCIAL LINKS WITH ICON */}
|
|
52
|
-
<SocialLinks />
|
|
53
|
-
</Grid>
|
|
54
|
-
</Grid>
|
|
55
|
-
</StyledFooter>
|
|
56
|
-
);
|
|
57
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import Link from "next/link";
|
|
2
|
-
import Box from "@mui/material/Box";
|
|
3
|
-
import Grid from "@mui/material/Grid2";
|
|
4
|
-
// import { SxProps } from "@mui/material/styles"; // 'SxProps' is declared but its value is never read.
|
|
5
|
-
import Container from "@mui/material/Container";
|
|
6
|
-
// LOCAL CUSTOM COMPONENT
|
|
7
|
-
import AppStore from "./components/app-store";
|
|
8
|
-
import SocialLinks from "./components/social-links";
|
|
9
|
-
// GLOBAL CUSTOM COMPONENTS
|
|
10
|
-
import BazaarImage from "@evenicanpm/storefront-core/src/components-v2/BazaarImage";
|
|
11
|
-
import { Paragraph } from "@evenicanpm/storefront-core/src/components-v2/Typography";
|
|
12
|
-
// DATA
|
|
13
|
-
import { CUSTOMER_CARE_LINKS } from "./data/index";
|
|
14
|
-
// STYLED COMPONENTS
|
|
15
|
-
import { StyledRoot, StyledLink } from "./styles/index";
|
|
16
|
-
|
|
17
|
-
export default function Footer3() {
|
|
18
|
-
return (
|
|
19
|
-
<StyledRoot>
|
|
20
|
-
<Container>
|
|
21
|
-
<Grid container spacing={6}>
|
|
22
|
-
<Grid size={{ md: 7, xs: 12 }}>
|
|
23
|
-
<Link href="/">
|
|
24
|
-
<BazaarImage mb={2.5} src="/assets/images/logo.svg" alt="logo" />
|
|
25
|
-
</Link>
|
|
26
|
-
|
|
27
|
-
<Paragraph mb={2.5} color="grey.300" maxWidth="370px">
|
|
28
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Auctor
|
|
29
|
-
libero id et, in gravida. Sit diam duis mauris nulla cursus. Erat
|
|
30
|
-
et lectus vel ut sollicitudin elit at amet.
|
|
31
|
-
</Paragraph>
|
|
32
|
-
|
|
33
|
-
<AppStore />
|
|
34
|
-
</Grid>
|
|
35
|
-
|
|
36
|
-
<Grid size={{ md: 5, xs: 12 }}>
|
|
37
|
-
{/* CUSTOMER CARE LINKS */}
|
|
38
|
-
<Box mb={2} mt={{ md: 6, xs: 2 }}>
|
|
39
|
-
{CUSTOMER_CARE_LINKS.map((item, ind) => (
|
|
40
|
-
<StyledLink href="/" key={ind} sx={{ color: "grey.300" }}>
|
|
41
|
-
{item}
|
|
42
|
-
</StyledLink>
|
|
43
|
-
))}
|
|
44
|
-
</Box>
|
|
45
|
-
|
|
46
|
-
{/* SOCIAL LINKS WITH ICON */}
|
|
47
|
-
<SocialLinks />
|
|
48
|
-
</Grid>
|
|
49
|
-
</Grid>
|
|
50
|
-
</Container>
|
|
51
|
-
</StyledRoot>
|
|
52
|
-
);
|
|
53
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import Box from "@mui/material/Box";
|
|
2
|
-
import Grid from "@mui/material/Grid2";
|
|
3
|
-
import Divider from "@mui/material/Divider";
|
|
4
|
-
import Container from "@mui/material/Container";
|
|
5
|
-
// LOCAL CUSTOM COMPONENT
|
|
6
|
-
import AboutLinks from "./components/about-links";
|
|
7
|
-
import SocialLinks from "./components/social-links";
|
|
8
|
-
import CustomerCareLinks from "./components/customer-care-links";
|
|
9
|
-
// GLOBAL CUSTOM COMPONENTS
|
|
10
|
-
import LazyImage from "@evenicanpm/storefront-core/src/components-v2/LazyImage";
|
|
11
|
-
import { Paragraph } from "@evenicanpm/storefront-core/src/components-v2/Typography";
|
|
12
|
-
import FlexBetween from "@evenicanpm/storefront-core/src/components-v2/flex-box/flex-between";
|
|
13
|
-
// STYLED COMPONENT
|
|
14
|
-
import { Heading } from "./styles/index";
|
|
15
|
-
|
|
16
|
-
export default function Footer4() {
|
|
17
|
-
return (
|
|
18
|
-
<Box component="footer" bgcolor="white" pt={12}>
|
|
19
|
-
<Container>
|
|
20
|
-
<Grid container spacing={3}>
|
|
21
|
-
<Grid size={{ lg: 4, md: 4, sm: 6, xs: 12 }}>
|
|
22
|
-
<Box maxWidth={100}>
|
|
23
|
-
<LazyImage
|
|
24
|
-
src={require("../../../public/assets/images/logo2.svg")}
|
|
25
|
-
alt="logo"
|
|
26
|
-
/>
|
|
27
|
-
</Box>
|
|
28
|
-
|
|
29
|
-
<Paragraph mb={2.5} maxWidth={{ xl: 400 }}>
|
|
30
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Auctor
|
|
31
|
-
libero id et, in gravida. Sit diam duis mauris nulla cursus. Erat
|
|
32
|
-
et lectus vel ut sollicitudin elit at amet.
|
|
33
|
-
</Paragraph>
|
|
34
|
-
</Grid>
|
|
35
|
-
|
|
36
|
-
{/* ABOUT US LINKS */}
|
|
37
|
-
<Grid size={{ lg: 2, md: 2, sm: 6, xs: 12 }}>
|
|
38
|
-
<AboutLinks isDark />
|
|
39
|
-
</Grid>
|
|
40
|
-
|
|
41
|
-
{/* CUSTOMER CARE LINKS */}
|
|
42
|
-
<Grid size={{ lg: 3, md: 3, sm: 6, xs: 12 }}>
|
|
43
|
-
<CustomerCareLinks isDark />
|
|
44
|
-
</Grid>
|
|
45
|
-
|
|
46
|
-
{/* CONTACT INFORMATION */}
|
|
47
|
-
<Grid size={{ lg: 3, md: 3, sm: 6, xs: 12 }}>
|
|
48
|
-
<Heading>Contact Us</Heading>
|
|
49
|
-
|
|
50
|
-
<Paragraph py={0.6}>
|
|
51
|
-
70 Washington Square South, New York, NY 10012, United States
|
|
52
|
-
</Paragraph>
|
|
53
|
-
|
|
54
|
-
<Paragraph py={0.6}>Email: uilib.help@gmail.com</Paragraph>
|
|
55
|
-
|
|
56
|
-
<Paragraph py={0.6} mb={2}>
|
|
57
|
-
Phone: +1 1123 456 780
|
|
58
|
-
</Paragraph>
|
|
59
|
-
</Grid>
|
|
60
|
-
</Grid>
|
|
61
|
-
|
|
62
|
-
<Box component={Divider} mt={{ md: 8, xs: 3 }} />
|
|
63
|
-
|
|
64
|
-
<FlexBetween pt={2} pb={{ sm: 10, md: 2 }}>
|
|
65
|
-
<Paragraph>© 2023 By UI Lib. All rights reserved.</Paragraph>
|
|
66
|
-
<SocialLinks variant="dark" />
|
|
67
|
-
</FlexBetween>
|
|
68
|
-
</Container>
|
|
69
|
-
</Box>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import Link from "next/link";
|
|
4
|
-
import styled from "@mui/material/styles/styled";
|
|
5
|
-
import getPaletteColor from "@/lib/get-palette-color";
|
|
6
|
-
|
|
7
|
-
// ==============================================================
|
|
8
|
-
type LinkProps = { isDark?: boolean };
|
|
9
|
-
// ==============================================================
|
|
10
|
-
|
|
11
|
-
export const StyledLink = styled(Link, {
|
|
12
|
-
shouldForwardProp: (prop) => prop !== "isDark",
|
|
13
|
-
})<LinkProps>(({ theme, isDark }) => ({
|
|
14
|
-
borderRadius: 4,
|
|
15
|
-
display: "block",
|
|
16
|
-
cursor: "pointer",
|
|
17
|
-
position: "relative",
|
|
18
|
-
padding: "0.3rem 0rem",
|
|
19
|
-
...(!isDark && {
|
|
20
|
-
color: theme.palette.grey[500],
|
|
21
|
-
"&:hover": { color: theme.palette.grey[100] },
|
|
22
|
-
}),
|
|
23
|
-
}));
|
|
24
|
-
|
|
25
|
-
export const StyledFooter = styled("footer")(({ theme }) => ({
|
|
26
|
-
[theme.breakpoints.down("md")]: { marginBottom: "4rem" },
|
|
27
|
-
}));
|
|
28
|
-
|
|
29
|
-
export const StyledRoot = styled("footer")(({ theme }) => ({
|
|
30
|
-
padding: 40,
|
|
31
|
-
color: "white",
|
|
32
|
-
borderRadius: 8,
|
|
33
|
-
background: getPaletteColor(theme, "primary", 600),
|
|
34
|
-
[theme.breakpoints.down("md")]: { marginBottom: "6rem !important" },
|
|
35
|
-
}));
|
|
36
|
-
|
|
37
|
-
export const Heading = styled("h6")({
|
|
38
|
-
fontSize: 18,
|
|
39
|
-
lineHeight: 1,
|
|
40
|
-
fontWeight: 600,
|
|
41
|
-
marginBottom: 12,
|
|
42
|
-
});
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import ChevronRight from "@mui/icons-material/ChevronRight";
|
|
2
|
-
// GLOBAL CUSTOM HOOK
|
|
3
|
-
import useSettings from "@evenicanpm/storefront-core/src/hooks/use-settings";
|
|
4
|
-
// STYLED COMPONENTS
|
|
5
|
-
import { CategoryList, CategoryListItem } from "../styles";
|
|
6
|
-
|
|
7
|
-
// ==============================================================
|
|
8
|
-
interface Props {
|
|
9
|
-
categories: string[];
|
|
10
|
-
openList: string;
|
|
11
|
-
handleOpen: (item: string) => void;
|
|
12
|
-
}
|
|
13
|
-
// ==============================================================
|
|
14
|
-
|
|
15
|
-
export default function Categories({
|
|
16
|
-
categories,
|
|
17
|
-
openList,
|
|
18
|
-
handleOpen,
|
|
19
|
-
}: Props) {
|
|
20
|
-
const { settings } = useSettings();
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<CategoryList>
|
|
24
|
-
{categories.map((item) => (
|
|
25
|
-
<CategoryListItem
|
|
26
|
-
key={item}
|
|
27
|
-
active={openList === item ? 1 : 0}
|
|
28
|
-
onMouseEnter={() => handleOpen(item)}
|
|
29
|
-
>
|
|
30
|
-
{item}
|
|
31
|
-
|
|
32
|
-
<ChevronRight
|
|
33
|
-
fontSize="small"
|
|
34
|
-
sx={{
|
|
35
|
-
transform: `rotate(${
|
|
36
|
-
settings.direction === "rtl" ? "180deg" : "0"
|
|
37
|
-
})`,
|
|
38
|
-
}}
|
|
39
|
-
/>
|
|
40
|
-
</CategoryListItem>
|
|
41
|
-
))}
|
|
42
|
-
</CategoryList>
|
|
43
|
-
);
|
|
44
|
-
}
|