@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,213 @@
|
|
|
1
|
+
import React, { useCallback, useMemo } from 'react';
|
|
2
|
+
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
3
|
+
import { shape, string, func, bool } from 'prop-types';
|
|
4
|
+
import { useIntl } from 'react-intl';
|
|
5
|
+
import Country from '@magento/venia-ui/lib/components/Country';
|
|
6
|
+
import Region from '@magento/venia-ui/lib/components/Region';
|
|
7
|
+
import Postcode from '@magento/venia-ui/lib/components/Postcode';
|
|
8
|
+
import Checkbox from '@magento/venia-ui/lib/components/Checkbox';
|
|
9
|
+
import Field from '@magento/venia-ui/lib/components/Field';
|
|
10
|
+
import TextInput from '@magento/venia-ui/lib/components/TextInput';
|
|
11
|
+
import FormError from '@magento/venia-ui/lib/components/FormError';
|
|
12
|
+
import { isRequired } from '@magento/venia-ui/lib/util/formValidators';
|
|
13
|
+
|
|
14
|
+
import defaultClasses from './billingAddress.module.css';
|
|
15
|
+
|
|
16
|
+
import { useBillingAddress } from '@magento/peregrine/lib/talons/CheckoutPage/BillingAddress/useBillingAddress';
|
|
17
|
+
|
|
18
|
+
const BillingAddress = props => {
|
|
19
|
+
const classes = useStyle(defaultClasses, props.classes);
|
|
20
|
+
|
|
21
|
+
const {
|
|
22
|
+
isBillingAddressSame,
|
|
23
|
+
initialValues,
|
|
24
|
+
shippingAddressCountry,
|
|
25
|
+
errors
|
|
26
|
+
} = useBillingAddress(props);
|
|
27
|
+
|
|
28
|
+
const { formatMessage } = useIntl();
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Instead of defining classes={root: classes.FIELD_NAME}
|
|
32
|
+
*/
|
|
33
|
+
const fieldClasses = useMemo(() => {
|
|
34
|
+
return [
|
|
35
|
+
'first_name',
|
|
36
|
+
'last_name',
|
|
37
|
+
'country',
|
|
38
|
+
'street1',
|
|
39
|
+
'street2',
|
|
40
|
+
'city',
|
|
41
|
+
'region',
|
|
42
|
+
'postal_code',
|
|
43
|
+
'phone_number'
|
|
44
|
+
].reduce((acc, fieldName) => {
|
|
45
|
+
acc[fieldName] = { root: classes[fieldName] };
|
|
46
|
+
|
|
47
|
+
return acc;
|
|
48
|
+
}, {});
|
|
49
|
+
}, [classes]);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* These 2 functions are wrappers around the `isRequired` function
|
|
53
|
+
* of `formValidators`. They perform validations only if the
|
|
54
|
+
* billing address is different from shipping address.
|
|
55
|
+
*/
|
|
56
|
+
const isFieldRequired = useCallback((value, { isBillingAddressSame }) => {
|
|
57
|
+
if (isBillingAddressSame) {
|
|
58
|
+
/**
|
|
59
|
+
* Informed validator functions return `undefined` if
|
|
60
|
+
* validation is `true`
|
|
61
|
+
*/
|
|
62
|
+
return undefined;
|
|
63
|
+
} else {
|
|
64
|
+
return isRequired(value);
|
|
65
|
+
}
|
|
66
|
+
}, []);
|
|
67
|
+
|
|
68
|
+
const billingAddressFieldsClassName = isBillingAddressSame
|
|
69
|
+
? classes.billing_address_fields_root_hidden
|
|
70
|
+
: classes.billing_address_fields_root;
|
|
71
|
+
|
|
72
|
+
return (
|
|
73
|
+
<div>
|
|
74
|
+
<FormError
|
|
75
|
+
classes={{ root: classes.formErrorContainer }}
|
|
76
|
+
errors={Array.from(errors.values())}
|
|
77
|
+
/>
|
|
78
|
+
<div className={classes.address_check}>
|
|
79
|
+
<Checkbox
|
|
80
|
+
field="isBillingAddressSame"
|
|
81
|
+
label={formatMessage({
|
|
82
|
+
id: 'checkoutPage.billingAddressSame',
|
|
83
|
+
defaultMessage:
|
|
84
|
+
'Billing address same as shipping address'
|
|
85
|
+
})}
|
|
86
|
+
initialValue={initialValues.isBillingAddressSame}
|
|
87
|
+
/>
|
|
88
|
+
</div>
|
|
89
|
+
<div className={billingAddressFieldsClassName}>
|
|
90
|
+
<Field
|
|
91
|
+
id="firstName"
|
|
92
|
+
classes={fieldClasses.first_name}
|
|
93
|
+
label={formatMessage({
|
|
94
|
+
id: 'global.firstName',
|
|
95
|
+
defaultMessage: 'First Name'
|
|
96
|
+
})}
|
|
97
|
+
>
|
|
98
|
+
<TextInput
|
|
99
|
+
id="firstName"
|
|
100
|
+
field="firstName"
|
|
101
|
+
validate={isFieldRequired}
|
|
102
|
+
initialValue={initialValues.firstName}
|
|
103
|
+
/>
|
|
104
|
+
</Field>
|
|
105
|
+
<Field
|
|
106
|
+
id="lastName"
|
|
107
|
+
classes={fieldClasses.last_name}
|
|
108
|
+
label={formatMessage({
|
|
109
|
+
id: 'global.lastName',
|
|
110
|
+
defaultMessage: 'Last Name'
|
|
111
|
+
})}
|
|
112
|
+
>
|
|
113
|
+
<TextInput
|
|
114
|
+
id="lastName"
|
|
115
|
+
field="lastName"
|
|
116
|
+
validate={isFieldRequired}
|
|
117
|
+
initialValue={initialValues.lastName}
|
|
118
|
+
/>
|
|
119
|
+
</Field>
|
|
120
|
+
<Country
|
|
121
|
+
classes={fieldClasses.country}
|
|
122
|
+
validate={isFieldRequired}
|
|
123
|
+
initialValue={
|
|
124
|
+
/**
|
|
125
|
+
* If there is no initial value to start with
|
|
126
|
+
* use the country from shipping address.
|
|
127
|
+
*/
|
|
128
|
+
initialValues.country || shippingAddressCountry
|
|
129
|
+
}
|
|
130
|
+
/>
|
|
131
|
+
<Field
|
|
132
|
+
id="street1"
|
|
133
|
+
classes={fieldClasses.street1}
|
|
134
|
+
label={formatMessage({
|
|
135
|
+
id: 'global.streetAddress',
|
|
136
|
+
defaultMessage: 'Street Address'
|
|
137
|
+
})}
|
|
138
|
+
>
|
|
139
|
+
<TextInput
|
|
140
|
+
id="street1"
|
|
141
|
+
field="street1"
|
|
142
|
+
validate={isFieldRequired}
|
|
143
|
+
initialValue={initialValues.street1}
|
|
144
|
+
/>
|
|
145
|
+
</Field>
|
|
146
|
+
<Field
|
|
147
|
+
id="street2"
|
|
148
|
+
classes={fieldClasses.street2}
|
|
149
|
+
label={formatMessage({
|
|
150
|
+
id: 'global.streetAddress2',
|
|
151
|
+
defaultMessage: 'Street Address 2'
|
|
152
|
+
})}
|
|
153
|
+
optional={true}
|
|
154
|
+
>
|
|
155
|
+
<TextInput
|
|
156
|
+
id="street2"
|
|
157
|
+
field="street2"
|
|
158
|
+
initialValue={initialValues.street2}
|
|
159
|
+
/>
|
|
160
|
+
</Field>
|
|
161
|
+
<Field
|
|
162
|
+
id="city"
|
|
163
|
+
classes={fieldClasses.city}
|
|
164
|
+
label={formatMessage({
|
|
165
|
+
id: 'global.city',
|
|
166
|
+
defaultMessage: 'City'
|
|
167
|
+
})}
|
|
168
|
+
>
|
|
169
|
+
<TextInput
|
|
170
|
+
id="city"
|
|
171
|
+
field="city"
|
|
172
|
+
validate={isFieldRequired}
|
|
173
|
+
initialValue={initialValues.city}
|
|
174
|
+
/>
|
|
175
|
+
</Field>
|
|
176
|
+
<Region
|
|
177
|
+
classes={fieldClasses.region}
|
|
178
|
+
initialValue={initialValues.region}
|
|
179
|
+
validate={isFieldRequired}
|
|
180
|
+
/>
|
|
181
|
+
<Postcode
|
|
182
|
+
classes={fieldClasses.postal_code}
|
|
183
|
+
validate={isFieldRequired}
|
|
184
|
+
initialValue={initialValues.postcode}
|
|
185
|
+
/>
|
|
186
|
+
<Field
|
|
187
|
+
id="phoneNumber"
|
|
188
|
+
classes={fieldClasses.phone_number}
|
|
189
|
+
label={formatMessage({
|
|
190
|
+
id: 'global.phoneNumber',
|
|
191
|
+
defaultMessage: 'Phone Number'
|
|
192
|
+
})}
|
|
193
|
+
>
|
|
194
|
+
<TextInput
|
|
195
|
+
id="phoneNumber"
|
|
196
|
+
field="phoneNumber"
|
|
197
|
+
validate={isFieldRequired}
|
|
198
|
+
initialValue={initialValues.phoneNumber}
|
|
199
|
+
/>
|
|
200
|
+
</Field>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
);
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
BillingAddress.propTypes = {
|
|
207
|
+
classes: shape({ root: string }),
|
|
208
|
+
shouldSubmit: bool.isRequired,
|
|
209
|
+
onBillingAddressChangedError: func,
|
|
210
|
+
onBillingAddressChangedSuccess: func
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
export default BillingAddress;
|
package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.module.css
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.billing_address_fields_root {
|
|
2
|
+
composes: gap-x-xs from global;
|
|
3
|
+
composes: gap-y-sm from global;
|
|
4
|
+
composes: grid from global;
|
|
5
|
+
composes: px-0 from global;
|
|
6
|
+
composes: py-xs from global;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.billing_address_fields_root_hidden {
|
|
10
|
+
composes: h-0 from global;
|
|
11
|
+
composes: invisible from global;
|
|
12
|
+
composes: opacity-0 from global;
|
|
13
|
+
composes: overflow-hidden from global;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.formErrorContainer {
|
|
17
|
+
composes: pt-sm from global;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.first_name,
|
|
21
|
+
.last_name {
|
|
22
|
+
composes: col-end-span2 from global;
|
|
23
|
+
|
|
24
|
+
composes: lg_col-end-span1 from global;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.country,
|
|
28
|
+
.street1,
|
|
29
|
+
.street2,
|
|
30
|
+
.address_check,
|
|
31
|
+
.city,
|
|
32
|
+
.region,
|
|
33
|
+
.postal_code,
|
|
34
|
+
.phone_number {
|
|
35
|
+
composes: col-end-span2 from global;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './billingAddress';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { bool, func, shape, string } from 'prop-types';
|
|
3
|
+
import { FormattedMessage } from 'react-intl';
|
|
4
|
+
import { useGuestSignIn } from '@magento/peregrine/lib/talons/CheckoutPage/GuestSignIn/useGuestSignIn';
|
|
5
|
+
|
|
6
|
+
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
7
|
+
import CreateAccount from '@magento/venia-ui/lib/components/CreateAccount';
|
|
8
|
+
import ForgotPassword from '@magento/venia-ui/lib/components/ForgotPassword';
|
|
9
|
+
import LinkButton from '@magento/venia-ui/lib/components/LinkButton';
|
|
10
|
+
import SignIn from '@magento/venia-ui/lib/components/SignIn';
|
|
11
|
+
import defaultClasses from './guestSignIn.module.css';
|
|
12
|
+
|
|
13
|
+
const GuestSignIn = props => {
|
|
14
|
+
const { isActive, toggleActiveContent, initialValues } = props;
|
|
15
|
+
|
|
16
|
+
const talonProps = useGuestSignIn({ toggleActiveContent });
|
|
17
|
+
const {
|
|
18
|
+
handleBackToCheckout,
|
|
19
|
+
toggleCreateAccountView,
|
|
20
|
+
toggleForgotPasswordView,
|
|
21
|
+
view
|
|
22
|
+
} = talonProps;
|
|
23
|
+
|
|
24
|
+
const classes = useStyle(defaultClasses, props.classes);
|
|
25
|
+
|
|
26
|
+
const rootClass = isActive ? classes.root : classes.root_hidden;
|
|
27
|
+
|
|
28
|
+
let content;
|
|
29
|
+
if (view === 'SIGNIN') {
|
|
30
|
+
content = (
|
|
31
|
+
<SignIn
|
|
32
|
+
classes={{ modal_active: undefined, root: classes.signInRoot }}
|
|
33
|
+
showCreateAccount={toggleCreateAccountView}
|
|
34
|
+
showForgotPassword={toggleForgotPasswordView}
|
|
35
|
+
initialValues={initialValues}
|
|
36
|
+
/>
|
|
37
|
+
);
|
|
38
|
+
} else if (view === 'FORGOT_PASSWORD') {
|
|
39
|
+
content = (
|
|
40
|
+
<ForgotPassword
|
|
41
|
+
classes={{ root: classes.forgotPasswordRoot }}
|
|
42
|
+
onCancel={toggleForgotPasswordView}
|
|
43
|
+
/>
|
|
44
|
+
);
|
|
45
|
+
} else if (view === 'CREATE_ACCOUNT') {
|
|
46
|
+
content = (
|
|
47
|
+
<CreateAccount
|
|
48
|
+
classes={{ root: classes.createAccountRoot }}
|
|
49
|
+
isCancelButtonHidden={false}
|
|
50
|
+
onCancel={toggleCreateAccountView}
|
|
51
|
+
/>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<div className={rootClass}>
|
|
57
|
+
<h1 aria-live="polite" className={classes.header}>
|
|
58
|
+
<FormattedMessage
|
|
59
|
+
id="checkoutPage.guestSignIn.header"
|
|
60
|
+
defaultMessage="Account Sign-in"
|
|
61
|
+
/>
|
|
62
|
+
</h1>
|
|
63
|
+
<div className={classes.contentContainer}>
|
|
64
|
+
{content}
|
|
65
|
+
<LinkButton onClick={handleBackToCheckout}>
|
|
66
|
+
<FormattedMessage
|
|
67
|
+
id="checkoutPage.guestSignIn.backToCheckout"
|
|
68
|
+
defaultMessage="Back to Checkout"
|
|
69
|
+
/>
|
|
70
|
+
</LinkButton>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export default GuestSignIn;
|
|
77
|
+
|
|
78
|
+
GuestSignIn.propTypes = {
|
|
79
|
+
classes: shape({
|
|
80
|
+
root: string,
|
|
81
|
+
root_hidden: string,
|
|
82
|
+
header: string,
|
|
83
|
+
contentContainer: string,
|
|
84
|
+
signInRoot: string,
|
|
85
|
+
forgotPasswordRoot: string,
|
|
86
|
+
createAccountRoot: string
|
|
87
|
+
}),
|
|
88
|
+
isActive: bool.isRequired,
|
|
89
|
+
toggleActiveContent: func.isRequired,
|
|
90
|
+
initialValues: shape({
|
|
91
|
+
email: string.isRequired
|
|
92
|
+
})
|
|
93
|
+
};
|
package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.module.css
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
composes: grid from global;
|
|
3
|
+
grid-template-columns: minmax(auto, 512px);
|
|
4
|
+
composes: justify-center from global;
|
|
5
|
+
composes: gap-y-md from global;
|
|
6
|
+
composes: text-center from global;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.root_hidden {
|
|
10
|
+
composes: root;
|
|
11
|
+
|
|
12
|
+
composes: hidden from global;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.header {
|
|
16
|
+
composes: font-serif from global;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.contentContainer {
|
|
20
|
+
composes: border-0 from global;
|
|
21
|
+
composes: p-0 from global;
|
|
22
|
+
composes: rounded-md from global;
|
|
23
|
+
|
|
24
|
+
composes: lg_border-2 from global;
|
|
25
|
+
composes: lg_border-solid from global;
|
|
26
|
+
composes: lg_border-subtle from global;
|
|
27
|
+
composes: lg_p-md from global;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.signInRoot {
|
|
31
|
+
composes: root from '@magento/venia-ui/lib/components/SignIn/signIn.module.css';
|
|
32
|
+
|
|
33
|
+
composes: px-0 from global;
|
|
34
|
+
composes: py-xs from global;
|
|
35
|
+
|
|
36
|
+
composes: lg_p-0 from global;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.forgotPasswordRoot {
|
|
40
|
+
composes: root from '@magento/venia-ui/lib/components/ForgotPassword/forgotPassword.module.css';
|
|
41
|
+
|
|
42
|
+
composes: px-0 from global;
|
|
43
|
+
composes: py-xs from global;
|
|
44
|
+
|
|
45
|
+
composes: lg_p-0 from global;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.createAccountRoot {
|
|
49
|
+
composes: root from '@magento/venia-ui/lib/components/CreateAccount/createAccount.module.css';
|
|
50
|
+
|
|
51
|
+
composes: px-0 from global;
|
|
52
|
+
composes: py-xs from global;
|
|
53
|
+
|
|
54
|
+
composes: lg_p-0 from global;
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './guestSignIn.js';
|
package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/__fixtures__/cartItems.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
cart: {
|
|
3
|
+
id: 'GXtkt675mPd3gYuvhWLd5iw5ekVoDj1b',
|
|
4
|
+
total_quantity: 7,
|
|
5
|
+
items: [
|
|
6
|
+
{
|
|
7
|
+
id: '29568',
|
|
8
|
+
product: {
|
|
9
|
+
id: 1093,
|
|
10
|
+
name: 'Jillian Top',
|
|
11
|
+
thumbnail: {
|
|
12
|
+
url:
|
|
13
|
+
'https://master-7rqtwti-c5v7sxvquxwl4.eu-4.magentosite.cloud/media/catalog/product/cache/d3ba9f7bcd3b0724e976dc5144b29c7d/v/t/vt12-kh_main_2.jpg',
|
|
14
|
+
__typename: 'ProductImage'
|
|
15
|
+
},
|
|
16
|
+
__typename: 'ConfigurableProduct'
|
|
17
|
+
},
|
|
18
|
+
quantity: 3,
|
|
19
|
+
configurable_options: [
|
|
20
|
+
{
|
|
21
|
+
configurable_product_option_uid: 179,
|
|
22
|
+
option_label: 'Fashion Color',
|
|
23
|
+
configurable_product_option_value_uid: 18,
|
|
24
|
+
value_label: 'Peach',
|
|
25
|
+
__typename: 'SelectedConfigurableOption'
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
configurable_product_option_uid: 182,
|
|
29
|
+
option_label: 'Fashion Size',
|
|
30
|
+
configurable_product_option_value_uid: 27,
|
|
31
|
+
value_label: 'M',
|
|
32
|
+
__typename: 'SelectedConfigurableOption'
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
__typename: 'ConfigurableCartItem'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: '29570',
|
|
39
|
+
product: {
|
|
40
|
+
id: 1115,
|
|
41
|
+
name: 'Juno Sweater',
|
|
42
|
+
thumbnail: {
|
|
43
|
+
url:
|
|
44
|
+
'https://master-7rqtwti-c5v7sxvquxwl4.eu-4.magentosite.cloud/media/catalog/product/cache/d3ba9f7bcd3b0724e976dc5144b29c7d/v/s/vsw02-pe_main_2.jpg',
|
|
45
|
+
__typename: 'ProductImage'
|
|
46
|
+
},
|
|
47
|
+
__typename: 'ConfigurableProduct'
|
|
48
|
+
},
|
|
49
|
+
quantity: 1,
|
|
50
|
+
configurable_options: [
|
|
51
|
+
{
|
|
52
|
+
configurable_product_option_uid: 179,
|
|
53
|
+
option_label: 'Fashion Color',
|
|
54
|
+
configurable_product_option_value_uid: 21,
|
|
55
|
+
value_label: 'Rain',
|
|
56
|
+
__typename: 'SelectedConfigurableOption'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
configurable_product_option_uid: 182,
|
|
60
|
+
option_label: 'Fashion Size',
|
|
61
|
+
configurable_product_option_value_uid: 29,
|
|
62
|
+
value_label: 'XS',
|
|
63
|
+
__typename: 'SelectedConfigurableOption'
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
__typename: 'ConfigurableCartItem'
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: '29572',
|
|
70
|
+
product: {
|
|
71
|
+
id: 1152,
|
|
72
|
+
name: 'Angelina Tank Dress',
|
|
73
|
+
thumbnail: {
|
|
74
|
+
url:
|
|
75
|
+
'https://master-7rqtwti-c5v7sxvquxwl4.eu-4.magentosite.cloud/media/catalog/product/cache/d3ba9f7bcd3b0724e976dc5144b29c7d/v/d/vd01-ll_main_2.jpg',
|
|
76
|
+
__typename: 'ProductImage'
|
|
77
|
+
},
|
|
78
|
+
__typename: 'ConfigurableProduct'
|
|
79
|
+
},
|
|
80
|
+
quantity: 3,
|
|
81
|
+
configurable_options: [
|
|
82
|
+
{
|
|
83
|
+
configurable_product_option_uid: 179,
|
|
84
|
+
option_label: 'Fashion Color',
|
|
85
|
+
configurable_product_option_value_uid: 20,
|
|
86
|
+
value_label: 'Lilac',
|
|
87
|
+
__typename: 'SelectedConfigurableOption'
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
configurable_product_option_uid: 182,
|
|
91
|
+
option_label: 'Fashion Size',
|
|
92
|
+
configurable_product_option_value_uid: 26,
|
|
93
|
+
value_label: 'L',
|
|
94
|
+
__typename: 'SelectedConfigurableOption'
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
__typename: 'ConfigurableCartItem'
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
__typename: 'Cart'
|
|
101
|
+
}
|
|
102
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './itemsReview';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormattedMessage } from 'react-intl';
|
|
3
|
+
|
|
4
|
+
import ProductOptions from '@magento/venia-ui/lib/components/LegacyMiniCart/productOptions';
|
|
5
|
+
import Image from '@magento/venia-ui/lib/components/Image';
|
|
6
|
+
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
7
|
+
import configuredVariant from '@magento/peregrine/lib/util/configuredVariant';
|
|
8
|
+
|
|
9
|
+
import defaultClasses from './item.module.css';
|
|
10
|
+
|
|
11
|
+
const Item = props => {
|
|
12
|
+
const {
|
|
13
|
+
classes: propClasses,
|
|
14
|
+
product,
|
|
15
|
+
quantity,
|
|
16
|
+
configurable_options,
|
|
17
|
+
isHidden,
|
|
18
|
+
configurableThumbnailSource
|
|
19
|
+
} = props;
|
|
20
|
+
const classes = useStyle(defaultClasses, propClasses);
|
|
21
|
+
const className = isHidden ? classes.root_hidden : classes.root_visible;
|
|
22
|
+
const configured_variant = configuredVariant(configurable_options, product);
|
|
23
|
+
return (
|
|
24
|
+
<div className={className}>
|
|
25
|
+
<Image
|
|
26
|
+
alt={product.name}
|
|
27
|
+
classes={{ root: classes.thumbnail }}
|
|
28
|
+
width={100}
|
|
29
|
+
resource={
|
|
30
|
+
configurableThumbnailSource === 'itself' &&
|
|
31
|
+
configured_variant
|
|
32
|
+
? configured_variant.thumbnail.url
|
|
33
|
+
: product.thumbnail.url
|
|
34
|
+
}
|
|
35
|
+
/>
|
|
36
|
+
<span className={classes.name}>{product.name}</span>
|
|
37
|
+
<ProductOptions
|
|
38
|
+
options={configurable_options}
|
|
39
|
+
classes={{
|
|
40
|
+
options: classes.options
|
|
41
|
+
}}
|
|
42
|
+
/>
|
|
43
|
+
<span className={classes.quantity}>
|
|
44
|
+
<FormattedMessage
|
|
45
|
+
id={'checkoutPage.quantity'}
|
|
46
|
+
defaultMessage={'Qty : {quantity}'}
|
|
47
|
+
values={{ quantity }}
|
|
48
|
+
/>
|
|
49
|
+
</span>
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export default Item;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
composes: gap-x-xs from global;
|
|
3
|
+
composes: grid from global;
|
|
4
|
+
composes: grid-cols-autoFirst from global;
|
|
5
|
+
composes: overflow-hidden from global;
|
|
6
|
+
|
|
7
|
+
grid-template-rows: auto auto 1fr;
|
|
8
|
+
transition-delay: 64ms;
|
|
9
|
+
transition-duration: 384ms;
|
|
10
|
+
transition-property: opacity, visbility;
|
|
11
|
+
transition-timing-function: var(--venia-global-anim-standard);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.root_visible {
|
|
15
|
+
composes: root;
|
|
16
|
+
|
|
17
|
+
composes: h-auto from global;
|
|
18
|
+
composes: mt-sm from global;
|
|
19
|
+
composes: opacity-100 from global;
|
|
20
|
+
composes: visible from global;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.root_hidden {
|
|
24
|
+
composes: root;
|
|
25
|
+
|
|
26
|
+
composes: h-0 from global;
|
|
27
|
+
composes: invisible from global;
|
|
28
|
+
composes: mt-0 from global;
|
|
29
|
+
composes: opacity-0 from global;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.thumbnail {
|
|
33
|
+
composes: border from global;
|
|
34
|
+
composes: border-solid from global;
|
|
35
|
+
composes: border-subtle from global;
|
|
36
|
+
grid-column: 1 / span 1;
|
|
37
|
+
grid-row: 1 / span 3;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.name {
|
|
41
|
+
composes: font-semibold from global;
|
|
42
|
+
grid-column: 2 / span 1;
|
|
43
|
+
grid-row: 1 / span 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.quantity {
|
|
47
|
+
composes: mt-xs from global;
|
|
48
|
+
composes: text-sm from global;
|
|
49
|
+
grid-column: 2 / span 1;
|
|
50
|
+
grid-row: 3 / span 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.options {
|
|
54
|
+
composes: gap-2xs from global;
|
|
55
|
+
composes: grid from global;
|
|
56
|
+
composes: mt-xs from global;
|
|
57
|
+
composes: text-sm from global;
|
|
58
|
+
grid-column: 2 / span 1;
|
|
59
|
+
grid-row: 2 / span 1;
|
|
60
|
+
}
|