@bonlineza/luxity-lib 2.39.6 → 2.39.7

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 (92) hide show
  1. package/Accordion.js +352 -342
  2. package/AddInterest.js +3141 -3135
  3. package/AddProductInterest.js +7584 -1011
  4. package/BrandSelector.js +861 -854
  5. package/Checkbox.js +250 -240
  6. package/CheckboxButton.js +236 -229
  7. package/CommunicationPreferenceOptionsRenderer.js +568 -560
  8. package/CommunicationPreferenceSection.js +659 -651
  9. package/CommunicationPreferences.js +2402 -2394
  10. package/ConditionSelector.js +859 -852
  11. package/CountryCodeSelect.js +6650 -79
  12. package/CurrencyInputFormatter.js +96 -86
  13. package/CurrencySelect.js +227 -219
  14. package/DropdownSelector.js +6820 -211
  15. package/GALink.js +51 -43
  16. package/GenderSelector.js +362 -355
  17. package/GraphQLDropdownSelector.js +11878 -5308
  18. package/GraphQLMultiSelector.js +601 -593
  19. package/IconHeader.js +126 -118
  20. package/IconWrapper.js +25 -17
  21. package/InterestCatSelector.js +432 -424
  22. package/InterestItem.js +470 -462
  23. package/Interests.js +11286 -4716
  24. package/InterestsSubheading.js +41 -33
  25. package/InvertedTextButton.js +175 -167
  26. package/LuxityAppSideNav.js +189 -181
  27. package/LuxityDesktopHeader.js +1363 -1355
  28. package/LuxityFooter.js +2236 -2228
  29. package/LuxityGraphQLDropdownSelector.js +11963 -5393
  30. package/LuxityGraphQLMultiselector.js +785 -778
  31. package/LuxityMobileHeader.js +1794 -1786
  32. package/LuxityPageReady.js +209 -199
  33. package/LuxityProductInterestItem.js +367 -359
  34. package/LuxitySideNav.js +673 -665
  35. package/MaterialSelector.js +11993 -5423
  36. package/ModelSelector.js +11993 -5423
  37. package/NotificationDropDown.js +7029 -459
  38. package/Notify.js +32 -20
  39. package/OutlinePrimaryButton.js +142 -134
  40. package/PriceRangeSelector.js +1270 -1264
  41. package/PrimaryButton.js +137 -129
  42. package/RadioButtons.js +318 -308
  43. package/RangeSlider.js +1039 -1033
  44. package/RareStepFooter.js +264 -257
  45. package/RareStepHeader.js +808 -801
  46. package/ReactSelectWrapper.js +6604 -33
  47. package/SecondaryButton.js +152 -144
  48. package/ShoeSizeRangeSelector.js +1153 -1147
  49. package/ShoeSizeSelector.js +1154 -1146
  50. package/SimpleErrorBoundary.js +138 -130
  51. package/StyleSelector.js +861 -854
  52. package/TextButton.js +143 -135
  53. package/Tooltip.js +184 -176
  54. package/Tracking.js +25 -15
  55. package/WrapperButton.js +58 -50
  56. package/build/bundle.css +1 -1
  57. package/build/bundle.js +17236 -10632
  58. package/build/constants.js +45 -32
  59. package/package.json +2 -2
  60. package/svg/Accessories.js +42 -34
  61. package/svg/Account.js +38 -30
  62. package/svg/Add.js +39 -31
  63. package/svg/ArrowRight.js +36 -28
  64. package/svg/Bags.js +48 -40
  65. package/svg/BurgerMenu.js +32 -24
  66. package/svg/Calendar.js +106 -98
  67. package/svg/CalendarCircled.js +108 -100
  68. package/svg/CheckCircled.js +40 -32
  69. package/svg/Close.js +37 -29
  70. package/svg/Clothing.js +44 -36
  71. package/svg/Dot.js +40 -32
  72. package/svg/Edit.js +35 -27
  73. package/svg/Eye.js +36 -28
  74. package/svg/FileAttach.js +36 -28
  75. package/svg/FileAttachCircled.js +38 -30
  76. package/svg/Jewellery.js +57 -49
  77. package/svg/LightBulb.js +66 -58
  78. package/svg/Logo.js +140 -132
  79. package/svg/LuxityMenu.js +36 -28
  80. package/svg/Minus.js +37 -29
  81. package/svg/MobileAvatar.js +36 -28
  82. package/svg/MyOrder.js +44 -36
  83. package/svg/MyPayment.js +44 -36
  84. package/svg/MyProfile.js +52 -44
  85. package/svg/MySale.js +39 -31
  86. package/svg/Notification.js +38 -30
  87. package/svg/PointerDown.js +36 -28
  88. package/svg/Search.js +35 -27
  89. package/svg/Shoes.js +45 -37
  90. package/svg/SvgWrapper.js +21 -13
  91. package/svg/Trash.js +40 -32
  92. package/svg/Watches.js +55 -47
@@ -1,163 +1,171 @@
1
- import React from 'react';
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
- function _classCallCheck(instance, Constructor) {
4
- if (!(instance instanceof Constructor)) {
5
- throw new TypeError("Cannot call a class as a function");
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
- 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);
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
- 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");
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
- subClass.prototype = Object.create(superClass && superClass.prototype, {
34
- constructor: {
35
- value: subClass,
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
- 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;
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 _assertThisInitialized(self) {
75
- if (self === void 0) {
76
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
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
- 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");
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
- return _assertThisInitialized(self);
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
- function _createSuper(Derived) {
93
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
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
- return function _createSuperInternal() {
96
- var Super = _getPrototypeOf(Derived),
97
- result;
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
- if (hasNativeReflectConstruct) {
100
- var NewTarget = _getPrototypeOf(this).constructor;
85
+ return self;
86
+ }
101
87
 
102
- result = Reflect.construct(Super, arguments, NewTarget);
103
- } else {
104
- result = Super.apply(this, arguments);
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 _possibleConstructorReturn(this, result);
108
- };
109
- }
95
+ return _assertThisInitialized(self);
96
+ }
110
97
 
111
- var SimpleErrorBoundary = /*#__PURE__*/function (_React$Component) {
112
- _inherits(SimpleErrorBoundary, _React$Component);
98
+ function _createSuper(Derived) {
99
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
113
100
 
114
- var _super = _createSuper(SimpleErrorBoundary);
101
+ return function _createSuperInternal() {
102
+ var Super = _getPrototypeOf(Derived),
103
+ result;
115
104
 
116
- function SimpleErrorBoundary(props) {
117
- var _this;
105
+ if (hasNativeReflectConstruct) {
106
+ var NewTarget = _getPrototypeOf(this).constructor;
118
107
 
119
- _classCallCheck(this, SimpleErrorBoundary);
108
+ result = Reflect.construct(Super, arguments, NewTarget);
109
+ } else {
110
+ result = Super.apply(this, arguments);
111
+ }
120
112
 
121
- _this = _super.call(this, props);
122
- _this.state = {
123
- hasError: false
113
+ return _possibleConstructorReturn(this, result);
124
114
  };
125
- return _this;
126
115
  }
127
116
 
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);
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
- 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
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
- return SimpleErrorBoundary;
155
- }(React.Component);
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.defaultProps = {
158
- errorMessage: 'Something went wrong',
159
- errorLogger: null,
160
- showMessageOnError: true
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
- export default SimpleErrorBoundary;
171
+ })));