@evenicanpm/storefront-core 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1021) hide show
  1. package/.storybook/EvenicaTheme.ts +9 -0
  2. package/.storybook/main.ts +42 -24
  3. package/.storybook/manager.ts +6 -0
  4. package/.storybook/preview.tsx +42 -0
  5. package/__mocks__/countries.ts +11 -0
  6. package/__mocks__/create-mutation.ts +60 -0
  7. package/__mocks__/create-query.ts +93 -0
  8. package/__mocks__/data/categories.json +795 -0
  9. package/__mocks__/get-product-by-id.ts +7 -0
  10. package/__mocks__/next-auth-react.ts +9 -0
  11. package/__mocks__/next-font.js +2 -2
  12. package/__mocks__/next-headers.js +13 -0
  13. package/__mocks__/next-image.tsx +7 -0
  14. package/__mocks__/next-link.js +19 -0
  15. package/__mocks__/next-navigation.ts +29 -0
  16. package/__mocks__/product-dimensions.ts +635 -0
  17. package/__mocks__/products.ts +533 -0
  18. package/__mocks__/query-client.ts +3 -0
  19. package/__mocks__/wishlists.json +408 -0
  20. package/docs.tsconfig.json +33 -33
  21. package/package.json +43 -42
  22. package/src/api-manager/datasources/d365/d365-address.datasource.ts +127 -127
  23. package/src/api-manager/datasources/d365/d365-base.datasource.ts +4 -4
  24. package/src/api-manager/datasources/d365/d365-cart.datasource.ts +428 -428
  25. package/src/api-manager/datasources/d365/d365-categories.datasource.ts +30 -30
  26. package/src/api-manager/datasources/d365/d365-order.datasource.ts +54 -54
  27. package/src/api-manager/datasources/d365/d365-organization.datasource.ts +74 -74
  28. package/src/api-manager/datasources/d365/d365-product.datasource.ts +253 -253
  29. package/src/api-manager/datasources/d365/d365-session.datasource.ts +15 -15
  30. package/src/api-manager/datasources/d365/d365-user.datasource.ts +248 -248
  31. package/src/api-manager/datasources/d365/d365.datasource.ts +37 -37
  32. package/src/api-manager/datasources/d365/index.ts +2 -2
  33. package/src/api-manager/datasources/d365/test-context.ts +22 -22
  34. package/src/api-manager/datasources/d365/utils/create-search-criteria.ts +8 -8
  35. package/src/api-manager/datasources/d365/utils/decode-jwt.ts +5 -5
  36. package/src/api-manager/datasources/d365/utils/get-context-cookie.ts +15 -15
  37. package/src/api-manager/datasources/d365/utils/parse-object.ts +5 -5
  38. package/src/api-manager/datasources/d365/utils/product-images-utils.ts +28 -28
  39. package/src/api-manager/datasources/d365/utils/product-inventory-utils.ts +24 -24
  40. package/src/api-manager/datasources/e4/address/e4-address.datasource.ts +91 -91
  41. package/src/api-manager/datasources/e4/address/e4-address.remaps.ts +45 -45
  42. package/src/api-manager/datasources/e4/address/e4-address.translator.ts +64 -64
  43. package/src/api-manager/datasources/e4/cart/e4-cart.datasource.ts +247 -247
  44. package/src/api-manager/datasources/e4/cart/e4-cart.remaps.ts +74 -74
  45. package/src/api-manager/datasources/e4/cart/e4-cart.translator.ts +14 -11
  46. package/src/api-manager/datasources/e4/categories/e4-categories.datasource.ts +29 -29
  47. package/src/api-manager/datasources/e4/categories/e4-categories.translator.ts +140 -140
  48. package/src/api-manager/datasources/e4/e4.datasource.ts +18 -18
  49. package/src/api-manager/datasources/e4/graphqlRequestSdk.ts +39793 -7866
  50. package/src/api-manager/datasources/e4/order/e4-order.datasource.ts +38 -38
  51. package/src/api-manager/datasources/e4/order/e4-order.remaps.ts +76 -76
  52. package/src/api-manager/datasources/e4/organization/e4-organization.datasource.ts +11 -11
  53. package/src/api-manager/datasources/e4/product/e4-product.datasource.ts +169 -169
  54. package/src/api-manager/datasources/e4/product/e4-product.remaps.ts +66 -66
  55. package/src/api-manager/datasources/e4/product/e4-product.translator.ts +288 -288
  56. package/src/api-manager/datasources/e4/session/e4-session.datasource.ts +33 -33
  57. package/src/api-manager/datasources/e4/session/e4-session.translator.ts +13 -13
  58. package/src/api-manager/datasources/e4/user/e4-user.datasource.ts +138 -138
  59. package/src/api-manager/datasources/e4/user/e4-user.remaps.ts +37 -37
  60. package/src/api-manager/datasources/e4/user/e4-user.translator.ts +23 -23
  61. package/src/api-manager/datasources/e4/utils/unwrap-e4-variants.ts +44 -44
  62. package/src/api-manager/index.ts +108 -105
  63. package/src/api-manager/lib/category-helpers.ts +81 -81
  64. package/src/api-manager/lib/get-dynamics-context.ts +25 -25
  65. package/src/api-manager/lib/get-graphql-client.ts +33 -33
  66. package/src/api-manager/schemas/address.schema.ts +12 -12
  67. package/src/api-manager/schemas/cart.schema.ts +47 -47
  68. package/src/api-manager/schemas/d365.schema.ts +5430 -5430
  69. package/src/api-manager/schemas/order.schema.ts +12 -12
  70. package/src/api-manager/schemas/organization.schema.ts +16 -16
  71. package/src/api-manager/schemas/product.schema.ts +77 -77
  72. package/src/api-manager/schemas/session.schema.ts +7 -7
  73. package/src/api-manager/schemas/user.schema.ts +24 -24
  74. package/src/api-manager/services/address/mutations/create-address.ts +13 -13
  75. package/src/api-manager/services/address/mutations/delete-address.ts +12 -12
  76. package/src/api-manager/services/address/mutations/get-delivery-options.ts +12 -12
  77. package/src/api-manager/services/address/mutations/update-address.ts +12 -12
  78. package/src/api-manager/services/address/queries/get-countries.ts +6 -6
  79. package/src/api-manager/services/address/queries/get-states.ts +8 -8
  80. package/src/api-manager/services/cart/mutations/add-discount-code.ts +21 -21
  81. package/src/api-manager/services/cart/mutations/add-to-cart.ts +42 -39
  82. package/src/api-manager/services/cart/mutations/checkout.ts +19 -16
  83. package/src/api-manager/services/cart/mutations/delete-cart-line.ts +13 -10
  84. package/src/api-manager/services/cart/mutations/get-payment-accept-result.ts +12 -12
  85. package/src/api-manager/services/cart/mutations/remove-cart-line-delivery-mode.ts +15 -15
  86. package/src/api-manager/services/cart/mutations/remove-discount-code.ts +12 -12
  87. package/src/api-manager/services/cart/mutations/update-cart-line-delivery-mode.ts +15 -15
  88. package/src/api-manager/services/cart/mutations/update-cart-lines.ts +16 -13
  89. package/src/api-manager/services/cart/mutations/update-cart.ts +16 -13
  90. package/src/api-manager/services/cart/queries/get-cart-lines-inventory.ts +8 -8
  91. package/src/api-manager/services/cart/queries/get-cart.ts +5 -5
  92. package/src/api-manager/services/cart/queries/get-payment-accept-point.ts +10 -10
  93. package/src/api-manager/services/categories/queries/get-categories.ts +4 -4
  94. package/src/api-manager/services/create-extension-query.ts +4 -4
  95. package/src/api-manager/services/create-mutation.ts +50 -50
  96. package/src/api-manager/services/create-query.ts +249 -248
  97. package/src/api-manager/services/get-query-client.ts +30 -30
  98. package/src/api-manager/services/order/queries/get-order-details.ts +9 -9
  99. package/src/api-manager/services/order/queries/get-orders.ts +7 -7
  100. package/src/api-manager/services/organization/queries/get-channel-configuration.ts +7 -7
  101. package/src/api-manager/services/organization/queries/get-stores.ts +9 -9
  102. package/src/api-manager/services/product/mutations/search-products.ts +10 -10
  103. package/src/api-manager/services/product/queries/get-product-availability.ts +7 -9
  104. package/src/api-manager/services/product/queries/get-product-by-id.ts +11 -11
  105. package/src/api-manager/services/product/queries/get-product-by-ids.ts +8 -8
  106. package/src/api-manager/services/product/queries/get-product-list.ts +9 -9
  107. package/src/api-manager/services/product/queries/get-product-prices.ts +10 -10
  108. package/src/api-manager/services/product/queries/get-related-products.ts +7 -7
  109. package/src/api-manager/services/product/queries/search-products.ts +6 -6
  110. package/src/api-manager/services/product/server/product.server.ts +9 -9
  111. package/src/api-manager/services/session/mutations/session-init.ts +12 -12
  112. package/src/api-manager/services/session/mutations/session-logout.ts +9 -9
  113. package/src/api-manager/services/session/queries/get-session.ts +5 -5
  114. package/src/api-manager/services/user/mutations/add-to-wishlist.ts +35 -35
  115. package/src/api-manager/services/user/mutations/copy-cart-to-wishlist.ts +14 -14
  116. package/src/api-manager/services/user/mutations/create-wishlist.ts +11 -11
  117. package/src/api-manager/services/user/mutations/delete-wishlist.ts +10 -10
  118. package/src/api-manager/services/user/mutations/remove-from-wishlist.ts +36 -36
  119. package/src/api-manager/services/user/mutations/update-user.ts +9 -9
  120. package/src/api-manager/services/user/mutations/update-wishlist.ts +14 -14
  121. package/src/api-manager/services/user/queries/get-user-counts.ts +5 -5
  122. package/src/api-manager/services/user/queries/get-user.ts +5 -5
  123. package/src/api-manager/services/user/queries/get-wishlist-details.ts +10 -10
  124. package/src/api-manager/services/user/queries/get-wishlists.ts +5 -5
  125. package/src/api-manager/types/Datasource.ts +152 -149
  126. package/src/auth/auth-options.test.ts +97 -97
  127. package/src/auth/auth-options.ts +47 -46
  128. package/src/auth/msal.ts +43 -43
  129. package/src/auth/next-auth-cookie-manager.ts +46 -46
  130. package/src/auth/providers/aadb2c-provider.ts +21 -21
  131. package/src/auth/providers/authentik-provider.ts +14 -14
  132. package/src/auth/providers/index.ts +3 -3
  133. package/src/auth/providers/keycloak-provider.ts +13 -13
  134. package/src/auth/refresh-token-url-keys.ts +3 -3
  135. package/src/auth/refresh-token.ts +100 -100
  136. package/src/auth/signout.ts +31 -31
  137. package/src/auth/types/next-auth.d.ts +22 -22
  138. package/src/cms/blocks/block-manager.tsx +47 -47
  139. package/src/cms/blocks/components/brand-logos-scroller.tsx +45 -45
  140. package/src/cms/blocks/components/category-card.tsx +34 -34
  141. package/src/cms/blocks/components/category-carousel/index.tsx +37 -37
  142. package/src/cms/blocks/components/feature-pill.tsx +89 -89
  143. package/src/cms/blocks/components/featured-categories.tsx +29 -29
  144. package/src/cms/blocks/components/featured-products.tsx +29 -29
  145. package/src/cms/blocks/components/footer/data/index.ts +15 -15
  146. package/src/cms/blocks/components/footer/index.tsx +58 -58
  147. package/src/cms/blocks/components/footer/interfaces.ts +20 -20
  148. package/src/cms/blocks/components/footer/sections/footer-app-store.tsx +32 -32
  149. package/src/cms/blocks/components/footer/sections/footer-contact.tsx +18 -18
  150. package/src/cms/blocks/components/footer/sections/footer-links.tsx +19 -19
  151. package/src/cms/blocks/components/footer/sections/footer-logo.tsx +11 -11
  152. package/src/cms/blocks/components/footer/sections/footer-social-links.tsx +42 -42
  153. package/src/cms/blocks/components/footer/styles/index.ts +20 -20
  154. package/src/cms/blocks/components/footer.tsx +58 -58
  155. package/src/cms/blocks/components/hero-carousel/index.tsx +33 -33
  156. package/src/cms/blocks/components/hero.tsx +53 -53
  157. package/src/cms/blocks/components/image.tsx +24 -24
  158. package/src/cms/blocks/components/media-card.tsx +27 -27
  159. package/src/cms/blocks/components/product-carousel/index.tsx +69 -69
  160. package/src/cms/blocks/components/product-section-fullwidth/index.tsx +70 -70
  161. package/src/cms/blocks/components/rich-text.tsx +6 -6
  162. package/src/cms/blocks/components/seo/index.tsx +37 -37
  163. package/src/cms/blocks/components/services/index.tsx +11 -11
  164. package/src/cms/blocks/components/services/service-card.tsx +37 -37
  165. package/src/cms/blocks/components/shared/featured-product-card.tsx +16 -16
  166. package/src/cms/blocks/components/shared/product-category-item.tsx +28 -28
  167. package/src/cms/blocks/components/shared/product-grid.tsx +51 -51
  168. package/src/cms/blocks/components/shared/top-categories-card.tsx +43 -43
  169. package/src/cms/blocks/components/shared/top-rating-product-card.tsx +45 -45
  170. package/src/cms/blocks/icons/components/category.tsx +4 -4
  171. package/src/cms/blocks/icons/components/dotted-star.tsx +31 -31
  172. package/src/cms/blocks/icons/components/fallback-icon.tsx +24 -24
  173. package/src/cms/blocks/icons/components/gift-box.tsx +9 -9
  174. package/src/cms/blocks/icons/components/light.tsx +4 -4
  175. package/src/cms/blocks/icons/components/new-arrival.tsx +9 -9
  176. package/src/cms/blocks/icons/components/rank-badge.tsx +31 -31
  177. package/src/cms/blocks/icons/index.ts +6 -6
  178. package/src/cms/blocks/interfaces.ts +146 -146
  179. package/src/cms/blog.ts +198 -198
  180. package/src/cms/endpoints.ts +39 -39
  181. package/src/cms/interfaces/navigation.ts +35 -35
  182. package/src/cms/interfaces/product-data.ts +65 -65
  183. package/src/cms/pages.ts +119 -119
  184. package/src/components-v2/BazaarCard.stories.tsx +29 -0
  185. package/src/components-v2/BazaarCard.tsx +6 -6
  186. package/src/components-v2/BazaarImage.tsx +3 -3
  187. package/src/components-v2/BazaarMenu.stories.tsx +31 -0
  188. package/src/components-v2/BazaarMenu.tsx +32 -32
  189. package/src/components-v2/BazaarSwitch.stories.tsx +18 -0
  190. package/src/components-v2/BazaarSwitch.tsx +28 -28
  191. package/src/components-v2/BazaarTextField.stories.tsx +20 -0
  192. package/src/components-v2/BazaarTextField.tsx +59 -55
  193. package/src/components-v2/BorderShadowCard.stories.tsx +25 -0
  194. package/src/components-v2/BoxShadowCard.tsx +7 -7
  195. package/src/components-v2/CountryInput.stories.tsx +34 -0
  196. package/src/components-v2/DropZone.stories.tsx +31 -0
  197. package/src/components-v2/DropZone.tsx +63 -63
  198. package/src/components-v2/HoverBox.stories.tsx +31 -0
  199. package/src/components-v2/HoverBox.tsx +15 -15
  200. package/src/components-v2/Image.tsx +1 -1
  201. package/src/components-v2/ImageWithFallback.tsx +36 -36
  202. package/src/components-v2/LazyImage.tsx +2 -2
  203. package/src/components-v2/Loading.stories.tsx +18 -0
  204. package/src/components-v2/Loading.tsx +20 -20
  205. package/src/components-v2/NoRecords.stories.tsx +18 -0
  206. package/src/components-v2/SearchInput.stories.tsx +29 -0
  207. package/src/components-v2/SearchInput.tsx +17 -17
  208. package/src/components-v2/SiteLogo.stories.tsx +18 -0
  209. package/src/components-v2/SnackbarProvider.tsx +21 -21
  210. package/src/components-v2/T/index.tsx +3 -3
  211. package/src/components-v2/Typography.stories.tsx +47 -0
  212. package/src/components-v2/Typography.tsx +175 -175
  213. package/src/components-v2/WhiteButton.stories.tsx +19 -0
  214. package/src/components-v2/WhiteButton.tsx +10 -10
  215. package/src/components-v2/accordion/AccordionHeader.stories.tsx +28 -0
  216. package/src/components-v2/accordion/accordion-header.tsx +22 -22
  217. package/src/components-v2/carousel/Carousel.stories.tsx +418 -0
  218. package/src/components-v2/carousel/carousel.tsx +71 -71
  219. package/src/components-v2/carousel/components/carousel-arrows.tsx +29 -29
  220. package/src/components-v2/carousel/components/carousel-dots.tsx +11 -11
  221. package/src/components-v2/carousel/styles/index.ts +70 -70
  222. package/src/components-v2/carousel-cards/carousel-card-1/CarouselCard1.stories.tsx +64 -0
  223. package/src/components-v2/carousel-cards/carousel-card-1/carousel-card-1.tsx +50 -50
  224. package/src/components-v2/carousel-cards/carousel-card-1/styles.ts +28 -28
  225. package/src/components-v2/categories/Categories.stories.tsx +35 -0
  226. package/src/components-v2/categories/category-list/category-list.tsx +62 -62
  227. package/src/components-v2/categories/category-list/styles.ts +18 -18
  228. package/src/components-v2/categories/category-list/types.ts +2 -2
  229. package/src/components-v2/categories/category-list-item/category-menu-item.tsx +20 -20
  230. package/src/components-v2/categories/category-list-item/styles.ts +29 -29
  231. package/src/components-v2/categories/category-menu.tsx +28 -30
  232. package/src/components-v2/categories/mega-menu/banner.tsx +63 -63
  233. package/src/components-v2/categories/mega-menu/column-list.tsx +40 -40
  234. package/src/components-v2/categories/mega-menu/mega-menu-1.tsx +37 -37
  235. package/src/components-v2/categories/mega-menu/mega-menu-2.tsx +50 -50
  236. package/src/components-v2/categories/mega-menu/styles.ts +19 -19
  237. package/src/components-v2/categories/types.ts +9 -9
  238. package/src/components-v2/countries-input.tsx +58 -58
  239. package/src/components-v2/flex-box/Flex.stories.tsx +62 -0
  240. package/src/components-v2/flex-box/flex-between.tsx +10 -10
  241. package/src/components-v2/flex-box/flex-box.tsx +9 -5
  242. package/src/components-v2/flex-box/flex-row-center.tsx +5 -5
  243. package/src/components-v2/header/Header.stories.tsx +18 -0
  244. package/src/components-v2/header/__tests__/user.test.tsx +189 -189
  245. package/src/components-v2/header/components/categories-menu.tsx +12 -12
  246. package/src/components-v2/header/components/mobile-header.tsx +85 -85
  247. package/src/components-v2/header/components/user.tsx +194 -194
  248. package/src/components-v2/header/header.tsx +42 -42
  249. package/src/components-v2/header/hooks/use-header.ts +6 -6
  250. package/src/components-v2/header/sticky-header.tsx +37 -33
  251. package/src/components-v2/header/styles/index.ts +14 -14
  252. package/src/components-v2/icons/cart-bag.tsx +7 -7
  253. package/src/components-v2/icons/category-outline.tsx +23 -23
  254. package/src/components-v2/icons/category.tsx +4 -4
  255. package/src/components-v2/icons/home.tsx +13 -13
  256. package/src/components-v2/icons/search.tsx +7 -7
  257. package/src/components-v2/icons/shopping-bag-outlined.tsx +7 -7
  258. package/src/components-v2/icons/up-down.tsx +15 -15
  259. package/src/components-v2/icons/user.tsx +7 -7
  260. package/src/components-v2/icons/user2.tsx +8 -8
  261. package/src/components-v2/mini-cart/__tests__/cart-item.test.tsx +132 -132
  262. package/src/components-v2/mini-cart/__tests__/mini-cart.test.tsx +78 -78
  263. package/src/components-v2/mini-cart/__tests__/test-cart-empty.json +82 -82
  264. package/src/components-v2/mini-cart/__tests__/test-cart-with-item.json +242 -242
  265. package/src/components-v2/mini-cart/components/bottom-actions.tsx +50 -50
  266. package/src/components-v2/mini-cart/components/cart-item.tsx +158 -158
  267. package/src/components-v2/mini-cart/components/empty-view.tsx +39 -39
  268. package/src/components-v2/mini-cart/components/top-header.tsx +39 -39
  269. package/src/components-v2/mini-cart/mini-cart-trigger.tsx +59 -59
  270. package/src/components-v2/mini-cart/mini-cart.tsx +125 -125
  271. package/src/components-v2/mobile-navigation/MobileNavigationBar.stories.tsx +39 -0
  272. package/src/components-v2/mobile-navigation/mobile-navigation-bar.tsx +65 -65
  273. package/src/components-v2/mobile-navigation/styles/index.ts +41 -41
  274. package/src/components-v2/nav-link/NavLink.stories.tsx +33 -0
  275. package/src/components-v2/nav-link/NavLink2.stories.tsx +38 -0
  276. package/src/components-v2/nav-link/NavLink3.stories.tsx +36 -0
  277. package/src/components-v2/nav-link/nav-link-2.tsx +20 -20
  278. package/src/components-v2/nav-link/nav-link-3.tsx +51 -51
  279. package/src/components-v2/nav-link/nav-link.tsx +30 -30
  280. package/src/components-v2/navbar/categories.tsx +40 -40
  281. package/src/components-v2/navbar/category-based-menu/category-based-menu.tsx +97 -97
  282. package/src/components-v2/navbar/category-based-menu/styles.ts +51 -51
  283. package/src/components-v2/navbar/category-based-menu/types.ts +8 -8
  284. package/src/components-v2/navbar/mega-menu/mega-menu.tsx +90 -90
  285. package/src/components-v2/navbar/mega-menu/styles.ts +24 -24
  286. package/src/components-v2/navbar/mobile-menu/mobile-menu.test.tsx +81 -81
  287. package/src/components-v2/navbar/mobile-menu/mobile-menu.tsx +91 -91
  288. package/src/components-v2/navbar/nav-list/cms-nav.test.tsx +74 -74
  289. package/src/components-v2/navbar/nav-list/nav-item-child.tsx +38 -38
  290. package/src/components-v2/navbar/nav-list/nav-list.tsx +109 -109
  291. package/src/components-v2/navbar/navbar.tsx +38 -38
  292. package/src/components-v2/navbar/styles.ts +54 -54
  293. package/src/components-v2/navbar/utils/transform-nav.test.ts +194 -194
  294. package/src/components-v2/navbar/utils/transform-nav.ts +29 -29
  295. package/src/components-v2/no-records.tsx +11 -11
  296. package/src/components-v2/product-cards/discount-chip.tsx +25 -25
  297. package/src/components-v2/product-cards/favorite-button.tsx +38 -38
  298. package/src/components-v2/product-cards/product-card/ProductCard.stories.tsx +62 -0
  299. package/src/components-v2/product-cards/product-card/product-card.tsx +345 -345
  300. package/src/components-v2/product-cards/product-card/styles/index.ts +32 -32
  301. package/src/components-v2/product-cards/product-card-plp/ProductCardPlp.stories.tsx +62 -0
  302. package/src/components-v2/product-cards/product-card-plp/product-card.tsx +176 -173
  303. package/src/components-v2/product-cards/product-card-plp/styles/index.ts +25 -25
  304. package/src/components-v2/product-cards/product-card-plp-list/ProductCardPlpList.stories.tsx +53 -0
  305. package/src/components-v2/product-cards/product-card-plp-list/components/tags.tsx +19 -19
  306. package/src/components-v2/product-cards/product-card-plp-list/product-card.tsx +169 -169
  307. package/src/components-v2/product-cards/product-card-search/ProductCardSearch.stories.tsx +60 -0
  308. package/src/components-v2/product-cards/product-card-search/product-card.tsx +134 -134
  309. package/src/components-v2/product-cards/product-card-search/styles/index.ts +33 -33
  310. package/src/components-v2/product-cards/product-price.tsx +16 -13
  311. package/src/components-v2/product-cards/product-rating.tsx +14 -14
  312. package/src/components-v2/product-cards/product-title.tsx +15 -15
  313. package/src/components-v2/product-cards/quantity-buttons.tsx +45 -45
  314. package/src/components-v2/product-dialog/ProductDialog.stories.tsx +39 -0
  315. package/src/components-v2/product-dialog/compound/product-dialog.tsx +127 -127
  316. package/src/components-v2/product-dialog/index.tsx +17 -17
  317. package/src/components-v2/product-dimensions/Dimensions.stories.tsx +34 -0
  318. package/src/components-v2/product-dimensions/__mocks__/data.ts +669 -0
  319. package/src/components-v2/product-dimensions/compound/dimensions-group-error.tsx +22 -22
  320. package/src/components-v2/product-dimensions/compound/dimensions-group-label.tsx +11 -11
  321. package/src/components-v2/product-dimensions/compound/dimensions-group-list-chip.tsx +54 -54
  322. package/src/components-v2/product-dimensions/compound/dimensions-group-list.tsx +9 -9
  323. package/src/components-v2/product-dimensions/compound/dimensions-group.tsx +10 -10
  324. package/src/components-v2/product-dimensions/compound/dimensions.tsx +35 -34
  325. package/src/components-v2/product-dimensions/index.tsx +26 -26
  326. package/src/components-v2/product-dimensions/utils/has-selected-dimension.ts +9 -9
  327. package/src/components-v2/product-quantity-buttons/ProductQuantity.stories.tsx +23 -0
  328. package/src/components-v2/product-quantity-buttons/compound/quantity-buttons-root.tsx +119 -119
  329. package/src/components-v2/product-quantity-buttons/index.tsx +7 -7
  330. package/src/components-v2/product-quantity-variants/ProductQuantity.stories.tsx +18 -0
  331. package/src/components-v2/product-quantity-variants/index.tsx +74 -69
  332. package/src/components-v2/products-view/ProductsGrid.stories.tsx +18 -0
  333. package/src/components-v2/products-view/ProductsList.stories.tsx +20 -0
  334. package/src/components-v2/products-view/compound/context.ts +23 -23
  335. package/src/components-v2/products-view/compound/products-grid-view.tsx +73 -64
  336. package/src/components-v2/products-view/compound/products-list-view.tsx +64 -64
  337. package/src/components-v2/products-view/compound/types.ts +3 -3
  338. package/src/components-v2/products-view/index.tsx +22 -21
  339. package/src/components-v2/progress/ProgressBar.stories.tsx +110 -0
  340. package/src/components-v2/progress/progress.tsx +56 -56
  341. package/src/components-v2/scrollbar/Scrollbar.stories.tsx +29 -0
  342. package/src/components-v2/scrollbar/scrollbar.tsx +12 -12
  343. package/src/components-v2/scrollbar/styles.ts +8 -8
  344. package/src/components-v2/search-bar/SearchBarLarge.stories.tsx +16 -0
  345. package/src/components-v2/search-bar/compound/context.ts +31 -31
  346. package/src/components-v2/search-bar/compound/results-item-lg.tsx +32 -32
  347. package/src/components-v2/search-bar/compound/results-item-sm.tsx +31 -31
  348. package/src/components-v2/search-bar/compound/results-suspense.tsx +19 -19
  349. package/src/components-v2/search-bar/compound/results.tsx +25 -24
  350. package/src/components-v2/search-bar/compound/search-bar-root.tsx +23 -23
  351. package/src/components-v2/search-bar/compound/textfield-adornment-button.tsx +11 -11
  352. package/src/components-v2/search-bar/compound/textfield-adornment-category.tsx +46 -46
  353. package/src/components-v2/search-bar/compound/textfield-adornment-search-icon.tsx +16 -16
  354. package/src/components-v2/search-bar/compound/textfield.tsx +31 -31
  355. package/src/components-v2/search-bar/hooks/use-click-outside.ts +11 -11
  356. package/src/components-v2/search-bar/hooks/use-search.ts +53 -52
  357. package/src/components-v2/search-bar/index.tsx +17 -17
  358. package/src/components-v2/search-bar/styles/index.ts +29 -29
  359. package/src/components-v2/search-bar/utils/findCategoryNameById.ts +10 -10
  360. package/src/components-v2/section/Section.stories.tsx +86 -0
  361. package/src/components-v2/section/compound/section-header.tsx +24 -24
  362. package/src/components-v2/section/compound/section.tsx +7 -7
  363. package/src/components-v2/side-nav/SideNav.stories.tsx +116 -0
  364. package/src/components-v2/side-nav/side-nav.tsx +36 -34
  365. package/src/components-v2/site-logo.tsx +6 -6
  366. package/src/components-v2/sticky/Sticky.stories.tsx +88 -0
  367. package/src/components-v2/sticky/sticky.tsx +49 -49
  368. package/src/components-v2/sticky/styles.ts +21 -21
  369. package/src/components-v2/utils/constants.ts +6 -6
  370. package/src/components-v2/wishlist-dialogs/__tests__/create-new-list.test.tsx +54 -54
  371. package/src/components-v2/wishlist-dialogs/__tests__/wishlistDetailData.json +278 -278
  372. package/src/components-v2/wishlist-dialogs/__tests__/wishlistsData.json +36 -36
  373. package/src/components-v2/wishlist-dialogs/add-to-wishlist/AddToWishlist.stories.tsx +37 -0
  374. package/src/components-v2/wishlist-dialogs/add-to-wishlist/add-to-wishlist-button.tsx +47 -47
  375. package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-bottom-ui.tsx +31 -31
  376. package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-dialog.tsx +39 -39
  377. package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-list.tsx +19 -19
  378. package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/context.ts +8 -8
  379. package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-header.tsx +41 -41
  380. package/src/components-v2/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-item.tsx +65 -65
  381. package/src/components-v2/wishlist-dialogs/add-to-wishlist/hooks/use-add-to-wishlist.ts +73 -73
  382. package/src/components-v2/wishlist-dialogs/add-to-wishlist/index.tsx +19 -19
  383. package/src/components-v2/wishlist-dialogs/create-wishlist/CreateWishlistButton.stories.tsx +15 -0
  384. package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-bottom-ui.tsx +37 -37
  385. package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-dialog.tsx +60 -60
  386. package/src/components-v2/wishlist-dialogs/create-wishlist/compound/create-wishlist-form.tsx +78 -78
  387. package/src/components-v2/wishlist-dialogs/create-wishlist/create-wishlist-button.tsx +24 -24
  388. package/src/components-v2/wishlist-dialogs/create-wishlist/index.tsx +13 -13
  389. package/src/components-v2/wishlist-dialogs/styles.ts +43 -43
  390. package/src/hooks/use-cart.ts +58 -58
  391. package/src/hooks/use-favorite.ts +7 -7
  392. package/src/hooks/use-overflow-detect.ts +21 -21
  393. package/src/hooks/use-settings.ts +6 -6
  394. package/src/hooks/use-variants.ts +78 -83
  395. package/src/lib/build-detail-url.ts +3 -3
  396. package/src/lib/build-product-detail-url.ts +6 -6
  397. package/src/lib/cart-cookie-client-handler.ts +4 -4
  398. package/src/lib/cart-cookie-handler-constants.ts +3 -3
  399. package/src/lib/cart-cookie-handler.ts +19 -19
  400. package/src/lib/category-helpers.ts +81 -81
  401. package/src/lib/create-graphql-client.ts +12 -12
  402. package/src/lib/currency-formatter.ts +20 -20
  403. package/src/lib/get-palette-color.ts +39 -39
  404. package/src/lib/graphqlRequestSdk.ts +37239 -37239
  405. package/src/lib/hexToLuma.ts +30 -30
  406. package/src/lib/lib.ts +15 -15
  407. package/src/lib/map-helper.ts +50 -50
  408. package/src/lib/page-slugs.ts +6 -6
  409. package/src/lib/product-list-types.ts +24 -24
  410. package/src/lib/refiner-utils.ts +21 -21
  411. package/src/lib/store-hours-helper.ts +210 -210
  412. package/src/lib/test-media.ts +14 -14
  413. package/src/pages-v2/account/account-navigation.tsx +104 -104
  414. package/src/pages-v2/account/addresses/address-form.tsx +229 -229
  415. package/src/pages-v2/account/addresses/address-item.tsx +119 -119
  416. package/src/pages-v2/account/dashboard-header.tsx +105 -105
  417. package/src/pages-v2/account/orders/icons/delivery.tsx +8 -8
  418. package/src/pages-v2/account/orders/icons/package-box.tsx +7 -7
  419. package/src/pages-v2/account/orders/icons/truck-filled.tsx +8 -8
  420. package/src/pages-v2/account/orders/order-progress.tsx +109 -109
  421. package/src/pages-v2/account/orders/order-row.tsx +60 -60
  422. package/src/pages-v2/account/orders/order-summary.tsx +75 -75
  423. package/src/pages-v2/account/orders/ordered-products.tsx +103 -100
  424. package/src/pages-v2/account/profile/profile-button.test.tsx +46 -46
  425. package/src/pages-v2/account/profile/profile-button.tsx +32 -32
  426. package/src/pages-v2/account/profile/user-info.tsx +52 -52
  427. package/src/pages-v2/account/styles.ts +22 -22
  428. package/src/pages-v2/account/table-row.tsx +12 -12
  429. package/src/pages-v2/account/wishlist/create-new-list.tsx +167 -167
  430. package/src/pages-v2/account/wishlist/create-wishlist-button.tsx +39 -39
  431. package/src/pages-v2/account/wishlist/wishlist-item.tsx +88 -88
  432. package/src/pages-v2/blog/pagination.tsx +26 -26
  433. package/src/pages-v2/cart/__tests__/cart-item.test.tsx +193 -193
  434. package/src/pages-v2/cart/__tests__/cart-with-items.json +809 -809
  435. package/src/pages-v2/cart/__tests__/checkout-form.test.tsx +114 -114
  436. package/src/pages-v2/cart/__tests__/conutries.json +19405 -19405
  437. package/src/pages-v2/cart/__tests__/estimate-shipping.test.tsx +64 -64
  438. package/src/pages-v2/cart/cart-item.tsx +356 -356
  439. package/src/pages-v2/cart/checkout-form.tsx +168 -168
  440. package/src/pages-v2/cart/coupon-entry.tsx +110 -110
  441. package/src/pages-v2/cart/estimate-shipping.tsx +201 -201
  442. package/src/pages-v2/cart/wrapper.tsx +23 -23
  443. package/src/pages-v2/checkout/checkout-alt-form/checkout-form.tsx +165 -165
  444. package/src/pages-v2/checkout/checkout-alt-form/checkout-step.tsx +127 -127
  445. package/src/pages-v2/checkout/checkout-alt-form/node.tsx +4 -4
  446. package/src/pages-v2/checkout/checkout-alt-form/step-heading.tsx +34 -34
  447. package/src/pages-v2/checkout/checkout-alt-form/steps/address/address-card.tsx +97 -97
  448. package/src/pages-v2/checkout/checkout-alt-form/steps/address/delivery-address.tsx +394 -394
  449. package/src/pages-v2/checkout/checkout-alt-form/steps/address/new-address-form.tsx +280 -277
  450. package/src/pages-v2/checkout/checkout-alt-form/steps/address/styles.ts +19 -19
  451. package/src/pages-v2/checkout/checkout-alt-form/steps/customer-info/customer-information.tsx +127 -127
  452. package/src/pages-v2/checkout/checkout-alt-form/steps/payment/payment-details.tsx +274 -274
  453. package/src/pages-v2/checkout/checkout-alt-form/steps/payment/safe-card-preview-data.tsx +26 -26
  454. package/src/pages-v2/checkout/checkout-alt-form/steps/shipping/delivery-date.tsx +87 -87
  455. package/src/pages-v2/checkout/checkout-alt-form/steps/shipping/delivery-options.tsx +211 -211
  456. package/src/pages-v2/checkout/checkout-alt-form/types.ts +15 -15
  457. package/src/pages-v2/checkout/checkout-alt-summary/cart-item.tsx +49 -49
  458. package/src/pages-v2/checkout/checkout-alt-summary/checkout-alt-summary.tsx +53 -50
  459. package/src/pages-v2/checkout/checkout-alt-summary/list-item.tsx +48 -48
  460. package/src/pages-v2/confirmation/address.tsx +24 -24
  461. package/src/pages-v2/confirmation/confirmation-summary.tsx +58 -58
  462. package/src/pages-v2/confirmation/ordered-products.tsx +98 -95
  463. package/src/pages-v2/product-details/available-shops.tsx +33 -33
  464. package/src/pages-v2/product-details/bopis/find-in-store-button.tsx +38 -38
  465. package/src/pages-v2/product-details/bopis/find-in-store-modal.tsx +197 -197
  466. package/src/pages-v2/product-details/bopis/pickup-option-select.tsx +84 -84
  467. package/src/pages-v2/product-details/bopis/search-header.tsx +40 -40
  468. package/src/pages-v2/product-details/bopis/store-card/shop-card.tsx +94 -91
  469. package/src/pages-v2/product-details/bopis/store-card/styles.ts +15 -15
  470. package/src/pages-v2/product-details/bopis/store-card/utils/convertSecondsToTime.ts +6 -6
  471. package/src/pages-v2/product-details/bopis/store-card/utils/getDaysResources.ts +21 -21
  472. package/src/pages-v2/product-details/checkbox-label.tsx +8 -8
  473. package/src/pages-v2/product-details/currency.ts +15 -15
  474. package/src/pages-v2/product-details/frequently-bought.tsx +63 -63
  475. package/src/pages-v2/product-details/frequently-product-card.tsx +44 -41
  476. package/src/pages-v2/product-details/product-comment.tsx +27 -27
  477. package/src/pages-v2/product-details/product-description.tsx +13 -13
  478. package/src/pages-v2/product-details/product-filter-card.tsx +199 -199
  479. package/src/pages-v2/product-details/product-intro/compound/context.ts +59 -59
  480. package/src/pages-v2/product-details/product-intro/compound/product-info.tsx +187 -187
  481. package/src/pages-v2/product-details/product-intro/compound/product-intro-images.tsx +98 -98
  482. package/src/pages-v2/product-details/product-intro/compound/product-intro.tsx +28 -28
  483. package/src/pages-v2/product-details/product-intro/compound/thumbnail-with-skeleton.tsx +16 -16
  484. package/src/pages-v2/product-details/product-intro/utils.ts +26 -26
  485. package/src/pages-v2/product-details/product-review.tsx +105 -105
  486. package/src/pages-v2/product-details/product-tabs.tsx +70 -70
  487. package/src/pages-v2/product-details/related-products.tsx +37 -37
  488. package/src/pages-v2/product-details/types.ts +6 -6
  489. package/src/pages-v2/product-list/breadcrumbs.tsx +27 -27
  490. package/src/pages-v2/product-list/checkbox-label.tsx +8 -8
  491. package/src/pages-v2/product-list/facet-group.tsx +101 -101
  492. package/src/pages-v2/product-list/facet.tsx +59 -31
  493. package/src/pages-v2/product-list/list-filter.tsx +27 -27
  494. package/src/pages-v2/product-list/pagination.tsx +60 -60
  495. package/src/pages-v2/product-list/product-list-context.tsx +265 -265
  496. package/src/pages-v2/product-list/product-list-state.ts +169 -168
  497. package/src/pages-v2/product-list/product-list-view.tsx +185 -0
  498. package/src/pages-v2/product-list/product-rating.tsx +7 -7
  499. package/src/pages-v2/product-list/quick-view-dialog-content.tsx +172 -172
  500. package/src/pages-v2/product-list/quick-view-dialog.tsx +43 -43
  501. package/src/pages-v2/product-list/range-filter.tsx +103 -103
  502. package/src/pages-v2/product-list/scrollbar.tsx +20 -20
  503. package/src/pages-v2/product-list/search-bar.tsx +190 -138
  504. package/src/pages-v2/product-list/selected-facets.tsx +61 -61
  505. package/src/pages-v2/product-list/side-nav.tsx +32 -32
  506. package/src/pages-v2/product-list/swatch.tsx +61 -61
  507. package/src/pages-v2/product-list/types.ts +10 -10
  508. package/src/pages-v2/product-list/use-product-list.ts +5 -5
  509. package/src/pages-v2/product-list/useCategoryFilter.tsx +18 -18
  510. package/src/pages-v2/product-list/utils/facet-helpers.ts +1 -1
  511. package/src/pages-v2/product-list/utils/generate-breadcrumbs.ts +23 -23
  512. package/src/pages-v2/product-list/utils/getCategoryFilterFromSlug.ts +130 -130
  513. package/src/pages-v2/product-list/utils/product-list-helper.ts +84 -84
  514. package/src/pages-v2/product-list/utils/product-list-types.ts +24 -24
  515. package/src/pages-v2/product-list/utils/search-for-category.ts +59 -59
  516. package/src/pages-v2/product-list/utils/sort-options.ts +36 -36
  517. package/src/pages-v2/product-list/utils/use-previous-refiners.ts +9 -9
  518. package/src/pages-v2/quickorder/context.ts +23 -23
  519. package/src/pages-v2/quickorder/order-upload.tsx +121 -129
  520. package/src/pages-v2/quickorder/provider.tsx +192 -192
  521. package/src/pages-v2/quickorder/quick-order-header.tsx +13 -13
  522. package/src/pages-v2/quickorder/quick-order-row.tsx +106 -106
  523. package/src/pages-v2/quickorder/quick-order-table.tsx +55 -55
  524. package/src/pages-v2/quickorder/quick-order.tsx +521 -0
  525. package/src/providers/nav-provider/index.tsx +38 -38
  526. package/src/providers/nav-provider/utils/createLink.ts +11 -11
  527. package/src/providers/notifications/notification-context.tsx +54 -54
  528. package/src/providers/notifications/use-notification.ts +7 -7
  529. package/src/theme/build-mui-theme.ts +88 -88
  530. package/src/theme/components.ts +141 -141
  531. package/src/theme/emotion-cache.tsx +74 -74
  532. package/src/theme/theme-colors.ts +154 -154
  533. package/src/theme/theme-options-sample.ts +46 -46
  534. package/src/theme/theme-options.ts +141 -141
  535. package/src/theme/theme-provider.tsx +22 -22
  536. package/src/theme/typography.ts +8 -8
  537. package/src/theme/utils.ts +12 -12
  538. package/tsconfig.json +32 -30
  539. package/typedoc.js +10 -10
  540. package/.storybook/preview.ts +0 -14
  541. package/src/components/Blocks/BlockManager.tsx +0 -67
  542. package/src/components/Blocks/Components/BrandLogosScroller.tsx +0 -72
  543. package/src/components/Blocks/Components/CategoryCard.tsx +0 -47
  544. package/src/components/Blocks/Components/CategoryCarousel/index.tsx +0 -60
  545. package/src/components/Blocks/Components/FeaturePill.tsx +0 -99
  546. package/src/components/Blocks/Components/FeaturedCategories.tsx +0 -41
  547. package/src/components/Blocks/Components/FeaturedProducts.tsx +0 -41
  548. package/src/components/Blocks/Components/Footer.tsx +0 -77
  549. package/src/components/Blocks/Components/Hero.tsx +0 -73
  550. package/src/components/Blocks/Components/HeroCarousel/index.tsx +0 -42
  551. package/src/components/Blocks/Components/Image.tsx +0 -39
  552. package/src/components/Blocks/Components/MediaCard.tsx +0 -41
  553. package/src/components/Blocks/Components/ProductCarousel/index.tsx +0 -82
  554. package/src/components/Blocks/Components/ProductSectionFullWidth/index.tsx +0 -103
  555. package/src/components/Blocks/Components/RichText.tsx +0 -19
  556. package/src/components/Blocks/Components/Seo/index.tsx +0 -48
  557. package/src/components/Blocks/Components/Services/index.tsx +0 -21
  558. package/src/components/Blocks/Components/Services/service-card.tsx +0 -73
  559. package/src/components/Blocks/Components/shared/featured-product-card.tsx +0 -29
  560. package/src/components/Blocks/Components/shared/product-category-item.tsx +0 -49
  561. package/src/components/Blocks/Components/shared/product-grid.tsx +0 -48
  562. package/src/components/Blocks/Components/shared/top-categories-card.tsx +0 -66
  563. package/src/components/Blocks/Components/shared/top-rating-product-card.tsx +0 -66
  564. package/src/components/Blocks/Icons/Components/Category.tsx +0 -14
  565. package/src/components/Blocks/Icons/Components/DottedStar.tsx +0 -40
  566. package/src/components/Blocks/Icons/Components/FallbackIcon.tsx +0 -33
  567. package/src/components/Blocks/Icons/Components/GiftBox.tsx +0 -18
  568. package/src/components/Blocks/Icons/Components/Light.tsx +0 -13
  569. package/src/components/Blocks/Icons/Components/NewArrival.tsx +0 -18
  570. package/src/components/Blocks/Icons/Components/RankBadge.tsx +0 -39
  571. package/src/components/Blocks/Icons/index.ts +0 -32
  572. package/src/components/Blocks/index.tsx +0 -16
  573. package/src/components/Blocks/interfaces.ts +0 -240
  574. package/src/components/BoxShadowCard.tsx +0 -16
  575. package/src/components/Footer/data/index.ts +0 -32
  576. package/src/components/Footer/index.tsx +0 -88
  577. package/src/components/Footer/interfaces.ts +0 -37
  578. package/src/components/Footer/sections/FooterAppStore.tsx +0 -45
  579. package/src/components/Footer/sections/FooterContact.tsx +0 -36
  580. package/src/components/Footer/sections/FooterLinks.tsx +0 -30
  581. package/src/components/Footer/sections/FooterLogo.tsx +0 -26
  582. package/src/components/Footer/sections/FooterSocialLinks.tsx +0 -70
  583. package/src/components/Footer/styles/index.ts +0 -39
  584. package/src/components/GlobalLoading/index.tsx +0 -102
  585. package/src/components/ImageWithFallback.tsx +0 -51
  586. package/src/components/Loading/index.tsx +0 -36
  587. package/src/components/NavProvider/index.tsx +0 -59
  588. package/src/components/NavProvider/utils/createLink.ts +0 -15
  589. package/src/components/Notifications/README.md +0 -15
  590. package/src/components/Notifications/notification-context.tsx +0 -82
  591. package/src/components/Notifications/use-notification.ts +0 -12
  592. package/src/components/README.md +0 -4
  593. package/src/components/ReactQueryProvider/index.tsx +0 -12
  594. package/src/components/Shared/Image.tsx +0 -5
  595. package/src/components/T/index.tsx +0 -15
  596. package/src/components/_components/BazaarCard.tsx +0 -21
  597. package/src/components/_components/BazaarImage.tsx +0 -12
  598. package/src/components/_components/BazaarMenu.tsx +0 -47
  599. package/src/components/_components/BazaarSwitch.tsx +0 -37
  600. package/src/components/_components/BazaarTextField.tsx +0 -73
  601. package/src/components/_components/DropZone.tsx +0 -86
  602. package/src/components/_components/HoverBox.tsx +0 -22
  603. package/src/components/_components/LazyImage.tsx +0 -12
  604. package/src/components/_components/MiniCartClient.tsx +0 -65
  605. package/src/components/_components/SearchInput.tsx +0 -28
  606. package/src/components/_components/SnackbarProvider.tsx +0 -32
  607. package/src/components/_components/Typography.tsx +0 -227
  608. package/src/components/_components/WhiteButton.tsx +0 -20
  609. package/src/components/_components/accordion/accordion-header.tsx +0 -43
  610. package/src/components/_components/accordion/index.ts +0 -1
  611. package/src/components/_components/bazaar-types.ts +0 -84
  612. package/src/components/_components/carousel/carousel.tsx +0 -72
  613. package/src/components/_components/carousel/components/carousel-arrows.tsx +0 -60
  614. package/src/components/_components/carousel/components/carousel-dots.tsx +0 -21
  615. package/src/components/_components/carousel/index.ts +0 -3
  616. package/src/components/_components/carousel/styles/index.ts +0 -93
  617. package/src/components/_components/carousel-cards/carousel-card-1/carousel-card-1.tsx +0 -64
  618. package/src/components/_components/carousel-cards/carousel-card-1/index.ts +0 -1
  619. package/src/components/_components/carousel-cards/carousel-card-1/styles.ts +0 -34
  620. package/src/components/_components/carousel-cards/carousel-card-2/carousel-card-2.tsx +0 -78
  621. package/src/components/_components/carousel-cards/carousel-card-2/index.ts +0 -1
  622. package/src/components/_components/carousel-cards/carousel-card-2/styles.ts +0 -26
  623. package/src/components/_components/carousel-cards/carousel-card-3/carousel-card-3.tsx +0 -37
  624. package/src/components/_components/carousel-cards/carousel-card-3/index.ts +0 -1
  625. package/src/components/_components/carousel-cards/carousel-card-3/styles.ts +0 -28
  626. package/src/components/_components/carousel-cards/carousel-card-4/carousel-card-4.tsx +0 -81
  627. package/src/components/_components/carousel-cards/carousel-card-4/index.ts +0 -1
  628. package/src/components/_components/carousel-cards/carousel-card-4/styles.ts +0 -27
  629. package/src/components/_components/categories/category-list/category-list.tsx +0 -59
  630. package/src/components/_components/categories/category-list/index.ts +0 -1
  631. package/src/components/_components/categories/category-list/styles.ts +0 -29
  632. package/src/components/_components/categories/category-list/types.ts +0 -4
  633. package/src/components/_components/categories/category-list-item/category-menu-item.tsx +0 -37
  634. package/src/components/_components/categories/category-list-item/index.ts +0 -1
  635. package/src/components/_components/categories/category-list-item/styles.ts +0 -35
  636. package/src/components/_components/categories/category-menu.tsx +0 -51
  637. package/src/components/_components/categories/mega-menu/banner.tsx +0 -60
  638. package/src/components/_components/categories/mega-menu/column-list.tsx +0 -70
  639. package/src/components/_components/categories/mega-menu/mega-menu-1.tsx +0 -37
  640. package/src/components/_components/categories/mega-menu/mega-menu-2.tsx +0 -37
  641. package/src/components/_components/categories/mega-menu/styles.ts +0 -25
  642. package/src/components/_components/categories/types.ts +0 -16
  643. package/src/components/_components/category-cards/category-card-1/category-card-1.tsx +0 -21
  644. package/src/components/_components/category-cards/category-card-1/index.ts +0 -1
  645. package/src/components/_components/category-cards/category-card-1/styles.ts +0 -37
  646. package/src/components/_components/countdown/count-box.tsx +0 -19
  647. package/src/components/_components/countdown/count-down.tsx +0 -24
  648. package/src/components/_components/countdown/index.tsx +0 -2
  649. package/src/components/_components/countdown/useCountDown.ts +0 -41
  650. package/src/components/_components/data-table/index.ts +0 -2
  651. package/src/components/_components/data-table/table-header.tsx +0 -91
  652. package/src/components/_components/data-table/table-pagination.tsx +0 -36
  653. package/src/components/_components/flex-box/flex-between.tsx +0 -14
  654. package/src/components/_components/flex-box/flex-box.tsx +0 -9
  655. package/src/components/_components/flex-box/flex-row-center.tsx +0 -9
  656. package/src/components/_components/flex-box/index.ts +0 -5
  657. package/src/components/_components/footer/components/about-links.tsx +0 -23
  658. package/src/components/_components/footer/components/app-store.tsx +0 -38
  659. package/src/components/_components/footer/components/customer-care-links.tsx +0 -21
  660. package/src/components/_components/footer/components/logo.tsx +0 -23
  661. package/src/components/_components/footer/components/social-links.tsx +0 -43
  662. package/src/components/_components/footer/data/index.ts +0 -54
  663. package/src/components/_components/footer/footer-1.tsx +0 -62
  664. package/src/components/_components/footer/footer-2.tsx +0 -57
  665. package/src/components/_components/footer/footer-3.tsx +0 -53
  666. package/src/components/_components/footer/footer-4.tsx +0 -71
  667. package/src/components/_components/footer/index.ts +0 -4
  668. package/src/components/_components/footer/styles/index.ts +0 -42
  669. package/src/components/_components/header/components/categories-menu.tsx +0 -23
  670. package/src/components/_components/header/components/mobile-header.tsx +0 -75
  671. package/src/components/_components/header/components/user.tsx +0 -204
  672. package/src/components/_components/header/header.tsx +0 -63
  673. package/src/components/_components/header/hooks/use-header.ts +0 -13
  674. package/src/components/_components/header/index.ts +0 -1
  675. package/src/components/_components/header/sticky-header.tsx +0 -17
  676. package/src/components/_components/header/styles/index.ts +0 -24
  677. package/src/components/_components/icons/cart-bag.tsx +0 -13
  678. package/src/components/_components/icons/category-outline.tsx +0 -29
  679. package/src/components/_components/icons/category.tsx +0 -12
  680. package/src/components/_components/icons/home.tsx +0 -19
  681. package/src/components/_components/icons/search.tsx +0 -13
  682. package/src/components/_components/icons/shopping-bag-outlined.tsx +0 -13
  683. package/src/components/_components/icons/up-down.tsx +0 -21
  684. package/src/components/_components/icons/user.tsx +0 -13
  685. package/src/components/_components/icons/user2.tsx +0 -14
  686. package/src/components/_components/mini-cart/components/bottom-actions.tsx +0 -27
  687. package/src/components/_components/mini-cart/components/cart-item.tsx +0 -147
  688. package/src/components/_components/mini-cart/components/empty-view.tsx +0 -29
  689. package/src/components/_components/mini-cart/components/top-header.tsx +0 -37
  690. package/src/components/_components/mini-cart/index.ts +0 -1
  691. package/src/components/_components/mini-cart/mini-cart.tsx +0 -107
  692. package/src/components/_components/mobile-navigation/index.ts +0 -3
  693. package/src/components/_components/mobile-navigation/mobile-navigation-bar.tsx +0 -73
  694. package/src/components/_components/mobile-navigation/styles/index.ts +0 -63
  695. package/src/components/_components/nav-link/index.ts +0 -5
  696. package/src/components/_components/nav-link/nav-link-2.tsx +0 -32
  697. package/src/components/_components/nav-link/nav-link-3.tsx +0 -67
  698. package/src/components/_components/nav-link/nav-link.tsx +0 -53
  699. package/src/components/_components/navbar/categories.tsx +0 -27
  700. package/src/components/_components/navbar/category-based-menu/category-based-menu.tsx +0 -52
  701. package/src/components/_components/navbar/category-based-menu/components/categories.tsx +0 -44
  702. package/src/components/_components/navbar/category-based-menu/components/category-item.tsx +0 -31
  703. package/src/components/_components/navbar/category-based-menu/components/child-categories.tsx +0 -38
  704. package/src/components/_components/navbar/category-based-menu/index.ts +0 -1
  705. package/src/components/_components/navbar/category-based-menu/styles.ts +0 -81
  706. package/src/components/_components/navbar/category-based-menu/types.ts +0 -18
  707. package/src/components/_components/navbar/index.ts +0 -1
  708. package/src/components/_components/navbar/mega-menu/category-list.tsx +0 -29
  709. package/src/components/_components/navbar/mega-menu/index.ts +0 -1
  710. package/src/components/_components/navbar/mega-menu/mega-menu.tsx +0 -71
  711. package/src/components/_components/navbar/mega-menu/styles.ts +0 -43
  712. package/src/components/_components/navbar/mobile-menu/index.ts +0 -1
  713. package/src/components/_components/navbar/mobile-menu/mobile-menu.tsx +0 -70
  714. package/src/components/_components/navbar/mobile-menu/render-levels.tsx +0 -62
  715. package/src/components/_components/navbar/nav-list/index.ts +0 -1
  716. package/src/components/_components/navbar/nav-list/nav-item-child.tsx +0 -66
  717. package/src/components/_components/navbar/nav-list/nav-list.tsx +0 -119
  718. package/src/components/_components/navbar/navbar.tsx +0 -43
  719. package/src/components/_components/navbar/styles.ts +0 -90
  720. package/src/components/_components/navbar/utils/transform-nav.ts +0 -43
  721. package/src/components/_components/newsletter/index.ts +0 -1
  722. package/src/components/_components/newsletter/newsletter.tsx +0 -112
  723. package/src/components/_components/newsletter/social-icons.tsx +0 -35
  724. package/src/components/_components/newsletter/styles.ts +0 -65
  725. package/src/components/_components/page-sidenav/grocery-side-nav/components/link-item.tsx +0 -21
  726. package/src/components/_components/page-sidenav/grocery-side-nav/components/list-item.tsx +0 -27
  727. package/src/components/_components/page-sidenav/grocery-side-nav/components/nav-accordion.tsx +0 -36
  728. package/src/components/_components/page-sidenav/grocery-side-nav/components/render-child.tsx +0 -26
  729. package/src/components/_components/page-sidenav/grocery-side-nav/grocery-side-nav.tsx +0 -32
  730. package/src/components/_components/page-sidenav/grocery-side-nav/index.ts +0 -1
  731. package/src/components/_components/page-sidenav/grocery-side-nav/styles/index.ts +0 -11
  732. package/src/components/_components/page-sidenav/health-beauty-side-nav/components/list-item.tsx +0 -27
  733. package/src/components/_components/page-sidenav/health-beauty-side-nav/components/nav-accordion.tsx +0 -44
  734. package/src/components/_components/page-sidenav/health-beauty-side-nav/components/render-child.tsx +0 -20
  735. package/src/components/_components/page-sidenav/health-beauty-side-nav/health-beauty-side-nav.tsx +0 -43
  736. package/src/components/_components/page-sidenav/health-beauty-side-nav/index.ts +0 -1
  737. package/src/components/_components/page-sidenav/health-beauty-side-nav/styles/index.ts +0 -27
  738. package/src/components/_components/page-sidenav/side-navbar/components/list-item.tsx +0 -25
  739. package/src/components/_components/page-sidenav/side-navbar/components/nav-accordion.tsx +0 -46
  740. package/src/components/_components/page-sidenav/side-navbar/components/render-child.tsx +0 -20
  741. package/src/components/_components/page-sidenav/side-navbar/index.ts +0 -1
  742. package/src/components/_components/page-sidenav/side-navbar/side-nav-bar.tsx +0 -77
  743. package/src/components/_components/page-sidenav/side-navbar/styles/index.ts +0 -73
  744. package/src/components/_components/page-sidenav/side-navbar-2/components/button-content.tsx +0 -32
  745. package/src/components/_components/page-sidenav/side-navbar-2/components/sidebar-accordion.tsx +0 -66
  746. package/src/components/_components/page-sidenav/side-navbar-2/index.ts +0 -1
  747. package/src/components/_components/page-sidenav/side-navbar-2/side-navbar-2.tsx +0 -63
  748. package/src/components/_components/page-sidenav/side-navbar-2/styles/index.ts +0 -68
  749. package/src/components/_components/product-cards/discount-chip.tsx +0 -43
  750. package/src/components/_components/product-cards/product-card-1/components/hover-actions.tsx +0 -37
  751. package/src/components/_components/product-cards/product-card-1/components/quantity-buttons.tsx +0 -65
  752. package/src/components/_components/product-cards/product-card-1/index.ts +0 -1
  753. package/src/components/_components/product-cards/product-card-1/product-card-1-wrapper.tsx +0 -304
  754. package/src/components/_components/product-cards/product-card-1/product-card.tsx +0 -107
  755. package/src/components/_components/product-cards/product-card-1/styles/index.ts +0 -46
  756. package/src/components/_components/product-cards/product-card-10/index.ts +0 -1
  757. package/src/components/_components/product-cards/product-card-10/product-card.tsx +0 -128
  758. package/src/components/_components/product-cards/product-card-10/styles/index.ts +0 -38
  759. package/src/components/_components/product-cards/product-card-11/index.ts +0 -1
  760. package/src/components/_components/product-cards/product-card-11/product-card.tsx +0 -66
  761. package/src/components/_components/product-cards/product-card-11/styles/index.ts +0 -16
  762. package/src/components/_components/product-cards/product-card-12/index.ts +0 -1
  763. package/src/components/_components/product-cards/product-card-12/product-card.tsx +0 -42
  764. package/src/components/_components/product-cards/product-card-12/styles/index.ts +0 -16
  765. package/src/components/_components/product-cards/product-card-13/index.ts +0 -1
  766. package/src/components/_components/product-cards/product-card-13/product-card.tsx +0 -48
  767. package/src/components/_components/product-cards/product-card-13/styles/index.ts +0 -25
  768. package/src/components/_components/product-cards/product-card-14/index.ts +0 -1
  769. package/src/components/_components/product-cards/product-card-14/product-card.tsx +0 -125
  770. package/src/components/_components/product-cards/product-card-14/styles/index.ts +0 -40
  771. package/src/components/_components/product-cards/product-card-15/index.ts +0 -1
  772. package/src/components/_components/product-cards/product-card-15/product-card.tsx +0 -121
  773. package/src/components/_components/product-cards/product-card-15/styles/index.ts +0 -57
  774. package/src/components/_components/product-cards/product-card-16/components/quantity-buttons.tsx +0 -56
  775. package/src/components/_components/product-cards/product-card-16/index.ts +0 -1
  776. package/src/components/_components/product-cards/product-card-16/product-card.tsx +0 -117
  777. package/src/components/_components/product-cards/product-card-16/styles/index.ts +0 -18
  778. package/src/components/_components/product-cards/product-card-2/components/favorite-button.tsx +0 -29
  779. package/src/components/_components/product-cards/product-card-2/components/product-price.tsx +0 -26
  780. package/src/components/_components/product-cards/product-card-2/index.ts +0 -1
  781. package/src/components/_components/product-cards/product-card-2/product-card.tsx +0 -70
  782. package/src/components/_components/product-cards/product-card-3/components/hover-actions.tsx +0 -83
  783. package/src/components/_components/product-cards/product-card-3/index.ts +0 -1
  784. package/src/components/_components/product-cards/product-card-3/product-card.tsx +0 -110
  785. package/src/components/_components/product-cards/product-card-3/styles/index.ts +0 -89
  786. package/src/components/_components/product-cards/product-card-4/components/hover-actions.tsx +0 -50
  787. package/src/components/_components/product-cards/product-card-4/index.ts +0 -1
  788. package/src/components/_components/product-cards/product-card-4/product-card.tsx +0 -128
  789. package/src/components/_components/product-cards/product-card-4/styles/index.ts +0 -66
  790. package/src/components/_components/product-cards/product-card-5/components/button-actions.tsx +0 -49
  791. package/src/components/_components/product-cards/product-card-5/components/hover-actions.tsx +0 -50
  792. package/src/components/_components/product-cards/product-card-5/index.ts +0 -1
  793. package/src/components/_components/product-cards/product-card-5/product-card.tsx +0 -137
  794. package/src/components/_components/product-cards/product-card-5/styles/index.ts +0 -94
  795. package/src/components/_components/product-cards/product-card-6/components/hover-actions.tsx +0 -50
  796. package/src/components/_components/product-cards/product-card-6/index.ts +0 -1
  797. package/src/components/_components/product-cards/product-card-6/product-card.tsx +0 -121
  798. package/src/components/_components/product-cards/product-card-6/styles/index.ts +0 -63
  799. package/src/components/_components/product-cards/product-card-7/components/product-status.tsx +0 -18
  800. package/src/components/_components/product-cards/product-card-7/components/quantity-buttons.tsx +0 -47
  801. package/src/components/_components/product-cards/product-card-7/index.ts +0 -1
  802. package/src/components/_components/product-cards/product-card-7/product-card.tsx +0 -139
  803. package/src/components/_components/product-cards/product-card-7/styles/index.ts +0 -98
  804. package/src/components/_components/product-cards/product-card-8/index.ts +0 -1
  805. package/src/components/_components/product-cards/product-card-8/product-card.tsx +0 -157
  806. package/src/components/_components/product-cards/product-card-8/styles/index.ts +0 -61
  807. package/src/components/_components/product-cards/product-card-9/components/add-to-cart.tsx +0 -63
  808. package/src/components/_components/product-cards/product-card-9/components/favorite-button.tsx +0 -27
  809. package/src/components/_components/product-cards/product-card-9/components/tags.tsx +0 -33
  810. package/src/components/_components/product-cards/product-card-9/index.ts +0 -1
  811. package/src/components/_components/product-cards/product-card-9/product-card.tsx +0 -169
  812. package/src/components/_components/product-cards/product-card-wishlist/components/hover-actions.tsx +0 -37
  813. package/src/components/_components/product-cards/product-card-wishlist/index.ts +0 -1
  814. package/src/components/_components/product-cards/product-card-wishlist/product-card.tsx +0 -118
  815. package/src/components/_components/product-cards/product-card-wishlist/styles/index.ts +0 -51
  816. package/src/components/_components/product-cards/product-price.tsx +0 -26
  817. package/src/components/_components/product-cards/product-rating.tsx +0 -28
  818. package/src/components/_components/product-cards/product-title.tsx +0 -24
  819. package/src/components/_components/product-cards/use-product.ts +0 -35
  820. package/src/components/_components/product-dimensions/product-dimensions.tsx +0 -114
  821. package/src/components/_components/product-quantity-buttons/product-quantity-buttons.tsx +0 -88
  822. package/src/components/_components/products-view/product-view-dialog.tsx +0 -218
  823. package/src/components/_components/products-view/products-grid-view.tsx +0 -53
  824. package/src/components/_components/products-view/products-list-view.tsx +0 -49
  825. package/src/components/_components/progress/index.ts +0 -1
  826. package/src/components/_components/progress/progress.tsx +0 -77
  827. package/src/components/_components/scrollbar/index.ts +0 -1
  828. package/src/components/_components/scrollbar/scrollbar.tsx +0 -27
  829. package/src/components/_components/scrollbar/styles.ts +0 -15
  830. package/src/components/_components/search-box/components/category-dropdown.tsx +0 -61
  831. package/src/components/_components/search-box/components/search-result.tsx +0 -83
  832. package/src/components/_components/search-box/hooks/use-search.ts +0 -63
  833. package/src/components/_components/search-box/index.ts +0 -2
  834. package/src/components/_components/search-box/search-input-category.tsx +0 -207
  835. package/src/components/_components/search-box/search-input.tsx +0 -64
  836. package/src/components/_components/search-box/styles/index.ts +0 -47
  837. package/src/components/_components/section-header/index.ts +0 -2
  838. package/src/components/_components/section-header/section-creator.tsx +0 -29
  839. package/src/components/_components/section-header/section-header.tsx +0 -44
  840. package/src/components/_components/service-cards/icon-component.tsx +0 -18
  841. package/src/components/_components/service-cards/service-card-1/index.ts +0 -1
  842. package/src/components/_components/service-cards/service-card-1/service-card-1.tsx +0 -42
  843. package/src/components/_components/service-cards/service-card-2/index.ts +0 -1
  844. package/src/components/_components/service-cards/service-card-2/service-card-2.tsx +0 -37
  845. package/src/components/_components/service-cards/service-card-3/index.ts +0 -1
  846. package/src/components/_components/service-cards/service-card-3/service-card-3.tsx +0 -28
  847. package/src/components/_components/service-cards/service-card-3/styles.ts +0 -23
  848. package/src/components/_components/settings/index.ts +0 -1
  849. package/src/components/_components/settings/setting.tsx +0 -141
  850. package/src/components/_components/settings/styles.ts +0 -57
  851. package/src/components/_components/shop-card/index.ts +0 -1
  852. package/src/components/_components/shop-card/shop-card.tsx +0 -152
  853. package/src/components/_components/shop-card/styles.ts +0 -33
  854. package/src/components/_components/side-nav/index.ts +0 -1
  855. package/src/components/_components/side-nav/side-nav.tsx +0 -49
  856. package/src/components/_components/site-logo.tsx +0 -17
  857. package/src/components/_components/sticky/Sticky.tsx +0 -62
  858. package/src/components/_components/sticky/index.ts +0 -1
  859. package/src/components/_components/sticky/styles.ts +0 -38
  860. package/src/components/_components/sticky-wrapper/index.ts +0 -1
  861. package/src/components/_components/sticky-wrapper/sticky-wrapper.tsx +0 -21
  862. package/src/components/_components/sticky-wrapper/styles.ts +0 -25
  863. package/src/components/_components/stories/story-content/index.ts +0 -1
  864. package/src/components/_components/stories/story-content/story-content.tsx +0 -28
  865. package/src/components/_components/stories/story-content/styles.ts +0 -22
  866. package/src/components/_components/stories/story-item/index.ts +0 -1
  867. package/src/components/_components/stories/story-item/story-item.tsx +0 -24
  868. package/src/components/_components/stories/story-item/styles.ts +0 -11
  869. package/src/components/_components/stories/story-viewer/index.ts +0 -1
  870. package/src/components/_components/stories/story-viewer/story-viewer.tsx +0 -44
  871. package/src/components/_components/stories/story-viewer/styles.ts +0 -15
  872. package/src/components/_components/subscribe-input/index.ts +0 -1
  873. package/src/components/_components/subscribe-input/styles.ts +0 -14
  874. package/src/components/_components/subscribe-input/subscribe-input.tsx +0 -43
  875. package/src/components/_components/topbar/index.ts +0 -1
  876. package/src/components/_components/topbar/styles.ts +0 -55
  877. package/src/components/_components/topbar/top-bar.tsx +0 -115
  878. package/src/components/_components/utils/constants.ts +0 -8
  879. package/src/components/_components/wishlist/add-to-wishlist-dialog.tsx +0 -161
  880. package/src/components/_components/wishlist/components/create-new-list.tsx +0 -167
  881. package/src/components/_components/wishlist/components/create-wishlist-button.tsx +0 -40
  882. package/src/components/_components/wishlist/components/dashboard-header.tsx +0 -123
  883. package/src/components/_components/wishlist/components/navigation.tsx +0 -87
  884. package/src/components/_components/wishlist/components/no-records.tsx +0 -20
  885. package/src/components/_components/wishlist/components/wishlist-modal-item.tsx +0 -66
  886. package/src/components/_components/wishlist/remove-from-wishlist-dialog.tsx +0 -174
  887. package/src/components/_components/wishlist/styles.ts +0 -61
  888. package/src/components/_components/wishlist-modal/TODO.md +0 -10
  889. package/src/components/_components/wishlist-modal/add-to-wishlist-button.tsx +0 -68
  890. package/src/components/_components/wishlist-modal/add-to-wishlist-dialog.tsx +0 -161
  891. package/src/components/_components/wishlist-modal/remove-from-wishlist-dialog.tsx +0 -174
  892. package/src/components/_components/wishlist-modal/wishlist-modal-item.tsx +0 -65
  893. package/src/components/countries-input.tsx +0 -72
  894. package/src/components-v2/accordion/accordion-header.stories.tsx +0 -28
  895. package/src/pages/README.md +0 -4
  896. package/src/pages/account/addresses/address-form.tsx +0 -289
  897. package/src/pages/account/addresses/address-item.tsx +0 -104
  898. package/src/pages/account/dashboard-header.tsx +0 -123
  899. package/src/pages/account/navigation.tsx +0 -87
  900. package/src/pages/account/no-records.tsx +0 -20
  901. package/src/pages/account/orders/icons/delivery.tsx +0 -14
  902. package/src/pages/account/orders/icons/package-box.tsx +0 -13
  903. package/src/pages/account/orders/icons/truck-filled.tsx +0 -14
  904. package/src/pages/account/orders/order-progress.tsx +0 -114
  905. package/src/pages/account/orders/order-row.tsx +0 -64
  906. package/src/pages/account/orders/order-summary.tsx +0 -87
  907. package/src/pages/account/orders/ordered-products.tsx +0 -121
  908. package/src/pages/account/profile/profile-button.test.tsx +0 -59
  909. package/src/pages/account/profile/profile-button.tsx +0 -50
  910. package/src/pages/account/profile/user-info.tsx +0 -62
  911. package/src/pages/account/styles.ts +0 -32
  912. package/src/pages/account/table-row.tsx +0 -19
  913. package/src/pages/account/wishlist/create-new-list.tsx +0 -167
  914. package/src/pages/account/wishlist/create-wishlist-button.tsx +0 -40
  915. package/src/pages/account/wishlist/wishlist-item.tsx +0 -82
  916. package/src/pages/blog/pagination.tsx +0 -38
  917. package/src/pages/cart/cart-item.tsx +0 -312
  918. package/src/pages/cart/checkout-form.tsx +0 -122
  919. package/src/pages/cart/coupon-entry.tsx +0 -90
  920. package/src/pages/cart/estimate-shipping.tsx +0 -183
  921. package/src/pages/cart/wrapper.tsx +0 -30
  922. package/src/pages/checkout/checkout-alt-form/address-card.tsx +0 -76
  923. package/src/pages/checkout/checkout-alt-form/checkout-form.tsx +0 -133
  924. package/src/pages/checkout/checkout-alt-form/checkout-step.tsx +0 -120
  925. package/src/pages/checkout/checkout-alt-form/customer-information.tsx +0 -94
  926. package/src/pages/checkout/checkout-alt-form/delivery-address.tsx +0 -174
  927. package/src/pages/checkout/checkout-alt-form/delivery-date.tsx +0 -114
  928. package/src/pages/checkout/checkout-alt-form/delivery-options.tsx +0 -190
  929. package/src/pages/checkout/checkout-alt-form/edit-address-form.tsx +0 -130
  930. package/src/pages/checkout/checkout-alt-form/heading.tsx +0 -50
  931. package/src/pages/checkout/checkout-alt-form/index.ts +0 -1
  932. package/src/pages/checkout/checkout-alt-form/new-address-form.tsx +0 -299
  933. package/src/pages/checkout/checkout-alt-form/node.tsx +0 -9
  934. package/src/pages/checkout/checkout-alt-form/payment-details.tsx +0 -347
  935. package/src/pages/checkout/checkout-alt-form/safe-card-preview-data.tsx +0 -36
  936. package/src/pages/checkout/checkout-alt-form/types.ts +0 -20
  937. package/src/pages/checkout/checkout-alt-summary/cart-item.tsx +0 -42
  938. package/src/pages/checkout/checkout-alt-summary/checkout-alt-summary.tsx +0 -42
  939. package/src/pages/checkout/checkout-alt-summary/index.ts +0 -1
  940. package/src/pages/checkout/checkout-alt-summary/list-item.tsx +0 -31
  941. package/src/pages/confirmation/address.tsx +0 -25
  942. package/src/pages/confirmation/confirmation-summary.tsx +0 -55
  943. package/src/pages/confirmation/ordered-products.tsx +0 -115
  944. package/src/pages/product-details/available-shops.tsx +0 -51
  945. package/src/pages/product-details/bopis/find-in-store-button.tsx +0 -63
  946. package/src/pages/product-details/bopis/find-in-store-modal.tsx +0 -257
  947. package/src/pages/product-details/bopis/pickup-option-select.tsx +0 -127
  948. package/src/pages/product-details/bopis/search-header.tsx +0 -69
  949. package/src/pages/product-details/checkbox-label.tsx +0 -20
  950. package/src/pages/product-details/currency.ts +0 -64
  951. package/src/pages/product-details/frequently-bought.tsx +0 -97
  952. package/src/pages/product-details/frequently-product-card.tsx +0 -63
  953. package/src/pages/product-details/product-comment.tsx +0 -49
  954. package/src/pages/product-details/product-description.tsx +0 -22
  955. package/src/pages/product-details/product-filter-card.tsx +0 -265
  956. package/src/pages/product-details/product-intro/product-intro-images.tsx +0 -90
  957. package/src/pages/product-details/product-intro/product-intro.tsx +0 -258
  958. package/src/pages/product-details/product-review.tsx +0 -134
  959. package/src/pages/product-details/product-tabs.tsx +0 -51
  960. package/src/pages/product-details/related-products.tsx +0 -42
  961. package/src/pages/product-details/types.ts +0 -11
  962. package/src/pages/product-list/breadcrumbs.tsx +0 -39
  963. package/src/pages/product-list/checkbox-label.tsx +0 -20
  964. package/src/pages/product-list/facet-group.tsx +0 -125
  965. package/src/pages/product-list/facet.tsx +0 -36
  966. package/src/pages/product-list/list-filter.tsx +0 -43
  967. package/src/pages/product-list/pagination.tsx +0 -80
  968. package/src/pages/product-list/product-list-context.tsx +0 -302
  969. package/src/pages/product-list/product-list-state.ts +0 -187
  970. package/src/pages/product-list/product-rating.tsx +0 -16
  971. package/src/pages/product-list/quick-view-dialog-content.tsx +0 -216
  972. package/src/pages/product-list/quick-view-dialog.tsx +0 -54
  973. package/src/pages/product-list/range-filter.tsx +0 -125
  974. package/src/pages/product-list/scrollbar.tsx +0 -38
  975. package/src/pages/product-list/search-bar.tsx +0 -162
  976. package/src/pages/product-list/selected-facets.tsx +0 -80
  977. package/src/pages/product-list/side-nav.tsx +0 -49
  978. package/src/pages/product-list/swatch.tsx +0 -80
  979. package/src/pages/product-list/types.ts +0 -18
  980. package/src/pages/product-list/use-product-list.ts +0 -12
  981. package/src/pages/product-list/useCategoryFilter.tsx +0 -26
  982. package/src/pages/product-list/utils/facet-helpers.ts +0 -5
  983. package/src/pages/product-list/utils/generate-breadcrumbs.ts +0 -30
  984. package/src/pages/product-list/utils/getCategoryFilterFromSlug.ts +0 -153
  985. package/src/pages/product-list/utils/product-list-helper.ts +0 -111
  986. package/src/pages/product-list/utils/product-list-types.ts +0 -41
  987. package/src/pages/product-list/utils/search-for-category.ts +0 -76
  988. package/src/pages/product-list/utils/sort-options.ts +0 -44
  989. package/src/pages/product-list/utils/use-previous-refiners.ts +0 -14
  990. package/src/pages/quickorder/order-upload.tsx +0 -150
  991. package/src/pages/quickorder/quick-order-form.tsx +0 -346
  992. package/src/pages/quickorder/quick-order-row.tsx +0 -144
  993. package/src/pages-v2/quickorder/index.tsx +0 -31
  994. package/src/pages-v2/quickorder/quick-order-actions.tsx +0 -30
  995. package/src/pages-v2/quickorder/quick-order-upload.tsx +0 -20
  996. package/src/stories/Button.stories.ts +0 -54
  997. package/src/stories/Button.tsx +0 -35
  998. package/src/stories/Configure.mdx +0 -364
  999. package/src/stories/Header.stories.ts +0 -34
  1000. package/src/stories/Header.tsx +0 -54
  1001. package/src/stories/Page.stories.ts +0 -33
  1002. package/src/stories/Page.tsx +0 -73
  1003. package/src/stories/assets/accessibility.png +0 -0
  1004. package/src/stories/assets/accessibility.svg +0 -1
  1005. package/src/stories/assets/addon-library.png +0 -0
  1006. package/src/stories/assets/assets.png +0 -0
  1007. package/src/stories/assets/avif-test-image.avif +0 -0
  1008. package/src/stories/assets/context.png +0 -0
  1009. package/src/stories/assets/discord.svg +0 -1
  1010. package/src/stories/assets/docs.png +0 -0
  1011. package/src/stories/assets/figma-plugin.png +0 -0
  1012. package/src/stories/assets/github.svg +0 -1
  1013. package/src/stories/assets/share.png +0 -0
  1014. package/src/stories/assets/styling.png +0 -0
  1015. package/src/stories/assets/testing.png +0 -0
  1016. package/src/stories/assets/theming.png +0 -0
  1017. package/src/stories/assets/tutorials.svg +0 -1
  1018. package/src/stories/assets/youtube.svg +0 -1
  1019. package/src/stories/button.css +0 -30
  1020. package/src/stories/header.css +0 -32
  1021. package/src/stories/page.css +0 -68
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
 
