@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.
Files changed (299) hide show
  1. package/i18n/en_US.json +21 -1
  2. package/lib/RootComponents/CMS/__tests__/cms.spec.js +50 -20
  3. package/lib/RootComponents/CMS/cms.js +39 -43
  4. package/lib/RootComponents/CMS/cms.module.css +17 -14
  5. package/lib/RootComponents/Category/NoProductsFound/noProductsFound.js +1 -1
  6. package/lib/RootComponents/Category/__tests__/__snapshots__/category.spec.js.snap +2 -2
  7. package/lib/RootComponents/Category/__tests__/__snapshots__/categoryContent.spec.js.snap +60 -0
  8. package/lib/RootComponents/Category/__tests__/category.spec.js +1 -1
  9. package/lib/RootComponents/Category/__tests__/categoryContent.spec.js +8 -0
  10. package/lib/RootComponents/Category/category.gql.js +2 -1
  11. package/lib/RootComponents/Category/category.js +6 -6
  12. package/lib/RootComponents/Category/categoryContent.js +11 -4
  13. package/lib/components/Accordion/section.js +6 -2
  14. package/lib/components/AccountChip/accountChip.gql.js +1 -1
  15. package/lib/components/AccountInformationPage/accountInformationPage.gql.js +5 -7
  16. package/lib/components/AccountInformationPage/accountInformationPage.js +5 -1
  17. package/lib/components/AccountInformationPage/editForm.js +22 -4
  18. package/lib/components/AccountMenu/accountMenu.js +1 -1
  19. package/lib/components/AccountMenu/accountMenuItems.js +2 -1
  20. package/lib/components/AddressBookPage/__tests__/__snapshots__/addressCard.spec.js.snap +5 -0
  21. package/lib/components/AddressBookPage/addEditDialog.js +36 -10
  22. package/lib/components/AddressBookPage/addressBookPage.js +5 -2
  23. package/lib/components/AddressBookPage/addressCard.js +17 -4
  24. package/lib/components/App/app.js +5 -1
  25. package/lib/components/App/localeProvider.js +2 -1
  26. package/lib/components/Breadcrumbs/breadcrumbs.js +3 -3
  27. package/lib/components/Breadcrumbs/breadcrumbs.module.css +11 -3
  28. package/lib/components/CartPage/GiftCards/giftCard.js +1 -0
  29. package/lib/components/CartPage/GiftCards/giftCards.js +2 -0
  30. package/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +3 -0
  31. package/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +3 -0
  32. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.js +10 -2
  33. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.js +2 -1
  34. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.js +1 -1
  35. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.js +1 -1
  36. package/lib/components/CartPage/PriceAdjustments/giftCardSection.ee.js +1 -0
  37. package/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +4 -1
  38. package/lib/components/CartPage/PriceSummary/discountSummary.js +8 -2
  39. package/lib/components/CartPage/PriceSummary/giftCardSummary.ee.js +4 -1
  40. package/lib/components/CartPage/PriceSummary/priceSummary.js +10 -3
  41. package/lib/components/CartPage/PriceSummary/shippingSummary.js +6 -1
  42. package/lib/components/CartPage/PriceSummary/taxSummary.js +1 -1
  43. package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productDetail.spec.js.snap +3 -3
  44. package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productForm.spec.js.snap +2 -2
  45. package/lib/components/CartPage/ProductListing/EditModal/productDetail.js +1 -1
  46. package/lib/components/CartPage/ProductListing/__tests__/__snapshots__/errorMessage.spec.js.snap +11 -0
  47. package/lib/components/CartPage/ProductListing/__tests__/errorMessage.spec.js +20 -0
  48. package/lib/components/CartPage/ProductListing/__tests__/product.spec.js +1 -0
  49. package/lib/components/CartPage/ProductListing/errorMessage.js +31 -0
  50. package/lib/components/CartPage/ProductListing/errorMessage.module.css +9 -0
  51. package/lib/components/CartPage/ProductListing/product.js +17 -10
  52. package/lib/components/CartPage/ProductListing/productListing.js +6 -1
  53. package/lib/components/CartPage/ProductListing/productListing.module.css +6 -0
  54. package/lib/components/CartPage/ProductListing/quantity.js +3 -0
  55. package/lib/components/CartPage/cartPage.js +1 -1
  56. package/lib/components/CategoryList/__tests__/categoryList.spec.js +2 -0
  57. package/lib/components/CategoryList/categoryList.js +4 -2
  58. package/lib/components/CategoryList/categoryList.module.css +2 -0
  59. package/lib/components/CategoryList/categoryTile.js +2 -0
  60. package/lib/components/CategoryList/categoryTile.module.css +2 -0
  61. package/lib/components/CategoryList/index.js +2 -0
  62. package/lib/components/CategoryTree/categoryBranch.js +2 -1
  63. package/lib/components/CategoryTree/categoryLeaf.js +1 -0
  64. package/lib/components/CategoryTree/categoryTree.js +3 -3
  65. package/lib/components/Checkbox/checkbox.module.css +11 -3
  66. package/lib/components/Checkout/addressForm.js +2 -3
  67. package/lib/components/CheckoutPage/GuestSignIn/guestSignIn.js +6 -2
  68. package/lib/components/CheckoutPage/ItemsReview/__fixtures__/cartItems.js +12 -12
  69. package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/item.spec.js.snap +2 -2
  70. package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/itemsReview.spec.js.snap +3 -3
  71. package/lib/components/CheckoutPage/ItemsReview/item.js +1 -1
  72. package/lib/components/CheckoutPage/ItemsReview/itemsReview.js +4 -1
  73. package/lib/components/CheckoutPage/OrderConfirmationPage/__tests__/__snapshots__/orderConfirmationPage.spec.js.snap +1 -1
  74. package/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +6 -0
  75. package/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +10 -4
  76. package/lib/components/CheckoutPage/OrderSummary/orderSummary.js +1 -1
  77. package/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.js +2 -1
  78. package/lib/components/CheckoutPage/PaymentInformation/creditCard.js +11 -1
  79. package/lib/components/CheckoutPage/PaymentInformation/editCard.js +1 -1
  80. package/lib/components/CheckoutPage/PaymentInformation/editModal.js +1 -1
  81. package/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js +1 -1
  82. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/__snapshots__/guestForm.spec.js.snap +8 -0
  83. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/guestForm.spec.js +56 -1
  84. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +27 -4
  85. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +96 -9
  86. package/lib/components/CheckoutPage/ShippingInformation/card.js +1 -1
  87. package/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +14 -3
  88. package/lib/components/CheckoutPage/ShippingMethod/completedView.js +1 -0
  89. package/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +2 -1
  90. package/lib/components/CheckoutPage/ShippingMethod/updateModal.js +1 -0
  91. package/lib/components/CheckoutPage/__tests__/__snapshots__/checkoutPage.spec.js.snap +32 -0
  92. package/lib/components/CheckoutPage/__tests__/checkoutPage.spec.js +2 -0
  93. package/lib/components/CheckoutPage/checkoutPage.js +26 -4
  94. package/lib/components/ContactPage/__tests__/__snapshots__/contactLink.spec.js.snap +11 -0
  95. package/lib/components/ContactPage/__tests__/__snapshots__/contactPage.shimmer.spec.js.snap +113 -0
  96. package/lib/components/ContactPage/__tests__/__snapshots__/contactPage.spec.js.snap +312 -0
  97. package/lib/components/ContactPage/__tests__/contactLink.spec.js +58 -0
  98. package/lib/components/ContactPage/__tests__/contactPage.shimmer.spec.js +20 -0
  99. package/lib/components/ContactPage/__tests__/contactPage.spec.js +159 -0
  100. package/lib/components/ContactPage/contactLink.js +21 -0
  101. package/lib/components/ContactPage/contactPage.js +270 -0
  102. package/lib/components/ContactPage/contactPage.module.css +81 -0
  103. package/lib/components/ContactPage/contactPage.shimmer.js +104 -0
  104. package/lib/components/ContactPage/contactPage.shimmer.module.css +27 -0
  105. package/lib/components/ContactPage/index.js +2 -0
  106. package/lib/components/CreateAccount/createAccount.js +5 -0
  107. package/lib/components/Dialog/dialog.js +18 -4
  108. package/lib/components/ErrorMessage/errorMessage.js +7 -2
  109. package/lib/components/ErrorView/errorView.js +4 -2
  110. package/lib/components/Field/field.module.css +10 -6
  111. package/lib/components/FilterModal/CurrentFilters/currentFilter.js +7 -3
  112. package/lib/components/FilterModal/FilterList/__tests__/filterItem.spec.js +34 -5
  113. package/lib/components/FilterModal/FilterList/filterDefault.js +3 -2
  114. package/lib/components/FilterModal/FilterList/filterItem.js +27 -7
  115. package/lib/components/FilterModal/FilterList/filterList.js +6 -1
  116. package/lib/components/FilterModal/filterBlock.js +9 -4
  117. package/lib/components/FilterModal/filterFooter.js +1 -0
  118. package/lib/components/FilterModal/filterModal.js +6 -1
  119. package/lib/components/FilterModalOpenButton/filterModalOpenButton.js +1 -0
  120. package/lib/components/FilterSidebar/filterSidebar.js +6 -1
  121. package/lib/components/Footer/__tests__/__snapshots__/footer.spec.js.snap +15 -0
  122. package/lib/components/Footer/__tests__/footer.spec.js +13 -1
  123. package/lib/components/Footer/footer.js +17 -8
  124. package/lib/components/Footer/footer.module.css +18 -3
  125. package/lib/components/Footer/sampleData.js +8 -3
  126. package/lib/components/ForgotPassword/ForgotPasswordForm/forgotPasswordForm.js +3 -0
  127. package/lib/components/ForgotPassword/FormSubmissionSuccessful/formSubmissionSuccessful.js +4 -2
  128. package/lib/components/ForgotPassword/forgotPassword.gql.js +0 -1
  129. package/lib/components/FormError/formError.js +10 -4
  130. package/lib/components/Gallery/__tests__/__snapshots__/addToCartButton.spec.js.snap +0 -3
  131. package/lib/components/Gallery/__tests__/__snapshots__/item.spec.js.snap +1 -0
  132. package/lib/components/Gallery/addToCartButton.js +27 -22
  133. package/lib/components/Gallery/item.js +16 -4
  134. package/lib/components/Gallery/item.module.css +3 -1
  135. package/lib/components/Head/index.js +2 -1
  136. package/lib/components/Header/__tests__/header.spec.js +1 -1
  137. package/lib/components/Header/accountTrigger.js +1 -0
  138. package/lib/components/Header/cartTrigger.js +4 -1
  139. package/lib/components/Header/currencySwitcher.module.css +1 -1
  140. package/lib/components/Header/header.js +1 -1
  141. package/lib/components/Header/header.module.css +100 -96
  142. package/lib/components/Header/navTrigger.js +1 -0
  143. package/lib/components/Header/searchTrigger.js +1 -0
  144. package/lib/components/LegacyMiniCart/cartOptions.gql.js +7 -6
  145. package/lib/components/LegacyMiniCart/cartOptions.js +1 -1
  146. package/lib/components/LegacyMiniCart/editFormFragment.gql.js +7 -3
  147. package/lib/components/LegacyMiniCart/kebab.js +1 -0
  148. package/lib/components/LegacyMiniCart/product.js +1 -1
  149. package/lib/components/LegacyMiniCart/productOptions.js +6 -1
  150. package/lib/components/LegacyMiniCart/section.js +15 -5
  151. package/lib/components/Link/link.js +6 -4
  152. package/lib/components/Mask/mask.js +3 -3
  153. package/lib/components/MegaMenu/__tests__/MegaMenuItem.spec.js +1 -0
  154. package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenu.spec.js.snap +9 -0
  155. package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenuItem.spec.js.snap +6 -0
  156. package/lib/components/MegaMenu/__tests__/__snapshots__/Submenu.spec.js.snap +2 -0
  157. package/lib/components/MegaMenu/megaMenu.js +6 -2
  158. package/lib/components/MegaMenu/megaMenu.module.css +8 -11
  159. package/lib/components/MegaMenu/megaMenuItem.js +27 -6
  160. package/lib/components/MegaMenu/megaMenuItem.module.css +0 -5
  161. package/lib/components/MegaMenu/submenu.js +5 -3
  162. package/lib/components/MegaMenu/submenuColumn.js +15 -4
  163. package/lib/components/MiniCart/ProductList/__tests__/__snapshots__/item.spec.js.snap +4 -4
  164. package/lib/components/MiniCart/ProductList/item.js +7 -4
  165. package/lib/components/MiniCart/ProductList/productList.js +5 -1
  166. package/lib/components/MiniCart/__tests__/__snapshots__/miniCart.spec.js.snap +1 -1
  167. package/lib/components/MiniCart/miniCart.gql.js +4 -3
  168. package/lib/components/MiniCart/miniCart.js +9 -4
  169. package/lib/components/MyAccount/ResetPassword/resetPassword.gql.js +1 -1
  170. package/lib/components/Newsletter/__tests__/__snapshots__/newsletter.shimmer.spec.js.snap +40 -0
  171. package/lib/components/Newsletter/__tests__/__snapshots__/newsletter.spec.js.snap +173 -0
  172. package/lib/components/Newsletter/__tests__/newsletter.shimmer.spec.js +10 -0
  173. package/lib/components/Newsletter/__tests__/newsletter.spec.js +143 -0
  174. package/lib/components/Newsletter/index.js +1 -0
  175. package/lib/components/Newsletter/newsletter.js +148 -0
  176. package/lib/components/Newsletter/newsletter.module.css +94 -0
  177. package/lib/components/Newsletter/newsletter.shimmer.js +46 -0
  178. package/lib/components/Newsletter/newsletter.shimmer.module.css +11 -0
  179. package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/item.spec.js.snap +1 -1
  180. package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/shippingMethod.spec.js.snap +3 -0
  181. package/lib/components/OrderHistoryPage/OrderDetails/billingInformation.js +4 -1
  182. package/lib/components/OrderHistoryPage/OrderDetails/item.js +1 -1
  183. package/lib/components/OrderHistoryPage/OrderDetails/items.js +1 -1
  184. package/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.js +1 -1
  185. package/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.js +4 -1
  186. package/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.js +5 -1
  187. package/lib/components/OrderHistoryPage/orderHistoryPage.js +8 -1
  188. package/lib/components/Pagination/pagination.js +1 -1
  189. package/lib/components/Pagination/tile.js +5 -1
  190. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/__tests__/__snapshots__/boolean.spec.js.snap +20 -0
  191. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/__tests__/boolean.spec.js +52 -0
  192. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/boolean.js +74 -0
  193. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/boolean.module.css +9 -0
  194. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/index.js +1 -0
  195. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/__tests__/__snapshots__/date.spec.js.snap +25 -0
  196. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/__tests__/date.spec.js +52 -0
  197. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/date.js +82 -0
  198. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/date.module.css +9 -0
  199. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/index.js +1 -0
  200. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/__tests__/__snapshots__/dateTime.spec.js.snap +29 -0
  201. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/__tests__/dateTime.spec.js +53 -0
  202. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/dateTime.js +85 -0
  203. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/dateTime.module.css +9 -0
  204. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/index.js +1 -0
  205. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/__tests__/__snapshots__/multiSelect.spec.js.snap +36 -0
  206. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/__tests__/multiSelect.spec.js +88 -0
  207. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/index.js +1 -0
  208. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.js +99 -0
  209. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.module.css +13 -0
  210. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/__tests__/__snapshots__/price.spec.js.snap +23 -0
  211. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/__tests__/price.spec.js +52 -0
  212. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/index.js +1 -0
  213. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/price.js +74 -0
  214. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/price.module.css +9 -0
  215. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/__tests__/__snapshots__/select.spec.js.snap +36 -0
  216. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/__tests__/select.spec.js +88 -0
  217. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/index.js +1 -0
  218. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.js +99 -0
  219. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.module.css +13 -0
  220. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/__tests__/__snapshots__/text.spec.js.snap +33 -0
  221. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/__tests__/text.spec.js +74 -0
  222. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/index.js +1 -0
  223. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.js +88 -0
  224. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.module.css +13 -0
  225. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/__tests__/__snapshots__/textarea.spec.js.snap +33 -0
  226. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/__tests__/textarea.spec.js +74 -0
  227. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/index.js +1 -0
  228. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.js +88 -0
  229. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.module.css +13 -0
  230. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/__tests__/__snapshots__/attributeType.spec.js.snap +101 -0
  231. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/__tests__/attributeType.spec.js +173 -0
  232. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/attributeType.js +61 -0
  233. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/index.js +1 -0
  234. package/lib/components/ProductFullDetail/CustomAttributes/__tests__/__snapshots__/customAttributes.spec.js.snap +49 -0
  235. package/lib/components/ProductFullDetail/CustomAttributes/__tests__/customAttributes.spec.js +78 -0
  236. package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.js +66 -0
  237. package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.module.css +14 -0
  238. package/lib/components/ProductFullDetail/CustomAttributes/index.js +1 -0
  239. package/lib/components/ProductFullDetail/__tests__/__snapshots__/productFullDetail.spec.js.snap +39 -0
  240. package/lib/components/ProductFullDetail/__tests__/productFullDetail.spec.js +3 -1
  241. package/lib/components/ProductFullDetail/productFullDetail.js +18 -3
  242. package/lib/components/ProductOptions/__tests__/__snapshots__/option.spec.js.snap +1 -1
  243. package/lib/components/ProductOptions/__tests__/__snapshots__/options.spec.js.snap +2 -2
  244. package/lib/components/ProductOptions/__tests__/__snapshots__/swatch.spec.js.snap +44 -2
  245. package/lib/components/ProductOptions/__tests__/__snapshots__/swatchList.spec.js.snap +22 -1
  246. package/lib/components/ProductOptions/__tests__/swatch.spec.js +0 -2
  247. package/lib/components/ProductOptions/option.js +2 -2
  248. package/lib/components/ProductOptions/swatch.js +7 -5
  249. package/lib/components/ProductOptions/swatch.module.css +11 -0
  250. package/lib/components/ProductOptions/tile.js +1 -0
  251. package/lib/components/ProductSort/__tests__/__snapshots__/sortItem.spec.js.snap +14 -0
  252. package/lib/components/ProductSort/__tests__/sortItem.spec.js +61 -0
  253. package/lib/components/ProductSort/productSort.js +84 -40
  254. package/lib/components/ProductSort/sortItem.js +26 -11
  255. package/lib/components/RadioGroup/radio.module.css +13 -5
  256. package/lib/components/RadioGroup/radioGroup.js +2 -1
  257. package/lib/components/Rating/__tests__/__snapshots__/rating.spec.js.snap +27 -0
  258. package/lib/components/Rating/__tests__/rating.spec.js +13 -0
  259. package/lib/components/Rating/index.js +1 -0
  260. package/lib/components/Rating/rating.js +30 -0
  261. package/lib/components/Rating/rating.module.css +21 -0
  262. package/lib/components/RichContent/richContent.module.css +52 -59
  263. package/lib/components/SearchBar/autocomplete.js +2 -0
  264. package/lib/components/SearchBar/searchBar.js +1 -1
  265. package/lib/components/SearchBar/searchBar.module.css +1 -0
  266. package/lib/components/SearchBar/searchField.js +1 -0
  267. package/lib/components/SearchBar/suggestedCategory.js +1 -1
  268. package/lib/components/SearchBar/suggestedProduct.js +6 -1
  269. package/lib/components/SearchPage/__tests__/__snapshots__/searchPage.spec.js.snap +195 -1
  270. package/lib/components/SearchPage/__tests__/searchPage.spec.js +13 -0
  271. package/lib/components/SearchPage/searchPage.js +20 -6
  272. package/lib/components/Shimmer/shimmer.js +11 -2
  273. package/lib/components/Shimmer/shimmer.module.css +4 -8
  274. package/lib/components/SignIn/__tests__/__snapshots__/signIn.spec.js.snap +126 -0
  275. package/lib/components/SignIn/__tests__/signIn.spec.js +11 -0
  276. package/lib/components/SignIn/signIn.gql.js +8 -4
  277. package/lib/components/SignIn/signIn.js +24 -4
  278. package/lib/components/TextArea/textArea.module.css +9 -0
  279. package/lib/components/TextInput/textInput.module.css +4 -0
  280. package/lib/components/ToastContainer/toast.js +23 -3
  281. package/lib/components/ToastContainer/toast.module.css +3 -0
  282. package/lib/components/Trigger/trigger.js +9 -2
  283. package/lib/components/Wishlist/AddToListButton/addToListButton.ee.js +1 -0
  284. package/lib/components/Wishlist/WishlistDialog/CreateWishlistForm/createWishlistForm.js +2 -0
  285. package/lib/components/Wishlist/WishlistDialog/WishlistLineItem/wishlistLineItem.js +1 -0
  286. package/lib/components/Wishlist/WishlistDialog/wishlistDialog.js +1 -0
  287. package/lib/components/WishlistPage/__tests__/__snapshots__/wishlistPage.spec.js.snap +5 -5
  288. package/lib/components/WishlistPage/createWishlist.ee.js +2 -0
  289. package/lib/components/WishlistPage/wishlist.js +8 -3
  290. package/lib/components/WishlistPage/wishlistItem.js +17 -4
  291. package/lib/components/WishlistPage/wishlistPage.js +5 -3
  292. package/lib/defaultRoutes.json +6 -0
  293. package/lib/targets/__tests__/venia-ui-targets.spec.js +2 -0
  294. package/lib/util/__tests__/shrinkGETQuery.spec.js +1 -1
  295. package/lib/util/apolloCache.js +2 -2
  296. package/lib/util/formValidators.js +10 -8
  297. package/lib/util/toCamelCase.js +3 -0
  298. package/package.json +17 -14
  299. 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
