@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
@@ -14,121 +14,183 @@
14
14
  PageReady = PageReady && Object.prototype.hasOwnProperty.call(PageReady, 'default') ? PageReady['default'] : PageReady;
15
15
  var Notifications__default = 'default' in Notifications ? Notifications['default'] : Notifications;
16
16
 
17
- function _assertThisInitialized(e) {
18
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19
- return e;
17
+ function ownKeys(object, enumerableOnly) {
18
+ var keys = Object.keys(object);
19
+
20
+ if (Object.getOwnPropertySymbols) {
21
+ var symbols = Object.getOwnPropertySymbols(object);
22
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
23
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
24
+ })), keys.push.apply(keys, symbols);
25
+ }
26
+
27
+ return keys;
20
28
  }
21
- function _callSuper(t, o, e) {
22
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
29
+
30
+ function _objectSpread2(target) {
31
+ for (var i = 1; i < arguments.length; i++) {
32
+ var source = null != arguments[i] ? arguments[i] : {};
33
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
34
+ _defineProperty(target, key, source[key]);
35
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
36
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
37
+ });
38
+ }
39
+
40
+ return target;
23
41
  }
24
- function _classCallCheck(a, n) {
25
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
42
+
43
+ function _classCallCheck(instance, Constructor) {
44
+ if (!(instance instanceof Constructor)) {
45
+ throw new TypeError("Cannot call a class as a function");
46
+ }
26
47
  }
27
- function _defineProperties(e, r) {
28
- for (var t = 0; t < r.length; t++) {
29
- var o = r[t];
30
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
48
+
49
+ function _defineProperties(target, props) {
50
+ for (var i = 0; i < props.length; i++) {
51
+ var descriptor = props[i];
52
+ descriptor.enumerable = descriptor.enumerable || false;
53
+ descriptor.configurable = true;
54
+ if ("value" in descriptor) descriptor.writable = true;
55
+ Object.defineProperty(target, descriptor.key, descriptor);
31
56
  }
32
57
  }
33
- function _createClass(e, r, t) {
34
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
35
- writable: !1
36
- }), e;
58
+
59
+ function _createClass(Constructor, protoProps, staticProps) {
60
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
61
+ if (staticProps) _defineProperties(Constructor, staticProps);
62
+ Object.defineProperty(Constructor, "prototype", {
63
+ writable: false
64
+ });
65
+ return Constructor;
37
66
  }
38
- function _defineProperty(e, r, t) {
39
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
40
- value: t,
41
- enumerable: !0,
42
- configurable: !0,
43
- writable: !0
44
- }) : e[r] = t, e;
67
+
68
+ function _defineProperty(obj, key, value) {
69
+ if (key in obj) {
70
+ Object.defineProperty(obj, key, {
71
+ value: value,
72
+ enumerable: true,
73
+ configurable: true,
74
+ writable: true
75
+ });
76
+ } else {
77
+ obj[key] = value;
78
+ }
79
+
80
+ return obj;
45
81
  }
82
+
46
83
  function _extends() {
47
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
48
- for (var e = 1; e < arguments.length; e++) {
49
- var t = arguments[e];
50
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
84
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
85
+ for (var i = 1; i < arguments.length; i++) {
86
+ var source = arguments[i];
87
+
88
+ for (var key in source) {
89
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
90
+ target[key] = source[key];
91
+ }
92
+ }
51
93
  }
52
- return n;
53
- }, _extends.apply(null, arguments);
54
- }
55
- function _getPrototypeOf(t) {
56
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
57
- return t.__proto__ || Object.getPrototypeOf(t);
58
- }, _getPrototypeOf(t);
94
+
95
+ return target;
96
+ };
97
+ return _extends.apply(this, arguments);
59
98
  }
60
- function _inherits(t, e) {
61
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
62
- t.prototype = Object.create(e && e.prototype, {
99
+
100
+ function _inherits(subClass, superClass) {
101
+ if (typeof superClass !== "function" && superClass !== null) {
102
+ throw new TypeError("Super expression must either be null or a function");
103
+ }
104
+
105
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
63
106
  constructor: {
64
- value: t,
65
- writable: !0,
66
- configurable: !0
107
+ value: subClass,
108
+ writable: true,
109
+ configurable: true
67
110
  }
68
- }), Object.defineProperty(t, "prototype", {
69
- writable: !1
70
- }), e && _setPrototypeOf(t, e);
111
+ });
112
+ Object.defineProperty(subClass, "prototype", {
113
+ writable: false
114
+ });
115
+ if (superClass) _setPrototypeOf(subClass, superClass);
116
+ }
117
+
118
+ function _getPrototypeOf(o) {
119
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
120
+ return o.__proto__ || Object.getPrototypeOf(o);
121
+ };
122
+ return _getPrototypeOf(o);
71
123
  }
