@evenicanpm/storefront-core 1.0.6 → 1.2.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/EvenicaTheme.ts +9 -0
- package/.storybook/main.ts +55 -0
- package/.storybook/manager.ts +6 -0
- package/.storybook/preview.tsx +42 -0
- package/README.md +17 -2
- package/__mocks__/countries.ts +11 -0
- package/__mocks__/create-mutation.ts +60 -0
- package/__mocks__/create-query.ts +93 -0
- package/__mocks__/data/categories.json +795 -0
- package/__mocks__/get-product-by-id.ts +7 -0
- package/__mocks__/next-auth-react.ts +9 -0
- package/__mocks__/next-font.js +4 -0
- package/__mocks__/next-headers.js +13 -0
- package/__mocks__/next-image.tsx +7 -0
- package/__mocks__/next-link.js +19 -0
- package/__mocks__/next-navigation.ts +29 -0
- package/__mocks__/product-dimensions.ts +635 -0
- package/__mocks__/products.ts +533 -0
- package/__mocks__/query-client.ts +3 -0
- package/__mocks__/wishlists.json +408 -0
- package/docs.tsconfig.json +33 -33
- package/package.json +43 -36
- package/src/api-manager/datasources/d365/d365-address.datasource.ts +127 -127
- package/src/api-manager/datasources/d365/d365-base.datasource.ts +4 -4
- package/src/api-manager/datasources/d365/d365-cart.datasource.ts +428 -428
- package/src/api-manager/datasources/d365/d365-categories.datasource.ts +30 -30
- package/src/api-manager/datasources/d365/d365-order.datasource.ts +54 -54
- package/src/api-manager/datasources/d365/d365-organization.datasource.ts +74 -74
- package/src/api-manager/datasources/d365/d365-product.datasource.ts +253 -253
- package/src/api-manager/datasources/d365/d365-session.datasource.ts +15 -15
- package/src/api-manager/datasources/d365/d365-user.datasource.ts +248 -248
- package/src/api-manager/datasources/d365/d365.datasource.ts +37 -37
- package/src/api-manager/datasources/d365/index.ts +2 -2
- package/src/api-manager/datasources/d365/test-context.ts +22 -22
- package/src/api-manager/datasources/d365/utils/create-search-criteria.ts +8 -8
- package/src/api-manager/datasources/d365/utils/decode-jwt.ts +5 -5
- package/src/api-manager/datasources/d365/utils/get-context-cookie.ts +15 -15
- package/src/api-manager/datasources/d365/utils/parse-object.ts +5 -5
- package/src/api-manager/datasources/d365/utils/product-images-utils.ts +28 -28
- package/src/api-manager/datasources/d365/utils/product-inventory-utils.ts +24 -24
- package/src/api-manager/datasources/e4/address/e4-address.datasource.ts +91 -91
- package/src/api-manager/datasources/e4/address/e4-address.remaps.ts +45 -45
- package/src/api-manager/datasources/e4/address/e4-address.translator.ts +64 -64
- package/src/api-manager/datasources/e4/cart/e4-cart.datasource.ts +247 -247
- package/src/api-manager/datasources/e4/cart/e4-cart.remaps.ts +74 -74
- package/src/api-manager/datasources/e4/cart/e4-cart.translator.ts +14 -11
- package/src/api-manager/datasources/e4/categories/e4-categories.datasource.ts +29 -29
- package/src/api-manager/datasources/e4/categories/e4-categories.translator.ts +140 -140
- package/src/api-manager/datasources/e4/e4.datasource.ts +18 -18
- package/src/api-manager/datasources/e4/graphqlRequestSdk.ts +39785 -7598
- package/src/api-manager/datasources/e4/order/e4-order.datasource.ts +38 -38
- package/src/api-manager/datasources/e4/order/e4-order.remaps.ts +76 -76
- package/src/api-manager/datasources/e4/organization/e4-organization.datasource.ts +11 -11
- package/src/api-manager/datasources/e4/product/e4-product.datasource.ts +169 -169
- package/src/api-manager/datasources/e4/product/e4-product.remaps.ts +66 -66
- package/src/api-manager/datasources/e4/product/e4-product.translator.ts +288 -288
- package/src/api-manager/datasources/e4/session/e4-session.datasource.ts +33 -33
- package/src/api-manager/datasources/e4/session/e4-session.translator.ts +13 -13
- package/src/api-manager/datasources/e4/user/e4-user.datasource.ts +138 -138
- package/src/api-manager/datasources/e4/user/e4-user.remaps.ts +37 -37
- package/src/api-manager/datasources/e4/user/e4-user.translator.ts +23 -23
- package/src/api-manager/datasources/e4/utils/unwrap-e4-variants.ts +44 -44
- package/src/api-manager/index.ts +108 -105
- package/src/api-manager/lib/category-helpers.ts +81 -81
- package/src/api-manager/lib/get-dynamics-context.ts +25 -25
- package/src/api-manager/lib/get-graphql-client.ts +33 -33
- package/src/api-manager/schemas/address.schema.ts +12 -12
- package/src/api-manager/schemas/cart.schema.ts +47 -47
- package/src/api-manager/schemas/d365.schema.ts +5430 -5430
- package/src/api-manager/schemas/order.schema.ts +12 -12
- package/src/api-manager/schemas/organization.schema.ts +16 -16
- package/src/api-manager/schemas/product.schema.ts +78 -78
- package/src/api-manager/schemas/session.schema.ts +7 -7
- package/src/api-manager/schemas/user.schema.ts +24 -24
- package/src/api-manager/services/address/mutations/create-address.ts +13 -13
- package/src/api-manager/services/address/mutations/delete-address.ts +12 -12
- package/src/api-manager/services/address/mutations/get-delivery-options.ts +12 -12
- package/src/api-manager/services/address/mutations/update-address.ts +12 -12
- package/src/api-manager/services/address/queries/get-countries.ts +6 -6
- package/src/api-manager/services/address/queries/get-states.ts +8 -8
- package/src/api-manager/services/cart/mutations/add-discount-code.ts +23 -12
- package/src/api-manager/services/cart/mutations/add-to-cart.ts +42 -39
- package/src/api-manager/services/cart/mutations/checkout.ts +19 -16
- package/src/api-manager/services/cart/mutations/delete-cart-line.ts +13 -10
- package/src/api-manager/services/cart/mutations/get-payment-accept-result.ts +12 -12
- package/src/api-manager/services/cart/mutations/remove-cart-line-delivery-mode.ts +15 -15
- package/src/api-manager/services/cart/mutations/remove-discount-code.ts +12 -12
- package/src/api-manager/services/cart/mutations/update-cart-line-delivery-mode.ts +15 -15
- package/src/api-manager/services/cart/mutations/update-cart-lines.ts +16 -13
- package/src/api-manager/services/cart/mutations/update-cart.ts +16 -13
- package/src/api-manager/services/cart/queries/get-cart-lines-inventory.ts +8 -8
- package/src/api-manager/services/cart/queries/get-cart.ts +5 -5
- package/src/api-manager/services/cart/queries/get-payment-accept-point.ts +10 -10
- package/src/api-manager/services/categories/queries/get-categories.ts +4 -4
- package/src/api-manager/services/create-extension-query.ts +4 -4
- package/src/api-manager/services/create-mutation.ts +50 -50
- package/src/api-manager/services/create-query.ts +250 -242
- package/src/api-manager/services/get-query-client.ts +30 -30
- package/src/api-manager/services/order/queries/get-order-details.ts +9 -9
- package/src/api-manager/services/order/queries/get-orders.ts +7 -7
- package/src/api-manager/services/organization/queries/get-channel-configuration.ts +7 -7
- package/src/api-manager/services/organization/queries/get-stores.ts +9 -9
- package/src/api-manager/services/product/mutations/search-products.ts +10 -10
- package/src/api-manager/services/product/queries/get-product-availability.ts +7 -10
- package/src/api-manager/services/product/queries/get-product-by-id.ts +11 -11
- package/src/api-manager/services/product/queries/get-product-by-ids.ts +8 -8
- package/src/api-manager/services/product/queries/get-product-list.ts +9 -9
- package/src/api-manager/services/product/queries/get-product-prices.ts +10 -10
- package/src/api-manager/services/product/queries/get-related-products.ts +7 -7
- package/src/api-manager/services/product/queries/search-products.ts +6 -6
- package/src/api-manager/services/product/server/product.server.ts +9 -9
- package/src/api-manager/services/session/mutations/session-init.ts +12 -12
- package/src/api-manager/services/session/mutations/session-logout.ts +9 -9
- package/src/api-manager/services/session/queries/get-session.ts +5 -5
- package/src/api-manager/services/user/mutations/add-to-wishlist.ts +35 -35
- package/src/api-manager/services/user/mutations/copy-cart-to-wishlist.ts +14 -13
- package/src/api-manager/services/user/mutations/create-wishlist.ts +11 -11
- package/src/api-manager/services/user/mutations/delete-wishlist.ts +10 -10
- package/src/api-manager/services/user/mutations/remove-from-wishlist.ts +36 -36
- package/src/api-manager/services/user/mutations/update-user.ts +9 -9
- package/src/api-manager/services/user/mutations/update-wishlist.ts +14 -13
- package/src/api-manager/services/user/queries/get-user-counts.ts +5 -5
- package/src/api-manager/services/user/queries/get-user.ts +5 -5
- package/src/api-manager/services/user/queries/get-wishlist-details.ts +11 -11
- package/src/api-manager/services/user/queries/get-wishlists.ts +5 -5
- package/src/api-manager/types/Datasource.ts +152 -149
- package/src/auth/auth-options.test.ts +97 -97
- package/src/auth/auth-options.ts +47 -46
- package/src/auth/msal.ts +43 -43
- package/src/auth/next-auth-cookie-manager.ts +46 -46
- package/src/auth/providers/aadb2c-provider.ts +21 -21
- package/src/auth/providers/authentik-provider.ts +14 -14
- package/src/auth/providers/index.ts +3 -3
- package/src/auth/providers/keycloak-provider.ts +13 -13
- package/src/auth/refresh-token-url-keys.ts +3 -3
- package/src/auth/refresh-token.ts +100 -100
- package/src/auth/signout.ts +31 -31
- package/src/auth/types/next-auth.d.ts +22 -22
- package/src/cms/blocks/block-manager.tsx +47 -47
- package/src/cms/blocks/components/brand-logos-scroller.tsx +45 -45
- package/src/cms/blocks/components/category-card.tsx +34 -34
- package/src/cms/blocks/components/category-carousel/index.tsx +37 -37
- package/src/cms/blocks/components/feature-pill.tsx +89 -89
- package/src/cms/blocks/components/featured-categories.tsx +29 -29
- package/src/cms/blocks/components/featured-products.tsx +29 -29
- package/src/cms/blocks/components/footer/data/index.ts +15 -15
- package/src/cms/blocks/components/footer/index.tsx +58 -58
- package/src/cms/blocks/components/footer/interfaces.ts +20 -20
- package/src/cms/blocks/components/footer/sections/footer-app-store.tsx +32 -32
- package/src/cms/blocks/components/footer/sections/footer-contact.tsx +18 -18
- package/src/cms/blocks/components/footer/sections/footer-links.tsx +19 -19
- package/src/cms/blocks/components/footer/sections/footer-logo.tsx +11 -11
- package/src/cms/blocks/components/footer/sections/footer-social-links.tsx +42 -42
- package/src/cms/blocks/components/footer/styles/index.ts +20 -20
- package/src/cms/blocks/components/footer.tsx +58 -58
- package/src/cms/blocks/components/hero-carousel/index.tsx +33 -33
- package/src/cms/blocks/components/hero.tsx +53 -53
- package/src/cms/blocks/components/image.tsx +24 -24
- package/src/cms/blocks/components/media-card.tsx +27 -27
- package/src/cms/blocks/components/product-carousel/index.tsx +70 -67
- package/src/cms/blocks/components/product-section-fullwidth/index.tsx +72 -72
- package/src/cms/blocks/components/rich-text.tsx +6 -6
- package/src/cms/blocks/components/seo/index.tsx +37 -37
- package/src/cms/blocks/components/services/index.tsx +11 -11
- package/src/cms/blocks/components/services/service-card.tsx +37 -37
- package/src/cms/blocks/components/shared/featured-product-card.tsx +16 -16
- package/src/cms/blocks/components/shared/product-category-item.tsx +28 -28
- package/src/cms/blocks/components/shared/product-grid.tsx +51 -48
- package/src/cms/blocks/components/shared/top-categories-card.tsx +43 -43
- package/src/cms/blocks/components/shared/top-rating-product-card.tsx +45 -45
- package/src/cms/blocks/icons/components/category.tsx +4 -4
- package/src/cms/blocks/icons/components/dotted-star.tsx +31 -31
- package/src/cms/blocks/icons/components/fallback-icon.tsx +24 -24
- package/src/cms/blocks/icons/components/gift-box.tsx +9 -9
- package/src/cms/blocks/icons/components/light.tsx +4 -4
- package/src/cms/blocks/icons/components/new-arrival.tsx +9 -9
- package/src/cms/blocks/icons/components/rank-badge.tsx +31 -31
- package/src/cms/blocks/icons/index.ts +6 -6
- package/src/cms/blocks/interfaces.ts +146 -146
- package/src/cms/blog.ts +198 -198
- package/src/cms/endpoints.ts +39 -39
- package/src/cms/interfaces/navigation.ts +35 -35
- package/src/cms/interfaces/product-data.ts +65 -65
- package/src/cms/pages.ts +119 -119
- package/src/components-v2/BazaarCard.stories.tsx +29 -0
- package/src/components-v2/BazaarCard.tsx +6 -6
- package/src/components-v2/BazaarImage.tsx +3 -3
- package/src/components-v2/BazaarMenu.stories.tsx +31 -0
- package/src/components-v2/BazaarMenu.tsx +32 -32
- package/src/components-v2/BazaarSwitch.stories.tsx +18 -0
- package/src/components-v2/BazaarSwitch.tsx +28 -28
- package/src/components-v2/BazaarTextField.stories.tsx +20 -0
- package/src/components-v2/BazaarTextField.tsx +59 -55
- package/src/components-v2/BorderShadowCard.stories.tsx +25 -0
- package/src/components-v2/BoxShadowCard.tsx +7 -7
- package/src/components-v2/CountryInput.stories.tsx +34 -0
- package/src/components-v2/DropZone.stories.tsx +31 -0
- package/src/components-v2/DropZone.tsx +63 -63
- package/src/components-v2/HoverBox.stories.tsx +31 -0
- package/src/components-v2/HoverBox.tsx +15 -15
- package/src/components-v2/Image.tsx +1 -1
- package/src/components-v2/ImageWithFallback.tsx +36 -36
- package/src/components-v2/LazyImage.tsx +2 -2
- package/src/components-v2/Loading.stories.tsx +18 -0
- package/src/components-v2/Loading.tsx +20 -20
- package/src/components-v2/NoRecords.stories.tsx +18 -0
- package/src/components-v2/SearchInput.stories.tsx +29 -0
- package/src/components-v2/SearchInput.tsx +17 -17
- package/src/components-v2/SiteLogo.stories.tsx +18 -0
- package/src/components-v2/SnackbarProvider.tsx +21 -21
- package/src/components-v2/T/index.tsx +3 -3
- package/src/components-v2/Typography.stories.tsx +47 -0
- package/src/components-v2/Typography.tsx +175 -175
- package/src/components-v2/WhiteButton.stories.tsx +19 -0
- package/src/components-v2/WhiteButton.tsx +10 -10
- package/src/components-v2/accordion/AccordionHeader.stories.tsx +28 -0
- package/src/components-v2/accordion/accordion-header.tsx +22 -22
- package/src/components-v2/carousel/Carousel.stories.tsx +418 -0
- package/src/components-v2/carousel/carousel.tsx +71 -71
- package/src/components-v2/carousel/components/carousel-arrows.tsx +29 -29
- package/src/components-v2/carousel/components/carousel-dots.tsx +11 -11
- package/src/components-v2/carousel/styles/index.ts +70 -70
- package/src/components-v2/carousel-cards/carousel-card-1/CarouselCard1.stories.tsx +64 -0
- package/src/components-v2/carousel-cards/carousel-card-1/carousel-card-1.tsx +50 -50
- package/src/components-v2/carousel-cards/carousel-card-1/styles.ts +28 -28
- package/src/components-v2/categories/Categories.stories.tsx +35 -0
- package/src/components-v2/categories/category-list/category-list.tsx +62 -62
- package/src/components-v2/categories/category-list/styles.ts +21 -20
- package/src/components-v2/categories/category-list/types.ts +2 -2
- package/src/components-v2/categories/category-list-item/category-menu-item.tsx +20 -20
- package/src/components-v2/categories/category-list-item/styles.ts +29 -29
- package/src/components-v2/categories/category-menu.tsx +28 -30
- package/src/components-v2/categories/mega-menu/banner.tsx +63 -63
- package/src/components-v2/categories/mega-menu/column-list.tsx +41 -41
- package/src/components-v2/categories/mega-menu/mega-menu-1.tsx +37 -34
- package/src/components-v2/categories/mega-menu/mega-menu-2.tsx +50 -50
- package/src/components-v2/categories/mega-menu/styles.ts +19 -19
- package/src/components-v2/categories/types.ts +9 -9
- package/src/components-v2/countries-input.tsx +58 -58
- package/src/components-v2/flex-box/Flex.stories.tsx +62 -0
- package/src/components-v2/flex-box/flex-between.tsx +10 -10
- package/src/components-v2/flex-box/flex-box.tsx +9 -5
- package/src/components-v2/flex-box/flex-row-center.tsx +5 -5
- package/src/components-v2/header/Header.stories.tsx +18 -0
- package/src/components-v2/header/__tests__/user.test.tsx +193 -193
- package/src/components-v2/header/components/categories-menu.tsx +12 -12
- package/src/components-v2/header/components/mobile-header.tsx +85 -85
- package/src/components-v2/header/components/user.tsx +194 -193
- package/src/components-v2/header/header.tsx +42 -42
- package/src/components-v2/header/hooks/use-header.ts +6 -6
- package/src/components-v2/header/sticky-header.tsx +37 -33
- package/src/components-v2/header/styles/index.ts +14 -14
- package/src/components-v2/icons/cart-bag.tsx +7 -7
- package/src/components-v2/icons/category-outline.tsx +23 -23
- package/src/components-v2/icons/category.tsx +4 -4
- package/src/components-v2/icons/home.tsx +13 -13
- package/src/components-v2/icons/search.tsx +7 -7
- package/src/components-v2/icons/shopping-bag-outlined.tsx +7 -7
- package/src/components-v2/icons/up-down.tsx +15 -15
- package/src/components-v2/icons/user.tsx +7 -7
- package/src/components-v2/icons/user2.tsx +8 -8
- package/src/components-v2/mini-cart/__tests__/cart-item.test.tsx +132 -132
- package/src/components-v2/mini-cart/__tests__/mini-cart.test.tsx +78 -78
- package/src/components-v2/mini-cart/__tests__/test-cart-empty.json +82 -82
- package/src/components-v2/mini-cart/__tests__/test-cart-with-item.json +242 -242
- package/src/components-v2/mini-cart/components/bottom-actions.tsx +50 -50
- package/src/components-v2/mini-cart/components/cart-item.tsx +158 -158
- package/src/components-v2/mini-cart/components/empty-view.tsx +39 -39
- package/src/components-v2/mini-cart/components/top-header.tsx +39 -39
- package/src/components-v2/mini-cart/mini-cart-trigger.tsx +59 -59
- package/src/components-v2/mini-cart/mini-cart.tsx +125 -130
- package/src/components-v2/mobile-navigation/MobileNavigationBar.stories.tsx +39 -0
- package/src/components-v2/mobile-navigation/mobile-navigation-bar.tsx +66 -66
- package/src/components-v2/mobile-navigation/styles/index.ts +41 -41
- package/src/components-v2/nav-link/NavLink.stories.tsx +33 -0
- package/src/components-v2/nav-link/NavLink2.stories.tsx +38 -0
- package/src/components-v2/nav-link/NavLink3.stories.tsx +36 -0
- package/src/components-v2/nav-link/nav-link-2.tsx +20 -20
- package/src/components-v2/nav-link/nav-link-3.tsx +51 -51
- package/src/components-v2/nav-link/nav-link.tsx +30 -30
- package/src/components-v2/navbar/categories.tsx +40 -40
- package/src/components-v2/navbar/category-based-menu/category-based-menu.tsx +97 -97
- package/src/components-v2/navbar/category-based-menu/styles.ts +51 -51
- package/src/components-v2/navbar/category-based-menu/types.ts +8 -8
- package/src/components-v2/navbar/mega-menu/mega-menu.tsx +90 -90
- package/src/components-v2/navbar/mega-menu/styles.ts +24 -24
- package/src/components-v2/navbar/mobile-menu/mobile-menu.test.tsx +81 -81
- package/src/components-v2/navbar/mobile-menu/mobile-menu.tsx +91 -91
- package/src/components-v2/navbar/nav-list/cms-nav.test.tsx +74 -74
- package/src/components-v2/navbar/nav-list/nav-item-child.tsx +38 -38
- package/src/components-v2/navbar/nav-list/nav-list.tsx +109 -109
- package/src/components-v2/navbar/navbar.tsx +38 -38
- package/src/components-v2/navbar/styles.ts +54 -54
- package/src/components-v2/navbar/utils/transform-nav.test.ts +194 -194
- package/src/components-v2/navbar/utils/transform-nav.ts +29 -29
- package/src/components-v2/no-records.tsx +11 -11
- package/src/components-v2/product-cards/discount-chip.tsx +25 -25
- package/src/components-v2/product-cards/favorite-button.tsx +52 -0
- package/src/components-v2/product-cards/product-card/ProductCard.stories.tsx +62 -0
- package/src/components-v2/product-cards/product-card/product-card.tsx +369 -329
- package/src/components-v2/product-cards/product-card/styles/index.ts +32 -32
- package/src/components-v2/product-cards/product-card-plp/ProductCardPlp.stories.tsx +62 -0
- package/src/components-v2/product-cards/product-card-plp/product-card.tsx +205 -113
- package/src/components-v2/product-cards/product-card-plp/styles/index.ts +29 -12
- package/src/components-v2/product-cards/product-card-plp-list/ProductCardPlpList.stories.tsx +53 -0
- package/src/components-v2/product-cards/product-card-plp-list/components/tags.tsx +19 -19
- package/src/components-v2/product-cards/product-card-plp-list/product-card.tsx +185 -151
- package/src/components-v2/product-cards/product-card-search/ProductCardSearch.stories.tsx +60 -0
- package/src/components-v2/product-cards/product-card-search/product-card.tsx +140 -111
- package/src/components-v2/product-cards/product-card-search/styles/index.ts +33 -43
- package/src/components-v2/product-cards/product-price.tsx +16 -13
- package/src/components-v2/product-cards/product-rating.tsx +14 -14
- package/src/components-v2/product-cards/product-title.tsx +15 -15
- package/src/components-v2/product-cards/quantity-buttons.tsx +65 -0
- package/src/components-v2/product-dialog/ProductDialog.stories.tsx +39 -0
- package/src/components-v2/product-dialog/compound/product-dialog.tsx +141 -117
- package/src/components-v2/product-dialog/index.tsx +17 -17
- package/src/components-v2/product-dimensions/Dimensions.stories.tsx +34 -0
- package/src/components-v2/product-dimensions/__mocks__/data.ts +669 -0
- package/src/components-v2/product-dimensions/compound/dimensions-group-error.tsx +22 -22
- package/src/components-v2/product-dimensions/compound/dimensions-group-label.tsx +11 -11
- package/src/components-v2/product-dimensions/compound/dimensions-group-list-chip.tsx +54 -54
- package/src/components-v2/product-dimensions/compound/dimensions-group-list.tsx +9 -9
- package/src/components-v2/product-dimensions/compound/dimensions-group.tsx +10 -10
- package/src/components-v2/product-dimensions/compound/dimensions.tsx +35 -34
- package/src/components-v2/product-dimensions/index.tsx +26 -26
- package/src/components-v2/product-dimensions/utils/has-selected-dimension.ts +9 -9
- package/src/components-v2/product-quantity-buttons/ProductQuantity.stories.tsx +23 -0
- package/src/components-v2/product-quantity-buttons/compound/quantity-buttons-root.tsx +127 -112
- package/src/components-v2/product-quantity-buttons/index.tsx +7 -7
- package/src/components-v2/product-quantity-variants/ProductQuantity.stories.tsx +18 -0
- package/src/components-v2/product-quantity-variants/index.tsx +74 -69
- package/src/components-v2/products-view/ProductsGrid.stories.tsx +18 -0
- package/src/components-v2/products-view/ProductsList.stories.tsx +20 -0
- package/src/components-v2/products-view/compound/context.ts +52 -7
- package/src/components-v2/products-view/compound/products-grid-view.tsx +80 -62
- package/src/components-v2/products-view/compound/products-list-view.tsx +67 -58
- package/src/components-v2/products-view/compound/types.ts +3 -3
- package/src/components-v2/products-view/index.tsx +22 -21
- package/src/components-v2/progress/ProgressBar.stories.tsx +110 -0
- package/src/components-v2/progress/progress.tsx +56 -56
- package/src/components-v2/scrollbar/Scrollbar.stories.tsx +29 -0
- package/src/components-v2/scrollbar/scrollbar.tsx +12 -12
- package/src/components-v2/scrollbar/styles.ts +8 -8
- package/src/components-v2/search-bar/SearchBarLarge.stories.tsx +16 -0
- package/src/components-v2/search-bar/compound/context.ts +39 -18
- package/src/components-v2/search-bar/compound/results-item-lg.tsx +33 -32
- package/src/components-v2/search-bar/compound/results-item-sm.tsx +32 -32
- package/src/components-v2/search-bar/compound/results-suspense.tsx +21 -21
- package/src/components-v2/search-bar/compound/results.tsx +27 -26
- package/src/components-v2/search-bar/compound/search-bar-root.tsx +23 -23
- package/src/components-v2/search-bar/compound/textfield-adornment-button.tsx +11 -11
- package/src/components-v2/search-bar/compound/textfield-adornment-category.tsx +47 -47
- package/src/components-v2/search-bar/compound/textfield-adornment-search-icon.tsx +16 -16
- package/src/components-v2/search-bar/compound/textfield.tsx +33 -33
- package/src/components-v2/search-bar/hooks/use-click-outside.ts +11 -11
- package/src/components-v2/search-bar/hooks/use-search.ts +53 -52
- package/src/components-v2/search-bar/index.tsx +17 -17
- package/src/components-v2/search-bar/styles/index.ts +29 -29
- package/src/components-v2/search-bar/utils/findCategoryNameById.ts +10 -10
- package/src/components-v2/section/Section.stories.tsx +86 -0
- package/src/components-v2/section/compound/section-header.tsx +24 -24
- package/src/components-v2/section/compound/section.tsx +7 -7
- package/src/components-v2/side-nav/SideNav.stories.tsx +116 -0
- package/src/components-v2/side-nav/side-nav.tsx +36 -34
- package/src/components-v2/site-logo.tsx +6 -6
- package/src/components-v2/sticky/Sticky.stories.tsx +88 -0
- package/src/components-v2/sticky/sticky.tsx +49 -49
- package/src/components-v2/sticky/styles.ts +21 -21
- package/src/components-v2/utils/constants.ts +6 -6
- package/src/components-v2/wishlist-dialogs/__tests__/create-new-list.test.tsx +54 -54
- package/src/components-v2/wishlist-dialogs/__tests__/wishlistDetailData.json +278 -278
- package/src/components-v2/wishlist-dialogs/__tests__/wishlistsData.json +36 -36
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/AddToWishlist.stories.tsx +37 -0
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/add-to-wishlist-button.tsx +47 -51
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-bottom-ui.tsx +31 -26
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-dialog.tsx +41 -34
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-list.tsx +22 -21
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/context.ts +10 -10
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-header.tsx +41 -41
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-item.tsx +73 -63
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/hooks/use-add-to-wishlist.ts +81 -131
- package/src/components-v2/wishlist-dialogs/add-to-wishlist/index.tsx +20 -28
- package/src/components-v2/wishlist-dialogs/create-wishlist/CreateWishlistButton.stories.tsx +15 -0
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-bottom-ui.tsx +38 -33
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-dialog.tsx +69 -61
- package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-form.tsx +79 -59
- package/src/components-v2/wishlist-dialogs/create-wishlist/create-wishlist-button.tsx +24 -24
- package/src/components-v2/wishlist-dialogs/create-wishlist/index.tsx +13 -13
- package/src/components-v2/wishlist-dialogs/styles.ts +43 -43
- package/src/hooks/use-cart.ts +59 -62
- package/src/hooks/use-favorite.ts +17 -0
- package/src/hooks/use-overflow-detect.ts +21 -21
- package/src/hooks/use-settings.ts +6 -6
- package/src/hooks/use-variants.ts +79 -83
- package/src/lib/build-detail-url.ts +3 -3
- package/src/lib/build-product-detail-url.ts +6 -6
- package/src/lib/cart-cookie-client-handler.ts +4 -4
- package/src/lib/cart-cookie-handler-constants.ts +3 -3
- package/src/lib/cart-cookie-handler.ts +19 -19
- package/src/lib/category-helpers.ts +81 -81
- package/src/lib/create-graphql-client.ts +12 -12
- package/src/lib/currency-formatter.ts +20 -20
- package/src/lib/get-palette-color.ts +39 -39
- package/src/lib/graphqlRequestSdk.ts +37239 -37239
- package/src/lib/hexToLuma.ts +30 -30
- package/src/lib/lib.ts +15 -15
- package/src/lib/map-helper.ts +50 -50
- package/src/lib/page-slugs.ts +6 -6
- package/src/lib/product-list-types.ts +24 -24
- package/src/lib/refiner-utils.ts +21 -21
- package/src/lib/store-hours-helper.ts +210 -210
- package/src/lib/test-media.ts +14 -14
- package/src/pages-v2/account/account-navigation.tsx +104 -104
- package/src/pages-v2/account/addresses/address-form.tsx +229 -229
- package/src/pages-v2/account/addresses/address-item.tsx +119 -119
- package/src/pages-v2/account/dashboard-header.tsx +105 -105
- package/src/pages-v2/account/orders/icons/delivery.tsx +8 -8
- package/src/pages-v2/account/orders/icons/package-box.tsx +7 -7
- package/src/pages-v2/account/orders/icons/truck-filled.tsx +8 -8
- package/src/pages-v2/account/orders/order-progress.tsx +109 -109
- package/src/pages-v2/account/orders/order-row.tsx +60 -60
- package/src/pages-v2/account/orders/order-summary.tsx +75 -72
- package/src/pages-v2/account/orders/ordered-products.tsx +103 -100
- package/src/pages-v2/account/profile/profile-button.test.tsx +46 -46
- package/src/pages-v2/account/profile/profile-button.tsx +32 -32
- package/src/pages-v2/account/profile/user-info.tsx +58 -55
- package/src/pages-v2/account/styles.ts +22 -22
- package/src/pages-v2/account/table-row.tsx +12 -12
- package/src/pages-v2/account/wishlist/create-new-list.tsx +167 -167
- package/src/pages-v2/account/wishlist/create-wishlist-button.tsx +39 -39
- package/src/pages-v2/account/wishlist/wishlist-item.tsx +88 -88
- package/src/pages-v2/blog/pagination.tsx +26 -26
- package/src/pages-v2/cart/__tests__/cart-item.test.tsx +193 -193
- package/src/pages-v2/cart/__tests__/cart-with-items.json +809 -809
- package/src/pages-v2/cart/__tests__/checkout-form.test.tsx +115 -115
- package/src/pages-v2/cart/__tests__/conutries.json +19405 -19405
- package/src/pages-v2/cart/__tests__/estimate-shipping.test.tsx +64 -64
- package/src/pages-v2/cart/cart-item.tsx +356 -356
- package/src/pages-v2/cart/checkout-form.tsx +168 -168
- package/src/pages-v2/cart/coupon-entry.tsx +110 -110
- package/src/pages-v2/cart/estimate-shipping.tsx +201 -198
- package/src/pages-v2/cart/wrapper.tsx +23 -23
- package/src/pages-v2/checkout/checkout-alt-form/checkout-form.tsx +165 -165
- package/src/pages-v2/checkout/checkout-alt-form/checkout-step.tsx +128 -128
- package/src/pages-v2/checkout/checkout-alt-form/node.tsx +4 -4
- package/src/pages-v2/checkout/checkout-alt-form/step-heading.tsx +34 -34
- package/src/pages-v2/checkout/checkout-alt-form/steps/address/address-card.tsx +98 -98
- package/src/pages-v2/checkout/checkout-alt-form/steps/address/delivery-address.tsx +395 -388
- package/src/pages-v2/checkout/checkout-alt-form/steps/address/new-address-form.tsx +285 -260
- package/src/pages-v2/checkout/checkout-alt-form/steps/address/styles.ts +21 -20
- package/src/pages-v2/checkout/checkout-alt-form/steps/customer-info/customer-information.tsx +134 -114
- package/src/pages-v2/checkout/checkout-alt-form/steps/payment/payment-details.tsx +274 -274
- package/src/pages-v2/checkout/checkout-alt-form/steps/payment/safe-card-preview-data.tsx +26 -26
- package/src/pages-v2/checkout/checkout-alt-form/steps/shipping/delivery-date.tsx +87 -87
- package/src/pages-v2/checkout/checkout-alt-form/steps/shipping/delivery-options.tsx +211 -204
- package/src/pages-v2/checkout/checkout-alt-form/types.ts +15 -15
- package/src/pages-v2/checkout/checkout-alt-summary/cart-item.tsx +49 -49
- package/src/pages-v2/checkout/checkout-alt-summary/checkout-alt-summary.tsx +53 -50
- package/src/pages-v2/checkout/checkout-alt-summary/list-item.tsx +48 -48
- package/src/pages-v2/confirmation/address.tsx +27 -23
- package/src/pages-v2/confirmation/confirmation-summary.tsx +58 -58
- package/src/pages-v2/confirmation/ordered-products.tsx +98 -95
- package/src/pages-v2/product-details/available-shops.tsx +35 -32
- package/src/pages-v2/product-details/bopis/find-in-store-button.tsx +38 -38
- package/src/pages-v2/product-details/bopis/find-in-store-modal.tsx +197 -199
- package/src/pages-v2/product-details/bopis/pickup-option-select.tsx +84 -84
- package/src/pages-v2/product-details/bopis/search-header.tsx +40 -40
- package/src/pages-v2/product-details/bopis/store-card/shop-card.tsx +94 -91
- package/src/pages-v2/product-details/bopis/store-card/styles.ts +15 -15
- package/src/pages-v2/product-details/bopis/store-card/utils/convertSecondsToTime.ts +6 -6
- package/src/pages-v2/product-details/bopis/store-card/utils/getDaysResources.ts +21 -21
- package/src/pages-v2/product-details/checkbox-label.tsx +8 -8
- package/src/pages-v2/product-details/currency.ts +15 -15
- package/src/pages-v2/product-details/frequently-bought.tsx +63 -63
- package/src/pages-v2/product-details/frequently-product-card.tsx +44 -41
- package/src/pages-v2/product-details/product-comment.tsx +27 -27
- package/src/pages-v2/product-details/product-description.tsx +13 -13
- package/src/pages-v2/product-details/product-filter-card.tsx +199 -199
- package/src/pages-v2/product-details/product-intro/compound/context.ts +95 -38
- package/src/pages-v2/product-details/product-intro/compound/product-info.tsx +202 -156
- package/src/pages-v2/product-details/product-intro/compound/product-intro-images.tsx +100 -87
- package/src/pages-v2/product-details/product-intro/compound/product-intro.tsx +28 -28
- package/src/pages-v2/product-details/product-intro/compound/thumbnail-with-skeleton.tsx +16 -16
- package/src/pages-v2/product-details/product-intro/utils.ts +26 -26
- package/src/pages-v2/product-details/product-review.tsx +105 -105
- package/src/pages-v2/product-details/product-tabs.tsx +71 -56
- package/src/pages-v2/product-details/related-products.tsx +39 -39
- package/src/pages-v2/product-details/types.ts +6 -6
- package/src/pages-v2/product-list/breadcrumbs.tsx +27 -27
- package/src/pages-v2/product-list/checkbox-label.tsx +8 -8
- package/src/pages-v2/product-list/facet-group.tsx +101 -101
- package/src/pages-v2/product-list/facet.tsx +59 -31
- package/src/pages-v2/product-list/list-filter.tsx +27 -27
- package/src/pages-v2/product-list/pagination.tsx +60 -60
- package/src/pages-v2/product-list/product-list-context.tsx +265 -265
- package/src/pages-v2/product-list/product-list-state.ts +169 -168
- package/src/pages-v2/product-list/product-list-view.tsx +185 -0
- package/src/pages-v2/product-list/product-rating.tsx +7 -7
- package/src/pages-v2/product-list/quick-view-dialog-content.tsx +172 -172
- package/src/pages-v2/product-list/quick-view-dialog.tsx +43 -43
- package/src/pages-v2/product-list/range-filter.tsx +103 -103
- package/src/pages-v2/product-list/scrollbar.tsx +20 -20
- package/src/pages-v2/product-list/search-bar.tsx +190 -138
- package/src/pages-v2/product-list/selected-facets.tsx +61 -61
- package/src/pages-v2/product-list/side-nav.tsx +32 -32
- package/src/pages-v2/product-list/swatch.tsx +61 -61
- package/src/pages-v2/product-list/types.ts +10 -10
- package/src/pages-v2/product-list/use-product-list.ts +5 -5
- package/src/pages-v2/product-list/useCategoryFilter.tsx +18 -18
- package/src/pages-v2/product-list/utils/facet-helpers.ts +1 -1
- package/src/pages-v2/product-list/utils/generate-breadcrumbs.ts +23 -23
- package/src/pages-v2/product-list/utils/getCategoryFilterFromSlug.ts +130 -130
- package/src/pages-v2/product-list/utils/product-list-helper.ts +84 -84
- package/src/pages-v2/product-list/utils/product-list-types.ts +24 -24
- package/src/pages-v2/product-list/utils/search-for-category.ts +59 -59
- package/src/pages-v2/product-list/utils/sort-options.ts +36 -36
- package/src/pages-v2/product-list/utils/use-previous-refiners.ts +9 -9
- package/src/pages-v2/quickorder/context.ts +23 -23
- package/src/pages-v2/quickorder/order-upload.tsx +121 -125
- package/src/pages-v2/quickorder/provider.tsx +192 -177
- package/src/pages-v2/quickorder/quick-order-header.tsx +15 -12
- package/src/pages-v2/quickorder/quick-order-row.tsx +106 -106
- package/src/pages-v2/quickorder/quick-order-table.tsx +55 -49
- package/src/pages-v2/quickorder/quick-order.tsx +521 -0
- package/src/providers/nav-provider/index.tsx +38 -38
- package/src/providers/nav-provider/utils/createLink.ts +11 -11
- package/src/providers/notifications/notification-context.tsx +54 -54
- package/src/providers/notifications/use-notification.ts +7 -7
- 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 +32 -28
- package/typedoc.js +10 -10
- package/src/api-manager/lib/cart-cookie-handler.ts +0 -14
- package/src/components/Blocks/BlockManager.tsx +0 -67
- package/src/components/Blocks/Components/BrandLogosScroller.tsx +0 -72
- package/src/components/Blocks/Components/CategoryCard.tsx +0 -47
- package/src/components/Blocks/Components/CategoryCarousel/index.tsx +0 -60
- package/src/components/Blocks/Components/FeaturePill.tsx +0 -99
- package/src/components/Blocks/Components/FeaturedCategories.tsx +0 -41
- package/src/components/Blocks/Components/FeaturedProducts.tsx +0 -41
- package/src/components/Blocks/Components/Footer.tsx +0 -77
- package/src/components/Blocks/Components/Hero.tsx +0 -73
- package/src/components/Blocks/Components/HeroCarousel/index.tsx +0 -42
- package/src/components/Blocks/Components/Image.tsx +0 -39
- package/src/components/Blocks/Components/MediaCard.tsx +0 -41
- package/src/components/Blocks/Components/ProductCarousel/index.tsx +0 -82
- package/src/components/Blocks/Components/ProductSectionFullWidth/index.tsx +0 -103
- package/src/components/Blocks/Components/RichText.tsx +0 -19
- package/src/components/Blocks/Components/Seo/index.tsx +0 -48
- package/src/components/Blocks/Components/Services/index.tsx +0 -21
- package/src/components/Blocks/Components/Services/service-card.tsx +0 -70
- package/src/components/Blocks/Components/shared/featured-product-card.tsx +0 -29
- package/src/components/Blocks/Components/shared/product-category-item.tsx +0 -49
- package/src/components/Blocks/Components/shared/product-grid.tsx +0 -48
- package/src/components/Blocks/Components/shared/top-categories-card.tsx +0 -66
- package/src/components/Blocks/Components/shared/top-rating-product-card.tsx +0 -63
- package/src/components/Blocks/Icons/Components/Category.tsx +0 -14
- package/src/components/Blocks/Icons/Components/DottedStar.tsx +0 -40
- package/src/components/Blocks/Icons/Components/FallbackIcon.tsx +0 -33
- package/src/components/Blocks/Icons/Components/GiftBox.tsx +0 -18
- package/src/components/Blocks/Icons/Components/Light.tsx +0 -13
- package/src/components/Blocks/Icons/Components/NewArrival.tsx +0 -18
- package/src/components/Blocks/Icons/Components/RankBadge.tsx +0 -39
- package/src/components/Blocks/Icons/index.ts +0 -32
- package/src/components/Blocks/index.tsx +0 -16
- package/src/components/Blocks/interfaces.ts +0 -240
- package/src/components/BoxShadowCard.tsx +0 -16
- package/src/components/Footer/data/index.ts +0 -32
- package/src/components/Footer/index.tsx +0 -88
- package/src/components/Footer/interfaces.ts +0 -37
- package/src/components/Footer/sections/FooterAppStore.tsx +0 -45
- package/src/components/Footer/sections/FooterContact.tsx +0 -36
- package/src/components/Footer/sections/FooterLinks.tsx +0 -30
- package/src/components/Footer/sections/FooterLogo.tsx +0 -26
- package/src/components/Footer/sections/FooterSocialLinks.tsx +0 -70
- package/src/components/Footer/styles/index.ts +0 -39
- package/src/components/GlobalLoading/index.tsx +0 -102
- package/src/components/ImageWithFallback.tsx +0 -51
- package/src/components/Loading/index.tsx +0 -36
- package/src/components/NavProvider/index.tsx +0 -59
- package/src/components/NavProvider/utils/createLink.ts +0 -15
- package/src/components/Notifications/README.md +0 -15
- package/src/components/Notifications/notification-context.tsx +0 -82
- package/src/components/Notifications/use-notification.ts +0 -12
- package/src/components/README.md +0 -4
- package/src/components/ReactQueryProvider/index.tsx +0 -12
- package/src/components/Shared/Image.tsx +0 -5
- package/src/components/T/index.tsx +0 -15
- package/src/components/_components/BazaarCard.tsx +0 -21
- package/src/components/_components/BazaarImage.tsx +0 -12
- package/src/components/_components/BazaarMenu.tsx +0 -47
- package/src/components/_components/BazaarSwitch.tsx +0 -37
- package/src/components/_components/BazaarTextField.tsx +0 -73
- package/src/components/_components/DropZone.tsx +0 -86
- package/src/components/_components/HoverBox.tsx +0 -22
- package/src/components/_components/LazyImage.tsx +0 -12
- package/src/components/_components/MiniCartClient.tsx +0 -65
- package/src/components/_components/SearchInput.tsx +0 -28
- package/src/components/_components/SnackbarProvider.tsx +0 -32
- package/src/components/_components/Typography.tsx +0 -227
- package/src/components/_components/WhiteButton.tsx +0 -20
- package/src/components/_components/accordion/accordion-header.tsx +0 -43
- package/src/components/_components/accordion/index.ts +0 -1
- package/src/components/_components/bazaar-types.ts +0 -84
- package/src/components/_components/carousel/carousel.tsx +0 -72
- package/src/components/_components/carousel/components/carousel-arrows.tsx +0 -60
- package/src/components/_components/carousel/components/carousel-dots.tsx +0 -21
- package/src/components/_components/carousel/index.ts +0 -3
- package/src/components/_components/carousel/styles/index.ts +0 -93
- package/src/components/_components/carousel-cards/carousel-card-1/carousel-card-1.tsx +0 -64
- package/src/components/_components/carousel-cards/carousel-card-1/index.ts +0 -1
- package/src/components/_components/carousel-cards/carousel-card-1/styles.ts +0 -34
- package/src/components/_components/carousel-cards/carousel-card-2/carousel-card-2.tsx +0 -73
- package/src/components/_components/carousel-cards/carousel-card-2/index.ts +0 -1
- package/src/components/_components/carousel-cards/carousel-card-2/styles.ts +0 -26
- package/src/components/_components/carousel-cards/carousel-card-3/carousel-card-3.tsx +0 -34
- package/src/components/_components/carousel-cards/carousel-card-3/index.ts +0 -1
- package/src/components/_components/carousel-cards/carousel-card-3/styles.ts +0 -28
- package/src/components/_components/carousel-cards/carousel-card-4/carousel-card-4.tsx +0 -76
- package/src/components/_components/carousel-cards/carousel-card-4/index.ts +0 -1
- package/src/components/_components/carousel-cards/carousel-card-4/styles.ts +0 -27
- package/src/components/_components/categories/category-list/category-list.tsx +0 -59
- package/src/components/_components/categories/category-list/index.ts +0 -1
- package/src/components/_components/categories/category-list/styles.ts +0 -29
- package/src/components/_components/categories/category-list/types.ts +0 -4
- package/src/components/_components/categories/category-list-item/category-menu-item.tsx +0 -37
- package/src/components/_components/categories/category-list-item/index.ts +0 -1
- package/src/components/_components/categories/category-list-item/styles.ts +0 -35
- package/src/components/_components/categories/category-menu.tsx +0 -51
- package/src/components/_components/categories/mega-menu/banner.tsx +0 -56
- package/src/components/_components/categories/mega-menu/column-list.tsx +0 -70
- package/src/components/_components/categories/mega-menu/mega-menu-1.tsx +0 -37
- package/src/components/_components/categories/mega-menu/mega-menu-2.tsx +0 -37
- package/src/components/_components/categories/mega-menu/styles.ts +0 -25
- package/src/components/_components/categories/types.ts +0 -16
- package/src/components/_components/category-cards/category-card-1/category-card-1.tsx +0 -21
- package/src/components/_components/category-cards/category-card-1/index.ts +0 -1
- package/src/components/_components/category-cards/category-card-1/styles.ts +0 -37
- package/src/components/_components/countdown/count-box.tsx +0 -16
- package/src/components/_components/countdown/count-down.tsx +0 -24
- package/src/components/_components/countdown/index.tsx +0 -2
- package/src/components/_components/countdown/useCountDown.ts +0 -41
- package/src/components/_components/data-table/index.ts +0 -2
- package/src/components/_components/data-table/table-header.tsx +0 -91
- package/src/components/_components/data-table/table-pagination.tsx +0 -36
- package/src/components/_components/flex-box/flex-between.tsx +0 -14
- package/src/components/_components/flex-box/flex-box.tsx +0 -9
- package/src/components/_components/flex-box/flex-row-center.tsx +0 -9
- package/src/components/_components/flex-box/index.ts +0 -5
- package/src/components/_components/footer/components/about-links.tsx +0 -23
- package/src/components/_components/footer/components/app-store.tsx +0 -38
- package/src/components/_components/footer/components/customer-care-links.tsx +0 -21
- package/src/components/_components/footer/components/logo.tsx +0 -23
- package/src/components/_components/footer/components/social-links.tsx +0 -43
- package/src/components/_components/footer/data/index.ts +0 -54
- package/src/components/_components/footer/footer-1.tsx +0 -62
- package/src/components/_components/footer/footer-2.tsx +0 -57
- package/src/components/_components/footer/footer-3.tsx +0 -53
- package/src/components/_components/footer/footer-4.tsx +0 -71
- package/src/components/_components/footer/index.ts +0 -4
- package/src/components/_components/footer/styles/index.ts +0 -42
- package/src/components/_components/header/components/categories-menu.tsx +0 -23
- package/src/components/_components/header/components/mobile-header.tsx +0 -72
- package/src/components/_components/header/components/user.tsx +0 -204
- package/src/components/_components/header/header.tsx +0 -63
- package/src/components/_components/header/hooks/use-header.ts +0 -13
- package/src/components/_components/header/index.ts +0 -1
- package/src/components/_components/header/sticky-header.tsx +0 -17
- package/src/components/_components/header/styles/index.ts +0 -24
- package/src/components/_components/icons/cart-bag.tsx +0 -13
- package/src/components/_components/icons/category-outline.tsx +0 -29
- package/src/components/_components/icons/category.tsx +0 -12
- package/src/components/_components/icons/home.tsx +0 -19
- package/src/components/_components/icons/search.tsx +0 -13
- package/src/components/_components/icons/shopping-bag-outlined.tsx +0 -13
- package/src/components/_components/icons/up-down.tsx +0 -21
- package/src/components/_components/icons/user.tsx +0 -13
- package/src/components/_components/icons/user2.tsx +0 -14
- package/src/components/_components/mini-cart/components/bottom-actions.tsx +0 -27
- package/src/components/_components/mini-cart/components/cart-item.tsx +0 -144
- package/src/components/_components/mini-cart/components/empty-view.tsx +0 -29
- package/src/components/_components/mini-cart/components/top-header.tsx +0 -34
- package/src/components/_components/mini-cart/index.ts +0 -1
- package/src/components/_components/mini-cart/mini-cart.tsx +0 -107
- package/src/components/_components/mobile-navigation/index.ts +0 -3
- package/src/components/_components/mobile-navigation/mobile-navigation-bar.tsx +0 -73
- package/src/components/_components/mobile-navigation/styles/index.ts +0 -63
- package/src/components/_components/nav-link/index.ts +0 -5
- package/src/components/_components/nav-link/nav-link-2.tsx +0 -32
- package/src/components/_components/nav-link/nav-link-3.tsx +0 -67
- package/src/components/_components/nav-link/nav-link.tsx +0 -53
- package/src/components/_components/navbar/categories.tsx +0 -27
- package/src/components/_components/navbar/category-based-menu/category-based-menu.tsx +0 -52
- package/src/components/_components/navbar/category-based-menu/components/categories.tsx +0 -44
- package/src/components/_components/navbar/category-based-menu/components/category-item.tsx +0 -31
- package/src/components/_components/navbar/category-based-menu/components/child-categories.tsx +0 -38
- package/src/components/_components/navbar/category-based-menu/index.ts +0 -1
- package/src/components/_components/navbar/category-based-menu/styles.ts +0 -81
- package/src/components/_components/navbar/category-based-menu/types.ts +0 -18
- package/src/components/_components/navbar/index.ts +0 -1
- package/src/components/_components/navbar/mega-menu/category-list.tsx +0 -29
- package/src/components/_components/navbar/mega-menu/index.ts +0 -1
- package/src/components/_components/navbar/mega-menu/mega-menu.tsx +0 -71
- package/src/components/_components/navbar/mega-menu/styles.ts +0 -43
- package/src/components/_components/navbar/mobile-menu/index.ts +0 -1
- package/src/components/_components/navbar/mobile-menu/mobile-menu.tsx +0 -70
- package/src/components/_components/navbar/mobile-menu/render-levels.tsx +0 -62
- package/src/components/_components/navbar/nav-list/index.ts +0 -1
- package/src/components/_components/navbar/nav-list/nav-item-child.tsx +0 -66
- package/src/components/_components/navbar/nav-list/nav-list.tsx +0 -119
- package/src/components/_components/navbar/navbar.tsx +0 -43
- package/src/components/_components/navbar/styles.ts +0 -90
- package/src/components/_components/navbar/utils/transform-nav.ts +0 -43
- package/src/components/_components/newsletter/index.ts +0 -1
- package/src/components/_components/newsletter/newsletter.tsx +0 -108
- package/src/components/_components/newsletter/social-icons.tsx +0 -35
- package/src/components/_components/newsletter/styles.ts +0 -65
- package/src/components/_components/page-sidenav/grocery-side-nav/components/link-item.tsx +0 -21
- package/src/components/_components/page-sidenav/grocery-side-nav/components/list-item.tsx +0 -27
- package/src/components/_components/page-sidenav/grocery-side-nav/components/nav-accordion.tsx +0 -36
- package/src/components/_components/page-sidenav/grocery-side-nav/components/render-child.tsx +0 -26
- package/src/components/_components/page-sidenav/grocery-side-nav/grocery-side-nav.tsx +0 -32
- package/src/components/_components/page-sidenav/grocery-side-nav/index.ts +0 -1
- package/src/components/_components/page-sidenav/grocery-side-nav/styles/index.ts +0 -11
- package/src/components/_components/page-sidenav/health-beauty-side-nav/components/list-item.tsx +0 -27
- package/src/components/_components/page-sidenav/health-beauty-side-nav/components/nav-accordion.tsx +0 -44
- package/src/components/_components/page-sidenav/health-beauty-side-nav/components/render-child.tsx +0 -20
- package/src/components/_components/page-sidenav/health-beauty-side-nav/health-beauty-side-nav.tsx +0 -43
- package/src/components/_components/page-sidenav/health-beauty-side-nav/index.ts +0 -1
- package/src/components/_components/page-sidenav/health-beauty-side-nav/styles/index.ts +0 -27
- package/src/components/_components/page-sidenav/side-navbar/components/list-item.tsx +0 -25
- package/src/components/_components/page-sidenav/side-navbar/components/nav-accordion.tsx +0 -46
- package/src/components/_components/page-sidenav/side-navbar/components/render-child.tsx +0 -20
- package/src/components/_components/page-sidenav/side-navbar/index.ts +0 -1
- package/src/components/_components/page-sidenav/side-navbar/side-nav-bar.tsx +0 -77
- package/src/components/_components/page-sidenav/side-navbar/styles/index.ts +0 -73
- package/src/components/_components/page-sidenav/side-navbar-2/components/button-content.tsx +0 -32
- package/src/components/_components/page-sidenav/side-navbar-2/components/sidebar-accordion.tsx +0 -66
- package/src/components/_components/page-sidenav/side-navbar-2/index.ts +0 -1
- package/src/components/_components/page-sidenav/side-navbar-2/side-navbar-2.tsx +0 -63
- package/src/components/_components/page-sidenav/side-navbar-2/styles/index.ts +0 -68
- package/src/components/_components/product-cards/discount-chip.tsx +0 -43
- package/src/components/_components/product-cards/product-card-1/components/hover-actions.tsx +0 -37
- package/src/components/_components/product-cards/product-card-1/components/quantity-buttons.tsx +0 -65
- package/src/components/_components/product-cards/product-card-1/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-1/product-card-1-wrapper.tsx +0 -304
- package/src/components/_components/product-cards/product-card-1/product-card.tsx +0 -107
- package/src/components/_components/product-cards/product-card-1/styles/index.ts +0 -46
- package/src/components/_components/product-cards/product-card-10/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-10/product-card.tsx +0 -124
- package/src/components/_components/product-cards/product-card-10/styles/index.ts +0 -38
- package/src/components/_components/product-cards/product-card-11/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-11/product-card.tsx +0 -63
- package/src/components/_components/product-cards/product-card-11/styles/index.ts +0 -16
- package/src/components/_components/product-cards/product-card-12/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-12/product-card.tsx +0 -42
- package/src/components/_components/product-cards/product-card-12/styles/index.ts +0 -16
- package/src/components/_components/product-cards/product-card-13/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-13/product-card.tsx +0 -45
- package/src/components/_components/product-cards/product-card-13/styles/index.ts +0 -25
- package/src/components/_components/product-cards/product-card-14/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-14/product-card.tsx +0 -122
- package/src/components/_components/product-cards/product-card-14/styles/index.ts +0 -40
- package/src/components/_components/product-cards/product-card-15/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-15/product-card.tsx +0 -118
- package/src/components/_components/product-cards/product-card-15/styles/index.ts +0 -57
- package/src/components/_components/product-cards/product-card-16/components/quantity-buttons.tsx +0 -56
- package/src/components/_components/product-cards/product-card-16/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-16/product-card.tsx +0 -114
- package/src/components/_components/product-cards/product-card-16/styles/index.ts +0 -18
- package/src/components/_components/product-cards/product-card-2/components/favorite-button.tsx +0 -29
- package/src/components/_components/product-cards/product-card-2/components/product-price.tsx +0 -26
- package/src/components/_components/product-cards/product-card-2/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-2/product-card.tsx +0 -70
- package/src/components/_components/product-cards/product-card-3/components/hover-actions.tsx +0 -83
- package/src/components/_components/product-cards/product-card-3/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-3/product-card.tsx +0 -110
- package/src/components/_components/product-cards/product-card-3/styles/index.ts +0 -89
- package/src/components/_components/product-cards/product-card-4/components/hover-actions.tsx +0 -50
- package/src/components/_components/product-cards/product-card-4/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-4/product-card.tsx +0 -128
- package/src/components/_components/product-cards/product-card-4/styles/index.ts +0 -66
- package/src/components/_components/product-cards/product-card-5/components/button-actions.tsx +0 -49
- package/src/components/_components/product-cards/product-card-5/components/hover-actions.tsx +0 -50
- package/src/components/_components/product-cards/product-card-5/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-5/product-card.tsx +0 -137
- package/src/components/_components/product-cards/product-card-5/styles/index.ts +0 -94
- package/src/components/_components/product-cards/product-card-6/components/hover-actions.tsx +0 -50
- package/src/components/_components/product-cards/product-card-6/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-6/product-card.tsx +0 -121
- package/src/components/_components/product-cards/product-card-6/styles/index.ts +0 -63
- package/src/components/_components/product-cards/product-card-7/components/product-status.tsx +0 -18
- package/src/components/_components/product-cards/product-card-7/components/quantity-buttons.tsx +0 -47
- package/src/components/_components/product-cards/product-card-7/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-7/product-card.tsx +0 -136
- package/src/components/_components/product-cards/product-card-7/styles/index.ts +0 -98
- package/src/components/_components/product-cards/product-card-8/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-8/product-card.tsx +0 -153
- package/src/components/_components/product-cards/product-card-8/styles/index.ts +0 -61
- package/src/components/_components/product-cards/product-card-9/components/add-to-cart.tsx +0 -60
- package/src/components/_components/product-cards/product-card-9/components/favorite-button.tsx +0 -27
- package/src/components/_components/product-cards/product-card-9/components/tags.tsx +0 -33
- package/src/components/_components/product-cards/product-card-9/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-9/product-card.tsx +0 -169
- package/src/components/_components/product-cards/product-card-wishlist/components/hover-actions.tsx +0 -37
- package/src/components/_components/product-cards/product-card-wishlist/index.ts +0 -1
- package/src/components/_components/product-cards/product-card-wishlist/product-card.tsx +0 -118
- package/src/components/_components/product-cards/product-card-wishlist/styles/index.ts +0 -51
- package/src/components/_components/product-cards/product-price.tsx +0 -26
- package/src/components/_components/product-cards/product-rating.tsx +0 -28
- package/src/components/_components/product-cards/product-title.tsx +0 -24
- package/src/components/_components/product-cards/use-product.ts +0 -35
- package/src/components/_components/product-dimensions/product-dimensions.tsx +0 -114
- package/src/components/_components/product-quantity-buttons/product-quantity-buttons.tsx +0 -88
- package/src/components/_components/products-view/product-view-dialog.tsx +0 -218
- package/src/components/_components/products-view/products-grid-view.tsx +0 -53
- package/src/components/_components/products-view/products-list-view.tsx +0 -49
- package/src/components/_components/progress/index.ts +0 -1
- package/src/components/_components/progress/progress.tsx +0 -77
- package/src/components/_components/scrollbar/index.ts +0 -1
- package/src/components/_components/scrollbar/scrollbar.tsx +0 -27
- package/src/components/_components/scrollbar/styles.ts +0 -15
- package/src/components/_components/search-box/components/category-dropdown.tsx +0 -61
- package/src/components/_components/search-box/components/search-result.tsx +0 -83
- package/src/components/_components/search-box/hooks/use-search.ts +0 -63
- package/src/components/_components/search-box/index.ts +0 -2
- package/src/components/_components/search-box/search-input-category.tsx +0 -207
- package/src/components/_components/search-box/search-input.tsx +0 -64
- package/src/components/_components/search-box/styles/index.ts +0 -47
- package/src/components/_components/section-header/index.ts +0 -2
- package/src/components/_components/section-header/section-creator.tsx +0 -29
- package/src/components/_components/section-header/section-header.tsx +0 -44
- package/src/components/_components/service-cards/icon-component.tsx +0 -18
- package/src/components/_components/service-cards/service-card-1/index.ts +0 -1
- package/src/components/_components/service-cards/service-card-1/service-card-1.tsx +0 -39
- package/src/components/_components/service-cards/service-card-2/index.ts +0 -1
- package/src/components/_components/service-cards/service-card-2/service-card-2.tsx +0 -34
- package/src/components/_components/service-cards/service-card-3/index.ts +0 -1
- package/src/components/_components/service-cards/service-card-3/service-card-3.tsx +0 -25
- package/src/components/_components/service-cards/service-card-3/styles.ts +0 -23
- package/src/components/_components/settings/index.ts +0 -1
- package/src/components/_components/settings/setting.tsx +0 -141
- package/src/components/_components/settings/styles.ts +0 -57
- package/src/components/_components/shop-card/index.ts +0 -1
- package/src/components/_components/shop-card/shop-card.tsx +0 -152
- package/src/components/_components/shop-card/styles.ts +0 -33
- package/src/components/_components/side-nav/index.ts +0 -1
- package/src/components/_components/side-nav/side-nav.tsx +0 -49
- package/src/components/_components/site-logo.tsx +0 -17
- package/src/components/_components/sticky/Sticky.tsx +0 -62
- package/src/components/_components/sticky/index.ts +0 -1
- package/src/components/_components/sticky/styles.ts +0 -38
- package/src/components/_components/sticky-wrapper/index.ts +0 -1
- package/src/components/_components/sticky-wrapper/sticky-wrapper.tsx +0 -21
- package/src/components/_components/sticky-wrapper/styles.ts +0 -25
- package/src/components/_components/stories/story-content/index.ts +0 -1
- package/src/components/_components/stories/story-content/story-content.tsx +0 -28
- package/src/components/_components/stories/story-content/styles.ts +0 -22
- package/src/components/_components/stories/story-item/index.ts +0 -1
- package/src/components/_components/stories/story-item/story-item.tsx +0 -24
- package/src/components/_components/stories/story-item/styles.ts +0 -11
- package/src/components/_components/stories/story-viewer/index.ts +0 -1
- package/src/components/_components/stories/story-viewer/story-viewer.tsx +0 -44
- package/src/components/_components/stories/story-viewer/styles.ts +0 -15
- package/src/components/_components/subscribe-input/index.ts +0 -1
- package/src/components/_components/subscribe-input/styles.ts +0 -14
- package/src/components/_components/subscribe-input/subscribe-input.tsx +0 -43
- package/src/components/_components/topbar/index.ts +0 -1
- package/src/components/_components/topbar/styles.ts +0 -55
- package/src/components/_components/topbar/top-bar.tsx +0 -112
- package/src/components/_components/utils/constants.ts +0 -8
- package/src/components/_components/wishlist/add-to-wishlist-dialog.tsx +0 -161
- package/src/components/_components/wishlist/components/create-new-list.tsx +0 -167
- package/src/components/_components/wishlist/components/create-wishlist-button.tsx +0 -40
- package/src/components/_components/wishlist/components/dashboard-header.tsx +0 -123
- package/src/components/_components/wishlist/components/navigation.tsx +0 -87
- package/src/components/_components/wishlist/components/no-records.tsx +0 -20
- package/src/components/_components/wishlist/components/wishlist-modal-item.tsx +0 -66
- package/src/components/_components/wishlist/remove-from-wishlist-dialog.tsx +0 -174
- package/src/components/_components/wishlist/styles.ts +0 -61
- package/src/components/_components/wishlist-modal/TODO.md +0 -10
- package/src/components/_components/wishlist-modal/add-to-wishlist-button.tsx +0 -68
- package/src/components/_components/wishlist-modal/add-to-wishlist-dialog.tsx +0 -161
- package/src/components/_components/wishlist-modal/remove-from-wishlist-dialog.tsx +0 -174
- package/src/components/_components/wishlist-modal/wishlist-modal-item.tsx +0 -65
- package/src/components/countries-input.tsx +0 -72
- package/src/components-v2/product-cards/product-card/components/hover-actions.tsx +0 -37
- package/src/components-v2/product-cards/product-card/components/quantity-buttons.tsx +0 -65
- 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/pages/README.md +0 -4
- package/src/pages/account/addresses/address-form.tsx +0 -289
- package/src/pages/account/addresses/address-item.tsx +0 -104
- package/src/pages/account/dashboard-header.tsx +0 -123
- package/src/pages/account/navigation.tsx +0 -84
- package/src/pages/account/no-records.tsx +0 -20
- package/src/pages/account/orders/icons/delivery.tsx +0 -14
- package/src/pages/account/orders/icons/package-box.tsx +0 -13
- package/src/pages/account/orders/icons/truck-filled.tsx +0 -14
- package/src/pages/account/orders/order-progress.tsx +0 -111
- package/src/pages/account/orders/order-row.tsx +0 -61
- package/src/pages/account/orders/order-summary.tsx +0 -83
- package/src/pages/account/orders/ordered-products.tsx +0 -114
- package/src/pages/account/profile/profile-button.test.tsx +0 -59
- package/src/pages/account/profile/profile-button.tsx +0 -50
- package/src/pages/account/profile/user-info.tsx +0 -59
- package/src/pages/account/styles.ts +0 -32
- package/src/pages/account/table-row.tsx +0 -19
- package/src/pages/account/wishlist/create-new-list.tsx +0 -167
- package/src/pages/account/wishlist/create-wishlist-button.tsx +0 -40
- package/src/pages/account/wishlist/wishlist-item.tsx +0 -82
- package/src/pages/blog/pagination.tsx +0 -38
- package/src/pages/cart/cart-item.tsx +0 -312
- package/src/pages/cart/checkout-form.tsx +0 -122
- package/src/pages/cart/coupon-entry.tsx +0 -90
- package/src/pages/cart/estimate-shipping.tsx +0 -183
- package/src/pages/cart/wrapper.tsx +0 -30
- package/src/pages/checkout/checkout-alt-form/address-card.tsx +0 -73
- package/src/pages/checkout/checkout-alt-form/checkout-form.tsx +0 -133
- package/src/pages/checkout/checkout-alt-form/checkout-step.tsx +0 -120
- package/src/pages/checkout/checkout-alt-form/customer-information.tsx +0 -94
- package/src/pages/checkout/checkout-alt-form/delivery-address.tsx +0 -170
- package/src/pages/checkout/checkout-alt-form/delivery-date.tsx +0 -114
- package/src/pages/checkout/checkout-alt-form/delivery-options.tsx +0 -186
- package/src/pages/checkout/checkout-alt-form/edit-address-form.tsx +0 -130
- package/src/pages/checkout/checkout-alt-form/heading.tsx +0 -50
- package/src/pages/checkout/checkout-alt-form/index.ts +0 -1
- package/src/pages/checkout/checkout-alt-form/new-address-form.tsx +0 -294
- package/src/pages/checkout/checkout-alt-form/node.tsx +0 -9
- package/src/pages/checkout/checkout-alt-form/payment-details.tsx +0 -344
- package/src/pages/checkout/checkout-alt-form/safe-card-preview-data.tsx +0 -36
- package/src/pages/checkout/checkout-alt-form/types.ts +0 -20
- package/src/pages/checkout/checkout-alt-summary/cart-item.tsx +0 -39
- package/src/pages/checkout/checkout-alt-summary/checkout-alt-summary.tsx +0 -40
- package/src/pages/checkout/checkout-alt-summary/index.ts +0 -1
- package/src/pages/checkout/checkout-alt-summary/list-item.tsx +0 -31
- package/src/pages/confirmation/address.tsx +0 -22
- package/src/pages/confirmation/confirmation-summary.tsx +0 -52
- package/src/pages/confirmation/ordered-products.tsx +0 -108
- package/src/pages/product-details/available-shops.tsx +0 -48
- package/src/pages/product-details/bopis/find-in-store-button.tsx +0 -63
- package/src/pages/product-details/bopis/find-in-store-modal.tsx +0 -257
- package/src/pages/product-details/bopis/pickup-option-select.tsx +0 -127
- package/src/pages/product-details/bopis/search-header.tsx +0 -69
- package/src/pages/product-details/checkbox-label.tsx +0 -20
- package/src/pages/product-details/currency.ts +0 -64
- package/src/pages/product-details/frequently-bought.tsx +0 -90
- package/src/pages/product-details/frequently-product-card.tsx +0 -60
- package/src/pages/product-details/product-comment.tsx +0 -44
- package/src/pages/product-details/product-description.tsx +0 -22
- package/src/pages/product-details/product-filter-card.tsx +0 -257
- package/src/pages/product-details/product-intro/product-intro-images.tsx +0 -87
- package/src/pages/product-details/product-intro/product-intro.tsx +0 -255
- package/src/pages/product-details/product-review.tsx +0 -131
- package/src/pages/product-details/product-tabs.tsx +0 -51
- package/src/pages/product-details/related-products.tsx +0 -42
- package/src/pages/product-details/types.ts +0 -11
- package/src/pages/product-list/breadcrumbs.tsx +0 -39
- package/src/pages/product-list/checkbox-label.tsx +0 -20
- package/src/pages/product-list/facet-group.tsx +0 -125
- package/src/pages/product-list/facet.tsx +0 -36
- package/src/pages/product-list/list-filter.tsx +0 -40
- package/src/pages/product-list/pagination.tsx +0 -80
- package/src/pages/product-list/product-list-context.tsx +0 -302
- package/src/pages/product-list/product-list-state.ts +0 -187
- package/src/pages/product-list/product-rating.tsx +0 -16
- package/src/pages/product-list/quick-view-dialog-content.tsx +0 -216
- package/src/pages/product-list/quick-view-dialog.tsx +0 -54
- package/src/pages/product-list/range-filter.tsx +0 -125
- package/src/pages/product-list/scrollbar.tsx +0 -38
- package/src/pages/product-list/search-bar.tsx +0 -162
- package/src/pages/product-list/selected-facets.tsx +0 -80
- package/src/pages/product-list/side-nav.tsx +0 -49
- package/src/pages/product-list/swatch.tsx +0 -80
- package/src/pages/product-list/types.ts +0 -18
- package/src/pages/product-list/use-product-list.ts +0 -12
- package/src/pages/product-list/useCategoryFilter.tsx +0 -26
- package/src/pages/product-list/utils/facet-helpers.ts +0 -5
- package/src/pages/product-list/utils/generate-breadcrumbs.ts +0 -30
- package/src/pages/product-list/utils/getCategoryFilterFromSlug.ts +0 -153
- package/src/pages/product-list/utils/product-list-helper.ts +0 -111
- package/src/pages/product-list/utils/product-list-types.ts +0 -41
- package/src/pages/product-list/utils/search-for-category.ts +0 -76
- package/src/pages/product-list/utils/sort-options.ts +0 -44
- package/src/pages/product-list/utils/use-previous-refiners.ts +0 -14
- package/src/pages/quickorder/order-upload.tsx +0 -150
- package/src/pages/quickorder/quick-order-form.tsx +0 -343
- package/src/pages/quickorder/quick-order-row.tsx +0 -144
- package/src/pages-v2/quickorder/index.tsx +0 -31
- package/src/pages-v2/quickorder/quick-order-actions.tsx +0 -30
- package/src/pages-v2/quickorder/quick-order-upload.tsx +0 -20
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
import createSvgIcon from "@mui/material/utils/createSvgIcon";
|
|
5
|
-
|
|
6
|
-
const DottedStar = createSvgIcon(
|
|
7
|
-
<svg fill="currentColor" viewBox="0 0 24 24">
|
|
8
|
-
<path
|
|
9
|
-
d="M12.431 11.7264L11.9772 10.5867L11.5233 11.7264C11.4231 11.9784 11.1869 12.15 10.9157 12.1679L9.69147 12.2469L10.6349 13.031C10.8436 13.2047 10.9342 13.4828 10.8669 13.7457L10.5641 14.9342L11.6016 14.2785C11.8309 14.1344 12.1234 14.1344 12.3527 14.2785L13.3895 14.9336L13.0867 13.7457C13.0194 13.4828 13.11 13.2047 13.3188 13.031L14.2621 12.2469L13.0386 12.1679C12.7675 12.15 12.5313 11.9784 12.431 11.7264Z"
|
|
10
|
-
fill="#FF9101"
|
|
11
|
-
/>
|
|
12
|
-
<path
|
|
13
|
-
d="M23.3423 8.60791L15.5284 8.10188L12.6302 0.821148C12.4174 0.286994 11.5372 0.286994 11.3243 0.821148L8.42618 8.10188L0.657701 8.60791C0.37 8.62647 0.123547 8.8187 0.0342556 9.09266C-0.0543326 9.36593 0.0321933 9.66666 0.253992 9.85068L6.23112 14.8567L4.29624 22.4498C4.22485 22.7285 4.33125 23.0231 4.56402 23.192C4.79744 23.3609 5.10989 23.3706 5.35292 23.2181L11.9773 19.0312L18.6009 23.2181C18.845 23.3716 19.1564 23.3616 19.3898 23.192C19.6226 23.0231 19.729 22.7292 19.6576 22.4498L17.7227 14.8567L23.746 9.85063C23.9677 9.66661 24.0543 9.36588 23.9657 9.09262C23.8764 8.8187 23.63 8.62643 23.3423 8.60791ZM16.5192 12.2009L14.5589 13.8288L15.1879 16.2978C15.2592 16.5773 15.1528 16.8711 14.9201 17.0401C14.6867 17.2095 14.3754 17.2197 14.1312 17.0662L11.9773 15.7046L9.82274 17.0662C9.5783 17.2186 9.26726 17.2097 9.03383 17.0401C8.80107 16.8711 8.69467 16.5766 8.76605 16.2978L9.39498 13.8288L7.43475 12.2009C7.21299 12.0169 7.12647 11.7161 7.21501 11.4429C7.30425 11.1689 7.55075 10.9767 7.83846 10.9581L10.3816 10.7933L11.3243 8.42591C11.5372 7.89175 12.4174 7.89175 12.6302 8.42591L13.5729 10.7933L16.1154 10.9581C16.4031 10.9767 16.6496 11.1689 16.7389 11.4429C16.8274 11.7161 16.7409 12.0169 16.5192 12.2009Z"
|
|
14
|
-
fill="#FF9101"
|
|
15
|
-
/>
|
|
16
|
-
<path
|
|
17
|
-
d="M11.9993 23.58C12.3876 23.58 12.7024 23.2652 12.7024 22.8769C12.7024 22.4886 12.3876 22.1738 11.9993 22.1738C11.611 22.1738 11.2962 22.4886 11.2962 22.8769C11.2962 23.2652 11.611 23.58 11.9993 23.58Z"
|
|
18
|
-
fill="#FF9101"
|
|
19
|
-
/>
|
|
20
|
-
<path
|
|
21
|
-
d="M22.0295 16.2913C22.1495 15.922 21.9473 15.5253 21.578 15.4054C21.2087 15.2854 20.8121 15.4875 20.6921 15.8568C20.5721 16.2261 20.7742 16.6228 21.1435 16.7428C21.5128 16.8628 21.9095 16.6606 22.0295 16.2913Z"
|
|
22
|
-
fill="#FF9101"
|
|
23
|
-
/>
|
|
24
|
-
<path
|
|
25
|
-
d="M18.3541 5.48443C18.5824 5.1703 18.5127 4.73062 18.1986 4.50237C17.8845 4.27413 17.4448 4.34376 17.2165 4.65789C16.9883 4.97203 17.0579 5.41171 17.372 5.63995C17.6862 5.8682 18.1259 5.79857 18.3541 5.48443Z"
|
|
26
|
-
fill="#FF9101"
|
|
27
|
-
/>
|
|
28
|
-
<path
|
|
29
|
-
d="M6.62693 5.63899C6.94107 5.41075 7.0107 4.97106 6.78245 4.65692C6.55421 4.34279 6.11453 4.27316 5.80039 4.5014C5.48626 4.72964 5.41663 5.16933 5.64487 5.48347C5.87311 5.7976 6.3128 5.86723 6.62693 5.63899Z"
|
|
30
|
-
fill="#FF9101"
|
|
31
|
-
/>
|
|
32
|
-
<path
|
|
33
|
-
d="M2.85485 16.7449C3.22417 16.6249 3.42629 16.2283 3.3063 15.859C3.18632 15.4896 2.78966 15.2875 2.42035 15.4075C2.05104 15.5275 1.84892 15.9241 1.9689 16.2935C2.08889 16.6628 2.48554 16.8649 2.85485 16.7449Z"
|
|
34
|
-
fill="#FF9101"
|
|
35
|
-
/>
|
|
36
|
-
</svg>,
|
|
37
|
-
"DottedStar",
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
export default DottedStar;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
import createSvgIcon from "@mui/material/utils/createSvgIcon";
|
|
5
|
-
|
|
6
|
-
const FallbackIcon = createSvgIcon(
|
|
7
|
-
<svg
|
|
8
|
-
viewBox="0 0 64 64"
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
aria-hidden="true"
|
|
11
|
-
role="img"
|
|
12
|
-
preserveAspectRatio="xMidYMid meet"
|
|
13
|
-
fill="#000000"
|
|
14
|
-
>
|
|
15
|
-
<g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
|
|
16
|
-
<g
|
|
17
|
-
id="SVGRepo_tracerCarrier"
|
|
18
|
-
strokeLinecap="round"
|
|
19
|
-
strokeLinejoin="round"
|
|
20
|
-
></g>
|
|
21
|
-
<g id="SVGRepo_iconCarrier">
|
|
22
|
-
<g fill="#ff5a79">
|
|
23
|
-
<path d="M6 42.4h10L20 2H2z"></path>
|
|
24
|
-
<ellipse cx="11" cy="54.4" rx="7.7" ry="7.6"></ellipse>
|
|
25
|
-
<path d="M40.2 2.1C28.6 2.8 22.5 9.4 22 21.3h11.7c.1-4.1 2.5-7.2 6.7-7.7c4.2-.4 8.2.6 9.4 3.4c1.3 3.1-1.6 6.7-3 8.2c-2.6 2.8-6.8 4.9-8.9 7.9c-2.1 3-2.5 6.9-2.7 11.7h10.3c.1-3.1.3-6 1.7-7.9c2.3-3.1 5.7-4.5 8.5-7c2.7-2.3 5.6-5.1 6-9.5c1.6-12.9-9-19.1-21.5-18.3"></path>
|
|
26
|
-
<ellipse cx="40.5" cy="55.6" rx="6.5" ry="6.4"></ellipse>
|
|
27
|
-
</g>
|
|
28
|
-
</g>
|
|
29
|
-
</svg>,
|
|
30
|
-
"FallbackIcon",
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
export default FallbackIcon;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
import createSvgIcon from "@mui/material/utils/createSvgIcon";
|
|
5
|
-
|
|
6
|
-
const GiftBox = createSvgIcon(
|
|
7
|
-
<svg fill="currentColor" viewBox="0 0 22 20">
|
|
8
|
-
<path
|
|
9
|
-
fillRule="evenodd"
|
|
10
|
-
clipRule="evenodd"
|
|
11
|
-
d="M16.5354 0.87868C15.3638 -0.292893 13.4644 -0.292893 12.2928 0.87868L10.8786 2.29289C10.8183 2.35317 10.7611 2.41538 10.707 2.47931C10.653 2.41539 10.5958 2.3532 10.5355 2.29293L9.12132 0.878715C7.94975 -0.292858 6.05025 -0.292858 4.87868 0.878715C3.70711 2.05029 3.70711 3.94978 4.87868 5.12136L5.75732 6H0V12H2V20H20V12H22V6H15.6567L16.5354 5.12132C17.707 3.94975 17.707 2.05025 16.5354 0.87868ZM13.707 5.12132L15.1212 3.70711C15.5117 3.31658 15.5117 2.68342 15.1212 2.29289C14.7307 1.90237 14.0975 1.90237 13.707 2.29289L12.2928 3.70711C11.9023 4.09763 11.9023 4.7308 12.2928 5.12132C12.6833 5.51184 13.3165 5.51184 13.707 5.12132ZM9.12132 3.70714L7.70711 2.29293C7.31658 1.9024 6.68342 1.9024 6.29289 2.29293C5.90237 2.68345 5.90237 3.31662 6.29289 3.70714L7.70711 5.12136C8.09763 5.51188 8.7308 5.51188 9.12132 5.12136C9.51184 4.73083 9.51184 4.09767 9.12132 3.70714ZM20 8V10H2V8H20ZM11.9167 12H18V18H11.9167V12ZM10.0834 12V18H4V12H10.0834Z"
|
|
12
|
-
fill="#D23F57"
|
|
13
|
-
/>
|
|
14
|
-
</svg>,
|
|
15
|
-
"GiftBox",
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
export default GiftBox;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
import createSvgIcon from "@mui/material/utils/createSvgIcon";
|
|
5
|
-
|
|
6
|
-
const Light = createSvgIcon(
|
|
7
|
-
<svg fill="currentColor" viewBox="0 0 24 24">
|
|
8
|
-
<path d="M19.0765 9.48063H12.1242L15.5905 0L5 14.5194H11.9522L8.48592 24L19.0765 9.48063Z" />
|
|
9
|
-
</svg>,
|
|
10
|
-
"Light",
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
export default Light;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
import createSvgIcon from "@mui/material/utils/createSvgIcon";
|
|
5
|
-
|
|
6
|
-
const NewArrival = createSvgIcon(
|
|
7
|
-
<svg fill="currentColor" viewBox="0 0 24 24">
|
|
8
|
-
<g>
|
|
9
|
-
<path
|
|
10
|
-
d="M22.9347 12.001L24 10.1003L22.3995 8.62199L22.8254 6.48519L20.8463 5.57376L20.5911 3.40991L18.4273 3.15468L17.5158 1.17562L15.379 1.60157L13.9006 0.000976562L12 1.0663L10.0994 0.000976562L8.62106 1.60152L6.48427 1.17557L5.57283 3.15463L3.40898 3.40987L3.15375 5.57371L1.17469 6.48515L1.60064 8.62194L0 10.1003L1.06533 12.0009L0 13.9016L1.60055 15.3799L1.17459 17.5167L3.15366 18.4281L3.40889 20.592L5.57273 20.8472L6.48417 22.8263L8.62097 22.4003L10.0993 24.0009L11.9999 22.9356L13.9005 24.0009L15.3788 22.4003L17.5156 22.8263L18.4271 20.8472L20.5909 20.592L20.8462 18.4281L22.8252 17.5167L22.3993 15.3799L23.9998 13.9016L22.9347 12.001ZM8.62936 14.0641H7.61878L5.78016 11.7887V14.0641H4.50881V9.43504H5.49984L7.35802 11.7887V9.43504H8.62936V14.0641ZM12.7238 14.0641H9.42483V9.43504H12.6652V10.5434H10.6962V11.1954H12.3783V12.2255H10.6962V12.9557H12.7239V14.0641H12.7238ZM18.0765 14.0641H17.0203L16.3618 12.408L15.7098 14.0641H14.6536L12.8411 9.43504H14.2168L15.2209 12.6102L15.5403 11.6453L14.7905 9.43504H15.9576L16.3618 10.8629L16.7726 9.43504H17.9397L17.1768 11.6453L17.5094 12.6102L18.507 9.43504H19.8891L18.0765 14.0641Z"
|
|
11
|
-
fill="#68C944"
|
|
12
|
-
/>
|
|
13
|
-
</g>
|
|
14
|
-
</svg>,
|
|
15
|
-
"NewArrival",
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
export default NewArrival;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import createSvgIcon from "@mui/material/utils/createSvgIcon";
|
|
4
|
-
|
|
5
|
-
const RankBadge = createSvgIcon(
|
|
6
|
-
<svg fill="currentColor" viewBox="0 0 24 24">
|
|
7
|
-
<path
|
|
8
|
-
d="M1.99309 16.5377L1.49359 17.0365L5.70897 18.0092C5.77746 18.025 5.84014 18.0597 5.88987 18.1093C5.93959 18.159 5.97437 18.2216 5.99022 18.2901L6.96297 22.5062L7.46247 22.0063L6.43722 17.5622L1.99309 16.5377Z"
|
|
9
|
-
fill="#FAB400"
|
|
10
|
-
/>
|
|
11
|
-
<path
|
|
12
|
-
d="M11.9999 3.375C10.8133 3.375 9.65322 3.72689 8.66652 4.38618C7.67983 5.04547 6.91079 5.98254 6.45666 7.0789C6.00254 8.17526 5.88372 9.38166 6.11523 10.5455C6.34674 11.7094 6.91819 12.7785 7.7573 13.6176C8.59642 14.4568 9.66551 15.0282 10.8294 15.2597C11.9933 15.4912 13.1997 15.3724 14.296 14.9183C15.3924 14.4642 16.3295 13.6951 16.9888 12.7084C17.648 11.7217 17.9999 10.5617 17.9999 9.375C17.9983 7.78422 17.3656 6.25908 16.2407 5.13422C15.1159 4.00937 13.5907 3.37669 11.9999 3.375ZM14.2957 10.2626L14.9883 13.0343C15.0069 13.1087 15.0023 13.187 14.975 13.2587C14.9477 13.3303 14.8991 13.3919 14.8357 13.4351C14.7734 13.4772 14.7001 13.4997 14.6249 13.5C14.5466 13.5002 14.4703 13.4756 14.4067 13.4299L11.9999 11.7109L9.59282 13.4299C9.5304 13.4745 9.45578 13.499 9.37903 13.4999C9.30228 13.5008 9.2271 13.4781 9.16365 13.4349C9.10019 13.3918 9.05151 13.3302 9.02418 13.2584C8.99685 13.1867 8.99218 13.1083 9.01082 13.0339L9.70382 10.2622L7.63457 8.53725C7.57566 8.48782 7.53338 8.42147 7.51345 8.3472C7.49352 8.27294 7.4969 8.19434 7.52313 8.12205C7.54937 8.04977 7.59719 7.9873 7.66012 7.94311C7.72305 7.89892 7.79805 7.87514 7.87494 7.875H10.6042L11.6441 4.75612C11.6687 4.6811 11.7164 4.61577 11.7804 4.56946C11.8444 4.52315 11.9213 4.49822 12.0003 4.49822C12.0793 4.49822 12.1563 4.52315 12.2202 4.56946C12.2842 4.61577 12.3319 4.6811 12.3566 4.75612L13.3949 7.875H16.1249C16.202 7.87496 16.2772 7.89866 16.3403 7.94289C16.4035 7.98712 16.4514 8.04973 16.4777 8.12218C16.504 8.19464 16.5073 8.27343 16.4872 8.34783C16.4671 8.42224 16.4245 8.48864 16.3653 8.538L14.2957 10.2626Z"
|
|
13
|
-
fill="#FAB400"
|
|
14
|
-
/>
|
|
15
|
-
<path
|
|
16
|
-
d="M12.7692 8.36805L12.0001 6.0603L11.2306 8.36805C11.2058 8.44276 11.1581 8.50778 11.0943 8.55388C11.0305 8.59999 10.9538 8.62484 10.8751 8.62493H8.91046L10.3651 9.83655C10.4192 9.88175 10.4595 9.9413 10.4813 10.0084C10.5032 10.0754 10.5056 10.1473 10.4885 10.2157L9.98559 12.2276L11.7818 10.9447C11.8455 10.8992 11.9217 10.8748 11.9999 10.8748C12.0781 10.8748 12.1544 10.8992 12.218 10.9447L14.0142 12.2276L13.511 10.2157C13.4939 10.1472 13.4964 10.0754 13.5183 10.0083C13.5402 9.94124 13.5805 9.88171 13.6347 9.83655L15.089 8.62493H13.1251C13.0463 8.62492 12.9695 8.6001 12.9057 8.55399C12.8418 8.50788 12.794 8.44283 12.7692 8.36805Z"
|
|
17
|
-
fill="#FAB400"
|
|
18
|
-
/>
|
|
19
|
-
<path
|
|
20
|
-
d="M9.82497 17.6569C9.38171 17.8278 8.88992 17.8231 8.45002 17.6437C8.01011 17.4643 7.65527 17.1238 7.45797 16.6916C7.40527 16.574 7.32111 16.4733 7.21477 16.4005C7.10843 16.3277 6.98404 16.2857 6.85534 16.2791C6.3829 16.2539 5.9377 16.0501 5.60994 15.7089C5.28219 15.3677 5.0964 14.9147 5.09022 14.4416C5.08944 14.3123 5.05801 14.185 4.99849 14.0702C4.93897 13.9554 4.85307 13.8564 4.74784 13.7812L2.61859 15.9113L6.83397 16.884C6.90246 16.8998 6.96514 16.9344 7.01487 16.9841C7.06459 17.0338 7.09937 17.0964 7.11522 17.1649L8.08797 21.3806L11.253 18.2156C11.0438 18.1251 10.8532 17.9968 10.6905 17.8373C10.5801 17.7252 10.439 17.6483 10.285 17.6162C10.131 17.5841 9.97094 17.5982 9.82497 17.6569Z"
|
|
21
|
-
fill="#FAB400"
|
|
22
|
-
/>
|
|
23
|
-
<path
|
|
24
|
-
d="M14.2242 17.0588C14.489 17.1576 14.7814 17.152 15.0423 17.0432C15.3031 16.9344 15.5128 16.7304 15.6289 16.4727C15.752 16.1956 15.9523 15.9598 16.2059 15.7936C16.4595 15.6273 16.7556 15.5376 17.0588 15.5352C17.3415 15.5317 17.6123 15.4208 17.8162 15.2249C18.0201 15.0291 18.1419 14.763 18.1568 14.4807C18.1702 14.215 18.2566 13.9582 18.4064 13.7383C18.5563 13.5185 18.7638 13.3442 19.0062 13.2346C19.2643 13.1165 19.4677 12.9043 19.5748 12.6414C19.6819 12.3785 19.6847 12.0846 19.5825 11.8197C19.4722 11.5393 19.4461 11.2327 19.5076 10.9377C19.569 10.6426 19.7152 10.372 19.9283 10.1588C20.1281 9.95696 20.2433 9.68638 20.2503 9.40241C20.2572 9.11844 20.1555 8.84253 19.9658 8.63109C19.7874 8.43376 19.6668 8.1911 19.6172 7.92973C19.5677 7.66836 19.5911 7.3984 19.6849 7.14946C19.7837 6.88465 19.7781 6.59218 19.6693 6.33134C19.5604 6.0705 19.3565 5.86079 19.0988 5.74471C18.8218 5.6216 18.5861 5.42133 18.4198 5.16783C18.2536 4.91434 18.1638 4.61835 18.1613 4.31521C18.1575 4.03264 18.0465 3.76205 17.8507 3.55826C17.6549 3.35446 17.389 3.23269 17.1068 3.21759C16.8411 3.20414 16.5842 3.11777 16.3643 2.96794C16.1444 2.81811 15.97 2.61061 15.8603 2.36821C15.7421 2.11012 15.5299 1.9068 15.267 1.79971C15.0042 1.69261 14.7103 1.6898 14.4454 1.79184C14.165 1.90237 13.8584 1.92853 13.5633 1.8671C13.2682 1.80567 12.9975 1.65934 12.7845 1.44609C12.5796 1.25219 12.3101 1.14106 12.0281 1.13413C11.746 1.12721 11.4714 1.22498 11.2572 1.40859C11.06 1.58726 10.8173 1.70803 10.5559 1.75759C10.2945 1.80715 10.0244 1.78358 9.77554 1.68946C9.51073 1.59068 9.21826 1.59628 8.95742 1.70511C8.69657 1.81395 8.48686 2.01788 8.37079 2.27559C8.24768 2.55269 8.04737 2.78847 7.79379 2.95472C7.54022 3.12098 7.24412 3.21068 6.94092 3.21309C6.65822 3.2166 6.38744 3.32752 6.18353 3.52336C5.97962 3.71919 5.85784 3.98526 5.84292 4.26759C5.82932 4.5331 5.74287 4.78974 5.59304 5.00935C5.44322 5.22897 5.2358 5.40308 4.99354 5.51259C4.73529 5.63071 4.53186 5.84293 4.42474 6.10593C4.31763 6.36894 4.31492 6.6629 4.41717 6.92784C4.52747 7.20822 4.55351 7.51471 4.49209 7.80969C4.43067 8.10466 4.28447 8.37528 4.07142 8.58834C3.87175 8.79031 3.75669 9.06086 3.74973 9.34478C3.74276 9.62869 3.8444 9.90457 4.03392 10.1161C4.21236 10.3134 4.33299 10.5561 4.38254 10.8174C4.43209 11.0788 4.40865 11.3488 4.31479 11.5977C4.21601 11.8625 4.2216 12.155 4.33044 12.4158C4.43928 12.6767 4.64321 12.8864 4.90092 13.0025C5.17793 13.1256 5.41364 13.3259 5.57989 13.5793C5.74614 13.8328 5.83589 14.1288 5.83842 14.432C5.842 14.7146 5.95289 14.9853 6.14862 15.1893C6.34435 15.3932 6.61028 15.5151 6.89254 15.5303C7.15832 15.5436 7.4153 15.6299 7.63521 15.7798C7.85512 15.9296 8.02945 16.1372 8.13904 16.3797C8.25715 16.6378 8.46927 16.8411 8.73212 16.9481C8.99497 17.0551 9.28875 17.0579 9.55354 16.9557C9.73588 16.8855 9.92966 16.8498 10.125 16.8503C10.5346 16.8511 10.9272 17.014 11.217 17.3033C11.422 17.4972 11.6915 17.6082 11.9735 17.6152C12.2556 17.6221 12.5302 17.5244 12.7444 17.3408C12.9415 17.1626 13.1838 17.042 13.4447 16.9923C13.7057 16.9426 13.9754 16.9656 14.2242 17.0588ZM12 16.1251C10.665 16.1251 9.35997 15.7292 8.24994 14.9875C7.13991 14.2458 6.27475 13.1916 5.76385 11.9582C5.25296 10.7248 5.11929 9.3676 5.37974 8.05823C5.64019 6.74886 6.28307 5.54612 7.22707 4.60212C8.17107 3.65811 9.37381 3.01524 10.6832 2.75479C11.9926 2.49434 13.3498 2.62801 14.5832 3.1389C15.8166 3.64979 16.8708 4.51496 17.6125 5.62499C18.3542 6.73502 18.75 8.04006 18.75 9.37509C18.7481 11.1647 18.0363 12.8804 16.7708 14.1459C15.5054 15.4113 13.7896 16.1231 12 16.1251Z"
|
|
25
|
-
fill="#FAB400"
|
|
26
|
-
/>
|
|
27
|
-
<path
|
|
28
|
-
d="M17.1653 16.8838L21.3814 15.9111L19.3617 13.8921C19.3459 13.8996 19.3324 13.9105 19.3167 13.9176C19.1991 13.9705 19.0984 14.0547 19.0256 14.1611C18.9528 14.2675 18.9108 14.3919 18.9042 14.5206C18.8791 14.993 18.6752 15.4382 18.334 15.766C17.9928 16.0937 17.5397 16.2793 17.0667 16.2853C16.9064 16.2858 16.7497 16.3329 16.6158 16.421C16.4819 16.509 16.3765 16.6341 16.3125 16.7811C16.1179 17.2122 15.7667 17.5532 15.3301 17.7352C14.8935 17.9171 14.4041 17.9263 13.9609 17.761C13.8406 17.7157 13.7101 17.7044 13.5837 17.7283C13.4574 17.7523 13.3401 17.8105 13.2447 17.8967C13.0956 18.0282 12.9265 18.1349 12.7437 18.2128L15.9113 21.3808L16.8844 17.1647C16.9002 17.0963 16.9349 17.0337 16.9846 16.984C17.0343 16.9344 17.0969 16.8997 17.1653 16.8838Z"
|
|
29
|
-
fill="#FAB400"
|
|
30
|
-
/>
|
|
31
|
-
<path
|
|
32
|
-
d="M22.0064 16.5377L17.5623 17.5622L16.5374 22.0067L17.0373 22.5066L18.01 18.2905C18.0259 18.222 18.0607 18.1594 18.1104 18.1097C18.1601 18.06 18.2228 18.0254 18.2913 18.0096L22.5063 17.0365L22.0064 16.5377Z"
|
|
33
|
-
fill="#FAB400"
|
|
34
|
-
/>
|
|
35
|
-
</svg>,
|
|
36
|
-
"RankBadge",
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
export default RankBadge;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { OverridableComponent } from "@mui/material/OverridableComponent";
|
|
2
|
-
import { SvgIconTypeMap } from "@mui/material/SvgIcon";
|
|
3
|
-
|
|
4
|
-
type IconComponent = OverridableComponent<SvgIconTypeMap<unknown, "svg">>;
|
|
5
|
-
|
|
6
|
-
import Category from "./Components/Category";
|
|
7
|
-
import DottedStar from "./Components/DottedStar";
|
|
8
|
-
import GiftBox from "./Components/GiftBox";
|
|
9
|
-
import Light from "./Components/Light";
|
|
10
|
-
import NewArrival from "./Components/NewArrival";
|
|
11
|
-
import RankBadge from "./Components/RankBadge";
|
|
12
|
-
import FallbackIcon from "./Components/FallbackIcon";
|
|
13
|
-
|
|
14
|
-
export { Category };
|
|
15
|
-
export { DottedStar };
|
|
16
|
-
export { GiftBox };
|
|
17
|
-
export { Light };
|
|
18
|
-
export { NewArrival };
|
|
19
|
-
export { RankBadge };
|
|
20
|
-
|
|
21
|
-
const iconMapping: Record<string, IconComponent> = {
|
|
22
|
-
DottedStar, // Add more icons here as needed
|
|
23
|
-
GiftBox,
|
|
24
|
-
Light,
|
|
25
|
-
NewArrival,
|
|
26
|
-
RankBadge,
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
// Use this when you need a fallback Icon.
|
|
30
|
-
export const getIcon = (iconName: string): IconComponent => {
|
|
31
|
-
return iconMapping[iconName] || FallbackIcon;
|
|
32
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// From scratch components
|
|
2
|
-
export { default as BrandLogosScroller } from "./Components/BrandLogosScroller";
|
|
3
|
-
export { default as CategoryCard } from "./Components/CategoryCard";
|
|
4
|
-
export { default as FeaturedCategories } from "./Components/FeaturedCategories";
|
|
5
|
-
export { default as FeaturedProducts } from "./Components/FeaturedProducts";
|
|
6
|
-
export { default as FeaturePill } from "./Components/FeaturePill";
|
|
7
|
-
export { default as Footer } from "./Components/Footer";
|
|
8
|
-
export { default as Hero } from "./Components/Hero";
|
|
9
|
-
export { default as MediaCard } from "./Components/MediaCard";
|
|
10
|
-
export { default as RichText } from "./Components/RichText";
|
|
11
|
-
export { default as Image } from "./Components/Image";
|
|
12
|
-
export { default as HeroCarousel } from "./Components/HeroCarousel/index";
|
|
13
|
-
export { default as Services } from "./Components/Services/index";
|
|
14
|
-
export { default as ProductCarousel } from "./Components/ProductCarousel/index";
|
|
15
|
-
export { default as ProductSectionFullWidth } from "./Components/ProductSectionFullWidth/index";
|
|
16
|
-
export { default as CategoryCarousel } from "./Components/CategoryCarousel/index";
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
export interface Slide {
|
|
2
|
-
id: number;
|
|
3
|
-
heading: string;
|
|
4
|
-
description: string;
|
|
5
|
-
buttonText: string;
|
|
6
|
-
buttonColor: string;
|
|
7
|
-
image: Media;
|
|
8
|
-
linkToPage: PageLink | null;
|
|
9
|
-
linkToProduct: ProductLink | null;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface HeroCarouselBlock {
|
|
13
|
-
__component: "blocks.hero-carousel";
|
|
14
|
-
id: number;
|
|
15
|
-
Slides: Slide[];
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface LogoScrollerBlock {
|
|
19
|
-
__component: "blocks.logo-scroller";
|
|
20
|
-
id: number;
|
|
21
|
-
image: Media[];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface ServiceCard {
|
|
25
|
-
id: number;
|
|
26
|
-
title: string;
|
|
27
|
-
description: string;
|
|
28
|
-
icon: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface ServicesBlock {
|
|
32
|
-
__component: "blocks.services";
|
|
33
|
-
id: number;
|
|
34
|
-
Services_Card: ServiceCard[];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface HeroSectionBlock {
|
|
38
|
-
__component: "blocks.hero-section";
|
|
39
|
-
id: number;
|
|
40
|
-
heading: string;
|
|
41
|
-
subheading: string | null;
|
|
42
|
-
buttonText: string;
|
|
43
|
-
backgroundImage: Media;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface Category {
|
|
47
|
-
id: number;
|
|
48
|
-
name: string;
|
|
49
|
-
image: Media;
|
|
50
|
-
tier: number;
|
|
51
|
-
createdAt: string;
|
|
52
|
-
updatedAt: string;
|
|
53
|
-
publishedAt: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface CategoryWrapper {
|
|
57
|
-
id: number;
|
|
58
|
-
category: Category;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface CategoryCarouselBlock {
|
|
62
|
-
__component: "blocks.category-carousel";
|
|
63
|
-
id: number;
|
|
64
|
-
CategoryWrapper: CategoryWrapper[];
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface Product {
|
|
68
|
-
id: number;
|
|
69
|
-
sku: string;
|
|
70
|
-
description: string | null;
|
|
71
|
-
image: Media[];
|
|
72
|
-
keywords: string | null;
|
|
73
|
-
createdAt: string;
|
|
74
|
-
updatedAt: string;
|
|
75
|
-
publishedAt: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface ProductWrapper {
|
|
79
|
-
id: number;
|
|
80
|
-
product: Product;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export interface ProductSectionFullWidthBlock {
|
|
84
|
-
__component: "blocks.product-section-full-width";
|
|
85
|
-
id: number;
|
|
86
|
-
heading: string;
|
|
87
|
-
icon: string;
|
|
88
|
-
ProductWrapper: ProductWrapper[];
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface ProductCarouselBlock {
|
|
92
|
-
__component: "blocks.product-carousel";
|
|
93
|
-
id: number;
|
|
94
|
-
heading: string;
|
|
95
|
-
products: Product[];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export interface FeaturesPillBlock {
|
|
99
|
-
__component: "blocks.features-pill";
|
|
100
|
-
id: number;
|
|
101
|
-
feature_1: string;
|
|
102
|
-
feature_2: string;
|
|
103
|
-
feature_3: string;
|
|
104
|
-
feature_4: string;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export interface FeaturedCategoriesBlock {
|
|
108
|
-
__component: "blocks.featured-categories";
|
|
109
|
-
id: number;
|
|
110
|
-
categories: Category[];
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export interface FeaturedProductsBlock {
|
|
114
|
-
__component: "blocks.featured-products";
|
|
115
|
-
id: number;
|
|
116
|
-
name: string;
|
|
117
|
-
products: Product[];
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export interface FooterBlock {
|
|
121
|
-
id: number;
|
|
122
|
-
__component: "blocks.footer";
|
|
123
|
-
address: string;
|
|
124
|
-
companyDescription: string;
|
|
125
|
-
companyName: string;
|
|
126
|
-
email: string;
|
|
127
|
-
phoneNumber: string;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export interface ImageBlock {
|
|
131
|
-
id: number;
|
|
132
|
-
__component: "blocks.image-block";
|
|
133
|
-
media: MediaData;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export interface RichTextBlock {
|
|
137
|
-
id: number;
|
|
138
|
-
__component: "blocks.rich-text";
|
|
139
|
-
content: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface ImageFormat {
|
|
143
|
-
ext: string;
|
|
144
|
-
url: string;
|
|
145
|
-
hash: string;
|
|
146
|
-
mime: string;
|
|
147
|
-
name: string;
|
|
148
|
-
path: string | null;
|
|
149
|
-
size: number;
|
|
150
|
-
width: number;
|
|
151
|
-
height: number;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export interface Formats {
|
|
155
|
-
/** Strapi generates only the sizes you configure.
|
|
156
|
-
Keep this flexible by using an index signature. */
|
|
157
|
-
[size: string]: ImageFormat;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export interface Media {
|
|
161
|
-
id: number;
|
|
162
|
-
name: string;
|
|
163
|
-
alternativeText: string | null;
|
|
164
|
-
caption: string | null;
|
|
165
|
-
width: number | null;
|
|
166
|
-
height: number | null;
|
|
167
|
-
url: string;
|
|
168
|
-
ext: string;
|
|
169
|
-
mime: string;
|
|
170
|
-
size: number;
|
|
171
|
-
createdAt: string;
|
|
172
|
-
updatedAt: string;
|
|
173
|
-
formats?: Formats;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export interface PageLink {
|
|
177
|
-
id: number;
|
|
178
|
-
title: string;
|
|
179
|
-
slug: string;
|
|
180
|
-
createdAt: string;
|
|
181
|
-
updatedAt: string;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export interface ProductLink {
|
|
185
|
-
id: number;
|
|
186
|
-
name: string;
|
|
187
|
-
slug: string;
|
|
188
|
-
sku: string;
|
|
189
|
-
// Add more fields if needed
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export interface MetaItem {
|
|
193
|
-
id: number;
|
|
194
|
-
name: string;
|
|
195
|
-
content: string;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export interface MediaAttributes {
|
|
199
|
-
url: string;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export interface MediaData {
|
|
203
|
-
attributes: MediaAttributes;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface MetaMedia {
|
|
207
|
-
data: MediaData;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export interface SeoData {
|
|
211
|
-
metaTitle?: string;
|
|
212
|
-
metaDescription?: string;
|
|
213
|
-
metaKeywords?: string;
|
|
214
|
-
metaImage?: { media?: MetaMedia | null } | null;
|
|
215
|
-
meta?: MetaItem[];
|
|
216
|
-
preventIndexing?: boolean;
|
|
217
|
-
structuredData?: string | null;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface SeoPageData {
|
|
221
|
-
title?: string;
|
|
222
|
-
seo?: SeoData;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export type Block =
|
|
226
|
-
| HeroCarouselBlock
|
|
227
|
-
| LogoScrollerBlock
|
|
228
|
-
| ServicesBlock
|
|
229
|
-
| HeroSectionBlock
|
|
230
|
-
| CategoryCarouselBlock
|
|
231
|
-
| ProductSectionFullWidthBlock
|
|
232
|
-
| ProductCarouselBlock
|
|
233
|
-
| FeaturesPillBlock
|
|
234
|
-
| FeaturedCategoriesBlock
|
|
235
|
-
| FeaturedProductsBlock
|
|
236
|
-
| FooterBlock
|
|
237
|
-
| ImageBlock
|
|
238
|
-
| RichTextBlock;
|
|
239
|
-
|
|
240
|
-
export type BlockManagerType = Block[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { styled } from "@mui/material/styles";
|
|
3
|
-
|
|
4
|
-
export const BorderShadowCard = styled("div")(({ theme }) => ({
|
|
5
|
-
borderRadius: 4,
|
|
6
|
-
padding: "0.5rem 0px",
|
|
7
|
-
transformOrigin: "top",
|
|
8
|
-
boxShadow: "rgba(149, 157, 165, 0.1) 0px 8px 24px;",
|
|
9
|
-
backgroundColor: theme.palette.background.paper,
|
|
10
|
-
border: "1px solid rgba(0, 0, 0, 0.1)",
|
|
11
|
-
marginBottom: "1rem",
|
|
12
|
-
}));
|
|
13
|
-
|
|
14
|
-
// these should use theme
|
|
15
|
-
export const lightShadow = { boxShadow: "0 4px 6px rgba(0, 0, 0, 0.1)" };
|
|
16
|
-
export const lightBorder = { border: "1px solid rgba(0, 0, 0, 0.1)" };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// CUSTOM ICON COMPONENTS
|
|
2
|
-
import { MdFacebook as Facebook } from "react-icons/md";
|
|
3
|
-
import { FaGoogle as Google } from "react-icons/fa";
|
|
4
|
-
import { FaTwitter as Twitter } from "react-icons/fa";
|
|
5
|
-
import { FaInstagram as Instagram } from "react-icons/fa";
|
|
6
|
-
|
|
7
|
-
export const ABOUT_LINKS = [
|
|
8
|
-
"Careers",
|
|
9
|
-
"Our Stores",
|
|
10
|
-
"Our Cares",
|
|
11
|
-
"Terms & Conditions",
|
|
12
|
-
"Privacy Policy",
|
|
13
|
-
];
|
|
14
|
-
|
|
15
|
-
export const CUSTOMER_CARE_LINKS = [
|
|
16
|
-
"Help Center",
|
|
17
|
-
"Track Your Order",
|
|
18
|
-
"Corporate & Bulk Purchasing",
|
|
19
|
-
"Returns & Refunds",
|
|
20
|
-
];
|
|
21
|
-
|
|
22
|
-
export const SOCIAL_ICON_LINKS = [
|
|
23
|
-
{ Icon: Facebook, url: "https://www.facebook.com/UILibOfficial" },
|
|
24
|
-
{ Icon: Twitter, url: "https://twitter.com/uilibofficial" },
|
|
25
|
-
{ Icon: Google, url: "https://www.google.com/search?q=ui-lib.com" },
|
|
26
|
-
{ Icon: Instagram, url: "https://www.instagram.com/uilibofficial/" },
|
|
27
|
-
];
|
|
28
|
-
|
|
29
|
-
export const PLAY_APP_STORE_DATA = [
|
|
30
|
-
{ url: "/", icon: Facebook, title: "Google Play", subtitle: "Get it on" },
|
|
31
|
-
{ url: "/", icon: Facebook, title: "App Store", subtitle: "Download on the" },
|
|
32
|
-
];
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
// MUI
|
|
4
|
-
import { Box, Container } from "@mui/material";
|
|
5
|
-
import Grid from "@mui/material/Grid2";
|
|
6
|
-
|
|
7
|
-
// Local Custom Components
|
|
8
|
-
import Logo from "./sections/FooterLogo";
|
|
9
|
-
import Links from "./sections/FooterLinks";
|
|
10
|
-
import Contact from "./sections/FooterContact";
|
|
11
|
-
|
|
12
|
-
import cms from "@/cms/endpoints";
|
|
13
|
-
|
|
14
|
-
import { FooterBlock, FooterResponse } from "./interfaces";
|
|
15
|
-
|
|
16
|
-
const getBlockComponent = (block: FooterBlock, index: number) => {
|
|
17
|
-
let Block;
|
|
18
|
-
|
|
19
|
-
switch (block.__component) {
|
|
20
|
-
case "footer.links":
|
|
21
|
-
Block = Links;
|
|
22
|
-
return (
|
|
23
|
-
<Block key={`index-${index}`} title={block.title} links={block.links} />
|
|
24
|
-
);
|
|
25
|
-
case "footer.logo":
|
|
26
|
-
Block = Logo;
|
|
27
|
-
return <Block key={`index-${index}`} description={block.description} />;
|
|
28
|
-
case "footer.contact":
|
|
29
|
-
Block = Contact;
|
|
30
|
-
return <Block key={`index-${index}`} social={block.social} />;
|
|
31
|
-
default:
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
const fetchFooterData = async (): Promise<FooterResponse | null> => {
|
|
37
|
-
try {
|
|
38
|
-
const response = await fetch(cms.getCmsApiUrl("footer"), {
|
|
39
|
-
cache: "no-store", // Ensure server-side fetching
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
if (!response.ok) {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const text = await response.text();
|
|
47
|
-
|
|
48
|
-
if (!text) {
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return JSON.parse(text) as FooterResponse;
|
|
53
|
-
} catch (error) {
|
|
54
|
-
console.error("Error fetching footer data:", error);
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
const Footer = async () => {
|
|
60
|
-
const data = await fetchFooterData();
|
|
61
|
-
const sections = data?.data?.sections;
|
|
62
|
-
|
|
63
|
-
if (!(sections && sections.length)) {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return (
|
|
68
|
-
<Box
|
|
69
|
-
component="footer"
|
|
70
|
-
bgcolor="#222935"
|
|
71
|
-
mt={{ xs: 7 }}
|
|
72
|
-
mb={{ sm: 0, xs: 7 }}
|
|
73
|
-
>
|
|
74
|
-
<Box
|
|
75
|
-
component={Container}
|
|
76
|
-
color="white"
|
|
77
|
-
overflow="hidden"
|
|
78
|
-
py={{ sm: 10, xs: 4 }}
|
|
79
|
-
>
|
|
80
|
-
<Grid container spacing={6}>
|
|
81
|
-
{sections.map(getBlockComponent)}
|
|
82
|
-
</Grid>
|
|
83
|
-
</Box>
|
|
84
|
-
</Box>
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export default Footer;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export interface Link {
|
|
2
|
-
slug: string;
|
|
3
|
-
title: string;
|
|
4
|
-
}
|
|
5
|
-
export interface SocialLink {
|
|
6
|
-
name: string;
|
|
7
|
-
link: string;
|
|
8
|
-
}
|
|
9
|
-
interface FooterLogoBlock {
|
|
10
|
-
id: number;
|
|
11
|
-
__component: "footer.logo";
|
|
12
|
-
description: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface FooterLinksBlock {
|
|
16
|
-
id: number;
|
|
17
|
-
__component: "footer.links";
|
|
18
|
-
title: string;
|
|
19
|
-
links: Link[];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface FooterContactBlock {
|
|
23
|
-
id: number;
|
|
24
|
-
__component: "footer.contact";
|
|
25
|
-
social: SocialLink[];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type FooterBlock =
|
|
29
|
-
| FooterLogoBlock
|
|
30
|
-
| FooterLinksBlock
|
|
31
|
-
| FooterContactBlock;
|
|
32
|
-
|
|
33
|
-
export interface FooterResponse {
|
|
34
|
-
data: {
|
|
35
|
-
sections: FooterBlock[];
|
|
36
|
-
};
|
|
37
|
-
}
|