3
3
  import React, {
4
- createContext,
5
- ReactNode,
6
- useContext,
7
- useMemo,
8
- useState,
4
+ createContext,
5
+ ReactNode,
6
+ useContext,
7
+ useMemo,
8
+ useState,
9
9
  } from "react";
10
10
  import Link from "next/link";
11
11
  import Box from "@mui/material/Box";
@@ -30,423 +30,423 @@ import DiscountChip from "@evenicanpm/storefront-core/src/components-v2/product-
30
30
  import FavoriteButton from "@evenicanpm/storefront-core/src/components-v2/product-cards/favorite-button";
31
31
  // STYLED COMPONENTS
32
32
  import {
33
- ImageWrapper,
34
- ContentWrapper,
35
- StyledBazaarCard,
36
- HoverIconWrapper,
33
+ ImageWrapper,
34
+ ContentWrapper,
35
+ StyledBazaarCard,
36
+ HoverIconWrapper,
37
37
  } from "@evenicanpm/storefront-core/src/components-v2/product-cards/product-card/styles/index";
38
38
  // LIBRARY AND HOOKS
39
- import buildDetailUrl from "@/lib/build-detail-url";
40
- import useFavorite from "@/hooks/use-favorite";
39
+ import buildDetailUrl from "@evenicanpm/storefront-core/src/lib/build-detail-url";
40
+ import useFavorite from "@evenicanpm/storefront-core/src/hooks/use-favorite";
41
41
  // API AND SCHEMAS