124
+
125
+ function _setPrototypeOf(o, p) {
126
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
127
+ o.__proto__ = p;
128
+ return o;
129
+ };
130
+ return _setPrototypeOf(o, p);
131
+ }
132
+
72
133
  function _isNativeReflectConstruct() {
134
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
135
+ if (Reflect.construct.sham) return false;
136
+ if (typeof Proxy === "function") return true;
137
+
73
138
  try {
74
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
75
- } catch (t) {}
76
- return (_isNativeReflectConstruct = function () {
77
- return !!t;
78
- })();
79
- }
80
- function ownKeys(e, r) {
81
- var t = Object.keys(e);
82
- if (Object.getOwnPropertySymbols) {
83
- var o = Object.getOwnPropertySymbols(e);
84
- r && (o = o.filter(function (r) {
85
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
86
- })), t.push.apply(t, o);
139
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
140
+ return true;
141
+ } catch (e) {
142
+ return false;
87
143
  }
88
- return t;
89
144
  }
90
- function _objectSpread2(e) {
91
- for (var r = 1; r < arguments.length; r++) {
92
- var t = null != arguments[r] ? arguments[r] : {};
93
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
94
- _defineProperty(e, r, t[r]);
95
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
96
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
97
- });
145
+
146
+ function _assertThisInitialized(self) {
147
+ if (self === void 0) {
148
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
98
149
  }
99
- return e;
150
+
151
+ return self;
100
152
  }
