labsense-ui-kit 1.1.83 → 1.1.84

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/dist/index.js CHANGED
@@ -4843,8 +4843,144 @@ var OptionComponent = function OptionComponent(_ref9) {
4843
4843
  }, NoOptionsText))));
4844
4844
  };
4845
4845
 
4846
- var _templateObject$a, _templateObject2$7, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$4, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2;
4847
- var DropdownContainer = styled__default.div(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n max-width: 100%;\n position: relative;\n max-height: ", ";\n"])), function (_ref) {
4846
+ var useClickOutside = function useClickOutside(elRef, elCallback) {
4847
+ var callbackRef = React.useRef(elCallback);
4848
+ callbackRef.current = elCallback;
4849
+ React.useEffect(function () {
4850
+ var handleClickOutside = function handleClickOutside(eve) {
4851
+ var _elRef$current;
4852
+ if (!(elRef !== null && elRef !== void 0 && (_elRef$current = elRef.current) !== null && _elRef$current !== void 0 && _elRef$current.contains(eve.target))) {
4853
+ callbackRef.current(eve);
4854
+ }
4855
+ };
4856
+ document.addEventListener('click', handleClickOutside, true);
4857
+ return function () {
4858
+ document.removeEventListener('click', handleClickOutside, true);
4859
+ };
4860
+ }, [elCallback, elRef]);
4861
+ };
4862
+
4863
+ var _templateObject$a, _templateObject2$7;
4864
+ var ModalOverlay = styled__default.div(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n font-family: NotoSans, sans-serif;\n z-index: 9999;\n backdrop-filter: blur(4px);\n"])));
4865
+ var ModalContainer = styled__default.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n background: ", ";\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n max-height: 100vh;\n max-width: ", ";\n overflow: visible;\n"])), function (_ref) {
4866
+ var theme = _ref.theme;
4867
+ return theme.accent.light_1;
4868
+ }, function (_ref2) {
4869
+ var $maxWidth = _ref2.$maxWidth;
4870
+ return $maxWidth ? $maxWidth : '400px';
4871
+ });
4872
+ var Modal = function Modal(_ref3) {
4873
+ var isOpen = _ref3.isOpen,
4874
+ maxWidth = _ref3.maxWidth,
4875
+ children = _ref3.children;
4876
+ if (!isOpen) return null;
4877
+ return React__default.createElement(ModalOverlay, null, React__default.createElement(ModalContainer, {
4878
+ "$maxWidth": maxWidth,
4879
+ onClick: function onClick(e) {
4880
+ return e.stopPropagation();
4881
+ }
4882
+ }, children));
4883
+ };
4884
+ var useCustomModal = function useCustomModal(_ref4) {
4885
+ var maxWidth = _ref4.maxWidth;
4886
+ var _useState = React.useState(false),
4887
+ isOpen = _useState[0],
4888
+ setIsOpen = _useState[1];
4889
+ var createModal = function createModal(content) {
4890
+ return React__default.createElement(Modal, {
4891
+ isOpen: isOpen,
4892
+ maxWidth: maxWidth
4893
+ }, content);
4894
+ };
4895
+ return {
4896
+ setIsOpen: setIsOpen,
4897
+ createModal: createModal
4898
+ };
4899
+ };
4900
+
4901
+ var useNotification = function useNotification() {
4902
+ var sendNotification = function sendNotification(_ref) {
4903
+ var type = _ref.type,
4904
+ message = _ref.message,
4905
+ promiseConfig = _ref.promiseConfig,
4906
+ customStyle = _ref.customStyle,
4907
+ _ref$clearCurrent = _ref.clearCurrent,
4908
+ clearCurrent = _ref$clearCurrent === void 0 ? false : _ref$clearCurrent;
4909
+ if (clearCurrent) {
4910
+ reactHotToast.toast.dismiss();
4911
+ }
4912
+ switch (type) {
4913
+ case 'success':
4914
+ reactHotToast.toast.success(message);
4915
+ break;
4916
+ case 'error':
4917
+ reactHotToast.toast.error(message);
4918
+ break;
4919
+ case 'info':
4920
+ reactHotToast.toast(message, {
4921
+ icon: React__default.createElement(Container, {
4922
+ "$minWidth": '20px',
4923
+ "$height": '20px',
4924
+ "$width": '20px',
4925
+ "$alignItems": 'center',
4926
+ "$justifyContent": 'center',
4927
+ "$borderRadius": '100%',
4928
+ "$background": colorVariables.disabled.info
4929
+ }, React__default.createElement(Icon, {
4930
+ icon: 'InformationFilled',
4931
+ weight: '0px',
4932
+ size: 20,
4933
+ color: colorVariables["default"].info
4934
+ })),
4935
+ style: {
4936
+ borderRadius: '8px',
4937
+ background: colorVariables.text.white,
4938
+ color: '#363636',
4939
+ maxWidth: '648px'
4940
+ }
4941
+ });
4942
+ break;
4943
+ case 'promise':
4944
+ if (promiseConfig) {
4945
+ reactHotToast.toast.promise(promiseConfig.promise, {
4946
+ loading: promiseConfig.loading,
4947
+ success: promiseConfig.success,
4948
+ error: promiseConfig.error
4949
+ }, {
4950
+ style: {
4951
+ minWidth: '300px'
4952
+ }
4953
+ });
4954
+ }
4955
+ break;
4956
+ case 'custom':
4957
+ reactHotToast.toast(message, {
4958
+ icon: React__default.createElement(Icon, {
4959
+ icon: (customStyle === null || customStyle === void 0 ? void 0 : customStyle.icon) || 'Add_1',
4960
+ size: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconSize,
4961
+ weight: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconWeight
4962
+ }),
4963
+ style: {
4964
+ background: customStyle === null || customStyle === void 0 ? void 0 : customStyle.background,
4965
+ color: customStyle === null || customStyle === void 0 ? void 0 : customStyle.color
4966
+ }
4967
+ });
4968
+ break;
4969
+ default:
4970
+ console.error('Invalid notification type or missing configuration!');
4971
+ }
4972
+ };
4973
+ return {
4974
+ sendNotification: sendNotification
4975
+ };
4976
+ };
4977
+
4978
+ var useTheme = function useTheme() {
4979
+ return styled.useTheme();
4980
+ };
4981
+
4982
+ var _templateObject$b, _templateObject2$8, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$4, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2;
4983
+ var DropdownContainer = styled__default.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n max-width: 100%;\n position: relative;\n max-height: ", ";\n"])), function (_ref) {
4848
4984
  var $width = _ref.$width;