42
- import useRemoveFromWishlist from "@/api-manager/services/user/mutations/remove-from-wishlist";
43
- import useUpdateWishlist from "@/api-manager/services/user/mutations/update-wishlist";
44
- import useAddToCart from "@/api-manager/services/cart/mutations/add-to-cart";
45
- import { WISHLIST_DETAILS_QUERY_KEY } from "@/api-manager/services/user/queries/get-wishlist-details";
42
+ import useRemoveFromWishlist from "@evenicanpm/storefront-core/src/api-manager/services/user/mutations/remove-from-wishlist";
43
+ import useUpdateWishlist from "@evenicanpm/storefront-core/src/api-manager/services/user/mutations/update-wishlist";
44
+ import useAddToCart from "@evenicanpm/storefront-core/src/api-manager/services/cart/mutations/add-to-cart";
45
+ import { WISHLIST_DETAILS_QUERY_KEY } from "@evenicanpm/storefront-core/src/api-manager/services/user/queries/get-wishlist-details";
46
46
  import {
47
- ExtendedWishlist,
48
- ExtendedProductListLine,
49
- WishlistLinesInput,
50
- } from "@/api-manager/schemas/user.schema";
51
- import { Cart } from "@/api-manager/schemas/cart.schema";
47
+ ExtendedWishlist,
48
+ ExtendedProductListLine,
49
+ WishlistLinesInput,
50
+ } from "@evenicanpm/storefront-core/src/api-manager/schemas/user.schema";
51
+ import { Cart } from "@evenicanpm/storefront-core/src/api-manager/schemas/cart.schema";
52
52
 
