@magento/venia-ui 10.3.0 → 11.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -9,7 +9,7 @@
9
9
  .root_hidden {
10
10
  composes: root;
11
11
 
12
- composes: hidden from global;
12
+ @apply hidden;
13
13
  }
14
14
 
15
15
  .header {
@@ -19,7 +19,7 @@
19
19
  .contentContainer {
20
20
  composes: border-0 from global;
21
21
  composes: p-0 from global;
22
- composes: rounded-md from global;
22
+ composes: rounded-box from global;
23
23
 
24
24
  composes: lg_border-2 from global;
25
25
  composes: lg_border-solid from global;
@@ -30,26 +30,26 @@
30
30
  .signInRoot {
31
31
  composes: root from '../../SignIn/signIn.module.css';
32
32
 
33
- composes: px-0 from global;
34
- composes: py-xs from global;
33
+ @apply px-0;
34
+ @apply py-xs;
35
35
 
36
- composes: lg_p-0 from global;
36
+ @apply lg_p-0;
37
37
  }
38
38
 
39
39
  .forgotPasswordRoot {
40
40
  composes: root from '../../ForgotPassword/forgotPassword.module.css';
41
41
 
42
- composes: px-0 from global;
43
- composes: py-xs from global;
42
+ @apply px-0;
43
+ @apply py-xs;
44
44
 
45
- composes: lg_p-0 from global;
45
+ @apply lg_p-0;
46
46
  }
47
47
 
48
48
  .createAccountRoot {
49
49
  composes: root from '../../CreateAccount/createAccount.module.css';
50
50
 
51
- composes: px-0 from global;
52
- composes: py-xs from global;
51
+ @apply px-0;
52
+ @apply py-xs;
53
53
 
54
- composes: lg_p-0 from global;
54
+ @apply lg_p-0;
55
55
  }
@@ -2,7 +2,7 @@
2
2
  composes: border-2 from global;
3
3
  composes: border-solid from global;
4
4
  composes: border-subtle from global;
5
- composes: rounded-md from global;
5
+ composes: rounded-box from global;
6
6
  min-height: 2rem;
7
7
  }
8
8
 
@@ -10,8 +10,7 @@
10
10
  composes: py-sm from global;
11
11
 
12
12
  composes: lg_gap-md from global;
13
- /* TODO @TW: review (B7) */
14
- composes: lg_grid-cols-[2fr,1fr] from global;
13
+ composes: lg_grid-cols-[2fr_1fr] from global;
15
14
  composes: lg_px-lg from global;
16
15
  composes: lg_py-md from global;
17
16
  }
@@ -8,7 +8,7 @@
8
8
  composes: lg_border-2 from global;
9
9
  composes: lg_border-solid from global;
10
10
  composes: lg_border-subtle from global;
11
- composes: lg_rounded-md from global;
11
+ composes: lg_rounded-box from global;
12
12
  composes: lg_mt-0 from global;
13
13
  composes: lg_p-md from global;
14
14
  }
@@ -5,22 +5,22 @@
5
5
  composes: text-error from global;
6
6
  }
7
7
 
8
- /* TODO @TW: cannot compose */
9
8
  div[data-braintree-id='card'] {
10
- border: none;
9
+ @apply border-0;
11
10
  }
12
11
 
13
- /* TODO @TW: cannot compose */
14
12
  div[data-braintree-id='card-sheet-header'] {
15
- display: none;
13
+ @apply hidden;
16
14
  }
17
15
 
18
- /* TODO @TW: cannot compose */
19
16
  div[class*='braintree-sheet__content--form'] {
20
17
  /**
21
18
  This is needed to override padding on the dropin
22
19
  component. If we use padding-top instead it just
23
20
  overrides the padding-top not whole padding.
24
21
  */
25
- padding: 1rem 0 0 0;
22
+ @apply pt-4;
23
+ @apply pr-0;
24
+ @apply pb-0;
25
+ @apply pl-0;
26
26
  }
@@ -8,7 +8,7 @@
8
8
  composes: border-2 from global;
9
9
  composes: border-solid from global;
10
10
  composes: border-subtle from global;
11
- composes: rounded-md from global;
11
+ composes: rounded-box from global;
12
12
  }
13
13
 
14
14
  .loading {
@@ -16,10 +16,8 @@
16
16
  composes: pt-xs from global;
17
17
  }
