@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.
- package/i18n/en_US.json +9 -9
- package/package.json +1 -2
- package/src/componentOverrideMapping.js +15 -1
- package/src/components/AccountLayout/accountlayout.module.css +3 -0
- package/src/components/AccountLayout/index.js +147 -0
- package/src/components/BecomeSeller/becomeSeller.js +304 -178
- package/src/components/BecomeSeller/becomeSeller.module.css +3 -3
- package/src/components/BecomeSellerPage/becomeSellerPage.js +2 -1
- package/src/components/BecomeSellerPage/becomeSellerPage.module.css +2 -10
- package/src/components/LegoSets/legoSets.js +48 -18
- package/src/components/LiveChat/chatContent.js +39 -0
- package/src/components/LiveChat/index.js +52 -0
- package/src/components/LiveChat/liveChat.js +160 -0
- package/src/components/NonSportCardsSets/nonSportCardsSets.js +15 -2
- package/src/components/SellerCountry/sellerCountry.js +1 -1
- package/src/components/SellerDetail/sellerDetail.js +34 -3
- package/src/components/ShopBy/shopBy.js +99 -4
- package/src/components/ShopBy/shopBy.module.css +22 -0
- package/src/components/ShopByVehicles/index.js +2 -0
- package/src/components/ShopByVehicles/shopByVehicles.js +327 -0
- package/src/components/ShopByVehicles/shopByVehicles.module.css +76 -0
- package/src/components/ShopByVehicles/shopByVehicles.shimmer.js +50 -0
- package/src/components/SocialLogin/img/facebook.svg +3 -0
- package/src/components/SocialLogin/img/google.svg +6 -0
- package/src/components/SocialLogin/img/instagram.svg +27 -0
- package/src/components/SocialLogin/img/wechat.svg +15 -0
- package/src/components/SocialLogin/img/weibo.svg +7 -0
- package/src/components/SocialLogin/index.js +10 -0
- package/src/components/SocialLogin/socialLogin.js +70 -0
- package/src/components/SportCardsSets/sportCardsSets.js +6 -1
- package/src/components/TrainsSets/index.js +2 -0
- package/src/components/TrainsSets/trainsSets.js +331 -0
- package/src/components/TrainsSets/trainsSets.module.css +76 -0
- package/src/components/TrainsSets/trainsSets.shimmer.js +49 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/category.js +5 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/categoryContent.js +4 -0
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.gql.js +48 -0
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.js +147 -0
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.module.css +52 -0
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPageFragment.gql.js +10 -0
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.js +206 -0
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.module.css +40 -0
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.js +107 -0
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.module.css +3 -0
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/index.js +14 -0
- package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.js +107 -0
- package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.module.css +73 -0
- package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.js +58 -0
- package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.module.css +31 -0
- package/src/overwrites/venia-ui/lib/components/AccountMenu/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/Button/button.js +1 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.js +50 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.module.css +11 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.js +238 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.module.css +98 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +178 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.module.css +52 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +321 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.module.css +61 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.js +103 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.module.css +36 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.js +103 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.module.css +33 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.js +37 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.module.css +3 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.js +106 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.module.css +10 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ce.js +7 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ee.js +28 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ce.js +7 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ee.js +38 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +95 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.module.css +2 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.js +123 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.module.css +40 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ce.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ee.js +60 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ce.js +5 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ee.js +40 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.js +210 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.module.css +51 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/shippingSummary.js +58 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/taxSummary.js +57 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/editModal.js +41 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.js +80 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.module.css +33 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.js +153 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.module.css +52 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.js +31 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.module.css +13 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.js +271 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.module.css +156 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.js +94 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.module.css +11 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/quantity.js +40 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.js +126 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.module.css +64 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.js +190 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.module.css +78 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.js +125 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.module.css +94 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.js +213 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.module.css +36 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.js +93 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.module.css +55 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/__fixtures__/cartItems.js +102 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.js +54 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.module.css +60 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.js +84 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.module.css +20 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.js +38 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.module.css +28 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +213 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.module.css +24 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +162 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.module.css +70 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.js +34 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.module.css +17 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/brainTreeDropIn.js +196 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeDropin.module.css +26 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.js +160 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.module.css +62 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.js +348 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.module.css +58 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.js +44 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.module.css +5 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editModal.js +88 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editablePaymentCollection.js +23 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js +99 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.module.css +23 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethodCollection.js +23 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.js +121 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.module.css +34 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.js +71 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.module.css +23 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summaryPaymentCollection.js +23 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.js +63 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.module.css +2 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/addressForm.js +18 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +401 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.module.css +58 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +455 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.module.css +52 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/index.js +3 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.js +66 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.module.css +12 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.js +65 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.module.css +90 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +149 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.module.css +88 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.js +114 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.module.css +48 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +154 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.module.css +27 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.js +80 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.module.css +22 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.js +85 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.module.css +3 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.js +472 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.module.css +186 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.js +323 -0
- package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.module.css +52 -0
- package/src/overwrites/venia-ui/lib/components/CreateAccount/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.js +48 -0
- package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.module.css +21 -0
- package/src/overwrites/venia-ui/lib/components/CreateAccountPage/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/Dialog/dialog.js +198 -0
- package/src/overwrites/venia-ui/lib/components/Dialog/dialog.module.css +189 -0
- package/src/overwrites/venia-ui/lib/components/Dialog/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.js +8 -7
- package/src/overwrites/venia-ui/lib/components/Gallery/item.js +12 -4
- package/src/overwrites/venia-ui/lib/components/Gallery/item.module.css +2 -2
- package/src/overwrites/venia-ui/lib/components/Header/header.js +37 -2
- package/src/overwrites/venia-ui/lib/components/Main/main.js +1 -1
- package/src/overwrites/venia-ui/lib/components/MegaMenu/shopByColumn.js +3 -2
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.js +1 -1
- package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.gql.js +22 -0
- package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.js +143 -0
- package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.module.css +53 -0
- package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.js +42 -0
- package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.module.css +33 -0
- package/src/overwrites/venia-ui/lib/components/MyAccount/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.js +38 -0
- package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.module.css +5 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.js +71 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.module.css +9 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.js +121 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.module.css +35 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.js +70 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.module.css +16 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.js +207 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.module.css +102 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.js +159 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.module.css +50 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.js +45 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.module.css +14 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.js +90 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.module.css +9 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.js +86 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.module.css +19 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.js +63 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.module.css +16 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/index.js +15 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.js +227 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.module.css +70 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.js +70 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.module.css +14 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.js +324 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.module.css +146 -0
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/resetButton.js +41 -0
- package/src/overwrites/venia-ui/lib/components/Password/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/Password/password.js +102 -0
- package/src/overwrites/venia-ui/lib/components/Password/password.module.css +26 -0
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +30 -15
- package/src/overwrites/venia-ui/lib/components/Select/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/Select/option.js +28 -0
- package/src/overwrites/venia-ui/lib/components/Select/select.js +74 -0
- package/src/overwrites/venia-ui/lib/components/Select/select.module.css +25 -0
- package/src/overwrites/venia-ui/lib/components/SignIn/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/SignIn/signIn.gql.js +50 -0
- package/src/overwrites/venia-ui/lib/components/SignIn/signIn.js +224 -0
- package/src/overwrites/venia-ui/lib/components/SignIn/signIn.module.css +65 -0
- package/src/overwrites/venia-ui/lib/components/SignInPage/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.js +50 -0
- package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.module.css +17 -0
- package/src/overwrites/venia-ui/lib/components/TextInput/textInput.js +1 -1
- package/src/talons/Header/logo.gql.js +19 -0
- package/src/talons/Header/useLogo.js +19 -0
- package/src/talons/LegoSets/legoSets.gql.js +2 -2
- package/src/talons/LegoSets/useLegoSets.js +4 -2
- package/src/talons/NonSportCardsSets/useNonSportCardsSets.js +1 -1
- package/src/talons/ShopBy/shopBy.gql.js +2 -2
- package/src/talons/ShopBy/useShopBy.js +20 -9
- package/src/talons/ShopByVehicles/shopByVehicles.gql.js +60 -0
- package/src/talons/ShopByVehicles/useShopByVehicles.js +222 -0
- package/src/talons/SportCardsSets/useSportCardsSets.js +1 -1
- package/src/talons/TrainsSets/trainsSets.gql.js +60 -0
- package/src/talons/TrainsSets/useTrainsSets.js +223 -0
|
@@ -23,7 +23,7 @@ const LegoSets = props => {
|
|
|
23
23
|
|
|
24
24
|
const [active, setActive] = useState('all');
|
|
25
25
|
const [activeTab, setActiveTab] = useState('all');
|
|
26
|
-
|
|
26
|
+
const [activeFilter, setActiveFilter] = useState('');
|
|
27
27
|
const [searchQuery, setSearchQuery] = useState('');
|
|
28
28
|
|
|
29
29
|
const shopby = query.get('shopby') || null;
|
|
@@ -69,7 +69,7 @@ const LegoSets = props => {
|
|
|
69
69
|
|
|
70
70
|
const classes = useStyle(defaultClasses);
|
|
71
71
|
|
|
72
|
-
const talonProps = useLegoSets({ searchQuery, setActive, currentSort, shopby, setType, categoryId, activeTab });
|
|
72
|
+
const talonProps = useLegoSets({ activeFilter, searchQuery, setActive, currentSort, shopby, setType, categoryId, activeTab });
|
|
73
73
|
|
|
74
74
|
const { error, loading, legoSets, categoryUrlSuffix, categoryUrlKey, productType, filteredLegoSets, availableGroups, category } = talonProps;
|
|
75
75
|
|
|
@@ -106,11 +106,11 @@ const LegoSets = props => {
|
|
|
106
106
|
let allSetsTitle = "Sets";
|
|
107
107
|
let attributeCode = "lego_set_name";
|
|
108
108
|
let byYearTitle = "By Year";
|
|
109
|
-
if (shopby == "singles") {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
109
|
+
// if (shopby == "singles") {
|
|
110
|
+
// attributeCode = "lego_set_name";
|
|
111
|
+
// // allSetsTitle = "Singles";
|
|
112
|
+
// byYearTitle = "By Year";
|
|
113
|
+
// }
|
|
114
114
|
|
|
115
115
|
const setRelases = newLegoSets && newLegoSets.length && newLegoSets.map((setRelease, index) => {
|
|
116
116
|
const { group, sets } = setRelease;
|
|
@@ -167,7 +167,8 @@ const LegoSets = props => {
|
|
|
167
167
|
|
|
168
168
|
const handleActiveTab = (val) => {
|
|
169
169
|
setActiveTab(val);
|
|
170
|
-
setActive('all')
|
|
170
|
+
setActive('all');
|
|
171
|
+
setActiveFilter('');
|
|
171
172
|
|
|
172
173
|
setSearchQuery('')
|
|
173
174
|
}
|
|
@@ -182,19 +183,26 @@ const LegoSets = props => {
|
|
|
182
183
|
if (activeTab == "year") {
|
|
183
184
|
title = "Sets | By Year";
|
|
184
185
|
}
|
|
186
|
+
|
|
187
|
+
const availableFilters = [
|
|
188
|
+
'Theme',
|
|
189
|
+
'Sub-Theme',
|
|
190
|
+
'Interest',
|
|
191
|
+
'Age Level'
|
|
192
|
+
];
|
|
185
193
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
194
|
+
const handleActiveFilter = (val) => {
|
|
195
|
+
setActiveFilter(val);
|
|
196
|
+
|
|
197
|
+
setActive('all');
|
|
198
|
+
|
|
199
|
+
setSearchQuery('')
|
|
191
200
|
}
|
|
192
|
-
|
|
193
201
|
|
|
194
202
|
return (
|
|
195
203
|
<Fragment>
|
|
196
204
|
<StoreTitle>{title}</StoreTitle>
|
|
197
|
-
<Breadcrumbs categoryId={categoryId} customPage={title} />
|
|
205
|
+
<Breadcrumbs categoryId={categoryId} customPage={shopby == "singles" ? "Mini-Figures" : title} />
|
|
198
206
|
<ul className={classes.nav}>
|
|
199
207
|
<li className={classes.nav_item}>
|
|
200
208
|
<button
|
|
@@ -215,10 +223,32 @@ const LegoSets = props => {
|
|
|
215
223
|
</button>
|
|
216
224
|
</li>
|
|
217
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
|
+
</> : ''}
|
|
218
248
|
<h1 className='mx-auto relative block text-xl font-bold text-center pt-10 pb-4'>
|
|
219
249
|
{title}
|
|
220
250
|
</h1>
|
|
221
|
-
{activeTab == "year" && <ul className={classes.nav}>
|
|
251
|
+
{activeTab == "year" && availableGroups ? <ul className={classes.nav}>
|
|
222
252
|
{availableGroups.map((group, index) => (
|
|
223
253
|
<li key={index} className={classes.nav_item}>
|
|
224
254
|
<button
|
|
@@ -239,7 +269,7 @@ const LegoSets = props => {
|
|
|
239
269
|
{active == 'all' ? <b>All</b> : 'All'}
|
|
240
270
|
</button>
|
|
241
271
|
</li>
|
|
242
|
-
</ul>}
|
|
272
|
+
</ul> : ''}
|
|
243
273
|
<div className='border border-gray-100 px-6'>
|
|
244
274
|
{legoSets ? (
|
|
245
275
|
<div
|
|
@@ -250,7 +280,7 @@ const LegoSets = props => {
|
|
|
250
280
|
</div>
|
|
251
281
|
) : ''}
|
|
252
282
|
<section className='single_list-indexing-container relative m-auto pt-5'>
|
|
253
|
-
{activeTab != "year" && <ul className='flex gap-2 justify-center flex-wrap'>
|
|
283
|
+
{!activeFilter && activeTab != "year" && <ul className='flex gap-2 justify-center flex-wrap'>
|
|
254
284
|
<li>
|
|
255
285
|
<button
|
|
256
286
|
className={cn(
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
|
|
4
|
+
const chatContent = (props) => {
|
|
5
|
+
const { chatData } = props;
|
|
6
|
+
|
|
7
|
+
return (
|
|
8
|
+
<>
|
|
9
|
+
<div className='flex flex-col gap-2'>
|
|
10
|
+
{chatData.map((chat) => {
|
|
11
|
+
return (
|
|
12
|
+
<div
|
|
13
|
+
className={cn(
|
|
14
|
+
'w-full max-w-[70%] flex flex-col gap-1',
|
|
15
|
+
chat.type === 'seller' ? 'self-start ' : 'self-end ',
|
|
16
|
+
|
|
17
|
+
)}
|
|
18
|
+
>
|
|
19
|
+
<div
|
|
20
|
+
className={cn(
|
|
21
|
+
'w-full py-2 px-3 rounded-md flex flex-col',
|
|
22
|
+
chat.type === 'seller' ? 'bg-gray-150 rounded-tl-none' : ' bg-[#D9D9D9] rounded-tr-none',
|
|
23
|
+
|
|
24
|
+
)}
|
|
25
|
+
>
|
|
26
|
+
{chat.message}
|
|
27
|
+
</div>
|
|
28
|
+
<span className='text-[12px] text-right block'>
|
|
29
|
+
{chat.timeStamp}
|
|
30
|
+
</span>
|
|
31
|
+
</div>
|
|
32
|
+
)
|
|
33
|
+
})}
|
|
34
|
+
</div>
|
|
35
|
+
</>
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default chatContent
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import LiveChat from './liveChat';
|
|
3
|
+
|
|
4
|
+
const index = (props) => {
|
|
5
|
+
|
|
6
|
+
const {
|
|
7
|
+
open = false,
|
|
8
|
+
setOpen = () => { },
|
|
9
|
+
} = props;
|
|
10
|
+
|
|
11
|
+
const dummyChat = [
|
|
12
|
+
{
|
|
13
|
+
"message": "May I help you",
|
|
14
|
+
"type": "seller",
|
|
15
|
+
"timeStamp": "03-06-2024 2:59 pm"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"message": "Yes",
|
|
19
|
+
"type": "buyer",
|
|
20
|
+
"timeStamp": "03-06-2024 2:59 pm"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"message": "can i get a discount",
|
|
24
|
+
"type": "buyer",
|
|
25
|
+
"timeStamp": "03-06-2024 2:59 pm"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"message": "you can redeem this code 'JunePlay'",
|
|
29
|
+
"type": "seller",
|
|
30
|
+
"timeStamp": "03-06-2024 2:59 pm"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"message": "or this code 'collectfest'",
|
|
34
|
+
"type": "seller",
|
|
35
|
+
"timeStamp": "03-06-2024 2:59 pm"
|
|
36
|
+
},
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
const liveChatProps = {
|
|
40
|
+
open,
|
|
41
|
+
setOpen,
|
|
42
|
+
chatData: dummyChat
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<>
|
|
47
|
+
<LiveChat {...liveChatProps} />
|
|
48
|
+
</>
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default index
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormattedMessage } from 'react-intl';
|
|
3
|
+
import cn from 'classnames';
|
|
4
|
+
import { ArrowSquareDown } from 'iconsax-react';
|
|
5
|
+
import ChatContent from './chatContent';
|
|
6
|
+
import { Send } from 'iconsax-react';
|
|
7
|
+
import Button from '@magento/venia-ui/lib/components/Button';
|
|
8
|
+
import Tabs from '@riosst100/pwa-marketplace/src/components/commons/Tabs';
|
|
9
|
+
import SignIn from '@magento/venia-ui/lib/components/SignIn';
|
|
10
|
+
import { Link } from 'react-router-dom';
|
|
11
|
+
import { useUserContext } from '@magento/peregrine/lib/context/user';
|
|
12
|
+
|
|
13
|
+
const ChatContentComponent = (props) => {
|
|
14
|
+
const { chatData } = props;
|
|
15
|
+
return (
|
|
16
|
+
<>
|
|
17
|
+
<div className='h-[calc(100%-76px)] mb-4 overflow-auto chat-container pr-1'>
|
|
18
|
+
<ChatContent chatData={chatData} />
|
|
19
|
+
</div>
|
|
20
|
+
<div className='flex gap-2'>
|
|
21
|
+
<textarea
|
|
22
|
+
className='w-full focus-visible_outline-none border border-gray-100 p-1 rounded-md'
|
|
23
|
+
cols={5}
|
|
24
|
+
/>
|
|
25
|
+
<Button
|
|
26
|
+
priority='high'
|
|
27
|
+
classes={{
|
|
28
|
+
content: "flex justify-center gap-x-2.5 items-center text-[14px] font-medium capitalize"
|
|
29
|
+
}}
|
|
30
|
+
className={cn(
|
|
31
|
+
"bg-blue-600 px-6 py-2 rounded-full text-white border ",
|
|
32
|
+
"border-blue-600 hover_bg-blue-700 hover_border-blue-700 focus-visible_outline-none"
|
|
33
|
+
)}
|
|
34
|
+
>
|
|
35
|
+
<Send
|
|
36
|
+
size="24"
|
|
37
|
+
className='text-white'
|
|
38
|
+
/>
|
|
39
|
+
</Button>
|
|
40
|
+
</div>
|
|
41
|
+
</>
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const LoginComponent = () => (
|
|
46
|
+
<>
|
|
47
|
+
<SignIn
|
|
48
|
+
classes={{
|
|
49
|
+
root: 'gap-sm grid justify-items-stretch xs_!p-0',
|
|
50
|
+
title: 'hidden',
|
|
51
|
+
}}
|
|
52
|
+
showSocialLogin={false}
|
|
53
|
+
/>
|
|
54
|
+
<Link
|
|
55
|
+
to={'/sign-in'}
|
|
56
|
+
className={cn(
|
|
57
|
+
// 'text-[16px] text-blue-600 font-medium w-full border border-blue-600 block py-2 px-6 rounded-full text-center mt-4',
|
|
58
|
+
// 'hover_bg-blue-600 hover_text-white'
|
|
59
|
+
'text-blue-600 underline mt-2 block text-center'
|
|
60
|
+
)}
|
|
61
|
+
>
|
|
62
|
+
<FormattedMessage
|
|
63
|
+
id={'liveChat.otherMethod'}
|
|
64
|
+
defaultMessage={"Try Other Method"}
|
|
65
|
+
/>
|
|
66
|
+
</Link>
|
|
67
|
+
</>
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
const liveChat = (props) => {
|
|
71
|
+
const { open, setOpen, chatData } = props;
|
|
72
|
+
const [{ isSignedIn }] = useUserContext();
|
|
73
|
+
|
|
74
|
+
const dataTabs =
|
|
75
|
+
[
|
|
76
|
+
{
|
|
77
|
+
id: isSignedIn ? 'login-chat' : 'guest-chat',
|
|
78
|
+
title: isSignedIn ? 'Login Chat' : 'Guest Chat',
|
|
79
|
+
content: <ChatContentComponent chatData={chatData} />
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: !isSignedIn ? 'login-chat' : 'guest-chat',
|
|
83
|
+
title: !isSignedIn ? 'Login Chat' : 'Guest Chat',
|
|
84
|
+
content: isSignedIn ? <ChatContentComponent chatData={chatData} /> : <LoginComponent />
|
|
85
|
+
}
|
|
86
|
+
];
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<>
|
|
90
|
+
<div
|
|
91
|
+
className={cn(
|
|
92
|
+
'bg-white flex flex-col w-full max-w-[380px] h-[520px] fixed right-6 animate-anima-slide-up z-50 shadow-type-1',
|
|
93
|
+
open ? 'animate-anima-slide-up bottom-0' : 'animate-anima-slide-down bottom-[-468px]'
|
|
94
|
+
)}
|
|
95
|
+
>
|
|
96
|
+
<div
|
|
97
|
+
className='bg-darkblue-900 p-4 rounded-t-md cursor-pointer flex justify-between items-center'
|
|
98
|
+
onClick={() => setOpen(!open)}
|
|
99
|
+
>
|
|
100
|
+
<span className='text-white font-medium'>
|
|
101
|
+
<FormattedMessage
|
|
102
|
+
id={'chat.ChatWith'}
|
|
103
|
+
defaultMessage={
|
|
104
|
+
'Chat with Gundam Info'
|
|
105
|
+
}
|
|
106
|
+
/>
|
|
107
|
+
</span>
|
|
108
|
+
<span>
|
|
109
|
+
<ArrowSquareDown
|
|
110
|
+
size="14"
|
|
111
|
+
className={
|
|
112
|
+
cn(
|
|
113
|
+
'transition-all text-white',
|
|
114
|
+
open ? 'rotate-180' : '',
|
|
115
|
+
)
|
|
116
|
+
}
|
|
117
|
+
/>
|
|
118
|
+
</span>
|
|
119
|
+
|
|
120
|
+
</div>
|
|
121
|
+
<div
|
|
122
|
+
className={cn(
|
|
123
|
+
'border border-gray-100 p-4 w-full h-full flex flex-col gap-3',
|
|
124
|
+
'max-h-[468px]'
|
|
125
|
+
)}
|
|
126
|
+
>
|
|
127
|
+
<Tabs
|
|
128
|
+
data={dataTabs}
|
|
129
|
+
tabContentWrapperClassName='!p-0 h-full'
|
|
130
|
+
hasContent
|
|
131
|
+
tabWrapperClassName='justify-around'
|
|
132
|
+
rootClassName="mb-0"
|
|
133
|
+
tabTitleClassName="pt-0 pb-2 text-[12px]"
|
|
134
|
+
/>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
<style jsx>
|
|
138
|
+
{`
|
|
139
|
+
.chat-container::-webkit-scrollbar {
|
|
140
|
+
width: 8px;
|
|
141
|
+
border-radius: 5px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.chat-container::-webkit-scrollbar-track {
|
|
145
|
+
background: #f2f2f2;
|
|
146
|
+
border-radius: 8px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.chat-container::-webkit-scrollbar-thumb {
|
|
150
|
+
background-color: #c3c3c3;
|
|
151
|
+
border-radius: 20px;
|
|
152
|
+
border: 2px solid #f2f2f2;
|
|
153
|
+
}
|
|
154
|
+
`}
|
|
155
|
+
</style>
|
|
156
|
+
</>
|
|
157
|
+
)
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export default liveChat
|
|
@@ -32,9 +32,13 @@ const NonSportCardsSets = props => {
|
|
|
32
32
|
let availableBrands = [];
|
|
33
33
|
|
|
34
34
|
const shopby = query.get('shopby') || null;
|
|
35
|
-
|
|
35
|
+
let setType = query.get('nsc_set_type[filter]') || null;
|
|
36
36
|
const brandsFilter = query.get('sc_brands[filter]') || null;
|
|
37
37
|
|
|
38
|
+
if (setType && setType.includes("Inserts")) {
|
|
39
|
+
setType = "Inserts";
|
|
40
|
+
}
|
|
41
|
+
|
|
38
42
|
let defaultSort = {
|
|
39
43
|
sortText: 'All (A-Z)',
|
|
40
44
|
value: 'all'
|
|
@@ -200,10 +204,19 @@ const NonSportCardsSets = props => {
|
|
|
200
204
|
setSearchQuery('')
|
|
201
205
|
}
|
|
202
206
|
|
|
207
|
+
const handleSearchQuery = (val) => {
|
|
208
|
+
setSearchQuery(val)
|
|
209
|
+
setActive('all')
|
|
210
|
+
}
|
|
211
|
+
|
|
203
212
|
let brandName = brandsFilter ? brandsFilter.split(',')[0] : '';
|
|
204
213
|
|
|
205
214
|
let title = "By Release/Set";
|
|
206
215
|
|
|
216
|
+
if (setType && setType == "Inserts") {
|
|
217
|
+
title = "Insert Sets";
|
|
218
|
+
}
|
|
219
|
+
|
|
207
220
|
return (
|
|
208
221
|
<Fragment>
|
|
209
222
|
<StoreTitle>{title}</StoreTitle>
|
|
@@ -238,7 +251,7 @@ const NonSportCardsSets = props => {
|
|
|
238
251
|
<div
|
|
239
252
|
className={classes.toolbar}
|
|
240
253
|
>
|
|
241
|
-
<div style={{"width":"35%"}}><ArraySearchInput active={active} searchQuery={searchQuery} placeholder="Search sets..." isOpen={true} setSearchQuery={
|
|
254
|
+
<div style={{"width":"35%"}}><ArraySearchInput active={active} searchQuery={searchQuery} placeholder="Search sets..." isOpen={true} setSearchQuery={handleSearchQuery} /></div>
|
|
242
255
|
{/* <CustomSortBy sortProps={sortProps} availableSortMethods={availableSortBy} /> */}
|
|
243
256
|
</div>
|
|
244
257
|
) : ''}
|
|
@@ -44,7 +44,7 @@ const SellerCountry = props => {
|
|
|
44
44
|
<Field
|
|
45
45
|
id={classes.root}
|
|
46
46
|
label={formatMessage({ id: translationId, defaultMessage: label })}
|
|
47
|
-
|
|
47
|
+
// classes={{ root: classes.root }}
|
|
48
48
|
>
|
|
49
49
|
<Select {...selectProps} id={classes.root} />
|
|
50
50
|
</Field>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { Fragment } from 'react';
|
|
1
|
+
import React, { Fragment, useState } from 'react';
|
|
2
2
|
import { FormattedMessage } from 'react-intl';
|
|
3
3
|
import { useSeller } from '@riosst100/pwa-marketplace/src/talons/Seller/useSeller';
|
|
4
4
|
import ErrorView from '@magento/venia-ui/lib/components/ErrorView';
|
|
@@ -19,6 +19,9 @@ import {
|
|
|
19
19
|
Shop,
|
|
20
20
|
} from 'iconsax-react';
|
|
21
21
|
import Image from '@magento/venia-ui/lib/components/Image';
|
|
22
|
+
import LiveChat from '@riosst100/pwa-marketplace/src/components/LiveChat';
|
|
23
|
+
import Button from '@magento/venia-ui/lib/components/Button';
|
|
24
|
+
import cn from 'classnames';
|
|
22
25
|
|
|
23
26
|
const SellerDetail = props => {
|
|
24
27
|
const talonProps = useSeller({
|
|
@@ -63,6 +66,11 @@ const SellerDetail = props => {
|
|
|
63
66
|
}
|
|
64
67
|
];
|
|
65
68
|
|
|
69
|
+
const [openChat, setOpenChat] = useState(false);
|
|
70
|
+
const toggleChat = () => {
|
|
71
|
+
setOpenChat(!openChat);
|
|
72
|
+
}
|
|
73
|
+
|
|
66
74
|
return (
|
|
67
75
|
<div className=' py-8'>
|
|
68
76
|
<Slider seller={seller} rootClassname='mb-[30px]' />
|
|
@@ -105,14 +113,33 @@ const SellerDetail = props => {
|
|
|
105
113
|
</div>
|
|
106
114
|
</div>
|
|
107
115
|
</button>
|
|
108
|
-
<button class="flex items-center justify-center gap-[5px] xs_p-[11px] lg_px-[20px] lg_py-[8px] relative bg-[#280135] rounded-[30px] border border-solid border-[#280135]">
|
|
116
|
+
{/* <button class="flex items-center justify-center gap-[5px] xs_p-[11px] lg_px-[20px] lg_py-[8px] relative bg-[#280135] rounded-[30px] border border-solid border-[#280135]">
|
|
109
117
|
<div class="flex items-center justify-center gap-[10px] relative">
|
|
110
118
|
<Message color='#FFFFFF' size={14} variant="Outline" className='stroke-[#FFFFFF]' />
|
|
111
119
|
<div class="relative xs_hidden lg_flex w-fit font-medium text-[#fff] text-base tracking-[0] leading-[20px] whitespace-nowrap">
|
|
112
120
|
Chat With Seller
|
|
113
121
|
</div>
|
|
114
122
|
</div>
|
|
115
|
-
</button>
|
|
123
|
+
</button> */}
|
|
124
|
+
<Button
|
|
125
|
+
priority='high'
|
|
126
|
+
classes={{
|
|
127
|
+
content: "flex justify-center gap-x-2.5 items-center text-[14px] font-medium capitalize"
|
|
128
|
+
}}
|
|
129
|
+
className={cn(
|
|
130
|
+
"bg-darkblue-900 px-6 py-2 rounded-full text-white border",
|
|
131
|
+
"border-darkblue-900 hover_bg-blue-900 hover_border-blue-900 focus-visible_outline-none"
|
|
132
|
+
)}
|
|
133
|
+
onClick={toggleChat}
|
|
134
|
+
>
|
|
135
|
+
<Message color='#FFFFFF' size={14} variant="Outline" className='stroke-[#FFFFFF]' />
|
|
136
|
+
<span>
|
|
137
|
+
<FormattedMessage
|
|
138
|
+
id={'seller.chatWithSeller'}
|
|
139
|
+
defaultMessage={'Chat With Seller'}
|
|
140
|
+
/>
|
|
141
|
+
</span>
|
|
142
|
+
</Button>
|
|
116
143
|
<button class="flex items-center justify-center gap-[5px] p-[11px] relative bg-white rounded-[30px] overflow-hidden border border-solid border-[#6243fa]">
|
|
117
144
|
<Heart color='#6243FA' size={14} variant="Outline" className='stroke-[#6243FA]' />
|
|
118
145
|
</button>
|
|
@@ -143,6 +170,10 @@ const SellerDetail = props => {
|
|
|
143
170
|
hasContent
|
|
144
171
|
tabWrapperClassName='xl_gap-x-[60px]'
|
|
145
172
|
/>
|
|
173
|
+
<LiveChat
|
|
174
|
+
open={openChat}
|
|
175
|
+
setOpen={setOpenChat}
|
|
176
|
+
/>
|
|
146
177
|
</div>
|
|
147
178
|
)
|
|
148
179
|
}
|
|
@@ -85,8 +85,9 @@ const ShopBy = props => {
|
|
|
85
85
|
// virtualCategoryFilters
|
|
86
86
|
// } = talonProps;
|
|
87
87
|
|
|
88
|
-
const [active, setActive] = useState('all')
|
|
89
|
-
|
|
88
|
+
const [active, setActive] = useState('all')
|
|
89
|
+
const [activeTab, setActiveTab] = useState('all');
|
|
90
|
+
const [activeFilter, setActiveFilter] = useState('');
|
|
90
91
|
const [searchQuery, setSearchQuery] = useState('');
|
|
91
92
|
|
|
92
93
|
const { search } = useLocation();
|
|
@@ -106,7 +107,7 @@ const ShopBy = props => {
|
|
|
106
107
|
|
|
107
108
|
const classes = useStyle(defaultClasses);
|
|
108
109
|
|
|
109
|
-
const talonProps = useShopBy({ searchQuery, active, setActive, currentSort, categoryId, shopby });
|
|
110
|
+
const talonProps = useShopBy({ activeFilter, searchQuery, active, setActive, currentSort, categoryId, shopby });
|
|
110
111
|
|
|
111
112
|
const { error, loading, dataResult, categoryUrlSuffix, categoryUrlKey, productType, filteredAvailableGroups, availableGroups, attributeData, alpha, category, activeFilters } = talonProps;
|
|
112
113
|
|
|
@@ -214,6 +215,13 @@ const ShopBy = props => {
|
|
|
214
215
|
setSearchQuery('')
|
|
215
216
|
}
|
|
216
217
|
|
|
218
|
+
// let availableSortBy = [
|
|
219
|
+
// {
|
|
220
|
+
// 'label': 'All (A-Z)',
|
|
221
|
+
// 'value': 'all'
|
|
222
|
+
// }
|
|
223
|
+
// ];
|
|
224
|
+
|
|
217
225
|
let availableSortBy = [
|
|
218
226
|
{
|
|
219
227
|
'label': 'All (A-Z)',
|
|
@@ -223,10 +231,97 @@ const ShopBy = props => {
|
|
|
223
231
|
|
|
224
232
|
const title = attributeData ? (attributeData.attribute_code == "sc_baseball_parallel" ? "Parallel Sets" : (attributeData.attribute_code == "sc_baseball_inserts" ? "Insert Sets" : attributeData.label)) : "Shop By"
|
|
225
233
|
|
|
234
|
+
let availableFilterOption = [];
|
|
235
|
+
|
|
236
|
+
if (shopby == "vehicles_make" || shopby == "vehicles_brands") {
|
|
237
|
+
availableFilterOption = [
|
|
238
|
+
{
|
|
239
|
+
'code': 'vehicles_diecast',
|
|
240
|
+
'value': 'Cars',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
'code': 'vehicles_diecast',
|
|
244
|
+
'value': 'Formula Racing'
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
'code': 'vehicles_diecast',
|
|
248
|
+
'value': 'Motorsport'
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
'code': 'vehicles_diecast',
|
|
252
|
+
'value': 'Aircraft'
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
'code': 'vehicles_diecast',
|
|
256
|
+
'value': 'Bikes'
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
'code': 'vehicles_diecast',
|
|
260
|
+
'value': 'Military'
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
'code': 'vehicles_diecast',
|
|
264
|
+
'value': 'Transport'
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
'code': 'vehicles_diecast',
|
|
268
|
+
'value': 'Emergency Services'
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
'code': 'vehicles_diecast',
|
|
272
|
+
'value': 'Heavy Machinery'
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
'code': 'vehicles_diecast',
|
|
276
|
+
'value': 'TV/Movies'
|
|
277
|
+
}
|
|
278
|
+
];
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
const handleActiveTab = (val) => {
|
|
282
|
+
setActiveTab(val);
|
|
283
|
+
setActive('all');
|
|
284
|
+
setActiveFilter('');
|
|
285
|
+
|
|
286
|
+
setSearchQuery('')
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
const handleActiveFilter = (val) => {
|
|
290
|
+
setActiveFilter(val);
|
|
291
|
+
|
|
292
|
+
setActive('all');
|
|
293
|
+
|
|
294
|
+
setSearchQuery('')
|
|
295
|
+
}
|
|
296
|
+
|
|
226
297
|
return (
|
|
227
298
|
<Fragment>
|
|
228
299
|
<StoreTitle>{title}</StoreTitle>
|
|
229
300
|
<Breadcrumbs categoryId={categoryId} customPage={title} currentFilter={activeFilters} />
|
|
301
|
+
{availableFilterOption.length ?
|
|
302
|
+
<ul className={classes.nav}>
|
|
303
|
+
{availableFilterOption.map((filter, index) => (
|
|
304
|
+
<li className={classes.nav_item}>
|
|
305
|
+
<button
|
|
306
|
+
onClick={() => {
|
|
307
|
+
handleActiveFilter(filter.code + '|' + filter.value)
|
|
308
|
+
}}
|
|
309
|
+
>
|
|
310
|
+
{activeFilter == filter.code + '|' + filter.value ? <b>{filter.value}</b> : filter.value}
|
|
311
|
+
</button>
|
|
312
|
+
</li>
|
|
313
|
+
))}
|
|
314
|
+
<li className={classes.nav_item}>
|
|
315
|
+
<button
|
|
316
|
+
onClick={() => {
|
|
317
|
+
handleActiveFilter('')
|
|
318
|
+
}}
|
|
319
|
+
>
|
|
320
|
+
{activeFilter == '' ? <b>All</b> : 'All'}
|
|
321
|
+
</button>
|
|
322
|
+
</li>
|
|
323
|
+
</ul>
|
|
324
|
+
: ''}
|
|
230
325
|
<h1 className='mx-auto relative block text-xl font-bold text-center pt-10 pb-4'>
|
|
231
326
|
{title}
|
|
232
327
|
</h1>
|
|
@@ -239,7 +334,7 @@ const ShopBy = props => {
|
|
|
239
334
|
<CustomSortBy sortProps={sortProps} availableSortMethods={availableSortBy} />
|
|
240
335
|
</div>
|
|
241
336
|
) : ''}
|
|
242
|
-
{shopby != "lego_age_level" && productType != "expansion-sets" ? (
|
|
337
|
+
{shopby != "vehicles_year" && shopby != "trains_gauge" && shopby != "vehicles_scale" && shopby != "lego_theme" && shopby != "lego_subtheme" && shopby != "lego_interest" && shopby != "lego_age_level" && productType != "expansion-sets" ? (
|
|
243
338
|
<>
|
|
244
339
|
<section className='single_list-indexing-container relative m-auto pt-5'>
|
|
245
340
|
<ul className='flex gap-2 justify-center flex-wrap'>
|
|
@@ -6,6 +6,28 @@
|
|
|
6
6
|
margin-top: 20px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
.nav {
|
|
10
|
+
composes: flex from global;
|
|
11
|
+
composes: flex-wrap from global;
|
|
12
|
+
margin: 50px 0 30px 0;
|
|
13
|
+
composes: gap-[10px] from global;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.nav_item {
|
|
17
|
+
composes: px-4 from global;
|
|
18
|
+
composes: py-2 from global;
|
|
19
|
+
composes: transition-colors from global;
|
|
20
|
+
composes: duration-150 from global;
|
|
21
|
+
composes: border from global;
|
|
22
|
+
composes: border-solid from global;
|
|
23
|
+
composes: leading-normal from global;
|
|
24
|
+
composes: text-base from global;
|
|
25
|
+
composes: text-colorDefault from global;
|
|
26
|
+
composes: bg-white from global;
|
|
27
|
+
composes: border-gray-100 from global;
|
|
28
|
+
border-radius: 5px;
|
|
29
|
+
}
|
|
30
|
+
|
|
9
31
|
.tabs {
|
|
10
32
|
composes: flex from global;
|
|
11
33
|
composes: flex-wrap from global;
|