@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,426 +1,434 @@
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);
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
+ }
6
19
 
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);
20
+ return keys;
12
21
  }
13
22
 
14
- return keys;
15
- }
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
+ }
16
32
 
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
- });
33
+ return target;
25
34
  }
26
35
 
27
- return target;
28
- }
29
-
30
- function _classCallCheck(instance, Constructor) {
31
- if (!(instance instanceof Constructor)) {
32
- throw new TypeError("Cannot call a class as a function");
36
+ function _classCallCheck(instance, Constructor) {
37
+ if (!(instance instanceof Constructor)) {
38
+ throw new TypeError("Cannot call a class as a function");
39
+ }
33
40
  }
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);
41
+
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
+ }
43
50
  }
44
- }
45
51
 
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
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
62
57
  });
63
- } else {
64
- obj[key] = value;
58
+ return Constructor;
65
59
  }
66
60
 
67
- return obj;
68
- }
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
+ }
69
72
 
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];
73
+ return obj;
74
+ }
74
75
 
75
- for (var key in source) {
76
- if (Object.prototype.hasOwnProperty.call(source, key)) {
77
- target[key] = source[key];
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];
80
+
81
+ for (var key in source) {
82
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
83
+ target[key] = source[key];
84
+ }
78
85
  }
79
86
  }
80
- }
81
87
 
82
- return target;
83
- };
84
- return _extends.apply(this, arguments);
85
- }
86
-
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");
88
+ return target;
89
+ };
90
+ return _extends.apply(this, arguments);
90
91
  }
91
92
 
92
- subClass.prototype = Object.create(superClass && superClass.prototype, {
93
- constructor: {
94
- value: subClass,
95
- writable: true,
96
- configurable: true
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");
97
96
  }
98
- });
99
- Object.defineProperty(subClass, "prototype", {
100
- writable: false
101
- });
102
- if (superClass) _setPrototypeOf(subClass, superClass);
103
- }
104
97
 
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
- }
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
+ }
111
110
 
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;
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);
130
116
  }
131
- }
132
117
 
133
- function _assertThisInitialized(self) {
134
- if (self === void 0) {
135
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
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
+ }
125
+
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;
130
+
131
+ try {
132
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
133
+ return true;
134
+ } catch (e) {
135
+ return false;
136
+ }
136
137
  }
137
138
 
138
- return self;
139
- }
139
+ function _assertThisInitialized(self) {
140
+ if (self === void 0) {
141
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
142
+ }
140
143
 
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");
144
+ return self;
146
145
  }
147
146
 
148
- return _assertThisInitialized(self);
149
- }
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
+ }
150
153
 
151
- function _createSuper(Derived) {
152
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
154
+ return _assertThisInitialized(self);
155
+ }
153
156
 
154
- return function _createSuperInternal() {
155
- var Super = _getPrototypeOf(Derived),
156
- result;
157
+ function _createSuper(Derived) {
158
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
157
159
 
158
- if (hasNativeReflectConstruct) {
159
- var NewTarget = _getPrototypeOf(this).constructor;
160
+ return function _createSuperInternal() {
161
+ var Super = _getPrototypeOf(Derived),
162
+ result;
160
163
 
161
- result = Reflect.construct(Super, arguments, NewTarget);
162
- } else {
163
- result = Super.apply(this, arguments);
164
- }
164
+ if (hasNativeReflectConstruct) {
165
+ var NewTarget = _getPrototypeOf(this).constructor;
165
166
 
166
- return _possibleConstructorReturn(this, result);
167
- };
168
- }
167
+ result = Reflect.construct(Super, arguments, NewTarget);
168
+ } else {
169
+ result = Super.apply(this, arguments);
170
+ }
169
171
 
170
- function _taggedTemplateLiteral(strings, raw) {
171
- if (!raw) {
172
- raw = strings.slice(0);
172
+ return _possibleConstructorReturn(this, result);
173
+ };
173
174
  }
174
175
 
175
- return Object.freeze(Object.defineProperties(strings, {
176
- raw: {
177
- value: Object.freeze(raw)
176
+ function _taggedTemplateLiteral(strings, raw) {
177
+ if (!raw) {
178
+ raw = strings.slice(0);
178
179
  }
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;
180
+
181
+ return Object.freeze(Object.defineProperties(strings, {
182
+ raw: {
183
+ value: Object.freeze(raw)
184
+ }
185
+ }));
186
+ }
187
+
188
+ /** @format */
189
+ var request = {
190
+ fetching: false,
191
+ failed: false,
192
+ success: false,
193
+ payload: null
200
194
  };
201
- var onFailed = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : function () {
202
- return null;
195
+ var method = {
196
+ DELETE: 'DELETE',
197
+ POST: 'POST',
198
+ GET: 'GET'
203
199
  };
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;
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
+ });
211
218
  });
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
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"
296
236
  })));
