@bonlineza/luxity-lib 2.9.1 → 2.10.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.
Files changed (71) hide show
  1. package/Accordion.js +0 -0
  2. package/AddInterest.js +126 -72
  3. package/BrandSelector.js +79 -25
  4. package/Checkbox.js +0 -0
  5. package/CheckboxButton.js +0 -0
  6. package/CountryCodeSelect.js +0 -0
  7. package/CurrencyInputFormatter.js +0 -0
  8. package/GenderSelector.js +0 -0
  9. package/GraphQLMultiSelector.js +69 -16
  10. package/IconHeader.js +0 -0
  11. package/IconWrapper.js +0 -0
  12. package/InterestCatSelector.js +0 -0
  13. package/InterestItem.js +0 -0
  14. package/Interests.js +154 -97
  15. package/InterestsSubheading.js +0 -0
  16. package/InvertedTextButton.js +0 -0
  17. package/LuxityGraphQLMultiselector.js +75 -21
  18. package/LuxityLoader.js +75 -0
  19. package/LuxityPageReady.js +72 -6
  20. package/NotificationDropDown.js +65 -9
  21. package/Notify.js +0 -0
  22. package/OutlinePrimaryButton.js +0 -0
  23. package/PriceRangeSelector.js +0 -0
  24. package/PrimaryButton.js +0 -0
  25. package/README.md +3 -0
  26. package/RadioButtons.js +0 -0
  27. package/RangeSlider.js +0 -0
  28. package/ReactSelectWrapper.js +0 -0
  29. package/SecondaryButton.js +0 -0
  30. package/ShoeSizeSelector.js +0 -0
  31. package/SimpleErrorBoundary.js +0 -0
  32. package/StyleSelector.js +79 -25
  33. package/TextButton.js +0 -0
  34. package/Tooltip.js +0 -0
  35. package/WrapperButton.js +0 -0
  36. package/build/bundle.js +154 -97
  37. package/package.json +1 -1
  38. package/svg/Accessories.js +0 -0
  39. package/svg/Account.js +0 -0
  40. package/svg/Add.js +0 -0
  41. package/svg/ArrowRight.js +0 -0
  42. package/svg/Bags.js +0 -0
  43. package/svg/BurgerMenu.js +0 -0
  44. package/svg/Calendar.js +0 -0
  45. package/svg/CalendarCircled.js +0 -0
  46. package/svg/CheckCircled.js +0 -0
  47. package/svg/Close.js +0 -0
  48. package/svg/Clothing.js +0 -0
  49. package/svg/Dot.js +0 -0
  50. package/svg/Edit.js +0 -0
  51. package/svg/Eye.js +0 -0
  52. package/svg/FileAttach.js +0 -0
  53. package/svg/FileAttachCircled.js +0 -0
  54. package/svg/LightBulb.js +0 -0
  55. package/svg/Logo.js +0 -0
  56. package/svg/LuxityArrowLeft.js +28 -0
  57. package/svg/LuxityArrowRight.js +28 -0
  58. package/svg/LuxityMenu.js +0 -0
  59. package/svg/Minus.js +0 -0
  60. package/svg/MobileAvatar.js +0 -0
  61. package/svg/MyOrder.js +0 -0
  62. package/svg/MyPayment.js +0 -0
  63. package/svg/MyProfile.js +0 -0
  64. package/svg/MySale.js +0 -0
  65. package/svg/Notification.js +0 -0
  66. package/svg/PointerDown.js +0 -0
  67. package/svg/Search.js +1 -0
  68. package/svg/Shoes.js +0 -0
  69. package/svg/SvgWrapper.js +0 -0
  70. package/svg/Trash.js +0 -0
  71. package/svg/Watches.js +0 -0
File without changes
File without changes
@@ -1,12 +1,11 @@
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/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';
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';
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;
10
9
  PageReady = PageReady && Object.prototype.hasOwnProperty.call(PageReady, 'default') ? PageReady['default'] : PageReady;
11
10
 
12
11
  function _classCallCheck(instance, Constructor) {
@@ -236,6 +235,57 @@
236
235
  return message.replace(':error_code', error.status || 'Network Down');
237
236
  };
