@riosst100/pwa-marketplace 1.8.9 → 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 (250) 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 +1 -2
  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/SellerCountry/sellerCountry.js +1 -1
  15. package/src/components/SellerDetail/sellerDetail.js +34 -3
  16. package/src/components/ShopBy/shopBy.js +92 -4
  17. package/src/components/ShopBy/shopBy.module.css +22 -0
  18. package/src/components/ShopByVehicles/shopByVehicles.js +1 -2
  19. package/src/components/ShopByVehicles/shopByVehicles.module.css +76 -0
  20. package/src/components/SocialLogin/img/facebook.svg +3 -0
  21. package/src/components/SocialLogin/img/google.svg +6 -0
  22. package/src/components/SocialLogin/img/instagram.svg +27 -0
  23. package/src/components/SocialLogin/img/wechat.svg +15 -0
  24. package/src/components/SocialLogin/img/weibo.svg +7 -0
  25. package/src/components/SocialLogin/index.js +10 -0
  26. package/src/components/SocialLogin/socialLogin.js +70 -0
  27. package/src/components/TrainsSets/index.js +2 -0
  28. package/src/components/TrainsSets/trainsSets.js +331 -0
  29. package/src/components/TrainsSets/trainsSets.module.css +76 -0
  30. package/src/components/TrainsSets/trainsSets.shimmer.js +49 -0
  31. package/src/overwrites/venia-ui/lib/RootComponents/Category/category.js +5 -0
  32. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.gql.js +48 -0
  33. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.js +147 -0
  34. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.module.css +52 -0
  35. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPageFragment.gql.js +10 -0
  36. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.js +206 -0
  37. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.module.css +40 -0
  38. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.js +107 -0
  39. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.module.css +3 -0
  40. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/index.js +14 -0
  41. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.js +107 -0
  42. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.module.css +73 -0
  43. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.js +58 -0
  44. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.module.css +31 -0
  45. package/src/overwrites/venia-ui/lib/components/AccountMenu/index.js +1 -0
  46. package/src/overwrites/venia-ui/lib/components/Button/button.js +1 -1
  47. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.js +50 -0
  48. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.module.css +11 -0
  49. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.js +238 -0
  50. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.module.css +98 -0
  51. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/index.js +1 -0
  52. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +178 -0
  53. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.module.css +52 -0
  54. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/index.js +1 -0
  55. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +321 -0
  56. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.module.css +61 -0
  57. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/index.js +1 -0
  58. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/index.js +1 -0
  59. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.js +103 -0
  60. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.module.css +36 -0
  61. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.js +103 -0
  62. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.module.css +33 -0
  63. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.js +37 -0
  64. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.module.css +3 -0
  65. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.js +106 -0
  66. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.module.css +10 -0
  67. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ce.js +7 -0
  68. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ee.js +28 -0
  69. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ce.js +7 -0
  70. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ee.js +38 -0
  71. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/index.js +1 -0
  72. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +95 -0
  73. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.module.css +2 -0
  74. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.js +123 -0
  75. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.module.css +40 -0
  76. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ce.js +1 -0
  77. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ee.js +60 -0
  78. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ce.js +5 -0
  79. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ee.js +40 -0
  80. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/index.js +1 -0
  81. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.js +210 -0
  82. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.module.css +51 -0
  83. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/shippingSummary.js +58 -0
  84. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/taxSummary.js +57 -0
  85. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/editModal.js +41 -0
  86. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/index.js +1 -0
  87. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.js +80 -0
  88. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.module.css +33 -0
  89. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.js +153 -0
  90. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.module.css +52 -0
  91. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.js +31 -0
  92. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.module.css +13 -0
  93. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/index.js +1 -0
  94. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.js +271 -0
  95. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.module.css +156 -0
  96. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.js +94 -0
  97. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.module.css +11 -0
  98. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/quantity.js +40 -0
  99. package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.js +126 -0
  100. package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.module.css +64 -0
  101. package/src/overwrites/venia-ui/lib/components/CartPage/index.js +1 -0
  102. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.js +190 -0
  103. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.module.css +78 -0
  104. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.js +125 -0
  105. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.module.css +94 -0
  106. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/index.js +1 -0
  107. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.js +213 -0
  108. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.module.css +36 -0
  109. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/index.js +1 -0
  110. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.js +93 -0
  111. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.module.css +55 -0
  112. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/index.js +1 -0
  113. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/__fixtures__/cartItems.js +102 -0
  114. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/index.js +1 -0
  115. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.js +54 -0
  116. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.module.css +60 -0
  117. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.js +84 -0
  118. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.module.css +20 -0
  119. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.js +38 -0
  120. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.module.css +28 -0
  121. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +213 -0
  122. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.module.css +24 -0
  123. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/index.js +1 -0
  124. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +162 -0
  125. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.module.css +70 -0
  126. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/index.js +1 -0
  127. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.js +34 -0
  128. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.module.css +17 -0
  129. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/brainTreeDropIn.js +196 -0
  130. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeDropin.module.css +26 -0
  131. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.js +160 -0
  132. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.module.css +62 -0
  133. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.js +348 -0
  134. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.module.css +58 -0
  135. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.js +44 -0
  136. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.module.css +5 -0
  137. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editModal.js +88 -0
  138. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editablePaymentCollection.js +23 -0
  139. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/index.js +1 -0
  140. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js +99 -0
  141. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.module.css +23 -0
  142. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethodCollection.js +23 -0
  143. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.js +121 -0
  144. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.module.css +34 -0
  145. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.js +71 -0
  146. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.module.css +23 -0
  147. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summaryPaymentCollection.js +23 -0
  148. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/index.js +1 -0
  149. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.js +63 -0
  150. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.module.css +2 -0
  151. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/addressForm.js +18 -0
  152. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +401 -0
  153. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.module.css +58 -0
  154. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +455 -0
  155. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.module.css +52 -0
  156. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/index.js +3 -0
  157. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.js +66 -0
  158. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.module.css +12 -0
  159. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.js +65 -0
  160. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.module.css +90 -0
  161. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/index.js +1 -0
  162. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +149 -0
  163. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.module.css +88 -0
  164. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.js +114 -0
  165. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.module.css +48 -0
  166. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/index.js +1 -0
  167. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +154 -0
  168. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.module.css +27 -0
  169. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.js +80 -0
  170. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.module.css +22 -0
  171. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.js +85 -0
  172. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.module.css +3 -0
  173. package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.js +472 -0
  174. package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.module.css +186 -0
  175. package/src/overwrites/venia-ui/lib/components/CheckoutPage/index.js +1 -0
  176. package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.js +323 -0
  177. package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.module.css +52 -0
  178. package/src/overwrites/venia-ui/lib/components/CreateAccount/index.js +1 -0
  179. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.js +48 -0
  180. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.module.css +21 -0
  181. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/index.js +1 -0
  182. package/src/overwrites/venia-ui/lib/components/Dialog/dialog.js +198 -0
  183. package/src/overwrites/venia-ui/lib/components/Dialog/dialog.module.css +189 -0
  184. package/src/overwrites/venia-ui/lib/components/Dialog/index.js +1 -0
  185. package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.js +8 -7
  186. package/src/overwrites/venia-ui/lib/components/Gallery/item.js +12 -4
  187. package/src/overwrites/venia-ui/lib/components/Gallery/item.module.css +2 -2
  188. package/src/overwrites/venia-ui/lib/components/Header/header.js +37 -2
  189. package/src/overwrites/venia-ui/lib/components/Main/main.js +1 -1
  190. package/src/overwrites/venia-ui/lib/components/MegaMenu/shopByColumn.js +3 -2
  191. package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.js +1 -1
  192. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/index.js +1 -0
  193. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.gql.js +22 -0
  194. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.js +143 -0
  195. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.module.css +53 -0
  196. package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.js +42 -0
  197. package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.module.css +33 -0
  198. package/src/overwrites/venia-ui/lib/components/MyAccount/index.js +1 -0
  199. package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.js +38 -0
  200. package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.module.css +5 -0
  201. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.js +71 -0
  202. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.module.css +9 -0
  203. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/index.js +1 -0
  204. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.js +121 -0
  205. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.module.css +35 -0
  206. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.js +70 -0
  207. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.module.css +16 -0
  208. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.js +207 -0
  209. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.module.css +102 -0
  210. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.js +159 -0
  211. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.module.css +50 -0
  212. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.js +45 -0
  213. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.module.css +14 -0
  214. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.js +90 -0
  215. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.module.css +9 -0
  216. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.js +86 -0
  217. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.module.css +19 -0
  218. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.js +63 -0
  219. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.module.css +16 -0
  220. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/index.js +15 -0
  221. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.js +227 -0
  222. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.module.css +70 -0
  223. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.js +70 -0
  224. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.module.css +14 -0
  225. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.js +324 -0
  226. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.module.css +146 -0
  227. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/resetButton.js +41 -0
  228. package/src/overwrites/venia-ui/lib/components/Password/index.js +1 -0
  229. package/src/overwrites/venia-ui/lib/components/Password/password.js +102 -0
  230. package/src/overwrites/venia-ui/lib/components/Password/password.module.css +26 -0
  231. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +29 -14
  232. package/src/overwrites/venia-ui/lib/components/Select/index.js +1 -0
  233. package/src/overwrites/venia-ui/lib/components/Select/option.js +28 -0
  234. package/src/overwrites/venia-ui/lib/components/Select/select.js +74 -0
  235. package/src/overwrites/venia-ui/lib/components/Select/select.module.css +25 -0
  236. package/src/overwrites/venia-ui/lib/components/SignIn/index.js +1 -0
  237. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.gql.js +50 -0
  238. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.js +224 -0
  239. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.module.css +65 -0
  240. package/src/overwrites/venia-ui/lib/components/SignInPage/index.js +1 -0
  241. package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.js +50 -0
  242. package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.module.css +17 -0
  243. package/src/overwrites/venia-ui/lib/components/TextInput/textInput.js +1 -1
  244. package/src/talons/Header/logo.gql.js +19 -0
  245. package/src/talons/Header/useLogo.js +19 -0
  246. package/src/talons/ShopBy/shopBy.gql.js +2 -2
  247. package/src/talons/ShopBy/useShopBy.js +10 -9
  248. package/src/talons/ShopByVehicles/shopByVehicles.gql.js +1 -0
  249. package/src/talons/TrainsSets/trainsSets.gql.js +60 -0
  250. package/src/talons/TrainsSets/useTrainsSets.js +223 -0
