@bonlineza/luxity-lib 2.34.2 → 2.34.4

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 (86) hide show
  1. package/Accordion.js +116 -76
  2. package/AddInterest.js +768 -434
  3. package/BrandSelector.js +336 -176
  4. package/Checkbox.js +101 -68
  5. package/CheckboxButton.js +124 -79
  6. package/CommunicationPreferenceOptionsRenderer.js +125 -107
  7. package/CommunicationPreferenceSection.js +134 -114
  8. package/CommunicationPreferences.js +339 -443
  9. package/CountryCodeSelect.js +10 -7
  10. package/CurrencyInputFormatter.js +56 -29
  11. package/CurrencySelect.js +49 -23
  12. package/GALink.js +16 -6
  13. package/GenderSelector.js +142 -88
  14. package/GraphQLDropdownSelector.js +937 -503
  15. package/GraphQLMultiSelector.js +274 -141
  16. package/IconHeader.js +25 -11
  17. package/IconWrapper.js +7 -3
  18. package/InterestCatSelector.js +74 -34
  19. package/InterestItem.js +187 -103
  20. package/Interests.js +890 -485
  21. package/InterestsSubheading.js +10 -5
  22. package/InvertedTextButton.js +63 -27
  23. package/LuxityAppSideNav.js +21 -18
  24. package/LuxityDesktopHeader.js +246 -189
  25. package/LuxityFooter.js +276 -374
  26. package/LuxityGraphQLDropdownSelector.js +969 -519
  27. package/LuxityGraphQLMultiselector.js +321 -167
  28. package/LuxityMobileHeader.js +534 -219
  29. package/LuxityPageReady.js +136 -74
  30. package/LuxitySideNav.js +402 -137
  31. package/MaterialSelector.js +976 -525
  32. package/ModelSelector.js +976 -525
  33. package/NotificationDropDown.js +209 -111
  34. package/Notify.js +1 -0
  35. package/OutlinePrimaryButton.js +58 -26
  36. package/PriceRangeSelector.js +281 -168
  37. package/PrimaryButton.js +58 -26
  38. package/RadioButtons.js +140 -114
  39. package/RangeSlider.js +242 -152
  40. package/RareStepFooter.js +41 -27
  41. package/RareStepHeader.js +190 -139
  42. package/ReactSelectWrapper.js +1 -0
  43. package/SecondaryButton.js +58 -26
  44. package/ShoeSizeRangeSelector.js +260 -162
  45. package/ShoeSizeSelector.js +263 -158
  46. package/SimpleErrorBoundary.js +106 -59
  47. package/StyleSelector.js +336 -176
  48. package/TextButton.js +58 -26
  49. package/Tooltip.js +39 -17
  50. package/Tracking.js +1 -0
  51. package/WrapperButton.js +43 -20
  52. package/build/bundle.css +1 -1
  53. package/build/bundle.js +1701 -1254
  54. package/package.json +1 -1
  55. package/svg/Accessories.js +13 -6
  56. package/svg/Account.js +13 -6
  57. package/svg/Add.js +13 -6
  58. package/svg/ArrowRight.js +13 -6
  59. package/svg/Bags.js +13 -6
  60. package/svg/BurgerMenu.js +13 -6
  61. package/svg/Calendar.js +13 -6
  62. package/svg/CalendarCircled.js +13 -6
  63. package/svg/CheckCircled.js +13 -6
  64. package/svg/Close.js +13 -6
  65. package/svg/Clothing.js +13 -6
  66. package/svg/Dot.js +13 -6
  67. package/svg/Edit.js +13 -6
  68. package/svg/Eye.js +13 -6
  69. package/svg/FileAttach.js +13 -6
  70. package/svg/FileAttachCircled.js +13 -6
  71. package/svg/LightBulb.js +13 -6
  72. package/svg/Logo.js +13 -6
  73. package/svg/LuxityMenu.js +13 -6
  74. package/svg/Minus.js +13 -6
  75. package/svg/MobileAvatar.js +13 -6
  76. package/svg/MyOrder.js +13 -6
  77. package/svg/MyPayment.js +13 -6
  78. package/svg/MyProfile.js +14 -8
  79. package/svg/MySale.js +13 -6
  80. package/svg/Notification.js +13 -6
  81. package/svg/PointerDown.js +13 -6
  82. package/svg/Search.js +13 -6
  83. package/svg/Shoes.js +13 -6
  84. package/svg/SvgWrapper.js +7 -3
  85. package/svg/Trash.js +13 -6
  86. package/svg/Watches.js +13 -6
