@magento/venia-ui 9.0.0 → 9.2.0-alpha.1
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 +21 -1
- package/lib/RootComponents/CMS/__tests__/cms.spec.js +50 -20
- package/lib/RootComponents/CMS/cms.js +39 -43
- package/lib/RootComponents/CMS/cms.module.css +17 -14
- package/lib/RootComponents/Category/NoProductsFound/noProductsFound.js +1 -1
- package/lib/RootComponents/Category/__tests__/__snapshots__/category.spec.js.snap +2 -2
- package/lib/RootComponents/Category/__tests__/__snapshots__/categoryContent.spec.js.snap +60 -0
- package/lib/RootComponents/Category/__tests__/category.spec.js +1 -1
- package/lib/RootComponents/Category/__tests__/categoryContent.spec.js +8 -0
- package/lib/RootComponents/Category/category.gql.js +2 -1
- package/lib/RootComponents/Category/category.js +6 -6
- package/lib/RootComponents/Category/categoryContent.js +11 -4
- package/lib/components/Accordion/section.js +6 -2
- package/lib/components/AccountChip/accountChip.gql.js +1 -1
- package/lib/components/AccountInformationPage/accountInformationPage.gql.js +5 -7
- package/lib/components/AccountInformationPage/accountInformationPage.js +5 -1
- package/lib/components/AccountInformationPage/editForm.js +22 -4
- package/lib/components/AccountMenu/accountMenu.js +1 -1
- package/lib/components/AccountMenu/accountMenuItems.js +2 -1
- package/lib/components/AddressBookPage/__tests__/__snapshots__/addressCard.spec.js.snap +5 -0
- package/lib/components/AddressBookPage/addEditDialog.js +36 -10
- package/lib/components/AddressBookPage/addressBookPage.js +5 -2
- package/lib/components/AddressBookPage/addressCard.js +17 -4
- package/lib/components/App/app.js +5 -1
- package/lib/components/App/localeProvider.js +2 -1
- package/lib/components/Breadcrumbs/breadcrumbs.js +3 -3
- package/lib/components/Breadcrumbs/breadcrumbs.module.css +11 -3
- package/lib/components/CartPage/GiftCards/giftCard.js +1 -0
- package/lib/components/CartPage/GiftCards/giftCards.js +2 -0
- package/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +3 -0
- package/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +3 -0
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.js +10 -2
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.js +2 -1
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.js +1 -1
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.js +1 -1
- package/lib/components/CartPage/PriceAdjustments/giftCardSection.ee.js +1 -0
- package/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +4 -1
- package/lib/components/CartPage/PriceSummary/discountSummary.js +8 -2
- package/lib/components/CartPage/PriceSummary/giftCardSummary.ee.js +4 -1
- package/lib/components/CartPage/PriceSummary/priceSummary.js +10 -3
- package/lib/components/CartPage/PriceSummary/shippingSummary.js +6 -1
- package/lib/components/CartPage/PriceSummary/taxSummary.js +1 -1
- package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productDetail.spec.js.snap +3 -3
- package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productForm.spec.js.snap +2 -2
- package/lib/components/CartPage/ProductListing/EditModal/productDetail.js +1 -1
- package/lib/components/CartPage/ProductListing/__tests__/__snapshots__/errorMessage.spec.js.snap +11 -0
- package/lib/components/CartPage/ProductListing/__tests__/errorMessage.spec.js +20 -0
- package/lib/components/CartPage/ProductListing/__tests__/product.spec.js +1 -0
- package/lib/components/CartPage/ProductListing/errorMessage.js +31 -0
- package/lib/components/CartPage/ProductListing/errorMessage.module.css +9 -0
- package/lib/components/CartPage/ProductListing/product.js +17 -10
- package/lib/components/CartPage/ProductListing/productListing.js +6 -1
- package/lib/components/CartPage/ProductListing/productListing.module.css +6 -0
- package/lib/components/CartPage/ProductListing/quantity.js +3 -0
- package/lib/components/CartPage/cartPage.js +1 -1
- package/lib/components/CategoryList/__tests__/categoryList.spec.js +2 -0
- package/lib/components/CategoryList/categoryList.js +4 -2
- package/lib/components/CategoryList/categoryList.module.css +2 -0
- package/lib/components/CategoryList/categoryTile.js +2 -0
- package/lib/components/CategoryList/categoryTile.module.css +2 -0
- package/lib/components/CategoryList/index.js +2 -0
- package/lib/components/CategoryTree/categoryBranch.js +2 -1
- package/lib/components/CategoryTree/categoryLeaf.js +1 -0
- package/lib/components/CategoryTree/categoryTree.js +3 -3
- package/lib/components/Checkbox/checkbox.module.css +11 -3
- package/lib/components/Checkout/addressForm.js +2 -3
- package/lib/components/CheckoutPage/GuestSignIn/guestSignIn.js +6 -2
- package/lib/components/CheckoutPage/ItemsReview/__fixtures__/cartItems.js +12 -12
- package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/item.spec.js.snap +2 -2
- package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/itemsReview.spec.js.snap +3 -3
- package/lib/components/CheckoutPage/ItemsReview/item.js +1 -1
- package/lib/components/CheckoutPage/ItemsReview/itemsReview.js +4 -1
- package/lib/components/CheckoutPage/OrderConfirmationPage/__tests__/__snapshots__/orderConfirmationPage.spec.js.snap +1 -1
- package/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +6 -0
- package/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +10 -4
- package/lib/components/CheckoutPage/OrderSummary/orderSummary.js +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.js +2 -1
- package/lib/components/CheckoutPage/PaymentInformation/creditCard.js +11 -1
- package/lib/components/CheckoutPage/PaymentInformation/editCard.js +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/editModal.js +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js +1 -1
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/__snapshots__/guestForm.spec.js.snap +8 -0
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/guestForm.spec.js +56 -1
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +27 -4
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +96 -9
- package/lib/components/CheckoutPage/ShippingInformation/card.js +1 -1
- package/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +14 -3
- package/lib/components/CheckoutPage/ShippingMethod/completedView.js +1 -0
- package/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +2 -1
- package/lib/components/CheckoutPage/ShippingMethod/updateModal.js +1 -0
- package/lib/components/CheckoutPage/__tests__/__snapshots__/checkoutPage.spec.js.snap +32 -0
- package/lib/components/CheckoutPage/__tests__/checkoutPage.spec.js +2 -0
- package/lib/components/CheckoutPage/checkoutPage.js +26 -4
- package/lib/components/ContactPage/__tests__/__snapshots__/contactLink.spec.js.snap +11 -0
- package/lib/components/ContactPage/__tests__/__snapshots__/contactPage.shimmer.spec.js.snap +113 -0
- package/lib/components/ContactPage/__tests__/__snapshots__/contactPage.spec.js.snap +312 -0
- package/lib/components/ContactPage/__tests__/contactLink.spec.js +58 -0
- package/lib/components/ContactPage/__tests__/contactPage.shimmer.spec.js +20 -0
- package/lib/components/ContactPage/__tests__/contactPage.spec.js +159 -0
- package/lib/components/ContactPage/contactLink.js +21 -0
- package/lib/components/ContactPage/contactPage.js +270 -0
- package/lib/components/ContactPage/contactPage.module.css +81 -0
- package/lib/components/ContactPage/contactPage.shimmer.js +104 -0
- package/lib/components/ContactPage/contactPage.shimmer.module.css +27 -0
- package/lib/components/ContactPage/index.js +2 -0
- package/lib/components/CreateAccount/createAccount.js +5 -0
- package/lib/components/Dialog/dialog.js +18 -4
- package/lib/components/ErrorMessage/errorMessage.js +7 -2
- package/lib/components/ErrorView/errorView.js +4 -2
- package/lib/components/Field/field.module.css +10 -6
- package/lib/components/FilterModal/CurrentFilters/currentFilter.js +7 -3
- package/lib/components/FilterModal/FilterList/__tests__/filterItem.spec.js +34 -5
- package/lib/components/FilterModal/FilterList/filterDefault.js +3 -2
- package/lib/components/FilterModal/FilterList/filterItem.js +27 -7
- package/lib/components/FilterModal/FilterList/filterList.js +6 -1
- package/lib/components/FilterModal/filterBlock.js +9 -4
- package/lib/components/FilterModal/filterFooter.js +1 -0
- package/lib/components/FilterModal/filterModal.js +6 -1
- package/lib/components/FilterModalOpenButton/filterModalOpenButton.js +1 -0
- package/lib/components/FilterSidebar/filterSidebar.js +6 -1
- package/lib/components/Footer/__tests__/__snapshots__/footer.spec.js.snap +15 -0
- package/lib/components/Footer/__tests__/footer.spec.js +13 -1
- package/lib/components/Footer/footer.js +17 -8
- package/lib/components/Footer/footer.module.css +18 -3
- package/lib/components/Footer/sampleData.js +8 -3
- package/lib/components/ForgotPassword/ForgotPasswordForm/forgotPasswordForm.js +3 -0
- package/lib/components/ForgotPassword/FormSubmissionSuccessful/formSubmissionSuccessful.js +4 -2
- package/lib/components/ForgotPassword/forgotPassword.gql.js +0 -1
- package/lib/components/FormError/formError.js +10 -4
- package/lib/components/Gallery/__tests__/__snapshots__/addToCartButton.spec.js.snap +0 -3
- package/lib/components/Gallery/__tests__/__snapshots__/item.spec.js.snap +1 -0
- package/lib/components/Gallery/addToCartButton.js +27 -22
- package/lib/components/Gallery/item.js +16 -4
- package/lib/components/Gallery/item.module.css +3 -1
- package/lib/components/Head/index.js +2 -1
- package/lib/components/Header/__tests__/header.spec.js +1 -1
- package/lib/components/Header/accountTrigger.js +1 -0
- package/lib/components/Header/cartTrigger.js +4 -1
- package/lib/components/Header/currencySwitcher.module.css +1 -1
- package/lib/components/Header/header.js +1 -1
- package/lib/components/Header/header.module.css +100 -96
- package/lib/components/Header/navTrigger.js +1 -0
- package/lib/components/Header/searchTrigger.js +1 -0
- package/lib/components/LegacyMiniCart/cartOptions.gql.js +7 -6
- package/lib/components/LegacyMiniCart/cartOptions.js +1 -1
- package/lib/components/LegacyMiniCart/editFormFragment.gql.js +7 -3
- package/lib/components/LegacyMiniCart/kebab.js +1 -0
- package/lib/components/LegacyMiniCart/product.js +1 -1
- package/lib/components/LegacyMiniCart/productOptions.js +6 -1
- package/lib/components/LegacyMiniCart/section.js +15 -5
- package/lib/components/Link/link.js +6 -4
- package/lib/components/Mask/mask.js +3 -3
- package/lib/components/MegaMenu/__tests__/MegaMenuItem.spec.js +1 -0
- package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenu.spec.js.snap +9 -0
- package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenuItem.spec.js.snap +6 -0
- package/lib/components/MegaMenu/__tests__/__snapshots__/Submenu.spec.js.snap +2 -0
- package/lib/components/MegaMenu/megaMenu.js +6 -2
- package/lib/components/MegaMenu/megaMenu.module.css +8 -11
- package/lib/components/MegaMenu/megaMenuItem.js +27 -6
- package/lib/components/MegaMenu/megaMenuItem.module.css +0 -5
- package/lib/components/MegaMenu/submenu.js +5 -3
- package/lib/components/MegaMenu/submenuColumn.js +15 -4
- package/lib/components/MiniCart/ProductList/__tests__/__snapshots__/item.spec.js.snap +4 -4
- package/lib/components/MiniCart/ProductList/item.js +7 -4
- package/lib/components/MiniCart/ProductList/productList.js +5 -1
- package/lib/components/MiniCart/__tests__/__snapshots__/miniCart.spec.js.snap +1 -1
- package/lib/components/MiniCart/miniCart.gql.js +4 -3
- package/lib/components/MiniCart/miniCart.js +9 -4
- package/lib/components/MyAccount/ResetPassword/resetPassword.gql.js +1 -1
- package/lib/components/Newsletter/__tests__/__snapshots__/newsletter.shimmer.spec.js.snap +40 -0
- package/lib/components/Newsletter/__tests__/__snapshots__/newsletter.spec.js.snap +173 -0
- package/lib/components/Newsletter/__tests__/newsletter.shimmer.spec.js +10 -0
- package/lib/components/Newsletter/__tests__/newsletter.spec.js +143 -0
- package/lib/components/Newsletter/index.js +1 -0
- package/lib/components/Newsletter/newsletter.js +148 -0
- package/lib/components/Newsletter/newsletter.module.css +94 -0
- package/lib/components/Newsletter/newsletter.shimmer.js +46 -0
- package/lib/components/Newsletter/newsletter.shimmer.module.css +11 -0
- package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/item.spec.js.snap +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/shippingMethod.spec.js.snap +3 -0
- package/lib/components/OrderHistoryPage/OrderDetails/billingInformation.js +4 -1
- package/lib/components/OrderHistoryPage/OrderDetails/item.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/items.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.js +4 -1
- package/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.js +5 -1
- package/lib/components/OrderHistoryPage/orderHistoryPage.js +8 -1
- package/lib/components/Pagination/pagination.js +1 -1
- package/lib/components/Pagination/tile.js +5 -1
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/__tests__/__snapshots__/boolean.spec.js.snap +20 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/__tests__/boolean.spec.js +52 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/boolean.js +74 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/boolean.module.css +9 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/__tests__/__snapshots__/date.spec.js.snap +25 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/__tests__/date.spec.js +52 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/date.js +82 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/date.module.css +9 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/__tests__/__snapshots__/dateTime.spec.js.snap +29 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/__tests__/dateTime.spec.js +53 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/dateTime.js +85 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/dateTime.module.css +9 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/__tests__/__snapshots__/multiSelect.spec.js.snap +36 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/__tests__/multiSelect.spec.js +88 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.js +99 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.module.css +13 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/__tests__/__snapshots__/price.spec.js.snap +23 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/__tests__/price.spec.js +52 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/price.js +74 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/price.module.css +9 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/__tests__/__snapshots__/select.spec.js.snap +36 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/__tests__/select.spec.js +88 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.js +99 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.module.css +13 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/__tests__/__snapshots__/text.spec.js.snap +33 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/__tests__/text.spec.js +74 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.js +88 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.module.css +13 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/__tests__/__snapshots__/textarea.spec.js.snap +33 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/__tests__/textarea.spec.js +74 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.js +88 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.module.css +13 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/__tests__/__snapshots__/attributeType.spec.js.snap +101 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/__tests__/attributeType.spec.js +173 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/attributeType.js +61 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/__tests__/__snapshots__/customAttributes.spec.js.snap +49 -0
- package/lib/components/ProductFullDetail/CustomAttributes/__tests__/customAttributes.spec.js +78 -0
- package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.js +66 -0
- package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.module.css +14 -0
- package/lib/components/ProductFullDetail/CustomAttributes/index.js +1 -0
- package/lib/components/ProductFullDetail/__tests__/__snapshots__/productFullDetail.spec.js.snap +39 -0
- package/lib/components/ProductFullDetail/__tests__/productFullDetail.spec.js +3 -1
- package/lib/components/ProductFullDetail/productFullDetail.js +18 -3
- package/lib/components/ProductOptions/__tests__/__snapshots__/option.spec.js.snap +1 -1
- package/lib/components/ProductOptions/__tests__/__snapshots__/options.spec.js.snap +2 -2
- package/lib/components/ProductOptions/__tests__/__snapshots__/swatch.spec.js.snap +44 -2
- package/lib/components/ProductOptions/__tests__/__snapshots__/swatchList.spec.js.snap +22 -1
- package/lib/components/ProductOptions/__tests__/swatch.spec.js +0 -2
- package/lib/components/ProductOptions/option.js +2 -2
- package/lib/components/ProductOptions/swatch.js +7 -5
- package/lib/components/ProductOptions/swatch.module.css +11 -0
- package/lib/components/ProductOptions/tile.js +1 -0
- package/lib/components/ProductSort/__tests__/__snapshots__/sortItem.spec.js.snap +14 -0
- package/lib/components/ProductSort/__tests__/sortItem.spec.js +61 -0
- package/lib/components/ProductSort/productSort.js +84 -40
- package/lib/components/ProductSort/sortItem.js +26 -11
- package/lib/components/RadioGroup/radio.module.css +13 -5
- package/lib/components/RadioGroup/radioGroup.js +2 -1
- package/lib/components/Rating/__tests__/__snapshots__/rating.spec.js.snap +27 -0
- package/lib/components/Rating/__tests__/rating.spec.js +13 -0
- package/lib/components/Rating/index.js +1 -0
- package/lib/components/Rating/rating.js +30 -0
- package/lib/components/Rating/rating.module.css +21 -0
- package/lib/components/RichContent/richContent.module.css +52 -59
- package/lib/components/SearchBar/autocomplete.js +2 -0
- package/lib/components/SearchBar/searchBar.js +1 -1
- package/lib/components/SearchBar/searchBar.module.css +1 -0
- package/lib/components/SearchBar/searchField.js +1 -0
- package/lib/components/SearchBar/suggestedCategory.js +1 -1
- package/lib/components/SearchBar/suggestedProduct.js +6 -1
- package/lib/components/SearchPage/__tests__/__snapshots__/searchPage.spec.js.snap +195 -1
- package/lib/components/SearchPage/__tests__/searchPage.spec.js +13 -0
- package/lib/components/SearchPage/searchPage.js +20 -6
- package/lib/components/Shimmer/shimmer.js +11 -2
- package/lib/components/Shimmer/shimmer.module.css +4 -8
- package/lib/components/SignIn/__tests__/__snapshots__/signIn.spec.js.snap +126 -0
- package/lib/components/SignIn/__tests__/signIn.spec.js +11 -0
- package/lib/components/SignIn/signIn.gql.js +8 -4
- package/lib/components/SignIn/signIn.js +24 -4
- package/lib/components/TextArea/textArea.module.css +9 -0
- package/lib/components/TextInput/textInput.module.css +4 -0
- package/lib/components/ToastContainer/toast.js +23 -3
- package/lib/components/ToastContainer/toast.module.css +3 -0
- package/lib/components/Trigger/trigger.js +9 -2
- package/lib/components/Wishlist/AddToListButton/addToListButton.ee.js +1 -0
- package/lib/components/Wishlist/WishlistDialog/CreateWishlistForm/createWishlistForm.js +2 -0
- package/lib/components/Wishlist/WishlistDialog/WishlistLineItem/wishlistLineItem.js +1 -0
- package/lib/components/Wishlist/WishlistDialog/wishlistDialog.js +1 -0
- package/lib/components/WishlistPage/__tests__/__snapshots__/wishlistPage.spec.js.snap +5 -5
- package/lib/components/WishlistPage/createWishlist.ee.js +2 -0
- package/lib/components/WishlistPage/wishlist.js +8 -3
- package/lib/components/WishlistPage/wishlistItem.js +17 -4
- package/lib/components/WishlistPage/wishlistPage.js +5 -3
- package/lib/defaultRoutes.json +6 -0
- package/lib/targets/__tests__/venia-ui-targets.spec.js +2 -0
- package/lib/util/__tests__/shrinkGETQuery.spec.js +1 -1
- package/lib/util/apolloCache.js +2 -2
- package/lib/util/formValidators.js +10 -8
- package/lib/util/toCamelCase.js +3 -0
- package/package.json +17 -14
- package/upward.yml +19 -40
|
@@ -15,6 +15,8 @@ import defaultClasses from './item.module.css';
|
|
|
15
15
|
import WishlistGalleryButton from '../Wishlist/AddToListButton';
|
|
16
16
|
|
|
17
17
|
import AddToCartbutton from '../Gallery/addToCartButton';
|
|
18
|
+
// eslint-disable-next-line no-unused-vars
|
|
19
|
+
import Rating from '../Rating';
|
|
18
20
|
|
|
19
21
|
// The placeholder image is 4:5, so we should make sure to size our product
|
|
20
22
|
// images appropriately.
|
|
@@ -44,7 +46,9 @@ const GalleryItem = props => {
|
|
|
44
46
|
return <GalleryItemShimmer classes={classes} />;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
// eslint-disable-next-line no-unused-vars
|
|
50
|
+
const { name, price_range, small_image, url_key, rating_summary } = item;
|
|
51
|
+
|
|
48
52
|
const { url: smallImageURL } = small_image;
|
|
49
53
|
const productLink = resourceUrl(`/${url_key}${productUrlSuffix || ''}`);
|
|
50
54
|
|
|
@@ -53,7 +57,7 @@ const GalleryItem = props => {
|
|
|
53
57
|
) : null;
|
|
54
58
|
|
|
55
59
|
const addButton = isSupportedProductType ? (
|
|
56
|
-
<AddToCartbutton item={item} />
|
|
60
|
+
<AddToCartbutton item={item} urlSuffix={productUrlSuffix} />
|
|
57
61
|
) : (
|
|
58
62
|
<div className={classes.unavailableContainer}>
|
|
59
63
|
<Info />
|
|
@@ -66,6 +70,12 @@ const GalleryItem = props => {
|
|
|
66
70
|
</div>
|
|
67
71
|
);
|
|
68
72
|
|
|
73
|
+
// Hide the Rating component until it is updated with the new look and feel (PWA-2512).
|
|
74
|
+
const ratingAverage = null;
|
|
75
|
+
// const ratingAverage = rating_summary ? (
|
|
76
|
+
// <Rating rating={rating_summary} />
|
|
77
|
+
// ) : null;
|
|
78
|
+
|
|
69
79
|
return (
|
|
70
80
|
<div className={classes.root} aria-live="polite" aria-busy="false">
|
|
71
81
|
<Link
|
|
@@ -85,11 +95,13 @@ const GalleryItem = props => {
|
|
|
85
95
|
resource={smallImageURL}
|
|
86
96
|
widths={IMAGE_WIDTHS}
|
|
87
97
|
/>
|
|
98
|
+
{ratingAverage}
|
|
88
99
|
</Link>
|
|
89
100
|
<Link
|
|
90
101
|
onClick={handleLinkClick}
|
|
91
102
|
to={productLink}
|
|
92
103
|
className={classes.name}
|
|
104
|
+
data-cy="GalleryItem-name"
|
|
93
105
|
>
|
|
94
106
|
<span>{name}</span>
|
|
95
107
|
</Link>
|
|
@@ -124,14 +136,14 @@ GalleryItem.propTypes = {
|
|
|
124
136
|
}),
|
|
125
137
|
item: shape({
|
|
126
138
|
id: number.isRequired,
|
|
139
|
+
uid: string.isRequired,
|
|
127
140
|
name: string.isRequired,
|
|
128
141
|
small_image: shape({
|
|
129
142
|
url: string.isRequired
|
|
130
143
|
}),
|
|
131
144
|
stock_status: string.isRequired,
|
|
132
|
-
|
|
145
|
+
__typename: string.isRequired,
|
|
133
146
|
url_key: string.isRequired,
|
|
134
|
-
url_suffix: string,
|
|
135
147
|
sku: string.isRequired,
|
|
136
148
|
price_range: shape({
|
|
137
149
|
maximum_price: shape({
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
.images {
|
|
8
8
|
display: grid;
|
|
9
9
|
grid-template-areas: 'main';
|
|
10
|
+
position: relative;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.imageContainer {
|
|
@@ -38,7 +39,8 @@
|
|
|
38
39
|
|
|
39
40
|
.actionsContainer {
|
|
40
41
|
column-gap: 1rem;
|
|
41
|
-
display:
|
|
42
|
+
display: grid;
|
|
43
|
+
grid-template-columns: auto auto;
|
|
42
44
|
padding-left: 0.5rem;
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -44,7 +44,9 @@ const CartTrigger = props => {
|
|
|
44
44
|
: classes.triggerContainer;
|
|
45
45
|
|
|
46
46
|
const maybeItemCounter = itemCount ? (
|
|
47
|
-
<span className={classes.counter}>
|
|
47
|
+
<span className={classes.counter} data-cy="CartTrigger-counter">
|
|
48
|
+
{itemCountDisplay}
|
|
49
|
+
</span>
|
|
48
50
|
) : null;
|
|
49
51
|
|
|
50
52
|
const cartTrigger = hideCartTrigger ? null : (
|
|
@@ -57,6 +59,7 @@ const CartTrigger = props => {
|
|
|
57
59
|
aria-label={buttonAriaLabel}
|
|
58
60
|
className={classes.trigger}
|
|
59
61
|
onClick={handleTriggerClick}
|
|
62
|
+
data-cy="CartTrigger-trigger"
|
|
60
63
|
>
|
|
61
64
|
<Icon src={ShoppingCartIcon} />
|
|
62
65
|
{maybeItemCounter}
|
|
@@ -1,19 +1,45 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
composes: auto-cols-fr from global;
|
|
3
|
+
composes: bg-white from global;
|
|
4
|
+
composes: border-b from global;
|
|
5
|
+
composes: border-neutral-l1 from global;
|
|
6
|
+
composes: grid from global;
|
|
7
|
+
composes: h-auto from global;
|
|
8
|
+
composes: justify-center from global;
|
|
9
|
+
composes: px-4 from global;
|
|
10
|
+
composes: top-0 from global;
|
|
11
|
+
composes: sticky from global;
|
|
12
|
+
composes: w-full from global;
|
|
13
|
+
composes: z-10 from global;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Large screen styles */
|
|
17
|
+
.root {
|
|
18
|
+
composes: lg_px-8 from global;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.switchers {
|
|
22
|
+
composes: auto-cols-max from global;
|
|
23
|
+
composes: grid from global;
|
|
24
|
+
composes: grid-flow-col from global;
|
|
25
|
+
composes: justify-end from global;
|
|
26
|
+
composes: max-w-desktop from global;
|
|
27
|
+
composes: mx-auto from global;
|
|
28
|
+
composes: relative from global;
|
|
29
|
+
composes: w-full from global;
|
|
30
|
+
composes: z-11 from global;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.switchersContainer {
|
|
34
|
+
composes: bg-gray-100 from global;
|
|
35
|
+
composes: hidden from global;
|
|
36
|
+
composes: px-8 from global;
|
|
37
|
+
composes: w-full from global;
|
|
13
38
|
}
|
|
14
39
|
|
|
40
|
+
/* Large screen styles */
|
|
15
41
|
.switchersContainer {
|
|
16
|
-
|
|
42
|
+
composes: sm_block from global;
|
|
17
43
|
}
|
|
18
44
|
|
|
19
45
|
.open {
|
|
@@ -25,90 +51,84 @@
|
|
|
25
51
|
}
|
|
26
52
|
|
|
27
53
|
.toolbar {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
grid-
|
|
33
|
-
grid-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
width: 100%;
|
|
50
|
-
position: relative;
|
|
51
|
-
z-index: 11;
|
|
52
|
-
margin: 0 auto;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.switchersContainer {
|
|
56
|
-
display: block;
|
|
57
|
-
width: 100%;
|
|
58
|
-
background-color: rgb(var(--venia-global-color-gray-100));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.toolbar {
|
|
62
|
-
grid-template-areas: 'primary title secondary';
|
|
63
|
-
grid-template-columns: auto auto 1fr;
|
|
64
|
-
min-height: var(--venia-global-header-minHeight);
|
|
65
|
-
padding: 0 1rem;
|
|
66
|
-
}
|
|
54
|
+
composes: border-0 from global;
|
|
55
|
+
composes: content-center from global;
|
|
56
|
+
composes: gap-x-4 from global;
|
|
57
|
+
composes: grid from global;
|
|
58
|
+
composes: grid-cols-3 from global;
|
|
59
|
+
composes: grid-rows-header from global;
|
|
60
|
+
composes: h-14 from global;
|
|
61
|
+
composes: items-center from global;
|
|
62
|
+
composes: justify-self-center from global;
|
|
63
|
+
composes: max-w-desktop from global;
|
|
64
|
+
composes: min-height-header from global;
|
|
65
|
+
composes: w-full from global;
|
|
66
|
+
composes: z-3 from global;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Large screen styles */
|
|
70
|
+
.toolbar {
|
|
71
|
+
composes: lg_h-20 from global;
|
|
72
|
+
composes: lg_gap-x-8 from global;
|
|
73
|
+
composes: lg_grid-cols-12 from global;
|
|
74
|
+
composes: lg_min-height-header from global;
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
.logo {
|
|
70
|
-
|
|
78
|
+
composes: h-full from global;
|
|
71
79
|
}
|
|
72
80
|
|
|
73
81
|
.primaryActions {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
82
|
+
composes: col-start-1 from global;
|
|
83
|
+
composes: grid from global;
|
|
84
|
+
composes: grid-flow-col from global;
|
|
85
|
+
composes: justify-self-start from global;
|
|
86
|
+
composes: row-start-1 from global;
|
|
87
|
+
composes: self-center from global;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.logoContainer {
|
|
91
|
+
composes: col-start-2 from global;
|
|
92
|
+
composes: justify-self-center from global;
|
|
93
|
+
composes: my-4 from global;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Large screen styles */
|
|
97
|
+
.logoContainer {
|
|
98
|
+
composes: lg_col-end-3 from global;
|
|
99
|
+
composes: lg_col-start-1 from global;
|
|
100
|
+
composes: lg_justify-self-start from global;
|
|
101
|
+
composes: lg_mr-8 from global;
|
|
102
|
+
composes: lg_row-start-1 from global;
|
|
79
103
|
}
|
|
80
104
|
|
|
81
105
|
.secondaryActions {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
justify-items
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@media (min-width: 641px) {
|
|
92
|
-
.logoContainer {
|
|
93
|
-
grid-column: 2/ 3;
|
|
94
|
-
grid-row: 1 / 1;
|
|
95
|
-
}
|
|
106
|
+
composes: col-start-3 from global;
|
|
107
|
+
composes: grid from global;
|
|
108
|
+
composes: grid-flow-col from global;
|
|
109
|
+
composes: items-center from global;
|
|
110
|
+
composes: justify-items-end from global;
|
|
111
|
+
composes: justify-self-end from global;
|
|
112
|
+
composes: w-max from global;
|
|
113
|
+
}
|
|
96
114
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
115
|
+
/* Large screen styles */
|
|
116
|
+
.secondaryActions {
|
|
117
|
+
composes: lg_col-end-13 from global;
|
|
118
|
+
composes: lg_col-start-10 from global;
|
|
119
|
+
composes: lg_gap-x-4 from global;
|
|
100
120
|
}
|
|
101
121
|
|
|
102
122
|
.searchFallback {
|
|
103
|
-
|
|
104
|
-
justify-
|
|
105
|
-
|
|
106
|
-
|
|
123
|
+
composes: flex from global;
|
|
124
|
+
composes: justify-center from global;
|
|
125
|
+
composes: mb-2 from global;
|
|
126
|
+
composes: px-4 from global;
|
|
107
127
|
}
|
|
108
128
|
|
|
109
129
|
.input {
|
|
110
130
|
composes: input from '../TextInput/textInput.module.css';
|
|
111
|
-
max-
|
|
131
|
+
composes: max-w-sm from global;
|
|
112
132
|
}
|
|
113
133
|
|
|
114
134
|
.loader,
|
|
@@ -125,10 +145,10 @@
|
|
|
125
145
|
}
|
|
126
146
|
|
|
127
147
|
.loader {
|
|
148
|
+
composes: relative from global;
|
|
128
149
|
color: rgb(var(--venia-global-color-gray-dark));
|
|
129
150
|
font-size: var(--dot-font-size);
|
|
130
151
|
margin: var(--dot-shadow-offset) auto 0;
|
|
131
|
-
position: relative;
|
|
132
152
|
transform: translateZ(0);
|
|
133
153
|
animation-delay: -0.16s;
|
|
134
154
|
}
|
|
@@ -151,22 +171,6 @@
|
|
|
151
171
|
left: 3.5em;
|
|
152
172
|
}
|
|
153
173
|
|
|
154
|
-
@media (min-width: 1024px) {
|
|
155
|
-
.logoContainer {
|
|
156
|
-
grid-column: 1 / 2;
|
|
157
|
-
grid-row: 1 / 1;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.secondaryActions {
|
|
161
|
-
grid-column: 4 / 5;
|
|
162
|
-
grid-row: 1 / 1;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.toolbar {
|
|
166
|
-
grid-template-columns: 0.5fr 0.5fr 3fr 1fr;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
174
|
@keyframes pulse {
|
|
171
175
|
0%,
|
|
172
176
|
80%,
|
|
@@ -2,9 +2,10 @@ import { gql } from '@apollo/client';
|
|
|
2
2
|
import { CartPageFragment } from '@magento/peregrine/lib/talons/CartPage/cartPageFragments.gql.js';
|
|
3
3
|
|
|
4
4
|
export const REMOVE_ITEM_MUTATION = gql`
|
|
5
|
-
mutation RemoveItemForOptions($cartId: String!, $itemId:
|
|
6
|
-
removeItemFromCart(
|
|
7
|
-
|
|
5
|
+
mutation RemoveItemForOptions($cartId: String!, $itemId: ID!) {
|
|
6
|
+
removeItemFromCart(
|
|
7
|
+
input: { cart_id: $cartId, cart_item_uid: $itemId }
|
|
8
|
+
) {
|
|
8
9
|
cart {
|
|
9
10
|
id
|
|
10
11
|
# If this mutation causes "free" to become available we need to know.
|
|
@@ -22,15 +23,15 @@ export const REMOVE_ITEM_MUTATION = gql`
|
|
|
22
23
|
export const UPDATE_ITEM_MUTATION = gql`
|
|
23
24
|
mutation updateItemInCart(
|
|
24
25
|
$cartId: String!
|
|
25
|
-
$itemId:
|
|
26
|
+
$itemId: ID!
|
|
26
27
|
$quantity: Float!
|
|
27
28
|
) {
|
|
28
29
|
updateCartItems(
|
|
29
30
|
input: {
|
|
30
31
|
cart_id: $cartId
|
|
31
|
-
cart_items: [{
|
|
32
|
+
cart_items: [{ cart_item_uid: $itemId, quantity: $quantity }]
|
|
32
33
|
}
|
|
33
|
-
)
|
|
34
|
+
) {
|
|
34
35
|
cart {
|
|
35
36
|
id
|
|
36
37
|
# If this mutation causes "free" to become available we need to know.
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
|
|
3
3
|
export const EditFormFragment = gql`
|
|
4
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
4
5
|
fragment EditFormFragment on ProductInterface {
|
|
5
|
-
|
|
6
|
+
uid
|
|
6
7
|
name
|
|
7
8
|
sku
|
|
8
9
|
url_key
|
|
9
10
|
__typename
|
|
11
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
10
12
|
... on ConfigurableProduct {
|
|
13
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
11
14
|
configurable_options {
|
|
12
15
|
attribute_code
|
|
13
16
|
attribute_id
|
|
14
|
-
|
|
17
|
+
uid
|
|
15
18
|
label
|
|
16
19
|
values {
|
|
17
20
|
default_label
|
|
@@ -32,8 +35,9 @@ export const EditFormFragment = gql`
|
|
|
32
35
|
code
|
|
33
36
|
value_index
|
|
34
37
|
}
|
|
38
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
35
39
|
product {
|
|
36
|
-
|
|
40
|
+
uid
|
|
37
41
|
media_gallery_entries {
|
|
38
42
|
id
|
|
39
43
|
disabled
|
|
@@ -19,7 +19,12 @@ const ProductOptions = props => {
|
|
|
19
19
|
<dt className={classes.optionName}>
|
|
20
20
|
{optionLabelString}
|
|
21
21
|
</dt>
|
|
22
|
-
<dd
|
|
22
|
+
<dd
|
|
23
|
+
className={classes.optionValue}
|
|
24
|
+
data-cy="ProductOptions-optionValue"
|
|
25
|
+
>
|
|
26
|
+
{value_label}
|
|
27
|
+
</dd>
|
|
23
28
|
</div>
|
|
24
29
|
);
|
|
25
30
|
}),
|
|
@@ -17,9 +17,16 @@ const icons = new Map()
|
|
|
17
17
|
.set('Trash', TrashIcon);
|
|
18
18
|
|
|
19
19
|
const Section = props => {
|
|
20
|
-
const {
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
const {
|
|
21
|
+
icon,
|
|
22
|
+
isFilled,
|
|
23
|
+
onClick,
|
|
24
|
+
text,
|
|
25
|
+
classes: propClasses,
|
|
26
|
+
...restProps
|
|
27
|
+
} = props;
|
|
28
|
+
|
|
29
|
+
const classes = useStyle(defaultClasses, propClasses);
|
|
23
30
|
const iconClasses = { root: classes.icon };
|
|
24
31
|
const iconSrc = icons.get(icon);
|
|
25
32
|
|
|
@@ -28,8 +35,11 @@ const Section = props => {
|
|
|
28
35
|
}
|
|
29
36
|
|
|
30
37
|
return (
|
|
31
|
-
<li className={classes.menuItem}>
|
|
32
|
-
<button
|
|
38
|
+
<li className={classes.menuItem} {...restProps}>
|
|
39
|
+
<button
|
|
40
|
+
onMouseDown={onClick}
|
|
41
|
+
data-cy="LegacyMiniCart-Section-button"
|
|
42
|
+
>
|
|
33
43
|
<Icon classes={iconClasses} size={16} src={iconSrc} />
|
|
34
44
|
<span className={classes.text}>{text}</span>
|
|
35
45
|
</button>
|
|
@@ -10,11 +10,13 @@ const removeProps = (props, exclude) => {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Use for links to pages within your app.
|
|
14
|
-
*
|
|
15
13
|
* @kind functional component
|
|
16
|
-
*
|
|
17
|
-
* @
|
|
14
|
+
*
|
|
15
|
+
* @property {bool} prefetchType `true` activates prefetching the target page when the link becomes visible in the viewport.
|
|
16
|
+
* @property {string} to From [react-router-dom Link](https://knowbody.github.io/react-router-docs/api/Link.html). The absolute path to the target page of the link. Uses the `to` prop from the `react-router-dom Link`.
|
|
17
|
+
*
|
|
18
|
+
* @example <caption>Basic usage</caption>
|
|
19
|
+
* <Link prefetchType={true} to="/about/">About Us</Link>
|
|
18
20
|
*/
|
|
19
21
|
const Link = props => {
|
|
20
22
|
const talonProps = useLink(props);
|
|
@@ -13,11 +13,11 @@ import defaultClasses from './mask.module.css';
|
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
const Mask = props => {
|
|
16
|
-
const { dismiss, isActive } = props;
|
|
17
|
-
const classes = useStyle(defaultClasses,
|
|
16
|
+
const { dismiss, isActive, classes: propClasses, ...restProps } = props;
|
|
17
|
+
const classes = useStyle(defaultClasses, propClasses);
|
|
18
18
|
const className = isActive ? classes.root_active : classes.root;
|
|
19
19
|
|
|
20
|
-
return <button className={className} onClick={dismiss} />;
|
|
20
|
+
return <button className={className} onClick={dismiss} {...restProps} />;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export default Mask;
|
|
@@ -14,6 +14,9 @@ exports[`#MegaMenu renders menu if in viewport 1`] = `
|
|
|
14
14
|
>
|
|
15
15
|
<div
|
|
16
16
|
className="megaMenuItem"
|
|
17
|
+
onMouseEnter={[Function]}
|
|
18
|
+
onMouseLeave={[Function]}
|
|
19
|
+
onTouchStart={[Function]}
|
|
17
20
|
>
|
|
18
21
|
<a
|
|
19
22
|
aria-label="Category: Women. 1 sub-categories"
|
|
@@ -76,6 +79,9 @@ exports[`#MegaMenu renders menu if in viewport 1`] = `
|
|
|
76
79
|
</div>
|
|
77
80
|
<div
|
|
78
81
|
className="megaMenuItem"
|
|
82
|
+
onMouseEnter={[Function]}
|
|
83
|
+
onMouseLeave={[Function]}
|
|
84
|
+
onTouchStart={[Function]}
|
|
79
85
|
>
|
|
80
86
|
<a
|
|
81
87
|
className="megaMenuLink"
|
|
@@ -88,6 +94,9 @@ exports[`#MegaMenu renders menu if in viewport 1`] = `
|
|
|
88
94
|
</div>
|
|
89
95
|
<div
|
|
90
96
|
className="megaMenuItem"
|
|
97
|
+
onMouseEnter={[Function]}
|
|
98
|
+
onMouseLeave={[Function]}
|
|
99
|
+
onTouchStart={[Function]}
|
|
91
100
|
>
|
|
92
101
|
<a
|
|
93
102
|
className="megaMenuLink"
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
exports[`Mega menu item renders correctly it does not render submenu when item does not have children 1`] = `
|
|
4
4
|
<div
|
|
5
5
|
className="megaMenuItem"
|
|
6
|
+
onMouseEnter={[Function]}
|
|
7
|
+
onMouseLeave={[Function]}
|
|
8
|
+
onTouchStart={[Function]}
|
|
6
9
|
>
|
|
7
10
|
<mock-Submenu
|
|
8
11
|
categoryUrlSuffix=".html"
|
|
@@ -34,6 +37,9 @@ exports[`Mega menu item renders correctly it does not render submenu when item d
|
|
|
34
37
|
exports[`Mega menu item renders correctly it renders correctly 1`] = `
|
|
35
38
|
<div
|
|
36
39
|
className="megaMenuItem"
|
|
40
|
+
onMouseEnter={[Function]}
|
|
41
|
+
onMouseLeave={[Function]}
|
|
42
|
+
onTouchStart={[Function]}
|
|
37
43
|
>
|
|
38
44
|
<mock-Submenu
|
|
39
45
|
categoryUrlSuffix=".html"
|