53
53
  function findChild(
54
- children: ReactNode,
55
- component: typeof WishlistControls,
54
+ children: ReactNode,
55
+ component: typeof WishlistControls,
56
56
  ): boolean {
57
- let found = false;
58
-
59
- React.Children.forEach(children, (child) => {
60
- if (!React.isValidElement(child)) return;
61
- if (child.type === component) {
62
- found = true;
63
- } else if (child.props?.children) {
64
- found ||= findChild(child.props.children, component);
65
- }
66
- });
67
-
68
- return found;
57
+ let found = false;
58
+
59
+ React.Children.forEach(children, (child) => {
60
+ if (!React.isValidElement(child)) return;
61
+ if (child.type === component) {
62
+ found = true;
63
+ } else if (child.props?.children) {
64
+ found ||= findChild(child.props.children, component);
65
+ }
66
+ });
67
+
68
+ return found;
69
69
  }
70
70
  type InternalCtx = {
71
- handleToggleFavorite: () => void;
72
- openProductModal: boolean;
73
- handleToggleProductModal: () => void;
74
- quantity: number;
75
- handleIncrementQuantity: () => void;
76
- handleDecrementQuantity: () => void;
77
- isLineUpdating: boolean;
78
- handleAddItemToCart: () => void;
79
- handleRemoveFromWishlist: () => void;
71
+ handleToggleFavorite: () => void;
72
+ openProductModal: boolean;
73
+ handleToggleProductModal: () => void;
74
+ quantity: number;
75
+ handleIncrementQuantity: () => void;
76
+ handleDecrementQuantity: () => void;
77
+ isLineUpdating: boolean;
78
+ handleAddItemToCart: () => void;
79
+ handleRemoveFromWishlist: () => void;
80
80
  };
