@bonlineza/luxity-lib 2.7.5 → 2.9.1

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 (71) hide show
  1. package/Accordion.js +39 -85
  2. package/AddInterest.js +937 -754
  3. package/BrandSelector.js +82 -166
  4. package/Checkbox.js +18 -24
  5. package/CheckboxButton.js +18 -42
  6. package/CountryCodeSelect.js +16 -3
  7. package/CurrencyInputFormatter.js +671 -0
  8. package/GenderSelector.js +31 -81
  9. package/GraphQLMultiSelector.js +45 -87
  10. package/IconHeader.js +8 -17
  11. package/IconWrapper.js +2 -10
  12. package/InterestCatSelector.js +83 -121
  13. package/InterestItem.js +103 -134
  14. package/Interests.js +1029 -895
  15. package/InterestsSubheading.js +5 -23
  16. package/InvertedTextButton.js +17 -48
  17. package/LuxityGraphQLMultiselector.js +73 -143
  18. package/LuxityPageReady.js +15 -8
  19. package/NotificationDropDown.js +66 -63
  20. package/Notify.js +1 -1
  21. package/OutlinePrimaryButton.js +12 -37
  22. package/PriceRangeSelector.js +679 -282
  23. package/PrimaryButton.js +12 -37
  24. package/README.md +1 -1
  25. package/RadioButtons.js +61 -139
  26. package/RangeSlider.js +55 -125
  27. package/ReactSelectWrapper.js +15 -2
  28. package/SecondaryButton.js +12 -37
  29. package/ShoeSizeSelector.js +71 -171
  30. package/SimpleErrorBoundary.js +12 -5
  31. package/StyleSelector.js +82 -166
  32. package/TextButton.js +12 -37
  33. package/Tooltip.js +16 -81
  34. package/WrapperButton.js +8 -32
  35. package/build/bundle.js +1092 -1113
  36. package/build/constants.js +4 -2
  37. package/package.json +10 -12
  38. package/svg/Accessories.js +4 -5
  39. package/svg/Account.js +4 -5
  40. package/svg/Add.js +4 -5
  41. package/svg/ArrowRight.js +3 -4
  42. package/svg/Bags.js +6 -7
  43. package/svg/BurgerMenu.js +3 -4
  44. package/svg/Calendar.js +17 -18
  45. package/svg/CalendarCircled.js +18 -19
  46. package/svg/CheckCircled.js +4 -5
  47. package/svg/Close.js +3 -4
  48. package/svg/Clothing.js +50 -0
  49. package/svg/Dot.js +3 -4
  50. package/svg/Edit.js +3 -4
  51. package/svg/Eye.js +4 -5
  52. package/svg/FileAttach.js +3 -4
  53. package/svg/FileAttachCircled.js +4 -5
  54. package/svg/LightBulb.js +11 -12
  55. package/svg/Logo.js +38 -39
  56. package/svg/LuxityMenu.js +3 -4
  57. package/svg/Minus.js +3 -4
  58. package/svg/MobileAvatar.js +3 -4
  59. package/svg/MyOrder.js +6 -7
  60. package/svg/MyPayment.js +6 -7
  61. package/svg/MyProfile.js +7 -8
  62. package/svg/MySale.js +4 -5
  63. package/svg/Notification.js +4 -5
  64. package/svg/PointerDown.js +3 -4
  65. package/svg/Search.js +3 -4
  66. package/svg/Shoes.js +6 -7
  67. package/svg/SvgWrapper.js +2 -10
  68. package/svg/Trash.js +5 -6
  69. package/svg/Watches.js +11 -12
  70. package/CHANGELOG.md +0 -152
  71. package/CurrencyInput.js +0 -156
package/Tooltip.js CHANGED
@@ -8,7 +8,7 @@
8
8
  var styled__default = 'default' in styled ? styled['default'] : styled;
9
9
 
10
10
  function _extends() {
11
- _extends = Object.assign || function (target) {
11
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
12
12
  for (var i = 1; i < arguments.length; i++) {
13
13
  var source = arguments[i];
14
14
 
@@ -21,7 +21,6 @@
21
21
 
22
22
  return target;
23
23
  };
24
-
25
24
  return _extends.apply(this, arguments);
26
25
  }
27
26
 
@@ -37,78 +36,22 @@
37
36
  }));
38
37
  }
39
38
 