@@ -7,10 +7,14 @@
7
7
  React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
8
8
  styled = styled && Object.prototype.hasOwnProperty.call(styled, 'default') ? styled['default'] : styled;
9
9
 
10
- function _taggedTemplateLiteral(e, t) {
11
- return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
10
+ function _taggedTemplateLiteral(strings, raw) {
11
+ if (!raw) {
12
+ raw = strings.slice(0);
13
+ }
14
+
15
+ return Object.freeze(Object.defineProperties(strings, {
12
16
  raw: {
13
- value: Object.freeze(t)
17
+ value: Object.freeze(raw)
14
18
  }
15
19
  }));
16
20
  }
@@ -28,10 +32,11 @@
28
32
  }, function (props) {
29
33
  return props.theme.marginPaddings[3];
30
34
  });
35
+
31
36
  var InterestsSubheading = function InterestsSubheading(_ref) {
32
37
  var title = _ref.title,
33
- children = _ref.children,
34
- className = _ref.className;
38
+ children = _ref.children,
39
+ className = _ref.className;
35
40
  return /*#__PURE__*/React.createElement(InterestsSubheadingContainer, {
36
41
  className: className
37
42
  }, /*#__PURE__*/React.createElement(Title, null, title), /*#__PURE__*/React.createElement("div", null, children));
@@ -8,38 +8,66 @@
8
8
  var styled__default = 'default' in styled ? styled['default'] : styled;
9
9
 
10
10
  function _extends() {
11
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
12
- for (var e = 1; e < arguments.length; e++) {
13
- var t = arguments[e];
14
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
11
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
12
+ for (var i = 1; i < arguments.length; i++) {
13
+ var source = arguments[i];
14
+
15
+ for (var key in source) {
16
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
17
+ target[key] = source[key];
18
+ }
19
+ }
15
20
  }
16
- return n;
17
- }, _extends.apply(null, arguments);
21
+
22
+ return target;
23
+ };
24
+ return _extends.apply(this, arguments);
18
25
  }
19
- function _objectWithoutProperties(e, t) {
20
- if (null == e) return {};
21
- var o,
22
- r,
23
- i = _objectWithoutPropertiesLoose(e, t);
24
- if (Object.getOwnPropertySymbols) {
25
- var s = Object.getOwnPropertySymbols(e);
26
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
26
+
27
+ function _objectWithoutPropertiesLoose(source, excluded) {
28
+ if (source == null) return {};
29
+ var target = {};
30
+ var sourceKeys = Object.keys(source);
31
+ var key, i;
32
+
33
+ for (i = 0; i < sourceKeys.length; i++) {
34
+ key = sourceKeys[i];
35
+ if (excluded.indexOf(key) >= 0) continue;
36
+ target[key] = source[key];
27
37
  }
28
- return i;
38
+
39
+ return target;
29
40
  }
30
- function _objectWithoutPropertiesLoose(r, e) {
31
- if (null == r) return {};
32
- var t = {};
33
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
34
- if (e.includes(n)) continue;
35
- t[n] = r[n];
41
+
42
+ function _objectWithoutProperties(source, excluded) {
43
+ if (source == null) return {};
44
+
45
+ var target = _objectWithoutPropertiesLoose(source, excluded);
46
+
47
+ var key, i;
48
+
49
+ if (Object.getOwnPropertySymbols) {
50
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
51
+
52
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
53
+ key = sourceSymbolKeys[i];
54
+ if (excluded.indexOf(key) >= 0) continue;
55
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
56
+ target[key] = source[key];
57
+ }
36
58
  }
37
- return t;
59
+
60
+ return target;
38
61
  }
39
- function _taggedTemplateLiteral(e, t) {
40
- return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
62
+
63
+ function _taggedTemplateLiteral(strings, raw) {
64
+ if (!raw) {
65
+ raw = strings.slice(0);
66
+ }
67
+
68
+ return Object.freeze(Object.defineProperties(strings, {
41
69
  raw: {
42
- value: Object.freeze(t)
70
+ value: Object.freeze(raw)
43
71
  }
44
72
  }));
45
73
  }
@@ -113,6 +141,7 @@
113
141
  });
114
142
 
115
143
  var _excluded = ["children"];
144
+
116
145
  var _templateObject$1;
117
146
  var Button = styled__default.button(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n ", ";\n background-color: transparent;\n color: ", ";\n &:hover {\n color: ", ";\n }\n &:disabled {\n ", ";\n color: ", ";\n }\n"])), baseButtonStyle, function (props) {
118
147
  return props.theme.colors.base;
@@ -121,17 +150,21 @@
121
150
  }, disabledButtonStyle, function (props) {
122
151
  return props.theme.colors.base;
123
152
  });
