@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
|
@@ -54,6 +54,17 @@ exports[`renders correctly 1`] = `
|
|
|
54
54
|
<button
|
|
55
55
|
className="cancelButton"
|
|
56
56
|
disabled={false}
|
|
57
|
+
onDragStart={[Function]}
|
|
58
|
+
onKeyDown={[Function]}
|
|
59
|
+
onKeyUp={[Function]}
|
|
60
|
+
onMouseDown={[Function]}
|
|
61
|
+
onMouseEnter={[Function]}
|
|
62
|
+
onMouseLeave={[Function]}
|
|
63
|
+
onMouseUp={[Function]}
|
|
64
|
+
onTouchCancel={[Function]}
|
|
65
|
+
onTouchEnd={[Function]}
|
|
66
|
+
onTouchMove={[Function]}
|
|
67
|
+
onTouchStart={[Function]}
|
|
57
68
|
type="button"
|
|
58
69
|
>
|
|
59
70
|
<span
|
|
@@ -68,6 +79,18 @@ exports[`renders correctly 1`] = `
|
|
|
68
79
|
<button
|
|
69
80
|
className="submitButton"
|
|
70
81
|
disabled={false}
|
|
82
|
+
onClick={[Function]}
|
|
83
|
+
onDragStart={[Function]}
|
|
84
|
+
onKeyDown={[Function]}
|
|
85
|
+
onKeyUp={[Function]}
|
|
86
|
+
onMouseDown={[Function]}
|
|
87
|
+
onMouseEnter={[Function]}
|
|
88
|
+
onMouseLeave={[Function]}
|
|
89
|
+
onMouseUp={[Function]}
|
|
90
|
+
onTouchCancel={[Function]}
|
|
91
|
+
onTouchEnd={[Function]}
|
|
92
|
+
onTouchMove={[Function]}
|
|
93
|
+
onTouchStart={[Function]}
|
|
71
94
|
type="submit"
|
|
72
95
|
>
|
|
73
96
|
<span
|
|
@@ -8,7 +8,7 @@ import { isRequired } from '../../../util/formValidators';
|
|
|
8
8
|
import Button from '../../Button';
|
|
9
9
|
import Field from '../../Field';
|
|
10
10
|
import TextInput from '../../TextInput';
|
|
11
|
-
import defaultClasses from './forgotPasswordForm.css';
|
|
11
|
+
import defaultClasses from './forgotPasswordForm.module.css';
|
|
12
12
|
|
|
13
13
|
const ForgotPasswordForm = props => {
|
|
14
14
|
const classes = useStyle(defaultClasses, props.classes);
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.cancelButton {
|
|
17
|
-
composes: root_lowPriority from '../../Button/button.css';
|
|
17
|
+
composes: root_lowPriority from '../../Button/button.module.css';
|
|
18
18
|
|
|
19
19
|
min-width: 9rem;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.submitButton {
|
|
23
|
-
composes: root_highPriority from '../../Button/button.css';
|
|
23
|
+
composes: root_highPriority from '../../Button/button.module.css';
|
|
24
24
|
|
|
25
25
|
min-width: 9rem;
|
|
26
26
|
}
|
|
@@ -3,7 +3,7 @@ import { FormattedMessage, useIntl } from 'react-intl';
|
|
|
3
3
|
import { shape, string } from 'prop-types';
|
|
4
4
|
|
|
5
5
|
import { useStyle } from '../../../classify';
|
|
6
|
-
import defaultClasses from './formSubmissionSuccessful.css';
|
|
6
|
+
import defaultClasses from './formSubmissionSuccessful.module.css';
|
|
7
7
|
|
|
8
8
|
const FormSubmissionSuccessful = props => {
|
|
9
9
|
const { email } = props;
|
|
File without changes
|
|
@@ -11,7 +11,7 @@ import FormSubmissionSuccessful from './FormSubmissionSuccessful';
|
|
|
11
11
|
|
|
12
12
|
import forgotPasswordOperations from './forgotPassword.gql';
|
|
13
13
|
|
|
14
|
-
import defaultClasses from './forgotPassword.css';
|
|
14
|
+
import defaultClasses from './forgotPassword.module.css';
|
|
15
15
|
|
|
16
16
|
const ForgotPassword = props => {
|
|
17
17
|
const { initialValues, onCancel } = props;
|
|
File without changes
|
package/lib/components/ForgotPasswordPage/__tests__/__snapshots__/forgotPasswordPage.spec.js.snap
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`#ForgotPasswordPage renders correctly 1`] = `
|
|
4
|
+
<div>
|
|
5
|
+
Title
|
|
6
|
+
<h1>
|
|
7
|
+
<mock-FormattedMessage
|
|
8
|
+
defaultMessage="Forgot Your Password?"
|
|
9
|
+
id="forgotPasswordPage.header"
|
|
10
|
+
/>
|
|
11
|
+
</h1>
|
|
12
|
+
<div>
|
|
13
|
+
<mock-ForgotPassword />
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
`;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { createTestInstance } from '@magento/peregrine';
|
|
4
|
+
|
|
5
|
+
import ForgotPasswordPage from '../forgotPasswordPage';
|
|
6
|
+
|
|
7
|
+
jest.mock(
|
|
8
|
+
'@magento/peregrine/lib/talons/ForgotPasswordPage/useForgotPasswordPage',
|
|
9
|
+
() => ({
|
|
10
|
+
useForgotPasswordPage: jest.fn(() => ({
|
|
11
|
+
forgotPasswordProps: {}
|
|
12
|
+
}))
|
|
13
|
+
})
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
jest.mock('@magento/venia-ui/lib/components/ForgotPassword', () => props => (
|
|
17
|
+
<mock-ForgotPassword {...props} />
|
|
18
|
+
));
|
|
19
|
+
|
|
20
|
+
jest.mock('@magento/venia-ui/lib/components/Head', () => ({
|
|
21
|
+
StoreTitle: () => 'Title'
|
|
22
|
+
}));
|
|
23
|
+
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return <ForgotPasswordPage />;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
describe('#ForgotPasswordPage', () => {
|
|
29
|
+
it('renders correctly', () => {
|
|
30
|
+
const tree = createTestInstance(<Component />);
|
|
31
|
+
|
|
32
|
+
expect(tree.toJSON()).toMatchSnapshot();
|
|
33
|
+
});
|
|
34
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { shape, string } from 'prop-types';
|
|
3
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
|
+
|
|
5
|
+
import { useForgotPasswordPage } from '@magento/peregrine/lib/talons/ForgotPasswordPage/useForgotPasswordPage';
|
|
6
|
+
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
7
|
+
import ForgotPassword from '@magento/venia-ui/lib/components/ForgotPassword';
|
|
8
|
+
import { StoreTitle } from '@magento/venia-ui/lib/components/Head';
|
|
9
|
+
|
|
10
|
+
import defaultClasses from './forgotPasswordPage.module.css';
|
|
11
|
+
|
|
12
|
+
const ForgotPasswordPage = props => {
|
|
13
|
+
const classes = useStyle(defaultClasses, props.classes);
|
|
14
|
+
const { forgotPasswordProps } = useForgotPasswordPage(props);
|
|
15
|
+
const { formatMessage } = useIntl();
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<div className={classes.root}>
|
|
19
|
+
<StoreTitle>
|
|
20
|
+
{formatMessage({
|
|
21
|
+
id: 'forgotPasswordPage.title',
|
|
22
|
+
defaultMessage: 'Forgot Your Password?'
|
|
23
|
+
})}
|
|
24
|
+
</StoreTitle>
|
|
25
|
+
<h1 className={classes.header}>
|
|
26
|
+
<FormattedMessage
|
|
27
|
+
id="forgotPasswordPage.header"
|
|
28
|
+
defaultMessage="Forgot Your Password?"
|
|
29
|
+
/>
|
|
30
|
+
</h1>
|
|
31
|
+
<div className={classes.contentContainer}>
|
|
32
|
+
<ForgotPassword {...forgotPasswordProps} />
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
ForgotPasswordPage.defaultProps = {
|
|
39
|
+
signedInRedirectUrl: '/order-history',
|
|
40
|
+
signInPageUrl: '/sign-in'
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
ForgotPasswordPage.propTypes = {
|
|
44
|
+
classes: shape({
|
|
45
|
+
root: string,
|
|
46
|
+
header: string,
|
|
47
|
+
contentContainer: string
|
|
48
|
+
}),
|
|
49
|
+
signedInRedirectUrl: string,
|
|
50
|
+
signInPageUrl: string
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export default ForgotPasswordPage;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
display: grid;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
padding: 2.5rem 0;
|
|
5
|
+
text-align: center;
|
|
6
|
+
grid-template-columns: minmax(auto, 512px);
|
|
7
|
+
row-gap: 2rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.header {
|
|
11
|
+
font-family: var(--venia-global-fontFamily-serif);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (min-width: 961px) {
|
|
15
|
+
.contentContainer {
|
|
16
|
+
padding-bottom: 2rem;
|
|
17
|
+
border: 2px solid rgb(var(--venia-global-color-border));
|
|
18
|
+
border-radius: 0.375rem;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './forgotPasswordPage';
|
|
@@ -6,7 +6,7 @@ import { useScrollIntoView } from '@magento/peregrine/lib/hooks/useScrollIntoVie
|
|
|
6
6
|
|
|
7
7
|
import { useStyle } from '../../classify';
|
|
8
8
|
import ErrorMessage from '../ErrorMessage';
|
|
9
|
-
import defaultClasses from './formError.css';
|
|
9
|
+
import defaultClasses from './formError.module.css';
|
|
10
10
|
|
|
11
11
|
const FormError = props => {
|
|
12
12
|
const { classes: propClasses, errors, scrollOnError } = props;
|
|
File without changes
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`should render add to cart if in stock 1`] = `
|
|
4
|
+
<button
|
|
5
|
+
aria-label="Add to cart"
|
|
6
|
+
disabled={false}
|
|
7
|
+
onClick={[Function]}
|
|
8
|
+
onDragStart={[Function]}
|
|
9
|
+
onKeyDown={[Function]}
|
|
10
|
+
onKeyUp={[Function]}
|
|
11
|
+
onMouseDown={[Function]}
|
|
12
|
+
onMouseEnter={[Function]}
|
|
13
|
+
onMouseLeave={[Function]}
|
|
14
|
+
onMouseUp={[Function]}
|
|
15
|
+
onTouchCancel={[Function]}
|
|
16
|
+
onTouchEnd={[Function]}
|
|
17
|
+
onTouchMove={[Function]}
|
|
18
|
+
onTouchStart={[Function]}
|
|
19
|
+
type="button"
|
|
20
|
+
>
|
|
21
|
+
<span>
|
|
22
|
+
<span>
|
|
23
|
+
<svg
|
|
24
|
+
className="icon"
|
|
25
|
+
fill="none"
|
|
26
|
+
height={16}
|
|
27
|
+
stroke="currentColor"
|
|
28
|
+
strokeLinecap="round"
|
|
29
|
+
strokeLinejoin="round"
|
|
30
|
+
strokeWidth="2"
|
|
31
|
+
viewBox="0 0 24 24"
|
|
32
|
+
width={16}
|
|
33
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
34
|
+
>
|
|
35
|
+
<path
|
|
36
|
+
d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"
|
|
37
|
+
/>
|
|
38
|
+
<line
|
|
39
|
+
x1="3"
|
|
40
|
+
x2="21"
|
|
41
|
+
y1="6"
|
|
42
|
+
y2="6"
|
|
43
|
+
/>
|
|
44
|
+
<path
|
|
45
|
+
d="M16 10a4 4 0 0 1-8 0"
|
|
46
|
+
/>
|
|
47
|
+
</svg>
|
|
48
|
+
</span>
|
|
49
|
+
<span>
|
|
50
|
+
<mock-FormattedMessage
|
|
51
|
+
defaultMessage="ADD TO CART"
|
|
52
|
+
id="addToCartButton.addItemToCart"
|
|
53
|
+
/>
|
|
54
|
+
</span>
|
|
55
|
+
</span>
|
|
56
|
+
</button>
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
exports[`should render out of cart if not in stock 1`] = `
|
|
60
|
+
<button
|
|
61
|
+
aria-label="Out of stock"
|
|
62
|
+
disabled={true}
|
|
63
|
+
onClick={[Function]}
|
|
64
|
+
onDragStart={[Function]}
|
|
65
|
+
onKeyDown={[Function]}
|
|
66
|
+
onKeyUp={[Function]}
|
|
67
|
+
onMouseDown={[Function]}
|
|
68
|
+
onMouseEnter={[Function]}
|
|
69
|
+
onMouseLeave={[Function]}
|
|
70
|
+
onMouseUp={[Function]}
|
|
71
|
+
onTouchCancel={[Function]}
|
|
72
|
+
onTouchEnd={[Function]}
|
|
73
|
+
onTouchMove={[Function]}
|
|
74
|
+
onTouchStart={[Function]}
|
|
75
|
+
type="button"
|
|
76
|
+
>
|
|
77
|
+
<span>
|
|
78
|
+
<span>
|
|
79
|
+
<svg
|
|
80
|
+
className="icon"
|
|
81
|
+
fill="none"
|
|
82
|
+
height={16}
|
|
83
|
+
stroke="currentColor"
|
|
84
|
+
strokeLinecap="round"
|
|
85
|
+
strokeLinejoin="round"
|
|
86
|
+
strokeWidth="2"
|
|
87
|
+
viewBox="0 0 24 24"
|
|
88
|
+
width={16}
|
|
89
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
90
|
+
>
|
|
91
|
+
<rect
|
|
92
|
+
height="18"
|
|
93
|
+
rx="2"
|
|
94
|
+
ry="2"
|
|
95
|
+
width="18"
|
|
96
|
+
x="3"
|
|
97
|
+
y="3"
|
|
98
|
+
/>
|
|
99
|
+
<line
|
|
100
|
+
x1="9"
|
|
101
|
+
x2="15"
|
|
102
|
+
y1="9"
|
|
103
|
+
y2="15"
|
|
104
|
+
/>
|
|
105
|
+
<line
|
|
106
|
+
x1="15"
|
|
107
|
+
x2="9"
|
|
108
|
+
y1="9"
|
|
109
|
+
y2="15"
|
|
110
|
+
/>
|
|
111
|
+
</svg>
|
|
112
|
+
</span>
|
|
113
|
+
<span>
|
|
114
|
+
<mock-FormattedMessage
|
|
115
|
+
defaultMessage="OUT OF STOCK"
|
|
116
|
+
id="addToCartButton.itemOutOfStock"
|
|
117
|
+
/>
|
|
118
|
+
</span>
|
|
119
|
+
</span>
|
|
120
|
+
</button>
|
|
121
|
+
`;
|
|
122
|
+
|
|
123
|
+
exports[`should render properly 1`] = `
|
|
124
|
+
<button
|
|
125
|
+
aria-label="Add to cart"
|
|
126
|
+
disabled={false}
|
|
127
|
+
onClick={[Function]}
|
|
128
|
+
onDragStart={[Function]}
|
|
129
|
+
onKeyDown={[Function]}
|
|
130
|
+
onKeyUp={[Function]}
|
|
131
|
+
onMouseDown={[Function]}
|
|
132
|
+
onMouseEnter={[Function]}
|
|
133
|
+
onMouseLeave={[Function]}
|
|
134
|
+
onMouseUp={[Function]}
|
|
135
|
+
onTouchCancel={[Function]}
|
|
136
|
+
onTouchEnd={[Function]}
|
|
137
|
+
onTouchMove={[Function]}
|
|
138
|
+
onTouchStart={[Function]}
|
|
139
|
+
type="button"
|
|
140
|
+
>
|
|
141
|
+
<span>
|
|
142
|
+
<span>
|
|
143
|
+
<svg
|
|
144
|
+
className="icon"
|
|
145
|
+
fill="none"
|
|
146
|
+
height={16}
|
|
147
|
+
stroke="currentColor"
|
|
148
|
+
strokeLinecap="round"
|
|
149
|
+
strokeLinejoin="round"
|
|
150
|
+
strokeWidth="2"
|
|
151
|
+
viewBox="0 0 24 24"
|
|
152
|
+
width={16}
|
|
153
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
154
|
+
>
|
|
155
|
+
<path
|
|
156
|
+
d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"
|
|
157
|
+
/>
|
|
158
|
+
<line
|
|
159
|
+
x1="3"
|
|
160
|
+
x2="21"
|
|
161
|
+
y1="6"
|
|
162
|
+
y2="6"
|
|
163
|
+
/>
|
|
164
|
+
<path
|
|
165
|
+
d="M16 10a4 4 0 0 1-8 0"
|
|
166
|
+
/>
|
|
167
|
+
</svg>
|
|
168
|
+
</span>
|
|
169
|
+
<span>
|
|
170
|
+
<mock-FormattedMessage
|
|
171
|
+
defaultMessage="ADD TO CART"
|
|
172
|
+
id="addToCartButton.addItemToCart"
|
|
173
|
+
/>
|
|
174
|
+
</span>
|
|
175
|
+
</span>
|
|
176
|
+
</button>
|
|
177
|
+
`;
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders if \`items\` is an array of objects 1`] = `
|
|
4
4
|
<div
|
|
5
|
+
aria-busy="false"
|
|
6
|
+
aria-live="polite"
|
|
5
7
|
className="root"
|
|
6
8
|
>
|
|
7
9
|
<div
|
|
8
10
|
className="items"
|
|
9
11
|
>
|
|
10
12
|
<div
|
|
13
|
+
aria-busy="false"
|
|
14
|
+
aria-live="polite"
|
|
11
15
|
className="root"
|
|
12
16
|
>
|
|
13
17
|
<div
|
|
@@ -18,7 +22,7 @@ exports[`renders if \`items\` is an array of objects 1`] = `
|
|
|
18
22
|
className="image placeholder_layoutOnly"
|
|
19
23
|
height={375}
|
|
20
24
|
loading="eager"
|
|
21
|
-
src="data:image/
|
|
25
|
+
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
22
26
|
width={100}
|
|
23
27
|
/>
|
|
24
28
|
<img
|
|
@@ -62,9 +66,37 @@ exports[`renders if \`items\` is an array of objects 1`] = `
|
|
|
62
66
|
</div>
|
|
63
67
|
<div
|
|
64
68
|
className="actionsContainer"
|
|
65
|
-
|
|
69
|
+
>
|
|
70
|
+
|
|
71
|
+
<mock-AddToCartButton
|
|
72
|
+
item={
|
|
73
|
+
Object {
|
|
74
|
+
"__typename": "SimpleProduct",
|
|
75
|
+
"id": 1,
|
|
76
|
+
"name": "Test Product 1",
|
|
77
|
+
"price_range": Object {
|
|
78
|
+
"maximum_price": Object {
|
|
79
|
+
"regular_price": Object {
|
|
80
|
+
"currency": "USD",
|
|
81
|
+
"value": 100,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
"sku": "sku-test-product1",
|
|
86
|
+
"small_image": Object {
|
|
87
|
+
"url": "/test/product/1.png",
|
|
88
|
+
},
|
|
89
|
+
"stock_status": "IN_STOCK",
|
|
90
|
+
"type_id": "simple",
|
|
91
|
+
"url_key": "test-product1",
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
66
96
|
</div>
|
|
67
97
|
<div
|
|
98
|
+
aria-busy="false"
|
|
99
|
+
aria-live="polite"
|
|
68
100
|
className="root"
|
|
69
101
|
>
|
|
70
102
|
<div
|
|
@@ -75,7 +107,7 @@ exports[`renders if \`items\` is an array of objects 1`] = `
|
|
|
75
107
|
className="image placeholder_layoutOnly"
|
|
76
108
|
height={375}
|
|
77
109
|
loading="eager"
|
|
78
|
-
src="data:image/
|
|
110
|
+
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
79
111
|
width={100}
|
|
80
112
|
/>
|
|
81
113
|
<img
|
|
@@ -119,7 +151,33 @@ exports[`renders if \`items\` is an array of objects 1`] = `
|
|
|
119
151
|
</div>
|
|
120
152
|
<div
|
|
121
153
|
className="actionsContainer"
|
|
122
|
-
|
|
154
|
+
>
|
|
155
|
+
|
|
156
|
+
<mock-AddToCartButton
|
|
157
|
+
item={
|
|
158
|
+
Object {
|
|
159
|
+
"__typename": "SimpleProduct",
|
|
160
|
+
"id": 2,
|
|
161
|
+
"name": "Test Product 2",
|
|
162
|
+
"price_range": Object {
|
|
163
|
+
"maximum_price": Object {
|
|
164
|
+
"regular_price": Object {
|
|
165
|
+
"currency": "USD",
|
|
166
|
+
"value": 100,
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
"sku": "sku-test-product2",
|
|
171
|
+
"small_image": Object {
|
|
172
|
+
"url": "/test/product/2.png",
|
|
173
|
+
},
|
|
174
|
+
"stock_status": "OUT_OF_STOCK",
|
|
175
|
+
"type_id": "simple",
|
|
176
|
+
"url_key": "test-product2",
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/>
|
|
180
|
+
</div>
|
|
123
181
|
</div>
|
|
124
182
|
</div>
|
|
125
183
|
</div>
|
|
@@ -127,6 +185,8 @@ exports[`renders if \`items\` is an array of objects 1`] = `
|
|
|
127
185
|
|
|
128
186
|
exports[`renders if \`items\` is an empty array 1`] = `
|
|
129
187
|
<div
|
|
188
|
+
aria-busy="false"
|
|
189
|
+
aria-live="polite"
|
|
130
190
|
className="root"
|
|
131
191
|
>
|
|
132
192
|
<div
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders a placeholder item while awaiting item 1`] = `
|
|
4
4
|
<div
|
|
5
|
-
|
|
5
|
+
aria-busy="true"
|
|
6
|
+
aria-live="polite"
|
|
7
|
+
className="root"
|
|
6
8
|
>
|
|
7
9
|
<div
|
|
8
|
-
className="
|
|
10
|
+
className="root_rectangle"
|
|
11
|
+
style={Object {}}
|
|
9
12
|
>
|
|
10
13
|
<div
|
|
11
14
|
className="root container"
|
|
@@ -14,7 +17,7 @@ exports[`renders a placeholder item while awaiting item 1`] = `
|
|
|
14
17
|
alt="Placeholder for gallery item image"
|
|
15
18
|
className="image placeholder_layoutOnly"
|
|
16
19
|
loading="eager"
|
|
17
|
-
src="data:image/
|
|
20
|
+
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
18
21
|
width={100}
|
|
19
22
|
/>
|
|
20
23
|
<img
|
|
@@ -23,21 +26,37 @@ exports[`renders a placeholder item while awaiting item 1`] = `
|
|
|
23
26
|
loading="lazy"
|
|
24
27
|
onError={[MockFunction]}
|
|
25
28
|
onLoad={[MockFunction]}
|
|
26
|
-
src="data:image/
|
|
29
|
+
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
27
30
|
/>
|
|
28
31
|
</div>
|
|
29
32
|
</div>
|
|
30
33
|
<div
|
|
31
|
-
className="
|
|
34
|
+
className="root_rectangle"
|
|
35
|
+
style={
|
|
36
|
+
Object {
|
|
37
|
+
"width": "100%",
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/>
|
|
41
|
+
<div
|
|
42
|
+
className="root_rectangle"
|
|
43
|
+
style={
|
|
44
|
+
Object {
|
|
45
|
+
"width": "3rem",
|
|
46
|
+
}
|
|
47
|
+
}
|
|
32
48
|
/>
|
|
33
49
|
<div
|
|
34
|
-
className="
|
|
50
|
+
className="root_button"
|
|
51
|
+
style={Object {}}
|
|
35
52
|
/>
|
|
36
53
|
</div>
|
|
37
54
|
`;
|
|
38
55
|
|
|
39
56
|
exports[`renders correctly with valid item data 1`] = `
|
|
40
57
|
<div
|
|
58
|
+
aria-busy="false"
|
|
59
|
+
aria-live="polite"
|
|
41
60
|
className="root"
|
|
42
61
|
>
|
|
43
62
|
<a
|
|
@@ -53,7 +72,7 @@ exports[`renders correctly with valid item data 1`] = `
|
|
|
53
72
|
className="image placeholder_layoutOnly"
|
|
54
73
|
height={375}
|
|
55
74
|
loading="eager"
|
|
56
|
-
src="data:image/
|
|
75
|
+
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
57
76
|
width={100}
|
|
58
77
|
/>
|
|
59
78
|
<img
|
|
@@ -104,6 +123,33 @@ exports[`renders correctly with valid item data 1`] = `
|
|
|
104
123
|
</div>
|
|
105
124
|
<div
|
|
106
125
|
className="actionsContainer"
|
|
107
|
-
|
|
126
|
+
>
|
|
127
|
+
|
|
128
|
+
<mock-AddToCartButton
|
|
129
|
+
item={
|
|
130
|
+
Object {
|
|
131
|
+
"__typename": "SimpleProduct",
|
|
132
|
+
"id": 1,
|
|
133
|
+
"name": "Test Product",
|
|
134
|
+
"price_range": Object {
|
|
135
|
+
"maximum_price": Object {
|
|
136
|
+
"regular_price": Object {
|
|
137
|
+
"currency": "USD",
|
|
138
|
+
"value": 21,
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
"sku": "sku-123",
|
|
143
|
+
"small_image": Object {
|
|
144
|
+
"url": "/foo/bar/pic.png",
|
|
145
|
+
},
|
|
146
|
+
"stock_status": "IN_STOCK",
|
|
147
|
+
"type_id": "simple",
|
|
148
|
+
"url_key": "strive-shoulder-pack",
|
|
149
|
+
"url_suffix": ".html",
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
/>
|
|
153
|
+
</div>
|
|
108
154
|
</div>
|
|
109
155
|
`;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { createTestInstance } from '@magento/peregrine';
|
|
4
|
+
import { useAddToCartButton } from '@magento/peregrine/lib/talons/Gallery/useAddToCartButton';
|
|
5
|
+
|
|
6
|
+
import AddToCartButton from '../addToCartButton';
|
|
7
|
+
|
|
8
|
+
jest.mock('@magento/peregrine/lib/talons/Gallery/useAddToCartButton', () => ({
|
|
9
|
+
useAddToCartButton: jest.fn().mockReturnValue({
|
|
10
|
+
handleAddToCart: jest.fn().mockName('handleAddToCart'),
|
|
11
|
+
isDisabled: false,
|
|
12
|
+
isInStock: true
|
|
13
|
+
})
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
test('should render properly', () => {
|
|
17
|
+
const wrapper = createTestInstance(<AddToCartButton item={{}} />);
|
|
18
|
+
|
|
19
|
+
expect(wrapper.toJSON()).toMatchSnapshot();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
test('should render add to cart if in stock', () => {
|
|
23
|
+
useAddToCartButton.mockReturnValueOnce({
|
|
24
|
+
handleAddToCart: jest.fn(),
|
|
25
|
+
isDisabled: false,
|
|
26
|
+
isInStock: true
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const wrapper = createTestInstance(<AddToCartButton item={{}} />);
|
|
30
|
+
|
|
31
|
+
expect(wrapper.toJSON()).toMatchSnapshot();
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
test('should render out of cart if not in stock', () => {
|
|
35
|
+
useAddToCartButton.mockReturnValueOnce({
|
|
36
|
+
handleAddToCart: jest.fn(),
|
|
37
|
+
isDisabled: true,
|
|
38
|
+
isInStock: false
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const wrapper = createTestInstance(<AddToCartButton item={{}} />);
|
|
42
|
+
|
|
43
|
+
expect(wrapper.toJSON()).toMatchSnapshot();
|
|
44
|
+
});
|