81
81
  type Product = {
82
- title: string;
83
- slug: string;
84
- price: number;
85
- size?: string;
86
- imgUrl: string;
87
- rating?: number;
88
- discount?: number;
89
- id: string | number;
90
- hoverEffect?: boolean;
82
+ title: string;
83
+ slug: string;
84
+ price: number;
85
+ size?: string;
86
+ imgUrl: string;
87
+ rating?: number;
88
+ discount?: number;
89
+ id: string | number;
90
+ hoverEffect?: boolean;
91
91
  };
92
92
 
93
93
  const ProductCardContext = createContext<{ product: Product } | null>(null);
94
94
 
95
95
  type ProductCardProps = {
96
- product: Product;
97
- children: ReactNode;
98
- wishlist?: ExtendedWishlist;
99
- cart?: Cart;
96
+ product: Product;
97
+ children: ReactNode;
98
+ wishlist?: ExtendedWishlist;
99
+ cart?: Cart;
100
100
  };
101
101
 
102
102
  const ProductCardInternalContext = createContext<InternalCtx | null>(null);
103
103
 
104
104
  const ProductCard = ({
105
- product,
106
- children,
107
- wishlist,
108
- cart,
105
+ product,
106
+ children,
107
+ wishlist,
108
+ cart,
109
109
  }: ProductCardProps) => {
110
- const t = useTranslations("Account.Wishlists");
111
- const { setNotification } = useNotification();
112
-
113
- const { mutateAsync: removeFromWishlist } = useRemoveFromWishlist();
114
- const { mutateAsync: updateWishlist } = useUpdateWishlist();
115
- const { mutateAsync: addToCart } = useAddToCart();
116
-
117
- const foundWishlistProduct = wishlist?.ProductListLines?.find(
118
- (item: ExtendedProductListLine) => item.ProductId === product.id,
119
- );
120
-
121
- const [openProductModal, setOpenProductModal] = useState(false);
122
- const [openAddToWishlistDialog, setOpenAddToWishlistDialog] = useState(false);
123
- const [quantity, setQuantity] = useState(foundWishlistProduct?.Quantity ?? 0);
124
- const [isLineUpdatingLocal, setIsLineUpdatingLocal] = useState(false);
125
-
126
- // detect if WishlistControls are being rendered
127
- const containsWishlistControls = useMemo(
128
- () => findChild(children, WishlistControls),
129
- [children],
130
- );
131
-
132
- const handleRemoveFromWishlist = async () => {
133
- try {
134
- const extendedWishlistLine = wishlist?.ProductListLines?.find(
135
- (item: ExtendedProductListLine) => item.ProductId === product.id,
136
- );
137
- if (extendedWishlistLine && wishlist) {
138
- const { ...wishlistLine } = extendedWishlistLine;
139
- delete wishlistLine.Product;
140
-
141
- const wishlistLinesInput: WishlistLinesInput = {
142
- Id: wishlist.Id,
143
- ProductListLines: [wishlistLine],
144
- };
145
- await removeFromWishlist(wishlistLinesInput);
146
- setNotification({
147
- message: t("wishlistLineRemoveSuccess"),
148
- severity: "success",
149
- });
150
- }
151
- } catch {
152
- setNotification({
153
- message: t("wishlistLineRemoveFailed"),
154
- severity: "error",
155
- });
156
- }
157
- };
158
-
159
- const handleToggleFavorite = () => {
160
- setOpenAddToWishlistDialog(true);
161
- };
162
-
163
- const handleToggleProductModal = () => {
164
- setOpenProductModal((prev) => !prev);
165
- };
166
-
167
- const handleAddItemToCart = async () => {
168
- if (!cart) return;
169
- try {
170
- await addToCart({
171
- cartId: cart.Id,
172
- version: cart.Version,
173
- cartLine: [{ ProductId: Number(product.id), Quantity: quantity }],
174
- });
175
- setNotification({
176
- message: "Successfully added item to cart",
177
- severity: "success",
178
- });
179
- } catch {
180
- setNotification({
181
- message: "Failed to add item to cart",
182
- severity: "error",
183
- });
184
- }
185
- };
186
-
187
- const isWishlistFetching =
188
- useIsFetching({ queryKey: [WISHLIST_DETAILS_QUERY_KEY] }) > 0;
189
- const isLineUpdating = isLineUpdatingLocal || isWishlistFetching;
190
-
191
- const handleIncrementQuantity = async () => {
192
- if (isLineUpdating) return;
193
- setIsLineUpdatingLocal(true);
194
-
195
- try {
196
- if (containsWishlistControls && wishlist) {
197
- const updatedLines = (wishlist?.ProductListLines ?? []).map((line) => {
198
- const updated = { ...line, Product: undefined };
199
- if (line.ProductId === Number(product.id)) {
200
- updated.Quantity = quantity + 1;
201
- }
202
- return updated;
203
- });
204
- if (!updatedLines) return;
205
- await updateWishlist({
206
- Id: wishlist?.Id,
207
- ProductListLines: updatedLines,
208
- });
209
- }
210
-
211
- setQuantity((q) => q + 1);
212
- } catch (err) {
213
- console.error("Increment failed", err);
214
- } finally {
215
- setIsLineUpdatingLocal(false);
216
- }
217
- };
218
-
219
- const handleDecrementQuantity = async () => {
220
- if (isLineUpdating || quantity <= 0) return;
221
- setIsLineUpdatingLocal(true);
222
-
223
- try {
224
- if (containsWishlistControls && wishlist) {
225
- const updatedLines = (wishlist?.ProductListLines ?? []).map((line) => {
226
- const updated = { ...line, Product: undefined };
227
- if (line.ProductId === Number(product.id)) {
228
- updated.Quantity = quantity - 1;
229
- }
230
- return updated;
231
- });
232
- if (!updatedLines) return;
233
- await updateWishlist({
234
- Id: wishlist?.Id,
235
- ProductListLines: updatedLines,
236
- });
237
- }
238
-
239
- setQuantity((q) => q - 1);
240
- } catch (err) {
241
- console.error("Decrement failed", err);
242
- } finally {
243
- setIsLineUpdatingLocal(false);
244
- }
245
- };
246
-
247
- const internalContextValue = {
248
- handleToggleFavorite,
249
- openProductModal,
250
- handleToggleProductModal,
251
- quantity,
252
- handleIncrementQuantity,
253
- handleDecrementQuantity,
254
- isLineUpdating,
255
- handleAddItemToCart,
256
- handleRemoveFromWishlist,
257
- };
258
-
259
- return (
260
- <ProductCardContext.Provider value={{ product }}>
261
- <ProductCardInternalContext.Provider value={internalContextValue}>
262
- <StyledBazaarCard hoverEffect={product.hoverEffect}>
263
- {children}
264
- </StyledBazaarCard>
265
-
266
- {openAddToWishlistDialog && (
267
- <AddToWishlistDialog
268
- open={openAddToWishlistDialog}
269
- handleClose={() => setOpenAddToWishlistDialog(false)}
270
- productId={Number(product.id)}
271
- />
272
- )}
273
- {openProductModal && (
274
- <ProductViewDialog
275
- openDialog={openProductModal}
276
- handleCloseDialog={handleToggleProductModal}
277
- productId={Number(product.id)}
278
- />
279
- )}
280
- </ProductCardInternalContext.Provider>
281
- </ProductCardContext.Provider>
282
- );
110
+ const t = useTranslations("Account.Wishlists");
111
+ const { setNotification } = useNotification();
112
+
113
+ const { mutateAsync: removeFromWishlist } = useRemoveFromWishlist();
114
+ const { mutateAsync: updateWishlist } = useUpdateWishlist();
115
+ const { mutateAsync: addToCart } = useAddToCart();
116
+
117
+ const foundWishlistProduct = wishlist?.ProductListLines?.find(
118
+ (item: ExtendedProductListLine) => item.ProductId === product.id,
119
+ );
120
+
121
+ const [openProductModal, setOpenProductModal] = useState(false);
122
+ const [openAddToWishlistDialog, setOpenAddToWishlistDialog] = useState(false);
123
+ const [quantity, setQuantity] = useState(foundWishlistProduct?.Quantity ?? 0);
124
+ const [isLineUpdatingLocal, setIsLineUpdatingLocal] = useState(false);
125
+
126
+ // detect if WishlistControls are being rendered
127
+ const containsWishlistControls = useMemo(
128
+ () => findChild(children, WishlistControls),
129
+ [children],
130
+ );
131
+
132
+ const handleRemoveFromWishlist = async () => {
133
+ try {
134
+ const extendedWishlistLine = wishlist?.ProductListLines?.find(
135
+ (item: ExtendedProductListLine) => item.ProductId === product.id,
136
+ );
137
+ if (extendedWishlistLine && wishlist) {
138
+ const { ...wishlistLine } = extendedWishlistLine;
139
+ delete wishlistLine.Product;
140
+
141
+ const wishlistLinesInput: WishlistLinesInput = {
142
+ Id: wishlist.Id,
143
+ ProductListLines: [wishlistLine],
144
+ };
145
+ await removeFromWishlist(wishlistLinesInput);
146
+ setNotification({
147
+ message: t("wishlistLineRemoveSuccess"),
148
+ severity: "success",
149
+ });
150
+ }
151
+ } catch {
152
+ setNotification({
153
+ message: t("wishlistLineRemoveFailed"),
154
+ severity: "error",
155
+ });
156
+ }
157
+ };
158
+
159
+ const handleToggleFavorite = () => {
160
+ setOpenAddToWishlistDialog(true);
161
+ };
162
+
163
+ const handleToggleProductModal = () => {
164
+ setOpenProductModal((prev) => !prev);
165
+ };
166
+
167
+ const handleAddItemToCart = async () => {
168
+ if (!cart) return;
169
+ try {
170
+ await addToCart({
171
+ cartId: cart.Id,
172
+ version: cart.Version,
173
+ cartLine: [{ ProductId: Number(product.id), Quantity: quantity }],
174
+ });
175
+ setNotification({
176
+ message: "Successfully added item to cart",
177
+ severity: "success",
178
+ });
179
+ } catch {
180
+ setNotification({
181
+ message: "Failed to add item to cart",
182
+ severity: "error",
183
+ });
184
+ }
185
+ };
186
+
187
+ const isWishlistFetching =
188
+ useIsFetching({ queryKey: [WISHLIST_DETAILS_QUERY_KEY] }) > 0;
189
+ const isLineUpdating = isLineUpdatingLocal || isWishlistFetching;
190
+
191
+ const handleIncrementQuantity = async () => {
192
+ if (isLineUpdating) return;
193
+ setIsLineUpdatingLocal(true);
194
+
195
+ try {
196
+ if (containsWishlistControls && wishlist) {
197
+ const updatedLines = (wishlist?.ProductListLines ?? []).map((line) => {
198
+ const updated = { ...line, Product: undefined };
199
+ if (line.ProductId === Number(product.id)) {
200
+ updated.Quantity = quantity + 1;
201
+ }
202
+ return updated;
203
+ });
204
+ if (!updatedLines) return;
205
+ await updateWishlist({
206
+ Id: wishlist?.Id,
207
+ ProductListLines: updatedLines,
208
+ });
209
+ }
210
+
211
+ setQuantity((q) => q + 1);
212
+ } catch (err) {
213
+ console.error("Increment failed", err);
214
+ } finally {
215
+ setIsLineUpdatingLocal(false);
216
+ }
217
+ };
218
+
219
+ const handleDecrementQuantity = async () => {
220
+ if (isLineUpdating || quantity <= 0) return;
221
+ setIsLineUpdatingLocal(true);
222
+
223
+ try {
224
+ if (containsWishlistControls && wishlist) {
225
+ const updatedLines = (wishlist?.ProductListLines ?? []).map((line) => {
226
+ const updated = { ...line, Product: undefined };
227
+ if (line.ProductId === Number(product.id)) {
228
+ updated.Quantity = quantity - 1;
229
+ }
230
+ return updated;
231
+ });
232
+ if (!updatedLines) return;
233
+ await updateWishlist({
234
+ Id: wishlist?.Id,
235
+ ProductListLines: updatedLines,
236
+ });
237
+ }
238
+
239
+ setQuantity((q) => q - 1);
240
+ } catch (err) {
241
+ console.error("Decrement failed", err);
242
+ } finally {
243
+ setIsLineUpdatingLocal(false);
244
+ }
245
+ };
246
+
247
+ const internalContextValue = {
248
+ handleToggleFavorite,
249
+ openProductModal,
250
+ handleToggleProductModal,
251
+ quantity,
252
+ handleIncrementQuantity,
253
+ handleDecrementQuantity,
254
+ isLineUpdating,
255
+ handleAddItemToCart,
256
+ handleRemoveFromWishlist,
257
+ };
258
+
259
+ return (
260
+ <ProductCardContext.Provider value={{ product }}>
261
+ <ProductCardInternalContext.Provider value={internalContextValue}>
262
+ <StyledBazaarCard hoverEffect={product.hoverEffect}>
263
+ {children}
264
+ </StyledBazaarCard>
265
+
266
+ {openAddToWishlistDialog && (
267
+ <AddToWishlistDialog
268
+ open={openAddToWishlistDialog}
269
+ handleClose={() => setOpenAddToWishlistDialog(false)}
270
+ productId={Number(product.id)}
271
+ />
272
+ )}
273
+ {openProductModal && (
274
+ <ProductViewDialog
275
+ openDialog={openProductModal}
276
+ handleCloseDialog={handleToggleProductModal}
277
+ productId={Number(product.id)}
278
+ />
279
+ )}
280
+ </ProductCardInternalContext.Provider>
281
+ </ProductCardContext.Provider>
282
+ );
283
283
  };
