@magento/venia-ui 9.3.0 → 9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/i18n/en_US.json +1 -1
  2. package/lib/RootComponents/CMS/cms.module.css +1 -1
  3. package/lib/RootComponents/Category/NoProductsFound/noProductsFound.module.css +18 -19
  4. package/lib/RootComponents/Category/category.module.css +50 -70
  5. package/lib/components/Accordion/accordion.module.css +4 -2
  6. package/lib/components/Accordion/section.module.css +24 -16
  7. package/lib/components/AccountChip/accountChip.module.css +5 -5
  8. package/lib/components/AccountInformationPage/accountInformationPage.module.css +22 -35
  9. package/lib/components/AccountInformationPage/editForm.module.css +13 -12
  10. package/lib/components/AccountInformationPage/editModal.module.css +1 -1
  11. package/lib/components/AccountMenu/accountMenu.module.css +34 -31
  12. package/lib/components/AccountMenu/accountMenuItems.module.css +20 -15
  13. package/lib/components/AddToCartDialog/addToCartDialog.module.css +27 -25
  14. package/lib/components/AddressBookPage/addEditDialog.module.css +10 -14
  15. package/lib/components/AddressBookPage/addressBookPage.module.css +30 -41
  16. package/lib/components/AddressBookPage/addressCard.module.css +61 -59
  17. package/lib/components/AuthBar/authBar.module.css +13 -12
  18. package/lib/components/AuthModal/authModal.module.css +5 -3
  19. package/lib/components/Breadcrumbs/breadcrumbs.module.css +12 -19
  20. package/lib/components/Button/button.module.css +95 -59
  21. package/lib/components/ButtonGroup/button.module.css +30 -28
  22. package/lib/components/ButtonGroup/buttonGroup.module.css +4 -4
  23. package/lib/components/CartPage/GiftCards/giftCard.module.css +3 -3
  24. package/lib/components/CartPage/GiftCards/giftCards.module.css +44 -41
  25. package/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.module.css +26 -18
  26. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/__tests__/__snapshots__/shippingRadios.spec.js.snap +4 -0
  27. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.module.css +7 -6
  28. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.module.css +9 -18
  29. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.module.css +1 -1
  30. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.module.css +5 -18
  31. package/lib/components/CartPage/PriceAdjustments/__tests__/__snapshots__/giftCardSection.ee.spec.js.snap +1 -1
  32. package/lib/components/CartPage/PriceAdjustments/__tests__/__snapshots__/giftOptionsSection.ce.spec.js.snap +1 -1
  33. package/lib/components/CartPage/PriceAdjustments/__tests__/__snapshots__/giftOptionsSection.ee.spec.js.snap +3 -3
  34. package/lib/components/CartPage/PriceAdjustments/__tests__/giftCardSection.ce.spec.js +1 -1
  35. package/lib/components/CartPage/PriceAdjustments/__tests__/giftCardSection.ee.spec.js +1 -1
  36. package/lib/components/CartPage/PriceAdjustments/__tests__/giftOptionsSection.ce.spec.js +1 -1
  37. package/lib/components/CartPage/PriceAdjustments/__tests__/giftOptionsSection.ee.spec.js +1 -1
  38. package/lib/components/CartPage/PriceAdjustments/giftCardSection.ce.js +2 -2
  39. package/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ce.js +2 -2
  40. package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/giftCardSummary.ce.spec.js.snap +1 -1
  41. package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/giftCardSummary.ee.spec.js.snap +4 -4
  42. package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/giftOptionsSummary.ce.spec.js.snap +1 -1
  43. package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/giftOptionsSummary.ee.spec.js.snap +4 -4
  44. package/lib/components/CartPage/PriceSummary/__tests__/giftCardSummary.ce.spec.js +1 -1
  45. package/lib/components/CartPage/PriceSummary/__tests__/giftCardSummary.ee.spec.js +1 -1
  46. package/lib/components/CartPage/PriceSummary/__tests__/giftOptionsSummary.ce.spec.js +1 -1
  47. package/lib/components/CartPage/PriceSummary/__tests__/giftOptionsSummary.ee.spec.js +1 -1
  48. package/lib/components/CartPage/PriceSummary/giftOptionsSummary.ce.js +2 -2
  49. package/lib/components/CartPage/PriceSummary/priceSummary.module.css +16 -16
  50. package/lib/components/CartPage/ProductListing/EditModal/productDetail.module.css +16 -13
  51. package/lib/components/CartPage/ProductListing/EditModal/productForm.js +2 -2
  52. package/lib/components/CartPage/ProductListing/EditModal/productForm.module.css +28 -22
  53. package/lib/components/CartPage/ProductListing/__tests__/__snapshots__/product.spec.js.snap +4 -0
  54. package/lib/components/CartPage/ProductListing/__tests__/quantity.spec.js +3 -3
  55. package/lib/components/CartPage/ProductListing/errorMessage.module.css +11 -7
  56. package/lib/components/CartPage/ProductListing/product.module.css +67 -59
  57. package/lib/components/CartPage/ProductListing/productListing.module.css +6 -5
  58. package/lib/components/CartPage/ProductListing/quantity.js +8 -92
  59. package/lib/components/CartPage/cartPage.module.css +18 -22
  60. package/lib/components/CategoryList/categoryList.module.css +8 -7
  61. package/lib/components/CategoryList/categoryTile.module.css +14 -11
  62. package/lib/components/CategoryTree/categoryLeaf.module.css +19 -16
  63. package/lib/components/CategoryTree/categoryTree.module.css +2 -2
  64. package/lib/components/Checkbox/checkbox.module.css +33 -30
  65. package/lib/components/Checkout/Receipt/receipt.module.css +28 -23
  66. package/lib/components/Checkout/addressForm.module.css +20 -20
  67. package/lib/components/Checkout/braintreeDropin.module.css +1 -1
  68. package/lib/components/Checkout/checkoutButton.module.css +2 -1
  69. package/lib/components/Checkout/flow.module.css +34 -30
  70. package/lib/components/Checkout/form.module.css +13 -9
  71. package/lib/components/Checkout/label.module.css +6 -6
  72. package/lib/components/Checkout/paymentsForm.module.css +23 -21
  73. package/lib/components/Checkout/section.module.css +30 -31
  74. package/lib/components/Checkout/shippingForm.module.css +1 -1
  75. package/lib/components/CheckoutPage/AddressBook/addressBook.module.css +52 -61
  76. package/lib/components/CheckoutPage/AddressBook/addressCard.module.css +43 -47
  77. package/lib/components/CheckoutPage/BillingAddress/billingAddress.module.css +14 -28
  78. package/lib/components/CheckoutPage/GuestSignIn/guestSignIn.module.css +28 -26
  79. package/lib/components/CheckoutPage/ItemsReview/item.js +1 -1
  80. package/lib/components/CheckoutPage/ItemsReview/item.module.css +29 -18
  81. package/lib/components/CheckoutPage/ItemsReview/itemsReview.module.css +8 -5
  82. package/lib/components/CheckoutPage/ItemsReview/showAllButton.module.css +15 -11
  83. package/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.module.css +12 -26
  84. package/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.module.css +29 -37
  85. package/lib/components/CheckoutPage/OrderSummary/orderSummary.module.css +12 -17
  86. package/lib/components/CheckoutPage/PaymentInformation/braintreeDropin.module.css +5 -2
  87. package/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.module.css +30 -50
  88. package/lib/components/CheckoutPage/PaymentInformation/creditCard.module.css +20 -34
  89. package/lib/components/CheckoutPage/PaymentInformation/editCard.module.css +3 -2
  90. package/lib/components/CheckoutPage/PaymentInformation/paymentInformation.module.css +12 -13
  91. package/lib/components/CheckoutPage/PaymentInformation/paymentMethods.module.css +17 -14
  92. package/lib/components/CheckoutPage/PaymentInformation/summary.module.css +9 -9
  93. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.module.css +15 -13
  94. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.module.css +14 -12
  95. package/lib/components/CheckoutPage/ShippingInformation/card.module.css +7 -7
  96. package/lib/components/CheckoutPage/ShippingInformation/editModal.module.css +66 -49
  97. package/lib/components/CheckoutPage/ShippingInformation/shippingInformation.module.css +37 -26
  98. package/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/shippingMethod.spec.js.snap +2 -0
  99. package/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/updateModal.spec.js.snap +2 -0
  100. package/lib/components/CheckoutPage/ShippingMethod/completedView.module.css +23 -26
  101. package/lib/components/CheckoutPage/ShippingMethod/shippingMethod.module.css +17 -15
  102. package/lib/components/CheckoutPage/ShippingMethod/shippingRadios.module.css +13 -24
  103. package/lib/components/CheckoutPage/ShippingMethod/updateModal.module.css +1 -1
  104. package/lib/components/CheckoutPage/checkoutPage.module.css +85 -79
  105. package/lib/components/CmsBlock/cmsBlock.module.css +3 -1
  106. package/lib/components/CmsDynamicBlock/__tests__/__snapshots__/cmsDynamicBlock.ce.spec.js.snap +1 -1
  107. package/lib/components/CmsDynamicBlock/__tests__/__snapshots__/cmsDynamicBlock.ee.spec.js.snap +8 -8
  108. package/lib/components/CmsDynamicBlock/__tests__/cmsDynamicBlock.ce.spec.js +1 -1
  109. package/lib/components/CmsDynamicBlock/__tests__/cmsDynamicBlock.ee.spec.js +1 -1
  110. package/lib/components/CmsDynamicBlock/cmsDynamicBlock.ce.js +2 -2
  111. package/lib/components/CommunicationsPage/communicationsPage.module.css +14 -20
  112. package/lib/components/ContactPage/contactPage.module.css +1 -1
  113. package/lib/components/CreateAccount/createAccount.module.css +24 -27
  114. package/lib/components/CreateAccountPage/createAccountPage.module.css +13 -12
  115. package/lib/components/Dialog/__stories__/dialog.module.css +3 -2
  116. package/lib/components/Dialog/dialog.module.css +98 -99
  117. package/lib/components/ErrorMessage/errorMessage.module.css +4 -4
  118. package/lib/components/ErrorView/errorView.module.css +21 -24
  119. package/lib/components/Field/field.module.css +32 -35
  120. package/lib/components/Field/fieldIcons.module.css +18 -13
  121. package/lib/components/Field/message.module.css +11 -7
  122. package/lib/components/FilterModal/CurrentFilters/currentFilter.js +4 -2
  123. package/lib/components/FilterModal/CurrentFilters/currentFilter.module.css +14 -11
  124. package/lib/components/FilterModal/CurrentFilters/currentFilters.module.css +10 -5
  125. package/lib/components/FilterModal/FilterList/__tests__/filterItemRadio.spec.js +134 -0
  126. package/lib/components/FilterModal/FilterList/filterItemRadio.js +76 -0
  127. package/lib/components/FilterModal/FilterList/filterItemRadio.module.css +0 -0
  128. package/lib/components/FilterModal/FilterList/filterItemRadioGroup.js +86 -0
  129. package/lib/components/FilterModal/FilterList/filterList.js +65 -41
  130. package/lib/components/FilterModal/FilterList/filterList.module.css +8 -10
  131. package/lib/components/FilterModal/__tests__/filterModal.spec.js +58 -3
  132. package/lib/components/FilterModal/filterBlock.js +4 -0
  133. package/lib/components/FilterModal/filterBlock.module.css +15 -12
  134. package/lib/components/FilterModal/filterFooter.module.css +8 -8
  135. package/lib/components/FilterModal/filterModal.js +4 -2
  136. package/lib/components/FilterModal/filterModal.module.css +49 -28
  137. package/lib/components/FilterModal/filterSearch.module.css +1 -1
  138. package/lib/components/FilterModalOpenButton/filterModalOpenButton.module.css +3 -6
  139. package/lib/components/FilterSidebar/__tests__/filterSidebar.spec.js +9 -2
  140. package/lib/components/FilterSidebar/filterSidebar.js +4 -1
  141. package/lib/components/FilterSidebar/filterSidebar.module.css +33 -25
  142. package/lib/components/Footer/footer.module.css +89 -109
  143. package/lib/components/ForgotPassword/ForgotPasswordForm/forgotPasswordForm.module.css +11 -11
  144. package/lib/components/ForgotPassword/FormSubmissionSuccessful/formSubmissionSuccessful.module.css +7 -7
  145. package/lib/components/ForgotPassword/forgotPassword.module.css +9 -8
  146. package/lib/components/ForgotPasswordPage/forgotPasswordPage.module.css +13 -12
  147. package/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap +2 -2
  148. package/lib/components/Gallery/__tests__/__snapshots__/item.spec.js.snap +1 -1
  149. package/lib/components/Gallery/__tests__/gallery.spec.js +2 -2
  150. package/lib/components/Gallery/__tests__/item.spec.js +1 -1
  151. package/lib/components/Gallery/addToCartButton.module.css +15 -25
  152. package/lib/components/Gallery/gallery.module.css +7 -7
  153. package/lib/components/Gallery/item.js +12 -5
  154. package/lib/components/Gallery/item.module.css +31 -27
  155. package/lib/components/Header/accountTrigger.module.css +9 -14
  156. package/lib/components/Header/cartTrigger.module.css +30 -37
  157. package/lib/components/Header/currencySwitcher.module.css +67 -50
  158. package/lib/components/Header/header.js +5 -1
  159. package/lib/components/Header/header.module.css +26 -36
  160. package/lib/components/Header/navTrigger.module.css +4 -7
  161. package/lib/components/Header/onlineIndicator.module.css +11 -9
  162. package/lib/components/Header/searchTrigger.module.css +8 -13
  163. package/lib/components/Header/storeSwitcher.module.css +61 -52
  164. package/lib/components/Header/switcherItem.module.css +12 -11
  165. package/lib/components/HomePage/homePage.module.css +9 -8
  166. package/lib/components/Icon/icon.module.css +9 -8
  167. package/lib/components/Image/__stories__/image.module.css +4 -4
  168. package/lib/components/Image/image.module.css +16 -9
  169. package/lib/components/LegacyMiniCart/body.module.css +2 -2
  170. package/lib/components/LegacyMiniCart/cartOptions.module.css +29 -23
  171. package/lib/components/LegacyMiniCart/emptyMiniCartBody.module.css +9 -9
  172. package/lib/components/LegacyMiniCart/footer.module.css +10 -6
  173. package/lib/components/LegacyMiniCart/header.module.css +20 -19
  174. package/lib/components/LegacyMiniCart/kebab.module.css +19 -28
  175. package/lib/components/LegacyMiniCart/mask.module.css +2 -1
  176. package/lib/components/LegacyMiniCart/miniCart.js +3 -0
  177. package/lib/components/LegacyMiniCart/miniCart.module.css +22 -15
  178. package/lib/components/LegacyMiniCart/product.module.css +36 -32
  179. package/lib/components/LegacyMiniCart/productList.module.css +6 -4
  180. package/lib/components/LegacyMiniCart/productOptions.module.css +9 -9
  181. package/lib/components/LegacyMiniCart/section.js +2 -0
  182. package/lib/components/LegacyMiniCart/section.module.css +28 -16
  183. package/lib/components/LegacyMiniCart/totalsSummary.module.css +11 -10
  184. package/lib/components/LinkButton/linkButton.module.css +8 -9
  185. package/lib/components/LoadingIndicator/indicator.module.css +20 -18
  186. package/lib/components/LoadingIndicator/spinner.module.css +1 -10
  187. package/lib/components/Main/main.module.css +7 -6
  188. package/lib/components/Mask/mask.module.css +19 -14
  189. package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenu.spec.js.snap +1 -1
  190. package/lib/components/MegaMenu/__tests__/__snapshots__/Submenu.spec.js.snap +1 -1
  191. package/lib/components/MegaMenu/megaMenuItem.module.css +9 -7
  192. package/lib/components/MegaMenu/submenu.js +1 -1
  193. package/lib/components/MegaMenu/submenu.module.css +22 -16
  194. package/lib/components/MegaMenu/submenuColumn.module.css +11 -9
  195. package/lib/components/MiniCart/ProductList/item.module.css +16 -13
  196. package/lib/components/MiniCart/ProductList/productList.module.css +2 -2
  197. package/lib/components/MiniCart/miniCart.module.css +81 -67
  198. package/lib/components/MyAccount/ResetPassword/resetPassword.module.css +25 -26
  199. package/lib/components/MyAccount/accountLink.module.css +17 -15
  200. package/lib/components/MyAccount/myAccount.module.css +3 -3
  201. package/lib/components/Navigation/navHeader.module.css +7 -6
  202. package/lib/components/Navigation/navigation.module.css +82 -68
  203. package/lib/components/Newsletter/newsletter.module.css +59 -64
  204. package/lib/components/OrderHistoryPage/OrderDetails/billingInformation.module.css +4 -4
  205. package/lib/components/OrderHistoryPage/OrderDetails/item.module.css +21 -25
  206. package/lib/components/OrderHistoryPage/OrderDetails/items.module.css +8 -12
  207. package/lib/components/OrderHistoryPage/OrderDetails/orderDetails.module.css +20 -26
  208. package/lib/components/OrderHistoryPage/OrderDetails/orderTotal.module.css +30 -31
  209. package/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.module.css +4 -4
  210. package/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.module.css +4 -4
  211. package/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.module.css +7 -6
  212. package/lib/components/OrderHistoryPage/collapsedImageGallery.module.css +10 -9
  213. package/lib/components/OrderHistoryPage/orderHistoryPage.module.css +37 -41
  214. package/lib/components/OrderHistoryPage/orderProgressBar.module.css +5 -5
  215. package/lib/components/OrderHistoryPage/orderRow.module.css +113 -78
  216. package/lib/components/PageLoadingIndicator/pageLoadingIndicator.module.css +18 -17
  217. package/lib/components/Pagination/pagination.module.css +11 -8
  218. package/lib/components/Pagination/tile.module.css +11 -8
  219. package/lib/components/Password/password.module.css +13 -11
  220. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/__tests__/__snapshots__/multiSelect.spec.js.snap +10 -0
  221. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.js +7 -2
  222. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.module.css +11 -2
  223. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.module.css +1 -1
  224. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.module.css +1 -1
  225. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.js +10 -4
  226. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/attributeType.js +6 -0
  227. package/lib/components/ProductFullDetail/CustomAttributes/__tests__/__snapshots__/customAttributes.spec.js.snap +0 -3
  228. package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.js +6 -10
  229. package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.module.css +0 -5
  230. package/lib/components/ProductFullDetail/__tests__/__snapshots__/productFullDetail.spec.js.snap +403 -208
  231. package/lib/components/ProductFullDetail/__tests__/productFullDetail.spec.js +1 -3
  232. package/lib/components/ProductFullDetail/productFullDetail.js +80 -14
  233. package/lib/components/ProductFullDetail/productFullDetail.module.css +90 -79
  234. package/lib/components/ProductImageCarousel/carousel.module.css +50 -52
  235. package/lib/components/ProductImageCarousel/thumbnail.module.css +25 -22
  236. package/lib/components/ProductOptions/option.module.css +17 -13
  237. package/lib/components/ProductOptions/swatch.module.css +10 -4
  238. package/lib/components/ProductOptions/tile.module.css +14 -7
  239. package/lib/components/ProductOptions/tileList.module.css +3 -3
  240. package/lib/components/ProductQuantity/quantity.js +3 -0
  241. package/lib/components/ProductQuantity/quantity.module.css +2 -2
  242. package/lib/components/ProductSort/productSort.module.css +44 -45
  243. package/lib/components/ProductSort/productSort.shimmer.module.css +1 -5
  244. package/lib/components/ProductSort/sortItem.module.css +14 -13
  245. package/lib/components/QuantityStepper/index.js +1 -0
  246. package/lib/components/QuantityStepper/quantityStepper.js +94 -0
  247. package/lib/components/QuantityStepper/quantityStepper.module.css +80 -0
  248. package/lib/components/RadioGroup/__tests__/__snapshots__/radioGroup.spec.js.snap +16 -0
  249. package/lib/components/RadioGroup/radio.js +14 -2
  250. package/lib/components/RadioGroup/radio.module.css +41 -37
  251. package/lib/components/RadioGroup/radioGroup.module.css +10 -14
  252. package/lib/components/RichContent/plainHtmlRenderer.js +2 -1
  253. package/lib/components/RichContent/richContent.module.css +13 -1
  254. package/lib/components/RichText/richText.module.css +7 -3
  255. package/lib/components/SavedPaymentsPage/creditCard.module.css +49 -37
  256. package/lib/components/SavedPaymentsPage/savedPaymentsPage.module.css +35 -40
  257. package/lib/components/ScrollAnchor/scrollAnchor.module.css +4 -2
  258. package/lib/components/SearchBar/__tests__/suggestedProduct.spec.js +8 -0
  259. package/lib/components/SearchBar/autocomplete.js +8 -0
  260. package/lib/components/SearchBar/autocomplete.module.css +39 -37
  261. package/lib/components/SearchBar/searchBar.module.css +30 -22
  262. package/lib/components/SearchBar/suggestedCategories.module.css +7 -4
  263. package/lib/components/SearchBar/suggestedProduct.js +29 -5
  264. package/lib/components/SearchBar/suggestedProduct.module.css +12 -12
  265. package/lib/components/SearchBar/suggestedProducts.module.css +7 -4
  266. package/lib/components/SearchBar/suggestions.module.css +4 -4
  267. package/lib/components/SearchPage/searchPage.module.css +42 -49
  268. package/lib/components/Select/select.module.css +9 -8
  269. package/lib/components/Shimmer/shimmer.module.css +31 -17
  270. package/lib/components/SignIn/signIn.module.css +40 -33
  271. package/lib/components/SignInPage/signInPage.module.css +13 -12
  272. package/lib/components/SortedByContainer/sortedByContainer.module.css +7 -11
  273. package/lib/components/StockStatusMessage/stockStatusMessage.module.css +10 -6
  274. package/lib/components/TextArea/textArea.module.css +16 -10
  275. package/lib/components/TextInput/textInput.module.css +11 -2
  276. package/lib/components/ToastContainer/toast.module.css +51 -42
  277. package/lib/components/ToastContainer/toastContainer.module.css +10 -22
  278. package/lib/components/Wishlist/AddToListButton/addToListButton.module.css +6 -5
  279. package/lib/components/Wishlist/WishlistDialog/CreateWishlistForm/createWishlistForm.module.css +4 -4
  280. package/lib/components/Wishlist/WishlistDialog/WishlistLineItem/wishlistLineItem.module.css +7 -6
  281. package/lib/components/Wishlist/WishlistDialog/wishlistDialog.module.css +14 -9
  282. package/lib/components/WishlistPage/actionMenu.js +2 -2
  283. package/lib/components/WishlistPage/createWishlist.module.css +31 -26
  284. package/lib/components/WishlistPage/wishlist.module.css +54 -49
  285. package/lib/components/WishlistPage/wishlistConfirmRemoveProductDialog.module.css +7 -7
  286. package/lib/components/WishlistPage/wishlistEditFavoritesListDialog.module.css +4 -4
  287. package/lib/components/WishlistPage/wishlistItem.module.css +36 -37
  288. package/lib/components/WishlistPage/wishlistItems.module.css +5 -7
  289. package/lib/components/WishlistPage/wishlistMoreActionsDialog.module.css +11 -9
  290. package/lib/components/WishlistPage/wishlistPage.module.css +24 -24
  291. package/lib/components/clickable.module.css +7 -7
  292. package/lib/index.module.css +40 -11
  293. package/lib/targets/__tests__/venia-ui-targets.spec.js +27 -2
  294. package/lib/tokens.module.css +62 -57
  295. package/package.json +5 -5
  296. package/lib/components/CartPage/ProductListing/quantity.module.css +0 -76
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports[`Submenu renders correctly it renders correctly 1`] = `
4
4
  <div
5
- className="submenu"
5
+ className="submenu_inactive"
6
6
  >
7
7
  <div
8
8
  className="submenuItems"
@@ -1,28 +1,30 @@
1
1
  .megaMenuItem {
2
- padding: 0 10px;
2
+ composes: px-3 from global;
3
+ composes: py-0 from global;
3
4
  }
4
5
 
5
6
  .megaMenuLink {
6
- align-items: center;
7
- display: inline-flex;
7
+ composes: items-center from global;
8
+ composes: inline-flex from global;
8
9
  min-height: 5rem;
9
10
  }
10
11
 
11
12
  .megaMenuLinkActive {
12
13
  composes: megaMenuLink;
13
- text-decoration: underline;
14
+ composes: underline from global;
14
15
  }
15
16
 
16
17
  .megaMenuItem_active {
17
18
  composes: megaMenuItem;
18
- display: flex;
19
+ composes: flex from global;
19
20
  }
20
21
 
21
22
  .arrowDown {
22
- padding-left: 0.5rem;
23
- line-height: 0;
23
+ composes: leading-[0] from global;
24
+ composes: pl-2xs from global;
24
25
  }
25
26
 
27
+ /* TODO @TW: cannot compose */
26
28
  .megaMenuItem:hover .megaMenuLink,
27
29
  .megaMenuItem:focus .megaMenuLink {
28
30
  text-decoration: underline;
@@ -37,7 +37,7 @@ const Submenu = props => {
37
37
 
38
38
  const subMenuClassname = isSubMenuActive
39
39
  ? classes.submenu_active
40
- : classes.submenu;
40
+ : classes.submenu_inactive;
41
41
 
42
42
  const subMenus = items.map((category, index) => {
43
43
  const keyboardProps =
@@ -1,16 +1,17 @@
1
1
  .submenu {
2
- background-color: rgb(var(--venia-global-color-gray-50));
2
+ composes: absolute from global;
3
+ composes: bg-white from global;
4
+ composes: flex-wrap from global;
5
+ composes: justify-between from global;
6
+ composes: left-0 from global;
7
+ composes: px-3 from global;
8
+ composes: py-5 from global;
9
+ composes: right-0 from global;
10
+ composes: top-full from global;
3
11
  box-shadow: 0 3px rgb(var(--venia-global-color-gray-100));
4
- display: none;
5
- flex-wrap: wrap;
6
- justify-content: space-between;
7
- left: 0;
8
- position: absolute;
9
- padding: 20px 10px;
10
- right: 0;
11
- top: 100%;
12
12
  }
13
13
 
14
+ /* TODO @TW: cannot compose */
14
15
  .submenu::before {
15
16
  box-shadow: inset 0 2px rgb(var(--venia-global-color-gray-100));
16
17
  content: '';
@@ -22,16 +23,21 @@
22
23
  top: 0;
23
24
  }
24
25
 
26
+ .submenu_inactive {
27
+ composes: submenu;
28
+ composes: hidden from global;
29
+ }
30
+
25
31
  .submenu_active {
26
32
  composes: submenu;
27
- display: flex;
33
+ composes: flex from global;
28
34
  }
29
35
 
30
36
  .submenuItems {
31
- display: flex;
32
- flex-wrap: wrap;
33
- justify-content: space-between;
34
- margin-left: auto;
35
- margin-right: auto;
36
- max-width: var(--venia-global-maxWidth);
37
+ composes: flex from global;
38
+ composes: flex-wrap from global;
39
+ composes: justify-between from global;
40
+ composes: max-w-site from global;
41
+ composes: ml-auto from global;
42
+ composes: mr-auto from global;
37
43
  }
@@ -1,26 +1,28 @@
1
1
  .submenuColumn {
2
- max-width: 235px;
3
- padding: 20px;
2
+ composes: max-w-[235px] from global;
3
+ composes: p-5 from global;
4
4
  }
5
5
 
6
6
  .heading {
7
- font-weight: 600;
7
+ composes: font-semibold from global;
8
8
  }
9
9
 
10
10
  .link {
11
- white-space: nowrap;
11
+ composes: whitespace-nowrap from global;
12
+
13
+ composes: focus_underline from global;
14
+
15
+ composes: hover_underline from global;
12
16
  }
13
17
 
14
- .link:hover,
15
- .link:focus,
16
18
  .linkActive {
17
- text-decoration: underline;
19
+ composes: underline from global;
18
20
  }
19
21
 
20
22
  .submenuChild {
21
- margin-top: 21px;
23
+ composes: mt-5 from global;
22
24
  }
23
25
 
24
26
  .submenuChildItem {
25
- margin-bottom: 12px;
27
+ composes: mb-3 from global;
26
28
  }
@@ -1,11 +1,11 @@
1
1
  .root {
2
- display: grid;
2
+ composes: gap-x-xs from global;
3
+ composes: gap-y-2xs from global;
4
+ composes: grid from global;
5
+ composes: opacity-100 from global;
6
+ composes: text-sm from global;
3
7
  grid-template-columns: auto 1fr auto;
4
8
  grid-template-rows: auto auto auto auto auto 1fr;
5
- column-gap: 1rem;
6
- row-gap: 0.5rem;
7
- font-size: var(--venia-global-fontSize-100);
8
- opacity: 1;
9
9
  transition-delay: 64ms;
10
10
  transition-duration: 384ms;
11
11
  transition-property: opacity;
@@ -14,7 +14,8 @@
14
14
 
15
15
  .root_disabled {
16
16
  composes: root;
17
- opacity: 0.5;
17
+
18
+ composes: opacity-50 from global;
18
19
  }
19
20
 
20
21
  .thumbnailContainer {
@@ -23,19 +24,21 @@
23
24
  }
24
25
 
25
26
  .thumbnail {
26
- border: solid 1px rgb(var(--venia-global-color-border));
27
+ composes: border from global;
28
+ composes: border-solid from global;
29
+ composes: border-subtle from global;
27
30
  }
28
31
 
29
32
  .name {
30
- font-weight: 600;
33
+ composes: font-semibold from global;
34
+ composes: mb-2xs from global;
31
35
  grid-column: 2 / span 1;
32
36
  grid-row: 1 / span 1;
33
- margin-bottom: 0.5rem;
34
37
  }
35
38
 
36
39
  .options {
37
- display: grid;
38
- gap: 0.5rem;
40
+ composes: gap-2xs from global;
41
+ composes: grid from global;
39
42
  grid-column: 2 / span 1;
40
43
  grid-row: 2 / span 2;
41
44
  }
@@ -51,8 +54,8 @@
51
54
  }
52
55
 
53
56
  .stockStatus {
54
- color: rgb(var(--venia-global-color-error));
55
- font-weight: var(--venia-global-fontWeight-semibold);
57
+ composes: font-semibold from global;
58
+ composes: text-error from global;
56
59
  grid-column: 2;
57
60
  grid-row: 6;
58
61
  }
@@ -1,4 +1,4 @@
1
1
  .root {
2
- display: grid;
3
- gap: 1.5rem;
2
+ composes: gap-sm from global;
3
+ composes: grid from global;
4
4
  }
@@ -1,52 +1,54 @@
1
1
  .root {
2
- --content-width: 22.5rem;
3
-
4
- height: 0;
5
- overflow: visible;
6
- left: -100vw;
7
- opacity: 0;
8
- position: absolute;
9
- top: 100%;
2
+ composes: absolute from global;
3
+ composes: h-0 from global;
4
+ composes: left-[-100vw] from global;
5
+ composes: max-w-[100vw] from global;
6
+ composes: opacity-0 from global;
7
+ composes: overflow-visible from global;
8
+ composes: top-full from global;
9
+ composes: z-menu from global;
10
10
  transition: opacity 192ms var(--venia-global-anim-out),
11
11
  visibility 192ms var(--venia-global-anim-out),
12
12
  /* Adding delay to move container off the screen after previous transitions happened */
13
13
  left 0s 192ms;
14
- visibility: hidden;
15
- width: calc(100vw - 2rem);
16
- /* max-width wider than header to let dropdown to move left on wider screens while still staying near the trigger */
17
- max-width: calc(
18
- var(--venia-global-maxWidth) + var(--content-width) * 2 - 8rem
19
- );
20
- z-index: 3;
14
+ width: calc(100vw - 2rem); /* TODO @TW: review */
21
15
  transform: translate3d(-50%, 0, 0);
16
+
17
+ /* TODO @TW: review (B6) */
18
+ /* composes: invisible from global; */
19
+ visibility: hidden;
22
20
  }
23
21
 
24
22
  .root_open {
25
23
  composes: root;
26
- left: 50%;
27
- opacity: 1;
24
+
25
+ composes: left-1/2 from global;
26
+ composes: opacity-100 from global;
28
27
  transition: opacity 224ms var(--venia-global-anim-in),
29
28
  visibility 224ms var(--venia-global-anim-in), left 0s;
29
+
30
+ /* TODO @TW: review (B6) */
31
+ /* composes: visible from global; */
30
32
  visibility: visible;
31
33
  }
32
34
 
35
+ /* These heights may change based on PWA-605 and should be based on 1.5 and 2.5 visible items. */
33
36
  .contents {
34
- background-color: rgb(var(--venia-global-color-background));
35
- border-radius: 1px;
37
+ composes: absolute from global;
38
+ composes: bg-white from global;
39
+ composes: grid from global;
40
+ composes: max-h-[35rem] from global;
41
+ composes: overflow-hidden from global;
42
+ composes: right-0 from global;
43
+ composes: rounded-sm from global;
44
+ composes: top-0 from global;
45
+ composes: w-[22.5rem] from global;
36
46
  box-shadow: 0 1px 6px rgb(var(--venia-global-color-gray-900) / 0.2);
37
- display: grid;
38
- /* These heights may change based on PWA-605 and should be based on 1.5 and 2.5 visible items. */
39
47
  min-height: 20rem;
40
- max-height: 35rem;
41
- overflow: hidden;
42
- position: absolute;
43
- right: 0;
44
- top: 0;
45
48
  transform: translate3d(0, -8px, 0);
46
49
  transition-duration: 192ms;
47
50
  transition-property: transform;
48
51
  transition-timing-function: var(--venia-global-anim-out);
49
- width: var(--content-width);
50
52
  }
51
53
 
52
54
  .contents_open {
@@ -58,35 +60,41 @@
58
60
  }
59
61
 
60
62
  .header {
61
- align-items: center;
62
- border-bottom: 2px solid rgb(var(--venia-global-color-gray-100));
63
- display: grid;
64
- font-size: var(--venia-global-typography-heading-XS-fontSize);
65
- font-weight: 600;
66
- grid-template-columns: 1fr auto;
67
- line-height: var(--venia-global-typography-heading-lineHeight);
68
- margin: 0 1rem;
69
- padding: 1rem 0.5rem 0.5rem;
70
- row-gap: 1rem;
63
+ composes: border-b-2 from global;
64
+ composes: border-solid from global;
65
+ composes: border-light from global;
66
+ composes: font-semibold from global;
67
+ composes: gap-y-xs from global;
68
+ composes: grid from global;
69
+ composes: grid-cols-autoLast from global;
70
+ composes: items-center from global;
71
+ composes: leading-tight from global;
72
+ composes: mx-xs from global;
73
+ composes: my-0 from global;
74
+ composes: pb-2xs from global;
75
+ composes: pt-xs from global;
76
+ composes: px-2xs from global;
77
+ composes: text-sm from global;
71
78
  }
72
79
 
73
80
  .stockStatusMessageContainer {
74
- grid-column-end: span 2;
81
+ composes: col-end-span2 from global;
75
82
  }
76
83
 
84
+ /* TODO @TW: cannot compose */
77
85
  .stockStatusMessageContainer:empty {
78
86
  display: none;
79
87
  }
80
88
 
81
89
  .body {
82
- max-height: 25rem;
90
+ composes: max-h-[25rem] from global;
91
+ composes: overflow-y-auto from global;
92
+ composes: p-sm from global;
83
93
  min-height: 10rem;
84
- overflow-y: scroll;
85
- padding: 1.5rem;
86
94
  }
87
95
 
88
96
  .quantity {
89
- opacity: 1;
97
+ composes: opacity-100 from global;
90
98
  transition-delay: 64ms;
91
99
  transition-duration: 384ms;
92
100
  transition-property: opacity;
@@ -95,11 +103,12 @@
95
103
 
96
104
  .quantity_loading {
97
105
  composes: quantity;
98
- opacity: 0.5;
106
+
107
+ composes: opacity-50 from global;
99
108
  }
100
109
 
101
110
  .price {
102
- opacity: 1;
111
+ composes: opacity-100 from global;
103
112
  transition-delay: 64ms;
104
113
  transition-duration: 384ms;
105
114
  transition-property: opacity;
@@ -108,45 +117,50 @@
108
117
 
109
118
  .price_loading {
110
119
  composes: quantity;
111
- opacity: 0.5;
120
+
121
+ composes: opacity-50 from global;
112
122
  }
113
123
 
114
124
  .footer {
115
- align-items: center;
116
- border-top: 2px solid rgb(var(--venia-global-color-gray));
117
- display: grid;
118
- gap: 0.5rem;
119
- font-size: var(--venia-typography-body-S-fontSize);
120
- justify-items: center;
121
- line-height: var(--venia-typography-body-lineHeight);
122
- margin: 0 1rem;
125
+ composes: border-t-2 from global;
126
+ composes: border-solid from global;
127
+ composes: border-light from global;
128
+ composes: gap-2xs from global;
129
+ composes: grid from global;
130
+ composes: items-center from global;
131
+ composes: justify-items-center from global;
132
+ composes: leading-normal from global;
133
+ composes: mx-xs from global;
134
+ composes: my-0 from global;
135
+ composes: overflow-hidden from global;
136
+ composes: p-xs from global;
137
+ composes: text-sm from global;
123
138
  min-height: 3rem;
124
- overflow: hidden;
125
- padding: 1rem;
126
139
  }
127
140
 
128
141
  .checkoutButton {
129
142
  composes: root_highPriority from '../Button/button.module.css';
143
+
144
+ composes: bg-brand-dark from global;
145
+ composes: border-0 from global;
146
+ composes: font-bold from global;
147
+ composes: m-auto from global;
148
+ composes: w-[10rem] from global;
130
149
  grid-column: 1 / span 1;
131
- width: 10rem;
132
- margin: auto;
133
- background-color: rgb(var(--venia-brand-color-1-700));
134
- border: none;
135
- font-weight: bold;
136
150
  }
137
151
 
138
152
  .editCartButton {
139
- text-decoration: underline;
140
- font-size: var(--venia-global-fontSize-100);
153
+ composes: text-sm from global;
154
+ composes: underline from global;
141
155
  }
142
156
 
143
157
  .emptyCart {
144
- display: grid;
145
- gap: 2rem;
146
- padding: 2rem;
158
+ composes: gap-md from global;
159
+ composes: grid from global;
160
+ composes: p-md from global;
147
161
  }
148
162
 
149
163
  .emptyMessage {
150
- margin: auto;
151
- font-weight: bold;
164
+ composes: font-bold from global;
165
+ composes: m-auto from global;
152
166
  }
@@ -1,54 +1,53 @@
1
1
  .root {
2
- display: grid;
3
- justify-content: center;
4
- padding: 2.5rem 0;
5
- text-align: center;
2
+ composes: gap-y-md from global;
3
+ composes: grid from global;
4
+ composes: justify-center from global;
5
+ composes: px-0 from global;
6
+ composes: py-[2.5rem] from global;
7
+ composes: text-center from global;
6
8
  grid-template-columns: minmax(auto, 512px);
7
- row-gap: 2rem;
8
9
  }
9
10
 
10
11
  .header {
11
- font-family: var(--venia-global-fontFamily-serif);
12
+ composes: font-serif from global;
12
13
  }
13
14
 
14
15
  .form {
15
- display: grid;
16
- gap: 0.9375rem;
17
- justify-items: stretch;
18
- padding: 1rem 1.5rem;
16
+ composes: gap-xs from global;
17
+ composes: grid from global;
18
+ composes: justify-items-stretch from global;
19
+ composes: px-sm from global;
20
+ composes: py-xs from global;
21
+ composes: lg_mb-md from global;
19
22
  }
20
23
 
21
24
  .description {
22
- font-weight: 300;
23
- line-height: 1.25rem;
25
+ composes: font-light from global;
26
+ composes: leading-5 from global;
24
27
  }
25
28
 
26
29
  .buttonContainer {
27
- margin-top: 1rem;
30
+ composes: mt-xs from global;
28
31
  }
29
32
 
30
33
  .submitButton {
31
34
  composes: root_highPriority from '../../Button/button.module.css';
32
- justify-self: center;
35
+ composes: justify-self-center from global;
33
36
  }
34
37
 
35
38
  .invalidToken,
36
39
  .successMessage {
37
- padding: 1.5rem;
38
- text-align: center;
40
+ composes: p-sm from global;
41
+ composes: text-center from global;
39
42
  }
40
43
 
41
44
  .invalidToken {
42
- color: rgb(var(--venia-global-color-error));
45
+ composes: text-error from global;
43
46
  }
44
47
 
45
- @media (min-width: 961px) {
46
- .contentContainer {
47
- border: 2px solid rgb(var(--venia-global-color-border));
48
- border-radius: 0.375rem;
49
- }
50
-
51
- .form {
52
- margin-bottom: 2rem;
53
- }
48
+ .contentContainer {
49
+ composes: lg_border-2 from global;
50
+ composes: lg_border-solid from global;
51
+ composes: lg_border-subtle from global;
52
+ composes: lg_rounded-md from global;
54
53
  }
@@ -1,29 +1,31 @@
1
1
  .root {
2
- border-bottom: 1px solid rgb(var(--venia-global-color-border));
3
- width: 100%;
2
+ composes: border-b from global;
3
+ composes: border-solid from global;
4
+ composes: border-subtle from global;
5
+ composes: w-full from global;
4
6
  }
5
7
 
6
8
  .content {
7
- align-items: center;
8
- display: grid;
9
- gap: 0.5rem;
10
- grid-auto-flow: column;
9
+ composes: gap-2xs from global;
10
+ composes: grid from global;
11
+ composes: grid-flow-col from global;
12
+ composes: h-[3rem] from global;
13
+ composes: items-center from global;
14
+ composes: justify-items-start from global;
11
15
  grid-template-columns: 2rem 1fr;
12
- height: 3rem;
13
- justify-items: start;
14
16
  }
15
17
 
16
18
  .icon {
17
- align-items: center;
18
- color: rgb(var(--venia-global-color-teal));
19
- display: flex;
20
- justify-content: center;
21
- justify-self: center;
19
+ composes: flex from global;
20
+ composes: items-center from global;
21
+ composes: justify-center from global;
22
+ composes: justify-self-center from global;
23
+ composes: text-brand from global;
22
24
  }
23
25
 
24
26
  .text {
25
- font-size: 0.875rem;
26
- line-height: 1rem;
27
+ composes: leading-none from global;
28
+ composes: text-sm from global;
27
29
  }
28
30
 
29
31
  .root_normalPriority {
@@ -1,5 +1,5 @@
1
1
  .root {
2
- display: grid;
3
- grid-auto-flow: row;
4
- row-gap: 1.5rem;
2
+ composes: gap-y-sm from global;
3
+ composes: grid from global;
4
+ composes: grid-flow-row from global;
5
5
  }
@@ -1,8 +1,9 @@
1
1
  .title {
2
- align-items: center;
3
- display: inline-flex;
4
- font-size: 1rem;
5
- font-weight: 400;
6
- padding: 0 0.5rem;
7
- text-transform: capitalize;
2
+ composes: capitalize from global;
3
+ composes: font-normal from global;
4
+ composes: inline-flex from global;
5
+ composes: items-center from global;
6
+ composes: px-2xs from global;
7
+ composes: py-0 from global;
8
+ composes: text-colorDefault from global;
8
9
  }