40
- function _templateObject5() {
41
- var data = _taggedTemplateLiteral(["\n /*Top Arrow*/\n bottom: 100%; /* At the top of the tooltip */\n top: initial;\n left: 50%;\n border-style: solid;\n border-color: transparent transparent ", " transparent;\n"]);
42
-
43
- _templateObject5 = function _templateObject5() {
44
- return data;
45
- };
46
-
47
- return data;
48
- }
49
-
50
- function _templateObject4() {
51
- var data = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n left: calc(50% - ", " / 2);\n"]);
52
-
53
- _templateObject4 = function _templateObject4() {
54
- return data;
55
- };
56
-
57
- return data;
58
- }
59
-
60
- function _templateObject3() {
61
- var data = _taggedTemplateLiteral(["\n /*Bottom Arrow*/\n top: 100%; /* At the bottom of the tooltip */\n left: calc(50% - ", ");\n border-width: ", ";\n border-style: solid;\n border-color: ", " transparent transparent transparent;\n"]);
62
-
63
- _templateObject3 = function _templateObject3() {
64
- return data;
65
- };
66
-
67
- return data;
68
- }
69
-
70
- function _templateObject2() {
71
- var data = _taggedTemplateLiteral(["\n position: absolute;\n z-index: 1;\n bottom: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"]);
72
-
73
- _templateObject2 = function _templateObject2() {
74
- return data;
75
- };
76
-
77
- return data;
78
- }
79
-
80
- function _templateObject() {
81
- var data = _taggedTemplateLiteral(["\n position: relative;\n"]);
82
-
83
- _templateObject = function _templateObject() {
84
- return data;
85
- };
86
-
87
- return data;
88
- }
39
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
89
40
  /* position relative is required for the Body element to be positioned correctly */
90
41
 
91
- var relativeInlineStyle = styled.css(_templateObject());
92
- var topMiddleBodyStyle = styled.css(_templateObject2());
42
+ var relativeInlineStyle = styled.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
43
+ var topMiddleBodyStyle = styled.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n z-index: 1;\n bottom: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"])));
93
44
  var getTopMiddleArrowAfterStyle = function getTopMiddleArrowAfterStyle(props) {
94
- return styled.css(_templateObject3(), props.apexWidth, props.apexWidth, props.theme.colors.base);
45
+ return styled.css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n /*Bottom Arrow*/\n top: 100%; /* At the bottom of the tooltip */\n left: calc(50% - ", ");\n border-width: ", ";\n border-style: solid;\n border-color: ", " transparent transparent transparent;\n"])), props.apexWidth, props.apexWidth, props.theme.colors.base);
95
46
  };
96
47
  var getBottomMiddleBodyStyle = function getBottomMiddleBodyStyle(props) {
97
- return styled.css(_templateObject4(), props.bodyWidth);
48
+ return styled.css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n left: calc(50% - ", " / 2);\n"])), props.bodyWidth);
98
49
  };
99
50
  var getBottomMiddleArrowAfterStyle = function getBottomMiddleArrowAfterStyle(props) {
100
- return styled.css(_templateObject5(), props.theme.colors.base);
51
+ return styled.css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n /*Top Arrow*/\n bottom: 100%; /* At the top of the tooltip */\n top: initial;\n left: 50%;\n border-style: solid;\n border-color: transparent transparent ", " transparent;\n"])), props.theme.colors.base);
101
52
  };
102
53
 
103
- function _templateObject$1() {
104
- var data = _taggedTemplateLiteral(["\n ", ";\n visibility: hidden;\n opacity: 0;\n width: ", ";\n transition: visibility 0.3s linear, opacity 0.3s linear;\n background-color: ", ";\n color: white;\n text-align: center;\n border-radius: 5px;\n ", "\n &::after {\n content: ' ';\n position: absolute;\n ", "\n }\n"]);
105
-
106
- _templateObject$1 = function _templateObject() {
107
- return data;
108
- };
109
-
110
- return data;
111
- }
54
+ var _templateObject$1;
112
55
 
113
56
  var getBodyStyle = function getBodyStyle() {
114
57
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -143,7 +86,7 @@
143
86
  }
144
87
  };
145
88
 
