labsense-ui-kit 1.1.76 → 1.1.77

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
@@ -4824,8 +4824,9 @@ var DropdownButton = styled__default.div(_templateObject2$7 || (_templateObject2
4824
4824
  return $height || '100%';
4825
4825
  }, function (_ref8) {
4826
4826
  var $border = _ref8.$border,
4827
- $isOpen = _ref8.$isOpen;
4828
- return $isOpen ? "1px solid " + colorVariables.text.dark : $border || "1px solid " + colorVariables.border.light;
4827
+ $isOpen = _ref8.$isOpen,
4828
+ theme = _ref8.theme;
4829
+ return $isOpen ? "1px solid " + theme.text.dark : $border || "1px solid " + theme.border.light;
4829
4830
  }, function (_ref9) {
4830
4831
  var $borderRadius = _ref9.$borderRadius;
4831
4832
  return $borderRadius || '8px';
@@ -4834,30 +4835,32 @@ var DropdownButton = styled__default.div(_templateObject2$7 || (_templateObject2
4834
4835
  return $disabled ? 'not-allowed' : 'pointer';
4835
4836
  }, function (_ref11) {
4836
4837
  var $background = _ref11.$background,
4837
- $disabled = _ref11.$disabled;
4838
+ $disabled = _ref11.$disabled,
4839
+ theme = _ref11.theme;
4838
4840
  switch ($background) {
4839
4841
  case 'dark':
4840
- return $disabled ? colorVariables.disabled.secondary : colorVariables.text.dark;
4842
+ return $disabled ? theme.disabled.secondary : theme.text.dark;
4841
4843
  case 'medium':
4842
- return $disabled ? colorVariables.disabled.secondary : colorVariables.text.medium;
4844
+ return $disabled ? theme.disabled.secondary : theme.text.medium;
4843
4845
  case 'light':
4844
- return $disabled ? colorVariables.disabled.secondary : colorVariables.text.light;
4846
+ return $disabled ? theme.disabled.secondary : theme.text.light;
4845
4847
  case 'white':
4846
- return $disabled ? colorVariables.disabled.secondary : colorVariables.text.white;
4848
+ return $disabled ? theme.disabled.secondary : theme.text.white;
4847
4849
  case 'warning':
4848
- return $disabled ? colorVariables.disabled.secondary : colorVariables["default"].warning;
4850
+ return $disabled ? theme.disabled.secondary : theme["default"].warning;
4849
4851
  case 'info':
4850
- return $disabled ? colorVariables.disabled.secondary : colorVariables["default"].info;
4852
+ return $disabled ? theme.disabled.secondary : theme["default"].info;
4851
4853
  case 'success':
4852
- return $disabled ? colorVariables.disabled.secondary : colorVariables["default"].success;
4854
+ return $disabled ? theme.disabled.secondary : theme["default"].success;
4853
4855
  case 'error':
4854
- return $disabled ? colorVariables.disabled.secondary : colorVariables["default"].error;
4856
+ return $disabled ? theme.disabled.secondary : theme["default"].error;
4855
4857
  default:
4856
- return $disabled ? colorVariables.disabled.secondary : $background;
4858
+ return $disabled ? theme.disabled.secondary : $background;
4857
4859
  }
4858
4860
  }, function (_ref12) {
4859
- var $color = _ref12.$color;
4860
- return $color || colorVariables.text.medium;
4861
+ var $color = _ref12.$color,
4862
+ theme = _ref12.theme;
4863
+ return $color || theme.text.medium;
4861
4864
  }, function (_ref13) {
4862
4865
  var $size = _ref13.$size;
4863
4866
  switch ($size) {
@@ -4891,24 +4894,25 @@ var TitleText = styled__default.div(_templateObject3$5 || (_templateObject3$5 =
4891
4894
  $size = _ref17.$size;
4892
4895
  return $titleSize ? $titleSize + "px" : $size === 'small' ? '14px' : $size === 'large' ? '18px' : '16px';
4893
4896
  }, function (_ref18) {
4894
- var $titleColor = _ref18.$titleColor;
4897
+ var $titleColor = _ref18.$titleColor,
4898
+ theme = _ref18.theme;
4895
4899
  switch ($titleColor) {
4896
4900
  case 'dark':
4897
- return colorVariables.text.dark;
4901
+ return theme.text.dark;
4898
4902
  case 'medium':
4899
- return colorVariables.text.medium;
4903
+ return theme.text.medium;
4900
4904
  case 'light':
4901
- return colorVariables.text.light;
4905
+ return theme.text.light;
4902
4906
  case 'white':
4903
- return colorVariables.text.white;
4907
+ return theme.text.white;
4904
4908
  case 'warning':
4905
- return colorVariables["default"].warning;
4909
+ return theme["default"].warning;
4906
4910
  case 'info':
4907
- return colorVariables["default"].info;
4911
+ return theme["default"].info;
4908
4912
  case 'success':
4909
- return colorVariables["default"].success;
4913
+ return theme["default"].success;
4910
4914
  case 'error':
4911
- return colorVariables["default"].error;
4915
+ return theme["default"].error;
4912
4916
  default:
4913
4917
  return $titleColor;
4914
4918
  }
@@ -4917,126 +4921,139 @@ var Container$2 = styled__default.div(_templateObject4$4 || (_templateObject4$4
4917
4921
  var LabelText = styled__default.div(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-weight: 400;\n font-style:", ";\n color: ", ";\n"])), function (_ref19) {
4918
4922
  var $labelStyle = _ref19.$labelStyle;
4919
4923
  return $labelStyle;
4920
- }, colorVariables.text.medium);
4921
- var DropdownMenu = styled__default.div(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteralLoose(["\n max-height: 156px;\n padding: 4px;\n box-sizing: border-box;\n border: 1px solid ", ";\n border-radius: ", ";\n width: ", ";\n background: ", ";\n display: flex;\n flex-direction: column;\n gap: 4px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n margin-top: 8px;\n overflow-y: auto;\n position: absolute;\n z-index: 2;\n scrollbar-width: thin;\n"])), colorVariables.border.light, function (_ref20) {
4922
- var $optionsBorderRadius = _ref20.$optionsBorderRadius;
4924
+ }, function (_ref20) {
4925
+ var theme = _ref20.theme;
4926
+ return theme.text.medium;
4927
+ });
4928
+ var DropdownMenu = styled__default.div(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteralLoose(["\n max-height: 156px;\n padding: 4px;\n box-sizing: border-box;\n border: ", ";\n border-radius: ", ";\n width: ", ";\n background: ", ";\n display: flex;\n flex-direction: column;\n gap: 4px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n margin-top: 8px;\n overflow-y: auto;\n position: absolute;\n z-index: 2;\n scrollbar-width: thin;\n"])), function (_ref21) {
4929
+ var theme = _ref21.theme;
4930
+ return "1px solid " + theme.border.light;
4931
+ }, function (_ref22) {
4932
+ var $optionsBorderRadius = _ref22.$optionsBorderRadius;
4923
4933
  return $optionsBorderRadius || '8px';
4924
- }, function (_ref21) {
4925
- var $width = _ref21.$width;
4934
+ }, function (_ref23) {
4935
+ var $width = _ref23.$width;
4926
4936
  return $width ? $width : 'max-content';
4927
- }, function (_ref22) {
4928
- var $menuBackground = _ref22.$menuBackground;
4929
- return $menuBackground || colorVariables.accent.light_2;
4937
+ }, function (_ref24) {
4938
+ var $menuBackground = _ref24.$menuBackground,
4939
+ theme = _ref24.theme;
4940
+ return $menuBackground || theme.accent.light_2;
4930
4941
  });
4931
4942
  var SelectedOptionsWrapper = styled__default.div(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n height: 100%;\n"])));
4932
- var SelectedOptionDiv = styled__default.div(_templateObject8$2 || (_templateObject8$2 = _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 (_ref23) {
4933
- var $selectedOptionBackground = _ref23.$selectedOptionBackground,
4934
- $disabled = _ref23.$disabled;
4943
+ var SelectedOptionDiv = styled__default.div(_templateObject8$2 || (_templateObject8$2 = _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 (_ref25) {
4944
+ var $selectedOptionBackground = _ref25.$selectedOptionBackground,
4945
+ $disabled = _ref25.$disabled,
4946
+ theme = _ref25.theme;
4935
4947
  switch ($selectedOptionBackground) {
4936
4948
  case 'dark':
4937
- return colorVariables.text.dark;
4949
+ return theme.text.dark;
4938
4950
  case 'medium':
4939
- return colorVariables.text.medium;
4951
+ return theme.text.medium;
4940
4952
  case 'light':
4941
- return colorVariables.text.light;
4953
+ return theme.text.light;
4942
4954
  case 'white':
4943
- return colorVariables.text.white;
4955
+ return theme.text.white;
4944
4956
  case 'warning':
4945
- return $disabled ? colorVariables.disabled.warning : colorVariables["default"].warning;
4957
+ return $disabled ? theme.disabled.warning : theme["default"].warning;
4946
4958
  case 'info':
4947
- return $disabled ? colorVariables.disabled.info : colorVariables["default"].info;
4959
+ return $disabled ? theme.disabled.info : theme["default"].info;
4948
4960
  case 'success':
4949
- return $disabled ? colorVariables.disabled.success : colorVariables["default"].success;
4961
+ return $disabled ? theme.disabled.success : theme["default"].success;
4950
4962
  case 'error':
4951
- return $disabled ? colorVariables.disabled.error : colorVariables["default"].error;
4963
+ return $disabled ? theme.disabled.error : theme["default"].error;
4952
4964
  default:
4953
- return $selectedOptionBackground || colorVariables.accent.light_2;
4965
+ return $selectedOptionBackground || theme.accent.light_2;
4954
4966
  }
4955
- }, function (_ref24) {
4956
- var $selectedOptionColor = _ref24.$selectedOptionColor;
4967
+ }, function (_ref26) {
4968
+ var $selectedOptionColor = _ref26.$selectedOptionColor,
4969
+ theme = _ref26.theme;
4957
4970
  switch ($selectedOptionColor) {
4958
4971
  case 'dark':
4959
- return colorVariables.text.dark;
4972
+ return theme.text.dark;
4960
4973
  case 'medium':
4961
- return colorVariables.text.medium;
4974
+ return theme.text.medium;
4962
4975
  case 'light':
4963
- return colorVariables.text.light;
4976
+ return theme.text.light;
4964
4977
  case 'white':
4965
- return colorVariables.text.white;
4978
+ return theme.text.white;
4966
4979
  case 'warning':
4967
- return colorVariables["default"].warning;
4980
+ return theme["default"].warning;
4968
4981
  case 'info':
4969
- return colorVariables["default"].info;
4982
+ return theme["default"].info;
4970
4983
  case 'success':
4971
- return colorVariables["default"].success;
4984
+ return theme["default"].success;
4972
4985
  case 'error':
4973
- return colorVariables["default"].error;
4986
+ return theme["default"].error;
4974
4987
  default:
4975
4988
  return $selectedOptionColor;
4976
4989
  }
4977
4990
  });
4978
- var RemoveIcon = styled__default.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n width: 14px;\n height: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: ", ";\n border-radius: 50%;\n box-sizing: border-box;\n background: ", ";\n > div {\n cursor: ", ";\n }\n"])), function (_ref25) {
4979
- var $disabled = _ref25.$disabled;
4980
- return $disabled ? 'not-allowed' : 'pointer';
4981
- }, function (_ref26) {
4982
- var removeIconBackground = _ref26.removeIconBackground,
4983
- $type = _ref26.$type;
4984
- return removeIconBackground ? removeIconBackground : $type === 'remove' ? '#5E5E5E24' : colorVariables.disabled.primary;
4985
- }, function (_ref27) {
4991
+ var RemoveIcon = styled__default.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n width: 14px;\n height: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: ", ";\n border-radius: 50%;\n box-sizing: border-box;\n background: ", ";\n > div {\n cursor: ", ";\n }\n"])), function (_ref27) {
4986
4992
  var $disabled = _ref27.$disabled;
4987
4993
  return $disabled ? 'not-allowed' : 'pointer';
4994
+ }, function (_ref28) {
4995
+ var removeIconBackground = _ref28.removeIconBackground,
4996
+ $type = _ref28.$type,
4997
+ theme = _ref28.theme;
4998
+ return removeIconBackground ? removeIconBackground : $type === 'remove' ? '#5E5E5E24' : theme.disabled.primary;
4999
+ }, function (_ref29) {
5000
+ var $disabled = _ref29.$disabled;
5001
+ return $disabled ? 'not-allowed' : 'pointer';
4988
5002
  });
4989
5003
  var TextWrapper = styled__default.div(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 4px;\n"])));
4990
- var Asterisk = styled__default.span(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: 10px;\n height: fit-content;\n position: absolute;\n top: -2px;\n right: -8px;\n"])), colorVariables["default"].error);
4991
- var MultiSelectDropdown = function MultiSelectDropdown(_ref28) {
4992
- var title = _ref28.title,
4993
- titleWeight = _ref28.titleWeight,
4994
- titleSize = _ref28.titleSize,
4995
- _ref28$titleColor = _ref28.titleColor,
4996
- titleColor = _ref28$titleColor === void 0 ? colorVariables.text.dark : _ref28$titleColor,
4997
- _ref28$labelText = _ref28.labelText,
4998
- labelText = _ref28$labelText === void 0 ? 'Select Cameras' : _ref28$labelText,
4999
- labelStyle = _ref28.labelStyle,
5000
- labelColor = _ref28.labelColor,
5001
- _ref28$replaceLabel = _ref28.replaceLabel,
5002
- replaceLabel = _ref28$replaceLabel === void 0 ? true : _ref28$replaceLabel,
5003
- options = _ref28.options,
5004
- width = _ref28.width,
5005
- optionWidth = _ref28.optionWidth,
5006
- height = _ref28.height,
5007
- placeholder = _ref28.placeholder,
5008
- border = _ref28.border,
5009
- _ref28$background = _ref28.background,
5010
- background = _ref28$background === void 0 ? colorVariables["default"].tertiary : _ref28$background,
5011
- selectedOptionBackground = _ref28.selectedOptionBackground,
5012
- selectedOptionColor = _ref28.selectedOptionColor,
5013
- _ref28$menuBackground = _ref28.menuBackground,
5014
- menuBackground = _ref28$menuBackground === void 0 ? 'white' : _ref28$menuBackground,
5015
- optionsBorderRadius = _ref28.optionsBorderRadius,
5016
- borderRadius = _ref28.borderRadius,
5017
- removeIconBackground = _ref28.removeIconBackground,
5018
- handleSelectChange = _ref28.handleSelectChange,
5019
- selectedOptions = _ref28.selectedOptions,
5020
- placeholderColor = _ref28.placeholderColor,
5021
- optionBorder = _ref28.optionBorder,
5022
- optionColor = _ref28.optionColor,
5023
- searchIcon = _ref28.searchIcon,
5024
- searchbarTextColor = _ref28.searchbarTextColor,
5025
- searchBoxBackground = _ref28.searchBoxBackground,
5026
- searchBoxBorder = _ref28.searchBoxBorder,
5027
- searchBoxBorderRadius = _ref28.searchBoxBorderRadius,
5028
- size = _ref28.size,
5029
- removeIcon = _ref28.removeIcon,
5030
- type = _ref28.type,
5031
- icon = _ref28.icon,
5032
- _ref28$disabled = _ref28.disabled,
5033
- disabled = _ref28$disabled === void 0 ? false : _ref28$disabled,
5034
- _ref28$required = _ref28.required,
5035
- required = _ref28$required === void 0 ? false : _ref28$required,
5036
- _ref28$searchBox = _ref28.searchBox,
5037
- searchBox = _ref28$searchBox === void 0 ? true : _ref28$searchBox,
5038
- _ref28$NoOptionsText = _ref28.NoOptionsText,
5039
- NoOptionsText = _ref28$NoOptionsText === void 0 ? 'No Options Available' : _ref28$NoOptionsText;
5004
+ var Asterisk = styled__default.span(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: 10px;\n height: fit-content;\n position: absolute;\n top: -2px;\n right: -8px;\n"])), function (_ref30) {
5005
+ var theme = _ref30.theme;
5006
+ return theme["default"].error;
5007
+ });
5008
+ var MultiSelectDropdown = function MultiSelectDropdown(_ref31) {
5009
+ var title = _ref31.title,
5010
+ titleWeight = _ref31.titleWeight,
5011
+ titleSize = _ref31.titleSize,
5012
+ _ref31$titleColor = _ref31.titleColor,
5013
+ titleColor = _ref31$titleColor === void 0 ? colorVariables.text.dark : _ref31$titleColor,
5014
+ _ref31$labelText = _ref31.labelText,
5015
+ labelText = _ref31$labelText === void 0 ? 'Select Cameras' : _ref31$labelText,
5016
+ labelStyle = _ref31.labelStyle,
5017
+ labelColor = _ref31.labelColor,
5018
+ _ref31$replaceLabel = _ref31.replaceLabel,
5019
+ replaceLabel = _ref31$replaceLabel === void 0 ? true : _ref31$replaceLabel,
5020
+ options = _ref31.options,
5021
+ width = _ref31.width,
5022
+ optionWidth = _ref31.optionWidth,
5023
+ height = _ref31.height,
5024
+ placeholder = _ref31.placeholder,
5025
+ border = _ref31.border,
5026
+ _ref31$background = _ref31.background,
5027
+ background = _ref31$background === void 0 ? colorVariables["default"].tertiary : _ref31$background,
5028
+ selectedOptionBackground = _ref31.selectedOptionBackground,
5029
+ selectedOptionColor = _ref31.selectedOptionColor,
5030
+ _ref31$menuBackground = _ref31.menuBackground,
5031
+ menuBackground = _ref31$menuBackground === void 0 ? 'white' : _ref31$menuBackground,
5032
+ optionsBorderRadius = _ref31.optionsBorderRadius,
5033
+ borderRadius = _ref31.borderRadius,
5034
+ removeIconBackground = _ref31.removeIconBackground,
5035
+ handleSelectChange = _ref31.handleSelectChange,
5036
+ selectedOptions = _ref31.selectedOptions,
5037
+ placeholderColor = _ref31.placeholderColor,
5038
+ optionBorder = _ref31.optionBorder,
5039
+ optionColor = _ref31.optionColor,
5040
+ searchIcon = _ref31.searchIcon,
5041
+ searchbarTextColor = _ref31.searchbarTextColor,
5042
+ searchBoxBackground = _ref31.searchBoxBackground,
5043
+ searchBoxBorder = _ref31.searchBoxBorder,
5044
+ searchBoxBorderRadius = _ref31.searchBoxBorderRadius,
5045
+ size = _ref31.size,
5046
+ removeIcon = _ref31.removeIcon,
5047
+ type = _ref31.type,
5048
+ icon = _ref31.icon,
5049
+ _ref31$disabled = _ref31.disabled,
5050
+ disabled = _ref31$disabled === void 0 ? false : _ref31$disabled,
5051
+ _ref31$required = _ref31.required,
5052
+ required = _ref31$required === void 0 ? false : _ref31$required,
5053
+ _ref31$searchBox = _ref31.searchBox,
5054
+ searchBox = _ref31$searchBox === void 0 ? true : _ref31$searchBox,
5055
+ _ref31$NoOptionsText = _ref31.NoOptionsText,
5056
+ NoOptionsText = _ref31$NoOptionsText === void 0 ? 'No Options Available' : _ref31$NoOptionsText;
5040
5057
  var _useState = React.useState(false),
5041
5058
  isOpen = _useState[0],
5042
5059
  setIsOpen = _useState[1];
@@ -5224,24 +5241,25 @@ var TitleText$1 = styled__default.label(_templateObject$c || (_templateObject$c
5224
5241
  return "\n font-size: 14px;\n line-height: 14px;\n ";
5225
5242
  }
5226
5243
  }, function (_ref3) {
5227
- var $titlecolor = _ref3.$titlecolor;
5244
+ var $titlecolor = _ref3.$titlecolor,
5245
+ theme = _ref3.theme;
5228
5246
  switch ($titlecolor) {
5229
5247
  case 'dark':
5230
- return colorVariables.text.dark;
5248
+ return theme.text.dark;
5231
5249
  case 'medium':
5232
- return colorVariables.text.medium;
5250
+ return theme.text.medium;
5233
5251
  case 'light':
5234
- return colorVariables.text.light;
5252
+ return theme.text.light;
5235
5253
  case 'white':
5236
- return colorVariables.text.white;
5254
+ return theme.text.white;
5237
5255
  case 'warning':
5238
- return colorVariables["default"].warning;
5256
+ return theme["default"].warning;
5239
5257
  case 'info':
5240
- return colorVariables["default"].info;
5258
+ return theme["default"].info;
5241
5259
  case 'success':
5242
- return colorVariables["default"].success;
5260
+ return theme["default"].success;
5243
5261
  case 'error':
5244
- return colorVariables["default"].error;
5262
+ return theme["default"].error;
5245
5263
  default:
5246
5264
  return $titlecolor;
5247
5265
  }
@@ -5264,8 +5282,9 @@ var DropdownButton$1 = styled__default.div(_templateObject3$7 || (_templateObjec
5264
5282
  return $borderRadius || '8px';
5265
5283
  }, function (_ref9) {
5266
5284
  var $border = _ref9.$border,
5267
- $isOpen = _ref9.$isOpen;
5268
- return $isOpen ? "1px solid " + colorVariables.text.dark : $border || "1px solid " + colorVariables.border.light;
5285
+ $isOpen = _ref9.$isOpen,
5286
+ theme = _ref9.theme;
5287
+ return $isOpen ? "1px solid " + theme.text.dark : $border || "1px solid " + theme.border.light;
5269
5288
  }, function (_ref10) {
5270
5289
  var $size = _ref10.$size;
5271
5290
  switch ($size) {
@@ -5278,8 +5297,9 @@ var DropdownButton$1 = styled__default.div(_templateObject3$7 || (_templateObjec
5278
5297
  }
5279
5298
  }, function (_ref11) {
5280
5299
  var $background = _ref11.$background,
5281
- $disabled = _ref11.$disabled;
5282
- return $disabled ? colorVariables.border.light : $background || colorVariables.accent.light_2;
5300
+ $disabled = _ref11.$disabled,
5301
+ theme = _ref11.theme;
5302
+ return $disabled ? theme.border.light : $background || theme.accent.light_2;
5283
5303
  }, function (_ref12) {
5284
5304
  var $size = _ref12.$size;
5285
5305
  switch ($size) {
@@ -5301,10 +5321,11 @@ var DropdownButton$1 = styled__default.div(_templateObject3$7 || (_templateObjec
5301
5321
  return '14px';
5302
5322
  }
5303
5323
  });
5304
- var Options = styled__default.div(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n color: ", ";\n padding: 5px 10px;\n width: 100%;\n font-size: ", ";\n font-weight: ", ";\n background-color: ", ";\n\n \n &:hover {\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n\n }\n\n"])), function (_ref14) {
5324
+ var Options = styled__default.div(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n color: ", ";\n padding: 5px 10px;\n width: 100%;\n font-size: ", ";\n font-weight: ", ";\n background-color: ", ";\n\n \n &:hover {\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n }\n\n"])), function (_ref14) {
5305
5325
  var $optionColor = _ref14.$optionColor,
5306
- $optionSelected = _ref14.$optionSelected;
5307
- return $optionSelected ? colorVariables.text.white : $optionColor || colorVariables.text.medium;
5326
+ $optionSelected = _ref14.$optionSelected,
5327
+ theme = _ref14.theme;
5328
+ return $optionSelected ? theme.text.white : $optionColor || theme.text.medium;
5308
5329
  }, function (_ref15) {
5309
5330
  var $optionFontSize = _ref15.$optionFontSize;
5310
5331
  return $optionFontSize || '14px';
@@ -5313,11 +5334,18 @@ var Options = styled__default.div(_templateObject4$5 || (_templateObject4$5 = _t
5313
5334
  return $optionFontWeight || 400;
5314
5335
  }, function (_ref17) {
5315
5336
  var $optionBackgroundColor = _ref17.$optionBackgroundColor,
5316
- $optionSelected = _ref17.$optionSelected;
5317
- return $optionSelected ? colorVariables["default"].primary : $optionBackgroundColor || colorVariables["default"].tertiary;
5318
- }, colorVariables.hover.primary, colorVariables.text.white);
5319
- var LabelText$1 = styled__default.div(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n font-style: ", ";\n color: ", ";\n"])), function (_ref18) {
5320
- var $size = _ref18.$size;
5337
+ $optionSelected = _ref17.$optionSelected,
5338
+ theme = _ref17.theme;
5339
+ return $optionSelected ? theme["default"].primary : $optionBackgroundColor || theme["default"].tertiary;
5340
+ }, function (_ref18) {
5341
+ var theme = _ref18.theme;
5342
+ return theme.hover.primary;
5343
+ }, function (_ref19) {
5344
+ var theme = _ref19.theme;
5345
+ return theme.text.white;
5346
+ });
5347
+ var LabelText$1 = styled__default.div(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n font-style: ", ";\n color: ", ";\n"])), function (_ref20) {
5348
+ var $size = _ref20.$size;
5321
5349
  switch ($size) {
5322
5350
  case 'small':
5323
5351
  return '14px';
@@ -5326,8 +5354,8 @@ var LabelText$1 = styled__default.div(_templateObject5$5 || (_templateObject5$5
5326
5354
  default:
5327
5355
  return '14px';
5328
5356
  }
5329
- }, function (_ref19) {
5330
- var $size = _ref19.$size;
5357
+ }, function (_ref21) {
5358
+ var $size = _ref21.$size;
5331
5359
  switch ($size) {
5332
5360
  case 'small':
5333
5361
  return '12px';
@@ -5336,98 +5364,109 @@ var LabelText$1 = styled__default.div(_templateObject5$5 || (_templateObject5$5
5336
5364
  default:
5337
5365
  return '14px';
5338
5366
  }
5339
- }, function (_ref20) {
5340
- var $fontStyle = _ref20.$fontStyle;
5367
+ }, function (_ref22) {
5368
+ var $fontStyle = _ref22.$fontStyle;
5341
5369
  return $fontStyle || '';
5342
- }, function (_ref21) {
5343
- var $color = _ref21.$color,
5344
- $disabled = _ref21.$disabled;
5345
- return $disabled ? colorVariables.text.medium : $color || colorVariables.text.medium;
5370
+ }, function (_ref23) {
5371
+ var $color = _ref23.$color,
5372
+ $disabled = _ref23.$disabled,
5373
+ theme = _ref23.theme;
5374
+ return $disabled ? theme.text.medium : $color || theme.text.medium;
5346
5375
  });
5347
5376
  var NoOptions = styled__default(Span)(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n height: 100%;\n padding: 12px;\n font-size: 14px;\n font-weight: 400;\n"])));
5348
- var DropdownMenu$1 = styled__default.div(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n height: auto;\n max-height: 170px;\n border: 1px solid ", ";\n border-radius: ", ";\n min-width: 100%;\n width: ", ";\n background: ", ";\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n overflow: hidden; \n position: absolute;\n z-index: 1;\n ", "\n ", "\n \n"])), colorVariables.border.light, function (_ref22) {
5349
- var $optionsBorderRadius = _ref22.$optionsBorderRadius;
5377
+ var DropdownMenu$1 = styled__default.div(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n height: auto;\n max-height: 170px;\n border: ", ";\n border-radius: ", ";\n min-width: 100%;\n width: ", ";\n background: ", ";\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n overflow: hidden; \n position: absolute;\n z-index: 1;\n ", "\n ", "\n \n"])), function (_ref24) {
5378
+ var theme = _ref24.theme;
5379
+ return "1px solid " + theme.border.light;
5380
+ }, function (_ref25) {
5381
+ var $optionsBorderRadius = _ref25.$optionsBorderRadius;
5350
5382
  return $optionsBorderRadius || '8px';
5351
- }, function (_ref23) {
5352
- var $width = _ref23.$width;
5383
+ }, function (_ref26) {
5384
+ var $width = _ref26.$width;
5353
5385
  return $width ? $width : 'max-content';
5354
- }, function (_ref24) {
5355
- var $menuBackground = _ref24.$menuBackground;
5356
- return $menuBackground || colorVariables.accent.light_2;
5357
- }, function (_ref25) {
5358
- var $top = _ref25.$top;
5386
+ }, function (_ref27) {
5387
+ var $menuBackground = _ref27.$menuBackground,
5388
+ theme = _ref27.theme;
5389
+ return $menuBackground || theme.accent.light_2;
5390
+ }, function (_ref28) {
5391
+ var $top = _ref28.$top;
5359
5392
  return $top && "top: " + $top + ";";
5360
- }, function (_ref26) {
5361
- var $bottom = _ref26.$bottom;
5393
+ }, function (_ref29) {
5394
+ var $bottom = _ref29.$bottom;
5362
5395
  return $bottom && "bottom: " + $bottom + ";";
5363
5396
  });
5364
5397
  var OptionsWrapper = styled__default.div(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n max-height: 150px; \n overflow-y: auto;\n scrollbar-width: thin;\n width: 100%;\n"])));
5365
- var SearchContainer$1 = styled__default.div(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: ", ";\n border: ", ";\n border-bottom: 1px solid ", ";\n border-radius: ", ";\n padding: 10px 12px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n position: sticky;\n top: 0;\n z-index: 10; \n"])), function (_ref27) {
5366
- var $background = _ref27.$background;
5367
- return $background || colorVariables.accent.light_2;
5368
- }, function (_ref28) {
5369
- var $border = _ref28.$border;
5398
+ var SearchContainer$1 = styled__default.div(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: ", ";\n border: ", ";\n border-bottom: ", ";\n border-radius: ", ";\n padding: 10px 12px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n position: sticky;\n top: 0;\n z-index: 10; \n"])), function (_ref30) {
5399
+ var $background = _ref30.$background,
5400
+ theme = _ref30.theme;
5401
+ return $background || theme.accent.light_2;
5402
+ }, function (_ref31) {
5403
+ var $border = _ref31.$border;
5370
5404
  return $border || 'none';
5371
- }, colorVariables.border.light, function (_ref29) {
5372
- var $borderRadius = _ref29.$borderRadius;
5405
+ }, function (_ref32) {
5406
+ var theme = _ref32.theme;
5407
+ return "1px solid " + theme.border.light;
5408
+ }, function (_ref33) {
5409
+ var $borderRadius = _ref33.$borderRadius;
5373
5410
  return $borderRadius || '8px 8px 0 0';
5374
5411
  });
5375
- var SearchBar$1 = styled__default.input(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n border: none;\n width: 100%;\n font-family: NotoSans, sans-serif;\n font-weight: 400;\n font-style: normal;\n font-size: 14px;\n line-height: normal;\n background: transparent;\n color: ", ";\n outline: none;\n \n &::placeholder {\n color: ", ";\n font-style: italic;\n }\n"])), function (_ref30) {
5376
- var $inputColor = _ref30.$inputColor;
5377
- return $inputColor || colorVariables.text.medium;
5378
- }, function (_ref31) {
5379
- var $placeholderColor = _ref31.$placeholderColor;
5380
- return $placeholderColor || colorVariables.text.light;
5412
+ var SearchBar$1 = styled__default.input(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n border: none;\n width: 100%;\n font-family: NotoSans, sans-serif;\n font-weight: 400;\n font-style: normal;\n font-size: 14px;\n line-height: normal;\n background: transparent;\n color: ", ";\n outline: none;\n \n &::placeholder {\n color: ", ";\n font-style: italic;\n }\n"])), function (_ref34) {
5413
+ var $inputColor = _ref34.$inputColor,
5414
+ theme = _ref34.theme;
5415
+ return $inputColor || theme.text.medium;
5416
+ }, function (_ref35) {
5417
+ var $placeholderColor = _ref35.$placeholderColor,
5418
+ theme = _ref35.theme;
5419
+ return $placeholderColor || theme.text.light;
5381
5420
  });
5382
- var SelectOption = function SelectOption(_ref32) {
5421
+ var SelectOption = function SelectOption(_ref36) {
5383
5422
  var _options$find;
5384
- var title = _ref32.title,
5385
- titlecolor = _ref32.titlecolor,
5386
- titleWeight = _ref32.titleWeight,
5387
- options = _ref32.options,
5388
- value = _ref32.value,
5389
- onChange = _ref32.onChange,
5390
- _ref32$disabled = _ref32.disabled,
5391
- disabled = _ref32$disabled === void 0 ? false : _ref32$disabled,
5392
- size = _ref32.size,
5393
- width = _ref32.width,
5394
- _ref32$labelText = _ref32.labelText,
5395
- labelText = _ref32$labelText === void 0 ? 'Select' : _ref32$labelText,
5396
- border = _ref32.border,
5397
- background = _ref32.background,
5398
- _ref32$padding = _ref32.padding,
5399
- padding = _ref32$padding === void 0 ? '0px' : _ref32$padding,
5400
- borderRadius = _ref32.borderRadius,
5401
- optionColor = _ref32.optionColor,
5402
- optionFontSize = _ref32.optionFontSize,
5403
- optionFontWeight = _ref32.optionFontWeight,
5404
- optionBackgroundColor = _ref32.optionBackgroundColor,
5405
- menuBackground = _ref32.menuBackground,
5406
- optionsBorderRadius = _ref32.optionsBorderRadius,
5407
- color = _ref32.color,
5408
- required = _ref32.required,
5409
- _ref32$NoOptionsText = _ref32.NoOptionsText,
5410
- NoOptionsText = _ref32$NoOptionsText === void 0 ? 'No Options Available' : _ref32$NoOptionsText,
5411
- positionRef = _ref32.positionRef,
5412
- fontStyle = _ref32.fontStyle,
5413
- icon = _ref32.icon,
5414
- _ref32$searchBox = _ref32.searchBox,
5415
- searchBox = _ref32$searchBox === void 0 ? true : _ref32$searchBox,
5416
- searchBoxBackground = _ref32.searchBoxBackground,
5417
- searchBoxBorder = _ref32.searchBoxBorder,
5418
- searchBoxBorderRadius = _ref32.searchBoxBorderRadius,
5419
- searchIcon = _ref32.searchIcon,
5420
- _ref32$placeholderTex = _ref32.placeholderText,
5421
- placeholderText = _ref32$placeholderTex === void 0 ? 'Search...' : _ref32$placeholderTex,
5422
- _ref32$iconColor = _ref32.iconColor,
5423
- iconColor = _ref32$iconColor === void 0 ? colorVariables.text.medium : _ref32$iconColor,
5424
- placeholderColor = _ref32.placeholderColor,
5425
- inputColor = _ref32.inputColor,
5426
- _ref32$iconSize = _ref32.iconSize,
5427
- iconSize = _ref32$iconSize === void 0 ? 16 : _ref32$iconSize,
5428
- _ref32$allowDeselect = _ref32.allowDeselect,
5429
- allowDeselect = _ref32$allowDeselect === void 0 ? true : _ref32$allowDeselect,
5430
- titleRightNode = _ref32.titleRightNode;
5423
+ var title = _ref36.title,
5424
+ titlecolor = _ref36.titlecolor,
5425
+ titleWeight = _ref36.titleWeight,
5426
+ options = _ref36.options,
5427
+ value = _ref36.value,
5428
+ onChange = _ref36.onChange,
5429
+ _ref36$disabled = _ref36.disabled,
5430
+ disabled = _ref36$disabled === void 0 ? false : _ref36$disabled,
5431
+ size = _ref36.size,
5432
+ width = _ref36.width,
5433
+ _ref36$labelText = _ref36.labelText,
5434
+ labelText = _ref36$labelText === void 0 ? 'Select' : _ref36$labelText,
5435
+ border = _ref36.border,
5436
+ background = _ref36.background,
5437
+ _ref36$padding = _ref36.padding,
5438
+ padding = _ref36$padding === void 0 ? '0px' : _ref36$padding,
5439
+ borderRadius = _ref36.borderRadius,
5440
+ optionColor = _ref36.optionColor,
5441
+ optionFontSize = _ref36.optionFontSize,
5442
+ optionFontWeight = _ref36.optionFontWeight,
5443
+ optionBackgroundColor = _ref36.optionBackgroundColor,
5444
+ menuBackground = _ref36.menuBackground,
5445
+ optionsBorderRadius = _ref36.optionsBorderRadius,
5446
+ color = _ref36.color,
5447
+ required = _ref36.required,
5448
+ _ref36$NoOptionsText = _ref36.NoOptionsText,
5449
+ NoOptionsText = _ref36$NoOptionsText === void 0 ? 'No Options Available' : _ref36$NoOptionsText,
5450
+ positionRef = _ref36.positionRef,
5451
+ fontStyle = _ref36.fontStyle,
5452
+ icon = _ref36.icon,
5453
+ _ref36$searchBox = _ref36.searchBox,
5454
+ searchBox = _ref36$searchBox === void 0 ? true : _ref36$searchBox,
5455
+ searchBoxBackground = _ref36.searchBoxBackground,
5456
+ searchBoxBorder = _ref36.searchBoxBorder,
5457
+ searchBoxBorderRadius = _ref36.searchBoxBorderRadius,
5458
+ searchIcon = _ref36.searchIcon,
5459
+ _ref36$placeholderTex = _ref36.placeholderText,
5460
+ placeholderText = _ref36$placeholderTex === void 0 ? 'Search...' : _ref36$placeholderTex,
5461
+ _ref36$iconColor = _ref36.iconColor,
5462
+ iconColor = _ref36$iconColor === void 0 ? colorVariables.text.medium : _ref36$iconColor,
5463
+ placeholderColor = _ref36.placeholderColor,
5464
+ inputColor = _ref36.inputColor,
5465
+ _ref36$iconSize = _ref36.iconSize,
5466
+ iconSize = _ref36$iconSize === void 0 ? 16 : _ref36$iconSize,
5467
+ _ref36$allowDeselect = _ref36.allowDeselect,
5468
+ allowDeselect = _ref36$allowDeselect === void 0 ? true : _ref36$allowDeselect,
5469
+ titleRightNode = _ref36.titleRightNode;
5431
5470
  var _useState = React.useState(false),
5432
5471
  dropUp = _useState[0],
5433
5472
  setDropUp = _useState[1];
@@ -5716,6 +5755,10 @@ var useNotification = function useNotification() {
5716
5755
  };
5717
5756
  };
5718
5757
 
5758
+ var useTheme = function useTheme() {
5759
+ return styled.useTheme();
5760
+ };
5761
+
5719
5762
  var _templateObject$e, _templateObject2$b;
5720
5763
  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: 1px solid ", ";\n }\n"])), function (_ref) {
5721
5764
  var $background = _ref.$background;
@@ -7358,4 +7401,5 @@ exports.timeStringToSeconds = timeStringToSeconds;
7358
7401
  exports.useClickOutside = useClickOutside;
7359
7402
  exports.useCustomModal = useCustomModal;
7360
7403
  exports.useNotification = useNotification;
7404
+ exports.useTheme = useTheme;
7361
7405
  //# sourceMappingURL=index.js.map