@magento/venia-ui 9.3.0-alpha.1 → 9.4.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 (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 +4 -4
  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 +312 -117
  231. package/lib/components/ProductFullDetail/__tests__/productFullDetail.spec.js +1 -3
  232. package/lib/components/ProductFullDetail/productFullDetail.js +77 -11
  233. package/lib/components/ProductFullDetail/productFullDetail.module.css +85 -77
  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 +15 -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
@@ -1,28 +1,37 @@
1
+ /* The root aside element takes up the whole screen. */
2
+ /* It is hidden by default. */
3
+ /* It animates to being closed, and then moves off screen. */
4
+ /* It sits over all background content. */
1
5
  .root {
2
- /* The root aside element takes up the whole screen. */
3
- position: fixed;
4
- left: -100vw;
5
- top: 0;
6
- height: 100%;
7
- width: 100%;
8
-
9
- /* It is hidden by default. */
10
- opacity: 0;
11
- visibility: hidden;
12
-
6
+ composes: fixed from global;
7
+ composes: h-full from global;
8
+ composes: left-[-100vw] from global;
9
+ composes: opacity-0 from global;
10
+ composes: right-0 from global;
11
+ composes: top-0 from global;
12
+ composes: w-full from global;
13
+ composes: z-dialog from global;
13
14
  transform: translate3d(-50%, 0, 0);
14
- /* It animates to being closed, and then moves off screen. */
15
15
  transition: opacity 192ms var(--venia-global-anim-out),
16
16
  visibility 192ms var(--venia-global-anim-out), left 0s 192ms;
17
17
 
18
- /* It sits over all background content. */
19
- z-index: 3;
18
+ /* TODO @TW: review (B6) */
19
+ /* composes: invisible from global; */
20
+ visibility: hidden;
21
+
22
+ composes: lg_right-auto from global;
20
23
  }
21
24
 
22
25
  .root_open {
23
26
  composes: root;
24
- left: 50%;
25
- opacity: 1;
27
+
28
+ composes: left-auto from global;
29
+ composes: opacity-100 from global;
30
+
31
+ composes: lg_left-1/2 from global;
32
+
33
+ /* TODO @TW: review (B6) */
34
+ /* composes: visible from global; */
26
35
  visibility: visible;
27
36
 
28
37
  /* It animates to being open. */
@@ -30,55 +39,57 @@
30
39
  visibility 224ms var(--venia-global-anim-in), left 0s;
31
40
  }
32
41
 
42
+ /* The form fills the entire aside. */
43
+ /* Its contents are centered horizontally and vertically. */
33
44
  .form {
34
- /* The form fills the entire aside. */
35
- height: 100%;
36
- width: 100%;
37
-
38
- /* Its contents are centered horizontally and vertically. */
39
- display: grid;
40
- justify-content: center;
41
- align-content: center;
45
+ composes: content-stretch from global;
46
+ composes: grid from global;
47
+ composes: h-full from global;
48
+ composes: justify-end from global;
49
+ composes: w-full from global;
50
+
51
+ composes: lg_content-center from global;
52
+ composes: lg_justify-center from global;
42
53
  }
43
54
 
44
55
  .mask {
45
56
  /* The mask takes up the entire screen. */
46
- position: absolute;
47
- left: 0;
48
- top: 0;
49
- height: 100%;
50
- width: 100%;
57
+ composes: absolute from global;
58
+ composes: h-full from global;
59
+ composes: left-0 from global;
60
+ composes: top-0 from global;
61
+ composes: w-full from global;
51
62
 
52
63
  /* The mask is a semi-transparent grey. */
53
- background-color: rgb(var(--venia-global-color-gray-darker));
54
- opacity: 0.5;
64
+ composes: bg-gray-600 from global;
65
+ composes: opacity-50 from global;
55
66
  }
56
67
 
57
68
  /* The dialog is the only item in the form grid. */
69
+ /* Nothing is allowed to overflow container itself. */
70
+ /* Container is itself a grid container for its children. */
71
+ /* Container can be the target of pointer events. */
72
+ /* It sits on top of the mask. */
58
73
  .dialog {
59
- background-color: rgb(var(--venia-global-color-background));
60
- border-radius: 5px;
61
- box-shadow: 1px 1px 5px rgb(var(--venia-global-color-gray-darker));
62
-
63
74
  /* It sets maximum sizes so its body can handle overflow. */
64
- height: 100%;
65
- max-height: 90vh;
75
+ composes: h-full from global;
76
+ composes: max-h-full from global;
66
77
  /* Minimum keeps a 16:9 aspect ratio and is 40rem x 22.5rem. */
67
- min-height: 360px;
68
- width: 640px;
69
-
70
- /* Nothing is allowed to overflow container itself. */
71
- overflow: hidden;
72
-
73
- /* Container is itself a grid container for its children. */
74
- display: grid;
75
- grid-template-rows: auto 1fr;
76
-
77
- /* Container can be the target of pointer events. */
78
- pointer-events: auto;
79
-
80
- /* It sits on top of the mask. */
81
- z-index: 4;
78
+ composes: min-h-[360px] from global;
79
+ composes: w-[640px] from global;
80
+
81
+ composes: bg-white from global;
82
+ composes: grid from global;
83
+ composes: grid-rows-autoFirst from global;
84
+ composes: max-w-modal from global;
85
+ composes: overflow-hidden from global;
86
+ composes: pointer-events-auto from global;
87
+ composes: rounded-md from global;
88
+ composes: shadow-dialog from global;
89
+ composes: z-dialog from global;
90
+
91
+ composes: lg_max-h-modal from global;
92
+ composes: lg_max-w-full from global;
82
93
  }
83
94
 
84
95
  /*
@@ -86,30 +97,34 @@
86
97
  */
87
98
 
88
99
  .header {
89
- border-bottom: 1px solid rgb(var(--venia-global-color-border));
90
- height: 3.5rem;
91
- padding: 0 0.75rem 0 1rem;
100
+ composes: border-b from global;
101
+ composes: border-solid from global;
102
+ composes: border-subtle from global;
103
+ composes: h-[3.5rem] from global;
104
+ composes: pl-4 from global;
105
+ composes: pr-3 from global;
106
+ composes: py-0 from global;
92
107
 
93
108
  /* The Header is itself a grid container for its children. */
94
- display: grid;
95
- grid-auto-flow: column;
96
- grid-template-columns: 1fr auto;
97
- column-gap: 1rem;
98
- align-items: center;
109
+ composes: gap-x-xs from global;
110
+ composes: grid from global;
111
+ composes: grid-cols-autoLast from global;
112
+ composes: grid-flow-col from global;
113
+ composes: items-center from global;
99
114
  }
100
115
 
101
116
  .headerText {
102
- color: rgb(var(--venia-global-color-text-alt));
103
- text-transform: capitalize;
104
- white-space: nowrap;
105
- overflow: hidden;
106
- text-overflow: ellipsis;
107
- line-height: 1.25rem;
117
+ composes: capitalize from global;
118
+ composes: leading-tight from global;
119
+ composes: overflow-ellipsis from global;
120
+ composes: overflow-hidden from global;
121
+ composes: text-subtle from global;
122
+ composes: whitespace-nowrap from global;
108
123
  }
109
124
 
110
125
  .headerButton {
111
126
  /* Horizontally align the close button to the right. */
112
- justify-self: right;
127
+ composes: justify-self-end from global;
113
128
  }
114
129
 
115
130
  /*
@@ -117,28 +132,34 @@
117
132
  */
118
133
 
119
134
  .body {
120
- overflow: auto;
135
+ composes: overflow-auto from global;
121
136
 
122
137
  /* The Body is itself a grid container for its children. */
123
- display: grid;
124
- grid-template-rows: 1fr auto;
138
+ composes: grid from global;
139
+ composes: grid-rows-autoLast from global;
125
140
  }
126
141
 
127
142
  .contents {
128
- padding: 1rem;
143
+ composes: p-xs from global;
129
144
  }
130
145
 
131
146
  .buttons {
132
- padding: 2.5rem;
147
+ composes: gap-xs from global;
148
+ composes: grid from global;
149
+ composes: grid-flow-row from global;
150
+ composes: justify-center from global;
151
+ composes: p-md from global;
133
152
 
134
- display: grid;
135
- grid-auto-flow: column;
136
- gap: 1rem;
137
- justify-content: center;
153
+ composes: lg_grid-flow-col from global;
138
154
  }
139
155
 
140
156
  .confirmButton {
141
157
  composes: root_highPriority from '../Button/button.module.css';
158
+
159
+ /* On mobile the confirm button should be first (on top). */
160
+ composes: order-first from global;
161
+
162
+ composes: lg_order-unset from global;
142
163
  }
143
164
 
144
165
  .cancelButton {
@@ -152,11 +173,8 @@
152
173
  * dialogs slide out from the right.
153
174
  */
154
175
 
155
- @media (max-width: 960px) {
176
+ @media (max-width: 959px) {
156
177
  .root {
157
- left: auto;
158
- right: 0;
159
-
160
178
  /* The Dialog starts off-screen on the right. */
161
179
  transform: translate3d(100%, 0, 0);
162
180
  /* For mobile, add position to the transitions. */
@@ -167,23 +185,4 @@
167
185
  /* The Dialog animates (slides) onto the screen. */
168
186
  transform: translate3d(0, 0, 0);
169
187
  }
170
-
171
- .form {
172
- align-content: stretch;
173
- justify-content: end;
174
- }
175
-
176
- .dialog {
177
- max-height: 100%;
178
- max-width: 360px;
179
- }
180
-
181
- .buttons {
182
- grid-auto-flow: row;
183
- }
184
-
185
- .confirmButton {
186
- /* On mobile the confirm button should be first (on top). */
187
- order: -1;
188
- }
189
188
  }
@@ -2,8 +2,8 @@
2
2
  }
3
3
 
4
4
  .errorMessage {
5
- color: rgb(var(--venia-global-color-error));
6
- font-size: var(--venia-typography-body-S-fontSize);
7
- font-weight: var(--venia-global-fontWeight-semibold);
8
- line-height: var(--venia-global-lineHeight-300);
5
+ composes: font-semibold from global;
6
+ composes: leading-normal from global;
7
+ composes: text-error from global;
8
+ composes: text-sm from global;
9
9
  }
@@ -1,36 +1,43 @@
1
1
  .root {
2
2
  background: var(--backroundImageUrl);
3
- background-size: cover;
4
- height: 600px;
5
- padding: 1rem;
6
-
7
- display: grid;
8
3
  /* two column grid because the "hangers" are on the right side of the page */
4
+ /* TODO @TW: review */
5
+ composes: bg-cover from global;
6
+ composes: content-center from global;
7
+ composes: grid from global;
8
+ composes: h-[600px] from global;
9
+ composes: p-xs from global;
9
10
  grid-template: 'content .';
10
- align-content: center;
11
11
  }
12
12
 
13
13
  .content {
14
+ composes: content-start from global;
15
+ composes: gap-xs from global;
16
+ composes: grid from global;
17
+ composes: text-center from global;
18
+ composes: text-white from global;
14
19
  grid-area: content;
15
- display: grid;
16
- grid-gap: 2rem;
17
- text-align: center;
18
- color: white;
20
+
21
+ composes: sm_gap-md from global;
19
22
  }
20
23
 
21
24
  .header {
22
- font-size: var(--venia-global-fontSize-1000);
23
- font-weight: var(--venia-global-fontWeight-semibold);
25
+ composes: font-semibold from global;
26
+ composes: text-2xl from global;
24
27
  }
25
28
 
26
29
  .message {
27
- line-height: var(--venia-global-lineHeight-200);
30
+ composes: leading-tight from global;
31
+ /* add a little space so the button is centered below the message */
32
+ composes: pb-sm from global;
33
+
34
+ composes: sm_pb-0 from global;
28
35
  }
29
36
 
30
37
  .actionsContainer {
31
38
  }
32
39
 
33
- @media (max-width: 640px) {
40
+ @media (max-width: 639px) {
34
41
  .root {
35
42
  background-image: var(--mobileBackgroundImageUrl);
36
43
  /* two row grid because the "hangers" are on the top of the page */
@@ -39,14 +46,4 @@
39
46
  '.'
40
47
  'content';
41
48
  }
42
-
43
- .content {
44
- align-content: start;
45
- grid-gap: 1rem;
46
- }
47
-
48
- .message {
49
- /* add a little space so the button is centered below the message */
50
- padding-bottom: 1.5rem;
51
- }
52
49
  }
@@ -1,38 +1,40 @@
1
1
  .root {
2
- color: rgb(var(--venia-global-color-text));
3
- display: grid;
4
- align-content: start;
2
+ composes: content-start from global;
3
+ composes: grid from global;
4
+ composes: text-colorDefault from global;
5
5
  }
6
6
 
7
7
  .label {
8
- align-items: center;
9
- display: flex;
10
- font-size: 1rem;
11
- font-weight: var(--venia-global-fontWeight-semibold);
12
- justify-content: space-between;
13
- line-height: 1rem;
14
- padding: 0.5625rem 0.125rem;
8
+ composes: flex from global;
9
+ composes: font-semibold from global;
10
+ composes: items-center from global;
11
+ composes: justify-between from global;
12
+ composes: leading-none from global;
13
+ composes: px-0.5 from global;
14
+ composes: py-2.5 from global;
15
+ composes: text-colorDefault from global;
15
16
  min-height: 2.125rem;
16
17
  }
17
18
 
18
- .input_base {
19
- border-radius: 6px;
20
- font-size: 1rem;
21
- height: 2.5rem;
22
- margin: 0;
23
- max-width: 100%;
24
- padding: calc(0.375rem - 1px) calc(0.625rem - 1px);
25
- width: 100%;
26
- }
27
-
28
19
  .input {
29
- composes: input_base;
30
- background: white;
31
- border: 2px solid rgb(var(--venia-global-color-gray-600));
32
- color: rgb(var(--venia-global-color-text));
33
- display: inline-flex;
34
- flex: 0 0 100%;
35
- -webkit-appearance: none;
20
+ composes: appearance-none from global;
21
+ composes: bg-white from global;
22
+ composes: border-2 from global;
23
+ composes: border-solid from global;
24
+ composes: border-input from global;
25
+ composes: flex-textInput from global;
26
+ composes: h-[2.5rem] from global;
27
+ composes: inline-flex from global;
28
+ composes: m-0 from global;
29
+ composes: max-w-full from global;
30
+ composes: rounded-md from global;
31
+ composes: text-colorDefault from global;
32
+ composes: text-colorDefault from global;
33
+ composes: w-full from global;
34
+ padding: calc(0.375rem - 1px) calc(0.625rem - 1px); /* TODO @TW: review */
35
+
36
+ composes: focus_outline-none from global;
37
+ composes: focus_shadow-inputFocus from global;
36
38
  }
37
39
 
38
40
  .input:disabled {
@@ -41,13 +43,8 @@
41
43
  color: rgb(var(--venia-global-color-gray-darker));
42
44
  }
43
45
 
44
- .input:focus {
45
- box-shadow: -6px 6px rgb(var(--venia-brand-color-1-100));
46
- outline: none;
47
- }
48
-
49
46
  .optional {
50
- color: rgb(var(--venia-global-color-gray-700));
51
- font-size: var(--venia-global-fontSize-100);
52
- font-weight: var(--venia-global-fontWeight-normal);
47
+ composes: font-normal from global;
48
+ composes: text-sm from global;
49
+ composes: text-subtle from global;
53
50
  }
@@ -1,19 +1,20 @@
1
1
  .root {
2
- display: inline-grid;
3
- grid-auto-flow: column;
2
+ composes: grid-flow-col from global;
3
+ composes: h-[2.5rem] from global;
4
+ composes: inline-grid from global;
5
+ composes: w-full from global;
4
6
  grid-template-areas: 'before input after';
5
7
  grid-template-columns: auto 1fr auto;
6
- height: 2.5rem;
7
- width: 100%;
8
8
  }
9
9
 
10
10
  .input {
11
- align-items: center;
12
- display: flex;
11
+ composes: items-center from global;
12
+ composes: flex from global;
13
13
  grid-column: before-start / after-end;
14
14
  grid-row: input-start / input-end;
15
15
  }
16
16
 
17
+ /* TODO @TW: cannot compose */
17
18
  .input > input {
18
19
  padding-left: calc(1.875rem * var(--iconsBefore) + 0.625rem);
19
20
  padding-right: calc(1.875rem * var(--iconsAfter) + 0.625rem);
@@ -21,15 +22,17 @@
21
22
 
22
23
  .before,
23
24
  .after {
24
- align-items: center;
25
- display: flex;
26
- justify-content: center;
27
- margin: 0 2px;
28
- pointer-events: none;
29
- width: 2.5rem;
30
- z-index: 1;
25
+ composes: flex from global;
26
+ composes: items-center from global;
27
+ composes: justify-center from global;
28
+ composes: mx-0.5 from global;
29
+ composes: my-0 from global;
30
+ composes: pointer-events-none from global;
31
+ composes: w-[2.5rem] from global;
32
+ composes: z-foreground from global;
31
33
  }
32
34
 
35
+ /* TODO @TW: cannot compose */
33
36
  .before:empty,
34
37
  .after:empty {
35
38
  display: none;
@@ -43,6 +46,8 @@
43
46
  grid-area: after;
44
47
  }
45
48
 
49
+ /* TODO @TW: cannot compose */
46
50
  .before svg {
51
+ /* composes: stroke-gray-600 from global; */
47
52
  stroke: rgb(var(--venia-global-color-gray-600));
48
53
  }
@@ -1,17 +1,21 @@
1
1
  .root {
2
- color: rgb(var(--venia-global-color-text));
3
- font-size: 0.875rem;
4
- font-weight: 400;
5
- line-height: 1rem;
6
- padding: 0.625rem 0.125rem 0.125rem;
2
+ composes: font-normal from global;
3
+ composes: leading-none from global;
4
+ composes: pb-0.5 from global;
5
+ composes: pt-2.5 from global;
6
+ composes: px-0.5 from global;
7
+ composes: text-colorDefault from global;
8
+ composes: text-sm from global;
7
9
  }
8
10
 
11
+ /* TODO @TW: cannot compose */
9
12
  .root:empty {
10
13
  display: none;
11
14
  }
12
15
 
13
16
  .root_error {
14
17
  composes: root;
15
- color: rgb(var(--venia-global-color-error));
16
- font-weight: var(--venia-global-fontWeight-semibold);
18
+
19
+ composes: font-semibold from global;
20
+ composes: text-error from global;
17
21
  }
@@ -26,7 +26,7 @@ const CurrentFilter = props => {
26
26
  defaultMessage: 'Clear filter "{name}"'
27
27
  },
28
28
  {
29
- name: item.title
29
+ name: item.label ? item.label : item.title
30
30
  }
31
31
  );
32
32
 
@@ -39,7 +39,9 @@ const CurrentFilter = props => {
39
39
  >
40
40
  <Icon size={20} src={Remove} />
41
41
  </Trigger>
42
- <span className={classes.text}>{item.title}</span>
42
+ <span className={classes.text}>
43
+ {item.label ? item.label : item.title}
44
+ </span>
43
45
  </span>
44
46
  );
45
47
  };
@@ -1,18 +1,21 @@
1
1
  .root {
2
- align-items: center;
3
- background-color: rgb(var(--venia-global-color-gray-700));
4
- border-radius: 6px;
5
- color: rgb(var(--venia-global-color-gray-50));
6
- display: inline-grid;
7
- font-weight: var(--venia-global-fontWeight-semibold);
8
- gap: 0.5rem;
9
- grid-auto-flow: column;
10
- justify-content: center;
11
2
  min-height: 2.5rem;
12
- padding: 0.625rem 0.75rem 0.625rem 0.5rem;
13
- white-space: nowrap;
3
+ composes: bg-gray-700 from global;
4
+ composes: font-semibold from global;
5
+ composes: gap-2xs from global;
6
+ composes: grid-flow-col from global;
7
+ composes: inline-grid from global;
8
+ composes: items-center from global;
9
+ composes: justify-center from global;
10
+ composes: pl-2 from global;
11
+ composes: pr-3 from global;
12
+ composes: py-2.5 from global;
13
+ composes: rounded-md from global;
14
+ composes: text-white from global;
14
15
  }
15
16
 
17
+ /* TODO @TW: cannot compose */
16
18
  .root svg {
19
+ /* composes: stroke-white from global; */
17
20
  stroke: rgb(var(--venia-global-color-gray-50));
18
21
  }
@@ -1,13 +1,18 @@
1
1
  .root {
2
- overflow: auto;
3
- padding: 0 1.125rem;
2
+ composes: px-xs from global;
3
+ composes: py-0 from global;
4
+ composes: overflow-auto from global;
4
5
  }
5
6
 
7
+ /* TODO @TW: cannot compose */
6
8
  .root:empty {
7
9
  display: none;
8
10
  }
9
11
 
10
- .root li {
11
- float: left;
12
- padding: 1rem 1rem 0 0;
12
+ .item {
13
+ composes: float-left from global;
14
+ composes: pb-0 from global;
15
+ composes: pl-0 from global;
16
+ composes: pr-xs from global;
17
+ composes: pt-xs from global;
13
18
  }