labsense-ui-kit 1.1.75 → 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/Icons/SVGs/WiFiLaptop.d.ts +4 -0
- package/dist/Icons/SVGs/index.d.ts +1 -0
- package/dist/Icons/index.d.ts +1 -1
- 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 +274 -212
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +275 -214
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3261,6 +3261,23 @@ var WiFiCam = function WiFiCam(_ref) {
|
|
|
3261
3261
|
}));
|
|
3262
3262
|
};
|
|
3263
3263
|
|
|
3264
|
+
var WiFiLaptop = function WiFiLaptop(_ref) {
|
|
3265
|
+
var size = _ref.size,
|
|
3266
|
+
color = _ref.color,
|
|
3267
|
+
weight = _ref.weight;
|
|
3268
|
+
return React__default.createElement("svg", {
|
|
3269
|
+
width: size,
|
|
3270
|
+
height: size,
|
|
3271
|
+
strokeWidth: weight,
|
|
3272
|
+
viewBox: "0 0 30 23",
|
|
3273
|
+
fill: "none",
|
|
3274
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3275
|
+
}, React__default.createElement("path", {
|
|
3276
|
+
d: "M1.32291 19.4919C0.900894 19.4919 0.515879 19.6654 0.256201 19.9718C-0.00347653 20.2782 -0.0963711 20.7861 0.130764 21.1972C0.561091 21.976 1.39776 22.5001 2.34907 22.5001H27.651C28.6022 22.5001 29.4416 21.9786 29.873 21.1972C30.1007 20.7847 30.0047 20.2734 29.7437 19.9681C29.4828 19.6628 29.0955 19.4919 28.6733 19.4919H14.9981H1.32291ZM1.32291 20.4996H14.9982H28.6734C28.8034 20.4996 28.9293 20.5667 28.9761 20.6213C29.0227 20.6759 29.0307 20.6443 28.995 20.7099C28.7401 21.1715 28.2337 21.4961 27.6515 21.4961H2.34941C1.76711 21.4961 1.26625 21.1745 1.00957 20.7099C0.972343 20.6424 0.979327 20.6746 1.02468 20.6213C1.06985 20.568 1.19251 20.4996 1.32291 20.4996ZM3.50066 4.4953C2.12426 4.4953 1.00179 5.62144 1.00179 6.99782V19.9976C1.00224 20.1296 1.05493 20.2561 1.14827 20.3494C1.24162 20.4428 1.36806 20.4954 1.50007 20.4959C1.56576 20.4961 1.63088 20.4835 1.69166 20.4586C1.75244 20.4336 1.80768 20.397 1.8543 20.3507C1.90091 20.3045 1.93794 20.2495 1.9633 20.1889C1.98865 20.1283 2.00183 20.0633 2.00205 19.9976V6.99782C2.00205 6.15816 2.66099 5.49558 3.50066 5.49558H4.00258C4.1346 5.49513 4.26109 5.44248 4.35444 5.34914C4.44779 5.25579 4.50047 5.12931 4.50093 4.99729C4.50119 4.93161 4.48846 4.86651 4.46356 4.80573C4.43865 4.74495 4.40204 4.68967 4.35577 4.64306C4.30949 4.59644 4.25448 4.5594 4.19388 4.53404C4.13329 4.50869 4.06827 4.49553 4.00258 4.4953H3.50066ZM26.0011 4.4953C25.9354 4.49553 25.8704 4.5087 25.8098 4.53405C25.7492 4.5594 25.6943 4.59645 25.648 4.64306C25.6017 4.68968 25.565 4.74496 25.5401 4.80574C25.5152 4.86652 25.5026 4.93161 25.5028 4.99729C25.5033 5.12931 25.5559 5.25578 25.6492 5.34913C25.7426 5.44248 25.8691 5.49512 26.0011 5.49558H26.5031C27.3428 5.49558 28.0016 6.15816 28.0016 6.99782V19.9976C28.0019 20.0633 28.015 20.1283 28.0404 20.1889C28.0657 20.2495 28.1028 20.3045 28.1494 20.3507C28.196 20.397 28.2513 20.4336 28.3121 20.4586C28.3729 20.4835 28.4379 20.4961 28.5036 20.4959C28.6356 20.4954 28.7621 20.4428 28.8555 20.3494C28.9488 20.2561 29.0014 20.1296 29.0019 19.9976V6.99782C29.0019 5.62146 27.8795 4.4953 26.5031 4.4953H26.0011ZM5.81066 4.2975C5.71775 4.39037 5.64405 4.50063 5.59376 4.62199C5.54347 4.74335 5.51757 4.87343 5.51757 5.00479C5.51757 5.13616 5.54347 5.26624 5.59376 5.3876C5.64405 5.50896 5.71775 5.61922 5.81066 5.71209C5.90353 5.805 6.01377 5.8787 6.13513 5.92899C6.25649 5.97928 6.38653 6.00516 6.5179 6.00516C6.64926 6.00516 6.77937 5.97928 6.90072 5.92899C7.02208 5.8787 7.13232 5.805 7.22519 5.71209C11.5294 1.40786 18.4763 1.40786 22.7805 5.71209C22.8734 5.805 22.9836 5.87871 23.105 5.92899C23.2263 5.97928 23.3564 6.00516 23.4878 6.00516C23.6192 6.00516 23.7492 5.97928 23.8706 5.92899C23.9919 5.87871 24.1022 5.805 24.1951 5.71209C24.288 5.61922 24.3617 5.50896 24.412 5.3876C24.4623 5.26624 24.4882 5.13616 24.4882 5.00479C24.4882 4.87343 24.4623 4.74335 24.412 4.62199C24.3617 4.50063 24.288 4.39037 24.1951 4.2975C19.1266 -0.771041 10.8792 -0.771041 5.81066 4.2975ZM8.63723 7.12407C8.54432 7.21694 8.47061 7.3272 8.42033 7.44856C8.37004 7.56992 8.34414 7.7 8.34414 7.83137C8.34414 7.96274 8.37004 8.09281 8.42033 8.21417C8.47061 8.33553 8.54432 8.4458 8.63723 8.53866C8.7301 8.63158 8.84034 8.70528 8.9617 8.75557C9.08306 8.80586 9.21316 8.83174 9.34452 8.83174C9.47589 8.83174 9.60593 8.80586 9.72729 8.75557C9.84865 8.70528 9.95895 8.63158 10.0518 8.53866C12.7939 5.79656 17.2092 5.79917 19.9513 8.54055C20.0442 8.63347 20.1545 8.70717 20.2758 8.75746C20.3972 8.80775 20.5272 8.83363 20.6586 8.83363C20.79 8.83363 20.9201 8.80775 21.0414 8.75746C21.1628 8.70717 21.2731 8.63347 21.3659 8.54055C21.4589 8.44769 21.5326 8.33743 21.5828 8.21607C21.6331 8.09471 21.659 7.96463 21.659 7.83326C21.659 7.70189 21.6331 7.57181 21.5828 7.45045C21.5326 7.32909 21.4589 7.21883 21.3659 7.12596C17.8595 3.61955 12.1436 3.61694 8.63723 7.12407ZM11.4664 9.95325C11.3735 10.0461 11.2998 10.1564 11.2495 10.2777C11.1992 10.3991 11.1733 10.5292 11.1733 10.6606C11.1733 10.7919 11.1992 10.922 11.2495 11.0434C11.2998 11.1647 11.3735 11.275 11.4664 11.3678C11.5593 11.4608 11.6695 11.5345 11.7909 11.5848C11.9122 11.635 12.0423 11.6609 12.1737 11.6609C12.3051 11.6609 12.4351 11.635 12.5565 11.5848C12.6778 11.5345 12.7881 11.4608 12.881 11.3678C14.061 10.1879 15.9422 10.1905 17.1221 11.3697C17.215 11.4626 17.3253 11.5364 17.4467 11.5866C17.568 11.6369 17.6981 11.6628 17.8294 11.6628C17.9608 11.6628 18.0909 11.6369 18.2123 11.5866C18.3336 11.5364 18.4438 11.4626 18.5367 11.3697C18.6296 11.2769 18.7033 11.1666 18.7536 11.0452C18.8039 10.9239 18.8298 10.7938 18.8298 10.6624C18.8298 10.5311 18.8039 10.401 18.7536 10.2796C18.7033 10.1583 18.6296 10.048 18.5367 9.95515C16.5924 8.01086 13.4107 8.00825 11.4664 9.95325ZM14.2956 12.7824C13.9092 13.1688 13.9092 13.8107 14.2956 14.197C14.6819 14.5834 15.3238 14.5834 15.7101 14.197C16.0965 13.8107 16.0965 13.1688 15.7101 12.7824C15.3238 12.3961 14.6819 12.3961 14.2956 12.7824Z",
|
|
3277
|
+
fill: color
|
|
3278
|
+
}));
|
|
3279
|
+
};
|
|
3280
|
+
|
|
3264
3281
|
var Zapper = function Zapper(_ref) {
|
|
3265
3282
|
var size = _ref.size,
|
|
3266
3283
|
color = _ref.color,
|
|
@@ -3418,6 +3435,7 @@ var IconSVGs = {
|
|
|
3418
3435
|
Wallet: Wallet,
|
|
3419
3436
|
Web: Web,
|
|
3420
3437
|
WiFiCam: WiFiCam,
|
|
3438
|
+
WiFiLaptop: WiFiLaptop,
|
|
3421
3439
|
Zapper: Zapper
|
|
3422
3440
|
};
|
|
3423
3441
|
var Icon = function Icon(_ref2) {
|
|
@@ -4806,8 +4824,9 @@ var DropdownButton = styled__default.div(_templateObject2$7 || (_templateObject2
|
|
|
4806
4824
|
return $height || '100%';
|
|
4807
4825
|
}, function (_ref8) {
|
|
4808
4826
|
var $border = _ref8.$border,
|
|
4809
|
-
$isOpen = _ref8.$isOpen
|
|
4810
|
-
|
|
4827
|
+
$isOpen = _ref8.$isOpen,
|
|
4828
|
+
theme = _ref8.theme;
|
|
4829
|
+
return $isOpen ? "1px solid " + theme.text.dark : $border || "1px solid " + theme.border.light;
|
|
4811
4830
|
}, function (_ref9) {
|
|
4812
4831
|
var $borderRadius = _ref9.$borderRadius;
|
|
4813
4832
|
return $borderRadius || '8px';
|
|
@@ -4816,30 +4835,32 @@ var DropdownButton = styled__default.div(_templateObject2$7 || (_templateObject2
|
|
|
4816
4835
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
4817
4836
|
}, function (_ref11) {
|
|
4818
4837
|
var $background = _ref11.$background,
|
|
4819
|
-
$disabled = _ref11.$disabled
|
|
4838
|
+
$disabled = _ref11.$disabled,
|
|
4839
|
+
theme = _ref11.theme;
|
|
4820
4840
|
switch ($background) {
|
|
4821
4841
|
case 'dark':
|
|
4822
|
-
return $disabled ?
|
|
4842
|
+
return $disabled ? theme.disabled.secondary : theme.text.dark;
|
|
4823
4843
|
case 'medium':
|
|
4824
|
-
return $disabled ?
|
|
4844
|
+
return $disabled ? theme.disabled.secondary : theme.text.medium;
|
|
4825
4845
|
case 'light':
|
|
4826
|
-
return $disabled ?
|
|
4846
|
+
return $disabled ? theme.disabled.secondary : theme.text.light;
|
|
4827
4847
|
case 'white':
|
|
4828
|
-
return $disabled ?
|
|
4848
|
+
return $disabled ? theme.disabled.secondary : theme.text.white;
|
|
4829
4849
|
case 'warning':
|
|
4830
|
-
return $disabled ?
|
|
4850
|
+
return $disabled ? theme.disabled.secondary : theme["default"].warning;
|
|
4831
4851
|
case 'info':
|
|
4832
|
-
return $disabled ?
|
|
4852
|
+
return $disabled ? theme.disabled.secondary : theme["default"].info;
|
|
4833
4853
|
case 'success':
|
|
4834
|
-
return $disabled ?
|
|
4854
|
+
return $disabled ? theme.disabled.secondary : theme["default"].success;
|
|
4835
4855
|
case 'error':
|
|
4836
|
-
return $disabled ?
|
|
4856
|
+
return $disabled ? theme.disabled.secondary : theme["default"].error;
|
|
4837
4857
|
default:
|
|
4838
|
-
return $disabled ?
|
|
4858
|
+
return $disabled ? theme.disabled.secondary : $background;
|
|
4839
4859
|
}
|
|
4840
4860
|
}, function (_ref12) {
|
|
4841
|
-
var $color = _ref12.$color
|
|
4842
|
-
|
|
4861
|
+
var $color = _ref12.$color,
|
|
4862
|
+
theme = _ref12.theme;
|
|
4863
|
+
return $color || theme.text.medium;
|
|
4843
4864
|
}, function (_ref13) {
|
|
4844
4865
|
var $size = _ref13.$size;
|
|
4845
4866
|
switch ($size) {
|
|
@@ -4873,24 +4894,25 @@ var TitleText = styled__default.div(_templateObject3$5 || (_templateObject3$5 =
|
|
|
4873
4894
|
$size = _ref17.$size;
|
|
4874
4895
|
return $titleSize ? $titleSize + "px" : $size === 'small' ? '14px' : $size === 'large' ? '18px' : '16px';
|
|
4875
4896
|
}, function (_ref18) {
|
|
4876
|
-
var $titleColor = _ref18.$titleColor
|
|
4897
|
+
var $titleColor = _ref18.$titleColor,
|
|
4898
|
+
theme = _ref18.theme;
|
|
4877
4899
|
switch ($titleColor) {
|
|
4878
4900
|
case 'dark':
|
|
4879
|
-
return
|
|
4901
|
+
return theme.text.dark;
|
|
4880
4902
|
case 'medium':
|
|
4881
|
-
return
|
|
4903
|
+
return theme.text.medium;
|
|
4882
4904
|
case 'light':
|
|
4883
|
-
return
|
|
4905
|
+
return theme.text.light;
|
|
4884
4906
|
case 'white':
|
|
4885
|
-
return
|
|
4907
|
+
return theme.text.white;
|
|
4886
4908
|
case 'warning':
|
|
4887
|
-
return
|
|
4909
|
+
return theme["default"].warning;
|
|
4888
4910
|
case 'info':
|
|
4889
|
-
return
|
|
4911
|
+
return theme["default"].info;
|
|
4890
4912
|
case 'success':
|
|
4891
|
-
return
|
|
4913
|
+
return theme["default"].success;
|
|
4892
4914
|
case 'error':
|
|
4893
|
-
return
|
|
4915
|
+
return theme["default"].error;
|
|
4894
4916
|
default:
|
|
4895
4917
|
return $titleColor;
|
|
4896
4918
|
}
|
|
@@ -4899,126 +4921,139 @@ var Container$2 = styled__default.div(_templateObject4$4 || (_templateObject4$4
|
|
|
4899
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) {
|
|
4900
4922
|
var $labelStyle = _ref19.$labelStyle;
|
|
4901
4923
|
return $labelStyle;
|
|
4902
|
-
},
|
|
4903
|
-
var
|
|
4904
|
-
|
|
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;
|
|
4905
4933
|
return $optionsBorderRadius || '8px';
|
|
4906
|
-
}, function (
|
|
4907
|
-
var $width =
|
|
4934
|
+
}, function (_ref23) {
|
|
4935
|
+
var $width = _ref23.$width;
|
|
4908
4936
|
return $width ? $width : 'max-content';
|
|
4909
|
-
}, function (
|
|
4910
|
-
var $menuBackground =
|
|
4911
|
-
|
|
4937
|
+
}, function (_ref24) {
|
|
4938
|
+
var $menuBackground = _ref24.$menuBackground,
|
|
4939
|
+
theme = _ref24.theme;
|
|
4940
|
+
return $menuBackground || theme.accent.light_2;
|
|
4912
4941
|
});
|
|
4913
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"])));
|
|
4914
|
-
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 (
|
|
4915
|
-
var $selectedOptionBackground =
|
|
4916
|
-
$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;
|
|
4917
4947
|
switch ($selectedOptionBackground) {
|
|
4918
4948
|
case 'dark':
|
|
4919
|
-
return
|
|
4949
|
+
return theme.text.dark;
|
|
4920
4950
|
case 'medium':
|
|
4921
|
-
return
|
|
4951
|
+
return theme.text.medium;
|
|
4922
4952
|
case 'light':
|
|
4923
|
-
return
|
|
4953
|
+
return theme.text.light;
|
|
4924
4954
|
case 'white':
|
|
4925
|
-
return
|
|
4955
|
+
return theme.text.white;
|
|
4926
4956
|
case 'warning':
|
|
4927
|
-
return $disabled ?
|
|
4957
|
+
return $disabled ? theme.disabled.warning : theme["default"].warning;
|
|
4928
4958
|
case 'info':
|
|
4929
|
-
return $disabled ?
|
|
4959
|
+
return $disabled ? theme.disabled.info : theme["default"].info;
|
|
4930
4960
|
case 'success':
|
|
4931
|
-
return $disabled ?
|
|
4961
|
+
return $disabled ? theme.disabled.success : theme["default"].success;
|
|
4932
4962
|
case 'error':
|
|
4933
|
-
return $disabled ?
|
|
4963
|
+
return $disabled ? theme.disabled.error : theme["default"].error;
|
|
4934
4964
|
default:
|
|
4935
|
-
return $selectedOptionBackground ||
|
|
4965
|
+
return $selectedOptionBackground || theme.accent.light_2;
|
|
4936
4966
|
}
|
|
4937
|
-
}, function (
|
|
4938
|
-
var $selectedOptionColor =
|
|
4967
|
+
}, function (_ref26) {
|
|
4968
|
+
var $selectedOptionColor = _ref26.$selectedOptionColor,
|
|
4969
|
+
theme = _ref26.theme;
|
|
4939
4970
|
switch ($selectedOptionColor) {
|
|
4940
4971
|
case 'dark':
|
|
4941
|
-
return
|
|
4972
|
+
return theme.text.dark;
|
|
4942
4973
|
case 'medium':
|
|
4943
|
-
return
|
|
4974
|
+
return theme.text.medium;
|
|
4944
4975
|
case 'light':
|
|
4945
|
-
return
|
|
4976
|
+
return theme.text.light;
|
|
4946
4977
|
case 'white':
|
|
4947
|
-
return
|
|
4978
|
+
return theme.text.white;
|
|
4948
4979
|
case 'warning':
|
|
4949
|
-
return
|
|
4980
|
+
return theme["default"].warning;
|
|
4950
4981
|
case 'info':
|
|
4951
|
-
return
|
|
4982
|
+
return theme["default"].info;
|
|
4952
4983
|
case 'success':
|
|
4953
|
-
return
|
|
4984
|
+
return theme["default"].success;
|
|
4954
4985
|
case 'error':
|
|
4955
|
-
return
|
|
4986
|
+
return theme["default"].error;
|
|
4956
4987
|
default:
|
|
4957
4988
|
return $selectedOptionColor;
|
|
4958
4989
|
}
|
|
4959
4990
|
});
|
|
4960
|
-
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 (
|
|
4961
|
-
var $disabled = _ref25.$disabled;
|
|
4962
|
-
return $disabled ? 'not-allowed' : 'pointer';
|
|
4963
|
-
}, function (_ref26) {
|
|
4964
|
-
var removeIconBackground = _ref26.removeIconBackground,
|
|
4965
|
-
$type = _ref26.$type;
|
|
4966
|
-
return removeIconBackground ? removeIconBackground : $type === 'remove' ? '#5E5E5E24' : colorVariables.disabled.primary;
|
|
4967
|
-
}, 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) {
|
|
4968
4992
|
var $disabled = _ref27.$disabled;
|
|
4969
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';
|
|
4970
5002
|
});
|
|
4971
5003
|
var TextWrapper = styled__default.div(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 4px;\n"])));
|
|
4972
|
-
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"])),
|
|
4973
|
-
var
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
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
|
-
|
|
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;
|
|
5022
5057
|
var _useState = React.useState(false),
|
|
5023
5058
|
isOpen = _useState[0],
|
|
5024
5059
|
setIsOpen = _useState[1];
|
|
@@ -5206,24 +5241,25 @@ var TitleText$1 = styled__default.label(_templateObject$c || (_templateObject$c
|
|
|
5206
5241
|
return "\n font-size: 14px;\n line-height: 14px;\n ";
|
|
5207
5242
|
}
|
|
5208
5243
|
}, function (_ref3) {
|
|
5209
|
-
var $titlecolor = _ref3.$titlecolor
|
|
5244
|
+
var $titlecolor = _ref3.$titlecolor,
|
|
5245
|
+
theme = _ref3.theme;
|
|
5210
5246
|
switch ($titlecolor) {
|
|
5211
5247
|
case 'dark':
|
|
5212
|
-
return
|
|
5248
|
+
return theme.text.dark;
|
|
5213
5249
|
case 'medium':
|
|
5214
|
-
return
|
|
5250
|
+
return theme.text.medium;
|
|
5215
5251
|
case 'light':
|
|
5216
|
-
return
|
|
5252
|
+
return theme.text.light;
|
|
5217
5253
|
case 'white':
|
|
5218
|
-
return
|
|
5254
|
+
return theme.text.white;
|
|
5219
5255
|
case 'warning':
|
|
5220
|
-
return
|
|
5256
|
+
return theme["default"].warning;
|
|
5221
5257
|
case 'info':
|
|
5222
|
-
return
|
|
5258
|
+
return theme["default"].info;
|
|
5223
5259
|
case 'success':
|
|
5224
|
-
return
|
|
5260
|
+
return theme["default"].success;
|
|
5225
5261
|
case 'error':
|
|
5226
|
-
return
|
|
5262
|
+
return theme["default"].error;
|
|
5227
5263
|
default:
|
|
5228
5264
|
return $titlecolor;
|
|
5229
5265
|
}
|
|
@@ -5246,8 +5282,9 @@ var DropdownButton$1 = styled__default.div(_templateObject3$7 || (_templateObjec
|
|
|
5246
5282
|
return $borderRadius || '8px';
|
|
5247
5283
|
}, function (_ref9) {
|
|
5248
5284
|
var $border = _ref9.$border,
|
|
5249
|
-
$isOpen = _ref9.$isOpen
|
|
5250
|
-
|
|
5285
|
+
$isOpen = _ref9.$isOpen,
|
|
5286
|
+
theme = _ref9.theme;
|
|
5287
|
+
return $isOpen ? "1px solid " + theme.text.dark : $border || "1px solid " + theme.border.light;
|
|
5251
5288
|
}, function (_ref10) {
|
|
5252
5289
|
var $size = _ref10.$size;
|
|
5253
5290
|
switch ($size) {
|
|
@@ -5260,8 +5297,9 @@ var DropdownButton$1 = styled__default.div(_templateObject3$7 || (_templateObjec
|
|
|
5260
5297
|
}
|
|
5261
5298
|
}, function (_ref11) {
|
|
5262
5299
|
var $background = _ref11.$background,
|
|
5263
|
-
$disabled = _ref11.$disabled
|
|
5264
|
-
|
|
5300
|
+
$disabled = _ref11.$disabled,
|
|
5301
|
+
theme = _ref11.theme;
|
|
5302
|
+
return $disabled ? theme.border.light : $background || theme.accent.light_2;
|
|
5265
5303
|
}, function (_ref12) {
|
|
5266
5304
|
var $size = _ref12.$size;
|
|
5267
5305
|
switch ($size) {
|
|
@@ -5283,10 +5321,11 @@ var DropdownButton$1 = styled__default.div(_templateObject3$7 || (_templateObjec
|
|
|
5283
5321
|
return '14px';
|
|
5284
5322
|
}
|
|
5285
5323
|
});
|
|
5286
|
-
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) {
|
|
5287
5325
|
var $optionColor = _ref14.$optionColor,
|
|
5288
|
-
$optionSelected = _ref14.$optionSelected
|
|
5289
|
-
|
|
5326
|
+
$optionSelected = _ref14.$optionSelected,
|
|
5327
|
+
theme = _ref14.theme;
|
|
5328
|
+
return $optionSelected ? theme.text.white : $optionColor || theme.text.medium;
|
|
5290
5329
|
}, function (_ref15) {
|
|
5291
5330
|
var $optionFontSize = _ref15.$optionFontSize;
|
|
5292
5331
|
return $optionFontSize || '14px';
|
|
@@ -5295,11 +5334,18 @@ var Options = styled__default.div(_templateObject4$5 || (_templateObject4$5 = _t
|
|
|
5295
5334
|
return $optionFontWeight || 400;
|
|
5296
5335
|
}, function (_ref17) {
|
|
5297
5336
|
var $optionBackgroundColor = _ref17.$optionBackgroundColor,
|
|
5298
|
-
$optionSelected = _ref17.$optionSelected
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
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;
|
|
5303
5349
|
switch ($size) {
|
|
5304
5350
|
case 'small':
|
|
5305
5351
|
return '14px';
|
|
@@ -5308,8 +5354,8 @@ var LabelText$1 = styled__default.div(_templateObject5$5 || (_templateObject5$5
|
|
|
5308
5354
|
default:
|
|
5309
5355
|
return '14px';
|
|
5310
5356
|
}
|
|
5311
|
-
}, function (
|
|
5312
|
-
var $size =
|
|
5357
|
+
}, function (_ref21) {
|
|
5358
|
+
var $size = _ref21.$size;
|
|
5313
5359
|
switch ($size) {
|
|
5314
5360
|
case 'small':
|
|
5315
5361
|
return '12px';
|
|
@@ -5318,98 +5364,109 @@ var LabelText$1 = styled__default.div(_templateObject5$5 || (_templateObject5$5
|
|
|
5318
5364
|
default:
|
|
5319
5365
|
return '14px';
|
|
5320
5366
|
}
|
|
5321
|
-
}, function (
|
|
5322
|
-
var $fontStyle =
|
|
5367
|
+
}, function (_ref22) {
|
|
5368
|
+
var $fontStyle = _ref22.$fontStyle;
|
|
5323
5369
|
return $fontStyle || '';
|
|
5324
|
-
}, function (
|
|
5325
|
-
var $color =
|
|
5326
|
-
$disabled =
|
|
5327
|
-
|
|
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;
|
|
5328
5375
|
});
|
|
5329
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"])));
|
|
5330
|
-
var DropdownMenu$1 = styled__default.div(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n height: auto;\n max-height: 170px;\n border:
|
|
5331
|
-
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;
|
|
5332
5382
|
return $optionsBorderRadius || '8px';
|
|
5333
|
-
}, function (
|
|
5334
|
-
var $width =
|
|
5383
|
+
}, function (_ref26) {
|
|
5384
|
+
var $width = _ref26.$width;
|
|
5335
5385
|
return $width ? $width : 'max-content';
|
|
5336
|
-
}, function (
|
|
5337
|
-
var $menuBackground =
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
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;
|
|
5341
5392
|
return $top && "top: " + $top + ";";
|
|
5342
|
-
}, function (
|
|
5343
|
-
var $bottom =
|
|
5393
|
+
}, function (_ref29) {
|
|
5394
|
+
var $bottom = _ref29.$bottom;
|
|
5344
5395
|
return $bottom && "bottom: " + $bottom + ";";
|
|
5345
5396
|
});
|
|
5346
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"])));
|
|
5347
|
-
var SearchContainer$1 = styled__default.div(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: ", ";\n border: ", ";\n border-bottom:
|
|
5348
|
-
var $background =
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
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;
|
|
5352
5404
|
return $border || 'none';
|
|
5353
|
-
},
|
|
5354
|
-
var
|
|
5405
|
+
}, function (_ref32) {
|
|
5406
|
+
var theme = _ref32.theme;
|
|
5407
|
+
return "1px solid " + theme.border.light;
|
|
5408
|
+
}, function (_ref33) {
|
|
5409
|
+
var $borderRadius = _ref33.$borderRadius;
|
|
5355
5410
|
return $borderRadius || '8px 8px 0 0';
|
|
5356
5411
|
});
|
|
5357
|
-
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 (
|
|
5358
|
-
var $inputColor =
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
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;
|
|
5363
5420
|
});
|
|
5364
|
-
var SelectOption = function SelectOption(
|
|
5421
|
+
var SelectOption = function SelectOption(_ref36) {
|
|
5365
5422
|
var _options$find;
|
|
5366
|
-
var title =
|
|
5367
|
-
titlecolor =
|
|
5368
|
-
titleWeight =
|
|
5369
|
-
options =
|
|
5370
|
-
value =
|
|
5371
|
-
onChange =
|
|
5372
|
-
|
|
5373
|
-
disabled =
|
|
5374
|
-
size =
|
|
5375
|
-
width =
|
|
5376
|
-
|
|
5377
|
-
labelText =
|
|
5378
|
-
border =
|
|
5379
|
-
background =
|
|
5380
|
-
|
|
5381
|
-
padding =
|
|
5382
|
-
borderRadius =
|
|
5383
|
-
optionColor =
|
|
5384
|
-
optionFontSize =
|
|
5385
|
-
optionFontWeight =
|
|
5386
|
-
optionBackgroundColor =
|
|
5387
|
-
menuBackground =
|
|
5388
|
-
optionsBorderRadius =
|
|
5389
|
-
color =
|
|
5390
|
-
required =
|
|
5391
|
-
|
|
5392
|
-
NoOptionsText =
|
|
5393
|
-
positionRef =
|
|
5394
|
-
fontStyle =
|
|
5395
|
-
icon =
|
|
5396
|
-
|
|
5397
|
-
searchBox =
|
|
5398
|
-
searchBoxBackground =
|
|
5399
|
-
searchBoxBorder =
|
|
5400
|
-
searchBoxBorderRadius =
|
|
5401
|
-
searchIcon =
|
|
5402
|
-
|
|
5403
|
-
placeholderText =
|
|
5404
|
-
|
|
5405
|
-
iconColor =
|
|
5406
|
-
placeholderColor =
|
|
5407
|
-
inputColor =
|
|
5408
|
-
|
|
5409
|
-
iconSize =
|
|
5410
|
-
|
|
5411
|
-
allowDeselect =
|
|
5412
|
-
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;
|
|
5413
5470
|
var _useState = React.useState(false),
|
|
5414
5471
|
dropUp = _useState[0],
|
|
5415
5472
|
setDropUp = _useState[1];
|
|
@@ -5698,6 +5755,10 @@ var useNotification = function useNotification() {
|
|
|
5698
5755
|
};
|
|
5699
5756
|
};
|
|
5700
5757
|
|
|
5758
|
+
var useTheme = function useTheme() {
|
|
5759
|
+
return styled.useTheme();
|
|
5760
|
+
};
|
|
5761
|
+
|
|
5701
5762
|
var _templateObject$e, _templateObject2$b;
|
|
5702
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) {
|
|
5703
5764
|
var $background = _ref.$background;
|
|
@@ -7340,4 +7401,5 @@ exports.timeStringToSeconds = timeStringToSeconds;
|
|
|
7340
7401
|
exports.useClickOutside = useClickOutside;
|
|
7341
7402
|
exports.useCustomModal = useCustomModal;
|
|
7342
7403
|
exports.useNotification = useNotification;
|
|
7404
|
+
exports.useTheme = useTheme;
|
|
7343
7405
|
//# sourceMappingURL=index.js.map
|