@bonlineza/luxity-lib 2.39.6 → 2.39.8
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 +352 -342
- package/AddInterest.js +3179 -3136
- package/AddProductInterest.js +7584 -1011
- package/BrandSelector.js +861 -854
- package/Checkbox.js +250 -240
- package/CheckboxButton.js +236 -229
- package/CommunicationPreferenceOptionsRenderer.js +568 -560
- package/CommunicationPreferenceSection.js +659 -651
- package/CommunicationPreferences.js +2402 -2394
- package/ConditionSelector.js +859 -852
- package/CountryCodeSelect.js +6650 -79
- package/CurrencyInputFormatter.js +96 -86
- package/CurrencySelect.js +227 -219
- package/DropdownSelector.js +6820 -211
- package/GALink.js +51 -43
- package/GenderSelector.js +362 -355
- package/GraphQLDropdownSelector.js +11914 -5307
- package/GraphQLMultiSelector.js +601 -593
- package/IconHeader.js +126 -118
- package/IconWrapper.js +25 -17
- package/InterestCatSelector.js +432 -424
- package/InterestItem.js +470 -462
- package/Interests.js +11324 -4717
- package/InterestsSubheading.js +41 -33
- package/InvertedTextButton.js +175 -167
- package/LuxityAppSideNav.js +189 -181
- package/LuxityDesktopHeader.js +1363 -1355
- package/LuxityFooter.js +2236 -2228
- package/LuxityGraphQLDropdownSelector.js +11999 -5392
- package/LuxityGraphQLMultiselector.js +785 -778
- package/LuxityMobileHeader.js +1794 -1786
- package/LuxityPageReady.js +209 -199
- package/LuxityProductInterestItem.js +367 -359
- package/LuxitySideNav.js +673 -665
- package/MaterialSelector.js +12029 -5422
- package/ModelSelector.js +12029 -5422
- package/NotificationDropDown.js +7029 -459
- package/Notify.js +32 -20
- package/OutlinePrimaryButton.js +142 -134
- package/PriceRangeSelector.js +1277 -1264
- package/PrimaryButton.js +137 -129
- package/RadioButtons.js +318 -308
- package/RangeSlider.js +1039 -1033
- package/RareStepFooter.js +264 -257
- package/RareStepHeader.js +808 -801
- package/ReactSelectWrapper.js +6604 -33
- package/SecondaryButton.js +152 -144
- package/ShoeSizeRangeSelector.js +1153 -1147
- package/ShoeSizeSelector.js +1198 -1146
- package/SimpleErrorBoundary.js +138 -130
- package/StyleSelector.js +861 -854
- package/TextButton.js +143 -135
- package/Tooltip.js +184 -176
- package/Tracking.js +25 -15
- package/WrapperButton.js +58 -50
- package/build/bundle.css +1 -1
- package/build/bundle.js +17272 -10631
- package/build/constants.js +45 -32
- package/package.json +3 -2
- package/svg/Accessories.js +42 -34
- package/svg/Account.js +38 -30
- package/svg/Add.js +39 -31
- package/svg/ArrowRight.js +36 -28
- package/svg/Bags.js +48 -40
- package/svg/BurgerMenu.js +32 -24
- package/svg/Calendar.js +106 -98
- package/svg/CalendarCircled.js +108 -100
- package/svg/CheckCircled.js +40 -32
- package/svg/Close.js +37 -29
- package/svg/Clothing.js +44 -36
- package/svg/Dot.js +40 -32
- package/svg/Edit.js +35 -27
- package/svg/Eye.js +36 -28
- package/svg/FileAttach.js +36 -28
- package/svg/FileAttachCircled.js +38 -30
- package/svg/Jewellery.js +57 -49
- package/svg/LightBulb.js +66 -58
- package/svg/Logo.js +140 -132
- package/svg/LuxityMenu.js +36 -28
- package/svg/Minus.js +37 -29
- package/svg/MobileAvatar.js +36 -28
- package/svg/MyOrder.js +44 -36
- package/svg/MyPayment.js +44 -36
- package/svg/MyProfile.js +52 -44
- package/svg/MySale.js +39 -31
- package/svg/Notification.js +38 -30
- package/svg/PointerDown.js +36 -28
- package/svg/Search.js +35 -27
- package/svg/Shoes.js +45 -37
- package/svg/SvgWrapper.js +21 -13
- package/svg/Trash.js +40 -32
- package/svg/Watches.js +55 -47
package/SimpleErrorBoundary.js
CHANGED
|
@@ -1,163 +1,171 @@
|
|
|
1
|
-
|
|
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';
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
}
|
|
6
13
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
}
|
|
16
23
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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");
|
|
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;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
writable: true,
|
|
37
|
-
configurable: true
|
|
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");
|
|
38
37
|
}
|
|
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
|
-
}
|
|
52
38
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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;
|
|
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);
|
|
71
50
|
}
|
|
72
|
-
}
|
|
73
51
|
|
|
74
|
-
function
|
|
75
|
-
|
|
76
|
-
|
|
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);
|
|
77
57
|
}
|
|
78
58
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return
|
|
85
|
-
} else if (call !== void 0) {
|
|
86
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
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);
|
|
87
65
|
}
|
|
88
66
|
|
|
89
|
-
|
|
90
|
-
|
|
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;
|
|
91
71
|
|
|
92
|
-
|
|
93
|
-
|
|
72
|
+
try {
|
|
73
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
74
|
+
return true;
|
|
75
|
+
} catch (e) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
94
79
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
80
|
+
function _assertThisInitialized(self) {
|
|
81
|
+
if (self === void 0) {
|
|
82
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
83
|
+
}
|
|
98
84
|
|
|
99
|
-
|
|
100
|
-
|
|
85
|
+
return self;
|
|
86
|
+
}
|
|
101
87
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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");
|
|
105
93
|
}
|
|
106
94
|
|
|
107
|
-
return
|
|
108
|
-
}
|
|
109
|
-
}
|
|
95
|
+
return _assertThisInitialized(self);
|
|
96
|
+
}
|
|
110
97
|
|
|
111
|
-
|
|
112
|
-
|
|
98
|
+
function _createSuper(Derived) {
|
|
99
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
113
100
|
|
|
114
|
-
|
|
101
|
+
return function _createSuperInternal() {
|
|
102
|
+
var Super = _getPrototypeOf(Derived),
|
|
103
|
+
result;
|
|
115
104
|
|
|
116
|
-
|
|
117
|
-
|
|
105
|
+
if (hasNativeReflectConstruct) {
|
|
106
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
118
107
|
|
|
119
|
-
|
|
108
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
109
|
+
} else {
|
|
110
|
+
result = Super.apply(this, arguments);
|
|
111
|
+
}
|
|
120
112
|
|
|
121
|
-
|
|
122
|
-
_this.state = {
|
|
123
|
-
hasError: false
|
|
113
|
+
return _possibleConstructorReturn(this, result);
|
|
124
114
|
};
|
|
125
|
-
return _this;
|
|
126
115
|
}
|
|
127
116
|
|
|
128
|
-
|
|
129
|
-
|
|
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);
|
|
133
|
-
}
|
|
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;
|
|
140
|
-
}
|
|
117
|
+
var SimpleErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
118
|
+
_inherits(SimpleErrorBoundary, _React$Component);
|
|
141
119
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
|
150
130
|
};
|
|
131
|
+
return _this;
|
|
151
132
|
}
|
|
152
|
-
}]);
|
|
153
133
|
|
|
154
|
-
|
|
155
|
-
|
|
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);
|
|
139
|
+
}
|
|
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
|
+
}]);
|
|
156
159
|
|
|
157
|
-
SimpleErrorBoundary
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
return SimpleErrorBoundary;
|
|
161
|
+
}(React.Component);
|
|
162
|
+
|
|
163
|
+
SimpleErrorBoundary.defaultProps = {
|
|
164
|
+
errorMessage: 'Something went wrong',
|
|
165
|
+
errorLogger: null,
|
|
166
|
+
showMessageOnError: true
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
return SimpleErrorBoundary;
|
|
162
170
|
|
|
163
|
-
|
|
171
|
+
})));
|