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/Themes/ThemeProviderWrapper.d.ts +7 -0
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/useTheme.d.ts +3 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +256 -212
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +257 -214
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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 ?
|
|
4842
|
+
return $disabled ? theme.disabled.secondary : theme.text.dark;
|
|
4841
4843
|
case 'medium':
|
|
4842
|
-
return $disabled ?
|
|
4844
|
+
return $disabled ? theme.disabled.secondary : theme.text.medium;
|
|
4843
4845
|
case 'light':
|
|
4844
|
-
return $disabled ?
|
|
4846
|
+
return $disabled ? theme.disabled.secondary : theme.text.light;
|
|
4845
4847
|
case 'white':
|
|
4846
|
-
return $disabled ?
|
|
4848
|
+
return $disabled ? theme.disabled.secondary : theme.text.white;
|
|
4847
4849
|
case 'warning':
|
|
4848
|
-
return $disabled ?
|
|
4850
|
+
return $disabled ? theme.disabled.secondary : theme["default"].warning;
|
|
4849
4851
|
case 'info':
|
|
4850
|
-
return $disabled ?
|
|
4852
|
+
return $disabled ? theme.disabled.secondary : theme["default"].info;
|
|
4851
4853
|
case 'success':
|
|
4852
|
-
return $disabled ?
|
|
4854
|
+
return $disabled ? theme.disabled.secondary : theme["default"].success;
|
|
4853
4855
|
case 'error':
|
|
4854
|
-
return $disabled ?
|
|
4856
|
+
return $disabled ? theme.disabled.secondary : theme["default"].error;
|
|
4855
4857
|
default:
|
|
4856
|
-
return $disabled ?
|
|
4858
|
+
return $disabled ? theme.disabled.secondary : $background;
|
|
4857
4859
|
}
|
|
4858
4860
|
}, function (_ref12) {
|
|
4859
|
-
var $color = _ref12.$color
|
|
4860
|
-
|
|
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
|
|
4901
|
+
return theme.text.dark;
|
|
4898
4902
|
case 'medium':
|
|
4899
|
-
return
|
|
4903
|
+
return theme.text.medium;
|
|
4900
4904
|
case 'light':
|
|
4901
|
-
return
|
|
4905
|
+
return theme.text.light;
|
|
4902
4906
|
case 'white':
|
|
4903
|
-
return
|
|
4907
|
+
return theme.text.white;
|
|
4904
4908
|
case 'warning':
|
|
4905
|
-
return
|
|
4909
|
+
return theme["default"].warning;
|
|
4906
4910
|
case 'info':
|
|
4907
|
-
return
|
|
4911
|
+
return theme["default"].info;
|
|
4908
4912
|
case 'success':
|
|
4909
|
-
return
|
|
4913
|
+
return theme["default"].success;
|
|
4910
4914
|
case 'error':
|
|
4911
|
-
return
|
|
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
|
-
},
|
|
4921
|
-
var
|
|
4922
|
-
|
|
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 (
|
|
4925
|
-
var $width =
|
|
4934
|
+
}, function (_ref23) {
|
|
4935
|
+
var $width = _ref23.$width;
|
|
4926
4936
|
return $width ? $width : 'max-content';
|
|
4927
|
-
}, function (
|
|
4928
|
-
var $menuBackground =
|
|
4929
|
-
|
|
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 (
|
|
4933
|
-
var $selectedOptionBackground =
|
|
4934
|
-
$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
|
|
4949
|
+
return theme.text.dark;
|
|
4938
4950
|
case 'medium':
|
|
4939
|
-
return
|
|
4951
|
+
return theme.text.medium;
|
|
4940
4952
|
case 'light':
|
|
4941
|
-
return
|
|
4953
|
+
return theme.text.light;
|
|
4942
4954
|
case 'white':
|
|
4943
|
-
return
|
|
4955
|
+
return theme.text.white;
|
|
4944
4956
|
case 'warning':
|
|
4945
|
-
return $disabled ?
|
|
4957
|
+
return $disabled ? theme.disabled.warning : theme["default"].warning;
|
|
4946
4958
|
case 'info':
|
|
4947
|
-
return $disabled ?
|
|
4959
|
+
return $disabled ? theme.disabled.info : theme["default"].info;
|
|
4948
4960
|
case 'success':
|
|
4949
|
-
return $disabled ?
|
|
4961
|
+
return $disabled ? theme.disabled.success : theme["default"].success;
|
|
4950
4962
|
case 'error':
|
|
4951
|
-
return $disabled ?
|
|
4963
|
+
return $disabled ? theme.disabled.error : theme["default"].error;
|
|
4952
4964
|
default:
|
|
4953
|
-
return $selectedOptionBackground ||
|
|
4965
|
+
return $selectedOptionBackground || theme.accent.light_2;
|
|
4954
4966
|
}
|
|
4955
|
-
}, function (
|
|
4956
|
-
var $selectedOptionColor =
|
|
4967
|
+
}, function (_ref26) {
|
|
4968
|
+
var $selectedOptionColor = _ref26.$selectedOptionColor,
|
|
4969
|
+
theme = _ref26.theme;
|
|
4957
4970
|
switch ($selectedOptionColor) {
|
|
4958
4971
|
case 'dark':
|
|
4959
|
-
return
|
|
4972
|
+
return theme.text.dark;
|
|
4960
4973
|
case 'medium':
|
|
4961
|
-
return
|
|
4974
|
+
return theme.text.medium;
|
|
4962
4975
|
case 'light':
|
|
4963
|
-
return
|
|
4976
|
+
return theme.text.light;
|
|
4964
4977
|
case 'white':
|
|
4965
|
-
return
|
|
4978
|
+
return theme.text.white;
|
|
4966
4979
|
case 'warning':
|
|
4967
|
-
return
|
|
4980
|
+
return theme["default"].warning;
|
|
4968
4981
|
case 'info':
|
|
4969
|
-
return
|
|
4982
|
+
return theme["default"].info;
|
|
4970
4983
|
case 'success':
|
|
4971
|
-
return
|
|
4984
|
+
return theme["default"].success;
|
|
4972
4985
|
case 'error':
|
|
4973
|
-
return
|
|
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 (
|
|
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"])),
|
|
4991
|
-
var
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
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
|
|
5248
|
+
return theme.text.dark;
|
|
5231
5249
|
case 'medium':
|
|
5232
|
-
return
|
|
5250
|
+
return theme.text.medium;
|
|
5233
5251
|
case 'light':
|
|
5234
|
-
return
|
|
5252
|
+
return theme.text.light;
|
|
5235
5253
|
case 'white':
|
|
5236
|
-
return
|
|
5254
|
+
return theme.text.white;
|
|
5237
5255
|
case 'warning':
|
|
5238
|
-
return
|
|
5256
|
+
return theme["default"].warning;
|
|
5239
5257
|
case 'info':
|
|
5240
|
-
return
|
|
5258
|
+
return theme["default"].info;
|
|
5241
5259
|
case 'success':
|
|
5242
|
-
return
|
|
5260
|
+
return theme["default"].success;
|
|
5243
5261
|
case 'error':
|
|
5244
|
-
return
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
var
|
|
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 (
|
|
5330
|
-
var $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 (
|
|
5340
|
-
var $fontStyle =
|
|
5367
|
+
}, function (_ref22) {
|
|
5368
|
+
var $fontStyle = _ref22.$fontStyle;
|
|
5341
5369
|
return $fontStyle || '';
|
|
5342
|
-
}, function (
|
|
5343
|
-
var $color =
|
|
5344
|
-
$disabled =
|
|
5345
|
-
|
|
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:
|
|
5349
|
-
var
|
|
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 (
|
|
5352
|
-
var $width =
|
|
5383
|
+
}, function (_ref26) {
|
|
5384
|
+
var $width = _ref26.$width;
|
|
5353
5385
|
return $width ? $width : 'max-content';
|
|
5354
|
-
}, function (
|
|
5355
|
-
var $menuBackground =
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
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 (
|
|
5361
|
-
var $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:
|
|
5366
|
-
var $background =
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
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
|
-
},
|
|
5372
|
-
var
|
|
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 (
|
|
5376
|
-
var $inputColor =
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
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(
|
|
5421
|
+
var SelectOption = function SelectOption(_ref36) {
|
|
5383
5422
|
var _options$find;
|
|
5384
|
-
var title =
|
|
5385
|
-
titlecolor =
|
|
5386
|
-
titleWeight =
|
|
5387
|
-
options =
|
|
5388
|
-
value =
|
|
5389
|
-
onChange =
|
|
5390
|
-
|
|
5391
|
-
disabled =
|
|
5392
|
-
size =
|
|
5393
|
-
width =
|
|
5394
|
-
|
|
5395
|
-
labelText =
|
|
5396
|
-
border =
|
|
5397
|
-
background =
|
|
5398
|
-
|
|
5399
|
-
padding =
|
|
5400
|
-
borderRadius =
|
|
5401
|
-
optionColor =
|
|
5402
|
-
optionFontSize =
|
|
5403
|
-
optionFontWeight =
|
|
5404
|
-
optionBackgroundColor =
|
|
5405
|
-
menuBackground =
|
|
5406
|
-
optionsBorderRadius =
|
|
5407
|
-
color =
|
|
5408
|
-
required =
|
|
5409
|
-
|
|
5410
|
-
NoOptionsText =
|
|
5411
|
-
positionRef =
|
|
5412
|
-
fontStyle =
|
|
5413
|
-
icon =
|
|
5414
|
-
|
|
5415
|
-
searchBox =
|
|
5416
|
-
searchBoxBackground =
|
|
5417
|
-
searchBoxBorder =
|
|
5418
|
-
searchBoxBorderRadius =
|
|
5419
|
-
searchIcon =
|
|
5420
|
-
|
|
5421
|
-
placeholderText =
|
|
5422
|
-
|
|
5423
|
-
iconColor =
|
|
5424
|
-
placeholderColor =
|
|
5425
|
-
inputColor =
|
|
5426
|
-
|
|
5427
|
-
iconSize =
|
|
5428
|
-
|
|
5429
|
-
allowDeselect =
|
|
5430
|
-
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
|