@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.
Files changed (96) hide show
  1. package/Accordion.js +342 -352
  2. package/AddInterest.js +3109 -3068
  3. package/AddProductInterest.js +999 -7572
  4. package/BrandSelector.js +854 -861
  5. package/Checkbox.js +240 -250
  6. package/CheckboxButton.js +229 -236
  7. package/CommunicationPreferenceOptionsRenderer.js +560 -568
  8. package/CommunicationPreferenceSection.js +651 -659
  9. package/CommunicationPreferences.js +2394 -2402
  10. package/ConditionSelector.js +852 -859
  11. package/CountryCodeSelect.js +79 -6650
  12. package/CurrencyInputFormatter.js +86 -96
  13. package/CurrencySelect.js +219 -227
  14. package/DropdownSelector.js +212 -6821
  15. package/GALink.js +43 -51
  16. package/GenderSelector.js +355 -362
  17. package/GraphQLDropdownSelector.js +5308 -11832
  18. package/GraphQLMultiSelector.js +593 -601
  19. package/IconHeader.js +118 -126
  20. package/IconWrapper.js +17 -25
  21. package/InterestCatSelector.js +424 -389
  22. package/InterestItem.js +462 -469
  23. package/Interests.js +4719 -11243
  24. package/InterestsSubheading.js +33 -41
  25. package/InvertedTextButton.js +167 -175
  26. package/LuxityAppSideNav.js +181 -189
  27. package/LuxityDesktopHeader.js +1355 -1363
  28. package/LuxityFooter.js +2228 -2236
  29. package/LuxityGraphQLDropdownSelector.js +5395 -11919
  30. package/LuxityGraphQLMultiselector.js +778 -785
  31. package/LuxityMobileHeader.js +1786 -1794
  32. package/LuxityPageReady.js +199 -209
  33. package/LuxityProductInterestItem.js +359 -367
  34. package/LuxitySideNav.js +665 -673
  35. package/MaterialSelector.js +5430 -11954
  36. package/ModelSelector.js +5430 -11954
  37. package/NotificationDropDown.js +459 -7030
  38. package/Notify.js +20 -32
  39. package/OutlinePrimaryButton.js +134 -142
  40. package/PriceRangeSelector.js +1264 -1265
  41. package/PrimaryButton.js +129 -137
  42. package/RadioButtons.js +308 -318
  43. package/RangeSlider.js +1033 -1039
  44. package/RareStepFooter.js +257 -264
  45. package/RareStepHeader.js +801 -808
  46. package/ReactSelectWrapper.js +33 -6604
  47. package/SecondaryButton.js +144 -152
  48. package/ShoeSizeRangeSelector.js +1147 -1153
  49. package/ShoeSizeSelector.js +1146 -1154
  50. package/SimpleErrorBoundary.js +130 -138
  51. package/StyleSelector.js +854 -861
  52. package/TestComponent.js +15 -0
  53. package/TextButton.js +135 -143
  54. package/Tooltip.js +176 -184
  55. package/Tracking.js +15 -25
  56. package/WrapperButton.js +50 -58
  57. package/build/CountryCodeSelect/index.js +18 -0
  58. package/build/ReactSelectWrapper/index.js +34 -0
  59. package/build/bundle.css +1 -1
  60. package/build/bundle.js +10634 -17192
  61. package/build/constants.js +32 -43
  62. package/package.json +2 -2
  63. package/postcss.config.js +6 -0
  64. package/svg/Accessories.js +34 -42
  65. package/svg/Account.js +30 -38
  66. package/svg/Add.js +31 -39
  67. package/svg/ArrowRight.js +28 -36
  68. package/svg/Bags.js +40 -48
  69. package/svg/BurgerMenu.js +24 -32
  70. package/svg/Calendar.js +98 -106
  71. package/svg/CalendarCircled.js +100 -108
  72. package/svg/CheckCircled.js +32 -40
  73. package/svg/Close.js +29 -37
  74. package/svg/Clothing.js +36 -44
  75. package/svg/Dot.js +32 -40
  76. package/svg/Edit.js +27 -35
  77. package/svg/Eye.js +28 -36
  78. package/svg/FileAttach.js +28 -36
  79. package/svg/FileAttachCircled.js +30 -38
  80. package/svg/Jewellery.js +56 -0
  81. package/svg/LightBulb.js +58 -66
  82. package/svg/Logo.js +132 -140
  83. package/svg/LuxityMenu.js +28 -36
  84. package/svg/Minus.js +29 -37
  85. package/svg/MobileAvatar.js +28 -36
  86. package/svg/MyOrder.js +36 -44
  87. package/svg/MyPayment.js +36 -44
  88. package/svg/MyProfile.js +44 -52
  89. package/svg/MySale.js +31 -39
  90. package/svg/Notification.js +30 -38
  91. package/svg/PointerDown.js +28 -36
  92. package/svg/Search.js +27 -35
  93. package/svg/Shoes.js +37 -45
  94. package/svg/SvgWrapper.js +13 -21
  95. package/svg/Trash.js +32 -40
  96. package/svg/Watches.js +47 -55
