@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
package/GALink.js CHANGED
@@ -1,52 +1,60 @@
1
- import React from 'react';
2
-
3
- function _extends() {
4
- _extends = Object.assign ? Object.assign.bind() : function (target) {
5
- for (var i = 1; i < arguments.length; i++) {
6
- var source = arguments[i];
7
-
8
- for (var key in source) {
9
- if (Object.prototype.hasOwnProperty.call(source, key)) {
10
- target[key] = source[key];
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react')) :
3
+ typeof define === 'function' && define.amd ? define(['react'], factory) :
4
+ (global = global || self, global.GALink = factory(global.React));
5
+ }(this, (function (React) { 'use strict';
6
+
7
+ React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
8
+
9
+ function _extends() {
10
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
11
+ for (var i = 1; i < arguments.length; i++) {
12
+ var source = arguments[i];
13
+
14
+ for (var key in source) {
15
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
16
+ target[key] = source[key];
17
+ }
11
18
  }
12
19
  }
13
- }
14
20
 
15
- return target;
16
- };
17
- return _extends.apply(this, arguments);
18
- }
19
-
20
- var Event = function Event(instance, track) {
21
- var category = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
22
- var action = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
23
- var label = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';
24
- var value = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';
25
-
26
- if (track) {
27
- instance.event({
28
- category: category,
29
- action: action,
30
- label: label,
31
- value: value
32
- });
21
+ return target;
22
+ };
23
+ return _extends.apply(this, arguments);
33
24
  }
34
- };
35
-
36
- var GALink = function GALink(props) {
37
- var gaOnClick = function gaOnClick(event) {
38
- Event(props.instance, props.track, 'Link', "Click on ".concat(props.href), props.label);
39
25
 
40
- if (typeof props.onClick === 'function') {
41
- props.onClick(event);
26
+ var Event = function Event(instance, track) {
27
+ var category = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
28
+ var action = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
29
+ var label = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';
30
+ var value = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';
31
+
32
+ if (track) {
33
+ instance.event({
34
+ category: category,
35
+ action: action,
36
+ label: label,
37
+ value: value
38
+ });
42
39
  }
43
40
  };
44
41
 
45
- return /*#__PURE__*/React.createElement("a", _extends({
46
- href: "/"
47
- }, props, {
48
- onClick: gaOnClick
49
- }), props.children);
50
- };
42
+ var GALink = function GALink(props) {
43
+ var gaOnClick = function gaOnClick(event) {
44
+ Event(props.instance, props.track, 'Link', "Click on ".concat(props.href), props.label);
45
+
46
+ if (typeof props.onClick === 'function') {
47
+ props.onClick(event);
48
+ }
49
+ };
50
+
51
+ return /*#__PURE__*/React.createElement("a", _extends({
52
+ href: "/"
53
+ }, props, {
54
+ onClick: gaOnClick
55
+ }), props.children);
56
+ };
57
+
58
+ return GALink;
51
59
 
52
- export default GALink;
60
+ })));