297
237
  });
298
- });
299
238
 
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
- });
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
+ };
306
295
 
307
- var media = {
308
- xs: '576px',
309
- sm: '768px',
310
- md: '992px',
311
- lg: '1200px'
312
- };
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
+ });
313
305
 
314
- var _templateObject$2, _templateObject2, _templateObject3;
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
+ });
315
312
 
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
- };
313
+ var media = {
314
+ xs: '576px',
315
+ sm: '768px',
316
+ md: '992px',
317
+ lg: '1200px'
318
+ };
324
319
 
325
- var LuxityProductInterestItem = /*#__PURE__*/function (_React$Component) {
326
- _inherits(LuxityProductInterestItem, _React$Component);
320
+ var _templateObject$2, _templateObject2, _templateObject3;
327
321
 
328
- var _super = _createSuper(LuxityProductInterestItem);
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
+ };
329
330
 
330
- function LuxityProductInterestItem(props) {
331
- var _this;
331
+ var LuxityProductInterestItem = /*#__PURE__*/function (_React$Component) {
332
+ _inherits(LuxityProductInterestItem, _React$Component);
332
333
 
333
- _classCallCheck(this, LuxityProductInterestItem);
334
+ var _super = _createSuper(LuxityProductInterestItem);
334
335
 
335
- _this = _super.call(this, props);
336
+ function LuxityProductInterestItem(props) {
337
+ var _this;
336
338
 
337
- _defineProperty(_assertThisInitialized(_this), "deleteInterestItem", function () {
338
- var id = _this.props.data.id;
339
+ _classCallCheck(this, LuxityProductInterestItem);
339
340
 
340
- _this.setState({
341
- delete: _objectSpread2(_objectSpread2({}, request), {}, {
342
- fetching: true
343
- })
344
- });
341
+ _this = _super.call(this, props);
345
342
 
346
- var url = _this.props.deleteInterestApi(id);
343
+ _defineProperty(_assertThisInitialized(_this), "deleteInterestItem", function () {
344
+ var id = _this.props.data.id;
347
345
 
348
- simpleRequest(_this.props.requestInstance, url, method.DELETE, null, function () {
349
346
  _this.setState({
350
347
  delete: _objectSpread2(_objectSpread2({}, request), {}, {
351
- success: true
348
+ fetching: true
352
349
  })
353
350
  });
354
351
 
355
- _this.props.onDeleted(_this.props.data);
356
- }, function () {
357
- return _this.setState({
358
- delete: _objectSpread2({}, request)
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
+ });
359
366
  });
360
367
  });
361
- });
362
368
 
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();
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
+ }
391
398
  }
392
- }
393
- }));
394
- });
399
+ }));
400
+ });
395
401
 
396
- _this.state = {
397
- delete: _objectSpread2({}, request)
398
- };
399
- return _this;
400
- }
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
+ });
431
+
432
+ return index;
401
433
 
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;
434
+ })));