@magento/venia-ui 10.3.0 → 11.3.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/i18n/en_US.json +7 -3
  2. package/lib/RootComponents/Category/category.module.css +2 -2
  3. package/lib/components/Accordion/accordion.module.css +1 -1
  4. package/lib/components/Accordion/section.module.css +2 -8
  5. package/lib/components/AccountInformationPage/editForm.module.css +1 -1
  6. package/lib/components/AccountMenu/__tests__/__snapshots__/accountMenu.spec.js.snap +1 -1
  7. package/lib/components/AccountMenu/accountMenu.js +4 -1
  8. package/lib/components/AccountMenu/accountMenu.module.css +10 -9
  9. package/lib/components/AddToCartDialog/addToCartDialog.module.css +4 -8
  10. package/lib/components/AddressBookPage/addEditDialog.module.css +1 -1
  11. package/lib/components/AddressBookPage/addressBookPage.module.css +1 -1
  12. package/lib/components/AddressBookPage/addressCard.module.css +7 -6
  13. package/lib/components/Breadcrumbs/breadcrumbs.module.css +1 -2
  14. package/lib/components/Button/button.module.css +3 -10
  15. package/lib/components/ButtonGroup/button.module.css +5 -5
  16. package/lib/components/CartPage/GiftCards/giftCards.module.css +8 -15
  17. package/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.module.css +5 -12
  18. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.module.css +1 -1
  19. package/lib/components/CartPage/ProductListing/EditModal/productForm.module.css +1 -1
  20. package/lib/components/CartPage/ProductListing/product.module.css +4 -11
  21. package/lib/components/CartPage/cartPage.module.css +3 -4
  22. package/lib/components/CategoryTree/categoryLeaf.module.css +1 -1
  23. package/lib/components/Checkbox/checkbox.module.css +7 -11
  24. package/lib/components/Checkout/form.module.css +3 -7
  25. package/lib/components/Checkout/paymentsForm.module.css +2 -3
  26. package/lib/components/Checkout/section.module.css +1 -1
  27. package/lib/components/CheckoutPage/AddressBook/addressBook.module.css +3 -4
  28. package/lib/components/CheckoutPage/AddressBook/addressCard.module.css +4 -4
  29. package/lib/components/CheckoutPage/GuestSignIn/guestSignIn.module.css +11 -11
  30. package/lib/components/CheckoutPage/ItemsReview/itemsReview.module.css +1 -1
  31. package/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.module.css +1 -2
  32. package/lib/components/CheckoutPage/OrderSummary/orderSummary.module.css +1 -1
  33. package/lib/components/CheckoutPage/PaymentInformation/braintreeDropin.module.css +6 -6
  34. package/lib/components/CheckoutPage/PaymentInformation/paymentInformation.module.css +1 -1
  35. package/lib/components/CheckoutPage/PaymentInformation/paymentMethods.module.css +1 -3
  36. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.module.css +5 -5
  37. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.module.css +5 -5
  38. package/lib/components/CheckoutPage/ShippingInformation/editModal.module.css +6 -10
  39. package/lib/components/CheckoutPage/ShippingInformation/shippingInformation.module.css +5 -9
  40. package/lib/components/CheckoutPage/ShippingMethod/shippingMethod.module.css +1 -3
  41. package/lib/components/CheckoutPage/checkoutPage.module.css +11 -13
  42. package/lib/components/CmsBlock/cmsBlock.module.css +8 -10
  43. package/lib/components/ContactPage/contactPage.shimmer.module.css +1 -1
  44. package/lib/components/CreateAccount/createAccount.module.css +1 -4
  45. package/lib/components/CreateAccountPage/createAccountPage.module.css +1 -1
  46. package/lib/components/Dialog/dialog.module.css +7 -13
  47. package/lib/components/ErrorView/errorView.module.css +1 -1
  48. package/lib/components/Field/field.module.css +2 -1
  49. package/lib/components/Field/fieldIcons.module.css +8 -12
  50. package/lib/components/Field/message.module.css +3 -7
  51. package/lib/components/FilterModal/CurrentFilters/currentFilter.module.css +1 -3
  52. package/lib/components/FilterModal/CurrentFilters/currentFilters.module.css +1 -4
  53. package/lib/components/FilterModal/filterBlock.module.css +1 -5
  54. package/lib/components/FilterModal/filterModal.module.css +7 -18
  55. package/lib/components/FilterModalOpenButton/filterModalOpenButton.module.css +2 -2
  56. package/lib/components/FilterSidebar/filterSidebar.module.css +5 -10
  57. package/lib/components/Footer/footer.module.css +2 -2
  58. package/lib/components/ForgotPassword/ForgotPasswordForm/forgotPasswordForm.module.css +2 -2
  59. package/lib/components/ForgotPasswordPage/forgotPasswordPage.module.css +1 -1
  60. package/lib/components/Gallery/addToCartButton.module.css +3 -5
  61. package/lib/components/Gallery/gallery.module.css +1 -1
  62. package/lib/components/Gallery/item.module.css +1 -4
  63. package/lib/components/Header/currencySwitcher.module.css +17 -28
  64. package/lib/components/Header/header.module.css +2 -2
  65. package/lib/components/Header/onlineIndicator.module.css +2 -2
  66. package/lib/components/Header/storeSwitcher.module.css +9 -16
  67. package/lib/components/HomePage/homePage.module.css +10 -10
  68. package/lib/components/Image/image.module.css +2 -7
  69. package/lib/components/LegacyMiniCart/cartOptions.module.css +1 -1
  70. package/lib/components/LegacyMiniCart/mask.module.css +1 -1
  71. package/lib/components/LegacyMiniCart/miniCart.module.css +2 -8
  72. package/lib/components/LinkButton/linkButton.module.css +1 -2
  73. package/lib/components/LoadingIndicator/indicator.module.css +3 -3
  74. package/lib/components/Main/main.module.css +3 -3
  75. package/lib/components/Mask/mask.module.css +3 -9
  76. package/lib/components/MegaMenu/megaMenuItem.module.css +1 -2
  77. package/lib/components/MegaMenu/submenu.module.css +8 -8
  78. package/lib/components/MiniCart/ProductList/item.module.css +1 -1
  79. package/lib/components/MiniCart/miniCart.js +2 -1
  80. package/lib/components/MiniCart/miniCart.module.css +15 -17
  81. package/lib/components/MyAccount/ResetPassword/resetPassword.module.css +1 -1
  82. package/lib/components/Navigation/navigation.module.css +9 -27
  83. package/lib/components/Newsletter/newsletter.module.css +10 -11
  84. package/lib/components/OrderHistoryPage/OrderDetails/item.module.css +1 -1
  85. package/lib/components/OrderHistoryPage/OrderDetails/orderDetails.module.css +1 -1
  86. package/lib/components/OrderHistoryPage/OrderDetails/orderTotal.module.css +1 -1
  87. package/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.module.css +2 -3
  88. package/lib/components/OrderHistoryPage/__tests__/__snapshots__/orderRow.spec.js.snap +4 -8
  89. package/lib/components/OrderHistoryPage/__tests__/orderRow.spec.js +0 -42
  90. package/lib/components/OrderHistoryPage/orderHistoryPage.module.css +1 -1
  91. package/lib/components/OrderHistoryPage/orderProgressBar.js +22 -8
  92. package/lib/components/OrderHistoryPage/orderRow.js +5 -31
  93. package/lib/components/OrderHistoryPage/orderRow.module.css +5 -9
  94. package/lib/components/PageLoadingIndicator/pageLoadingIndicator.module.css +2 -2
  95. package/lib/components/Pagination/tile.module.css +1 -1
  96. package/lib/components/Password/password.module.css +2 -2
  97. package/lib/components/ProductFullDetail/productFullDetail.module.css +4 -5
  98. package/lib/components/ProductImageCarousel/carousel.module.css +2 -3
  99. package/lib/components/ProductImageCarousel/thumbnail.module.css +1 -1
  100. package/lib/components/ProductOptions/swatch.module.css +9 -10
  101. package/lib/components/ProductOptions/tile.module.css +8 -9
  102. package/lib/components/ProductSort/productSort.module.css +2 -2
  103. package/lib/components/QuantityStepper/quantityStepper.module.css +3 -13
  104. package/lib/components/RadioGroup/radio.module.css +2 -6
  105. package/lib/components/RadioGroup/radioGroup.module.css +1 -5
  106. package/lib/components/RichContent/richContent.module.css +57 -64
  107. package/lib/components/RichText/richText.module.css +6 -7
  108. package/lib/components/SavedPaymentsPage/creditCard.module.css +10 -16
  109. package/lib/components/SavedPaymentsPage/savedPaymentsPage.module.css +2 -4
  110. package/lib/components/SearchBar/autocomplete.module.css +2 -8
  111. package/lib/components/SearchBar/searchBar.module.css +2 -7
  112. package/lib/components/SearchBar/suggestedCategories.module.css +1 -4
  113. package/lib/components/SearchBar/suggestedProducts.module.css +1 -4
  114. package/lib/components/SearchPage/searchPage.module.css +2 -7
  115. package/lib/components/Select/select.module.css +1 -1
  116. package/lib/components/Shimmer/shimmer.module.css +22 -45
  117. package/lib/components/SignIn/signIn.module.css +2 -8
  118. package/lib/components/SignInPage/signInPage.module.css +1 -1
  119. package/lib/components/TextArea/textArea.module.css +2 -2
  120. package/lib/components/TextInput/textInput.module.css +2 -2
  121. package/lib/components/ToastContainer/toast.module.css +4 -4
  122. package/lib/components/WishlistPage/createWishlist.module.css +3 -3
  123. package/lib/components/WishlistPage/wishlist.module.css +4 -4
  124. package/lib/components/WishlistPage/wishlistEditFavoritesListDialog.module.css +1 -1
  125. package/lib/components/WishlistPage/wishlistItem.module.css +1 -1
  126. package/lib/index.module.css +34 -67
  127. package/lib/tokens.module.css +22 -22
  128. package/package.json +2 -2