- const { name, price_range, small_image, url_key } = item;
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
- type_id: string.isRequired,
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: flex;
42
+ display: grid;
43
+ grid-template-columns: auto auto;
42
44
  padding-left: 0.5rem;
43
45
  }
44
46
 
@@ -42,8 +42,9 @@ export const Title = props => {
42
42
 
43
43
  const STORE_NAME_QUERY = gql`
44
44
  query getStoreName {
45
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
45
46
  storeConfig {
46
- id
47
+ store_code
47
48
  store_name
48
49
  }
49
50
  }
@@ -78,7 +78,7 @@ beforeAll(() => {
78
78
  }
79
79
  ],
80
80
  storeConfig: {
81
- id: 1,
81
+ store_code: 'default',
82
82
  category_url_suffix: '.html'
83
83
  }
84
84
  }
@@ -42,6 +42,7 @@ const AccountTrigger = props => {
42
42
  })}
43
43
  className={classes.trigger}
44
44
  onClick={handleTriggerClick}
45
+ data-cy="AccountTrigger-trigger"
45
46
  >
46
47
  <AccountChip
47
48
  fallbackText={formatMessage({
@@ -44,7 +44,9 @@ const CartTrigger = props => {
44
44
  : classes.triggerContainer;
45
45
 
46
46
  const maybeItemCounter = itemCount ? (
47
- <span className={classes.counter}>{itemCountDisplay}</span>
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,10 +1,10 @@
1
1
  .root {
2
+ composes: p-0 from global;
2
3
  align-items: center;
3
4
  display: grid;
4
5
  justify-items: end;
5
6
  margin: 0 auto;
6
7
  max-width: var(--venia-global-maxWidth);
7
- padding: 0.5rem 1rem;
8
8
  position: relative;
9
9
  }
10
10
 
@@ -56,7 +56,7 @@ const Header = props => {
56
56
  <CurrencySwitcher />
57
57
  </div>
58
58
  </div>
59
- <header className={rootClass}>
59
+ <header className={rootClass} data-cy="Header-root">
60
60
  <div className={classes.toolbar}>
61
61
  <div className={classes.primaryActions}>
62
62
  <NavTrigger />
@@ -1,19 +1,45 @@
1
1
  .root {
2
- background-color: rgb(var(--venia-global-color-gray-50));
3
- box-shadow: 0 2px rgb(var(--venia-global-color-gray-100));
4
- display: grid;
5
- grid-auto-columns: 100%;
6
- justify-items: center;
7
- position: -webkit-sticky;
8
- position: sticky;
9
- top: 0;
10
- width: 100%;
11
- z-index: 10;
12
- --header-height: 5rem;
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
- display: none;
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
- z-index: 3;
29
- align-content: center;
30
- align-items: center;
31
- display: grid;
32
- grid-template-areas: 'primary title secondary';
33
- grid-template-columns: 1fr auto 1fr;
34
- grid-template-rows: 3rem;
35
- justify-items: center;
36
- max-width: var(--venia-global-maxWidth);
37
- min-height: var(--venia-global-header-minHeight);
38
- padding: 0 0.5rem;
39
- width: 100%;
40
- }
41
-
42
- @media (min-width: 641px) {
43
- .switchers {
44
- display: grid;
45
- grid-auto-flow: column;
46
- grid-auto-columns: max-content;
47
- justify-content: flex-end;
48
- max-width: var(--venia-global-maxWidth);
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
- grid-area: title;
78
+ composes: h-full from global;
71
79
  }
72
80
 
73
81
  .primaryActions {
74
- grid-area: primary;
75
- justify-self: start;
76
- display: grid;
77
- grid-auto-flow: column;
78
- align-items: center;
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
- grid-area: secondary;
83
- width: max-content;
84
- display: grid;
85
- grid-auto-flow: column;
86
- justify-items: end;
87
- align-items: center;
88
- justify-self: end;
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
- .secondaryActions {
98
- column-gap: 1rem;
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
- display: flex;
104
- justify-content: center;
105
- margin-bottom: 0.5rem;
106
- padding: 0 1rem;
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-width: 24rem;
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%,
@@ -19,6 +19,7 @@ const NavigationTrigger = props => {
19
19
  return (
20
20
  <button
21
21
  className={classes.root}
22
+ data-cy="Header-NavigationTrigger-root"
22
23
  aria-label={formatMessage({
23
24
  id: 'navigationTrigger.ariaLabel',
24
25
  defaultMessage: 'Toggle navigation panel'
@@ -30,6 +30,7 @@ const SearchTrigger = React.forwardRef((props, ref) => {
30
30
  return (
31
31
  <button
32
32
  className={searchClass}
33
+ data-cy="SearchTrigger-button"
33
34
  aria-label={searchText}
34
35
  onClick={handleClick}
35
36
  ref={ref}
@@ -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: Int!) {
6
- removeItemFromCart(input: { cart_id: $cartId, cart_item_id: $itemId })
7
- @connection(key: "removeItemFromCart") {
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: Int!
26
+ $itemId: ID!
26
27
  $quantity: Float!
27
28
  ) {
28
29
  updateCartItems(
29
30
  input: {
30
31
  cart_id: $cartId
31
- cart_items: [{ cart_item_id: $itemId, quantity: $quantity }]
32
+ cart_items: [{ cart_item_uid: $itemId, quantity: $quantity }]
32
33
  }
33
- ) @connection(key: "updateCartItems") {
34
+ ) {
34
35
  cart {
35
36
  id
36
37
  # If this mutation causes "free" to become available we need to know.
@@ -154,7 +154,7 @@ export const GET_CART_DETAILS_QUERY = gql`
154
154
  cart(cart_id: $cartId) {
155
155
  id
156
156
  items {
157
- id
157
+ uid
158
158
  prices {
159
159
  price {
160
160
  value
@@ -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
- id
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
- id
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
- id
40
+ uid
37
41
  media_gallery_entries {
38
42
  id
39
43
  disabled
@@ -18,6 +18,7 @@ const Kebab = props => {
18
18
  <div className={classes.root}>
19
19
  <button
20
20
  className={classes.kebab}
21
+ data-cy="Kebab-button"
21
22
  onClick={handleKebabClick}
22
23
  ref={kebabRef}
23
24
  >
@@ -131,7 +131,7 @@ export const GET_CART_DETAILS_QUERY = gql`
131
131
  cart(cart_id: $cartId) {
132
132
  id
133
133
  items {
134
- id
134
+ uid
135
135
  prices {
136
136
  price {
137
137
  value
@@ -19,7 +19,12 @@ const ProductOptions = props => {
19
19
  <dt className={classes.optionName}>
20
20
  {optionLabelString}
21
21
  </dt>
22
- <dd className={classes.optionValue}>{value_label}</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 { icon, isFilled, onClick, text } = props;
21
-
22
- const classes = useStyle(defaultClasses, props.classes);
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 onMouseDown={onClick}>
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
- * @param {props} props React component props
17
- * @returns {RouterLink} the `Link` component from `react-router-dom`. We add a `ref` to prefetch pages when the link enters the viewport.
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, props.classes);
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;
@@ -29,6 +29,7 @@ jest.mock('@magento/peregrine/lib/talons/MegaMenu/useMegaMenuItem', () => ({
29
29
  return {
30
30
  isFocused: false,
31
31
  isActive: false,
32
+ handleMenuItemFocus: jest.fn(),
32
33
  handleCloseSubMenu: jest.fn(),
33
34
  isMenuActive: false,
34
35
  handleKeyDown: mockHandleKeyDown
@@ -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"