284
284
 
285
285
  ProductCard.Image = () => {
286
- const ctx = useContext(ProductCardContext);
287
- if (!ctx) return null;
288
-
289
- const { title, id, imgUrl, discount = 0 } = ctx.product;
290
-
291
- return (
292
- <ImageWrapper>
293
- {discount > 0 && <DiscountChip discount={discount} />}
294
- <Link href={buildDetailUrl(title, Number(id))}>
295
- <LazyImage priority src={imgUrl} width={500} height={500} alt={title} />
296
- </Link>
297
- </ImageWrapper>
298
- );
286
+ const ctx = useContext(ProductCardContext);
287
+ if (!ctx) return null;
288
+
289
+ const { title, id, imgUrl, discount = 0 } = ctx.product;
290
+
291
+ return (
292
+ <ImageWrapper>
293
+ {discount > 0 && <DiscountChip discount={discount} />}
294
+ <Link href={buildDetailUrl(title, Number(id))}>
295
+ <LazyImage priority src={imgUrl} width={500} height={500} alt={title} />
296
+ </Link>
297
+ </ImageWrapper>
298
+ );
299
299
  };
300
300
 
301
301
  ProductCard.Body = ({ children }: { children: React.ReactNode }) => {
302
- return <ContentWrapper>{children}</ContentWrapper>;
302
+ return <ContentWrapper>{children}</ContentWrapper>;
303
303
  };