4849
4985
  return $width || '100%';
4850
4986
  }, function (_ref2) {
@@ -4854,7 +4990,7 @@ var DropdownContainer = styled__default.div(_templateObject$a || (_templateObjec
4854
4990
  var $replaceLabel = _ref3.$replaceLabel;
4855
4991
  return $replaceLabel ? 'calc(100% - 22px)' : '';
4856
4992
  });
4857
- var DropdownButton = styled__default.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n overflow: ", ";\n padding: ", ";\n gap: 8px;\n box-sizing: border-box;\n transition: all 0.3s ease;\n width: ", ";\n height: ", ";\n border: ", ";\n border-radius: ", ";\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: ", ";\n background: ", ";\n color: ", ";\n font-family: NotoSans, sans-serif;\n font-weight: 400;\n font-size: ", ";\n line-height: ", ";\n"])), function (_ref4) {
4993
+ var DropdownButton = styled__default.div(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n overflow: ", ";\n padding: ", ";\n gap: 8px;\n box-sizing: border-box;\n transition: all 0.3s ease;\n width: ", ";\n height: ", ";\n border: ", ";\n border-radius: ", ";\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: ", ";\n background: ", ";\n color: ", ";\n font-family: NotoSans, sans-serif;\n font-weight: 400;\n font-size: ", ";\n line-height: ", ";\n"])), function (_ref4) {
4858
4994
  var $replaceLabel = _ref4.$replaceLabel;
4859
4995
  return $replaceLabel ? 'auto' : '';
4860
4996
  }, function (_ref5) {
@@ -5060,8 +5196,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
5060
5196
  var title = _ref31.title,
5061
5197
  titleWeight = _ref31.titleWeight,
5062
5198
  titleSize = _ref31.titleSize,
5063
- _ref31$titleColor = _ref31.titleColor,
5064
- titleColor = _ref31$titleColor === void 0 ? colorVariables.text.dark : _ref31$titleColor,
5199
+ titleColor = _ref31.titleColor,
5065
5200
  _ref31$labelText = _ref31.labelText,
5066
5201
  labelText = _ref31$labelText === void 0 ? 'Select Cameras' : _ref31$labelText,
5067
5202
  labelStyle = _ref31.labelStyle,
@@ -5074,8 +5209,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
5074
5209
  height = _ref31.height,
5075
5210
  placeholder = _ref31.placeholder,
5076
5211
  border = _ref31.border,
5077
- _ref31$background = _ref31.background,
5078
- background = _ref31$background === void 0 ? colorVariables["default"].tertiary : _ref31$background,
5212
+ background = _ref31.background,
5079
5213
  selectedOptionBackground = _ref31.selectedOptionBackground,
5080
5214
  selectedOptionColor = _ref31.selectedOptionColor,
5081
5215
  _ref31$menuBackground = _ref31.menuBackground,
@@ -5105,6 +5239,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
5105
5239
  searchBox = _ref31$searchBox === void 0 ? true : _ref31$searchBox,
5106
5240
  _ref31$NoOptionsText = _ref31.NoOptionsText,
5107
5241
  NoOptionsText = _ref31$NoOptionsText === void 0 ? 'No Options Available' : _ref31$NoOptionsText;
5242
+ var themeColors = useTheme();
5108
5243
  var _useState = React.useState(false),
5109
5244
  isOpen = _useState[0],
5110
5245
  setIsOpen = _useState[1];
@@ -5138,7 +5273,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
5138
5273
  }
5139
5274
  };