101
- function _possibleConstructorReturn(t, e) {
102
- if (e && ("object" == typeof e || "function" == typeof e)) return e;
103
- if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
104
- return _assertThisInitialized(t);
153
+
154
+ function _possibleConstructorReturn(self, call) {
155
+ if (call && (typeof call === "object" || typeof call === "function")) {
156
+ return call;
157
+ } else if (call !== void 0) {
158
+ throw new TypeError("Derived constructors may only return object or undefined");
159
+ }
160
+
161
+ return _assertThisInitialized(self);
105
162
  }
106
- function _setPrototypeOf(t, e) {
107
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
108
- return t.__proto__ = e, t;
109
- }, _setPrototypeOf(t, e);
163
+
164
+ function _createSuper(Derived) {
165
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
166
+
167
+ return function _createSuperInternal() {
168
+ var Super = _getPrototypeOf(Derived),
169
+ result;
170
+
171
+ if (hasNativeReflectConstruct) {
172
+ var NewTarget = _getPrototypeOf(this).constructor;
173
+
174
+ result = Reflect.construct(Super, arguments, NewTarget);
175
+ } else {
176
+ result = Super.apply(this, arguments);
177
+ }
178
+
179
+ return _possibleConstructorReturn(this, result);
180
+ };
110
181
  }
111
- function _taggedTemplateLiteral(e, t) {
112
- return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
182
+
183
+ function _taggedTemplateLiteral(strings, raw) {
184
+ if (!raw) {
185
+ raw = strings.slice(0);
186
+ }
187
+
188
+ return Object.freeze(Object.defineProperties(strings, {
113
189
  raw: {
114
- value: Object.freeze(t)
190
+ value: Object.freeze(raw)
115
191
  }
116
192
  }));
117
193
  }
118
- function _toPrimitive(t, r) {
119
- if ("object" != typeof t || !t) return t;
120
- var e = t[Symbol.toPrimitive];
121
- if (void 0 !== e) {
122
- var i = e.call(t, r || "default");
123
- if ("object" != typeof i) return i;
124
- throw new TypeError("@@toPrimitive must return a primitive value.");
125
- }
126
- return ("string" === r ? String : Number)(t);
127
- }
128
- function _toPropertyKey(t) {
129
- var i = _toPrimitive(t, "string");
130
- return "symbol" == typeof i ? i : i + "";
131
- }
132
194
 
133
195
  var safeIsNaN = Number.isNaN ||
134
196
  function ponyfill(value) {
@@ -6714,39 +6776,50 @@
6714
6776
  var LuxityPageReadyContext = /*#__PURE__*/React__default.createContext({
6715
6777
  data: null
6716
6778
  });
6717
-
6718
6779
  /**
6719
6780
  * A flavour of PageReady with Luxity customisations
6720
6781
  * 1. the onIsLoading callback is useful to parent components that have more complex data interactions
6721
6782
  * 2. an error message interpreter is supplied from the local helper library
6722
6783
  */
6784
+
6723
6785
  var LuxityPageReady = /*#__PURE__*/function (_React$Component) {
6786
+ _inherits(LuxityPageReady, _React$Component);
6787
+
6788
+ var _super = _createSuper(LuxityPageReady);
6789
+
6724
6790
  function LuxityPageReady() {
6725
6791
  var _this;
6792
+
6726
6793
  _classCallCheck(this, LuxityPageReady);
6794
+
6727
6795
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
6728
6796
  args[_key] = arguments[_key];
6729
6797
  }
6730
- _this = _callSuper(this, LuxityPageReady, [].concat(args));
6731
- _defineProperty(_this, "state", {
6798
+
6799
+ _this = _super.call.apply(_super, [this].concat(args));
6800
+
6801
+ _defineProperty(_assertThisInitialized(_this), "state", {
6732
6802
  data: null
6733
6803
  });
6734
- _defineProperty(_this, "refreshPage", function () {
6804
+
6805
+ _defineProperty(_assertThisInitialized(_this), "refreshPage", function () {
6735
6806
  return _this.pageReadyInstance.initRequest();
6736
6807
  });
6808
+
6737
6809
  return _this;
6738
6810
  }
6739
- _inherits(LuxityPageReady, _React$Component);
6740
- return _createClass(LuxityPageReady, [{
6811
+
6812
+ _createClass(LuxityPageReady, [{
6741
6813
  key: "render",
6742
6814
  value: function render() {
6743
6815
  var _this2 = this;
6816
+
6744
6817
  var _this$props = this.props,
6745
- customErrorMessage = _this$props.customErrorMessage,
6746
- customErrorHandler = _this$props.customErrorHandler,
6747
- getRequestPromise = _this$props.getRequestPromise,
6748
- _onData = _this$props.onData,
6749
- children = _this$props.children;
6818
+ customErrorMessage = _this$props.customErrorMessage,
6819
+ customErrorHandler = _this$props.customErrorHandler,
6820
+ getRequestPromise = _this$props.getRequestPromise,
6821
+ _onData = _this$props.onData,
6822
+ children = _this$props.children;
6750
6823
  var data = this.state.data;
6751
6824
  return /*#__PURE__*/React__default.createElement(PageReady, {
6752
6825
  ref: function ref(inst) {
@@ -6756,15 +6829,19 @@
6756
6829
  _this2.setState({
6757
6830
  data: res.data
6758
6831
  });
6832
+
6759
6833
  _onData(res);
6760
6834
  },
6761
6835
  getRequestInstance: function getRequestInstance() {
6762
6836
  _this2.props.onIsLoading(true);
6837
+
6763
6838
  return getRequestPromise().then(function (out) {
6764
6839
  _this2.props.onIsLoading(false);
6840
+
6765
6841
  return out;
6766
6842
  }).catch(function (oops) {
6767
6843
  _this2.props.onIsLoading(false);
6844
+
6768
6845
  return oops;
6769
6846
  });
6770
6847
  },
@@ -6781,7 +6858,10 @@
6781
6858
  }, children));
6782
6859
  }
6783
6860
  }]);
6861
+
6862
+ return LuxityPageReady;
6784
6863
  }(React__default.Component);
6864
+
6785
6865
  LuxityPageReady.defaultProps = {
6786
6866
  onIsLoading: function onIsLoading() {
6787
6867
  return null;
@@ -6805,12 +6885,12 @@
6805
6885
  /**
6806
6886
  * It represents the React Component that contains the notifications.
6807
6887
  * */
6888
+
6808
6889
  var LuxityNotifications = function LuxityNotifications(props) {
6809
6890
  return /*#__PURE__*/React__default.createElement(Notifications__default, props);
6810
6891
  };
6811
6892
 
6812
6893
  /** @format */
6813
-
6814
6894
  var request = {
6815
6895
  fetching: false,
6816
6896
  failed: false,
@@ -6883,16 +6963,24 @@
6883
6963
  });
6884
6964
 
6885
6965
  var NotificationDropDown = /*#__PURE__*/function (_React$Component) {
6966
+ _inherits(NotificationDropDown, _React$Component);
6967
+
6968
+ var _super = _createSuper(NotificationDropDown);
6969
+
6886
6970
  function NotificationDropDown(props) {
6887
6971
  var _this;
6972
+
6888
6973
  _classCallCheck(this, NotificationDropDown);
6889
- _this = _callSuper(this, NotificationDropDown, [props]);
6890
- _defineProperty(_this, "postUpdate", function (selectedOption) {
6974
+
6975
+ _this = _super.call(this, props);
6976
+
6977
+ _defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption) {
6891
6978
  _this.setState({
6892
6979
  request: _objectSpread2(_objectSpread2({}, request), {}, {
6893
6980
  fetching: true
6894
6981
  })
6895
6982
  });
6983
+
6896
6984
  _this.props.setSchedule(selectedOption.value).then(function () {
6897
6985
  _this.setState({
6898
6986
  selectedOption: selectedOption,
@@ -6900,6 +6988,7 @@
6900
6988
  success: true
6901
6989
  })
6902
6990
  });
6991
+
6903
6992
  success('Notification Frequency Updated');
6904
6993
  }).catch(function () {
6905
6994
  _this.setState({
@@ -6907,10 +6996,12 @@
6907
6996
  failed: true
6908
6997
  })
6909
6998
  });
6999
+
6910
7000
  error('Error Ocurred');
6911
7001
  });
6912
7002
  });
6913
- _defineProperty(_this, "getOptionsFromEnumResult", function (enumResult) {
7003
+
7004
+ _defineProperty(_assertThisInitialized(_this), "getOptionsFromEnumResult", function (enumResult) {
6914
7005
  var enumValues = enumResult.data.__type.enumValues;
6915
7006
  return enumValues.map(function (enumItem) {
6916
7007
  return {
@@ -6919,10 +7010,14 @@
6919
7010
  };
6920
7011
  });
6921
7012
  });
6922
- _defineProperty(_this, "onData", function (_ref) {
7013
+
7014
+ _defineProperty(_assertThisInitialized(_this), "onData", function (_ref) {
6923
7015
  var data = _ref.data;
7016
+
6924
7017
  var options = _this.getOptionsFromEnumResult(data);
7018
+
6925
7019
  var currentValue = data.data.user.email_interest_send_schedule;
7020
+
6926
7021
  _this.setState(function (prevState) {
6927
7022
  return {
6928
7023
  options: options,
@@ -6934,11 +7029,12 @@
6934
7029
  };
6935
7030
  });
6936
7031
  });
6937
- _defineProperty(_this, "render", function () {
7032
+
7033
+ _defineProperty(_assertThisInitialized(_this), "render", function () {
6938
7034
  var _this$state = _this.state,
6939
- options = _this$state.options,
6940
- selectedOption = _this$state.selectedOption,
6941
- updating = _this$state.request.fetching;
7035
+ options = _this$state.options,
7036
+ selectedOption = _this$state.selectedOption,
7037
+ updating = _this$state.request.fetching;
6942
7038
  return /*#__PURE__*/React__default.createElement(NotifyContainer, null, /*#__PURE__*/React__default.createElement(LuxityNotifications, null), /*#__PURE__*/React__default.createElement(LuxityPageReady, {
6943
7039
  getRequestPromise: _this.props.getSchedule,
6944
7040
  onData: function onData(data) {
@@ -6961,6 +7057,7 @@
6961
7057
  value: selectedOption
6962
7058
  }))));
6963
7059
  });
7060
+
6964
7061
  _this.state = {
6965
7062
  options: [],
6966
7063
  selectedOption: null,
@@ -6968,9 +7065,10 @@
6968
7065
  };
6969
7066
  return _this;
6970
7067
  }
6971
- _inherits(NotificationDropDown, _React$Component);
7068
+
6972
7069
  return _createClass(NotificationDropDown);
6973
7070
  }(React__default.Component);
7071
+
6974
7072
  var index$2 = themed(NotificationDropDown);
6975
7073
 
6976
7074
  return index$2;
package/Notify.js CHANGED
@@ -20,6 +20,7 @@
20
20
  /**
21
21
  * It represents the React Component that contains the notifications.
22
22
  * */
23
+
23
24
  var LuxityNotifications = function LuxityNotifications(props) {
24
25
  return /*#__PURE__*/React.createElement(Notifications__default, props);
25
26
  };
@@ -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 border: 1px solid ", ";\n color: ", ";\n background-color: transparent;\n &:active,\n &:hover {\n background-color: ", ";\n color: #ffff;\n }\n &:disabled {\n ", "\n &:hover {\n color: ", ";\n background-color: transparent;\n }\n }\n"])), baseButtonStyle, function (props) {
118
147
  return props.theme.colors.primary;
@@ -123,11 +152,14 @@
123
152
  }, disabledButtonStyle, function (props) {
124
153
  return props.theme.colors.primary;
125
154
  });
155
+
126
156
  var OutlinePrimaryButton = function OutlinePrimaryButton(_ref) {
127
157
  var children = _ref.children,
128
- restProps = _objectWithoutProperties(_ref, _excluded);
158
+ restProps = _objectWithoutProperties(_ref, _excluded);
159
+
129
160
  return /*#__PURE__*/React__default.createElement(Button, restProps, children);
130
161
  };
162
+
131
163
  var index = themed(OutlinePrimaryButton);
132
164
 
133
165
  return index;