@riosst100/pwa-marketplace 1.8.8 → 1.9.0

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 (260) hide show
  1. package/i18n/en_US.json +9 -9
  2. package/package.json +1 -2
  3. package/src/componentOverrideMapping.js +15 -1
  4. package/src/components/AccountLayout/accountlayout.module.css +3 -0
  5. package/src/components/AccountLayout/index.js +147 -0
  6. package/src/components/BecomeSeller/becomeSeller.js +304 -178
  7. package/src/components/BecomeSeller/becomeSeller.module.css +3 -3
  8. package/src/components/BecomeSellerPage/becomeSellerPage.js +2 -1
  9. package/src/components/BecomeSellerPage/becomeSellerPage.module.css +2 -10
  10. package/src/components/LegoSets/legoSets.js +48 -18
  11. package/src/components/LiveChat/chatContent.js +39 -0
  12. package/src/components/LiveChat/index.js +52 -0
  13. package/src/components/LiveChat/liveChat.js +160 -0
  14. package/src/components/NonSportCardsSets/nonSportCardsSets.js +15 -2
  15. package/src/components/SellerCountry/sellerCountry.js +1 -1
  16. package/src/components/SellerDetail/sellerDetail.js +34 -3
  17. package/src/components/ShopBy/shopBy.js +99 -4
  18. package/src/components/ShopBy/shopBy.module.css +22 -0
  19. package/src/components/ShopByVehicles/index.js +2 -0
  20. package/src/components/ShopByVehicles/shopByVehicles.js +327 -0
  21. package/src/components/ShopByVehicles/shopByVehicles.module.css +76 -0
  22. package/src/components/ShopByVehicles/shopByVehicles.shimmer.js +50 -0
  23. package/src/components/SocialLogin/img/facebook.svg +3 -0
  24. package/src/components/SocialLogin/img/google.svg +6 -0
  25. package/src/components/SocialLogin/img/instagram.svg +27 -0
  26. package/src/components/SocialLogin/img/wechat.svg +15 -0
  27. package/src/components/SocialLogin/img/weibo.svg +7 -0
  28. package/src/components/SocialLogin/index.js +10 -0
  29. package/src/components/SocialLogin/socialLogin.js +70 -0
  30. package/src/components/SportCardsSets/sportCardsSets.js +6 -1
  31. package/src/components/TrainsSets/index.js +2 -0
  32. package/src/components/TrainsSets/trainsSets.js +331 -0
  33. package/src/components/TrainsSets/trainsSets.module.css +76 -0
  34. package/src/components/TrainsSets/trainsSets.shimmer.js +49 -0
  35. package/src/overwrites/venia-ui/lib/RootComponents/Category/category.js +5 -0
  36. package/src/overwrites/venia-ui/lib/RootComponents/Category/categoryContent.js +4 -0
  37. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.gql.js +48 -0
  38. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.js +147 -0
  39. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.module.css +52 -0
  40. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPageFragment.gql.js +10 -0
  41. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.js +206 -0
  42. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.module.css +40 -0
  43. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.js +107 -0
  44. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.module.css +3 -0
  45. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/index.js +14 -0
  46. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.js +107 -0
  47. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.module.css +73 -0
  48. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.js +58 -0
  49. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.module.css +31 -0
  50. package/src/overwrites/venia-ui/lib/components/AccountMenu/index.js +1 -0
  51. package/src/overwrites/venia-ui/lib/components/Button/button.js +1 -1
  52. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.js +50 -0
  53. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.module.css +11 -0
  54. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.js +238 -0
  55. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.module.css +98 -0
  56. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/index.js +1 -0
  57. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +178 -0
  58. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.module.css +52 -0
  59. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/index.js +1 -0
  60. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +321 -0
  61. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.module.css +61 -0
  62. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/index.js +1 -0
  63. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/index.js +1 -0
  64. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.js +103 -0
  65. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.module.css +36 -0
  66. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.js +103 -0
  67. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.module.css +33 -0
  68. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.js +37 -0
  69. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.module.css +3 -0
  70. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.js +106 -0
  71. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.module.css +10 -0
  72. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ce.js +7 -0
  73. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ee.js +28 -0
  74. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ce.js +7 -0
  75. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ee.js +38 -0
  76. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/index.js +1 -0
  77. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +95 -0
  78. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.module.css +2 -0
  79. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.js +123 -0
  80. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.module.css +40 -0
  81. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ce.js +1 -0
  82. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ee.js +60 -0
  83. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ce.js +5 -0
  84. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ee.js +40 -0
  85. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/index.js +1 -0
  86. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.js +210 -0
  87. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.module.css +51 -0
  88. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/shippingSummary.js +58 -0
  89. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/taxSummary.js +57 -0
  90. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/editModal.js +41 -0
  91. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/index.js +1 -0
  92. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.js +80 -0
  93. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.module.css +33 -0
  94. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.js +153 -0
  95. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.module.css +52 -0
  96. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.js +31 -0
  97. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.module.css +13 -0
  98. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/index.js +1 -0
  99. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.js +271 -0
  100. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.module.css +156 -0
  101. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.js +94 -0
  102. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.module.css +11 -0
  103. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/quantity.js +40 -0
  104. package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.js +126 -0
  105. package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.module.css +64 -0
  106. package/src/overwrites/venia-ui/lib/components/CartPage/index.js +1 -0
  107. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.js +190 -0
  108. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.module.css +78 -0
  109. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.js +125 -0
  110. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.module.css +94 -0
  111. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/index.js +1 -0
  112. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.js +213 -0
  113. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.module.css +36 -0
  114. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/index.js +1 -0
  115. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.js +93 -0
  116. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.module.css +55 -0
  117. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/index.js +1 -0
  118. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/__fixtures__/cartItems.js +102 -0
  119. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/index.js +1 -0
  120. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.js +54 -0
  121. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.module.css +60 -0
  122. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.js +84 -0
  123. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.module.css +20 -0
  124. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.js +38 -0
  125. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.module.css +28 -0
  126. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +213 -0
  127. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.module.css +24 -0
  128. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/index.js +1 -0
  129. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +162 -0
  130. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.module.css +70 -0
  131. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/index.js +1 -0
  132. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.js +34 -0
  133. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.module.css +17 -0
  134. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/brainTreeDropIn.js +196 -0
  135. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeDropin.module.css +26 -0
  136. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.js +160 -0
  137. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.module.css +62 -0
  138. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.js +348 -0
  139. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.module.css +58 -0
  140. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.js +44 -0
  141. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.module.css +5 -0
  142. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editModal.js +88 -0
  143. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editablePaymentCollection.js +23 -0
  144. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/index.js +1 -0
  145. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js +99 -0
  146. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.module.css +23 -0
  147. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethodCollection.js +23 -0
  148. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.js +121 -0
  149. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.module.css +34 -0
  150. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.js +71 -0
  151. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.module.css +23 -0
  152. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summaryPaymentCollection.js +23 -0
  153. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/index.js +1 -0
  154. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.js +63 -0
  155. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.module.css +2 -0
  156. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/addressForm.js +18 -0
  157. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +401 -0
  158. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.module.css +58 -0
  159. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +455 -0
  160. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.module.css +52 -0
  161. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/index.js +3 -0
  162. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.js +66 -0
  163. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.module.css +12 -0
  164. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.js +65 -0
  165. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.module.css +90 -0
  166. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/index.js +1 -0
  167. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +149 -0
  168. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.module.css +88 -0
  169. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.js +114 -0
  170. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.module.css +48 -0
  171. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/index.js +1 -0
  172. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +154 -0
  173. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.module.css +27 -0
  174. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.js +80 -0
  175. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.module.css +22 -0
  176. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.js +85 -0
  177. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.module.css +3 -0
  178. package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.js +472 -0
  179. package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.module.css +186 -0
  180. package/src/overwrites/venia-ui/lib/components/CheckoutPage/index.js +1 -0
  181. package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.js +323 -0
  182. package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.module.css +52 -0
  183. package/src/overwrites/venia-ui/lib/components/CreateAccount/index.js +1 -0
  184. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.js +48 -0
  185. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.module.css +21 -0
  186. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/index.js +1 -0
  187. package/src/overwrites/venia-ui/lib/components/Dialog/dialog.js +198 -0
  188. package/src/overwrites/venia-ui/lib/components/Dialog/dialog.module.css +189 -0
  189. package/src/overwrites/venia-ui/lib/components/Dialog/index.js +1 -0
  190. package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.js +8 -7
  191. package/src/overwrites/venia-ui/lib/components/Gallery/item.js +12 -4
  192. package/src/overwrites/venia-ui/lib/components/Gallery/item.module.css +2 -2
  193. package/src/overwrites/venia-ui/lib/components/Header/header.js +37 -2
  194. package/src/overwrites/venia-ui/lib/components/Main/main.js +1 -1
  195. package/src/overwrites/venia-ui/lib/components/MegaMenu/shopByColumn.js +3 -2
  196. package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.js +1 -1
  197. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/index.js +1 -0
  198. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.gql.js +22 -0
  199. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.js +143 -0
  200. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.module.css +53 -0
  201. package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.js +42 -0
  202. package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.module.css +33 -0
  203. package/src/overwrites/venia-ui/lib/components/MyAccount/index.js +1 -0
  204. package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.js +38 -0
  205. package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.module.css +5 -0
  206. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.js +71 -0
  207. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.module.css +9 -0
  208. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/index.js +1 -0
  209. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.js +121 -0
  210. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.module.css +35 -0
  211. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.js +70 -0
  212. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.module.css +16 -0
  213. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.js +207 -0
  214. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.module.css +102 -0
  215. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.js +159 -0
  216. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.module.css +50 -0
  217. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.js +45 -0
  218. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.module.css +14 -0
  219. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.js +90 -0
  220. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.module.css +9 -0
  221. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.js +86 -0
  222. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.module.css +19 -0
  223. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.js +63 -0
  224. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.module.css +16 -0
  225. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/index.js +15 -0
  226. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.js +227 -0
  227. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.module.css +70 -0
  228. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.js +70 -0
  229. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.module.css +14 -0
  230. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.js +324 -0
  231. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.module.css +146 -0
  232. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/resetButton.js +41 -0
  233. package/src/overwrites/venia-ui/lib/components/Password/index.js +1 -0
  234. package/src/overwrites/venia-ui/lib/components/Password/password.js +102 -0
  235. package/src/overwrites/venia-ui/lib/components/Password/password.module.css +26 -0
  236. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +30 -15
  237. package/src/overwrites/venia-ui/lib/components/Select/index.js +1 -0
  238. package/src/overwrites/venia-ui/lib/components/Select/option.js +28 -0
  239. package/src/overwrites/venia-ui/lib/components/Select/select.js +74 -0
  240. package/src/overwrites/venia-ui/lib/components/Select/select.module.css +25 -0
  241. package/src/overwrites/venia-ui/lib/components/SignIn/index.js +1 -0
  242. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.gql.js +50 -0
  243. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.js +224 -0
  244. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.module.css +65 -0
  245. package/src/overwrites/venia-ui/lib/components/SignInPage/index.js +1 -0
  246. package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.js +50 -0
  247. package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.module.css +17 -0
  248. package/src/overwrites/venia-ui/lib/components/TextInput/textInput.js +1 -1
  249. package/src/talons/Header/logo.gql.js +19 -0
  250. package/src/talons/Header/useLogo.js +19 -0
  251. package/src/talons/LegoSets/legoSets.gql.js +2 -2
  252. package/src/talons/LegoSets/useLegoSets.js +4 -2
  253. package/src/talons/NonSportCardsSets/useNonSportCardsSets.js +1 -1
  254. package/src/talons/ShopBy/shopBy.gql.js +2 -2
  255. package/src/talons/ShopBy/useShopBy.js +20 -9
  256. package/src/talons/ShopByVehicles/shopByVehicles.gql.js +60 -0
  257. package/src/talons/ShopByVehicles/useShopByVehicles.js +222 -0
  258. package/src/talons/SportCardsSets/useSportCardsSets.js +1 -1
  259. package/src/talons/TrainsSets/trainsSets.gql.js +60 -0
  260. package/src/talons/TrainsSets/useTrainsSets.js +223 -0