@@ -35,12 +35,9 @@
35
35
  composes: px-xs from global;
36
36
  }
37
37
 
38
- /* TODO @TW: cannot compose */
39
38
  .action button {
40
- /* composes: text-sm from global; */
41
- font-size: 0.875rem;
42
- /* composes: no-underline from global; */
43
- text-decoration: none;
39
+ @apply text-sm;
40
+ @apply no-underline;
44
41
  }
45
42
 
46
43
  .blocks {
@@ -49,10 +46,8 @@
49
46
  composes: px-xs from global;
50
47
  }
51
48
 
52
- /* TODO @TW: cannot compose */
53
49
  .blocks > li:last-child {
54
- /* composes: border-b-2 from global; */
55
- /* composes: border-solid from global; */
56
- /* composes: border-subtle from global; */
57
- border-bottom: 2px solid rgb(var(--venia-global-color-border));
50
+ @apply border-b-2;
51
+ @apply border-solid;
52
+ @apply border-subtle;
58
53
  }
@@ -99,13 +99,13 @@
99
99
  composes: lg_text-left from global;
100
100
  }
101
101
 
102
- @media (max-width: 959px) {
102
+ @media screen(-lg) {
103
103
  .branding {
104
104
  grid-template-areas: 'c' 'b' 'a';
105
105
  }
106
106
  }
107
107
 
108
- @media (min-width: 960px) {
108
+ @media screen(lg) {
109
109
  .branding {
110
110
  grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
111
111
  }
@@ -16,11 +16,11 @@
16
16
  .cancelButton {
17
17
  composes: root_lowPriority from '../../Button/button.module.css';
18
18
 
19
- composes: min-w-[9rem] from global;
19
+ @apply min-w-[9rem];
20
20
  }
21
21
 
22
22
  .submitButton {
23
23
  composes: root_highPriority from '../../Button/button.module.css';
24
24
 
25
- composes: min-w-[9rem] from global;
25
+ @apply min-w-[9rem];
26
26
  }
@@ -17,5 +17,5 @@
17
17
  composes: lg_border-solid from global;
18
18
  composes: lg_border-subtle from global;
19
19
  composes: lg_pb-md from global;
20
- composes: lg_rounded-md from global;
20
+ composes: lg_rounded-box from global;
21
21
  }
@@ -1,15 +1,13 @@
1
1
  .root {
2
2
  composes: root_highPriority from '../Button/button.module.css';
3
3
 
4
- composes: min-w-[6.125rem] from global;
4
+ @apply min-w-[6.125rem];
5
5
  composes: -ml-2xs from global;
6
- composes: px-2xs from global;
7
- composes: py-0 from global;
6
+ @apply py-0;
8
7
  composes: self-center from global;
9
8
  min-height: 2rem;
10
9
 
11
- composes: sm_min-w-[8rem] from global;
12
- /* composes: md_min-w-0 from global; */
10
+ @apply sm_min-w-[8rem];
13
11
  }
14
12
 
15
13
  .icon {
@@ -15,7 +15,7 @@
15
15
  grid-template-columns: repeat(3, 1fr);
16
16
  }
17
17
 
18
- @media (max-width: 639px) {
18
+ @media screen(-sm) {
19
19
  .items {
20
20
  grid-template-columns: repeat(2, 1fr);
21
21
  }
@@ -45,11 +45,8 @@
45
45
  composes: grid from global;
46
46
  composes: pl-2xs from global;
47
47
  grid-template-columns: auto auto;
48
- }
49
48
 
50
- /* TODO @TW: cannot compose */
51
- .actionsContainer:empty {
52
- display: none;
49
+ composes: empty_hidden from global;
53
50
  }
54
51
 
55
52
  .name {
@@ -35,14 +35,13 @@
35
35
  composes: shadow-menu from global;
36
36
  composes: top-auto from global;
37
37
  composes: z-menu from global;
38
+ composes: invisible from global;
38
39
  transform: translate3d(0, 8px, 0);
39
40
  transition-duration: 192ms;
40
41
  transition-timing-function: var(--venia-global-anim-out);
41
42
  transition-property: opacity, transform, visibility;
42
43
 
43
- /* TODO @TW: review (B6) */
44
- /* composes: invisible from global; */
45
- visibility: hidden;
44
+ @apply invisible;
46
45
 
47
46
  composes: sm_bottom-auto from global;
48
47
  composes: sm_left-auto from global;
@@ -50,7 +49,7 @@
50
49
  composes: sm_top-md from global;
51
50
  }
52
51
 
53
- @media (min-width: 640px) {
52
+ @media screen(sm) {
54
53
  .menu {
55
54
  transform: translate3d(0, -8px, 0);
56
55
  }
@@ -59,15 +58,12 @@
59
58
  .menu_open {
60
59
  composes: menu;
61
60
 
62
- composes: opacity-100 from global;
61
+ @apply opacity-100;
63
62
  composes: p-0 from global;
63
+ @apply visible;
64
64
  transform: translate3d(0, 4px, 0);
65
65
  transition-duration: 224ms;
66
66
  transition-timing-function: var(--venia-global-anim-in);
67
-
68
- /* TODO @TW: review (B6) */
69
- /* composes: visible from global; */
70
- visibility: visible;
71
67
  }
72
68
 
73
69
  .menuItem {
@@ -84,35 +80,28 @@
84
80
  composes: mr-2xs from global;
85
81
  }
86
82
 
87
- /* TODO @TW: cannot compose */
88
83
  .root:last-child:not(:only-child) {
89
- padding-left: 0;
90
- grid-auto-flow: column;
91
- }
92
-
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; */
98
- border-left: 1px solid rgb(var(--venia-global-color-border));
99
- content: '';
100
- height: 1em;
101
- width: 1rem;
84
+ @apply pl-0;
85
+ @apply grid-flow-col;
86
+
87
+ @apply before_border-l;
88
+ @apply before_border-solid;
89
+ @apply before_border-base;
90
+ @apply before_h-4;
91
+ @apply before_w-4;
102
92
  }
103
93
 
104
- @media (max-width: 639px) {
94
+ @media screen(-sm) {
105
95
  .root:only-child {
106
96
  grid-column: 2;
107
97
  }
108
98
 
109
- /* TODO @TW: cannot compose */
110
99
  .root:last-child .menu {
111
- right: 1rem;
112
- left: auto;
100
+ @apply right-4;
101
+ @apply left-auto;
113
102
  }
114
103
 
115
104
  .menu_open {
116
- transform: translate3d(0, -4px, 0);
105
+ @apply -translate-y-1;
117
106
  }
118
107
  }
@@ -115,7 +115,7 @@
115
115
  .input {
116
116
  composes: input from '../TextInput/textInput.module.css';
117
117
 
118
- composes: max-w-sm from global;
118
+ @apply max-w-sm;
119
119
  }
120
120
 
121
121
  .loader,
@@ -145,9 +145,9 @@
145
145
 
146
146
  .loaderBefore,
147
147
  .loaderAfter {
148
+ composes: content-empty from global;
148
149
  composes: absolute from global;
149
150
  composes: top-0 from global;
150
- content: '';
151
151
  }
152
152
 
153
153
  .loaderBefore {
@@ -11,13 +11,13 @@
11
11
  composes: ml-6 from global;
12
12
  }
13
13
 
14
- @media (min-width: 640px) {
14
+ @media screen(sm) {
15
15
  .root {
16
16
  grid-column: 3 / 4;
17
17
  }
18
18
  }
19
19
 
20
- @media (min-width: 960px) {
20
+ @media screen(lg) {
21
21
  .root {
22
22
  grid-column: 2 / 3;
23
23
  }
@@ -14,7 +14,7 @@
14
14
 
15
15
  .trigger {
16
16
  composes: max-w-[15rem] from global;
17
- composes: overflow-ellipsis from global;
17
+ composes: text-ellipsis from global;
18
18
  composes: overflow-hidden from global;
19
19
  composes: whitespace-nowrap from global;
20
20
 
@@ -39,15 +39,12 @@
39
39
  composes: top-auto from global;
40
40
  composes: w-max from global;
41
41
  composes: z-menu from global;
42
+ composes: invisible from global;
42
43
  transform: translate3d(0, -8px, 0);
43
44
  transition-duration: 192ms;
44
45
  transition-timing-function: var(--venia-global-anim-out);
45
46
  transition-property: opacity, transform, visibility;
46
47
 
47
- /* TODO @TW: review (B6) */
48
- /* composes: invisible from global; */
49
- visibility: hidden;
50
-
51
48
  composes: sm_bottom-auto from global;
52
49
  composes: sm_left-auto from global;
53
50
  composes: sm_right-xs from global;
@@ -57,14 +54,11 @@
57
54
  .menu_open {
58
55
  composes: menu;
59
56
 
60
- composes: opacity-100 from global;
57
+ @apply opacity-100;
58
+ @apply visible;
61
59
  transform: translate3d(0, 4px, 0);
62
60
  transition-duration: 224ms;
63
61
  transition-timing-function: var(--venia-global-anim-in);
64
-
65
- /* TODO @TW: review (B6) */
66
- /* composes: visible from global; */
67
- visibility: visible;
68
62
  }
69
63
 
70
64
  .menuItem {
@@ -90,22 +84,21 @@
90
84
  * Mobile-specific styles.
91
85
  */
92
86
 
93
- @media (max-width: 639px) {
87
+ @media screen(-sm) {
94
88
  .root:only-child {
95
89
  grid-column: 2;
96
90
  }
97
91
 
98
- /* TODO @TW: cannot compose */
99
92
  .root:last-child .menu {
100
- right: 1rem;
101
- left: auto;
93
+ @apply right-4;
94
+ @apply left-auto;
102
95
  }
103
96
 
104
97
  .menu {
105
- transform: translate3d(0, 8px, 0);
98
+ @apply translate-y-2;
106
99
  }
107
100
 
108
101
  .menu_open {
109
- transform: translate3d(0, -4px, 0);
102
+ @apply -translate-y-1;
110
103
  }
111
104
  }
@@ -60,7 +60,7 @@
60
60
  z-index: 1;
61
61
  }
62
62
 
63
- @media (max-width: 959px) {
63
+ @media screen(-lg) {
64
64
  :global(.venia-home-slider ~ div) {
65
65
  grid-auto-flow: row;
66
66
  grid-template-columns: 100%;
@@ -121,7 +121,7 @@
121
121
  padding: 0 0 6rem !important;
122
122
  }
123
123
 
124
- @media (max-width: 1280px) {
124
+ @media screen(-2xl) {
125
125
  :global(.venia-home-slider .slick-slider) {
126
126
  min-height: 548px !important;
127
127
  }
@@ -131,7 +131,7 @@
131
131
  }
132
132
  }
133
133
 
134
- @media (max-width: 959px) {
134
+ @media screen(-lg) {
135
135
  :global(.venia-home-slider .slick-slide > div > div > div) {
136
136
  align-content: end;
137
137
  background-position: right center !important;
@@ -230,7 +230,7 @@
230
230
  width: 100% !important;
231
231
  }
232
232
 
233
- @media (max-width: 959px) {
233
+ @media screen(-lg) {
234
234
  :global(.venia-home-callout) {
235
235
  justify-self: center;
236
236
  max-width: 640px;
@@ -254,7 +254,7 @@
254
254
  width: 16rem;
255
255
  }
256
256
 
257
- @media (max-width: 959px) {
257
+ @media screen(-lg) {
258
258
  :global(.venia-home-callout-text) {
259
259
  transform: translate3d(0, 0.5rem, 0);
260
260
  }
@@ -288,7 +288,7 @@
288
288
  width: 100% !important;
289
289
  }
290
290
 
291
- @media (max-width: 959px) {
291
+ @media screen(-lg) {
292
292
  :global(.venia-home-banner-a-content) {
293
293
  grid-column: 1 / span 1;
294
294
  padding-top: 0 !important;
@@ -324,7 +324,7 @@
324
324
  width: 100% !important;
325
325
  }
326
326
 
327
- @media (max-width: 959px) {
327
+ @media screen(-lg) {
328
328
  :global(.venia-home-banner-a-image) {
329
329
  background-position: center bottom !important;
330
330
  grid-column: 1 / span 1;
@@ -344,7 +344,7 @@
344
344
  width: 100% !important;
345
345
  }
346
346
 
347
- @media (max-width: 959px) {
347
+ @media screen(-lg) {
348
348
  :global(.venia-home-banner-b-image) {
349
349
  grid-column: 1 / span 1;
350
350
  }
@@ -357,7 +357,7 @@
357
357
  width: 100% !important;
358
358
  }
359
359
 
360
- @media (max-width: 959px) {
360
+ @media screen(-lg) {
361
361
  :global(.venia-home-banner-b-content) {
362
362
  grid-column: 1 / span 1;
363
363
  margin: 0 1rem !important;
@@ -425,7 +425,7 @@
425
425
  justify-content: normal !important;
426
426
  }
427
427
 
428
- @media (max-width: 960px) {
428
+ @media screen(-lg) {
429
429
  :global(.venia-home-banner-text > div) {
430
430
  flex-direction: column !important;
431
431
  justify-content: center !important;
@@ -20,18 +20,13 @@
20
20
  composes: absolute from global;
21
21
  composes: left-0 from global;
22
22
  composes: top-0 from global;
23
-
24
- /* TODO @TW: review (B6) */
25
- /* composes: visible from global; */
26
- visibility: visible;
23
+ composes: visible from global;
27
24
  }
28
25
 
29
26
  .notLoaded {
30
27
  composes: loaded;
31
28
 
32
- /* TODO @TW: review (B6) */
33
- /* composes: invisible from global; */
34
- visibility: hidden;
29
+ @apply invisible;
35
30
  }
36
31
 
37
32
  .placeholder {
@@ -21,7 +21,7 @@
21
21
 
22
22
  .name {
23
23
  composes: overflow-hidden from global;
24
- composes: overflow-ellipsis from global;
24
+ composes: text-ellipsis from global;
25
25
  composes: whitespace-nowrap from global;
26
26
  }
27
27
 
@@ -1,5 +1,5 @@
1
1
  .root_active {
2
2
  composes: root_active from '../Mask/mask.module.css';
3
3
 
4
- composes: opacity-25 from global;
4
+ @apply opacity-25;
5
5
  }
@@ -14,16 +14,13 @@
14
14
  composes: top-0 from global;
15
15
  composes: w-full from global;
16
16
  composes: z-menu from global;
17
+ composes: invisible from global;
17
18
  box-shadow: -1px 0 rgb(var(--venia-global-color-border));
18
19
  grid-template-rows: min-content 1fr;
19
20
  transform: translate3d(100%, 0, 0);
20
21
  transition-duration: 192ms;
21
22
  transition-property: opacity, transform, visibility;
22
23
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
23
-
24
- /* TODO @TW: review (B6) */
25
- /* composes: invisible from global; */
26
- visibility: hidden;
27
24
  }
28
25
 
29
26
  /* state: open */
@@ -32,11 +29,8 @@
32
29
  composes: root;
33
30
 
34
31
  composes: opacity-100 from global;
32
+ @apply visible;
35
33
  transform: translate3d(0, 0, 0);
36
34
  transition-duration: 224ms;
37
35
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
38
-
39
- /* TODO @TW: review (B6) */
40
- /* composes: visible from global; */
41
- visibility: visible;
42
36
  }
@@ -2,9 +2,8 @@
2
2
  composes: root from '../clickable.module.css';
3
3
 
4
4
  composes: font-semibold from global;
5
- composes: leading-tight from global;
5
+ @apply leading-tight;
6
6
  composes: max-w-full from global;
7
- composes: text-colorDefault from global;
8
7
  composes: text-brand-dark from global;
9
8
  composes: underline from global;
10
9
 
@@ -14,10 +14,10 @@
14
14
  .global {
15
15
  composes: root;
16
16
 
17
- composes: fixed from global;
18
- composes: h-full from global;
17
+ @apply fixed;
18
+ @apply h-full;
19
19
  composes: left-0 from global;
20
- composes: m-0 from global;
20
+ @apply m-0;
21
21
  composes: top-0 from global;
22
22
  composes: w-full from global;
23
23
  }
@@ -20,19 +20,19 @@
20
20
  composes: page;
21
21
  }
22
22
 
23
- @media (min-height: 640px) {
23
+ @media screen(hsm) {
24
24
  .page {
25
25
  min-height: 48rem;
26
26
  }
27
27
  }
28
28
 
29
- @media (min-height: 768px) {
29
+ @media screen(hmd) {
30
30
  .page {
31
31
  min-height: 60rem;
32
32
  }
33
33
  }
34
34
 
35
- @media (min-height: 960px) {
35
+ @media screen(hlg) {
36
36
  .page {
37
37
  min-height: 72rem;
38
38
  }
@@ -10,22 +10,16 @@
10
10
  composes: top-0 from global;
11
11
  composes: w-full from global;
12
12
  composes: z-mask from global;
13
+ composes: invisible from global;
13
14
  transition-duration: 192ms;
14
15
  transition-property: opacity, visibility;
15
16
  transition-timing-function: linear;
16
-
17
- /* TODO @TW: review (B6) */
18
- /* composes: invisible from global; */
19
- visibility: hidden;
20
17
  }
21
18
 
22
19
  .root_active {
23
20
  composes: root;
24
21
 
25
- composes: opacity-50 from global;
22
+ @apply opacity-50;
23
+ @apply visible;
26
24
  transition-duration: 224ms;
27
-
28
- /* TODO @TW: review (B6) */
29
- /* composes: visible from global; */
30
- visibility: visible;
31
25
  }
@@ -24,8 +24,7 @@
24
24
  composes: pl-2xs from global;
25
25
  }
26
26
 
27
- /* TODO @TW: cannot compose */
28
27
  .megaMenuItem:hover .megaMenuLink,
29
28
  .megaMenuItem:focus .megaMenuLink {
30
- text-decoration: underline;
29
+ @apply underline;
31
30
  }
@@ -9,18 +9,18 @@
9
9
  composes: right-0 from global;
10
10
  top: 80px;
11
11
  box-shadow: 0 3px rgb(var(--venia-global-color-gray-100));
12
+
13
+ composes: before_content-empty from global;
14
+ composes: before_h-2.5 from global;
15
+ composes: before_left-0 from global;
16
+ composes: before_pointer-events-none from global;
17
+ composes: before_absolute from global;
18
+ composes: before_right-0 from global;
19
+ composes: before_top-0 from global;
12
20
  }
13
21
 
14
- /* TODO @TW: cannot compose */
15
22
  .submenu::before {
16
23
  box-shadow: inset 0 2px rgb(var(--venia-global-color-gray-100));
17
- content: '';
18
- height: 10px;
19
- left: 0;
20
- pointer-events: none;
21
- position: absolute;
22
- right: 0;
23
- top: 0;
24
24
  }
25
25
 
26
26
  .submenu_inactive {
@@ -15,7 +15,7 @@
15
15
  .root_disabled {
16
16
  composes: root;
17
17
 
18
- composes: opacity-50 from global;
18
+ @apply opacity-50;
19
19
  }
20
20
 
21
21
  .thumbnailContainer {
@@ -53,7 +53,7 @@ const MiniCart = React.forwardRef((props, ref) => {
53
53
  } = talonProps;
54
54
 
55
55
  const classes = useStyle(defaultClasses, props.classes);
56
- const rootClass = isOpen ? classes.root_open : classes.root;
56
+ const rootClass = isOpen ? classes.root_open : classes.root_closed;
57
57
  const contentsClass = isOpen ? classes.contents_open : classes.contents;
58
58
  const quantityClassName = loading
59
59
  ? classes.quantity_loading
@@ -192,6 +192,7 @@ export default MiniCart;
192
192
  MiniCart.propTypes = {
193
193
  classes: shape({
194
194
  root: string,
195
+ root_closed: string,
195
196
  root_open: string,
196
197
  contents: string,
197
198
  contents_open: string,