@bonlineza/luxity-lib 2.32.8 → 2.33.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/AddInterest.js +3 -2
- package/GraphQLDropdownSelector.js +3 -2
- package/InterestCatSelector.js +3 -2
- package/Interests.js +3 -2
- package/LuxityDesktopHeader.js +12 -16
- package/LuxityGraphQLDropdownSelector.js +3 -2
- package/LuxityMobileHeader.js +69 -36
- package/LuxitySideNav.js +56 -26
- package/MaterialSelector.js +3 -2
- package/ModelSelector.js +3 -2
- package/build/.gitignore +3 -0
- package/build/.npmignore +0 -0
- package/build/bundle.css +1 -1
- package/build/bundle.js +51 -39
- package/package.json +1 -1
- package/svg/Clothing.js +3 -2
- package/postcss.config.js +0 -6
package/AddInterest.js
CHANGED
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
var Clothing = (function (props) {
|
|
434
434
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
435
435
|
version: "1.1",
|
|
436
|
-
id: "
|
|
436
|
+
id: "svg-clothing",
|
|
437
437
|
xmlns: "http://www.w3.org/2000/svg",
|
|
438
438
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
439
439
|
x: "0px",
|
|
@@ -444,7 +444,8 @@
|
|
|
444
444
|
className: "st0",
|
|
445
445
|
cx: "42.6",
|
|
446
446
|
cy: "42.6",
|
|
447
|
-
r: "42.6"
|
|
447
|
+
r: "42.6",
|
|
448
|
+
fill: "#fff"
|
|
448
449
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
449
450
|
d: "M69.4,58.9C69,56.7,68,55,66.2,53.6l-4.4-3.3c-4.4-3.3-8.8-6.5-13.2-9.8c-0.6-0.4-1.3-0.8-2.3-1.2l-0.1,0 c-0.6-0.2-0.6-0.2-0.7-1c0-0.6,0.2-0.9,0.7-1.1c3-1.5,4.6-4.7,4.2-8c-0.5-3.6-3.4-6.4-7-6.7c-3.5-0.4-6.9,1.8-8.1,5.2 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0.2-0.1l1.7-1.2 c1.5-1.1,3-2.1,4.5-3.2c0.6-0.4,1.2-0.7,1.8-0.9c1.7-0.5,3.4-0.2,5,0.9c2.9,2.1,5.8,4.1,8.7,6.2l3.1,2.2l4.2,3.1H23.3l3.4-2.5l2-1.5 l0,0l1.1-0.8c0.1,0,0.1-0.1,0.2-0.1c0.6-0.5,0.7-1.2,0.3-1.7c-0.4-0.5-1.1-0.6-1.7-0.2c-0.4,0.2-0.7,0.5-1,0.7l-9.4,6.7 c0.1-1,0.5-1.9,1.1-2.7c0.3-0.4,0.7-0.8,1.1-1.1c4-3,8-5.9,12-8.9l5.7-4.2c1.1-0.8,2.2-1.2,3.5-1.2h0.7c0.7,0,1.5,0,2.2,0.1 c0.8,0.1,1.6,0.4,2.5,1l17.8,13.1c1.3,0.9,2,2.2,2.2,3.7L47.3,45.3z"
|
|
450
451
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
@@ -7802,7 +7802,7 @@
|
|
|
7802
7802
|
var Clothing = (function (props) {
|
|
7803
7803
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
7804
7804
|
version: "1.1",
|
|
7805
|
-
id: "
|
|
7805
|
+
id: "svg-clothing",
|
|
7806
7806
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7807
7807
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
7808
7808
|
x: "0px",
|
|
@@ -7813,7 +7813,8 @@
|
|
|
7813
7813
|
className: "st0",
|
|
7814
7814
|
cx: "42.6",
|
|
7815
7815
|
cy: "42.6",
|
|
7816
|
-
r: "42.6"
|
|
7816
|
+
r: "42.6",
|
|
7817
|
+
fill: "#fff"
|
|
7817
7818
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
7818
7819
|
d: "M69.4,58.9C69,56.7,68,55,66.2,53.6l-4.4-3.3c-4.4-3.3-8.8-6.5-13.2-9.8c-0.6-0.4-1.3-0.8-2.3-1.2l-0.1,0 c-0.6-0.2-0.6-0.2-0.7-1c0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0.7,0.5c-0.3,0.2-0.6,0.6-0.6,0.9c0,0.3,0,0.6,0.2,0.9c0.4,0.5,1.1,0.6,1.7,0.2c0,0,0.1-0.1,0.2-0.1l1.7-1.2 c1.5-1.1,3-2.1,4.5-3.2c0.6-0.4,1.2-0.7,1.8-0.9c1.7-0.5,3.4-0.2,5,0.9c2.9,2.1,5.8,4.1,8.7,6.2l3.1,2.2l4.2,3.1H23.3l3.4-2.5l2-1.5 l0,0l1.1-0.8c0.1,0,0.1-0.1,0.2-0.1c0.6-0.5,0.7-1.2,0.3-1.7c-0.4-0.5-1.1-0.6-1.7-0.2c-0.4,0.2-0.7,0.5-1,0.7l-9.4,6.7 c0.1-1,0.5-1.9,1.1-2.7c0.3-0.4,0.7-0.8,1.1-1.1c4-3,8-5.9,12-8.9l5.7-4.2c1.1-0.8,2.2-1.2,3.5-1.2h0.7c0.7,0,1.5,0,2.2,0.1 c0.8,0.1,1.6,0.4,2.5,1l17.8,13.1c1.3,0.9,2,2.2,2.2,3.7L47.3,45.3z"
|
|
7819
7820
|
}), /*#__PURE__*/React__default.createElement("path", {
|
package/InterestCatSelector.js
CHANGED
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
var Clothing = (function (props) {
|
|
168
168
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
169
169
|
version: "1.1",
|
|
170
|
-
id: "
|
|
170
|
+
id: "svg-clothing",
|
|
171
171
|
xmlns: "http://www.w3.org/2000/svg",
|
|
172
172
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
173
173
|
x: "0px",
|
|
@@ -178,7 +178,8 @@
|
|
|
178
178
|
className: "st0",
|
|
179
179
|
cx: "42.6",
|
|
180
180
|
cy: "42.6",
|
|
181
|
-
r: "42.6"
|
|
181
|
+
r: "42.6",
|
|
182
|
+
fill: "#fff"
|
|
182
183
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
183
184
|
d: "M69.4,58.9C69,56.7,68,55,66.2,53.6l-4.4-3.3c-4.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47.3,45.3c-1.5-1-3.1-1.6-4.7-1.6c-1.6,0-3.2,0.5-4.6,1.5c-1.9,1.3-3.8,2.7-5.7,4 l-0.7,0.5c-0.3,0.2-0.6,0.6-0.6,0.9c0,0.3,0,0.6,0.2,0.9c0.4,0.5,1.1,0.6,1.7,0.2c0,0,0.1-0.1,0.2-0.1l1.7-1.2 c1.5-1.1,3-2.1,4.5-3.2c0.6-0.4,1.2-0.7,1.8-0.9c1.7-0.5,3.4-0.2,5,0.9c2.9,2.1,5.8,4.1,8.7,6.2l3.1,2.2l4.2,3.1H23.3l3.4-2.5l2-1.5 l0,0l1.1-0.8c0.1,0,0.1-0.1,0.2-0.1c0.6-0.5,0.7-1.2,0.3-1.7c-0.4-0.5-1.1-0.6-1.7-0.2c-0.4,0.2-0.7,0.5-1,0.7l-9.4,6.7 c0.1-1,0.5-1.9,1.1-2.7c0.3-0.4,0.7-0.8,1.1-1.1c4-3,8-5.9,12-8.9l5.7-4.2c1.1-0.8,2.2-1.2,3.5-1.2h0.7c0.7,0,1.5,0,2.2,0.1 c0.8,0.1,1.6,0.4,2.5,1l17.8,13.1c1.3,0.9,2,2.2,2.2,3.7L47.3,45.3z"
|
|
184
185
|
}), /*#__PURE__*/React__default.createElement("path", {
|
package/Interests.js
CHANGED
|
@@ -7408,7 +7408,7 @@
|
|
|
7408
7408
|
var Clothing = (function (props) {
|
|
7409
7409
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
7410
7410
|
version: "1.1",
|
|
7411
|
-
id: "
|
|
7411
|
+
id: "svg-clothing",
|
|
7412
7412
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7413
7413
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
7414
7414
|
x: "0px",
|
|
@@ -7419,7 +7419,8 @@
|
|
|
7419
7419
|
className: "st0",
|
|
7420
7420
|
cx: "42.6",
|
|
7421
7421
|
cy: "42.6",
|
|
7422
|
-
r: "42.6"
|
|
7422
|
+
r: "42.6",
|
|
7423
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45.1,35,45,35,44.9,35.1l-0.2,0.1c-1.1,0.6-1.7,1.5-1.7,2.7l0,1h-0.9 c0-0.2,0-0.4,0-0.6C42.1,37.6,42.1,37,42.2,36.3z M47.3,45.3c-1.5-1-3.1-1.6-4.7-1.6c-1.6,0-3.2,0.5-4.6,1.5c-1.9,1.3-3.8,2.7-5.7,4 l-0.7,0.5c-0.3,0.2-0.6,0.6-0.6,0.9c0,0.3,0,0.6,0.2,0.9c0.4,0.5,1.1,0.6,1.7,0.2c0,0,0.1-0.1,0.2-0.1l1.7-1.2 c1.5-1.1,3-2.1,4.5-3.2c0.6-0.4,1.2-0.7,1.8-0.9c1.7-0.5,3.4-0.2,5,0.9c2.9,2.1,5.8,4.1,8.7,6.2l3.1,2.2l4.2,3.1H23.3l3.4-2.5l2-1.5 l0,0l1.1-0.8c0.1,0,0.1-0.1,0.2-0.1c0.6-0.5,0.7-1.2,0.3-1.7c-0.4-0.5-1.1-0.6-1.7-0.2c-0.4,0.2-0.7,0.5-1,0.7l-9.4,6.7 c0.1-1,0.5-1.9,1.1-2.7c0.3-0.4,0.7-0.8,1.1-1.1c4-3,8-5.9,12-8.9l5.7-4.2c1.1-0.8,2.2-1.2,3.5-1.2h0.7c0.7,0,1.5,0,2.2,0.1 c0.8,0.1,1.6,0.4,2.5,1l17.8,13.1c1.3,0.9,2,2.2,2.2,3.7L47.3,45.3z"
|
|
7425
7426
|
}), /*#__PURE__*/React__default.createElement("path", {
|
package/LuxityDesktopHeader.js
CHANGED
|
@@ -234,11 +234,6 @@
|
|
|
234
234
|
React.createElement("span", { style: style(3) })));
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
var getBrands = function getBrands() {
|
|
238
|
-
return {
|
|
239
|
-
query: "{\n latest_arrivals: luxity_brands(has_products: true, limit: 1000, page: 1, sort_by: \"name|asc\") {data {id name slug}}\n bags: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: BAGS, sort_by: \"name|asc\") {data {id name slug}}\n shoes: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: SHOES, sort_by: \"name|asc\") {data {id name slug}}\n apparel: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: APPAREL, sort_by: \"name|asc\") {data {id name slug}}\n accessories: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: ACCESSORIES, sort_by: \"name|asc\") {data {id name slug}}\n watches: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: WATCHES, sort_by: \"name|asc\") {data {id name slug}}\n accessories_categories: luxity_accessories_categories_list { id name slug }\n apparel_styles: luxity_apparel_styles_list { name slug }\n } "
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
237
|
var searchProducts = function searchProducts(search, limit) {
|
|
243
238
|
return {
|
|
244
239
|
query: "\n query SearchProducts($search: String!, $limit: Int!) {\n luxity_products_serach_results(search: $search, limit: $limit) {\n brands {\n name\n link\n }\n products {\n name\n link\n }\n luxity_product_ids\n }\n }\n ",
|
|
@@ -464,6 +459,7 @@
|
|
|
464
459
|
ourStoryLink = _ref.ourStoryLink,
|
|
465
460
|
onLogoClick = _ref.onLogoClick,
|
|
466
461
|
endpoint = _ref.endpoint,
|
|
462
|
+
menuData = _ref.menuData,
|
|
467
463
|
onSearchSubmit = _ref.onSearchSubmit,
|
|
468
464
|
onProductIdsReceived = _ref.onProductIdsReceived,
|
|
469
465
|
shop = _ref.shop,
|
|
@@ -588,25 +584,25 @@
|
|
|
588
584
|
|
|
589
585
|
React.useMemo(function () {
|
|
590
586
|
setLoading(true);
|
|
591
|
-
axios.
|
|
587
|
+
axios.get("".concat(menuData)).then(function (_ref2) {
|
|
592
588
|
var data = _ref2.data;
|
|
593
589
|
setLoading(false);
|
|
594
590
|
setDropdownData(function (prev) {
|
|
595
591
|
return _objectSpread2(_objectSpread2({}, prev), {}, {
|
|
596
|
-
latestArrivals: data.
|
|
597
|
-
bags: data.
|
|
598
|
-
shoes: data.
|
|
599
|
-
apparel: data.
|
|
600
|
-
accessories: data.
|
|
601
|
-
watches: data.
|
|
602
|
-
accessoriesCategories: data.
|
|
603
|
-
apparelStyles: data.
|
|
592
|
+
latestArrivals: data.latest_arrivals,
|
|
593
|
+
bags: data.bags,
|
|
594
|
+
shoes: data.shoes,
|
|
595
|
+
apparel: data.apparel,
|
|
596
|
+
accessories: data.accessories,
|
|
597
|
+
watches: data.watches,
|
|
598
|
+
accessoriesCategories: data.accessories_categories,
|
|
599
|
+
apparelStyles: data.apparel_styles
|
|
604
600
|
});
|
|
605
601
|
});
|
|
606
602
|
}).catch(function () {
|
|
607
603
|
return setHasError(true);
|
|
608
604
|
});
|
|
609
|
-
}, [
|
|
605
|
+
}, [menuData]);
|
|
610
606
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
611
607
|
className: "navbar"
|
|
612
608
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -717,7 +713,7 @@
|
|
|
717
713
|
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
718
714
|
title: "Department",
|
|
719
715
|
imageSrc: clothingImage,
|
|
720
|
-
categoryElements: dropdownData.apparelStyles,
|
|
716
|
+
categoryElements: addCategoryToElements(dropdownData.apparelStyles, categories.clothing.slug),
|
|
721
717
|
brandElements: dropdownData.apparel,
|
|
722
718
|
productsUrl: productsUrl,
|
|
723
719
|
categorySlug: categories.clothing.slug,
|
|
@@ -7802,7 +7802,7 @@
|
|
|
7802
7802
|
var Clothing = (function (props) {
|
|
7803
7803
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
7804
7804
|
version: "1.1",
|
|
7805
|
-
id: "
|
|
7805
|
+
id: "svg-clothing",
|
|
7806
7806
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7807
7807
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
7808
7808
|
x: "0px",
|
|
@@ -7813,7 +7813,8 @@
|
|
|
7813
7813
|
className: "st0",
|
|
7814
7814
|
cx: "42.6",
|
|
7815
7815
|
cy: "42.6",
|
|
7816
|
-
r: "42.6"
|
|
7816
|
+
r: "42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.6-2.8,4.6C45.1,35,45,35,44.9,35.1l-0.2,0.1c-1.1,0.6-1.7,1.5-1.7,2.7l0,1h-0.9 c0-0.2,0-0.4,0-0.6C42.1,37.6,42.1,37,42.2,36.3z M47.3,45.3c-1.5-1-3.1-1.6-4.7-1.6c-1.6,0-3.2,0.5-4.6,1.5c-1.9,1.3-3.8,2.7-5.7,4 l-0.7,0.5c-0.3,0.2-0.6,0.6-0.6,0.9c0,0.3,0,0.6,0.2,0.9c0.4,0.5,1.1,0.6,1.7,0.2c0,0,0.1-0.1,0.2-0.1l1.7-1.2 c1.5-1.1,3-2.1,4.5-3.2c0.6-0.4,1.2-0.7,1.8-0.9c1.7-0.5,3.4-0.2,5,0.9c2.9,2.1,5.8,4.1,8.7,6.2l3.1,2.2l4.2,3.1H23.3l3.4-2.5l2-1.5 l0,0l1.1-0.8c0.1,0,0.1-0.1,0.2-0.1c0.6-0.5,0.7-1.2,0.3-1.7c-0.4-0.5-1.1-0.6-1.7-0.2c-0.4,0.2-0.7,0.5-1,0.7l-9.4,6.7 c0.1-1,0.5-1.9,1.1-2.7c0.3-0.4,0.7-0.8,1.1-1.1c4-3,8-5.9,12-8.9l5.7-4.2c1.1-0.8,2.2-1.2,3.5-1.2h0.7c0.7,0,1.5,0,2.2,0.1 c0.8,0.1,1.6,0.4,2.5,1l17.8,13.1c1.3,0.9,2,2.2,2.2,3.7L47.3,45.3z"
|
|
7819
7820
|
}), /*#__PURE__*/React__default.createElement("path", {
|
package/LuxityMobileHeader.js
CHANGED
|
@@ -487,11 +487,16 @@
|
|
|
487
487
|
className: "side-nav__sub-menu-title"
|
|
488
488
|
}, subMenuCategoryTitle), /*#__PURE__*/React__default.createElement("div", {
|
|
489
489
|
className: "side-nav__elements"
|
|
490
|
-
}, categoryElements.map(function (
|
|
491
|
-
return /*#__PURE__*/React__default.createElement("a", {
|
|
492
|
-
href: "".concat(productUrl, "/").concat(
|
|
493
|
-
className: "
|
|
494
|
-
|
|
490
|
+
}, categoryElements.map(function (categoryElement) {
|
|
491
|
+
return categoryElement.category ? /*#__PURE__*/React__default.createElement("a", {
|
|
492
|
+
href: "".concat(productUrl, "/").concat(categoryElement.category, "/").concat(categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.slug),
|
|
493
|
+
className: "dropdown__element",
|
|
494
|
+
key: categoryElement.name
|
|
495
|
+
}, categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.name.toLowerCase()) : /*#__PURE__*/React__default.createElement("a", {
|
|
496
|
+
href: "".concat(productUrl, "/").concat(categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.slug),
|
|
497
|
+
className: "dropdown__element",
|
|
498
|
+
key: categoryElement.name
|
|
499
|
+
}, categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.name.toLowerCase());
|
|
495
500
|
})), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("div", {
|
|
496
501
|
className: "side-nav__elements"
|
|
497
502
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -507,21 +512,6 @@
|
|
|
507
512
|
})))));
|
|
508
513
|
};
|
|
509
514
|
|
|
510
|
-
var getBrands = function getBrands() {
|
|
511
|
-
return {
|
|
512
|
-
query: "{\n latest_arrivals: luxity_brands(has_products: true, limit: 1000, page: 1, sort_by: \"name|asc\") {data {id name slug}}\n bags: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: BAGS, sort_by: \"name|asc\") {data {id name slug}}\n shoes: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: SHOES, sort_by: \"name|asc\") {data {id name slug}}\n apparel: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: APPAREL, sort_by: \"name|asc\") {data {id name slug}}\n accessories: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: ACCESSORIES, sort_by: \"name|asc\") {data {id name slug}}\n watches: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: WATCHES, sort_by: \"name|asc\") {data {id name slug}}\n accessories_categories: luxity_accessories_categories_list { id name slug }\n apparel_styles: luxity_apparel_styles_list { name slug }\n } "
|
|
513
|
-
};
|
|
514
|
-
};
|
|
515
|
-
var searchProducts = function searchProducts(search, limit) {
|
|
516
|
-
return {
|
|
517
|
-
query: "\n query SearchProducts($search: String!, $limit: Int!) {\n luxity_products_serach_results(search: $search, limit: $limit) {\n brands {\n name\n link\n }\n products {\n name\n link\n }\n luxity_product_ids\n }\n }\n ",
|
|
518
|
-
variables: {
|
|
519
|
-
search: search,
|
|
520
|
-
limit: limit
|
|
521
|
-
}
|
|
522
|
-
};
|
|
523
|
-
};
|
|
524
|
-
|
|
525
515
|
var removeCategoryByName = function removeCategoryByName(categories, name) {
|
|
526
516
|
var _categories$filter;
|
|
527
517
|
|
|
@@ -530,6 +520,29 @@
|
|
|
530
520
|
})) !== null && _categories$filter !== void 0 ? _categories$filter : [];
|
|
531
521
|
};
|
|
532
522
|
|
|
523
|
+
var categories = {
|
|
524
|
+
shoes: {
|
|
525
|
+
name: 'Shoes',
|
|
526
|
+
slug: 'shoes'
|
|
527
|
+
},
|
|
528
|
+
bags: {
|
|
529
|
+
name: 'Bags',
|
|
530
|
+
slug: 'bags'
|
|
531
|
+
},
|
|
532
|
+
clothing: {
|
|
533
|
+
name: 'Clothing',
|
|
534
|
+
slug: 'apparel'
|
|
535
|
+
},
|
|
536
|
+
watches: {
|
|
537
|
+
name: 'Watches',
|
|
538
|
+
slug: 'watches'
|
|
539
|
+
},
|
|
540
|
+
accessories: {
|
|
541
|
+
name: 'Accessories',
|
|
542
|
+
slug: 'accessories'
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
|
|
533
546
|
var LuxitySideNav = function LuxitySideNav(_ref) {
|
|
534
547
|
var accordionIcon = _ref.accordionIcon,
|
|
535
548
|
closeIcon = _ref.closeIcon,
|
|
@@ -545,7 +558,7 @@
|
|
|
545
558
|
categoryElements = _ref.categoryElements,
|
|
546
559
|
showSideNav = _ref.showSideNav,
|
|
547
560
|
onMenuClick = _ref.onMenuClick,
|
|
548
|
-
|
|
561
|
+
menuData = _ref.menuData;
|
|
549
562
|
|
|
550
563
|
var _useState = React.useState(false),
|
|
551
564
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -606,27 +619,35 @@
|
|
|
606
619
|
}
|
|
607
620
|
};
|
|
608
621
|
|
|
622
|
+
function addCategoryToElements(elements, categoryName) {
|
|
623
|
+
return elements.map(function (element) {
|
|
624
|
+
return _objectSpread2(_objectSpread2({}, element), {}, {
|
|
625
|
+
category: categoryName
|
|
626
|
+
});
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
|
|
609
630
|
React.useMemo(function () {
|
|
610
631
|
setLoading(true);
|
|
611
|
-
axios.
|
|
632
|
+
axios.get("".concat(menuData)).then(function (_ref2) {
|
|
612
633
|
var data = _ref2.data;
|
|
613
634
|
setLoading(false);
|
|
614
635
|
setDropdownData(function (prev) {
|
|
615
636
|
return _objectSpread2(_objectSpread2({}, prev), {}, {
|
|
616
|
-
latestArrivals: data.
|
|
617
|
-
bags: data.
|
|
618
|
-
shoes: data.
|
|
619
|
-
apparel: data.
|
|
620
|
-
accessories: data.
|
|
621
|
-
watches: data.
|
|
622
|
-
accessoriesCategories: data.
|
|
623
|
-
apparelStyles: data.
|
|
637
|
+
latestArrivals: data.latest_arrivals,
|
|
638
|
+
bags: data.bags,
|
|
639
|
+
shoes: data.shoes,
|
|
640
|
+
apparel: data.apparel,
|
|
641
|
+
accessories: data.accessories,
|
|
642
|
+
watches: data.watches,
|
|
643
|
+
accessoriesCategories: data.accessories_categories,
|
|
644
|
+
apparelStyles: data.apparel_styles
|
|
624
645
|
});
|
|
625
646
|
});
|
|
626
647
|
}).catch(function () {
|
|
627
648
|
return setHasError(true);
|
|
628
649
|
});
|
|
629
|
-
}, [
|
|
650
|
+
}, [menuData]);
|
|
630
651
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
631
652
|
className: "side-nav"
|
|
632
653
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -794,7 +815,7 @@
|
|
|
794
815
|
backIcon: backIcon,
|
|
795
816
|
subMenuCategoryTitle: "Department",
|
|
796
817
|
productUrl: productUrl,
|
|
797
|
-
categoryElements: categoryElements,
|
|
818
|
+
categoryElements: addCategoryToElements(categoryElements, categories.bags.slug),
|
|
798
819
|
subMenuBrandsTitle: "Bag Brands",
|
|
799
820
|
brandsList: dropdownData.bags,
|
|
800
821
|
categorySlug: displayedSubMenu,
|
|
@@ -806,7 +827,7 @@
|
|
|
806
827
|
backIcon: backIcon,
|
|
807
828
|
subMenuCategoryTitle: "Department",
|
|
808
829
|
productUrl: productUrl,
|
|
809
|
-
categoryElements: categoryElements,
|
|
830
|
+
categoryElements: addCategoryToElements(categoryElements, categories.shoes.slug),
|
|
810
831
|
subMenuBrandsTitle: "Shoe Brands",
|
|
811
832
|
brandsList: dropdownData.shoes,
|
|
812
833
|
categorySlug: displayedSubMenu,
|
|
@@ -818,7 +839,7 @@
|
|
|
818
839
|
backIcon: backIcon,
|
|
819
840
|
subMenuCategoryTitle: "Department",
|
|
820
841
|
productUrl: productUrl,
|
|
821
|
-
categoryElements: dropdownData.apparelStyles,
|
|
842
|
+
categoryElements: addCategoryToElements(dropdownData.apparelStyles, categories.clothing.slug),
|
|
822
843
|
subMenuBrandsTitle: "Clothing Brands",
|
|
823
844
|
brandsList: dropdownData.apparel,
|
|
824
845
|
categorySlug: displayedSubMenu,
|
|
@@ -842,7 +863,7 @@
|
|
|
842
863
|
backIcon: backIcon,
|
|
843
864
|
subMenuCategoryTitle: "Department",
|
|
844
865
|
productUrl: productUrl,
|
|
845
|
-
categoryElements: categoryElements,
|
|
866
|
+
categoryElements: addCategoryToElements(categoryElements, categories.watches.slug),
|
|
846
867
|
subMenuBrandsTitle: "Watches Brands",
|
|
847
868
|
brandsList: dropdownData.watches,
|
|
848
869
|
categorySlug: displayedSubMenu,
|
|
@@ -858,6 +879,16 @@
|
|
|
858
879
|
})));
|
|
859
880
|
};
|
|
860
881
|
|
|
882
|
+
var searchProducts = function searchProducts(search, limit) {
|
|
883
|
+
return {
|
|
884
|
+
query: "\n query SearchProducts($search: String!, $limit: Int!) {\n luxity_products_serach_results(search: $search, limit: $limit) {\n brands {\n name\n link\n }\n products {\n name\n link\n }\n luxity_product_ids\n }\n }\n ",
|
|
885
|
+
variables: {
|
|
886
|
+
search: search,
|
|
887
|
+
limit: limit
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
|
|
861
892
|
var SearchResults = function SearchResults(_ref) {
|
|
862
893
|
var searchValue = _ref.searchValue,
|
|
863
894
|
searchResults = _ref.searchResults,
|
|
@@ -937,6 +968,7 @@
|
|
|
937
968
|
onLogoClick = _ref.onLogoClick,
|
|
938
969
|
onLuxityShopClick = _ref.onLuxityShopClick,
|
|
939
970
|
endpoint = _ref.endpoint,
|
|
971
|
+
menuData = _ref.menuData,
|
|
940
972
|
onSearchSubmit = _ref.onSearchSubmit,
|
|
941
973
|
onProductIdsReceived = _ref.onProductIdsReceived,
|
|
942
974
|
onLogoutClick = _ref.onLogoutClick,
|
|
@@ -1196,7 +1228,8 @@
|
|
|
1196
1228
|
categoryElements: categoryElements,
|
|
1197
1229
|
showSideNav: showSideNav,
|
|
1198
1230
|
onMenuClick: onMenuClick,
|
|
1199
|
-
endpoint: endpoint
|
|
1231
|
+
endpoint: endpoint,
|
|
1232
|
+
menuData: menuData
|
|
1200
1233
|
}), app && /*#__PURE__*/React__default.createElement(LuxityAppSideNav, {
|
|
1201
1234
|
accordionIcon: accordionIcon,
|
|
1202
1235
|
closeIcon: closeIcon,
|
package/LuxitySideNav.js
CHANGED
|
@@ -185,11 +185,16 @@
|
|
|
185
185
|
className: "side-nav__sub-menu-title"
|
|
186
186
|
}, subMenuCategoryTitle), /*#__PURE__*/React__default.createElement("div", {
|
|
187
187
|
className: "side-nav__elements"
|
|
188
|
-
}, categoryElements.map(function (
|
|
189
|
-
return /*#__PURE__*/React__default.createElement("a", {
|
|
190
|
-
href: "".concat(productUrl, "/").concat(
|
|
191
|
-
className: "
|
|
192
|
-
|
|
188
|
+
}, categoryElements.map(function (categoryElement) {
|
|
189
|
+
return categoryElement.category ? /*#__PURE__*/React__default.createElement("a", {
|
|
190
|
+
href: "".concat(productUrl, "/").concat(categoryElement.category, "/").concat(categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.slug),
|
|
191
|
+
className: "dropdown__element",
|
|
192
|
+
key: categoryElement.name
|
|
193
|
+
}, categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.name.toLowerCase()) : /*#__PURE__*/React__default.createElement("a", {
|
|
194
|
+
href: "".concat(productUrl, "/").concat(categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.slug),
|
|
195
|
+
className: "dropdown__element",
|
|
196
|
+
key: categoryElement.name
|
|
197
|
+
}, categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.name.toLowerCase());
|
|
193
198
|
})), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("div", {
|
|
194
199
|
className: "side-nav__elements"
|
|
195
200
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -205,12 +210,6 @@
|
|
|
205
210
|
})))));
|
|
206
211
|
};
|
|
207
212
|
|
|
208
|
-
var getBrands = function getBrands() {
|
|
209
|
-
return {
|
|
210
|
-
query: "{\n latest_arrivals: luxity_brands(has_products: true, limit: 1000, page: 1, sort_by: \"name|asc\") {data {id name slug}}\n bags: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: BAGS, sort_by: \"name|asc\") {data {id name slug}}\n shoes: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: SHOES, sort_by: \"name|asc\") {data {id name slug}}\n apparel: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: APPAREL, sort_by: \"name|asc\") {data {id name slug}}\n accessories: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: ACCESSORIES, sort_by: \"name|asc\") {data {id name slug}}\n watches: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: WATCHES, sort_by: \"name|asc\") {data {id name slug}}\n accessories_categories: luxity_accessories_categories_list { id name slug }\n apparel_styles: luxity_apparel_styles_list { name slug }\n } "
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
|
|
214
213
|
var removeCategoryByName = function removeCategoryByName(categories, name) {
|
|
215
214
|
var _categories$filter;
|
|
216
215
|
|
|
@@ -219,6 +218,29 @@
|
|
|
219
218
|
})) !== null && _categories$filter !== void 0 ? _categories$filter : [];
|
|
220
219
|
};
|
|
221
220
|
|
|
221
|
+
var categories = {
|
|
222
|
+
shoes: {
|
|
223
|
+
name: 'Shoes',
|
|
224
|
+
slug: 'shoes'
|
|
225
|
+
},
|
|
226
|
+
bags: {
|
|
227
|
+
name: 'Bags',
|
|
228
|
+
slug: 'bags'
|
|
229
|
+
},
|
|
230
|
+
clothing: {
|
|
231
|
+
name: 'Clothing',
|
|
232
|
+
slug: 'apparel'
|
|
233
|
+
},
|
|
234
|
+
watches: {
|
|
235
|
+
name: 'Watches',
|
|
236
|
+
slug: 'watches'
|
|
237
|
+
},
|
|
238
|
+
accessories: {
|
|
239
|
+
name: 'Accessories',
|
|
240
|
+
slug: 'accessories'
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
|
|
222
244
|
var LuxitySideNav = function LuxitySideNav(_ref) {
|
|
223
245
|
var accordionIcon = _ref.accordionIcon,
|
|
224
246
|
closeIcon = _ref.closeIcon,
|
|
@@ -234,7 +256,7 @@
|
|
|
234
256
|
categoryElements = _ref.categoryElements,
|
|
235
257
|
showSideNav = _ref.showSideNav,
|
|
236
258
|
onMenuClick = _ref.onMenuClick,
|
|
237
|
-
|
|
259
|
+
menuData = _ref.menuData;
|
|
238
260
|
|
|
239
261
|
var _useState = React.useState(false),
|
|
240
262
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -295,27 +317,35 @@
|
|
|
295
317
|
}
|
|
296
318
|
};
|
|
297
319
|
|
|
320
|
+
function addCategoryToElements(elements, categoryName) {
|
|
321
|
+
return elements.map(function (element) {
|
|
322
|
+
return _objectSpread2(_objectSpread2({}, element), {}, {
|
|
323
|
+
category: categoryName
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
|
|
298
328
|
React.useMemo(function () {
|
|
299
329
|
setLoading(true);
|
|
300
|
-
axios.
|
|
330
|
+
axios.get("".concat(menuData)).then(function (_ref2) {
|
|
301
331
|
var data = _ref2.data;
|
|
302
332
|
setLoading(false);
|
|
303
333
|
setDropdownData(function (prev) {
|
|
304
334
|
return _objectSpread2(_objectSpread2({}, prev), {}, {
|
|
305
|
-
latestArrivals: data.
|
|
306
|
-
bags: data.
|
|
307
|
-
shoes: data.
|
|
308
|
-
apparel: data.
|
|
309
|
-
accessories: data.
|
|
310
|
-
watches: data.
|
|
311
|
-
accessoriesCategories: data.
|
|
312
|
-
apparelStyles: data.
|
|
335
|
+
latestArrivals: data.latest_arrivals,
|
|
336
|
+
bags: data.bags,
|
|
337
|
+
shoes: data.shoes,
|
|
338
|
+
apparel: data.apparel,
|
|
339
|
+
accessories: data.accessories,
|
|
340
|
+
watches: data.watches,
|
|
341
|
+
accessoriesCategories: data.accessories_categories,
|
|
342
|
+
apparelStyles: data.apparel_styles
|
|
313
343
|
});
|
|
314
344
|
});
|
|
315
345
|
}).catch(function () {
|
|
316
346
|
return setHasError(true);
|
|
317
347
|
});
|
|
318
|
-
}, [
|
|
348
|
+
}, [menuData]);
|
|
319
349
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
320
350
|
className: "side-nav"
|
|
321
351
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -483,7 +513,7 @@
|
|
|
483
513
|
backIcon: backIcon,
|
|
484
514
|
subMenuCategoryTitle: "Department",
|
|
485
515
|
productUrl: productUrl,
|
|
486
|
-
categoryElements: categoryElements,
|
|
516
|
+
categoryElements: addCategoryToElements(categoryElements, categories.bags.slug),
|
|
487
517
|
subMenuBrandsTitle: "Bag Brands",
|
|
488
518
|
brandsList: dropdownData.bags,
|
|
489
519
|
categorySlug: displayedSubMenu,
|
|
@@ -495,7 +525,7 @@
|
|
|
495
525
|
backIcon: backIcon,
|
|
496
526
|
subMenuCategoryTitle: "Department",
|
|
497
527
|
productUrl: productUrl,
|
|
498
|
-
categoryElements: categoryElements,
|
|
528
|
+
categoryElements: addCategoryToElements(categoryElements, categories.shoes.slug),
|
|
499
529
|
subMenuBrandsTitle: "Shoe Brands",
|
|
500
530
|
brandsList: dropdownData.shoes,
|
|
501
531
|
categorySlug: displayedSubMenu,
|
|
@@ -507,7 +537,7 @@
|
|
|
507
537
|
backIcon: backIcon,
|
|
508
538
|
subMenuCategoryTitle: "Department",
|
|
509
539
|
productUrl: productUrl,
|
|
510
|
-
categoryElements: dropdownData.apparelStyles,
|
|
540
|
+
categoryElements: addCategoryToElements(dropdownData.apparelStyles, categories.clothing.slug),
|
|
511
541
|
subMenuBrandsTitle: "Clothing Brands",
|
|
512
542
|
brandsList: dropdownData.apparel,
|
|
513
543
|
categorySlug: displayedSubMenu,
|
|
@@ -531,7 +561,7 @@
|
|
|
531
561
|
backIcon: backIcon,
|
|
532
562
|
subMenuCategoryTitle: "Department",
|
|
533
563
|
productUrl: productUrl,
|
|
534
|
-
categoryElements: categoryElements,
|
|
564
|
+
categoryElements: addCategoryToElements(categoryElements, categories.watches.slug),
|
|
535
565
|
subMenuBrandsTitle: "Watches Brands",
|
|
536
566
|
brandsList: dropdownData.watches,
|
|
537
567
|
categorySlug: displayedSubMenu,
|
package/MaterialSelector.js
CHANGED
|
@@ -7802,7 +7802,7 @@
|
|
|
7802
7802
|
var Clothing = (function (props) {
|
|
7803
7803
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
7804
7804
|
version: "1.1",
|
|
7805
|
-
id: "
|
|
7805
|
+
id: "svg-clothing",
|
|
7806
7806
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7807
7807
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
7808
7808
|
x: "0px",
|
|
@@ -7813,7 +7813,8 @@
|
|
|
7813
7813
|
className: "st0",
|
|
7814
7814
|
cx: "42.6",
|
|
7815
7815
|
cy: "42.6",
|
|
7816
|
-
r: "42.6"
|
|
7816
|
+
r: "42.6",
|
|
7817
|
+
fill: "#fff"
|
|
7817
7818
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
7818
7819
|
d: "M69.4,58.9C69,56.7,68,55,66.2,53.6l-4.4-3.3c-4.4-3.3-8.8-6.5-13.2-9.8c-0.6-0.4-1.3-0.8-2.3-1.2l-0.1,0 c-0.6-0.2-0.6-0.2-0.7-1c0-0.6,0.2-0.9,0.7-1.1c3-1.5,4.6-4.7,4.2-8c-0.5-3.6-3.4-6.4-7-6.7c-3.5-0.4-6.9,1.8-8.1,5.2 c-0.5,1.5,0.1,3.1,1.6,3.6c1.5,0.6,3.1-0.1,3.8-1.6l0.1-0.2c0-0.1,0.1-0.2,0.1-0.3c0.4-0.9,1.4-1.3,2.3-1.1c1,0.2,1.7,1,1.7,2 c0,1.1-0.6,1.8-1.6,2.2c-2.1,0.7-3.3,2.4-3.3,4.6v0.5c0,0.5,0,1.1,0,1.7v0.1c0,0,0,0-0.1,0c-1,0.2-2,0.7-2.9,1.4L19,53.7 c-1.7,1.3-2.7,2.9-3.1,4.8c-0.2,1-0.2,2-0.2,3c0,0.4,0.3,1,0.7,1.2c0.4,0.2,1,0,1.3-0.1c0.6-0.3,1.1-0.7,1.6-1.1 c0.2-0.2,0.5-0.3,0.9-0.3h5.2c12.5,0,25.4,0,38,0h0c1.8,0,2.9,0.4,3.9,1.2c0.2,0.2,0.6,0.5,1,0.5h0c0.4,0,0.8-0.3,1.1-0.7l0.1-0.1 v-2.9L69.4,58.9z M42.2,36.3c0.1-0.9,0.6-1.5,1.6-1.8c2-0.6,3.2-2.2,3.3-4.1c0.1-2.2-1.4-4.1-3.5-4.6c-2.2-0.5-4.3,0.6-5.2,2.7 l0,0.1c0,0,0,0.1,0,0.1c-0.1,0.3-0.4,0.4-0.7,0.3c-0.1-0.1-0.3-0.1-0.2-0.6c0.5-1.5,1.7-2.7,3.3-3.3c1.6-0.6,3.3-0.4,4.7,0.5 c1.6,1,2.5,2.8,2.5,4.7c0,1.9-1.1,3.6-2.8,4.6C45.1,35,45,35,44.9,35.1l-0.2,0.1c-1.1,0.6-1.7,1.5-1.7,2.7l0,1h-0.9 c0-0.2,0-0.4,0-0.6C42.1,37.6,42.1,37,42.2,36.3z M47.3,45.3c-1.5-1-3.1-1.6-4.7-1.6c-1.6,0-3.2,0.5-4.6,1.5c-1.9,1.3-3.8,2.7-5.7,4 l-0.7,0.5c-0.3,0.2-0.6,0.6-0.6,0.9c0,0.3,0,0.6,0.2,0.9c0.4,0.5,1.1,0.6,1.7,0.2c0,0,0.1-0.1,0.2-0.1l1.7-1.2 c1.5-1.1,3-2.1,4.5-3.2c0.6-0.4,1.2-0.7,1.8-0.9c1.7-0.5,3.4-0.2,5,0.9c2.9,2.1,5.8,4.1,8.7,6.2l3.1,2.2l4.2,3.1H23.3l3.4-2.5l2-1.5 l0,0l1.1-0.8c0.1,0,0.1-0.1,0.2-0.1c0.6-0.5,0.7-1.2,0.3-1.7c-0.4-0.5-1.1-0.6-1.7-0.2c-0.4,0.2-0.7,0.5-1,0.7l-9.4,6.7 c0.1-1,0.5-1.9,1.1-2.7c0.3-0.4,0.7-0.8,1.1-1.1c4-3,8-5.9,12-8.9l5.7-4.2c1.1-0.8,2.2-1.2,3.5-1.2h0.7c0.7,0,1.5,0,2.2,0.1 c0.8,0.1,1.6,0.4,2.5,1l17.8,13.1c1.3,0.9,2,2.2,2.2,3.7L47.3,45.3z"
|
|
7819
7820
|
}), /*#__PURE__*/React__default.createElement("path", {
|
package/ModelSelector.js
CHANGED
|
@@ -7802,7 +7802,7 @@
|
|
|
7802
7802
|
var Clothing = (function (props) {
|
|
7803
7803
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
7804
7804
|
version: "1.1",
|
|
7805
|
-
id: "
|
|
7805
|
+
id: "svg-clothing",
|
|
7806
7806
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7807
7807
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
7808
7808
|
x: "0px",
|
|
@@ -7813,7 +7813,8 @@
|
|
|
7813
7813
|
className: "st0",
|
|
7814
7814
|
cx: "42.6",
|
|
7815
7815
|
cy: "42.6",
|
|
7816
|
-
r: "42.6"
|
|
7816
|
+
r: "42.6",
|
|
7817
|
+
fill: "#fff"
|
|
7817
7818
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
7818
7819
|
d: "M69.4,58.9C69,56.7,68,55,66.2,53.6l-4.4-3.3c-4.4-3.3-8.8-6.5-13.2-9.8c-0.6-0.4-1.3-0.8-2.3-1.2l-0.1,0 c-0.6-0.2-0.6-0.2-0.7-1c0-0.6,0.2-0.9,0.7-1.1c3-1.5,4.6-4.7,4.2-8c-0.5-3.6-3.4-6.4-7-6.7c-3.5-0.4-6.9,1.8-8.1,5.2 c-0.5,1.5,0.1,3.1,1.6,3.6c1.5,0.6,3.1-0.1,3.8-1.6l0.1-0.2c0-0.1,0.1-0.2,0.1-0.3c0.4-0.9,1.4-1.3,2.3-1.1c1,0.2,1.7,1,1.7,2 c0,1.1-0.6,1.8-1.6,2.2c-2.1,0.7-3.3,2.4-3.3,4.6v0.5c0,0.5,0,1.1,0,1.7v0.1c0,0,0,0-0.1,0c-1,0.2-2,0.7-2.9,1.4L19,53.7 c-1.7,1.3-2.7,2.9-3.1,4.8c-0.2,1-0.2,2-0.2,3c0,0.4,0.3,1,0.7,1.2c0.4,0.2,1,0,1.3-0.1c0.6-0.3,1.1-0.7,1.6-1.1 c0.2-0.2,0.5-0.3,0.9-0.3h5.2c12.5,0,25.4,0,38,0h0c1.8,0,2.9,0.4,3.9,1.2c0.2,0.2,0.6,0.5,1,0.5h0c0.4,0,0.8-0.3,1.1-0.7l0.1-0.1 v-2.9L69.4,58.9z M42.2,36.3c0.1-0.9,0.6-1.5,1.6-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without changes
|
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__link-item--desktop{align-items:center;display:flex;height:35px;margin:auto 0;padding-top:5px}.navbar__mobile-wrapper{align-items:center;display:flex;flex-direction:column;padding-bottom:20px;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;width:100%}.navbar__product-search-wrapper{align-items:center;display:flex;justify-content:center;padding:0 20%;width:100%}@media only screen and (max-width:879px){.navbar__product-search-wrapper{padding:0}}.navbar__input-close-icon{height:auto;margin-bottom:10px;margin-left:10px;width:20px}@media only screen and (max-width:879px){.navbar__input-close-icon{margin-bottom:0;margin-left:0;width:15px}}.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{margin-left:10px;margin-top:5px;width:125px}}.navbar__form-input{align-items:center;background:transparent;border:none;display:flex;font-size:13px;outline:none;padding:8px;width:100%}.navbar__product-search{border:1px solid #dfdede;margin-bottom:10px}@media only screen and (max-width:879px){.navbar__product-search{border:none;border-bottom:1px solid #dfdede;margin-bottom:0;margin-right:10px;margin-top:10px}}.navbar__section{align-items:flex-start;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;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-left:18px;text-decoration:none}.navbar__company-block{align-items:center;background-color:#000;color:#fff;display:flex;font-weight:700;height:33px;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}@media only screen and (max-width:879px){.navbar__icons{display:block;height:20px;margin-bottom:0}}.navbar__icon{cursor:pointer;height:auto;margin-right:18px;width:20px}@media only screen and (max-width:879px){.navbar__icon{margin-right:0}}.navbar__icon--app{cursor:pointer;height:auto;margin-left:12px;width:20px}@media only screen and (max-width:879px){.navbar__icon--app{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}.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{flex-basis:50%;max-width:250px;position:relative}@media only screen and (max-width:879px){.footer__newsletter-form{display:block;margin-top:20px;max-width:100%;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-input::-moz-placeholder{color:#fff;font-weight:400}.footer__form-input::placeholder{color:#fff;font-weight:400}.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:25px}.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-family:Martel Sans;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}}.side-nav{font-family:Martel Sans}.side-nav__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center}.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;line-height:20px;margin-bottom:10px}.side-nav__element,.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%}.side-nav{font-family:Martel Sans}.side-nav__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center}.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;outline:none;width:100%}.side-nav__icon-container{float:right;margin-bottom:10px}.side-nav__menu-title{align-items:center;display:flex;font-size:14px;font-weight:700;justify-content:center;line-height:20px;text-transform:uppercase}.side-nav__menu-icon{display:flex;height:25px;margin-right:10px;width:25px}.side-nav__menu-divider{margin-bottom:40px}.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;line-height:20px;margin-bottom:10px}.side-nav__element,.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;margin-left:auto;margin-right:auto;max-width:1280px;overflow-x:auto;padding:20px 15px}.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;margin-left:auto;margin-right:auto;max-width:1280px;min-height:500px;overflow-x:auto;padding:20px 0}.dropdown__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center;min-height:300px}.dropdown__column{flex:1;padding-left:12px}.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:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));max-height:800px;overflow-y:auto}.dropdown__brand-elements{-moz-column-count:3;column-count:3;max-height:800px}.dropdown__brand-element{cursor:pointer;margin-bottom:10px}.dropdown__element{flex-basis:33.33%;font-family:Martel Sans;font-size:14px;font-weight:400;margin-bottom:10px;text-transform:capitalize}.cover-spinner{align-items:center;background-color:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;min-height:400px;position:relative;top:50%;width:100%;z-index:9999}.cover-spinner:after{animation:spin 1.5s linear infinite;border:4px dotted #000;border-radius:50%;border-top-color:transparent;content:"";display:block;height:40px;position:absolute;width:40px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
|
|
1
|
+
.navbar{box-shadow:2px 2px 10px #dfdede;display:flex;padding-bottom:10px;padding-top:20px;position:relative}.navbar__link-item--desktop{align-items:center;display:flex;height:35px;margin:auto 0;padding-top:5px}.navbar__mobile-wrapper{align-items:center;display:flex;flex-direction:column;padding-bottom:20px;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;width:100%}.navbar__product-search-wrapper{align-items:center;display:flex;justify-content:center;padding:0 20%;width:100%}@media only screen and (max-width:879px){.navbar__product-search-wrapper{padding:0}}.navbar__input-close-icon{height:auto;margin-bottom:10px;margin-left:10px;width:20px}@media only screen and (max-width:879px){.navbar__input-close-icon{margin-bottom:0;margin-left:0;width:15px}}.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{margin-left:10px;margin-top:5px;width:125px}}.navbar__form-input{align-items:center;background:transparent;border:none;display:flex;font-size:13px;outline:none;padding:8px;width:100%}.navbar__product-search{border:1px solid #dfdede;margin-bottom:10px}@media only screen and (max-width:879px){.navbar__product-search{border:none;border-bottom:1px solid #dfdede;margin-bottom:0;margin-right:10px;margin-top:10px}}.navbar__section{align-items:flex-start;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;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-left:18px;text-decoration:none}.navbar__company-block{align-items:center;background-color:#000;color:#fff;display:flex;font-weight:700;height:33px;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}@media only screen and (max-width:879px){.navbar__icons{display:block;height:20px;margin-bottom:0}}.navbar__icon{cursor:pointer;height:auto;margin-right:18px;width:20px}@media only screen and (max-width:879px){.navbar__icon{margin-right:0}}.navbar__icon--app{cursor:pointer;height:auto;margin-left:12px;width:20px}@media only screen and (max-width:879px){.navbar__icon--app{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__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center}.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;line-height:20px;margin-bottom:10px}.side-nav__element,.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%}.side-nav{font-family:Martel Sans}.side-nav__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center}.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;outline:none;width:100%}.side-nav__icon-container{float:right;margin-bottom:10px}.side-nav__menu-title{align-items:center;display:flex;font-size:14px;font-weight:700;justify-content:center;line-height:20px;text-transform:uppercase}.side-nav__menu-icon{display:flex;height:25px;margin-right:10px;width:25px}.side-nav__menu-divider{margin-bottom:40px}.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;line-height:20px;margin-bottom:10px}.side-nav__element,.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{flex-basis:50%;max-width:250px;position:relative}@media only screen and (max-width:879px){.footer__newsletter-form{display:block;margin-top:20px;max-width:100%;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-input::-moz-placeholder{color:#fff;font-weight:400}.footer__form-input::placeholder{color:#fff;font-weight:400}.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:25px}.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-family:Martel Sans;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}}.dropdown{display:flex;justify-content:space-between;margin-left:auto;margin-right:auto;max-width:1280px;min-height:500px;overflow-x:auto;padding:20px 0}.dropdown__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center;min-height:300px}.dropdown__column{flex:1;padding-left:12px}.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:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));max-height:800px;overflow-y:auto}.dropdown__brand-elements{-moz-column-count:3;column-count:3;max-height:800px}.dropdown__brand-element{cursor:pointer;margin-bottom:10px}.dropdown__element{flex-basis:33.33%;font-family:Martel Sans;font-size:14px;font-weight:400;margin-bottom:10px;text-transform:capitalize}.cover-spinner{align-items:center;background-color:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;min-height:400px;position:relative;top:50%;width:100%;z-index:9999}.cover-spinner:after{animation:spin 1.5s linear infinite;border:4px dotted #000;border-radius:50%;border-top-color:transparent;content:"";display:block;height:40px;position:absolute;width:40px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.stores-dropdown{align-items:flex-start;display:flex;font-family:Martel Sans;gap:20px;margin-left:auto;margin-right:auto;max-width:1280px;overflow-x:auto;padding:20px 15px}.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}
|
package/build/bundle.js
CHANGED
|
@@ -8129,7 +8129,7 @@
|
|
|
8129
8129
|
var Clothing = (function (props) {
|
|
8130
8130
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
8131
8131
|
version: "1.1",
|
|
8132
|
-
id: "
|
|
8132
|
+
id: "svg-clothing",
|
|
8133
8133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8134
8134
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
8135
8135
|
x: "0px",
|
|
@@ -8140,7 +8140,8 @@
|
|
|
8140
8140
|
className: "st0",
|
|
8141
8141
|
cx: "42.6",
|
|
8142
8142
|
cy: "42.6",
|
|
8143
|
-
r: "42.6"
|
|
8143
|
+
r: "42.6",
|
|
8144
|
+
fill: "#fff"
|
|
8144
8145
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
8145
8146
|
d: "M69.4,58.9C69,56.7,68,55,66.2,53.6l-4.4-3.3c-4.4-3.3-8.8-6.5-13.2-9.8c-0.6-0.4-1.3-0.8-2.3-1.2l-0.1,0 c-0.6-0.2-0.6-0.2-0.7-1c0-0.6,0.2-0.9,0.7-1.1c3-1.5,4.6-4.7,4.2-8c-0.5-3.6-3.4-6.4-7-6.7c-3.5-0.4-6.9,1.8-8.1,5.2 c-0.5,1.5,0.1,3.1,1.6,3.6c1.5,0.6,3.1-0.1,3.8-1.6l0.1-0.2c0-0.1,0.1-0.2,0.1-0.3c0.4-0.9,1.4-1.3,2.3-1.1c1,0.2,1.7,1,1.7,2 c0,1.1-0.6,1.8-1.6,2.2c-2.1,0.7-3.3,2.4-3.3,4.6v0.5c0,0.5,0,1.1,0,1.7v0.1c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3-1.7c-0.4-0.5-1.1-0.6-1.7-0.2c-0.4,0.2-0.7,0.5-1,0.7l-9.4,6.7 c0.1-1,0.5-1.9,1.1-2.7c0.3-0.4,0.7-0.8,1.1-1.1c4-3,8-5.9,12-8.9l5.7-4.2c1.1-0.8,2.2-1.2,3.5-1.2h0.7c0.7,0,1.5,0,2.2,0.1 c0.8,0.1,1.6,0.4,2.5,1l17.8,13.1c1.3,0.9,2,2.2,2.2,3.7L47.3,45.3z"
|
|
8146
8147
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
@@ -14527,11 +14528,6 @@
|
|
|
14527
14528
|
React.createElement("span", { style: style(3) })));
|
|
14528
14529
|
}
|
|
14529
14530
|
|
|
14530
|
-
var getBrands = function getBrands() {
|
|
14531
|
-
return {
|
|
14532
|
-
query: "{\n latest_arrivals: luxity_brands(has_products: true, limit: 1000, page: 1, sort_by: \"name|asc\") {data {id name slug}}\n bags: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: BAGS, sort_by: \"name|asc\") {data {id name slug}}\n shoes: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: SHOES, sort_by: \"name|asc\") {data {id name slug}}\n apparel: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: APPAREL, sort_by: \"name|asc\") {data {id name slug}}\n accessories: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: ACCESSORIES, sort_by: \"name|asc\") {data {id name slug}}\n watches: luxity_brands(has_products: true, limit: 1000, page: 1, category_type: WATCHES, sort_by: \"name|asc\") {data {id name slug}}\n accessories_categories: luxity_accessories_categories_list { id name slug }\n apparel_styles: luxity_apparel_styles_list { name slug }\n } "
|
|
14533
|
-
};
|
|
14534
|
-
};
|
|
14535
14531
|
var searchProducts = function searchProducts(search, limit) {
|
|
14536
14532
|
return {
|
|
14537
14533
|
query: "\n query SearchProducts($search: String!, $limit: Int!) {\n luxity_products_serach_results(search: $search, limit: $limit) {\n brands {\n name\n link\n }\n products {\n name\n link\n }\n luxity_product_ids\n }\n }\n ",
|
|
@@ -14757,6 +14753,7 @@
|
|
|
14757
14753
|
ourStoryLink = _ref.ourStoryLink,
|
|
14758
14754
|
onLogoClick = _ref.onLogoClick,
|
|
14759
14755
|
endpoint = _ref.endpoint,
|
|
14756
|
+
menuData = _ref.menuData,
|
|
14760
14757
|
onSearchSubmit = _ref.onSearchSubmit,
|
|
14761
14758
|
onProductIdsReceived = _ref.onProductIdsReceived,
|
|
14762
14759
|
shop = _ref.shop,
|
|
@@ -14881,25 +14878,25 @@
|
|
|
14881
14878
|
|
|
14882
14879
|
React.useMemo(function () {
|
|
14883
14880
|
setLoading(true);
|
|
14884
|
-
axios.
|
|
14881
|
+
axios.get("".concat(menuData)).then(function (_ref2) {
|
|
14885
14882
|
var data = _ref2.data;
|
|
14886
14883
|
setLoading(false);
|
|
14887
14884
|
setDropdownData(function (prev) {
|
|
14888
14885
|
return _objectSpread2(_objectSpread2({}, prev), {}, {
|
|
14889
|
-
latestArrivals: data.
|
|
14890
|
-
bags: data.
|
|
14891
|
-
shoes: data.
|
|
14892
|
-
apparel: data.
|
|
14893
|
-
accessories: data.
|
|
14894
|
-
watches: data.
|
|
14895
|
-
accessoriesCategories: data.
|
|
14896
|
-
apparelStyles: data.
|
|
14886
|
+
latestArrivals: data.latest_arrivals,
|
|
14887
|
+
bags: data.bags,
|
|
14888
|
+
shoes: data.shoes,
|
|
14889
|
+
apparel: data.apparel,
|
|
14890
|
+
accessories: data.accessories,
|
|
14891
|
+
watches: data.watches,
|
|
14892
|
+
accessoriesCategories: data.accessories_categories,
|
|
14893
|
+
apparelStyles: data.apparel_styles
|
|
14897
14894
|
});
|
|
14898
14895
|
});
|
|
14899
14896
|
}).catch(function () {
|
|
14900
14897
|
return setHasError(true);
|
|
14901
14898
|
});
|
|
14902
|
-
}, [
|
|
14899
|
+
}, [menuData]);
|
|
14903
14900
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14904
14901
|
className: "navbar"
|
|
14905
14902
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -15010,7 +15007,7 @@
|
|
|
15010
15007
|
}, /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
15011
15008
|
title: "Department",
|
|
15012
15009
|
imageSrc: clothingImage,
|
|
15013
|
-
categoryElements: dropdownData.apparelStyles,
|
|
15010
|
+
categoryElements: addCategoryToElements(dropdownData.apparelStyles, categories$1.clothing.slug),
|
|
15014
15011
|
brandElements: dropdownData.apparel,
|
|
15015
15012
|
productsUrl: productsUrl,
|
|
15016
15013
|
categorySlug: categories$1.clothing.slug,
|
|
@@ -15192,11 +15189,16 @@
|
|
|
15192
15189
|
className: "side-nav__sub-menu-title"
|
|
15193
15190
|
}, subMenuCategoryTitle), /*#__PURE__*/React__default.createElement("div", {
|
|
15194
15191
|
className: "side-nav__elements"
|
|
15195
|
-
}, categoryElements.map(function (
|
|
15196
|
-
return /*#__PURE__*/React__default.createElement("a", {
|
|
15197
|
-
href: "".concat(productUrl, "/").concat(
|
|
15198
|
-
className: "
|
|
15199
|
-
|
|
15192
|
+
}, categoryElements.map(function (categoryElement) {
|
|
15193
|
+
return categoryElement.category ? /*#__PURE__*/React__default.createElement("a", {
|
|
15194
|
+
href: "".concat(productUrl, "/").concat(categoryElement.category, "/").concat(categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.slug),
|
|
15195
|
+
className: "dropdown__element",
|
|
15196
|
+
key: categoryElement.name
|
|
15197
|
+
}, categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.name.toLowerCase()) : /*#__PURE__*/React__default.createElement("a", {
|
|
15198
|
+
href: "".concat(productUrl, "/").concat(categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.slug),
|
|
15199
|
+
className: "dropdown__element",
|
|
15200
|
+
key: categoryElement.name
|
|
15201
|
+
}, categoryElement === null || categoryElement === void 0 ? void 0 : categoryElement.name.toLowerCase());
|
|
15200
15202
|
})), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("div", {
|
|
15201
15203
|
className: "side-nav__elements"
|
|
15202
15204
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -15227,7 +15229,7 @@
|
|
|
15227
15229
|
categoryElements = _ref.categoryElements,
|
|
15228
15230
|
showSideNav = _ref.showSideNav,
|
|
15229
15231
|
onMenuClick = _ref.onMenuClick,
|
|
15230
|
-
|
|
15232
|
+
menuData = _ref.menuData;
|
|
15231
15233
|
|
|
15232
15234
|
var _useState = React.useState(false),
|
|
15233
15235
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15288,27 +15290,35 @@
|
|
|
15288
15290
|
}
|
|
15289
15291
|
};
|
|
15290
15292
|
|
|
15293
|
+
function addCategoryToElements(elements, categoryName) {
|
|
15294
|
+
return elements.map(function (element) {
|
|
15295
|
+
return _objectSpread2(_objectSpread2({}, element), {}, {
|
|
15296
|
+
category: categoryName
|
|
15297
|
+
});
|
|
15298
|
+
});
|
|
15299
|
+
}
|
|
15300
|
+
|
|
15291
15301
|
React.useMemo(function () {
|
|
15292
15302
|
setLoading(true);
|
|
15293
|
-
axios.
|
|
15303
|
+
axios.get("".concat(menuData)).then(function (_ref2) {
|
|
15294
15304
|
var data = _ref2.data;
|
|
15295
15305
|
setLoading(false);
|
|
15296
15306
|
setDropdownData(function (prev) {
|
|
15297
15307
|
return _objectSpread2(_objectSpread2({}, prev), {}, {
|
|
15298
|
-
latestArrivals: data.
|
|
15299
|
-
bags: data.
|
|
15300
|
-
shoes: data.
|
|
15301
|
-
apparel: data.
|
|
15302
|
-
accessories: data.
|
|
15303
|
-
watches: data.
|
|
15304
|
-
accessoriesCategories: data.
|
|
15305
|
-
apparelStyles: data.
|
|
15308
|
+
latestArrivals: data.latest_arrivals,
|
|
15309
|
+
bags: data.bags,
|
|
15310
|
+
shoes: data.shoes,
|
|
15311
|
+
apparel: data.apparel,
|
|
15312
|
+
accessories: data.accessories,
|
|
15313
|
+
watches: data.watches,
|
|
15314
|
+
accessoriesCategories: data.accessories_categories,
|
|
15315
|
+
apparelStyles: data.apparel_styles
|
|
15306
15316
|
});
|
|
15307
15317
|
});
|
|
15308
15318
|
}).catch(function () {
|
|
15309
15319
|
return setHasError(true);
|
|
15310
15320
|
});
|
|
15311
|
-
}, [
|
|
15321
|
+
}, [menuData]);
|
|
15312
15322
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
15313
15323
|
className: "side-nav"
|
|
15314
15324
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -15476,7 +15486,7 @@
|
|
|
15476
15486
|
backIcon: backIcon,
|
|
15477
15487
|
subMenuCategoryTitle: "Department",
|
|
15478
15488
|
productUrl: productUrl,
|
|
15479
|
-
categoryElements: categoryElements,
|
|
15489
|
+
categoryElements: addCategoryToElements(categoryElements, categories$1.bags.slug),
|
|
15480
15490
|
subMenuBrandsTitle: "Bag Brands",
|
|
15481
15491
|
brandsList: dropdownData.bags,
|
|
15482
15492
|
categorySlug: displayedSubMenu,
|
|
@@ -15488,7 +15498,7 @@
|
|
|
15488
15498
|
backIcon: backIcon,
|
|
15489
15499
|
subMenuCategoryTitle: "Department",
|
|
15490
15500
|
productUrl: productUrl,
|
|
15491
|
-
categoryElements: categoryElements,
|
|
15501
|
+
categoryElements: addCategoryToElements(categoryElements, categories$1.shoes.slug),
|
|
15492
15502
|
subMenuBrandsTitle: "Shoe Brands",
|
|
15493
15503
|
brandsList: dropdownData.shoes,
|
|
15494
15504
|
categorySlug: displayedSubMenu,
|
|
@@ -15500,7 +15510,7 @@
|
|
|
15500
15510
|
backIcon: backIcon,
|
|
15501
15511
|
subMenuCategoryTitle: "Department",
|
|
15502
15512
|
productUrl: productUrl,
|
|
15503
|
-
categoryElements: dropdownData.apparelStyles,
|
|
15513
|
+
categoryElements: addCategoryToElements(dropdownData.apparelStyles, categories$1.clothing.slug),
|
|
15504
15514
|
subMenuBrandsTitle: "Clothing Brands",
|
|
15505
15515
|
brandsList: dropdownData.apparel,
|
|
15506
15516
|
categorySlug: displayedSubMenu,
|
|
@@ -15524,7 +15534,7 @@
|
|
|
15524
15534
|
backIcon: backIcon,
|
|
15525
15535
|
subMenuCategoryTitle: "Department",
|
|
15526
15536
|
productUrl: productUrl,
|
|
15527
|
-
categoryElements: categoryElements,
|
|
15537
|
+
categoryElements: addCategoryToElements(categoryElements, categories$1.watches.slug),
|
|
15528
15538
|
subMenuBrandsTitle: "Watches Brands",
|
|
15529
15539
|
brandsList: dropdownData.watches,
|
|
15530
15540
|
categorySlug: displayedSubMenu,
|
|
@@ -15741,6 +15751,7 @@
|
|
|
15741
15751
|
onLogoClick = _ref.onLogoClick,
|
|
15742
15752
|
onLuxityShopClick = _ref.onLuxityShopClick,
|
|
15743
15753
|
endpoint = _ref.endpoint,
|
|
15754
|
+
menuData = _ref.menuData,
|
|
15744
15755
|
onSearchSubmit = _ref.onSearchSubmit,
|
|
15745
15756
|
onProductIdsReceived = _ref.onProductIdsReceived,
|
|
15746
15757
|
onLogoutClick = _ref.onLogoutClick,
|
|
@@ -16000,7 +16011,8 @@
|
|
|
16000
16011
|
categoryElements: categoryElements,
|
|
16001
16012
|
showSideNav: showSideNav,
|
|
16002
16013
|
onMenuClick: onMenuClick,
|
|
16003
|
-
endpoint: endpoint
|
|
16014
|
+
endpoint: endpoint,
|
|
16015
|
+
menuData: menuData
|
|
16004
16016
|
}), app && /*#__PURE__*/React__default.createElement(LuxityAppSideNav, {
|
|
16005
16017
|
accordionIcon: accordionIcon,
|
|
16006
16018
|
closeIcon: closeIcon,
|
package/package.json
CHANGED
package/svg/Clothing.js
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
var Clothing = (function (props) {
|
|
27
27
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
28
28
|
version: "1.1",
|
|
29
|
-
id: "
|
|
29
|
+
id: "svg-clothing",
|
|
30
30
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31
31
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
32
32
|
x: "0px",
|
|
@@ -37,7 +37,8 @@
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