@riosst100/pwa-marketplace 1.2.7 → 1.2.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/package.json +1 -1
- package/src/Utilities/graphQL.js +76 -76
- package/src/componentOverrideMapping.js +17 -17
- package/src/components/BecomeSeller/becomeSeller.js +335 -335
- package/src/components/BecomeSeller/becomeSeller.module.css +46 -46
- package/src/components/BecomeSellerLink/becomeSellerLink.js +52 -52
- package/src/components/BecomeSellerLink/becomeSellerLink.module.css +12 -12
- package/src/components/BecomeSellerPage/becomeSellerPage.js +45 -45
- package/src/components/BecomeSellerPage/becomeSellerPage.module.css +21 -21
- package/src/components/Filter/index.js +53 -53
- package/src/components/Header/becomeSellerLink.js +28 -28
- package/src/components/Header/becomeSellerLink.module.css +12 -12
- package/src/components/Header/websiteSwitcher.js +109 -109
- package/src/components/OperatingHours/index.js +1 -0
- package/src/components/OperatingHours/operatingHours.js +35 -0
- package/src/components/Pagination/index.js +49 -49
- package/src/components/PhoneTextInput/phoneTextInput.module.css +21 -21
- package/src/components/ProductItem/index.js +50 -50
- package/src/components/Search/index.js +16 -16
- package/src/components/Seller/index.js +1 -1
- package/src/components/Seller/seller.js +42 -249
- package/src/components/Seller/sellerAddressCard.js +48 -0
- package/src/components/SellerAccountPage/sellerAccountPage.js +110 -110
- package/src/components/SellerAccountPage/sellerAccountPage.module.css +55 -55
- package/src/components/SellerCountry/sellerCountry.gql.js +11 -11
- package/src/components/SellerDetail/index.js +1 -0
- package/src/components/SellerDetail/sellerDetail.js +166 -0
- package/src/components/SellerInformation/index.js +1 -1
- package/src/components/SellerInformation/sellerInformation.js +86 -90
- package/src/components/SellerLocation/index.js +1 -1
- package/src/components/SellerLocation/sellerLocation.js +19 -19
- package/src/components/SellerLocation/sellerLocationItem.js +27 -27
- package/src/components/SellerPage/sellerPage.js +9 -9
- package/src/components/SellerProducts/sellerProducts.js +46 -46
- package/src/components/SellerReview/index.js +1 -1
- package/src/components/SellerReview/sellerReview.js +143 -143
- package/src/components/SellerReviewItem/sellerReviewItem.js +60 -60
- package/src/components/SellerVerification/sellerVerification.js +198 -198
- package/src/components/SellerVerification/sellerVerification.module.css +47 -47
- package/src/components/SellerVerificationPage/sellerVerificationPage.js +43 -43
- package/src/components/SellerVerificationPage/sellerVerificationPage.module.css +21 -21
- package/src/components/SortBy/index.js +24 -24
- package/src/components/WebsiteSwitcher/websiteSwitcher.js +109 -109
- package/src/components/commons/Slider/index.js +13 -13
- package/src/components/commons/Tabs/index.js +64 -64
- package/src/index.js +6 -6
- package/src/intercept.js +113 -113
- package/src/moduleOverrideWebpackPlugin.js +70 -70
- package/src/overwrites/peregrine/lib/store/actions/user/asyncActions.js +96 -96
- package/src/overwrites/peregrine/lib/talons/AccountMenu/useAccountMenuItems.js +74 -74
- package/src/overwrites/peregrine/lib/talons/Adapter/useAdapter.js +208 -208
- package/src/overwrites/peregrine/lib/talons/Header/storeSwitcher.gql.js +45 -45
- package/src/overwrites/peregrine/lib/talons/Header/useStoreSwitcher.js +204 -204
- package/src/overwrites/peregrine/lib/talons/Region/useRegion.js +102 -102
- package/src/overwrites/peregrine/lib/talons/SignIn/signIn.gql.js +56 -56
- package/src/overwrites/peregrine/lib/talons/SignIn/useSignIn.js +226 -226
- package/src/overwrites/peregrine/lib/util/deriveErrorMessage.js +34 -34
- package/src/overwrites/pwa-buildpack/lib/queries/getAvailableStoresConfigData.graphql +11 -11
- package/src/overwrites/venia-ui/lib/components/Adapter/adapter.js +112 -112
- package/src/overwrites/venia-ui/lib/components/Header/header.js +130 -130
- package/src/overwrites/venia-ui/lib/components/Header/storeSwitcher.js +105 -105
- package/src/overwrites/venia-ui/lib/components/Header/switcherItem.js +47 -47
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/MegaMenu.spec.js +91 -91
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/MegaMenuItem.spec.js +123 -123
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/Submenu.spec.js +61 -61
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/SubmenuColumn.spec.js +50 -50
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenu.spec.js.snap +114 -114
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenuItem.spec.js.snap +71 -71
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/Submenu.spec.js.snap +59 -59
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/SubmenuColumn.spec.js.snap +34 -34
- package/src/overwrites/venia-ui/lib/components/MegaMenu/index.js +1 -1
- package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenu.js +90 -90
- package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenu.module.css +12 -12
- package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenuItem.js +156 -156
- package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenuItem.module.css +30 -30
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.js +89 -89
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.module.css +42 -42
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenuColumn.js +99 -99
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenuColumn.module.css +28 -28
- package/src/overwrites/venia-ui/lib/components/SearchBar/__stories__/searchBar.js +11 -11
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/searchField.spec.js.snap +72 -72
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/suggestedCategories.spec.js.snap +30 -30
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/suggestedProduct.spec.js.snap +69 -69
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/suggestedProducts.spec.js.snap +7 -7
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/suggestions.spec.js.snap +12 -12
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/autocomplete.spec.js +52 -52
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/searchBar.spec.js +82 -82
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/searchField.spec.js +87 -87
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/suggestedCategories.spec.js +45 -45
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/suggestedProduct.spec.js +43 -43
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/suggestedProducts.spec.js +45 -45
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/suggestions.spec.js +110 -110
- package/src/overwrites/venia-ui/lib/components/SearchBar/autocomplete.js +172 -172
- package/src/overwrites/venia-ui/lib/components/SearchBar/autocomplete.module.css +62 -62
- package/src/overwrites/venia-ui/lib/components/SearchBar/index.js +1 -1
- package/src/overwrites/venia-ui/lib/components/SearchBar/searchBar.js +74 -74
- package/src/overwrites/venia-ui/lib/components/SearchBar/searchBar.module.css +49 -49
- package/src/overwrites/venia-ui/lib/components/SearchBar/searchField.js +40 -40
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedCategories.js +48 -48
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedCategories.module.css +13 -13
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedCategory.js +49 -49
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedProduct.js +97 -97
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedProduct.module.css +24 -24
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedProducts.js +43 -43
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedProducts.module.css +13 -13
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestions.js +75 -75
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestions.module.css +6 -6
- package/src/overwrites/venia-ui/lib/components/StoreCodeRoute/storeCodeRoute.js +75 -75
- package/src/overwrites/venia-ui/lib/targets/venia-ui-intercept.js +70 -70
- package/src/queries/getAvailableWebsitesConfigData.graphql +14 -14
- package/src/queries/index.js +30 -30
- package/src/talons/BecomeSeller/becomeSeller.gql.js +45 -45
- package/src/talons/BecomeSeller/useBecomeSeller.js +145 -145
- package/src/talons/BecomeSellerLink/useBecomeSellerLink.js +11 -11
- package/src/talons/BecomeSellerPage/useBecomeSellerPage.js +76 -76
- package/src/talons/Header/useBecomeSellerLink.js +13 -13
- package/src/talons/Header/useWebsiteSwitcher.js +218 -218
- package/src/talons/Seller/seller.gql.js +204 -139
- package/src/talons/Seller/useSeller.js +71 -66
- package/src/talons/SellerAccountPage/useSellerAccountPage.js +174 -174
- package/src/talons/SellerCountry/useSellerCountry.js +25 -25
- package/src/talons/WebsiteByIp/getWebsiteByIp.gql.js +13 -13
- package/src/talons/WebsiteByIp/useWebsiteByIp.js +34 -34
- package/src/talons/WebsiteSwitcher/useWebsiteSwitcher.js +218 -218
- package/src/theme/vars.js +6 -6
- package/src/util/mapSeller.js +7 -7
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`#MegaMenu renders empty div if not in viewport 1`] = `
|
|
4
|
-
<nav
|
|
5
|
-
className="megaMenu"
|
|
6
|
-
role="navigation"
|
|
7
|
-
/>
|
|
8
|
-
`;
|
|
9
|
-
|
|
10
|
-
exports[`#MegaMenu renders menu if in viewport 1`] = `
|
|
11
|
-
<nav
|
|
12
|
-
className="megaMenu"
|
|
13
|
-
role="navigation"
|
|
14
|
-
>
|
|
15
|
-
<div
|
|
16
|
-
className="megaMenuItem"
|
|
17
|
-
onFocus={[Function]}
|
|
18
|
-
onMouseEnter={[Function]}
|
|
19
|
-
onMouseLeave={[Function]}
|
|
20
|
-
onTouchStart={[Function]}
|
|
21
|
-
>
|
|
22
|
-
<a
|
|
23
|
-
aria-label="Category: Women. 1 sub-categories"
|
|
24
|
-
className="megaMenuLink"
|
|
25
|
-
href="/women.html"
|
|
26
|
-
onClick={[Function]}
|
|
27
|
-
onKeyDown={[Function]}
|
|
28
|
-
>
|
|
29
|
-
Women
|
|
30
|
-
<span
|
|
31
|
-
className="arrowDown"
|
|
32
|
-
>
|
|
33
|
-
<svg
|
|
34
|
-
className="icon"
|
|
35
|
-
fill="none"
|
|
36
|
-
height={16}
|
|
37
|
-
stroke="currentColor"
|
|
38
|
-
strokeLinecap="round"
|
|
39
|
-
strokeLinejoin="round"
|
|
40
|
-
strokeWidth="2"
|
|
41
|
-
viewBox="0 0 24 24"
|
|
42
|
-
width={16}
|
|
43
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
-
>
|
|
45
|
-
<polyline
|
|
46
|
-
points="6 9 12 15 18 9"
|
|
47
|
-
/>
|
|
48
|
-
</svg>
|
|
49
|
-
</span>
|
|
50
|
-
</a>
|
|
51
|
-
<div
|
|
52
|
-
className="submenu_inactive"
|
|
53
|
-
>
|
|
54
|
-
<div
|
|
55
|
-
className="submenuItems"
|
|
56
|
-
style={
|
|
57
|
-
Object {
|
|
58
|
-
"minWidth": 20,
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
>
|
|
62
|
-
<div
|
|
63
|
-
className="submenuColumn"
|
|
64
|
-
>
|
|
65
|
-
<a
|
|
66
|
-
className="link"
|
|
67
|
-
href="/bottoms.html"
|
|
68
|
-
onClick={[Function]}
|
|
69
|
-
onKeyDown={[Function]}
|
|
70
|
-
>
|
|
71
|
-
<span
|
|
72
|
-
className="heading"
|
|
73
|
-
>
|
|
74
|
-
Bottoms
|
|
75
|
-
</span>
|
|
76
|
-
</a>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
<div
|
|
82
|
-
className="megaMenuItem"
|
|
83
|
-
onFocus={[Function]}
|
|
84
|
-
onMouseEnter={[Function]}
|
|
85
|
-
onMouseLeave={[Function]}
|
|
86
|
-
onTouchStart={[Function]}
|
|
87
|
-
>
|
|
88
|
-
<a
|
|
89
|
-
className="megaMenuLink"
|
|
90
|
-
href="/men.html"
|
|
91
|
-
onClick={[Function]}
|
|
92
|
-
onKeyDown={[Function]}
|
|
93
|
-
>
|
|
94
|
-
Men
|
|
95
|
-
</a>
|
|
96
|
-
</div>
|
|
97
|
-
<div
|
|
98
|
-
className="megaMenuItem"
|
|
99
|
-
onFocus={[Function]}
|
|
100
|
-
onMouseEnter={[Function]}
|
|
101
|
-
onMouseLeave={[Function]}
|
|
102
|
-
onTouchStart={[Function]}
|
|
103
|
-
>
|
|
104
|
-
<a
|
|
105
|
-
className="megaMenuLink"
|
|
106
|
-
href="/gear.html"
|
|
107
|
-
onClick={[Function]}
|
|
108
|
-
onKeyDown={[Function]}
|
|
109
|
-
>
|
|
110
|
-
Gear
|
|
111
|
-
</a>
|
|
112
|
-
</div>
|
|
113
|
-
</nav>
|
|
114
|
-
`;
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`#MegaMenu renders empty div if not in viewport 1`] = `
|
|
4
|
+
<nav
|
|
5
|
+
className="megaMenu"
|
|
6
|
+
role="navigation"
|
|
7
|
+
/>
|
|
8
|
+
`;
|
|
9
|
+
|
|
10
|
+
exports[`#MegaMenu renders menu if in viewport 1`] = `
|
|
11
|
+
<nav
|
|
12
|
+
className="megaMenu"
|
|
13
|
+
role="navigation"
|
|
14
|
+
>
|
|
15
|
+
<div
|
|
16
|
+
className="megaMenuItem"
|
|
17
|
+
onFocus={[Function]}
|
|
18
|
+
onMouseEnter={[Function]}
|
|
19
|
+
onMouseLeave={[Function]}
|
|
20
|
+
onTouchStart={[Function]}
|
|
21
|
+
>
|
|
22
|
+
<a
|
|
23
|
+
aria-label="Category: Women. 1 sub-categories"
|
|
24
|
+
className="megaMenuLink"
|
|
25
|
+
href="/women.html"
|
|
26
|
+
onClick={[Function]}
|
|
27
|
+
onKeyDown={[Function]}
|
|
28
|
+
>
|
|
29
|
+
Women
|
|
30
|
+
<span
|
|
31
|
+
className="arrowDown"
|
|
32
|
+
>
|
|
33
|
+
<svg
|
|
34
|
+
className="icon"
|
|
35
|
+
fill="none"
|
|
36
|
+
height={16}
|
|
37
|
+
stroke="currentColor"
|
|
38
|
+
strokeLinecap="round"
|
|
39
|
+
strokeLinejoin="round"
|
|
40
|
+
strokeWidth="2"
|
|
41
|
+
viewBox="0 0 24 24"
|
|
42
|
+
width={16}
|
|
43
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
+
>
|
|
45
|
+
<polyline
|
|
46
|
+
points="6 9 12 15 18 9"
|
|
47
|
+
/>
|
|
48
|
+
</svg>
|
|
49
|
+
</span>
|
|
50
|
+
</a>
|
|
51
|
+
<div
|
|
52
|
+
className="submenu_inactive"
|
|
53
|
+
>
|
|
54
|
+
<div
|
|
55
|
+
className="submenuItems"
|
|
56
|
+
style={
|
|
57
|
+
Object {
|
|
58
|
+
"minWidth": 20,
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
>
|
|
62
|
+
<div
|
|
63
|
+
className="submenuColumn"
|
|
64
|
+
>
|
|
65
|
+
<a
|
|
66
|
+
className="link"
|
|
67
|
+
href="/bottoms.html"
|
|
68
|
+
onClick={[Function]}
|
|
69
|
+
onKeyDown={[Function]}
|
|
70
|
+
>
|
|
71
|
+
<span
|
|
72
|
+
className="heading"
|
|
73
|
+
>
|
|
74
|
+
Bottoms
|
|
75
|
+
</span>
|
|
76
|
+
</a>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
<div
|
|
82
|
+
className="megaMenuItem"
|
|
83
|
+
onFocus={[Function]}
|
|
84
|
+
onMouseEnter={[Function]}
|
|
85
|
+
onMouseLeave={[Function]}
|
|
86
|
+
onTouchStart={[Function]}
|
|
87
|
+
>
|
|
88
|
+
<a
|
|
89
|
+
className="megaMenuLink"
|
|
90
|
+
href="/men.html"
|
|
91
|
+
onClick={[Function]}
|
|
92
|
+
onKeyDown={[Function]}
|
|
93
|
+
>
|
|
94
|
+
Men
|
|
95
|
+
</a>
|
|
96
|
+
</div>
|
|
97
|
+
<div
|
|
98
|
+
className="megaMenuItem"
|
|
99
|
+
onFocus={[Function]}
|
|
100
|
+
onMouseEnter={[Function]}
|
|
101
|
+
onMouseLeave={[Function]}
|
|
102
|
+
onTouchStart={[Function]}
|
|
103
|
+
>
|
|
104
|
+
<a
|
|
105
|
+
className="megaMenuLink"
|
|
106
|
+
href="/gear.html"
|
|
107
|
+
onClick={[Function]}
|
|
108
|
+
onKeyDown={[Function]}
|
|
109
|
+
>
|
|
110
|
+
Gear
|
|
111
|
+
</a>
|
|
112
|
+
</div>
|
|
113
|
+
</nav>
|
|
114
|
+
`;
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Mega menu item renders correctly it does not render submenu when item does not have children 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
className="megaMenuItem"
|
|
6
|
-
onFocus={[Function]}
|
|
7
|
-
onMouseEnter={[Function]}
|
|
8
|
-
onMouseLeave={[Function]}
|
|
9
|
-
onTouchStart={[Function]}
|
|
10
|
-
>
|
|
11
|
-
<mock-Submenu
|
|
12
|
-
categoryUrlSuffix=".html"
|
|
13
|
-
handleCloseSubMenu={[MockFunction]}
|
|
14
|
-
isFocused={false}
|
|
15
|
-
items={
|
|
16
|
-
Array [
|
|
17
|
-
Object {
|
|
18
|
-
"children": Array [],
|
|
19
|
-
"id": 2,
|
|
20
|
-
"name": "Bottoms",
|
|
21
|
-
"url_path": "bottoms",
|
|
22
|
-
},
|
|
23
|
-
Object {
|
|
24
|
-
"children": Array [],
|
|
25
|
-
"id": 3,
|
|
26
|
-
"isActive": false,
|
|
27
|
-
"name": "Tops",
|
|
28
|
-
"url_path": "tops",
|
|
29
|
-
},
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
mainNavWidth={200}
|
|
33
|
-
subMenuState="test"
|
|
34
|
-
/>
|
|
35
|
-
</div>
|
|
36
|
-
`;
|
|
37
|
-
|
|
38
|
-
exports[`Mega menu item renders correctly it renders correctly 1`] = `
|
|
39
|
-
<div
|
|
40
|
-
className="megaMenuItem"
|
|
41
|
-
onFocus={[Function]}
|
|
42
|
-
onMouseEnter={[Function]}
|
|
43
|
-
onMouseLeave={[Function]}
|
|
44
|
-
onTouchStart={[Function]}
|
|
45
|
-
>
|
|
46
|
-
<mock-Submenu
|
|
47
|
-
categoryUrlSuffix=".html"
|
|
48
|
-
handleCloseSubMenu={[MockFunction]}
|
|
49
|
-
isFocused={false}
|
|
50
|
-
items={
|
|
51
|
-
Array [
|
|
52
|
-
Object {
|
|
53
|
-
"children": Array [],
|
|
54
|
-
"id": 2,
|
|
55
|
-
"name": "Bottoms",
|
|
56
|
-
"url_path": "bottoms",
|
|
57
|
-
},
|
|
58
|
-
Object {
|
|
59
|
-
"children": Array [],
|
|
60
|
-
"id": 3,
|
|
61
|
-
"isActive": false,
|
|
62
|
-
"name": "Tops",
|
|
63
|
-
"url_path": "tops",
|
|
64
|
-
},
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
mainNavWidth={200}
|
|
68
|
-
subMenuState="test"
|
|
69
|
-
/>
|
|
70
|
-
</div>
|
|
71
|
-
`;
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Mega menu item renders correctly it does not render submenu when item does not have children 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
className="megaMenuItem"
|
|
6
|
+
onFocus={[Function]}
|
|
7
|
+
onMouseEnter={[Function]}
|
|
8
|
+
onMouseLeave={[Function]}
|
|
9
|
+
onTouchStart={[Function]}
|
|
10
|
+
>
|
|
11
|
+
<mock-Submenu
|
|
12
|
+
categoryUrlSuffix=".html"
|
|
13
|
+
handleCloseSubMenu={[MockFunction]}
|
|
14
|
+
isFocused={false}
|
|
15
|
+
items={
|
|
16
|
+
Array [
|
|
17
|
+
Object {
|
|
18
|
+
"children": Array [],
|
|
19
|
+
"id": 2,
|
|
20
|
+
"name": "Bottoms",
|
|
21
|
+
"url_path": "bottoms",
|
|
22
|
+
},
|
|
23
|
+
Object {
|
|
24
|
+
"children": Array [],
|
|
25
|
+
"id": 3,
|
|
26
|
+
"isActive": false,
|
|
27
|
+
"name": "Tops",
|
|
28
|
+
"url_path": "tops",
|
|
29
|
+
},
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
mainNavWidth={200}
|
|
33
|
+
subMenuState="test"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
exports[`Mega menu item renders correctly it renders correctly 1`] = `
|
|
39
|
+
<div
|
|
40
|
+
className="megaMenuItem"
|
|
41
|
+
onFocus={[Function]}
|
|
42
|
+
onMouseEnter={[Function]}
|
|
43
|
+
onMouseLeave={[Function]}
|
|
44
|
+
onTouchStart={[Function]}
|
|
45
|
+
>
|
|
46
|
+
<mock-Submenu
|
|
47
|
+
categoryUrlSuffix=".html"
|
|
48
|
+
handleCloseSubMenu={[MockFunction]}
|
|
49
|
+
isFocused={false}
|
|
50
|
+
items={
|
|
51
|
+
Array [
|
|
52
|
+
Object {
|
|
53
|
+
"children": Array [],
|
|
54
|
+
"id": 2,
|
|
55
|
+
"name": "Bottoms",
|
|
56
|
+
"url_path": "bottoms",
|
|
57
|
+
},
|
|
58
|
+
Object {
|
|
59
|
+
"children": Array [],
|
|
60
|
+
"id": 3,
|
|
61
|
+
"isActive": false,
|
|
62
|
+
"name": "Tops",
|
|
63
|
+
"url_path": "tops",
|
|
64
|
+
},
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
mainNavWidth={200}
|
|
68
|
+
subMenuState="test"
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
`;
|
package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/Submenu.spec.js.snap
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Submenu renders correctly it renders correctly 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
className="submenu_inactive"
|
|
6
|
-
>
|
|
7
|
-
<div
|
|
8
|
-
className="submenuItems"
|
|
9
|
-
style={
|
|
10
|
-
Object {
|
|
11
|
-
"minWidth": NaN,
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
>
|
|
15
|
-
<mock-SubmenuColumn
|
|
16
|
-
category={
|
|
17
|
-
Object {
|
|
18
|
-
"children": Array [
|
|
19
|
-
Object {
|
|
20
|
-
"children": Array [],
|
|
21
|
-
"id": 3,
|
|
22
|
-
"isActive": false,
|
|
23
|
-
"name": "Pants",
|
|
24
|
-
"url_path": "pants",
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
"id": 1,
|
|
28
|
-
"name": "Bottoms",
|
|
29
|
-
"url_path": "bottoms",
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
categoryUrlSuffix=".html"
|
|
33
|
-
handleCloseSubMenu={[MockFunction handleCloseSubMenu]}
|
|
34
|
-
index={0}
|
|
35
|
-
keyboardProps={Object {}}
|
|
36
|
-
/>
|
|
37
|
-
<mock-SubmenuColumn
|
|
38
|
-
category={
|
|
39
|
-
Object {
|
|
40
|
-
"children": Array [],
|
|
41
|
-
"id": 2,
|
|
42
|
-
"isActive": false,
|
|
43
|
-
"name": "Tops",
|
|
44
|
-
"url_path": "tops",
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
categoryUrlSuffix=".html"
|
|
48
|
-
handleCloseSubMenu={[MockFunction handleCloseSubMenu]}
|
|
49
|
-
index={1}
|
|
50
|
-
keyboardProps={
|
|
51
|
-
Object {
|
|
52
|
-
"onKeyDown": [Function],
|
|
53
|
-
"onKeyUp": undefined,
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
/>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
`;
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Submenu renders correctly it renders correctly 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
className="submenu_inactive"
|
|
6
|
+
>
|
|
7
|
+
<div
|
|
8
|
+
className="submenuItems"
|
|
9
|
+
style={
|
|
10
|
+
Object {
|
|
11
|
+
"minWidth": NaN,
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
>
|
|
15
|
+
<mock-SubmenuColumn
|
|
16
|
+
category={
|
|
17
|
+
Object {
|
|
18
|
+
"children": Array [
|
|
19
|
+
Object {
|
|
20
|
+
"children": Array [],
|
|
21
|
+
"id": 3,
|
|
22
|
+
"isActive": false,
|
|
23
|
+
"name": "Pants",
|
|
24
|
+
"url_path": "pants",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
"id": 1,
|
|
28
|
+
"name": "Bottoms",
|
|
29
|
+
"url_path": "bottoms",
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
categoryUrlSuffix=".html"
|
|
33
|
+
handleCloseSubMenu={[MockFunction handleCloseSubMenu]}
|
|
34
|
+
index={0}
|
|
35
|
+
keyboardProps={Object {}}
|
|
36
|
+
/>
|
|
37
|
+
<mock-SubmenuColumn
|
|
38
|
+
category={
|
|
39
|
+
Object {
|
|
40
|
+
"children": Array [],
|
|
41
|
+
"id": 2,
|
|
42
|
+
"isActive": false,
|
|
43
|
+
"name": "Tops",
|
|
44
|
+
"url_path": "tops",
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
categoryUrlSuffix=".html"
|
|
48
|
+
handleCloseSubMenu={[MockFunction handleCloseSubMenu]}
|
|
49
|
+
index={1}
|
|
50
|
+
keyboardProps={
|
|
51
|
+
Object {
|
|
52
|
+
"onKeyDown": [Function],
|
|
53
|
+
"onKeyUp": undefined,
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
`;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Submenu column renders correctly it renders correctly 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
className="submenuColumn"
|
|
6
|
-
>
|
|
7
|
-
<a
|
|
8
|
-
className="link"
|
|
9
|
-
href="/pants.html"
|
|
10
|
-
onClick={[Function]}
|
|
11
|
-
>
|
|
12
|
-
<span
|
|
13
|
-
className="heading"
|
|
14
|
-
>
|
|
15
|
-
Pants
|
|
16
|
-
</span>
|
|
17
|
-
</a>
|
|
18
|
-
<ul
|
|
19
|
-
className="submenuChild"
|
|
20
|
-
>
|
|
21
|
-
<li
|
|
22
|
-
className="submenuChildItem"
|
|
23
|
-
>
|
|
24
|
-
<a
|
|
25
|
-
className="linkActive"
|
|
26
|
-
href="/jeans.html"
|
|
27
|
-
onClick={[Function]}
|
|
28
|
-
>
|
|
29
|
-
Jeans
|
|
30
|
-
</a>
|
|
31
|
-
</li>
|
|
32
|
-
</ul>
|
|
33
|
-
</div>
|
|
34
|
-
`;
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Submenu column renders correctly it renders correctly 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
className="submenuColumn"
|
|
6
|
+
>
|
|
7
|
+
<a
|
|
8
|
+
className="link"
|
|
9
|
+
href="/pants.html"
|
|
10
|
+
onClick={[Function]}
|
|
11
|
+
>
|
|
12
|
+
<span
|
|
13
|
+
className="heading"
|
|
14
|
+
>
|
|
15
|
+
Pants
|
|
16
|
+
</span>
|
|
17
|
+
</a>
|
|
18
|
+
<ul
|
|
19
|
+
className="submenuChild"
|
|
20
|
+
>
|
|
21
|
+
<li
|
|
22
|
+
className="submenuChildItem"
|
|
23
|
+
>
|
|
24
|
+
<a
|
|
25
|
+
className="linkActive"
|
|
26
|
+
href="/jeans.html"
|
|
27
|
+
onClick={[Function]}
|
|
28
|
+
>
|
|
29
|
+
Jeans
|
|
30
|
+
</a>
|
|
31
|
+
</li>
|
|
32
|
+
</ul>
|
|
33
|
+
</div>
|
|
34
|
+
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './megaMenu';
|
|
1
|
+
export { default } from './megaMenu';
|