@@ -0,0 +1,162 @@
1
+ import React, { useEffect } from 'react';
2
+ import { FormattedMessage, useIntl } from 'react-intl';
3
+ import { object, shape, string } from 'prop-types';
4
+ import { useOrderConfirmationPage } from '@magento/peregrine/lib/talons/CheckoutPage/OrderConfirmationPage/useOrderConfirmationPage';
5
+
6
+ import { useStyle } from '@magento/venia-ui/lib/classify';
7
+ import { StoreTitle } from '@magento/venia-ui/lib/components/Head';
8
+ import CreateAccount from './createAccount';
9
+ import ItemsReview from '../ItemsReview';
10
+ import defaultClasses from './orderConfirmationPage.module.css';
11
+
12
+ const OrderConfirmationPage = props => {
13
+ const classes = useStyle(defaultClasses, props.classes);
14
+ const { data, orderNumber } = props;
15
+ const { formatMessage } = useIntl();
16
+
17
+ const talonProps = useOrderConfirmationPage({
18
+ data
19
+ });
20
+
21
+ const { flatData, isSignedIn } = talonProps;
22
+
23
+ const {
24
+ city,
25
+ country,
26
+ email,
27
+ firstname,
28
+ lastname,
29
+ postcode,
30
+ region,
31
+ shippingMethod,
32
+ street
33
+ } = flatData;
34
+
35
+ const streetRows = street.map((row, index) => {
36
+ return (
37
+ <span key={index} className={classes.addressStreet}>
38
+ {row}
39
+ </span>
40
+ );
41
+ });
42
+
43
+ useEffect(() => {
44
+ const { scrollTo } = globalThis;
45
+
46
+ if (typeof scrollTo === 'function') {
47
+ scrollTo({
48
+ left: 0,
49
+ top: 0,
50
+ behavior: 'smooth'
51
+ });
52
+ }
53
+ }, []);
54
+
55
+ const createAccountForm = !isSignedIn ? (
56
+ <CreateAccount
57
+ firstname={firstname}
58
+ lastname={lastname}
59
+ email={email}
60
+ />
61
+ ) : null;
62
+
63
+ const nameString = `${firstname} ${lastname}`;
64
+ const additionalAddressString = `${city}, ${region} ${postcode} ${country}`;
65
+
66
+ return (
67
+ <div className={classes.root} data-cy="OrderConfirmationPage-root">
68
+ <StoreTitle>
69
+ {formatMessage({
70
+ id: 'checkoutPage.titleReceipt',
71
+ defaultMessage: 'Receipt'
72
+ })}
73
+ </StoreTitle>
74
+ <div className={classes.mainContainer}>
75
+ <h2
76
+ data-cy="OrderConfirmationPage-header"
77
+ className={classes.heading}
78
+ >
79
+ <FormattedMessage
80
+ id={'checkoutPage.thankYou'}
81
+ defaultMessage={'Thank you for your order!'}
82
+ />
83
+ </h2>
84
+ <div
85
+ data-cy="OrderConfirmationPage-orderNumber"
86
+ className={classes.orderNumber}
87
+ >
88
+ <FormattedMessage
89
+ id={'checkoutPage.orderNumber'}
90
+ defaultMessage={'Order Number: {orderNumber}'}
91
+ values={{ orderNumber }}
92
+ />
93
+ </div>
94
+ <div
95
+ data-cy="OrderConfirmationPage-shippingInfoHeading"
96
+ className={classes.shippingInfoHeading}
97
+ >
98
+ <FormattedMessage
99
+ id={'global.shippingInformation'}
100
+ defaultMessage={'Shipping Information'}
101
+ />
102
+ </div>
103
+ <div className={classes.shippingInfo}>
104
+ <span className={classes.email}>{email}</span>
105
+ <span className={classes.name}>{nameString}</span>
106
+ {streetRows}
107
+ <span className={classes.addressAdditional}>
108
+ {additionalAddressString}
109
+ </span>
110
+ </div>
111
+ <div
112
+ data-cy="OrderConfirmationPage-shippingMethodHeading"
113
+ className={classes.shippingMethodHeading}
114
+ >
115
+ <FormattedMessage
116
+ id={'global.shippingMethod'}
117
+ defaultMessage={'Shipping Method'}
118
+ />
119
+ </div>
120
+ <div className={classes.shippingMethod}>{shippingMethod}</div>
121
+ <div className={classes.itemsReview}>
122
+ <ItemsReview data={data} />
123
+ </div>
124
+ <div
125
+ data-cy="OrderConfirmationPage-additionalText"
126
+ className={classes.additionalText}
127
+ >
128
+ <FormattedMessage
129
+ id={'checkoutPage.additionalText'}
130
+ defaultMessage={
131
+ 'You will also receive an email with the details and we will let you know when your order has shipped.'
132
+ }
133
+ />
134
+ </div>
135
+ </div>
136
+ <div className={classes.sidebarContainer}>{createAccountForm}</div>
137
+ </div>
138
+ );
139
+ };
140
+
141
+ export default OrderConfirmationPage;
142
+
143
+ OrderConfirmationPage.propTypes = {
144
+ classes: shape({
145
+ addressStreet: string,
146
+ mainContainer: string,
147
+ heading: string,
148
+ orderNumber: string,
149
+ shippingInfoHeading: string,
150
+ shippingInfo: string,
151
+ email: string,
152
+ name: string,
153
+ addressAdditional: string,
154
+ shippingMethodHeading: string,
155
+ shippingMethod: string,
156
+ itemsReview: string,
157
+ additionalText: string,
158
+ sidebarContainer: string
159
+ }),
160
+ data: object.isRequired,
161
+ orderNumber: string
162
+ };
@@ -0,0 +1,70 @@
1
+ /* prettier-ignore */
2
+ .root {
3
+ composes: gap-xs from global;
4
+ composes: grid from global;
5
+ composes: grid-cols-1 from global;
6
+ composes: max-w-screen-lg from global;
7
+ composes: mx-auto from global;
8
+ composes: my-0 from global;
9
+ composes: px-sm from global;
10
+ composes: py-sm from global;
11
+
12
+ composes: lg_gap-md from global;
13
+ /* TODO @TW: review (B7) */
14
+ composes: lg_grid-cols-[2fr,1fr] from global;
15
+ composes: lg_px-lg from global;
16
+ composes: lg_py-md from global;
17
+ }
18
+
19
+ .mainContainer {
20
+ composes: col-start-1 from global;
21
+ composes: grid from global;
22
+ composes: gap-y-xs from global;
23
+ }
24
+
25
+ .sidebarContainer {
26
+ composes: border-t from global;
27
+ composes: border-solid from global;
28
+ composes: border-subtle from global;
29
+ composes: col-start-1 from global;
30
+
31
+ composes: lg_border-0 from global;
32
+ composes: lg_col-start-2 from global;
33
+ }
34
+
35
+ .header {
36
+ composes: font-semibold from global;
37
+ }
38
+
39
+ .text {
40
+ composes: leading-normal from global;
41
+ }
42
+
43
+ .orderNumber {
44
+ composes: header;
45
+ }
46
+
47
+ .shippingInfoHeading {
48
+ composes: header;
49
+ }
50
+
51
+ .shippingInfo {
52
+ composes: text;
53
+ composes: grid from global;
54
+ }
55
+
56
+ .shippingAddress {
57
+ composes: grid from global;
58
+ }
59
+
60
+ .shippingMethodHeading {
61
+ composes: header;
62
+ }
63
+
64
+ .shippingMethod {
65
+ composes: text;
66
+ }
67
+
68
+ .additionalText {
69
+ composes: text;
70
+ }
@@ -0,0 +1 @@
1
+ export { default } from './orderSummary';
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { FormattedMessage } from 'react-intl';
3
+ import PriceSummary from '@magento/venia-ui/lib/components/CartPage/PriceSummary';
4
+ import { useStyle } from '@magento/venia-ui/lib/classify';
5
+
6
+ import defaultClasses from './orderSummary.module.css';
7
+
8
+ const OrderSummary = props => {
9
+ const classes = useStyle(defaultClasses, props.classes);
10
+ console.log("🚀 ~ OrderSummary ~ props:", props)
11
+ return (
12
+ <div data-cy="OrderSummary-root" className={classes.root}>
13
+ <h2 aria-live="polite" className="text-[16px] font-semibold mb-4">
14
+ <FormattedMessage
15
+ id={'checkoutPage.orderSummary'}
16
+ defaultMessage={'Summary'}
17
+ />
18
+ </h2>
19
+ <PriceSummary isUpdating={props.isUpdating} />
20
+ <style jsx>
21
+ {`
22
+ li[class*="priceSummary-lineItems"] span:first-child {
23
+ margin-top: 0;
24
+ margin-bottom: 12px;
25
+ font-weight: 500;
26
+ font-size: 14px;
27
+ }
28
+ `}
29
+ </style>
30
+ </div>
31
+ );
32
+ };
33
+
34
+ export default OrderSummary;
@@ -0,0 +1,17 @@
1
+ .root {
2
+ composes: border-t-2 from global;
3
+ composes: border-solid from global;
4
+ composes: border-subtle from global;
5
+ composes: mt-xs from global;
6
+
7
+ composes: lg_border from global;
8
+ composes: lg_border-solid from global;
9
+ composes: lg_border-gray-100 from global;
10
+ composes: lg_rounded-md from global;
11
+ composes: lg_mt-0 from global;
12
+ composes: p-6 from global;
13
+ }
14
+
15
+ .title {
16
+ composes: sr-only from global;
17
+ }
@@ -0,0 +1,196 @@
1
+ /**
2
+ * @fileoverview This component uses the BrainTree Web Drop In to hook into Web
3
+ * Payments and the Payment Request API to submit payments via BrainTree.
4
+ *
5
+ * @see
6
+ * https://github.com/braintree/braintree-web-drop-in
7
+ * https://braintree.github.io/braintree-web-drop-in/docs/current/index.html
8
+ * https://developers.braintreepayments.com/guides/drop-in/overview/javascript/v3
9
+ * https://developers.braintreepayments.com/guides/payment-method-nonce.
10
+ * https://braintree.github.io/braintree-web-drop-in/docs/current/Dropin.html#requestPaymentMethod.
11
+ */
12
+
13
+ import React, { useEffect, useState, useCallback } from 'react';
14
+ import { FormattedMessage, useIntl } from 'react-intl';
15
+ import { bool, func, shape, string } from 'prop-types';
16
+
17
+ import defaultClasses from './braintreeDropin.module.css';
18
+ import { useStyle } from '@magento/venia-ui/lib/classify';
19
+
20
+ const authorization = process.env.CHECKOUT_BRAINTREE_TOKEN;
21
+
22
+ /**
23
+ * This BraintreeDropin component has two purposes which lend to its
24
+ * implementation:
25
+ *
26
+ * 1) Mount and asynchronously create the dropin via the braintree api.
27
+ * 2) On submission (triggered by a parent), request the payment nonce.
28
+ */
29
+ const BraintreeDropin = props => {
30
+ const {
31
+ onError,
32
+ onReady,
33
+ onSuccess,
34
+ shouldRequestPaymentNonce,
35
+ containerId = 'braintree-container',
36
+ shouldTeardownDropin,
37
+ resetShouldTeardownDropin
38
+ } = props;
39
+ const classes = useStyle(defaultClasses, props.classes);
40
+ const [isError, setIsError] = useState(false);
41
+ const [dropinInstance, setDropinInstance] = useState();
42
+ const { formatMessage } = useIntl();
43
+
44
+ const createDropinInstance = useCallback(async () => {
45
+ const { default: dropIn } = await import('braintree-web-drop-in');
46
+ const dropinInstance = await dropIn.create({
47
+ authorization,
48
+ container: `#${containerId}`,
49
+ card: {
50
+ cardholderName: {
51
+ required: true
52
+ },
53
+ overrides: {
54
+ fields: {
55
+ number: {
56
+ placeholder: formatMessage({
57
+ id: 'checkoutPage.cardPlaceholder',
58
+ defaultMessage: '16-Digit Number'
59
+ }),
60
+ maskInput: {
61
+ // Only show last four digits on blur.
62
+ showLastFour: true
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ });
69
+
70
+ return dropinInstance;
71
+ }, [containerId, formatMessage]);
72
+
73
+ useEffect(() => {
74
+ let unmounted = false;
75
+
76
+ const renderDropin = async () => {
77
+ try {
78
+ const instance = await createDropinInstance();
79
+
80
+ if (!unmounted) {
81
+ setDropinInstance(instance);
82
+ onReady(true);
83
+ } else {
84
+ /**
85
+ * Component has been unmounted, tear down the instance.
86
+ */
87
+ instance.teardown();
88
+ }
89
+ } catch (err) {
90
+ if (process.env.NODE_ENV !== 'production') {
91
+ // This error can be common because of the async nature of
92
+ // the checkout page. If the problem is due to a missing
93
+ // container it is likely that the component was
94
+ // intentionally unmounted.
95
+ console.error(
96
+ `Unable to initialize Credit Card form (Braintree). \n${err}`
97
+ );
98
+ }
99
+ if (!unmounted) {
100
+ setIsError(true);
101
+ }
102
+ }
103
+ };
104
+
105
+ renderDropin();
106
+
107
+ return () => {
108
+ unmounted = true;
109
+ };
110
+ }, [createDropinInstance, onReady]);
111
+
112
+ useEffect(() => {
113
+ async function requestPaymentNonce() {
114
+ try {
115
+ const paymentNonce = await dropinInstance.requestPaymentMethod();
116
+ onSuccess(paymentNonce);
117
+ } catch (e) {
118
+ // An error occurred. BrainTree will update the UI with error
119
+ // messaging, but we should signal that there was an error.
120
+ console.error(`Invalid Payment Details. \n${e}`);
121
+ onError();
122
+ }
123
+ }
124
+
125
+ if (shouldRequestPaymentNonce) {
126
+ requestPaymentNonce();
127
+ }
128
+ }, [dropinInstance, onError, onSuccess, shouldRequestPaymentNonce]);
129
+
130
+ /**
131
+ * This useEffect handles tearing down and re-creating the dropin
132
+ * in case the parent component needs it to.
133
+ *
134
+ * The parent component does this by setting `shouldTeardownDropin` `true`.
135
+ */
136
+ useEffect(() => {
137
+ const teardownAndRenderDropin = async () => {
138
+ try {
139
+ dropinInstance.teardown();
140
+ resetShouldTeardownDropin();
141
+
142
+ const instance = await createDropinInstance();
143
+
144
+ setDropinInstance(instance);
145
+ onReady(true);
146
+ } catch (err) {
147
+ console.error(
148
+ `Unable to tear down and re-initialize Credit Card form (Braintree). \n${err}`
149
+ );
150
+ }
151
+ };
152
+
153
+ if (shouldTeardownDropin) {
154
+ teardownAndRenderDropin();
155
+ }
156
+ }, [
157
+ shouldTeardownDropin,
158
+ dropinInstance,
159
+ resetShouldTeardownDropin,
160
+ createDropinInstance,
161
+ onReady
162
+ ]);
163
+
164
+ if (isError) {
165
+ return (
166
+ <span className={classes.error}>
167
+ <FormattedMessage
168
+ id={'checkoutPage.errorLoadingPayment'}
169
+ defaultMessage={
170
+ 'There was an error loading payment options. Please try again later.'
171
+ }
172
+ />
173
+ </span>
174
+ );
175
+ }
176
+
177
+ return (
178
+ <div className={classes.root}>
179
+ <div id={containerId} />
180
+ </div>
181
+ );
182
+ };
183
+
184
+ export default BraintreeDropin;
185
+
186
+ BraintreeDropin.propTypes = {
187
+ classes: shape({
188
+ root: string,
189
+ error: string
190
+ }),
191
+ containerId: string,
192
+ onError: func.isRequired,
193
+ onReady: func.isRequired,
194
+ onSuccess: func.isRequired,
195
+ shouldRequestPaymentNonce: bool.isRequired
196
+ };
@@ -0,0 +1,26 @@
1
+ .root {
2
+ }
3
+
4
+ .error {
5
+ composes: text-error from global;
6
+ }
7
+
8
+ /* TODO @TW: cannot compose */
9
+ div[data-braintree-id='card'] {
10
+ border: none;
11
+ }
12
+
13
+ /* TODO @TW: cannot compose */
14
+ div[data-braintree-id='card-sheet-header'] {
15
+ display: none;
16
+ }
17
+
18
+ /* TODO @TW: cannot compose */
19
+ div[class*='braintree-sheet__content--form'] {
20
+ /**
21
+ This is needed to override padding on the dropin
22
+ component. If we use padding-top instead it just
23
+ overrides the padding-top not whole padding.
24
+ */
25
+ padding: 1rem 0 0 0;
26
+ }
@@ -0,0 +1,160 @@
1
+ import React from 'react';
2
+ import { FormattedMessage, useIntl } from 'react-intl';
3
+ import { useStyle } from '@magento/venia-ui/lib/classify';
4
+ import { shape, string, func, bool } from 'prop-types';
5
+ import { Edit2 as EditIcon } from 'react-feather';
6
+ import Icon from '@magento/venia-ui/lib/components/Icon';
7
+ import LinkButton from '@magento/venia-ui/lib/components/LinkButton';
8
+ import LoadingIndicator from '@magento/venia-ui/lib/components/LoadingIndicator';
9
+
10
+ import { useBraintreeSummary } from '@magento/peregrine/lib/talons/CheckoutPage/PaymentInformation/useBraintreeSummary';
11
+ import defaultClasses from './braintreeSummary.module.css';
12
+
13
+ const BraintreeSummary = props => {
14
+ const { classes: propClasses, onEdit } = props;
15
+
16
+ const classes = useStyle(defaultClasses, propClasses);
17
+ const { formatMessage } = useIntl();
18
+
19
+ const {
20
+ billingAddress,
21
+ isBillingAddressSame,
22
+ isLoading,
23
+ paymentNonce
24
+ } = useBraintreeSummary();
25
+
26
+ if (isLoading) {
27
+ return (
28
+ <LoadingIndicator classes={{ root: classes.loading }}>
29
+ <FormattedMessage
30
+ id={'checkoutPage.loadingPaymentInformation'}
31
+ defaultMessage={'Fetching Payment Information'}
32
+ />
33
+ </LoadingIndicator>
34
+ );
35
+ }
36
+
37
+ const paymentSummary =
38
+ paymentNonce &&
39
+ formatMessage(
40
+ {
41
+ id: 'checkoutPage.paymentSummary',
42
+ defaultMessage: '{cardType} ending in {lastFour}'
43
+ },
44
+ {
45
+ cardType: paymentNonce.details.cardType,
46
+ lastFour: paymentNonce.details.lastFour
47
+ }
48
+ );
49
+
50
+ const billingAddressSummary =
51
+ !isBillingAddressSame && billingAddress ? (
52
+ <div className={classes.address_summary_container}>
53
+ <div>
54
+ <span className={classes.first_name}>
55
+ {billingAddress.firstName}
56
+ </span>
57
+ <span className={classes.last_name}>
58
+ {billingAddress.lastName}
59
+ </span>
60
+ </div>
61
+ <div>
62
+ <span className={classes.street1}>
63
+ {billingAddress.street1}
64
+ </span>
65
+ <span className={classes.street2}>
66
+ {billingAddress.street2}
67
+ </span>
68
+ <span className={classes.city}>{billingAddress.city}</span>
69
+ <span className={classes.state}>
70
+ {billingAddress.state}
71
+ </span>
72
+ </div>
73
+ <div>
74
+ <span className={classes.postalCode}>
75
+ {billingAddress.postalCode}
76
+ </span>
77
+ <span className={classes.country}>
78
+ {billingAddress.country}
79
+ </span>
80
+ </div>
81
+ </div>
82
+ ) : null;
83
+
84
+ return (
85
+ <div className={classes.root}>
86
+ <div className={classes.heading_container}>
87
+ <h5 className={classes.heading}>
88
+ <FormattedMessage
89
+ id={'checkoutPage.paymentInformation'}
90
+ defaultMessage={'Payment Information'}
91
+ />
92
+ </h5>
93
+ <LinkButton
94
+ className={classes.edit_button}
95
+ onClick={onEdit}
96
+ type="button"
97
+ data-cy="BrainTreeSummary-editButton"
98
+ >
99
+ <Icon
100
+ size={16}
101
+ src={EditIcon}
102
+ classes={{ icon: classes.edit_icon }}
103
+ />
104
+ <span className={classes.edit_text}>
105
+ <FormattedMessage
106
+ id={'global.editButton'}
107
+ defaultMessage={'Edit'}
108
+ />
109
+ </span>
110
+ </LinkButton>
111
+ </div>
112
+ <div className={classes.card_details_container}>
113
+ <span className={classes.payment_type}>
114
+ <FormattedMessage
115
+ id={'global.creditCard'}
116
+ defaultMessage={'Credit Card'}
117
+ />
118
+ </span>
119
+ <span className={classes.payment_details}>
120
+ {paymentSummary}
121
+ </span>
122
+ </div>
123
+ {billingAddressSummary}
124
+ </div>
125
+ );
126
+ };
127
+
128
+ export default BraintreeSummary;
129
+
130
+ BraintreeSummary.propTypes = {
131
+ classes: shape({
132
+ root: string,
133
+ heading_container: string,
134
+ heading: string,
135
+ edit_button: string,
136
+ card_details_container: string,
137
+ address_summary_container: string,
138
+ first_name: string,
139
+ last_name: string,
140
+ street1: string,
141
+ street2: string,
142
+ city: string,
143
+ postalCode: string,
144
+ country: string,
145
+ payment_type: string,
146
+ payment_details: string
147
+ }),
148
+ billingAddress: shape({
149
+ firstName: string,
150
+ lastName: string,
151
+ country: string,
152
+ street1: string,
153
+ street2: string,
154
+ city: string,
155
+ state: string,
156
+ postalCode: string
157
+ }),
158
+ onEdit: func.isRequired,
159
+ isBillingAddressSame: bool
160
+ };