@bonlineza/luxity-lib 2.10.0 → 2.12.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/Accordion.js +34 -0
- package/AddInterest.js +9722 -1798
- package/BrandSelector.js +11260 -387
- package/Checkbox.js +34 -0
- package/CheckboxButton.js +34 -0
- package/GenderSelector.js +34 -0
- package/GraphQLDropdownSelector.js +11869 -0
- package/GraphQLMultiSelector.js +34 -0
- package/IconHeader.js +34 -0
- package/InterestCatSelector.js +34 -0
- package/InterestItem.js +51 -1
- package/Interests.js +2679 -1947
- package/InvertedTextButton.js +34 -0
- package/LuxityGraphQLDropdownSelector.js +11869 -0
- package/LuxityGraphQLMultiselector.js +34 -0
- package/MaterialSelector.js +11869 -0
- package/ModelSelector.js +11869 -0
- package/NotificationDropDown.js +34 -0
- package/OutlinePrimaryButton.js +34 -0
- package/PriceRangeSelector.js +34 -0
- package/PrimaryButton.js +34 -0
- package/README.md +2 -0
- package/RadioButtons.js +34 -0
- package/RangeSlider.js +34 -0
- package/RareStepFooter.js +232 -0
- package/RareStepHeader.js +436 -0
- package/RareStepLoginModal.js +15 -0
- package/SecondaryButton.js +34 -0
- package/ShoeSizeSelector.js +34 -0
- package/StyleSelector.js +34 -0
- package/TextButton.js +34 -0
- package/Tooltip.js +34 -0
- package/build/bundle.js +893 -76
- package/package.json +1 -1
- package/svg/RareStepLogo.js +8 -0
|
@@ -0,0 +1,436 @@
|
|
|
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.RareStepHeader = 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
|
+
function _slicedToArray(arr, i) {
|
|
40
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function _arrayWithHoles(arr) {
|
|
44
|
+
if (Array.isArray(arr)) return arr;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function _iterableToArrayLimit(arr, i) {
|
|
48
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
49
|
+
|
|
50
|
+
if (_i == null) return;
|
|
51
|
+
var _arr = [];
|
|
52
|
+
var _n = true;
|
|
53
|
+
var _d = false;
|
|
54
|
+
|
|
55
|
+
var _s, _e;
|
|
56
|
+
|
|
57
|
+
try {
|
|
58
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
59
|
+
_arr.push(_s.value);
|
|
60
|
+
|
|
61
|
+
if (i && _arr.length === i) break;
|
|
62
|
+
}
|
|
63
|
+
} catch (err) {
|
|
64
|
+
_d = true;
|
|
65
|
+
_e = err;
|
|
66
|
+
} finally {
|
|
67
|
+
try {
|
|
68
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
69
|
+
} finally {
|
|
70
|
+
if (_d) throw _e;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return _arr;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
78
|
+
if (!o) return;
|
|
79
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
80
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
81
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
82
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
83
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function _arrayLikeToArray(arr, len) {
|
|
87
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
88
|
+
|
|
89
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
90
|
+
|
|
91
|
+
return arr2;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function _nonIterableRest() {
|
|
95
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
var theme = {
|
|
99
|
+
breakpoints: ['40em', '52em', '64em'],
|
|
100
|
+
space: ['0px', '4px', '8px', '16px', '32px', '64px', '128px', '256px', '512px'],
|
|
101
|
+
fontSizes: ['12px', '14px', '16px', '20px', '24px', '32px', '48px', '64px', '72px'],
|
|
102
|
+
marginPaddings: ['0.5rem', '1rem', '1.5rem', '2rem', '2.5rem', '3rem', '3.5rem', '4rem', '4.5rem', '5rem', '5.5rem', '6rem'],
|
|
103
|
+
letterSpacings: ['-0.5px', '0px', '+0.5px'],
|
|
104
|
+
radii: ['0px', '2px', '4px', '8px'],
|
|
105
|
+
borderRadius: '6px',
|
|
106
|
+
colors: {
|
|
107
|
+
primary: '#000',
|
|
108
|
+
base: '#4e4949',
|
|
109
|
+
baseLt: '#817c7c',
|
|
110
|
+
borderColor: '#d8d8d8',
|
|
111
|
+
ntrlMin: '#fff',
|
|
112
|
+
ntrlMinTen: '#e6e6e6',
|
|
113
|
+
gray: '#efefef',
|
|
114
|
+
darkerGray: '#454141'
|
|
115
|
+
},
|
|
116
|
+
rareStepColors: {
|
|
117
|
+
primary: '#202b58',
|
|
118
|
+
secondary: '#ef5c2d',
|
|
119
|
+
ntrlMin: '#ffffff',
|
|
120
|
+
ntrl40: '#f4f4f4',
|
|
121
|
+
ntrl50: '#808080',
|
|
122
|
+
ntrl60: '#e8e8e8',
|
|
123
|
+
ntrl70: '#252525',
|
|
124
|
+
ntrlMax: '#000000'
|
|
125
|
+
},
|
|
126
|
+
rareStepFontWeights: {
|
|
127
|
+
normal: 400,
|
|
128
|
+
medium: 500,
|
|
129
|
+
semiBold: 600,
|
|
130
|
+
bold: 700
|
|
131
|
+
},
|
|
132
|
+
rareStepFontSize: {
|
|
133
|
+
h1: '36px',
|
|
134
|
+
h2: '30px',
|
|
135
|
+
h3: '24px',
|
|
136
|
+
h4: '20px',
|
|
137
|
+
h5: '16px',
|
|
138
|
+
h6: '14px',
|
|
139
|
+
footerTitle: '18px'
|
|
140
|
+
},
|
|
141
|
+
rareStepPageSizes: {
|
|
142
|
+
mobile: '500px',
|
|
143
|
+
tablet: '768px',
|
|
144
|
+
desktop: '992px',
|
|
145
|
+
screenl: '1280px',
|
|
146
|
+
screenxl: '1680px',
|
|
147
|
+
screenxxl: '1920px',
|
|
148
|
+
container: '1600px'
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
var themed = (function (Component) {
|
|
153
|
+
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
154
|
+
return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
155
|
+
theme: theme
|
|
156
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
157
|
+
ref: ref
|
|
158
|
+
})));
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28;
|
|
163
|
+
var HeaderWrapper = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n {\n display: inline-block;\n background-color: ", ";\n position: relative;\n width: 100%;\n }\n"])), function (props) {
|
|
164
|
+
return props.theme.rareStepColors.ntrlMin;
|
|
165
|
+
});
|
|
166
|
+
var PageContainer = styled__default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n {\n max-width: ", ";\n margin: 0 auto;\n width: 100%;\n padding: 0 5%;\n display: flex;\n justify-content: space-between;\n }\n"])), function (props) {
|
|
167
|
+
return props.theme.rareStepPageSizes.container;
|
|
168
|
+
});
|
|
169
|
+
var HeaderContainer = styled__default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n {\n display: flex;\n justify-content: space-between;\n padding: ", " 5%;\n max-width: ", ";\n margin: 0 auto;\n width: 100%;\n }\n"])), function (props) {
|
|
170
|
+
return props.theme.marginPaddings[3];
|
|
171
|
+
}, function (props) {
|
|
172
|
+
return props.theme.rareStepPageSizes.container;
|
|
173
|
+
});
|
|
174
|
+
var LogoFigure = styled__default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n"])));
|
|
175
|
+
var LogoImage = styled__default.img(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n {\n width: 200px;\n height: 70px;\n }\n"])));
|
|
176
|
+
var CurrencyFlagIcon = styled__default.img(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n {\n width: 25px;\n height: 15px;\n margin-top: 9px;\n margin-right: 10px;\n }\n"])));
|
|
177
|
+
var SellToUsLink = styled__default.a(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n {\n color: ", ";\n font-weight: ", ";\n font-size: ", ";\n padding-top: 10px;\n text-transform: uppercase;\n letter-spacing: 1px;\n cursor: pointer;\n\n &:hover,\n &:active {\n color: ", ";\n text-decoration: none;\n }\n }\n"])), function (props) {
|
|
178
|
+
return props.theme.rareStepColors.secondary;
|
|
179
|
+
}, function (props) {
|
|
180
|
+
return props.theme.rareStepFontWeights.bold;
|
|
181
|
+
}, function (props) {
|
|
182
|
+
return props.theme.rareStepFontSize.h5;
|
|
183
|
+
}, function (props) {
|
|
184
|
+
return props.theme.rareStepColors.secondary;
|
|
185
|
+
});
|
|
186
|
+
var HeaderIconsContainer = styled__default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n {\n display: flex;\n align-items: center;\n }\n"])));
|
|
187
|
+
var HeaderIcon = styled__default.img(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n {\n width: 30px;\n height: 30px;\n margin-left: ", ";\n cursor: pointer;\n }\n"])), function (props) {
|
|
188
|
+
return props.theme.marginPaddings[3];
|
|
189
|
+
});
|
|
190
|
+
var NavigationContainer = styled__default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n {\n display: flex;\n justify-content: space-between;\n background-color: ", ";\n padding-top: ", ";\n }\n"])), function (props) {
|
|
191
|
+
return props.theme.rareStepColors.primary;
|
|
192
|
+
}, function (props) {
|
|
193
|
+
return props.theme.marginPaddings[1];
|
|
194
|
+
});
|
|
195
|
+
var NavigationLink = styled__default.a(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n {\n display: flex;\n flex-wrap: no-wrap;\n align-items: center;\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n padding-top: 2px;\n padding-bottom: ", ";\n cursor: pointer;\n border-bottom: 2px solid ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &:hover,\n &:active {\n color: ", ";\n text-decoration: none;\n border-bottom: 2px solid ", ";\n }\n }\n"])), function (props) {
|
|
196
|
+
return props.theme.rareStepColors.ntrlMin;
|
|
197
|
+
}, function (props) {
|
|
198
|
+
return props.theme.rareStepFontSize.h5;
|
|
199
|
+
}, function (props) {
|
|
200
|
+
return props.theme.marginPaddings[5];
|
|
201
|
+
}, function (props) {
|
|
202
|
+
return props.theme.marginPaddings[1];
|
|
203
|
+
}, function (props) {
|
|
204
|
+
return props.theme.rareStepColors.primary;
|
|
205
|
+
}, function (props) {
|
|
206
|
+
return props.theme.rareStepColors.ntrlMin;
|
|
207
|
+
}, function (props) {
|
|
208
|
+
return props.theme.rareStepColors.secondary;
|
|
209
|
+
});
|
|
210
|
+
var NavigationLinks = styled__default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n {\n display: flex;\n }\n"])));
|
|
211
|
+
var Dropdown = styled__default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n {\n display: flex;\n background-color: ", ";\n padding: ", " 0;\n border-top: 1px solid ", ";\n font-size: ", ";\n position: absolute;\n width: 100%;\n }\n"])), function (props) {
|
|
212
|
+
return props.theme.rareStepColors.primary;
|
|
213
|
+
}, function (props) {
|
|
214
|
+
return props.theme.marginPaddings[4];
|
|
215
|
+
}, function (props) {
|
|
216
|
+
return props.theme.rareStepColors.ntrl40;
|
|
217
|
+
}, function (props) {
|
|
218
|
+
return props.theme.rareStepFontSize.h5;
|
|
219
|
+
});
|
|
220
|
+
var DropdownBrands = styled__default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n {\n display: flex;\n flex-direction: column;\n width: 20%;\n }\n"])));
|
|
221
|
+
var DropdownModels = styled__default.ul(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n {\n padding: 0 ", ";\n border-left: 1px solid ", ";\n border-right: 1px solid ", ";\n width: 50%;\n column-count: 3;\n }\n"])), function (props) {
|
|
222
|
+
return props.theme.marginPaddings[3];
|
|
223
|
+
}, function (props) {
|
|
224
|
+
return props.theme.rareStepColors.ntrl40;
|
|
225
|
+
}, function (props) {
|
|
226
|
+
return props.theme.rareStepColors.ntrl40;
|
|
227
|
+
});
|
|
228
|
+
var DropdownModelsList = styled__default.li(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n {\n list-style: none;\n }\n"])));
|
|
229
|
+
var DropdownFigure = styled__default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n {\n display: flex;\n width: 30%;\n padding-left: ", ";\n }\n"])), function (props) {
|
|
230
|
+
return props.theme.marginPaddings[5];
|
|
231
|
+
});
|
|
232
|
+
var DropdownImage = styled__default.img(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n {\n width: 90%;\n height: 100%;\n object-fit: cover;\n margin-left: auto;\n }\n"])));
|
|
233
|
+
var DropdownLink = styled__default.a(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n {\n color: ", ";\n padding-bottom: ", ";\n cursor: pointer;\n\n &:hover,\n &:active {\n color: ", ";\n text-decoration: underline;\n }\n }\n"])), function (props) {
|
|
234
|
+
return props.theme.rareStepColors.ntrlMin;
|
|
235
|
+
}, function (props) {
|
|
236
|
+
return props.theme.marginPaddings[0];
|
|
237
|
+
}, function (props) {
|
|
238
|
+
return props.theme.rareStepColors.ntrlMin;
|
|
239
|
+
});
|
|
240
|
+
var DropdownBrandLinkContainer = styled__default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n {\n display: flex;\n\n &:hover {\n cursor: pointer;\n\n hr {\n display: block;\n }\n\n a {\n font-weight: ", ";\n }\n }\n }\n"])), function (props) {
|
|
241
|
+
return props.theme.rareStepFontWeights.bold;
|
|
242
|
+
});
|
|
243
|
+
var DropdownBrandLinkHR = styled__default.hr(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n {\n display: none;\n width: 20px;\n margin: 10px 10px 0 0;\n color: ", ";\n height: 1px;\n border: 1px solid ", ";\n }\n"])), function (props) {
|
|
244
|
+
return props.theme.rareStepColors.secondary;
|
|
245
|
+
}, function (props) {
|
|
246
|
+
return props.theme.rareStepColors.secondary;
|
|
247
|
+
});
|
|
248
|
+
var DropdownBrandLink = styled__default.a(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n {\n color: ", ";\n padding-bottom: 0.5rem;\n\n &:hover,\n &:active {\n color: ", ";\n text-decoration: none;\n font-weight: ", ";\n }\n }\n"])), function (props) {
|
|
249
|
+
return props.theme.rareStepColors.ntrlMin;
|
|
250
|
+
}, function (props) {
|
|
251
|
+
return props.theme.rareStepColors.ntrlMin;
|
|
252
|
+
}, function (props) {
|
|
253
|
+
return props.theme.rareStepFontWeights.bold;
|
|
254
|
+
});
|
|
255
|
+
var DropdownNavigatorIcon = styled__default.img(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n {\n width: 15px;\n height: 12px;\n margin-left: ", ";\n }\n"])), function (props) {
|
|
256
|
+
return props.theme.marginPaddings[0];
|
|
257
|
+
});
|
|
258
|
+
var SellToUsHR = styled__default.hr(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n {\n width: 80px;\n margin-top: 20px;\n color: ", ";\n border: 1px solid ", ";\n margin-right: 10px;\n }\n"])), function (props) {
|
|
259
|
+
return props.theme.rareStepColors.secondary;
|
|
260
|
+
}, function (props) {
|
|
261
|
+
return props.theme.rareStepColors.secondary;
|
|
262
|
+
});
|
|
263
|
+
var SearchContainer = styled__default.div(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n {\n display: flex;\n padding: ", "\n ", ";\n background-color: ", ";\n align-items: center;\n border-top: 1px solid ", ";\n }\n"])), function (props) {
|
|
264
|
+
return props.theme.marginPaddings[1];
|
|
265
|
+
}, function (props) {
|
|
266
|
+
return props.theme.marginPaddings[3];
|
|
267
|
+
}, function (props) {
|
|
268
|
+
return props.theme.rareStepColors.primary;
|
|
269
|
+
}, function (props) {
|
|
270
|
+
return props.theme.rareStepColors.ntrl40;
|
|
271
|
+
});
|
|
272
|
+
var SearchInput = styled__default.input(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n {\n width: 50%;\n font-size: ", ";\n padding-bottom: ", ";\n background-color: ", ";\n color: ", ";\n border: none;\n margin-left: ", ";\n\n &:active,\n &:focus,\n &:focus-visible {\n outline: none;\n border: none;\n }\n\n &::placeholder {\n color: ", ";\n }\n }\n"])), function (props) {
|
|
273
|
+
return props.theme.rareStepFontSize.footerTitle;
|
|
274
|
+
}, function (props) {
|
|
275
|
+
return props.theme.marginPaddings[0];
|
|
276
|
+
}, function (props) {
|
|
277
|
+
return props.theme.rareStepColors.primary;
|
|
278
|
+
}, function (props) {
|
|
279
|
+
return props.theme.rareStepColors.ntrl40;
|
|
280
|
+
}, function (props) {
|
|
281
|
+
return props.theme.marginPaddings[3];
|
|
282
|
+
}, function (props) {
|
|
283
|
+
return props.theme.rareStepColors.ntrl40;
|
|
284
|
+
});
|
|
285
|
+
var SearchIcon = styled__default.img(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n {\n width: 20px;\n height: 20px;\n cursor: pointer;\n margin-bottom: 7px;\n }\n"])));
|
|
286
|
+
var CloseIcon = styled__default.img(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n {\n width: 20px;\n height: 20px;\n margin-left: auto;\n cursor: pointer;\n }\n"])));
|
|
287
|
+
|
|
288
|
+
var DropdownSearch = function DropdownSearch(_ref) {
|
|
289
|
+
var close_icon_url = _ref.close_icon_url,
|
|
290
|
+
navigation_search_icon_url = _ref.navigation_search_icon_url,
|
|
291
|
+
wordpress_site_url = _ref.wordpress_site_url,
|
|
292
|
+
toggleSearch = _ref.toggleSearch;
|
|
293
|
+
var searchInputRef = React.useRef(null);
|
|
294
|
+
|
|
295
|
+
var handleOnSearch = function handleOnSearch() {
|
|
296
|
+
window.location.replace("".concat(wordpress_site_url, "?post_type=product&s=").concat(searchInputRef.current.value));
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
300
|
+
if (e.key === 'Enter') {
|
|
301
|
+
handleOnSearch();
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
return /*#__PURE__*/React__default.createElement(SearchContainer, null, /*#__PURE__*/React__default.createElement(SearchIcon, {
|
|
306
|
+
src: navigation_search_icon_url,
|
|
307
|
+
onClick: handleOnSearch
|
|
308
|
+
}), /*#__PURE__*/React__default.createElement(SearchInput, {
|
|
309
|
+
ref: searchInputRef,
|
|
310
|
+
placeholder: "Search...",
|
|
311
|
+
onKeyDown: handleKeyDown
|
|
312
|
+
}), /*#__PURE__*/React__default.createElement(CloseIcon, {
|
|
313
|
+
src: close_icon_url,
|
|
314
|
+
onClick: toggleSearch
|
|
315
|
+
}));
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
var HeaderDropdown = function HeaderDropdown(_ref) {
|
|
319
|
+
var _header_dropdown_prod;
|
|
320
|
+
|
|
321
|
+
var header_dropdown_product_object = _ref.header_dropdown_product_object,
|
|
322
|
+
handleShowDropdown = _ref.handleShowDropdown,
|
|
323
|
+
handleHideDropdown = _ref.handleHideDropdown;
|
|
324
|
+
|
|
325
|
+
var _useState = React.useState([]),
|
|
326
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
327
|
+
currentModels = _useState2[0],
|
|
328
|
+
setCurrentModels = _useState2[1];
|
|
329
|
+
|
|
330
|
+
var _useState3 = React.useState(null),
|
|
331
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
332
|
+
currentBrand = _useState4[0],
|
|
333
|
+
setCurrentBrand = _useState4[1];
|
|
334
|
+
|
|
335
|
+
var handleBrandHover = function handleBrandHover(brand) {
|
|
336
|
+
setCurrentBrand(brand);
|
|
337
|
+
setCurrentModels(brand.models);
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
341
|
+
onMouseOver: handleShowDropdown,
|
|
342
|
+
onMouseOut: handleHideDropdown
|
|
343
|
+
}, /*#__PURE__*/React__default.createElement(PageContainer, null, /*#__PURE__*/React__default.createElement(DropdownBrands, null, header_dropdown_product_object === null || header_dropdown_product_object === void 0 ? void 0 : (_header_dropdown_prod = header_dropdown_product_object.brands) === null || _header_dropdown_prod === void 0 ? void 0 : _header_dropdown_prod.map(function (brand, index) {
|
|
344
|
+
return /*#__PURE__*/React__default.createElement(DropdownBrandLinkContainer, {
|
|
345
|
+
key: index,
|
|
346
|
+
onMouseOver: function onMouseOver() {
|
|
347
|
+
return handleBrandHover(brand);
|
|
348
|
+
}
|
|
349
|
+
}, /*#__PURE__*/React__default.createElement(DropdownBrandLinkHR, null), /*#__PURE__*/React__default.createElement(DropdownBrandLink, null, brand.brand_name));
|
|
350
|
+
})), /*#__PURE__*/React__default.createElement(DropdownModels, null, currentModels === null || currentModels === void 0 ? void 0 : currentModels.map(function (model, index) {
|
|
351
|
+
return /*#__PURE__*/React__default.createElement(DropdownModelsList, null, /*#__PURE__*/React__default.createElement(DropdownLink, {
|
|
352
|
+
key: index
|
|
353
|
+
}, model.model_name));
|
|
354
|
+
})), /*#__PURE__*/React__default.createElement(DropdownFigure, null, (currentBrand === null || currentBrand === void 0 ? void 0 : currentBrand.brand_image_url) && /*#__PURE__*/React__default.createElement(DropdownImage, {
|
|
355
|
+
src: currentBrand === null || currentBrand === void 0 ? void 0 : currentBrand.brand_image_url
|
|
356
|
+
}))));
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
var RareStepHeader = function RareStepHeader(_ref) {
|
|
360
|
+
var header_logo_img_url = _ref.header_logo_img_url,
|
|
361
|
+
search_icon_url = _ref.search_icon_url,
|
|
362
|
+
cart_icon_url = _ref.cart_icon_url,
|
|
363
|
+
user_icon_url = _ref.user_icon_url,
|
|
364
|
+
interest_icon_url = _ref.interest_icon_url,
|
|
365
|
+
dropdown_closed_icon_url = _ref.dropdown_closed_icon_url,
|
|
366
|
+
dropdown_open_icon_url = _ref.dropdown_open_icon_url,
|
|
367
|
+
currency_flag_icon_url = _ref.currency_flag_icon_url,
|
|
368
|
+
close_icon_url = _ref.close_icon_url,
|
|
369
|
+
navigation_search_icon_url = _ref.navigation_search_icon_url,
|
|
370
|
+
wordpress_site_url = _ref.wordpress_site_url,
|
|
371
|
+
header_dropdown_product_object = _ref.header_dropdown_product_object;
|
|
372
|
+
|
|
373
|
+
var _useState = React.useState(false),
|
|
374
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
375
|
+
showDropdown = _useState2[0],
|
|
376
|
+
setShowDropdown = _useState2[1];
|
|
377
|
+
|
|
378
|
+
var timeoutIdRef = React.useRef(null);
|
|
379
|
+
|
|
380
|
+
var _useState3 = React.useState(false),
|
|
381
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
382
|
+
showSearch = _useState4[0],
|
|
383
|
+
setShowSearch = _useState4[1];
|
|
384
|
+
|
|
385
|
+
var toggleSearch = function toggleSearch() {
|
|
386
|
+
setShowSearch(!showSearch);
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
var handleShowDropdown = function handleShowDropdown() {
|
|
390
|
+
clearTimeout(timeoutIdRef.current);
|
|
391
|
+
setShowDropdown(true);
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
var handleHideDropdown = function handleHideDropdown() {
|
|
395
|
+
timeoutIdRef.current = setTimeout(function () {
|
|
396
|
+
setShowDropdown(false);
|
|
397
|
+
}, 500);
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
return /*#__PURE__*/React__default.createElement(HeaderWrapper, null, /*#__PURE__*/React__default.createElement(HeaderContainer, null, /*#__PURE__*/React__default.createElement(LogoFigure, null, /*#__PURE__*/React__default.createElement(LogoImage, {
|
|
401
|
+
src: header_logo_img_url
|
|
402
|
+
})), /*#__PURE__*/React__default.createElement(HeaderIconsContainer, null, /*#__PURE__*/React__default.createElement(SellToUsHR, null), /*#__PURE__*/React__default.createElement(SellToUsLink, null, "Sell to us"), /*#__PURE__*/React__default.createElement(HeaderIcon, {
|
|
403
|
+
src: search_icon_url,
|
|
404
|
+
onClick: toggleSearch
|
|
405
|
+
}), /*#__PURE__*/React__default.createElement(HeaderIcon, {
|
|
406
|
+
src: interest_icon_url
|
|
407
|
+
}), /*#__PURE__*/React__default.createElement(HeaderIcon, {
|
|
408
|
+
src: user_icon_url
|
|
409
|
+
}), /*#__PURE__*/React__default.createElement(HeaderIcon, {
|
|
410
|
+
src: cart_icon_url
|
|
411
|
+
}))), /*#__PURE__*/React__default.createElement(NavigationContainer, null, /*#__PURE__*/React__default.createElement(PageContainer, null, /*#__PURE__*/React__default.createElement(NavigationLinks, null, /*#__PURE__*/React__default.createElement(NavigationLink, null, "New Arrivals"), /*#__PURE__*/React__default.createElement(NavigationLink, {
|
|
412
|
+
onMouseOver: handleShowDropdown,
|
|
413
|
+
onMouseOut: handleHideDropdown
|
|
414
|
+
}, header_dropdown_product_object.product_type, showDropdown ? /*#__PURE__*/React__default.createElement(DropdownNavigatorIcon, {
|
|
415
|
+
src: dropdown_closed_icon_url
|
|
416
|
+
}) : /*#__PURE__*/React__default.createElement(DropdownNavigatorIcon, {
|
|
417
|
+
src: dropdown_open_icon_url
|
|
418
|
+
})), /*#__PURE__*/React__default.createElement(NavigationLink, null, "Create Your Interests"), /*#__PURE__*/React__default.createElement(NavigationLink, null, "Rare Step Finder")), /*#__PURE__*/React__default.createElement(NavigationLinks, null, /*#__PURE__*/React__default.createElement(NavigationLink, null, "Our Story"), /*#__PURE__*/React__default.createElement(NavigationLink, null, "Blog"), /*#__PURE__*/React__default.createElement(NavigationLink, null, "Contact Us"), /*#__PURE__*/React__default.createElement(CurrencyFlagIcon, {
|
|
419
|
+
src: currency_flag_icon_url
|
|
420
|
+
}), /*#__PURE__*/React__default.createElement(NavigationLink, null, "South African (ZAR, R)")))), showSearch && /*#__PURE__*/React__default.createElement(DropdownSearch, {
|
|
421
|
+
close_icon_url: close_icon_url,
|
|
422
|
+
navigation_search_icon_url: navigation_search_icon_url,
|
|
423
|
+
wordpress_site_url: wordpress_site_url,
|
|
424
|
+
toggleSearch: toggleSearch
|
|
425
|
+
}), showDropdown && /*#__PURE__*/React__default.createElement(HeaderDropdown, {
|
|
426
|
+
header_dropdown_product_object: header_dropdown_product_object,
|
|
427
|
+
handleShowDropdown: handleShowDropdown,
|
|
428
|
+
handleHideDropdown: handleHideDropdown
|
|
429
|
+
}));
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
var index = themed(RareStepHeader);
|
|
433
|
+
|
|
434
|
+
return index;
|
|
435
|
+
|
|
436
|
+
})));
|
|
@@ -0,0 +1,15 @@
|
|
|
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.RareStepLoginModal = factory(global.React));
|
|
5
|
+
}(this, (function (React) { 'use strict';
|
|
6
|
+
|
|
7
|
+
React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
|
|
8
|
+
|
|
9
|
+
function RareStepLoginModal() {
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", null, "RareStepLoginModal");
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return RareStepLoginModal;
|
|
14
|
+
|
|
15
|
+
})));
|
package/SecondaryButton.js
CHANGED
|
@@ -93,6 +93,40 @@
|
|
|
93
93
|
ntrlMinTen: '#e6e6e6',
|
|
94
94
|
gray: '#efefef',
|
|
95
95
|
darkerGray: '#454141'
|
|
96
|
+
},
|
|
97
|
+
rareStepColors: {
|
|
98
|
+
primary: '#202b58',
|
|
99
|
+
secondary: '#ef5c2d',
|
|
100
|
+
ntrlMin: '#ffffff',
|
|
101
|
+
ntrl40: '#f4f4f4',
|
|
102
|
+
ntrl50: '#808080',
|
|
103
|
+
ntrl60: '#e8e8e8',
|
|
104
|
+
ntrl70: '#252525',
|
|
105
|
+
ntrlMax: '#000000'
|
|
106
|
+
},
|
|
107
|
+
rareStepFontWeights: {
|
|
108
|
+
normal: 400,
|
|
109
|
+
medium: 500,
|
|
110
|
+
semiBold: 600,
|
|
111
|
+
bold: 700
|
|
112
|
+
},
|
|
113
|
+
rareStepFontSize: {
|
|
114
|
+
h1: '36px',
|
|
115
|
+
h2: '30px',
|
|
116
|
+
h3: '24px',
|
|
117
|
+
h4: '20px',
|
|
118
|
+
h5: '16px',
|
|
119
|
+
h6: '14px',
|
|
120
|
+
footerTitle: '18px'
|
|
121
|
+
},
|
|
122
|
+
rareStepPageSizes: {
|
|
123
|
+
mobile: '500px',
|
|
124
|
+
tablet: '768px',
|
|
125
|
+
desktop: '992px',
|
|
126
|
+
screenl: '1280px',
|
|
127
|
+
screenxl: '1680px',
|
|
128
|
+
screenxxl: '1920px',
|
|
129
|
+
container: '1600px'
|
|
96
130
|
}
|
|
97
131
|
};
|
|
98
132
|
|
package/ShoeSizeSelector.js
CHANGED
|
@@ -148,6 +148,40 @@
|
|
|
148
148
|
ntrlMinTen: '#e6e6e6',
|
|
149
149
|
gray: '#efefef',
|
|
150
150
|
darkerGray: '#454141'
|
|
151
|
+
},
|
|
152
|
+
rareStepColors: {
|
|
153
|
+
primary: '#202b58',
|
|
154
|
+
secondary: '#ef5c2d',
|
|
155
|
+
ntrlMin: '#ffffff',
|
|
156
|
+
ntrl40: '#f4f4f4',
|
|
157
|
+
ntrl50: '#808080',
|
|
158
|
+
ntrl60: '#e8e8e8',
|
|
159
|
+
ntrl70: '#252525',
|
|
160
|
+
ntrlMax: '#000000'
|
|
161
|
+
},
|
|
162
|
+
rareStepFontWeights: {
|
|
163
|
+
normal: 400,
|
|
164
|
+
medium: 500,
|
|
165
|
+
semiBold: 600,
|
|
166
|
+
bold: 700
|
|
167
|
+
},
|
|
168
|
+
rareStepFontSize: {
|
|
169
|
+
h1: '36px',
|
|
170
|
+
h2: '30px',
|
|
171
|
+
h3: '24px',
|
|
172
|
+
h4: '20px',
|
|
173
|
+
h5: '16px',
|
|
174
|
+
h6: '14px',
|
|
175
|
+
footerTitle: '18px'
|
|
176
|
+
},
|
|
177
|
+
rareStepPageSizes: {
|
|
178
|
+
mobile: '500px',
|
|
179
|
+
tablet: '768px',
|
|
180
|
+
desktop: '992px',
|
|
181
|
+
screenl: '1280px',
|
|
182
|
+
screenxl: '1680px',
|
|
183
|
+
screenxxl: '1920px',
|
|
184
|
+
container: '1600px'
|
|
151
185
|
}
|
|
152
186
|
};
|
|
153
187
|
|
package/StyleSelector.js
CHANGED
|
@@ -412,6 +412,40 @@
|
|
|
412
412
|
ntrlMinTen: '#e6e6e6',
|
|
413
413
|
gray: '#efefef',
|
|
414
414
|
darkerGray: '#454141'
|
|
415
|
+
},
|
|
416
|
+
rareStepColors: {
|
|
417
|
+
primary: '#202b58',
|
|
418
|
+
secondary: '#ef5c2d',
|
|
419
|
+
ntrlMin: '#ffffff',
|
|
420
|
+
ntrl40: '#f4f4f4',
|
|
421
|
+
ntrl50: '#808080',
|
|
422
|
+
ntrl60: '#e8e8e8',
|
|
423
|
+
ntrl70: '#252525',
|
|
424
|
+
ntrlMax: '#000000'
|
|
425
|
+
},
|
|
426
|
+
rareStepFontWeights: {
|
|
427
|
+
normal: 400,
|
|
428
|
+
medium: 500,
|
|
429
|
+
semiBold: 600,
|
|
430
|
+
bold: 700
|
|
431
|
+
},
|
|
432
|
+
rareStepFontSize: {
|
|
433
|
+
h1: '36px',
|
|
434
|
+
h2: '30px',
|
|
435
|
+
h3: '24px',
|
|
436
|
+
h4: '20px',
|
|
437
|
+
h5: '16px',
|
|
438
|
+
h6: '14px',
|
|
439
|
+
footerTitle: '18px'
|
|
440
|
+
},
|
|
441
|
+
rareStepPageSizes: {
|
|
442
|
+
mobile: '500px',
|
|
443
|
+
tablet: '768px',
|
|
444
|
+
desktop: '992px',
|
|
445
|
+
screenl: '1280px',
|
|
446
|
+
screenxl: '1680px',
|
|
447
|
+
screenxxl: '1920px',
|
|
448
|
+
container: '1600px'
|
|
415
449
|
}
|
|
416
450
|
};
|
|
417
451
|
|
package/TextButton.js
CHANGED
|
@@ -93,6 +93,40 @@
|
|
|
93
93
|
ntrlMinTen: '#e6e6e6',
|
|
94
94
|
gray: '#efefef',
|
|
95
95
|
darkerGray: '#454141'
|
|
96
|
+
},
|
|
97
|
+
rareStepColors: {
|
|
98
|
+
primary: '#202b58',
|
|
99
|
+
secondary: '#ef5c2d',
|
|
100
|
+
ntrlMin: '#ffffff',
|
|
101
|
+
ntrl40: '#f4f4f4',
|
|
102
|
+
ntrl50: '#808080',
|
|
103
|
+
ntrl60: '#e8e8e8',
|
|
104
|
+
ntrl70: '#252525',
|
|
105
|
+
ntrlMax: '#000000'
|
|
106
|
+
},
|
|
107
|
+
rareStepFontWeights: {
|
|
108
|
+
normal: 400,
|
|
109
|
+
medium: 500,
|
|
110
|
+
semiBold: 600,
|
|
111
|
+
bold: 700
|
|
112
|
+
},
|
|
113
|
+
rareStepFontSize: {
|
|
114
|
+
h1: '36px',
|
|
115
|
+
h2: '30px',
|
|
116
|
+
h3: '24px',
|
|
117
|
+
h4: '20px',
|
|
118
|
+
h5: '16px',
|
|
119
|
+
h6: '14px',
|
|
120
|
+
footerTitle: '18px'
|
|
121
|
+
},
|
|
122
|
+
rareStepPageSizes: {
|
|
123
|
+
mobile: '500px',
|
|
124
|
+
tablet: '768px',
|
|
125
|
+
desktop: '992px',
|
|
126
|
+
screenl: '1280px',
|
|
127
|
+
screenxl: '1680px',
|
|
128
|
+
screenxxl: '1920px',
|
|
129
|
+
container: '1600px'
|
|
96
130
|
}
|
|
97
131
|
};
|
|
98
132
|
|
package/Tooltip.js
CHANGED
|
@@ -116,6 +116,40 @@
|
|
|
116
116
|
ntrlMinTen: '#e6e6e6',
|
|
117
117
|
gray: '#efefef',
|
|
118
118
|
darkerGray: '#454141'
|
|
119
|
+
},
|
|
120
|
+
rareStepColors: {
|
|
121
|
+
primary: '#202b58',
|
|
122
|
+
secondary: '#ef5c2d',
|
|
123
|
+
ntrlMin: '#ffffff',
|
|
124
|
+
ntrl40: '#f4f4f4',
|
|
125
|
+
ntrl50: '#808080',
|
|
126
|
+
ntrl60: '#e8e8e8',
|
|
127
|
+
ntrl70: '#252525',
|
|
128
|
+
ntrlMax: '#000000'
|
|
129
|
+
},
|
|
130
|
+
rareStepFontWeights: {
|
|
131
|
+
normal: 400,
|
|
132
|
+
medium: 500,
|
|
133
|
+
semiBold: 600,
|
|
134
|
+
bold: 700
|
|
135
|
+
},
|
|
136
|
+
rareStepFontSize: {
|
|
137
|
+
h1: '36px',
|
|
138
|
+
h2: '30px',
|
|
139
|
+
h3: '24px',
|
|
140
|
+
h4: '20px',
|
|
141
|
+
h5: '16px',
|
|
142
|
+
h6: '14px',
|
|
143
|
+
footerTitle: '18px'
|
|
144
|
+
},
|
|
145
|
+
rareStepPageSizes: {
|
|
146
|
+
mobile: '500px',
|
|
147
|
+
tablet: '768px',
|
|
148
|
+
desktop: '992px',
|
|
149
|
+
screenl: '1280px',
|
|
150
|
+
screenxl: '1680px',
|
|
151
|
+
screenxxl: '1920px',
|
|
152
|
+
container: '1600px'
|
|
119
153
|
}
|
|
120
154
|
};
|
|
121
155
|
|