@bonlineza/luxity-lib 2.39.4 → 2.39.6

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 (96) hide show
  1. package/Accordion.js +342 -352
  2. package/AddInterest.js +3109 -3068
  3. package/AddProductInterest.js +999 -7572
  4. package/BrandSelector.js +854 -861
  5. package/Checkbox.js +240 -250
  6. package/CheckboxButton.js +229 -236
  7. package/CommunicationPreferenceOptionsRenderer.js +560 -568
  8. package/CommunicationPreferenceSection.js +651 -659
  9. package/CommunicationPreferences.js +2394 -2402
  10. package/ConditionSelector.js +852 -859
  11. package/CountryCodeSelect.js +79 -6650
  12. package/CurrencyInputFormatter.js +86 -96
  13. package/CurrencySelect.js +219 -227
  14. package/DropdownSelector.js +212 -6821
  15. package/GALink.js +43 -51
  16. package/GenderSelector.js +355 -362
  17. package/GraphQLDropdownSelector.js +5308 -11832
  18. package/GraphQLMultiSelector.js +593 -601
  19. package/IconHeader.js +118 -126
  20. package/IconWrapper.js +17 -25
  21. package/InterestCatSelector.js +424 -389
  22. package/InterestItem.js +462 -469
  23. package/Interests.js +4719 -11243
  24. package/InterestsSubheading.js +33 -41
  25. package/InvertedTextButton.js +167 -175
  26. package/LuxityAppSideNav.js +181 -189
  27. package/LuxityDesktopHeader.js +1355 -1363
  28. package/LuxityFooter.js +2228 -2236
  29. package/LuxityGraphQLDropdownSelector.js +5395 -11919
  30. package/LuxityGraphQLMultiselector.js +778 -785
  31. package/LuxityMobileHeader.js +1786 -1794
  32. package/LuxityPageReady.js +199 -209
  33. package/LuxityProductInterestItem.js +359 -367
  34. package/LuxitySideNav.js +665 -673
  35. package/MaterialSelector.js +5430 -11954
  36. package/ModelSelector.js +5430 -11954
  37. package/NotificationDropDown.js +459 -7030
  38. package/Notify.js +20 -32
  39. package/OutlinePrimaryButton.js +134 -142
  40. package/PriceRangeSelector.js +1264 -1265
  41. package/PrimaryButton.js +129 -137
  42. package/RadioButtons.js +308 -318
  43. package/RangeSlider.js +1033 -1039
  44. package/RareStepFooter.js +257 -264
  45. package/RareStepHeader.js +801 -808
  46. package/ReactSelectWrapper.js +33 -6604
  47. package/SecondaryButton.js +144 -152
  48. package/ShoeSizeRangeSelector.js +1147 -1153
  49. package/ShoeSizeSelector.js +1146 -1154
  50. package/SimpleErrorBoundary.js +130 -138
  51. package/StyleSelector.js +854 -861
  52. package/TestComponent.js +15 -0
  53. package/TextButton.js +135 -143
  54. package/Tooltip.js +176 -184
  55. package/Tracking.js +15 -25
  56. package/WrapperButton.js +50 -58
  57. package/build/CountryCodeSelect/index.js +18 -0
  58. package/build/ReactSelectWrapper/index.js +34 -0
  59. package/build/bundle.css +1 -1
  60. package/build/bundle.js +10634 -17192
  61. package/build/constants.js +32 -43
  62. package/package.json +2 -2
  63. package/postcss.config.js +6 -0
  64. package/svg/Accessories.js +34 -42
  65. package/svg/Account.js +30 -38
  66. package/svg/Add.js +31 -39
  67. package/svg/ArrowRight.js +28 -36
  68. package/svg/Bags.js +40 -48
  69. package/svg/BurgerMenu.js +24 -32
  70. package/svg/Calendar.js +98 -106
  71. package/svg/CalendarCircled.js +100 -108
  72. package/svg/CheckCircled.js +32 -40
  73. package/svg/Close.js +29 -37
  74. package/svg/Clothing.js +36 -44
  75. package/svg/Dot.js +32 -40
  76. package/svg/Edit.js +27 -35
  77. package/svg/Eye.js +28 -36
  78. package/svg/FileAttach.js +28 -36
  79. package/svg/FileAttachCircled.js +30 -38
  80. package/svg/Jewellery.js +56 -0
  81. package/svg/LightBulb.js +58 -66
  82. package/svg/Logo.js +132 -140
  83. package/svg/LuxityMenu.js +28 -36
  84. package/svg/Minus.js +29 -37
  85. package/svg/MobileAvatar.js +28 -36
  86. package/svg/MyOrder.js +36 -44
  87. package/svg/MyPayment.js +36 -44
  88. package/svg/MyProfile.js +44 -52
  89. package/svg/MySale.js +31 -39
  90. package/svg/Notification.js +30 -38
  91. package/svg/PointerDown.js +28 -36
  92. package/svg/Search.js +27 -35
  93. package/svg/Shoes.js +37 -45
  94. package/svg/SvgWrapper.js +13 -21
  95. package/svg/Trash.js +32 -40
  96. package/svg/Watches.js +47 -55