238
237
 
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
+
239
289
  var LuxityPageReadyContext = /*#__PURE__*/React__default.createContext({
240
290
  data: null
241
291
  });
@@ -311,7 +361,10 @@
311
361
  customErrorMessage: customErrorMessage,
312
362
  customErrorHandler: customErrorHandler,
313
363
  renderCustomLoader: function renderCustomLoader() {
314
- return /*#__PURE__*/React__default.createElement(EllipsisLoader, null);
364
+ return /*#__PURE__*/React__default.createElement(LuxityLoader, {
365
+ height: "40px",
366
+ width: "95%"
367
+ });
315
368
  },
316
369
  errorMessageInterpreter: interpretErrorMessage
317
370
  }, /*#__PURE__*/React__default.createElement(LuxityPageReadyContext.Provider, {
@@ -338,9 +391,9 @@
338
391
  }
339
392
  };
340
393
 
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"])));
394
+ var _templateObject$1, _templateObject2$1;
395
+ var disabledButtonStyle = styled.css(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n cursor: not-allowed;\n opacity: 0.4;\n"])));
396
+ var baseButtonStyle = styled.css(_templateObject2$1 || (_templateObject2$1 = _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"])));
344
397
 
345
398
  var theme = {
346
399
  breakpoints: ['40em', '52em', '64em'],
@@ -374,8 +427,8 @@
374
427
 
375
428
  var _excluded = ["children"];
376
429
 
377
- var _templateObject$1;
378
- 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) {
430
+ var _templateObject$2;
431
+ var Button = styled__default.button(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n ", ";\n background-color: transparent;\n color: ", ";\n &:hover {\n color: ", ";\n }\n &:disabled {\n ", ";\n color: ", ";\n }\n"])), baseButtonStyle, function (props) {
379
432
  return props.theme.colors.base;
380
433
  }, function (props) {
381
434
  return props.theme.colors.primary;
@@ -397,8 +450,8 @@
397
450
 
398
451
  var _excluded$1 = ["children"];
399
452
 
400
- var _templateObject$2;
401
- 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) {
453
+ var _templateObject$3;
454
+ var Button$1 = styled__default(TextButton$1)(_templateObject$3 || (_templateObject$3 = _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) {
402
455
  return props.theme.colors.ntrlMin;
403
456
  }, function (props) {
404
457
  return props.theme.colors.primary;
@@ -428,15 +481,15 @@
428
481
  lg: '1200px'
429
482
  };
430
483
 
431
- var _templateObject$3, _templateObject2$1;
484
+ var _templateObject$4, _templateObject2$2;
432
485
  var ALL_ITEM = {
433
486
  id: 'ALL',
434
487
  name: 'ALL'
435
488
  };
436
489
  var multiSelectorItemMaxHeight = '3rem';
437
490
  var multiSelectorItemAnimationDuration = '300ms';
438
- 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);
439
- 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) {
491
+ var multiselectorItemFadeIn = styled.keyframes(_templateObject$4 || (_templateObject$4 = _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);
492
+ var StyledMultiselector = styled__default.div(_templateObject2$2 || (_templateObject2$2 = _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) {
440
493
  return props.theme.marginPaddings[2];
441
494
  }, function (props) {
442
495
  return props.theme.colors.ntrlMin;
@@ -664,6 +717,7 @@
664
717
  width: "15",
665
718
  height: "15",
666
719
  viewBox: "0 0 15 15",
720
+ overflow: "visible",
667
721
  fill: "none",
668
722
  xmlns: "http://www.w3.org/2000/svg"
669
723
  }, props), /*#__PURE__*/React__default.createElement("path", {
@@ -672,11 +726,11 @@
672
726
  }));
673
727
  });
674
728
 
675
- var _templateObject$4, _templateObject2$2;
676
- 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) {
729
+ var _templateObject$5, _templateObject2$3;
730
+ var Title = styled__default.h1(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: bold;\n margin-bottom: 0;\n text-transform: uppercase;\n"])), function (props) {
677
731
  return props.theme.fontSizes[2];
678
732
  });
679
- 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) {
733
+ var InterestsSubheadingContainer = styled__default.div(_templateObject2$3 || (_templateObject2$3 = _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) {
680
734
  return props.theme.marginPaddings[1];
681
735
  }, function (props) {
682
736
  return props.theme.colors.primary;
@@ -695,7 +749,7 @@
695
749
  }, /*#__PURE__*/React__default.createElement(Title, null, title), /*#__PURE__*/React__default.createElement("div", null, children));
696
750
  };
697
751
 
698
- var _templateObject$5;
752
+ var _templateObject$6;
699
753
 
700
754
  var Title$1 = function Title(_ref) {
701
755
  var baseClass = _ref.baseClass,
@@ -716,7 +770,7 @@
716
770
  })));
