@magento/venia-ui 9.7.0-beta.2 → 10.0.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 +23 -2
- package/lib/RootComponents/Category/NoProductsFound/noProductsFound.js +1 -1
- package/lib/RootComponents/Category/__tests__/__snapshots__/categoryContent.shimmer.spec.js.snap +6 -0
- package/lib/components/AccountChip/__tests__/__snapshots__/accountChip.spec.js.snap +3 -0
- package/lib/components/AccountChip/accountChip.js +14 -1
- package/lib/components/AccountInformationPage/__tests__/__snapshots__/editForm.spec.js.snap +15 -0
- package/lib/components/AddressBookPage/__tests__/__snapshots__/addEditDialog.spec.js.snap +28 -0
- package/lib/components/App/__tests__/app.spec.js +3 -1
- package/lib/components/App/app.js +1 -1
- package/lib/components/CartPage/GiftCards/__tests__/__snapshots__/giftCards.spec.js.snap +2 -0
- package/lib/components/CartPage/PriceAdjustments/CouponCode/__tests__/__snapshots__/couponCode.spec.js.snap +9 -3
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/__tests__/__snapshots__/shippingForm.spec.js.snap +15 -0
- package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/priceSummary.spec.js.snap +0 -2
- package/lib/components/CartPage/PriceSummary/priceSummary.js +2 -0
- package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productForm.spec.js.snap +4 -0
- package/lib/components/CartPage/ProductListing/__tests__/__snapshots__/product.spec.js.snap +6 -0
- package/lib/components/CartPage/ProductListing/__tests__/__snapshots__/quantity.spec.js.snap +1 -0
- package/lib/components/CategoryTree/categoryBranch.js +1 -1
- package/lib/components/CategoryTree/categoryLeaf.js +1 -1
- package/lib/components/CategoryTree/categoryTree.js +1 -1
- package/lib/components/Checkout/__tests__/__snapshots__/addressForm.spec.js.snap +16 -0
- package/lib/components/Checkout/__tests__/__snapshots__/paymentsForm.spec.js.snap +7 -0
- package/lib/components/Checkout/section.module.css +0 -1
- package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/itemsReview.spec.js.snap +3 -0
- package/lib/components/CheckoutPage/OrderConfirmationPage/__tests__/__snapshots__/createAccount.spec.js.snap +20 -0
- package/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +16 -0
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/__snapshots__/customerForm.spec.js.snap +46 -0
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/__snapshots__/guestForm.spec.js.snap +68 -0
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +36 -0
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +36 -0
- package/lib/components/CheckoutPage/__tests__/__snapshots__/checkoutPage.spec.js.snap +1 -1
- package/lib/components/CheckoutPage/checkoutPage.js +4 -0
- package/lib/components/Country/__tests__/__snapshots__/country.spec.js.snap +2 -0
- package/lib/components/CreateAccount/__tests__/__snapshots__/createAccount.spec.js.snap +36 -10
- package/lib/components/CreateAccount/createAccount.js +18 -0
- package/lib/components/Field/fieldIcons.js +3 -1
- package/lib/components/FilterModalOpenButton/filterModalOpenButton.js +12 -2
- package/lib/components/ForgotPassword/ForgotPasswordForm/__tests__/__snapshots__/forgotPasswordForm.spec.js.snap +2 -0
- package/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap +2 -0
- package/lib/components/Gallery/__tests__/__snapshots__/item.spec.js.snap +3 -0
- package/lib/components/Gallery/item.js +1 -0
- package/lib/components/Header/__tests__/__snapshots__/accountTrigger.spec.js.snap +1 -1
- package/lib/components/Header/accountTrigger.js +12 -5
- package/lib/components/Image/placeholderImage.js +1 -0
- package/lib/components/LegacyMiniCart/__tests__/__snapshots__/kebab.spec.js.snap +2 -0
- package/lib/components/LegacyMiniCart/__tests__/__snapshots__/miniCart.spec.js.snap +3 -0
- package/lib/components/LegacyMiniCart/kebab.js +14 -0
- package/lib/components/Link/__tests__/link.spec.js +8 -6
- package/lib/components/Link/link.js +1 -1
- package/lib/components/MiniCart/ProductList/__tests__/__snapshots__/item.spec.js.snap +8 -0
- package/lib/components/MiniCart/ProductList/item.js +11 -0
- package/lib/components/MyAccount/ResetPassword/__tests__/__snapshots__/resetPassword.spec.js.snap +16 -4
- package/lib/components/Newsletter/__tests__/__snapshots__/newsletter.spec.js.snap +2 -0
- package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/item.spec.js.snap +1 -0
- package/lib/components/OrderHistoryPage/__tests__/__snapshots__/orderHistoryPage.spec.js.snap +13 -0
- package/lib/components/OrderHistoryPage/__tests__/__snapshots__/orderRow.spec.js.snap +4 -0
- package/lib/components/OrderHistoryPage/__tests__/__snapshots__/resetButton.spec.js.snap +3 -0
- package/lib/components/OrderHistoryPage/collapsedImageGallery.js +3 -3
- package/lib/components/OrderHistoryPage/orderHistoryPage.js +1 -0
- package/lib/components/OrderHistoryPage/orderRow.js +1 -0
- package/lib/components/OrderHistoryPage/resetButton.js +13 -2
- package/lib/components/PageLoadingIndicator/__tests__/pageLoadingIndicator.spec.js +1 -1
- package/lib/components/PageLoadingIndicator/pageLoadingIndicator.js +1 -1
- package/lib/components/Password/__tests__/__snapshots__/password.spec.js.snap +13 -3
- package/lib/components/Password/password.js +24 -2
- package/lib/components/ProductImageCarousel/__tests__/__snapshots__/carousel.spec.js.snap +18 -16
- package/lib/components/ProductImageCarousel/__tests__/__snapshots__/thumbnail.spec.js.snap +12 -12
- package/lib/components/ProductImageCarousel/__tests__/thumbnail.spec.js +2 -2
- package/lib/components/ProductImageCarousel/thumbnail.js +4 -5
- package/lib/components/ProductImageCarousel/thumbnail.module.css +0 -1
- package/lib/components/ProductOptions/__tests__/__snapshots__/swatch.spec.js.snap +6 -0
- package/lib/components/ProductOptions/__tests__/__snapshots__/swatchList.spec.js.snap +1 -0
- package/lib/components/ProductOptions/__tests__/swatch.spec.js +2 -1
- package/lib/components/ProductOptions/option.js +1 -0
- package/lib/components/ProductOptions/swatch.js +5 -2
- package/lib/components/ProductOptions/swatchList.js +5 -2
- package/lib/components/ProductSort/__tests__/__snapshots__/productSort.spec.js.snap +1 -0
- package/lib/components/ProductSort/productSort.js +17 -0
- package/lib/components/QuantityStepper/quantityStepper.module.css +0 -2
- package/lib/components/Region/__tests__/__snapshots__/region.spec.js.snap +3 -0
- package/lib/components/SearchBar/__tests__/__snapshots__/searchField.spec.js.snap +1 -0
- package/lib/components/SearchBar/__tests__/__snapshots__/suggestedProduct.spec.js.snap +1 -0
- package/lib/components/SearchBar/searchBar.js +6 -1
- package/lib/components/SearchBar/searchField.js +4 -2
- package/lib/components/SearchPage/__tests__/__snapshots__/searchPage.spec.js.snap +28 -28
- package/lib/components/SearchPage/searchPage.js +6 -4
- package/lib/components/SignIn/__tests__/__snapshots__/signIn.spec.js.snap +12 -0
- package/lib/components/SignIn/signIn.js +10 -0
- package/lib/components/Trigger/__tests__/__snapshots__/trigger.spec.js.snap +8 -2
- package/lib/components/Trigger/trigger.js +30 -5
- package/lib/components/Wishlist/WishlistDialog/CreateWishlistForm/__tests__/__snapshots__/createWishlistForm.spec.js.snap +2 -0
- package/lib/components/WishlistPage/__tests__/__snapshots__/createWishlist.ee.spec.js.snap +1 -0
- package/lib/components/WishlistPage/__tests__/__snapshots__/wishlistEditFavoritesListDialog.spec.js.snap +4 -0
- package/lib/components/WishlistPage/__tests__/__snapshots__/wishlistItem.spec.js.snap +2 -0
- package/lib/index.module.css +7 -9
- package/package.json +4 -4
package/i18n/en_US.json
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"accountMenu.savedPaymentsLink": "Saved Payments",
|
|
15
15
|
"accountMenu.signOutButtonText": "Sign Out",
|
|
16
16
|
"accountMenu.storeCreditLink": "Store Credit & Gift Cards",
|
|
17
|
-
"accountTrigger.
|
|
17
|
+
"accountTrigger.ariaLabelMyMenu": "Toggle My Account Menu",
|
|
18
|
+
"accountTrigger.ariaLabelSignIn": "Sign In",
|
|
18
19
|
"accountTrigger.buttonFallback": "Sign In",
|
|
19
20
|
"accountTrigger.signIn": "Sign In",
|
|
20
21
|
"addressBook.addNewAddresstext": "Add New Address",
|
|
@@ -183,6 +184,7 @@
|
|
|
183
184
|
"filterModal.item.clearFilter": "Remove filter \"{optionName}\".",
|
|
184
185
|
"filterModal.item.hideOptions": "Hide \"{itemName}\" filter item options.",
|
|
185
186
|
"filterModal.item.showOptions": "Show \"{itemName}\" filter item options.",
|
|
187
|
+
"filterModalOpenButton.ariaLabel": "Filter Button for Filter Options.",
|
|
186
188
|
"filterSearch.name": "Enter a {name}",
|
|
187
189
|
"footer.calloutText": "Lorem ipsum dolor sit amet, consectetur adipsicing elit, sed do eiusmod tempor incididunt ut labore et dolore.",
|
|
188
190
|
"footer.followText": "Follow Us!",
|
|
@@ -372,6 +374,8 @@
|
|
|
372
374
|
"productQuantity.label": "product's quantity",
|
|
373
375
|
"productSort.sortByButton": "Sort by",
|
|
374
376
|
"productSort.sortButton": "Sort",
|
|
377
|
+
"productSort.sortButtonCollapsed": "Sort Button Collapsed",
|
|
378
|
+
"productSort.sortButtonExpanded": "Sort Button Expanded",
|
|
375
379
|
"quantity.buttonDecrement": "Decrease Quantity",
|
|
376
380
|
"quantity.buttonIncrement": "Increase Quantity",
|
|
377
381
|
"quantity.input": "Item Quantity",
|
|
@@ -477,5 +481,22 @@
|
|
|
477
481
|
"wishlistPage.wishlistDisabledMessage": "The wishlist is not currently available.",
|
|
478
482
|
"wishlist.itemCountOpen": "Showing {currentCount} of {count} items in this list",
|
|
479
483
|
"wishlist.itemCountClosed": "You have {count} {count, plural, one {item} other {items}} in this list",
|
|
480
|
-
"wishlist.loadMore": "Load More"
|
|
484
|
+
"wishlist.loadMore": "Load More",
|
|
485
|
+
"LegacyMiniCart.buttonExpanded":"More Options Expanded",
|
|
486
|
+
"LegacyMiniCart.buttonCollapsed":"More Options Collapsed",
|
|
487
|
+
"global.deletedButton":"Item Deleted",
|
|
488
|
+
"password.hide":"Hide Password",
|
|
489
|
+
"password.View":"View Password",
|
|
490
|
+
"global.clearText":"Clear Text",
|
|
491
|
+
"global.close":"Close",
|
|
492
|
+
"global.firstNameRequired":"First Name Required",
|
|
493
|
+
"global.lastNameRequired":"Last Name Required",
|
|
494
|
+
"global.emailRequired":"Email Required",
|
|
495
|
+
"global.passwordRequired":"Password Required",
|
|
496
|
+
"global.countryRequired":"Country Required",
|
|
497
|
+
"global.streetAddressRequired":"Street Address Required",
|
|
498
|
+
"global.cityRequired":"City Required",
|
|
499
|
+
"global.stateRequired":"State Required",
|
|
500
|
+
"Form.postalCode":"ZIP / Postal Code Required",
|
|
501
|
+
"Form.phonenumber":"Phone Number Required"
|
|
481
502
|
}
|
package/lib/RootComponents/Category/__tests__/__snapshots__/categoryContent.shimmer.spec.js.snap
CHANGED
|
@@ -140,6 +140,7 @@ Array [
|
|
|
140
140
|
>
|
|
141
141
|
<img
|
|
142
142
|
alt="Placeholder for gallery item image"
|
|
143
|
+
aria-hidden="true"
|
|
143
144
|
className="image placeholder"
|
|
144
145
|
loading="eager"
|
|
145
146
|
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
@@ -191,6 +192,7 @@ Array [
|
|
|
191
192
|
>
|
|
192
193
|
<img
|
|
193
194
|
alt="Placeholder for gallery item image"
|
|
195
|
+
aria-hidden="true"
|
|
194
196
|
className="image placeholder"
|
|
195
197
|
loading="eager"
|
|
196
198
|
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
@@ -242,6 +244,7 @@ Array [
|
|
|
242
244
|
>
|
|
243
245
|
<img
|
|
244
246
|
alt="Placeholder for gallery item image"
|
|
247
|
+
aria-hidden="true"
|
|
245
248
|
className="image placeholder"
|
|
246
249
|
loading="eager"
|
|
247
250
|
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
@@ -293,6 +296,7 @@ Array [
|
|
|
293
296
|
>
|
|
294
297
|
<img
|
|
295
298
|
alt="Placeholder for gallery item image"
|
|
299
|
+
aria-hidden="true"
|
|
296
300
|
className="image placeholder"
|
|
297
301
|
loading="eager"
|
|
298
302
|
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
@@ -344,6 +348,7 @@ Array [
|
|
|
344
348
|
>
|
|
345
349
|
<img
|
|
346
350
|
alt="Placeholder for gallery item image"
|
|
351
|
+
aria-hidden="true"
|
|
347
352
|
className="image placeholder"
|
|
348
353
|
loading="eager"
|
|
349
354
|
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
@@ -395,6 +400,7 @@ Array [
|
|
|
395
400
|
>
|
|
396
401
|
<img
|
|
397
402
|
alt="Placeholder for gallery item image"
|
|
403
|
+
aria-hidden="true"
|
|
398
404
|
className="image placeholder"
|
|
399
405
|
loading="eager"
|
|
400
406
|
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzUnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzUnIHN0eWxlPSdmaWxsOiBub25lJyAvPjwvc3ZnPg=="
|
|
@@ -35,6 +35,13 @@ const AccountChip = props => {
|
|
|
35
35
|
const classes = useStyle(defaultClasses, props.classes);
|
|
36
36
|
const { formatMessage } = useIntl();
|
|
37
37
|
|
|
38
|
+
const ariaLabelMyMenu = formatMessage({
|
|
39
|
+
id: 'accountTrigger.ariaLabelMyMenu',
|
|
40
|
+
defaultMessage: 'Toggle My Account Menu'
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const ariaLabel = isUserSignedIn ? ariaLabelMyMenu : '';
|
|
44
|
+
|
|
38
45
|
let chipText;
|
|
39
46
|
if (!isUserSignedIn) {
|
|
40
47
|
chipText = fallbackText;
|
|
@@ -54,7 +61,13 @@ const AccountChip = props => {
|
|
|
54
61
|
return (
|
|
55
62
|
<span className={classes.root}>
|
|
56
63
|
<Icon src={AccountIcon} />
|
|
57
|
-
<span
|
|
64
|
+
<span
|
|
65
|
+
aria-label={ariaLabel}
|
|
66
|
+
aria-atomic="true"
|
|
67
|
+
aria-live="polite"
|
|
68
|
+
data-cy="AccountChip-text"
|
|
69
|
+
className={classes.text}
|
|
70
|
+
>
|
|
58
71
|
{chipText}
|
|
59
72
|
</span>
|
|
60
73
|
</span>
|
|
@@ -46,6 +46,7 @@ exports[`renders form when shouldShowNewPassword is false 1`] = `
|
|
|
46
46
|
className="before"
|
|
47
47
|
/>
|
|
48
48
|
<span
|
|
49
|
+
aria-hidden="false"
|
|
49
50
|
className="after"
|
|
50
51
|
/>
|
|
51
52
|
</span>
|
|
@@ -91,6 +92,7 @@ exports[`renders form when shouldShowNewPassword is false 1`] = `
|
|
|
91
92
|
className="before"
|
|
92
93
|
/>
|
|
93
94
|
<span
|
|
95
|
+
aria-hidden="false"
|
|
94
96
|
className="after"
|
|
95
97
|
/>
|
|
96
98
|
</span>
|
|
@@ -136,6 +138,7 @@ exports[`renders form when shouldShowNewPassword is false 1`] = `
|
|
|
136
138
|
className="before"
|
|
137
139
|
/>
|
|
138
140
|
<span
|
|
141
|
+
aria-hidden="false"
|
|
139
142
|
className="after"
|
|
140
143
|
/>
|
|
141
144
|
</span>
|
|
@@ -183,6 +186,7 @@ exports[`renders form when shouldShowNewPassword is false 1`] = `
|
|
|
183
186
|
className="before"
|
|
184
187
|
/>
|
|
185
188
|
<span
|
|
189
|
+
aria-hidden="false"
|
|
186
190
|
className="after"
|
|
187
191
|
>
|
|
188
192
|
<button
|
|
@@ -190,6 +194,7 @@ exports[`renders form when shouldShowNewPassword is false 1`] = `
|
|
|
190
194
|
disabled={false}
|
|
191
195
|
onClick={[Function]}
|
|
192
196
|
onDragStart={[Function]}
|
|
197
|
+
onKey={true}
|
|
193
198
|
onKeyDown={[Function]}
|
|
194
199
|
onKeyUp={[Function]}
|
|
195
200
|
onMouseDown={[Function]}
|
|
@@ -206,6 +211,7 @@ exports[`renders form when shouldShowNewPassword is false 1`] = `
|
|
|
206
211
|
className="content"
|
|
207
212
|
>
|
|
208
213
|
<svg
|
|
214
|
+
aria-label="View Password"
|
|
209
215
|
fill="none"
|
|
210
216
|
height={24}
|
|
211
217
|
stroke="currentColor"
|
|
@@ -315,6 +321,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
|
|
|
315
321
|
className="before"
|
|
316
322
|
/>
|
|
317
323
|
<span
|
|
324
|
+
aria-hidden="false"
|
|
318
325
|
className="after"
|
|
319
326
|
/>
|
|
320
327
|
</span>
|
|
@@ -360,6 +367,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
|
|
|
360
367
|
className="before"
|
|
361
368
|
/>
|
|
362
369
|
<span
|
|
370
|
+
aria-hidden="false"
|
|
363
371
|
className="after"
|
|
364
372
|
/>
|
|
365
373
|
</span>
|
|
@@ -405,6 +413,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
|
|
|
405
413
|
className="before"
|
|
406
414
|
/>
|
|
407
415
|
<span
|
|
416
|
+
aria-hidden="false"
|
|
408
417
|
className="after"
|
|
409
418
|
/>
|
|
410
419
|
</span>
|
|
@@ -452,6 +461,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
|
|
|
452
461
|
className="before"
|
|
453
462
|
/>
|
|
454
463
|
<span
|
|
464
|
+
aria-hidden="false"
|
|
455
465
|
className="after"
|
|
456
466
|
>
|
|
457
467
|
<button
|
|
@@ -459,6 +469,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
|
|
|
459
469
|
disabled={false}
|
|
460
470
|
onClick={[Function]}
|
|
461
471
|
onDragStart={[Function]}
|
|
472
|
+
onKey={true}
|
|
462
473
|
onKeyDown={[Function]}
|
|
463
474
|
onKeyUp={[Function]}
|
|
464
475
|
onMouseDown={[Function]}
|
|
@@ -475,6 +486,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
|
|
|
475
486
|
className="content"
|
|
476
487
|
>
|
|
477
488
|
<svg
|
|
489
|
+
aria-label="View Password"
|
|
478
490
|
fill="none"
|
|
479
491
|
height={24}
|
|
480
492
|
stroke="currentColor"
|
|
@@ -542,6 +554,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
|
|
|
542
554
|
className="before"
|
|
543
555
|
/>
|
|
544
556
|
<span
|
|
557
|
+
aria-hidden="false"
|
|
545
558
|
className="after"
|
|
546
559
|
>
|
|
547
560
|
<button
|
|
@@ -549,6 +562,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
|
|
|
549
562
|
disabled={false}
|
|
550
563
|
onClick={[Function]}
|
|
551
564
|
onDragStart={[Function]}
|
|
565
|
+
onKey={true}
|
|
552
566
|
onKeyDown={[Function]}
|
|
553
567
|
onKeyUp={[Function]}
|
|
554
568
|
onMouseDown={[Function]}
|
|
@@ -565,6 +579,7 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
|
|
|
565
579
|
className="content"
|
|
566
580
|
>
|
|
567
581
|
<svg
|
|
582
|
+
aria-label="View Password"
|
|
568
583
|
fill="none"
|
|
569
584
|
height={24}
|
|
570
585
|
stroke="currentColor"
|
|
@@ -63,6 +63,7 @@ exports[`Edit Mode renders correctly 1`] = `
|
|
|
63
63
|
className="before"
|
|
64
64
|
/>
|
|
65
65
|
<span
|
|
66
|
+
aria-hidden="false"
|
|
66
67
|
className="after"
|
|
67
68
|
/>
|
|
68
69
|
</span>
|
|
@@ -116,6 +117,7 @@ exports[`Edit Mode renders correctly 1`] = `
|
|
|
116
117
|
className="before"
|
|
117
118
|
/>
|
|
118
119
|
<span
|
|
120
|
+
aria-hidden="false"
|
|
119
121
|
className="after"
|
|
120
122
|
/>
|
|
121
123
|
</span>
|
|
@@ -161,6 +163,7 @@ exports[`Edit Mode renders correctly 1`] = `
|
|
|
161
163
|
className="before"
|
|
162
164
|
/>
|
|
163
165
|
<span
|
|
166
|
+
aria-hidden="false"
|
|
164
167
|
className="after"
|
|
165
168
|
/>
|
|
166
169
|
</span>
|
|
@@ -214,6 +217,7 @@ exports[`Edit Mode renders correctly 1`] = `
|
|
|
214
217
|
className="before"
|
|
215
218
|
/>
|
|
216
219
|
<span
|
|
220
|
+
aria-hidden="false"
|
|
217
221
|
className="after"
|
|
218
222
|
/>
|
|
219
223
|
</span>
|
|
@@ -267,6 +271,7 @@ exports[`Edit Mode renders correctly 1`] = `
|
|
|
267
271
|
className="before"
|
|
268
272
|
/>
|
|
269
273
|
<span
|
|
274
|
+
aria-hidden="false"
|
|
270
275
|
className="after"
|
|
271
276
|
/>
|
|
272
277
|
</span>
|
|
@@ -312,6 +317,7 @@ exports[`Edit Mode renders correctly 1`] = `
|
|
|
312
317
|
className="before"
|
|
313
318
|
/>
|
|
314
319
|
<span
|
|
320
|
+
aria-hidden="false"
|
|
315
321
|
className="after"
|
|
316
322
|
/>
|
|
317
323
|
</span>
|
|
@@ -375,6 +381,7 @@ exports[`Edit Mode renders correctly 1`] = `
|
|
|
375
381
|
className="before"
|
|
376
382
|
/>
|
|
377
383
|
<span
|
|
384
|
+
aria-hidden="false"
|
|
378
385
|
className="after"
|
|
379
386
|
/>
|
|
380
387
|
</span>
|
|
@@ -505,6 +512,7 @@ exports[`Edit Mode renders correctly with errors 1`] = `
|
|
|
505
512
|
className="before"
|
|
506
513
|
/>
|
|
507
514
|
<span
|
|
515
|
+
aria-hidden="false"
|
|
508
516
|
className="after"
|
|
509
517
|
/>
|
|
510
518
|
</span>
|
|
@@ -558,6 +566,7 @@ exports[`Edit Mode renders correctly with errors 1`] = `
|
|
|
558
566
|
className="before"
|
|
559
567
|
/>
|
|
560
568
|
<span
|
|
569
|
+
aria-hidden="false"
|
|
561
570
|
className="after"
|
|
562
571
|
/>
|
|
563
572
|
</span>
|
|
@@ -603,6 +612,7 @@ exports[`Edit Mode renders correctly with errors 1`] = `
|
|
|
603
612
|
className="before"
|
|
604
613
|
/>
|
|
605
614
|
<span
|
|
615
|
+
aria-hidden="false"
|
|
606
616
|
className="after"
|
|
607
617
|
/>
|
|
608
618
|
</span>
|
|
@@ -656,6 +666,7 @@ exports[`Edit Mode renders correctly with errors 1`] = `
|
|
|
656
666
|
className="before"
|
|
657
667
|
/>
|
|
658
668
|
<span
|
|
669
|
+
aria-hidden="false"
|
|
659
670
|
className="after"
|
|
660
671
|
/>
|
|
661
672
|
</span>
|
|
@@ -709,6 +720,7 @@ exports[`Edit Mode renders correctly with errors 1`] = `
|
|
|
709
720
|
className="before"
|
|
710
721
|
/>
|
|
711
722
|
<span
|
|
723
|
+
aria-hidden="false"
|
|
712
724
|
className="after"
|
|
713
725
|
/>
|
|
714
726
|
</span>
|
|
@@ -754,6 +766,7 @@ exports[`Edit Mode renders correctly with errors 1`] = `
|
|
|
754
766
|
className="before"
|
|
755
767
|
/>
|
|
756
768
|
<span
|
|
769
|
+
aria-hidden="false"
|
|
757
770
|
className="after"
|
|
758
771
|
/>
|
|
759
772
|
</span>
|
|
@@ -817,6 +830,7 @@ exports[`Edit Mode renders correctly with errors 1`] = `
|
|
|
817
830
|
className="before"
|
|
818
831
|
/>
|
|
819
832
|
<span
|
|
833
|
+
aria-hidden="false"
|
|
820
834
|
className="after"
|
|
821
835
|
/>
|
|
822
836
|
</span>
|
|
@@ -942,6 +956,7 @@ exports[`renders correctly 1`] = `
|
|
|
942
956
|
className="before"
|
|
943
957
|
/>
|
|
944
958
|
<span
|
|
959
|
+
aria-hidden="false"
|
|
945
960
|
className="after"
|
|
946
961
|
/>
|
|
947
962
|
</span>
|
|
@@ -995,6 +1010,7 @@ exports[`renders correctly 1`] = `
|
|
|
995
1010
|
className="before"
|
|
996
1011
|
/>
|
|
997
1012
|
<span
|
|
1013
|
+
aria-hidden="false"
|
|
998
1014
|
className="after"
|
|
999
1015
|
/>
|
|
1000
1016
|
</span>
|
|
@@ -1040,6 +1056,7 @@ exports[`renders correctly 1`] = `
|
|
|
1040
1056
|
className="before"
|
|
1041
1057
|
/>
|
|
1042
1058
|
<span
|
|
1059
|
+
aria-hidden="false"
|
|
1043
1060
|
className="after"
|
|
1044
1061
|
/>
|
|
1045
1062
|
</span>
|
|
@@ -1093,6 +1110,7 @@ exports[`renders correctly 1`] = `
|
|
|
1093
1110
|
className="before"
|
|
1094
1111
|
/>
|
|
1095
1112
|
<span
|
|
1113
|
+
aria-hidden="false"
|
|
1096
1114
|
className="after"
|
|
1097
1115
|
/>
|
|
1098
1116
|
</span>
|
|
@@ -1146,6 +1164,7 @@ exports[`renders correctly 1`] = `
|
|
|
1146
1164
|
className="before"
|
|
1147
1165
|
/>
|
|
1148
1166
|
<span
|
|
1167
|
+
aria-hidden="false"
|
|
1149
1168
|
className="after"
|
|
1150
1169
|
/>
|
|
1151
1170
|
</span>
|
|
@@ -1191,6 +1210,7 @@ exports[`renders correctly 1`] = `
|
|
|
1191
1210
|
className="before"
|
|
1192
1211
|
/>
|
|
1193
1212
|
<span
|
|
1213
|
+
aria-hidden="false"
|
|
1194
1214
|
className="after"
|
|
1195
1215
|
/>
|
|
1196
1216
|
</span>
|
|
@@ -1254,6 +1274,7 @@ exports[`renders correctly 1`] = `
|
|
|
1254
1274
|
className="before"
|
|
1255
1275
|
/>
|
|
1256
1276
|
<span
|
|
1277
|
+
aria-hidden="false"
|
|
1257
1278
|
className="after"
|
|
1258
1279
|
/>
|
|
1259
1280
|
</span>
|
|
@@ -1384,6 +1405,7 @@ exports[`renders correctly with errors 1`] = `
|
|
|
1384
1405
|
className="before"
|
|
1385
1406
|
/>
|
|
1386
1407
|
<span
|
|
1408
|
+
aria-hidden="false"
|
|
1387
1409
|
className="after"
|
|
1388
1410
|
/>
|
|
1389
1411
|
</span>
|
|
@@ -1437,6 +1459,7 @@ exports[`renders correctly with errors 1`] = `
|
|
|
1437
1459
|
className="before"
|
|
1438
1460
|
/>
|
|
1439
1461
|
<span
|
|
1462
|
+
aria-hidden="false"
|
|
1440
1463
|
className="after"
|
|
1441
1464
|
/>
|
|
1442
1465
|
</span>
|
|
@@ -1482,6 +1505,7 @@ exports[`renders correctly with errors 1`] = `
|
|
|
1482
1505
|
className="before"
|
|
1483
1506
|
/>
|
|
1484
1507
|
<span
|
|
1508
|
+
aria-hidden="false"
|
|
1485
1509
|
className="after"
|
|
1486
1510
|
/>
|
|
1487
1511
|
</span>
|
|
@@ -1535,6 +1559,7 @@ exports[`renders correctly with errors 1`] = `
|
|
|
1535
1559
|
className="before"
|
|
1536
1560
|
/>
|
|
1537
1561
|
<span
|
|
1562
|
+
aria-hidden="false"
|
|
1538
1563
|
className="after"
|
|
1539
1564
|
/>
|
|
1540
1565
|
</span>
|
|
@@ -1588,6 +1613,7 @@ exports[`renders correctly with errors 1`] = `
|
|
|
1588
1613
|
className="before"
|
|
1589
1614
|
/>
|
|
1590
1615
|
<span
|
|
1616
|
+
aria-hidden="false"
|
|
1591
1617
|
className="after"
|
|
1592
1618
|
/>
|
|
1593
1619
|
</span>
|
|
@@ -1633,6 +1659,7 @@ exports[`renders correctly with errors 1`] = `
|
|
|
1633
1659
|
className="before"
|
|
1634
1660
|
/>
|
|
1635
1661
|
<span
|
|
1662
|
+
aria-hidden="false"
|
|
1636
1663
|
className="after"
|
|
1637
1664
|
/>
|
|
1638
1665
|
</span>
|
|
@@ -1696,6 +1723,7 @@ exports[`renders correctly with errors 1`] = `
|
|
|
1696
1723
|
className="before"
|
|
1697
1724
|
/>
|
|
1698
1725
|
<span
|
|
1726
|
+
aria-hidden="false"
|
|
1699
1727
|
className="after"
|
|
1700
1728
|
/>
|
|
1701
1729
|
</span>
|
|
@@ -19,7 +19,9 @@ jest.mock('../../Navigation', () => 'Navigation');
|
|
|
19
19
|
jest.mock('../../Routes', () => 'Routes');
|
|
20
20
|
jest.mock('../../ToastContainer', () => 'ToastContainer');
|
|
21
21
|
jest.mock('@magento/peregrine/lib/hooks/useDelayedTransition', () => {
|
|
22
|
-
return
|
|
22
|
+
return {
|
|
23
|
+
useDelayedTransition: jest.fn()
|
|
24
|
+
};
|
|
23
25
|
});
|
|
24
26
|
|
|
25
27
|
const mockAddToast = jest.fn();
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import { array, func, shape, string } from 'prop-types';
|
|
4
4
|
|
|
5
5
|
import { useToasts } from '@magento/peregrine';
|
|
6
|
-
import useDelayedTransition from '@magento/peregrine/lib/hooks/useDelayedTransition';
|
|
6
|
+
import { useDelayedTransition } from '@magento/peregrine/lib/hooks/useDelayedTransition';
|
|
7
7
|
import { useApp } from '@magento/peregrine/lib/talons/App/useApp';
|
|
8
8
|
|
|
9
9
|
import globalCSS from '../../index.module.css';
|
|
@@ -54,6 +54,7 @@ exports[`it renders correctly when it has cards 1`] = `
|
|
|
54
54
|
className="before"
|
|
55
55
|
/>
|
|
56
56
|
<span
|
|
57
|
+
aria-hidden="false"
|
|
57
58
|
className="after"
|
|
58
59
|
/>
|
|
59
60
|
</span>
|
|
@@ -295,6 +296,7 @@ exports[`it renders correctly with no cards 1`] = `
|
|
|
295
296
|
className="before"
|
|
296
297
|
/>
|
|
297
298
|
<span
|
|
299
|
+
aria-hidden="false"
|
|
298
300
|
className="after"
|
|
299
301
|
/>
|
|
300
302
|
</span>
|
|
@@ -66,7 +66,9 @@ exports[`disables submit button on coupon entry 1`] = `
|
|
|
66
66
|
/>
|
|
67
67
|
</span>
|
|
68
68
|
<span />
|
|
69
|
-
<span
|
|
69
|
+
<span
|
|
70
|
+
aria-hidden="false"
|
|
71
|
+
/>
|
|
70
72
|
</span>
|
|
71
73
|
<p>
|
|
72
74
|
|
|
@@ -133,7 +135,9 @@ exports[`renders CouponCode input and submit button 1`] = `
|
|
|
133
135
|
/>
|
|
134
136
|
</span>
|
|
135
137
|
<span />
|
|
136
|
-
<span
|
|
138
|
+
<span
|
|
139
|
+
aria-hidden="false"
|
|
140
|
+
/>
|
|
137
141
|
</span>
|
|
138
142
|
<p>
|
|
139
143
|
|
|
@@ -199,7 +203,9 @@ exports[`renders an error message if an error occurs on code entry 1`] = `
|
|
|
199
203
|
/>
|
|
200
204
|
</span>
|
|
201
205
|
<span />
|
|
202
|
-
<span
|
|
206
|
+
<span
|
|
207
|
+
aria-hidden="false"
|
|
208
|
+
/>
|
|
203
209
|
</span>
|
|
204
210
|
<p>
|
|
205
211
|
A wild GQL error appeared!
|
|
@@ -60,6 +60,7 @@ Array [
|
|
|
60
60
|
className="before"
|
|
61
61
|
/>
|
|
62
62
|
<span
|
|
63
|
+
aria-hidden="false"
|
|
63
64
|
className="after"
|
|
64
65
|
>
|
|
65
66
|
<span
|
|
@@ -122,6 +123,7 @@ Array [
|
|
|
122
123
|
className="before"
|
|
123
124
|
/>
|
|
124
125
|
<span
|
|
126
|
+
aria-hidden="false"
|
|
125
127
|
className="after"
|
|
126
128
|
/>
|
|
127
129
|
</span>
|
|
@@ -163,6 +165,7 @@ Array [
|
|
|
163
165
|
className="before"
|
|
164
166
|
/>
|
|
165
167
|
<span
|
|
168
|
+
aria-hidden="false"
|
|
166
169
|
className="after"
|
|
167
170
|
/>
|
|
168
171
|
</span>
|
|
@@ -273,6 +276,7 @@ Array [
|
|
|
273
276
|
className="before"
|
|
274
277
|
/>
|
|
275
278
|
<span
|
|
279
|
+
aria-hidden="false"
|
|
276
280
|
className="after"
|
|
277
281
|
>
|
|
278
282
|
<span
|
|
@@ -335,6 +339,7 @@ Array [
|
|
|
335
339
|
className="before"
|
|
336
340
|
/>
|
|
337
341
|
<span
|
|
342
|
+
aria-hidden="false"
|
|
338
343
|
className="after"
|
|
339
344
|
/>
|
|
340
345
|
</span>
|
|
@@ -376,6 +381,7 @@ Array [
|
|
|
376
381
|
className="before"
|
|
377
382
|
/>
|
|
378
383
|
<span
|
|
384
|
+
aria-hidden="false"
|
|
379
385
|
className="after"
|
|
380
386
|
/>
|
|
381
387
|
</span>
|
|
@@ -486,6 +492,7 @@ Array [
|
|
|
486
492
|
className="before"
|
|
487
493
|
/>
|
|
488
494
|
<span
|
|
495
|
+
aria-hidden="false"
|
|
489
496
|
className="after"
|
|
490
497
|
>
|
|
491
498
|
<span
|
|
@@ -573,6 +580,7 @@ Array [
|
|
|
573
580
|
className="before"
|
|
574
581
|
/>
|
|
575
582
|
<span
|
|
583
|
+
aria-hidden="false"
|
|
576
584
|
className="after"
|
|
577
585
|
>
|
|
578
586
|
<span
|
|
@@ -635,6 +643,7 @@ Array [
|
|
|
635
643
|
className="before"
|
|
636
644
|
/>
|
|
637
645
|
<span
|
|
646
|
+
aria-hidden="false"
|
|
638
647
|
className="after"
|
|
639
648
|
/>
|
|
640
649
|
</span>
|
|
@@ -745,6 +754,7 @@ Array [
|
|
|
745
754
|
className="before"
|
|
746
755
|
/>
|
|
747
756
|
<span
|
|
757
|
+
aria-hidden="false"
|
|
748
758
|
className="after"
|
|
749
759
|
>
|
|
750
760
|
<span
|
|
@@ -832,6 +842,7 @@ Array [
|
|
|
832
842
|
className="before"
|
|
833
843
|
/>
|
|
834
844
|
<span
|
|
845
|
+
aria-hidden="false"
|
|
835
846
|
className="after"
|
|
836
847
|
>
|
|
837
848
|
<span
|
|
@@ -894,6 +905,7 @@ Array [
|
|
|
894
905
|
className="before"
|
|
895
906
|
/>
|
|
896
907
|
<span
|
|
908
|
+
aria-hidden="false"
|
|
897
909
|
className="after"
|
|
898
910
|
/>
|
|
899
911
|
</span>
|
|
@@ -981,6 +993,7 @@ Array [
|
|
|
981
993
|
className="before"
|
|
982
994
|
/>
|
|
983
995
|
<span
|
|
996
|
+
aria-hidden="false"
|
|
984
997
|
className="after"
|
|
985
998
|
>
|
|
986
999
|
<span
|
|
@@ -1068,6 +1081,7 @@ Array [
|
|
|
1068
1081
|
className="before"
|
|
1069
1082
|
/>
|
|
1070
1083
|
<span
|
|
1084
|
+
aria-hidden="false"
|
|
1071
1085
|
className="after"
|
|
1072
1086
|
>
|
|
1073
1087
|
<span
|
|
@@ -1130,6 +1144,7 @@ Array [
|
|
|
1130
1144
|
className="before"
|
|
1131
1145
|
/>
|
|
1132
1146
|
<span
|
|
1147
|
+
aria-hidden="false"
|
|
1133
1148
|
className="after"
|
|
1134
1149
|
/>
|
|
1135
1150
|
</span>
|
package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/priceSummary.spec.js.snap
CHANGED
|
@@ -80,7 +80,6 @@ exports[`renders PriceSummary correctly on cart page 1`] = `
|
|
|
80
80
|
className="root_highPriority"
|
|
81
81
|
disabled={false}
|
|
82
82
|
onDragStart={[Function]}
|
|
83
|
-
onKeyDown={[Function]}
|
|
84
83
|
onKeyUp={[Function]}
|
|
85
84
|
onMouseDown={[Function]}
|
|
86
85
|
onMouseEnter={[Function]}
|
|
@@ -278,7 +277,6 @@ exports[`renders summary with loading state if query is loading 1`] = `
|
|
|
278
277
|
className="root_highPriority"
|
|
279
278
|
disabled={true}
|
|
280
279
|
onDragStart={[Function]}
|
|
281
|
-
onKeyDown={[Function]}
|
|
282
280
|
onKeyUp={[Function]}
|
|
283
281
|
onMouseDown={[Function]}
|
|
284
282
|
onMouseEnter={[Function]}
|