@@ -1,171 +1,163 @@
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.SimpleErrorBoundary = factory(global.React));
5
- }(this, (function (React) { 'use strict';
1
+ import React from 'react';
6
2
 
7
- React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
8
-
9
- function _classCallCheck(instance, Constructor) {
10
- if (!(instance instanceof Constructor)) {
11
- throw new TypeError("Cannot call a class as a function");
12
- }
3
+ function _classCallCheck(instance, Constructor) {
4
+ if (!(instance instanceof Constructor)) {
5
+ throw new TypeError("Cannot call a class as a function");
13
6
  }
14
-
15
- function _defineProperties(target, props) {
16
- for (var i = 0; i < props.length; i++) {
17
- var descriptor = props[i];
18
- descriptor.enumerable = descriptor.enumerable || false;
19
- descriptor.configurable = true;
20
- if ("value" in descriptor) descriptor.writable = true;
21
- Object.defineProperty(target, descriptor.key, descriptor);
22
- }
7
+ }
8
+
9
+ function _defineProperties(target, props) {
10
+ for (var i = 0; i < props.length; i++) {
11
+ var descriptor = props[i];
12
+ descriptor.enumerable = descriptor.enumerable || false;
13
+ descriptor.configurable = true;
14
+ if ("value" in descriptor) descriptor.writable = true;
15
+ Object.defineProperty(target, descriptor.key, descriptor);
23
16
  }
24
-
25
- function _createClass(Constructor, protoProps, staticProps) {
26
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
- if (staticProps) _defineProperties(Constructor, staticProps);
28
- Object.defineProperty(Constructor, "prototype", {
29
- writable: false
30
- });
31
- return Constructor;
17
+ }
18
+
19
+ function _createClass(Constructor, protoProps, staticProps) {
20
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
21
+ if (staticProps) _defineProperties(Constructor, staticProps);
22
+ Object.defineProperty(Constructor, "prototype", {
23
+ writable: false
24
+ });
25
+ return Constructor;
26
+ }
27
+
28
+ function _inherits(subClass, superClass) {
29
+ if (typeof superClass !== "function" && superClass !== null) {
30
+ throw new TypeError("Super expression must either be null or a function");
32
31
  }
33
32
 
34
- function _inherits(subClass, superClass) {
35
- if (typeof superClass !== "function" && superClass !== null) {
36
- throw new TypeError("Super expression must either be null or a function");
33
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
34
+ constructor: {
35
+ value: subClass,
36
+ writable: true,
37
+ configurable: true
37
38
  }
39
+ });
40
+ Object.defineProperty(subClass, "prototype", {
41
+ writable: false
42
+ });
43
+ if (superClass) _setPrototypeOf(subClass, superClass);
44
+ }
45
+
46
+ function _getPrototypeOf(o) {
47
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
48
+ return o.__proto__ || Object.getPrototypeOf(o);
49
+ };
50
+ return _getPrototypeOf(o);
51
+ }
38
52
 
39
- subClass.prototype = Object.create(superClass && superClass.prototype, {
40
- constructor: {
41
- value: subClass,
42
- writable: true,
43
- configurable: true
44
- }
45
- });
46
- Object.defineProperty(subClass, "prototype", {
47
- writable: false
48
- });
49
- if (superClass) _setPrototypeOf(subClass, superClass);
53
+ function _setPrototypeOf(o, p) {
54
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
55
+ o.__proto__ = p;
56
+ return o;
57
+ };
58
+ return _setPrototypeOf(o, p);
59
+ }
60
+
61
+ function _isNativeReflectConstruct() {
62
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
63
+ if (Reflect.construct.sham) return false;
64
+ if (typeof Proxy === "function") return true;
65
+
66
+ try {
67
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
68
+ return true;
69
+ } catch (e) {
70
+ return false;
50
71
  }
72
+ }
51
73
 
52
- function _getPrototypeOf(o) {
53
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
54
- return o.__proto__ || Object.getPrototypeOf(o);
55
- };
56
- return _getPrototypeOf(o);
74
+ function _assertThisInitialized(self) {
75
+ if (self === void 0) {
76
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
57
77
  }
58
78
 
59
- function _setPrototypeOf(o, p) {
60
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
61
- o.__proto__ = p;
62
- return o;
63
- };
64
- return _setPrototypeOf(o, p);
79
+ return self;
80
+ }
81
+
82
+ function _possibleConstructorReturn(self, call) {
83
+ if (call && (typeof call === "object" || typeof call === "function")) {
84
+ return call;
85
+ } else if (call !== void 0) {
86
+ throw new TypeError("Derived constructors may only return object or undefined");
65
87
  }
66
88
 
67
- function _isNativeReflectConstruct() {
68
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
69
- if (Reflect.construct.sham) return false;
70
- if (typeof Proxy === "function") return true;
89
+ return _assertThisInitialized(self);
90
+ }
71
91
 
72
- try {
73
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
74
- return true;
75
- } catch (e) {
76
- return false;
77
- }
78
- }
92
+ function _createSuper(Derived) {
93
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
79
94
 
80
- function _assertThisInitialized(self) {
81
- if (self === void 0) {
82
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
83
- }
95
+ return function _createSuperInternal() {
96
+ var Super = _getPrototypeOf(Derived),
97
+ result;
84
98
 
85
- return self;
86
- }
99
+ if (hasNativeReflectConstruct) {
100
+ var NewTarget = _getPrototypeOf(this).constructor;
87
101
 
88
- function _possibleConstructorReturn(self, call) {
89
- if (call && (typeof call === "object" || typeof call === "function")) {
90
- return call;
91
- } else if (call !== void 0) {
92
- throw new TypeError("Derived constructors may only return object or undefined");
102
+ result = Reflect.construct(Super, arguments, NewTarget);
103
+ } else {
104
+ result = Super.apply(this, arguments);
93
105
  }
94
106
 
95
- return _assertThisInitialized(self);
96
- }
107
+ return _possibleConstructorReturn(this, result);
108
+ };
109
+ }
97
110
 
98
- function _createSuper(Derived) {
99
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
111
+ var SimpleErrorBoundary = /*#__PURE__*/function (_React$Component) {
112
+ _inherits(SimpleErrorBoundary, _React$Component);
100
113
 
101
- return function _createSuperInternal() {
102
- var Super = _getPrototypeOf(Derived),
103
- result;
114
+ var _super = _createSuper(SimpleErrorBoundary);
104
115
 
105
- if (hasNativeReflectConstruct) {
106
- var NewTarget = _getPrototypeOf(this).constructor;
116
+ function SimpleErrorBoundary(props) {
117
+ var _this;
107
118
 
108
- result = Reflect.construct(Super, arguments, NewTarget);
109
- } else {
110
- result = Super.apply(this, arguments);
111
- }
119
+ _classCallCheck(this, SimpleErrorBoundary);
112
120
 
113
- return _possibleConstructorReturn(this, result);
121
+ _this = _super.call(this, props);
122
+ _this.state = {
123
+ hasError: false
114
124
  };
125
+ return _this;
115
126
  }
116
127
 
117
- var SimpleErrorBoundary = /*#__PURE__*/function (_React$Component) {
118
- _inherits(SimpleErrorBoundary, _React$Component);
119
-
120
- var _super = _createSuper(SimpleErrorBoundary);
121
-
122
- function SimpleErrorBoundary(props) {
123
- var _this;
124
-
125
- _classCallCheck(this, SimpleErrorBoundary);
126
-
127
- _this = _super.call(this, props);
128
- _this.state = {
129
- hasError: false
130
- };
131
- return _this;
128
+ _createClass(SimpleErrorBoundary, [{
129
+ key: "componentDidCatch",
130
+ value: function componentDidCatch(error, errorInfo) {
131
+ // You can also log the error to an error reporting service
132
+ if (this.props.errorLogger) this.props.errorLogger(error, errorInfo);
132
133
  }
133
-
134
- _createClass(SimpleErrorBoundary, [{
135
- key: "componentDidCatch",
136
- value: function componentDidCatch(error, errorInfo) {
137
- // You can also log the error to an error reporting service
138
- if (this.props.errorLogger) this.props.errorLogger(error, errorInfo);
134
+ }, {
135
+ key: "render",
136
+ value: function render() {
137
+ if (this.state.hasError) {
138
+ // You can render any custom fallback UI
139
+ return this.props.showMessageOnError ? /*#__PURE__*/React.createElement("h1", null, this.props.errorMessage) : null;
139
140
  }
140
- }, {
141
- key: "render",
142
- value: function render() {
143
- if (this.state.hasError) {
144
- // You can render any custom fallback UI
145
- return this.props.showMessageOnError ? /*#__PURE__*/React.createElement("h1", null, this.props.errorMessage) : null;
146
- }
147
-
148
- return this.props.children;
149
- }
150
- }], [{
151
- key: "getDerivedStateFromError",
152
- value: function getDerivedStateFromError() {
153
- // Update state so the next render will show the fallback UI.
154
- return {
155
- hasError: true
156
- };
157
- }
158
- }]);
159
141
 
160
- return SimpleErrorBoundary;
161
- }(React.Component);
162
-
163
- SimpleErrorBoundary.defaultProps = {
164
- errorMessage: 'Something went wrong',
165
- errorLogger: null,
166
- showMessageOnError: true
167
- };
142
+ return this.props.children;
143
+ }
144
+ }], [{
145
+ key: "getDerivedStateFromError",
146
+ value: function getDerivedStateFromError() {
147
+ // Update state so the next render will show the fallback UI.
148
+ return {
149
+ hasError: true
150
+ };
151
+ }
152
+ }]);
168
153
 
169
154
  return SimpleErrorBoundary;
155
+ }(React.Component);
156
+
157
+ SimpleErrorBoundary.defaultProps = {
158
+ errorMessage: 'Something went wrong',
159
+ errorLogger: null,
160
+ showMessageOnError: true
161
+ };
170
162
 
171
- })));
163
+ export default SimpleErrorBoundary;