717
771
  };
718
772
 
719
- 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) {
773
+ var StyledTitle = styled__default(Title$1)(_templateObject$6 || (_templateObject$6 = _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) {
720
774
  return props.theme.marginPaddings[2];
721
775
  }, function (props) {
722
776
  return props.theme.fontSizes[2];
@@ -0,0 +1,75 @@
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.LuxityLoader = factory(global.React, global.styled));
5
+ }(this, (function (React, styled) { 'use strict';
6
+
7
+ React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
8
+ styled = styled && Object.prototype.hasOwnProperty.call(styled, 'default') ? styled['default'] : styled;
9
+
10
+ function _taggedTemplateLiteral(strings, raw) {
11
+ if (!raw) {
12
+ raw = strings.slice(0);
13
+ }
14
+
15
+ return Object.freeze(Object.defineProperties(strings, {
16
+ raw: {
17
+ value: Object.freeze(raw)
18
+ }
19
+ }));
20
+ }
21
+
22
+ var LuxityArrowLeft = (function (props) {
23
+ return /*#__PURE__*/React.createElement("svg", {
24
+ version: "1.0",
25
+ xmlns: "http://www.w3.org/2000/svg",
26
+ width: props.width || '100%',
27
+ height: props.height || '100%',
28
+ viewBox: "0 0 177.000000 300.000000",
29
+ preserveAspectRatio: "xMidYMid meet"
30
+ }, /*#__PURE__*/React.createElement("g", {
31
+ transform: "translate(0.000000,300.000000) scale(0.100000,-0.100000)",
32
+ fill: "#000000",
33
+ stroke: "none"
34
+ }, /*#__PURE__*/React.createElement("path", {
35
+ 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"
36
+ })));
37
+ });
38
+
39
+ var LuxityArrowRight = (function (props) {
40
+ return /*#__PURE__*/React.createElement("svg", {
41
+ version: "1.0",
42
+ xmlns: "http://www.w3.org/2000/svg",
43
+ width: props.width || '100%',
44
+ height: props.height || '100%',
45
+ viewBox: "0 0 177.000000 300.000000",
46
+ preserveAspectRatio: "xMidYMid meet"
47
+ }, /*#__PURE__*/React.createElement("g", {
48
+ transform: "translate(0.000000,300.000000) scale(0.100000,-0.100000)",
49
+ fill: "#000000",
50
+ stroke: "none"
51
+ }, /*#__PURE__*/React.createElement("path", {
52
+ 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"
53
+ })));
54
+ });
55
+
56
+ var _templateObject, _templateObject2, _templateObject3;
57
+ var LoaderContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n margin: 20px auto;\n"])));
58
+ 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"])));
59
+ 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"])));
60
+
61
+ function LuxityLoader(_ref) {
62
+ var width = _ref.width,
63
+ height = _ref.height;
64
+ return /*#__PURE__*/React.createElement(LoaderContainer, null, /*#__PURE__*/React.createElement(LeftImageContainer, null, /*#__PURE__*/React.createElement(LuxityArrowRight, {
65
+ width: width,
66
+ height: height
67
+ })), /*#__PURE__*/React.createElement(RightImageContainer, null, /*#__PURE__*/React.createElement(LuxityArrowLeft, {
68
+ width: width,
69
+ height: height
70
+ })));
71
+ }
72
+
73
+ return LuxityLoader;
74
+
75
+ })));
@@ -1,12 +1,12 @@
1
1
  (function (global, factory) {
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';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@bonlineza/b-lib/PageReady'), require('styled-components')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', '@bonlineza/b-lib/PageReady', 'styled-components'], factory) :
4
+ (global = global || self, factory(global.LuxityPageReady = {}, global.React, global.PageReady, global.styled));
5
+ }(this, (function (exports, React, PageReady, styled) { '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;
9
8
  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,12 +131,75 @@
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
+
134
146
  var interpretErrorMessage = function interpretErrorMessage(error) {
135
147
  var customMessage = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Failed: :error_code';
136
148
  var message = customMessage || 'Network Error';
137
149
  return message.replace(':error_code', error.status || 'Network Down');
138
150
  };
139
151
 
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
+
140
203
  var LuxityPageReadyContext = /*#__PURE__*/React.createContext({
141
204
  data: null
142
205
  });
@@ -212,7 +275,10 @@
212
275
  customErrorMessage: customErrorMessage,
213
276
  customErrorHandler: customErrorHandler,
214
277
  renderCustomLoader: function renderCustomLoader() {
215
- return /*#__PURE__*/React.createElement(EllipsisLoader, null);
278
+ return /*#__PURE__*/React.createElement(LuxityLoader, {
279
+ height: "40px",
280
+ width: "95%"
281
+ });
216
282
  },
217
283
  errorMessageInterpreter: interpretErrorMessage
218
284
  }, /*#__PURE__*/React.createElement(LuxityPageReadyContext.Provider, {
@@ -1,15 +1,14 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('stylis-rule-sheet'), require('react-dom'), require('prop-types'), require('raf'), require('react-input-autosize'), require('react-transition-group'), require('@bonlineza/b-lib/EllipsisLoader'), require('styled-components'), require('@bonlineza/b-lib/PageReady'), require('react-notify-toast')) :
3
- typeof define === 'function' && define.amd ? define(['react', 'stylis-rule-sheet', 'react-dom', 'prop-types', 'raf', 'react-input-autosize', 'react-transition-group', '@bonlineza/b-lib/EllipsisLoader', 'styled-components', '@bonlineza/b-lib/PageReady', 'react-notify-toast'], factory) :
4
- (global = global || self, global.NotificationDropDown = factory(global.React, global['stylis-rule-sheet'], global.reactDom, global.PropTypes, global.raf, global['react-input-autosize'], global['react-transition-group'], global.EllipsisLoader, global.styled, global.PageReady, global['react-notify-toast']));
5
- }(this, (function (React, stylisRuleSheet, reactDom, PropTypes, raf, AutosizeInput, reactTransitionGroup, EllipsisLoader, styled, PageReady, Notifications) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('stylis-rule-sheet'), require('react-dom'), require('prop-types'), require('raf'), require('react-input-autosize'), require('react-transition-group'), require('styled-components'), require('@bonlineza/b-lib/PageReady'), require('react-notify-toast')) :
3
+ typeof define === 'function' && define.amd ? define(['react', 'stylis-rule-sheet', 'react-dom', 'prop-types', 'raf', 'react-input-autosize', 'react-transition-group', 'styled-components', '@bonlineza/b-lib/PageReady', 'react-notify-toast'], factory) :
4
+ (global = global || self, global.NotificationDropDown = factory(global.React, global['stylis-rule-sheet'], global.reactDom, global.PropTypes, global.raf, global['react-input-autosize'], global['react-transition-group'], global.styled, global.PageReady, global['react-notify-toast']));
5
+ }(this, (function (React, stylisRuleSheet, reactDom, PropTypes, raf, AutosizeInput, reactTransitionGroup, styled, PageReady, Notifications) { 'use strict';
6
6
 
7
7
  var React__default = 'default' in React ? React['default'] : React;
8
8
  stylisRuleSheet = stylisRuleSheet && Object.prototype.hasOwnProperty.call(stylisRuleSheet, 'default') ? stylisRuleSheet['default'] : stylisRuleSheet;
9
9
  PropTypes = PropTypes && Object.prototype.hasOwnProperty.call(PropTypes, 'default') ? PropTypes['default'] : PropTypes;
10
10
  raf = raf && Object.prototype.hasOwnProperty.call(raf, 'default') ? raf['default'] : raf;
11
11
  AutosizeInput = AutosizeInput && Object.prototype.hasOwnProperty.call(AutosizeInput, 'default') ? AutosizeInput['default'] : AutosizeInput;
12
- EllipsisLoader = EllipsisLoader && Object.prototype.hasOwnProperty.call(EllipsisLoader, 'default') ? EllipsisLoader['default'] : EllipsisLoader;
13
12
  var styled__default = 'default' in styled ? styled['default'] : styled;
14
13
  PageReady = PageReady && Object.prototype.hasOwnProperty.call(PageReady, 'default') ? PageReady['default'] : PageReady;
15
14
  var Notifications__default = 'default' in Notifications ? Notifications['default'] : Notifications;
@@ -6752,8 +6751,59 @@
6752
6751
 
6753
6752
  var index$1 = manageState(Select);
6754
6753
 
6755
- var _templateObject;
6756
- var NotifyContainer = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width: 150px;\n\n .notification-dropdown-select__control {\n min-height: auto;\n background-color: ", ";\n border: none;\n border-radius: 0;\n\n &--is-focused {\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n\n .notification-dropdown-select__value-container {\n & > div {\n padding: 0;\n margin: 0;\n color: ", ";\n }\n & .notification-dropdown-select__single-value,\n & .notification-dropdown-select__placeholder {\n overflow: visible;\n font-weight: lighter;\n }\n }\n }\n }\n\n .notification-dropdown-select__indicators {\n padding: 0 !important;\n .notification-dropdown-select__dropdown-indicator {\n color: ", ";\n }\n }\n\n .notification-dropdown-select__menu {\n border-radius: 0;\n\n & > .notification-dropdown-select__menu-list {\n border-radius: 0;\n\n & > .notification-dropdown-select__option {\n font-weight: bold;\n &:last-child {\n border-bottom: none;\n }\n\n &.notification-dropdown-select__option--is-focused {\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected {\n color: ", ";\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected.notification-dropdown-select__option--is-focused {\n border-style: hidden;\n }\n }\n }\n }\n"])), function (props) {
6754
+ var LuxityArrowLeft = (function (props) {
6755
+ return /*#__PURE__*/React__default.createElement("svg", {
6756
+ version: "1.0",
6757
+ xmlns: "http://www.w3.org/2000/svg",
6758
+ width: props.width || '100%',
6759
+ height: props.height || '100%',
6760
+ viewBox: "0 0 177.000000 300.000000",
6761
+ preserveAspectRatio: "xMidYMid meet"
6762
+ }, /*#__PURE__*/React__default.createElement("g", {
6763
+ transform: "translate(0.000000,300.000000) scale(0.100000,-0.100000)",
6764
+ fill: "#000000",
6765
+ stroke: "none"
6766
+ }, /*#__PURE__*/React__default.createElement("path", {
6767
+ 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"
6768
+ })));
6769
+ });
6770
+
6771
+ var LuxityArrowRight = (function (props) {
6772
+ return /*#__PURE__*/React__default.createElement("svg", {
6773
+ version: "1.0",
6774
+ xmlns: "http://www.w3.org/2000/svg",
6775
+ width: props.width || '100%',
6776
+ height: props.height || '100%',
6777
+ viewBox: "0 0 177.000000 300.000000",
6778
+ preserveAspectRatio: "xMidYMid meet"
6779
+ }, /*#__PURE__*/React__default.createElement("g", {
6780
+ transform: "translate(0.000000,300.000000) scale(0.100000,-0.100000)",
6781
+ fill: "#000000",
6782
+ stroke: "none"
6783
+ }, /*#__PURE__*/React__default.createElement("path", {
6784
+ 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"
6785
+ })));
6786
+ });
6787
+
6788
+ var _templateObject, _templateObject2, _templateObject3;
6789
+ var LoaderContainer = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n margin: 20px auto;\n"])));
6790
+ 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"])));
6791
+ 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"])));
6792
+
6793
+ function LuxityLoader(_ref) {
6794
+ var width = _ref.width,
6795
+ height = _ref.height;
6796
+ return /*#__PURE__*/React__default.createElement(LoaderContainer, null, /*#__PURE__*/React__default.createElement(LeftImageContainer, null, /*#__PURE__*/React__default.createElement(LuxityArrowRight, {
6797
+ width: width,
6798
+ height: height
6799
+ })), /*#__PURE__*/React__default.createElement(RightImageContainer, null, /*#__PURE__*/React__default.createElement(LuxityArrowLeft, {
6800
+ width: width,
6801
+ height: height
6802
+ })));
6803
+ }
6804
+
6805
+ var _templateObject$1;
6806
+ var NotifyContainer = styled__default.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width: 150px;\n\n .notification-dropdown-select__control {\n min-height: auto;\n background-color: ", ";\n border: none;\n border-radius: 0;\n\n &--is-focused {\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n\n .notification-dropdown-select__value-container {\n & > div {\n padding: 0;\n margin: 0;\n color: ", ";\n }\n & .notification-dropdown-select__single-value,\n & .notification-dropdown-select__placeholder {\n overflow: visible;\n font-weight: lighter;\n }\n }\n }\n }\n\n .notification-dropdown-select__indicators {\n padding: 0 !important;\n .notification-dropdown-select__dropdown-indicator {\n color: ", ";\n }\n }\n\n .notification-dropdown-select__menu {\n border-radius: 0;\n\n & > .notification-dropdown-select__menu-list {\n border-radius: 0;\n\n & > .notification-dropdown-select__option {\n font-weight: bold;\n &:last-child {\n border-bottom: none;\n }\n\n &.notification-dropdown-select__option--is-focused {\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected {\n color: ", ";\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected.notification-dropdown-select__option--is-focused {\n border-style: hidden;\n }\n }\n }\n }\n"])), function (props) {
6757
6807
  return props.theme.colors.ntrlMin;
6758
6808
  }, function (props) {
6759
6809
  return props.theme.colors.base;
@@ -6848,7 +6898,10 @@
6848
6898
  customErrorMessage: customErrorMessage,
6849
6899
  customErrorHandler: customErrorHandler,
6850
6900
  renderCustomLoader: function renderCustomLoader() {
6851
- return /*#__PURE__*/React__default.createElement(EllipsisLoader, null);
6901
+ return /*#__PURE__*/React__default.createElement(LuxityLoader, {
6902
+ height: "40px",
6903
+ width: "95%"
6904
+ });
6852
6905
  },
6853
6906
  errorMessageInterpreter: interpretErrorMessage
6854
6907
  }, /*#__PURE__*/React__default.createElement(LuxityPageReadyContext.Provider, {
@@ -7008,7 +7061,10 @@
7008
7061
  }
7009
7062
  }, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
7010
7063
  className: "notification-dropdown-label"
7011
- }, "Notification:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
7064
+ }, "Notification:\xA0"), updating ? /*#__PURE__*/React__default.createElement(LuxityLoader, {
7065
+ height: "20px",
7066
+ width: "95%"
7067
+ }) : /*#__PURE__*/React__default.createElement(index$1, {
7012
7068
  isMulti: false,
7013
7069
  isSearchable: false,
7014
7070
  components: {
package/Notify.js CHANGED
File without changes
File without changes
File without changes
package/PrimaryButton.js CHANGED
File without changes
package/README.md CHANGED
@@ -26,6 +26,7 @@
26
26
  - Tooltip
27
27
  - CheckBoxButton
28
28
  - GenderSelector
29
+ - LuxityLoader
29
30
 
30
31
  ## Elements (simple Styled Components)
31
32
  - Buttons
@@ -73,6 +74,8 @@
73
74
  - PointerDown
74
75
  - Search
75
76
  - Shoes
77
+ - LuxityArrowLeft
78
+ - LuxityArrowRight
76
79
 
77
80
  ## Commands
78
81
  - `yarn` - install npm dependencies
package/RadioButtons.js CHANGED
File without changes
package/RangeSlider.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes