@bonlineza/luxity-lib 2.36.1-beta.1 → 2.36.1-beta.3

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