@@ -1,434 +1,426 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('styled-components')) :
3
- typeof define === 'function' && define.amd ? define(['react', 'styled-components'], factory) :
4
- (global = global || self, global.LuxityProductInterestItem = factory(global.React, global.styled));
5
- }(this, (function (React, styled) { 'use strict';
6
-
7
- var React__default = 'default' in React ? React['default'] : React;
8
- var styled__default = 'default' in styled ? styled['default'] : styled;
9
-
10
- function ownKeys(object, enumerableOnly) {
11
- var keys = Object.keys(object);
12
-
13
- if (Object.getOwnPropertySymbols) {
14
- var symbols = Object.getOwnPropertySymbols(object);
15
- enumerableOnly && (symbols = symbols.filter(function (sym) {
16
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
17
- })), keys.push.apply(keys, symbols);
18
- }
1
+ import React, { forwardRef } from 'react';
2
+ import styled, { ThemeProvider } from 'styled-components';
3
+
4
+ function ownKeys(object, enumerableOnly) {
5
+ var keys = Object.keys(object);
19
6
 
20
- return keys;
7
+ if (Object.getOwnPropertySymbols) {
8
+ var symbols = Object.getOwnPropertySymbols(object);
9
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
10
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
11
+ })), keys.push.apply(keys, symbols);
21
12
  }
22
13
 
23
- function _objectSpread2(target) {
24
- for (var i = 1; i < arguments.length; i++) {
25
- var source = null != arguments[i] ? arguments[i] : {};
26
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
27
- _defineProperty(target, key, source[key]);
28
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
29
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
30
- });
31
- }
14
+ return keys;
15
+ }
32
16
 
33
- return target;
17
+ function _objectSpread2(target) {
18
+ for (var i = 1; i < arguments.length; i++) {
19
+ var source = null != arguments[i] ? arguments[i] : {};
20
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
21
+ _defineProperty(target, key, source[key]);
22
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
23
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
24
+ });
34
25
  }
35
26
 
36
- function _classCallCheck(instance, Constructor) {
37
- if (!(instance instanceof Constructor)) {
38
- throw new TypeError("Cannot call a class as a function");
39
- }
40
- }
27
+ return target;
28
+ }
41
29
 