153
+
124
154
  var TextButton = function TextButton(_ref) {
125
155
  var children = _ref.children,
126
- restProps = _objectWithoutProperties(_ref, _excluded);
156
+ restProps = _objectWithoutProperties(_ref, _excluded);
157
+
127
158
  return /*#__PURE__*/React__default.createElement(Button, restProps, children);
128
159
  };
160
+
129
161
  TextButton.defaultProps = {
130
162
  type: 'button'
131
163
  };
132
164
  var TextButton$1 = themed(TextButton);
133
165
 
134
166
  var _excluded$1 = ["children"];
167
+
135
168
  var _templateObject$2;
136
169
  var Button$1 = styled__default(TextButton$1)(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n color: ", ";\n background-color: ", ";\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n &:disabled {\n background-color: ", ";\n color: ", ";\n }\n"])), function (props) {
137
170
  return props.theme.colors.ntrlMin;
@@ -146,11 +179,14 @@
146
179
  }, function (props) {
147
180
  return props.theme.colors.primary;
148
181
  });
182
+
149
183
  var InvertedTextButton = function InvertedTextButton(_ref) {
150
184
  var children = _ref.children,
151
- restProps = _objectWithoutProperties(_ref, _excluded$1);
185
+ restProps = _objectWithoutProperties(_ref, _excluded$1);
186
+
152
187
  return /*#__PURE__*/React__default.createElement(Button$1, restProps, children);
153
188
  };
189
+
154
190
  var index = themed(InvertedTextButton);
155
191
 
156
192
  return index;
@@ -8,30 +8,33 @@
8
8
 
9
9
  var LuxityAppSideNav = function LuxityAppSideNav(_ref) {
10
10
  var closeIcon = _ref.closeIcon,
11
- accountIcon = _ref.accountIcon,
12
- orderIcon = _ref.orderIcon,
13
- saleIcon = _ref.saleIcon,
14
- onDashboardClick = _ref.onDashboardClick,
15
- onLogoutClick = _ref.onLogoutClick,
16
- bugReportLink = _ref.bugReportLink,
17
- onLuxityShopClick = _ref.onLuxityShopClick,
18
- onInterestClick = _ref.onInterestClick,
19
- onAddressClick = _ref.onAddressClick,
20
- onCouponsClick = _ref.onCouponsClick,
21
- onEditProfileClick = _ref.onEditProfileClick,
22
- onCurrentOrdersClick = _ref.onCurrentOrdersClick,
23
- onPastOrdersClick = _ref.onPastOrdersClick,
24
- onSubmissionsClick = _ref.onSubmissionsClick,
25
- onPastSalesClick = _ref.onPastSalesClick,
26
- onPaidOutClick = _ref.onPaidOutClick,
27
- showSideNav = _ref.showSideNav,
28
- onMenuClick = _ref.onMenuClick;
11
+ accountIcon = _ref.accountIcon,
12
+ orderIcon = _ref.orderIcon,
13
+ saleIcon = _ref.saleIcon,
14
+ onDashboardClick = _ref.onDashboardClick,
15
+ onLogoutClick = _ref.onLogoutClick,
16
+ bugReportLink = _ref.bugReportLink,
17
+ onLuxityShopClick = _ref.onLuxityShopClick,
18
+ onInterestClick = _ref.onInterestClick,
19
+ onAddressClick = _ref.onAddressClick,
20
+ onCouponsClick = _ref.onCouponsClick,
21
+ onEditProfileClick = _ref.onEditProfileClick,
22
+ onCurrentOrdersClick = _ref.onCurrentOrdersClick,
23
+ onPastOrdersClick = _ref.onPastOrdersClick,
24
+ onSubmissionsClick = _ref.onSubmissionsClick,
25
+ onPastSalesClick = _ref.onPastSalesClick,
26
+ onPaidOutClick = _ref.onPaidOutClick,
27
+ showSideNav = _ref.showSideNav,
28
+ onMenuClick = _ref.onMenuClick;
29
+
29
30
  var onCloseSideNav = function onCloseSideNav(e) {
30
31
  onMenuClick();
32
+
31
33
  if (e.key === 'Enter') {
32
34
  e.preventDefault();
33
35
  }
34
36
  };
37
+
35
38
  return /*#__PURE__*/React.createElement("div", {
36
39
  className: "side-nav"
37
40
  }, /*#__PURE__*/React.createElement("div", {