@bonlineza/luxity-lib 2.39.5 → 2.39.6

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 (96) hide show
  1. package/Accordion.js +342 -352
  2. package/AddInterest.js +3136 -3142
  3. package/AddProductInterest.js +999 -7572
  4. package/BrandSelector.js +854 -861
  5. package/Checkbox.js +240 -250
  6. package/CheckboxButton.js +229 -236
  7. package/CommunicationPreferenceOptionsRenderer.js +560 -568
  8. package/CommunicationPreferenceSection.js +651 -659
  9. package/CommunicationPreferences.js +2394 -2402
  10. package/ConditionSelector.js +852 -859
  11. package/CountryCodeSelect.js +79 -6650
  12. package/CurrencyInputFormatter.js +86 -96
  13. package/CurrencySelect.js +219 -227
  14. package/DropdownSelector.js +212 -6821
  15. package/GALink.js +43 -51
  16. package/GenderSelector.js +355 -362
  17. package/GraphQLDropdownSelector.js +5308 -11879
  18. package/GraphQLMultiSelector.js +593 -601
  19. package/IconHeader.js +118 -126
  20. package/IconWrapper.js +17 -25
  21. package/InterestCatSelector.js +424 -432
  22. package/InterestItem.js +462 -470
  23. package/Interests.js +4718 -11289
  24. package/InterestsSubheading.js +33 -41
  25. package/InvertedTextButton.js +167 -175
  26. package/LuxityAppSideNav.js +181 -189
  27. package/LuxityDesktopHeader.js +1355 -1363
  28. package/LuxityFooter.js +2228 -2236
  29. package/LuxityGraphQLDropdownSelector.js +5393 -11964
  30. package/LuxityGraphQLMultiselector.js +778 -785
  31. package/LuxityMobileHeader.js +1786 -1794
  32. package/LuxityPageReady.js +199 -209
  33. package/LuxityProductInterestItem.js +359 -367
  34. package/LuxitySideNav.js +665 -673
  35. package/MaterialSelector.js +5428 -11999
  36. package/ModelSelector.js +5428 -11999
  37. package/NotificationDropDown.js +459 -7030
  38. package/Notify.js +20 -32
  39. package/OutlinePrimaryButton.js +134 -142
  40. package/PriceRangeSelector.js +1264 -1270
  41. package/PrimaryButton.js +129 -137
  42. package/RadioButtons.js +308 -318
  43. package/RangeSlider.js +1033 -1039
  44. package/RareStepFooter.js +257 -264
  45. package/RareStepHeader.js +801 -808
  46. package/ReactSelectWrapper.js +33 -6604
  47. package/SecondaryButton.js +144 -152
  48. package/ShoeSizeRangeSelector.js +1147 -1153
  49. package/ShoeSizeSelector.js +1146 -1154
  50. package/SimpleErrorBoundary.js +130 -138
  51. package/StyleSelector.js +854 -861
  52. package/TestComponent.js +15 -0
  53. package/TextButton.js +135 -143
  54. package/Tooltip.js +176 -184
  55. package/Tracking.js +15 -25
  56. package/WrapperButton.js +50 -58
  57. package/build/CountryCodeSelect/index.js +18 -0
  58. package/build/ReactSelectWrapper/index.js +34 -0
  59. package/build/bundle.css +1 -1
  60. package/build/bundle.js +10634 -17239
  61. package/build/constants.js +32 -45
  62. package/package.json +2 -2
  63. package/postcss.config.js +6 -0
  64. package/svg/Accessories.js +34 -42
  65. package/svg/Account.js +30 -38
  66. package/svg/Add.js +31 -39
  67. package/svg/ArrowRight.js +28 -36
  68. package/svg/Bags.js +40 -48
  69. package/svg/BurgerMenu.js +24 -32
  70. package/svg/Calendar.js +98 -106
  71. package/svg/CalendarCircled.js +100 -108
  72. package/svg/CheckCircled.js +32 -40
  73. package/svg/Close.js +29 -37
  74. package/svg/Clothing.js +36 -44
  75. package/svg/Dot.js +32 -40
  76. package/svg/Edit.js +27 -35
  77. package/svg/Eye.js +28 -36
  78. package/svg/FileAttach.js +28 -36
  79. package/svg/FileAttachCircled.js +30 -38
  80. package/svg/Jewellery.js +49 -57
  81. package/svg/LightBulb.js +58 -66
  82. package/svg/Logo.js +132 -140
  83. package/svg/LuxityMenu.js +28 -36
  84. package/svg/Minus.js +29 -37
  85. package/svg/MobileAvatar.js +28 -36
  86. package/svg/MyOrder.js +36 -44
  87. package/svg/MyPayment.js +36 -44
  88. package/svg/MyProfile.js +44 -52
  89. package/svg/MySale.js +31 -39
  90. package/svg/Notification.js +30 -38
  91. package/svg/PointerDown.js +28 -36
  92. package/svg/Search.js +27 -35
  93. package/svg/Shoes.js +37 -45
  94. package/svg/SvgWrapper.js +13 -21
  95. package/svg/Trash.js +32 -40
  96. package/svg/Watches.js +47 -55
package/GALink.js CHANGED
@@ -1,60 +1,52 @@
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
- }
18
- }
19
- }
1
+ import React from 'react';
20
2
 
21
- return target;
22
- };
23
- return _extends.apply(this, arguments);
24
- }
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];
25
7
 
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
- });
8
+ for (var key in source) {
9
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
10
+ target[key] = source[key];
11
+ }
12
+ }
39
13
  }
14
+
15
+ return target;
40
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
+ });
33
+ }
34
+ };
41
35
 
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);
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);
45
39
 
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);
40
+ if (typeof props.onClick === 'function') {
41
+ props.onClick(event);
42
+ }
56
43
  };
57
44
 
58
- return GALink;
45
+ return /*#__PURE__*/React.createElement("a", _extends({
46
+ href: "/"
47
+ }, props, {
48
+ onClick: gaOnClick
49
+ }), props.children);
50
+ };
59
51
 
60
- })));
52
+ export default GALink;