146
- var Body = styled__default.span(_templateObject$1(), relativeInlineStyle, function (props) {
89
+ var Body = styled__default.span(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n ", ";\n visibility: hidden;\n opacity: 0;\n width: ", ";\n transition: visibility 0.3s linear, opacity 0.3s linear;\n background-color: ", ";\n color: white;\n text-align: center;\n border-radius: 5px;\n ", "\n &::after {\n content: ' ';\n position: absolute;\n ", "\n }\n"])), relativeInlineStyle, function (props) {
147
90
  return props.bodyWidth;
148
91
  }, function (props) {
149
92
  return props.theme.colors.base || 'black';
@@ -153,16 +96,8 @@
153
96
  return getAfterStyling(props);
154
97
  });
155
98
 
156
- function _templateObject$2() {
157
- var data = _taggedTemplateLiteral(["\n ", ";\n cursor: pointer;\n &:hover ", " {\n opacity: 1;\n visibility: visible;\n }\n"]);
158
-
159
- _templateObject$2 = function _templateObject() {
160
- return data;
161
- };
162
-
163
- return data;
164
- }
165
- var Container = styled__default.div(_templateObject$2(), relativeInlineStyle, Body);
99
+ var _templateObject$2;
100
+ var Container = styled__default.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n ", ";\n cursor: pointer;\n &:hover ", " {\n opacity: 1;\n visibility: visible;\n }\n"])), relativeInlineStyle, Body);
166
101
 
167
102
  var theme = {
168
103
  breakpoints: ['40em', '52em', '64em'],
@@ -185,10 +120,10 @@
185
120
  };
186
121
 
187
122
  var themed = (function (Component) {
188
- return React.forwardRef(function (props, ref) {
189
- return React__default.createElement(styled.ThemeProvider, {
123
+ return /*#__PURE__*/React.forwardRef(function (props, ref) {
124
+ return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
190
125
  theme: theme
191
- }, React__default.createElement(Component, _extends({}, props, {
126
+ }, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
192
127
  ref: ref
193
128
  })));
194
129
  });
@@ -202,9 +137,9 @@
202
137
  apexWidth = _ref.apexWidth,
203
138
  containerClassName = _ref.containerClassName,
204
139
  bodyClassName = _ref.bodyClassName;
205
- return React__default.createElement(Container, {
140
+ return /*#__PURE__*/React__default.createElement(Container, {
206
141
  className: containerClassName
207
- }, children, React__default.createElement(Body, {
142
+ }, children, /*#__PURE__*/React__default.createElement(Body, {
208
143
  toolTipPosition: toolTipPosition,
209
144
  bodyWidth: bodyWidth,
210
145
  apexWidth: apexWidth,
package/WrapperButton.js CHANGED
@@ -55,44 +55,20 @@
55
55
  }));
56
56
  }
57
57
 
58
- function _templateObject2() {
59
- var data = _taggedTemplateLiteral(["\n padding: 1rem 3.5rem;\n cursor: pointer;\n letter-spacing: 1.3px;\n border-style: none;\n text-transform: uppercase;\n font-size: 12px;\n color: #fff;\n transition: 0.2s ease-in-out;\n outline: none;\n min-width: 150px;\n"]);
58
+ var _templateObject, _templateObject2;
59
+ var disabledButtonStyle = styled.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: not-allowed;\n opacity: 0.4;\n"])));
60
+ var baseButtonStyle = styled.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 1rem 3.5rem;\n cursor: pointer;\n letter-spacing: 1.3px;\n border-style: none;\n text-transform: uppercase;\n font-size: 12px;\n color: #fff;\n transition: 0.2s ease-in-out;\n outline: none;\n min-width: 150px;\n"])));
60
61
 
61
- _templateObject2 = function _templateObject2() {
62
- return data;
63
- };
62
+ var _excluded = ["children"];
64
63
 
65
- return data;
66
- }
67
-
68
- function _templateObject() {
69
- var data = _taggedTemplateLiteral(["\n cursor: not-allowed;\n opacity: 0.4;\n"]);
70
-
71
- _templateObject = function _templateObject() {
72
- return data;
73
- };
74
-
75
- return data;
76
- }
77
- var disabledButtonStyle = styled.css(_templateObject());
78
- var baseButtonStyle = styled.css(_templateObject2());
79
-
80
- function _templateObject$1() {
81
- var data = _taggedTemplateLiteral(["\n outline: none;\n cursor: pointer;\n background-color: transparent;\n border: none;\n &:disabled {\n ", ";\n }\n"]);
82
-
83
- _templateObject$1 = function _templateObject() {
84
- return data;
85
- };
86
-
87
- return data;
88
- }
89
- var Button = styled__default.button(_templateObject$1(), disabledButtonStyle);
64
+ var _templateObject$1;
65
+ var Button = styled__default.button(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n outline: none;\n cursor: pointer;\n background-color: transparent;\n border: none;\n &:disabled {\n ", ";\n }\n"])), disabledButtonStyle);
90
66
 
91
67
  var WrapperButton = function WrapperButton(_ref) {
92
68
  var children = _ref.children,
93
- restProps = _objectWithoutProperties(_ref, ["children"]);
69
+ restProps = _objectWithoutProperties(_ref, _excluded);
94
70
 
95
- return React.createElement(Button, restProps, children);
71
+ return /*#__PURE__*/React.createElement(Button, restProps, children);
96
72
  };
97
73
 
98
74
  return WrapperButton;