@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
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormattedMessage } from 'react-intl';
|
|
3
|
+
import { bool, func, shape, string, object, node } from 'prop-types';
|
|
4
|
+
import { Form } from 'informed';
|
|
5
|
+
import { X as CloseIcon } from 'react-feather';
|
|
6
|
+
|
|
7
|
+
import { useScrollLock } from '@magento/peregrine';
|
|
8
|
+
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
9
|
+
|
|
10
|
+
import Button from '@magento/venia-ui/lib/components/Button';
|
|
11
|
+
import Icon from '@magento/venia-ui/lib/components/Icon';
|
|
12
|
+
import { Portal } from '@magento/venia-ui/lib/components/Portal';
|
|
13
|
+
import defaultClasses from './dialog.module.css';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The Dialog component shows its children content in a dialog,
|
|
17
|
+
* encoding the look-and-feel and behavior in one place for consistency across the app.
|
|
18
|
+
*
|
|
19
|
+
* @typedef Dialog
|
|
20
|
+
* @kind functional component
|
|
21
|
+
*
|
|
22
|
+
* @param {Object} props
|
|
23
|
+
* @param {Object} props.classes - A set of class overrides to apply to elements.
|
|
24
|
+
* @param {String} props.cancelText - The text to display on the Dialog cancel button.
|
|
25
|
+
* @param {String} props.cancelTranslationId - The id to assign for the cancel button translation.
|
|
26
|
+
* @param {String} props.confirmText - The text to display on the Dialog confirm button.
|
|
27
|
+
* @param {String} props.confirmTranslationId - The id to assign for the confirm button translation.
|
|
28
|
+
* @param {Object} props.formProps - Props to apply to the internal form. @see https://joepuzzo.github.io/informed/?path=/story/form--props.
|
|
29
|
+
* @param {Boolean} props.isModal - Determines behavior of clicking on the mask. False cancels Dialog.
|
|
30
|
+
* @param {Boolean} props.isOpen - Whether the Dialog is currently showing.
|
|
31
|
+
* @param {Func} props.onCancel - A function to call when the user cancels the Dialog.
|
|
32
|
+
* @param {Func} props.onConfirm - A function to call when the user confirms the Dialog.
|
|
33
|
+
* @param {Boolean} props.shouldDisableAllButtons - A toggle for whether the buttons should be disabled.
|
|
34
|
+
* @param {Boolean} props.shouldDisableConfirmButton - A toggle for whether the confirm button should be disabled.
|
|
35
|
+
* The final value is OR'ed with shouldDisableAllButtons.
|
|
36
|
+
* @param {Boolean} props.shouldShowButtons - A toggle for whether the cancel and confirm buttons are visible.
|
|
37
|
+
* @param {Boolean} props.shouldUnmountOnHide - A boolean to unmount child components on hide
|
|
38
|
+
* @param {String} props.title - The title of the Dialog.
|
|
39
|
+
*/
|
|
40
|
+
const Dialog = props => {
|
|
41
|
+
const {
|
|
42
|
+
cancelText,
|
|
43
|
+
cancelTranslationId,
|
|
44
|
+
children,
|
|
45
|
+
confirmText,
|
|
46
|
+
confirmTranslationId,
|
|
47
|
+
formProps,
|
|
48
|
+
isModal,
|
|
49
|
+
isOpen,
|
|
50
|
+
onCancel,
|
|
51
|
+
onConfirm,
|
|
52
|
+
shouldDisableAllButtons,
|
|
53
|
+
shouldDisableConfirmButton,
|
|
54
|
+
shouldShowButtons = true,
|
|
55
|
+
shouldUnmountOnHide,
|
|
56
|
+
title
|
|
57
|
+
} = props;
|
|
58
|
+
|
|
59
|
+
// Prevent the page from scrolling in the background
|
|
60
|
+
// when the Dialog is open.
|
|
61
|
+
useScrollLock(isOpen);
|
|
62
|
+
|
|
63
|
+
const classes = useStyle(defaultClasses, props.classes);
|
|
64
|
+
const rootClass = isOpen ? classes.root_open : classes.root;
|
|
65
|
+
const isMaskDisabled = shouldDisableAllButtons || isModal;
|
|
66
|
+
const confirmButtonDisabled =
|
|
67
|
+
shouldDisableAllButtons || shouldDisableConfirmButton;
|
|
68
|
+
|
|
69
|
+
const cancelButtonClasses = {
|
|
70
|
+
root_lowPriority: classes.cancelButton
|
|
71
|
+
};
|
|
72
|
+
const confirmButtonClasses = {
|
|
73
|
+
root_highPriority: classes.confirmButton
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const maybeCloseXButton = !isModal ? (
|
|
77
|
+
<button
|
|
78
|
+
className={classes.headerButton}
|
|
79
|
+
disabled={shouldDisableAllButtons}
|
|
80
|
+
onClick={onCancel}
|
|
81
|
+
type="reset"
|
|
82
|
+
>
|
|
83
|
+
<Icon src={CloseIcon} />
|
|
84
|
+
</button>
|
|
85
|
+
) : null;
|
|
86
|
+
|
|
87
|
+
const maybeButtons = shouldShowButtons ? (
|
|
88
|
+
<div className={classes.buttons}>
|
|
89
|
+
<Button
|
|
90
|
+
data-cy="Dialog-cancelButton"
|
|
91
|
+
classes={cancelButtonClasses}
|
|
92
|
+
disabled={shouldDisableAllButtons}
|
|
93
|
+
onClick={onCancel}
|
|
94
|
+
priority="low"
|
|
95
|
+
type="reset"
|
|
96
|
+
>
|
|
97
|
+
<FormattedMessage
|
|
98
|
+
id={cancelTranslationId}
|
|
99
|
+
defaultMessage={cancelText}
|
|
100
|
+
/>
|
|
101
|
+
</Button>
|
|
102
|
+
<Button
|
|
103
|
+
data-cy="Dialog-confirmButton"
|
|
104
|
+
classes={confirmButtonClasses}
|
|
105
|
+
disabled={confirmButtonDisabled}
|
|
106
|
+
priority="high"
|
|
107
|
+
type="submit"
|
|
108
|
+
>
|
|
109
|
+
<FormattedMessage
|
|
110
|
+
id={confirmTranslationId}
|
|
111
|
+
defaultMessage={confirmText}
|
|
112
|
+
/>
|
|
113
|
+
</Button>
|
|
114
|
+
</div>
|
|
115
|
+
) : null;
|
|
116
|
+
|
|
117
|
+
const maybeForm =
|
|
118
|
+
isOpen || !shouldUnmountOnHide ? (
|
|
119
|
+
<Form
|
|
120
|
+
className={classes.form}
|
|
121
|
+
{...formProps}
|
|
122
|
+
onSubmit={onConfirm}
|
|
123
|
+
data-cy="Dialog-form"
|
|
124
|
+
>
|
|
125
|
+
{/* The Mask. */}
|
|
126
|
+
<button
|
|
127
|
+
className={classes.mask}
|
|
128
|
+
disabled={isMaskDisabled}
|
|
129
|
+
onClick={onCancel}
|
|
130
|
+
type="reset"
|
|
131
|
+
/>
|
|
132
|
+
{/* The Dialog. */}
|
|
133
|
+
<div className={classes.dialog} data-cy={title}>
|
|
134
|
+
<div className={classes.header}>
|
|
135
|
+
<span
|
|
136
|
+
className={classes.headerText}
|
|
137
|
+
data-cy="Dialog-headerText"
|
|
138
|
+
>
|
|
139
|
+
{title}
|
|
140
|
+
</span>
|
|
141
|
+
{maybeCloseXButton}
|
|
142
|
+
</div>
|
|
143
|
+
<div className={classes.body}>
|
|
144
|
+
<div className={classes.contents}>{children}</div>
|
|
145
|
+
{maybeButtons}
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</Form>
|
|
149
|
+
) : null;
|
|
150
|
+
|
|
151
|
+
return (
|
|
152
|
+
<Portal>
|
|
153
|
+
<aside className={rootClass} data-cy="Dialog-root">
|
|
154
|
+
{maybeForm}
|
|
155
|
+
</aside>
|
|
156
|
+
</Portal>
|
|
157
|
+
);
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export default Dialog;
|
|
161
|
+
|
|
162
|
+
Dialog.propTypes = {
|
|
163
|
+
cancelText: string,
|
|
164
|
+
cancelTranslationId: string,
|
|
165
|
+
classes: shape({
|
|
166
|
+
body: string,
|
|
167
|
+
cancelButton: string,
|
|
168
|
+
confirmButton: string,
|
|
169
|
+
container: string,
|
|
170
|
+
contents: string,
|
|
171
|
+
header: string,
|
|
172
|
+
headerText: string,
|
|
173
|
+
headerButton: string,
|
|
174
|
+
mask: string,
|
|
175
|
+
root: string,
|
|
176
|
+
root_open: string
|
|
177
|
+
}),
|
|
178
|
+
confirmText: string,
|
|
179
|
+
confirmTranslationId: string,
|
|
180
|
+
formProps: object,
|
|
181
|
+
isModal: bool,
|
|
182
|
+
isOpen: bool,
|
|
183
|
+
onCancel: func,
|
|
184
|
+
onConfirm: func,
|
|
185
|
+
shouldDisableAllButtons: bool,
|
|
186
|
+
shouldDisableSubmitButton: bool,
|
|
187
|
+
shouldUnmountOnHide: bool,
|
|
188
|
+
title: node
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
Dialog.defaultProps = {
|
|
192
|
+
cancelText: 'Cancel',
|
|
193
|
+
cancelTranslationId: 'global.cancelButton',
|
|
194
|
+
confirmText: 'Confirm',
|
|
195
|
+
confirmTranslationId: 'global.confirmButton',
|
|
196
|
+
isModal: false,
|
|
197
|
+
shouldUnmountOnHide: true
|
|
198
|
+
};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/* The root aside element takes up the whole screen. */
|
|
2
|
+
/* It is hidden by default. */
|
|
3
|
+
/* It animates to being closed, and then moves off screen. */
|
|
4
|
+
/* It sits over all background content. */
|
|
5
|
+
.root {
|
|
6
|
+
composes: fixed from global;
|
|
7
|
+
composes: h-full from global;
|
|
8
|
+
composes: left-[-100vw] from global;
|
|
9
|
+
composes: opacity-0 from global;
|
|
10
|
+
composes: right-0 from global;
|
|
11
|
+
composes: top-0 from global;
|
|
12
|
+
composes: w-full from global;
|
|
13
|
+
composes: z-dialog from global;
|
|
14
|
+
transform: translate3d(-50%, 0, 0);
|
|
15
|
+
transition: opacity 192ms var(--venia-global-anim-out),
|
|
16
|
+
visibility 192ms var(--venia-global-anim-out), left 0s 192ms;
|
|
17
|
+
|
|
18
|
+
/* TODO @TW: review (B6) */
|
|
19
|
+
/* composes: invisible from global; */
|
|
20
|
+
visibility: hidden;
|
|
21
|
+
|
|
22
|
+
composes: lg_right-auto from global;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.root_open {
|
|
26
|
+
composes: root;
|
|
27
|
+
|
|
28
|
+
composes: left-auto from global;
|
|
29
|
+
composes: opacity-100 from global;
|
|
30
|
+
|
|
31
|
+
composes: lg_left-1/2 from global;
|
|
32
|
+
composes: rounded-md from global;
|
|
33
|
+
|
|
34
|
+
/* TODO @TW: review (B6) */
|
|
35
|
+
/* composes: visible from global; */
|
|
36
|
+
visibility: visible;
|
|
37
|
+
|
|
38
|
+
/* It animates to being open. */
|
|
39
|
+
transition: opacity 224ms var(--venia-global-anim-in),
|
|
40
|
+
visibility 224ms var(--venia-global-anim-in), left 0s;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* The form fills the entire aside. */
|
|
44
|
+
/* Its contents are centered horizontally and vertically. */
|
|
45
|
+
.form {
|
|
46
|
+
composes: content-stretch from global;
|
|
47
|
+
composes: grid from global;
|
|
48
|
+
composes: h-full from global;
|
|
49
|
+
composes: justify-end from global;
|
|
50
|
+
composes: w-full from global;
|
|
51
|
+
|
|
52
|
+
composes: lg_content-center from global;
|
|
53
|
+
composes: lg_justify-center from global;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.mask {
|
|
57
|
+
/* The mask takes up the entire screen. */
|
|
58
|
+
composes: absolute from global;
|
|
59
|
+
composes: h-full from global;
|
|
60
|
+
composes: left-0 from global;
|
|
61
|
+
composes: top-0 from global;
|
|
62
|
+
composes: w-full from global;
|
|
63
|
+
|
|
64
|
+
/* The mask is a semi-transparent grey. */
|
|
65
|
+
composes: bg-gray-600 from global;
|
|
66
|
+
composes: opacity-50 from global;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* The dialog is the only item in the form grid. */
|
|
70
|
+
/* Nothing is allowed to overflow container itself. */
|
|
71
|
+
/* Container is itself a grid container for its children. */
|
|
72
|
+
/* Container can be the target of pointer events. */
|
|
73
|
+
/* It sits on top of the mask. */
|
|
74
|
+
.dialog {
|
|
75
|
+
/* It sets maximum sizes so its body can handle overflow. */
|
|
76
|
+
composes: h-full from global;
|
|
77
|
+
composes: max-h-full from global;
|
|
78
|
+
/* Minimum keeps a 16:9 aspect ratio and is 40rem x 22.5rem. */
|
|
79
|
+
composes: min-h-[360px] from global;
|
|
80
|
+
composes: w-[640px] from global;
|
|
81
|
+
|
|
82
|
+
composes: bg-white from global;
|
|
83
|
+
composes: grid from global;
|
|
84
|
+
composes: grid-rows-autoFirst from global;
|
|
85
|
+
composes: max-w-modal from global;
|
|
86
|
+
composes: overflow-hidden from global;
|
|
87
|
+
composes: pointer-events-auto from global;
|
|
88
|
+
composes: rounded-md from global;
|
|
89
|
+
composes: shadow-dialog from global;
|
|
90
|
+
composes: z-dialog from global;
|
|
91
|
+
|
|
92
|
+
composes: lg_max-h-modal from global;
|
|
93
|
+
composes: lg_max-w-full from global;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/*
|
|
97
|
+
* Dialog Header styles.
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
.header {
|
|
101
|
+
composes: border-b from global;
|
|
102
|
+
composes: border-solid from global;
|
|
103
|
+
composes: border-subtle from global;
|
|
104
|
+
composes: h-[3.5rem] from global;
|
|
105
|
+
composes: pl-4 from global;
|
|
106
|
+
composes: pr-3 from global;
|
|
107
|
+
composes: py-0 from global;
|
|
108
|
+
|
|
109
|
+
/* The Header is itself a grid container for its children. */
|
|
110
|
+
composes: gap-x-xs from global;
|
|
111
|
+
composes: grid from global;
|
|
112
|
+
composes: grid-cols-autoLast from global;
|
|
113
|
+
composes: grid-flow-col from global;
|
|
114
|
+
composes: items-center from global;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.headerText {
|
|
118
|
+
composes: capitalize from global;
|
|
119
|
+
composes: leading-tight from global;
|
|
120
|
+
composes: overflow-ellipsis from global;
|
|
121
|
+
composes: overflow-hidden from global;
|
|
122
|
+
composes: text-subtle from global;
|
|
123
|
+
composes: whitespace-nowrap from global;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.headerButton {
|
|
127
|
+
/* Horizontally align the close button to the right. */
|
|
128
|
+
composes: justify-self-end from global;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/*
|
|
132
|
+
* Dialog Body styles.
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
.body {
|
|
136
|
+
composes: overflow-auto from global;
|
|
137
|
+
|
|
138
|
+
/* The Body is itself a grid container for its children. */
|
|
139
|
+
composes: grid from global;
|
|
140
|
+
composes: grid-rows-autoLast from global;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.contents {
|
|
144
|
+
composes: p-xs from global;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.buttons {
|
|
148
|
+
composes: gap-xs from global;
|
|
149
|
+
composes: grid from global;
|
|
150
|
+
composes: grid-flow-row from global;
|
|
151
|
+
composes: justify-center from global;
|
|
152
|
+
composes: p-md from global;
|
|
153
|
+
|
|
154
|
+
composes: lg_grid-flow-col from global;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.confirmButton {
|
|
158
|
+
composes: root_highPriority from '../Button/button.module.css';
|
|
159
|
+
|
|
160
|
+
/* On mobile the confirm button should be first (on top). */
|
|
161
|
+
composes: order-first from global;
|
|
162
|
+
|
|
163
|
+
composes: lg_order-unset from global;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.cancelButton {
|
|
167
|
+
composes: root_lowPriority from '../Button/button.module.css';
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/*
|
|
171
|
+
* Mobile-specific styles.
|
|
172
|
+
*
|
|
173
|
+
* Instead of being a full-page modal,
|
|
174
|
+
* dialogs slide out from the right.
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
@media (max-width: 959px) {
|
|
178
|
+
.root {
|
|
179
|
+
/* The Dialog starts off-screen on the right. */
|
|
180
|
+
transform: translate3d(100%, 0, 0);
|
|
181
|
+
/* For mobile, add position to the transitions. */
|
|
182
|
+
transition-property: opacity, transform, visibility;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.root_open {
|
|
186
|
+
/* The Dialog animates (slides) onto the screen. */
|
|
187
|
+
transform: translate3d(0, 0, 0);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './dialog';
|
|
@@ -63,13 +63,13 @@ const FilterSidebar = props => {
|
|
|
63
63
|
// filterElement &&
|
|
64
64
|
// typeof filterElement.getBoundingClientRect === 'function'
|
|
65
65
|
// ) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
// const filterTop = filterElement.getBoundingClientRect().top;
|
|
67
|
+
// const windowScrollY =
|
|
68
|
+
// window.scrollY + filterTop - SCROLL_OFFSET;
|
|
69
|
+
// window.scrollTo(0, windowScrollY);
|
|
70
70
|
// }
|
|
71
71
|
|
|
72
|
-
history.push('/'+args[1].path+'.html');
|
|
72
|
+
history.push('/' + args[1].path + '.html');
|
|
73
73
|
|
|
74
74
|
if (args[0] != "category_uid") {
|
|
75
75
|
handleApply(...args);
|
|
@@ -80,7 +80,7 @@ const FilterSidebar = props => {
|
|
|
80
80
|
|
|
81
81
|
const allowedFiltersArr = [];
|
|
82
82
|
|
|
83
|
-
// allowedFilters
|
|
83
|
+
// allowedFilters?.length && allowedFilters.map((val, index) => {
|
|
84
84
|
// allowedFiltersArr.push(val.code);
|
|
85
85
|
// });
|
|
86
86
|
|
|
@@ -93,8 +93,9 @@ const FilterSidebar = props => {
|
|
|
93
93
|
|
|
94
94
|
const hideFilters = ['trains','trains_locomotives','trains_supplies_type','lof_preorder','auction','special_price','sc_baseball_inserts','sc_baseball_parallel','sale','sc_set_type','sc_brands'];
|
|
95
95
|
if (!hideFilters.includes(group) && groupName) {
|
|
96
|
-
// if (!allowedFilters && !allowedFiltersArr.length && group != "category_uid" || allowedFilters && allowedFiltersArr.length && allowedFiltersArr.includes(group)) {
|
|
97
96
|
|
|
97
|
+
// if (!allowedFiltersArr?.length && group != "category_uid" || allowedFiltersArr?.length && allowedFiltersArr.includes(group)) {
|
|
98
|
+
|
|
98
99
|
|
|
99
100
|
return (
|
|
100
101
|
<FilterBlock
|
|
@@ -138,10 +138,18 @@ const GalleryItem = props => {
|
|
|
138
138
|
<span>{name}</span>
|
|
139
139
|
</Link>
|
|
140
140
|
<div data-cy="GalleryItem-price" className={cn(classes.price, 'mb-2.5 pt-2.5')}>
|
|
141
|
-
<
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
<p className='font-semibold text-colorDefault !mb-1 !leading-[14px]'>
|
|
142
|
+
<Price
|
|
143
|
+
value={priceSource.value}
|
|
144
|
+
currencyCode={priceSource.currency}
|
|
145
|
+
/>
|
|
146
|
+
</p>
|
|
147
|
+
<p className='old-price text-gray-400 text-xs line-through font-normal !mb-0'>
|
|
148
|
+
<Price
|
|
149
|
+
value={priceSource.value}
|
|
150
|
+
currencyCode={priceSource.currency}
|
|
151
|
+
/>
|
|
152
|
+
</p>
|
|
145
153
|
</div>
|
|
146
154
|
|
|
147
155
|
<div data-cy="GalleryItem-Rating" className={cn('flex gap-[5px] items-center mb-2')}>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
.image {
|
|
20
20
|
composes: block from global;
|
|
21
21
|
composes: h-full from global;
|
|
22
|
-
composes: object-
|
|
22
|
+
composes: object-contain from global;
|
|
23
23
|
composes: w-full from global;
|
|
24
24
|
transition: opacity 512ms ease-out;
|
|
25
25
|
}
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
.name {
|
|
75
75
|
composes: font-medium from global;
|
|
76
76
|
composes: text-base from global;
|
|
77
|
-
composes: mb-
|
|
77
|
+
composes: mb-1 from global;
|
|
78
78
|
display: -webkit-box;
|
|
79
79
|
-webkit-line-clamp: 2;
|
|
80
80
|
-webkit-box-orient: vertical;
|
|
@@ -25,6 +25,9 @@ import cn from 'classnames';
|
|
|
25
25
|
// const SearchBar = React.lazy(() => import('@magento/venia-ui/lib/components/SearchBar'));
|
|
26
26
|
const SearchBar = React.lazy(() => import('@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/SearchBar'));
|
|
27
27
|
|
|
28
|
+
import { useLogo } from '@riosst100/pwa-marketplace/src/talons/Header/useLogo';
|
|
29
|
+
import Image from '@magento/venia-ui/lib/components/Image';
|
|
30
|
+
|
|
28
31
|
const Header = props => {
|
|
29
32
|
const {
|
|
30
33
|
handleSearchTriggerClick,
|
|
@@ -35,6 +38,15 @@ const Header = props => {
|
|
|
35
38
|
searchTriggerRef
|
|
36
39
|
} = useHeader();
|
|
37
40
|
|
|
41
|
+
const talonPropsLogo = useLogo();
|
|
42
|
+
const { data } = talonPropsLogo
|
|
43
|
+
const baseUrl = data?.storeConfig?.base_media_url;
|
|
44
|
+
const imageSource = data?.storeConfig?.header_logo_src;
|
|
45
|
+
const LogoImageSource = `${baseUrl}/logo/${imageSource}`;
|
|
46
|
+
const IMAGE_HEIGHT = data?.storeConfig?.logo_width || 33;
|
|
47
|
+
const IMAGE_WIDTH = data?.storeConfig?.logo_height || 170;
|
|
48
|
+
const IMAGE_ALT = data?.storeConfig?.logo_alt || 'TCG Collective';
|
|
49
|
+
|
|
38
50
|
const classes = useStyle(defaultClasses, props.classes);
|
|
39
51
|
const rootClass = isSearchOpen ? classes.open : classes.closed;
|
|
40
52
|
|
|
@@ -75,14 +87,30 @@ const Header = props => {
|
|
|
75
87
|
<div className={cn('w-full max-w-[1210px] px-[15px] py-[20px] mx-[auto] flex justify-between items-center')}>
|
|
76
88
|
<div className='flex'>
|
|
77
89
|
<NavTrigger />
|
|
90
|
+
|
|
78
91
|
<Link
|
|
79
92
|
aria-label={title}
|
|
80
93
|
to={resourceUrl('/')}
|
|
81
94
|
className={''}
|
|
82
95
|
data-cy="Header-logoContainer"
|
|
83
96
|
>
|
|
84
|
-
|
|
85
|
-
|
|
97
|
+
{imageSource ? (
|
|
98
|
+
<Image
|
|
99
|
+
alt={IMAGE_ALT}
|
|
100
|
+
height={IMAGE_HEIGHT}
|
|
101
|
+
src={LogoImageSource}
|
|
102
|
+
width={IMAGE_WIDTH}
|
|
103
|
+
classes={{
|
|
104
|
+
container: 'logo-wrapper relative'
|
|
105
|
+
}}
|
|
106
|
+
/>
|
|
107
|
+
) : (
|
|
108
|
+
<>
|
|
109
|
+
<div className='text-[14px]'><b>TCG Collective</b></div>
|
|
110
|
+
<small>Bringing Collectors Together</small>
|
|
111
|
+
</>
|
|
112
|
+
)}
|
|
113
|
+
|
|
86
114
|
</Link>
|
|
87
115
|
</div>
|
|
88
116
|
<div className='flex flex-auto max-w-[700px]'>
|
|
@@ -113,6 +141,13 @@ const Header = props => {
|
|
|
113
141
|
hasBeenOffline={hasBeenOffline}
|
|
114
142
|
isOnline={isOnline}
|
|
115
143
|
/>
|
|
144
|
+
<style jsx>
|
|
145
|
+
{`
|
|
146
|
+
.logo-wrapper>img:first-child {
|
|
147
|
+
height: ${IMAGE_HEIGHT}px;
|
|
148
|
+
}
|
|
149
|
+
`}
|
|
150
|
+
</style>
|
|
116
151
|
</Fragment>
|
|
117
152
|
);
|
|
118
153
|
};
|
|
@@ -20,7 +20,7 @@ const Main = props => {
|
|
|
20
20
|
return (
|
|
21
21
|
<main className={rootClass}>
|
|
22
22
|
<Header />
|
|
23
|
-
<div className={cn(pageClass, 'main-content-container pb-16')}>{children}</div>
|
|
23
|
+
<div className={cn(pageClass, 'main-content-container pb-16 !min-h-[50vh]')}>{children}</div>
|
|
24
24
|
<Footer />
|
|
25
25
|
</main>
|
|
26
26
|
);
|
|
@@ -7,6 +7,7 @@ import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
|
7
7
|
import defaultClasses from './submenuColumn.module.css';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { useIntl } from 'react-intl';
|
|
10
|
+
import cn from 'classnames';
|
|
10
11
|
|
|
11
12
|
const ShopByColumn = props => {
|
|
12
13
|
const classes = useStyle(defaultClasses, props.classes);
|
|
@@ -46,11 +47,11 @@ const ShopByColumn = props => {
|
|
|
46
47
|
: {};
|
|
47
48
|
|
|
48
49
|
const categoryUrl = resourceUrl(
|
|
49
|
-
`/${url_path}${categoryUrlSuffix || ''}
|
|
50
|
+
`/${url_path}${categoryUrlSuffix || ''}?shopby=${shopByItem.option_id}`
|
|
50
51
|
);
|
|
51
52
|
|
|
52
53
|
return (
|
|
53
|
-
<li key={index} className={classes.submenuChildItem}>
|
|
54
|
+
<li key={index} className={cn(classes.submenuChildItem, 'mt-4')}>
|
|
54
55
|
<Link
|
|
55
56
|
{...keyboardProps}
|
|
56
57
|
// className={isActive ? classes.linkActive : classes.link}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './resetPassword';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
export const RESET_PASSWORD_MUTATION = gql`
|
|
4
|
+
mutation resetPassword(
|
|
5
|
+
$email: String!
|
|
6
|
+
$token: String!
|
|
7
|
+
$newPassword: String!
|
|
8
|
+
) {
|
|
9
|
+
resetPassword(
|
|
10
|
+
email: $email
|
|
11
|
+
resetPasswordToken: $token
|
|
12
|
+
newPassword: $newPassword
|
|
13
|
+
)
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
queries: {},
|
|
19
|
+
mutations: {
|
|
20
|
+
resetPasswordMutation: RESET_PASSWORD_MUTATION
|
|
21
|
+
}
|
|
22
|
+
};
|