@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
|
@@ -1,14 +1,19 @@
|
|
|
1
|
+
/* TODO @TW: review. This relies on custom prop to set color from JSX "style" prop. */
|
|
1
2
|
.root {
|
|
3
|
+
--venia-swatch-bg: var(--venia-global-color-gray-100);
|
|
4
|
+
|
|
2
5
|
composes: root from './tile.module.css';
|
|
6
|
+
|
|
7
|
+
composes: border-shaded-10 from global;
|
|
8
|
+
composes: text-white from global;
|
|
9
|
+
composes: w-[3rem] from global;
|
|
3
10
|
background: var(--venia-swatch-bg);
|
|
4
|
-
border-color: rgba(0, 0, 0, 0.1);
|
|
5
|
-
color: white;
|
|
6
|
-
width: 3rem;
|
|
7
|
-
--venia-swatch-bg: var(--venia-global-color-gray);
|
|
8
11
|
}
|
|
9
12
|
|
|
13
|
+
/* TODO @TW: review. This relies on custom prop to set color from JSX "style" prop. */
|
|
10
14
|
.root_selected {
|
|
11
15
|
composes: root;
|
|
16
|
+
|
|
12
17
|
background: linear-gradient(-45deg, rgba(0, 0, 0, 0.2), transparent),
|
|
13
18
|
var(--venia-swatch-bg);
|
|
14
19
|
}
|
|
@@ -16,6 +21,7 @@
|
|
|
16
21
|
.root_focused {
|
|
17
22
|
composes: root;
|
|
18
23
|
}
|
|
24
|
+
|
|
19
25
|
.root_selected_focused {
|
|
20
26
|
composes: root_selected;
|
|
21
27
|
}
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
composes: root from '../clickable.module.css';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
|
|
4
|
+
composes: border from global;
|
|
5
|
+
composes: border-solid from global;
|
|
6
|
+
composes: border-strong from global;
|
|
7
|
+
composes: h-[3rem] from global;
|
|
8
|
+
composes: min-w-[3rem] from global;
|
|
9
|
+
composes: px-2xs from global;
|
|
10
|
+
composes: py-0 from global;
|
|
11
|
+
composes: rounded-sm from global;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
.root_selected {
|
|
11
15
|
composes: root;
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
|
|
17
|
+
composes: bg-gray-900 from global;
|
|
18
|
+
composes: text-white from global;
|
|
14
19
|
}
|
|
20
|
+
|
|
15
21
|
.root_focused {
|
|
16
22
|
composes: root;
|
|
17
23
|
}
|
|
24
|
+
|
|
18
25
|
.root_selected_focused {
|
|
19
26
|
composes: root_selected;
|
|
20
27
|
}
|
|
@@ -7,6 +7,9 @@ import Select from '../Select';
|
|
|
7
7
|
import mockData from './mockData';
|
|
8
8
|
import defaultClasses from './quantity.module.css';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
10
13
|
const Quantity = props => {
|
|
11
14
|
const { classes: propClasses, selectLabel, ...restProps } = props;
|
|
12
15
|
const { formatMessage } = useIntl();
|
|
@@ -1,76 +1,75 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
composes: relative from global;
|
|
3
|
+
composes: ml-2xs from global;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.menu {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
7
|
+
composes: absolute from global;
|
|
8
|
+
composes: bg-clip-padding from global;
|
|
9
|
+
composes: bg-white from global;
|
|
10
|
+
composes: border from global;
|
|
11
|
+
composes: border-solid from global;
|
|
12
|
+
composes: border-subtle from global;
|
|
13
|
+
composes: list-none from global;
|
|
14
|
+
composes: mb-0 from global;
|
|
15
|
+
composes: min-w-[10rem] from global;
|
|
16
|
+
composes: mt-0.5 from global;
|
|
17
|
+
composes: mx-0 from global;
|
|
18
|
+
composes: right-0 from global;
|
|
19
|
+
composes: rounded from global;
|
|
20
|
+
composes: shadow-menu from global;
|
|
21
|
+
composes: text-colorDefault from global;
|
|
22
|
+
composes: text-left from global;
|
|
23
|
+
composes: top-[110%] from global;
|
|
24
|
+
composes: z-menu from global;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
.menuItem {
|
|
25
|
-
border-
|
|
26
|
-
|
|
28
|
+
composes: border-b from global;
|
|
29
|
+
composes: border-solid from global;
|
|
30
|
+
composes: border-subtle from global;
|
|
27
31
|
|
|
28
|
-
|
|
29
|
-
border-bottom: none;
|
|
30
|
-
}
|
|
32
|
+
composes: hover_bg-subtle from global;
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
background-color: rgb(var(--venia-global-color-gray));
|
|
34
|
+
composes: last_border-b-0 from global;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
.sortButton {
|
|
38
|
+
/* TODO @TW: review (C2). This is fragile to extend. */
|
|
37
39
|
composes: root_lowPriority from '../../components/Button/button.module.css';
|
|
38
|
-
|
|
40
|
+
|
|
41
|
+
composes: min-w-[6.26rem] from global;
|
|
42
|
+
|
|
43
|
+
composes: lg_border-2 from global;
|
|
44
|
+
composes: lg_border-gray-500 from global;
|
|
45
|
+
composes: lg_font-normal from global;
|
|
46
|
+
composes: lg_normal-case from global;
|
|
47
|
+
composes: lg_rounded-md from global;
|
|
39
48
|
}
|
|
40
49
|
|
|
41
50
|
.desktopText {
|
|
42
|
-
|
|
51
|
+
composes: hidden from global;
|
|
52
|
+
|
|
53
|
+
composes: lg_inline-flex from global;
|
|
43
54
|
}
|
|
44
55
|
|
|
45
56
|
.sortText {
|
|
46
|
-
|
|
47
|
-
|
|
57
|
+
composes: leading-normal from global;
|
|
58
|
+
composes: text-colorDefault from global;
|
|
48
59
|
}
|
|
49
60
|
|
|
50
61
|
.desktopIconWrapper {
|
|
51
62
|
composes: root from '../Icon/icon.module.css';
|
|
63
|
+
|
|
52
64
|
transform: translateX(10px);
|
|
53
65
|
}
|
|
54
66
|
|
|
55
67
|
.desktopIcon {
|
|
56
68
|
composes: icon from '../Icon/icon.module.css';
|
|
57
|
-
stroke: rgb(var(--venia-global-color-gray-500));
|
|
58
|
-
}
|
|
59
69
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
border-width: 2px;
|
|
63
|
-
border-color: rgb(var(--venia-global-color-gray-500));
|
|
64
|
-
border-radius: 6px;
|
|
65
|
-
font-weight: var(--venia-global-fontWeight-normal);
|
|
66
|
-
text-transform: none;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.mobileText {
|
|
70
|
-
display: none;
|
|
71
|
-
}
|
|
70
|
+
composes: stroke-gray-500 from global;
|
|
71
|
+
}
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
73
|
+
.mobileText {
|
|
74
|
+
composes: lg_hidden from global;
|
|
76
75
|
}
|
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
.sortButtonShimmer {
|
|
6
6
|
composes: root_button from '../Shimmer/shimmer.module.css';
|
|
7
7
|
composes: sortButton from './productSort.module.css';
|
|
8
|
-
}
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
.sortButtonShimmer {
|
|
12
|
-
min-width: 12rem;
|
|
13
|
-
}
|
|
9
|
+
composes: lg_min-w-[12rem] from global;
|
|
14
10
|
}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
composes: flex from global;
|
|
3
|
+
composes: items-center from global;
|
|
4
|
+
composes: w-full from global;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.content {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
grid-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
composes: items-center from global;
|
|
9
|
+
composes: grid from global;
|
|
10
|
+
composes: grid-cols-[1fr] from global;
|
|
11
|
+
composes: grid-flow-col from global;
|
|
12
|
+
composes: gap-3 from global;
|
|
13
|
+
composes: h-[2.5rem] from global;
|
|
14
|
+
composes: px-3 from global;
|
|
15
|
+
composes: py-0 from global;
|
|
16
|
+
composes: w-full from global;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.text {
|
|
19
|
-
text-
|
|
20
|
-
|
|
20
|
+
composes: text-left from global;
|
|
21
|
+
composes: whitespace-nowrap from global;
|
|
21
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './quantityStepper';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import React, { Fragment } from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
|
+
import { Minus as MinusIcon, Plus as PlusIcon } from 'react-feather';
|
|
4
|
+
import { useQuantityStepper } from '@magento/peregrine/lib/talons/QuantityStepper/useQuantityStepper';
|
|
5
|
+
|
|
6
|
+
import { useStyle } from '../../classify';
|
|
7
|
+
import Icon from '../Icon';
|
|
8
|
+
import TextInput from '../TextInput';
|
|
9
|
+
import { Message } from '../Field';
|
|
10
|
+
import defaultClasses from './quantityStepper.module.css';
|
|
11
|
+
|
|
12
|
+
const QuantityStepper = props => {
|
|
13
|
+
const { initialValue, itemId, label, min, onChange, message } = props;
|
|
14
|
+
const { formatMessage } = useIntl();
|
|
15
|
+
const classes = useStyle(defaultClasses, props.classes);
|
|
16
|
+
const iconClasses = { root: classes.icon };
|
|
17
|
+
|
|
18
|
+
const talonProps = useQuantityStepper({
|
|
19
|
+
initialValue,
|
|
20
|
+
min,
|
|
21
|
+
onChange
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const {
|
|
25
|
+
isDecrementDisabled,
|
|
26
|
+
isIncrementDisabled,
|
|
27
|
+
handleBlur,
|
|
28
|
+
handleDecrement,
|
|
29
|
+
handleIncrement,
|
|
30
|
+
maskInput
|
|
31
|
+
} = talonProps;
|
|
32
|
+
|
|
33
|
+
const errorMessage = message ? <Message>{message}</Message> : null;
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<Fragment>
|
|
37
|
+
<div className={classes.root}>
|
|
38
|
+
<label className={classes.label} htmlFor={itemId}>
|
|
39
|
+
{label}
|
|
40
|
+
</label>
|
|
41
|
+
<button
|
|
42
|
+
aria-label={formatMessage({
|
|
43
|
+
id: 'quantity.buttonDecrement',
|
|
44
|
+
defaultMessage: 'Decrease Quantity'
|
|
45
|
+
})}
|
|
46
|
+
className={classes.button_decrement}
|
|
47
|
+
disabled={isDecrementDisabled}
|
|
48
|
+
onClick={handleDecrement}
|
|
49
|
+
type="button"
|
|
50
|
+
data-cy="Quantity-decrementButton"
|
|
51
|
+
>
|
|
52
|
+
<Icon classes={iconClasses} src={MinusIcon} size={22} />
|
|
53
|
+
</button>
|
|
54
|
+
<TextInput
|
|
55
|
+
aria-label={formatMessage({
|
|
56
|
+
id: 'quantity.input',
|
|
57
|
+
defaultMessage: 'Item Quantity'
|
|
58
|
+
})}
|
|
59
|
+
data-cy="QuantityStepper-input"
|
|
60
|
+
classes={{ input: classes.input }}
|
|
61
|
+
field="quantity"
|
|
62
|
+
id={itemId}
|
|
63
|
+
inputMode="numeric"
|
|
64
|
+
mask={maskInput}
|
|
65
|
+
min={min}
|
|
66
|
+
onBlur={handleBlur}
|
|
67
|
+
pattern="[0-9]*"
|
|
68
|
+
/>
|
|
69
|
+
<button
|
|
70
|
+
aria-label={formatMessage({
|
|
71
|
+
id: 'quantity.buttonIncrement',
|
|
72
|
+
defaultMessage: 'Increase Quantity'
|
|
73
|
+
})}
|
|
74
|
+
className={classes.button_increment}
|
|
75
|
+
disabled={isIncrementDisabled}
|
|
76
|
+
onClick={handleIncrement}
|
|
77
|
+
type="button"
|
|
78
|
+
data-cy="Quantity-incrementButton"
|
|
79
|
+
>
|
|
80
|
+
<Icon classes={iconClasses} src={PlusIcon} size={20} />
|
|
81
|
+
</button>
|
|
82
|
+
</div>
|
|
83
|
+
{errorMessage}
|
|
84
|
+
</Fragment>
|
|
85
|
+
);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
QuantityStepper.defaultProps = {
|
|
89
|
+
min: 0,
|
|
90
|
+
initialValue: 1,
|
|
91
|
+
onChange: () => {}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export default QuantityStepper;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
--stroke: var(--venia-global-color-gray-600);
|
|
3
|
+
|
|
4
|
+
composes: gap-x-2xs from global;
|
|
5
|
+
composes: grid from global;
|
|
6
|
+
composes: items-center from global;
|
|
7
|
+
composes: justify-items-center from global;
|
|
8
|
+
composes: text-center from global;
|
|
9
|
+
grid-template-columns: 1fr 4rem 1fr;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.wrap {
|
|
13
|
+
composes: flex from global;
|
|
14
|
+
composes: items-center from global;
|
|
15
|
+
composes: justify-center from global;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* TODO @TW: cannot compose */
|
|
19
|
+
.label:not(:focus):not(:active) {
|
|
20
|
+
/* composes: sr-only from global; */
|
|
21
|
+
position: absolute;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
width: 1px;
|
|
24
|
+
height: 1px;
|
|
25
|
+
clip: rect(0 0 0 0);
|
|
26
|
+
clip-path: inset(100%);
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.button {
|
|
31
|
+
composes: bg-white from global;
|
|
32
|
+
composes: border-2 from global;
|
|
33
|
+
composes: border-solid from global;
|
|
34
|
+
composes: border-button from global;
|
|
35
|
+
composes: h-[2rem] from global;
|
|
36
|
+
composes: inline-flex from global;
|
|
37
|
+
composes: items-center from global;
|
|
38
|
+
composes: justify-center from global;
|
|
39
|
+
composes: rounded-full from global;
|
|
40
|
+
composes: w-[2rem] from global;
|
|
41
|
+
stroke: rgb(var(--stroke));
|
|
42
|
+
|
|
43
|
+
composes: disabled_cursor-not-allowed from global;
|
|
44
|
+
|
|
45
|
+
composes: focus_outline-none from global;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.button:hover {
|
|
49
|
+
--stroke: rgb(var(--venia-global-color-gray-900));
|
|
50
|
+
border-color: rgb(var(--stroke));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* TODO @TW: cannot compose */
|
|
54
|
+
.button:disabled,
|
|
55
|
+
.button:disabled:hover {
|
|
56
|
+
--stroke: rgb(var(--venia-global-color-gray-400));
|
|
57
|
+
/* composes: border-subtle from global; */
|
|
58
|
+
border-color: rgb(var(--venia-global-color-gray-400));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.button_decrement {
|
|
62
|
+
composes: button;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.button_increment {
|
|
66
|
+
composes: button;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.icon {
|
|
70
|
+
composes: items-center from global;
|
|
71
|
+
composes: inline-flex from global;
|
|
72
|
+
composes: justify-center from global;
|
|
73
|
+
touch-action: manipulation;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.input {
|
|
77
|
+
composes: input from '../TextInput/textInput.module.css';
|
|
78
|
+
|
|
79
|
+
composes: text-center from global;
|
|
80
|
+
}
|
|
@@ -8,6 +8,7 @@ exports[`disables all child radios when disable prop is truthy 1`] = `
|
|
|
8
8
|
>
|
|
9
9
|
<div>
|
|
10
10
|
<label
|
|
11
|
+
aria-label=""
|
|
11
12
|
htmlFor="foo--1"
|
|
12
13
|
>
|
|
13
14
|
<mock-Radio
|
|
@@ -39,6 +40,7 @@ exports[`disables all child radios when disable prop is truthy 1`] = `
|
|
|
39
40
|
</span>
|
|
40
41
|
</label>
|
|
41
42
|
<label
|
|
43
|
+
aria-label=""
|
|
42
44
|
htmlFor="foo--2"
|
|
43
45
|
>
|
|
44
46
|
<mock-Radio
|
|
@@ -70,6 +72,7 @@ exports[`disables all child radios when disable prop is truthy 1`] = `
|
|
|
70
72
|
</span>
|
|
71
73
|
</label>
|
|
72
74
|
<label
|
|
75
|
+
aria-label=""
|
|
73
76
|
htmlFor="foo--3"
|
|
74
77
|
>
|
|
75
78
|
<mock-Radio
|
|
@@ -101,6 +104,7 @@ exports[`disables all child radios when disable prop is truthy 1`] = `
|
|
|
101
104
|
</span>
|
|
102
105
|
</label>
|
|
103
106
|
<label
|
|
107
|
+
aria-label=""
|
|
104
108
|
htmlFor="foo--4"
|
|
105
109
|
>
|
|
106
110
|
<mock-Radio
|
|
@@ -132,6 +136,7 @@ exports[`disables all child radios when disable prop is truthy 1`] = `
|
|
|
132
136
|
</span>
|
|
133
137
|
</label>
|
|
134
138
|
<label
|
|
139
|
+
aria-label=""
|
|
135
140
|
htmlFor="foo--5"
|
|
136
141
|
>
|
|
137
142
|
<mock-Radio
|
|
@@ -163,6 +168,7 @@ exports[`disables all child radios when disable prop is truthy 1`] = `
|
|
|
163
168
|
</span>
|
|
164
169
|
</label>
|
|
165
170
|
<label
|
|
171
|
+
aria-label=""
|
|
166
172
|
htmlFor="foo--6"
|
|
167
173
|
>
|
|
168
174
|
<mock-Radio
|
|
@@ -194,6 +200,7 @@ exports[`disables all child radios when disable prop is truthy 1`] = `
|
|
|
194
200
|
</span>
|
|
195
201
|
</label>
|
|
196
202
|
<label
|
|
203
|
+
aria-label=""
|
|
197
204
|
htmlFor="foo--7"
|
|
198
205
|
>
|
|
199
206
|
<mock-Radio
|
|
@@ -225,6 +232,7 @@ exports[`disables all child radios when disable prop is truthy 1`] = `
|
|
|
225
232
|
</span>
|
|
226
233
|
</label>
|
|
227
234
|
<label
|
|
235
|
+
aria-label=""
|
|
228
236
|
htmlFor="foo--whatever"
|
|
229
237
|
>
|
|
230
238
|
<mock-Radio
|
|
@@ -268,6 +276,7 @@ exports[`renders as expected 1`] = `
|
|
|
268
276
|
>
|
|
269
277
|
<div>
|
|
270
278
|
<label
|
|
279
|
+
aria-label=""
|
|
271
280
|
htmlFor="foo--1"
|
|
272
281
|
>
|
|
273
282
|
<mock-Radio
|
|
@@ -298,6 +307,7 @@ exports[`renders as expected 1`] = `
|
|
|
298
307
|
</span>
|
|
299
308
|
</label>
|
|
300
309
|
<label
|
|
310
|
+
aria-label=""
|
|
301
311
|
htmlFor="foo--2"
|
|
302
312
|
>
|
|
303
313
|
<mock-Radio
|
|
@@ -328,6 +338,7 @@ exports[`renders as expected 1`] = `
|
|
|
328
338
|
</span>
|
|
329
339
|
</label>
|
|
330
340
|
<label
|
|
341
|
+
aria-label=""
|
|
331
342
|
htmlFor="foo--3"
|
|
332
343
|
>
|
|
333
344
|
<mock-Radio
|
|
@@ -358,6 +369,7 @@ exports[`renders as expected 1`] = `
|
|
|
358
369
|
</span>
|
|
359
370
|
</label>
|
|
360
371
|
<label
|
|
372
|
+
aria-label=""
|
|
361
373
|
htmlFor="foo--4"
|
|
362
374
|
>
|
|
363
375
|
<mock-Radio
|
|
@@ -388,6 +400,7 @@ exports[`renders as expected 1`] = `
|
|
|
388
400
|
</span>
|
|
389
401
|
</label>
|
|
390
402
|
<label
|
|
403
|
+
aria-label=""
|
|
391
404
|
htmlFor="foo--5"
|
|
392
405
|
>
|
|
393
406
|
<mock-Radio
|
|
@@ -418,6 +431,7 @@ exports[`renders as expected 1`] = `
|
|
|
418
431
|
</span>
|
|
419
432
|
</label>
|
|
420
433
|
<label
|
|
434
|
+
aria-label=""
|
|
421
435
|
htmlFor="foo--6"
|
|
422
436
|
>
|
|
423
437
|
<mock-Radio
|
|
@@ -448,6 +462,7 @@ exports[`renders as expected 1`] = `
|
|
|
448
462
|
</span>
|
|
449
463
|
</label>
|
|
450
464
|
<label
|
|
465
|
+
aria-label=""
|
|
451
466
|
htmlFor="foo--7"
|
|
452
467
|
>
|
|
453
468
|
<mock-Radio
|
|
@@ -478,6 +493,7 @@ exports[`renders as expected 1`] = `
|
|
|
478
493
|
</span>
|
|
479
494
|
</label>
|
|
480
495
|
<label
|
|
496
|
+
aria-label=""
|
|
481
497
|
htmlFor="foo--whatever"
|
|
482
498
|
>
|
|
483
499
|
<mock-Radio
|
|
@@ -10,11 +10,22 @@ import defaultClasses from './radio.module.css';
|
|
|
10
10
|
/* eslint-disable jsx-a11y/label-has-for */
|
|
11
11
|
|
|
12
12
|
const RadioOption = props => {
|
|
13
|
-
const {
|
|
13
|
+
const {
|
|
14
|
+
ariaLabel,
|
|
15
|
+
classes: propClasses,
|
|
16
|
+
id,
|
|
17
|
+
label,
|
|
18
|
+
value,
|
|
19
|
+
...rest
|
|
20
|
+
} = props;
|
|
14
21
|
const classes = useStyle(defaultClasses, propClasses);
|
|
15
22
|
|
|
16
23
|
return (
|
|
17
|
-
<label
|
|
24
|
+
<label
|
|
25
|
+
className={classes.root}
|
|
26
|
+
htmlFor={id}
|
|
27
|
+
aria-label={ariaLabel ? ariaLabel : ''}
|
|
28
|
+
>
|
|
18
29
|
<InformedRadio
|
|
19
30
|
{...rest}
|
|
20
31
|
className={classes.input}
|
|
@@ -34,6 +45,7 @@ const RadioOption = props => {
|
|
|
34
45
|
export default RadioOption;
|
|
35
46
|
|
|
36
47
|
RadioOption.propTypes = {
|
|
48
|
+
ariaLabel: string,
|
|
37
49
|
classes: shape({
|
|
38
50
|
icon: string,
|
|
39
51
|
input: string,
|