@@ -0,0 +1,31 @@
1
+ .root {
2
+ composes: gap-y-sm from global;
3
+ composes: grid from global;
4
+ composes: grid-flow-row from global;
5
+ composes: justify-stretch from global;
6
+ composes: p-sm from global;
7
+ }
8
+
9
+ .link {
10
+ composes: cursor-pointer from global;
11
+ composes: font-semibold from global;
12
+ composes: inline-flex from global;
13
+ composes: items-center from global;
14
+ composes: justify-start from global;
15
+ composes: leading-tight from global;
16
+ composes: max-w-full from global;
17
+ composes: no-underline from global;
18
+ composes: pointer-events-auto from global;
19
+ composes: text-subtle from global;
20
+
21
+ composes: hover_text-colorDefault from global;
22
+ }
23
+
24
+ .signOut {
25
+ composes: link;
26
+
27
+ composes: border-t-2 from global;
28
+ composes: border-solid from global;
29
+ composes: border-light from global;
30
+ composes: pt-xs from global;
31
+ }
@@ -0,0 +1 @@
1
+ export { default } from './accountMenu';
@@ -47,7 +47,7 @@ const Button = props => {
47
47
  return (
48
48
  <button
49
49
  ref={buttonRef}
50
- className={rootClassName}
50
+ className={cn(rootClassName, classes.rootClass)}
51
51
  {...buttonProps}
52
52
  {...restProps}
53
53
  >
@@ -0,0 +1,50 @@
1
+ import React, { Fragment } from 'react';
2
+ import { FormattedMessage } from 'react-intl';
3
+
4
+ import { useGiftCard } from '@magento/peregrine/lib/talons/CartPage/GiftCards/useGiftCard.js';
5
+ import Price from '@magento/venia-ui/lib/components/Price';
6
+
7
+ import { useStyle } from '@magento/venia-ui/lib/classify';
8
+ import defaultClasses from './giftCard.module.css';
9
+ import LinkButton from '@magento/venia-ui/lib/components/LinkButton';
10
+
11
+ const GiftCard = props => {
12
+ const { code, currentBalance, isRemovingCard, removeGiftCard } = props;
13
+
14
+ const { removeGiftCardWithCode } = useGiftCard({
15
+ code,
16
+ removeGiftCard
17
+ });
18
+
19
+ const classes = useStyle(defaultClasses, props.classes);
20
+
21
+ return (
22
+ <Fragment>
23
+ <div className={classes.card_info}>
24
+ <span className={classes.code}>{code}</span>
25
+ <span className={classes.balance}>
26
+ <FormattedMessage
27
+ id={'giftCard.balance'}
28
+ defaultMessage={'Balance: '}
29
+ />
30
+ <Price
31
+ value={currentBalance.value}
32
+ currencyCode={currentBalance.currency}
33
+ />
34
+ </span>
35
+ </div>
36
+ <LinkButton
37
+ disabled={isRemovingCard}
38
+ onClick={removeGiftCardWithCode}
39
+ data-cy="GiftCards-GiftCard-removeButton"
40
+ >
41
+ <FormattedMessage
42
+ id={'giftCard.remove'}
43
+ defaultMessage={'Remove'}
44
+ />
45
+ </LinkButton>
46
+ </Fragment>
47
+ );
48
+ };
49
+
50
+ export default GiftCard;
@@ -0,0 +1,11 @@
1
+ .card_info {
2
+ composes: grid from global;
3
+ composes: gap-y-2xs from global;
4
+ }
5
+
6
+ .balance {
7
+ composes: text-sm from global;
8
+ }
9
+
10
+ .code {
11
+ }
@@ -0,0 +1,238 @@
1
+ import React, { useEffect } from 'react';
2
+ import { FormattedMessage, useIntl } from 'react-intl';
3
+ import { Form } from 'informed';
4
+ import { AlertCircle as AlertCircleIcon } from 'react-feather';
5
+
6
+ import { useGiftCards } from '@magento/peregrine/lib/talons/CartPage/GiftCards/useGiftCards';
7
+ import { Price, useToasts } from '@magento/peregrine';
8
+
9
+ import { useStyle } from '@magento/venia-ui/lib/classify';
10
+ import { isRequired } from '@magento/venia-ui/lib/util/formValidators';
11
+ import Button from '@magento/venia-ui/lib/components/Button';
12
+ import Field from '@magento/venia-ui/lib/components/Field';
13
+ import Icon from '@magento/venia-ui/lib/components/Icon';
14
+ import LinkButton from '@magento/venia-ui/lib/components/LinkButton';
15
+ import LoadingIndicator from '@magento/venia-ui/lib/components/LoadingIndicator';
16
+ import TextInput from '@magento/venia-ui/lib/components/TextInput';
17
+ import defaultClasses from './giftCards.module.css';
18
+ import GiftCard from './giftCard';
19
+
20
+ const errorIcon = (
21
+ <Icon
22
+ src={AlertCircleIcon}
23
+ attrs={{
24
+ width: 18
25
+ }}
26
+ />
27
+ );
28
+
29
+ /**
30
+ * GiftCards is a child component of the CartPage component.
31
+ * This component shows a form for applying gift cards along with a list of applied
32
+ * Gift Cards in the shopping cart.
33
+ *
34
+ * @param {Object} props Component props
35
+ * @param {Function} props.setIsCartUpdating Callback function to call when adding or removing a gift card
36
+ * @param {Object} props.classes CSS className overrides.
37
+ * See [giftCards.module.css]{@link https://github.com/magento/pwa-studio/blob/develop/packages/venia-ui/lib/components/CartPage/GiftCards/giftCards.module.css}
38
+ * for a list of classes you can override.
39
+ *
40
+ * @returns {React.Element}
41
+ *
42
+ * @example <caption>Importing into your project</caption>
43
+ * import GiftCards from '@magento/venia-ui/lib/components/CartPage/GiftCards';
44
+ */
45
+ const GiftCards = props => {
46
+ const talonProps = useGiftCards({
47
+ setIsCartUpdating: props.setIsCartUpdating
48
+ });
49
+ const {
50
+ applyGiftCard,
51
+ checkBalanceData,
52
+ checkGiftCardBalance,
53
+ checkGiftCardBalanceKeyPress,
54
+ errorLoadingGiftCards,
55
+ errorRemovingCard,
56
+ giftCardsData,
57
+ handleEnterKeyPress,
58
+ isLoadingGiftCards,
59
+ isApplyingCard,
60
+ isCheckingBalance,
61
+ isRemovingCard,
62
+ removeGiftCard,
63
+ shouldDisplayCardBalance,
64
+ shouldDisplayCardError
65
+ } = talonProps;
66
+
67
+ const classes = useStyle(defaultClasses, props.classes);
68
+ const { formatMessage } = useIntl();
69
+ const [, { addToast }] = useToasts();
70
+ useEffect(() => {
71
+ if (errorRemovingCard) {
72
+ addToast({
73
+ type: 'error',
74
+ icon: errorIcon,
75
+ message: formatMessage({
76
+ id: 'giftCards.errorRemoving',
77
+ defaultMessage:
78
+ 'Unable to remove gift card. Please try again.'
79
+ }),
80
+ dismissable: true,
81
+ timeout: 7000
82
+ });
83
+ }
84
+ }, [addToast, errorRemovingCard, formatMessage]);
85
+
86
+ if (isLoadingGiftCards) {
87
+ return (
88
+ <LoadingIndicator>
89
+ <FormattedMessage
90
+ id={'giftCards.loading'}
91
+ defaultMessage={'Loading Gift Cards...'}
92
+ />
93
+ </LoadingIndicator>
94
+ );
95
+ }
96
+
97
+ const cardEntryErrorMessage = shouldDisplayCardError
98
+ ? formatMessage({
99
+ id: 'giftCards.errorInvalid',
100
+ defaultMessage: 'Invalid card. Please try again.'
101
+ })
102
+ : null;
103
+
104
+ let appliedGiftCards = null;
105
+ if (errorLoadingGiftCards) {
106
+ appliedGiftCards = (
107
+ <span className={classes.errorText}>
108
+ <FormattedMessage
109
+ id={'giftCards.errorLoading'}
110
+ defaultMessage={
111
+ 'There was an error loading applied gift cards. Please refresh and try again.'
112
+ }
113
+ />
114
+ </span>
115
+ );
116
+ }
117
+ if (giftCardsData.length > 0) {
118
+ const cardList = giftCardsData.map(giftCardData => {
119
+ const { code, current_balance } = giftCardData;
120
+
121
+ return (
122
+ <GiftCard
123
+ code={code}
124
+ currentBalance={current_balance}
125
+ isRemovingCard={isRemovingCard}
126
+ key={code}
127
+ removeGiftCard={removeGiftCard}
128
+ />
129
+ );
130
+ });
131
+
132
+ appliedGiftCards = (
133
+ <div className={classes.cards_container}>{cardList}</div>
134
+ );
135
+ }
136
+
137
+ const containerClass = shouldDisplayCardError
138
+ ? classes.card_input_container_error
139
+ : classes.card_input_container;
140
+
141
+ const cardBalance = (
142
+ <div className={classes.balance}>
143
+ {checkBalanceData && shouldDisplayCardBalance ? (
144
+ <div className={classes.price}>
145
+ <FormattedMessage
146
+ id={'giftCards.balance'}
147
+ defaultMessage={'Balance: '}
148
+ />
149
+ <Price
150
+ value={checkBalanceData.balance.value}
151
+ currencyCode={checkBalanceData.balance.currency}
152
+ />
153
+ </div>
154
+ ) : (
155
+ <span className={classes.invalid_card_error}>
156
+ {cardEntryErrorMessage}
157
+ </span>
158
+ )}
159
+ </div>
160
+ );
161
+
162
+ const cardEntryContents = (
163
+ <div className={classes.card}>
164
+ <Field
165
+ classes={{
166
+ root: classes.entry
167
+ }}
168
+ id={classes.card}
169
+ label={formatMessage({
170
+ id: 'giftCards.cardNumber',
171
+ defaultMessage: 'Gift Card Number'
172
+ })}
173
+ >
174
+ <div className={containerClass}>
175
+ <TextInput
176
+ id={classes.card}
177
+ data-cy="GiftCards-card"
178
+ disabled={isApplyingCard || isCheckingBalance}
179
+ field="card"
180
+ mask={value => value && value.trim()}
181
+ maskOnBlur={true}
182
+ // message={cardEntryErrorMessage}
183
+ placeholder={formatMessage({
184
+ id: 'giftCards.cardEntry',
185
+ defaultMessage: 'Enter card number'
186
+ })}
187
+ validate={isRequired}
188
+ />
189
+ </div>
190
+ <span aria-live="polite">{cardBalance}</span>
191
+ </Field>
192
+ <Field
193
+ classes={{
194
+ label: classes.applyLabel
195
+ }}
196
+ >
197
+ <Button
198
+ priority={'normal'}
199
+ data-cy="GiftCards-apply"
200
+ disabled={isApplyingCard}
201
+ onClick={applyGiftCard}
202
+ onKeyDown={handleEnterKeyPress}
203
+ >
204
+ <FormattedMessage
205
+ id={'giftCards.apply'}
206
+ defaultMessage={'Apply'}
207
+ />
208
+ </Button>
209
+ </Field>
210
+ <LinkButton
211
+ className={classes.check_balance_button}
212
+ disabled={isCheckingBalance}
213
+ onClick={checkGiftCardBalance}
214
+ onKeyDown={checkGiftCardBalanceKeyPress}
215
+ >
216
+ <FormattedMessage
217
+ id={'giftCards.checkBalance'}
218
+ defaultMessage={'Check balance'}
219
+ />
220
+ </LinkButton>
221
+ </div>
222
+ );
223
+
224
+ return (
225
+ <div className={classes.root}>
226
+ <div className={classes.entryForm}>{cardEntryContents}</div>
227
+ {appliedGiftCards}
228
+ </div>
229
+ );
230
+ };
231
+
232
+ export default props => {
233
+ return (
234
+ <Form data-cy="GiftCards-form">
235
+ <GiftCards {...props} />
236
+ </Form>
237
+ );
238
+ };
@@ -0,0 +1,98 @@
1
+ .root {
2
+ composes: grid from global;
3
+ composes: gap-md from global;
4
+ }
5
+
6
+ .errorText {
7
+ composes: leading-normal from global;
8
+ composes: text-error from global;
9
+ }
10
+
11
+ .balance {
12
+ composes: grid from global;
13
+ composes: italic from global;
14
+ composes: items-start from global;
15
+ composes: pt-1.5 from global;
16
+ composes: text-sm from global;
17
+ grid-template-columns: max-content 1fr;
18
+ }
19
+
20
+ .card {
21
+ composes: gap-sm from global;
22
+ composes: grid from global;
23
+ composes: grid-cols-1 from global;
24
+ composes: items-start from global;
25
+ grid-template-areas:
26
+ 'card_entry'
27
+ 'check_balance_button'
28
+ 'apply_button';
29
+
30
+ composes: lg_grid-cols-autoLast from global;
31
+ }
32
+
33
+ @media (min-width: 960px) {
34
+ .card {
35
+ grid-template-areas:
36
+ 'card_entry apply_button'
37
+ 'check_balance_button check_balance_button';
38
+ }
39
+ }
40
+
41
+ .card_input_container {}
42
+
43
+ .invalid_card_error {
44
+ color: red;
45
+ }
46
+
47
+ /* TODO @TW: cannot compose */
48
+ .card_input_container_error input {
49
+ /* composes: border-error from global; */
50
+ border-color: rgb(var(--venia-global-color-red-400));
51
+ }
52
+
53
+ /* TODO @TW: cannot compose */
54
+ .card_input_container_error input:focus {
55
+ /* composes: border-gray-600 from global; */
56
+ border-color: rgb(var(--venia-global-color-gray-600));
57
+ }
58
+
59
+ /* TODO @TW: cannot compose */
60
+ .card_input_container_error p {
61
+ /* composes: text-error from global; */
62
+ color: rgb(var(--venia-global-color-error));
63
+ /* composes: font-semibold from global; */
64
+ font-weight: 600;
65
+ }
66
+
67
+ .cards_container {
68
+ composes: gap-sm from global;
69
+ composes: grid from global;
70
+ composes: items-baseline from global;
71
+ composes: justify-start from global;
72
+ grid-template-columns: max-content auto;
73
+ }
74
+
75
+ .check_balance_button {
76
+ composes: root from '@magento/venia-ui/lib/components/LinkButton/linkButton.module.css';
77
+
78
+ composes: justify-self-center from global;
79
+ grid-area: check_balance_button;
80
+
81
+ composes: lg_justify-self-start from global;
82
+ }
83
+
84
+ .entry {
85
+ grid-area: card_entry;
86
+ }
87
+
88
+ .price {}
89
+
90
+ .entryForm {}
91
+
92
+ .applyLabel {
93
+ composes: label from '../../Field/field.module.css';
94
+
95
+ composes: hidden from global;
96
+
97
+ composes: lg_block from global;
98
+ }
@@ -0,0 +1 @@
1
+ export { default } from './giftCards';
@@ -0,0 +1,178 @@
1
+ import React, { Fragment, useEffect } from 'react';
2
+ import { FormattedMessage, useIntl } from 'react-intl';
3
+ import { AlertCircle as AlertCircleIcon } from 'react-feather';
4
+ import { useToasts } from '@magento/peregrine';
5
+ import { deriveErrorMessage } from '@magento/peregrine/lib/util/deriveErrorMessage';
6
+ import { useCouponCode } from '@magento/peregrine/lib/talons/CartPage/PriceAdjustments/CouponCode/useCouponCode';
7
+
8
+ import { useStyle } from '@magento/venia-ui/lib/classify';
9
+
10
+ import Button from '@magento/venia-ui/lib/components/Button';
11
+ import { Form } from 'informed';
12
+ import Field from '@magento/venia-ui/lib/components/Field';
13
+ import Icon from '@magento/venia-ui/lib/components/Icon';
14
+ import LinkButton from '@magento/venia-ui/lib/components/LinkButton';
15
+ import TextInput from '@magento/venia-ui/lib/components/TextInput';
16
+
17
+ import defaultClasses from './couponCode.module.css';
18
+
19
+ const errorIcon = (
20
+ <Icon
21
+ src={AlertCircleIcon}
22
+ attrs={{
23
+ width: 18
24
+ }}
25
+ />
26
+ );
27
+
28
+ /**
29
+ * A child component of the PriceAdjustments component.
30
+ * This component renders a form for addingg a coupon code to the cart.
31
+ *
32
+ * @param {Object} props
33
+ * @param {Function} props.setIsCartUpdating Function for setting the updating state for the cart.
34
+ * @param {Object} props.classes CSS className overrides.
35
+ * See [couponCode.module.css]{@link https://github.com/magento/pwa-studio/blob/develop/packages/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.module.css}
36
+ * for a list of classes you can override.
37
+ *
38
+ * @returns {React.Element}
39
+ *
40
+ * @example <caption>Importing into your project</caption>
41
+ * import CouponCode from "@magento/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode";
42
+ */
43
+ const CouponCode = props => {
44
+ const classes = useStyle(defaultClasses, props.classes);
45
+
46
+ const talonProps = useCouponCode({
47
+ setIsCartUpdating: props.setIsCartUpdating
48
+ });
49
+ const [, { addToast }] = useToasts();
50
+ const {
51
+ applyingCoupon,
52
+ data,
53
+ errors,
54
+ handleApplyCoupon,
55
+ handleApplyCouponOnEnter,
56
+ handleRemoveCoupon,
57
+ handleRemoveCouponOnEnter,
58
+ removingCoupon
59
+ } = talonProps;
60
+ const { formatMessage } = useIntl();
61
+
62
+ const removeCouponError = deriveErrorMessage([
63
+ errors.get('removeCouponMutation')
64
+ ]);
65
+
66
+ useEffect(() => {
67
+ if (removeCouponError) {
68
+ addToast({
69
+ type: 'error',
70
+ icon: errorIcon,
71
+ message: removeCouponError,
72
+ dismissable: true,
73
+ timeout: 10000
74
+ });
75
+ }
76
+ }, [addToast, removeCouponError]);
77
+
78
+ if (!data) {
79
+ return null;
80
+ }
81
+
82
+ if (errors.get('getAppliedCouponsQuery')) {
83
+ return (
84
+ <div className={classes.errorContainer}>
85
+ <FormattedMessage
86
+ id={'couponCode.errorContainer'}
87
+ defaultMessage={
88
+ 'Something went wrong. Please refresh and try again.'
89
+ }
90
+ />
91
+ </div>
92
+ );
93
+ }
94
+
95
+ if (data.cart.applied_coupons) {
96
+ const codes = data.cart.applied_coupons.map(({ code }) => {
97
+ return (
98
+ <Fragment key={code}>
99
+ <span>{code}</span>
100
+ <LinkButton
101
+ className={classes.removeButton}
102
+ disabled={removingCoupon}
103
+ data-cy="CouponCode-removeCouponButton"
104
+ onClick={() => {
105
+ handleRemoveCoupon(code);
106
+ }}
107
+ onKeyDown={() => {
108
+ handleRemoveCouponOnEnter(code);
109
+ }}
110
+ >
111
+ <FormattedMessage
112
+ id={'couponCode.removeButton'}
113
+ defaultMessage={'Remove'}
114
+ />
115
+ </LinkButton>
116
+ </Fragment>
117
+ );
118
+ });
119
+
120
+ return <div className={classes.appliedCoupon}>{codes}</div>;
121
+ } else {
122
+ const errorMessage = deriveErrorMessage([
123
+ errors.get('applyCouponMutation')
124
+ ]);
125
+
126
+ const formClass = errorMessage
127
+ ? classes.entryFormError
128
+ : classes.entryForm;
129
+
130
+ return (
131
+ <Form
132
+ data-cy="CouponCode-form"
133
+ className={formClass}
134
+ onSubmit={handleApplyCoupon}
135
+ >
136
+ <Field
137
+ id="couponCode"
138
+ label={formatMessage({
139
+ id: 'cartPage.couponCode',
140
+ defaultMessage: 'Coupon Code'
141
+ })}
142
+ >
143
+ <TextInput
144
+ field="couponCode"
145
+ id={'couponCode'}
146
+ data-cy="CouponCode-couponCode"
147
+ placeholder={formatMessage({
148
+ id: 'couponCode.enterCode',
149
+ defaultMessage: 'Enter code'
150
+ })}
151
+ mask={value => value && value.trim()}
152
+ maskOnBlur={true}
153
+ message={errorMessage}
154
+ />
155
+ </Field>
156
+ <Field>
157
+ <Button
158
+ data-cy="CouponCode-submit"
159
+ disabled={applyingCoupon}
160
+ priority={'normal'}
161
+ type={'submit'}
162
+ onKeyDown={handleApplyCouponOnEnter}
163
+ classes={{
164
+ content: 'gap-1.5 grid-flow-col inline-grid items-center justify-center justify-items-center capitalize font-medium'
165
+ }}
166
+ >
167
+ <FormattedMessage
168
+ id={'couponCode.apply'}
169
+ defaultMessage={'Apply'}
170
+ />
171
+ </Button>
172
+ </Field>
173
+ </Form>
174
+ );
175
+ }
176
+ };
177
+
178
+ export default CouponCode;
@@ -0,0 +1,52 @@
1
+ /* Styles for "add" view. */
2
+ .entryForm,
3
+ .entryFormError {
4
+ composes: gap-x-sm from global;
5
+ composes: grid from global;
6
+ composes: grid-cols-autoLast from global;
7
+ }
8
+
9
+ /* on mobile... */
10
+ @media (max-width: 959px) {
11
+
12
+ .entryForm,
13
+ .entryFormError {
14
+ /* switch to rows. */
15
+ grid-template-columns: unset;
16
+ grid-template-rows: 1fr 1fr;
17
+ }
18
+ }
19
+
20
+ /* TODO @TW: cannot compose */
21
+ .entryFormError input {
22
+ /* composes: border-error from global; */
23
+ border-color: rgb(var(--venia-global-color-red-400));
24
+ }
25
+
26
+ /* TODO @TW: cannot compose */
27
+ .entryFormError input:focus {
28
+ /* composes: border-gray-600 from global; */
29
+ border-color: rgb(var(--venia-global-color-gray-600));
30
+ }
31
+
32
+ /* TODO @TW: cannot compose */
33
+ .entryFormError p {
34
+ /* composes: text-error from global; */
35
+ color: rgb(var(--venia-global-color-error));
36
+ /* composes: font-semibold from global; */
37
+ font-weight: 600;
38
+ }
39
+
40
+ .errorContainer {
41
+ composes: leading-normal from global;
42
+ /* Duplicate the left/right/bottom padding on the accordion section */
43
+ composes: pt-sm from global;
44
+ composes: text-error from global;
45
+ }
46
+
47
+ /* Styles for "removal" view. */
48
+ .removeButton {
49
+ composes: root from '@magento/venia-ui/lib/components/LinkButton/linkButton.module.css';
50
+
51
+ composes: ml-xs from global;
52
+ }
@@ -0,0 +1 @@
1
+ export { default } from './couponCode';