18
18
 
19
- /* TODO @TW: cannot compose */
20
19
  .payment_method:last-of-type {
21
- /* composes: border-b-0 from global; */
22
- border-bottom-width: 0;
20
+ @apply border-b-0;
23
21
  }
24
22
 
25
23
  .radio_label {
@@ -42,12 +42,12 @@
42
42
  composes: p-xs from global;
43
43
  }
44
44
 
45
- .regionError {
46
- color: brown;
47
- font-weight: 600;
48
- }
45
+ @media screen(-lg) {
46
+ .regionError {
47
+ color: brown;
48
+ font-weight: 600;
49
+ }
49
50
 
50
- @media (max-width: 959px) {
51
51
  .firstname {
52
52
  grid-column: 1 / span 2;
53
53
  }
@@ -36,12 +36,12 @@
36
36
  composes: p-xs from global;
37
37
  }
38
38
 
39
- .regionError {
40
- color: brown;
41
- font-weight: 600;
42
- }
39
+ @media screen(-lg) {
40
+ .regionError {
41
+ color: brown;
42
+ font-weight: 600;
43
+ }
43
44
 
44
- @media (max-width: 959px) {
45
45
  .firstname {
46
46
  grid-column: 1 / span 2;
47
47
  }
@@ -18,9 +18,7 @@
18
18
  transition-timing-function: var(--venia-global-anim-out);
19
19
  transition-property: opacity, transform, visibility;
20
20
 
21
- /* TODO @TW: review (B6) */
22
- /* composes: invisible from global; */
23
- visibility: hidden;
21
+ @apply invisible;
24
22
 
25
23
  composes: lg_h-auto from global;
26
24
  composes: lg_max-h-modal from global;
@@ -28,13 +26,13 @@
28
26
  composes: lg_top-[5vh] from global;
29
27
  }
30
28
 
31
- @media (max-width: 959px) {
29
+ @media screen(-lg) {
32
30
  .root {
33
31
  transform: translate3d(100%, 0, 0);
34
32
  }
35
33
  }
36
34
 
37
- @media (min-width: 960px) {
35
+ @media screen(lg) {
38
36
  /* TODO @TW: review */
39
37
  .root {
40
38
  left: calc(50% - 370px);
@@ -44,18 +42,16 @@
44
42
  .root_open {
45
43
  composes: root;
46
44
 
47
- composes: opacity-100 from global;
45
+ @apply opacity-100;
48
46
  composes: shadow-modal from global;
49
47
  transform: scale(1);
50
48
  transition-duration: 224ms;
51
49
  transition-timing-function: var(--venia-global-anim-in);
52
50
 
53
- /* TODO @TW: review (B6) */
54
- /* composes: visible from global; */
55
- visibility: visible;
51
+ @apply visible;
56
52
  }
57
53
 
58
- @media (max-width: 959px) {
54
+ @media screen(-lg) {
59
55
  .root_open {
60
56
  composes: root;
61
57
 
@@ -1,22 +1,18 @@
1
1
  .root {
2
- /* TODO @TW: review (B6) */
3
2
  composes: border-2 from global;
4
3
  composes: border-solid from global;
5
4
  composes: border-subtle from global;
6
5
  composes: p-md from global;
7
- composes: rounded-md from global;
6
+ composes: rounded-box from global;
8
7
  }
9
8
 
10
9
  .root_editMode {
11
10
  composes: root;
12
11
 
13
- /* TODO @TW: review (B6) */
14
- composes: border-0 from global;
15
- composes: border-b-2 from global;
16
- composes: border-solid from global;
17
- composes: border-subtle from global;
18
- composes: p-0 from global;
19
- composes: rounded-none from global;
12
+ @apply border-0;
13
+ @apply border-b-2;
14
+ @apply p-0;
15
+ @apply rounded-none;
20
16
  }
21
17
 
22
18
  .root_updated {
@@ -5,15 +5,13 @@
5
5
  composes: grid from global;
6
6
  composes: gap-y-xs from global;
7
7
  composes: p-md from global;
8
- composes: rounded-md from global;
8
+ composes: rounded-box from global;
9
9
  }
10
10
 
11
11
  .done {
12
12
  composes: root;
13
13
 
14
14
  composes: border-2 from global;
15
- composes: border-solid from global;
16
- composes: border-subtle from global;
17
15
  }
18
16
 
19
17
  .editingHeading {
@@ -8,21 +8,19 @@
8
8
  composes: lg_px-lg from global;
9
9
  }
10
10
 
11
- /* prettier-ignore */
12
11
  .checkoutContent {
13
12
  composes: gap-xs from global;
14
13
  composes: grid from global;
15
14
  composes: grid-cols-1 from global;
16
15
 
17
16
  composes: lg_gap-md from global;
18
- /* TODO @TW: review (B7) */
19
- composes: lg_grid-cols-[2fr,1fr] from global;
17
+ composes: lg_grid-cols-[2fr_1fr] from global;
20
18
  }
21
19
 
22
20
  .checkoutContent_hidden {
23
21
  composes: checkoutContent;
24
22
 
25
- composes: hidden from global;
23
+ @apply hidden;
26
24
  }
27
25
 
28
26
  .heading_container {
@@ -39,7 +37,7 @@
39
37
  .cartLink {
40
38
  composes: root from '../LinkButton/linkButton.module.css';
41
39
 
42
- composes: text-inherit from global;
40
+ @apply text-inherit;
43
41
  }
44
42
 
45
43
  .stepper_heading {
@@ -60,10 +58,10 @@
60
58
 
61
59
  .payment_information_heading {
62
60
  composes: stepper_heading;
63
- composes: border-b-0 from global;
61
+ @apply border-b-0;
64
62
 
65
63
  /* On mobile, order summary has a top border, so avoid doubling up. */
66
- composes: lg_border-b from global;
64
+ @apply lg_border-b;
67
65
  }
68
66
 
69
67
  .signInContainer {
@@ -77,7 +75,7 @@
77
75
  composes: justify-items-center from global;
78
76
  composes: mb-xs from global;
79
77
  composes: p-xs from global;
80
- composes: rounded-md from global;
78
+ composes: rounded-box from global;
81
79
  composes: row-start-1 from global;
82
80
 
83
81
  composes: lg_grid-flow-col from global;
@@ -92,10 +90,10 @@
92
90
  .signInButton {
93
91
  composes: root_normalPriority from '../Button/button.module.css';
94
92
 
95
- composes: min-h-auto from global;
96
- composes: min-w-auto from global;
97
- composes: px-md from global;
98
- composes: py-1 from global;
93
+ @apply min-h-auto;
94
+ @apply min-w-auto;
95
+ @apply px-md;
96
+ @apply py-1;
99
97
  }
100
98
 
101
99
  .empty_cart_container {
@@ -133,7 +131,7 @@
133
131
  composes: lg_top-[6rem] from global;
134
132
  }
135
133
 
136
- @media (min-width: 960px) {
134
+ @media screen(lg) {
137
135
  .summaryContainer {
138
136
  grid-column: 2 / span 1;
139
137
  grid-row: 2 / span 3;
@@ -2,18 +2,16 @@
2
2
  composes: m-xs from global;
3
3
  }
4
4
 
5
- /* TODO @TW: cannot compose */
6
5
  .content h2 {
7
- margin-bottom: 2rem;
8
- text-align: center;
9
- text-transform: uppercase;
6
+ @apply mb-8;
7
+ @apply text-center;
8
+ @apply uppercase;
10
9
  }
11
10
 
12
- /* TODO @TW: cannot compose */
13
11
  .content img {
14
- display: block;
15
- height: auto;
16
- max-height: 100%;
17
- max-width: 100%;
18
- width: auto;
12
+ @apply block;
13
+ @apply h-auto;
14
+ @apply w-auto;
15
+ @apply max-h-full;
16
+ @apply max-w-full;
19
17
  }
@@ -20,7 +20,7 @@
20
20
  height: 500px;
21
21
  }
22
22
 
23
- @media only screen and (min-width: 769px) {
23
+ @media screen(md) {
24
24
  .shimmerBanner {
25
25
  height: 300px;
26
26
  }
@@ -12,11 +12,8 @@
12
12
  composes: p-xs from global;
13
13
  composes: rounded from global;
14
14
  composes: text-sm from global;
15
- }
16
15
 
17
- /* TODO @TW: cannot compose */
18
- .message:empty {
19
- display: none;
16
+ composes: empty_hidden from global;
20
17
  }
21
18
 
22
19
  .actions {
@@ -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
  }
@@ -11,28 +11,22 @@
11
11
  composes: top-0 from global;
12
12
  composes: w-full from global;
13
13
  composes: z-dialog from global;
14
+ composes: invisible from global;
14
15
  transform: translate3d(-50%, 0, 0);
15
16
  transition: opacity 192ms var(--venia-global-anim-out),
16
17
  visibility 192ms var(--venia-global-anim-out), left 0s 192ms;
17
18
 
18
- /* TODO @TW: review (B6) */
19
- /* composes: invisible from global; */
20
- visibility: hidden;
21
-
22
19
  composes: lg_right-auto from global;
23
20
  }
24
21
 
25
22
  .root_open {
26
23
  composes: root;
27
24
 
28
- composes: left-auto from global;
29
- composes: opacity-100 from global;
30
-
31
- composes: lg_left-1/2 from global;
25
+ @apply left-auto;
26
+ @apply opacity-100;
27
+ @apply visible;
32
28
 
33
- /* TODO @TW: review (B6) */
34
- /* composes: visible from global; */
35
- visibility: visible;
29
+ @apply lg_left-1/2;
36
30
 
37
31
  /* It animates to being open. */
38
32
  transition: opacity 224ms var(--venia-global-anim-in),
@@ -116,7 +110,7 @@
116
110
  .headerText {
117
111
  composes: capitalize from global;
118
112
  composes: leading-tight from global;
119
- composes: overflow-ellipsis from global;
113
+ composes: text-ellipsis from global;
120
114
  composes: overflow-hidden from global;
121
115
  composes: text-subtle from global;
122
116
  composes: whitespace-nowrap from global;
@@ -173,7 +167,7 @@
173
167
  * dialogs slide out from the right.
174
168
  */
175
169
 
176
- @media (max-width: 959px) {
170
+ @media screen(-lg) {
177
171
  .root {
178
172
  /* The Dialog starts off-screen on the right. */
179
173
  transform: translate3d(100%, 0, 0);
@@ -37,7 +37,7 @@
37
37
  .actionsContainer {
38
38
  }
39
39
 
40
- @media (max-width: 639px) {
40
+ @media screen(-sm) {
41
41
  .root {
42
42
  background-image: var(--mobileBackgroundImageUrl);
43
43
  /* two row grid because the "hangers" are on the top of the page */
@@ -27,7 +27,7 @@
27
27
  composes: inline-flex from global;
28
28
  composes: m-0 from global;
29
29
  composes: max-w-full from global;
30
- composes: rounded-md from global;
30
+ composes: rounded-input from global;
31
31
  composes: text-colorDefault from global;
32
32
  composes: text-colorDefault from global;
33
33
  composes: w-full from global;
@@ -47,4 +47,5 @@
47
47
  composes: font-normal from global;
48
48
  composes: text-sm from global;
49
49
  composes: text-subtle from global;
50
+ composes: leading-none from global;
50
51
  }
@@ -14,10 +14,13 @@
14
14
  grid-row: input-start / input-end;
15
15
  }
16
16
 
17
- /* TODO @TW: cannot compose */
18
17
  .input > input {
19
- padding-left: calc(1.875rem * var(--iconsBefore) + 0.625rem);
20
- padding-right: calc(1.875rem * var(--iconsAfter) + 0.625rem);
18
+ padding-left: calc(
19
+ theme(spacing[7.5]) * var(--iconsBefore) + theme(spacing[2.5])
20
+ );
21
+ padding-right: calc(
22
+ theme(spacing[7.5]) * var(--iconsAfter) + theme(spacing[2.5])
23
+ );
21
24
  }
22
25
 
23
26
  .before,
@@ -30,12 +33,7 @@
30
33
  composes: pointer-events-none from global;
31
34
  composes: w-[2.5rem] from global;
32
35
  composes: z-foreground from global;
33
- }
34
-
35
- /* TODO @TW: cannot compose */
36
- .before:empty,
37
- .after:empty {
38
- display: none;
36
+ composes: empty_hidden from global;
39
37
  }
40
38
 
41
39
  .before {
@@ -46,8 +44,6 @@
46
44
  grid-area: after;
47
45
  }
48
46
 
49
- /* TODO @TW: cannot compose */
50
47
  .before svg {
51
- /* composes: stroke-gray-600 from global; */
52
- stroke: rgb(var(--venia-global-color-gray-600));
48
+ @apply stroke-gray-600;
53
49
  }
@@ -6,16 +6,12 @@
6
6
  composes: px-0.5 from global;
7
7
  composes: text-colorDefault from global;
8
8
  composes: text-sm from global;
9
- }
10
-
11
- /* TODO @TW: cannot compose */
12
- .root:empty {
13
- display: none;
9
+ composes: empty_hidden from global;
14
10
  }
15
11
 
16
12
  .root_error {
17
13
  composes: root;
18
14
 
19
- composes: font-semibold from global;
20
- composes: text-error from global;
15
+ @apply font-semibold;
16
+ @apply text-error;
21
17
  }
@@ -14,8 +14,6 @@
14
14
  composes: text-white from global;
15
15
  }
16
16
 
17
- /* TODO @TW: cannot compose */
18
17
  .root svg {
19
- /* composes: stroke-white from global; */
20
- stroke: rgb(var(--venia-global-color-gray-50));
18
+ @apply stroke-white;
21
19
  }
@@ -2,11 +2,8 @@
2
2
  composes: px-xs from global;
3
3
  composes: py-0 from global;
4
4
  composes: overflow-auto from global;
5
- }
6
5
 
7
- /* TODO @TW: cannot compose */
8
- .root:empty {
9
- display: none;
6
+ composes: empty_hidden from global;
10
7
  }
11
8
 
12
9
  .item {
@@ -22,9 +22,5 @@
22
22
  }
23
23
 
24
24
  .list {
25
- }
26
-
27
- /* TODO @TW: cannot compose */
28
- .list:empty {
29
- display: none;
25
+ composes: empty_hidden from global;
30
26
  }
@@ -11,15 +11,12 @@
11
11
  composes: top-0 from global;
12
12
  composes: w-full from global;
13
13
  composes: z-dialog from global;
14
+ composes: invisible from global;
14
15
  grid-template-rows: 1fr 7rem;
15
16
  transform: translate3d(-100%, 0, 0);
16
17
  transition-duration: 192ms;
17
18
  transition-timing-function: var(--venia-global-anim-out);
18
19
  transition-property: opacity, transform, visibility;
19
-
20
- /* TODO @TW: review (B6) */
21
- /* composes: invisible from global; */
22
- visibility: hidden;
23
20
  }
24
21
 
25
22
  .root_open {
@@ -27,13 +24,10 @@
27
24
 
28
25
  composes: opacity-100 from global;
29
26
  composes: shadow-modal from global;
27
+ @apply visible;
30
28
  transform: translate3d(0, 0, 0);
31
29
  transition-duration: 224ms;
32
30
  transition-timing-function: var(--venia-global-anim-in);
33
-
34
- /* TODO @TW: review (B6) */
35
- /* composes: visible from global; */
36
- visibility: visible;
37
31
  }
38
32
 
39
33
  .body {
@@ -64,12 +58,9 @@
64
58
  composes: px-xs from global;
65
59
  }
66
60
 
67
- /* TODO @TW: cannot compose */
68
61
  .action button {
69
- /* composes: text-sm from global; */
70
- font-size: 0.875rem;
71
- /* composes: no-underline from global; */
72
- text-decoration: none;
62
+ @apply text-sm;
63
+ @apply no-underline;
73
64
  }
74
65
 
75
66
  .blocks {
@@ -78,10 +69,8 @@
78
69
  composes: px-xs from global;
79
70
  }
80
71
 
81
- /* TODO @TW: cannot compose */
82
72
  .blocks > li:last-child {
83
- /* composes: border-b-2 from global; */
84
- /* composes: border-solid from global; */
85
- /* composes: border-subtle from global; */
86
- border-bottom: 2px solid rgb(var(--venia-global-color-border));
73
+ @apply border-b-2;
74
+ @apply border-solid;
75
+ @apply border-subtle;
87
76
  }
@@ -1,7 +1,7 @@
1
1
  .filterButton {
2
2
  composes: root_lowPriority from '../Button/button.module.css';
3
3
 
4
- composes: min-w-[6.25rem] from global;
4
+ @apply min-w-[6.25rem];
5
5
 
6
- composes: lg_hidden from global;
6
+ @apply lg_hidden;
7
7
  }