@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.
- package/Accordion.js +342 -352
- package/AddInterest.js +3109 -3068
- package/AddProductInterest.js +999 -7572
- package/BrandSelector.js +854 -861
- package/Checkbox.js +240 -250
- package/CheckboxButton.js +229 -236
- package/CommunicationPreferenceOptionsRenderer.js +560 -568
- package/CommunicationPreferenceSection.js +651 -659
- package/CommunicationPreferences.js +2394 -2402
- package/ConditionSelector.js +852 -859
- package/CountryCodeSelect.js +79 -6650
- package/CurrencyInputFormatter.js +86 -96
- package/CurrencySelect.js +219 -227
- package/DropdownSelector.js +212 -6821
- package/GALink.js +43 -51
- package/GenderSelector.js +355 -362
- package/GraphQLDropdownSelector.js +5308 -11832
- package/GraphQLMultiSelector.js +593 -601
- package/IconHeader.js +118 -126
- package/IconWrapper.js +17 -25
- package/InterestCatSelector.js +424 -389
- package/InterestItem.js +462 -469
- package/Interests.js +4719 -11243
- package/InterestsSubheading.js +33 -41
- package/InvertedTextButton.js +167 -175
- package/LuxityAppSideNav.js +181 -189
- package/LuxityDesktopHeader.js +1355 -1363
- package/LuxityFooter.js +2228 -2236
- package/LuxityGraphQLDropdownSelector.js +5395 -11919
- package/LuxityGraphQLMultiselector.js +778 -785
- package/LuxityMobileHeader.js +1786 -1794
- package/LuxityPageReady.js +199 -209
- package/LuxityProductInterestItem.js +359 -367
- package/LuxitySideNav.js +665 -673
- package/MaterialSelector.js +5430 -11954
- package/ModelSelector.js +5430 -11954
- package/NotificationDropDown.js +459 -7030
- package/Notify.js +20 -32
- package/OutlinePrimaryButton.js +134 -142
- package/PriceRangeSelector.js +1264 -1265
- package/PrimaryButton.js +129 -137
- package/RadioButtons.js +308 -318
- package/RangeSlider.js +1033 -1039
- package/RareStepFooter.js +257 -264
- package/RareStepHeader.js +801 -808
- package/ReactSelectWrapper.js +33 -6604
- package/SecondaryButton.js +144 -152
- package/ShoeSizeRangeSelector.js +1147 -1153
- package/ShoeSizeSelector.js +1146 -1154
- package/SimpleErrorBoundary.js +130 -138
- package/StyleSelector.js +854 -861
- package/TestComponent.js +15 -0
- package/TextButton.js +135 -143
- package/Tooltip.js +176 -184
- package/Tracking.js +15 -25
- package/WrapperButton.js +50 -58
- package/build/CountryCodeSelect/index.js +18 -0
- package/build/ReactSelectWrapper/index.js +34 -0
- package/build/bundle.css +1 -1
- package/build/bundle.js +10634 -17192
- package/build/constants.js +32 -43
- package/package.json +2 -2
- package/postcss.config.js +6 -0
- package/svg/Accessories.js +34 -42
- package/svg/Account.js +30 -38
- package/svg/Add.js +31 -39
- package/svg/ArrowRight.js +28 -36
- package/svg/Bags.js +40 -48
- package/svg/BurgerMenu.js +24 -32
- package/svg/Calendar.js +98 -106
- package/svg/CalendarCircled.js +100 -108
- package/svg/CheckCircled.js +32 -40
- package/svg/Close.js +29 -37
- package/svg/Clothing.js +36 -44
- package/svg/Dot.js +32 -40
- package/svg/Edit.js +27 -35
- package/svg/Eye.js +28 -36
- package/svg/FileAttach.js +28 -36
- package/svg/FileAttachCircled.js +30 -38
- package/svg/Jewellery.js +56 -0
- package/svg/LightBulb.js +58 -66
- package/svg/Logo.js +132 -140
- package/svg/LuxityMenu.js +28 -36
- package/svg/Minus.js +29 -37
- package/svg/MobileAvatar.js +28 -36
- package/svg/MyOrder.js +36 -44
- package/svg/MyPayment.js +36 -44
- package/svg/MyProfile.js +44 -52
- package/svg/MySale.js +31 -39
- package/svg/Notification.js +30 -38
- package/svg/PointerDown.js +28 -36
- package/svg/Search.js +27 -35
- package/svg/Shoes.js +37 -45
- package/svg/SvgWrapper.js +13 -21
- package/svg/Trash.js +32 -40
- package/svg/Watches.js +47 -55
package/SimpleErrorBoundary.js
CHANGED
|
@@ -1,171 +1,163 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
if (Reflect.construct.sham) return false;
|
|
70
|
-
if (typeof Proxy === "function") return true;
|
|
89
|
+
return _assertThisInitialized(self);
|
|
90
|
+
}
|
|
71
91
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return true;
|
|
75
|
-
} catch (e) {
|
|
76
|
-
return false;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
92
|
+
function _createSuper(Derived) {
|
|
93
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
79
94
|
|
|
80
|
-
function
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
95
|
+
return function _createSuperInternal() {
|
|
96
|
+
var Super = _getPrototypeOf(Derived),
|
|
97
|
+
result;
|
|
84
98
|
|
|
85
|
-
|
|
86
|
-
|
|
99
|
+
if (hasNativeReflectConstruct) {
|
|
100
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
87
101
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
|
96
|
-
}
|
|
107
|
+
return _possibleConstructorReturn(this, result);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
97
110
|
|
|
98
|
-
|
|
99
|
-
|
|
111
|
+
var SimpleErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
112
|
+
_inherits(SimpleErrorBoundary, _React$Component);
|
|
100
113
|
|
|
101
|
-
|
|
102
|
-
var Super = _getPrototypeOf(Derived),
|
|
103
|
-
result;
|
|
114
|
+
var _super = _createSuper(SimpleErrorBoundary);
|
|
104
115
|
|
|
105
|
-
|
|
106
|
-
|
|
116
|
+
function SimpleErrorBoundary(props) {
|
|
117
|
+
var _this;
|
|
107
118
|
|
|
108
|
-
|
|
109
|
-
} else {
|
|
110
|
-
result = Super.apply(this, arguments);
|
|
111
|
-
}
|
|
119
|
+
_classCallCheck(this, SimpleErrorBoundary);
|
|
112
120
|
|
|
113
|
-
|
|
121
|
+
_this = _super.call(this, props);
|
|
122
|
+
_this.state = {
|
|
123
|
+
hasError: false
|
|
114
124
|
};
|
|
125
|
+
return _this;
|
|
115
126
|
}
|
|
116
127
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
// You can
|
|
138
|
-
|
|
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
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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;
|