304
304
 
305
305
  ProductCard.Info = ({ children }: { children: React.ReactNode }) => {
306
- return (
307
- <Box flex="1 1 0" minWidth="0px" mr={1}>
308
- {children}
309
- </Box>
310
- );
306
+ return (
307
+ <Box flex="1 1 0" minWidth="0px" mr={1}>
308
+ {children}
309
+ </Box>
310
+ );
311
311
  };
312
312
 
313
313
  ProductCard.Actions = ({ children }: { children: React.ReactNode }) => {
314
- return <>{children}</>;
314
+ return <>{children}</>;
315
315
  };
316
316
 
317
317
  ProductCard.Title = () => {
318
- const ctx = useContext(ProductCardContext);
319
- if (!ctx) return null;
318
+ const ctx = useContext(ProductCardContext);
319
+ if (!ctx) return null;
320
320
 
321
- const { title, slug } = ctx.product;
322
- return <ProductTitle title={title} slug={slug} />;
321
+ const { title, slug } = ctx.product;
322
+ return <ProductTitle title={title} slug={slug} />;
323
323
  };
324
324
 
325
325
  ProductCard.Rating = () => {
326
- const ctx = useContext(ProductCardContext);
327
- if (!ctx) return null;
326
+ const ctx = useContext(ProductCardContext);
327
+ if (!ctx) return null;
328
328
 
329
- const { rating } = ctx.product;
329
+ const { rating } = ctx.product;
330
330
 
331
- return <Rating size="small" value={rating} color="warn" readOnly />;
331
+ return <Rating size="small" value={rating} color="warn" readOnly />;
332
332
  };
