@bonlineza/luxity-lib 2.34.1 → 2.34.3
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 +76 -116
- package/AddInterest.js +434 -768
- package/BrandSelector.js +176 -336
- package/Checkbox.js +68 -101
- package/CheckboxButton.js +79 -124
- package/CommunicationPreferenceOptionsRenderer.js +107 -125
- package/CommunicationPreferenceSection.js +114 -134
- package/CommunicationPreferences.js +443 -339
- package/CountryCodeSelect.js +7 -10
- package/CurrencyInputFormatter.js +29 -56
- package/CurrencySelect.js +188 -19
- package/GALink.js +6 -16
- package/GenderSelector.js +88 -142
- package/GraphQLDropdownSelector.js +505 -939
- package/GraphQLMultiSelector.js +141 -274
- package/IconHeader.js +11 -25
- package/IconWrapper.js +3 -7
- package/InterestCatSelector.js +34 -74
- package/InterestItem.js +103 -187
- package/Interests.js +485 -890
- package/InterestsSubheading.js +5 -10
- package/InvertedTextButton.js +27 -63
- package/LuxityAppSideNav.js +18 -21
- package/LuxityDesktopHeader.js +360 -211
- package/LuxityFooter.js +464 -260
- package/LuxityGraphQLDropdownSelector.js +519 -969
- package/LuxityGraphQLMultiselector.js +167 -321
- package/LuxityMobileHeader.js +453 -283
- package/LuxityPageReady.js +74 -136
- package/LuxitySideNav.js +355 -159
- package/MaterialSelector.js +525 -976
- package/ModelSelector.js +525 -976
- package/NotificationDropDown.js +111 -209
- package/Notify.js +0 -1
- package/OutlinePrimaryButton.js +26 -58
- package/PriceRangeSelector.js +168 -281
- package/PrimaryButton.js +26 -58
- package/RadioButtons.js +114 -140
- package/RangeSlider.js +152 -242
- package/RareStepFooter.js +27 -41
- package/RareStepHeader.js +139 -190
- package/ReactSelectWrapper.js +0 -1
- package/SecondaryButton.js +26 -58
- package/ShoeSizeRangeSelector.js +162 -260
- package/ShoeSizeSelector.js +158 -263
- package/SimpleErrorBoundary.js +59 -106
- package/StyleSelector.js +176 -336
- package/TextButton.js +26 -58
- package/Tooltip.js +17 -39
- package/Tracking.js +0 -1
- package/WrapperButton.js +20 -43
- package/build/bundle.css +1 -1
- package/build/bundle.js +1321 -1697
- package/package.json +1 -1
- package/svg/Accessories.js +6 -13
- package/svg/Account.js +6 -13
- package/svg/Add.js +6 -13
- package/svg/ArrowRight.js +6 -13
- package/svg/Bags.js +6 -13
- package/svg/BurgerMenu.js +6 -13
- package/svg/Calendar.js +6 -13
- package/svg/CalendarCircled.js +6 -13
- package/svg/CheckCircled.js +6 -13
- package/svg/Close.js +6 -13
- package/svg/Clothing.js +6 -13
- package/svg/Dot.js +6 -13
- package/svg/Edit.js +6 -13
- package/svg/Eye.js +6 -13
- package/svg/FileAttach.js +6 -13
- package/svg/FileAttachCircled.js +6 -13
- package/svg/LightBulb.js +6 -13
- package/svg/Logo.js +6 -13
- package/svg/LuxityMenu.js +6 -13
- package/svg/Minus.js +6 -13
- package/svg/MobileAvatar.js +6 -13
- package/svg/MyOrder.js +6 -13
- package/svg/MyPayment.js +6 -13
- package/svg/MyProfile.js +8 -14
- package/svg/MySale.js +6 -13
- package/svg/Notification.js +6 -13
- package/svg/PointerDown.js +6 -13
- package/svg/Search.js +6 -13
- package/svg/Shoes.js +6 -13
- package/svg/SvgWrapper.js +3 -7
- package/svg/Trash.js +6 -13
- package/svg/Watches.js +6 -13
package/SimpleErrorBoundary.js
CHANGED
|
@@ -6,132 +6,89 @@
|
|
|
6
6
|
|
|
7
7
|
React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
|
|
8
8
|
|
|
9
|
-
function
|
|
10
|
-
if (
|
|
11
|
-
|
|
12
|
-
}
|
|
9
|
+
function _assertThisInitialized(e) {
|
|
10
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
11
|
+
return e;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
}
|
|
13
|
+
function _callSuper(t, o, e) {
|
|
14
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
23
15
|
}
|
|
24
|
-
|
|
25
|
-
|
|
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;
|
|
16
|
+
function _classCallCheck(a, n) {
|
|
17
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
32
18
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
function _defineProperties(e, r) {
|
|
20
|
+
for (var t = 0; t < r.length; t++) {
|
|
21
|
+
var o = r[t];
|
|
22
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
37
23
|
}
|
|
38
|
-
|
|
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);
|
|
50
24
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
};
|
|
56
|
-
return _getPrototypeOf(o);
|
|
25
|
+
function _createClass(e, r, t) {
|
|
26
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
27
|
+
writable: !1
|
|
28
|
+
}), e;
|
|
57
29
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
30
|
+
function _getPrototypeOf(t) {
|
|
31
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
32
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
33
|
+
}, _getPrototypeOf(t);
|
|
34
|
+
}
|
|
35
|
+
function _inherits(t, e) {
|
|
36
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
37
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
38
|
+
constructor: {
|
|
39
|
+
value: t,
|
|
40
|
+
writable: !0,
|
|
41
|
+
configurable: !0
|
|
42
|
+
}
|
|
43
|
+
}), Object.defineProperty(t, "prototype", {
|
|
44
|
+
writable: !1
|
|
45
|
+
}), e && _setPrototypeOf(t, e);
|
|
65
46
|
}
|
|
66
|
-
|
|
67
47
|
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;
|
|
71
|
-
|
|
72
48
|
try {
|
|
73
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return
|
|
77
|
-
}
|
|
49
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
50
|
+
} catch (t) {}
|
|
51
|
+
return (_isNativeReflectConstruct = function () {
|
|
52
|
+
return !!t;
|
|
53
|
+
})();
|
|
78
54
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
if (
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return self;
|
|
55
|
+
function _possibleConstructorReturn(t, e) {
|
|
56
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
57
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
58
|
+
return _assertThisInitialized(t);
|
|
86
59
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
60
|
+
function _setPrototypeOf(t, e) {
|
|
61
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
62
|
+
return t.__proto__ = e, t;
|
|
63
|
+
}, _setPrototypeOf(t, e);
|
|
64
|
+
}
|
|
65
|
+
function _toPrimitive(t, r) {
|
|
66
|
+
if ("object" != typeof t || !t) return t;
|
|
67
|
+
var e = t[Symbol.toPrimitive];
|
|
68
|
+
if (void 0 !== e) {
|
|
69
|
+
var i = e.call(t, r || "default");
|
|
70
|
+
if ("object" != typeof i) return i;
|
|
71
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
93
72
|
}
|
|
94
|
-
|
|
95
|
-
return _assertThisInitialized(self);
|
|
73
|
+
return ("string" === r ? String : Number)(t);
|
|
96
74
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return function _createSuperInternal() {
|
|
102
|
-
var Super = _getPrototypeOf(Derived),
|
|
103
|
-
result;
|
|
104
|
-
|
|
105
|
-
if (hasNativeReflectConstruct) {
|
|
106
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
107
|
-
|
|
108
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
109
|
-
} else {
|
|
110
|
-
result = Super.apply(this, arguments);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
return _possibleConstructorReturn(this, result);
|
|
114
|
-
};
|
|
75
|
+
function _toPropertyKey(t) {
|
|
76
|
+
var i = _toPrimitive(t, "string");
|
|
77
|
+
return "symbol" == typeof i ? i : i + "";
|
|
115
78
|
}
|
|
116
79
|
|
|
117
80
|
var SimpleErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
118
|
-
_inherits(SimpleErrorBoundary, _React$Component);
|
|
119
|
-
|
|
120
|
-
var _super = _createSuper(SimpleErrorBoundary);
|
|
121
|
-
|
|
122
81
|
function SimpleErrorBoundary(props) {
|
|
123
82
|
var _this;
|
|
124
|
-
|
|
125
83
|
_classCallCheck(this, SimpleErrorBoundary);
|
|
126
|
-
|
|
127
|
-
_this = _super.call(this, props);
|
|
84
|
+
_this = _callSuper(this, SimpleErrorBoundary, [props]);
|
|
128
85
|
_this.state = {
|
|
129
86
|
hasError: false
|
|
130
87
|
};
|
|
131
88
|
return _this;
|
|
132
89
|
}
|
|
133
|
-
|
|
134
|
-
_createClass(SimpleErrorBoundary, [{
|
|
90
|
+
_inherits(SimpleErrorBoundary, _React$Component);
|
|
91
|
+
return _createClass(SimpleErrorBoundary, [{
|
|
135
92
|
key: "componentDidCatch",
|
|
136
93
|
value: function componentDidCatch(error, errorInfo) {
|
|
137
94
|
// You can also log the error to an error reporting service
|
|
@@ -144,7 +101,6 @@
|
|
|
144
101
|
// You can render any custom fallback UI
|
|
145
102
|
return this.props.showMessageOnError ? /*#__PURE__*/React.createElement("h1", null, this.props.errorMessage) : null;
|
|
146
103
|
}
|
|
147
|
-
|
|
148
104
|
return this.props.children;
|
|
149
105
|
}
|
|
150
106
|
}], [{
|
|
@@ -156,10 +112,7 @@
|
|
|
156
112
|
};
|
|
157
113
|
}
|
|
158
114
|
}]);
|
|
159
|
-
|
|
160
|
-
return SimpleErrorBoundary;
|
|
161
115
|
}(React.Component);
|
|
162
|
-
|
|
163
116
|
SimpleErrorBoundary.defaultProps = {
|
|
164
117
|
errorMessage: 'Something went wrong',
|
|
165
118
|
errorLogger: null,
|