42
- function _defineProperties(target, props) {
43
- for (var i = 0; i < props.length; i++) {
44
- var descriptor = props[i];
45
- descriptor.enumerable = descriptor.enumerable || false;
46
- descriptor.configurable = true;
47
- if ("value" in descriptor) descriptor.writable = true;
48
- Object.defineProperty(target, descriptor.key, descriptor);
49
- }
30
+ function _classCallCheck(instance, Constructor) {
31
+ if (!(instance instanceof Constructor)) {
32
+ throw new TypeError("Cannot call a class as a function");
50
33
  }
34
+ }
35
+
36
+ function _defineProperties(target, props) {
37
+ for (var i = 0; i < props.length; i++) {
38
+ var descriptor = props[i];
39
+ descriptor.enumerable = descriptor.enumerable || false;
40
+ descriptor.configurable = true;
41
+ if ("value" in descriptor) descriptor.writable = true;
42
+ Object.defineProperty(target, descriptor.key, descriptor);
43
+ }
44
+ }
51
45
 
52
- function _createClass(Constructor, protoProps, staticProps) {
53
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
54
- if (staticProps) _defineProperties(Constructor, staticProps);
55
- Object.defineProperty(Constructor, "prototype", {
56
- writable: false
46
+ function _createClass(Constructor, protoProps, staticProps) {
47
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
48
+ if (staticProps) _defineProperties(Constructor, staticProps);
49
+ Object.defineProperty(Constructor, "prototype", {
50
+ writable: false
51
+ });
52
+ return Constructor;
53
+ }
54
+
55
+ function _defineProperty(obj, key, value) {
56
+ if (key in obj) {
57
+ Object.defineProperty(obj, key, {
58
+ value: value,
59
+ enumerable: true,
60
+ configurable: true,
61
+ writable: true
57
62
  });
58
- return Constructor;
63
+ } else {
64
+ obj[key] = value;
59
65
  }
60
66
 
61
- function _defineProperty(obj, key, value) {
62
- if (key in obj) {
63
- Object.defineProperty(obj, key, {
64
- value: value,
65
- enumerable: true,
66
- configurable: true,
67
- writable: true
68
- });
69
- } else {
70
- obj[key] = value;
71
- }
67
+ return obj;
68
+ }
72
69
 
73
- return obj;
74
- }
75
-
76
- function _extends() {
77
- _extends = Object.assign ? Object.assign.bind() : function (target) {
78
- for (var i = 1; i < arguments.length; i++) {
79
- var source = arguments[i];
70
+ function _extends() {
71
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
72
+ for (var i = 1; i < arguments.length; i++) {
73
+ var source = arguments[i];
80
74
 
81
- for (var key in source) {
82
- if (Object.prototype.hasOwnProperty.call(source, key)) {
83
- target[key] = source[key];
84
- }
75
+ for (var key in source) {
76
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
77
+ target[key] = source[key];
85
78
  }
86
79
  }
87
-
88
- return target;
89
- };
90
- return _extends.apply(this, arguments);
91
- }
92
-
93
- function _inherits(subClass, superClass) {
94
- if (typeof superClass !== "function" && superClass !== null) {
95
- throw new TypeError("Super expression must either be null or a function");
96
80
  }
97
81
 
98
- subClass.prototype = Object.create(superClass && superClass.prototype, {
99
- constructor: {
100
- value: subClass,
101
- writable: true,
102
- configurable: true
103
- }
104
- });
105
- Object.defineProperty(subClass, "prototype", {
106
- writable: false
107
- });
108
- if (superClass) _setPrototypeOf(subClass, superClass);
109
- }
82
+ return target;
83
+ };
84
+ return _extends.apply(this, arguments);
85
+ }
110
86
 
111
- function _getPrototypeOf(o) {
112
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
113
- return o.__proto__ || Object.getPrototypeOf(o);
114
- };
115
- return _getPrototypeOf(o);
87
+ function _inherits(subClass, superClass) {
88
+ if (typeof superClass !== "function" && superClass !== null) {
89
+ throw new TypeError("Super expression must either be null or a function");
116
90
  }
117
91
 
118
- function _setPrototypeOf(o, p) {
119
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
120
- o.__proto__ = p;
121
- return o;
122
- };
123
- return _setPrototypeOf(o, p);
124
- }
92
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
93
+ constructor: {
94
+ value: subClass,
95
+ writable: true,
96
+ configurable: true
97
+ }
98
+ });
99
+ Object.defineProperty(subClass, "prototype", {
100
+ writable: false
101
+ });
102
+ if (superClass) _setPrototypeOf(subClass, superClass);
103
+ }
125
104
 
126
- function _isNativeReflectConstruct() {
127
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
128
- if (Reflect.construct.sham) return false;
129
- if (typeof Proxy === "function") return true;
105
+ function _getPrototypeOf(o) {
106
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
107
+ return o.__proto__ || Object.getPrototypeOf(o);
108
+ };
109
+ return _getPrototypeOf(o);
110
+ }
130
111
 
131
- try {
132
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
133
- return true;
134
- } catch (e) {
135
- return false;
136
- }
112
+ function _setPrototypeOf(o, p) {
113
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
114
+ o.__proto__ = p;
115
+ return o;
116
+ };
117
+ return _setPrototypeOf(o, p);
118
+ }
119
+
120
+ function _isNativeReflectConstruct() {
121
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
122
+ if (Reflect.construct.sham) return false;
123
+ if (typeof Proxy === "function") return true;
124
+
125
+ try {
126
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
127
+ return true;
128
+ } catch (e) {
129
+ return false;
137
130
  }
131
+ }
138
132
 
139
- function _assertThisInitialized(self) {
140
- if (self === void 0) {
141
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
142
- }
143
-
144
- return self;
133
+ function _assertThisInitialized(self) {
134
+ if (self === void 0) {
135
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
145
136
  }
146
137
 
147
- function _possibleConstructorReturn(self, call) {
148
- if (call && (typeof call === "object" || typeof call === "function")) {
149
- return call;
150
- } else if (call !== void 0) {
151
- throw new TypeError("Derived constructors may only return object or undefined");
152
- }
138
+ return self;
139
+ }
153
140
 
154
- return _assertThisInitialized(self);
141
+ function _possibleConstructorReturn(self, call) {
142
+ if (call && (typeof call === "object" || typeof call === "function")) {
143
+ return call;
144
+ } else if (call !== void 0) {
145
+ throw new TypeError("Derived constructors may only return object or undefined");
155
146
  }
156
147
 
157
- function _createSuper(Derived) {
158
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
148
+ return _assertThisInitialized(self);
149
+ }
159
150
 
160
- return function _createSuperInternal() {
161
- var Super = _getPrototypeOf(Derived),
162
- result;
151
+ function _createSuper(Derived) {
152
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
163
153
 
164
- if (hasNativeReflectConstruct) {
165
- var NewTarget = _getPrototypeOf(this).constructor;
166
-
167
- result = Reflect.construct(Super, arguments, NewTarget);
168
- } else {
169
- result = Super.apply(this, arguments);
170
- }
154
+ return function _createSuperInternal() {
155
+ var Super = _getPrototypeOf(Derived),
156
+ result;
171
157
 
172
- return _possibleConstructorReturn(this, result);
173
- };
174
- }
158
+ if (hasNativeReflectConstruct) {
159
+ var NewTarget = _getPrototypeOf(this).constructor;
175
160
 
176
- function _taggedTemplateLiteral(strings, raw) {
177
- if (!raw) {
178
- raw = strings.slice(0);
161
+ result = Reflect.construct(Super, arguments, NewTarget);
162
+ } else {
163
+ result = Super.apply(this, arguments);
179
164
  }
180
165
 
181
- return Object.freeze(Object.defineProperties(strings, {
182
- raw: {
183
- value: Object.freeze(raw)
184
- }
185
- }));
166
+ return _possibleConstructorReturn(this, result);
167
+ };
168
+ }
169
+
170
+ function _taggedTemplateLiteral(strings, raw) {
171
+ if (!raw) {
172
+ raw = strings.slice(0);
186
173
  }
187
174
 
188
- /** @format */
189
- var request = {
190
- fetching: false,
191
- failed: false,
192
- success: false,
193
- payload: null
175
+ return Object.freeze(Object.defineProperties(strings, {
176
+ raw: {
177
+ value: Object.freeze(raw)
178
+ }
179
+ }));
180
+ }
181
+
182
+ /** @format */
183
+ var request = {
184
+ fetching: false,
185
+ failed: false,
186
+ success: false,
187
+ payload: null
188
+ };
189
+ var method = {
190
+ DELETE: 'DELETE',
191
+ POST: 'POST',
192
+ GET: 'GET'
193
+ };
194
+
195
+ var simpleRequest = (function (axiosInstance, url) {
196
+ var method = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'get';
197
+ var payload = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
198
+ var onSuccess = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function () {
199
+ return null;
194
200
  };
195
- var method = {
196
- DELETE: 'DELETE',
197
- POST: 'POST',
198
- GET: 'GET'
201
+ var onFailed = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : function () {
202
+ return null;
199
203
  };
200
-
201
- var simpleRequest = (function (axiosInstance, url) {
202
- var method = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'get';
203
- var payload = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
204
- var onSuccess = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function () {
205
- return null;
206
- };
207
- var onFailed = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : function () {
208
- return null;
209
- };
210
- var requestConfigParams = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
211
- return axiosInstance[method.toLowerCase()](url, payload, requestConfigParams).then(function (res) {
212
- onSuccess(res);
213
- return res;
214
- }).catch(function (err) {
215
- onFailed(err);
216
- return err;
217
- });
204
+ var requestConfigParams = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
205
+ return axiosInstance[method.toLowerCase()](url, payload, requestConfigParams).then(function (res) {
206
+ onSuccess(res);
207
+ return res;
208
+ }).catch(function (err) {
209
+ onFailed(err);
210
+ return err;
218
211
  });
219
-
220
- var Trash = (function (props) {
221
- return /*#__PURE__*/React__default.createElement("svg", _extends({
222
- version: "1.1",
223
- id: "svg-trash",
224
- xmlns: "http://www.w3.org/2000/svg",
225
- xmlnsXlink: "http://www.w3.org/1999/xlink",
226
- x: "0px",
227
- y: "0px",
228
- viewBox: "0 0 15.1 17.5",
229
- xmlSpace: "preserve"
230
- }, props), /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("path", {
231
- d: "M2.4,17.5c-0.4-0.1-0.5-0.4-0.5-0.8c0-4,0-7.9,0-11.9c0-0.1,0-0.1,0-0.2c-0.1,0-0.1,0-0.2,0c-0.3,0-0.7,0-1,0 C0.3,4.6,0,4.3,0,4C0,3.3,0,2.7,0,2c0.1-0.8,0.8-1.5,1.7-1.6c1.3,0,2.6,0,3.9,0c0.1,0,0.2,0,0.3-0.1C6,0.1,6.2,0,6.5,0 c0.7,0,1.4,0,2.1,0c0.3,0,0.5,0.1,0.6,0.3c0.1,0.1,0.1,0.1,0.2,0.1c1.3,0,2.5,0,3.8,0c0.8,0,1.4,0.4,1.7,1.1C15,1.7,15,2,15,2.3 c0,0.5,0,1,0,1.6c0,0.5-0.3,0.7-0.7,0.7c-0.4,0-0.7,0-1.1,0c0,0,0,0-0.1,0c0,0.1,0,0.1,0,0.2c0,4,0,7.9,0,11.9 c0,0.4-0.1,0.7-0.5,0.8C9.2,17.5,5.8,17.5,2.4,17.5z M11.8,16.2c0-3.9,0-7.7,0-11.6c-2.9,0-5.7,0-8.6,0c0,3.9,0,7.7,0,11.6 C6.1,16.2,9,16.2,11.8,16.2z M1.3,3.2c4.1,0,8.3,0,12.4,0c0-0.3,0-0.6,0-0.9c0-0.5-0.2-0.6-0.6-0.6c-3.7,0-7.4,0-11.1,0 c-0.1,0-0.2,0-0.3,0C1.5,1.8,1.3,2,1.3,2.2C1.3,2.5,1.3,2.9,1.3,3.2z"
232
- }), /*#__PURE__*/React__default.createElement("path", {
233
- d: "M5.1,9.8c0-1.1,0-2.3,0-3.4c0-0.4,0.2-0.7,0.5-0.7C6,5.6,6.3,5.8,6.4,6.1c0,0.1,0,0.2,0,0.3c0,2.2,0,4.5,0,6.7 c0,0.1,0,0.3-0.1,0.4C6.2,13.8,6,14,5.7,13.9c-0.3,0-0.5-0.2-0.6-0.5c0-0.1,0-0.2,0-0.3C5.1,12,5.1,10.9,5.1,9.8z"
234
- }), /*#__PURE__*/React__default.createElement("path", {
235
- d: "M9.9,9.8c0,1.1,0,2.3,0,3.4c0,0.3-0.2,0.6-0.5,0.7c-0.4,0.1-0.8-0.1-0.9-0.5c0-0.1,0-0.2,0-0.2c0-2.3,0-4.5,0-6.8 c0-0.4,0.2-0.7,0.5-0.7c0.3-0.1,0.7,0.1,0.7,0.5c0,0.1,0,0.2,0,0.3C9.9,7.6,9.9,8.7,9.9,9.8z"
212
+ });
213
+
214
+ var Trash = (function (props) {
215
+ return /*#__PURE__*/React.createElement("svg", _extends({
216
+ version: "1.1",
217
+ id: "svg-trash",
218
+ xmlns: "http://www.w3.org/2000/svg",
219
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
220
+ x: "0px",
221
+ y: "0px",
222
+ viewBox: "0 0 15.1 17.5",
223
+ xmlSpace: "preserve"
224
+ }, props), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
225
+ d: "M2.4,17.5c-0.4-0.1-0.5-0.4-0.5-0.8c0-4,0-7.9,0-11.9c0-0.1,0-0.1,0-0.2c-0.1,0-0.1,0-0.2,0c-0.3,0-0.7,0-1,0 C0.3,4.6,0,4.3,0,4C0,3.3,0,2.7,0,2c0.1-0.8,0.8-1.5,1.7-1.6c1.3,0,2.6,0,3.9,0c0.1,0,0.2,0,0.3-0.1C6,0.1,6.2,0,6.5,0 c0.7,0,1.4,0,2.1,0c0.3,0,0.5,0.1,0.6,0.3c0.1,0.1,0.1,0.1,0.2,0.1c1.3,0,2.5,0,3.8,0c0.8,0,1.4,0.4,1.7,1.1C15,1.7,15,2,15,2.3 c0,0.5,0,1,0,1.6c0,0.5-0.3,0.7-0.7,0.7c-0.4,0-0.7,0-1.1,0c0,0,0,0-0.1,0c0,0.1,0,0.1,0,0.2c0,4,0,7.9,0,11.9 c0,0.4-0.1,0.7-0.5,0.8C9.2,17.5,5.8,17.5,2.4,17.5z M11.8,16.2c0-3.9,0-7.7,0-11.6c-2.9,0-5.7,0-8.6,0c0,3.9,0,7.7,0,11.6 C6.1,16.2,9,16.2,11.8,16.2z M1.3,3.2c4.1,0,8.3,0,12.4,0c0-0.3,0-0.6,0-0.9c0-0.5-0.2-0.6-0.6-0.6c-3.7,0-7.4,0-11.1,0 c-0.1,0-0.2,0-0.3,0C1.5,1.8,1.3,2,1.3,2.2C1.3,2.5,1.3,2.9,1.3,3.2z"
226
+ }), /*#__PURE__*/React.createElement("path", {
227
+ d: "M5.1,9.8c0-1.1,0-2.3,0-3.4c0-0.4,0.2-0.7,0.5-0.7C6,5.6,6.3,5.8,6.4,6.1c0,0.1,0,0.2,0,0.3c0,2.2,0,4.5,0,6.7 c0,0.1,0,0.3-0.1,0.4C6.2,13.8,6,14,5.7,13.9c-0.3,0-0.5-0.2-0.6-0.5c0-0.1,0-0.2,0-0.3C5.1,12,5.1,10.9,5.1,9.8z"
228
+ }), /*#__PURE__*/React.createElement("path", {
229
+ d: "M9.9,9.8c0,1.1,0,2.3,0,3.4c0,0.3-0.2,0.6-0.5,0.7c-0.4,0.1-0.8-0.1-0.9-0.5c0-0.1,0-0.2,0-0.2c0-2.3,0-4.5,0-6.8 c0-0.4,0.2-0.7,0.5-0.7c0.3-0.1,0.7,0.1,0.7,0.5c0,0.1,0,0.2,0,0.3C9.9,7.6,9.9,8.7,9.9,9.8z"
230
+ })));
231
+ });
232
+
233
+ var _templateObject;
234
+ var SvgWrapper = styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 1rem;\n display: flex;\n svg {\n width: 23px;\n height: auto;\n }\n"])));
235
+
236
+ var theme = {
237
+ breakpoints: ['40em', '52em', '64em'],
238
+ space: ['0px', '4px', '8px', '16px', '32px', '64px', '128px', '256px', '512px'],
239
+ fontSizes: ['12px', '14px', '16px', '20px', '24px', '32px', '48px', '64px', '72px'],
240
+ marginPaddings: ['0.5rem', '1rem', '1.5rem', '2rem', '2.5rem', '3rem', '3.5rem', '4rem', '4.5rem', '5rem', '5.5rem', '6rem'],
241
+ letterSpacings: ['-0.5px', '0px', '+0.5px'],
242
+ radii: ['0px', '2px', '4px', '8px'],
243
+ borderRadius: '6px',
244
+ colors: {
245
+ primary: '#000',
246
+ base: '#4e4949',
247
+ baseLt: '#817c7c',
248
+ borderColor: '#d8d8d8',
249
+ ntrlMin: '#fff',
250
+ ntrlMinTen: '#e6e6e6',
251
+ gray: '#efefef',
252
+ darkerGray: '#454141'
253
+ },
254
+ rareStepColors: {
255
+ primary: '#202b58',
256
+ secondary: '#ef5c2d',
257
+ ntrlMin: '#ffffff',
258
+ ntrl40: '#f4f4f4',
259
+ ntrl50: '#808080',
260
+ ntrl60: '#e8e8e8',
261
+ ntrl70: '#252525',
262
+ ntrlMax: '#000000'
263
+ },
264
+ rareStepFontWeights: {
265
+ normal: 400,
266
+ medium: 500,
267
+ semiBold: 600,
268
+ bold: 700
269
+ },
270
+ rareStepFontSize: {
271
+ h1: '36px',
272
+ h2: '30px',
273
+ h3: '24px',
274
+ h4: '20px',
275
+ h5: '16px',
276
+ h6: '14px',
277
+ footerTitle: '16px'
278
+ },
279
+ rareStepPageSizes: {
280
+ mobile: '500px',
281
+ tablet: '768px',
282
+ desktop: '992px',
283
+ screenl: '1280px',
284
+ screenxl: '1680px',
285
+ screenxxl: '1920px',
286
+ container: '1600px'
287
+ }
288
+ };
289
+
290
+ var themed = (function (Component) {
291
+ return /*#__PURE__*/forwardRef(function (props, ref) {
292
+ return /*#__PURE__*/React.createElement(ThemeProvider, {
293
+ theme: theme
294
+ }, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
295
+ ref: ref
236
296
  })));
237
297
  });
298
+ });
238
299
 
239
- var _templateObject;
240
- var SvgWrapper = styled__default.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 1rem;\n display: flex;\n svg {\n width: 23px;\n height: auto;\n }\n"])));
241
-
242
- var theme = {
243
- breakpoints: ['40em', '52em', '64em'],
244
- space: ['0px', '4px', '8px', '16px', '32px', '64px', '128px', '256px', '512px'],
245
- fontSizes: ['12px', '14px', '16px', '20px', '24px', '32px', '48px', '64px', '72px'],
246
- marginPaddings: ['0.5rem', '1rem', '1.5rem', '2rem', '2.5rem', '3rem', '3.5rem', '4rem', '4.5rem', '5rem', '5.5rem', '6rem'],
247
- letterSpacings: ['-0.5px', '0px', '+0.5px'],
248
- radii: ['0px', '2px', '4px', '8px'],
249
- borderRadius: '6px',
250
- colors: {
251
- primary: '#000',
252
- base: '#4e4949',
253
- baseLt: '#817c7c',
254
- borderColor: '#d8d8d8',
255
- ntrlMin: '#fff',
256
- ntrlMinTen: '#e6e6e6',
257
- gray: '#efefef',
258
- darkerGray: '#454141'
259
- },
260
- rareStepColors: {
261
- primary: '#202b58',
262
- secondary: '#ef5c2d',
263
- ntrlMin: '#ffffff',
264
- ntrl40: '#f4f4f4',
265
- ntrl50: '#808080',
266
- ntrl60: '#e8e8e8',
267
- ntrl70: '#252525',
268
- ntrlMax: '#000000'
269
- },
270
- rareStepFontWeights: {
271
- normal: 400,
272
- medium: 500,
273
- semiBold: 600,
274
- bold: 700
275
- },
276
- rareStepFontSize: {
277
- h1: '36px',
278
- h2: '30px',
279
- h3: '24px',
280
- h4: '20px',
281
- h5: '16px',
282
- h6: '14px',
283
- footerTitle: '16px'
284
- },
285
- rareStepPageSizes: {
286
- mobile: '500px',
287
- tablet: '768px',
288
- desktop: '992px',
289
- screenl: '1280px',
290
- screenxl: '1680px',
291
- screenxxl: '1920px',
292
- container: '1600px'
293
- }
294
- };
300
+ var _templateObject$1;
301
+ var IconWrapper = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n height: auto;\n margin-bottom: 1rem;\n margin-left: 1rem;\n display: flex;\n align-items: center;\n height: auto;\n\n :hover {\n background-color: ", ";\n cursor: pointer;\n }\n\n #svg-trash {\n width: 15px;\n height: 100%;\n }\n"])), function (props) {
302
+ return props.theme.colors.borderColor;
303
+ }, function (props) {
304
+ return props.theme.colors.borderColor;
305
+ });
295
306
 
296
- var themed = (function (Component) {
297
- return /*#__PURE__*/React.forwardRef(function (props, ref) {
298
- return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
299
- theme: theme
300
- }, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
301
- ref: ref
302
- })));
303
- });
304
- });
307
+ var media = {
308
+ xs: '576px',
309
+ sm: '768px',
310
+ md: '992px',
311
+ lg: '1200px'
312
+ };
305
313
 
306
- var _templateObject$1;
307
- var IconWrapper = styled__default.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n height: auto;\n margin-bottom: 1rem;\n margin-left: 1rem;\n display: flex;\n align-items: center;\n height: auto;\n\n :hover {\n background-color: ", ";\n cursor: pointer;\n }\n\n #svg-trash {\n width: 15px;\n height: 100%;\n }\n"])), function (props) {
308
- return props.theme.colors.borderColor;
309
- }, function (props) {
310
- return props.theme.colors.borderColor;
311
- });
314
+ var _templateObject$2, _templateObject2, _templateObject3;
312
315
 
