@bonlineza/luxity-lib 2.31.0 → 2.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GraphQLDropdownSelector.js +6 -1
- package/LuxityDesktopHeader.js +51 -11
- package/build/bundle.css +1 -1
- package/build/bundle.js +51 -11
- package/package.json +1 -1
- package/CHANGELOG.md +0 -299
- package/CreateRarestepInterest.js +0 -85
- package/LuxityHeader.js +0 -369
- package/RarestepAddInterests.js +0 -118
- package/RarestepInterests.js +0 -118
- package/build/assets/.DS_Store +0 -0
|
@@ -10982,11 +10982,16 @@
|
|
|
10982
10982
|
var SubmitButton = styled__default.input(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteral(["\n flex-basis: 15%;\n margin-right: 5px;\n"])));
|
|
10983
10983
|
|
|
10984
10984
|
var _templateObject$U;
|
|
10985
|
+
var FooterWrapper$1 = styled__default.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteral(["\n {\n background-color: ", ";\n }\n"])), function (props) {
|
|
10986
|
+
return props.theme.colors.gray;
|
|
10987
|
+
});
|
|
10988
|
+
|
|
10989
|
+
var _templateObject$V;
|
|
10985
10990
|
var ALL_ITEM$1 = {
|
|
10986
10991
|
label: 'ALL',
|
|
10987
10992
|
value: 'ALL'
|
|
10988
10993
|
};
|
|
10989
|
-
var StyledMultiselector$1 = styled__default.div(_templateObject$
|
|
10994
|
+
var StyledMultiselector$1 = styled__default.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteral(["\n .multiselector__selected-items,\n .multiselector__selectable-items {\n display: flex;\n flex-flow: no-wrap;\n margin-bottom: 40px;\n .dropdown-select-container {\n width: 100%;\n .dropdown-select {\n &__control {\n border-color: ", ";\n border-radius: 0px;\n background-color: ", ";\n color: ", ";\n }\n &__multi-value {\n background-color: ", ";\n }\n &__multi-value__label {\n color: ", ";\n font-size: 100%;\n }\n &__multi-value__remove {\n svg {\n fill: ", ";\n }\n }\n }\n }\n }\n"])), function (props) {
|
|
10990
10995
|
return props.theme.colors.primary;
|
|
10991
10996
|
}, function (props) {
|
|
10992
10997
|
return props.theme.colors.ntrlMin;
|
package/LuxityDesktopHeader.js
CHANGED
|
@@ -72,7 +72,9 @@
|
|
|
72
72
|
categoryElements = _ref$categoryElements === void 0 ? [] : _ref$categoryElements,
|
|
73
73
|
_ref$brandElements = _ref.brandElements,
|
|
74
74
|
brandElements = _ref$brandElements === void 0 ? [] : _ref$brandElements,
|
|
75
|
-
productsUrl = _ref.productsUrl
|
|
75
|
+
productsUrl = _ref.productsUrl,
|
|
76
|
+
categorySlug = _ref.categorySlug,
|
|
77
|
+
categoryTitle = _ref.categoryTitle;
|
|
76
78
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
77
79
|
className: "dropdown"
|
|
78
80
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -93,7 +95,10 @@
|
|
|
93
95
|
className: "dropdown__title"
|
|
94
96
|
}, "Brands"), /*#__PURE__*/React__default.createElement("div", {
|
|
95
97
|
className: "dropdown__elements dropdown__elements--row"
|
|
96
|
-
},
|
|
98
|
+
}, /*#__PURE__*/React__default.createElement("a", {
|
|
99
|
+
href: "".concat(productsUrl, "/").concat(categorySlug),
|
|
100
|
+
className: "dropdown__element"
|
|
101
|
+
}, "All ", categoryTitle), !!brandElements.length && brandElements.map(function (brand) {
|
|
97
102
|
return /*#__PURE__*/React__default.createElement("a", {
|
|
98
103
|
href: "".concat(productsUrl, "/").concat(brand === null || brand === void 0 ? void 0 : brand.slug),
|
|
99
104
|
className: "dropdown__element",
|
|
@@ -150,6 +155,29 @@
|
|
|
150
155
|
}, contactNumber)));
|
|
151
156
|
};
|
|
152
157
|
|
|
158
|
+
var categories = {
|
|
159
|
+
shoes: {
|
|
160
|
+
name: 'Shoes',
|
|
161
|
+
slug: 'shoes'
|
|
162
|
+
},
|
|
163
|
+
bags: {
|
|
164
|
+
name: 'Bags',
|
|
165
|
+
slug: 'bags'
|
|
166
|
+
},
|
|
167
|
+
clothing: {
|
|
168
|
+
name: 'Clothing',
|
|
169
|
+
slug: 'apparel'
|
|
170
|
+
},
|
|
171
|
+
watches: {
|
|
172
|
+
name: 'Watches',
|
|
173
|
+
slug: 'watches'
|
|
174
|
+
},
|
|
175
|
+
accessories: {
|
|
176
|
+
name: 'Accessories',
|
|
177
|
+
slug: 'accessories'
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
|
|
153
181
|
var LuxityDesktopHeader = function LuxityDesktopHeader(_ref) {
|
|
154
182
|
var accountIcon = _ref.accountIcon,
|
|
155
183
|
cartIcon = _ref.cartIcon,
|
|
@@ -159,7 +187,7 @@
|
|
|
159
187
|
categoryElements = _ref.categoryElements,
|
|
160
188
|
newBrandElements = _ref.newBrandElements,
|
|
161
189
|
bagsElements = _ref.bagsElements,
|
|
162
|
-
|
|
190
|
+
shoesElements = _ref.shoesElements,
|
|
163
191
|
clothingElements = _ref.clothingElements,
|
|
164
192
|
accessoriesElements = _ref.accessoriesElements,
|
|
165
193
|
accessoriesCategoryElements = _ref.accessoriesCategoryElements,
|
|
@@ -240,7 +268,9 @@
|
|
|
240
268
|
imageSrc: newBrandsImage,
|
|
241
269
|
categoryElements: categoryElements,
|
|
242
270
|
brandElements: newBrandElements,
|
|
243
|
-
productsUrl: productsUrl
|
|
271
|
+
productsUrl: productsUrl,
|
|
272
|
+
categorySlug: "brands",
|
|
273
|
+
categoryTitle: "Brands"
|
|
244
274
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
245
275
|
className: "navbar__link"
|
|
246
276
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -253,7 +283,9 @@
|
|
|
253
283
|
imageSrc: bagsImage,
|
|
254
284
|
categoryElements: categoryElements,
|
|
255
285
|
brandElements: bagsElements,
|
|
256
|
-
productsUrl: productsUrl
|
|
286
|
+
productsUrl: productsUrl,
|
|
287
|
+
categorySlug: categories.bags.slug,
|
|
288
|
+
categoryTitle: categories.bags.name
|
|
257
289
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
258
290
|
className: "navbar__link"
|
|
259
291
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -265,8 +297,10 @@
|
|
|
265
297
|
title: "Department",
|
|
266
298
|
imageSrc: shoesImage,
|
|
267
299
|
categoryElements: categoryElements,
|
|
268
|
-
brandElements:
|
|
269
|
-
productsUrl: productsUrl
|
|
300
|
+
brandElements: shoesElements,
|
|
301
|
+
productsUrl: productsUrl,
|
|
302
|
+
categorySlug: categories.shoes.slug,
|
|
303
|
+
categoryTitle: categories.shoes.name
|
|
270
304
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
271
305
|
className: "navbar__link"
|
|
272
306
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -279,7 +313,9 @@
|
|
|
279
313
|
imageSrc: clothingImage,
|
|
280
314
|
categoryElements: categoryElements,
|
|
281
315
|
brandElements: clothingElements,
|
|
282
|
-
productsUrl: productsUrl
|
|
316
|
+
productsUrl: productsUrl,
|
|
317
|
+
categorySlug: categories.clothing.slug,
|
|
318
|
+
categoryTitle: categories.clothing.name
|
|
283
319
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
284
320
|
className: "navbar__link"
|
|
285
321
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -288,11 +324,13 @@
|
|
|
288
324
|
}, "Accessories"), /*#__PURE__*/React__default.createElement("div", {
|
|
289
325
|
className: "navbar__dropdown"
|
|
290
326
|
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
291
|
-
title: "
|
|
327
|
+
title: "Categories",
|
|
292
328
|
imageSrc: accessoriesImage,
|
|
293
329
|
categoryElements: accessoriesCategoryElements,
|
|
294
330
|
brandElements: accessoriesElements,
|
|
295
|
-
productsUrl: productsUrl
|
|
331
|
+
productsUrl: productsUrl,
|
|
332
|
+
categorySlug: categories.accessories.slug,
|
|
333
|
+
categoryTitle: categories.accessories.name
|
|
296
334
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
297
335
|
className: "navbar__link"
|
|
298
336
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -305,7 +343,9 @@
|
|
|
305
343
|
imageSrc: watchesImage,
|
|
306
344
|
categoryElements: categoryElements,
|
|
307
345
|
brandElements: watchesElements,
|
|
308
|
-
productsUrl: productsUrl
|
|
346
|
+
productsUrl: productsUrl,
|
|
347
|
+
categorySlug: categories.watches.slug,
|
|
348
|
+
categoryTitle: categories.watches.name
|
|
309
349
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
310
350
|
className: "navbar__link"
|
|
311
351
|
}, /*#__PURE__*/React__default.createElement("a", {
|
package/build/bundle.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.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%}.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}.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}
|
package/build/bundle.js
CHANGED
|
@@ -14384,7 +14384,9 @@
|
|
|
14384
14384
|
categoryElements = _ref$categoryElements === void 0 ? [] : _ref$categoryElements,
|
|
14385
14385
|
_ref$brandElements = _ref.brandElements,
|
|
14386
14386
|
brandElements = _ref$brandElements === void 0 ? [] : _ref$brandElements,
|
|
14387
|
-
productsUrl = _ref.productsUrl
|
|
14387
|
+
productsUrl = _ref.productsUrl,
|
|
14388
|
+
categorySlug = _ref.categorySlug,
|
|
14389
|
+
categoryTitle = _ref.categoryTitle;
|
|
14388
14390
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14389
14391
|
className: "dropdown"
|
|
14390
14392
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -14405,7 +14407,10 @@
|
|
|
14405
14407
|
className: "dropdown__title"
|
|
14406
14408
|
}, "Brands"), /*#__PURE__*/React__default.createElement("div", {
|
|
14407
14409
|
className: "dropdown__elements dropdown__elements--row"
|
|
14408
|
-
},
|
|
14410
|
+
}, /*#__PURE__*/React__default.createElement("a", {
|
|
14411
|
+
href: "".concat(productsUrl, "/").concat(categorySlug),
|
|
14412
|
+
className: "dropdown__element"
|
|
14413
|
+
}, "All ", categoryTitle), !!brandElements.length && brandElements.map(function (brand) {
|
|
14409
14414
|
return /*#__PURE__*/React__default.createElement("a", {
|
|
14410
14415
|
href: "".concat(productsUrl, "/").concat(brand === null || brand === void 0 ? void 0 : brand.slug),
|
|
14411
14416
|
className: "dropdown__element",
|
|
@@ -14462,6 +14467,29 @@
|
|
|
14462
14467
|
}, contactNumber)));
|
|
14463
14468
|
};
|
|
14464
14469
|
|
|
14470
|
+
var categories$1 = {
|
|
14471
|
+
shoes: {
|
|
14472
|
+
name: 'Shoes',
|
|
14473
|
+
slug: 'shoes'
|
|
14474
|
+
},
|
|
14475
|
+
bags: {
|
|
14476
|
+
name: 'Bags',
|
|
14477
|
+
slug: 'bags'
|
|
14478
|
+
},
|
|
14479
|
+
clothing: {
|
|
14480
|
+
name: 'Clothing',
|
|
14481
|
+
slug: 'apparel'
|
|
14482
|
+
},
|
|
14483
|
+
watches: {
|
|
14484
|
+
name: 'Watches',
|
|
14485
|
+
slug: 'watches'
|
|
14486
|
+
},
|
|
14487
|
+
accessories: {
|
|
14488
|
+
name: 'Accessories',
|
|
14489
|
+
slug: 'accessories'
|
|
14490
|
+
}
|
|
14491
|
+
};
|
|
14492
|
+
|
|
14465
14493
|
var LuxityDesktopHeader = function LuxityDesktopHeader(_ref) {
|
|
14466
14494
|
var accountIcon = _ref.accountIcon,
|
|
14467
14495
|
cartIcon = _ref.cartIcon,
|
|
@@ -14471,7 +14499,7 @@
|
|
|
14471
14499
|
categoryElements = _ref.categoryElements,
|
|
14472
14500
|
newBrandElements = _ref.newBrandElements,
|
|
14473
14501
|
bagsElements = _ref.bagsElements,
|
|
14474
|
-
|
|
14502
|
+
shoesElements = _ref.shoesElements,
|
|
14475
14503
|
clothingElements = _ref.clothingElements,
|
|
14476
14504
|
accessoriesElements = _ref.accessoriesElements,
|
|
14477
14505
|
accessoriesCategoryElements = _ref.accessoriesCategoryElements,
|
|
@@ -14552,7 +14580,9 @@
|
|
|
14552
14580
|
imageSrc: newBrandsImage,
|
|
14553
14581
|
categoryElements: categoryElements,
|
|
14554
14582
|
brandElements: newBrandElements,
|
|
14555
|
-
productsUrl: productsUrl
|
|
14583
|
+
productsUrl: productsUrl,
|
|
14584
|
+
categorySlug: "brands",
|
|
14585
|
+
categoryTitle: "Brands"
|
|
14556
14586
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
14557
14587
|
className: "navbar__link"
|
|
14558
14588
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -14565,7 +14595,9 @@
|
|
|
14565
14595
|
imageSrc: bagsImage,
|
|
14566
14596
|
categoryElements: categoryElements,
|
|
14567
14597
|
brandElements: bagsElements,
|
|
14568
|
-
productsUrl: productsUrl
|
|
14598
|
+
productsUrl: productsUrl,
|
|
14599
|
+
categorySlug: categories$1.bags.slug,
|
|
14600
|
+
categoryTitle: categories$1.bags.name
|
|
14569
14601
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
14570
14602
|
className: "navbar__link"
|
|
14571
14603
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -14577,8 +14609,10 @@
|
|
|
14577
14609
|
title: "Department",
|
|
14578
14610
|
imageSrc: shoesImage,
|
|
14579
14611
|
categoryElements: categoryElements,
|
|
14580
|
-
brandElements:
|
|
14581
|
-
productsUrl: productsUrl
|
|
14612
|
+
brandElements: shoesElements,
|
|
14613
|
+
productsUrl: productsUrl,
|
|
14614
|
+
categorySlug: categories$1.shoes.slug,
|
|
14615
|
+
categoryTitle: categories$1.shoes.name
|
|
14582
14616
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
14583
14617
|
className: "navbar__link"
|
|
14584
14618
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -14591,7 +14625,9 @@
|
|
|
14591
14625
|
imageSrc: clothingImage,
|
|
14592
14626
|
categoryElements: categoryElements,
|
|
14593
14627
|
brandElements: clothingElements,
|
|
14594
|
-
productsUrl: productsUrl
|
|
14628
|
+
productsUrl: productsUrl,
|
|
14629
|
+
categorySlug: categories$1.clothing.slug,
|
|
14630
|
+
categoryTitle: categories$1.clothing.name
|
|
14595
14631
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
14596
14632
|
className: "navbar__link"
|
|
14597
14633
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -14600,11 +14636,13 @@
|
|
|
14600
14636
|
}, "Accessories"), /*#__PURE__*/React__default.createElement("div", {
|
|
14601
14637
|
className: "navbar__dropdown"
|
|
14602
14638
|
}, /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
14603
|
-
title: "
|
|
14639
|
+
title: "Categories",
|
|
14604
14640
|
imageSrc: accessoriesImage,
|
|
14605
14641
|
categoryElements: accessoriesCategoryElements,
|
|
14606
14642
|
brandElements: accessoriesElements,
|
|
14607
|
-
productsUrl: productsUrl
|
|
14643
|
+
productsUrl: productsUrl,
|
|
14644
|
+
categorySlug: categories$1.accessories.slug,
|
|
14645
|
+
categoryTitle: categories$1.accessories.name
|
|
14608
14646
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
14609
14647
|
className: "navbar__link"
|
|
14610
14648
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -14617,7 +14655,9 @@
|
|
|
14617
14655
|
imageSrc: watchesImage,
|
|
14618
14656
|
categoryElements: categoryElements,
|
|
14619
14657
|
brandElements: watchesElements,
|
|
14620
|
-
productsUrl: productsUrl
|
|
14658
|
+
productsUrl: productsUrl,
|
|
14659
|
+
categorySlug: categories$1.watches.slug,
|
|
14660
|
+
categoryTitle: categories$1.watches.name
|
|
14621
14661
|
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
14622
14662
|
className: "navbar__link"
|
|
14623
14663
|
}, /*#__PURE__*/React__default.createElement("a", {
|
package/package.json
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
## Changelog
|
|
2
|
-
|
|
3
|
-
### 2.31.0
|
|
4
|
-
- Add Luxity Desktop Header Component
|
|
5
|
-
- Add Luxity Mobile Header Component
|
|
6
|
-
- Add Luxity Footer Component
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### 2.30.3
|
|
10
|
-
- update the communication preferences radio buttons to match the existing style of radio buttons.
|
|
11
|
-
- update the is_disabled prop tp follow camel case.
|
|
12
|
-
|
|
13
|
-
### 2.30.2
|
|
14
|
-
- rename dropdown components to make them more generic.
|
|
15
|
-
- add shoe size range selector
|
|
16
|
-
|
|
17
|
-
### 2.30.1
|
|
18
|
-
- adding a class name prop for the buttons on the communications preference components.
|
|
19
|
-
- removing the default section header on communication preferences.
|
|
20
|
-
|
|
21
|
-
### 2.30.0
|
|
22
|
-
- Components added:
|
|
23
|
-
- `CommunicationPreferences`
|
|
24
|
-
- `CommunicationPreferenceSection`
|
|
25
|
-
- `CommunicationPreferenceOptionRenderer`
|
|
26
|
-
|
|
27
|
-
### 2.29.1
|
|
28
|
-
- Allow the search input container to auto focus on render
|
|
29
|
-
|
|
30
|
-
### 2.29.0
|
|
31
|
-
- Removed models and materials filtering from `Style Selector`
|
|
32
|
-
- Showing brands as multiselect instead of dropdown on `Add Interest` form
|
|
33
|
-
|
|
34
|
-
### 2.28.0
|
|
35
|
-
Removed models and materials select from `Add Interest`
|
|
36
|
-
|
|
37
|
-
### 2.27.0
|
|
38
|
-
Add click event on Sidebar of `Rarestep Header`
|
|
39
|
-
|
|
40
|
-
### 2.26.0
|
|
41
|
-
Once user click on Menu Items Nav will closed `Rarestep Header`
|
|
42
|
-
|
|
43
|
-
### 2.25.0
|
|
44
|
-
User icon show when it present in `Rarestep Header`
|
|
45
|
-
|
|
46
|
-
### 2.24.0
|
|
47
|
-
Reduce padding and size of X of `Rarestep Header`
|
|
48
|
-
|
|
49
|
-
### 2.23.0
|
|
50
|
-
- All items are capitalize headers in `RarestepHeader`
|
|
51
|
-
|
|
52
|
-
### 2.22.0
|
|
53
|
-
- Add More Navigation Specific for `RarestepHeader`
|
|
54
|
-
|
|
55
|
-
### 2.21.0
|
|
56
|
-
- Capitalize all headers in `RarestepHeader`
|
|
57
|
-
|
|
58
|
-
### 2.20.0
|
|
59
|
-
- Move rarestep dropdown brands to header
|
|
60
|
-
|
|
61
|
-
### 2.19.0
|
|
62
|
-
- Show tiktok icon on `RareStepFooter`
|
|
63
|
-
|
|
64
|
-
### 2.18.5
|
|
65
|
-
- Allow `RareStepHeader` brands on menu dropdown to be clickable
|
|
66
|
-
|
|
67
|
-
### 2.18.4
|
|
68
|
-
- Replace `CurrencyInputFormatter` with custom code
|
|
69
|
-
|
|
70
|
-
### 2.18.3
|
|
71
|
-
- Only show the scroll bar on the `RareStepHeader` side nav when there is scrollable content
|
|
72
|
-
|
|
73
|
-
### 2.18.2
|
|
74
|
-
- Reduce `RareStepFooter` link font size
|
|
75
|
-
|
|
76
|
-
### 2.18.1
|
|
77
|
-
- Ensure RareStep SubMenuLink opens SubMenu instead of opening link
|
|
78
|
-
|
|
79
|
-
### 2.18.0
|
|
80
|
-
- Passing brands, models and materials to the styles graphql query to filter out styles that don't match up to the selected brands, models and materials.
|
|
81
|
-
|
|
82
|
-
### 2.17.5
|
|
83
|
-
- Open RareStep social media links in a new tab
|
|
84
|
-
|
|
85
|
-
### 2.17.4
|
|
86
|
-
- Fix stretching of `RareStepFooter` and `RareStepHeader` logo images
|
|
87
|
-
|
|
88
|
-
### 2.17.3
|
|
89
|
-
- Set a static height size for images on the desktop dropdown menu
|
|
90
|
-
|
|
91
|
-
### 2.17.2
|
|
92
|
-
- Made links on `RareStepHeader` dropdown clickable
|
|
93
|
-
|
|
94
|
-
### 2.17.1
|
|
95
|
-
- Aligned `SellToUsLink` with `HeaderIcon`
|
|
96
|
-
|
|
97
|
-
### 2.17.0
|
|
98
|
-
- Update `HeaderLogo` dimensions
|
|
99
|
-
- Update `HeaderIcon` dimensions
|
|
100
|
-
- Show dropdown on hover of user icon in the header
|
|
101
|
-
|
|
102
|
-
### 2.16.0
|
|
103
|
-
- Removed unused links from `RareStepFooter` and `RareStepHeader` components
|
|
104
|
-
- Centre aligned the logo on `RareStepHeader` mobile
|
|
105
|
-
- Changed background color of search container of `RareStepHeader` mobile
|
|
106
|
-
- `RareStepHeader` now accepts handleOnCartClick function to navigate to cart page
|
|
107
|
-
|
|
108
|
-
### 2.15.1
|
|
109
|
-
- Ensure dropdown search fills page width
|
|
110
|
-
- Make `RareStepFooter` and `RareStepHeader` logo clickable
|
|
111
|
-
### 2.15.0
|
|
112
|
-
- Adds sliding animation to `RareStepHeader` on mobile
|
|
113
|
-
- Change props to camel case for `RareStepFooter` and `RareStepHeader` components
|
|
114
|
-
|
|
115
|
-
### 2.14.0
|
|
116
|
-
- Made `RareStepFooter` and `RareStepHeader` components responsive
|
|
117
|
-
|
|
118
|
-
### 2.13.1
|
|
119
|
-
- Changed interest page heading from `My Interests` to `Interests`.
|
|
120
|
-
|
|
121
|
-
### 2.13.0
|
|
122
|
-
- Removed `LuxityLoader` component
|
|
123
|
-
|
|
124
|
-
### 2.12.0
|
|
125
|
-
- Added a `RareStepHeader` and `RareStepFooter` components
|
|
126
|
-
|
|
127
|
-
### 2.11.0
|
|
128
|
-
- Components added:
|
|
129
|
-
-- `GraphQLDropdownSelector`, `LuxityGraphQLDropdownSelector`, `MaterialSelector`, and `ModelSelector`
|
|
130
|
-
- Added models and materials select form fields to add interests.
|
|
131
|
-
|
|
132
|
-
### 2.10.0
|
|
133
|
-
- Added a `LuxityLoader` component
|
|
134
|
-
### 2.9.2
|
|
135
|
-
- Ensure the search icon is not cutting off
|
|
136
|
-
|
|
137
|
-
### 2.9.1
|
|
138
|
-
- Ensure the interest categories wrap on small screen
|
|
139
|
-
|
|
140
|
-
### 2.9.0
|
|
141
|
-
- Added clothing as an interest item
|
|
142
|
-
### 2.8.0
|
|
143
|
-
- Breaking - `CurrencyInput` component renamed to `CurrencyInputFormatter`
|
|
144
|
-
- CurrencyInputFormatter props `onChange, value, prefix, allowNegativeValue,
|
|
145
|
-
groupSeparator,
|
|
146
|
-
decimalSeparator,`
|
|
147
|
-
- upgrade react to react 17.0.2
|
|
148
|
-
- upgrade storybook
|
|
149
|
-
- remove storybook-readme
|
|
150
|
-
|
|
151
|
-
### 2.7.5
|
|
152
|
-
- Change color of the active Interest category
|
|
153
|
-
when adding item as interest
|
|
154
|
-
### 2.7.4
|
|
155
|
-
- Bug fix for IOS, extra space showing on `InterestItem`
|
|
156
|
-
### 2.7.3
|
|
157
|
-
- Fix container alignment of `AddInterest` and `InterestItem` so they match
|
|
158
|
-
- Center alignment trash icon in `InterestItem`
|
|
159
|
-
### 2.7.2
|
|
160
|
-
- Dont show `MyInterestTitleHeading` if don't have interest items
|
|
161
|
-
### 2.7.1
|
|
162
|
-
- Change svg colors from pink to black
|
|
163
|
-
### 2.7.0
|
|
164
|
-
- `AddInterest` and `InterestItem` have a new design that does not use the `Accordion` component
|
|
165
|
-
- Can add a watch as interest
|
|
166
|
-
### 2.6.2
|
|
167
|
-
- Limit the width of the title of `InterestItem` so that it does not overlap with trash icon
|
|
168
|
-
### 2.6.1
|
|
169
|
-
- Upgrade `@bonlineza/b-lib` to v3.2.2
|
|
170
|
-
|
|
171
|
-
### 2.6.0
|
|
172
|
-
- `InterestItem` now has a delete button next to the interest title
|
|
173
|
-
### 2.5.4
|
|
174
|
-
- Changed background color on `Add Interest` component buttons to black with white text
|
|
175
|
-
### 2.5.3
|
|
176
|
-
- Changed text color on `Add Interest` component buttons
|
|
177
|
-
|
|
178
|
-
### 2.5.2
|
|
179
|
-
- `Notify` component now includes a warning function
|
|
180
|
-
### 2.5.1
|
|
181
|
-
- change base color from pink to black
|
|
182
|
-
### 2.5.0
|
|
183
|
-
- `Accordion` component now accepts defaultHeight as a prop
|
|
184
|
-
### 2.4.0
|
|
185
|
-
- Formatted `mark` data for `RangeSlider`
|
|
186
|
-
### 2.3.0
|
|
187
|
-
- Changed `title` prop on `Accordion` to include support for Component rendering
|
|
188
|
-
### 2.2.0
|
|
189
|
-
- Add `DummyAccordion` component that looks like an `Accordion` only with a button-like behaviour
|
|
190
|
-
- Remove bundle conversion of Flow types to prop-types
|
|
191
|
-
- Strip 'prop-types' from exported bundles (removed the 'prop-types' Dependency)
|
|
192
|
-
- Add `SvgWrapper` as exported component
|
|
193
|
-
- Include `svgs` in package - can now import them induvidually as `@bonlineza/luxity-lib/svg/Add`
|
|
194
|
-
- Update all packages
|
|
195
|
-
- include `package-lock.json` file
|
|
196
|
-
- Update `Tooltip` - allow passing custom classes for `containerClassName` and `bodyClassName`
|
|
197
|
-
- Update `TextButton` - add default `type` prop as 'button' to prevent unintended form submissions
|
|
198
|
-
|
|
199
|
-
### 2.1.1
|
|
200
|
-
- Update `CountryCodeSelect` change the value that is used in the onChange callback
|
|
201
|
-
|
|
202
|
-
### 2.1.0
|
|
203
|
-
- Add components: `CountryCodeSelect` and `ReactSelectWrapper`
|
|
204
|
-
|
|
205
|
-
### 2.0.3
|
|
206
|
-
- Fix: prevent event from being passed into the `closeAccordion` function
|
|
207
|
-
|
|
208
|
-
### 2.0.2
|
|
209
|
-
- Fix: export `constants` properly - can now import directly from: `@bonlineza/luxity-lib/constants`
|
|
210
|
-
|
|
211
|
-
### 2.0.1
|
|
212
|
-
- Add fade transition to for `ShoeSizeTypeSelector` to improve ux
|
|
213
|
-
|
|
214
|
-
### 2.0.0
|
|
215
|
-
- Amend version to `2.0.0` for sanity due to the last feature being a breaking change
|
|
216
|
-
|
|
217
|
-
### 1.3.0
|
|
218
|
-
- Correct versioning of package due to `shoe-size-type` feature being a breaking
|
|
219
|
-
change
|
|
220
|
-
|
|
221
|
-
### 1.2.9
|
|
222
|
-
- Add functionality to choose size type for the `ShoeSelector` in the
|
|
223
|
-
`AddInterest` component due to spec changes. Add prop `shoe_size_type` to
|
|
224
|
-
payload of of request for adding an interest
|
|
225
|
-
- Add default check functionality for `RadioButton` component
|
|
226
|
-
- Update tests for `RadioButton` and `InterestItem`
|
|
227
|
-
- Correct prop definition `SimpleErrorBoundary` which was preventing `yarn docs`
|
|
228
|
-
from creating an `md` file for that component
|
|
229
|
-
|
|
230
|
-
### 1.2.8
|
|
231
|
-
- Surround `InterestItem` with `SimpleErrorBoundary`
|
|
232
|
-
- Add sanity to the `getShoeSize` output
|
|
233
|
-
- Export `gender` constants
|
|
234
|
-
|
|
235
|
-
### 1.2.7
|
|
236
|
-
- Change Full Size Range Button in Add Interest inverted button
|
|
237
|
-
|
|
238
|
-
### 1.2.6
|
|
239
|
-
- Remove deselectAll from AddInterest
|
|
240
|
-
- Fix infinite loop of CheckboxButton
|
|
241
|
-
- Remove reference props in GenderSelector
|
|
242
|
-
- Update test for CheckboxButton
|
|
243
|
-
|
|
244
|
-
### 1.2.4
|
|
245
|
-
- Change InterestItem to use the 'title' prop and add test
|
|
246
|
-
|
|
247
|
-
### 1.2.3
|
|
248
|
-
- Refactor styles of InterestItem so it looks the way it is required to look
|
|
249
|
-
- Fix logic for deselecting brands and styles for GraphQLMultiSelector when a category changes
|
|
250
|
-
- Add forwardRef logic to themed function
|
|
251
|
-
|
|
252
|
-
### 1.2.2
|
|
253
|
-
- Fix InterstItem render that uses new 'name' prop from Styles
|
|
254
|
-
|
|
255
|
-
### 1.2.1
|
|
256
|
-
- Fix Border Style for NotificationDropdown
|
|
257
|
-
- Change deleteInterest prop to `deleteInterestApi` to better describe it
|
|
258
|
-
|
|
259
|
-
### 1.2.0
|
|
260
|
-
- No Longer Exporting: BrandSelector and AddInterest
|
|
261
|
-
- Added Component: Interests
|
|
262
|
-
|
|
263
|
-
### 1.1.1
|
|
264
|
-
- Fix RangeSlider: Tooltip component receives correct props
|
|
265
|
-
|
|
266
|
-
### 1.1.0
|
|
267
|
-
- Added Components:
|
|
268
|
-
- AddInterest
|
|
269
|
-
- BrandSelector
|
|
270
|
-
- CurrencyInput
|
|
271
|
-
- GraphQLMultiSelector
|
|
272
|
-
- InterestCatSelector
|
|
273
|
-
- InterestItem
|
|
274
|
-
- LuxityGraphQLMultiSelector
|
|
275
|
-
- LuxityPageReady
|
|
276
|
-
- StyleSelector
|
|
277
|
-
- RangeSlider
|
|
278
|
-
- ShoeSizeSelector
|
|
279
|
-
- PriceRangeSelector
|
|
280
|
-
- Added List of Helper functions to the Readme
|
|
281
|
-
- Added Development guide to the Readme
|
|
282
|
-
- Added Publishing Guide to the Readme
|
|
283
|
-
|
|
284
|
-
### 1.0.0
|
|
285
|
-
- Breaking Change: Reworked Button 'variant' prop into individual Components
|
|
286
|
-
- Removed Generic Button component
|
|
287
|
-
- New Button components: PrimaryButton, SecondaryButton, TextButton, InvertedTextButton, WrapperButton
|
|
288
|
-
- Added SVG components (see README for full List)
|
|
289
|
-
|
|
290
|
-
### 0.1.2
|
|
291
|
-
- Updated `styled-components` version to v5
|
|
292
|
-
|
|
293
|
-
### 0.1.1
|
|
294
|
-
- Moved `styled-components` to dev and peer-dependencies as it is a host project requirement
|
|
295
|
-
|
|
296
|
-
### 0.1.0
|
|
297
|
-
- Added Components: Checkbox, RadioButtons, Tooltip
|
|
298
|
-
- Added generated ocumentation for components
|
|
299
|
-
- Added Element: Button
|
|
@@ -1,85 +0,0 @@
|
|
|
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.CreateRarestepInterest = 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 CreateRarestepInterest = function CreateRarestepInterest() {
|
|
69
|
-
var _useState = React.useState(null),
|
|
70
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
71
|
-
state = _useState2[0],
|
|
72
|
-
setState = _useState2[1];
|
|
73
|
-
|
|
74
|
-
React.useEffect(function () {
|
|
75
|
-
setState(1);
|
|
76
|
-
}, []);
|
|
77
|
-
console.log(state);
|
|
78
|
-
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
79
|
-
className: "test"
|
|
80
|
-
}, /*#__PURE__*/React__default.createElement("h1", null, "Hie")));
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
return CreateRarestepInterest;
|
|
84
|
-
|
|
85
|
-
})));
|
package/LuxityHeader.js
DELETED
|
@@ -1,369 +0,0 @@
|
|
|
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.LuxityHeader = 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 Dropdown = function Dropdown(_ref) {
|
|
69
|
-
var title = _ref.title,
|
|
70
|
-
imageSrc = _ref.imageSrc,
|
|
71
|
-
_ref$categoryElements = _ref.categoryElements,
|
|
72
|
-
categoryElements = _ref$categoryElements === void 0 ? [] : _ref$categoryElements,
|
|
73
|
-
_ref$brandElements = _ref.brandElements,
|
|
74
|
-
brandElements = _ref$brandElements === void 0 ? [] : _ref$brandElements,
|
|
75
|
-
productsUrl = _ref.productsUrl;
|
|
76
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
77
|
-
className: "dropdown"
|
|
78
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
79
|
-
className: "dropdown__column"
|
|
80
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
81
|
-
className: "dropdown__title"
|
|
82
|
-
}, title), /*#__PURE__*/React__default.createElement("div", {
|
|
83
|
-
className: "dropdown__elements dropdown__elements--column"
|
|
84
|
-
}, !!categoryElements.length && categoryElements.map(function (category) {
|
|
85
|
-
return /*#__PURE__*/React__default.createElement("a", {
|
|
86
|
-
href: "".concat(productsUrl, "/").concat(category === null || category === void 0 ? void 0 : category.slug),
|
|
87
|
-
className: "dropdown__element",
|
|
88
|
-
key: category.name
|
|
89
|
-
}, category === null || category === void 0 ? void 0 : category.name);
|
|
90
|
-
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
91
|
-
className: "dropdown__column"
|
|
92
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
93
|
-
className: "dropdown__title"
|
|
94
|
-
}, "Brands"), /*#__PURE__*/React__default.createElement("div", {
|
|
95
|
-
className: "dropdown__elements dropdown__elements--row"
|
|
96
|
-
}, !!brandElements.length && brandElements.map(function (brand) {
|
|
97
|
-
return /*#__PURE__*/React__default.createElement("a", {
|
|
98
|
-
href: "".concat(productsUrl, "/").concat(brand === null || brand === void 0 ? void 0 : brand.slug),
|
|
99
|
-
className: "dropdown__element",
|
|
100
|
-
key: brand.name
|
|
101
|
-
}, brand === null || brand === void 0 ? void 0 : brand.name);
|
|
102
|
-
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
103
|
-
className: "dropdown__column"
|
|
104
|
-
}, /*#__PURE__*/React__default.createElement("img", {
|
|
105
|
-
src: imageSrc,
|
|
106
|
-
alt: "".concat(title)
|
|
107
|
-
})));
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
var StoresDropdown = function StoresDropdown(_ref) {
|
|
111
|
-
var _ref$stores = _ref.stores,
|
|
112
|
-
stores = _ref$stores === void 0 ? [] : _ref$stores,
|
|
113
|
-
contactNumber = _ref.contactNumber;
|
|
114
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
115
|
-
className: "stores-dropdown"
|
|
116
|
-
}, !!stores.length && stores.map(function (store) {
|
|
117
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
118
|
-
className: "stores-dropdown__store-details",
|
|
119
|
-
key: store.name
|
|
120
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
121
|
-
className: "stores-dropdown__store-image"
|
|
122
|
-
}, /*#__PURE__*/React__default.createElement("img", {
|
|
123
|
-
className: "stores-dropdown__image",
|
|
124
|
-
src: store.image,
|
|
125
|
-
alt: store.name
|
|
126
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
127
|
-
className: "stores-dropdown__store-info"
|
|
128
|
-
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
129
|
-
className: "stores-dropdown__title"
|
|
130
|
-
}, store.title, " ", /*#__PURE__*/React__default.createElement("br", null), " ", store.location), /*#__PURE__*/React__default.createElement("div", {
|
|
131
|
-
className: "stores-dropdown__open-days"
|
|
132
|
-
}, store.regularOpenDays), /*#__PURE__*/React__default.createElement("div", {
|
|
133
|
-
className: "stores-dropdown__open-hours"
|
|
134
|
-
}, store.regularOpenHours), /*#__PURE__*/React__default.createElement("div", {
|
|
135
|
-
className: "stores-dropdown__open-days"
|
|
136
|
-
}, store.holidayOpenDays), /*#__PURE__*/React__default.createElement("div", {
|
|
137
|
-
className: "stores-dropdown__open-hours"
|
|
138
|
-
}, store.holidayOpenHours), (store === null || store === void 0 ? void 0 : store.weekendOpenDays) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
139
|
-
className: "stores-dropdown__open-days"
|
|
140
|
-
}, store.weekendOpenDays), /*#__PURE__*/React__default.createElement("div", {
|
|
141
|
-
className: "stores-dropdown__open-hours"
|
|
142
|
-
}, store.weekendOpenHours))));
|
|
143
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
144
|
-
className: "stores-dropdown__queries"
|
|
145
|
-
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
146
|
-
className: "stores-dropdown__queries-title"
|
|
147
|
-
}, "Customer Queries: "), /*#__PURE__*/React__default.createElement("a", {
|
|
148
|
-
className: "stores-dropdown__contact-details",
|
|
149
|
-
href: "tel:".concat(contactNumber)
|
|
150
|
-
}, contactNumber)));
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
var LuxtyHeader = function LuxtyHeader(_ref) {
|
|
154
|
-
var accountIcon = _ref.accountIcon,
|
|
155
|
-
cartIcon = _ref.cartIcon,
|
|
156
|
-
interestIcon = _ref.interestIcon,
|
|
157
|
-
cartCount = _ref.cartCount,
|
|
158
|
-
logoSrc = _ref.logoSrc,
|
|
159
|
-
categoryElements = _ref.categoryElements,
|
|
160
|
-
newBrandElements = _ref.newBrandElements,
|
|
161
|
-
bagsElements = _ref.bagsElements,
|
|
162
|
-
shoesElement = _ref.shoesElement,
|
|
163
|
-
clothingElements = _ref.clothingElements,
|
|
164
|
-
accessoriesElements = _ref.accessoriesElements,
|
|
165
|
-
accessoriesCategoryElements = _ref.accessoriesCategoryElements,
|
|
166
|
-
watchesElements = _ref.watchesElements,
|
|
167
|
-
newBrandsImage = _ref.newBrandsImage,
|
|
168
|
-
bagsImage = _ref.bagsImage,
|
|
169
|
-
shoesImage = _ref.shoesImage,
|
|
170
|
-
clothingImage = _ref.clothingImage,
|
|
171
|
-
accessoriesImage = _ref.accessoriesImage,
|
|
172
|
-
watchesImage = _ref.watchesImage,
|
|
173
|
-
productsUrl = _ref.productsUrl,
|
|
174
|
-
stores = _ref.stores,
|
|
175
|
-
contactNumber = _ref.contactNumber,
|
|
176
|
-
onInterestClick = _ref.onInterestClick,
|
|
177
|
-
onCartClick = _ref.onCartClick,
|
|
178
|
-
onAccountClick = _ref.onAccountClick,
|
|
179
|
-
inputSearchIcon = _ref.inputSearchIcon,
|
|
180
|
-
onSearch = _ref.onSearch;
|
|
181
|
-
|
|
182
|
-
var _useState = React.useState(''),
|
|
183
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
184
|
-
searchValue = _useState2[0],
|
|
185
|
-
setSearchValue = _useState2[1];
|
|
186
|
-
|
|
187
|
-
var handleChange = function handleChange(event) {
|
|
188
|
-
setSearchValue(event.target.value);
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
var handleKeyDown = function handleKeyDown(event) {
|
|
192
|
-
if (event.key === 'Enter') {
|
|
193
|
-
onSearch(searchValue);
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
198
|
-
className: "navbar"
|
|
199
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
200
|
-
className: "navbar__container"
|
|
201
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
202
|
-
className: "navbar__logo-wrapper"
|
|
203
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
204
|
-
className: "navbar__logo"
|
|
205
|
-
}, /*#__PURE__*/React__default.createElement("img", {
|
|
206
|
-
src: logoSrc,
|
|
207
|
-
alt: ""
|
|
208
|
-
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
209
|
-
className: "navbar__section"
|
|
210
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
211
|
-
className: "navbar__body"
|
|
212
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
213
|
-
className: "navbar__product-search"
|
|
214
|
-
}, /*#__PURE__*/React__default.createElement("img", {
|
|
215
|
-
src: inputSearchIcon,
|
|
216
|
-
alt: "search-icon",
|
|
217
|
-
className: "navbar__input-search-icon"
|
|
218
|
-
}), /*#__PURE__*/React__default.createElement("input", {
|
|
219
|
-
className: "navbar__form-input",
|
|
220
|
-
type: "text",
|
|
221
|
-
placeholder: "Search for items and designs",
|
|
222
|
-
value: searchValue,
|
|
223
|
-
onChange: handleChange,
|
|
224
|
-
onKeyDown: handleKeyDown
|
|
225
|
-
})), /*#__PURE__*/React__default.createElement("nav", {
|
|
226
|
-
className: "navbar__nav-links"
|
|
227
|
-
}, /*#__PURE__*/React__default.createElement("li", {
|
|
228
|
-
className: "navbar__link"
|
|
229
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
230
|
-
href: "#",
|
|
231
|
-
className: "navbar__link-item"
|
|
232
|
-
}, "New"), /*#__PURE__*/React__default.createElement("div", {
|
|
233
|
-
className: "navbar__dropdown"
|
|
234
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
235
|
-
title: "Department",
|
|
236
|
-
imageSrc: newBrandsImage,
|
|
237
|
-
categoryElements: categoryElements,
|
|
238
|
-
brandElements: newBrandElements,
|
|
239
|
-
productsUrl: productsUrl
|
|
240
|
-
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
241
|
-
className: "navbar__link"
|
|
242
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
243
|
-
href: "#",
|
|
244
|
-
className: "navbar__link-item"
|
|
245
|
-
}, "Bags"), /*#__PURE__*/React__default.createElement("div", {
|
|
246
|
-
className: "navbar__dropdown"
|
|
247
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
248
|
-
title: "Department",
|
|
249
|
-
imageSrc: bagsImage,
|
|
250
|
-
categoryElements: categoryElements,
|
|
251
|
-
brandElements: bagsElements,
|
|
252
|
-
productsUrl: productsUrl
|
|
253
|
-
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
254
|
-
className: "navbar__link"
|
|
255
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
256
|
-
href: "#",
|
|
257
|
-
className: "navbar__link-item"
|
|
258
|
-
}, "Shoes"), /*#__PURE__*/React__default.createElement("div", {
|
|
259
|
-
className: "navbar__dropdown"
|
|
260
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
261
|
-
title: "Department",
|
|
262
|
-
imageSrc: shoesImage,
|
|
263
|
-
categoryElements: categoryElements,
|
|
264
|
-
brandElements: shoesElement,
|
|
265
|
-
productsUrl: productsUrl
|
|
266
|
-
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
267
|
-
className: "navbar__link"
|
|
268
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
269
|
-
href: "#",
|
|
270
|
-
className: "navbar__link-item"
|
|
271
|
-
}, "Clothing"), /*#__PURE__*/React__default.createElement("div", {
|
|
272
|
-
className: "navbar__dropdown"
|
|
273
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
274
|
-
title: "Department",
|
|
275
|
-
imageSrc: clothingImage,
|
|
276
|
-
categoryElements: categoryElements,
|
|
277
|
-
brandElements: clothingElements,
|
|
278
|
-
productsUrl: productsUrl
|
|
279
|
-
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
280
|
-
className: "navbar__link"
|
|
281
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
282
|
-
href: "#",
|
|
283
|
-
className: "navbar__link-item"
|
|
284
|
-
}, "Accessories"), /*#__PURE__*/React__default.createElement("div", {
|
|
285
|
-
className: "navbar__dropdown"
|
|
286
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
287
|
-
title: "Department",
|
|
288
|
-
imageSrc: accessoriesImage,
|
|
289
|
-
categoryElements: accessoriesCategoryElements,
|
|
290
|
-
brandElements: accessoriesElements,
|
|
291
|
-
productsUrl: productsUrl
|
|
292
|
-
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
293
|
-
className: "navbar__link"
|
|
294
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
295
|
-
href: "#",
|
|
296
|
-
className: "navbar__link-item"
|
|
297
|
-
}, "Watches"), /*#__PURE__*/React__default.createElement("div", {
|
|
298
|
-
className: "navbar__dropdown"
|
|
299
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
300
|
-
title: "Department",
|
|
301
|
-
imageSrc: watchesImage,
|
|
302
|
-
categoryElements: categoryElements,
|
|
303
|
-
brandElements: watchesElements,
|
|
304
|
-
productsUrl: productsUrl
|
|
305
|
-
}))), /*#__PURE__*/React__default.createElement("li", {
|
|
306
|
-
className: "navbar__link"
|
|
307
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
308
|
-
href: "#",
|
|
309
|
-
className: "navbar__link-item"
|
|
310
|
-
}, "Stores"), /*#__PURE__*/React__default.createElement("div", {
|
|
311
|
-
className: "navbar__dropdown"
|
|
312
|
-
}, /*#__PURE__*/React__default.createElement(StoresDropdown, {
|
|
313
|
-
stores: stores,
|
|
314
|
-
contactNumber: contactNumber
|
|
315
|
-
}))))), /*#__PURE__*/React__default.createElement("div", {
|
|
316
|
-
className: "navbar__icons-wrapper"
|
|
317
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
318
|
-
className: "navbar__icons"
|
|
319
|
-
}, /*#__PURE__*/React__default.createElement("button", {
|
|
320
|
-
type: "button",
|
|
321
|
-
className: "navbar__icon",
|
|
322
|
-
onClick: onInterestClick
|
|
323
|
-
}, /*#__PURE__*/React__default.createElement("img", {
|
|
324
|
-
src: interestIcon,
|
|
325
|
-
alt: "interest-icon"
|
|
326
|
-
})), /*#__PURE__*/React__default.createElement("button", {
|
|
327
|
-
type: "button",
|
|
328
|
-
className: "navbar__icon",
|
|
329
|
-
onClick: onAccountClick
|
|
330
|
-
}, /*#__PURE__*/React__default.createElement("img", {
|
|
331
|
-
src: accountIcon,
|
|
332
|
-
alt: "account-icon"
|
|
333
|
-
})), /*#__PURE__*/React__default.createElement("button", {
|
|
334
|
-
type: "button",
|
|
335
|
-
className: "navbar__cart-icon navbar__icon",
|
|
336
|
-
onClick: onCartClick
|
|
337
|
-
}, /*#__PURE__*/React__default.createElement("img", {
|
|
338
|
-
src: cartIcon,
|
|
339
|
-
alt: "cart-icon"
|
|
340
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
341
|
-
className: "navbar__cart-count"
|
|
342
|
-
}, cartCount))), /*#__PURE__*/React__default.createElement("nav", {
|
|
343
|
-
className: "navbar__nav-links"
|
|
344
|
-
}, /*#__PURE__*/React__default.createElement("li", {
|
|
345
|
-
className: "navbar__company-link"
|
|
346
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
347
|
-
href: "",
|
|
348
|
-
className: "navbar__link-item"
|
|
349
|
-
}, "Our Story")), /*#__PURE__*/React__default.createElement("li", {
|
|
350
|
-
className: "navbar__company-link"
|
|
351
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
352
|
-
href: "",
|
|
353
|
-
className: "navbar__link-item"
|
|
354
|
-
}, "Blog")), /*#__PURE__*/React__default.createElement("li", {
|
|
355
|
-
className: "navbar__company-link"
|
|
356
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
357
|
-
href: "",
|
|
358
|
-
className: "navbar__link-item"
|
|
359
|
-
}, "Contact Us")), /*#__PURE__*/React__default.createElement("li", {
|
|
360
|
-
className: "navbar__company-link navbar__company-block"
|
|
361
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
362
|
-
href: "",
|
|
363
|
-
className: "navbar__link-item"
|
|
364
|
-
}, "Sell to us")))))));
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
return LuxtyHeader;
|
|
368
|
-
|
|
369
|
-
})));
|
package/RarestepAddInterests.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('styled-components')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['react', 'styled-components'], factory) :
|
|
4
|
-
(global = global || self, global.RarestepAddInterests = factory(global.React, global.styled));
|
|
5
|
-
}(this, (function (React, styled) { 'use strict';
|
|
6
|
-
|
|
7
|
-
var React__default = 'default' in React ? React['default'] : React;
|
|
8
|
-
var styled__default = 'default' in styled ? styled['default'] : styled;
|
|
9
|
-
|
|
10
|
-
function _extends() {
|
|
11
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
12
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
13
|
-
var source = arguments[i];
|
|
14
|
-
|
|
15
|
-
for (var key in source) {
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17
|
-
target[key] = source[key];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return target;
|
|
23
|
-
};
|
|
24
|
-
return _extends.apply(this, arguments);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function _taggedTemplateLiteral(strings, raw) {
|
|
28
|
-
if (!raw) {
|
|
29
|
-
raw = strings.slice(0);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
33
|
-
raw: {
|
|
34
|
-
value: Object.freeze(raw)
|
|
35
|
-
}
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
var _templateObject;
|
|
40
|
-
var AddInterestWrapper = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n {\n background-color: ", ";\n }\n"])), function (props) {
|
|
41
|
-
return props.theme.rareStepColors.ntrl50;
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
var theme = {
|
|
45
|
-
breakpoints: ['40em', '52em', '64em'],
|
|
46
|
-
space: ['0px', '4px', '8px', '16px', '32px', '64px', '128px', '256px', '512px'],
|
|
47
|
-
fontSizes: ['12px', '14px', '16px', '20px', '24px', '32px', '48px', '64px', '72px'],
|
|
48
|
-
marginPaddings: ['0.5rem', '1rem', '1.5rem', '2rem', '2.5rem', '3rem', '3.5rem', '4rem', '4.5rem', '5rem', '5.5rem', '6rem'],
|
|
49
|
-
letterSpacings: ['-0.5px', '0px', '+0.5px'],
|
|
50
|
-
radii: ['0px', '2px', '4px', '8px'],
|
|
51
|
-
borderRadius: '6px',
|
|
52
|
-
colors: {
|
|
53
|
-
primary: '#000',
|
|
54
|
-
base: '#4e4949',
|
|
55
|
-
baseLt: '#817c7c',
|
|
56
|
-
borderColor: '#d8d8d8',
|
|
57
|
-
ntrlMin: '#fff',
|
|
58
|
-
ntrlMinTen: '#e6e6e6',
|
|
59
|
-
gray: '#efefef',
|
|
60
|
-
darkerGray: '#454141'
|
|
61
|
-
},
|
|
62
|
-
rareStepColors: {
|
|
63
|
-
primary: '#202b58',
|
|
64
|
-
secondary: '#ef5c2d',
|
|
65
|
-
ntrlMin: '#ffffff',
|
|
66
|
-
ntrl40: '#f4f4f4',
|
|
67
|
-
ntrl50: '#808080',
|
|
68
|
-
ntrl60: '#e8e8e8',
|
|
69
|
-
ntrl70: '#252525',
|
|
70
|
-
ntrlMax: '#000000'
|
|
71
|
-
},
|
|
72
|
-
rareStepFontWeights: {
|
|
73
|
-
normal: 400,
|
|
74
|
-
medium: 500,
|
|
75
|
-
semiBold: 600,
|
|
76
|
-
bold: 700
|
|
77
|
-
},
|
|
78
|
-
rareStepFontSize: {
|
|
79
|
-
h1: '36px',
|
|
80
|
-
h2: '30px',
|
|
81
|
-
h3: '24px',
|
|
82
|
-
h4: '20px',
|
|
83
|
-
h5: '16px',
|
|
84
|
-
h6: '14px',
|
|
85
|
-
footerTitle: '16px'
|
|
86
|
-
},
|
|
87
|
-
rareStepPageSizes: {
|
|
88
|
-
mobile: '500px',
|
|
89
|
-
tablet: '768px',
|
|
90
|
-
desktop: '992px',
|
|
91
|
-
screenl: '1280px',
|
|
92
|
-
screenxl: '1680px',
|
|
93
|
-
screenxxl: '1920px',
|
|
94
|
-
container: '1600px'
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
var themed = (function (Component) {
|
|
99
|
-
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
100
|
-
return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
101
|
-
theme: theme
|
|
102
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
103
|
-
ref: ref
|
|
104
|
-
})));
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
var RarestepAddInterest = function RarestepAddInterest() {
|
|
109
|
-
return /*#__PURE__*/React__default.createElement(AddInterestWrapper, null, /*#__PURE__*/React__default.createElement("div", {
|
|
110
|
-
className: "hello"
|
|
111
|
-
}, "Hello"));
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
var index = themed(RarestepAddInterest);
|
|
115
|
-
|
|
116
|
-
return index;
|
|
117
|
-
|
|
118
|
-
})));
|
package/RarestepInterests.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('styled-components')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['react', 'styled-components'], factory) :
|
|
4
|
-
(global = global || self, global.RarestepInterests = factory(global.React, global.styled));
|
|
5
|
-
}(this, (function (React, styled) { 'use strict';
|
|
6
|
-
|
|
7
|
-
var React__default = 'default' in React ? React['default'] : React;
|
|
8
|
-
var styled__default = 'default' in styled ? styled['default'] : styled;
|
|
9
|
-
|
|
10
|
-
function _extends() {
|
|
11
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
12
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
13
|
-
var source = arguments[i];
|
|
14
|
-
|
|
15
|
-
for (var key in source) {
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17
|
-
target[key] = source[key];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return target;
|
|
23
|
-
};
|
|
24
|
-
return _extends.apply(this, arguments);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function _taggedTemplateLiteral(strings, raw) {
|
|
28
|
-
if (!raw) {
|
|
29
|
-
raw = strings.slice(0);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
33
|
-
raw: {
|
|
34
|
-
value: Object.freeze(raw)
|
|
35
|
-
}
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
var _templateObject;
|
|
40
|
-
var AddInterestWrapper = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n {\n background-color: ", ";\n }\n"])), function (props) {
|
|
41
|
-
return props.theme.rareStepColors.ntrl50;
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
var theme = {
|
|
45
|
-
breakpoints: ['40em', '52em', '64em'],
|
|
46
|
-
space: ['0px', '4px', '8px', '16px', '32px', '64px', '128px', '256px', '512px'],
|
|
47
|
-
fontSizes: ['12px', '14px', '16px', '20px', '24px', '32px', '48px', '64px', '72px'],
|
|
48
|
-
marginPaddings: ['0.5rem', '1rem', '1.5rem', '2rem', '2.5rem', '3rem', '3.5rem', '4rem', '4.5rem', '5rem', '5.5rem', '6rem'],
|
|
49
|
-
letterSpacings: ['-0.5px', '0px', '+0.5px'],
|
|
50
|
-
radii: ['0px', '2px', '4px', '8px'],
|
|
51
|
-
borderRadius: '6px',
|
|
52
|
-
colors: {
|
|
53
|
-
primary: '#000',
|
|
54
|
-
base: '#4e4949',
|
|
55
|
-
baseLt: '#817c7c',
|
|
56
|
-
borderColor: '#d8d8d8',
|
|
57
|
-
ntrlMin: '#fff',
|
|
58
|
-
ntrlMinTen: '#e6e6e6',
|
|
59
|
-
gray: '#efefef',
|
|
60
|
-
darkerGray: '#454141'
|
|
61
|
-
},
|
|
62
|
-
rareStepColors: {
|
|
63
|
-
primary: '#202b58',
|
|
64
|
-
secondary: '#ef5c2d',
|
|
65
|
-
ntrlMin: '#ffffff',
|
|
66
|
-
ntrl40: '#f4f4f4',
|
|
67
|
-
ntrl50: '#808080',
|
|
68
|
-
ntrl60: '#e8e8e8',
|
|
69
|
-
ntrl70: '#252525',
|
|
70
|
-
ntrlMax: '#000000'
|
|
71
|
-
},
|
|
72
|
-
rareStepFontWeights: {
|
|
73
|
-
normal: 400,
|
|
74
|
-
medium: 500,
|
|
75
|
-
semiBold: 600,
|
|
76
|
-
bold: 700
|
|
77
|
-
},
|
|
78
|
-
rareStepFontSize: {
|
|
79
|
-
h1: '36px',
|
|
80
|
-
h2: '30px',
|
|
81
|
-
h3: '24px',
|
|
82
|
-
h4: '20px',
|
|
83
|
-
h5: '16px',
|
|
84
|
-
h6: '14px',
|
|
85
|
-
footerTitle: '16px'
|
|
86
|
-
},
|
|
87
|
-
rareStepPageSizes: {
|
|
88
|
-
mobile: '500px',
|
|
89
|
-
tablet: '768px',
|
|
90
|
-
desktop: '992px',
|
|
91
|
-
screenl: '1280px',
|
|
92
|
-
screenxl: '1680px',
|
|
93
|
-
screenxxl: '1920px',
|
|
94
|
-
container: '1600px'
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
var themed = (function (Component) {
|
|
99
|
-
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
100
|
-
return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
101
|
-
theme: theme
|
|
102
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
103
|
-
ref: ref
|
|
104
|
-
})));
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
var RarestepAddInterest = function RarestepAddInterest() {
|
|
109
|
-
return /*#__PURE__*/React__default.createElement(AddInterestWrapper, null, /*#__PURE__*/React__default.createElement("div", {
|
|
110
|
-
className: "hello"
|
|
111
|
-
}, "Hello"));
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
var index = themed(RarestepAddInterest);
|
|
115
|
-
|
|
116
|
-
return index;
|
|
117
|
-
|
|
118
|
-
})));
|
package/build/assets/.DS_Store
DELETED
|
Binary file
|