@bonlineza/luxity-lib 2.11.0 → 2.13.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 +332 -165
- package/BrandSelector.js +344 -177
- package/Checkbox.js +34 -0
- package/CheckboxButton.js +34 -0
- package/GenderSelector.js +34 -0
- package/GraphQLDropdownSelector.js +344 -177
- package/GraphQLMultiSelector.js +50 -69
- package/IconHeader.js +34 -0
- package/InterestCatSelector.js +34 -0
- package/InterestItem.js +34 -0
- package/Interests.js +344 -177
- package/InvertedTextButton.js +34 -0
- package/LuxityGraphQLDropdownSelector.js +344 -177
- package/LuxityGraphQLMultiselector.js +55 -74
- package/LuxityPageReady.js +6 -72
- package/MaterialSelector.js +344 -177
- package/ModelSelector.js +344 -177
- package/NotificationDropDown.js +43 -65
- package/OutlinePrimaryButton.js +34 -0
- package/PriceRangeSelector.js +34 -0
- package/PrimaryButton.js +34 -0
- package/README.md +2 -1
- package/RadioButtons.js +34 -0
- package/RangeSlider.js +34 -0
- package/RareStepFooter.js +54 -16
- package/RareStepHeader.js +215 -96
- package/SecondaryButton.js +34 -0
- package/ShoeSizeSelector.js +34 -0
- package/StyleSelector.js +59 -78
- package/TextButton.js +34 -0
- package/Tooltip.js +34 -0
- package/build/bundle.js +534 -155
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('@bonlineza/b-lib/functions'), require('styled-components'), require('@bonlineza/b-lib/PageReady')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['react', '@bonlineza/b-lib/functions', 'styled-components', '@bonlineza/b-lib/PageReady'], factory) :
|
|
4
|
-
(global = global || self, global.LuxityGraphQLMultiselector = factory(global.React, global.function, global.styled, global.PageReady));
|
|
5
|
-
}(this, (function (React, functions, styled, PageReady) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('@bonlineza/b-lib/functions'), require('styled-components'), require('@bonlineza/b-lib/EllipsisLoader'), require('@bonlineza/b-lib/PageReady')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['react', '@bonlineza/b-lib/functions', 'styled-components', '@bonlineza/b-lib/EllipsisLoader', '@bonlineza/b-lib/PageReady'], factory) :
|
|
4
|
+
(global = global || self, global.LuxityGraphQLMultiselector = factory(global.React, global.function, global.styled, global.EllipsisLoader, global.PageReady));
|
|
5
|
+
}(this, (function (React, functions, styled, EllipsisLoader, PageReady) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var React__default = 'default' in React ? React['default'] : React;
|
|
8
8
|
var styled__default = 'default' in styled ? styled['default'] : styled;
|
|
9
|
+
EllipsisLoader = EllipsisLoader && Object.prototype.hasOwnProperty.call(EllipsisLoader, 'default') ? EllipsisLoader['default'] : EllipsisLoader;
|
|
9
10
|
PageReady = PageReady && Object.prototype.hasOwnProperty.call(PageReady, 'default') ? PageReady['default'] : PageReady;
|
|
10
11
|
|
|
11
12
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -235,57 +236,6 @@
|
|
|
235
236
|
return message.replace(':error_code', error.status || 'Network Down');
|
|
236
237
|
};
|
|
237
238
|
|
|
238
|
-
var LuxityArrowLeft = (function (props) {
|
|
239
|
-
return /*#__PURE__*/React__default.createElement("svg", {
|
|
240
|
-
version: "1.0",
|
|
241
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
242
|
-
width: props.width || '100%',
|
|
243
|
-
height: props.height || '100%',
|
|
244
|
-
viewBox: "0 0 177.000000 300.000000",
|
|
245
|
-
preserveAspectRatio: "xMidYMid meet"
|
|
246
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
247
|
-
transform: "translate(0.000000,300.000000) scale(0.100000,-0.100000)",
|
|
248
|
-
fill: "#000000",
|
|
249
|
-
stroke: "none"
|
|
250
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
251
|
-
d: "M808 2628 c-139 -205 -377 -557 -530 -781 l-277 -409 48 -71 c363\n-539 905 -1335 915 -1345 9 -9 90 -12 362 -10 l351 3 -350 515 c-192 283 -409\n603 -482 711 l-134 197 386 568 c212 313 450 665 529 782 l145 212 -355 0\n-355 0 -253 -372z"
|
|
252
|
-
})));
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
var LuxityArrowRight = (function (props) {
|
|
256
|
-
return /*#__PURE__*/React__default.createElement("svg", {
|
|
257
|
-
version: "1.0",
|
|
258
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
259
|
-
width: props.width || '100%',
|
|
260
|
-
height: props.height || '100%',
|
|
261
|
-
viewBox: "0 0 177.000000 300.000000",
|
|
262
|
-
preserveAspectRatio: "xMidYMid meet"
|
|
263
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
264
|
-
transform: "translate(0.000000,300.000000) scale(0.100000,-0.100000)",
|
|
265
|
-
fill: "#000000",
|
|
266
|
-
stroke: "none"
|
|
267
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
268
|
-
d: "M106 2973 c9 -16 226 -336 481 -711 255 -376 465 -687 466 -691 1 -4\n-233 -355 -520 -779 -288 -424 -523 -773 -523 -776 0 -3 159 -6 353 -5 l352 0\n525 776 c289 427 524 780 522 785 -1 5 -219 328 -484 719 l-481 709 -355 0\n-354 0 18 -27z"
|
|
269
|
-
})));
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
273
|
-
var LoaderContainer = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n margin: 20px auto;\n"])));
|
|
274
|
-
var LeftImageContainer = styled__default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-start;\n width: 100%;\n height: 100%;\n object-fit: contain;\n animation: slide-left infinite 3s;\n background-color: white;\n\n @keyframes slide-left {\n 0% {\n transform: translateX(0);\n }\n 40% {\n transform: translateX(50%);\n }\n 100% {\n transform: translateX(150%);\n }\n }\n"])));
|
|
275
|
-
var RightImageContainer = styled__default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-end;\n width: 100%;\n height: 100%;\n object-fit: contain;\n animation: slide-right infinite 3s;\n\n @keyframes slide-right {\n 0% {\n transform: translateX(0);\n }\n 40% {\n transform: translateX(-50%);\n opacity: 1;\n }\n 100% {\n transform: translateX(-150%);\n opacity: 0;\n }\n }\n"])));
|
|
276
|
-
|
|
277
|
-
function LuxityLoader(_ref) {
|
|
278
|
-
var width = _ref.width,
|
|
279
|
-
height = _ref.height;
|
|
280
|
-
return /*#__PURE__*/React__default.createElement(LoaderContainer, null, /*#__PURE__*/React__default.createElement(LeftImageContainer, null, /*#__PURE__*/React__default.createElement(LuxityArrowRight, {
|
|
281
|
-
width: width,
|
|
282
|
-
height: height
|
|
283
|
-
})), /*#__PURE__*/React__default.createElement(RightImageContainer, null, /*#__PURE__*/React__default.createElement(LuxityArrowLeft, {
|
|
284
|
-
width: width,
|
|
285
|
-
height: height
|
|
286
|
-
})));
|
|
287
|
-
}
|
|
288
|
-
|
|
289
239
|
var LuxityPageReadyContext = /*#__PURE__*/React__default.createContext({
|
|
290
240
|
data: null
|
|
291
241
|
});
|
|
@@ -361,10 +311,7 @@
|
|
|
361
311
|
customErrorMessage: customErrorMessage,
|
|
362
312
|
customErrorHandler: customErrorHandler,
|
|
363
313
|
renderCustomLoader: function renderCustomLoader() {
|
|
364
|
-
return /*#__PURE__*/React__default.createElement(
|
|
365
|
-
height: "40px",
|
|
366
|
-
width: "95%"
|
|
367
|
-
});
|
|
314
|
+
return /*#__PURE__*/React__default.createElement(EllipsisLoader, null);
|
|
368
315
|
},
|
|
369
316
|
errorMessageInterpreter: interpretErrorMessage
|
|
370
317
|
}, /*#__PURE__*/React__default.createElement(LuxityPageReadyContext.Provider, {
|
|
@@ -391,9 +338,9 @@
|
|
|
391
338
|
}
|
|
392
339
|
};
|
|
393
340
|
|
|
394
|
-
var _templateObject
|
|
395
|
-
var disabledButtonStyle = styled.css(_templateObject
|
|
396
|
-
var baseButtonStyle = styled.css(_templateObject2
|
|
341
|
+
var _templateObject, _templateObject2;
|
|
342
|
+
var disabledButtonStyle = styled.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: not-allowed;\n opacity: 0.4;\n"])));
|
|
343
|
+
var baseButtonStyle = styled.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 1rem 3.5rem;\n cursor: pointer;\n letter-spacing: 1.3px;\n border-style: none;\n text-transform: uppercase;\n font-size: 12px;\n color: #fff;\n transition: 0.2s ease-in-out;\n outline: none;\n min-width: 150px;\n"])));
|
|
397
344
|
|
|
398
345
|
var theme = {
|
|
399
346
|
breakpoints: ['40em', '52em', '64em'],
|
|
@@ -412,6 +359,40 @@
|
|
|
412
359
|
ntrlMinTen: '#e6e6e6',
|
|
413
360
|
gray: '#efefef',
|
|
414
361
|
darkerGray: '#454141'
|
|
362
|
+
},
|
|
363
|
+
rareStepColors: {
|
|
364
|
+
primary: '#202b58',
|
|
365
|
+
secondary: '#ef5c2d',
|
|
366
|
+
ntrlMin: '#ffffff',
|
|
367
|
+
ntrl40: '#f4f4f4',
|
|
368
|
+
ntrl50: '#808080',
|
|
369
|
+
ntrl60: '#e8e8e8',
|
|
370
|
+
ntrl70: '#252525',
|
|
371
|
+
ntrlMax: '#000000'
|
|
372
|
+
},
|
|
373
|
+
rareStepFontWeights: {
|
|
374
|
+
normal: 400,
|
|
375
|
+
medium: 500,
|
|
376
|
+
semiBold: 600,
|
|
377
|
+
bold: 700
|
|
378
|
+
},
|
|
379
|
+
rareStepFontSize: {
|
|
380
|
+
h1: '36px',
|
|
381
|
+
h2: '30px',
|
|
382
|
+
h3: '24px',
|
|
383
|
+
h4: '20px',
|
|
384
|
+
h5: '16px',
|
|
385
|
+
h6: '14px',
|
|
386
|
+
footerTitle: '18px'
|
|
387
|
+
},
|
|
388
|
+
rareStepPageSizes: {
|
|
389
|
+
mobile: '500px',
|
|
390
|
+
tablet: '768px',
|
|
391
|
+
desktop: '992px',
|
|
392
|
+
screenl: '1280px',
|
|
393
|
+
screenxl: '1680px',
|
|
394
|
+
screenxxl: '1920px',
|
|
395
|
+
container: '1600px'
|
|
415
396
|
}
|
|
416
397
|
};
|
|
417
398
|
|
|
@@ -427,8 +408,8 @@
|
|
|
427
408
|
|
|
428
409
|
var _excluded = ["children"];
|
|
429
410
|
|
|
430
|
-
var _templateObject$
|
|
431
|
-
var Button = styled__default.button(_templateObject$
|
|
411
|
+
var _templateObject$1;
|
|
412
|
+
var Button = styled__default.button(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n ", ";\n background-color: transparent;\n color: ", ";\n &:hover {\n color: ", ";\n }\n &:disabled {\n ", ";\n color: ", ";\n }\n"])), baseButtonStyle, function (props) {
|
|
432
413
|
return props.theme.colors.base;
|
|
433
414
|
}, function (props) {
|
|
434
415
|
return props.theme.colors.primary;
|
|
@@ -450,8 +431,8 @@
|
|
|
450
431
|
|
|
451
432
|
var _excluded$1 = ["children"];
|
|
452
433
|
|
|
453
|
-
var _templateObject$
|
|
454
|
-
var Button$1 = styled__default(TextButton$1)(_templateObject$
|
|
434
|
+
var _templateObject$2;
|
|
435
|
+
var Button$1 = styled__default(TextButton$1)(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n color: ", ";\n background-color: ", ";\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n &:disabled {\n background-color: ", ";\n color: ", ";\n }\n"])), function (props) {
|
|
455
436
|
return props.theme.colors.ntrlMin;
|
|
456
437
|
}, function (props) {
|
|
457
438
|
return props.theme.colors.primary;
|
|
@@ -481,15 +462,15 @@
|
|
|
481
462
|
lg: '1200px'
|
|
482
463
|
};
|
|
483
464
|
|
|
484
|
-
var _templateObject$
|
|
465
|
+
var _templateObject$3, _templateObject2$1;
|
|
485
466
|
var ALL_ITEM = {
|
|
486
467
|
id: 'ALL',
|
|
487
468
|
name: 'ALL'
|
|
488
469
|
};
|
|
489
470
|
var multiSelectorItemMaxHeight = '3rem';
|
|
490
471
|
var multiSelectorItemAnimationDuration = '300ms';
|
|
491
|
-
var multiselectorItemFadeIn = styled.keyframes(_templateObject$
|
|
492
|
-
var StyledMultiselector = styled__default.div(_templateObject2$
|
|
472
|
+
var multiselectorItemFadeIn = styled.keyframes(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n from {\n margin: 0;\n max-height: 0px;\n opacity: 0;\n }\n to {\n max-height: ", ";\n opacity: 1;\n }\n"])), multiSelectorItemMaxHeight);
|
|
473
|
+
var StyledMultiselector = styled__default.div(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n .multiselector__selected-items,\n .multiselector__selectable-items {\n display: flex;\n flex-flow: wrap;\n margin-left: calc(-1 * ", ");\n button {\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n border-color: ", ";\n background-color: ", ";\n color: ", ";\n padding: ", ";\n text-transform: none;\n box-sizing: border-box;\n animation: ", " ease-in-out\n ", " forwards;\n flex-basis: calc(25% - ", ");\n margin-bottom: ", ";\n margin-left: ", ";\n text-overflow: ellipsis;\n overflow-x: hidden;\n min-height: 40px;\n\n @media (max-width: ", ") {\n flex-basis: calc(50% - ", ");\n }\n }\n }\n\n .multiselector__footer {\n display: flex;\n justify-content: center;\n button {\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n background-color: ", ";\n color: ", ";\n }\n }\n"])), function (props) {
|
|
493
474
|
return props.theme.marginPaddings[2];
|
|
494
475
|
}, function (props) {
|
|
495
476
|
return props.theme.colors.ntrlMin;
|
|
@@ -726,11 +707,11 @@
|
|
|
726
707
|
}));
|
|
727
708
|
});
|
|
728
709
|
|
|
729
|
-
var _templateObject$
|
|
730
|
-
var Title = styled__default.h1(_templateObject$
|
|
710
|
+
var _templateObject$4, _templateObject2$2;
|
|
711
|
+
var Title = styled__default.h1(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: bold;\n margin-bottom: 0;\n text-transform: uppercase;\n"])), function (props) {
|
|
731
712
|
return props.theme.fontSizes[2];
|
|
732
713
|
});
|
|
733
|
-
var InterestsSubheadingContainer = styled__default.div(_templateObject2$
|
|
714
|
+
var InterestsSubheadingContainer = styled__default.div(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n padding-bottom: ", ";\n border-bottom: 1px solid ", ";\n margin-bottom: ", ";\n margin-top: ", ";\n width: 100%;\n align-items: center;\n"])), function (props) {
|
|
734
715
|
return props.theme.marginPaddings[1];
|
|
735
716
|
}, function (props) {
|
|
736
717
|
return props.theme.colors.primary;
|
|
@@ -749,7 +730,7 @@
|
|
|
749
730
|
}, /*#__PURE__*/React__default.createElement(Title, null, title), /*#__PURE__*/React__default.createElement("div", null, children));
|
|
750
731
|
};
|
|
751
732
|
|
|
752
|
-
var _templateObject$
|
|
733
|
+
var _templateObject$5;
|
|
753
734
|
|
|
754
735
|
var Title$1 = function Title(_ref) {
|
|
755
736
|
var baseClass = _ref.baseClass,
|
|
@@ -770,7 +751,7 @@
|
|
|
770
751
|
})));
|
|
771
752
|
};
|
|
772
753
|
|
|
773
|
-
var StyledTitle = styled__default(Title$1)(_templateObject$
|
|
754
|
+
var StyledTitle = styled__default(Title$1)(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-weight: bold;\n display: flex;\n align-items: center;\n font-size: ", ";\n\n .title__search,\n .title__search {\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 30px;\n margin-bottom: ", ";\n\n svg {\n margin-left: ", ";\n fill: ", ";\n stroke: ", ";\n }\n\n input {\n width: 140px;\n border: none;\n font-size: ", ";\n transition: 0.2s border-color ease-in-out;\n margin-left: ", ";\n padding: 0;\n\n :focus {\n border-color: ", ";\n border-bottom: none;\n }\n }\n }\n"])), function (props) {
|
|
774
755
|
return props.theme.marginPaddings[2];
|
|
775
756
|
}, function (props) {
|
|
776
757
|
return props.theme.fontSizes[2];
|
package/LuxityPageReady.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@bonlineza/b-lib/
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react', '@bonlineza/b-lib/
|
|
4
|
-
(global = global || self, factory(global.LuxityPageReady = {}, global.React, global.
|
|
5
|
-
}(this, (function (exports, React,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@bonlineza/b-lib/EllipsisLoader'), require('@bonlineza/b-lib/PageReady')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react', '@bonlineza/b-lib/EllipsisLoader', '@bonlineza/b-lib/PageReady'], factory) :
|
|
4
|
+
(global = global || self, factory(global.LuxityPageReady = {}, global.React, global.EllipsisLoader, global.PageReady));
|
|
5
|
+
}(this, (function (exports, React, EllipsisLoader, PageReady) { 'use strict';
|
|
6
6
|
|
|
7
7
|
React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
|
|
8
|
+
EllipsisLoader = EllipsisLoader && Object.prototype.hasOwnProperty.call(EllipsisLoader, 'default') ? EllipsisLoader['default'] : EllipsisLoader;
|
|
8
9
|
PageReady = PageReady && Object.prototype.hasOwnProperty.call(PageReady, 'default') ? PageReady['default'] : PageReady;
|
|
9
|
-
styled = styled && Object.prototype.hasOwnProperty.call(styled, 'default') ? styled['default'] : styled;
|
|
10
10
|
|
|
11
11
|
function _classCallCheck(instance, Constructor) {
|
|
12
12
|
if (!(instance instanceof Constructor)) {
|
|
@@ -131,75 +131,12 @@
|
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
function _taggedTemplateLiteral(strings, raw) {
|
|
135
|
-
if (!raw) {
|
|
136
|
-
raw = strings.slice(0);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
140
|
-
raw: {
|
|
141
|
-
value: Object.freeze(raw)
|
|
142
|
-
}
|
|
143
|
-
}));
|
|
144
|
-
}
|
|
145
|
-
|
|
146
134
|
var interpretErrorMessage = function interpretErrorMessage(error) {
|
|
147
135
|
var customMessage = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Failed: :error_code';
|
|
148
136
|
var message = customMessage || 'Network Error';
|
|
149
137
|
return message.replace(':error_code', error.status || 'Network Down');
|
|
150
138
|
};
|
|
151
139
|
|
|
152
|
-
var LuxityArrowLeft = (function (props) {
|
|
153
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
154
|
-
version: "1.0",
|
|
155
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
156
|
-
width: props.width || '100%',
|
|
157
|
-
height: props.height || '100%',
|
|
158
|
-
viewBox: "0 0 177.000000 300.000000",
|
|
159
|
-
preserveAspectRatio: "xMidYMid meet"
|
|
160
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
161
|
-
transform: "translate(0.000000,300.000000) scale(0.100000,-0.100000)",
|
|
162
|
-
fill: "#000000",
|
|
163
|
-
stroke: "none"
|
|
164
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
165
|
-
d: "M808 2628 c-139 -205 -377 -557 -530 -781 l-277 -409 48 -71 c363\n-539 905 -1335 915 -1345 9 -9 90 -12 362 -10 l351 3 -350 515 c-192 283 -409\n603 -482 711 l-134 197 386 568 c212 313 450 665 529 782 l145 212 -355 0\n-355 0 -253 -372z"
|
|
166
|
-
})));
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
var LuxityArrowRight = (function (props) {
|
|
170
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
171
|
-
version: "1.0",
|
|
172
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
173
|
-
width: props.width || '100%',
|
|
174
|
-
height: props.height || '100%',
|
|
175
|
-
viewBox: "0 0 177.000000 300.000000",
|
|
176
|
-
preserveAspectRatio: "xMidYMid meet"
|
|
177
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
178
|
-
transform: "translate(0.000000,300.000000) scale(0.100000,-0.100000)",
|
|
179
|
-
fill: "#000000",
|
|
180
|
-
stroke: "none"
|
|
181
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
182
|
-
d: "M106 2973 c9 -16 226 -336 481 -711 255 -376 465 -687 466 -691 1 -4\n-233 -355 -520 -779 -288 -424 -523 -773 -523 -776 0 -3 159 -6 353 -5 l352 0\n525 776 c289 427 524 780 522 785 -1 5 -219 328 -484 719 l-481 709 -355 0\n-354 0 18 -27z"
|
|
183
|
-
})));
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
187
|
-
var LoaderContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n margin: 20px auto;\n"])));
|
|
188
|
-
var LeftImageContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-start;\n width: 100%;\n height: 100%;\n object-fit: contain;\n animation: slide-left infinite 3s;\n background-color: white;\n\n @keyframes slide-left {\n 0% {\n transform: translateX(0);\n }\n 40% {\n transform: translateX(50%);\n }\n 100% {\n transform: translateX(150%);\n }\n }\n"])));
|
|
189
|
-
var RightImageContainer = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-end;\n width: 100%;\n height: 100%;\n object-fit: contain;\n animation: slide-right infinite 3s;\n\n @keyframes slide-right {\n 0% {\n transform: translateX(0);\n }\n 40% {\n transform: translateX(-50%);\n opacity: 1;\n }\n 100% {\n transform: translateX(-150%);\n opacity: 0;\n }\n }\n"])));
|
|
190
|
-
|
|
191
|
-
function LuxityLoader(_ref) {
|
|
192
|
-
var width = _ref.width,
|
|
193
|
-
height = _ref.height;
|
|
194
|
-
return /*#__PURE__*/React.createElement(LoaderContainer, null, /*#__PURE__*/React.createElement(LeftImageContainer, null, /*#__PURE__*/React.createElement(LuxityArrowRight, {
|
|
195
|
-
width: width,
|
|
196
|
-
height: height
|
|
197
|
-
})), /*#__PURE__*/React.createElement(RightImageContainer, null, /*#__PURE__*/React.createElement(LuxityArrowLeft, {
|
|
198
|
-
width: width,
|
|
199
|
-
height: height
|
|
200
|
-
})));
|
|
201
|
-
}
|
|
202
|
-
|
|
203
140
|
var LuxityPageReadyContext = /*#__PURE__*/React.createContext({
|
|
204
141
|
data: null
|
|
205
142
|
});
|
|
@@ -275,10 +212,7 @@
|
|
|
275
212
|
customErrorMessage: customErrorMessage,
|
|
276
213
|
customErrorHandler: customErrorHandler,
|
|
277
214
|
renderCustomLoader: function renderCustomLoader() {
|
|
278
|
-
return /*#__PURE__*/React.createElement(
|
|
279
|
-
height: "40px",
|
|
280
|
-
width: "95%"
|
|
281
|
-
});
|
|
215
|
+
return /*#__PURE__*/React.createElement(EllipsisLoader, null);
|
|
282
216
|
},
|
|
283
217
|
errorMessageInterpreter: interpretErrorMessage
|
|
284
218
|
}, /*#__PURE__*/React.createElement(LuxityPageReadyContext.Provider, {
|