5140
5275
  return React__default.createElement(Container$2, null, title && React__default.createElement(TitleText, {
5141
- "$titleColor": titleColor,
5276
+ "$titleColor": titleColor || themeColors.text.dark,
5142
5277
  "$titleSize": titleSize,
5143
5278
  "$size": size,
5144
5279
  "$titleWeight": titleWeight
@@ -5152,7 +5287,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
5152
5287
  "$height": height,
5153
5288
  "$width": width,
5154
5289
  "$border": border,
5155
- "$background": background,
5290
+ "$background": background || themeColors["default"].tertiary,
5156
5291
  "$borderRadius": borderRadius,
5157
5292
  "$size": size,
5158
5293
  "$color": labelColor,
@@ -5176,21 +5311,21 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
5176
5311
  }, React__default.createElement(Icon, {
5177
5312
  icon: 'Close',
5178
5313
  size: (removeIcon === null || removeIcon === void 0 ? void 0 : removeIcon.size) || 6,
5179
- color: removeIcon !== null && removeIcon !== void 0 && removeIcon.color || type === 'remove' ? colorVariables["default"].error : colorVariables.brand.primary,
5314
+ color: removeIcon !== null && removeIcon !== void 0 && removeIcon.color || type === 'remove' ? themeColors["default"].error : themeColors.brand.primary,
5180
5315
  weight: (removeIcon === null || removeIcon === void 0 ? void 0 : removeIcon.weight) || '0'
5181
5316
  })));
5182
5317
  })) : React__default.createElement(TextWrapper, null, icon && React__default.createElement(Icon, {
5183
5318
  icon: icon.name || 'Tag',
5184
5319
  size: icon.size || 14,
5185
5320
  weight: icon.weight || '1',
5186
- color: icon.color || colorVariables.text.medium
5321
+ color: icon.color || themeColors.text.medium
5187
5322
  }), React__default.createElement(LabelText, {
5188
5323
  "$labelStyle": labelStyle
5189
5324
  }, labelText)), React__default.createElement(Icon, {
5190
5325
  icon: isOpen ? 'UpArrow' : 'DownArrow',
5191
5326
  size: 7,
5192
5327
  weight: '2px',
5193
- color: colorVariables.text.medium
5328
+ color: themeColors.text.medium
5194
5329
  })), isOpen && React__default.createElement(DropdownMenu, {
5195
5330
  "$width": optionWidth,
5196
5331
  "$menuBackground": menuBackground,
@@ -5205,7 +5340,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
5205
5340
  optionColor: optionColor,
5206
5341
  searchIcon: searchIcon,
5207
5342
  searchbarTextColor: searchbarTextColor,
5208
- searchBoxBorder: searchBoxBorder || "1px solid " + colorVariables.border.light,
5343
+ searchBoxBorder: searchBoxBorder || "1px solid " + themeColors.border.light,
5209
5344
  searchBoxBorderRadius: searchBoxBorderRadius || '0px',
5210
5345
  searchBoxBackground: searchBoxBackground,
5211
5346
  searchBox: searchBox,
@@ -5213,9 +5348,9 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
5213
5348
  }))));
5214
5349
  };
5215
5350
 
