@riosst100/pwa-marketplace 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/dependabot.yml +28 -28
- package/i18n/en_US.json +508 -509
- package/i18n/id_ID.json +508 -509
- package/package.json +18 -22
- package/src/componentOverrideMapping.js +1 -50
- package/src/components/BecomeSeller/becomeSeller.js +178 -304
- package/src/components/BecomeSeller/becomeSeller.module.css +4 -4
- package/src/components/BecomeSellerLink/becomeSellerLink.js +1 -1
- package/src/components/BecomeSellerLink/becomeSellerLink.module.css +4 -0
- package/src/components/BecomeSellerPage/becomeSellerPage.js +1 -2
- package/src/components/BecomeSellerPage/becomeSellerPage.module.css +10 -2
- package/src/components/Filter/index.js +2 -2
- package/src/components/Header/becomeSellerLink.module.css +4 -0
- package/src/components/Header/websiteSwitcher.js +1 -0
- package/src/components/Header/websiteSwitcher.module.css +111 -107
- package/src/components/Header/websiteSwitcher.shimmer.js +6 -6
- package/src/components/Header/websiteSwitcherItem.js +47 -47
- package/src/components/Header/websiteSwitcherItem.module.css +20 -20
- package/src/components/OperatingHours/operatingHours.js +9 -7
- package/src/components/Pagination/index.js +33 -31
- package/src/components/PhoneTextInput/index.js +1 -1
- package/src/components/PhoneTextInput/phoneTextInput.js +62 -62
- package/src/components/ProductItem/index.js +1 -1
- package/src/components/SellerCountry/index.js +1 -1
- package/src/components/SellerCountry/sellerCountry.js +71 -71
- package/src/components/SellerCountry/sellerCountry.module.css +3 -3
- package/src/components/SellerDetail/sellerDetail.js +27 -47
- package/src/components/SellerInformation/sellerInformation.js +10 -11
- package/src/components/SellerLocation/sellerLocation.js +2 -2
- package/src/components/SellerLocation/sellerLocationItem.js +3 -3
- package/src/components/SellerProducts/sellerProducts.js +2 -2
- package/src/components/SellerReview/sellerReview.js +26 -34
- package/src/components/SellerReviewItem/sellerReviewItem.js +25 -110
- package/src/components/SellerVerification/sellerVerification.module.css +1 -1
- package/src/components/SortBy/index.js +2 -2
- package/src/components/WebsiteSwitcher/websiteSwitcher.js +6 -18
- package/src/components/WebsiteSwitcher/websiteSwitcher.module.css +111 -107
- package/src/components/WebsiteSwitcher/websiteSwitcher.shimmer.js +6 -6
- package/src/components/WebsiteSwitcher/websiteSwitcherItem.js +47 -47
- package/src/components/WebsiteSwitcher/websiteSwitcherItem.module.css +20 -20
- package/src/components/commons/Tabs/index.js +2 -2
- package/src/intercept.js +27 -87
- package/src/overwrites/venia-ui/lib/components/Adapter/adapter.js +0 -3
- package/src/overwrites/venia-ui/lib/components/Header/header.js +13 -51
- package/src/overwrites/venia-ui/lib/components/Header/storeSwitcher.js +8 -22
- package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenu.js +1 -2
- package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenuItem.js +5 -11
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.js +23 -82
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.module.css +11 -17
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenuColumn.js +12 -65
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenuColumn.module.css +6 -11
- package/src/overwrites/venia-ui/lib/components/SearchBar/autocomplete.js +1 -5
- package/src/overwrites/venia-ui/lib/components/SearchBar/autocomplete.module.css +7 -6
- package/src/overwrites/venia-ui/lib/components/SearchBar/searchBar.js +1 -26
- package/src/overwrites/venia-ui/lib/components/SearchBar/searchBar.module.css +3 -1
- package/src/overwrites/venia-ui/lib/components/SearchBar/searchField.js +3 -14
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestions.module.css +1 -1
- package/src/talons/Header/websiteSwitcher.gql.js +45 -45
- package/src/talons/Seller/seller.gql.js +36 -0
- package/src/talons/WebsiteSwitcher/websiteSwitcher.gql.js +45 -45
- package/src/theme/vars.js +0 -16
- package/src/components/AccountLayout/accountlayout.module.css +0 -13
- package/src/components/AccountLayout/index.js +0 -194
- package/src/components/AlphaFilter/alphaFilter.js +0 -103
- package/src/components/AlphaFilter/alphaFilter.module.css +0 -38
- package/src/components/AlphaFilter/alphaFilter.shimmer.js +0 -50
- package/src/components/AlphaFilter/index.js +0 -2
- package/src/components/ArraySearchInput/arraySearchInput.js +0 -100
- package/src/components/ArraySearchInput/arraySearchInput.module.css +0 -48
- package/src/components/ArraySearchInput/index.js +0 -1
- package/src/components/AttributesBlock/attributesBlock.js +0 -54
- package/src/components/AttributesBlock/attributesBlock.module.css +0 -28
- package/src/components/BrandLandingPage/brandInfo.js +0 -93
- package/src/components/BrandLandingPage/brandLanding.js +0 -255
- package/src/components/BrandLandingPage/index.js +0 -94
- package/src/components/BrandLandingPage/menu.js +0 -20
- package/src/components/BrandListPage/banner_brands.png +0 -0
- package/src/components/BrandListPage/brandList.js +0 -88
- package/src/components/BrandListPage/index.js +0 -57
- package/src/components/BrandSlider/brandSlider.js +0 -91
- package/src/components/BrandSlider/index.js +0 -1
- package/src/components/BrandSlider/item.js +0 -61
- package/src/components/CollectibleGameSets/collectibleGameSets.js +0 -252
- package/src/components/CollectibleGameSets/collectibleGameSets.module.css +0 -69
- package/src/components/CollectibleGameSets/collectibleGameSets.shimmer.js +0 -50
- package/src/components/CollectibleGameSets/index.js +0 -2
- package/src/components/CollectibleGameSetsPage/collectibleGameSetsPage.js +0 -10
- package/src/components/CollectibleGameSetsPage/index.js +0 -1
- package/src/components/CrossSeller/crossSellerBuy.js +0 -19
- package/src/components/CrossSeller/index.js +0 -15
- package/src/components/CrossSeller/item.js +0 -79
- package/src/components/CrossSeller/logo_seller.png +0 -0
- package/src/components/CrossSeller/starIcon.js +0 -11
- package/src/components/CrossSeller/verifyIcon.js +0 -12
- package/src/components/CurrencySwitcher/currencySwitcher.himmer.js +0 -6
- package/src/components/CurrencySwitcher/currencySwitcher.module.css +0 -102
- package/src/components/CurrencySwitcher/index.js +0 -107
- package/src/components/CurrencySwitcher/switcherItem.js +0 -47
- package/src/components/CurrencySwitcher/switcherItem.module.css +0 -20
- package/src/components/CustomSortBy/customSortBy.js +0 -196
- package/src/components/CustomSortBy/customSortBy.module.css +0 -68
- package/src/components/CustomSortBy/customSortItem.js +0 -57
- package/src/components/CustomSortBy/customSortItem.module.css +0 -23
- package/src/components/CustomSortBy/index.js +0 -1
- package/src/components/CustomSortBy/productSort.module.css +0 -65
- package/src/components/CustomSortBy/productSort.shimmer.js +0 -28
- package/src/components/CustomSortBy/productSort.shimmer.module.css +0 -10
- package/src/components/CustomSubCategory/subCategory.js +0 -36
- package/src/components/CustomSubCategory/subCategory.module.css +0 -22
- package/src/components/CustomSubCategoryPage/subCategoryPage.js +0 -136
- package/src/components/CustomSubCategoryPage/subCategoryPage.module.css +0 -46
- package/src/components/Divider/index.js +0 -11
- package/src/components/Dropdown/dropdown.js +0 -80
- package/src/components/Dropdown/index.js +0 -10
- package/src/components/FavoriteSeller/favoriteSeller.js +0 -32
- package/src/components/FavoriteSeller/index.js +0 -14
- package/src/components/FavoriteSeller/item.js +0 -140
- package/src/components/FilterOption/FilterOptionModal.module.css +0 -90
- package/src/components/FilterOption/filterOptionModal.js +0 -48
- package/src/components/FilterOptionModal/filterOptionModal.js +0 -66
- package/src/components/FilterTop/CurrentTopFilters/currentTopFilter.js +0 -47
- package/src/components/FilterTop/CurrentTopFilters/currentTopFilter.module.css +0 -22
- package/src/components/FilterTop/CurrentTopFilters/currentTopFilters.js +0 -50
- package/src/components/FilterTop/CurrentTopFilters/currentTopFilters.module.css +0 -21
- package/src/components/FilterTop/CurrentTopFilters/index.js +0 -1
- package/src/components/FilterTop/CustomFilters/customFilter.js +0 -83
- package/src/components/FilterTop/CustomFilters/customFilter.module.css +0 -22
- package/src/components/FilterTop/CustomFilters/customFilters.js +0 -132
- package/src/components/FilterTop/CustomFilters/customFilters.module.css +0 -23
- package/src/components/FilterTop/CustomFilters/index.js +0 -1
- package/src/components/FilterTop/FilterBlockList/filterBlockList.js +0 -56
- package/src/components/FilterTop/FilterBlockList/filterBlockList.module.css +0 -8
- package/src/components/FilterTop/FilterBlockList/filterTopItem.js +0 -79
- package/src/components/FilterTop/FilterBlockList/filterTopItem.module.css +0 -14
- package/src/components/FilterTop/FilterBlockList/filterTopItemGroup.js +0 -95
- package/src/components/FilterTop/FilterBlockList/filterTopItemGroup.module.css +0 -23
- package/src/components/FilterTop/FilterBlockList/index.js +0 -1
- package/src/components/FilterTop/filterTop.js +0 -176
- package/src/components/FilterTop/filterTop.module.css +0 -23
- package/src/components/FilterTop/filterTop.shimmer.js +0 -24
- package/src/components/FilterTop/filterTopBlock.js +0 -60
- package/src/components/FilterTop/index.js +0 -2
- package/src/components/FilterTopBackup/CustomFilters/customFilter.js +0 -83
- package/src/components/FilterTopBackup/CustomFilters/customFilter.module.css +0 -22
- package/src/components/FilterTopBackup/CustomFilters/customFilters.js +0 -133
- package/src/components/FilterTopBackup/CustomFilters/customFilters.module.css +0 -23
- package/src/components/FilterTopBackup/CustomFilters/index.js +0 -1
- package/src/components/FilterTopBackup/filterTop.js +0 -14
- package/src/components/FilterTopBackup/filterTop.module.css +0 -23
- package/src/components/FilterTopBackup/filterTop.shimmer.js +0 -24
- package/src/components/FilterTopBackup/index.js +0 -2
- package/src/components/LegoSets/index.js +0 -2
- package/src/components/LegoSets/legoSets.js +0 -327
- package/src/components/LegoSets/legoSets.module.css +0 -76
- package/src/components/LegoSets/legoSets.shimmer.js +0 -50
- package/src/components/LiveChat/chatContent.js +0 -39
- package/src/components/LiveChat/index.js +0 -52
- package/src/components/LiveChat/liveChat.js +0 -160
- package/src/components/MegaMenu/customMenuItems.js +0 -138
- package/src/components/MegaMenu/customMenuItems.module.css +0 -31
- package/src/components/MiniatureGameSets/index.js +0 -2
- package/src/components/MiniatureGameSets/miniatureGameSets.js +0 -297
- package/src/components/MiniatureGameSets/miniatureGameSets.module.css +0 -76
- package/src/components/MiniatureGameSets/miniatureGameSets.shimmer.js +0 -50
- package/src/components/Modal/index.js +0 -10
- package/src/components/Modal/modal.js +0 -48
- package/src/components/MtgSinglesPage/index.js +0 -62
- package/src/components/MtgSinglesPage/mtgSingles.js +0 -90
- package/src/components/MtgSinglesPage/singles.module.css +0 -15
- package/src/components/NonSportCardsSets/index.js +0 -2
- package/src/components/NonSportCardsSets/nonSportCardsSets.js +0 -270
- package/src/components/NonSportCardsSets/nonSportCardsSets.module.css +0 -76
- package/src/components/NonSportCardsSets/nonSportCardsSets.shimmer.js +0 -50
- package/src/components/ProductLabel/index.js +0 -47
- package/src/components/ProductLineSlider/index.js +0 -1
- package/src/components/ProductLineSlider/item.js +0 -38
- package/src/components/ProductLineSlider/logo_nendoroid.png +0 -0
- package/src/components/ProductLineSlider/nendroid-image.png +0 -0
- package/src/components/ProductLineSlider/productLineSlider.js +0 -91
- package/src/components/ProductListTab/index.js +0 -4
- package/src/components/ProductListTab/productListTab.js +0 -100
- package/src/components/ProductListTab/productListTab.module.css +0 -64
- package/src/components/ProductListTab/productListTab.shimmer.js +0 -24
- package/src/components/RFQ/index.js +0 -39
- package/src/components/RFQ/modalRfq.js +0 -249
- package/src/components/RFQPage/index.js +0 -14
- package/src/components/RFQPage/orderRow.js +0 -318
- package/src/components/RFQPage/quoteDetail.js +0 -342
- package/src/components/RFQPage/quoteDetailPage.js +0 -14
- package/src/components/RFQPage/quoteList.js +0 -227
- package/src/components/RelatedProduct/index.js +0 -16
- package/src/components/RelatedProduct/relatedProduct.js +0 -112
- package/src/components/RelatedProduct/sample.json +0 -154
- package/src/components/ShopBy/index.js +0 -2
- package/src/components/ShopBy/shopBy copy.js +0 -172
- package/src/components/ShopBy/shopBy.js +0 -435
- package/src/components/ShopBy/shopBy.module.css +0 -76
- package/src/components/ShopBy/shopBy.shimmer.js +0 -50
- package/src/components/ShopByBrands/index.js +0 -2
- package/src/components/ShopByBrands/legoSets.shimmer.js +0 -50
- package/src/components/ShopByBrands/shopByBrands.js +0 -327
- package/src/components/ShopByBrands/shopByBrands.module.css +0 -76
- package/src/components/ShopByBrands/shopByBrands.shimmer.js +0 -50
- package/src/components/ShopByCard/index.js +0 -2
- package/src/components/ShopByCard/shopByCard.js +0 -277
- package/src/components/ShopByCard/shopByCard.module.css +0 -76
- package/src/components/ShopByCard/shopByCard.shimmer.js +0 -50
- package/src/components/ShopByCategory/index.js +0 -2
- package/src/components/ShopByCategory/shopByCategory.js +0 -69
- package/src/components/ShopByCategory/shopByCategory.module.css +0 -58
- package/src/components/ShopByCategory/shopByCategory.shimmer.js +0 -24
- package/src/components/ShopByFilters/index.js +0 -1
- package/src/components/ShopByFilters/shopByFilters.js +0 -74
- package/src/components/ShopByFilters/shopByFilters.module.css +0 -21
- package/src/components/ShopByPage/index.js +0 -1
- package/src/components/ShopByPage/shopByPage.js +0 -12
- package/src/components/ShopBySets/index.js +0 -2
- package/src/components/ShopBySets/shopBySets.js +0 -288
- package/src/components/ShopBySets/shopBySets.module.css +0 -76
- package/src/components/ShopBySets/shopBySets.shimmer.js +0 -50
- package/src/components/ShopByVehicles/index.js +0 -2
- package/src/components/ShopByVehicles/shopByVehicles.js +0 -327
- package/src/components/ShopByVehicles/shopByVehicles.module.css +0 -76
- package/src/components/ShopByVehicles/shopByVehicles.shimmer.js +0 -50
- package/src/components/SocialLogin/img/facebook.svg +0 -3
- package/src/components/SocialLogin/img/google.svg +0 -6
- package/src/components/SocialLogin/img/instagram.svg +0 -27
- package/src/components/SocialLogin/img/wechat.svg +0 -15
- package/src/components/SocialLogin/img/weibo.svg +0 -7
- package/src/components/SocialLogin/index.js +0 -10
- package/src/components/SocialLogin/socialLogin.js +0 -70
- package/src/components/SocialMediaShare/index.js +0 -51
- package/src/components/SocialMediaShare/share.js +0 -94
- package/src/components/SportCardsSets/index.js +0 -2
- package/src/components/SportCardsSets/sportCardsSets.js +0 -363
- package/src/components/SportCardsSets/sportCardsSets.module.css +0 -76
- package/src/components/SportCardsSets/sportCardsSets.shimmer.js +0 -50
- package/src/components/SubCategory/customSubCategory.js +0 -45
- package/src/components/SubCategory/customSubCategory.module.css +0 -22
- package/src/components/SubCategory/subCategory.js +0 -49
- package/src/components/SubCategory/subCategory.module.css +0 -22
- package/src/components/TrainsSets/index.js +0 -2
- package/src/components/TrainsSets/trainsSets.js +0 -331
- package/src/components/TrainsSets/trainsSets.module.css +0 -76
- package/src/components/TrainsSets/trainsSets.shimmer.js +0 -49
- package/src/hooks/useCustomSort.js +0 -21
- package/src/overwrites/pagebuilder/lib/ContentTypes/Products/Carousel/__fixtures__/apolloMocks.js +0 -33
- package/src/overwrites/pagebuilder/lib/ContentTypes/Products/Carousel/carousel.gql.ce.js +0 -16
- package/src/overwrites/pagebuilder/lib/ContentTypes/Products/Carousel/carousel.gql.ee.js +0 -17
- package/src/overwrites/pagebuilder/lib/ContentTypes/Products/Carousel/carousel.js +0 -38
- package/src/overwrites/pagebuilder/lib/ContentTypes/Products/Carousel/index.js +0 -1
- package/src/overwrites/pagebuilder/lib/ContentTypes/Products/Carousel/useCarousel.js +0 -25
- package/src/overwrites/pagebuilder/lib/ContentTypes/Products/configAggregator.js +0 -26
- package/src/overwrites/pagebuilder/lib/ContentTypes/Products/index.js +0 -1
- package/src/overwrites/pagebuilder/lib/ContentTypes/Products/products.js +0 -369
- package/src/overwrites/pagebuilder/lib/ContentTypes/Products/products.module.css +0 -0
- package/src/overwrites/pagebuilder/lib/ContentTypes/Slider/banner.module.css +0 -103
- package/src/overwrites/pagebuilder/lib/ContentTypes/Slider/configAggregator.js +0 -17
- package/src/overwrites/pagebuilder/lib/ContentTypes/Slider/index.js +0 -2
- package/src/overwrites/pagebuilder/lib/ContentTypes/Slider/slider.js +0 -221
- package/src/overwrites/pagebuilder/lib/ContentTypes/Slider/slider.module.css +0 -231
- package/src/overwrites/pagebuilder/lib/ContentTypes/Slider/slider.shimmer.js +0 -126
- package/src/overwrites/pagebuilder/lib/ContentTypes/Slider/slider.shimmer.module.css +0 -5
- package/src/overwrites/pagebuilder/lib/utils.js +0 -224
- package/src/overwrites/peregrine/lib/talons/Breadcrumbs/useBreadcrumbs.js +0 -100
- package/src/overwrites/peregrine/lib/talons/FilterModal/useFilterList.js +0 -62
- package/src/overwrites/peregrine/lib/talons/FilterSidebar/useFilterSidebar.js +0 -312
- package/src/overwrites/peregrine/lib/talons/MegaMenu/megaMenu.gql.js +0 -96
- package/src/overwrites/peregrine/lib/talons/MegaMenu/useMegaMenu.js +0 -199
- package/src/overwrites/peregrine/lib/talons/MegaMenu/useMegaMenuItem.js +0 -66
- package/src/overwrites/peregrine/lib/talons/MegaMenu/useSubMenu.js +0 -20
- package/src/overwrites/peregrine/lib/talons/ProductFullDetail/useProductFullDetail.js +0 -642
- package/src/overwrites/peregrine/lib/talons/RootComponents/Category/category.gql.js +0 -49
- package/src/overwrites/peregrine/lib/talons/RootComponents/Category/categoryContent.gql.js +0 -98
- package/src/overwrites/peregrine/lib/talons/RootComponents/Category/categoryFragments.gql.js +0 -90
- package/src/overwrites/peregrine/lib/talons/RootComponents/Category/useCategory.js +0 -234
- package/src/overwrites/peregrine/lib/talons/RootComponents/Category/useCategoryContent.js +0 -192
- package/src/overwrites/peregrine/lib/talons/RootComponents/Product/product.gql.js +0 -31
- package/src/overwrites/peregrine/lib/talons/RootComponents/Product/productDetailFragment.gql.js +0 -235
- package/src/overwrites/venia-ui/lib/RootComponents/CMS/cms.js +0 -73
- package/src/overwrites/venia-ui/lib/RootComponents/CMS/cms.module.css +0 -25
- package/src/overwrites/venia-ui/lib/RootComponents/CMS/cms.shimmer.js +0 -18
- package/src/overwrites/venia-ui/lib/RootComponents/CMS/index.js +0 -7
- package/src/overwrites/venia-ui/lib/RootComponents/Category/NoProductsFound/index.js +0 -1
- package/src/overwrites/venia-ui/lib/RootComponents/Category/NoProductsFound/noProductsFound.js +0 -64
- package/src/overwrites/venia-ui/lib/RootComponents/Category/NoProductsFound/noProductsFound.module.css +0 -39
- package/src/overwrites/venia-ui/lib/RootComponents/Category/NoProductsFound/noProductsFound.png +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/category.gql.js +0 -17
- package/src/overwrites/venia-ui/lib/RootComponents/Category/category.js +0 -142
- package/src/overwrites/venia-ui/lib/RootComponents/Category/category.module.css +0 -78
- package/src/overwrites/venia-ui/lib/RootComponents/Category/categoryContent.js +0 -383
- package/src/overwrites/venia-ui/lib/RootComponents/Category/categoryContent.shimmer.js +0 -74
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/001.jpg +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/002.jpg +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/003.jpg +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/004.jpg +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/005.jpg +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/006.jpg +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/007.jpg +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/008.jpg +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/009.jpg +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/010.jpg +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/011.jpg +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/012.jpg +0 -0
- package/src/overwrites/venia-ui/lib/RootComponents/Category/images/index.js +0 -12
- package/src/overwrites/venia-ui/lib/RootComponents/Category/index.js +0 -6
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.gql.js +0 -48
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.js +0 -147
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.module.css +0 -52
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPageFragment.gql.js +0 -10
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.js +0 -206
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.module.css +0 -40
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.js +0 -107
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.module.css +0 -3
- package/src/overwrites/venia-ui/lib/components/AccountInformationPage/index.js +0 -14
- package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.js +0 -107
- package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.module.css +0 -73
- package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.js +0 -58
- package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.module.css +0 -31
- package/src/overwrites/venia-ui/lib/components/AccountMenu/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/App/app.js +0 -131
- package/src/overwrites/venia-ui/lib/components/Breadcrumbs/breadcrumbs.js +0 -189
- package/src/overwrites/venia-ui/lib/components/Breadcrumbs/breadcrumbs.module.css +0 -33
- package/src/overwrites/venia-ui/lib/components/Breadcrumbs/breadcrumbs.shimmer.js +0 -24
- package/src/overwrites/venia-ui/lib/components/Breadcrumbs/index.js +0 -2
- package/src/overwrites/venia-ui/lib/components/Button/button.js +0 -100
- package/src/overwrites/venia-ui/lib/components/Button/button.module.css +0 -132
- package/src/overwrites/venia-ui/lib/components/Button/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.js +0 -50
- package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.module.css +0 -11
- package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.js +0 -238
- package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.module.css +0 -98
- package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +0 -178
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.module.css +0 -52
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +0 -321
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.module.css +0 -61
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.js +0 -103
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.module.css +0 -36
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.js +0 -103
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.module.css +0 -33
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.js +0 -37
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.module.css +0 -3
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.js +0 -106
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.module.css +0 -10
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ce.js +0 -7
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ee.js +0 -28
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ce.js +0 -7
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ee.js +0 -38
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +0 -95
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.module.css +0 -2
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.js +0 -123
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.module.css +0 -40
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ce.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ee.js +0 -60
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ce.js +0 -5
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ee.js +0 -40
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.js +0 -210
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.module.css +0 -51
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/shippingSummary.js +0 -58
- package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/taxSummary.js +0 -57
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/editModal.js +0 -41
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.js +0 -80
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.module.css +0 -33
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.js +0 -153
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.module.css +0 -52
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.js +0 -31
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.module.css +0 -13
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.js +0 -271
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.module.css +0 -156
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.js +0 -94
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.module.css +0 -11
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/quantity.js +0 -40
- package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.js +0 -126
- package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.module.css +0 -64
- package/src/overwrites/venia-ui/lib/components/CartPage/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/Checkbox/checkbox.js +0 -78
- package/src/overwrites/venia-ui/lib/components/Checkbox/checkbox.module.css +0 -73
- package/src/overwrites/venia-ui/lib/components/Checkbox/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.js +0 -190
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.module.css +0 -78
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.js +0 -125
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.module.css +0 -94
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.js +0 -213
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.module.css +0 -36
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.js +0 -93
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.module.css +0 -55
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/__fixtures__/cartItems.js +0 -102
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.js +0 -54
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.module.css +0 -60
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.js +0 -84
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.module.css +0 -20
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.js +0 -38
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.module.css +0 -28
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +0 -213
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.module.css +0 -24
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +0 -162
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.module.css +0 -70
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.js +0 -34
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.module.css +0 -17
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/brainTreeDropIn.js +0 -196
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeDropin.module.css +0 -26
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.js +0 -160
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.module.css +0 -62
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.js +0 -348
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.module.css +0 -58
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.js +0 -44
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.module.css +0 -5
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editModal.js +0 -88
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editablePaymentCollection.js +0 -23
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js +0 -99
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.module.css +0 -23
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethodCollection.js +0 -23
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.js +0 -121
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.module.css +0 -34
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.js +0 -71
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.module.css +0 -23
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summaryPaymentCollection.js +0 -23
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.js +0 -63
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.module.css +0 -2
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/addressForm.js +0 -18
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +0 -401
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.module.css +0 -58
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +0 -455
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.module.css +0 -52
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/index.js +0 -3
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.js +0 -66
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.module.css +0 -12
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.js +0 -65
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.module.css +0 -90
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +0 -149
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.module.css +0 -88
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.js +0 -114
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.module.css +0 -48
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +0 -154
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.module.css +0 -27
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.js +0 -80
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.module.css +0 -22
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.js +0 -85
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.module.css +0 -3
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.js +0 -472
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.module.css +0 -186
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.js +0 -323
- package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.module.css +0 -52
- package/src/overwrites/venia-ui/lib/components/CreateAccount/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.js +0 -48
- package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.module.css +0 -21
- package/src/overwrites/venia-ui/lib/components/CreateAccountPage/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/Dialog/dialog.js +0 -198
- package/src/overwrites/venia-ui/lib/components/Dialog/dialog.module.css +0 -189
- package/src/overwrites/venia-ui/lib/components/Dialog/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/currentFilter.js +0 -60
- package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/currentFilter.module.css +0 -22
- package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/currentFilters.js +0 -69
- package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/currentFilters.module.css +0 -21
- package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterDefault.js +0 -84
- package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterDefault.module.css +0 -0
- package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterItem.js +0 -80
- package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterItemRadio.js +0 -79
- package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterItemRadio.module.css +0 -0
- package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterItemRadioGroup.js +0 -87
- package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterList.js +0 -265
- package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/filterList.module.css +0 -28
- package/src/overwrites/venia-ui/lib/components/FilterModal/FilterList/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/FilterModal/filterBlock.js +0 -135
- package/src/overwrites/venia-ui/lib/components/FilterModal/filterBlock.module.css +0 -25
- package/src/overwrites/venia-ui/lib/components/FilterModal/filterFooter.js +0 -49
- package/src/overwrites/venia-ui/lib/components/FilterModal/filterFooter.module.css +0 -10
- package/src/overwrites/venia-ui/lib/components/FilterModal/filterModal.js +0 -166
- package/src/overwrites/venia-ui/lib/components/FilterModal/filterModal.module.css +0 -88
- package/src/overwrites/venia-ui/lib/components/FilterModal/filterSearch.module.css +0 -3
- package/src/overwrites/venia-ui/lib/components/FilterModal/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/FilterSidebar/__tests__/filterSidebar.spec.js +0 -246
- package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.js +0 -197
- package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.module.css +0 -59
- package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.shimmer.js +0 -24
- package/src/overwrites/venia-ui/lib/components/FilterSidebar/index.js +0 -2
- package/src/overwrites/venia-ui/lib/components/Footer/footer.js +0 -147
- package/src/overwrites/venia-ui/lib/components/Footer/footer.module.css +0 -70
- package/src/overwrites/venia-ui/lib/components/Footer/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/Footer/sampleData.js +0 -48
- package/src/overwrites/venia-ui/lib/components/Gallery/addToCartButton.js +0 -116
- package/src/overwrites/venia-ui/lib/components/Gallery/addToCartButton.module.css +0 -38
- package/src/overwrites/venia-ui/lib/components/Gallery/gallery.js +0 -57
- package/src/overwrites/venia-ui/lib/components/Gallery/gallery.module.css +0 -28
- package/src/overwrites/venia-ui/lib/components/Gallery/gallery.shimmer.js +0 -39
- package/src/overwrites/venia-ui/lib/components/Gallery/index.js +0 -3
- package/src/overwrites/venia-ui/lib/components/Gallery/item.js +0 -224
- package/src/overwrites/venia-ui/lib/components/Gallery/item.module.css +0 -109
- package/src/overwrites/venia-ui/lib/components/Gallery/item.shimmer.js +0 -38
- package/src/overwrites/venia-ui/lib/components/Gallery/star.js +0 -12
- package/src/overwrites/venia-ui/lib/components/Header/accountTrigger.js +0 -98
- package/src/overwrites/venia-ui/lib/components/Header/cartTrigger.js +0 -116
- package/src/overwrites/venia-ui/lib/components/Header/cartTrigger.module.css +0 -47
- package/src/overwrites/venia-ui/lib/components/Header/storeSwitcher.module.css +0 -107
- package/src/overwrites/venia-ui/lib/components/Header/wishlistTrigger.js +0 -23
- package/src/overwrites/venia-ui/lib/components/Main/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/Main/main.js +0 -39
- package/src/overwrites/venia-ui/lib/components/Main/main.module.css +0 -41
- package/src/overwrites/venia-ui/lib/components/MegaMenu/customSubmenuColumn.js +0 -75
- package/src/overwrites/venia-ui/lib/components/MegaMenu/customSubmenuColumn.module.css +0 -29
- package/src/overwrites/venia-ui/lib/components/MegaMenu/shopByColumn.js +0 -121
- package/src/overwrites/venia-ui/lib/components/MegaMenu/shopByColumn.module.css +0 -26
- package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.gql.js +0 -22
- package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.js +0 -143
- package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.module.css +0 -53
- package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.js +0 -42
- package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.module.css +0 -33
- package/src/overwrites/venia-ui/lib/components/MyAccount/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.js +0 -38
- package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.module.css +0 -5
- package/src/overwrites/venia-ui/lib/components/Newsletter/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/Newsletter/newsletter.js +0 -156
- package/src/overwrites/venia-ui/lib/components/Newsletter/newsletter.module.css +0 -90
- package/src/overwrites/venia-ui/lib/components/Newsletter/newsletter.shimmer.js +0 -46
- package/src/overwrites/venia-ui/lib/components/Newsletter/newsletter.shimmer.module.css +0 -21
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.js +0 -71
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.module.css +0 -9
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.js +0 -121
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.module.css +0 -35
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.js +0 -70
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.module.css +0 -16
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.js +0 -207
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.module.css +0 -102
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.js +0 -159
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.module.css +0 -50
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.js +0 -45
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.module.css +0 -14
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.js +0 -90
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.module.css +0 -9
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.js +0 -86
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.module.css +0 -19
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.js +0 -63
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.module.css +0 -16
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/index.js +0 -15
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.js +0 -227
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.module.css +0 -70
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.js +0 -70
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.module.css +0 -14
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.js +0 -324
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.module.css +0 -146
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/resetButton.js +0 -41
- package/src/overwrites/venia-ui/lib/components/Pagination/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/Pagination/navButton.js +0 -65
- package/src/overwrites/venia-ui/lib/components/Pagination/pagination.js +0 -107
- package/src/overwrites/venia-ui/lib/components/Pagination/tile.js +0 -41
- package/src/overwrites/venia-ui/lib/components/Password/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/Password/password.js +0 -102
- package/src/overwrites/venia-ui/lib/components/Password/password.module.css +0 -26
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/boolean.js +0 -74
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/boolean.module.css +0 -9
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/date.js +0 -82
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/date.module.css +0 -9
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/dateTime.js +0 -85
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/dateTime.module.css +0 -9
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.js +0 -104
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.module.css +0 -22
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/price.js +0 -74
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/price.module.css +0 -9
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.js +0 -99
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.module.css +0 -13
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.js +0 -88
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.module.css +0 -13
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.js +0 -94
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.module.css +0 -13
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/attributeType.js +0 -67
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/AttributeType/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/customAttributes.js +0 -65
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/customAttributes.module.css +0 -8
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/components/auctionDetail.js +0 -210
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/components/bidList.js +0 -67
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/components/modalFormReview.js +0 -164
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/components/preOrderDetail.js +0 -61
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/components/productReview.js +0 -63
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/components/starInput.js +0 -33
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.gql.js +0 -7
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +0 -734
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.module.css +0 -199
- package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/carousel.js +0 -180
- package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/carousel.module.css +0 -102
- package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/carousel.shimmer.js +0 -51
- package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/carousel.shimmer.module.css +0 -7
- package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/thumbnail.js +0 -108
- package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/thumbnail.module.css +0 -47
- package/src/overwrites/venia-ui/lib/components/ProductSort/index.js +0 -2
- package/src/overwrites/venia-ui/lib/components/ProductSort/productSort.js +0 -233
- package/src/overwrites/venia-ui/lib/components/ProductSort/productSort.module.css +0 -65
- package/src/overwrites/venia-ui/lib/components/ProductSort/productSort.shimmer.js +0 -28
- package/src/overwrites/venia-ui/lib/components/ProductSort/productSort.shimmer.module.css +0 -10
- package/src/overwrites/venia-ui/lib/components/ProductSort/sortItem.js +0 -57
- package/src/overwrites/venia-ui/lib/components/ProductSort/sortItem.module.css +0 -23
- package/src/overwrites/venia-ui/lib/components/QuantityStepper/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/QuantityStepper/quantityStepper.js +0 -113
- package/src/overwrites/venia-ui/lib/components/QuantityStepper/quantityStepper.module.css +0 -74
- package/src/overwrites/venia-ui/lib/components/RadioGroup/radio.js +0 -60
- package/src/overwrites/venia-ui/lib/components/RadioGroup/radio.module.css +0 -70
- package/src/overwrites/venia-ui/lib/components/RichContent/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/RichContent/plainHtmlRenderer.js +0 -17
- package/src/overwrites/venia-ui/lib/components/RichContent/richContent.js +0 -59
- package/src/overwrites/venia-ui/lib/components/RichContent/richContent.module.css +0 -146
- package/src/overwrites/venia-ui/lib/components/RichContent/richContentRenderers.js +0 -7
- package/src/overwrites/venia-ui/lib/components/RichText/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/RichText/richText.js +0 -21
- package/src/overwrites/venia-ui/lib/components/RichText/richText.module.css +0 -19
- package/src/overwrites/venia-ui/lib/components/Select/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/Select/option.js +0 -28
- package/src/overwrites/venia-ui/lib/components/Select/select.js +0 -74
- package/src/overwrites/venia-ui/lib/components/Select/select.module.css +0 -25
- package/src/overwrites/venia-ui/lib/components/SignIn/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/SignIn/signIn.gql.js +0 -50
- package/src/overwrites/venia-ui/lib/components/SignIn/signIn.js +0 -224
- package/src/overwrites/venia-ui/lib/components/SignIn/signIn.module.css +0 -65
- package/src/overwrites/venia-ui/lib/components/SignInPage/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.js +0 -50
- package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.module.css +0 -17
- package/src/overwrites/venia-ui/lib/components/TextArea/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/TextArea/textArea.js +0 -44
- package/src/overwrites/venia-ui/lib/components/TextArea/textArea.module.css +0 -27
- package/src/overwrites/venia-ui/lib/components/TextInput/field.module.css +0 -51
- package/src/overwrites/venia-ui/lib/components/TextInput/index.js +0 -1
- package/src/overwrites/venia-ui/lib/components/TextInput/textInput.js +0 -64
- package/src/overwrites/venia-ui/lib/components/TextInput/textInput.module.css +0 -21
- package/src/overwrites/venia-ui/lib/index.module.css +0 -137
- package/src/overwrites/venia-ui/lib/tokens.module.css +0 -167
- package/src/overwrites/venia-ui/venia-static/favicon.ico +0 -0
- package/src/overwrites/venia-ui/venia-static/manifest.json +0 -32
- package/src/static-files/favicon.ico +0 -0
- package/src/static-files/icons/apple-touch-icon.png +0 -0
- package/src/static-files/icons/venia_circle_144.png +0 -0
- package/src/static-files/icons/venia_circle_192.png +0 -0
- package/src/static-files/icons/venia_circle_512.png +0 -0
- package/src/static-files/icons/venia_maskable_512.png +0 -0
- package/src/static-files/icons/venia_square_144.png +0 -0
- package/src/static-files/icons/venia_square_192.png +0 -0
- package/src/static-files/icons/venia_square_512.png +0 -0
- package/src/static-files/icons/venia_square_57.png +0 -0
- package/src/static-files/manifest.json +0 -32
- package/src/static-files/robots.txt +0 -2
- package/src/static-files/veniaClosed.png +0 -0
- package/src/talons/ArraySearchInput/useArraySearchInput.js +0 -58
- package/src/talons/AttributesBlock/attributesBlock.gql.js +0 -15
- package/src/talons/AttributesBlock/useAttributesBlock.js +0 -37
- package/src/talons/CollectibleGameSets/collectibleGameSets.gql.js +0 -47
- package/src/talons/CollectibleGameSets/useCollectibleGameSets.js +0 -134
- package/src/talons/CustomFilters/customFilters.gql.js +0 -45
- package/src/talons/CustomFilters/useCustomFilters.js +0 -258
- package/src/talons/FilterOption/useFilterOptionModal.js +0 -11
- package/src/talons/FilterOptionModal/useFilterOptionModal.js +0 -11
- package/src/talons/FilterTop/customFilters.gql.js +0 -45
- package/src/talons/FilterTop/filterTop.gql.js +0 -45
- package/src/talons/FilterTop/index.js +0 -1
- package/src/talons/FilterTop/useFilterTop.js +0 -312
- package/src/talons/Header/logo.gql.js +0 -19
- package/src/talons/Header/useLogo.js +0 -19
- package/src/talons/LegoSets/legoSets.gql.js +0 -59
- package/src/talons/LegoSets/useLegoSets.js +0 -222
- package/src/talons/MegaMenu/megaMenu.gql.js +0 -70
- package/src/talons/MiniatureGameSets/miniatureGameSets.gql.js +0 -59
- package/src/talons/MiniatureGameSets/useMiniatureGameSets.js +0 -220
- package/src/talons/NonSportCardsSets/nonSportCardsSets.gql.js +0 -59
- package/src/talons/NonSportCardsSets/useNonSportCardsSets.js +0 -238
- package/src/talons/SellerReview/sellerReview.gql.js +0 -53
- package/src/talons/SellerReview/useSellerReview.js +0 -49
- package/src/talons/ShopBy/shopBy.gql.js +0 -61
- package/src/talons/ShopBy/useShopBy.js +0 -264
- package/src/talons/ShopByBrands/shopByBrands.gql.js +0 -59
- package/src/talons/ShopByBrands/shopByBrands.js +0 -59
- package/src/talons/ShopByBrands/useShopByBrands.js +0 -218
- package/src/talons/ShopByCard/shopByCard.gql.js +0 -47
- package/src/talons/ShopByCard/useShopByCard.js +0 -134
- package/src/talons/ShopByCategory/index.js +0 -1
- package/src/talons/ShopByCategory/shopByCategory.gql.js +0 -38
- package/src/talons/ShopByCategory/useShopByCategory.js +0 -69
- package/src/talons/ShopByVehicles/shopByVehicles.gql.js +0 -60
- package/src/talons/ShopByVehicles/useShopByVehicles.js +0 -222
- package/src/talons/SportCardsSets/sportCardsSets.gql.js +0 -61
- package/src/talons/SportCardsSets/useSportCardsSets.js +0 -266
- package/src/talons/SubCategory/subCategory.gql.js +0 -15
- package/src/talons/SubCategory/useCustomSubCategory.js +0 -49
- package/src/talons/SubCategory/useSubCategory.js +0 -52
- package/src/talons/SubCategoryPage/subCategoryPage.gql.js +0 -40
- package/src/talons/SubCategoryPage/useSubCategoryPage.js +0 -108
- package/src/talons/TrainsSets/trainsSets.gql.js +0 -60
- package/src/talons/TrainsSets/useTrainsSets.js +0 -223
package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.js
DELETED
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
import React, { useMemo, useCallback } from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl';
|
|
3
|
-
import { bool, func, shape, string } from 'prop-types';
|
|
4
|
-
import { useCreditCard } from '@magento/peregrine/lib/talons/CheckoutPage/PaymentInformation/useCreditCard';
|
|
5
|
-
|
|
6
|
-
import { isRequired } from '@magento/venia-ui/lib/util/formValidators';
|
|
7
|
-
import Country from '@magento/venia-ui/lib/components/Country';
|
|
8
|
-
import Region from '@magento/venia-ui/lib/components/Region';
|
|
9
|
-
import Postcode from '@magento/venia-ui/lib/components/Postcode';
|
|
10
|
-
import Checkbox from '@magento/venia-ui/lib/components/Checkbox';
|
|
11
|
-
import Field from '@magento/venia-ui/lib/components/Field';
|
|
12
|
-
import TextInput from '@magento/venia-ui/lib/components/TextInput';
|
|
13
|
-
import BrainTreeDropin from './brainTreeDropIn';
|
|
14
|
-
import LoadingIndicator from '@magento/venia-ui/lib/components/LoadingIndicator';
|
|
15
|
-
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
16
|
-
|
|
17
|
-
import defaultClasses from './creditCard.module.css';
|
|
18
|
-
import FormError from '@magento/venia-ui/lib/components/FormError';
|
|
19
|
-
import GoogleReCaptcha from '@magento/venia-ui/lib/components/GoogleReCaptcha';
|
|
20
|
-
|
|
21
|
-
const STEP_DESCRIPTIONS = [
|
|
22
|
-
{ defaultMessage: 'Loading Payment', id: 'checkoutPage.step0' },
|
|
23
|
-
{
|
|
24
|
-
defaultMessage: 'Checking Credit Card Information',
|
|
25
|
-
id: 'checkoutPage.step1'
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
defaultMessage: 'Checking Credit Card Information',
|
|
29
|
-
id: 'checkoutPage.step2'
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
defaultMessage: 'Checking Credit Card Information',
|
|
33
|
-
id: 'checkoutPage.step3'
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
defaultMessage: 'Saved Credit Card Information Successfully',
|
|
37
|
-
id: 'checkoutPage.step4'
|
|
38
|
-
}
|
|
39
|
-
];
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The initial view for the Braintree payment method.
|
|
43
|
-
*/
|
|
44
|
-
const CreditCard = props => {
|
|
45
|
-
const {
|
|
46
|
-
classes: propClasses,
|
|
47
|
-
onPaymentSuccess: onSuccess,
|
|
48
|
-
onPaymentReady: onReady,
|
|
49
|
-
onPaymentError: onError,
|
|
50
|
-
resetShouldSubmit,
|
|
51
|
-
shouldSubmit
|
|
52
|
-
} = props;
|
|
53
|
-
const { formatMessage } = useIntl();
|
|
54
|
-
|
|
55
|
-
const classes = useStyle(defaultClasses, propClasses);
|
|
56
|
-
|
|
57
|
-
const talonProps = useCreditCard({
|
|
58
|
-
onSuccess,
|
|
59
|
-
onReady,
|
|
60
|
-
onError,
|
|
61
|
-
shouldSubmit,
|
|
62
|
-
resetShouldSubmit
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
const {
|
|
66
|
-
errors,
|
|
67
|
-
shouldRequestPaymentNonce,
|
|
68
|
-
onPaymentError,
|
|
69
|
-
onPaymentSuccess,
|
|
70
|
-
onPaymentReady,
|
|
71
|
-
isBillingAddressSame,
|
|
72
|
-
isLoading,
|
|
73
|
-
/**
|
|
74
|
-
* `stepNumber` depicts the state of the process flow in credit card
|
|
75
|
-
* payment flow.
|
|
76
|
-
*
|
|
77
|
-
* `0` No call made yet
|
|
78
|
-
* `1` Billing address mutation intiated
|
|
79
|
-
* `2` Braintree nonce requsted
|
|
80
|
-
* `3` Payment information mutation intiated
|
|
81
|
-
* `4` All mutations done
|
|
82
|
-
*/
|
|
83
|
-
stepNumber,
|
|
84
|
-
initialValues,
|
|
85
|
-
shippingAddressCountry,
|
|
86
|
-
shouldTeardownDropin,
|
|
87
|
-
resetShouldTeardownDropin,
|
|
88
|
-
recaptchaWidgetProps
|
|
89
|
-
} = talonProps;
|
|
90
|
-
|
|
91
|
-
const creditCardComponentClassName = isLoading
|
|
92
|
-
? classes.credit_card_root_hidden
|
|
93
|
-
: classes.credit_card_root;
|
|
94
|
-
|
|
95
|
-
const billingAddressFieldsClassName = isBillingAddressSame
|
|
96
|
-
? classes.billing_address_fields_root_hidden
|
|
97
|
-
: classes.billing_address_fields_root;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Instead of defining classes={root: classes.FIELD_NAME}
|
|
101
|
-
* we are using useMemo to only do it once (hopefully).
|
|
102
|
-
*/
|
|
103
|
-
const fieldClasses = useMemo(() => {
|
|
104
|
-
return [
|
|
105
|
-
'first_name',
|
|
106
|
-
'last_name',
|
|
107
|
-
'country',
|
|
108
|
-
'street1',
|
|
109
|
-
'street2',
|
|
110
|
-
'city',
|
|
111
|
-
'region',
|
|
112
|
-
'postal_code',
|
|
113
|
-
'phone_number'
|
|
114
|
-
].reduce((acc, fieldName) => {
|
|
115
|
-
acc[fieldName] = { root: classes[fieldName] };
|
|
116
|
-
|
|
117
|
-
return acc;
|
|
118
|
-
}, {});
|
|
119
|
-
}, [classes]);
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* These 2 functions are wrappers around the `isRequired` function
|
|
123
|
-
* of `formValidators`. They perform validations only if the
|
|
124
|
-
* billing address is different from shipping address.
|
|
125
|
-
*
|
|
126
|
-
* We write this function in `venia-ui` and not in the `peregrine` talon
|
|
127
|
-
* because it references `isRequired` which is a `venia-ui` function.
|
|
128
|
-
*/
|
|
129
|
-
const isFieldRequired = useCallback((value, { isBillingAddressSame }) => {
|
|
130
|
-
if (isBillingAddressSame) {
|
|
131
|
-
/**
|
|
132
|
-
* Informed validator functions return `undefined` if
|
|
133
|
-
* validation is `true`
|
|
134
|
-
*/
|
|
135
|
-
return undefined;
|
|
136
|
-
} else {
|
|
137
|
-
return isRequired(value);
|
|
138
|
-
}
|
|
139
|
-
}, []);
|
|
140
|
-
|
|
141
|
-
const stepTitle = STEP_DESCRIPTIONS[stepNumber].defaultMessage
|
|
142
|
-
? formatMessage({
|
|
143
|
-
id: STEP_DESCRIPTIONS[stepNumber].id,
|
|
144
|
-
defaultMessage: STEP_DESCRIPTIONS[stepNumber].defaultMessage
|
|
145
|
-
})
|
|
146
|
-
: formatMessage({
|
|
147
|
-
id: 'checkoutPage.loadingPayment',
|
|
148
|
-
defaultMessage: 'Loading Payment'
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
const loadingIndicator = isLoading ? (
|
|
152
|
-
<LoadingIndicator>{stepTitle}</LoadingIndicator>
|
|
153
|
-
) : null;
|
|
154
|
-
|
|
155
|
-
return (
|
|
156
|
-
<div className={classes.root} data-cy="CreditCard-root">
|
|
157
|
-
<div className={creditCardComponentClassName}>
|
|
158
|
-
<FormError
|
|
159
|
-
allowErrorMessages
|
|
160
|
-
classes={{ root: classes.formErrorContainer }}
|
|
161
|
-
errors={Array.from(errors.values())}
|
|
162
|
-
/>
|
|
163
|
-
<div className={classes.dropin_root}>
|
|
164
|
-
<BrainTreeDropin
|
|
165
|
-
onError={onPaymentError}
|
|
166
|
-
onReady={onPaymentReady}
|
|
167
|
-
onSuccess={onPaymentSuccess}
|
|
168
|
-
shouldRequestPaymentNonce={shouldRequestPaymentNonce}
|
|
169
|
-
shouldTeardownDropin={shouldTeardownDropin}
|
|
170
|
-
resetShouldTeardownDropin={resetShouldTeardownDropin}
|
|
171
|
-
/>
|
|
172
|
-
</div>
|
|
173
|
-
<div
|
|
174
|
-
data-cy="CreditCard-AddressCheck-root"
|
|
175
|
-
className={classes.address_check}
|
|
176
|
-
>
|
|
177
|
-
<Checkbox
|
|
178
|
-
data-cy="PaymentInformation-billingAddressSame"
|
|
179
|
-
field="isBillingAddressSame"
|
|
180
|
-
label={formatMessage({
|
|
181
|
-
id: 'checkoutPage.billingAddressSame',
|
|
182
|
-
defaultMessage:
|
|
183
|
-
'Billing address same as shipping address'
|
|
184
|
-
})}
|
|
185
|
-
initialValue={initialValues.isBillingAddressSame}
|
|
186
|
-
/>
|
|
187
|
-
</div>
|
|
188
|
-
<div
|
|
189
|
-
data-cy="CreditCard-billingAddressFields"
|
|
190
|
-
className={billingAddressFieldsClassName}
|
|
191
|
-
>
|
|
192
|
-
<Field
|
|
193
|
-
id="firstName"
|
|
194
|
-
classes={fieldClasses.first_name}
|
|
195
|
-
label={formatMessage({
|
|
196
|
-
id: 'global.firstName',
|
|
197
|
-
defaultMessage: 'First Name'
|
|
198
|
-
})}
|
|
199
|
-
>
|
|
200
|
-
<TextInput
|
|
201
|
-
data-cy="CreditCard-billingAddress-firstname"
|
|
202
|
-
id="firstName"
|
|
203
|
-
field="firstName"
|
|
204
|
-
validate={isFieldRequired}
|
|
205
|
-
initialValue={initialValues.firstName}
|
|
206
|
-
/>
|
|
207
|
-
</Field>
|
|
208
|
-
<Field
|
|
209
|
-
id="lastName"
|
|
210
|
-
classes={fieldClasses.last_name}
|
|
211
|
-
label={formatMessage({
|
|
212
|
-
id: 'global.lastName',
|
|
213
|
-
defaultMessage: 'Last Name'
|
|
214
|
-
})}
|
|
215
|
-
>
|
|
216
|
-
<TextInput
|
|
217
|
-
data-cy="CreditCard-billingAddress-lastname"
|
|
218
|
-
id="lastName"
|
|
219
|
-
field="lastName"
|
|
220
|
-
validate={isFieldRequired}
|
|
221
|
-
initialValue={initialValues.lastName}
|
|
222
|
-
/>
|
|
223
|
-
</Field>
|
|
224
|
-
<Country
|
|
225
|
-
data-cy="CreditCard-billingAddress-country"
|
|
226
|
-
classes={fieldClasses.country}
|
|
227
|
-
validate={isFieldRequired}
|
|
228
|
-
initialValue={
|
|
229
|
-
/**
|
|
230
|
-
* If there is no initial value to start with
|
|
231
|
-
* use the country from shipping address.
|
|
232
|
-
*/
|
|
233
|
-
initialValues.country || shippingAddressCountry
|
|
234
|
-
}
|
|
235
|
-
/>
|
|
236
|
-
<Field
|
|
237
|
-
id="street1"
|
|
238
|
-
classes={fieldClasses.street1}
|
|
239
|
-
label={formatMessage({
|
|
240
|
-
id: 'global.streetAddress',
|
|
241
|
-
defaultMessage: 'Street Address'
|
|
242
|
-
})}
|
|
243
|
-
>
|
|
244
|
-
<TextInput
|
|
245
|
-
data-cy="CreditCard-billingAddress-street1"
|
|
246
|
-
id="street1"
|
|
247
|
-
field="street1"
|
|
248
|
-
validate={isFieldRequired}
|
|
249
|
-
initialValue={initialValues.street1}
|
|
250
|
-
/>
|
|
251
|
-
</Field>
|
|
252
|
-
<Field
|
|
253
|
-
id="street2"
|
|
254
|
-
classes={fieldClasses.street2}
|
|
255
|
-
label={formatMessage({
|
|
256
|
-
id: 'global.streetAddress2',
|
|
257
|
-
defaultMessage: 'Street Address 2'
|
|
258
|
-
})}
|
|
259
|
-
optional={true}
|
|
260
|
-
>
|
|
261
|
-
<TextInput
|
|
262
|
-
data-cy="CreditCard-billingAddress-street2"
|
|
263
|
-
id="street2"
|
|
264
|
-
field="street2"
|
|
265
|
-
initialValue={initialValues.street2}
|
|
266
|
-
/>
|
|
267
|
-
</Field>
|
|
268
|
-
<Field
|
|
269
|
-
id="city"
|
|
270
|
-
classes={fieldClasses.city}
|
|
271
|
-
label={formatMessage({
|
|
272
|
-
id: 'global.city',
|
|
273
|
-
defaultMessage: 'City'
|
|
274
|
-
})}
|
|
275
|
-
>
|
|
276
|
-
<TextInput
|
|
277
|
-
data-cy="CreditCard-billingAddress-city"
|
|
278
|
-
id="city"
|
|
279
|
-
field="city"
|
|
280
|
-
validate={isFieldRequired}
|
|
281
|
-
initialValue={initialValues.city}
|
|
282
|
-
/>
|
|
283
|
-
</Field>
|
|
284
|
-
<Region
|
|
285
|
-
data-cy="CreditCard-billingAddress-region"
|
|
286
|
-
classes={fieldClasses.region}
|
|
287
|
-
initialValue={initialValues.region}
|
|
288
|
-
validate={isFieldRequired}
|
|
289
|
-
fieldInput={'region[label]'}
|
|
290
|
-
fieldSelect={'region[region_id]'}
|
|
291
|
-
optionValueKey={'id'}
|
|
292
|
-
/>
|
|
293
|
-
<Postcode
|
|
294
|
-
data-cy="CreditCard-billingAddress-postcode"
|
|
295
|
-
classes={fieldClasses.postal_code}
|
|
296
|
-
validate={isFieldRequired}
|
|
297
|
-
initialValue={initialValues.postcode}
|
|
298
|
-
/>
|
|
299
|
-
<Field
|
|
300
|
-
id="phoneNumber"
|
|
301
|
-
classes={fieldClasses.phone_number}
|
|
302
|
-
label={formatMessage({
|
|
303
|
-
id: 'global.phoneNumber',
|
|
304
|
-
defaultMessage: 'Phone Number'
|
|
305
|
-
})}
|
|
306
|
-
>
|
|
307
|
-
<TextInput
|
|
308
|
-
data-cy="CreditCard-billingAddress-phoneNumber"
|
|
309
|
-
id="phoneNumber"
|
|
310
|
-
field="phoneNumber"
|
|
311
|
-
validate={isFieldRequired}
|
|
312
|
-
initialValue={initialValues.phoneNumber}
|
|
313
|
-
/>
|
|
314
|
-
</Field>
|
|
315
|
-
</div>
|
|
316
|
-
<GoogleReCaptcha {...recaptchaWidgetProps} />
|
|
317
|
-
</div>
|
|
318
|
-
{loadingIndicator}
|
|
319
|
-
</div>
|
|
320
|
-
);
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
export default CreditCard;
|
|
324
|
-
|
|
325
|
-
CreditCard.propTypes = {
|
|
326
|
-
classes: shape({
|
|
327
|
-
root: string,
|
|
328
|
-
dropin_root: string,
|
|
329
|
-
billing_address_fields_root: string,
|
|
330
|
-
first_name: string,
|
|
331
|
-
last_name: string,
|
|
332
|
-
city: string,
|
|
333
|
-
region: string,
|
|
334
|
-
postal_code: string,
|
|
335
|
-
phone_number: string,
|
|
336
|
-
country: string,
|
|
337
|
-
street1: string,
|
|
338
|
-
street2: string,
|
|
339
|
-
address_check: string,
|
|
340
|
-
credit_card_root: string,
|
|
341
|
-
credit_card_root_hidden: string
|
|
342
|
-
}),
|
|
343
|
-
shouldSubmit: bool.isRequired,
|
|
344
|
-
onPaymentSuccess: func,
|
|
345
|
-
onPaymentReady: func,
|
|
346
|
-
onPaymentError: func,
|
|
347
|
-
resetShouldSubmit: func.isRequired
|
|
348
|
-
};
|
package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.module.css
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
}
|
|
3
|
-
|
|
4
|
-
.credit_card_root {
|
|
5
|
-
composes: visible from global;
|
|
6
|
-
composes: opacity-100 from global;
|
|
7
|
-
transition-delay: 64ms;
|
|
8
|
-
transition-duration: 384ms;
|
|
9
|
-
transition-property: opacity, visbility;
|
|
10
|
-
transition-timing-function: var(--venia-global-anim-standard);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.credit_card_root_hidden {
|
|
14
|
-
composes: h-0 from global;
|
|
15
|
-
composes: invisible from global;
|
|
16
|
-
composes: opacity-0 from global;
|
|
17
|
-
composes: overflow-hidden from global;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.dropin_root {
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.billing_address_fields_root {
|
|
24
|
-
composes: gap-x-xs from global;
|
|
25
|
-
composes: gap-y-sm from global;
|
|
26
|
-
composes: grid from global;
|
|
27
|
-
composes: px-0 from global;
|
|
28
|
-
composes: py-xs from global;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.billing_address_fields_root_hidden {
|
|
32
|
-
composes: h-0 from global;
|
|
33
|
-
composes: invisible from global;
|
|
34
|
-
composes: opacity-0 from global;
|
|
35
|
-
composes: overflow-hidden from global;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.formErrorContainer {
|
|
39
|
-
composes: pt-sm from global;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.first_name,
|
|
43
|
-
.last_name {
|
|
44
|
-
composes: col-end-span2 from global;
|
|
45
|
-
|
|
46
|
-
composes: lg_col-end-span1 from global;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.country,
|
|
50
|
-
.street1,
|
|
51
|
-
.street2,
|
|
52
|
-
.address_check,
|
|
53
|
-
.city,
|
|
54
|
-
.region,
|
|
55
|
-
.postal_code,
|
|
56
|
-
.phone_number {
|
|
57
|
-
composes: col-end-span2 from global;
|
|
58
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { shape, string, bool, func } from 'prop-types';
|
|
3
|
-
import defaultClasses from './editCard.module.css';
|
|
4
|
-
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
5
|
-
import CreditCard from './creditCard';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The edit view for the Braintree payment method.
|
|
9
|
-
*/
|
|
10
|
-
const EditCard = props => {
|
|
11
|
-
const classes = useStyle(defaultClasses, props.classes);
|
|
12
|
-
const {
|
|
13
|
-
onPaymentReady,
|
|
14
|
-
onPaymentSuccess,
|
|
15
|
-
onPaymentError,
|
|
16
|
-
resetShouldSubmit,
|
|
17
|
-
shouldSubmit
|
|
18
|
-
} = props;
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<div className={classes.root} data-cy="EditCard">
|
|
22
|
-
<CreditCard
|
|
23
|
-
onPaymentReady={onPaymentReady}
|
|
24
|
-
onPaymentSuccess={onPaymentSuccess}
|
|
25
|
-
onPaymentError={onPaymentError}
|
|
26
|
-
resetShouldSubmit={resetShouldSubmit}
|
|
27
|
-
shouldSubmit={shouldSubmit}
|
|
28
|
-
/>
|
|
29
|
-
</div>
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
EditCard.propTypes = {
|
|
34
|
-
classes: shape({
|
|
35
|
-
root: string
|
|
36
|
-
}),
|
|
37
|
-
onPaymentReady: func.isRequired,
|
|
38
|
-
onPaymentSuccess: func.isRequired,
|
|
39
|
-
onPaymentError: func.isRequired,
|
|
40
|
-
resetShouldSubmit: func.isRequired,
|
|
41
|
-
shouldSubmit: bool
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export default EditCard;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
2
|
-
import { FormattedMessage, useIntl } from 'react-intl';
|
|
3
|
-
import { bool, func } from 'prop-types';
|
|
4
|
-
|
|
5
|
-
import { useEditModal } from '@magento/peregrine/lib/talons/CheckoutPage/PaymentInformation/useEditModal';
|
|
6
|
-
import Dialog from '@magento/venia-ui/lib/components/Dialog';
|
|
7
|
-
import editablePayments from './editablePaymentCollection';
|
|
8
|
-
|
|
9
|
-
const EditModal = props => {
|
|
10
|
-
const { onClose, isOpen } = props;
|
|
11
|
-
const { formatMessage } = useIntl();
|
|
12
|
-
|
|
13
|
-
const talonProps = useEditModal({ onClose });
|
|
14
|
-
|
|
15
|
-
const {
|
|
16
|
-
selectedPaymentMethod,
|
|
17
|
-
handleUpdate,
|
|
18
|
-
handleClose,
|
|
19
|
-
handlePaymentSuccess,
|
|
20
|
-
handlePaymentReady,
|
|
21
|
-
updateButtonClicked,
|
|
22
|
-
resetUpdateButtonClicked,
|
|
23
|
-
handlePaymentError
|
|
24
|
-
} = talonProps;
|
|
25
|
-
|
|
26
|
-
const paymentMethodComponent = useMemo(() => {
|
|
27
|
-
const isEditable = Object.keys(editablePayments).includes(
|
|
28
|
-
selectedPaymentMethod
|
|
29
|
-
);
|
|
30
|
-
if (isEditable) {
|
|
31
|
-
const PaymentMethodComponent =
|
|
32
|
-
editablePayments[selectedPaymentMethod];
|
|
33
|
-
return (
|
|
34
|
-
<PaymentMethodComponent
|
|
35
|
-
onPaymentReady={handlePaymentReady}
|
|
36
|
-
onPaymentSuccess={handlePaymentSuccess}
|
|
37
|
-
onPaymentError={handlePaymentError}
|
|
38
|
-
resetShouldSubmit={resetUpdateButtonClicked}
|
|
39
|
-
shouldSubmit={updateButtonClicked}
|
|
40
|
-
/>
|
|
41
|
-
);
|
|
42
|
-
} else {
|
|
43
|
-
return (
|
|
44
|
-
<div>
|
|
45
|
-
<FormattedMessage
|
|
46
|
-
id={'checkoutPage.paymentMethodStatus'}
|
|
47
|
-
defaultMessage={
|
|
48
|
-
'{selectedPaymentMethod} is not supported for editing.'
|
|
49
|
-
}
|
|
50
|
-
values={{ selectedPaymentMethod }}
|
|
51
|
-
/>
|
|
52
|
-
</div>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
}, [
|
|
56
|
-
handlePaymentError,
|
|
57
|
-
handlePaymentReady,
|
|
58
|
-
handlePaymentSuccess,
|
|
59
|
-
resetUpdateButtonClicked,
|
|
60
|
-
selectedPaymentMethod,
|
|
61
|
-
updateButtonClicked
|
|
62
|
-
]);
|
|
63
|
-
|
|
64
|
-
return (
|
|
65
|
-
<Dialog
|
|
66
|
-
confirmText={'Update'}
|
|
67
|
-
confirmTranslationId={'global.updateButton'}
|
|
68
|
-
isOpen={isOpen}
|
|
69
|
-
onCancel={handleClose}
|
|
70
|
-
onConfirm={handleUpdate}
|
|
71
|
-
shouldDisableAllButtons={updateButtonClicked}
|
|
72
|
-
shouldDisableConfirmButton={updateButtonClicked}
|
|
73
|
-
title={formatMessage({
|
|
74
|
-
id: 'checkoutPage.editPaymentInformation',
|
|
75
|
-
defaultMessage: 'Edit Payment Information'
|
|
76
|
-
})}
|
|
77
|
-
>
|
|
78
|
-
{paymentMethodComponent}
|
|
79
|
-
</Dialog>
|
|
80
|
-
);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export default EditModal;
|
|
84
|
-
|
|
85
|
-
EditModal.propTypes = {
|
|
86
|
-
onClose: func.isRequired,
|
|
87
|
-
isOpen: bool
|
|
88
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is augmented at build time using the @magento/venia-ui build
|
|
3
|
-
* target "checkoutPagePaymentTypes", which allows third-party modules to
|
|
4
|
-
* add new payment component mappings for the checkout page.
|
|
5
|
-
*
|
|
6
|
-
* @see [Payment definition object]{@link PaymentDefinition}
|
|
7
|
-
*/
|
|
8
|
-
export default {};
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* A payment definition object that describes a payment in your storefront.
|
|
12
|
-
*
|
|
13
|
-
* @typedef {Object} PaymentDefinition
|
|
14
|
-
* @property {string} paymentCode is use to map your payment
|
|
15
|
-
* @property {string} importPath Resolvable path to the component the
|
|
16
|
-
* Route component will render
|
|
17
|
-
*
|
|
18
|
-
* @example <caption>A custom payment method</caption>
|
|
19
|
-
* const myCustomPayment = {
|
|
20
|
-
* paymentCode: 'cc',
|
|
21
|
-
* importPath: '@partner/module/path_to_your_component'
|
|
22
|
-
* }
|
|
23
|
-
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './paymentInformation';
|
package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import React, { Suspense } from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl';
|
|
3
|
-
import { Form } from 'informed';
|
|
4
|
-
import { shape, func, string, bool, instanceOf } from 'prop-types';
|
|
5
|
-
|
|
6
|
-
import { usePaymentInformation } from '@magento/peregrine/lib/talons/CheckoutPage/PaymentInformation/usePaymentInformation';
|
|
7
|
-
import CheckoutError from '@magento/peregrine/lib/talons/CheckoutPage/CheckoutError';
|
|
8
|
-
|
|
9
|
-
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
10
|
-
import defaultClasses from './paymentInformation.module.css';
|
|
11
|
-
import LoadingIndicator from '@magento/venia-ui/lib/components/LoadingIndicator';
|
|
12
|
-
|
|
13
|
-
const PaymentMethods = React.lazy(() => import('./paymentMethods'));
|
|
14
|
-
const EditModal = React.lazy(() => import('./editModal'));
|
|
15
|
-
const Summary = React.lazy(() => import('./summary'));
|
|
16
|
-
|
|
17
|
-
const PaymentInformation = props => {
|
|
18
|
-
const {
|
|
19
|
-
classes: propClasses,
|
|
20
|
-
onSave,
|
|
21
|
-
resetShouldSubmit,
|
|
22
|
-
setCheckoutStep,
|
|
23
|
-
shouldSubmit,
|
|
24
|
-
checkoutError
|
|
25
|
-
} = props;
|
|
26
|
-
|
|
27
|
-
const classes = useStyle(defaultClasses, propClasses);
|
|
28
|
-
|
|
29
|
-
const talonProps = usePaymentInformation({
|
|
30
|
-
onSave,
|
|
31
|
-
checkoutError,
|
|
32
|
-
resetShouldSubmit,
|
|
33
|
-
setCheckoutStep,
|
|
34
|
-
shouldSubmit
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
const {
|
|
38
|
-
doneEditing,
|
|
39
|
-
handlePaymentError,
|
|
40
|
-
handlePaymentSuccess,
|
|
41
|
-
hideEditModal,
|
|
42
|
-
isLoading,
|
|
43
|
-
isEditModalActive,
|
|
44
|
-
showEditModal
|
|
45
|
-
} = talonProps;
|
|
46
|
-
|
|
47
|
-
if (isLoading) {
|
|
48
|
-
return (
|
|
49
|
-
<LoadingIndicator classes={{ root: classes.loading }}>
|
|
50
|
-
<FormattedMessage
|
|
51
|
-
id={'checkoutPage.loadingPaymentInformation'}
|
|
52
|
-
defaultMessage={'Fetching Payment Information'}
|
|
53
|
-
/>
|
|
54
|
-
</LoadingIndicator>
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const paymentInformation = doneEditing ? (
|
|
59
|
-
<Summary onEdit={showEditModal} />
|
|
60
|
-
) : (
|
|
61
|
-
<Form>
|
|
62
|
-
<PaymentMethods
|
|
63
|
-
onPaymentError={handlePaymentError}
|
|
64
|
-
onPaymentSuccess={handlePaymentSuccess}
|
|
65
|
-
resetShouldSubmit={resetShouldSubmit}
|
|
66
|
-
shouldSubmit={shouldSubmit}
|
|
67
|
-
/>
|
|
68
|
-
</Form>
|
|
69
|
-
);
|
|
70
|
-
|
|
71
|
-
const editModal = doneEditing ? (
|
|
72
|
-
<Suspense fallback={null}>
|
|
73
|
-
<EditModal onClose={hideEditModal} isOpen={isEditModalActive} />
|
|
74
|
-
</Suspense>
|
|
75
|
-
) : null;
|
|
76
|
-
|
|
77
|
-
return (
|
|
78
|
-
<div className={classes.root} data-cy="PaymentInformation-root">
|
|
79
|
-
<div className={classes.payment_info_container}>
|
|
80
|
-
<Suspense fallback={null}>{paymentInformation}</Suspense>
|
|
81
|
-
</div>
|
|
82
|
-
{editModal}
|
|
83
|
-
</div>
|
|
84
|
-
);
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export default PaymentInformation;
|
|
88
|
-
|
|
89
|
-
PaymentInformation.propTypes = {
|
|
90
|
-
classes: shape({
|
|
91
|
-
container: string,
|
|
92
|
-
payment_info_container: string,
|
|
93
|
-
review_order_button: string
|
|
94
|
-
}),
|
|
95
|
-
onSave: func.isRequired,
|
|
96
|
-
checkoutError: instanceOf(CheckoutError),
|
|
97
|
-
resetShouldSubmit: func.isRequired,
|
|
98
|
-
shouldSubmit: bool
|
|
99
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
composes: gap-xs from global;
|
|
3
|
-
composes: grid from global;
|
|
4
|
-
composes: grid-cols-1 from global;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.payment_info_container {
|
|
8
|
-
composes: border from global;
|
|
9
|
-
composes: border-gray-100 from global;
|
|
10
|
-
composes: rounded-md from global;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.loading {
|
|
14
|
-
composes: root from '@magento/venia-ui/lib/components/LoadingIndicator/indicator.module.css';
|
|
15
|
-
|
|
16
|
-
composes: text-center from global;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.heading {
|
|
20
|
-
composes: border-0 from global;
|
|
21
|
-
|
|
22
|
-
composes: lg_border from global;
|
|
23
|
-
}
|