313
- var media = {
314
- xs: '576px',
315
- sm: '768px',
316
- md: '992px',
317
- lg: '1200px'
318
- };
316
+ var TrashIcon = function TrashIcon(_ref) {
317
+ var onClick = _ref.onClick,
318
+ id = _ref.id;
319
+ return /*#__PURE__*/React.createElement(IconWrapper, {
320
+ onClick: onClick,
321
+ id: id
322
+ }, /*#__PURE__*/React.createElement(SvgWrapper, null, /*#__PURE__*/React.createElement(Trash, null)));
323
+ };
319
324
 
320
- var _templateObject$2, _templateObject2, _templateObject3;
325
+ var LuxityProductInterestItem = /*#__PURE__*/function (_React$Component) {
326
+ _inherits(LuxityProductInterestItem, _React$Component);
321
327
 
322
- var TrashIcon = function TrashIcon(_ref) {
323
- var onClick = _ref.onClick,
324
- id = _ref.id;
325
- return /*#__PURE__*/React__default.createElement(IconWrapper, {
326
- onClick: onClick,
327
- id: id
328
- }, /*#__PURE__*/React__default.createElement(SvgWrapper, null, /*#__PURE__*/React__default.createElement(Trash, null)));
329
- };
328
+ var _super = _createSuper(LuxityProductInterestItem);
330
329
 
331
- var LuxityProductInterestItem = /*#__PURE__*/function (_React$Component) {
332
- _inherits(LuxityProductInterestItem, _React$Component);
330
+ function LuxityProductInterestItem(props) {
331
+ var _this;
333
332
 
334
- var _super = _createSuper(LuxityProductInterestItem);
333
+ _classCallCheck(this, LuxityProductInterestItem);
335
334
 
336
- function LuxityProductInterestItem(props) {
337
- var _this;
335
+ _this = _super.call(this, props);
338
336
 
339
- _classCallCheck(this, LuxityProductInterestItem);
337
+ _defineProperty(_assertThisInitialized(_this), "deleteInterestItem", function () {
338
+ var id = _this.props.data.id;
340
339
 
341
- _this = _super.call(this, props);
340
+ _this.setState({
341
+ delete: _objectSpread2(_objectSpread2({}, request), {}, {
342
+ fetching: true
343
+ })
344
+ });
342
345
 
343
- _defineProperty(_assertThisInitialized(_this), "deleteInterestItem", function () {
344
- var id = _this.props.data.id;
346
+ var url = _this.props.deleteInterestApi(id);
345
347
 
348
+ simpleRequest(_this.props.requestInstance, url, method.DELETE, null, function () {
346
349
  _this.setState({
347
350
  delete: _objectSpread2(_objectSpread2({}, request), {}, {
348
- fetching: true
351
+ success: true
349
352
  })
350
353
  });
351
354
 
352
- var url = _this.props.deleteInterestApi(id);
353
-
354
- simpleRequest(_this.props.requestInstance, url, method.DELETE, null, function () {
355
- _this.setState({
356
- delete: _objectSpread2(_objectSpread2({}, request), {}, {
357
- success: true
358
- })
359
- });
360
-
361
- _this.props.onDeleted(_this.props.data);
362
- }, function () {
363
- return _this.setState({
364
- delete: _objectSpread2({}, request)
365
- });
355
+ _this.props.onDeleted(_this.props.data);
356
+ }, function () {
357
+ return _this.setState({
358
+ delete: _objectSpread2({}, request)
366
359
  });
367
360
  });
361
+ });
368
362
 
369
- _defineProperty(_assertThisInitialized(_this), "render", function () {
370
- var _data$luxity_model, _data$luxity_material;
371
-
372
- var data = _this.props.data;
373
- var success = _this.state.delete.success;
374
- return /*#__PURE__*/React__default.createElement(InterestItemContainer, {
375
- id: "interests__item--".concat(data.id),
376
- className: "".concat(success && 'interests__item--hiding')
377
- }, /*#__PURE__*/React__default.createElement(InterestItemContent, {
378
- className: "interest-item__container ".concat(_this.props.className || '')
379
- }, /*#__PURE__*/React__default.createElement("div", {
380
- className: "interest-item__container_heading"
381
- }, /*#__PURE__*/React__default.createElement(InterestItemTitle, null, "Brand:"), /*#__PURE__*/React__default.createElement("div", {
382
- id: "interest-item-".concat(data.id, "__category"),
383
- className: "list-items"
384
- }, data.luxity_brand.name)), /*#__PURE__*/React__default.createElement("div", {
385
- className: "interest-item__container_heading"
386
- }, /*#__PURE__*/React__default.createElement(InterestItemTitle, null, "Model:"), /*#__PURE__*/React__default.createElement("div", {
387
- className: "list-items"
388
- }, data === null || data === void 0 ? void 0 : (_data$luxity_model = data.luxity_model) === null || _data$luxity_model === void 0 ? void 0 : _data$luxity_model.name)), /*#__PURE__*/React__default.createElement("div", {
389
- className: "interest-item__container_heading"
390
- }, /*#__PURE__*/React__default.createElement(InterestItemTitle, null, "Material:"), /*#__PURE__*/React__default.createElement("div", {
391
- className: "list-items"
392
- }, data === null || data === void 0 ? void 0 : (_data$luxity_material = data.luxity_material) === null || _data$luxity_material === void 0 ? void 0 : _data$luxity_material.name))), /*#__PURE__*/React__default.createElement(TrashIcon, {
393
- id: "interest-".concat(data.id, "-delete-button"),
394
- onClick: function onClick() {
395
- if (!_this.state.delete.fetching) {
396
- _this.deleteInterestItem();
397
- }
363
+ _defineProperty(_assertThisInitialized(_this), "render", function () {
364
+ var _data$luxity_model, _data$luxity_material;
365
+
366
+ var data = _this.props.data;
367
+ var success = _this.state.delete.success;
368
+ return /*#__PURE__*/React.createElement(InterestItemContainer, {
369
+ id: "interests__item--".concat(data.id),
370
+ className: "".concat(success && 'interests__item--hiding')
371
+ }, /*#__PURE__*/React.createElement(InterestItemContent, {
372
+ className: "interest-item__container ".concat(_this.props.className || '')
373
+ }, /*#__PURE__*/React.createElement("div", {
374
+ className: "interest-item__container_heading"
375
+ }, /*#__PURE__*/React.createElement(InterestItemTitle, null, "Brand:"), /*#__PURE__*/React.createElement("div", {
376
+ id: "interest-item-".concat(data.id, "__category"),
377
+ className: "list-items"
378
+ }, data.luxity_brand.name)), /*#__PURE__*/React.createElement("div", {
379
+ className: "interest-item__container_heading"
380
+ }, /*#__PURE__*/React.createElement(InterestItemTitle, null, "Model:"), /*#__PURE__*/React.createElement("div", {
381
+ className: "list-items"
382
+ }, data === null || data === void 0 ? void 0 : (_data$luxity_model = data.luxity_model) === null || _data$luxity_model === void 0 ? void 0 : _data$luxity_model.name)), /*#__PURE__*/React.createElement("div", {
383
+ className: "interest-item__container_heading"
384
+ }, /*#__PURE__*/React.createElement(InterestItemTitle, null, "Material:"), /*#__PURE__*/React.createElement("div", {
385
+ className: "list-items"
386
+ }, data === null || data === void 0 ? void 0 : (_data$luxity_material = data.luxity_material) === null || _data$luxity_material === void 0 ? void 0 : _data$luxity_material.name))), /*#__PURE__*/React.createElement(TrashIcon, {
387
+ id: "interest-".concat(data.id, "-delete-button"),
388
+ onClick: function onClick() {
389
+ if (!_this.state.delete.fetching) {
390
+ _this.deleteInterestItem();
398
391
  }
399
- }));
400
- });
401
-
402
- _this.state = {
403
- delete: _objectSpread2({}, request)
404
- };
405
- return _this;
406
- }
407
-
408
- return _createClass(LuxityProductInterestItem);
409
- }(React__default.Component);
410
-
411
- var InterestItemTitle = styled__default.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n font-weight: bold;\n display: none;\n\n @media (max-width: ", ") {\n display: inline;\n }\n"])), media.xs);
412
- var InterestItemContainer = styled__default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n\n .no-shoe-size-section {\n @media (max-width: ", ") {\n display: none;\n }\n }\n"])), media.xs);
413
- var InterestItemContent = styled__default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n width: 95%;\n height: 100%;\n border: 1px solid ", ";\n padding: 1rem;\n margin-bottom: ", ";\n\n .interest-item__container_heading {\n color: ", ";\n flex-basis: calc(100% / 6);\n margin-top: 0.3rem;\n\n @media (max-width: ", ") {\n display: inline;\n }\n }\n\n .list-items {\n display: inline-flex;\n flex-direction: column;\n\n @media (max-width: ", ") {\n margin-left: ", ";\n }\n }\n\n @media (max-width: ", ") {\n flex-direction: column;\n }\n"])), function (props) {
414
- return props.theme.colors.borderColor;
415
- }, function (props) {
416
- return props.theme.marginPaddings[1];
417
- }, function (props) {
418
- return props.theme.colors.darkerGray;
419
- }, media.xs, media.xs, function (props) {
420
- return props.theme.marginPaddings[0];
421
- }, media.xs);
422
- var ThemedInterestItem = themed(LuxityProductInterestItem);
423
- /**
424
- * The Interest Item view shows the selected interest configuration,
425
- * and gives user control to delete it.
426
- */
427
-
428
- var index = (function (props) {
429
- return /*#__PURE__*/React__default.createElement(ThemedInterestItem, props);
430
- });
392
+ }
393
+ }));
394
+ });
431
395
 
432
- return index;
396
+ _this.state = {
397
+ delete: _objectSpread2({}, request)
398
+ };
399
+ return _this;
400
+ }
433
401
 
434
- })));
402
+ return _createClass(LuxityProductInterestItem);
403
+ }(React.Component);
404
+
405
+ var InterestItemTitle = styled.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n font-weight: bold;\n display: none;\n\n @media (max-width: ", ") {\n display: inline;\n }\n"])), media.xs);
406
+ var InterestItemContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n\n .no-shoe-size-section {\n @media (max-width: ", ") {\n display: none;\n }\n }\n"])), media.xs);
407
+ var InterestItemContent = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n width: 95%;\n height: 100%;\n border: 1px solid ", ";\n padding: 1rem;\n margin-bottom: ", ";\n\n .interest-item__container_heading {\n color: ", ";\n flex-basis: calc(100% / 6);\n margin-top: 0.3rem;\n\n @media (max-width: ", ") {\n display: inline;\n }\n }\n\n .list-items {\n display: inline-flex;\n flex-direction: column;\n\n @media (max-width: ", ") {\n margin-left: ", ";\n }\n }\n\n @media (max-width: ", ") {\n flex-direction: column;\n }\n"])), function (props) {
408
+ return props.theme.colors.borderColor;
409
+ }, function (props) {
410
+ return props.theme.marginPaddings[1];
411
+ }, function (props) {
412
+ return props.theme.colors.darkerGray;
413
+ }, media.xs, media.xs, function (props) {
414
+ return props.theme.marginPaddings[0];
415
+ }, media.xs);
416
+ var ThemedInterestItem = themed(LuxityProductInterestItem);
417
+ /**
418
+ * The Interest Item view shows the selected interest configuration,
419
+ * and gives user control to delete it.
420
+ */
421
+
422
+ var index = (function (props) {
423
+ return /*#__PURE__*/React.createElement(ThemedInterestItem, props);
424
+ });
425
+
426
+ export default index;