5216
- var _templateObject$b, _templateObject2$8, _templateObject3$6;
5217
- var SelectedOptionsWrapper$1 = styled__default.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n"])));
5218
- var SelectedOptionDiv$1 = styled__default.div(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n background: ", ";\n border-radius: 4px;\n padding: 6px 8px;\n box-sizing: border-box;\n gap: 6px;\n font-family: NotoSans, sans-serif;\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 12px;\n color: ", ";\n"])), function (_ref) {
5351
+ var _templateObject$c, _templateObject2$9, _templateObject3$6;
5352
+ var SelectedOptionsWrapper$1 = styled__default.div(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n"])));
5353
+ var SelectedOptionDiv$1 = styled__default.div(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n background: ", ";\n border-radius: 4px;\n padding: 6px 8px;\n box-sizing: border-box;\n gap: 6px;\n font-family: NotoSans, sans-serif;\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 12px;\n color: ", ";\n"])), function (_ref) {
5219
5354
  var $selectedOptionBackground = _ref.$selectedOptionBackground,
5220
5355
  $type = _ref.$type,
5221
5356
  theme = _ref.theme;
@@ -5278,8 +5413,8 @@ var SelectedOption = function SelectedOption(_ref4) {
5278
5413
  }));
5279
5414
  };
5280
5415
 
5281
- var _templateObject$c, _templateObject2$9, _templateObject3$7, _templateObject4$5, _templateObject5$5, _templateObject6$5, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject10$3;
5282
- var TitleText$1 = styled__default.label(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose(["\n position: relative;\n width: max-content;\n white-space: nowrap;\n font-weight: ", ";\n ", "\n\n color: ", ";\n"])), function (_ref) {
5416
+ var _templateObject$d, _templateObject2$a, _templateObject3$7, _templateObject4$5, _templateObject5$5, _templateObject6$5, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject10$3;
5417
+ var TitleText$1 = styled__default.label(_templateObject$d || (_templateObject$d = _taggedTemplateLiteralLoose(["\n position: relative;\n width: max-content;\n white-space: nowrap;\n font-weight: ", ";\n ", "\n\n color: ", ";\n"])), function (_ref) {
5283
5418
  var $titleWeight = _ref.$titleWeight;
5284
5419
  return $titleWeight || 500;
5285
5420
  }, function (_ref2) {
@@ -5318,7 +5453,7 @@ var TitleText$1 = styled__default.label(_templateObject$c || (_templateObject$c
5318
5453
  return $titlecolor;
5319
5454
  }
5320
5455
  });
5321
- var DropdownContainer$1 = styled__default.div(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n width: ", ";\n max-width: 100%;\n position: relative;\n gap: 8px;\n display: flex;\n"])), function (_ref4) {
5456
+ var DropdownContainer$1 = styled__default.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n width: ", ";\n max-width: 100%;\n position: relative;\n gap: 8px;\n display: flex;\n"])), function (_ref4) {
5322
5457
  var $width = _ref4.$width;
5323
5458
  return $width || '100%';
5324
5459
  });
@@ -5680,139 +5815,6 @@ var SelectOption = function SelectOption(_ref36) {
5680
5815
  }) : React__default.createElement(NoOptions, null, NoOptionsText)))));
5681
5816
  };
5682
5817
 
