@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
|
@@ -71,6 +71,7 @@ const ProductFullDetail = props => {
|
|
|
71
71
|
wishlistButtonProps,
|
|
72
72
|
sellerDetails
|
|
73
73
|
} = talonProps;
|
|
74
|
+
console.log("🚀 ~ ProductFullDetail ~ talonProps:", talonProps)
|
|
74
75
|
|
|
75
76
|
const { formatMessage } = useIntl();
|
|
76
77
|
|
|
@@ -496,20 +497,34 @@ const ProductFullDetail = props => {
|
|
|
496
497
|
)}
|
|
497
498
|
>
|
|
498
499
|
<div className='flex flex-col gap-y-5 max-w-[448px]'>
|
|
499
|
-
<
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
500
|
+
<div className='flex flex-col gap-y-3'>
|
|
501
|
+
<p
|
|
502
|
+
data-cy="ProductFullDetail-productPrice"
|
|
503
|
+
className={cn(
|
|
504
|
+
classes.productPrice,
|
|
505
|
+
'text-[32px] font-semibold leading-[32px] mb-0',
|
|
506
|
+
)}
|
|
507
|
+
>
|
|
508
|
+
<Price
|
|
509
|
+
currencyCode={productDetails.price.currency}
|
|
510
|
+
value={productDetails.price.value}
|
|
511
|
+
/>
|
|
512
|
+
</p>
|
|
513
|
+
<p
|
|
514
|
+
data-cy="ProductFullDetail-productOldPrice"
|
|
515
|
+
className={cn(
|
|
516
|
+
classes.productPrice,
|
|
517
|
+
'text-lg font-normal leading-none text-gray-400 mb-0 line-through',
|
|
518
|
+
)}
|
|
519
|
+
>
|
|
520
|
+
<Price
|
|
521
|
+
currencyCode={productDetails.price.currency}
|
|
522
|
+
value={productDetails.price.value}
|
|
523
|
+
/>
|
|
524
|
+
</p>
|
|
525
|
+
</div>
|
|
526
|
+
<AuctionDetail className="auction_detail-container" />
|
|
527
|
+
<PreorderDetail className={'preorder_detail-container'} />
|
|
513
528
|
<small className='shipping-calculation-notes text-gray-200 text-xs'>
|
|
514
529
|
Shipping method is calculated on checkout
|
|
515
530
|
</small>
|
|
@@ -624,7 +639,7 @@ const ProductFullDetail = props => {
|
|
|
624
639
|
</div>
|
|
625
640
|
</div>
|
|
626
641
|
</Link>
|
|
627
|
-
<Link class="flex items-center justify-center gap-[5px] py-1 px-5 relative bg-white rounded-[30px] border border-solid border-[#6243fa]">
|
|
642
|
+
<Link to={"/seller/"+sellerDetails.url_key} class="flex items-center justify-center gap-[5px] py-1 px-5 relative bg-white rounded-[30px] border border-solid border-[#6243fa]">
|
|
628
643
|
<div class="flex items-center justify-center gap-[10px] relative">
|
|
629
644
|
<Shop color="#6243FA" size={14} variant="Outline" className='stroke-[#6243FA]' />
|
|
630
645
|
<div class="relative xs_hidden lg_flex w-fit font-medium text-[#6243fa] text-[14px] tracking-[0] leading-[20px] whitespace-nowrap">
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './select';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { bool, shape, string } from 'prop-types';
|
|
3
|
+
|
|
4
|
+
const Option = props => {
|
|
5
|
+
const { disabled, item } = props;
|
|
6
|
+
const { label, value } = item;
|
|
7
|
+
const text = label != null ? label : value;
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<option value={value} disabled={disabled}>
|
|
11
|
+
{text}
|
|
12
|
+
</option>
|
|
13
|
+
);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
Option.propTypes = {
|
|
17
|
+
disabled: bool,
|
|
18
|
+
item: shape({
|
|
19
|
+
label: string,
|
|
20
|
+
value: string.isRequired
|
|
21
|
+
}).isRequired
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
Option.defaultProps = {
|
|
25
|
+
disabled: false
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default Option;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React, { Fragment } from 'react';
|
|
2
|
+
import { arrayOf, node, number, oneOfType, shape, string } from 'prop-types';
|
|
3
|
+
import {
|
|
4
|
+
Option as InformedOption,
|
|
5
|
+
Select as InformedSelect,
|
|
6
|
+
useFieldState
|
|
7
|
+
} from 'informed';
|
|
8
|
+
import cn from 'classnames'
|
|
9
|
+
|
|
10
|
+
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
11
|
+
import { FieldIcons, Message } from '@magento/venia-ui/lib/components/Field';
|
|
12
|
+
import defaultClasses from './select.module.css';
|
|
13
|
+
import Icon from '@magento/venia-ui/lib/components/Icon';
|
|
14
|
+
import { ChevronDown as ChevronDownIcon } from 'react-feather';
|
|
15
|
+
|
|
16
|
+
const arrow = <Icon src={ChevronDownIcon} size={24} />;
|
|
17
|
+
|
|
18
|
+
const Select = props => {
|
|
19
|
+
const {
|
|
20
|
+
before,
|
|
21
|
+
classes: propClasses,
|
|
22
|
+
regionError,
|
|
23
|
+
field,
|
|
24
|
+
items,
|
|
25
|
+
message,
|
|
26
|
+
...rest
|
|
27
|
+
} = props;
|
|
28
|
+
const fieldState = useFieldState(field);
|
|
29
|
+
const classes = useStyle(defaultClasses, propClasses);
|
|
30
|
+
const inputClass =
|
|
31
|
+
fieldState.error || regionError ? classes.input_error : classes.input;
|
|
32
|
+
|
|
33
|
+
const options = items.map(
|
|
34
|
+
({ disabled = null, hidden = null, label, value, key = value }) => (
|
|
35
|
+
<InformedOption
|
|
36
|
+
key={key}
|
|
37
|
+
disabled={disabled}
|
|
38
|
+
hidden={hidden}
|
|
39
|
+
value={value}
|
|
40
|
+
>
|
|
41
|
+
{label || (value != null ? value : '')}
|
|
42
|
+
</InformedOption>
|
|
43
|
+
)
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<Fragment>
|
|
48
|
+
<FieldIcons after={arrow} before={before}>
|
|
49
|
+
<InformedSelect {...rest} className={cn(inputClass, '!border border-gray-100 focus_!shadow-none')} field={field}>
|
|
50
|
+
{options}
|
|
51
|
+
</InformedSelect>
|
|
52
|
+
</FieldIcons>
|
|
53
|
+
<Message fieldState={fieldState}>{message}</Message>
|
|
54
|
+
</Fragment>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export default Select;
|
|
59
|
+
|
|
60
|
+
Select.propTypes = {
|
|
61
|
+
before: node,
|
|
62
|
+
classes: shape({
|
|
63
|
+
input: string
|
|
64
|
+
}),
|
|
65
|
+
field: string.isRequired,
|
|
66
|
+
items: arrayOf(
|
|
67
|
+
shape({
|
|
68
|
+
key: oneOfType([number, string]),
|
|
69
|
+
label: string,
|
|
70
|
+
value: oneOfType([number, string])
|
|
71
|
+
})
|
|
72
|
+
),
|
|
73
|
+
message: node
|
|
74
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.wrapper {
|
|
2
|
+
composes: grid-flow-col from global;
|
|
3
|
+
composes: h-[2.25rem] from global;
|
|
4
|
+
composes: inline-grid from global;
|
|
5
|
+
grid-template-areas: 'input icon';
|
|
6
|
+
grid-template-columns: auto 2.25rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.input,
|
|
10
|
+
.input_error {
|
|
11
|
+
composes: input from '@magento/venia-ui/lib/components/Field/field.module.css';
|
|
12
|
+
grid-area: input-start / input-start / input-end / icon-end;
|
|
13
|
+
padding-right: calc(2.25rem - 1px);
|
|
14
|
+
/* TODO @TW: review */
|
|
15
|
+
|
|
16
|
+
composes: disabled_text-subtle from global;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.input {
|
|
20
|
+
composes: disabled_pointer-events-none from global;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.input_error {
|
|
24
|
+
composes: border-error from global;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './signIn';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { CartPageFragment } from '@magento/peregrine/lib/talons/CartPage/cartPageFragments.gql.js';
|
|
3
|
+
|
|
4
|
+
export const GET_CART_DETAILS_QUERY = gql`
|
|
5
|
+
query GetCartDetailsAfterSignIn($cartId: String!) {
|
|
6
|
+
cart(cart_id: $cartId) {
|
|
7
|
+
id
|
|
8
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
9
|
+
items {
|
|
10
|
+
uid
|
|
11
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
12
|
+
product {
|
|
13
|
+
uid
|
|
14
|
+
name
|
|
15
|
+
sku
|
|
16
|
+
small_image {
|
|
17
|
+
url
|
|
18
|
+
label
|
|
19
|
+
}
|
|
20
|
+
price {
|
|
21
|
+
regularPrice {
|
|
22
|
+
amount {
|
|
23
|
+
value
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
quantity
|
|
29
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
30
|
+
... on ConfigurableCartItem {
|
|
31
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
32
|
+
configurable_options {
|
|
33
|
+
configurable_product_option_uid
|
|
34
|
+
option_label
|
|
35
|
+
configurable_product_option_value_uid
|
|
36
|
+
value_label
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
prices {
|
|
41
|
+
grand_total {
|
|
42
|
+
value
|
|
43
|
+
currency
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
...CartPageFragment
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
${CartPageFragment}
|
|
50
|
+
`;
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
3
|
+
import { func, shape, string } from 'prop-types';
|
|
4
|
+
import { Form } from 'informed';
|
|
5
|
+
import { useSignIn } from '@magento/peregrine/lib/talons/SignIn/useSignIn';
|
|
6
|
+
|
|
7
|
+
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
8
|
+
import { isRequired } from '@magento/venia-ui/lib/util/formValidators';
|
|
9
|
+
import Button from '@magento/venia-ui/lib/components/Button';
|
|
10
|
+
import Field from '@magento/venia-ui/lib/components/Field';
|
|
11
|
+
import TextInput from '@magento/venia-ui/lib/components/TextInput';
|
|
12
|
+
import defaultClasses from './signIn.module.css';
|
|
13
|
+
import { GET_CART_DETAILS_QUERY } from './signIn.gql';
|
|
14
|
+
import LinkButton from '@magento/venia-ui/lib/components/LinkButton';
|
|
15
|
+
import Password from '@magento/venia-ui/lib/components/Password';
|
|
16
|
+
import FormError from '@magento/venia-ui/lib/components/FormError/formError';
|
|
17
|
+
import GoogleRecaptcha from '@magento/venia-ui/lib/components/GoogleReCaptcha';
|
|
18
|
+
import cn from 'classnames';
|
|
19
|
+
import { Link } from 'react-router-dom';
|
|
20
|
+
import SocialLogin from '@riosst100/pwa-marketplace/src/components/SocialLogin';
|
|
21
|
+
|
|
22
|
+
const SignIn = props => {
|
|
23
|
+
const classes = useStyle(defaultClasses, props.classes);
|
|
24
|
+
const {
|
|
25
|
+
handleTriggerClick,
|
|
26
|
+
setDefaultUsername,
|
|
27
|
+
showCreateAccount,
|
|
28
|
+
showForgotPassword,
|
|
29
|
+
initialValues,
|
|
30
|
+
showSocialLogin = true,
|
|
31
|
+
} = props;
|
|
32
|
+
|
|
33
|
+
const { formatMessage } = useIntl();
|
|
34
|
+
const talonProps = useSignIn({
|
|
35
|
+
handleTriggerClick,
|
|
36
|
+
getCartDetailsQuery: GET_CART_DETAILS_QUERY,
|
|
37
|
+
setDefaultUsername,
|
|
38
|
+
showCreateAccount,
|
|
39
|
+
showForgotPassword
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const {
|
|
43
|
+
errors,
|
|
44
|
+
handleCreateAccount,
|
|
45
|
+
handleEnterKeyPress,
|
|
46
|
+
signinHandleEnterKeyPress,
|
|
47
|
+
handleForgotPassword,
|
|
48
|
+
forgotPasswordHandleEnterKeyPress,
|
|
49
|
+
handleSubmit,
|
|
50
|
+
isBusy,
|
|
51
|
+
setFormApi,
|
|
52
|
+
recaptchaWidgetProps
|
|
53
|
+
} = talonProps;
|
|
54
|
+
|
|
55
|
+
const forgotPasswordClasses = {
|
|
56
|
+
root: classes.forgotPasswordButton
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<div data-cy="SignIn-root" className={cn(classes.root, '!p-[30px]')}>
|
|
61
|
+
<span data-cy="SignIn-title" className={cn(classes.title, 'text-xl font-semibold')}>
|
|
62
|
+
<FormattedMessage
|
|
63
|
+
id={'signIn.signInText'}
|
|
64
|
+
defaultMessage={'Sign In'}
|
|
65
|
+
/>
|
|
66
|
+
</span>
|
|
67
|
+
<FormError errors={Array.from(errors.values())} />
|
|
68
|
+
<Form
|
|
69
|
+
getApi={setFormApi}
|
|
70
|
+
className={classes.form}
|
|
71
|
+
onSubmit={handleSubmit}
|
|
72
|
+
data-cy="SignIn-form"
|
|
73
|
+
initialValues={initialValues && initialValues}
|
|
74
|
+
>
|
|
75
|
+
<Field
|
|
76
|
+
id="email"
|
|
77
|
+
label={formatMessage({
|
|
78
|
+
id: 'signIn.emailAddressText',
|
|
79
|
+
defaultMessage: 'Email address'
|
|
80
|
+
})}
|
|
81
|
+
classes={{
|
|
82
|
+
root: "mb-6",
|
|
83
|
+
label: "font-normal text-left mb-2 text-[14px] block mb-2"
|
|
84
|
+
}}
|
|
85
|
+
>
|
|
86
|
+
<TextInput
|
|
87
|
+
id="email"
|
|
88
|
+
data-cy="SignIn-email"
|
|
89
|
+
autoComplete="email"
|
|
90
|
+
field="email"
|
|
91
|
+
validate={isRequired}
|
|
92
|
+
aria-label={formatMessage({
|
|
93
|
+
id: 'global.emailRequired',
|
|
94
|
+
defaultMessage: 'Email Required'
|
|
95
|
+
})}
|
|
96
|
+
placeholder='johndoe@gmail.com'
|
|
97
|
+
/>
|
|
98
|
+
</Field>
|
|
99
|
+
<Password
|
|
100
|
+
data-cy="SignIn-password"
|
|
101
|
+
fieldName="password"
|
|
102
|
+
id="Password"
|
|
103
|
+
label={formatMessage({
|
|
104
|
+
id: 'signIn.passwordText',
|
|
105
|
+
defaultMessage: 'Password'
|
|
106
|
+
})}
|
|
107
|
+
validate={isRequired}
|
|
108
|
+
autoComplete="current-password"
|
|
109
|
+
isToggleButtonHidden={false}
|
|
110
|
+
aria-label={formatMessage({
|
|
111
|
+
id: 'global.passwordRequired',
|
|
112
|
+
defaultMessage: 'Password Required'
|
|
113
|
+
})}
|
|
114
|
+
placeholder={formatMessage({
|
|
115
|
+
id: 'signIn.passwordText',
|
|
116
|
+
defaultMessage: 'Password'
|
|
117
|
+
})}
|
|
118
|
+
classes={{
|
|
119
|
+
root: "mb-6",
|
|
120
|
+
}}
|
|
121
|
+
/>
|
|
122
|
+
<div className={cn(classes.forgotPasswordButtonContainer, 'mb-6')}>
|
|
123
|
+
<LinkButton
|
|
124
|
+
// classes={forgotPasswordClasses}
|
|
125
|
+
type="button"
|
|
126
|
+
onClick={handleForgotPassword}
|
|
127
|
+
onKeyDown={forgotPasswordHandleEnterKeyPress}
|
|
128
|
+
data-cy="SignIn-forgotPasswordButton"
|
|
129
|
+
>
|
|
130
|
+
<span className='font-normal text-xs'>
|
|
131
|
+
<FormattedMessage
|
|
132
|
+
id={'signIn.forgotPasswordText'}
|
|
133
|
+
defaultMessage={'Forgot your password?'}
|
|
134
|
+
/>
|
|
135
|
+
</span>
|
|
136
|
+
</LinkButton>
|
|
137
|
+
</div>
|
|
138
|
+
<GoogleRecaptcha {...recaptchaWidgetProps} />
|
|
139
|
+
<div className={cn(classes.buttonsContainer, '!flex flex-col gap-y-6')}>
|
|
140
|
+
<Button
|
|
141
|
+
priority="high"
|
|
142
|
+
type="submit"
|
|
143
|
+
onKeyDown={signinHandleEnterKeyPress}
|
|
144
|
+
data-cy="SignInButton-root_highPriority"
|
|
145
|
+
disabled={isBusy}
|
|
146
|
+
classes={{
|
|
147
|
+
rootClass: '!w-full',
|
|
148
|
+
content: 'capitalize font-medium text-[16px]'
|
|
149
|
+
}}
|
|
150
|
+
>
|
|
151
|
+
<FormattedMessage
|
|
152
|
+
id={'signIn.signInText'}
|
|
153
|
+
defaultMessage={'Sign In'}
|
|
154
|
+
/>
|
|
155
|
+
</Button>
|
|
156
|
+
<div className='block text-center'>
|
|
157
|
+
<span className='text-xs font-normal'>
|
|
158
|
+
<FormattedMessage
|
|
159
|
+
id={'signIn.dontHaveAccount'}
|
|
160
|
+
defaultMessage={"Don't have an account ? "}
|
|
161
|
+
/>
|
|
162
|
+
</span>
|
|
163
|
+
{' '}
|
|
164
|
+
<Link
|
|
165
|
+
to={'/create-account'}
|
|
166
|
+
className='text-xs font-normal text-blue-700 underline'
|
|
167
|
+
>
|
|
168
|
+
<FormattedMessage
|
|
169
|
+
id={'signIn.signUpNow'}
|
|
170
|
+
defaultMessage={"Sign up now "}
|
|
171
|
+
/>
|
|
172
|
+
</Link>
|
|
173
|
+
</div>
|
|
174
|
+
{showSocialLogin ? (
|
|
175
|
+
<>
|
|
176
|
+
<div className='max-w-[390px] w-full mx-auto'>
|
|
177
|
+
<label
|
|
178
|
+
className={cn(
|
|
179
|
+
'relative after_w-full after_h-[1px] after_bg-gray-100 after_block after_absolute after_top-1/2 z-[0]',
|
|
180
|
+
'w-full block'
|
|
181
|
+
)}>
|
|
182
|
+
<span
|
|
183
|
+
className={cn(
|
|
184
|
+
'text-[14px] inline-block font-normal bg-white z-[1] relative px-5',
|
|
185
|
+
)}>
|
|
186
|
+
<FormattedMessage
|
|
187
|
+
id={'signIn.orContinueWith'}
|
|
188
|
+
defaultMessage={"Or continue with"}
|
|
189
|
+
/>
|
|
190
|
+
</span>
|
|
191
|
+
</label>
|
|
192
|
+
</div>
|
|
193
|
+
<SocialLogin />
|
|
194
|
+
</>
|
|
195
|
+
) : null}
|
|
196
|
+
|
|
197
|
+
</div>
|
|
198
|
+
</Form>
|
|
199
|
+
</div>
|
|
200
|
+
);
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export default SignIn;
|
|
204
|
+
SignIn.propTypes = {
|
|
205
|
+
classes: shape({
|
|
206
|
+
buttonsContainer: string,
|
|
207
|
+
form: string,
|
|
208
|
+
forgotPasswordButton: string,
|
|
209
|
+
forgotPasswordButtonContainer: string,
|
|
210
|
+
root: string,
|
|
211
|
+
title: string
|
|
212
|
+
}),
|
|
213
|
+
setDefaultUsername: func,
|
|
214
|
+
showCreateAccount: func,
|
|
215
|
+
showForgotPassword: func,
|
|
216
|
+
initialValues: shape({
|
|
217
|
+
email: string.isRequired
|
|
218
|
+
})
|
|
219
|
+
};
|
|
220
|
+
SignIn.defaultProps = {
|
|
221
|
+
setDefaultUsername: () => { },
|
|
222
|
+
showCreateAccount: () => { },
|
|
223
|
+
showForgotPassword: () => { }
|
|
224
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
composes: gap-sm from global;
|
|
3
|
+
composes: grid from global;
|
|
4
|
+
composes: justify-items-stretch from global;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.forgotPassword {
|
|
8
|
+
composes: block from global;
|
|
9
|
+
composes: text-error from global;
|
|
10
|
+
composes: text-sm from global;
|
|
11
|
+
composes: underline from global;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.form {
|
|
15
|
+
composes: grid from global;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.modal {
|
|
19
|
+
composes: absolute from global;
|
|
20
|
+
composes: bg-subtle from global;
|
|
21
|
+
composes: bottom-0 from global;
|
|
22
|
+
composes: h-full from global;
|
|
23
|
+
composes: text-center from global;
|
|
24
|
+
composes: w-full from global;
|
|
25
|
+
|
|
26
|
+
/* TODO @TW: review (B6) */
|
|
27
|
+
/* composes: invisible from global; */
|
|
28
|
+
visibility: hidden;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.modal_active {
|
|
32
|
+
composes: modal;
|
|
33
|
+
composes: opacity-90 from global;
|
|
34
|
+
|
|
35
|
+
/* TODO @TW: review (B6) */
|
|
36
|
+
/* composes: visible from global; */
|
|
37
|
+
visibility: visible;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.buttonsContainer {
|
|
41
|
+
composes: gap-sm from global;
|
|
42
|
+
composes: grid from global;
|
|
43
|
+
composes: grid-flow-row from global;
|
|
44
|
+
composes: justify-center from global;
|
|
45
|
+
composes: w-full from global;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.forgotPasswordButtonContainer {
|
|
49
|
+
composes: flex from global;
|
|
50
|
+
composes: items-center from global;
|
|
51
|
+
composes: justify-center from global;
|
|
52
|
+
composes: justify-self-start from global;
|
|
53
|
+
composes: text-center from global;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.forgotPasswordButton {
|
|
57
|
+
composes: root from '@magento/venia-ui/lib/components/LinkButton/linkButton.module.css';
|
|
58
|
+
|
|
59
|
+
composes: p-0 from global;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.title {
|
|
63
|
+
composes: capitalize from global;
|
|
64
|
+
composes: text-lg from global;
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './signInPage';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { shape, string } from 'prop-types';
|
|
3
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
|
+
|
|
5
|
+
import { useSignInPage } from '@magento/peregrine/lib/talons/SignInPage/useSignInPage';
|
|
6
|
+
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
7
|
+
import { StoreTitle } from '@magento/venia-ui/lib/components/Head';
|
|
8
|
+
import SignIn from '@magento/venia-ui/lib/components/SignIn';
|
|
9
|
+
import cn from 'classnames';
|
|
10
|
+
|
|
11
|
+
import defaultClasses from './signInPage.module.css';
|
|
12
|
+
|
|
13
|
+
const SignInPage = props => {
|
|
14
|
+
const classes = useStyle(defaultClasses, props.classes);
|
|
15
|
+
const { signInProps } = useSignInPage(props);
|
|
16
|
+
const { formatMessage } = useIntl();
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<div className={cn(classes.root, '!py-[60px]')}>
|
|
20
|
+
<StoreTitle>
|
|
21
|
+
{formatMessage({
|
|
22
|
+
id: 'signInPage.title',
|
|
23
|
+
defaultMessage: 'Sign In'
|
|
24
|
+
})}
|
|
25
|
+
</StoreTitle>
|
|
26
|
+
<div className={cn(classes.contentContainer, 'border border-gray-100 rounded-lg')}>
|
|
27
|
+
<SignIn {...signInProps} />
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
SignInPage.defaultProps = {
|
|
34
|
+
createAccountPageUrl: '/create-account',
|
|
35
|
+
forgotPasswordPageUrl: '/forgot-password',
|
|
36
|
+
signedInRedirectUrl: '/order-history'
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
SignInPage.propTypes = {
|
|
40
|
+
classes: shape({
|
|
41
|
+
root: string,
|
|
42
|
+
header: string,
|
|
43
|
+
contentContainer: string
|
|
44
|
+
}),
|
|
45
|
+
createAccountPageUrl: string,
|
|
46
|
+
forgotPasswordPageUrl: string,
|
|
47
|
+
signedInRedirectUrl: string
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export default SignInPage;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
composes: gap-y-md from global;
|
|
3
|
+
composes: grid from global;
|
|
4
|
+
composes: justify-center from global;
|
|
5
|
+
composes: px-0 from global;
|
|
6
|
+
composes: py-lg from global;
|
|
7
|
+
composes: text-center from global;
|
|
8
|
+
grid-template-columns: minmax(auto, 512px);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.header {
|
|
12
|
+
composes: font-serif from global;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.contentContainer {
|
|
16
|
+
composes: rounded-lg from global;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
|
|
3
|
+
export const getStoreConfig = gql`
|
|
4
|
+
query {
|
|
5
|
+
storeConfig {
|
|
6
|
+
header_logo_src
|
|
7
|
+
base_url
|
|
8
|
+
store_code
|
|
9
|
+
base_media_url
|
|
10
|
+
logo_width
|
|
11
|
+
logo_height
|
|
12
|
+
logo_alt
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
getStoreConfig,
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import mergeOperations from '@magento/peregrine/lib/util/shallowMerge';
|
|
2
|
+
import DEFAULT_OPERATIONS from './logo.gql';
|
|
3
|
+
import { useQuery } from '@apollo/client';
|
|
4
|
+
|
|
5
|
+
export const useLogo = props => {
|
|
6
|
+
|
|
7
|
+
const operations = mergeOperations(DEFAULT_OPERATIONS, null);
|
|
8
|
+
const { getStoreConfig } = operations;
|
|
9
|
+
const { data, loading, error } = useQuery(getStoreConfig, {
|
|
10
|
+
fetchPolicy: 'cache-and-network',
|
|
11
|
+
nextFetchPolicy: 'cache-first'
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
return {
|
|
15
|
+
error,
|
|
16
|
+
data,
|
|
17
|
+
loading
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -12,8 +12,8 @@ export const GET_STORE_CONFIG_DATA = gql`
|
|
|
12
12
|
`;
|
|
13
13
|
|
|
14
14
|
export const GET_LEGO_SETS_QUERY = gql`
|
|
15
|
-
query getLegoSets($categoryUrlKey: String!, $activeTab: String, $filters: ProductAttributeFilterInput!, $shopby: String) {
|
|
16
|
-
legoSets(categoryUrlKey: $categoryUrlKey, activeTab: $activeTab, filters: $filters, shopby: $shopby) {
|
|
15
|
+
query getLegoSets($categoryUrlKey: String!, $activeTab: String, $filters: ProductAttributeFilterInput!, $shopby: String, $activeFilter: String) {
|
|
16
|
+
legoSets(categoryUrlKey: $categoryUrlKey, activeTab: $activeTab, filters: $filters, shopby: $shopby, activeFilter: $activeFilter) {
|
|
17
17
|
group
|
|
18
18
|
sets {
|
|
19
19
|
set_name
|