333
333
 
334
334
  ProductCard.Size = () => {
335
- const ctx = useContext(ProductCardContext);
336
- if (!ctx) return null;
335
+ const ctx = useContext(ProductCardContext);
336
+ if (!ctx) return null;
337
337
 
338
- const { size } = ctx.product;
338
+ const { size } = ctx.product;
339
339
 
340
- return (
341
- <Span color="grey.600" mb={1} display="block">
342
- {size}
343
- </Span>
344
- );
340
+ return (
341
+ <Span color="grey.600" mb={1} display="block">
342
+ {size}
343
+ </Span>
344
+ );
345
345
  };
346
346
 
347
347
  ProductCard.Price = () => {
348
- const ctx = useContext(ProductCardContext);
349
- if (!ctx) return null;
348
+ const ctx = useContext(ProductCardContext);
349
+ if (!ctx) return null;
350
350
 
351
- const { discount, price } = ctx.product;
352
- if (!price || !discount) return null;
353
- return <ProductPrice discount={discount} price={price} />;
351
+ const { discount, price } = ctx.product;
352
+ if (!price || !discount) return null;
353
+ return <ProductPrice discount={discount} price={price} />;
354
354
  };
355
355
 
356
356
  const QuantityButtons = () => {
357
- const internal = useContext(ProductCardInternalContext);
358
- if (!internal) return null;
359
-
360
- const {
361
- quantity,
362
- isLineUpdating,
363
- handleIncrementQuantity,
364
- handleDecrementQuantity,
365
- } = internal;
366
-
367
- return (
368
- <QuantityBtns
369
- quantity={quantity}
370
- handleIncrement={handleIncrementQuantity}
371
- handleDecrement={handleDecrementQuantity}
372
- isLineUpdating={isLineUpdating}
373
- />
374
- );
357
+ const internal = useContext(ProductCardInternalContext);
358
+ if (!internal) return null;
359
+
360
+ const {
361
+ quantity,
362
+ isLineUpdating,
363
+ handleIncrementQuantity,
364
+ handleDecrementQuantity,
365
+ } = internal;
366
+
367
+ return (
368
+ <QuantityBtns
369
+ quantity={quantity}
370
+ handleIncrement={handleIncrementQuantity}
371
+ handleDecrement={handleDecrementQuantity}
372
+ isLineUpdating={isLineUpdating}
373
+ />
374
+ );
375
375
  };
376
376
 
377
377
  ProductCard.QuantityButtons = QuantityButtons;
378
378
 
379
379
  ProductCard.HoverActions = ({ children }: { children: React.ReactNode }) => {
380
- return (
381
- <HoverIconWrapper className="hover-box"> {children} </HoverIconWrapper>
382
- );
380
+ return (
381
+ <HoverIconWrapper className="hover-box"> {children} </HoverIconWrapper>
382
+ );
383
383
  };
384
384
 
385
385
  ProductCard.QuickViewButton = () => {
386
- const internal = useContext(ProductCardInternalContext);
387
- if (!internal) return null;
386
+ const internal = useContext(ProductCardInternalContext);
387
+ if (!internal) return null;
388
388
 
389
- const { handleToggleProductModal } = internal;
389
+ const { handleToggleProductModal } = internal;
390
390
 
391
- return (
392
- <IconButton onClick={handleToggleProductModal}>
393
- <RemoveRedEye color="disabled" fontSize="small" />
394
- </IconButton>
395
- );
391
+ return (
392
+ <IconButton onClick={handleToggleProductModal}>
393
+ <RemoveRedEye color="disabled" fontSize="small" />
394
+ </IconButton>
395
+ );
396
396
  };
397
397
 
398
398
  ProductCard.FavoriteButton = () => {
399
- const internal = useContext(ProductCardInternalContext);
400
- if (!internal) return null;
399
+ const internal = useContext(ProductCardInternalContext);
400
+ if (!internal) return null;
401
401
 
402
- const { handleToggleFavorite } = internal;
402
+ const { handleToggleFavorite } = internal;
403
403
 
404
- const ctx = useContext(ProductCardContext);
405
- if (!ctx) return null;
404
+ const ctx = useContext(ProductCardContext);
405
+ if (!ctx) return null;
406
406
 
407
- const { id } = ctx.product;
407
+ const { id } = ctx.product;
408
408
 
409
- const isFavorite = useFavorite(Number(id));
409
+ const isFavorite = useFavorite(Number(id));
410
410
 
411
- return (
412
- <FavoriteButton isFavorite={isFavorite} onToggle={handleToggleFavorite} />
413
- );
411
+ return (
412
+ <FavoriteButton isFavorite={isFavorite} onToggle={handleToggleFavorite} />
413
+ );
414
414
  };
415
415
 
416
416
  // Used only in wishlist detail page with addtocart and remove from wishlist actions
417
417
  const WishlistControls = () => {
418
- const internal = useContext(ProductCardInternalContext);
419
- if (!internal) return null;
420
- return (
421
- <>
422
- <FlexBox
423
- width="25px"
424
- alignItems="center"
425
- flexDirection="row-reverse"
426
- justifyContent="space-between"
427
- >
428
- <IconButton
429
- sx={{ padding: "3px" }}
430
- onClick={internal.handleAddItemToCart}
431
- >
432
- <ShoppingCart fontSize="small" color="inherit" />
433
- </IconButton>
434
- </FlexBox>
435
- <FlexBox
436
- width="25px"
437
- alignItems="center"
438
- flexDirection="row-reverse"
439
- justifyContent="space-between"
440
- >
441
- <IconButton
442
- sx={{ padding: "3px" }}
443
- onClick={internal.handleRemoveFromWishlist}
444
- >
445
- <Delete fontSize="small" color="inherit" />
446
- </IconButton>
447
- </FlexBox>
448
- </>
449
- );
418
+ const internal = useContext(ProductCardInternalContext);
419
+ if (!internal) return null;
420
+ return (
421
+ <>
422
+ <FlexBox
423
+ width="25px"
424
+ alignItems="center"
425
+ flexDirection="row-reverse"
426
+ justifyContent="space-between"
427
+ >
428
+ <IconButton
429
+ sx={{ padding: "3px" }}
430
+ onClick={internal.handleAddItemToCart}
431
+ >
432
+ <ShoppingCart fontSize="small" color="inherit" />
433
+ </IconButton>
434
+ </FlexBox>
435
+ <FlexBox
436
+ width="25px"
437
+ alignItems="center"
438
+ flexDirection="row-reverse"
439
+ justifyContent="space-between"
440
+ >
441
+ <IconButton
442
+ sx={{ padding: "3px" }}
443
+ onClick={internal.handleRemoveFromWishlist}
444
+ >
445
+ <Delete fontSize="small" color="inherit" />
446
+ </IconButton>
447
+ </FlexBox>
448
+ </>
449
+ );
450
450
  };
451
451
 
452
452
  ProductCard.WishlistControls = WishlistControls;