@riosst100/pwa-marketplace 1.8.8 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/i18n/en_US.json +9 -9
  2. package/package.json +1 -2
  3. package/src/componentOverrideMapping.js +15 -1
  4. package/src/components/AccountLayout/accountlayout.module.css +3 -0
  5. package/src/components/AccountLayout/index.js +147 -0
  6. package/src/components/BecomeSeller/becomeSeller.js +304 -178
  7. package/src/components/BecomeSeller/becomeSeller.module.css +3 -3
  8. package/src/components/BecomeSellerPage/becomeSellerPage.js +2 -1
  9. package/src/components/BecomeSellerPage/becomeSellerPage.module.css +2 -10
  10. package/src/components/LegoSets/legoSets.js +48 -18
  11. package/src/components/LiveChat/chatContent.js +39 -0
  12. package/src/components/LiveChat/index.js +52 -0
  13. package/src/components/LiveChat/liveChat.js +160 -0
  14. package/src/components/NonSportCardsSets/nonSportCardsSets.js +15 -2
  15. package/src/components/SellerCountry/sellerCountry.js +1 -1
  16. package/src/components/SellerDetail/sellerDetail.js +34 -3
  17. package/src/components/ShopBy/shopBy.js +99 -4
  18. package/src/components/ShopBy/shopBy.module.css +22 -0
  19. package/src/components/ShopByVehicles/index.js +2 -0
  20. package/src/components/ShopByVehicles/shopByVehicles.js +327 -0
  21. package/src/components/ShopByVehicles/shopByVehicles.module.css +76 -0
  22. package/src/components/ShopByVehicles/shopByVehicles.shimmer.js +50 -0
  23. package/src/components/SocialLogin/img/facebook.svg +3 -0
  24. package/src/components/SocialLogin/img/google.svg +6 -0
  25. package/src/components/SocialLogin/img/instagram.svg +27 -0
  26. package/src/components/SocialLogin/img/wechat.svg +15 -0
  27. package/src/components/SocialLogin/img/weibo.svg +7 -0
  28. package/src/components/SocialLogin/index.js +10 -0
  29. package/src/components/SocialLogin/socialLogin.js +70 -0
  30. package/src/components/SportCardsSets/sportCardsSets.js +6 -1
  31. package/src/components/TrainsSets/index.js +2 -0
  32. package/src/components/TrainsSets/trainsSets.js +331 -0
  33. package/src/components/TrainsSets/trainsSets.module.css +76 -0
  34. package/src/components/TrainsSets/trainsSets.shimmer.js +49 -0
  35. package/src/overwrites/venia-ui/lib/RootComponents/Category/category.js +5 -0
  36. package/src/overwrites/venia-ui/lib/RootComponents/Category/categoryContent.js +4 -0
  37. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.gql.js +48 -0
  38. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.js +147 -0
  39. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.module.css +52 -0
  40. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPageFragment.gql.js +10 -0
  41. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.js +206 -0
  42. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.module.css +40 -0
  43. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.js +107 -0
  44. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.module.css +3 -0
  45. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/index.js +14 -0
  46. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.js +107 -0
  47. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.module.css +73 -0
  48. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.js +58 -0
  49. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.module.css +31 -0
  50. package/src/overwrites/venia-ui/lib/components/AccountMenu/index.js +1 -0
  51. package/src/overwrites/venia-ui/lib/components/Button/button.js +1 -1
  52. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.js +50 -0
  53. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.module.css +11 -0
  54. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.js +238 -0
  55. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.module.css +98 -0
  56. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/index.js +1 -0
  57. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +178 -0
  58. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.module.css +52 -0
  59. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/index.js +1 -0
  60. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +321 -0
  61. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.module.css +61 -0
  62. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/index.js +1 -0
  63. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/index.js +1 -0
  64. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.js +103 -0
  65. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.module.css +36 -0
  66. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.js +103 -0
  67. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.module.css +33 -0
  68. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.js +37 -0
  69. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.module.css +3 -0
  70. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.js +106 -0
  71. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.module.css +10 -0
  72. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ce.js +7 -0
  73. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ee.js +28 -0
  74. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ce.js +7 -0
  75. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ee.js +38 -0
  76. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/index.js +1 -0
  77. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +95 -0
  78. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.module.css +2 -0
  79. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.js +123 -0
  80. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.module.css +40 -0
  81. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ce.js +1 -0
  82. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ee.js +60 -0
  83. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ce.js +5 -0
  84. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ee.js +40 -0
  85. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/index.js +1 -0
  86. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.js +210 -0
  87. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.module.css +51 -0
  88. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/shippingSummary.js +58 -0
  89. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/taxSummary.js +57 -0
  90. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/editModal.js +41 -0
  91. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/index.js +1 -0
  92. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.js +80 -0
  93. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.module.css +33 -0
  94. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.js +153 -0
  95. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.module.css +52 -0
  96. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.js +31 -0
  97. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.module.css +13 -0
  98. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/index.js +1 -0
  99. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.js +271 -0
  100. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.module.css +156 -0
  101. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.js +94 -0
  102. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.module.css +11 -0
  103. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/quantity.js +40 -0
  104. package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.js +126 -0
  105. package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.module.css +64 -0
  106. package/src/overwrites/venia-ui/lib/components/CartPage/index.js +1 -0
  107. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.js +190 -0
  108. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.module.css +78 -0
  109. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.js +125 -0
  110. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.module.css +94 -0
  111. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/index.js +1 -0
  112. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.js +213 -0
  113. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.module.css +36 -0
  114. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/index.js +1 -0
  115. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.js +93 -0
  116. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.module.css +55 -0
  117. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/index.js +1 -0
  118. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/__fixtures__/cartItems.js +102 -0
  119. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/index.js +1 -0
  120. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.js +54 -0
  121. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.module.css +60 -0
  122. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.js +84 -0
  123. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.module.css +20 -0
  124. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.js +38 -0
  125. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.module.css +28 -0
  126. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +213 -0
  127. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.module.css +24 -0
  128. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/index.js +1 -0
  129. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +162 -0
  130. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.module.css +70 -0
  131. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/index.js +1 -0
  132. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.js +34 -0
  133. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.module.css +17 -0
  134. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/brainTreeDropIn.js +196 -0
  135. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeDropin.module.css +26 -0
  136. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.js +160 -0
  137. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.module.css +62 -0
  138. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.js +348 -0
  139. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.module.css +58 -0
  140. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.js +44 -0
  141. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.module.css +5 -0
  142. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editModal.js +88 -0
  143. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editablePaymentCollection.js +23 -0
  144. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/index.js +1 -0
  145. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js +99 -0
  146. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.module.css +23 -0
  147. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethodCollection.js +23 -0
  148. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.js +121 -0
  149. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.module.css +34 -0
  150. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.js +71 -0
  151. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.module.css +23 -0
  152. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summaryPaymentCollection.js +23 -0
  153. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/index.js +1 -0
  154. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.js +63 -0
  155. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.module.css +2 -0
  156. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/addressForm.js +18 -0
  157. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +401 -0
  158. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.module.css +58 -0
  159. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +455 -0
  160. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.module.css +52 -0
  161. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/index.js +3 -0
  162. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.js +66 -0
  163. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.module.css +12 -0
  164. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.js +65 -0
  165. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.module.css +90 -0
  166. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/index.js +1 -0
  167. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +149 -0
  168. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.module.css +88 -0
  169. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.js +114 -0
  170. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.module.css +48 -0
  171. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/index.js +1 -0
  172. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +154 -0
  173. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.module.css +27 -0
  174. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.js +80 -0
  175. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.module.css +22 -0
  176. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.js +85 -0
  177. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.module.css +3 -0
  178. package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.js +472 -0
  179. package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.module.css +186 -0
  180. package/src/overwrites/venia-ui/lib/components/CheckoutPage/index.js +1 -0
  181. package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.js +323 -0
  182. package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.module.css +52 -0
  183. package/src/overwrites/venia-ui/lib/components/CreateAccount/index.js +1 -0
  184. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.js +48 -0
  185. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.module.css +21 -0
  186. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/index.js +1 -0
  187. package/src/overwrites/venia-ui/lib/components/Dialog/dialog.js +198 -0
  188. package/src/overwrites/venia-ui/lib/components/Dialog/dialog.module.css +189 -0
  189. package/src/overwrites/venia-ui/lib/components/Dialog/index.js +1 -0
  190. package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.js +8 -7
  191. package/src/overwrites/venia-ui/lib/components/Gallery/item.js +12 -4
  192. package/src/overwrites/venia-ui/lib/components/Gallery/item.module.css +2 -2
  193. package/src/overwrites/venia-ui/lib/components/Header/header.js +37 -2
  194. package/src/overwrites/venia-ui/lib/components/Main/main.js +1 -1
  195. package/src/overwrites/venia-ui/lib/components/MegaMenu/shopByColumn.js +3 -2
  196. package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.js +1 -1
  197. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/index.js +1 -0
  198. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.gql.js +22 -0
  199. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.js +143 -0
  200. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.module.css +53 -0
  201. package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.js +42 -0
  202. package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.module.css +33 -0
  203. package/src/overwrites/venia-ui/lib/components/MyAccount/index.js +1 -0
  204. package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.js +38 -0
  205. package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.module.css +5 -0
  206. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.js +71 -0
  207. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.module.css +9 -0
  208. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/index.js +1 -0
  209. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.js +121 -0
  210. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.module.css +35 -0
  211. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.js +70 -0
  212. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.module.css +16 -0
  213. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.js +207 -0
  214. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.module.css +102 -0
  215. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.js +159 -0
  216. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.module.css +50 -0
  217. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.js +45 -0
  218. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.module.css +14 -0
  219. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.js +90 -0
  220. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.module.css +9 -0
  221. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.js +86 -0
  222. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.module.css +19 -0
  223. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.js +63 -0
  224. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.module.css +16 -0
  225. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/index.js +15 -0
  226. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.js +227 -0
  227. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.module.css +70 -0
  228. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.js +70 -0
  229. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.module.css +14 -0
  230. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.js +324 -0
  231. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.module.css +146 -0
  232. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/resetButton.js +41 -0
  233. package/src/overwrites/venia-ui/lib/components/Password/index.js +1 -0
  234. package/src/overwrites/venia-ui/lib/components/Password/password.js +102 -0
  235. package/src/overwrites/venia-ui/lib/components/Password/password.module.css +26 -0
  236. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +30 -15
  237. package/src/overwrites/venia-ui/lib/components/Select/index.js +1 -0
  238. package/src/overwrites/venia-ui/lib/components/Select/option.js +28 -0
  239. package/src/overwrites/venia-ui/lib/components/Select/select.js +74 -0
  240. package/src/overwrites/venia-ui/lib/components/Select/select.module.css +25 -0
  241. package/src/overwrites/venia-ui/lib/components/SignIn/index.js +1 -0
  242. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.gql.js +50 -0
  243. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.js +224 -0
  244. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.module.css +65 -0
  245. package/src/overwrites/venia-ui/lib/components/SignInPage/index.js +1 -0
  246. package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.js +50 -0
  247. package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.module.css +17 -0
  248. package/src/overwrites/venia-ui/lib/components/TextInput/textInput.js +1 -1
  249. package/src/talons/Header/logo.gql.js +19 -0
  250. package/src/talons/Header/useLogo.js +19 -0
  251. package/src/talons/LegoSets/legoSets.gql.js +2 -2
  252. package/src/talons/LegoSets/useLegoSets.js +4 -2
  253. package/src/talons/NonSportCardsSets/useNonSportCardsSets.js +1 -1
  254. package/src/talons/ShopBy/shopBy.gql.js +2 -2
  255. package/src/talons/ShopBy/useShopBy.js +20 -9
  256. package/src/talons/ShopByVehicles/shopByVehicles.gql.js +60 -0
  257. package/src/talons/ShopByVehicles/useShopByVehicles.js +222 -0
  258. package/src/talons/SportCardsSets/useSportCardsSets.js +1 -1
  259. package/src/talons/TrainsSets/trainsSets.gql.js +60 -0
  260. package/src/talons/TrainsSets/useTrainsSets.js +223 -0
