@magento/venia-ui 8.0.0-alpha.6 → 9.0.0-alpha.3
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 +17 -2
- package/lib/RootComponents/CMS/cms.js +3 -3
- package/lib/RootComponents/CMS/{cms.css → cms.module.css} +0 -0
- package/lib/RootComponents/Category/NoProductsFound/noProductsFound.js +1 -1
- package/lib/RootComponents/Category/NoProductsFound/{noProductsFound.css → noProductsFound.module.css} +0 -0
- package/lib/RootComponents/Category/__tests__/__snapshots__/category.spec.js.snap +11 -0
- package/lib/RootComponents/Category/__tests__/__snapshots__/categoryContent.shimmer.spec.js.snap +430 -0
- package/lib/RootComponents/Category/__tests__/__snapshots__/categoryContent.spec.js.snap +272 -306
- package/lib/RootComponents/Category/__tests__/categoryContent.shimmer.spec.js +11 -0
- package/lib/RootComponents/Category/__tests__/categoryContent.spec.js +52 -6
- package/lib/RootComponents/Category/category.js +1 -1
- package/lib/RootComponents/Category/{category.css → category.module.css} +3 -1
- package/lib/RootComponents/Category/categoryContent.js +64 -32
- package/lib/RootComponents/Category/categoryContent.shimmer.js +74 -0
- package/lib/RootComponents/Product/__tests__/__snapshots__/product.shimmer.spec.js.snap +159 -0
- package/lib/RootComponents/Product/__tests__/__snapshots__/product.spec.js.snap +10 -20
- package/lib/RootComponents/Product/__tests__/product.shimmer.spec.js +49 -0
- package/lib/RootComponents/Product/__tests__/product.spec.js +45 -8
- package/lib/RootComponents/Product/product.js +10 -3
- package/lib/RootComponents/Product/product.shimmer.js +96 -0
- package/lib/RootComponents/Shimmer/index.js +1 -0
- package/lib/RootComponents/Shimmer/shimmer.js +26 -0
- package/lib/RootComponents/Shimmer/types/index.js +23 -0
- package/lib/__mocks__/classify.js +2 -0
- package/lib/components/Accordion/accordion.js +1 -1
- package/lib/components/Accordion/{accordion.css → accordion.module.css} +0 -0
- package/lib/components/Accordion/section.js +1 -1
- package/lib/components/Accordion/{section.css → section.module.css} +0 -0
- package/lib/components/AccountChip/__tests__/__snapshots__/accountChip.spec.js.snap +4 -4
- package/lib/components/AccountChip/accountChip.js +1 -1
- package/lib/components/AccountChip/{accountChip.css → accountChip.module.css} +1 -1
- package/lib/components/AccountInformationPage/__tests__/__snapshots__/accountInformationPage.spec.js.snap +0 -6
- package/lib/components/AccountInformationPage/__tests__/__snapshots__/editForm.spec.js.snap +50 -6
- package/lib/components/AccountInformationPage/__tests__/__snapshots__/editModal.spec.js.snap +50 -4
- package/lib/components/AccountInformationPage/__tests__/accountInformationPage.spec.js +1 -12
- package/lib/components/AccountInformationPage/accountInformationPage.js +1 -7
- package/lib/components/AccountInformationPage/{accountInformationPage.css → accountInformationPage.module.css} +1 -1
- package/lib/components/AccountInformationPage/editForm.js +1 -1
- package/lib/components/AccountInformationPage/{editForm.css → editForm.module.css} +0 -0
- package/lib/components/AccountInformationPage/editModal.js +1 -1
- package/lib/components/AccountInformationPage/{editModal.css → editModal.module.css} +0 -0
- package/lib/components/AccountMenu/accountMenu.js +1 -1
- package/lib/components/AccountMenu/{accountMenu.css → accountMenu.module.css} +0 -0
- package/lib/components/AccountMenu/accountMenuItems.js +1 -1
- package/lib/components/AccountMenu/{accountMenuItems.css → accountMenuItems.module.css} +1 -1
- package/lib/components/AddToCartDialog/__tests__/__snapshots__/addToCartDialog.spec.js.snap +12 -1
- package/lib/components/AddToCartDialog/addToCartDialog.js +15 -8
- package/lib/components/AddToCartDialog/{addToCartDialog.css → addToCartDialog.module.css} +1 -1
- package/lib/components/AddressBookPage/__tests__/__snapshots__/addEditDialog.spec.js.snap +8 -8
- package/lib/components/AddressBookPage/__tests__/__snapshots__/addressBookPage.spec.js.snap +73 -4
- package/lib/components/AddressBookPage/__tests__/__snapshots__/addressCard.spec.js.snap +110 -0
- package/lib/components/AddressBookPage/addEditDialog.js +1 -1
- package/lib/components/AddressBookPage/{addEditDialog.css → addEditDialog.module.css} +0 -0
- package/lib/components/AddressBookPage/addressBookPage.js +1 -1
- package/lib/components/AddressBookPage/{addressBookPage.css → addressBookPage.module.css} +0 -0
- package/lib/components/AddressBookPage/addressCard.js +1 -1
- package/lib/components/AddressBookPage/{addressCard.css → addressCard.module.css} +3 -3
- package/lib/components/App/__tests__/__snapshots__/app.spec.js.snap +2 -6
- package/lib/components/App/__tests__/app.spec.js +4 -1
- package/lib/components/App/app.js +6 -7
- package/lib/components/AriaButton/__tests__/__snapshots__/ariaButton.spec.js.snap +7 -0
- package/lib/components/AriaButton/__tests__/ariaButton.spec.js +41 -0
- package/lib/components/AriaButton/ariaButton.js +40 -0
- package/lib/components/AriaButton/index.js +1 -0
- package/lib/components/AuthBar/authBar.js +1 -1
- package/lib/components/AuthBar/{authBar.css → authBar.module.css} +1 -1
- package/lib/components/AuthModal/authModal.js +1 -1
- package/lib/components/AuthModal/{authModal.css → authModal.module.css} +2 -2
- package/lib/components/Breadcrumbs/__tests__/__snapshots__/breadcrumbs.spec.js.snap +10 -6
- package/lib/components/Breadcrumbs/__tests__/breadcrumbs.spec.js +13 -1
- package/lib/components/Breadcrumbs/breadcrumbs.js +29 -10
- package/lib/components/Breadcrumbs/{breadcrumbs.css → breadcrumbs.module.css} +0 -0
- package/lib/components/Breadcrumbs/breadcrumbs.shimmer.js +24 -0
- package/lib/components/Breadcrumbs/index.js +1 -0
- package/lib/components/Button/button.js +18 -7
- package/lib/components/Button/{button.css → button.module.css} +1 -1
- package/lib/components/ButtonGroup/button.js +1 -1
- package/lib/components/ButtonGroup/{button.css → button.module.css} +1 -1
- package/lib/components/ButtonGroup/buttonGroup.js +1 -1
- package/lib/components/ButtonGroup/{buttonGroup.css → buttonGroup.module.css} +0 -0
- package/lib/components/CartPage/GiftCards/__tests__/__snapshots__/giftCard.spec.js.snap +22 -0
- package/lib/components/CartPage/GiftCards/__tests__/__snapshots__/giftCards.spec.js.snap +66 -0
- package/lib/components/CartPage/GiftCards/__tests__/giftCards.spec.js +10 -0
- package/lib/components/CartPage/GiftCards/giftCard.js +2 -2
- package/lib/components/CartPage/GiftCards/{giftCard.css → giftCard.module.css} +0 -0
- package/lib/components/CartPage/GiftCards/giftCards.js +4 -19
- package/lib/components/CartPage/GiftCards/{giftCards.css → giftCards.module.css} +2 -2
- package/lib/components/CartPage/PriceAdjustments/CouponCode/__tests__/__snapshots__/couponCode.spec.js.snap +58 -0
- package/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +4 -62
- package/lib/components/CartPage/PriceAdjustments/CouponCode/{couponCode.css → couponCode.module.css} +1 -1
- package/lib/components/CartPage/PriceAdjustments/GiftOptions/__tests__/__snapshots__/giftOptions.spec.js.snap +4 -4
- package/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +5 -6
- package/lib/components/CartPage/PriceAdjustments/GiftOptions/{giftOptions.css → giftOptions.module.css} +0 -0
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/__tests__/__snapshots__/shippingForm.spec.js.snap +48 -0
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/__tests__/__snapshots__/shippingMethods.spec.js.snap +11 -0
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/__tests__/__snapshots__/shippingRadios.spec.js.snap +8 -8
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.js +3 -37
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/{shippingForm.css → shippingForm.module.css} +1 -1
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.js +3 -4
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/{shippingMethods.css → shippingMethods.module.css} +1 -1
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.js +1 -1
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/{shippingRadio.css → shippingRadio.module.css} +0 -0
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.js +4 -4
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/{shippingRadios.css → shippingRadios.module.css} +1 -1
- package/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +2 -2
- package/lib/components/CartPage/PriceAdjustments/{priceAdjustments.css → priceAdjustments.module.css} +0 -0
- package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/priceSummary.spec.js.snap +22 -0
- package/lib/components/CartPage/PriceSummary/priceSummary.js +3 -18
- package/lib/components/CartPage/PriceSummary/{priceSummary.css → priceSummary.module.css} +0 -0
- package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productForm.spec.js.snap +77 -8
- package/lib/components/CartPage/ProductListing/EditModal/editModal.js +1 -1
- package/lib/components/CartPage/ProductListing/EditModal/productDetail.js +1 -1
- package/lib/components/CartPage/ProductListing/EditModal/{productDetail.css → productDetail.module.css} +0 -0
- package/lib/components/CartPage/ProductListing/EditModal/productForm.js +1 -76
- package/lib/components/CartPage/ProductListing/EditModal/{productForm.css → productForm.module.css} +3 -3
- package/lib/components/CartPage/ProductListing/__tests__/__snapshots__/product.spec.js.snap +36 -9
- package/lib/components/CartPage/ProductListing/product.js +3 -3
- package/lib/components/CartPage/ProductListing/{product.css → product.module.css} +0 -0
- package/lib/components/CartPage/ProductListing/productListing.js +5 -19
- package/lib/components/CartPage/ProductListing/{productListing.css → productListing.module.css} +0 -0
- package/lib/components/CartPage/ProductListing/quantity.js +1 -1
- package/lib/components/CartPage/ProductListing/{quantity.css → quantity.module.css} +1 -1
- package/lib/components/CartPage/__tests__/cartPage.spec.js +10 -1
- package/lib/components/CartPage/cartPage.js +4 -9
- package/lib/components/CartPage/{cartPage.css → cartPage.module.css} +0 -0
- package/lib/components/CategoryList/categoryList.js +3 -2
- package/lib/components/CategoryList/{categoryList.css → categoryList.module.css} +0 -0
- package/lib/components/CategoryList/categoryTile.js +9 -5
- package/lib/components/CategoryList/{categoryTile.css → categoryTile.module.css} +0 -0
- package/lib/components/CategoryTree/__tests__/categoryLeaf.spec.js +3 -3
- package/lib/components/CategoryTree/categoryBranch.js +1 -1
- package/lib/components/CategoryTree/categoryBranch.module.css +11 -0
- package/lib/components/CategoryTree/categoryLeaf.js +6 -5
- package/lib/components/CategoryTree/{categoryLeaf.css → categoryLeaf.module.css} +0 -0
- package/lib/components/CategoryTree/categoryTree.js +8 -3
- package/lib/components/CategoryTree/{categoryTree.css → categoryTree.module.css} +0 -0
- package/lib/components/Checkbox/__tests__/__snapshots__/checkbox.spec.js.snap +2 -2
- package/lib/components/Checkbox/checkbox.js +3 -6
- package/lib/components/Checkbox/{checkbox.css → checkbox.module.css} +0 -0
- package/lib/components/Checkout/Receipt/__tests__/__snapshots__/receipt.spec.js.snap +11 -0
- package/lib/components/Checkout/Receipt/receipt.js +1 -1
- package/lib/components/Checkout/Receipt/{receipt.css → receipt.module.css} +0 -0
- package/lib/components/Checkout/__tests__/__snapshots__/addressForm.spec.js.snap +46 -0
- package/lib/components/Checkout/__tests__/__snapshots__/checkoutButton.spec.js.snap +22 -0
- package/lib/components/Checkout/__tests__/__snapshots__/overview.spec.js.snap +66 -0
- package/lib/components/Checkout/__tests__/__snapshots__/paymentsForm.spec.js.snap +50 -4
- package/lib/components/Checkout/__tests__/__snapshots__/shippingform.spec.js.snap +46 -0
- package/lib/components/Checkout/addressForm.js +1 -1
- package/lib/components/Checkout/{addressForm.css → addressForm.module.css} +3 -3
- package/lib/components/Checkout/braintreeDropin.js +1 -1
- package/lib/components/Checkout/{braintreeDropin.css → braintreeDropin.module.css} +0 -0
- package/lib/components/Checkout/checkoutButton.js +1 -1
- package/lib/components/Checkout/{checkoutButton.css → checkoutButton.module.css} +1 -1
- package/lib/components/Checkout/flow.js +1 -1
- package/lib/components/Checkout/{flow.css → flow.module.css} +0 -0
- package/lib/components/Checkout/form.js +1 -1
- package/lib/components/Checkout/{form.css → form.module.css} +2 -2
- package/lib/components/Checkout/label.js +1 -1
- package/lib/components/Checkout/{label.css → label.module.css} +0 -0
- package/lib/components/Checkout/paymentsForm.js +1 -1
- package/lib/components/Checkout/{paymentsForm.css → paymentsForm.module.css} +3 -3
- package/lib/components/Checkout/section.js +1 -1
- package/lib/components/Checkout/{section.css → section.module.css} +0 -0
- package/lib/components/Checkout/shippingForm.js +1 -1
- package/lib/components/Checkout/shippingForm.module.css +19 -0
- package/lib/components/CheckoutPage/AddressBook/__tests__/__snapshots__/addressBook.spec.js.snap +76 -1
- package/lib/components/CheckoutPage/AddressBook/addressBook.js +23 -22
- package/lib/components/CheckoutPage/AddressBook/{addressBook.css → addressBook.module.css} +0 -0
- package/lib/components/CheckoutPage/AddressBook/addressCard.js +1 -1
- package/lib/components/CheckoutPage/AddressBook/{addressCard.css → addressCard.module.css} +0 -0
- package/lib/components/CheckoutPage/BillingAddress/__tests__/billingAddress.spec.js +1 -1
- package/lib/components/CheckoutPage/BillingAddress/billingAddress.js +1 -1
- package/lib/components/CheckoutPage/BillingAddress/{billingAddress.css → billingAddress.module.css} +0 -0
- package/lib/components/CheckoutPage/GuestSignIn/__tests__/__snapshots__/guestSignIn.spec.js.snap +33 -0
- package/lib/components/CheckoutPage/GuestSignIn/guestSignIn.js +1 -1
- package/lib/components/CheckoutPage/GuestSignIn/{guestSignIn.css → guestSignIn.module.css} +3 -3
- package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/itemsReview.spec.js.snap +3 -3
- package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/showAllButton.spec.js.snap +2 -2
- package/lib/components/CheckoutPage/ItemsReview/item.js +1 -1
- package/lib/components/CheckoutPage/ItemsReview/{item.css → item.module.css} +0 -0
- package/lib/components/CheckoutPage/ItemsReview/itemsReview.js +1 -1
- package/lib/components/CheckoutPage/ItemsReview/{itemsReview.css → itemsReview.module.css} +0 -0
- package/lib/components/CheckoutPage/ItemsReview/showAllButton.js +1 -1
- package/lib/components/CheckoutPage/ItemsReview/{showAllButton.css → showAllButton.module.css} +1 -1
- package/lib/components/CheckoutPage/OrderConfirmationPage/__tests__/__snapshots__/createAccount.spec.js.snap +54 -8
- package/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +1 -1
- package/lib/components/CheckoutPage/OrderConfirmationPage/{createAccount.css → createAccount.module.css} +1 -1
- package/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +1 -1
- package/lib/components/CheckoutPage/OrderConfirmationPage/{orderConfirmationPage.css → orderConfirmationPage.module.css} +0 -0
- package/lib/components/CheckoutPage/OrderSummary/orderSummary.js +1 -1
- package/lib/components/CheckoutPage/OrderSummary/{orderSummary.css → orderSummary.module.css} +0 -0
- package/lib/components/CheckoutPage/PaymentInformation/__tests__/__snapshots__/braintreeSummary.spec.js.snap +33 -0
- package/lib/components/CheckoutPage/PaymentInformation/__tests__/__snapshots__/paymentInformation.spec.js.snap +80 -0
- package/lib/components/CheckoutPage/PaymentInformation/__tests__/braintreeSummary.spec.js +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/__tests__/creditCard.spec.js +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/__tests__/paymentInformation.spec.js +10 -0
- package/lib/components/CheckoutPage/PaymentInformation/brainTreeDropIn.js +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/{braintreeDropin.css → braintreeDropin.module.css} +0 -0
- package/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.js +14 -11
- package/lib/components/CheckoutPage/PaymentInformation/{braintreeSummary.css → braintreeSummary.module.css} +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/creditCard.js +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/{creditCard.css → creditCard.module.css} +0 -0
- package/lib/components/CheckoutPage/PaymentInformation/editCard.js +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/{editCard.css → editCard.module.css} +0 -0
- package/lib/components/CheckoutPage/PaymentInformation/editModal.js +1 -2
- package/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js +2 -4
- package/lib/components/CheckoutPage/PaymentInformation/{paymentInformation.css → paymentInformation.module.css} +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/paymentMethods.js +2 -5
- package/lib/components/CheckoutPage/PaymentInformation/{paymentMethods.css → paymentMethods.module.css} +0 -0
- package/lib/components/CheckoutPage/PaymentInformation/summary.js +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/{summary.css → summary.module.css} +0 -0
- package/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.js +1 -1
- package/lib/components/CheckoutPage/PriceAdjustments/{priceAdjustments.css → priceAdjustments.module.css} +0 -0
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/__snapshots__/customerForm.spec.js.snap +62 -4
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/__snapshots__/guestForm.spec.js.snap +70 -0
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +1 -3
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/{customerForm.css → customerForm.module.css} +0 -0
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +1 -3
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/{guestForm.css → guestForm.module.css} +0 -0
- package/lib/components/CheckoutPage/ShippingInformation/__tests__/__snapshots__/editModal.spec.js.snap +4 -4
- package/lib/components/CheckoutPage/ShippingInformation/__tests__/__snapshots__/shippingInformation.spec.js.snap +22 -0
- package/lib/components/CheckoutPage/ShippingInformation/card.js +1 -1
- package/lib/components/CheckoutPage/ShippingInformation/{card.css → card.module.css} +0 -0
- package/lib/components/CheckoutPage/ShippingInformation/editModal.js +1 -1
- package/lib/components/CheckoutPage/ShippingInformation/{editModal.css → editModal.module.css} +0 -0
- package/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +2 -4
- package/lib/components/CheckoutPage/ShippingInformation/{shippingInformation.css → shippingInformation.module.css} +1 -1
- package/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/completedView.spec.js.snap +22 -0
- package/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/shippingMethod.spec.js.snap +28 -4
- package/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/updateModal.spec.js.snap +54 -8
- package/lib/components/CheckoutPage/ShippingMethod/__tests__/shippingMethod.spec.js +3 -3
- package/lib/components/CheckoutPage/ShippingMethod/completedView.js +1 -1
- package/lib/components/CheckoutPage/ShippingMethod/{completedView.css → completedView.module.css} +0 -0
- package/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +3 -6
- package/lib/components/CheckoutPage/ShippingMethod/{shippingMethod.css → shippingMethod.module.css} +0 -0
- package/lib/components/CheckoutPage/ShippingMethod/shippingRadios.js +1 -1
- package/lib/components/CheckoutPage/ShippingMethod/{shippingRadios.css → shippingRadios.module.css} +1 -1
- package/lib/components/CheckoutPage/ShippingMethod/updateModal.js +1 -1
- package/lib/components/CheckoutPage/ShippingMethod/{updateModal.css → updateModal.module.css} +0 -0
- package/lib/components/CheckoutPage/__tests__/__snapshots__/checkoutPage.spec.js.snap +170 -1
- package/lib/components/CheckoutPage/__tests__/checkoutPage.spec.js +28 -2
- package/lib/components/CheckoutPage/checkoutPage.js +1 -1
- package/lib/components/CheckoutPage/{checkoutPage.css → checkoutPage.module.css} +4 -4
- package/lib/components/CmsBlock/cmsBlock.js +1 -1
- package/lib/components/CmsBlock/{cmsBlock.css → cmsBlock.module.css} +0 -0
- package/lib/components/CommunicationsPage/__tests__/__snapshots__/communicationsPage.spec.js.snap +56 -14
- package/lib/components/CommunicationsPage/__tests__/communicationsPage.spec.js +4 -17
- package/lib/components/CommunicationsPage/communicationsPage.js +2 -13
- package/lib/components/CommunicationsPage/{communicationsPage.css → communicationsPage.module.css} +0 -0
- package/lib/components/Country/country.js +1 -1
- package/lib/components/Country/{country.css → country.module.css} +0 -0
- package/lib/components/CreateAccount/__tests__/__snapshots__/createAccount.spec.js.snap +54 -8
- package/lib/components/CreateAccount/__tests__/createAccount.spec.js +1 -2
- package/lib/components/CreateAccount/createAccount.js +1 -7
- package/lib/components/CreateAccount/{createAccount.css → createAccount.module.css} +2 -2
- package/lib/components/CreateAccountPage/__tests__/__snapshots__/createAccountPage.spec.js.snap +12 -9
- package/lib/components/CreateAccountPage/__tests__/createAccountPage.spec.js +21 -15
- package/lib/components/CreateAccountPage/createAccountPage.js +34 -13
- package/lib/components/CreateAccountPage/createAccountPage.module.css +20 -0
- package/lib/components/Dialog/__stories__/dialog.js +1 -1
- package/lib/components/Dialog/__stories__/{dialog.css → dialog.module.css} +0 -0
- package/lib/components/Dialog/__tests__/__snapshots__/dialog.spec.js.snap +150 -12
- package/lib/components/Dialog/dialog.js +1 -1
- package/lib/components/Dialog/{dialog.css → dialog.module.css} +2 -2
- package/lib/components/ErrorMessage/errorMessage.js +1 -1
- package/lib/components/ErrorMessage/{errorMessage.css → errorMessage.module.css} +0 -0
- package/lib/components/ErrorView/errorView.js +1 -1
- package/lib/components/ErrorView/{errorView.css → errorView.module.css} +0 -0
- package/lib/components/Field/field.js +1 -1
- package/lib/components/Field/{field.css → field.module.css} +0 -0
- package/lib/components/Field/fieldIcons.js +1 -1
- package/lib/components/Field/{fieldIcons.css → fieldIcons.module.css} +0 -0
- package/lib/components/Field/message.js +1 -1
- package/lib/components/Field/{message.css → message.module.css} +0 -0
- package/lib/components/FilterModal/CurrentFilters/__tests__/currentFilter.spec.js +73 -0
- package/lib/components/FilterModal/CurrentFilters/__tests__/currentFilters.spec.js +60 -0
- package/lib/components/FilterModal/CurrentFilters/currentFilter.js +1 -1
- package/lib/components/FilterModal/CurrentFilters/{currentFilter.css → currentFilter.module.css} +0 -0
- package/lib/components/FilterModal/CurrentFilters/currentFilters.js +1 -1
- package/lib/components/FilterModal/CurrentFilters/{currentFilters.css → currentFilters.module.css} +0 -0
- package/lib/components/FilterModal/FilterList/__tests__/filterDefault.spec.js +77 -0
- package/lib/components/FilterModal/FilterList/__tests__/filterItem.spec.js +1 -6
- package/lib/components/FilterModal/FilterList/__tests__/filterList.spec.js +94 -0
- package/lib/components/FilterModal/FilterList/filterDefault.js +2 -9
- package/lib/components/FilterModal/FilterList/{filterDefault.css → filterDefault.module.css} +0 -0
- package/lib/components/FilterModal/FilterList/filterItem.js +1 -2
- package/lib/components/FilterModal/FilterList/filterList.js +11 -16
- package/lib/components/FilterModal/FilterList/{filterList.css → filterList.module.css} +0 -4
- package/lib/components/FilterModal/__tests__/filterBlock.spec.js +77 -0
- package/lib/components/FilterModal/__tests__/filterFooter.spec.js +59 -0
- package/lib/components/FilterModal/__tests__/filterModal.spec.js +42 -3
- package/lib/components/FilterModal/filterBlock.js +16 -16
- package/lib/components/FilterModal/{filterBlock.css → filterBlock.module.css} +0 -9
- package/lib/components/FilterModal/filterFooter.js +1 -1
- package/lib/components/FilterModal/{filterFooter.css → filterFooter.module.css} +0 -0
- package/lib/components/FilterModal/filterModal.js +2 -2
- package/lib/components/FilterModal/{filterModal.css → filterModal.module.css} +0 -0
- package/lib/components/FilterModal/{filterSearch.css → filterSearch.module.css} +0 -0
- package/lib/components/FilterModalOpenButton/__tests__/filterModalOpenButton.shimmer.spec.js +63 -0
- package/lib/components/FilterModalOpenButton/__tests__/filterModalOpenButton.spec.js +43 -0
- package/lib/components/FilterModalOpenButton/filterModalOpenButton.js +5 -3
- package/lib/components/FilterModalOpenButton/{filterModalOpenButton.css → filterModalOpenButton.module.css} +1 -1
- package/lib/components/FilterModalOpenButton/filterModalOpenButton.shimmer.js +27 -0
- package/lib/components/FilterModalOpenButton/filterModalOpenButton.shimmer.module.css +4 -0
- package/lib/components/FilterModalOpenButton/index.js +3 -0
- package/lib/components/FilterSidebar/__tests__/filterSidebar.spec.js +82 -5
- package/lib/components/FilterSidebar/filterSidebar.js +26 -23
- package/lib/components/FilterSidebar/{filterSidebar.css → filterSidebar.module.css} +0 -0
- package/lib/components/FilterSidebar/filterSidebar.shimmer.js +24 -0
- package/lib/components/FilterSidebar/index.js +1 -0
- package/lib/components/Footer/__tests__/__snapshots__/footer.spec.js.snap +3 -3
- package/lib/components/Footer/footer.js +3 -3
- package/lib/components/Footer/{footer.css → footer.module.css} +0 -0
- package/lib/components/ForgotPassword/ForgotPasswordForm/__tests__/__snapshots__/forgotPasswordForm.spec.js.snap +23 -0
- package/lib/components/ForgotPassword/ForgotPasswordForm/forgotPasswordForm.js +1 -1
- package/lib/components/ForgotPassword/ForgotPasswordForm/{forgotPasswordForm.css → forgotPasswordForm.module.css} +2 -2
- package/lib/components/ForgotPassword/FormSubmissionSuccessful/formSubmissionSuccessful.js +1 -1
- package/lib/components/ForgotPassword/FormSubmissionSuccessful/{formSubmissionSuccessful.css → formSubmissionSuccessful.module.css} +0 -0
- package/lib/components/ForgotPassword/forgotPassword.js +1 -1
- package/lib/components/ForgotPassword/{forgotPassword.css → forgotPassword.module.css} +0 -0
- package/lib/components/ForgotPasswordPage/__tests__/__snapshots__/forgotPasswordPage.spec.js.snap +16 -0
- package/lib/components/ForgotPasswordPage/__tests__/forgotPasswordPage.spec.js +34 -0
- package/lib/components/ForgotPasswordPage/forgotPasswordPage.js +53 -0
- package/lib/components/ForgotPasswordPage/forgotPasswordPage.module.css +20 -0
- package/lib/components/ForgotPasswordPage/index.js +1 -0
- package/lib/components/FormError/formError.js +1 -1
- package/lib/components/FormError/{formError.css → formError.module.css} +0 -0
- package/lib/components/Gallery/__tests__/__snapshots__/addToCartButton.spec.js.snap +177 -0
- package/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap +64 -4
- package/lib/components/Gallery/__tests__/__snapshots__/item.spec.js.snap +54 -8
- package/lib/components/Gallery/__tests__/addToCartButton.spec.js +44 -0
- package/lib/components/Gallery/__tests__/gallery.shimmer.spec.js +75 -0
- package/lib/components/Gallery/__tests__/gallery.spec.js +19 -8
- package/lib/components/Gallery/__tests__/item.spec.js +19 -5
- package/lib/components/Gallery/addToCartButton.js +109 -0
- package/lib/components/Gallery/addToCartButton.module.css +36 -0
- package/lib/components/Gallery/gallery.js +4 -3
- package/lib/components/Gallery/{gallery.css → gallery.module.css} +0 -0
- package/lib/components/Gallery/gallery.shimmer.js +39 -0
- package/lib/components/Gallery/index.js +2 -0
- package/lib/components/Gallery/item.js +58 -40
- package/lib/components/Gallery/{item.css → item.module.css} +24 -30
- package/lib/components/Gallery/item.shimmer.js +38 -0
- package/lib/components/Header/__stories__/header.js +1 -1
- package/lib/components/Header/__tests__/__snapshots__/cartTrigger.spec.js.snap +12 -12
- package/lib/components/Header/__tests__/__snapshots__/header.spec.js.snap +4 -25
- package/lib/components/Header/__tests__/cartTrigger.spec.js +7 -8
- package/lib/components/Header/__tests__/currencySwitcher.spec.js +0 -1
- package/lib/components/Header/__tests__/header.spec.js +6 -4
- package/lib/components/Header/__tests__/storeSwitcher.spec.js +0 -1
- package/lib/components/Header/accountTrigger.js +1 -1
- package/lib/components/Header/{accountTrigger.css → accountTrigger.module.css} +1 -1
- package/lib/components/Header/cartTrigger.js +1 -1
- package/lib/components/Header/{cartTrigger.css → cartTrigger.module.css} +1 -1
- package/lib/components/Header/currencySwitcher.js +6 -3
- package/lib/components/Header/{currencySwitcher.css → currencySwitcher.module.css} +0 -0
- package/lib/components/Header/currencySwitcher.shimmer.js +6 -0
- package/lib/components/Header/header.js +4 -7
- package/lib/components/Header/{header.css → header.module.css} +1 -1
- package/lib/components/Header/navTrigger.js +1 -1
- package/lib/components/Header/{navTrigger.css → navTrigger.module.css} +1 -1
- package/lib/components/Header/onlineIndicator.js +1 -1
- package/lib/components/Header/{onlineIndicator.css → onlineIndicator.module.css} +0 -0
- package/lib/components/Header/searchTrigger.js +1 -1
- package/lib/components/Header/{searchTrigger.css → searchTrigger.module.css} +1 -1
- package/lib/components/Header/storeSwitcher.js +5 -2
- package/lib/components/Header/{storeSwitcher.css → storeSwitcher.module.css} +0 -0
- package/lib/components/Header/storeSwitcher.shimmer.js +6 -0
- package/lib/components/Header/switcherItem.js +1 -1
- package/lib/components/Header/{switcherItem.css → switcherItem.module.css} +0 -0
- package/lib/components/HomePage/homePage.ee.js +1 -1
- package/lib/components/HomePage/{homePage.css → homePage.module.css} +5 -0
- package/lib/components/Icon/icon.js +3 -3
- package/lib/components/Icon/{icon.css → icon.module.css} +0 -0
- package/lib/components/Image/__stories__/image.js +1 -1
- package/lib/components/Image/__stories__/{image.css → image.module.css} +0 -0
- package/lib/components/Image/image.js +1 -1
- package/lib/components/Image/{image.css → image.module.css} +1 -1
- package/lib/components/LegacyMiniCart/__tests__/__snapshots__/cartOptions.spec.js.snap +2 -2
- package/lib/components/LegacyMiniCart/__tests__/__snapshots__/header.spec.js.snap +10 -1
- package/lib/components/LegacyMiniCart/__tests__/__snapshots__/kebab.spec.js.snap +20 -2
- package/lib/components/LegacyMiniCart/__tests__/__snapshots__/miniCart.spec.js.snap +2 -2
- package/lib/components/LegacyMiniCart/__tests__/__snapshots__/section.spec.js.snap +20 -2
- package/lib/components/LegacyMiniCart/body.js +1 -1
- package/lib/components/LegacyMiniCart/{body.css → body.module.css} +0 -0
- package/lib/components/LegacyMiniCart/cartOptions.gql.js +1 -2
- package/lib/components/LegacyMiniCart/cartOptions.js +1 -1
- package/lib/components/LegacyMiniCart/{cartOptions.css → cartOptions.module.css} +2 -2
- package/lib/components/LegacyMiniCart/emptyMiniCartBody.js +1 -1
- package/lib/components/LegacyMiniCart/{emptyMiniCartBody.css → emptyMiniCartBody.module.css} +1 -1
- package/lib/components/LegacyMiniCart/footer.js +1 -1
- package/lib/components/LegacyMiniCart/{footer.css → footer.module.css} +0 -0
- package/lib/components/LegacyMiniCart/header.js +1 -1
- package/lib/components/LegacyMiniCart/{header.css → header.module.css} +0 -0
- package/lib/components/LegacyMiniCart/kebab.js +1 -1
- package/lib/components/LegacyMiniCart/{kebab.css → kebab.module.css} +0 -0
- package/lib/components/LegacyMiniCart/mask.js +1 -1
- package/lib/components/LegacyMiniCart/mask.module.css +4 -0
- package/lib/components/LegacyMiniCart/miniCart.js +1 -1
- package/lib/components/LegacyMiniCart/{miniCart.css → miniCart.module.css} +0 -0
- package/lib/components/LegacyMiniCart/product.js +1 -1
- package/lib/components/LegacyMiniCart/{product.css → product.module.css} +0 -0
- package/lib/components/LegacyMiniCart/productList.js +1 -1
- package/lib/components/LegacyMiniCart/{productList.css → productList.module.css} +0 -0
- package/lib/components/LegacyMiniCart/productOptions.js +1 -1
- package/lib/components/LegacyMiniCart/{productOptions.css → productOptions.module.css} +0 -0
- package/lib/components/LegacyMiniCart/section.js +1 -1
- package/lib/components/LegacyMiniCart/{section.css → section.module.css} +1 -1
- package/lib/components/LegacyMiniCart/totalsSummary.js +1 -1
- package/lib/components/LegacyMiniCart/{totalsSummary.css → totalsSummary.module.css} +0 -0
- package/lib/components/Link/__tests__/link.spec.js +53 -0
- package/lib/components/Link/index.js +1 -0
- package/lib/components/Link/link.js +38 -0
- package/lib/components/LinkButton/linkButton.js +1 -1
- package/lib/components/LinkButton/{linkButton.css → linkButton.module.css} +1 -1
- package/lib/components/LoadingIndicator/index.js +1 -0
- package/lib/components/LoadingIndicator/indicator.js +1 -1
- package/lib/components/LoadingIndicator/{indicator.css → indicator.module.css} +0 -0
- package/lib/components/{PageLoadingIndicator/indicator.js → LoadingIndicator/spinner.js} +3 -3
- package/lib/components/{PageLoadingIndicator/indicator.css → LoadingIndicator/spinner.module.css} +0 -0
- package/lib/components/Logo/logo.js +6 -7
- package/lib/components/MagentoRoute/magentoRoute.js +12 -6
- package/lib/components/Main/main.js +1 -1
- package/lib/components/Main/{main.css → main.module.css} +0 -0
- package/lib/components/Mask/mask.js +12 -50
- package/lib/components/Mask/{mask.css → mask.module.css} +0 -0
- package/lib/components/MegaMenu/__tests__/MegaMenu.spec.js +48 -15
- package/lib/components/MegaMenu/__tests__/MegaMenuItem.spec.js +66 -26
- package/lib/components/MegaMenu/__tests__/Submenu.spec.js +16 -4
- package/lib/components/MegaMenu/__tests__/SubmenuColumn.spec.js +2 -3
- package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenu.spec.js.snap +35 -3
- package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenuItem.spec.js.snap +47 -56
- package/lib/components/MegaMenu/__tests__/__snapshots__/Submenu.spec.js.snap +40 -45
- package/lib/components/MegaMenu/__tests__/__snapshots__/SubmenuColumn.spec.js.snap +2 -2
- package/lib/components/MegaMenu/megaMenu.js +32 -7
- package/lib/components/MegaMenu/{megaMenu.css → megaMenu.module.css} +0 -0
- package/lib/components/MegaMenu/megaMenuItem.js +80 -12
- package/lib/components/MegaMenu/{megaMenuItem.css → megaMenuItem.module.css} +10 -0
- package/lib/components/MegaMenu/submenu.js +45 -9
- package/lib/components/MegaMenu/{submenu.css → submenu.module.css} +5 -0
- package/lib/components/MegaMenu/submenuColumn.js +33 -11
- package/lib/components/MegaMenu/{submenuColumn.css → submenuColumn.module.css} +0 -0
- package/lib/components/MiniCart/ProductList/__tests__/__snapshots__/item.spec.js.snap +12 -12
- package/lib/components/MiniCart/ProductList/item.js +5 -4
- package/lib/components/MiniCart/ProductList/{item.css → item.module.css} +0 -0
- package/lib/components/MiniCart/ProductList/productList.js +11 -3
- package/lib/components/MiniCart/ProductList/{productList.css → productList.module.css} +0 -0
- package/lib/components/MiniCart/__tests__/__snapshots__/miniCart.spec.js.snap +22 -0
- package/lib/components/MiniCart/miniCart.gql.js +1 -1
- package/lib/components/MiniCart/miniCart.js +4 -2
- package/lib/components/MiniCart/{miniCart.css → miniCart.module.css} +1 -1
- package/lib/components/MyAccount/ResetPassword/__tests__/__snapshots__/resetPassword.spec.js.snap +50 -4
- package/lib/components/MyAccount/ResetPassword/resetPassword.js +1 -1
- package/lib/components/MyAccount/ResetPassword/{resetPassword.css → resetPassword.module.css} +1 -1
- package/lib/components/MyAccount/accountLink.js +1 -1
- package/lib/components/MyAccount/{accountLink.css → accountLink.module.css} +0 -0
- package/lib/components/MyAccount/myAccount.js +1 -1
- package/lib/components/MyAccount/{myAccount.css → myAccount.module.css} +0 -0
- package/lib/components/Navigation/__tests__/__snapshots__/navHeader.spec.js.snap +2 -2
- package/lib/components/Navigation/navHeader.js +3 -3
- package/lib/components/Navigation/{navHeader.css → navHeader.module.css} +0 -0
- package/lib/components/Navigation/navigation.js +1 -1
- package/lib/components/Navigation/{navigation.css → navigation.module.css} +0 -0
- package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/item.spec.js.snap +12 -1
- package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/orderDetails.spec.js.snap +75 -2
- package/lib/components/OrderHistoryPage/OrderDetails/__tests__/orderDetails.spec.js +42 -0
- package/lib/components/OrderHistoryPage/OrderDetails/billingInformation.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/{billingInformation.css → billingInformation.module.css} +0 -0
- package/lib/components/OrderHistoryPage/OrderDetails/item.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/{item.css → item.module.css} +0 -0
- package/lib/components/OrderHistoryPage/OrderDetails/items.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/{items.css → items.module.css} +0 -0
- package/lib/components/OrderHistoryPage/OrderDetails/orderDetails.js +26 -8
- package/lib/components/OrderHistoryPage/OrderDetails/{orderDetails.css → orderDetails.module.css} +0 -0
- package/lib/components/OrderHistoryPage/OrderDetails/orderTotal.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/{orderTotal.css → orderTotal.module.css} +0 -0
- package/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/{paymentMethod.css → paymentMethod.module.css} +0 -0
- package/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/{shippingInformation.css → shippingInformation.module.css} +0 -0
- package/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/{shippingMethod.css → shippingMethod.module.css} +0 -0
- package/lib/components/OrderHistoryPage/__tests__/__snapshots__/orderHistoryPage.spec.js.snap +81 -1
- package/lib/components/OrderHistoryPage/__tests__/__snapshots__/orderRow.spec.js.snap +297 -0
- package/lib/components/OrderHistoryPage/__tests__/orderRow.spec.js +36 -0
- package/lib/components/OrderHistoryPage/collapsedImageGallery.js +1 -1
- package/lib/components/OrderHistoryPage/{collapsedImageGallery.css → collapsedImageGallery.module.css} +0 -0
- package/lib/components/OrderHistoryPage/orderHistoryPage.js +1 -1
- package/lib/components/OrderHistoryPage/{orderHistoryPage.css → orderHistoryPage.module.css} +2 -2
- package/lib/components/OrderHistoryPage/orderProgressBar.js +1 -1
- package/lib/components/OrderHistoryPage/{orderProgressBar.css → orderProgressBar.module.css} +0 -0
- package/lib/components/OrderHistoryPage/orderRow.js +9 -4
- package/lib/components/OrderHistoryPage/{orderRow.css → orderRow.module.css} +0 -0
- package/lib/components/PageLoadingIndicator/__tests__/pageLoadingIndicator.spec.js +63 -0
- package/lib/components/PageLoadingIndicator/index.js +1 -1
- package/lib/components/PageLoadingIndicator/pageLoadingIndicator.js +35 -0
- package/lib/components/PageLoadingIndicator/pageLoadingIndicator.module.css +39 -0
- package/lib/components/Pagination/navButton.js +1 -1
- package/lib/components/Pagination/{navButton.css → navButton.module.css} +2 -2
- package/lib/components/Pagination/pagination.js +1 -1
- package/lib/components/Pagination/{pagination.css → pagination.module.css} +0 -0
- package/lib/components/Pagination/tile.js +1 -1
- package/lib/components/Pagination/{tile.css → tile.module.css} +0 -0
- package/lib/components/Password/__tests__/__snapshots__/password.spec.js.snap +26 -4
- package/lib/components/Password/password.js +1 -1
- package/lib/components/Password/{password.css → password.module.css} +1 -1
- package/lib/components/Postcode/postcode.js +1 -1
- package/lib/components/Postcode/{postcode.css → postcode.module.css} +0 -0
- package/lib/components/ProductFullDetail/__tests__/__snapshots__/productFullDetail.spec.js.snap +369 -110
- package/lib/components/ProductFullDetail/__tests__/productFullDetail.spec.js +46 -3
- package/lib/components/ProductFullDetail/productFullDetail.js +27 -15
- package/lib/components/ProductFullDetail/{productFullDetail.css → productFullDetail.module.css} +3 -3
- package/lib/components/ProductImageCarousel/__tests__/__snapshots__/carousel.spec.js.snap +71 -19
- package/lib/components/ProductImageCarousel/__tests__/__snapshots__/thumbnail.spec.js.snap +16 -13
- package/lib/components/ProductImageCarousel/__tests__/carousel.spec.js +4 -4
- package/lib/components/ProductImageCarousel/__tests__/thumbnail.spec.js +2 -2
- package/lib/components/ProductImageCarousel/carousel.js +30 -14
- package/lib/components/ProductImageCarousel/{carousel.css → carousel.module.css} +10 -2
- package/lib/components/ProductImageCarousel/carousel.shimmer.js +51 -0
- package/lib/components/ProductImageCarousel/carousel.shimmer.module.css +7 -0
- package/lib/components/ProductImageCarousel/thumbnail.js +5 -4
- package/lib/components/ProductImageCarousel/{thumbnail.css → thumbnail.module.css} +0 -0
- package/lib/components/ProductOptions/__tests__/__snapshots__/option.spec.js.snap +3 -5
- package/lib/components/ProductOptions/__tests__/__snapshots__/options.spec.js.snap +6 -10
- package/lib/components/ProductOptions/__tests__/__snapshots__/swatch.spec.js.snap +4 -4
- package/lib/components/ProductOptions/index.js +1 -0
- package/lib/components/ProductOptions/option.js +2 -4
- package/lib/components/ProductOptions/{option.css → option.module.css} +1 -0
- package/lib/components/ProductOptions/option.shimmer.js +25 -0
- package/lib/components/ProductOptions/options.shimmer.js +16 -0
- package/lib/components/ProductOptions/swatch.js +1 -1
- package/lib/components/ProductOptions/{swatch.css → swatch.module.css} +1 -1
- package/lib/components/ProductOptions/swatchList.js +1 -1
- package/lib/components/ProductOptions/swatchList.module.css +3 -0
- package/lib/components/ProductOptions/tile.js +1 -1
- package/lib/components/ProductOptions/{tile.css → tile.module.css} +1 -1
- package/lib/components/ProductOptions/tileList.js +1 -1
- package/lib/components/ProductOptions/{tileList.css → tileList.module.css} +0 -0
- package/lib/components/ProductOptions/tileList.shimmer.js +32 -0
- package/lib/components/ProductQuantity/quantity.js +1 -1
- package/lib/components/ProductQuantity/{quantity.css → quantity.module.css} +0 -0
- package/lib/components/ProductSort/__tests__/__snapshots__/productSort.spec.js.snap +17 -3
- package/lib/components/ProductSort/__tests__/productSort.shimmer.spec.js +63 -0
- package/lib/components/ProductSort/index.js +1 -0
- package/lib/components/ProductSort/productSort.js +7 -2
- package/lib/components/ProductSort/{productSort.css → productSort.module.css} +3 -3
- package/lib/components/ProductSort/productSort.shimmer.js +28 -0
- package/lib/components/ProductSort/productSort.shimmer.module.css +14 -0
- package/lib/components/ProductSort/sortItem.js +1 -1
- package/lib/components/ProductSort/{sortItem.css → sortItem.module.css} +0 -0
- package/lib/components/RadioGroup/__tests__/__snapshots__/radioGroup.spec.js.snap +32 -32
- package/lib/components/RadioGroup/radio.js +1 -1
- package/lib/components/RadioGroup/{radio.css → radio.module.css} +0 -0
- package/lib/components/RadioGroup/radioGroup.js +3 -2
- package/lib/components/RadioGroup/{radioGroup.css → radioGroup.module.css} +0 -0
- package/lib/components/Region/region.js +1 -1
- package/lib/components/Region/{region.css → region.module.css} +0 -0
- package/lib/components/RichContent/richContent.js +1 -1
- package/lib/components/RichContent/{richContent.css → richContent.module.css} +0 -0
- package/lib/components/RichText/richText.js +1 -1
- package/lib/components/RichText/{richText.css → richText.module.css} +0 -0
- package/lib/components/Routes/__tests__/authRoute.spec.js +55 -0
- package/lib/components/Routes/authRoute.js +36 -0
- package/lib/components/Routes/routes.js +3 -1
- package/lib/components/SavedPaymentsPage/__tests__/__snapshots__/creditCard.spec.js.snap +76 -1
- package/lib/components/SavedPaymentsPage/creditCard.js +1 -1
- package/lib/components/SavedPaymentsPage/{creditCard.css → creditCard.module.css} +3 -3
- package/lib/components/SavedPaymentsPage/savedPaymentsPage.js +1 -1
- package/lib/components/SavedPaymentsPage/{savedPaymentsPage.css → savedPaymentsPage.module.css} +0 -0
- package/lib/components/ScrollAnchor/scrollAnchor.js +1 -1
- package/lib/components/ScrollAnchor/{scrollAnchor.css → scrollAnchor.module.css} +0 -0
- package/lib/components/SearchBar/__stories__/searchBar.js +1 -1
- package/lib/components/SearchBar/__tests__/__snapshots__/suggestedCategories.spec.js.snap +24 -4
- package/lib/components/SearchBar/__tests__/__snapshots__/suggestedProduct.spec.js.snap +1 -1
- package/lib/components/SearchBar/__tests__/suggestedCategories.spec.js +5 -6
- package/lib/components/SearchBar/autocomplete.js +1 -1
- package/lib/components/SearchBar/{autocomplete.css → autocomplete.module.css} +0 -0
- package/lib/components/SearchBar/searchBar.js +1 -1
- package/lib/components/SearchBar/{searchBar.css → searchBar.module.css} +1 -0
- package/lib/components/SearchBar/suggestedCategories.js +1 -1
- package/lib/components/SearchBar/{suggestedCategories.css → suggestedCategories.module.css} +0 -0
- package/lib/components/SearchBar/suggestedCategory.js +1 -1
- package/lib/components/SearchBar/{suggestedCategory.css → suggestedCategory.module.css} +0 -0
- package/lib/components/SearchBar/suggestedProduct.js +1 -1
- package/lib/components/SearchBar/{suggestedProduct.css → suggestedProduct.module.css} +0 -0
- package/lib/components/SearchBar/suggestedProducts.js +1 -1
- package/lib/components/SearchBar/{suggestedProducts.css → suggestedProducts.module.css} +0 -0
- package/lib/components/SearchBar/suggestions.js +1 -1
- package/lib/components/SearchBar/{suggestions.css → suggestions.module.css} +0 -0
- package/lib/components/SearchPage/__tests__/__snapshots__/searchPage.spec.js.snap +63 -90
- package/lib/components/SearchPage/__tests__/searchPage.spec.js +27 -5
- package/lib/components/SearchPage/searchPage.js +41 -9
- package/lib/components/SearchPage/{searchPage.css → searchPage.module.css} +0 -0
- package/lib/components/Select/select.js +1 -1
- package/lib/components/Select/{select.css → select.module.css} +1 -1
- package/lib/components/Shimmer/__stories__/shimmer.js +72 -0
- package/lib/components/Shimmer/__tests__/__snapshots__/shimmer.spec.js.snap +12 -0
- package/lib/components/Shimmer/__tests__/shimmer.spec.js +74 -0
- package/lib/components/Shimmer/index.js +1 -0
- package/lib/components/Shimmer/shimmer.js +101 -0
- package/lib/components/Shimmer/shimmer.module.css +77 -0
- package/lib/components/SignIn/__tests__/__snapshots__/signIn.spec.js.snap +4 -4
- package/lib/components/SignIn/signIn.gql.js +1 -2
- package/lib/components/SignIn/signIn.js +3 -3
- package/lib/components/SignIn/{signIn.css → signIn.module.css} +2 -1
- package/lib/components/SignInPage/__tests__/__snapshots__/signInPage.spec.js.snap +16 -0
- package/lib/components/SignInPage/__tests__/signInPage.spec.js +31 -0
- package/lib/components/SignInPage/index.js +1 -0
- package/lib/components/SignInPage/signInPage.js +55 -0
- package/lib/components/SignInPage/signInPage.module.css +20 -0
- package/lib/components/SortedByContainer/__tests__/sortedByContainer.shimmer.spec.js +36 -0
- package/lib/components/SortedByContainer/index.js +3 -0
- package/lib/components/SortedByContainer/sortedByContainer.js +2 -2
- package/lib/components/SortedByContainer/sortedByContainer.module.css +16 -0
- package/lib/components/SortedByContainer/sortedByContainer.shimmer.js +24 -0
- package/lib/components/StockStatusMessage/stockStatusMessage.js +1 -1
- package/lib/components/StockStatusMessage/{stockStatusMessage.css → stockStatusMessage.module.css} +0 -0
- package/lib/components/StoreCodeRoute/storeCodeRoute.js +3 -3
- package/lib/components/TextArea/textArea.js +3 -2
- package/lib/components/TextArea/{textArea.css → textArea.module.css} +1 -1
- package/lib/components/TextInput/textInput.js +3 -2
- package/lib/components/TextInput/{textInput.css → textInput.module.css} +2 -2
- package/lib/components/ToastContainer/toast.js +1 -1
- package/lib/components/ToastContainer/{toast.css → toast.module.css} +0 -0
- package/lib/components/ToastContainer/toastContainer.js +1 -1
- package/lib/components/ToastContainer/{toastContainer.css → toastContainer.module.css} +0 -0
- package/lib/components/Trigger/trigger.js +1 -1
- package/lib/components/Trigger/trigger.module.css +3 -0
- package/lib/components/Wishlist/AddToListButton/__tests__/__snapshots__/addToListButton.ce.spec.js.snap +26 -3
- package/lib/components/Wishlist/AddToListButton/__tests__/__snapshots__/addToListButton.ee.spec.js.snap +39 -3
- package/lib/components/Wishlist/AddToListButton/__tests__/__snapshots__/useCommonToasts.spec.js.snap +30 -3
- package/lib/components/Wishlist/AddToListButton/__tests__/addToListButton.ce.spec.js +18 -3
- package/lib/components/Wishlist/AddToListButton/__tests__/addToListButton.ee.spec.js +22 -3
- package/lib/components/Wishlist/AddToListButton/addToListButton.ce.js +7 -3
- package/lib/components/Wishlist/AddToListButton/addToListButton.ee.js +10 -3
- package/lib/components/Wishlist/AddToListButton/{addToListButton.css → addToListButton.module.css} +3 -4
- package/lib/components/Wishlist/WishlistDialog/CreateWishlistForm/__tests__/__snapshots__/createWishlistForm.spec.js.snap +44 -0
- package/lib/components/Wishlist/WishlistDialog/CreateWishlistForm/createWishlistForm.js +1 -1
- package/lib/components/Wishlist/WishlistDialog/CreateWishlistForm/{createWishlistForm.css → createWishlistForm.module.css} +0 -0
- package/lib/components/Wishlist/WishlistDialog/WishlistLineItem/wishlistLineItem.js +1 -1
- package/lib/components/Wishlist/WishlistDialog/WishlistLineItem/{wishlistLineItem.css → wishlistLineItem.module.css} +0 -0
- package/lib/components/Wishlist/WishlistDialog/wishlistDialog.js +1 -1
- package/lib/components/Wishlist/WishlistDialog/{wishlistDialog.css → wishlistDialog.module.css} +0 -0
- package/lib/components/WishlistPage/__tests__/__snapshots__/actionMenu.ee.spec.js.snap +2 -0
- package/lib/components/WishlistPage/__tests__/__snapshots__/createWishlist.ee.spec.js.snap +2 -2
- package/lib/components/WishlistPage/__tests__/__snapshots__/wishlistItem.spec.js.snap +2 -2
- package/lib/components/WishlistPage/__tests__/actionMenu.ee.spec.js +13 -1
- package/lib/components/WishlistPage/actionMenu.ee.js +6 -1
- package/lib/components/WishlistPage/createWishlist.ee.js +1 -1
- package/lib/components/WishlistPage/{createWishlist.css → createWishlist.module.css} +2 -2
- package/lib/components/WishlistPage/wishlist.js +2 -2
- package/lib/components/WishlistPage/{wishlist.css → wishlist.module.css} +1 -1
- package/lib/components/WishlistPage/wishlistConfirmRemoveProductDialog.js +1 -1
- package/lib/components/WishlistPage/{wishlistConfirmRemoveProductDialog.css → wishlistConfirmRemoveProductDialog.module.css} +2 -2
- package/lib/components/WishlistPage/wishlistEditFavoritesListDialog.js +1 -1
- package/lib/components/WishlistPage/{wishlistEditFavoritesListDialog.css → wishlistEditFavoritesListDialog.module.css} +3 -3
- package/lib/components/WishlistPage/wishlistItem.js +2 -2
- package/lib/components/WishlistPage/{wishlistItem.css → wishlistItem.module.css} +1 -1
- package/lib/components/WishlistPage/wishlistItems.js +1 -1
- package/lib/components/WishlistPage/{wishlistItems.css → wishlistItems.module.css} +0 -0
- package/lib/components/WishlistPage/wishlistListActionsDialog.js +1 -1
- package/lib/components/WishlistPage/wishlistMoreActionsDialog.js +1 -1
- package/lib/components/WishlistPage/{wishlistMoreActionsDialog.css → wishlistMoreActionsDialog.module.css} +0 -0
- package/lib/components/WishlistPage/wishlistPage.js +1 -1
- package/lib/components/WishlistPage/{wishlistPage.css → wishlistPage.module.css} +0 -0
- package/lib/components/{clickable.css → clickable.module.css} +0 -0
- package/lib/defaultRoutes.json +31 -7
- package/lib/{index.css → index.module.css} +1 -1
- package/lib/targets/RootShimmerTypes.js +31 -0
- package/lib/targets/__tests__/RootShimmerTypes.spec.js +22 -0
- package/lib/targets/__tests__/makeRoutesTarget.spec.js +29 -3
- package/lib/targets/makeRoutesTarget.js +19 -3
- package/lib/targets/venia-ui-declare.js +43 -3
- package/lib/targets/venia-ui-intercept.js +8 -0
- package/lib/{tokens.css → tokens.module.css} +0 -0
- package/package.json +11 -13
- package/upward.yml +68 -2
- package/venia-static/veniaClosed.png +0 -0
- package/lib/components/CartPage/GiftCards/giftCardFragments.ee.js +0 -14
- package/lib/components/CartPage/GiftCards/giftCardFragments.js +0 -8
- package/lib/components/CartPage/GiftCards/giftCardQueries.ee.js +0 -66
- package/lib/components/CartPage/PriceAdjustments/CouponCode/couponCodeFragments.js +0 -10
- package/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.gql.js +0 -23
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.gql.js +0 -20
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethodsFragments.gql.js +0 -60
- package/lib/components/CartPage/PriceSummary/queries/giftCardSummary.ce.js +0 -8
- package/lib/components/CartPage/PriceSummary/queries/giftCardSummary.ee.js +0 -15
- package/lib/components/CartPage/ProductListing/EditModal/productFormFragment.gql.js +0 -47
- package/lib/components/CartPage/ProductListing/productListingFragments.js +0 -53
- package/lib/components/CartPage/cartPage.gql.js +0 -12
- package/lib/components/CartPage/cartPageFragments.gql.js +0 -21
- package/lib/components/CategoryTree/categoryBranch.css +0 -11
- package/lib/components/Checkout/shippingForm.css +0 -19
- package/lib/components/CheckoutPage/AddressBook/addressBook.gql.js +0 -38
- package/lib/components/CheckoutPage/AddressBook/addressBookFragments.gql.js +0 -31
- package/lib/components/CheckoutPage/PaymentInformation/editModal.gql.js +0 -19
- package/lib/components/CheckoutPage/PaymentInformation/paymentInformation.gql.js +0 -131
- package/lib/components/CheckoutPage/PaymentInformation/paymentMethods.gql.js +0 -20
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.gql.js +0 -59
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.gql.js +0 -47
- package/lib/components/CheckoutPage/ShippingInformation/shippingInformation.gql.js +0 -58
- package/lib/components/CheckoutPage/ShippingInformation/shippingInformationFragments.gql.js +0 -25
- package/lib/components/CheckoutPage/ShippingMethod/shippingMethod.gql.js +0 -68
- package/lib/components/CheckoutPage/ShippingMethod/shippingMethodFragments.gql.js +0 -64
- package/lib/components/CreateAccountPage/createAccountPage.css +0 -4
- package/lib/components/LegacyMiniCart/mask.css +0 -4
- package/lib/components/ProductOptions/swatchList.css +0 -3
- package/lib/components/SortedByContainer/sortedByContainer.css +0 -16
- package/lib/components/Trigger/trigger.css +0 -3
|
@@ -1,25 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
3
|
-
import { gql } from '@apollo/client';
|
|
4
3
|
import Price from '@magento/venia-ui/lib/components/Price';
|
|
5
4
|
import { usePriceSummary } from '@magento/peregrine/lib/talons/CartPage/PriceSummary/usePriceSummary';
|
|
6
5
|
import Button from '../../Button';
|
|
7
6
|
import { useStyle } from '../../../classify';
|
|
8
|
-
import defaultClasses from './priceSummary.css';
|
|
7
|
+
import defaultClasses from './priceSummary.module.css';
|
|
9
8
|
import DiscountSummary from './discountSummary';
|
|
10
9
|
import GiftCardSummary from './giftCardSummary';
|
|
11
10
|
import ShippingSummary from './shippingSummary';
|
|
12
11
|
import TaxSummary from './taxSummary';
|
|
13
|
-
import { PriceSummaryFragment } from '@magento/peregrine/lib/talons/CartPage/PriceSummary/priceSummaryFragments.gql';
|
|
14
|
-
const GET_PRICE_SUMMARY = gql`
|
|
15
|
-
query getPriceSummary($cartId: String!) {
|
|
16
|
-
cart(cart_id: $cartId) {
|
|
17
|
-
id
|
|
18
|
-
...PriceSummaryFragment
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
${PriceSummaryFragment}
|
|
22
|
-
`;
|
|
23
12
|
|
|
24
13
|
/**
|
|
25
14
|
* A child component of the CartPage component.
|
|
@@ -28,7 +17,7 @@ const GET_PRICE_SUMMARY = gql`
|
|
|
28
17
|
*
|
|
29
18
|
* @param {Object} props
|
|
30
19
|
* @param {Object} props.classes CSS className overrides.
|
|
31
|
-
* See [priceSummary.css]{@link https://github.com/magento/pwa-studio/blob/develop/packages/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.css}
|
|
20
|
+
* See [priceSummary.module.css]{@link https://github.com/magento/pwa-studio/blob/develop/packages/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.module.css}
|
|
32
21
|
* for a list of classes you can override.
|
|
33
22
|
*
|
|
34
23
|
* @returns {React.Element}
|
|
@@ -39,11 +28,7 @@ const GET_PRICE_SUMMARY = gql`
|
|
|
39
28
|
const PriceSummary = props => {
|
|
40
29
|
const { isUpdating } = props;
|
|
41
30
|
const classes = useStyle(defaultClasses, props.classes);
|
|
42
|
-
const talonProps = usePriceSummary(
|
|
43
|
-
queries: {
|
|
44
|
-
getPriceSummary: GET_PRICE_SUMMARY
|
|
45
|
-
}
|
|
46
|
-
});
|
|
31
|
+
const talonProps = usePriceSummary();
|
|
47
32
|
|
|
48
33
|
const {
|
|
49
34
|
handleProceedToCheckout,
|
|
File without changes
|
|
@@ -38,13 +38,13 @@ exports[`renders form errors 1`] = `
|
|
|
38
38
|
<svg
|
|
39
39
|
className="icon"
|
|
40
40
|
fill="none"
|
|
41
|
-
height=
|
|
41
|
+
height={24}
|
|
42
42
|
stroke="currentColor"
|
|
43
43
|
strokeLinecap="round"
|
|
44
44
|
strokeLinejoin="round"
|
|
45
45
|
strokeWidth="2"
|
|
46
46
|
viewBox="0 0 24 24"
|
|
47
|
-
width=
|
|
47
|
+
width={24}
|
|
48
48
|
xmlns="http://www.w3.org/2000/svg"
|
|
49
49
|
>
|
|
50
50
|
<line
|
|
@@ -89,7 +89,7 @@ exports[`renders form errors 1`] = `
|
|
|
89
89
|
alt="Juno Sweater"
|
|
90
90
|
className="image placeholder"
|
|
91
91
|
loading="eager"
|
|
92
|
-
src="data:image/
|
|
92
|
+
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
93
93
|
width={240}
|
|
94
94
|
/>
|
|
95
95
|
<img
|
|
@@ -299,6 +299,17 @@ https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/media/catalog/produc
|
|
|
299
299
|
<button
|
|
300
300
|
className="root_lowPriority"
|
|
301
301
|
disabled={false}
|
|
302
|
+
onDragStart={[Function]}
|
|
303
|
+
onKeyDown={[Function]}
|
|
304
|
+
onKeyUp={[Function]}
|
|
305
|
+
onMouseDown={[Function]}
|
|
306
|
+
onMouseEnter={[Function]}
|
|
307
|
+
onMouseLeave={[Function]}
|
|
308
|
+
onMouseUp={[Function]}
|
|
309
|
+
onTouchCancel={[Function]}
|
|
310
|
+
onTouchEnd={[Function]}
|
|
311
|
+
onTouchMove={[Function]}
|
|
312
|
+
onTouchStart={[Function]}
|
|
302
313
|
type="reset"
|
|
303
314
|
>
|
|
304
315
|
<span
|
|
@@ -313,6 +324,18 @@ https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/media/catalog/produc
|
|
|
313
324
|
<button
|
|
314
325
|
className="root_highPriority"
|
|
315
326
|
disabled={false}
|
|
327
|
+
onClick={[Function]}
|
|
328
|
+
onDragStart={[Function]}
|
|
329
|
+
onKeyDown={[Function]}
|
|
330
|
+
onKeyUp={[Function]}
|
|
331
|
+
onMouseDown={[Function]}
|
|
332
|
+
onMouseEnter={[Function]}
|
|
333
|
+
onMouseLeave={[Function]}
|
|
334
|
+
onMouseUp={[Function]}
|
|
335
|
+
onTouchCancel={[Function]}
|
|
336
|
+
onTouchEnd={[Function]}
|
|
337
|
+
onTouchMove={[Function]}
|
|
338
|
+
onTouchStart={[Function]}
|
|
316
339
|
type="submit"
|
|
317
340
|
>
|
|
318
341
|
<span
|
|
@@ -370,13 +393,13 @@ exports[`renders form with data 1`] = `
|
|
|
370
393
|
<svg
|
|
371
394
|
className="icon"
|
|
372
395
|
fill="none"
|
|
373
|
-
height=
|
|
396
|
+
height={24}
|
|
374
397
|
stroke="currentColor"
|
|
375
398
|
strokeLinecap="round"
|
|
376
399
|
strokeLinejoin="round"
|
|
377
400
|
strokeWidth="2"
|
|
378
401
|
viewBox="0 0 24 24"
|
|
379
|
-
width=
|
|
402
|
+
width={24}
|
|
380
403
|
xmlns="http://www.w3.org/2000/svg"
|
|
381
404
|
>
|
|
382
405
|
<line
|
|
@@ -412,7 +435,7 @@ exports[`renders form with data 1`] = `
|
|
|
412
435
|
alt="Juno Sweater"
|
|
413
436
|
className="image placeholder"
|
|
414
437
|
loading="eager"
|
|
415
|
-
src="data:image/
|
|
438
|
+
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
416
439
|
width={240}
|
|
417
440
|
/>
|
|
418
441
|
<img
|
|
@@ -622,6 +645,17 @@ https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/media/catalog/produc
|
|
|
622
645
|
<button
|
|
623
646
|
className="root_lowPriority"
|
|
624
647
|
disabled={false}
|
|
648
|
+
onDragStart={[Function]}
|
|
649
|
+
onKeyDown={[Function]}
|
|
650
|
+
onKeyUp={[Function]}
|
|
651
|
+
onMouseDown={[Function]}
|
|
652
|
+
onMouseEnter={[Function]}
|
|
653
|
+
onMouseLeave={[Function]}
|
|
654
|
+
onMouseUp={[Function]}
|
|
655
|
+
onTouchCancel={[Function]}
|
|
656
|
+
onTouchEnd={[Function]}
|
|
657
|
+
onTouchMove={[Function]}
|
|
658
|
+
onTouchStart={[Function]}
|
|
625
659
|
type="reset"
|
|
626
660
|
>
|
|
627
661
|
<span
|
|
@@ -636,6 +670,18 @@ https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/media/catalog/produc
|
|
|
636
670
|
<button
|
|
637
671
|
className="root_highPriority"
|
|
638
672
|
disabled={false}
|
|
673
|
+
onClick={[Function]}
|
|
674
|
+
onDragStart={[Function]}
|
|
675
|
+
onKeyDown={[Function]}
|
|
676
|
+
onKeyUp={[Function]}
|
|
677
|
+
onMouseDown={[Function]}
|
|
678
|
+
onMouseEnter={[Function]}
|
|
679
|
+
onMouseLeave={[Function]}
|
|
680
|
+
onMouseUp={[Function]}
|
|
681
|
+
onTouchCancel={[Function]}
|
|
682
|
+
onTouchEnd={[Function]}
|
|
683
|
+
onTouchMove={[Function]}
|
|
684
|
+
onTouchStart={[Function]}
|
|
639
685
|
type="submit"
|
|
640
686
|
>
|
|
641
687
|
<span
|
|
@@ -693,13 +739,13 @@ exports[`renders loading indicator while options are being fetched 1`] = `
|
|
|
693
739
|
<svg
|
|
694
740
|
className="icon"
|
|
695
741
|
fill="none"
|
|
696
|
-
height=
|
|
742
|
+
height={24}
|
|
697
743
|
stroke="currentColor"
|
|
698
744
|
strokeLinecap="round"
|
|
699
745
|
strokeLinejoin="round"
|
|
700
746
|
strokeWidth="2"
|
|
701
747
|
viewBox="0 0 24 24"
|
|
702
|
-
width=
|
|
748
|
+
width={24}
|
|
703
749
|
xmlns="http://www.w3.org/2000/svg"
|
|
704
750
|
>
|
|
705
751
|
<line
|
|
@@ -738,6 +784,17 @@ exports[`renders loading indicator while options are being fetched 1`] = `
|
|
|
738
784
|
<button
|
|
739
785
|
className="root_lowPriority"
|
|
740
786
|
disabled={true}
|
|
787
|
+
onDragStart={[Function]}
|
|
788
|
+
onKeyDown={[Function]}
|
|
789
|
+
onKeyUp={[Function]}
|
|
790
|
+
onMouseDown={[Function]}
|
|
791
|
+
onMouseEnter={[Function]}
|
|
792
|
+
onMouseLeave={[Function]}
|
|
793
|
+
onMouseUp={[Function]}
|
|
794
|
+
onTouchCancel={[Function]}
|
|
795
|
+
onTouchEnd={[Function]}
|
|
796
|
+
onTouchMove={[Function]}
|
|
797
|
+
onTouchStart={[Function]}
|
|
741
798
|
type="reset"
|
|
742
799
|
>
|
|
743
800
|
<span
|
|
@@ -752,6 +809,18 @@ exports[`renders loading indicator while options are being fetched 1`] = `
|
|
|
752
809
|
<button
|
|
753
810
|
className="root_highPriority"
|
|
754
811
|
disabled={true}
|
|
812
|
+
onClick={[Function]}
|
|
813
|
+
onDragStart={[Function]}
|
|
814
|
+
onKeyDown={[Function]}
|
|
815
|
+
onKeyUp={[Function]}
|
|
816
|
+
onMouseDown={[Function]}
|
|
817
|
+
onMouseEnter={[Function]}
|
|
818
|
+
onMouseLeave={[Function]}
|
|
819
|
+
onMouseUp={[Function]}
|
|
820
|
+
onTouchCancel={[Function]}
|
|
821
|
+
onTouchEnd={[Function]}
|
|
822
|
+
onTouchMove={[Function]}
|
|
823
|
+
onTouchStart={[Function]}
|
|
755
824
|
type="submit"
|
|
756
825
|
>
|
|
757
826
|
<span
|
|
@@ -14,7 +14,7 @@ import ProductForm from './productForm';
|
|
|
14
14
|
* for a list of properties for this object.
|
|
15
15
|
* @param {Function} props.setIsCartUpdating Function for setting the updating state of the cart.
|
|
16
16
|
* @param {Object} props.classes CSS className overrides.
|
|
17
|
-
* See [editModal.css]{@link https://github.com/magento/pwa-studio/blob/develop/packages/venia-ui/lib/components/CartPage/ProductListing/EditModal/editModal.css}
|
|
17
|
+
* See [editModal.module.css]{@link https://github.com/magento/pwa-studio/blob/develop/packages/venia-ui/lib/components/CartPage/ProductListing/EditModal/editModal.module.css}
|
|
18
18
|
* for a list of classes you can override.
|
|
19
19
|
*
|
|
20
20
|
* @returns {React.Element}
|
|
@@ -4,7 +4,7 @@ import Price from '@magento/venia-ui/lib/components/Price';
|
|
|
4
4
|
|
|
5
5
|
import { useStyle } from '../../../../classify';
|
|
6
6
|
import Image from '../../../Image';
|
|
7
|
-
import defaultClasses from './productDetail.css';
|
|
7
|
+
import defaultClasses from './productDetail.module.css';
|
|
8
8
|
|
|
9
9
|
const IMAGE_SIZE = 240;
|
|
10
10
|
|
|
File without changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
2
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
3
|
-
import { gql } from '@apollo/client';
|
|
4
3
|
import { useProductForm } from '@magento/peregrine/lib/talons/CartPage/ProductListing/EditModal/useProductForm';
|
|
5
4
|
|
|
6
5
|
import { useStyle } from '../../../../classify';
|
|
@@ -8,9 +7,7 @@ import FormError from '../../../FormError';
|
|
|
8
7
|
import LoadingIndicator from '../../../LoadingIndicator';
|
|
9
8
|
import Options from '../../../ProductOptions';
|
|
10
9
|
import { QuantityFields } from '../quantity';
|
|
11
|
-
import defaultClasses from './productForm.css';
|
|
12
|
-
import { CartPageFragment } from '../../cartPageFragments.gql';
|
|
13
|
-
import { ProductFormFragment } from './productFormFragment.gql';
|
|
10
|
+
import defaultClasses from './productForm.module.css';
|
|
14
11
|
import Dialog from '../../../Dialog';
|
|
15
12
|
import ProductDetail from './productDetail';
|
|
16
13
|
|
|
@@ -25,11 +22,8 @@ const ProductForm = props => {
|
|
|
25
22
|
const { formatMessage } = useIntl();
|
|
26
23
|
const talonProps = useProductForm({
|
|
27
24
|
cartItem,
|
|
28
|
-
getConfigurableOptionsQuery: GET_CONFIGURABLE_OPTIONS,
|
|
29
25
|
setIsCartUpdating,
|
|
30
26
|
setVariantPrice,
|
|
31
|
-
updateConfigurableOptionsMutation: UPDATE_CONFIGURABLE_OPTIONS_MUTATION,
|
|
32
|
-
updateQuantityMutation: UPDATE_QUANTITY_MUTATION,
|
|
33
27
|
setActiveEditItem
|
|
34
28
|
});
|
|
35
29
|
const {
|
|
@@ -149,72 +143,3 @@ const ProductForm = props => {
|
|
|
149
143
|
};
|
|
150
144
|
|
|
151
145
|
export default ProductForm;
|
|
152
|
-
|
|
153
|
-
export const GET_CONFIGURABLE_OPTIONS = gql`
|
|
154
|
-
query productDetailBySku($sku: String) {
|
|
155
|
-
products(filter: { sku: { eq: $sku } }) {
|
|
156
|
-
items {
|
|
157
|
-
id
|
|
158
|
-
...ProductFormFragment
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
${ProductFormFragment}
|
|
163
|
-
`;
|
|
164
|
-
|
|
165
|
-
export const UPDATE_QUANTITY_MUTATION = gql`
|
|
166
|
-
mutation UpdateCartItemQuantity(
|
|
167
|
-
$cartId: String!
|
|
168
|
-
$cartItemId: Int!
|
|
169
|
-
$quantity: Float!
|
|
170
|
-
) {
|
|
171
|
-
updateCartItems(
|
|
172
|
-
input: {
|
|
173
|
-
cart_id: $cartId
|
|
174
|
-
cart_items: [{ cart_item_id: $cartItemId, quantity: $quantity }]
|
|
175
|
-
}
|
|
176
|
-
) @connection(key: "updateCartItems") {
|
|
177
|
-
cart {
|
|
178
|
-
id
|
|
179
|
-
...CartPageFragment
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
${CartPageFragment}
|
|
184
|
-
`;
|
|
185
|
-
|
|
186
|
-
export const UPDATE_CONFIGURABLE_OPTIONS_MUTATION = gql`
|
|
187
|
-
mutation UpdateConfigurableOptions(
|
|
188
|
-
$cartId: String!
|
|
189
|
-
$cartItemId: Int!
|
|
190
|
-
$parentSku: String!
|
|
191
|
-
$variantSku: String!
|
|
192
|
-
$quantity: Float!
|
|
193
|
-
) {
|
|
194
|
-
addConfigurableProductsToCart(
|
|
195
|
-
input: {
|
|
196
|
-
cart_id: $cartId
|
|
197
|
-
cart_items: [
|
|
198
|
-
{
|
|
199
|
-
data: { quantity: $quantity, sku: $variantSku }
|
|
200
|
-
parent_sku: $parentSku
|
|
201
|
-
}
|
|
202
|
-
]
|
|
203
|
-
}
|
|
204
|
-
) @connection(key: "addConfigurableProductsToCart") {
|
|
205
|
-
cart {
|
|
206
|
-
id
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
removeItemFromCart(
|
|
211
|
-
input: { cart_id: $cartId, cart_item_id: $cartItemId }
|
|
212
|
-
) @connection(key: "removeItemFromCart") {
|
|
213
|
-
cart {
|
|
214
|
-
id
|
|
215
|
-
...CartPageFragment
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
${CartPageFragment}
|
|
220
|
-
`;
|
package/lib/components/CartPage/ProductListing/EditModal/{productForm.css → productForm.module.css}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.contents {
|
|
2
|
-
composes: contents from '../../../Dialog/dialog.css';
|
|
2
|
+
composes: contents from '../../../Dialog/dialog.module.css';
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
5
5
|
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.quantityRoot {
|
|
20
|
-
composes: root from '../quantity.css';
|
|
20
|
+
composes: root from '../quantity.module.css';
|
|
21
21
|
grid-template-columns: auto 4rem auto;
|
|
22
22
|
justify-content: start;
|
|
23
23
|
padding: 0 1rem;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.loading {
|
|
27
|
-
composes: root from '../../../LoadingIndicator/indicator.css';
|
|
27
|
+
composes: root from '../../../LoadingIndicator/indicator.module.css';
|
|
28
28
|
height: unset;
|
|
29
29
|
left: 0;
|
|
30
30
|
position: absolute;
|
|
@@ -232,13 +232,13 @@ exports[`renders configurable product with options 1`] = `
|
|
|
232
232
|
<svg
|
|
233
233
|
className="icon"
|
|
234
234
|
fill="none"
|
|
235
|
-
height=
|
|
235
|
+
height={24}
|
|
236
236
|
stroke="currentColor"
|
|
237
237
|
strokeLinecap="round"
|
|
238
238
|
strokeLinejoin="round"
|
|
239
239
|
strokeWidth="2"
|
|
240
240
|
viewBox="0 0 24 24"
|
|
241
|
-
width=
|
|
241
|
+
width={24}
|
|
242
242
|
xmlns="http://www.w3.org/2000/svg"
|
|
243
243
|
>
|
|
244
244
|
<circle
|
|
@@ -343,7 +343,16 @@ exports[`renders configurable product with options 1`] = `
|
|
|
343
343
|
icon={
|
|
344
344
|
<Icon
|
|
345
345
|
size={16}
|
|
346
|
-
src={
|
|
346
|
+
src={
|
|
347
|
+
Object {
|
|
348
|
+
"$$typeof": Symbol(react.forward_ref),
|
|
349
|
+
"propTypes": Object {
|
|
350
|
+
"color": [Function],
|
|
351
|
+
"size": [Function],
|
|
352
|
+
},
|
|
353
|
+
"render": [Function],
|
|
354
|
+
}
|
|
355
|
+
}
|
|
347
356
|
/>
|
|
348
357
|
}
|
|
349
358
|
/>
|
|
@@ -554,13 +563,13 @@ exports[`renders out of stock product 1`] = `
|
|
|
554
563
|
<svg
|
|
555
564
|
className="icon"
|
|
556
565
|
fill="none"
|
|
557
|
-
height=
|
|
566
|
+
height={24}
|
|
558
567
|
stroke="currentColor"
|
|
559
568
|
strokeLinecap="round"
|
|
560
569
|
strokeLinejoin="round"
|
|
561
570
|
strokeWidth="2"
|
|
562
571
|
viewBox="0 0 24 24"
|
|
563
|
-
width=
|
|
572
|
+
width={24}
|
|
564
573
|
xmlns="http://www.w3.org/2000/svg"
|
|
565
574
|
>
|
|
566
575
|
<circle
|
|
@@ -632,7 +641,16 @@ exports[`renders out of stock product 1`] = `
|
|
|
632
641
|
icon={
|
|
633
642
|
<Icon
|
|
634
643
|
size={16}
|
|
635
|
-
src={
|
|
644
|
+
src={
|
|
645
|
+
Object {
|
|
646
|
+
"$$typeof": Symbol(react.forward_ref),
|
|
647
|
+
"propTypes": Object {
|
|
648
|
+
"color": [Function],
|
|
649
|
+
"size": [Function],
|
|
650
|
+
},
|
|
651
|
+
"render": [Function],
|
|
652
|
+
}
|
|
653
|
+
}
|
|
636
654
|
/>
|
|
637
655
|
}
|
|
638
656
|
/>
|
|
@@ -843,13 +861,13 @@ exports[`renders simple product correctly 1`] = `
|
|
|
843
861
|
<svg
|
|
844
862
|
className="icon"
|
|
845
863
|
fill="none"
|
|
846
|
-
height=
|
|
864
|
+
height={24}
|
|
847
865
|
stroke="currentColor"
|
|
848
866
|
strokeLinecap="round"
|
|
849
867
|
strokeLinejoin="round"
|
|
850
868
|
strokeWidth="2"
|
|
851
869
|
viewBox="0 0 24 24"
|
|
852
|
-
width=
|
|
870
|
+
width={24}
|
|
853
871
|
xmlns="http://www.w3.org/2000/svg"
|
|
854
872
|
>
|
|
855
873
|
<circle
|
|
@@ -921,7 +939,16 @@ exports[`renders simple product correctly 1`] = `
|
|
|
921
939
|
icon={
|
|
922
940
|
<Icon
|
|
923
941
|
size={16}
|
|
924
|
-
src={
|
|
942
|
+
src={
|
|
943
|
+
Object {
|
|
944
|
+
"$$typeof": Symbol(react.forward_ref),
|
|
945
|
+
"propTypes": Object {
|
|
946
|
+
"color": [Function],
|
|
947
|
+
"size": [Function],
|
|
948
|
+
},
|
|
949
|
+
"render": [Function],
|
|
950
|
+
}
|
|
951
|
+
}
|
|
925
952
|
/>
|
|
926
953
|
}
|
|
927
954
|
/>
|
|
@@ -16,10 +16,10 @@ import Section from '../../LegacyMiniCart/section';
|
|
|
16
16
|
import AddToListButton from '../../Wishlist/AddToListButton';
|
|
17
17
|
import Quantity from './quantity';
|
|
18
18
|
|
|
19
|
-
import defaultClasses from './product.css';
|
|
19
|
+
import defaultClasses from './product.module.css';
|
|
20
20
|
|
|
21
|
-
import { CartPageFragment } from '
|
|
22
|
-
import { AvailableShippingMethodsCartFragment } from '
|
|
21
|
+
import { CartPageFragment } from '@magento/peregrine/lib/talons/CartPage/cartPageFragments.gql.js';
|
|
22
|
+
import { AvailableShippingMethodsCartFragment } from '@magento/peregrine/lib/talons/CartPage/PriceAdjustments/ShippingMethods/shippingMethodsFragments.gql.js';
|
|
23
23
|
|
|
24
24
|
const IMAGE_SIZE = 100;
|
|
25
25
|
|
|
File without changes
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React, { Fragment, Suspense } from 'react';
|
|
2
2
|
import { FormattedMessage } from 'react-intl';
|
|
3
|
-
import { gql } from '@apollo/client';
|
|
4
3
|
import { useProductListing } from '@magento/peregrine/lib/talons/CartPage/ProductListing/useProductListing';
|
|
5
4
|
|
|
6
5
|
import { useStyle } from '../../../classify';
|
|
7
6
|
import LoadingIndicator from '../../LoadingIndicator';
|
|
8
|
-
import defaultClasses from './productListing.css';
|
|
7
|
+
import defaultClasses from './productListing.module.css';
|
|
9
8
|
import Product from './product';
|
|
10
|
-
import { ProductListingFragment } from './productListingFragments';
|
|
11
9
|
|
|
12
10
|
const EditModal = React.lazy(() => import('./EditModal'));
|
|
13
11
|
/**
|
|
@@ -17,7 +15,7 @@ const EditModal = React.lazy(() => import('./EditModal'));
|
|
|
17
15
|
* @param {Object} props
|
|
18
16
|
* @param {Function} props.setIsCartUpdating Function for setting the updating state of the cart.
|
|
19
17
|
* @param {Object} props.classes CSS className overrides.
|
|
20
|
-
* See [productListing.css]{@link https://github.com/magento/pwa-studio/blob/develop/packages/venia-ui/lib/components/CartPage/ProductListing/productListing.css}
|
|
18
|
+
* See [productListing.module.css]{@link https://github.com/magento/pwa-studio/blob/develop/packages/venia-ui/lib/components/CartPage/ProductListing/productListing.module.css}
|
|
21
19
|
* for a list of classes you can override.
|
|
22
20
|
*
|
|
23
21
|
* @returns {React.Element}
|
|
@@ -31,11 +29,9 @@ const ProductListing = props => {
|
|
|
31
29
|
setIsCartUpdating,
|
|
32
30
|
fetchCartDetails
|
|
33
31
|
} = props;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
});
|
|
32
|
+
|
|
33
|
+
const talonProps = useProductListing();
|
|
34
|
+
|
|
39
35
|
const {
|
|
40
36
|
activeEditItem,
|
|
41
37
|
isLoading,
|
|
@@ -87,14 +83,4 @@ const ProductListing = props => {
|
|
|
87
83
|
return null;
|
|
88
84
|
};
|
|
89
85
|
|
|
90
|
-
export const GET_PRODUCT_LISTING = gql`
|
|
91
|
-
query getProductListing($cartId: String!) {
|
|
92
|
-
cart(cart_id: $cartId) {
|
|
93
|
-
id
|
|
94
|
-
...ProductListingFragment
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
${ProductListingFragment}
|
|
98
|
-
`;
|
|
99
|
-
|
|
100
86
|
export default ProductListing;
|
package/lib/components/CartPage/ProductListing/{productListing.css → productListing.module.css}
RENAMED
|
File without changes
|
|
@@ -9,7 +9,7 @@ import { useStyle } from '../../../classify';
|
|
|
9
9
|
import Icon from '../../Icon';
|
|
10
10
|
import TextInput from '../../TextInput';
|
|
11
11
|
import { Message } from '../../Field';
|
|
12
|
-
import defaultClasses from './quantity.css';
|
|
12
|
+
import defaultClasses from './quantity.module.css';
|
|
13
13
|
|
|
14
14
|
export const QuantityFields = props => {
|
|
15
15
|
const { initialValue, itemId, label, min, onChange, message } = props;
|
|
@@ -119,7 +119,16 @@ test('renders toast if wishlistSuccessProps is not falsy', () => {
|
|
|
119
119
|
Object {
|
|
120
120
|
"icon": <Icon
|
|
121
121
|
size={20}
|
|
122
|
-
src={
|
|
122
|
+
src={
|
|
123
|
+
Object {
|
|
124
|
+
"$$typeof": Symbol(react.forward_ref),
|
|
125
|
+
"propTypes": Object {
|
|
126
|
+
"color": [Function],
|
|
127
|
+
"size": [Function],
|
|
128
|
+
},
|
|
129
|
+
"render": [Function],
|
|
130
|
+
}
|
|
131
|
+
}
|
|
123
132
|
/>,
|
|
124
133
|
"message": "Successfully added to wishlist",
|
|
125
134
|
},
|
|
@@ -10,10 +10,9 @@ import { StoreTitle } from '../Head';
|
|
|
10
10
|
import { fullPageLoadingIndicator } from '../LoadingIndicator';
|
|
11
11
|
import StockStatusMessage from '../StockStatusMessage';
|
|
12
12
|
import PriceAdjustments from './PriceAdjustments';
|
|
13
|
-
import ProductListing from './ProductListing';
|
|
14
13
|
import PriceSummary from './PriceSummary';
|
|
15
|
-
import
|
|
16
|
-
import
|
|
14
|
+
import ProductListing from './ProductListing';
|
|
15
|
+
import defaultClasses from './cartPage.module.css';
|
|
17
16
|
|
|
18
17
|
const CheckIcon = <Icon size={20} src={Check} />;
|
|
19
18
|
|
|
@@ -26,7 +25,7 @@ const CheckIcon = <Icon size={20} src={Check} />;
|
|
|
26
25
|
*
|
|
27
26
|
* @param {Object} props
|
|
28
27
|
* @param {Object} props.classes CSS className overrides for the component.
|
|
29
|
-
* See [cartPage.css]{@link https://github.com/magento/pwa-studio/blob/develop/packages/venia-ui/lib/components/CartPage/cartPage.css}
|
|
28
|
+
* See [cartPage.module.css]{@link https://github.com/magento/pwa-studio/blob/develop/packages/venia-ui/lib/components/CartPage/cartPage.module.css}
|
|
30
29
|
* for a list of classes you can override.
|
|
31
30
|
*
|
|
32
31
|
* @returns {React.Element}
|
|
@@ -35,11 +34,7 @@ const CheckIcon = <Icon size={20} src={Check} />;
|
|
|
35
34
|
* import CartPage from "@magento/venia-ui/lib/components/CartPage";
|
|
36
35
|
*/
|
|
37
36
|
const CartPage = props => {
|
|
38
|
-
const talonProps = useCartPage(
|
|
39
|
-
queries: {
|
|
40
|
-
getCartDetails: GET_CART_DETAILS
|
|
41
|
-
}
|
|
42
|
-
});
|
|
37
|
+
const talonProps = useCartPage();
|
|
43
38
|
|
|
44
39
|
const {
|
|
45
40
|
cartItems,
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ import { useCategoryList } from '@magento/peregrine/lib/talons/CategoryList/useC
|
|
|
6
6
|
import { useStyle } from '../../classify';
|
|
7
7
|
import { fullPageLoadingIndicator } from '../LoadingIndicator';
|
|
8
8
|
import ErrorView from '@magento/venia-ui/lib/components/ErrorView';
|
|
9
|
-
import defaultClasses from './categoryList.css';
|
|
9
|
+
import defaultClasses from './categoryList.module.css';
|
|
10
10
|
import CategoryTile from './categoryTile';
|
|
11
11
|
|
|
12
12
|
// map Magento 2.3.1 schema changes to Venia 2.0.0 proptype shape to maintain backwards compatibility
|
|
@@ -32,7 +32,7 @@ const mapCategory = categoryItem => {
|
|
|
32
32
|
const CategoryList = props => {
|
|
33
33
|
const { id, title } = props;
|
|
34
34
|
const talonProps = useCategoryList({ id });
|
|
35
|
-
const { childCategories, error, loading } = talonProps;
|
|
35
|
+
const { childCategories, storeConfig, error, loading } = talonProps;
|
|
36
36
|
const { formatMessage } = useIntl();
|
|
37
37
|
const classes = useStyle(defaultClasses, props.classes);
|
|
38
38
|
|
|
@@ -64,6 +64,7 @@ const CategoryList = props => {
|
|
|
64
64
|
<CategoryTile
|
|
65
65
|
item={mapCategory(item)}
|
|
66
66
|
key={item.url_key}
|
|
67
|
+
storeConfig={storeConfig}
|
|
67
68
|
/>
|
|
68
69
|
))}
|
|
69
70
|
</div>
|
|
File without changes
|