@magento/venia-ui 9.3.0 → 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.
- package/i18n/en_US.json +1 -1
- package/lib/RootComponents/CMS/cms.module.css +1 -1
- package/lib/RootComponents/Category/NoProductsFound/noProductsFound.module.css +18 -19
- package/lib/RootComponents/Category/category.module.css +50 -70
- package/lib/components/Accordion/accordion.module.css +4 -2
- package/lib/components/Accordion/section.module.css +24 -16
- package/lib/components/AccountChip/accountChip.module.css +5 -5
- package/lib/components/AccountInformationPage/accountInformationPage.module.css +22 -35
- package/lib/components/AccountInformationPage/editForm.module.css +13 -12
- package/lib/components/AccountInformationPage/editModal.module.css +1 -1
- package/lib/components/AccountMenu/accountMenu.module.css +34 -31
- package/lib/components/AccountMenu/accountMenuItems.module.css +20 -15
- package/lib/components/AddToCartDialog/addToCartDialog.module.css +27 -25
- package/lib/components/AddressBookPage/addEditDialog.module.css +10 -14
- package/lib/components/AddressBookPage/addressBookPage.module.css +30 -41
- package/lib/components/AddressBookPage/addressCard.module.css +61 -59
- package/lib/components/AuthBar/authBar.module.css +13 -12
- package/lib/components/AuthModal/authModal.module.css +5 -3
- package/lib/components/Breadcrumbs/breadcrumbs.module.css +12 -19
- package/lib/components/Button/button.module.css +95 -59
- package/lib/components/ButtonGroup/button.module.css +30 -28
- package/lib/components/ButtonGroup/buttonGroup.module.css +4 -4
- package/lib/components/CartPage/GiftCards/giftCard.module.css +3 -3
- package/lib/components/CartPage/GiftCards/giftCards.module.css +44 -41
- package/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.module.css +26 -18
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/__tests__/__snapshots__/shippingRadios.spec.js.snap +4 -0
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.module.css +7 -6
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.module.css +9 -18
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.module.css +1 -1
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.module.css +5 -18
- package/lib/components/CartPage/PriceAdjustments/__tests__/__snapshots__/giftCardSection.ee.spec.js.snap +1 -1
- package/lib/components/CartPage/PriceAdjustments/__tests__/__snapshots__/giftOptionsSection.ce.spec.js.snap +1 -1
- package/lib/components/CartPage/PriceAdjustments/__tests__/__snapshots__/giftOptionsSection.ee.spec.js.snap +3 -3
- package/lib/components/CartPage/PriceAdjustments/__tests__/giftCardSection.ce.spec.js +1 -1
- package/lib/components/CartPage/PriceAdjustments/__tests__/giftCardSection.ee.spec.js +1 -1
- package/lib/components/CartPage/PriceAdjustments/__tests__/giftOptionsSection.ce.spec.js +1 -1
- package/lib/components/CartPage/PriceAdjustments/__tests__/giftOptionsSection.ee.spec.js +1 -1
- package/lib/components/CartPage/PriceAdjustments/giftCardSection.ce.js +2 -2
- package/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ce.js +2 -2
- package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/giftCardSummary.ce.spec.js.snap +1 -1
- package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/giftCardSummary.ee.spec.js.snap +4 -4
- package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/giftOptionsSummary.ce.spec.js.snap +1 -1
- package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/giftOptionsSummary.ee.spec.js.snap +4 -4
- package/lib/components/CartPage/PriceSummary/__tests__/giftCardSummary.ce.spec.js +1 -1
- package/lib/components/CartPage/PriceSummary/__tests__/giftCardSummary.ee.spec.js +1 -1
- package/lib/components/CartPage/PriceSummary/__tests__/giftOptionsSummary.ce.spec.js +1 -1
- package/lib/components/CartPage/PriceSummary/__tests__/giftOptionsSummary.ee.spec.js +1 -1
- package/lib/components/CartPage/PriceSummary/giftOptionsSummary.ce.js +2 -2
- package/lib/components/CartPage/PriceSummary/priceSummary.module.css +16 -16
- package/lib/components/CartPage/ProductListing/EditModal/productDetail.module.css +16 -13
- package/lib/components/CartPage/ProductListing/EditModal/productForm.js +2 -2
- package/lib/components/CartPage/ProductListing/EditModal/productForm.module.css +28 -22
- package/lib/components/CartPage/ProductListing/__tests__/__snapshots__/product.spec.js.snap +4 -0
- package/lib/components/CartPage/ProductListing/__tests__/quantity.spec.js +3 -3
- package/lib/components/CartPage/ProductListing/errorMessage.module.css +11 -7
- package/lib/components/CartPage/ProductListing/product.module.css +67 -59
- package/lib/components/CartPage/ProductListing/productListing.module.css +6 -5
- package/lib/components/CartPage/ProductListing/quantity.js +8 -92
- package/lib/components/CartPage/cartPage.module.css +18 -22
- package/lib/components/CategoryList/categoryList.module.css +8 -7
- package/lib/components/CategoryList/categoryTile.module.css +14 -11
- package/lib/components/CategoryTree/categoryLeaf.module.css +19 -16
- package/lib/components/CategoryTree/categoryTree.module.css +2 -2
- package/lib/components/Checkbox/checkbox.module.css +33 -30
- package/lib/components/Checkout/Receipt/receipt.module.css +28 -23
- package/lib/components/Checkout/addressForm.module.css +20 -20
- package/lib/components/Checkout/braintreeDropin.module.css +1 -1
- package/lib/components/Checkout/checkoutButton.module.css +2 -1
- package/lib/components/Checkout/flow.module.css +34 -30
- package/lib/components/Checkout/form.module.css +13 -9
- package/lib/components/Checkout/label.module.css +6 -6
- package/lib/components/Checkout/paymentsForm.module.css +23 -21
- package/lib/components/Checkout/section.module.css +30 -31
- package/lib/components/Checkout/shippingForm.module.css +1 -1
- package/lib/components/CheckoutPage/AddressBook/addressBook.module.css +52 -61
- package/lib/components/CheckoutPage/AddressBook/addressCard.module.css +43 -47
- package/lib/components/CheckoutPage/BillingAddress/billingAddress.module.css +14 -28
- package/lib/components/CheckoutPage/GuestSignIn/guestSignIn.module.css +28 -26
- package/lib/components/CheckoutPage/ItemsReview/item.js +1 -1
- package/lib/components/CheckoutPage/ItemsReview/item.module.css +29 -18
- package/lib/components/CheckoutPage/ItemsReview/itemsReview.module.css +8 -5
- package/lib/components/CheckoutPage/ItemsReview/showAllButton.module.css +15 -11
- package/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.module.css +12 -26
- package/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.module.css +29 -37
- package/lib/components/CheckoutPage/OrderSummary/orderSummary.module.css +12 -17
- package/lib/components/CheckoutPage/PaymentInformation/braintreeDropin.module.css +5 -2
- package/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.module.css +30 -50
- package/lib/components/CheckoutPage/PaymentInformation/creditCard.module.css +20 -34
- package/lib/components/CheckoutPage/PaymentInformation/editCard.module.css +3 -2
- package/lib/components/CheckoutPage/PaymentInformation/paymentInformation.module.css +12 -13
- package/lib/components/CheckoutPage/PaymentInformation/paymentMethods.module.css +17 -14
- package/lib/components/CheckoutPage/PaymentInformation/summary.module.css +9 -9
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.module.css +15 -13
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.module.css +14 -12
- package/lib/components/CheckoutPage/ShippingInformation/card.module.css +7 -7
- package/lib/components/CheckoutPage/ShippingInformation/editModal.module.css +66 -49
- package/lib/components/CheckoutPage/ShippingInformation/shippingInformation.module.css +37 -26
- package/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/shippingMethod.spec.js.snap +2 -0
- package/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/updateModal.spec.js.snap +2 -0
- package/lib/components/CheckoutPage/ShippingMethod/completedView.module.css +23 -26
- package/lib/components/CheckoutPage/ShippingMethod/shippingMethod.module.css +17 -15
- package/lib/components/CheckoutPage/ShippingMethod/shippingRadios.module.css +13 -24
- package/lib/components/CheckoutPage/ShippingMethod/updateModal.module.css +1 -1
- package/lib/components/CheckoutPage/checkoutPage.module.css +85 -79
- package/lib/components/CmsBlock/cmsBlock.module.css +3 -1
- package/lib/components/CmsDynamicBlock/__tests__/__snapshots__/cmsDynamicBlock.ce.spec.js.snap +1 -1
- package/lib/components/CmsDynamicBlock/__tests__/__snapshots__/cmsDynamicBlock.ee.spec.js.snap +8 -8
- package/lib/components/CmsDynamicBlock/__tests__/cmsDynamicBlock.ce.spec.js +1 -1
- package/lib/components/CmsDynamicBlock/__tests__/cmsDynamicBlock.ee.spec.js +1 -1
- package/lib/components/CmsDynamicBlock/cmsDynamicBlock.ce.js +2 -2
- package/lib/components/CommunicationsPage/communicationsPage.module.css +14 -20
- package/lib/components/ContactPage/contactPage.module.css +1 -1
- package/lib/components/CreateAccount/createAccount.module.css +24 -27
- package/lib/components/CreateAccountPage/createAccountPage.module.css +13 -12
- package/lib/components/Dialog/__stories__/dialog.module.css +3 -2
- package/lib/components/Dialog/dialog.module.css +98 -99
- package/lib/components/ErrorMessage/errorMessage.module.css +4 -4
- package/lib/components/ErrorView/errorView.module.css +21 -24
- package/lib/components/Field/field.module.css +32 -35
- package/lib/components/Field/fieldIcons.module.css +18 -13
- package/lib/components/Field/message.module.css +11 -7
- package/lib/components/FilterModal/CurrentFilters/currentFilter.js +4 -2
- package/lib/components/FilterModal/CurrentFilters/currentFilter.module.css +14 -11
- package/lib/components/FilterModal/CurrentFilters/currentFilters.module.css +10 -5
- package/lib/components/FilterModal/FilterList/__tests__/filterItemRadio.spec.js +134 -0
- package/lib/components/FilterModal/FilterList/filterItemRadio.js +76 -0
- package/lib/components/FilterModal/FilterList/filterItemRadio.module.css +0 -0
- package/lib/components/FilterModal/FilterList/filterItemRadioGroup.js +86 -0
- package/lib/components/FilterModal/FilterList/filterList.js +65 -41
- package/lib/components/FilterModal/FilterList/filterList.module.css +8 -10
- package/lib/components/FilterModal/__tests__/filterModal.spec.js +58 -3
- package/lib/components/FilterModal/filterBlock.js +4 -0
- package/lib/components/FilterModal/filterBlock.module.css +15 -12
- package/lib/components/FilterModal/filterFooter.module.css +8 -8
- package/lib/components/FilterModal/filterModal.js +4 -2
- package/lib/components/FilterModal/filterModal.module.css +49 -28
- package/lib/components/FilterModal/filterSearch.module.css +1 -1
- package/lib/components/FilterModalOpenButton/filterModalOpenButton.module.css +3 -6
- package/lib/components/FilterSidebar/__tests__/filterSidebar.spec.js +9 -2
- package/lib/components/FilterSidebar/filterSidebar.js +4 -1
- package/lib/components/FilterSidebar/filterSidebar.module.css +33 -25
- package/lib/components/Footer/footer.module.css +89 -109
- package/lib/components/ForgotPassword/ForgotPasswordForm/forgotPasswordForm.module.css +11 -11
- package/lib/components/ForgotPassword/FormSubmissionSuccessful/formSubmissionSuccessful.module.css +7 -7
- package/lib/components/ForgotPassword/forgotPassword.module.css +9 -8
- package/lib/components/ForgotPasswordPage/forgotPasswordPage.module.css +13 -12
- package/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap +2 -2
- package/lib/components/Gallery/__tests__/__snapshots__/item.spec.js.snap +1 -1
- package/lib/components/Gallery/__tests__/gallery.spec.js +2 -2
- package/lib/components/Gallery/__tests__/item.spec.js +1 -1
- package/lib/components/Gallery/addToCartButton.module.css +15 -25
- package/lib/components/Gallery/gallery.module.css +7 -7
- package/lib/components/Gallery/item.js +4 -4
- package/lib/components/Gallery/item.module.css +31 -27
- package/lib/components/Header/accountTrigger.module.css +9 -14
- package/lib/components/Header/cartTrigger.module.css +30 -37
- package/lib/components/Header/currencySwitcher.module.css +67 -50
- package/lib/components/Header/header.js +5 -1
- package/lib/components/Header/header.module.css +26 -36
- package/lib/components/Header/navTrigger.module.css +4 -7
- package/lib/components/Header/onlineIndicator.module.css +11 -9
- package/lib/components/Header/searchTrigger.module.css +8 -13
- package/lib/components/Header/storeSwitcher.module.css +61 -52
- package/lib/components/Header/switcherItem.module.css +12 -11
- package/lib/components/HomePage/homePage.module.css +9 -8
- package/lib/components/Icon/icon.module.css +9 -8
- package/lib/components/Image/__stories__/image.module.css +4 -4
- package/lib/components/Image/image.module.css +16 -9
- package/lib/components/LegacyMiniCart/body.module.css +2 -2
- package/lib/components/LegacyMiniCart/cartOptions.module.css +29 -23
- package/lib/components/LegacyMiniCart/emptyMiniCartBody.module.css +9 -9
- package/lib/components/LegacyMiniCart/footer.module.css +10 -6
- package/lib/components/LegacyMiniCart/header.module.css +20 -19
- package/lib/components/LegacyMiniCart/kebab.module.css +19 -28
- package/lib/components/LegacyMiniCart/mask.module.css +2 -1
- package/lib/components/LegacyMiniCart/miniCart.js +3 -0
- package/lib/components/LegacyMiniCart/miniCart.module.css +22 -15
- package/lib/components/LegacyMiniCart/product.module.css +36 -32
- package/lib/components/LegacyMiniCart/productList.module.css +6 -4
- package/lib/components/LegacyMiniCart/productOptions.module.css +9 -9
- package/lib/components/LegacyMiniCart/section.js +2 -0
- package/lib/components/LegacyMiniCart/section.module.css +28 -16
- package/lib/components/LegacyMiniCart/totalsSummary.module.css +11 -10
- package/lib/components/LinkButton/linkButton.module.css +8 -9
- package/lib/components/LoadingIndicator/indicator.module.css +20 -18
- package/lib/components/LoadingIndicator/spinner.module.css +1 -10
- package/lib/components/Main/main.module.css +7 -6
- package/lib/components/Mask/mask.module.css +19 -14
- package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenu.spec.js.snap +1 -1
- package/lib/components/MegaMenu/__tests__/__snapshots__/Submenu.spec.js.snap +1 -1
- package/lib/components/MegaMenu/megaMenuItem.module.css +9 -7
- package/lib/components/MegaMenu/submenu.js +1 -1
- package/lib/components/MegaMenu/submenu.module.css +22 -16
- package/lib/components/MegaMenu/submenuColumn.module.css +11 -9
- package/lib/components/MiniCart/ProductList/item.module.css +16 -13
- package/lib/components/MiniCart/ProductList/productList.module.css +2 -2
- package/lib/components/MiniCart/miniCart.module.css +81 -67
- package/lib/components/MyAccount/ResetPassword/resetPassword.module.css +25 -26
- package/lib/components/MyAccount/accountLink.module.css +17 -15
- package/lib/components/MyAccount/myAccount.module.css +3 -3
- package/lib/components/Navigation/navHeader.module.css +7 -6
- package/lib/components/Navigation/navigation.module.css +82 -68
- package/lib/components/Newsletter/newsletter.module.css +59 -64
- package/lib/components/OrderHistoryPage/OrderDetails/billingInformation.module.css +4 -4
- package/lib/components/OrderHistoryPage/OrderDetails/item.module.css +21 -25
- package/lib/components/OrderHistoryPage/OrderDetails/items.module.css +8 -12
- package/lib/components/OrderHistoryPage/OrderDetails/orderDetails.module.css +20 -26
- package/lib/components/OrderHistoryPage/OrderDetails/orderTotal.module.css +30 -31
- package/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.module.css +4 -4
- package/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.module.css +4 -4
- package/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.module.css +7 -6
- package/lib/components/OrderHistoryPage/collapsedImageGallery.module.css +10 -9
- package/lib/components/OrderHistoryPage/orderHistoryPage.module.css +37 -41
- package/lib/components/OrderHistoryPage/orderProgressBar.module.css +5 -5
- package/lib/components/OrderHistoryPage/orderRow.module.css +113 -78
- package/lib/components/PageLoadingIndicator/pageLoadingIndicator.module.css +18 -17
- package/lib/components/Pagination/pagination.module.css +11 -8
- package/lib/components/Pagination/tile.module.css +11 -8
- package/lib/components/Password/password.module.css +13 -11
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/__tests__/__snapshots__/multiSelect.spec.js.snap +10 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.js +7 -2
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.module.css +11 -2
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.module.css +1 -1
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.module.css +1 -1
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.js +10 -4
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/attributeType.js +6 -0
- package/lib/components/ProductFullDetail/CustomAttributes/__tests__/__snapshots__/customAttributes.spec.js.snap +0 -3
- package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.js +6 -10
- package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.module.css +0 -5
- package/lib/components/ProductFullDetail/__tests__/__snapshots__/productFullDetail.spec.js.snap +312 -117
- package/lib/components/ProductFullDetail/__tests__/productFullDetail.spec.js +1 -3
- package/lib/components/ProductFullDetail/productFullDetail.js +77 -11
- package/lib/components/ProductFullDetail/productFullDetail.module.css +85 -77
- package/lib/components/ProductImageCarousel/carousel.module.css +50 -52
- package/lib/components/ProductImageCarousel/thumbnail.module.css +25 -22
- package/lib/components/ProductOptions/option.module.css +17 -13
- package/lib/components/ProductOptions/swatch.module.css +10 -4
- package/lib/components/ProductOptions/tile.module.css +14 -7
- package/lib/components/ProductOptions/tileList.module.css +3 -3
- package/lib/components/ProductQuantity/quantity.js +3 -0
- package/lib/components/ProductQuantity/quantity.module.css +2 -2
- package/lib/components/ProductSort/productSort.module.css +44 -45
- package/lib/components/ProductSort/productSort.shimmer.module.css +1 -5
- package/lib/components/ProductSort/sortItem.module.css +14 -13
- package/lib/components/QuantityStepper/index.js +1 -0
- package/lib/components/QuantityStepper/quantityStepper.js +94 -0
- package/lib/components/QuantityStepper/quantityStepper.module.css +80 -0
- package/lib/components/RadioGroup/__tests__/__snapshots__/radioGroup.spec.js.snap +16 -0
- package/lib/components/RadioGroup/radio.js +14 -2
- package/lib/components/RadioGroup/radio.module.css +41 -37
- package/lib/components/RadioGroup/radioGroup.module.css +10 -14
- package/lib/components/RichContent/plainHtmlRenderer.js +2 -1
- package/lib/components/RichContent/richContent.module.css +13 -1
- package/lib/components/RichText/richText.module.css +7 -3
- package/lib/components/SavedPaymentsPage/creditCard.module.css +49 -37
- package/lib/components/SavedPaymentsPage/savedPaymentsPage.module.css +35 -40
- package/lib/components/ScrollAnchor/scrollAnchor.module.css +4 -2
- package/lib/components/SearchBar/__tests__/suggestedProduct.spec.js +8 -0
- package/lib/components/SearchBar/autocomplete.js +8 -0
- package/lib/components/SearchBar/autocomplete.module.css +39 -37
- package/lib/components/SearchBar/searchBar.module.css +30 -22
- package/lib/components/SearchBar/suggestedCategories.module.css +7 -4
- package/lib/components/SearchBar/suggestedProduct.js +15 -5
- package/lib/components/SearchBar/suggestedProduct.module.css +12 -12
- package/lib/components/SearchBar/suggestedProducts.module.css +7 -4
- package/lib/components/SearchBar/suggestions.module.css +4 -4
- package/lib/components/SearchPage/searchPage.module.css +42 -49
- package/lib/components/Select/select.module.css +9 -8
- package/lib/components/Shimmer/shimmer.module.css +31 -17
- package/lib/components/SignIn/signIn.module.css +40 -33
- package/lib/components/SignInPage/signInPage.module.css +13 -12
- package/lib/components/SortedByContainer/sortedByContainer.module.css +7 -11
- package/lib/components/StockStatusMessage/stockStatusMessage.module.css +10 -6
- package/lib/components/TextArea/textArea.module.css +16 -10
- package/lib/components/TextInput/textInput.module.css +11 -2
- package/lib/components/ToastContainer/toast.module.css +51 -42
- package/lib/components/ToastContainer/toastContainer.module.css +10 -22
- package/lib/components/Wishlist/AddToListButton/addToListButton.module.css +6 -5
- package/lib/components/Wishlist/WishlistDialog/CreateWishlistForm/createWishlistForm.module.css +4 -4
- package/lib/components/Wishlist/WishlistDialog/WishlistLineItem/wishlistLineItem.module.css +7 -6
- package/lib/components/Wishlist/WishlistDialog/wishlistDialog.module.css +14 -9
- package/lib/components/WishlistPage/actionMenu.js +2 -2
- package/lib/components/WishlistPage/createWishlist.module.css +31 -26
- package/lib/components/WishlistPage/wishlist.module.css +54 -49
- package/lib/components/WishlistPage/wishlistConfirmRemoveProductDialog.module.css +7 -7
- package/lib/components/WishlistPage/wishlistEditFavoritesListDialog.module.css +4 -4
- package/lib/components/WishlistPage/wishlistItem.module.css +36 -37
- package/lib/components/WishlistPage/wishlistItems.module.css +5 -7
- package/lib/components/WishlistPage/wishlistMoreActionsDialog.module.css +11 -9
- package/lib/components/WishlistPage/wishlistPage.module.css +24 -24
- package/lib/components/clickable.module.css +7 -7
- package/lib/index.module.css +40 -11
- package/lib/targets/__tests__/venia-ui-targets.spec.js +27 -2
- package/lib/tokens.module.css +62 -57
- package/package.json +5 -5
- package/lib/components/CartPage/ProductListing/quantity.module.css +0 -76
|
@@ -87,7 +87,7 @@ exports[`renders if \`items\` is an array of objects 1`] = `
|
|
|
87
87
|
"name": "Test Product 1",
|
|
88
88
|
"price_range": Object {
|
|
89
89
|
"maximum_price": Object {
|
|
90
|
-
"
|
|
90
|
+
"final_price": Object {
|
|
91
91
|
"currency": "USD",
|
|
92
92
|
"value": 100,
|
|
93
93
|
},
|
|
@@ -183,7 +183,7 @@ exports[`renders if \`items\` is an array of objects 1`] = `
|
|
|
183
183
|
"name": "Test Product 2",
|
|
184
184
|
"price_range": Object {
|
|
185
185
|
"maximum_price": Object {
|
|
186
|
-
"
|
|
186
|
+
"final_price": Object {
|
|
187
187
|
"currency": "USD",
|
|
188
188
|
"value": 100,
|
|
189
189
|
},
|
|
@@ -39,7 +39,7 @@ const items = [
|
|
|
39
39
|
__typename: 'SimpleProduct',
|
|
40
40
|
price_range: {
|
|
41
41
|
maximum_price: {
|
|
42
|
-
|
|
42
|
+
final_price: {
|
|
43
43
|
value: 100,
|
|
44
44
|
currency: 'USD'
|
|
45
45
|
}
|
|
@@ -59,7 +59,7 @@ const items = [
|
|
|
59
59
|
__typename: 'SimpleProduct',
|
|
60
60
|
price_range: {
|
|
61
61
|
maximum_price: {
|
|
62
|
-
|
|
62
|
+
final_price: {
|
|
63
63
|
value: 100,
|
|
64
64
|
currency: 'USD'
|
|
65
65
|
}
|
|
@@ -1,36 +1,26 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
composes: root_highPriority from '../Button/button.module.css';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
composes: min-w-[6.125rem] from global;
|
|
5
|
+
composes: -ml-2xs from global;
|
|
6
|
+
composes: px-2xs from global;
|
|
7
|
+
composes: py-0 from global;
|
|
8
|
+
composes: self-center from global;
|
|
4
9
|
min-height: 2rem;
|
|
5
|
-
padding: 0 0.5rem;
|
|
6
|
-
align-self: center;
|
|
7
|
-
}
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
stroke: #fff;
|
|
11
|
+
composes: sm_min-w-[8rem] from global;
|
|
12
|
+
/* composes: md_min-w-0 from global; */
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
.
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
.icon {
|
|
16
|
+
composes: inline from global;
|
|
17
|
+
composes: stroke-white from global;
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
.root {
|
|
20
|
-
min-width: 8rem;
|
|
21
|
-
}
|
|
19
|
+
composes: xs_hidden from global;
|
|
22
20
|
}
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
min-width: 6.125rem;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.icon {
|
|
30
|
-
display: inline;
|
|
31
|
-
}
|
|
22
|
+
.text {
|
|
23
|
+
composes: hidden from global;
|
|
32
24
|
|
|
33
|
-
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
25
|
+
composes: xs_inline from global;
|
|
36
26
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
|
|
2
|
+
composes: grid from global;
|
|
3
|
+
composes: grid-cols-1 from global;
|
|
4
|
+
composes: leading-none from global;
|
|
3
5
|
grid-template-areas:
|
|
4
6
|
'actions'
|
|
5
7
|
'items';
|
|
6
|
-
grid-template-columns: 1fr;
|
|
7
|
-
line-height: 1;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.items {
|
|
11
|
-
|
|
11
|
+
composes: gap-xs from global;
|
|
12
|
+
composes: grid from global;
|
|
13
|
+
composes: mb-3 from global;
|
|
12
14
|
grid-area: items;
|
|
13
|
-
grid-gap: 1rem;
|
|
14
15
|
grid-template-columns: repeat(3, 1fr);
|
|
15
|
-
margin-bottom: 10px;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
@media (max-width:
|
|
18
|
+
@media (max-width: 639px) {
|
|
19
19
|
.items {
|
|
20
20
|
grid-template-columns: repeat(2, 1fr);
|
|
21
21
|
}
|
|
@@ -112,9 +112,9 @@ const GalleryItem = props => {
|
|
|
112
112
|
</Link>
|
|
113
113
|
<div data-cy="GalleryItem-price" className={classes.price}>
|
|
114
114
|
<Price
|
|
115
|
-
value={price_range.maximum_price.
|
|
115
|
+
value={price_range.maximum_price.final_price.value}
|
|
116
116
|
currencyCode={
|
|
117
|
-
price_range.maximum_price.
|
|
117
|
+
price_range.maximum_price.final_price.currency
|
|
118
118
|
}
|
|
119
119
|
/>
|
|
120
120
|
</div>
|
|
@@ -152,7 +152,7 @@ GalleryItem.propTypes = {
|
|
|
152
152
|
sku: string.isRequired,
|
|
153
153
|
price_range: shape({
|
|
154
154
|
maximum_price: shape({
|
|
155
|
-
|
|
155
|
+
final_price: shape({
|
|
156
156
|
value: number.isRequired,
|
|
157
157
|
currency: string.isRequired
|
|
158
158
|
}).isRequired
|
|
@@ -161,7 +161,7 @@ GalleryItem.propTypes = {
|
|
|
161
161
|
}),
|
|
162
162
|
storeConfig: shape({
|
|
163
163
|
magento_wishlist_general_is_enabled: string.isRequired,
|
|
164
|
-
product_url_suffix: string
|
|
164
|
+
product_url_suffix: string
|
|
165
165
|
})
|
|
166
166
|
};
|
|
167
167
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
composes: content-start from global;
|
|
3
|
+
composes: grid from global;
|
|
4
|
+
composes: gap-y-2xs from global;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.images {
|
|
8
|
-
|
|
8
|
+
composes: grid from global;
|
|
9
9
|
grid-template-areas: 'main';
|
|
10
10
|
position: relative;
|
|
11
11
|
}
|
|
@@ -15,59 +15,63 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.image {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
object-
|
|
18
|
+
composes: block from global;
|
|
19
|
+
composes: h-full from global;
|
|
20
|
+
composes: object-contain from global;
|
|
21
|
+
composes: w-full from global;
|
|
21
22
|
transition: opacity 512ms ease-out;
|
|
22
|
-
width: 100%;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.imageLoaded {
|
|
26
26
|
composes: loaded from '../Image/image.module.css';
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
composes: opacity-100 from global;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.imageNotLoaded {
|
|
31
32
|
composes: notLoaded from '../Image/image.module.css';
|
|
32
|
-
|
|
33
|
+
|
|
34
|
+
composes: opacity-0 from global;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
.imagePlaceholder {
|
|
36
38
|
composes: image;
|
|
37
|
-
|
|
39
|
+
|
|
40
|
+
composes: bg-subtle from global;
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
.actionsContainer {
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
composes: gap-x-xs from global;
|
|
45
|
+
composes: grid from global;
|
|
46
|
+
composes: pl-2xs from global;
|
|
43
47
|
grid-template-columns: auto auto;
|
|
44
|
-
padding-left: 0.5rem;
|
|
45
48
|
}
|
|
46
49
|
|
|
50
|
+
/* TODO @TW: cannot compose */
|
|
47
51
|
.actionsContainer:empty {
|
|
48
52
|
display: none;
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
.name {
|
|
52
|
-
font-
|
|
56
|
+
composes: font-semibold from global;
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
.name,
|
|
56
60
|
.price {
|
|
57
|
-
|
|
61
|
+
composes: text-colorDefault from global;
|
|
58
62
|
min-height: 1rem;
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
.unavailableContainer {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
66
|
+
composes: bg-subtle from global;
|
|
67
|
+
composes: gap-x-2xs from global;
|
|
68
|
+
composes: grid from global;
|
|
69
|
+
composes: grid-flow-col from global;
|
|
70
|
+
composes: italic from global;
|
|
71
|
+
composes: items-center from global;
|
|
72
|
+
composes: justify-start from global;
|
|
73
|
+
composes: p-3 from global;
|
|
74
|
+
composes: text-sm from global;
|
|
75
|
+
composes: text-subtle from global;
|
|
76
|
+
composes: w-full from global;
|
|
73
77
|
}
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
composes: hidden from global;
|
|
3
|
+
composes: items-center from global;
|
|
4
|
+
composes: h-lg from global;
|
|
5
|
+
|
|
6
|
+
composes: sm_grid from global;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
.root_open {
|
|
9
10
|
composes: root;
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
composes: shadow-headerTrigger from global;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
.trigger {
|
|
15
16
|
composes: root from '../clickable.module.css';
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
min-
|
|
19
|
-
z-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@media (max-width: 640px) {
|
|
23
|
-
.root {
|
|
24
|
-
display: none;
|
|
25
|
-
}
|
|
18
|
+
composes: h-[3rem] from global;
|
|
19
|
+
composes: min-w-[6rem] from global;
|
|
20
|
+
composes: z-foreground from global;
|
|
26
21
|
}
|
|
@@ -1,55 +1,48 @@
|
|
|
1
1
|
.counter {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
composes: absolute from global;
|
|
3
|
+
composes: bg-brand-dark from global;
|
|
4
|
+
composes: font-semibold from global;
|
|
5
|
+
composes: leading-tight from global;
|
|
6
|
+
composes: left-sm from global;
|
|
7
|
+
composes: min-w-[1.25rem] from global;
|
|
8
|
+
composes: px-1 from global;
|
|
9
|
+
composes: py-0 from global;
|
|
10
|
+
composes: rounded-full from global;
|
|
11
|
+
composes: text-sm from global;
|
|
12
|
+
composes: text-white from global;
|
|
13
|
+
composes: top-1.5 from global;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.trigger {
|
|
17
17
|
composes: root from '../clickable.module.css';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
|
|
19
|
+
composes: content-center from global;
|
|
20
|
+
composes: flex from global;
|
|
21
|
+
composes: h-[3rem] from global;
|
|
22
|
+
composes: justify-center from global;
|
|
23
|
+
composes: min-w-[3rem] from global;
|
|
24
|
+
composes: relative from global;
|
|
25
|
+
composes: z-foreground from global;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.triggerContainer {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
composes: hidden from global;
|
|
30
|
+
composes: items-center from global;
|
|
31
|
+
composes: h-lg from global;
|
|
32
|
+
|
|
33
|
+
composes: lg_grid from global;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.triggerContainer_open {
|
|
35
37
|
composes: triggerContainer;
|
|
36
|
-
|
|
38
|
+
|
|
39
|
+
composes: shadow-headerTrigger from global;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
.link {
|
|
40
43
|
composes: trigger;
|
|
41
|
-
display: none;
|
|
42
|
-
}
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
@media (max-width: 960px) {
|
|
48
|
-
.triggerContainer {
|
|
49
|
-
display: none;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.link {
|
|
53
|
-
display: flex;
|
|
54
|
-
}
|
|
45
|
+
composes: flex from global;
|
|
46
|
+
|
|
47
|
+
composes: lg_hidden from global;
|
|
55
48
|
}
|
|
@@ -1,98 +1,115 @@
|
|
|
1
1
|
.root {
|
|
2
|
+
composes: grid from global;
|
|
3
|
+
composes: items-center from global;
|
|
4
|
+
composes: justify-items-start from global;
|
|
5
|
+
composes: max-w-site from global;
|
|
6
|
+
composes: mx-auto from global;
|
|
7
|
+
composes: my-0 from global;
|
|
2
8
|
composes: p-0 from global;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
margin: 0 auto;
|
|
7
|
-
max-width: var(--venia-global-maxWidth);
|
|
8
|
-
position: relative;
|
|
9
|
+
composes: relative from global;
|
|
10
|
+
|
|
11
|
+
composes: sm_justify-items-end from global;
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
.trigger {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
grid-
|
|
16
|
-
|
|
15
|
+
composes: gap-x-2xs from global;
|
|
16
|
+
composes: grid from global;
|
|
17
|
+
composes: grid-cols-autoFirst from global;
|
|
18
|
+
composes: grid-flow-col from global;
|
|
19
|
+
composes: items-center from global;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
.menu {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
composes: absolute from global;
|
|
24
|
+
composes: bg-white from global;
|
|
25
|
+
composes: border from global;
|
|
26
|
+
composes: border-solid from global;
|
|
27
|
+
composes: border-subtle from global;
|
|
28
|
+
composes: bottom-md from global;
|
|
29
|
+
composes: left-xs from global;
|
|
30
|
+
composes: max-h-[24rem] from global;
|
|
31
|
+
composes: opacity-0 from global;
|
|
32
|
+
composes: overflow-auto from global;
|
|
33
|
+
composes: right-auto from global;
|
|
34
|
+
composes: rounded from global;
|
|
35
|
+
composes: shadow-menu from global;
|
|
36
|
+
composes: top-auto from global;
|
|
37
|
+
composes: z-menu from global;
|
|
38
|
+
transform: translate3d(0, 8px, 0);
|
|
31
39
|
transition-duration: 192ms;
|
|
32
40
|
transition-timing-function: var(--venia-global-anim-out);
|
|
33
41
|
transition-property: opacity, transform, visibility;
|
|
42
|
+
|
|
43
|
+
/* TODO @TW: review (B6) */
|
|
44
|
+
/* composes: invisible from global; */
|
|
34
45
|
visibility: hidden;
|
|
35
|
-
|
|
46
|
+
|
|
47
|
+
composes: sm_bottom-auto from global;
|
|
48
|
+
composes: sm_left-auto from global;
|
|
49
|
+
composes: sm_right-xs from global;
|
|
50
|
+
composes: sm_top-md from global;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (min-width: 640px) {
|
|
54
|
+
.menu {
|
|
55
|
+
transform: translate3d(0, -8px, 0);
|
|
56
|
+
}
|
|
36
57
|
}
|
|
37
58
|
|
|
38
59
|
.menu_open {
|
|
39
60
|
composes: menu;
|
|
40
|
-
|
|
41
|
-
|
|
61
|
+
|
|
62
|
+
composes: opacity-100 from global;
|
|
63
|
+
composes: p-0 from global;
|
|
42
64
|
transform: translate3d(0, 4px, 0);
|
|
43
65
|
transition-duration: 224ms;
|
|
44
66
|
transition-timing-function: var(--venia-global-anim-in);
|
|
67
|
+
|
|
68
|
+
/* TODO @TW: review (B6) */
|
|
69
|
+
/* composes: visible from global; */
|
|
45
70
|
visibility: visible;
|
|
46
71
|
}
|
|
47
72
|
|
|
48
|
-
.menuItem
|
|
49
|
-
|
|
50
|
-
|
|
73
|
+
.menuItem {
|
|
74
|
+
composes: border-b from global;
|
|
75
|
+
composes: border-solid from global;
|
|
76
|
+
composes: border-subtle from global;
|
|
77
|
+
|
|
78
|
+
composes: hover_bg-subtle from global;
|
|
51
79
|
|
|
52
|
-
|
|
53
|
-
border-bottom: 1px solid rgb(var(--venia-global-color-gray-dark));
|
|
80
|
+
composes: last_border-none from global;
|
|
54
81
|
}
|
|
55
82
|
|
|
56
83
|
.symbol {
|
|
57
|
-
|
|
84
|
+
composes: mr-2xs from global;
|
|
58
85
|
}
|
|
59
86
|
|
|
87
|
+
/* TODO @TW: cannot compose */
|
|
60
88
|
.root:last-child:not(:only-child) {
|
|
61
89
|
padding-left: 0;
|
|
62
90
|
grid-auto-flow: column;
|
|
63
91
|
}
|
|
64
92
|
|
|
65
|
-
|
|
66
|
-
|
|
93
|
+
/* TODO @TW: cannot compose */
|
|
94
|
+
.root:last-child:not(:only-child)::before {
|
|
95
|
+
/* composes: border from global; */
|
|
96
|
+
/* composes: border-solid from global; */
|
|
97
|
+
/* composes: border-subtle from global; */
|
|
67
98
|
border-left: 1px solid rgb(var(--venia-global-color-border));
|
|
68
99
|
content: '';
|
|
69
100
|
height: 1em;
|
|
70
101
|
width: 1rem;
|
|
71
102
|
}
|
|
72
103
|
|
|
73
|
-
|
|
74
|
-
* Mobile-specific styles.
|
|
75
|
-
*/
|
|
76
|
-
@media (max-width: 640px) {
|
|
77
|
-
.root {
|
|
78
|
-
justify-items: start;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.menu {
|
|
82
|
-
bottom: 2.5rem;
|
|
83
|
-
left: 1rem;
|
|
84
|
-
right: auto;
|
|
85
|
-
top: auto;
|
|
86
|
-
transform: translate3d(0, 8px, 0);
|
|
87
|
-
}
|
|
88
|
-
|
|
104
|
+
@media (max-width: 639px) {
|
|
89
105
|
.root:only-child {
|
|
90
106
|
grid-column: 2;
|
|
91
107
|
}
|
|
92
108
|
|
|
109
|
+
/* TODO @TW: cannot compose */
|
|
93
110
|
.root:last-child .menu {
|
|
94
|
-
left: auto;
|
|
95
111
|
right: 1rem;
|
|
112
|
+
left: auto;
|
|
96
113
|
}
|
|
97
114
|
|
|
98
115
|
.menu_open {
|
|
@@ -36,7 +36,10 @@ const Header = props => {
|
|
|
36
36
|
const searchBarFallback = (
|
|
37
37
|
<div className={classes.searchFallback} ref={searchRef}>
|
|
38
38
|
<div className={classes.input}>
|
|
39
|
-
<div className={classes.loader}
|
|
39
|
+
<div className={classes.loader}>
|
|
40
|
+
<div className={classes.loaderBefore} />
|
|
41
|
+
<div className={classes.loaderAfter} />
|
|
42
|
+
</div>
|
|
40
43
|
</div>
|
|
41
44
|
</div>
|
|
42
45
|
);
|
|
@@ -68,6 +71,7 @@ const Header = props => {
|
|
|
68
71
|
<Link
|
|
69
72
|
to={resourceUrl('/')}
|
|
70
73
|
className={classes.logoContainer}
|
|
74
|
+
data-cy="Header-logoContainer"
|
|
71
75
|
>
|
|
72
76
|
<Logo classes={{ logo: classes.logo }} />
|
|
73
77
|
</Link>
|