@@ -0,0 +1,2 @@
1
+ export { default } from './shopByVehicles';
2
+ export { default as ShopByVehiclesShimmer } from './shopByVehicles.shimmer';
@@ -0,0 +1,327 @@
1
+ import React, { Fragment, useEffect, useMemo, useState } from 'react';
2
+ import ErrorView from '@magento/venia-ui/lib/components/ErrorView';
3
+ import { StoreTitle, Meta } from '@magento/venia-ui/lib/components/Head';
4
+ import { useShopByVehicles } from '@riosst100/pwa-marketplace/src/talons/ShopByVehicles/useShopByVehicles';
5
+ import { Link } from 'react-router-dom';
6
+ import resourceUrl from '@magento/peregrine/lib/util/makeUrl';
7
+ import defaultClasses from './shopByVehicles.module.css';
8
+ import { useStyle } from '@magento/venia-ui/lib/classify';
9
+ import cn from 'classnames';
10
+ import Divider from '@riosst100/pwa-marketplace/src/components/Divider';
11
+ import { ShopByVehiclesShimmer } from '@riosst100/pwa-marketplace/src/components/ShopByVehicles';
12
+ import CustomSortBy from '@riosst100/pwa-marketplace/src/components/CustomSortBy';
13
+ import ArraySearchInput from '@riosst100/pwa-marketplace/src/components/ArraySearchInput';
14
+ import { useCustomSort } from '@riosst100/pwa-marketplace/src/hooks/useCustomSort';
15
+ import Breadcrumbs from '@magento/venia-ui/lib/components/Breadcrumbs';
16
+
17
+ const ShopByVehicles = props => {
18
+ const { categoryId } = props
19
+
20
+ const { location } = globalThis;
21
+
22
+ const query = new URLSearchParams(location.search);
23
+
24
+ const [active, setActive] = useState('all');
25
+ const [activeTab, setActiveTab] = useState('all');
26
+ const [activeFilter, setActiveFilter] = useState('');
27
+ const [searchQuery, setSearchQuery] = useState('');
28
+
29
+ const shopby = query.get('shopby') || null;
30
+ const setType = query.get('set_type') || null;
31
+
32
+ let defaultSort = {
33
+ sortText: 'All (A-Z)',
34
+ value: 'all'
35
+ };
36
+
37
+ if (shopby == "release_year") {
38
+ defaultSort = {
39
+ sortText: 'All (By Year)',
40
+ value: 'date'
41
+ };
42
+ }
43
+
44
+ // if (productType == "expansion_sets") {
45
+ // defaultSort = {
46
+ // sortText: 'All (Expansion Sets)',
47
+ // value: 'all'
48
+ // };
49
+ // }
50
+
51
+ // Sorting
52
+ const sortProps = useCustomSort({ sortFromSearch: false, defaultSort: defaultSort});
53
+ const [currentSort] = sortProps;
54
+ // const [sortBy, setSortBy] = useState({
55
+ // sortText: 'All (A-Z)',
56
+ // value: 'all'
57
+ // });
58
+
59
+ // let availableSortBy = [
60
+ // {
61
+ // 'label': 'All (A-Z)',
62
+ // 'value': 'all'
63
+ // },
64
+ // {
65
+ // 'label': 'By Year',
66
+ // 'value': 'newest'
67
+ // }
68
+ // ];
69
+
70
+ const classes = useStyle(defaultClasses);
71
+
72
+ const talonProps = useShopByVehicles({ activeFilter, searchQuery, setActive, currentSort, shopby, setType, categoryId, activeTab });
73
+
74
+ const { error, loading, shopByVehicles, categoryUrlSuffix, categoryUrlKey, productType, filteredShopByVehicles, availableGroups, category } = talonProps;
75
+
76
+ if (loading && !shopByVehicles)
77
+ return <ShopByVehiclesShimmer />;
78
+ if (error && !shopByVehicles) return <ErrorView />;
79
+
80
+ if (!shopByVehicles && !loading && !error) {
81
+ return <ShopByVehiclesShimmer />;
82
+ }
83
+
84
+ const setsLengthArr = [];
85
+
86
+ const newShopByVehicles = searchQuery ? filteredShopByVehicles : shopByVehicles;
87
+
88
+ // useEffect(() => {
89
+ if (shopByVehicles && shopByVehicles.length) {
90
+ shopByVehicles.map((setRelease, index) => {
91
+ const { group, sets } = setRelease;
92
+
93
+ setsLengthArr[group] = sets.length
94
+ })
95
+ }
96
+ // }, [shopByVehicles])
97
+
98
+ const splitToNChunks = (array, n) => {
99
+ let result = [];
100
+ for (let i = n; i > 0; i--) {
101
+ result.push(array.splice(0, Math.ceil(array.length / i)));
102
+ }
103
+ return result;
104
+ }
105
+
106
+ let allSetsTitle = "Sets";
107
+ let attributeCode = "lego_set_name";
108
+ let byYearTitle = "By Year";
109
+ // if (shopby == "singles") {
110
+ // attributeCode = "lego_set_name";
111
+ // // allSetsTitle = "Singles";
112
+ // byYearTitle = "By Year";
113
+ // }
114
+
115
+ const setRelases = newShopByVehicles && newShopByVehicles.length && newShopByVehicles.map((setRelease, index) => {
116
+ const { group, sets } = setRelease;
117
+
118
+ const setsResult = [];
119
+
120
+ if (sets.length) {
121
+ sets.map((set, index) => {
122
+ const { set_name, option_id, release_year } = set;
123
+
124
+ const categoryUrl = resourceUrl(
125
+ `/${category?.url_path}${categoryUrlSuffix || ''}?${attributeCode}[filter]=${set_name},${option_id}`
126
+ );
127
+
128
+ setsResult.push(<li className='list-none'>
129
+ <Link to={categoryUrl} className="hover_bg-darkblue-900 hover_text-white w-full block text-[14px] py-[2px] px-2">
130
+ {set_name}
131
+ </Link>
132
+ </li>)
133
+ })
134
+ }
135
+
136
+ let setsResultSplitted = [];
137
+ if (active == group || newShopByVehicles.length == 1) {
138
+ setsResultSplitted = splitToNChunks(setsResult, 3);
139
+ }
140
+
141
+ return (
142
+ <>
143
+ {active == "all" && newShopByVehicles.length > 1 ?
144
+ <div className={cn('singles_group-wrapper mb-4 px-2 inline-block', classes.singlesGroupWrapper)}>
145
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' >
146
+ {group}
147
+ </div>
148
+ <div className={cn('singles_item-list flex flex-col')}>{setsResult}</div>
149
+ </div> : ''}
150
+ {active == group || newShopByVehicles.length == 1 ? setsResultSplitted && setsResultSplitted.length && setsResultSplitted.map((setsResult, index) =>
151
+ <div key={index} className={cn('singles_group-wrapper mb-4 px-2 inline-block', classes.singlesGroupWrapper)}>
152
+ {index == 0 ? <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2'>{group}</div> :
153
+ <div className='singles_item_group_letter text-xl font-semibold pb-1 mb-2' style={{"marginTop":"35px"}}></div>}
154
+ <div className={cn('singles_item-list flex flex-col')}>{setsResult}</div>
155
+ </div>
156
+ )
157
+ : ''}
158
+ </>
159
+ );
160
+ });
161
+
162
+ const handleActive = (val) => {
163
+ setActive(val);
164
+
165
+ setSearchQuery('')
166
+ }
167
+
168
+ const handleActiveTab = (val) => {
169
+ setActiveTab(val);
170
+ setActive('all');
171
+ setActiveFilter('');
172
+
173
+ setSearchQuery('')
174
+ }
175
+ const handleSearchQuery = (val) => {
176
+ setSearchQuery(val)
177
+ setActive('all')
178
+ }
179
+
180
+ let alpha = ['#', 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
181
+
182
+ let title = "Sets";
183
+ if (activeTab == "year") {
184
+ title = "Sets | By Year";
185
+ }
186
+
187
+ const availableFilters = [
188
+ 'Theme',
189
+ 'Sub-Theme',
190
+ 'Interest',
191
+ 'Age Level'
192
+ ];
193
+
194
+ const handleActiveFilter = (val) => {
195
+ setActiveFilter(val);
196
+
197
+ setActive('all');
198
+
199
+ setSearchQuery('')
200
+ }
201
+
202
+ return (
203
+ <Fragment>
204
+ <StoreTitle>{title}</StoreTitle>
205
+ <Breadcrumbs categoryId={categoryId} customPage={shopby == "singles" ? "Mini-Figures" : title} />
206
+ <ul className={classes.nav}>
207
+ <li className={classes.nav_item}>
208
+ <button
209
+ onClick={() => {
210
+ handleActiveTab('year')
211
+ }}
212
+ >
213
+ {activeTab == 'year' ? <b>{byYearTitle}</b> : byYearTitle}
214
+ </button>
215
+ </li>
216
+ <li className={classes.nav_item}>
217
+ <button
218
+ onClick={() => {
219
+ handleActiveTab('all')
220
+ }}
221
+ >
222
+ {activeTab == 'all' ? <b>{allSetsTitle}</b> : allSetsTitle}
223
+ </button>
224
+ </li>
225
+ </ul>
226
+ {shopby == "lego_set_name" && activeTab == "all" ? <><ul className={classes.nav}>
227
+ {availableFilters.map((group, index) => (
228
+ <li key={index} className={classes.nav_item}>
229
+ <button
230
+ onClick={() => {
231
+ handleActiveFilter(group)
232
+ }}
233
+ >
234
+ {activeFilter == group ? <b>{group}</b> : group}
235
+ </button>
236
+ </li>
237
+ ))}<li className={classes.nav_item}>
238
+ <button
239
+ onClick={() => {
240
+ handleActiveFilter('')
241
+ }}
242
+ >
243
+ {!activeFilter ? <b>A-Z</b> : 'A-Z'}
244
+ </button>
245
+ </li></ul>
246
+
247
+ </> : ''}
248
+ <h1 className='mx-auto relative block text-xl font-bold text-center pt-10 pb-4'>
249
+ {title}
250
+ </h1>
251
+ {activeTab == "year" && availableGroups ? <ul className={classes.nav}>
252
+ {availableGroups.map((group, index) => (
253
+ <li key={index} className={classes.nav_item}>
254
+ <button
255
+ onClick={() => {
256
+ handleActive(group)
257
+ }}
258
+ >
259
+ {active == group ? <b>{group}</b> : group}
260
+ </button>
261
+ </li>
262
+ ))}
263
+ <li className={classes.nav_item}>
264
+ <button
265
+ onClick={() => {
266
+ handleActive('all')
267
+ }}
268
+ >
269
+ {active == 'all' ? <b>All</b> : 'All'}
270
+ </button>
271
+ </li>
272
+ </ul> : ''}
273
+ <div className='border border-gray-100 px-6'>
274
+ {shopByVehicles ? (
275
+ <div
276
+ className={classes.toolbar}
277
+ >
278
+ <div style={{"width":"35%"}}><ArraySearchInput active={active} searchQuery={searchQuery} placeholder="Search sets..." isOpen={true} setSearchQuery={handleSearchQuery} /></div>
279
+ {/* <CustomSortBy sortProps={sortProps} availableSortMethods={availableSortBy} /> */}
280
+ </div>
281
+ ) : ''}
282
+ <section className='single_list-indexing-container relative m-auto pt-5'>
283
+ {!activeFilter && activeTab != "year" && <ul className='flex gap-2 justify-center flex-wrap'>
284
+ <li>
285
+ <button
286
+ className={cn(
287
+ 'rounded-md border border-solid border-gray-100 p-2 min-w-[28px]',
288
+ 'leading-4 font-medium text-base hover_bg-gray-50'
289
+ )}
290
+ onClick={() => {
291
+ handleActive('all')
292
+ }}
293
+ >
294
+ {active == 'all' ? <b>All</b> : 'All'}
295
+ </button>
296
+ </li>
297
+ {alpha.map((letter, index) => (
298
+ <li key={index}>
299
+ <button
300
+ className={cn(
301
+ 'rounded-md border border-solid border-gray-100 p-2 min-w-[28px]',
302
+ 'leading-4 font-medium text-base ',
303
+ setsLengthArr[letter] > 0 ? 'hover_bg-gray-50' : 'bg-gray-100 text-gray-400',
304
+ )}
305
+ onClick={() => {
306
+ handleActive(letter)
307
+ }}
308
+ disabled={setsLengthArr[letter] > 0 ? false : true}
309
+ >
310
+ {active == letter ? <b>{letter}</b> : letter}
311
+ </button>
312
+ </li>
313
+ ))}
314
+ </ul>}
315
+ </section>
316
+ <Divider className="mb-5 px-4 mt-5" />
317
+ <section className='singles-container'>
318
+ <div className={cn('singles-wrapper block -mx-4', classes.singlesWrapper)}>
319
+ {newShopByVehicles && newShopByVehicles.length ? setRelases : (searchQuery ? <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>No sets found for <b>{searchQuery}</b> search query.</div> : <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>No sets found.</div>)}
320
+ </div>
321
+ </section>
322
+ </div>
323
+ </Fragment>
324
+ );
325
+ }
326
+
327
+ export default ShopByVehicles;
@@ -0,0 +1,76 @@
1
+ .nav {
2
+ composes: flex from global;
3
+ composes: flex-wrap from global;
4
+ margin: 50px 0 30px 0;
5
+ composes: gap-[10px] from global;
6
+ }
7
+
8
+ .nav_item {
9
+ composes: px-4 from global;
10
+ composes: py-2 from global;
11
+ composes: transition-colors from global;
12
+ composes: duration-150 from global;
13
+ composes: border from global;
14
+ composes: border-solid from global;
15
+ composes: leading-normal from global;
16
+ composes: text-base from global;
17
+ composes: text-colorDefault from global;
18
+ composes: bg-white from global;
19
+ composes: border-gray-100 from global;
20
+ border-radius: 5px;
21
+ }
22
+
23
+ .toolbar {
24
+ composes: relative from global;
25
+ composes: ml-2xs from global;
26
+ display: flex;
27
+ justify-content: space-between;
28
+ margin-top: 20px;
29
+ }
30
+
31
+ .tabs {
32
+ composes: flex from global;
33
+ composes: flex-wrap from global;
34
+ composes: mt-3 from global;
35
+ composes: gap-[15px] from global;
36
+ margin-bottom: 30px;
37
+ }
38
+
39
+ .tabs_item {
40
+ composes: px-4 from global;
41
+ composes: py-2 from global;
42
+ composes: transition-colors from global;
43
+ composes: duration-150 from global;
44
+ composes: border from global;
45
+ composes: border-solid from global;
46
+ composes: leading-normal from global;
47
+ composes: text-base from global;
48
+ composes: text-colorDefault from global;
49
+ composes: bg-white from global;
50
+ composes: border-gray-100 from global;
51
+ border-radius: 5px;
52
+ }
53
+
54
+ .singlesWrapper {
55
+ column-count: 1;
56
+ display: flex;
57
+ width: 100%;
58
+ flex-wrap: wrap;
59
+ flex-direction: row;
60
+ }
61
+
62
+ .singlesGroupWrapper {
63
+ width: 100%;
64
+ }
65
+
66
+ @media screen and (min-width: 768px) {
67
+ .singlesGroupWrapper {
68
+ width: 50%;
69
+ }
70
+ }
71
+
72
+ @media screen and (min-width: 1023px) {
73
+ .singlesGroupWrapper {
74
+ width: 33.33%;
75
+ }
76
+ }
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ import { shape, string } from 'prop-types';
3
+ import { useStyle } from '@magento/venia-ui/lib/classify';
4
+
5
+ import Shimmer from '@magento/venia-ui/lib/components/Shimmer';
6
+ import defaultClasses from './shopByVehicles.module.css';
7
+ import cn from 'classnames';
8
+ import Divider from '@riosst100/pwa-marketplace/src/components/Divider';
9
+
10
+ const ShopByVehicles = props => {
11
+ const classes = useStyle(defaultClasses, props.classes);
12
+
13
+ return (
14
+ <>
15
+ <h1 className='mx-auto relative block text-xl font-bold text-center pt-10 pb-4'><Shimmer width="25%" height="6vh" /></h1>
16
+ <div className='border border-gray-100 px-6'>
17
+ <center>
18
+ <section className='single_list-indexing-container relative m-auto pt-5'>
19
+ <Shimmer width="95%" height="6vh" />
20
+ </section>
21
+ </center>
22
+ <Divider className="mb-5 px-4" />
23
+ <section className='singles-container'>
24
+ <div className={cn('singles-wrapper block -mx-4', classes.singlesWrapper)}>
25
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
26
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
27
+ </div>
28
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
29
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
30
+ </div>
31
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
32
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
33
+ </div>
34
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
35
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
36
+ </div>
37
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
38
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
39
+ </div>
40
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
41
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
42
+ </div>
43
+ </div>
44
+ </section>
45
+ </div>
46
+ </>
47
+ );
48
+ };
49
+
50
+ export default ShopByVehicles;
@@ -0,0 +1,3 @@
1
+ <svg width="13" height="24" viewBox="0 0 13 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.35849 23.9999V13.0523H12.0332L12.5833 8.78588H8.35849V6.06189C8.35849 4.82668 8.70154 3.98482 10.473 3.98482L12.7322 3.98377V0.167932C12.3413 0.116127 11.0003 0 9.44014 0C6.18279 0 3.95274 1.98818 3.95274 5.63957V8.786H0.268555V13.0524H3.95263V24L8.35849 23.9999Z" fill="#3C5A9A"/>
3
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M23.7602 12.2667C23.7602 11.28 23.6802 10.56 23.5069 9.81334H12.2402V14.2666H18.8535C18.7202 15.3733 18.0002 17.04 16.4002 18.1599L16.3778 18.309L19.9401 21.0687L20.1869 21.0933C22.4535 19 23.7602 15.92 23.7602 12.2667Z" fill="#4285F4"/>
3
+ <path d="M12.2402 24C15.4802 24 18.2002 22.9333 20.1869 21.0933L16.4002 18.1599C15.3869 18.8666 14.0269 19.3599 12.2402 19.3599C9.06692 19.3599 6.37361 17.2667 5.41352 14.3733L5.27279 14.3853L1.56864 17.252L1.5202 17.3866C3.49352 21.3066 7.54686 24 12.2402 24Z" fill="#34A853"/>
4
+ <path d="M5.41352 14.3733C5.16019 13.6267 5.01358 12.8266 5.01358 12C5.01358 11.1733 5.16019 10.3733 5.40019 9.62666L5.39348 9.46764L1.64292 6.55491L1.5202 6.61328C0.706906 8.23997 0.240234 10.0667 0.240234 12C0.240234 13.9333 0.706906 15.7599 1.5202 17.3866L5.41352 14.3733Z" fill="#FBBC05"/>
5
+ <path d="M12.2402 4.63997C14.4935 4.63997 16.0135 5.6133 16.8802 6.42669L20.2669 3.12C18.1869 1.18667 15.4802 0 12.2402 0C7.54686 0 3.49352 2.69331 1.5202 6.61328L5.40019 9.62666C6.37361 6.73333 9.06692 4.63997 12.2402 4.63997Z" fill="#EB4335"/>
6
+ </svg>
@@ -0,0 +1,27 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_310_25353)">
3
+ <path d="M16.5 0H7.5C5.51088 0 3.60322 0.790176 2.1967 2.1967C0.790176 3.60322 0 5.51088 0 7.5L0 16.5C0 18.4891 0.790176 20.3968 2.1967 21.8033C3.60322 23.2098 5.51088 24 7.5 24H16.5C18.4891 24 20.3968 23.2098 21.8033 21.8033C23.2098 20.3968 24 18.4891 24 16.5V7.5C24 5.51088 23.2098 3.60322 21.8033 2.1967C20.3968 0.790176 18.4891 0 16.5 0ZM21.75 16.5C21.75 19.395 19.395 21.75 16.5 21.75H7.5C4.605 21.75 2.25 19.395 2.25 16.5V7.5C2.25 4.605 4.605 2.25 7.5 2.25H16.5C19.395 2.25 21.75 4.605 21.75 7.5V16.5Z" fill="url(#paint0_linear_310_25353)"/>
4
+ <path d="M12 6C10.4087 6 8.88258 6.63214 7.75736 7.75736C6.63214 8.88258 6 10.4087 6 12C6 13.5913 6.63214 15.1174 7.75736 16.2426C8.88258 17.3679 10.4087 18 12 18C13.5913 18 15.1174 17.3679 16.2426 16.2426C17.3679 15.1174 18 13.5913 18 12C18 10.4087 17.3679 8.88258 16.2426 7.75736C15.1174 6.63214 13.5913 6 12 6ZM12 15.75C11.0058 15.7488 10.0527 15.3533 9.34966 14.6503C8.64666 13.9473 8.25119 12.9942 8.25 12C8.25 9.9315 9.933 8.25 12 8.25C14.067 8.25 15.75 9.9315 15.75 12C15.75 14.067 14.067 15.75 12 15.75Z" fill="url(#paint1_linear_310_25353)"/>
5
+ <path d="M18.4499 6.34998C18.8914 6.34998 19.2494 5.99203 19.2494 5.55048C19.2494 5.10892 18.8914 4.75098 18.4499 4.75098C18.0083 4.75098 17.6504 5.10892 17.6504 5.55048C17.6504 5.99203 18.0083 6.34998 18.4499 6.34998Z" fill="url(#paint2_linear_310_25353)"/>
6
+ </g>
7
+ <defs>
8
+ <linearGradient id="paint0_linear_310_25353" x1="2.196" y1="21.804" x2="21.804" y2="2.196" gradientUnits="userSpaceOnUse">
9
+ <stop stop-color="#FFC107"/>
10
+ <stop offset="0.507" stop-color="#F44336"/>
11
+ <stop offset="0.99" stop-color="#9C27B0"/>
12
+ </linearGradient>
13
+ <linearGradient id="paint1_linear_310_25353" x1="7.758" y1="16.242" x2="16.242" y2="7.758" gradientUnits="userSpaceOnUse">
14
+ <stop stop-color="#FFC107"/>
15
+ <stop offset="0.507" stop-color="#F44336"/>
16
+ <stop offset="0.99" stop-color="#9C27B0"/>
17
+ </linearGradient>
18
+ <linearGradient id="paint2_linear_310_25353" x1="17.8844" y1="6.11598" x2="19.0154" y2="4.98498" gradientUnits="userSpaceOnUse">
19
+ <stop stop-color="#FFC107"/>
20
+ <stop offset="0.507" stop-color="#F44336"/>
21
+ <stop offset="0.99" stop-color="#9C27B0"/>
22
+ </linearGradient>
23
+ <clipPath id="clip0_310_25353">
24
+ <rect width="24" height="24" fill="white"/>
25
+ </clipPath>
26
+ </defs>
27
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_310_25358)">
3
+ <path d="M24.5 15C24.5 11.6865 21.1415 9 17 9C12.8585 9 9.5 11.6865 9.5 15C9.5 18.3135 12.8585 21 17 21C17.681 21 18.329 20.904 18.9575 20.7675L23 22.5L21.602 19.7055C23.354 18.6075 24.5 16.9185 24.5 15Z" fill="#8BC34A"/>
4
+ <path d="M9.5 1.5C4.529 1.5 0.5 4.8585 0.5 9C0.5 11.388 1.847 13.506 3.9365 14.877L2.75 17.25L5.9825 15.8655C6.6755 16.1115 7.3955 16.314 8.165 16.4085C8.057 15.9467 8.00165 15.4742 8 15C8 10.8645 12.0365 7.5 17 7.5C17.4545 7.5 17.8985 7.5375 18.3365 7.5915C17.5445 4.1235 13.892 1.5 9.5 1.5Z" fill="#8BC34A"/>
5
+ <path d="M6.5 7.125C7.12132 7.125 7.625 6.62132 7.625 6C7.625 5.37868 7.12132 4.875 6.5 4.875C5.87868 4.875 5.375 5.37868 5.375 6C5.375 6.62132 5.87868 7.125 6.5 7.125Z" fill="#FAFAFA"/>
6
+ <path d="M12.5 7.125C13.1213 7.125 13.625 6.62132 13.625 6C13.625 5.37868 13.1213 4.875 12.5 4.875C11.8787 4.875 11.375 5.37868 11.375 6C11.375 6.62132 11.8787 7.125 12.5 7.125Z" fill="#FAFAFA"/>
7
+ <path d="M14.75 14.625C15.3713 14.625 15.875 14.1213 15.875 13.5C15.875 12.8787 15.3713 12.375 14.75 12.375C14.1287 12.375 13.625 12.8787 13.625 13.5C13.625 14.1213 14.1287 14.625 14.75 14.625Z" fill="#FAFAFA"/>
8
+ <path d="M19.25 14.625C19.8713 14.625 20.375 14.1213 20.375 13.5C20.375 12.8787 19.8713 12.375 19.25 12.375C18.6287 12.375 18.125 12.8787 18.125 13.5C18.125 14.1213 18.6287 14.625 19.25 14.625Z" fill="#FAFAFA"/>
9
+ </g>
10
+ <defs>
11
+ <clipPath id="clip0_310_25358">
12
+ <rect width="24" height="24" fill="white" transform="translate(0.5)"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg width="30" height="24" viewBox="0 0 30 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M22.5224 11.5056C22.1038 11.3785 21.8165 11.2963 22.0341 10.7465C23.6374 6.47504 19.614 5.94561 15.4072 7.74702C15.4072 7.74702 14.4551 8.16146 14.7013 7.41063C15.1651 5.9128 15.0954 4.66152 14.3732 3.93522C12.732 2.2899 8.3618 3.9967 4.6153 7.7432C1.81267 10.5455 0.183594 13.5202 0.183594 16.0931C0.183594 21.009 6.49062 24.0002 12.6578 24.0002C20.7455 24.0002 26.1253 19.3019 26.1253 15.572C26.1294 13.315 24.2295 12.0347 22.5224 11.5056Z" fill="#E6162D"/>
3
+ <path d="M12.6788 22.2356C7.75458 22.7239 3.50349 20.496 3.18366 17.2665C2.84663 9.47054 19.8201 7.79591 21.0086 15.502C21.3329 18.7356 17.5988 21.7514 12.6788 22.2356Z" fill="#F1F1F1"/>
4
+ <path d="M27.7877 2.59835C25.8343 0.431877 22.954 -0.392857 20.295 0.173212C19.6796 0.304455 19.2897 0.911936 19.4209 1.52324C19.5522 2.13868 20.1555 2.52859 20.7709 2.39735C24.9433 1.47577 28.6089 5.54337 27.2666 9.59473C26.8403 11.0311 28.9358 11.7099 29.433 10.2965C30.2683 7.71336 29.7433 4.7626 27.7877 2.59835Z" fill="#FF9933"/>
5
+ <path d="M24.3692 9.67119C24.8862 9.83525 25.436 9.5562 25.6042 9.03919C26.5408 6.29039 23.9847 3.45559 21.156 4.11118C20.6265 4.22203 20.2901 4.74732 20.401 5.27644C20.516 5.80588 21.0372 6.14227 21.5621 6.02727C22.1941 5.89188 22.8835 6.08875 23.347 6.60162C23.8108 7.11863 23.9379 7.8204 23.7369 8.43585C23.5731 8.94904 23.8522 9.503 24.3692 9.67119Z" fill="#FF9933"/>
6
+ <path d="M13.1668 13.0196C10.8238 12.4083 8.17699 13.5777 7.15953 15.6416C6.12137 17.7466 7.12672 20.0854 9.49038 20.8487C11.9442 21.6406 14.8331 20.426 15.8382 18.1569C16.8311 15.9331 15.5919 13.6475 13.1668 13.0196ZM11.3778 18.3952C10.3428 20.0552 7.50771 19.1811 8.60799 17.1681C9.6366 15.5362 12.4424 16.3826 11.3778 18.3952ZM12.9492 16.3845C12.5947 17.0276 11.4813 16.7263 11.8824 15.9576C12.2385 15.3256 13.327 15.6136 12.9492 16.3845Z" fill="black"/>
7
+ </svg>
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import Content from './socialLogin';
3
+
4
+ const index = (props) => {
5
+ return (
6
+ <Content {...props} />
7
+ )
8
+ }
9
+
10
+ export default index
@@ -0,0 +1,70 @@
1
+ import React from 'react';
2
+ import Button from '@magento/venia-ui/lib/components/Button';
3
+ import Image from '@magento/venia-ui/lib/components/Image';
4
+ import GoogleIcon from './img/google.svg';
5
+ import FacebookIcon from './img/facebook.svg';
6
+ import InstagramIcon from './img/instagram.svg';
7
+ import WechatIcon from './img/wechat.svg';
8
+ import WeiboIcon from './img/weibo.svg';
9
+
10
+ const socialLogin = () => {
11
+ return (
12
+ <div className='relative flex w-full justify-between items-center'>
13
+ <Button
14
+ className="shadow-type-1 p-[14px] rounded-full w-[52px] h-[52px]"
15
+ >
16
+ <Image
17
+ alt='google'
18
+ className="relative"
19
+ src={GoogleIcon}
20
+ />
21
+ </Button>
22
+ <Button
23
+ className="shadow-type-1 p-[14px] rounded-full w-[52px] h-[52px]"
24
+ >
25
+ <Image
26
+ alt='facebook'
27
+ className="relative"
28
+ src={FacebookIcon}
29
+ />
30
+ </Button>
31
+ <Button
32
+ className="shadow-type-1 p-[14px] rounded-full w-[52px] h-[52px]"
33
+ >
34
+ <Image
35
+ alt='instagram'
36
+ className="relative"
37
+ src={InstagramIcon}
38
+ />
39
+ </Button>
40
+ <Button
41
+ className="shadow-type-1 p-[14px] rounded-full w-[52px] h-[52px]"
42
+ >
43
+ <Image
44
+ alt='wechat'
45
+ className="relative"
46
+ src={WechatIcon}
47
+ />
48
+ </Button>
49
+ <Button
50
+ className="shadow-type-1 p-[14px] rounded-full w-[52px] h-[52px]"
51
+ >
52
+ <Image
53
+ alt='weibo'
54
+ className="relative"
55
+ src={WeiboIcon}
56
+ />
57
+ </Button>
58
+
59
+ <style global jsx>
60
+ {`
61
+ img[loading="eager"] {
62
+ display: contents;
63
+ }
64
+ `}
65
+ </style>
66
+ </div>
67
+ )
68
+ }
69
+
70
+ export default socialLogin
@@ -206,6 +206,11 @@ const SportCardsSets = props => {
206
206
  setSearchQuery('')
207
207
  }
208
208
 
209
+ const handleSearchQuery = (val) => {
210
+ setSearchQuery(val)
211
+ setActive('all')
212
+ }
213
+
209
214
  let alpha = ['#', 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
210
215
 
211
216
  let brandName = brandsFilter ? brandsFilter.split(',')[0] : '';
@@ -303,7 +308,7 @@ const SportCardsSets = props => {
303
308
  <div
304
309
  className={classes.toolbar}
305
310
  >
306
- <div style={{"width":"35%"}}><ArraySearchInput active={active} searchQuery={searchQuery} placeholder="Search sets..." isOpen={true} setSearchQuery={setSearchQuery} /></div>
311
+ <div style={{"width":"35%"}}><ArraySearchInput active={active} searchQuery={searchQuery} placeholder="Search sets..." isOpen={true} setSearchQuery={handleSearchQuery} /></div>
307
312
  {/* <CustomSortBy sortProps={sortProps} availableSortMethods={availableSortBy} /> */}
308
313
  </div>
309
314
  ) : ''}
@@ -0,0 +1,2 @@
1
+ export { default } from './trainsSets';
2
+ export { default as TrainsSetsShimmer } from './trainsSets.shimmer';