@bonlineza/luxity-lib 2.30.3 → 2.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/GALink.js +60 -0
- package/LuxityDesktopHeader.js +373 -0
- package/LuxityFooter.js +2026 -0
- package/LuxityGraphQLDropdownSelector.js +6 -1
- package/LuxityHeader.js +369 -0
- package/LuxityMobileHeader.js +567 -0
- package/LuxitySideNav.js +424 -0
- package/MaterialSelector.js +6 -1
- package/ModelSelector.js +6 -1
- package/Tracking.js +27 -0
- package/build/assets/.DS_Store +0 -0
- package/build/bundle.css +1 -0
- package/build/bundle.js +997 -0
- package/package.json +5 -5
package/LuxitySideNav.js
ADDED
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['react'], factory) :
|
|
4
|
+
(global = global || self, global.LuxitySideNav = factory(global.React));
|
|
5
|
+
}(this, (function (React) { 'use strict';
|
|
6
|
+
|
|
7
|
+
var React__default = 'default' in React ? React['default'] : React;
|
|
8
|
+
|
|
9
|
+
function _slicedToArray(arr, i) {
|
|
10
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function _arrayWithHoles(arr) {
|
|
14
|
+
if (Array.isArray(arr)) return arr;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function _iterableToArrayLimit(arr, i) {
|
|
18
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
19
|
+
|
|
20
|
+
if (_i == null) return;
|
|
21
|
+
var _arr = [];
|
|
22
|
+
var _n = true;
|
|
23
|
+
var _d = false;
|
|
24
|
+
|
|
25
|
+
var _s, _e;
|
|
26
|
+
|
|
27
|
+
try {
|
|
28
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
29
|
+
_arr.push(_s.value);
|
|
30
|
+
|
|
31
|
+
if (i && _arr.length === i) break;
|
|
32
|
+
}
|
|
33
|
+
} catch (err) {
|
|
34
|
+
_d = true;
|
|
35
|
+
_e = err;
|
|
36
|
+
} finally {
|
|
37
|
+
try {
|
|
38
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
39
|
+
} finally {
|
|
40
|
+
if (_d) throw _e;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return _arr;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
48
|
+
if (!o) return;
|
|
49
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
50
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
51
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
52
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
53
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function _arrayLikeToArray(arr, len) {
|
|
57
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
58
|
+
|
|
59
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
60
|
+
|
|
61
|
+
return arr2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function _nonIterableRest() {
|
|
65
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
var StoresDropdown = function StoresDropdown(_ref) {
|
|
69
|
+
var backIcon = _ref.backIcon,
|
|
70
|
+
onBackClick = _ref.onBackClick,
|
|
71
|
+
stores = _ref.stores,
|
|
72
|
+
contactUsLink = _ref.contactUsLink;
|
|
73
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
74
|
+
className: "side-nav__sub-menu"
|
|
75
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
76
|
+
type: "button",
|
|
77
|
+
className: "side-nav__back-button-wrapper",
|
|
78
|
+
onClick: onBackClick
|
|
79
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
80
|
+
src: backIcon,
|
|
81
|
+
alt: "back-icon",
|
|
82
|
+
className: "side-nav__back-icon"
|
|
83
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
84
|
+
className: "side-nav__back-button"
|
|
85
|
+
}, "Back To Menu")), /*#__PURE__*/React__default.createElement("div", {
|
|
86
|
+
className: "side-nav__store-details"
|
|
87
|
+
}, !!stores.length && stores.map(function (store) {
|
|
88
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
89
|
+
className: "stores-dropdown__main-title"
|
|
90
|
+
}, store.title, ", ", store.location), /*#__PURE__*/React__default.createElement("div", {
|
|
91
|
+
className: "stores-dropdown__open-days"
|
|
92
|
+
}, store.regularOpenDays), /*#__PURE__*/React__default.createElement("div", {
|
|
93
|
+
className: "stores-dropdown__open-hours"
|
|
94
|
+
}, store.regularOpenHours), /*#__PURE__*/React__default.createElement("div", {
|
|
95
|
+
className: "stores-dropdown__open-days"
|
|
96
|
+
}, store.holidayOpenDays), /*#__PURE__*/React__default.createElement("div", {
|
|
97
|
+
className: "stores-dropdown__open-hours"
|
|
98
|
+
}, store.holidayOpenHours), /*#__PURE__*/React__default.createElement("div", {
|
|
99
|
+
className: "stores-dropdown__open-days"
|
|
100
|
+
}, store.weekendOpenDays), /*#__PURE__*/React__default.createElement("div", {
|
|
101
|
+
className: "stores-dropdown__open-hours"
|
|
102
|
+
}, store.weekendOpenHours), /*#__PURE__*/React__default.createElement("a", {
|
|
103
|
+
href: "".concat(contactUsLink, "/#").concat(store.slug),
|
|
104
|
+
className: "stores-dropdown__view-more"
|
|
105
|
+
}, ' ', "View More"));
|
|
106
|
+
})));
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
var BrandsDropDown = function BrandsDropDown(_ref) {
|
|
110
|
+
var subMenuOpen = _ref.subMenuOpen,
|
|
111
|
+
onBackClick = _ref.onBackClick,
|
|
112
|
+
backIcon = _ref.backIcon,
|
|
113
|
+
subMenuCategoryTitle = _ref.subMenuCategoryTitle,
|
|
114
|
+
productUrl = _ref.productUrl,
|
|
115
|
+
categoryElements = _ref.categoryElements,
|
|
116
|
+
subMenuBrandsTitle = _ref.subMenuBrandsTitle,
|
|
117
|
+
_ref$brandsList = _ref.brandsList,
|
|
118
|
+
brandsList = _ref$brandsList === void 0 ? [] : _ref$brandsList;
|
|
119
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
120
|
+
className: "side-nav__content ".concat(subMenuOpen ? '' : 'side-nav__content--hidden')
|
|
121
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
122
|
+
className: "side-nav__sub-menu-wrapper"
|
|
123
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
124
|
+
className: "side-nav__sub-menu"
|
|
125
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
126
|
+
type: "button",
|
|
127
|
+
className: "side-nav__back-button-wrapper",
|
|
128
|
+
onClick: onBackClick
|
|
129
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
130
|
+
src: backIcon,
|
|
131
|
+
alt: "back-icon",
|
|
132
|
+
className: "side-nav__back-icon"
|
|
133
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
134
|
+
className: "side-nav__back-button"
|
|
135
|
+
}, "Back To Menu")), /*#__PURE__*/React__default.createElement("div", {
|
|
136
|
+
className: "side-nav__sub-menu-title"
|
|
137
|
+
}, subMenuCategoryTitle), /*#__PURE__*/React__default.createElement("div", {
|
|
138
|
+
className: "side-nav__elements"
|
|
139
|
+
}, categoryElements.map(function (category) {
|
|
140
|
+
return /*#__PURE__*/React__default.createElement("a", {
|
|
141
|
+
href: "".concat(productUrl, "/").concat(category.slug),
|
|
142
|
+
className: "side-nav__element"
|
|
143
|
+
}, category.name);
|
|
144
|
+
})), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("div", {
|
|
145
|
+
className: "side-nav__elements"
|
|
146
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
147
|
+
className: "side-nav__sub-menu-title"
|
|
148
|
+
}, subMenuBrandsTitle), /*#__PURE__*/React__default.createElement("a", {
|
|
149
|
+
href: "".concat(productUrl, "/brands"),
|
|
150
|
+
className: "side-nav__element"
|
|
151
|
+
}, "All Brands"), !!brandsList.length && brandsList.map(function (brand) {
|
|
152
|
+
return /*#__PURE__*/React__default.createElement("a", {
|
|
153
|
+
href: "".concat(productUrl, "/").concat(brand.slug),
|
|
154
|
+
className: "side-nav__element"
|
|
155
|
+
}, brand.name);
|
|
156
|
+
})))));
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
var LuxitySideNav = function LuxitySideNav(_ref) {
|
|
160
|
+
var accordionIcon = _ref.accordionIcon,
|
|
161
|
+
closeIcon = _ref.closeIcon,
|
|
162
|
+
backIcon = _ref.backIcon,
|
|
163
|
+
productUrl = _ref.productUrl,
|
|
164
|
+
onAccountClick = _ref.onAccountClick,
|
|
165
|
+
onCartClick = _ref.onCartClick,
|
|
166
|
+
contactUsLink = _ref.contactUsLink,
|
|
167
|
+
ourStoryLink = _ref.ourStoryLink,
|
|
168
|
+
blogLink = _ref.blogLink,
|
|
169
|
+
stores = _ref.stores,
|
|
170
|
+
categoryElements = _ref.categoryElements,
|
|
171
|
+
_ref$newBrandsList = _ref.newBrandsList,
|
|
172
|
+
newBrandsList = _ref$newBrandsList === void 0 ? [] : _ref$newBrandsList,
|
|
173
|
+
_ref$bagsBrandsList = _ref.bagsBrandsList,
|
|
174
|
+
bagsBrandsList = _ref$bagsBrandsList === void 0 ? [] : _ref$bagsBrandsList,
|
|
175
|
+
_ref$shoesBrandsList = _ref.shoesBrandsList,
|
|
176
|
+
shoesBrandsList = _ref$shoesBrandsList === void 0 ? [] : _ref$shoesBrandsList,
|
|
177
|
+
_ref$clothingBrandsLi = _ref.clothingBrandsList,
|
|
178
|
+
clothingBrandsList = _ref$clothingBrandsLi === void 0 ? [] : _ref$clothingBrandsLi,
|
|
179
|
+
_ref$accessoriesBrand = _ref.accessoriesBrandsList,
|
|
180
|
+
accessoriesBrandsList = _ref$accessoriesBrand === void 0 ? [] : _ref$accessoriesBrand,
|
|
181
|
+
_ref$watchesBrandsLis = _ref.watchesBrandsList,
|
|
182
|
+
watchesBrandsList = _ref$watchesBrandsLis === void 0 ? [] : _ref$watchesBrandsLis,
|
|
183
|
+
showSideNav = _ref.showSideNav,
|
|
184
|
+
onMenuClick = _ref.onMenuClick;
|
|
185
|
+
|
|
186
|
+
var _useState = React.useState(false),
|
|
187
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
188
|
+
subMenuOpen = _useState2[0],
|
|
189
|
+
setSubMenuOpen = _useState2[1];
|
|
190
|
+
|
|
191
|
+
var _useState3 = React.useState(''),
|
|
192
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
193
|
+
displayedSubMenu = _useState4[0],
|
|
194
|
+
setDisplayedSubMenu = _useState4[1];
|
|
195
|
+
|
|
196
|
+
var onSubMenuClick = function onSubMenuClick(subMenu) {
|
|
197
|
+
setSubMenuOpen(function (prev) {
|
|
198
|
+
return !prev;
|
|
199
|
+
});
|
|
200
|
+
setDisplayedSubMenu(subMenu);
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
var onStoresClick = function onStoresClick() {
|
|
204
|
+
setSubMenuOpen(false);
|
|
205
|
+
setDisplayedSubMenu('stores');
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
var onBackClick = function onBackClick() {
|
|
209
|
+
setSubMenuOpen(false);
|
|
210
|
+
setDisplayedSubMenu('');
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
214
|
+
className: "side-nav"
|
|
215
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
216
|
+
className: "side-nav__overlay ".concat(showSideNav ? 'side-nav__overlay--visible' : 'side-nav__overlay--hidden', " ")
|
|
217
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
218
|
+
className: "side-nav__content ".concat(subMenuOpen ? 'side-nav__content--hidden' : '', " ").concat(showSideNav ? 'side-nav__content--open' : 'side-nav__content--closed')
|
|
219
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
220
|
+
type: "button",
|
|
221
|
+
onClick: onMenuClick,
|
|
222
|
+
className: "side-nav__icon-container"
|
|
223
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
224
|
+
src: closeIcon,
|
|
225
|
+
alt: "close-icon",
|
|
226
|
+
className: "side-nav__close-icon"
|
|
227
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
228
|
+
className: "side-nav__menu-items-wrapper"
|
|
229
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
230
|
+
className: "side-nav__menu-item"
|
|
231
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
232
|
+
type: "button",
|
|
233
|
+
className: "side-nav__menu-title-wrapper",
|
|
234
|
+
onClick: function onClick() {
|
|
235
|
+
return onSubMenuClick('new');
|
|
236
|
+
}
|
|
237
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
238
|
+
className: "side-nav__menu-title"
|
|
239
|
+
}, "New"), /*#__PURE__*/React__default.createElement("img", {
|
|
240
|
+
src: accordionIcon,
|
|
241
|
+
alt: "accordion-icon",
|
|
242
|
+
className: "side-nav__accordion-icon"
|
|
243
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
244
|
+
className: "side-nav__menu-item"
|
|
245
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
246
|
+
type: "button",
|
|
247
|
+
className: "side-nav__menu-title-wrapper",
|
|
248
|
+
onClick: function onClick() {
|
|
249
|
+
return onSubMenuClick('bags');
|
|
250
|
+
}
|
|
251
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
252
|
+
className: "side-nav__menu-title"
|
|
253
|
+
}, "Bags"), /*#__PURE__*/React__default.createElement("img", {
|
|
254
|
+
src: accordionIcon,
|
|
255
|
+
alt: "accordion-icon",
|
|
256
|
+
className: "side-nav__accordion-icon"
|
|
257
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
258
|
+
className: "side-nav__menu-item"
|
|
259
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
260
|
+
type: "button",
|
|
261
|
+
className: "side-nav__menu-title-wrapper",
|
|
262
|
+
onClick: function onClick() {
|
|
263
|
+
return onSubMenuClick('shoes');
|
|
264
|
+
}
|
|
265
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
266
|
+
className: "side-nav__menu-title"
|
|
267
|
+
}, "Shoes"), /*#__PURE__*/React__default.createElement("img", {
|
|
268
|
+
src: accordionIcon,
|
|
269
|
+
alt: "accordion-icon",
|
|
270
|
+
className: "side-nav__accordion-icon"
|
|
271
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
272
|
+
className: "side-nav__menu-item"
|
|
273
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
274
|
+
type: "button",
|
|
275
|
+
className: "side-nav__menu-title-wrapper",
|
|
276
|
+
onClick: function onClick() {
|
|
277
|
+
return onSubMenuClick('clothing');
|
|
278
|
+
}
|
|
279
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
280
|
+
className: "side-nav__menu-title"
|
|
281
|
+
}, "Clothing"), /*#__PURE__*/React__default.createElement("img", {
|
|
282
|
+
src: accordionIcon,
|
|
283
|
+
alt: "accordion-icon",
|
|
284
|
+
className: "side-nav__accordion-icon"
|
|
285
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
286
|
+
className: "side-nav__menu-item"
|
|
287
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
288
|
+
type: "button",
|
|
289
|
+
className: "side-nav__menu-title-wrapper",
|
|
290
|
+
onClick: function onClick() {
|
|
291
|
+
return onSubMenuClick('accessories');
|
|
292
|
+
}
|
|
293
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
294
|
+
className: "side-nav__menu-title"
|
|
295
|
+
}, "Accessories"), /*#__PURE__*/React__default.createElement("img", {
|
|
296
|
+
src: accordionIcon,
|
|
297
|
+
alt: "accordion-icon",
|
|
298
|
+
className: "side-nav__accordion-icon"
|
|
299
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
300
|
+
className: "side-nav__menu-item"
|
|
301
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
302
|
+
type: "button",
|
|
303
|
+
className: "side-nav__menu-title-wrapper",
|
|
304
|
+
onClick: function onClick() {
|
|
305
|
+
return onSubMenuClick('watches');
|
|
306
|
+
}
|
|
307
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
308
|
+
className: "side-nav__menu-title"
|
|
309
|
+
}, "Watches"), /*#__PURE__*/React__default.createElement("img", {
|
|
310
|
+
src: accordionIcon,
|
|
311
|
+
alt: "accordion-icon",
|
|
312
|
+
className: "side-nav__accordion-icon"
|
|
313
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
314
|
+
className: "side-nav__menu-item"
|
|
315
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
316
|
+
type: "button",
|
|
317
|
+
className: "side-nav__menu-title-wrapper",
|
|
318
|
+
onClick: onStoresClick
|
|
319
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
320
|
+
className: "side-nav__menu-title"
|
|
321
|
+
}, "Our Stores"), /*#__PURE__*/React__default.createElement("img", {
|
|
322
|
+
src: accordionIcon,
|
|
323
|
+
alt: "accordion-icon",
|
|
324
|
+
className: "side-nav__accordion-icon"
|
|
325
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
326
|
+
className: "side-nav__menu-item"
|
|
327
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
328
|
+
type: "button",
|
|
329
|
+
className: "side-nav__block-button",
|
|
330
|
+
onClick: onStoresClick
|
|
331
|
+
}, "Sell To Us")), /*#__PURE__*/React__default.createElement("div", {
|
|
332
|
+
className: "side-nav__menu-item"
|
|
333
|
+
}, /*#__PURE__*/React__default.createElement("a", {
|
|
334
|
+
href: ourStoryLink,
|
|
335
|
+
className: "side-nav__sub-link"
|
|
336
|
+
}, "Our Story")), /*#__PURE__*/React__default.createElement("div", {
|
|
337
|
+
className: "side-nav__menu-item"
|
|
338
|
+
}, /*#__PURE__*/React__default.createElement("a", {
|
|
339
|
+
href: blogLink,
|
|
340
|
+
className: "side-nav__sub-link"
|
|
341
|
+
}, "Blog")), /*#__PURE__*/React__default.createElement("div", {
|
|
342
|
+
className: "side-nav__menu-item"
|
|
343
|
+
}, /*#__PURE__*/React__default.createElement("a", {
|
|
344
|
+
href: contactUsLink,
|
|
345
|
+
className: "side-nav__sub-link"
|
|
346
|
+
}, "Contact Us")), /*#__PURE__*/React__default.createElement("div", {
|
|
347
|
+
className: "side-nav__menu-item"
|
|
348
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
349
|
+
type: "button",
|
|
350
|
+
className: "side-nav__sub-link",
|
|
351
|
+
onClick: onAccountClick
|
|
352
|
+
}, "My Account")), /*#__PURE__*/React__default.createElement("div", {
|
|
353
|
+
className: "side-nav__menu-item"
|
|
354
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
355
|
+
type: "button",
|
|
356
|
+
className: "side-nav__sub-link",
|
|
357
|
+
onClick: onCartClick
|
|
358
|
+
}, "My Cart")))), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
359
|
+
subMenuOpen: subMenuOpen && displayedSubMenu === 'new',
|
|
360
|
+
onBackClick: onBackClick,
|
|
361
|
+
backIcon: backIcon,
|
|
362
|
+
subMenuCategoryTitle: "Department",
|
|
363
|
+
productUrl: productUrl,
|
|
364
|
+
categoryElements: categoryElements,
|
|
365
|
+
subMenuBrandsTitle: "Brands",
|
|
366
|
+
brandsList: newBrandsList
|
|
367
|
+
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
368
|
+
subMenuOpen: subMenuOpen && displayedSubMenu === 'bags',
|
|
369
|
+
onBackClick: onBackClick,
|
|
370
|
+
backIcon: backIcon,
|
|
371
|
+
subMenuCategoryTitle: "Department",
|
|
372
|
+
productUrl: productUrl,
|
|
373
|
+
categoryElements: categoryElements,
|
|
374
|
+
subMenuBrandsTitle: "Bag Brands",
|
|
375
|
+
brandsList: bagsBrandsList
|
|
376
|
+
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
377
|
+
subMenuOpen: subMenuOpen && displayedSubMenu === 'shoes',
|
|
378
|
+
onBackClick: onBackClick,
|
|
379
|
+
backIcon: backIcon,
|
|
380
|
+
subMenuCategoryTitle: "Department",
|
|
381
|
+
productUrl: productUrl,
|
|
382
|
+
categoryElements: categoryElements,
|
|
383
|
+
subMenuBrandsTitle: "Shoe Brands",
|
|
384
|
+
brandsList: shoesBrandsList
|
|
385
|
+
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
386
|
+
subMenuOpen: subMenuOpen && displayedSubMenu === 'clothing',
|
|
387
|
+
onBackClick: onBackClick,
|
|
388
|
+
backIcon: backIcon,
|
|
389
|
+
subMenuCategoryTitle: "Department",
|
|
390
|
+
productUrl: productUrl,
|
|
391
|
+
categoryElements: categoryElements,
|
|
392
|
+
subMenuBrandsTitle: "Clothing Brands",
|
|
393
|
+
brandsList: clothingBrandsList
|
|
394
|
+
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
395
|
+
subMenuOpen: subMenuOpen && displayedSubMenu === 'accessories',
|
|
396
|
+
onBackClick: onBackClick,
|
|
397
|
+
backIcon: backIcon,
|
|
398
|
+
subMenuCategoryTitle: "Categories",
|
|
399
|
+
productUrl: productUrl,
|
|
400
|
+
categoryElements: categoryElements,
|
|
401
|
+
subMenuBrandsTitle: "Accessory Brands",
|
|
402
|
+
brandsList: accessoriesBrandsList
|
|
403
|
+
}), /*#__PURE__*/React__default.createElement(BrandsDropDown, {
|
|
404
|
+
subMenuOpen: subMenuOpen && displayedSubMenu === 'watches',
|
|
405
|
+
onBackClick: onBackClick,
|
|
406
|
+
backIcon: backIcon,
|
|
407
|
+
subMenuCategoryTitle: "Department",
|
|
408
|
+
productUrl: productUrl,
|
|
409
|
+
categoryElements: categoryElements,
|
|
410
|
+
subMenuBrandsTitle: "Watches Brands",
|
|
411
|
+
brandsList: watchesBrandsList
|
|
412
|
+
}), displayedSubMenu === 'stores' && /*#__PURE__*/React__default.createElement("div", {
|
|
413
|
+
className: "side-nav__content"
|
|
414
|
+
}, /*#__PURE__*/React__default.createElement(StoresDropdown, {
|
|
415
|
+
backIcon: backIcon,
|
|
416
|
+
onBackClick: onBackClick,
|
|
417
|
+
stores: stores,
|
|
418
|
+
contactUsLink: contactUsLink
|
|
419
|
+
})));
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
return LuxitySideNav;
|
|
423
|
+
|
|
424
|
+
})));
|
package/MaterialSelector.js
CHANGED
|
@@ -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/ModelSelector.js
CHANGED
|
@@ -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/Tracking.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
+
(global = global || self, factory(global.Tracking = {}));
|
|
5
|
+
}(this, (function (exports) { 'use strict';
|
|
6
|
+
|
|
7
|
+
var Event = function Event(instance, track) {
|
|
8
|
+
var category = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
9
|
+
var action = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
10
|
+
var label = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';
|
|
11
|
+
var value = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';
|
|
12
|
+
|
|
13
|
+
if (track) {
|
|
14
|
+
instance.event({
|
|
15
|
+
category: category,
|
|
16
|
+
action: action,
|
|
17
|
+
label: label,
|
|
18
|
+
value: value
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.Event = Event;
|
|
24
|
+
|
|
25
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
26
|
+
|
|
27
|
+
})));
|
|
Binary file
|
package/build/bundle.css
ADDED
|
@@ -0,0 +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;padding:0 10%;width:100%}.navbar__body{flex-basis:60%}.navbar__wrapper{align-items:center;display:flex;justify-content:space-between;margin-bottom:20px;padding:0 10%;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{margin-top:10px;width:30px}.navbar__product-search{align-items:center;display:flex;max-width:545px;width:100%}.navbar__logo-wrapper{margin-right:18px;max-width:100%;width:255px}.navbar__logo{width:150px}.navbar__form-input{align-items:center;background:transparent;border:none;display:flex;font-size:12px;outline:none;padding:10px 10px 10px 0}.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-size:14px;font-weight:700;margin-right:18px;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:0 18px;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}.navbar__icon{cursor:pointer;height:auto;margin-right:18px;width:20px}.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}.footer__newsletter-section{align-items:center;background-color:#000;color:#fff;display:flex;justify-content:space-between;padding:2.265rem 10%}@media only screen and (max-width:879px){.footer__newsletter-section{flex-direction:column}}.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;margin-bottom:20px;text-transform:uppercase}.footer__link-child{margin-top:50px}.footer__links{display:flex;flex-direction:column}.footer__link{color:#939393;cursor:pointer;font-size:14px;line-height:20px;margin-bottom:15px;text-align:left;text-decoration:none}.footer__link:hover{color:#000;text-decoration:underline}.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{padding-left:10%;padding-right:10%}.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 0}}.footer__section-row{display:flex;gap:50%}.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%}.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}
|