@bonlineza/luxity-lib 2.36.1-beta.4 → 2.36.1
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 +116 -76
- package/AddInterest.js +777 -440
- package/AddProductInterest.js +644 -485
- package/BrandSelector.js +336 -176
- package/Checkbox.js +101 -68
- package/CheckboxButton.js +124 -79
- package/CommunicationPreferenceOptionsRenderer.js +169 -159
- package/CommunicationPreferenceSection.js +178 -166
- package/CommunicationPreferences.js +427 -549
- package/ConditionSelector.js +336 -174
- package/CountryCodeSelect.js +10 -7
- package/CurrencyInputFormatter.js +56 -29
- package/CurrencySelect.js +49 -23
- package/DropdownSelector.js +92 -68
- package/GALink.js +16 -6
- package/GenderSelector.js +142 -88
- package/GraphQLDropdownSelector.js +1511 -933
- package/GraphQLMultiSelector.js +274 -141
- package/IconHeader.js +25 -11
- package/IconWrapper.js +7 -3
- package/InterestCatSelector.js +74 -34
- package/InterestItem.js +187 -103
- package/Interests.js +1466 -917
- package/InterestsSubheading.js +10 -5
- package/InvertedTextButton.js +63 -27
- package/LuxityAppSideNav.js +22 -19
- package/LuxityDesktopHeader.js +663 -549
- package/LuxityFooter.js +325 -434
- package/LuxityGraphQLDropdownSelector.js +1543 -949
- package/LuxityGraphQLMultiselector.js +321 -167
- package/LuxityMobileHeader.js +807 -681
- package/LuxityPageReady.js +136 -74
- package/LuxityProductInterestItem.js +175 -97
- package/LuxitySideNav.js +310 -382
- package/MaterialSelector.js +1550 -955
- package/ModelSelector.js +1550 -955
- package/NotificationDropDown.js +221 -122
- package/Notify.js +1 -0
- package/OutlinePrimaryButton.js +58 -26
- package/PriceRangeSelector.js +281 -168
- package/PrimaryButton.js +58 -26
- package/RadioButtons.js +140 -114
- package/RangeSlider.js +242 -152
- package/RareStepFooter.js +41 -27
- package/RareStepHeader.js +190 -139
- package/ReactSelectWrapper.js +1 -0
- package/SecondaryButton.js +58 -26
- package/ShoeSizeRangeSelector.js +260 -162
- package/ShoeSizeSelector.js +263 -158
- package/SimpleErrorBoundary.js +106 -59
- package/StyleSelector.js +336 -176
- package/TextButton.js +58 -26
- package/Tooltip.js +39 -17
- package/Tracking.js +1 -0
- package/WrapperButton.js +43 -20
- package/build/bundle.css +1 -1
- package/build/bundle.js +2973 -2457
- package/package.json +2 -3
- package/svg/Accessories.js +13 -6
- package/svg/Account.js +13 -6
- package/svg/Add.js +13 -6
- package/svg/ArrowRight.js +13 -6
- package/svg/Bags.js +13 -6
- package/svg/BurgerMenu.js +13 -6
- package/svg/Calendar.js +13 -6
- package/svg/CalendarCircled.js +13 -6
- package/svg/CheckCircled.js +13 -6
- package/svg/Close.js +13 -6
- package/svg/Clothing.js +13 -6
- package/svg/Dot.js +13 -6
- package/svg/Edit.js +13 -6
- package/svg/Eye.js +13 -6
- package/svg/FileAttach.js +13 -6
- package/svg/FileAttachCircled.js +13 -6
- package/svg/LightBulb.js +13 -6
- package/svg/Logo.js +13 -6
- package/svg/LuxityMenu.js +13 -6
- package/svg/Minus.js +13 -6
- package/svg/MobileAvatar.js +13 -6
- package/svg/MyOrder.js +13 -6
- package/svg/MyPayment.js +13 -6
- package/svg/MyProfile.js +14 -8
- package/svg/MySale.js +13 -6
- package/svg/Notification.js +13 -6
- package/svg/PointerDown.js +13 -6
- package/svg/Search.js +13 -6
- package/svg/Shoes.js +13 -6
- package/svg/SvgWrapper.js +7 -3
- package/svg/Trash.js +13 -6
- package/svg/Watches.js +13 -6
package/SimpleErrorBoundary.js
CHANGED
|
@@ -6,89 +6,132 @@
|
|
|
6
6
|
|
|
7
7
|
React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
|
|
8
8
|
|
|
9
|
-
function
|
|
10
|
-
if (
|
|
11
|
-
|
|
12
|
-
}
|
|
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));
|
|
15
|
-
}
|
|
16
|
-
function _classCallCheck(a, n) {
|
|
17
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
18
|
-
}
|
|
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);
|
|
9
|
+
function _classCallCheck(instance, Constructor) {
|
|
10
|
+
if (!(instance instanceof Constructor)) {
|
|
11
|
+
throw new TypeError("Cannot call a class as a function");
|
|
23
12
|
}
|
|
24
13
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
+
}
|
|
29
23
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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;
|
|
34
32
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
|
|
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");
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
38
40
|
constructor: {
|
|
39
|
-
value:
|
|
40
|
-
writable:
|
|
41
|
-
configurable:
|
|
41
|
+
value: subClass,
|
|
42
|
+
writable: true,
|
|
43
|
+
configurable: true
|
|
42
44
|
}
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(subClass, "prototype", {
|
|
47
|
+
writable: false
|
|
48
|
+
});
|
|
49
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
46
50
|
}
|
|
51
|
+
|
|
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);
|
|
57
|
+
}
|
|
58
|
+
|
|
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);
|
|
65
|
+
}
|
|
66
|
+
|
|
47
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;
|
|
71
|
+
|
|
48
72
|
try {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return
|
|
53
|
-
}
|
|
54
|
-
}
|
|
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);
|
|
73
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
74
|
+
return true;
|
|
75
|
+
} catch (e) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
59
78
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
79
|
+
|
|
80
|
+
function _assertThisInitialized(self) {
|
|
81
|
+
if (self === void 0) {
|
|
82
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return self;
|
|
64
86
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
87
|
+
|
|
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");
|
|
72
93
|
}
|
|
73
|
-
|
|
94
|
+
|
|
95
|
+
return _assertThisInitialized(self);
|
|
74
96
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
97
|
+
|
|
98
|
+
function _createSuper(Derived) {
|
|
99
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
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
|
+
};
|
|
78
115
|
}
|
|
79
116
|
|
|
80
117
|
var SimpleErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
118
|
+
_inherits(SimpleErrorBoundary, _React$Component);
|
|
119
|
+
|
|
120
|
+
var _super = _createSuper(SimpleErrorBoundary);
|
|
121
|
+
|
|
81
122
|
function SimpleErrorBoundary(props) {
|
|
82
123
|
var _this;
|
|
124
|
+
|
|
83
125
|
_classCallCheck(this, SimpleErrorBoundary);
|
|
84
|
-
|
|
126
|
+
|
|
127
|
+
_this = _super.call(this, props);
|
|
85
128
|
_this.state = {
|
|
86
129
|
hasError: false
|
|
87
130
|
};
|
|
88
131
|
return _this;
|
|
89
132
|
}
|
|
90
|
-
|
|
91
|
-
|
|
133
|
+
|
|
134
|
+
_createClass(SimpleErrorBoundary, [{
|
|
92
135
|
key: "componentDidCatch",
|
|
93
136
|
value: function componentDidCatch(error, errorInfo) {
|
|
94
137
|
// You can also log the error to an error reporting service
|
|
@@ -101,6 +144,7 @@
|
|
|
101
144
|
// You can render any custom fallback UI
|
|
102
145
|
return this.props.showMessageOnError ? /*#__PURE__*/React.createElement("h1", null, this.props.errorMessage) : null;
|
|
103
146
|
}
|
|
147
|
+
|
|
104
148
|
return this.props.children;
|
|
105
149
|
}
|
|
106
150
|
}], [{
|
|
@@ -112,7 +156,10 @@
|
|
|
112
156
|
};
|
|
113
157
|
}
|
|
114
158
|
}]);
|
|
159
|
+
|
|
160
|
+
return SimpleErrorBoundary;
|
|
115
161
|
}(React.Component);
|
|
162
|
+
|
|
116
163
|
SimpleErrorBoundary.defaultProps = {
|
|
117
164
|
errorMessage: 'Something went wrong',
|
|
118
165
|
errorLogger: null,
|