@bonlineza/luxity-lib 2.31.0 → 2.31.2
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/GraphQLDropdownSelector.js +6 -1
- package/LuxityDesktopHeader.js +120 -23
- package/LuxityFooter.js +13 -5
- package/LuxityMobileHeader.js +32 -13
- package/LuxitySideNav.js +21 -10
- package/build/bundle.css +1 -1
- package/build/bundle.js +124 -42
- package/package.json +1 -1
- package/CHANGELOG.md +0 -299
- package/CreateRarestepInterest.js +0 -85
- package/LuxityHeader.js +0 -369
- package/RarestepAddInterests.js +0 -118
- package/RarestepInterests.js +0 -118
- package/build/assets/.DS_Store +0 -0
|
@@ -10982,11 +10982,16 @@
|
|
|
10982
10982
|
var SubmitButton = styled__default.input(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteral(["\n flex-basis: 15%;\n margin-right: 5px;\n"])));
|
|
10983
10983
|
|
|
10984
10984
|
var _templateObject$U;
|
|
10985
|
+
var FooterWrapper$1 = styled__default.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteral(["\n {\n background-color: ", ";\n }\n"])), function (props) {
|
|
10986
|
+
return props.theme.colors.gray;
|
|
10987
|
+
});
|
|
10988
|
+
|
|
10989
|
+
var _templateObject$V;
|
|
10985
10990
|
var ALL_ITEM$1 = {
|
|
10986
10991
|
label: 'ALL',
|
|
10987
10992
|
value: 'ALL'
|
|
10988
10993
|
};
|
|
10989
|
-
var StyledMultiselector$1 = styled__default.div(_templateObject$
|
|
10994
|
+
var StyledMultiselector$1 = styled__default.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteral(["\n .multiselector__selected-items,\n .multiselector__selectable-items {\n display: flex;\n flex-flow: no-wrap;\n margin-bottom: 40px;\n .dropdown-select-container {\n width: 100%;\n .dropdown-select {\n &__control {\n border-color: ", ";\n border-radius: 0px;\n background-color: ", ";\n color: ", ";\n }\n &__multi-value {\n background-color: ", ";\n }\n &__multi-value__label {\n color: ", ";\n font-size: 100%;\n }\n &__multi-value__remove {\n svg {\n fill: ", ";\n }\n }\n }\n }\n }\n"])), function (props) {
|
|
10990
10995
|
return props.theme.colors.primary;
|
|
10991
10996
|
}, function (props) {
|
|
10992
10997
|
return props.theme.colors.ntrlMin;
|
package/LuxityDesktopHeader.js
CHANGED
|
@@ -6,6 +6,47 @@
|
|
|
6
6
|
|
|
7
7
|
var React__default = 'default' in React ? React['default'] : React;
|
|
8
8
|
|
|
9
|
+
function ownKeys(object, enumerableOnly) {
|
|
10
|
+
var keys = Object.keys(object);
|
|
11
|
+
|
|
12
|
+
if (Object.getOwnPropertySymbols) {
|
|
13
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
14
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
15
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
16
|
+
})), keys.push.apply(keys, symbols);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return keys;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function _objectSpread2(target) {
|
|
23
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
24
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
25
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
26
|
+
_defineProperty(target, key, source[key]);
|
|
27
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
28
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return target;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function _defineProperty(obj, key, value) {
|
|
36
|
+
if (key in obj) {
|
|
37
|
+
Object.defineProperty(obj, key, {
|
|
38
|
+
value: value,
|
|
39
|
+
enumerable: true,
|
|
40
|
+
configurable: true,
|
|
41
|
+
writable: true
|
|
42
|
+
});
|
|
43
|
+
} else {
|
|
44
|
+
obj[key] = value;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return obj;
|
|
48
|
+
}
|
|
49
|
+
|
|
9
50
|
function _slicedToArray(arr, i) {
|
|
10
51
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
11
52
|
}
|
|
@@ -72,7 +113,9 @@
|
|
|
72
113
|
categoryElements = _ref$categoryElements === void 0 ? [] : _ref$categoryElements,
|
|
73
114
|
_ref$brandElements = _ref.brandElements,
|
|
74
115
|
brandElements = _ref$brandElements === void 0 ? [] : _ref$brandElements,
|
|
75
|
-
productsUrl = _ref.productsUrl
|
|
116
|
+
productsUrl = _ref.productsUrl,
|
|
117
|
+
categorySlug = _ref.categorySlug,
|
|
118
|
+
categoryTitle = _ref.categoryTitle;
|
|
76
119
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
77
120
|
className: "dropdown"
|
|
78
121
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -81,21 +124,28 @@
|
|
|
81
124
|
className: "dropdown__title"
|
|
82
125
|
}, title), /*#__PURE__*/React__default.createElement("div", {
|
|
83
126
|
className: "dropdown__elements dropdown__elements--column"
|
|
84
|
-
}, !!categoryElements.length && categoryElements.map(function (
|
|
85
|
-
return /*#__PURE__*/React__default.createElement("a", {
|
|
86
|
-
href: "".concat(productsUrl, "/").concat(category === null ||
|
|
127
|
+
}, !!categoryElements.length && categoryElements.map(function (categoryElement) {
|
|
128
|
+
return categoryElement.category ? /*#__PURE__*/React__default.createElement("a", {
|
|
129
|
+
href: "".concat(productsUrl, "/").concat(categoryElement.category, "/").concat(categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.slug),
|
|
87
130
|
className: "dropdown__element",
|
|
88
|
-
key:
|
|
89
|
-
},
|
|
131
|
+
key: categoryElement.name
|
|
132
|
+
}, categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.name) : /*#__PURE__*/React__default.createElement("a", {
|
|
133
|
+
href: "".concat(productsUrl, "/").concat(categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.slug),
|
|
134
|
+
className: "dropdown__element",
|
|
135
|
+
key: categoryElement.name
|
|
136
|
+
}, categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.name);
|
|
90
137
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
91
138
|
className: "dropdown__column"
|
|
92
139
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
93
140
|
className: "dropdown__title"
|
|
94
141
|
}, "Brands"), /*#__PURE__*/React__default.createElement("div", {
|
|
95
142
|
className: "dropdown__elements dropdown__elements--row"
|
|
96
|
-
},
|
|
143
|
+
}, /*#__PURE__*/React__default.createElement("a", {
|
|
144
|
+
href: "".concat(productsUrl, "/").concat(categorySlug),
|
|
145
|
+
className: "dropdown__element"
|
|
146
|
+
}, "All ", categoryTitle), !!brandElements.length && brandElements.map(function (brand) {
|
|
97
147
|
return /*#__PURE__*/React__default.createElement("a", {
|
|
98
|
-
href: "".concat(productsUrl, "/").concat(brand === null || brand === void 0 ? void 0 : brand.slug),
|
|
148
|
+
href: "".concat(productsUrl, "/").concat(categorySlug, "/").concat(brand === null || brand === void 0 ? void 0 : brand.slug),
|
|
99
149
|
className: "dropdown__element",
|
|
100
150
|
key: brand.name
|
|
101
151
|
}, brand === null || brand === void 0 ? void 0 : brand.name);
|
|
@@ -150,6 +200,29 @@
|
|
|
150
200
|
}, contactNumber)));
|
|
151
201
|
};
|
|
152
202
|
|
|
203
|
+
var categories = {
|
|
204
|
+
shoes: {
|
|
205
|
+
name: 'Shoes',
|
|
206
|
+
slug: 'shoes'
|
|
207
|
+
},
|
|
208
|
+
bags: {
|
|
209
|
+
name: 'Bags',
|
|
210
|
+
slug: 'bags'
|
|
211
|
+
},
|
|
212
|
+
clothing: {
|
|
213
|
+
name: 'Clothing',
|
|
214
|
+
slug: 'apparel'
|
|
215
|
+
},
|
|
216
|
+
watches: {
|
|
217
|
+
name: 'Watches',
|
|
218
|
+
slug: 'watches'
|
|
219
|
+
},
|
|
220
|
+
accessories: {
|
|
221
|
+
name: 'Accessories',
|
|
222
|
+
slug: 'accessories'
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
|
|
153
226
|
var LuxityDesktopHeader = function LuxityDesktopHeader(_ref) {
|
|
154
227
|
var accountIcon = _ref.accountIcon,
|
|
155
228
|
cartIcon = _ref.cartIcon,
|
|
@@ -159,10 +232,11 @@
|
|
|
159
232
|
categoryElements = _ref.categoryElements,
|
|
160
233
|
newBrandElements = _ref.newBrandElements,
|
|
161
234
|
bagsElements = _ref.bagsElements,
|
|
162
|
-
|
|
235
|
+
shoesElements = _ref.shoesElements,
|
|
163
236
|
clothingElements = _ref.clothingElements,
|
|
164
237
|
accessoriesElements = _ref.accessoriesElements,
|
|
165
238
|
accessoriesCategoryElements = _ref.accessoriesCategoryElements,
|
|
239
|
+
apparelStylesElements = _ref.apparelStylesElements,
|
|
166
240
|
watchesElements = _ref.watchesElements,
|
|
167
241
|
newBrandsImage = _ref.newBrandsImage,
|
|
168
242
|
bagsImage = _ref.bagsImage,
|
|
@@ -181,7 +255,8 @@
|
|
|
181
255
|
ourStoryLink = _ref.ourStoryLink,
|
|
182
256
|
blogLink = _ref.blogLink,
|
|
183
257
|
contactUsLink = _ref.contactUsLink,
|
|
184
|
-
sellToUsLink = _ref.sellToUsLink
|
|
258
|
+
sellToUsLink = _ref.sellToUsLink,
|
|
259
|
+
onLogoClick = _ref.onLogoClick;
|
|
185
260
|
|
|
186
261
|
var _useState = React.useState(''),
|
|
187
262
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -198,13 +273,23 @@
|
|
|
198
273
|
}
|
|
199
274
|
};
|
|
200
275
|
|
|
276
|
+
function addCategoryToElements(elements, categoryName) {
|
|
277
|
+
return elements.map(function (element) {
|
|
278
|
+
return _objectSpread2(_objectSpread2({}, element), {}, {
|
|
279
|
+
category: categoryName
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
|
|
201
284
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
202
285
|
className: "navbar"
|
|
203
286
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
204
287
|
className: "navbar__container"
|
|
205
288
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
206
289
|
className: "navbar__logo-wrapper"
|
|
207
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
290
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
291
|
+
type: "button",
|
|
292
|
+
onClick: onLogoClick,
|
|
208
293
|
className: "navbar__logo"
|
|
209
294
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
210
295
|
src: logoSrc,
|
|
@@ -240,7 +325,9 @@
|
|
|
240
325
|
imageSrc: newBrandsImage,
|
|
241
326
|
categoryElements: categoryElements,
|
|
242
327
|
brandElements: newBrandElements,
|
|
243
|
-
productsUrl: productsUrl
|
|
328
|
+
productsUrl: productsUrl,
|
|
329
|
+
categorySlug: "brands",
|
|
330
|
+
categoryTitle: "Brands"
|
|
244
331
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
245
332
|
className: "navbar__link"
|
|
246
333
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -251,9 +338,11 @@
|
|
|
251
338
|
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
252
339
|
title: "Department",
|
|
253
340
|
imageSrc: bagsImage,
|
|
254
|
-
categoryElements: categoryElements,
|
|
341
|
+
categoryElements: addCategoryToElements(categoryElements, categories.bags.slug),
|
|
255
342
|
brandElements: bagsElements,
|
|
256
|
-
productsUrl: productsUrl
|
|
343
|
+
productsUrl: productsUrl,
|
|
344
|
+
categorySlug: categories.bags.slug,
|
|
345
|
+
categoryTitle: categories.bags.name
|
|
257
346
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
258
347
|
className: "navbar__link"
|
|
259
348
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -264,9 +353,11 @@
|
|
|
264
353
|
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
265
354
|
title: "Department",
|
|
266
355
|
imageSrc: shoesImage,
|
|
267
|
-
categoryElements: categoryElements,
|
|
268
|
-
brandElements:
|
|
269
|
-
productsUrl: productsUrl
|
|
356
|
+
categoryElements: addCategoryToElements(categoryElements, categories.shoes.slug),
|
|
357
|
+
brandElements: shoesElements,
|
|
358
|
+
productsUrl: productsUrl,
|
|
359
|
+
categorySlug: categories.shoes.slug,
|
|
360
|
+
categoryTitle: categories.shoes.name
|
|
270
361
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
271
362
|
className: "navbar__link"
|
|
272
363
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -277,9 +368,11 @@
|
|
|
277
368
|
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
278
369
|
title: "Department",
|
|
279
370
|
imageSrc: clothingImage,
|
|
280
|
-
categoryElements:
|
|
371
|
+
categoryElements: apparelStylesElements,
|
|
281
372
|
brandElements: clothingElements,
|
|
282
|
-
productsUrl: productsUrl
|
|
373
|
+
productsUrl: productsUrl,
|
|
374
|
+
categorySlug: categories.clothing.slug,
|
|
375
|
+
categoryTitle: categories.clothing.name
|
|
283
376
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
284
377
|
className: "navbar__link"
|
|
285
378
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -288,11 +381,13 @@
|
|
|
288
381
|
}, "Accessories"), /*#__PURE__*/React__default.createElement("div", {
|
|
289
382
|
className: "navbar__dropdown"
|
|
290
383
|
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
291
|
-
title: "
|
|
384
|
+
title: "Categories",
|
|
292
385
|
imageSrc: accessoriesImage,
|
|
293
386
|
categoryElements: accessoriesCategoryElements,
|
|
294
387
|
brandElements: accessoriesElements,
|
|
295
|
-
productsUrl: productsUrl
|
|
388
|
+
productsUrl: productsUrl,
|
|
389
|
+
categorySlug: categories.accessories.slug,
|
|
390
|
+
categoryTitle: categories.accessories.name
|
|
296
391
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
297
392
|
className: "navbar__link"
|
|
298
393
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -303,9 +398,11 @@
|
|
|
303
398
|
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
304
399
|
title: "Department",
|
|
305
400
|
imageSrc: watchesImage,
|
|
306
|
-
categoryElements: categoryElements,
|
|
401
|
+
categoryElements: addCategoryToElements(categoryElements, categories.watches.slug),
|
|
307
402
|
brandElements: watchesElements,
|
|
308
|
-
productsUrl: productsUrl
|
|
403
|
+
productsUrl: productsUrl,
|
|
404
|
+
categorySlug: categories.watches.slug,
|
|
405
|
+
categoryTitle: categories.watches.name
|
|
309
406
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
310
407
|
className: "navbar__link"
|
|
311
408
|
}, /*#__PURE__*/React__default.createElement("a", {
|
package/LuxityFooter.js
CHANGED
|
@@ -1903,8 +1903,14 @@
|
|
|
1903
1903
|
}, title), /*#__PURE__*/React__default.createElement("div", {
|
|
1904
1904
|
className: "footer__links"
|
|
1905
1905
|
}, !!links.length && links.map(function (link) {
|
|
1906
|
-
return /*#__PURE__*/React__default.createElement(
|
|
1907
|
-
|
|
1906
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1907
|
+
className: "footer__link-wrapper",
|
|
1908
|
+
key: link.label
|
|
1909
|
+
}, link.icon && /*#__PURE__*/React__default.createElement("img", {
|
|
1910
|
+
className: "footer__link-icon",
|
|
1911
|
+
src: link.icon,
|
|
1912
|
+
alt: link.label
|
|
1913
|
+
}), /*#__PURE__*/React__default.createElement(GALink, {
|
|
1908
1914
|
instance: link.instance,
|
|
1909
1915
|
href: link.href,
|
|
1910
1916
|
label: link.label,
|
|
@@ -1914,12 +1920,14 @@
|
|
|
1914
1920
|
target: link.target
|
|
1915
1921
|
}, link.iconClassName && /*#__PURE__*/React__default.createElement("i", {
|
|
1916
1922
|
className: link.iconClassName
|
|
1917
|
-
}), link.label);
|
|
1923
|
+
}), link.label));
|
|
1918
1924
|
})));
|
|
1919
1925
|
};
|
|
1920
1926
|
|
|
1921
1927
|
return /*#__PURE__*/React__default.createElement(FooterWrapper, null, showNewsletter && /*#__PURE__*/React__default.createElement("div", {
|
|
1922
1928
|
className: "footer__newsletter-section"
|
|
1929
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1930
|
+
className: "footer__newsletter-wrapper"
|
|
1923
1931
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1924
1932
|
className: "footer__title-wrapper"
|
|
1925
1933
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -1947,7 +1955,7 @@
|
|
|
1947
1955
|
className: "footer__newsletter-icon",
|
|
1948
1956
|
src: formIconSrc,
|
|
1949
1957
|
alt: "submit"
|
|
1950
|
-
}))))), /*#__PURE__*/React__default.createElement("div", {
|
|
1958
|
+
})))))), /*#__PURE__*/React__default.createElement("div", {
|
|
1951
1959
|
className: "footer__wrapper footer__wrapper--desktop"
|
|
1952
1960
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1953
1961
|
className: "footer__main-section"
|
|
@@ -2006,7 +2014,7 @@
|
|
|
2006
2014
|
className: "footer__link-container"
|
|
2007
2015
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2008
2016
|
className: "footer__link-title"
|
|
2009
|
-
}, "We love"), /*#__PURE__*/React__default.createElement("div", {
|
|
2017
|
+
}, "We love..."), /*#__PURE__*/React__default.createElement("div", {
|
|
2010
2018
|
className: "footer__links"
|
|
2011
2019
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2012
2020
|
className: "footer__text"
|
package/LuxityMobileHeader.js
CHANGED
|
@@ -115,7 +115,8 @@
|
|
|
115
115
|
categoryElements = _ref.categoryElements,
|
|
116
116
|
subMenuBrandsTitle = _ref.subMenuBrandsTitle,
|
|
117
117
|
_ref$brandsList = _ref.brandsList,
|
|
118
|
-
brandsList = _ref$brandsList === void 0 ? [] : _ref$brandsList
|
|
118
|
+
brandsList = _ref$brandsList === void 0 ? [] : _ref$brandsList,
|
|
119
|
+
categorySlug = _ref.categorySlug;
|
|
119
120
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
120
121
|
className: "side-nav__content ".concat(subMenuOpen ? '' : 'side-nav__content--hidden')
|
|
121
122
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -150,7 +151,7 @@
|
|
|
150
151
|
className: "side-nav__element"
|
|
151
152
|
}, "All Brands"), !!brandsList.length && brandsList.map(function (brand) {
|
|
152
153
|
return /*#__PURE__*/React__default.createElement("a", {
|
|
153
|
-
href: "".concat(productUrl, "/").concat(brand.slug),
|
|
154
|
+
href: "".concat(productUrl, "/").concat(categorySlug, "/").concat(brand.slug),
|
|
154
155
|
className: "side-nav__element"
|
|
155
156
|
}, brand.name);
|
|
156
157
|
})))));
|
|
@@ -180,6 +181,10 @@
|
|
|
180
181
|
accessoriesBrandsList = _ref$accessoriesBrand === void 0 ? [] : _ref$accessoriesBrand,
|
|
181
182
|
_ref$watchesBrandsLis = _ref.watchesBrandsList,
|
|
182
183
|
watchesBrandsList = _ref$watchesBrandsLis === void 0 ? [] : _ref$watchesBrandsLis,
|
|
184
|
+
_ref$accessoriesCateg = _ref.accessoriesCategoryElements,
|
|
185
|
+
accessoriesCategoryElements = _ref$accessoriesCateg === void 0 ? [] : _ref$accessoriesCateg,
|
|
186
|
+
_ref$apparelStylesEle = _ref.apparelStylesElements,
|
|
187
|
+
apparelStylesElements = _ref$apparelStylesEle === void 0 ? [] : _ref$apparelStylesEle,
|
|
183
188
|
showSideNav = _ref.showSideNav,
|
|
184
189
|
onMenuClick = _ref.onMenuClick;
|
|
185
190
|
|
|
@@ -363,7 +368,8 @@
|
|
|
363
368
|
productUrl: productUrl,
|
|
364
369
|
categoryElements: categoryElements,
|
|
365
370
|
subMenuBrandsTitle: "Brands",
|
|
366
|
-
brandsList: newBrandsList
|
|
371
|
+
brandsList: newBrandsList,
|
|
372
|
+
categorySlug: displayedSubMenu
|
|
367
373
|
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
368
374
|
subMenuOpen: subMenuOpen && displayedSubMenu === 'bags',
|
|
369
375
|
onBackClick: onBackClick,
|
|
@@ -372,7 +378,8 @@
|
|
|
372
378
|
productUrl: productUrl,
|
|
373
379
|
categoryElements: categoryElements,
|
|
374
380
|
subMenuBrandsTitle: "Bag Brands",
|
|
375
|
-
brandsList: bagsBrandsList
|
|
381
|
+
brandsList: bagsBrandsList,
|
|
382
|
+
categorySlug: displayedSubMenu
|
|
376
383
|
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
377
384
|
subMenuOpen: subMenuOpen && displayedSubMenu === 'shoes',
|
|
378
385
|
onBackClick: onBackClick,
|
|
@@ -381,25 +388,28 @@
|
|
|
381
388
|
productUrl: productUrl,
|
|
382
389
|
categoryElements: categoryElements,
|
|
383
390
|
subMenuBrandsTitle: "Shoe Brands",
|
|
384
|
-
brandsList: shoesBrandsList
|
|
391
|
+
brandsList: shoesBrandsList,
|
|
392
|
+
categorySlug: displayedSubMenu
|
|
385
393
|
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
386
394
|
subMenuOpen: subMenuOpen && displayedSubMenu === 'clothing',
|
|
387
395
|
onBackClick: onBackClick,
|
|
388
396
|
backIcon: backIcon,
|
|
389
397
|
subMenuCategoryTitle: "Department",
|
|
390
398
|
productUrl: productUrl,
|
|
391
|
-
categoryElements:
|
|
399
|
+
categoryElements: apparelStylesElements,
|
|
392
400
|
subMenuBrandsTitle: "Clothing Brands",
|
|
393
|
-
brandsList: clothingBrandsList
|
|
401
|
+
brandsList: clothingBrandsList,
|
|
402
|
+
categorySlug: displayedSubMenu
|
|
394
403
|
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
395
404
|
subMenuOpen: subMenuOpen && displayedSubMenu === 'accessories',
|
|
396
405
|
onBackClick: onBackClick,
|
|
397
406
|
backIcon: backIcon,
|
|
398
407
|
subMenuCategoryTitle: "Categories",
|
|
399
408
|
productUrl: productUrl,
|
|
400
|
-
categoryElements:
|
|
409
|
+
categoryElements: accessoriesCategoryElements,
|
|
401
410
|
subMenuBrandsTitle: "Accessory Brands",
|
|
402
|
-
brandsList: accessoriesBrandsList
|
|
411
|
+
brandsList: accessoriesBrandsList,
|
|
412
|
+
categorySlug: displayedSubMenu
|
|
403
413
|
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
404
414
|
subMenuOpen: subMenuOpen && displayedSubMenu === 'watches',
|
|
405
415
|
onBackClick: onBackClick,
|
|
@@ -408,7 +418,8 @@
|
|
|
408
418
|
productUrl: productUrl,
|
|
409
419
|
categoryElements: categoryElements,
|
|
410
420
|
subMenuBrandsTitle: "Watches Brands",
|
|
411
|
-
brandsList: watchesBrandsList
|
|
421
|
+
brandsList: watchesBrandsList,
|
|
422
|
+
categorySlug: displayedSubMenu
|
|
412
423
|
}), displayedSubMenu === 'stores' && /*#__PURE__*/React__default.createElement("div", {
|
|
413
424
|
className: "side-nav__content"
|
|
414
425
|
}, /*#__PURE__*/React__default.createElement(StoresDropdown, {
|
|
@@ -442,7 +453,10 @@
|
|
|
442
453
|
shoesBrandsList = _ref.shoesBrandsList,
|
|
443
454
|
clothingBrandsList = _ref.clothingBrandsList,
|
|
444
455
|
accessoriesBrandsList = _ref.accessoriesBrandsList,
|
|
445
|
-
|
|
456
|
+
accessoriesCategoryElements = _ref.accessoriesCategoryElements,
|
|
457
|
+
apparelStylesElements = _ref.apparelStylesElements,
|
|
458
|
+
watchesBrandsList = _ref.watchesBrandsList,
|
|
459
|
+
onLogoClick = _ref.onLogoClick;
|
|
446
460
|
|
|
447
461
|
var _useState = React.useState(''),
|
|
448
462
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -495,7 +509,9 @@
|
|
|
495
509
|
className: "navbar__menu-icon"
|
|
496
510
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
497
511
|
className: "navbar__search-wrapper"
|
|
498
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
512
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
513
|
+
type: "button",
|
|
514
|
+
onClick: onLogoClick,
|
|
499
515
|
className: "navbar__logo"
|
|
500
516
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
501
517
|
src: logoSrc,
|
|
@@ -510,6 +526,7 @@
|
|
|
510
526
|
onClick: onSearchClick
|
|
511
527
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
512
528
|
src: inputSearchIcon,
|
|
529
|
+
className: "navbar__icon",
|
|
513
530
|
alt: "interest-icon"
|
|
514
531
|
})), /*#__PURE__*/React__default.createElement("button", {
|
|
515
532
|
type: "button",
|
|
@@ -558,7 +575,9 @@
|
|
|
558
575
|
accessoriesBrandsList: accessoriesBrandsList,
|
|
559
576
|
watchesBrandsList: watchesBrandsList,
|
|
560
577
|
showSideNav: showSideNav,
|
|
561
|
-
onMenuClick: onMenuClick
|
|
578
|
+
onMenuClick: onMenuClick,
|
|
579
|
+
accessoriesCategoryElements: accessoriesCategoryElements,
|
|
580
|
+
apparelStylesElements: apparelStylesElements
|
|
562
581
|
}));
|
|
563
582
|
};
|
|
564
583
|
|
package/LuxitySideNav.js
CHANGED
|
@@ -115,7 +115,8 @@
|
|
|
115
115
|
categoryElements = _ref.categoryElements,
|
|
116
116
|
subMenuBrandsTitle = _ref.subMenuBrandsTitle,
|
|
117
117
|
_ref$brandsList = _ref.brandsList,
|
|
118
|
-
brandsList = _ref$brandsList === void 0 ? [] : _ref$brandsList
|
|
118
|
+
brandsList = _ref$brandsList === void 0 ? [] : _ref$brandsList,
|
|
119
|
+
categorySlug = _ref.categorySlug;
|
|
119
120
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
120
121
|
className: "side-nav__content ".concat(subMenuOpen ? '' : 'side-nav__content--hidden')
|
|
121
122
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -150,7 +151,7 @@
|
|
|
150
151
|
className: "side-nav__element"
|
|
151
152
|
}, "All Brands"), !!brandsList.length && brandsList.map(function (brand) {
|
|
152
153
|
return /*#__PURE__*/React__default.createElement("a", {
|
|
153
|
-
href: "".concat(productUrl, "/").concat(brand.slug),
|
|
154
|
+
href: "".concat(productUrl, "/").concat(categorySlug, "/").concat(brand.slug),
|
|
154
155
|
className: "side-nav__element"
|
|
155
156
|
}, brand.name);
|
|
156
157
|
})))));
|
|
@@ -180,6 +181,10 @@
|
|
|
180
181
|
accessoriesBrandsList = _ref$accessoriesBrand === void 0 ? [] : _ref$accessoriesBrand,
|
|
181
182
|
_ref$watchesBrandsLis = _ref.watchesBrandsList,
|
|
182
183
|
watchesBrandsList = _ref$watchesBrandsLis === void 0 ? [] : _ref$watchesBrandsLis,
|
|
184
|
+
_ref$accessoriesCateg = _ref.accessoriesCategoryElements,
|
|
185
|
+
accessoriesCategoryElements = _ref$accessoriesCateg === void 0 ? [] : _ref$accessoriesCateg,
|
|
186
|
+
_ref$apparelStylesEle = _ref.apparelStylesElements,
|
|
187
|
+
apparelStylesElements = _ref$apparelStylesEle === void 0 ? [] : _ref$apparelStylesEle,
|
|
183
188
|
showSideNav = _ref.showSideNav,
|
|
184
189
|
onMenuClick = _ref.onMenuClick;
|
|
185
190
|
|
|
@@ -363,7 +368,8 @@
|
|
|
363
368
|
productUrl: productUrl,
|
|
364
369
|
categoryElements: categoryElements,
|
|
365
370
|
subMenuBrandsTitle: "Brands",
|
|
366
|
-
brandsList: newBrandsList
|
|
371
|
+
brandsList: newBrandsList,
|
|
372
|
+
categorySlug: displayedSubMenu
|
|
367
373
|
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
368
374
|
subMenuOpen: subMenuOpen && displayedSubMenu === 'bags',
|
|
369
375
|
onBackClick: onBackClick,
|
|
@@ -372,7 +378,8 @@
|
|
|
372
378
|
productUrl: productUrl,
|
|
373
379
|
categoryElements: categoryElements,
|
|
374
380
|
subMenuBrandsTitle: "Bag Brands",
|
|
375
|
-
brandsList: bagsBrandsList
|
|
381
|
+
brandsList: bagsBrandsList,
|
|
382
|
+
categorySlug: displayedSubMenu
|
|
376
383
|
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
377
384
|
subMenuOpen: subMenuOpen && displayedSubMenu === 'shoes',
|
|
378
385
|
onBackClick: onBackClick,
|
|
@@ -381,25 +388,28 @@
|
|
|
381
388
|
productUrl: productUrl,
|
|
382
389
|
categoryElements: categoryElements,
|
|
383
390
|
subMenuBrandsTitle: "Shoe Brands",
|
|
384
|
-
brandsList: shoesBrandsList
|
|
391
|
+
brandsList: shoesBrandsList,
|
|
392
|
+
categorySlug: displayedSubMenu
|
|
385
393
|
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
386
394
|
subMenuOpen: subMenuOpen && displayedSubMenu === 'clothing',
|
|
387
395
|
onBackClick: onBackClick,
|
|
388
396
|
backIcon: backIcon,
|
|
389
397
|
subMenuCategoryTitle: "Department",
|
|
390
398
|
productUrl: productUrl,
|
|
391
|
-
categoryElements:
|
|
399
|
+
categoryElements: apparelStylesElements,
|
|
392
400
|
subMenuBrandsTitle: "Clothing Brands",
|
|
393
|
-
brandsList: clothingBrandsList
|
|
401
|
+
brandsList: clothingBrandsList,
|
|
402
|
+
categorySlug: displayedSubMenu
|
|
394
403
|
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
395
404
|
subMenuOpen: subMenuOpen && displayedSubMenu === 'accessories',
|
|
396
405
|
onBackClick: onBackClick,
|
|
397
406
|
backIcon: backIcon,
|
|
398
407
|
subMenuCategoryTitle: "Categories",
|
|
399
408
|
productUrl: productUrl,
|
|
400
|
-
categoryElements:
|
|
409
|
+
categoryElements: accessoriesCategoryElements,
|
|
401
410
|
subMenuBrandsTitle: "Accessory Brands",
|
|
402
|
-
brandsList: accessoriesBrandsList
|
|
411
|
+
brandsList: accessoriesBrandsList,
|
|
412
|
+
categorySlug: displayedSubMenu
|
|
403
413
|
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
404
414
|
subMenuOpen: subMenuOpen && displayedSubMenu === 'watches',
|
|
405
415
|
onBackClick: onBackClick,
|
|
@@ -408,7 +418,8 @@
|
|
|
408
418
|
productUrl: productUrl,
|
|
409
419
|
categoryElements: categoryElements,
|
|
410
420
|
subMenuBrandsTitle: "Watches Brands",
|
|
411
|
-
brandsList: watchesBrandsList
|
|
421
|
+
brandsList: watchesBrandsList,
|
|
422
|
+
categorySlug: displayedSubMenu
|
|
412
423
|
}), displayedSubMenu === 'stores' && /*#__PURE__*/React__default.createElement("div", {
|
|
413
424
|
className: "side-nav__content"
|
|
414
425
|
}, /*#__PURE__*/React__default.createElement(StoresDropdown, {
|
package/build/bundle.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.navbar{box-shadow:2px 2px 10px #dfdede;display:flex;padding-bottom:10px;padding-top:20px;position:relative}.navbar__mobile-wrapper{align-items:center;display:flex;flex-direction:column}.navbar__container{display:flex;
|
|
1
|
+
.navbar{box-shadow:2px 2px 10px #dfdede;display:flex;padding-bottom:10px;padding-top:20px;position:relative}.navbar__mobile-wrapper{align-items:center;display:flex;flex-direction:column;padding-left:32px;padding-right:32px}.navbar__container{display:flex;margin:0 auto;max-width:1280px;padding-left:12px;padding-right:12px;width:100%}.navbar__body{flex-basis:60%}.navbar__wrapper{align-items:center;display:flex;justify-content:space-between;margin-bottom:20px;width:100%}.navbar__product-search-wrapper{align-items:center;display:flex;padding:0 20%;width:100%}.navbar__input-close-icon{height:auto;margin-bottom:10px;margin-left:10px;width:20px}.navbar__menu-icon{width:30px}.navbar__product-search{align-items:center;display:flex;max-width:545px;width:100%}.navbar__logo-wrapper{margin-right:18px;width:200px}.navbar__logo{width:200px}@media only screen and (max-width:879px){.navbar__logo{width:125px}}.navbar__form-input{align-items:center;background:transparent;border:none;display:flex;font-size:13px;outline:none;padding:10px;width:100%}.navbar__product-search{border:1px solid #dfdede;margin-bottom:10px}.navbar__section{display:flex;flex-direction:row;justify-content:space-between;width:100%}.navbar__link{display:inline-block;font-family:Martel Sans;font-size:14px;font-weight:700;margin-right:10px;overflow:hidden;text-transform:uppercase;transition:.3s ease-in-out}.navbar__link:after{background-color:#000;content:"";display:block;height:2px;transition:width .25s ease-out;width:0}.navbar__link:hover:after{width:100%}.navbar__link:hover .navbar__dropdown{animation:fadeInDropdown .3s ease-in-out;display:block}.navbar__dropdown{background-color:#fff;box-shadow:5px 5px 5px #dfdede;display:none;left:0;padding-left:10%;padding-right:10%;position:absolute;width:100%;z-index:999}@keyframes fadeInDropdown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.navbar__company-link{font-size:13px;font-weight:400;list-style:none;margin-right:18px;text-decoration:none}.navbar__company-block{align-items:center;background-color:#000;color:#fff;display:flex;font-weight:700;height:35px;justify-content:center;margin-right:0;padding:0 18px;text-transform:uppercase}.navbar__input-search-icon{height:auto;margin-left:1.125rem;margin-right:.375rem;width:15px}.navbar__nav-links{align-items:center;display:flex}.navbar__nav-links--wrap{flex-wrap:wrap}.navbar__icons{align-items:center;display:flex;height:40px;justify-content:flex-end;margin-bottom:10px}.navbar__icon{cursor:pointer;height:auto;margin-right:18px;width:20px}@media only screen and (max-width:879px){.navbar__icon{margin-right:0}}.navbar__cart-icon{position:relative}.navbar__cart-count{align-items:center;background-color:#000;border-radius:50%;bottom:50%;color:#fff;display:flex;font-size:13px;height:20px;justify-content:center;left:100%;position:absolute;width:20px}.side-nav{font-family:Martel Sans}.side-nav__overlay{background-color:rgba(78,73,73,.51);height:100%;opacity:0;position:fixed;top:0;transition:opacity .5s ease-out 0s,visibility .5s ease-out 0s;width:100%;z-index:99999}.side-nav__overlay--visible{opacity:1;visibility:visible}.side-nav__overlay--hidden{opacity:1;visibility:hidden}.side-nav__content{background-color:#fff;bottom:0;overflow-y:scroll;padding:1.5rem;position:fixed;top:0;transition:left .5s ease-in-out;width:80%;z-index:99999}.side-nav__content--hidden{display:none}.side-nav__content--open{left:0}.side-nav__content--closed{left:-100%}.side-nav__menu-title-wrapper{align-items:center;background-color:transparent;border:none;display:flex;justify-content:space-between;outline:none;width:100%}.side-nav__icon-container{float:right;margin-bottom:10px}.side-nav__menu-title{font-size:14px;font-weight:700;line-height:20px;text-transform:uppercase}.side-nav__accordion-icon{height:auto;width:15px}.side-nav__menu-item{margin-bottom:25px}.side-nav__close-icon{height:20px;margin-left:auto;width:20px}.side-nav__back-button-wrapper{align-items:center;display:flex;margin-bottom:25px}.side-nav__back-icon{height:20px;width:20px}.side-nav__back-button,.side-nav__sub-menu-title{font-weight:700;text-transform:uppercase}.side-nav__sub-menu-title{font-size:14px;margin-bottom:10px}.side-nav__elements{display:flex;flex-direction:column}.side-nav__element{color:#555;cursor:pointer;font-size:14px;font-weight:400;line-height:20px;margin-bottom:10px}.side-nav__sub-link{font-size:14px;font-weight:400;text-transform:capitalize}.side-nav__block-button{background-color:#000;color:#fff;font-weight:700;padding:10px 0;width:100%}.footer__newsletter-section{align-items:center;background-color:#000;color:#fff;display:flex;justify-content:space-between;padding:2.265rem 0}@media only screen and (max-width:879px){.footer__newsletter-section{flex-direction:column}}.footer__newsletter-wrapper{align-items:center;display:flex;justify-content:space-between;margin:0 auto;max-width:1280px;padding-left:32px;padding-right:32px;width:100%}@media only screen and (max-width:879px){.footer__newsletter-wrapper{flex-direction:column}.footer__link-container{flex-basis:50%}}.footer__newsletter-icon{height:30px;position:absolute;right:0;top:0;width:32px}.footer__newsletter-form{position:relative}@media only screen and (max-width:879px){.footer__newsletter-form{margin-top:20px;width:100%}}.footer__newsletter-title{font-family:Martel Sans,sans-serif;font-size:14px;font-weight:700;letter-spacing:3px;margin-bottom:1.125rem;text-transform:uppercase}.footer__newsletter-text{font-size:14px}.footer__form-input{background-color:#000;border:none;border-bottom:1px solid #fff;color:#fff;height:30px;outline:none;width:100%}.footer__form-errors{color:#fff;margin-top:5px}.footer__main-section{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:50px;margin-top:80px}.footer__link-title{font-family:El Messiri;font-size:16px;font-weight:700;margin-bottom:20px;text-transform:uppercase}@media only screen and (max-width:879px){.footer__link-title{margin-bottom:10px}}.footer__link-child{margin-top:50px}.footer__links{display:flex;flex-direction:column}.footer__link{color:#939393;cursor:pointer;font-family:Martel Sans;font-size:14px;line-height:20px;margin-bottom:15px;text-align:left;text-decoration:none}.footer__link:hover{color:#000;text-decoration:underline}@media only screen and (max-width:879px){.footer__link{margin-bottom:10px}}.footer__link-wrapper{align-items:center;display:flex;gap:5px}.footer__link-icon{height:13px;margin-bottom:18px}.footer__text{color:#939393;font-size:14px;line-height:20px;margin-bottom:15px;text-align:left;text-decoration:none}.footer__store-hours{margin-top:35px}.footer__copyrights-section{border-top:1px solid;display:flex;justify-content:space-between;padding-bottom:20px;padding-top:20px}.footer__logo{height:30px;width:135px}.footer__payment-icons{align-items:center;display:flex}.footer__wrapper{margin:0 auto;max-width:1280px;padding-left:32px;padding-right:32px;width:100%}@media only screen and (max-width:879px){.footer__wrapper{padding:32px 0 0 24px}}.footer__wrapper--desktop{display:block}@media only screen and (max-width:879px){.footer__wrapper--desktop{display:none}}.footer__wrapper--mobile{display:none}@media only screen and (max-width:879px){.footer__wrapper--mobile{display:block;padding-top:30px}}.footer__copyright{font-size:10px;line-height:22px}.footer__copyright--mobile{display:none}@media only screen and (max-width:879px){.footer__copyright--mobile{display:block;padding:30px 10px 30px 0;text-align:center}}.footer__section-row{display:flex;gap:50%}@media only screen and (max-width:879px){.footer__section-row{gap:unset}}.stores-dropdown{align-items:flex-start;display:flex;font-family:Martel Sans;gap:20px;padding-bottom:20px;padding-top:20px}.stores-dropdown__image{height:200px;-o-object-fit:cover;object-fit:cover;width:100%}.stores-dropdown__store-details{flex-basis:20%}.stores-dropdown__title{font-family:El Messiri}.stores-dropdown__main-title,.stores-dropdown__title{font-size:16px;font-weight:400;letter-spacing:3px;margin-top:20px}.stores-dropdown__main-title{font-weight:700;margin-bottom:10px}.stores-dropdown__open-days{font-size:12px;font-weight:700;line-height:20px}.stores-dropdown__open-hours{font-size:12px;font-weight:400;line-height:20px}.stores-dropdown__queries-title{font-family:El Messiri;font-size:16px;font-weight:400;letter-spacing:3px}.stores-dropdown__contact-details{font-size:16px;font-weight:700}.stores-dropdown__view-more{cursor:pointer;font-size:14px;font-weight:400;margin-top:10px;text-transform:capitalize}.dropdown{display:flex;justify-content:space-between;padding:20px 0}.dropdown__column{flex:1}.dropdown__column:nth-child(2){flex:2}.dropdown__title{font-family:El Messiri;font-size:16px;font-weight:700;letter-spacing:3px;line-height:1;margin-bottom:20px;text-transform:uppercase}.dropdown__elements{display:flex}.dropdown__elements--column{flex-direction:column}.dropdown__elements--row{flex-flow:row wrap;justify-content:flex-start}.dropdown__element{flex-basis:33.33%;font-family:Martel Sans;font-size:14px;font-weight:400;margin-bottom:10px;text-transform:capitalize}
|