5683
- var useClickOutside = function useClickOutside(elRef, elCallback) {
5684
- var callbackRef = React.useRef(elCallback);
5685
- callbackRef.current = elCallback;
5686
- React.useEffect(function () {
5687
- var handleClickOutside = function handleClickOutside(eve) {
5688
- var _elRef$current;
5689
- if (!(elRef !== null && elRef !== void 0 && (_elRef$current = elRef.current) !== null && _elRef$current !== void 0 && _elRef$current.contains(eve.target))) {
5690
- callbackRef.current(eve);
5691
- }
5692
- };
5693
- document.addEventListener('click', handleClickOutside, true);
5694
- return function () {
5695
- document.removeEventListener('click', handleClickOutside, true);
5696
- };
5697
- }, [elCallback, elRef]);
5698
- };
5699
-
5700
- var _templateObject$d, _templateObject2$a;
5701
- var ModalOverlay = styled__default.div(_templateObject$d || (_templateObject$d = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n font-family: NotoSans, sans-serif;\n z-index: 9999;\n backdrop-filter: blur(4px);\n"])));
5702
- var ModalContainer = styled__default.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n background: ", ";\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n max-height: 100vh;\n max-width: ", ";\n overflow: visible;\n"])), colorVariables.accent.light_1, function (_ref) {
5703
- var $maxWidth = _ref.$maxWidth;
5704
- return $maxWidth ? $maxWidth : '400px';
5705
- });
5706
- var Modal = function Modal(_ref2) {
5707
- var isOpen = _ref2.isOpen,
5708
- maxWidth = _ref2.maxWidth,
5709
- children = _ref2.children;
5710
- if (!isOpen) return null;
5711
- return React__default.createElement(ModalOverlay, null, React__default.createElement(ModalContainer, {
5712
- "$maxWidth": maxWidth,
5713
- onClick: function onClick(e) {
5714
- return e.stopPropagation();
5715
- }
5716
- }, children));
5717
- };
5718
- var useCustomModal = function useCustomModal(_ref3) {
5719
- var maxWidth = _ref3.maxWidth;
5720
- var _useState = React.useState(false),
5721
- isOpen = _useState[0],
5722
- setIsOpen = _useState[1];
5723
- var createModal = function createModal(content) {
5724
- return React__default.createElement(Modal, {
5725
- isOpen: isOpen,
5726
- maxWidth: maxWidth
5727
- }, content);
5728
- };
5729
- return {
5730
- setIsOpen: setIsOpen,
5731
- createModal: createModal
5732
- };
5733
- };
5734
-
5735
- var useNotification = function useNotification() {
5736
- var sendNotification = function sendNotification(_ref) {
5737
- var type = _ref.type,
5738
- message = _ref.message,
5739
- promiseConfig = _ref.promiseConfig,
5740
- customStyle = _ref.customStyle,
5741
- _ref$clearCurrent = _ref.clearCurrent,
5742
- clearCurrent = _ref$clearCurrent === void 0 ? false : _ref$clearCurrent;
5743
- if (clearCurrent) {
5744
- reactHotToast.toast.dismiss();
5745
- }
5746
- switch (type) {
5747
- case 'success':
5748
- reactHotToast.toast.success(message);
5749
- break;
5750
- case 'error':
5751
- reactHotToast.toast.error(message);
5752
- break;
5753
- case 'info':
5754
- reactHotToast.toast(message, {
5755
- icon: React__default.createElement(Container, {
5756
- "$minWidth": '20px',
5757
- "$height": '20px',
5758
- "$width": '20px',
5759
- "$alignItems": 'center',
5760
- "$justifyContent": 'center',
5761
- "$borderRadius": '100%',
5762
- "$background": colorVariables.disabled.info
5763
- }, React__default.createElement(Icon, {
5764
- icon: 'InformationFilled',
5765
- weight: '0px',
5766
- size: 20,
5767
- color: colorVariables["default"].info
5768
- })),
5769
- style: {
5770
- borderRadius: '8px',
5771
- background: colorVariables.text.white,
5772
- color: '#363636',
5773
- maxWidth: '648px'
5774
- }
5775
- });
5776
- break;
5777
- case 'promise':
5778
- if (promiseConfig) {
5779
- reactHotToast.toast.promise(promiseConfig.promise, {
5780
- loading: promiseConfig.loading,
5781
- success: promiseConfig.success,
5782
- error: promiseConfig.error
5783
- }, {
5784
- style: {
5785
- minWidth: '300px'
5786
- }
5787
- });
5788
- }
5789
- break;
5790
- case 'custom':
5791
- reactHotToast.toast(message, {
5792
- icon: React__default.createElement(Icon, {
5793
- icon: (customStyle === null || customStyle === void 0 ? void 0 : customStyle.icon) || 'Add_1',
5794
- size: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconSize,
5795
- weight: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconWeight
5796
- }),
5797
- style: {
5798
- background: customStyle === null || customStyle === void 0 ? void 0 : customStyle.background,
5799
- color: customStyle === null || customStyle === void 0 ? void 0 : customStyle.color
5800
- }
5801
- });
5802
- break;
5803
- default:
5804
- console.error('Invalid notification type or missing configuration!');
5805
- }
5806
- };
5807
- return {
5808
- sendNotification: sendNotification
5809
- };
5810
- };
5811
-
5812
- var useTheme = function useTheme() {
5813
- return styled.useTheme();
5814
- };
5815
-
5816
5818
  var _templateObject$e, _templateObject2$b;
5817
5819
  var SearchContainer$2 = styled__default.div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 100%;\n background: ", ";\n border: ", ";\n border-radius: ", ";\n padding: 5.5px 8px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n // cursor: ", ";\n transition: all 0.3s ease;\n\n &:focus-within {\n border: ", ";\n }\n"])), function (_ref) {
5818
5820
  var $background = _ref.$background,