@bonlineza/luxity-lib 2.37.6 → 2.37.8

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.
package/CurrencySelect.js CHANGED
@@ -42,10 +42,10 @@
42
42
  var relativeInlineStyle = styled.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
43
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"])));
44
44
  var getTopMiddleArrowAfterStyle = function getTopMiddleArrowAfterStyle(props) {
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);
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);
46
46
  };
47
47
  var getBottomMiddleBodyStyle = function getBottomMiddleBodyStyle(props) {
48
- return styled.css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n left: calc(50% - ", " / 2);\n"])), props.bodyWidth);
48
+ return styled.css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n left: calc(50% - ", " / 2);\n"])), props.$bodyWidth);
49
49
  };
50
50
  var getBottomMiddleArrowAfterStyle = function getBottomMiddleArrowAfterStyle(props) {
51
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);
@@ -55,10 +55,10 @@
55
55
 
56
56
  var getBodyStyle = function getBodyStyle() {
57
57
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
58
- var _props$toolTipPositio = props.toolTipPosition,
59
- toolTipPosition = _props$toolTipPositio === void 0 ? '' : _props$toolTipPositio;
58
+ var _props$$toolTipPositi = props.$toolTipPosition,
59
+ $toolTipPosition = _props$$toolTipPositi === void 0 ? '' : _props$$toolTipPositi;
60
60
 
61
- switch (toolTipPosition) {
61
+ switch ($toolTipPosition) {
62
62
  case 'top':
63
63
  return topMiddleBodyStyle;
64
64
 
@@ -72,9 +72,9 @@
72
72
 
73
73
  var getAfterStyling = function getAfterStyling() {
74
74
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
75
- var toolTipPosition = props.toolTipPosition;
75
+ var $toolTipPosition = props.$toolTipPosition;
76
76
 
77
- switch (toolTipPosition) {
77
+ switch ($toolTipPosition) {
78
78
  case 'top':
79
79
  return getTopMiddleArrowAfterStyle(props);
80
80
 
@@ -87,7 +87,7 @@
87
87
  };
88
88
 
89
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) {
90
- return props.bodyWidth;
90
+ return props.$bodyWidth;
91
91
  }, function (props) {
92
92
  return props.theme.colors.base || 'black';
93
93
  }, function (props) {
@@ -163,33 +163,33 @@
163
163
  });
164
164
  });
165
165
 
166
+ /* eslint-disable react/require-default-props */
167
+
166
168
  var Tooltip = function Tooltip(_ref) {
167
- var children = _ref.children,
168
- toolTipText = _ref.toolTipText,
169
- toolTipPosition = _ref.toolTipPosition,
170
- bodyWidth = _ref.bodyWidth,
171
- apexWidth = _ref.apexWidth,
172
- containerClassName = _ref.containerClassName,
173
- bodyClassName = _ref.bodyClassName;
169
+ var _ref$children = _ref.children,
170
+ children = _ref$children === void 0 ? null : _ref$children,
171
+ _ref$toolTipText = _ref.toolTipText,
172
+ toolTipText = _ref$toolTipText === void 0 ? '' : _ref$toolTipText,
173
+ _ref$toolTipPosition = _ref.toolTipPosition,
174
+ toolTipPosition = _ref$toolTipPosition === void 0 ? 'top' : _ref$toolTipPosition,
175
+ _ref$bodyWidth = _ref.bodyWidth,
176
+ bodyWidth = _ref$bodyWidth === void 0 ? '8em' : _ref$bodyWidth,
177
+ _ref$apexWidth = _ref.apexWidth,
178
+ apexWidth = _ref$apexWidth === void 0 ? '5px' : _ref$apexWidth,
179
+ _ref$containerClassNa = _ref.containerClassName,
180
+ containerClassName = _ref$containerClassNa === void 0 ? '' : _ref$containerClassNa,
181
+ _ref$bodyClassName = _ref.bodyClassName,
182
+ bodyClassName = _ref$bodyClassName === void 0 ? '' : _ref$bodyClassName;
174
183
  return /*#__PURE__*/React__default.createElement(Container, {
175
184
  className: containerClassName
176
185
  }, children, /*#__PURE__*/React__default.createElement(Body, {
177
- toolTipPosition: toolTipPosition,
178
- bodyWidth: bodyWidth,
179
- apexWidth: apexWidth,
186
+ $toolTipPosition: toolTipPosition,
187
+ $bodyWidth: bodyWidth,
188
+ $apexWidth: apexWidth,
180
189
  className: bodyClassName
181
190
  }, toolTipText));
182
191
  };
183
192
 
184
- Tooltip.defaultProps = {
185
- children: null,
186
- toolTipText: '',
187
- toolTipPosition: 'top',
188
- bodyWidth: '8em',
189
- apexWidth: '5px',
190
- containerClassName: '',
191
- bodyClassName: ''
192
- };
193
193
  var Tooltip$1 = themed(Tooltip);
194
194
 
195
195
  var CurrencySelect = function CurrencySelect(_ref) {
@@ -1313,10 +1313,10 @@
1313
1313
  var relativeInlineStyle = styled.css(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n position: relative;\n"])));
1314
1314
  var topMiddleBodyStyle = styled.css(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n position: absolute;\n z-index: 1;\n bottom: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"])));
1315
1315
  var getTopMiddleArrowAfterStyle = function getTopMiddleArrowAfterStyle(props) {
1316
- return styled.css(_templateObject3$1 || (_templateObject3$1 = _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);
1316
+ return styled.css(_templateObject3$1 || (_templateObject3$1 = _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);
1317
1317
  };
1318
1318
  var getBottomMiddleBodyStyle = function getBottomMiddleBodyStyle(props) {
1319
- return styled.css(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n left: calc(50% - ", " / 2);\n"])), props.bodyWidth);
1319
+ return styled.css(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n left: calc(50% - ", " / 2);\n"])), props.$bodyWidth);
1320
1320
  };
1321
1321
  var getBottomMiddleArrowAfterStyle = function getBottomMiddleArrowAfterStyle(props) {
1322
1322
  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);
@@ -1326,10 +1326,10 @@
1326
1326
 
1327
1327
  var getBodyStyle = function getBodyStyle() {
1328
1328
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1329
- var _props$toolTipPositio = props.toolTipPosition,
1330
- toolTipPosition = _props$toolTipPositio === void 0 ? '' : _props$toolTipPositio;
1329
+ var _props$$toolTipPositi = props.$toolTipPosition,
1330
+ $toolTipPosition = _props$$toolTipPositi === void 0 ? '' : _props$$toolTipPositi;
1331
1331
 
1332
- switch (toolTipPosition) {
1332
+ switch ($toolTipPosition) {
1333
1333
  case 'top':
1334
1334
  return topMiddleBodyStyle;
1335
1335
 
@@ -1343,9 +1343,9 @@
1343
1343
 
1344
1344
  var getAfterStyling = function getAfterStyling() {
1345
1345
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1346
- var toolTipPosition = props.toolTipPosition;
1346
+ var $toolTipPosition = props.$toolTipPosition;
1347
1347
 
1348
- switch (toolTipPosition) {
1348
+ switch ($toolTipPosition) {
1349
1349
  case 'top':
1350
1350
  return getTopMiddleArrowAfterStyle(props);
1351
1351
 
@@ -1358,7 +1358,7 @@
1358
1358
  };
1359
1359
 
1360
1360
  var Body$1 = styled__default.span(_templateObject$j || (_templateObject$j = _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) {
1361
- return props.bodyWidth;
1361
+ return props.$bodyWidth;
1362
1362
  }, function (props) {
1363
1363
  return props.theme.colors.base || 'black';
1364
1364
  }, function (props) {
@@ -487,10 +487,10 @@
487
487
  var relativeInlineStyle = styled.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
488
488
  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"])));
489
489
  var getTopMiddleArrowAfterStyle = function getTopMiddleArrowAfterStyle(props) {
490
- 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);
490
+ 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);
491
491
  };
492
492
  var getBottomMiddleBodyStyle = function getBottomMiddleBodyStyle(props) {
493
- return styled.css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n left: calc(50% - ", " / 2);\n"])), props.bodyWidth);
493
+ return styled.css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n left: calc(50% - ", " / 2);\n"])), props.$bodyWidth);
494
494
  };
495
495
  var getBottomMiddleArrowAfterStyle = function getBottomMiddleArrowAfterStyle(props) {
496
496
  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);
@@ -500,10 +500,10 @@
500
500
 
501
501
  var getBodyStyle = function getBodyStyle() {
502
502
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
503
- var _props$toolTipPositio = props.toolTipPosition,
504
- toolTipPosition = _props$toolTipPositio === void 0 ? '' : _props$toolTipPositio;
503
+ var _props$$toolTipPositi = props.$toolTipPosition,
504
+ $toolTipPosition = _props$$toolTipPositi === void 0 ? '' : _props$$toolTipPositi;
505
505
 
506
- switch (toolTipPosition) {
506
+ switch ($toolTipPosition) {
507
507
  case 'top':
508
508
  return topMiddleBodyStyle;
509
509
 
@@ -517,9 +517,9 @@
517
517
 
518
518
  var getAfterStyling = function getAfterStyling() {
519
519
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
520
- var toolTipPosition = props.toolTipPosition;
520
+ var $toolTipPosition = props.$toolTipPosition;
521
521
 
522
- switch (toolTipPosition) {
522
+ switch ($toolTipPosition) {
523
523
  case 'top':
524
524
  return getTopMiddleArrowAfterStyle(props);
525
525
 
@@ -532,7 +532,7 @@
532
532
  };
533
533
 
534
534
  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) {
535
- return props.bodyWidth;
535
+ return props.$bodyWidth;
536
536
  }, function (props) {
537
537
  return props.theme.colors.base || 'black';
538
538
  }, function (props) {
@@ -608,33 +608,33 @@
608
608
  });
609
609
  });
610
610
 
611
+ /* eslint-disable react/require-default-props */
612
+
611
613
  var Tooltip = function Tooltip(_ref) {
612
- var children = _ref.children,
613
- toolTipText = _ref.toolTipText,
614
- toolTipPosition = _ref.toolTipPosition,
615
- bodyWidth = _ref.bodyWidth,
616
- apexWidth = _ref.apexWidth,
617
- containerClassName = _ref.containerClassName,
618
- bodyClassName = _ref.bodyClassName;
614
+ var _ref$children = _ref.children,
615
+ children = _ref$children === void 0 ? null : _ref$children,
616
+ _ref$toolTipText = _ref.toolTipText,
617
+ toolTipText = _ref$toolTipText === void 0 ? '' : _ref$toolTipText,
618
+ _ref$toolTipPosition = _ref.toolTipPosition,
619
+ toolTipPosition = _ref$toolTipPosition === void 0 ? 'top' : _ref$toolTipPosition,
620
+ _ref$bodyWidth = _ref.bodyWidth,
621
+ bodyWidth = _ref$bodyWidth === void 0 ? '8em' : _ref$bodyWidth,
622
+ _ref$apexWidth = _ref.apexWidth,
623
+ apexWidth = _ref$apexWidth === void 0 ? '5px' : _ref$apexWidth,
624
+ _ref$containerClassNa = _ref.containerClassName,
625
+ containerClassName = _ref$containerClassNa === void 0 ? '' : _ref$containerClassNa,
626
+ _ref$bodyClassName = _ref.bodyClassName,
627
+ bodyClassName = _ref$bodyClassName === void 0 ? '' : _ref$bodyClassName;
619
628
  return /*#__PURE__*/React__default.createElement(Container, {
620
629
  className: containerClassName
621
630
  }, children, /*#__PURE__*/React__default.createElement(Body, {
622
- toolTipPosition: toolTipPosition,
623
- bodyWidth: bodyWidth,
624
- apexWidth: apexWidth,
631
+ $toolTipPosition: toolTipPosition,
632
+ $bodyWidth: bodyWidth,
633
+ $apexWidth: apexWidth,
625
634
  className: bodyClassName
626
635
  }, toolTipText));
627
636
  };
628
637
 
629
- Tooltip.defaultProps = {
630
- children: null,
631
- toolTipText: '',
632
- toolTipPosition: 'top',
633
- bodyWidth: '8em',
634
- apexWidth: '5px',
635
- containerClassName: '',
636
- bodyClassName: ''
637
- };
638
638
  var Tooltip$1 = themed(Tooltip);
639
639
 
640
640
  var CurrencySelect = function CurrencySelect(_ref) {
@@ -698,7 +698,6 @@
698
698
  var useSearch = function useSearch(_ref) {
699
699
  var endpoint = _ref.endpoint,
700
700
  onProductIdsReceived = _ref.onProductIdsReceived,
701
- onSearchLoading = _ref.onSearchLoading,
702
701
  currency = _ref.currency,
703
702
  onSearchPreview = _ref.onSearchPreview;
704
703
  var currentSearchRequestToken = React.useRef(null);
@@ -749,12 +748,7 @@
749
748
 
750
749
 
751
750
  var newSearchToken = axios.CancelToken.source();
752
- currentSearchRequestToken.current = newSearchToken; // Set loading to true when starting the search request
753
-
754
- if (typeof onSearchLoading === 'function') {
755
- onSearchLoading(true);
756
- }
757
-
751
+ currentSearchRequestToken.current = newSearchToken;
758
752
  axios.post(endpoint, searchProducts(searchQuery, 3, currency), {
759
753
  cancelToken: newSearchToken.token
760
754
  }).then(function (response) {
@@ -776,11 +770,7 @@
776
770
  });
777
771
  }
778
772
 
779
- currentSearchRequestToken.current = null; // Set loading to false when search completes successfully
780
-
781
- if (typeof onSearchLoading === 'function') {
782
- onSearchLoading(false);
783
- }
773
+ currentSearchRequestToken.current = null;
784
774
  }
785
775
  }).catch(function (error) {
786
776
  if (!axios.isCancel(error)) {
@@ -789,14 +779,10 @@
789
779
  products: [],
790
780
  luxity_product_ids: []
791
781
  });
792
- currentSearchRequestToken.current = null; // Set loading to false when search fails
793
-
794
- if (typeof onSearchLoading === 'function') {
795
- onSearchLoading(false);
796
- }
782
+ currentSearchRequestToken.current = null;
797
783
  }
798
784
  });
799
- }, [endpoint, currency, onSearchPreview, onProductIdsReceived, onSearchLoading]);
785
+ }, [endpoint, currency, onSearchPreview, onProductIdsReceived]);
800
786
  var debouncedSearch = React.useMemo(function () {
801
787
  return debounce(function (searchQuery, setSearchResults) {
802
788
  return performSearch(searchQuery, setSearchResults);
@@ -901,22 +887,6 @@
901
887
  }
902
888
  }, [searchValue, immediateSearch, setIsSearchFocused, setSearchValue]);
903
889
  };
904
- var useSearchUrlQuery = function useSearchUrlQuery(setSearchValue, debouncedSearch) {
905
- var hasProcessedUrlQuery = React.useRef(false);
906
- React.useEffect(function () {
907
- if (hasProcessedUrlQuery.current) return;
908
- var urlParams = new URLSearchParams(window.location.search);
909
- var queryParam = urlParams.get('q');
910
- var isSearchPage = window.location.pathname.includes('/search');
911
-
912
- if (queryParam && queryParam.trim() !== '' && isSearchPage) {
913
- hasProcessedUrlQuery.current = true;
914
- setSearchValue(queryParam);
915
- debouncedSearch(queryParam);
916
- }
917
- }, [setSearchValue, debouncedSearch]);
918
- return hasProcessedUrlQuery;
919
- };
920
890
 
921
891
  var removeCategoryByName = function removeCategoryByName(categories, name) {
922
892
  var _categories$filter;
@@ -953,7 +923,6 @@
953
923
  onProductSearchResultClick = _ref.onProductSearchResultClick,
954
924
  onBrandSearchResultClick = _ref.onBrandSearchResultClick,
955
925
  onProductIdsReceived = _ref.onProductIdsReceived,
956
- onSearchLoading = _ref.onSearchLoading,
957
926
  currency = _ref.currency,
958
927
  currencySymbol = _ref.currencySymbol,
959
928
  currencyOptions = _ref.currencyOptions,
@@ -972,7 +941,6 @@
972
941
  var _useSearch = useSearch({
973
942
  endpoint: endpoint,
974
943
  onProductIdsReceived: onProductIdsReceived,
975
- onSearchLoading: onSearchLoading,
976
944
  currency: currency,
977
945
  onSearchPreview: onSearchPreview
978
946
  }),
@@ -1036,7 +1004,6 @@
1036
1004
  });
1037
1005
  var immediateSearch = createImmediateSearch(setSearchValue, setSearchResults, onSearchSubmit);
1038
1006
  var handleChange = useSearchInputChange(setSearchValue, setIsSearchFocused, debouncedSearch, setSearchResults, setCachedResults);
1039
- useSearchUrlQuery(setSearchValue, debouncedSearch);
1040
1007
  useSearchClickOutside(searchResultsRef, searchResults, setCachedResults, setIsSearchFocused, setSearchResults);
1041
1008
 
1042
1009
  var handleSearchClick = function handleSearchClick() {
package/LuxityFooter.js CHANGED
@@ -1931,10 +1931,10 @@
1931
1931
  var relativeInlineStyle = styled.css(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n position: relative;\n"])));
1932
1932
  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"])));
1933
1933
  var getTopMiddleArrowAfterStyle = function getTopMiddleArrowAfterStyle(props) {
1934
- 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);
1934
+ 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);
1935
1935
  };
1936
1936
  var getBottomMiddleBodyStyle = function getBottomMiddleBodyStyle(props) {
1937
- return styled.css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n left: calc(50% - ", " / 2);\n"])), props.bodyWidth);
1937
+ return styled.css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n left: calc(50% - ", " / 2);\n"])), props.$bodyWidth);
1938
1938
  };
1939
1939
  var getBottomMiddleArrowAfterStyle = function getBottomMiddleArrowAfterStyle(props) {
1940
1940
  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);
@@ -1944,10 +1944,10 @@
1944
1944
 
1945
1945
  var getBodyStyle = function getBodyStyle() {
1946
1946
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1947
- var _props$toolTipPositio = props.toolTipPosition,
1948
- toolTipPosition = _props$toolTipPositio === void 0 ? '' : _props$toolTipPositio;
1947
+ var _props$$toolTipPositi = props.$toolTipPosition,
1948
+ $toolTipPosition = _props$$toolTipPositi === void 0 ? '' : _props$$toolTipPositi;
1949
1949
 
1950
- switch (toolTipPosition) {
1950
+ switch ($toolTipPosition) {
1951
1951
  case 'top':
1952
1952
  return topMiddleBodyStyle;
1953
1953
 
@@ -1961,9 +1961,9 @@
1961
1961
 
1962
1962
  var getAfterStyling = function getAfterStyling() {
1963
1963
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1964
- var toolTipPosition = props.toolTipPosition;
1964
+ var $toolTipPosition = props.$toolTipPosition;
1965
1965
 
1966
- switch (toolTipPosition) {
1966
+ switch ($toolTipPosition) {
1967
1967
  case 'top':
1968
1968
  return getTopMiddleArrowAfterStyle(props);
1969
1969
 
@@ -1976,7 +1976,7 @@
1976
1976
  };
1977
1977
 
1978
1978
  var Body = styled__default.span(_templateObject$2 || (_templateObject$2 = _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) {
1979
- return props.bodyWidth;
1979
+ return props.$bodyWidth;
1980
1980
  }, function (props) {
1981
1981
  return props.theme.colors.base || 'black';
1982
1982
  }, function (props) {
@@ -1988,33 +1988,33 @@
1988
1988
  var _templateObject$3;
1989
1989
  var Container = styled__default.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n ", ";\n cursor: pointer;\n &:hover ", " {\n opacity: 1;\n visibility: visible;\n }\n"])), relativeInlineStyle, Body);
1990
1990
 
1991
+ /* eslint-disable react/require-default-props */
1992
+
1991
1993
  var Tooltip = function Tooltip(_ref) {
1992
- var children = _ref.children,
1993
- toolTipText = _ref.toolTipText,
1994
- toolTipPosition = _ref.toolTipPosition,
1995
- bodyWidth = _ref.bodyWidth,
1996
- apexWidth = _ref.apexWidth,
1997
- containerClassName = _ref.containerClassName,
1998
- bodyClassName = _ref.bodyClassName;
1994
+ var _ref$children = _ref.children,
1995
+ children = _ref$children === void 0 ? null : _ref$children,
1996
+ _ref$toolTipText = _ref.toolTipText,
1997
+ toolTipText = _ref$toolTipText === void 0 ? '' : _ref$toolTipText,
1998
+ _ref$toolTipPosition = _ref.toolTipPosition,
1999
+ toolTipPosition = _ref$toolTipPosition === void 0 ? 'top' : _ref$toolTipPosition,
2000
+ _ref$bodyWidth = _ref.bodyWidth,
2001
+ bodyWidth = _ref$bodyWidth === void 0 ? '8em' : _ref$bodyWidth,
2002
+ _ref$apexWidth = _ref.apexWidth,
2003
+ apexWidth = _ref$apexWidth === void 0 ? '5px' : _ref$apexWidth,
2004
+ _ref$containerClassNa = _ref.containerClassName,
2005
+ containerClassName = _ref$containerClassNa === void 0 ? '' : _ref$containerClassNa,
2006
+ _ref$bodyClassName = _ref.bodyClassName,
2007
+ bodyClassName = _ref$bodyClassName === void 0 ? '' : _ref$bodyClassName;
1999
2008
  return /*#__PURE__*/React__default.createElement(Container, {
2000
2009
  className: containerClassName
2001
2010
  }, children, /*#__PURE__*/React__default.createElement(Body, {
2002
- toolTipPosition: toolTipPosition,
2003
- bodyWidth: bodyWidth,
2004
- apexWidth: apexWidth,
2011
+ $toolTipPosition: toolTipPosition,
2012
+ $bodyWidth: bodyWidth,
2013
+ $apexWidth: apexWidth,
2005
2014
  className: bodyClassName
2006
2015
  }, toolTipText));
2007
2016
  };
2008
2017
 
2009
- Tooltip.defaultProps = {
2010
- children: null,
2011
- toolTipText: '',
2012
- toolTipPosition: 'top',
2013
- bodyWidth: '8em',
2014
- apexWidth: '5px',
2015
- containerClassName: '',
2016
- bodyClassName: ''
2017
- };
2018
2018
  var Tooltip$1 = themed(Tooltip);
2019
2019
 
2020
2020
  var CurrencySelect = function CurrencySelect(_ref) {
@@ -2161,6 +2161,7 @@
2161
2161
  track: link === null || link === void 0 ? void 0 : link.track,
2162
2162
  target: link.target
2163
2163
  }, link.label) : /*#__PURE__*/React__default.createElement("div", {
2164
+ key: link.label,
2164
2165
  className: "footer__text"
2165
2166
  }, link.label);
2166
2167
  })));
@@ -1313,10 +1313,10 @@
1313
1313
  var relativeInlineStyle = styled.css(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n position: relative;\n"])));
1314
1314
  var topMiddleBodyStyle = styled.css(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n position: absolute;\n z-index: 1;\n bottom: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"])));
1315
1315
  var getTopMiddleArrowAfterStyle = function getTopMiddleArrowAfterStyle(props) {
1316
- return styled.css(_templateObject3$1 || (_templateObject3$1 = _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);
1316
+ return styled.css(_templateObject3$1 || (_templateObject3$1 = _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);
1317
1317
  };
1318
1318
  var getBottomMiddleBodyStyle = function getBottomMiddleBodyStyle(props) {
1319
- return styled.css(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n left: calc(50% - ", " / 2);\n"])), props.bodyWidth);
1319
+ return styled.css(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n left: calc(50% - ", " / 2);\n"])), props.$bodyWidth);
1320
1320
  };
1321
1321
  var getBottomMiddleArrowAfterStyle = function getBottomMiddleArrowAfterStyle(props) {
1322
1322
  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);
@@ -1326,10 +1326,10 @@
1326
1326
 
1327
1327
  var getBodyStyle = function getBodyStyle() {
1328
1328
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1329
- var _props$toolTipPositio = props.toolTipPosition,
1330
- toolTipPosition = _props$toolTipPositio === void 0 ? '' : _props$toolTipPositio;
1329
+ var _props$$toolTipPositi = props.$toolTipPosition,
1330
+ $toolTipPosition = _props$$toolTipPositi === void 0 ? '' : _props$$toolTipPositi;
1331
1331
 
1332
- switch (toolTipPosition) {
1332
+ switch ($toolTipPosition) {
1333
1333
  case 'top':
1334
1334
  return topMiddleBodyStyle;
1335
1335
 
@@ -1343,9 +1343,9 @@
1343
1343
 
1344
1344
  var getAfterStyling = function getAfterStyling() {
1345
1345
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1346
- var toolTipPosition = props.toolTipPosition;
1346
+ var $toolTipPosition = props.$toolTipPosition;
1347
1347
 
1348
- switch (toolTipPosition) {
1348
+ switch ($toolTipPosition) {
1349
1349
  case 'top':
1350
1350
  return getTopMiddleArrowAfterStyle(props);
1351
1351
 
@@ -1358,7 +1358,7 @@
1358
1358
  };
1359
1359
 
1360
1360
  var Body$1 = styled__default.span(_templateObject$j || (_templateObject$j = _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) {
1361
- return props.bodyWidth;
1361
+ return props.$bodyWidth;
1362
1362
  }, function (props) {
1363
1363
  return props.theme.colors.base || 'black';
1364
1364
  }, function (props) {