labsense-ui-kit 1.4.55 → 1.4.56
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 +243 -237
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +243 -237
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9563,7 +9563,7 @@ var DropdownContainer = styled__default.div(_templateObject$b || (_templateObjec
|
|
|
9563
9563
|
var $hasTitle = _ref4.$hasTitle;
|
|
9564
9564
|
return $hasTitle ? 'calc(100% - 22px)' : '100%';
|
|
9565
9565
|
});
|
|
9566
|
-
var DropdownButton = styled__default.div(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n overflow: ", ";\n padding: ", ";\n min-height: ", ";\n scrollbar-width: thin;\n gap: 8px;\n box-sizing: border-box;\n transition: all 0.3s ease;\n width: ", ";\n height: ", ";\n border: ", ";\n border-radius: ", ";\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: ", ";\n background: ", ";\n color: ", ";\n font-weight: 400;\n font-size: ", ";\n line-height: ", ";\n"])), function (_ref5) {
|
|
9566
|
+
var DropdownButton = styled__default.div(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n overflow: ", ";\n padding: ", ";\n min-height: ", ";\n scrollbar-width: thin;\n gap: 8px;\n box-sizing: border-box;\n transition: all 0.3s ease;\n width: ", ";\n height: ", ";\n border: ", ";\n border-radius: ", ";\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n border: 1px solid ", ";\n }\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: ", ";\n background: ", ";\n color: ", ";\n font-weight: 400;\n font-size: ", ";\n line-height: ", ";\n"])), function (_ref5) {
|
|
9567
9567
|
var $replaceLabel = _ref5.$replaceLabel,
|
|
9568
9568
|
$showAllSelected = _ref5.$showAllSelected;
|
|
9569
9569
|
return $replaceLabel ? $showAllSelected ? 'auto' : 'hidden' : '';
|
|
@@ -9596,12 +9596,15 @@ var DropdownButton = styled__default.div(_templateObject2$8 || (_templateObject2
|
|
|
9596
9596
|
var $borderRadius = _ref11.$borderRadius;
|
|
9597
9597
|
return $borderRadius || '8px';
|
|
9598
9598
|
}, function (_ref12) {
|
|
9599
|
-
var
|
|
9600
|
-
return
|
|
9599
|
+
var theme = _ref12.theme;
|
|
9600
|
+
return theme.vms.text.dark;
|
|
9601
9601
|
}, function (_ref13) {
|
|
9602
|
-
var $
|
|
9603
|
-
|
|
9604
|
-
|
|
9602
|
+
var $disabled = _ref13.$disabled;
|
|
9603
|
+
return $disabled ? 'not-allowed' : 'pointer';
|
|
9604
|
+
}, function (_ref14) {
|
|
9605
|
+
var $background = _ref14.$background,
|
|
9606
|
+
$disabled = _ref14.$disabled,
|
|
9607
|
+
theme = _ref14.theme;
|
|
9605
9608
|
switch ($background) {
|
|
9606
9609
|
case 'dark':
|
|
9607
9610
|
return $disabled ? theme.vms.disabled.secondary : theme.vms.text.dark;
|
|
@@ -9622,12 +9625,12 @@ var DropdownButton = styled__default.div(_templateObject2$8 || (_templateObject2
|
|
|
9622
9625
|
default:
|
|
9623
9626
|
return $disabled ? theme.vms.disabled.secondary : $background;
|
|
9624
9627
|
}
|
|
9625
|
-
}, function (_ref14) {
|
|
9626
|
-
var $color = _ref14.$color,
|
|
9627
|
-
theme = _ref14.theme;
|
|
9628
|
-
return $color || theme.vms.text.medium;
|
|
9629
9628
|
}, function (_ref15) {
|
|
9630
|
-
var $
|
|
9629
|
+
var $color = _ref15.$color,
|
|
9630
|
+
theme = _ref15.theme;
|
|
9631
|
+
return $color || theme.vms.text.medium;
|
|
9632
|
+
}, function (_ref16) {
|
|
9633
|
+
var $size = _ref16.$size;
|
|
9631
9634
|
switch ($size) {
|
|
9632
9635
|
case 'small':
|
|
9633
9636
|
return '12px';
|
|
@@ -9636,8 +9639,8 @@ var DropdownButton = styled__default.div(_templateObject2$8 || (_templateObject2
|
|
|
9636
9639
|
default:
|
|
9637
9640
|
return '14px';
|
|
9638
9641
|
}
|
|
9639
|
-
}, function (
|
|
9640
|
-
var $size =
|
|
9642
|
+
}, function (_ref17) {
|
|
9643
|
+
var $size = _ref17.$size;
|
|
9641
9644
|
switch ($size) {
|
|
9642
9645
|
case 'small':
|
|
9643
9646
|
return '12px';
|
|
@@ -9647,20 +9650,20 @@ var DropdownButton = styled__default.div(_templateObject2$8 || (_templateObject2
|
|
|
9647
9650
|
return '14px';
|
|
9648
9651
|
}
|
|
9649
9652
|
});
|
|
9650
|
-
var TitleText = styled__default.div(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["\n width: max-content;\n position: relative;\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n color: ", ";\n"])), function (
|
|
9651
|
-
var $titleWeight =
|
|
9653
|
+
var TitleText = styled__default.div(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["\n width: max-content;\n position: relative;\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n color: ", ";\n"])), function (_ref18) {
|
|
9654
|
+
var $titleWeight = _ref18.$titleWeight;
|
|
9652
9655
|
return $titleWeight != null ? $titleWeight : '500';
|
|
9653
|
-
}, function (_ref18) {
|
|
9654
|
-
var $titleSize = _ref18.$titleSize,
|
|
9655
|
-
$size = _ref18.$size;
|
|
9656
|
-
return $titleSize ? $titleSize + "px" : $size === 'small' ? '14px' : $size === 'large' ? '18px' : '16px';
|
|
9657
9656
|
}, function (_ref19) {
|
|
9658
9657
|
var $titleSize = _ref19.$titleSize,
|
|
9659
9658
|
$size = _ref19.$size;
|
|
9660
9659
|
return $titleSize ? $titleSize + "px" : $size === 'small' ? '14px' : $size === 'large' ? '18px' : '16px';
|
|
9661
9660
|
}, function (_ref20) {
|
|
9662
|
-
var $
|
|
9663
|
-
|
|
9661
|
+
var $titleSize = _ref20.$titleSize,
|
|
9662
|
+
$size = _ref20.$size;
|
|
9663
|
+
return $titleSize ? $titleSize + "px" : $size === 'small' ? '14px' : $size === 'large' ? '18px' : '16px';
|
|
9664
|
+
}, function (_ref21) {
|
|
9665
|
+
var $titleColor = _ref21.$titleColor,
|
|
9666
|
+
theme = _ref21.theme;
|
|
9664
9667
|
switch ($titleColor) {
|
|
9665
9668
|
case 'dark':
|
|
9666
9669
|
return theme.vms.text.dark;
|
|
@@ -9683,29 +9686,29 @@ var TitleText = styled__default.div(_templateObject3$5 || (_templateObject3$5 =
|
|
|
9683
9686
|
}
|
|
9684
9687
|
});
|
|
9685
9688
|
var Container$2 = styled__default.div(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: 8px;\n height: 100%;\n"])));
|
|
9686
|
-
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 (
|
|
9687
|
-
var $labelStyle =
|
|
9689
|
+
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 (_ref22) {
|
|
9690
|
+
var $labelStyle = _ref22.$labelStyle;
|
|
9688
9691
|
return $labelStyle;
|
|
9689
|
-
}, function (
|
|
9690
|
-
var $labelColor =
|
|
9691
|
-
theme =
|
|
9692
|
+
}, function (_ref23) {
|
|
9693
|
+
var $labelColor = _ref23.$labelColor,
|
|
9694
|
+
theme = _ref23.theme;
|
|
9692
9695
|
return $labelColor || theme.vms.text.medium;
|
|
9693
9696
|
});
|
|
9694
|
-
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: 5;\n scrollbar-width: thin;\n \n ", "\n"])), function (
|
|
9695
|
-
var theme =
|
|
9697
|
+
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: 5;\n scrollbar-width: thin;\n \n ", "\n"])), function (_ref24) {
|
|
9698
|
+
var theme = _ref24.theme;
|
|
9696
9699
|
return "1px solid " + theme.vms.border.light;
|
|
9697
|
-
}, function (_ref24) {
|
|
9698
|
-
var $optionsBorderRadius = _ref24.$optionsBorderRadius;
|
|
9699
|
-
return $optionsBorderRadius || '8px';
|
|
9700
9700
|
}, function (_ref25) {
|
|
9701
|
-
var $
|
|
9702
|
-
return $
|
|
9701
|
+
var $optionsBorderRadius = _ref25.$optionsBorderRadius;
|
|
9702
|
+
return $optionsBorderRadius || '8px';
|
|
9703
9703
|
}, function (_ref26) {
|
|
9704
|
-
var $
|
|
9705
|
-
|
|
9706
|
-
return $menuBackground || theme.vms.accent.light_2;
|
|
9704
|
+
var $width = _ref26.$width;
|
|
9705
|
+
return $width ? $width : 'max-content';
|
|
9707
9706
|
}, function (_ref27) {
|
|
9708
|
-
var $
|
|
9707
|
+
var $menuBackground = _ref27.$menuBackground,
|
|
9708
|
+
theme = _ref27.theme;
|
|
9709
|
+
return $menuBackground || theme.vms.accent.light_2;
|
|
9710
|
+
}, function (_ref28) {
|
|
9711
|
+
var $position = _ref28.$position;
|
|
9709
9712
|
switch ($position) {
|
|
9710
9713
|
case 'topLeft':
|
|
9711
9714
|
return "\n bottom: calc(100% + 8px);\n left: 0;\n top: auto;\n ";
|
|
@@ -9724,10 +9727,10 @@ var DropdownMenu = styled__default.div(_templateObject6$4 || (_templateObject6$4
|
|
|
9724
9727
|
}
|
|
9725
9728
|
});
|
|
9726
9729
|
var SelectedOptionsWrapper = styled__default.div(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n height: 100%;\n"])));
|
|
9727
|
-
var SelectedOptionDiv = styled__default.div(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n white-space: nowrap;\n background: ", ";\n border-radius: 4px;\n padding: 6px 8px;\n box-sizing: border-box;\n gap: 6px;\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 12px;\n color: ", ";\n"])), function (
|
|
9728
|
-
var $selectedOptionBackground =
|
|
9729
|
-
$disabled =
|
|
9730
|
-
theme =
|
|
9730
|
+
var SelectedOptionDiv = styled__default.div(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n white-space: nowrap;\n background: ", ";\n border-radius: 4px;\n padding: 6px 8px;\n box-sizing: border-box;\n gap: 6px;\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 12px;\n color: ", ";\n"])), function (_ref29) {
|
|
9731
|
+
var $selectedOptionBackground = _ref29.$selectedOptionBackground,
|
|
9732
|
+
$disabled = _ref29.$disabled,
|
|
9733
|
+
theme = _ref29.theme;
|
|
9731
9734
|
switch ($selectedOptionBackground) {
|
|
9732
9735
|
case 'dark':
|
|
9733
9736
|
return theme.vms.text.dark;
|
|
@@ -9748,9 +9751,9 @@ var SelectedOptionDiv = styled__default.div(_templateObject8$2 || (_templateObje
|
|
|
9748
9751
|
default:
|
|
9749
9752
|
return $selectedOptionBackground || theme.vms.accent.light_2;
|
|
9750
9753
|
}
|
|
9751
|
-
}, function (
|
|
9752
|
-
var $selectedOptionColor =
|
|
9753
|
-
theme =
|
|
9754
|
+
}, function (_ref30) {
|
|
9755
|
+
var $selectedOptionColor = _ref30.$selectedOptionColor,
|
|
9756
|
+
theme = _ref30.theme;
|
|
9754
9757
|
switch ($selectedOptionColor) {
|
|
9755
9758
|
case 'dark':
|
|
9756
9759
|
return theme.vms.text.dark;
|
|
@@ -9772,26 +9775,26 @@ var SelectedOptionDiv = styled__default.div(_templateObject8$2 || (_templateObje
|
|
|
9772
9775
|
return $selectedOptionColor;
|
|
9773
9776
|
}
|
|
9774
9777
|
});
|
|
9775
|
-
var RemoveIcon = styled__default.div(_templateObject9$1 || (_templateObject9$1 = _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 (
|
|
9776
|
-
var $disabled =
|
|
9778
|
+
var RemoveIcon = styled__default.div(_templateObject9$1 || (_templateObject9$1 = _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 (_ref31) {
|
|
9779
|
+
var $disabled = _ref31.$disabled;
|
|
9777
9780
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
9778
|
-
}, function (_ref31) {
|
|
9779
|
-
var removeIconBackground = _ref31.removeIconBackground,
|
|
9780
|
-
$type = _ref31.$type,
|
|
9781
|
-
theme = _ref31.theme;
|
|
9782
|
-
return removeIconBackground ? removeIconBackground : $type === 'remove' ? '#5E5E5E24' : theme.vms.disabled.primary;
|
|
9783
9781
|
}, function (_ref32) {
|
|
9784
|
-
var
|
|
9782
|
+
var removeIconBackground = _ref32.removeIconBackground,
|
|
9783
|
+
$type = _ref32.$type,
|
|
9784
|
+
theme = _ref32.theme;
|
|
9785
|
+
return removeIconBackground ? removeIconBackground : $type === 'remove' ? '#5E5E5E24' : theme.vms.disabled.primary;
|
|
9786
|
+
}, function (_ref33) {
|
|
9787
|
+
var $disabled = _ref33.$disabled;
|
|
9785
9788
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
9786
9789
|
});
|
|
9787
9790
|
var TextWrapper = styled__default.div(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 4px;\n"])));
|
|
9788
9791
|
var ChipArea = styled__default.div(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-width: 0;\n overflow: hidden;\n position: relative;\n display: flex;\n align-items: center;\n"])));
|
|
9789
9792
|
var MeasureLayer = styled__default.div(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n display: flex;\n flex-wrap: nowrap;\n gap: 6px;\n width: 100%;\n top: 0;\n left: 0;\n"])));
|
|
9790
9793
|
var SingleLineRow = styled__default.div(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: nowrap;\n gap: 6px;\n overflow: hidden;\n align-items: center;\n width: 100%;\n"])));
|
|
9791
|
-
var OverflowCountBadge = styled__default.div(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n border-radius: 4px;\n padding: 6px 8px;\n box-sizing: border-box;\n font-size: 12px;\n line-height: 12px;\n font-weight: 400;\n white-space: nowrap;\n background: ", ";\n color: ", ";\n"])), function (
|
|
9792
|
-
var $selectedOptionBackground =
|
|
9793
|
-
$disabled =
|
|
9794
|
-
theme =
|
|
9794
|
+
var OverflowCountBadge = styled__default.div(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n border-radius: 4px;\n padding: 6px 8px;\n box-sizing: border-box;\n font-size: 12px;\n line-height: 12px;\n font-weight: 400;\n white-space: nowrap;\n background: ", ";\n color: ", ";\n"])), function (_ref34) {
|
|
9795
|
+
var $selectedOptionBackground = _ref34.$selectedOptionBackground,
|
|
9796
|
+
$disabled = _ref34.$disabled,
|
|
9797
|
+
theme = _ref34.theme;
|
|
9795
9798
|
switch ($selectedOptionBackground) {
|
|
9796
9799
|
case 'dark':
|
|
9797
9800
|
return theme.vms.text.dark;
|
|
@@ -9812,9 +9815,9 @@ var OverflowCountBadge = styled__default.div(_templateObject14$1 || (_templateOb
|
|
|
9812
9815
|
default:
|
|
9813
9816
|
return $selectedOptionBackground || theme.vms.accent.light_2;
|
|
9814
9817
|
}
|
|
9815
|
-
}, function (
|
|
9816
|
-
var $selectedOptionColor =
|
|
9817
|
-
theme =
|
|
9818
|
+
}, function (_ref35) {
|
|
9819
|
+
var $selectedOptionColor = _ref35.$selectedOptionColor,
|
|
9820
|
+
theme = _ref35.theme;
|
|
9818
9821
|
switch ($selectedOptionColor) {
|
|
9819
9822
|
case 'dark':
|
|
9820
9823
|
return theme.vms.text.dark;
|
|
@@ -9836,66 +9839,66 @@ var OverflowCountBadge = styled__default.div(_templateObject14$1 || (_templateOb
|
|
|
9836
9839
|
return $selectedOptionColor || theme.vms.text.medium;
|
|
9837
9840
|
}
|
|
9838
9841
|
});
|
|
9839
|
-
var Asterisk = styled__default.span(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: 10px;\n height: fit-content;\n position: absolute;\n top: -2px;\n right: -8px;\n"])), function (
|
|
9840
|
-
var theme =
|
|
9842
|
+
var Asterisk = styled__default.span(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: 10px;\n height: fit-content;\n position: absolute;\n top: -2px;\n right: -8px;\n"])), function (_ref36) {
|
|
9843
|
+
var theme = _ref36.theme;
|
|
9841
9844
|
return theme.vms["default"].error;
|
|
9842
9845
|
});
|
|
9843
|
-
var MultiSelectDropdown = function MultiSelectDropdown(
|
|
9844
|
-
var title =
|
|
9845
|
-
titleWeight =
|
|
9846
|
-
titleSize =
|
|
9847
|
-
titleColor =
|
|
9848
|
-
|
|
9849
|
-
labelText =
|
|
9850
|
-
labelStyle =
|
|
9851
|
-
labelColor =
|
|
9852
|
-
|
|
9853
|
-
replaceLabel =
|
|
9854
|
-
options =
|
|
9855
|
-
width =
|
|
9856
|
-
optionWidth =
|
|
9857
|
-
height =
|
|
9858
|
-
placeholder =
|
|
9859
|
-
border =
|
|
9860
|
-
background =
|
|
9861
|
-
selectedOptionBackground =
|
|
9862
|
-
selectedOptionColor =
|
|
9863
|
-
menuBackground =
|
|
9864
|
-
optionsBorderRadius =
|
|
9865
|
-
borderRadius =
|
|
9866
|
-
removeIconBackground =
|
|
9867
|
-
handleSelectChange =
|
|
9868
|
-
selectedOptions =
|
|
9869
|
-
placeholderColor =
|
|
9870
|
-
optionBorder =
|
|
9871
|
-
optionColor =
|
|
9872
|
-
searchIcon =
|
|
9873
|
-
searchbarTextColor =
|
|
9874
|
-
searchBoxBackground =
|
|
9875
|
-
searchBoxBorder =
|
|
9876
|
-
searchBoxBorderRadius =
|
|
9877
|
-
size =
|
|
9878
|
-
removeIcon =
|
|
9879
|
-
type =
|
|
9880
|
-
icon =
|
|
9881
|
-
|
|
9882
|
-
disabled =
|
|
9883
|
-
|
|
9884
|
-
required =
|
|
9885
|
-
|
|
9886
|
-
searchBox =
|
|
9887
|
-
|
|
9888
|
-
searchBoxTextLength =
|
|
9889
|
-
|
|
9890
|
-
NoOptionsText =
|
|
9891
|
-
|
|
9892
|
-
selectAllOption =
|
|
9893
|
-
|
|
9894
|
-
selectAllLabel =
|
|
9895
|
-
selectAllChecked =
|
|
9896
|
-
dropdownPosition =
|
|
9897
|
-
|
|
9898
|
-
showAllSelected =
|
|
9846
|
+
var MultiSelectDropdown = function MultiSelectDropdown(_ref37) {
|
|
9847
|
+
var title = _ref37.title,
|
|
9848
|
+
titleWeight = _ref37.titleWeight,
|
|
9849
|
+
titleSize = _ref37.titleSize,
|
|
9850
|
+
titleColor = _ref37.titleColor,
|
|
9851
|
+
_ref37$labelText = _ref37.labelText,
|
|
9852
|
+
labelText = _ref37$labelText === void 0 ? 'Select Cameras' : _ref37$labelText,
|
|
9853
|
+
labelStyle = _ref37.labelStyle,
|
|
9854
|
+
labelColor = _ref37.labelColor,
|
|
9855
|
+
_ref37$replaceLabel = _ref37.replaceLabel,
|
|
9856
|
+
replaceLabel = _ref37$replaceLabel === void 0 ? true : _ref37$replaceLabel,
|
|
9857
|
+
options = _ref37.options,
|
|
9858
|
+
width = _ref37.width,
|
|
9859
|
+
optionWidth = _ref37.optionWidth,
|
|
9860
|
+
height = _ref37.height,
|
|
9861
|
+
placeholder = _ref37.placeholder,
|
|
9862
|
+
border = _ref37.border,
|
|
9863
|
+
background = _ref37.background,
|
|
9864
|
+
selectedOptionBackground = _ref37.selectedOptionBackground,
|
|
9865
|
+
selectedOptionColor = _ref37.selectedOptionColor,
|
|
9866
|
+
menuBackground = _ref37.menuBackground,
|
|
9867
|
+
optionsBorderRadius = _ref37.optionsBorderRadius,
|
|
9868
|
+
borderRadius = _ref37.borderRadius,
|
|
9869
|
+
removeIconBackground = _ref37.removeIconBackground,
|
|
9870
|
+
handleSelectChange = _ref37.handleSelectChange,
|
|
9871
|
+
selectedOptions = _ref37.selectedOptions,
|
|
9872
|
+
placeholderColor = _ref37.placeholderColor,
|
|
9873
|
+
optionBorder = _ref37.optionBorder,
|
|
9874
|
+
optionColor = _ref37.optionColor,
|
|
9875
|
+
searchIcon = _ref37.searchIcon,
|
|
9876
|
+
searchbarTextColor = _ref37.searchbarTextColor,
|
|
9877
|
+
searchBoxBackground = _ref37.searchBoxBackground,
|
|
9878
|
+
searchBoxBorder = _ref37.searchBoxBorder,
|
|
9879
|
+
searchBoxBorderRadius = _ref37.searchBoxBorderRadius,
|
|
9880
|
+
size = _ref37.size,
|
|
9881
|
+
removeIcon = _ref37.removeIcon,
|
|
9882
|
+
type = _ref37.type,
|
|
9883
|
+
icon = _ref37.icon,
|
|
9884
|
+
_ref37$disabled = _ref37.disabled,
|
|
9885
|
+
disabled = _ref37$disabled === void 0 ? false : _ref37$disabled,
|
|
9886
|
+
_ref37$required = _ref37.required,
|
|
9887
|
+
required = _ref37$required === void 0 ? false : _ref37$required,
|
|
9888
|
+
_ref37$searchBox = _ref37.searchBox,
|
|
9889
|
+
searchBox = _ref37$searchBox === void 0 ? true : _ref37$searchBox,
|
|
9890
|
+
_ref37$searchBoxTextL = _ref37.searchBoxTextLength,
|
|
9891
|
+
searchBoxTextLength = _ref37$searchBoxTextL === void 0 ? 50 : _ref37$searchBoxTextL,
|
|
9892
|
+
_ref37$NoOptionsText = _ref37.NoOptionsText,
|
|
9893
|
+
NoOptionsText = _ref37$NoOptionsText === void 0 ? 'No Options Available' : _ref37$NoOptionsText,
|
|
9894
|
+
_ref37$selectAllOptio = _ref37.selectAllOption,
|
|
9895
|
+
selectAllOption = _ref37$selectAllOptio === void 0 ? false : _ref37$selectAllOptio,
|
|
9896
|
+
_ref37$selectAllLabel = _ref37.selectAllLabel,
|
|
9897
|
+
selectAllLabel = _ref37$selectAllLabel === void 0 ? 'Select All' : _ref37$selectAllLabel,
|
|
9898
|
+
selectAllChecked = _ref37.selectAllChecked,
|
|
9899
|
+
dropdownPosition = _ref37.dropdownPosition,
|
|
9900
|
+
_ref37$showAllSelecte = _ref37.showAllSelected,
|
|
9901
|
+
showAllSelected = _ref37$showAllSelecte === void 0 ? false : _ref37$showAllSelecte;
|
|
9899
9902
|
var themeColors = useTheme();
|
|
9900
9903
|
var _useState = React.useState(false),
|
|
9901
9904
|
dropUp = _useState[0],
|
|
@@ -10246,7 +10249,7 @@ var DropdownContainer$1 = styled__default.div(_templateObject2$9 || (_templateOb
|
|
|
10246
10249
|
var $width = _ref4.$width;
|
|
10247
10250
|
return $width || '100%';
|
|
10248
10251
|
});
|
|
10249
|
-
var DropdownButton$1 = styled__default.div(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: ", ";\n font-weight: 400;\n width: ", ";\n height: ", ";\n border-radius: ", ";\n transition: all 0.3s ease;\n border: ", ";\n gap: 6px;\n padding: ", ";\n background: ", ";\n font-size: ", ";\n line-height: ", ";\n"])), function (_ref5) {
|
|
10252
|
+
var DropdownButton$1 = styled__default.div(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: ", ";\n font-weight: 400;\n width: ", ";\n height: ", ";\n border-radius: ", ";\n transition: all 0.3s ease;\n border: ", ";\n gap: 6px;\n padding: ", ";\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n border: 1px solid ", ";\n }\n background: ", ";\n font-size: ", ";\n line-height: ", ";\n"])), function (_ref5) {
|
|
10250
10253
|
var $disabled = _ref5.$disabled;
|
|
10251
10254
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
10252
10255
|
}, function (_ref6) {
|
|
@@ -10274,12 +10277,15 @@ var DropdownButton$1 = styled__default.div(_templateObject3$6 || (_templateObjec
|
|
|
10274
10277
|
return '9.5px 12px';
|
|
10275
10278
|
}
|
|
10276
10279
|
}, function (_ref11) {
|
|
10277
|
-
var
|
|
10278
|
-
|
|
10279
|
-
theme = _ref11.theme;
|
|
10280
|
-
return $disabled ? theme.vms.border.light : $background || theme.vms.accent.light_2;
|
|
10280
|
+
var theme = _ref11.theme;
|
|
10281
|
+
return theme.vms.text.dark;
|
|
10281
10282
|
}, function (_ref12) {
|
|
10282
|
-
var $
|
|
10283
|
+
var $background = _ref12.$background,
|
|
10284
|
+
$disabled = _ref12.$disabled,
|
|
10285
|
+
theme = _ref12.theme;
|
|
10286
|
+
return $disabled ? theme.vms.border.light : $background || theme.vms.accent.light_2;
|
|
10287
|
+
}, function (_ref13) {
|
|
10288
|
+
var $size = _ref13.$size;
|
|
10283
10289
|
switch ($size) {
|
|
10284
10290
|
case 'small':
|
|
10285
10291
|
return '12px';
|
|
@@ -10288,8 +10294,8 @@ var DropdownButton$1 = styled__default.div(_templateObject3$6 || (_templateObjec
|
|
|
10288
10294
|
default:
|
|
10289
10295
|
return '14px';
|
|
10290
10296
|
}
|
|
10291
|
-
}, function (
|
|
10292
|
-
var $size =
|
|
10297
|
+
}, function (_ref14) {
|
|
10298
|
+
var $size = _ref14.$size;
|
|
10293
10299
|
switch ($size) {
|
|
10294
10300
|
case 'small':
|
|
10295
10301
|
return '12px';
|
|
@@ -10299,33 +10305,33 @@ var DropdownButton$1 = styled__default.div(_templateObject3$6 || (_templateObjec
|
|
|
10299
10305
|
return '14px';
|
|
10300
10306
|
}
|
|
10301
10307
|
});
|
|
10302
|
-
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 word-wrap: break-word;\n overflow-wrap: break-word;\n white-space: normal;\n\n \n &:hover {\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n }\n\n"])), function (
|
|
10303
|
-
var $optionColor =
|
|
10304
|
-
$optionSelected =
|
|
10305
|
-
$isHighlighted =
|
|
10306
|
-
theme =
|
|
10308
|
+
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 word-wrap: break-word;\n overflow-wrap: break-word;\n white-space: normal;\n\n \n &:hover {\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n }\n\n"])), function (_ref15) {
|
|
10309
|
+
var $optionColor = _ref15.$optionColor,
|
|
10310
|
+
$optionSelected = _ref15.$optionSelected,
|
|
10311
|
+
$isHighlighted = _ref15.$isHighlighted,
|
|
10312
|
+
theme = _ref15.theme;
|
|
10307
10313
|
return $optionSelected || $isHighlighted ? theme.vms.text.white : $optionColor || theme.vms.text.medium;
|
|
10308
|
-
}, function (_ref15) {
|
|
10309
|
-
var $optionFontSize = _ref15.$optionFontSize;
|
|
10310
|
-
return $optionFontSize || '14px';
|
|
10311
10314
|
}, function (_ref16) {
|
|
10312
|
-
var $
|
|
10313
|
-
return $
|
|
10315
|
+
var $optionFontSize = _ref16.$optionFontSize;
|
|
10316
|
+
return $optionFontSize || '14px';
|
|
10314
10317
|
}, function (_ref17) {
|
|
10315
|
-
var $
|
|
10316
|
-
|
|
10317
|
-
$isHighlighted = _ref17.$isHighlighted,
|
|
10318
|
-
theme = _ref17.theme;
|
|
10319
|
-
return $optionSelected ? theme.vms["default"].primary : $isHighlighted ? theme.vms.hover.primary : $optionBackgroundColor || theme.vms["default"].tertiary;
|
|
10318
|
+
var $optionFontWeight = _ref17.$optionFontWeight;
|
|
10319
|
+
return $optionFontWeight || 400;
|
|
10320
10320
|
}, function (_ref18) {
|
|
10321
|
-
var
|
|
10322
|
-
|
|
10321
|
+
var $optionBackgroundColor = _ref18.$optionBackgroundColor,
|
|
10322
|
+
$optionSelected = _ref18.$optionSelected,
|
|
10323
|
+
$isHighlighted = _ref18.$isHighlighted,
|
|
10324
|
+
theme = _ref18.theme;
|
|
10325
|
+
return $optionSelected ? theme.vms["default"].primary : $isHighlighted ? theme.vms.hover.primary : $optionBackgroundColor || theme.vms["default"].tertiary;
|
|
10323
10326
|
}, function (_ref19) {
|
|
10324
10327
|
var theme = _ref19.theme;
|
|
10328
|
+
return theme.vms.hover.primary;
|
|
10329
|
+
}, function (_ref20) {
|
|
10330
|
+
var theme = _ref20.theme;
|
|
10325
10331
|
return theme.vms.text.white;
|
|
10326
10332
|
});
|
|
10327
|
-
var LabelText$1 = styled__default.div(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n font-style: ", ";\n color: ", ";\n flex: 1;\n // overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])), function (
|
|
10328
|
-
var $size =
|
|
10333
|
+
var LabelText$1 = styled__default.div(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n font-style: ", ";\n color: ", ";\n flex: 1;\n // overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])), function (_ref21) {
|
|
10334
|
+
var $size = _ref21.$size;
|
|
10329
10335
|
switch ($size) {
|
|
10330
10336
|
case 'small':
|
|
10331
10337
|
return '14px';
|
|
@@ -10334,8 +10340,8 @@ var LabelText$1 = styled__default.div(_templateObject5$5 || (_templateObject5$5
|
|
|
10334
10340
|
default:
|
|
10335
10341
|
return '14px';
|
|
10336
10342
|
}
|
|
10337
|
-
}, function (
|
|
10338
|
-
var $size =
|
|
10343
|
+
}, function (_ref22) {
|
|
10344
|
+
var $size = _ref22.$size;
|
|
10339
10345
|
switch ($size) {
|
|
10340
10346
|
case 'small':
|
|
10341
10347
|
return 'normal';
|
|
@@ -10344,40 +10350,40 @@ var LabelText$1 = styled__default.div(_templateObject5$5 || (_templateObject5$5
|
|
|
10344
10350
|
default:
|
|
10345
10351
|
return 'normal';
|
|
10346
10352
|
}
|
|
10347
|
-
}, function (_ref22) {
|
|
10348
|
-
var $fontStyle = _ref22.$fontStyle;
|
|
10349
|
-
return $fontStyle || '';
|
|
10350
10353
|
}, function (_ref23) {
|
|
10351
|
-
var $
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
+
var $fontStyle = _ref23.$fontStyle;
|
|
10355
|
+
return $fontStyle || '';
|
|
10356
|
+
}, function (_ref24) {
|
|
10357
|
+
var $color = _ref24.$color,
|
|
10358
|
+
$disabled = _ref24.$disabled,
|
|
10359
|
+
theme = _ref24.theme;
|
|
10354
10360
|
return $disabled ? theme.vms.text.medium : $color || theme.vms.text.medium;
|
|
10355
10361
|
});
|
|
10356
10362
|
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"])));
|
|
10357
|
-
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 max-width: ", ";\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: 2;\n outline: none;\n ", "\n ", "\n\n ", "\n"])), function (
|
|
10358
|
-
var theme =
|
|
10363
|
+
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 max-width: ", ";\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: 2;\n outline: none;\n ", "\n ", "\n\n ", "\n"])), function (_ref25) {
|
|
10364
|
+
var theme = _ref25.theme;
|
|
10359
10365
|
return "1px solid " + theme.vms.border.light;
|
|
10360
|
-
}, function (_ref25) {
|
|
10361
|
-
var $optionsBorderRadius = _ref25.$optionsBorderRadius;
|
|
10362
|
-
return $optionsBorderRadius || '8px';
|
|
10363
10366
|
}, function (_ref26) {
|
|
10364
|
-
var $
|
|
10365
|
-
return $
|
|
10367
|
+
var $optionsBorderRadius = _ref26.$optionsBorderRadius;
|
|
10368
|
+
return $optionsBorderRadius || '8px';
|
|
10366
10369
|
}, function (_ref27) {
|
|
10367
10370
|
var $width = _ref27.$width;
|
|
10368
10371
|
return $width ? $width : '100%';
|
|
10369
10372
|
}, function (_ref28) {
|
|
10370
|
-
var $
|
|
10371
|
-
|
|
10372
|
-
return $menuBackground || theme.vms.accent.light_2;
|
|
10373
|
+
var $width = _ref28.$width;
|
|
10374
|
+
return $width ? $width : '100%';
|
|
10373
10375
|
}, function (_ref29) {
|
|
10374
|
-
var $
|
|
10375
|
-
|
|
10376
|
+
var $menuBackground = _ref29.$menuBackground,
|
|
10377
|
+
theme = _ref29.theme;
|
|
10378
|
+
return $menuBackground || theme.vms.accent.light_2;
|
|
10376
10379
|
}, function (_ref30) {
|
|
10377
|
-
var $
|
|
10378
|
-
return $
|
|
10380
|
+
var $top = _ref30.$top;
|
|
10381
|
+
return $top && "top: " + $top + ";";
|
|
10379
10382
|
}, function (_ref31) {
|
|
10380
|
-
var $
|
|
10383
|
+
var $bottom = _ref31.$bottom;
|
|
10384
|
+
return $bottom && "bottom: " + $bottom + ";";
|
|
10385
|
+
}, function (_ref32) {
|
|
10386
|
+
var $dropDownPosition = _ref32.$dropDownPosition;
|
|
10381
10387
|
switch ($dropDownPosition) {
|
|
10382
10388
|
case 'center':
|
|
10383
10389
|
return "\n left: 50%;\n transform: translateX(-50%);\n ";
|
|
@@ -10388,27 +10394,27 @@ var DropdownMenu$1 = styled__default.div(_templateObject7$3 || (_templateObject7
|
|
|
10388
10394
|
}
|
|
10389
10395
|
});
|
|
10390
10396
|
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"])));
|
|
10391
|
-
var SearchContainer$1 = styled__default.div(_templateObject9$2 || (_templateObject9$2 = _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 (
|
|
10392
|
-
var $background =
|
|
10393
|
-
theme =
|
|
10397
|
+
var SearchContainer$1 = styled__default.div(_templateObject9$2 || (_templateObject9$2 = _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 (_ref33) {
|
|
10398
|
+
var $background = _ref33.$background,
|
|
10399
|
+
theme = _ref33.theme;
|
|
10394
10400
|
return $background || theme.vms.accent.light_2;
|
|
10395
|
-
}, function (_ref33) {
|
|
10396
|
-
var $border = _ref33.$border;
|
|
10397
|
-
return $border || 'none';
|
|
10398
10401
|
}, function (_ref34) {
|
|
10399
|
-
var
|
|
10400
|
-
return
|
|
10402
|
+
var $border = _ref34.$border;
|
|
10403
|
+
return $border || 'none';
|
|
10401
10404
|
}, function (_ref35) {
|
|
10402
|
-
var
|
|
10405
|
+
var theme = _ref35.theme;
|
|
10406
|
+
return "1px solid " + theme.vms.border.light;
|
|
10407
|
+
}, function (_ref36) {
|
|
10408
|
+
var $borderRadius = _ref36.$borderRadius;
|
|
10403
10409
|
return $borderRadius || '8px 8px 0 0';
|
|
10404
10410
|
});
|
|
10405
|
-
var SearchBar$1 = styled__default.input(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n border: none;\n width: 100%;\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 (
|
|
10406
|
-
var $inputColor =
|
|
10407
|
-
theme = _ref36.theme;
|
|
10408
|
-
return $inputColor || theme.vms.text.medium;
|
|
10409
|
-
}, function (_ref37) {
|
|
10410
|
-
var $placeholderColor = _ref37.$placeholderColor,
|
|
10411
|
+
var SearchBar$1 = styled__default.input(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n border: none;\n width: 100%;\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 (_ref37) {
|
|
10412
|
+
var $inputColor = _ref37.$inputColor,
|
|
10411
10413
|
theme = _ref37.theme;
|
|
10414
|
+
return $inputColor || theme.vms.text.medium;
|
|
10415
|
+
}, function (_ref38) {
|
|
10416
|
+
var $placeholderColor = _ref38.$placeholderColor,
|
|
10417
|
+
theme = _ref38.theme;
|
|
10412
10418
|
return $placeholderColor || theme.vms.text.light;
|
|
10413
10419
|
});
|
|
10414
10420
|
var getClippingBoundary = function getClippingBoundary(element) {
|
|
@@ -10429,61 +10435,61 @@ var getClippingBoundary = function getClippingBoundary(element) {
|
|
|
10429
10435
|
bottom: bottom
|
|
10430
10436
|
};
|
|
10431
10437
|
};
|
|
10432
|
-
var SelectOption = function SelectOption(
|
|
10433
|
-
var title =
|
|
10434
|
-
titlecolor =
|
|
10435
|
-
titleWeight =
|
|
10436
|
-
options =
|
|
10437
|
-
value =
|
|
10438
|
-
onChange =
|
|
10439
|
-
|
|
10440
|
-
disabled =
|
|
10441
|
-
size =
|
|
10442
|
-
width =
|
|
10443
|
-
|
|
10444
|
-
labelText =
|
|
10445
|
-
border =
|
|
10446
|
-
background =
|
|
10447
|
-
|
|
10448
|
-
padding =
|
|
10449
|
-
borderRadius =
|
|
10450
|
-
optionColor =
|
|
10451
|
-
optionFontSize =
|
|
10452
|
-
optionFontWeight =
|
|
10453
|
-
optionBackgroundColor =
|
|
10454
|
-
menuBackground =
|
|
10455
|
-
optionsBorderRadius =
|
|
10456
|
-
color =
|
|
10457
|
-
required =
|
|
10458
|
-
|
|
10459
|
-
NoOptionsText =
|
|
10460
|
-
positionRef =
|
|
10461
|
-
fontStyle =
|
|
10462
|
-
icon =
|
|
10463
|
-
|
|
10464
|
-
searchBox =
|
|
10465
|
-
searchBoxBackground =
|
|
10466
|
-
searchBoxBorder =
|
|
10467
|
-
searchBoxBorderRadius =
|
|
10468
|
-
searchIcon =
|
|
10469
|
-
|
|
10470
|
-
placeholderText =
|
|
10471
|
-
iconColor =
|
|
10472
|
-
placeholderColor =
|
|
10473
|
-
inputColor =
|
|
10474
|
-
|
|
10475
|
-
iconSize =
|
|
10476
|
-
|
|
10477
|
-
allowDeselect =
|
|
10478
|
-
titleRightNode =
|
|
10479
|
-
|
|
10480
|
-
dropDownPosition =
|
|
10481
|
-
|
|
10482
|
-
allowCustomValue =
|
|
10483
|
-
|
|
10484
|
-
loading =
|
|
10485
|
-
|
|
10486
|
-
loadingText =
|
|
10438
|
+
var SelectOption = function SelectOption(_ref39) {
|
|
10439
|
+
var title = _ref39.title,
|
|
10440
|
+
titlecolor = _ref39.titlecolor,
|
|
10441
|
+
titleWeight = _ref39.titleWeight,
|
|
10442
|
+
options = _ref39.options,
|
|
10443
|
+
value = _ref39.value,
|
|
10444
|
+
onChange = _ref39.onChange,
|
|
10445
|
+
_ref39$disabled = _ref39.disabled,
|
|
10446
|
+
disabled = _ref39$disabled === void 0 ? false : _ref39$disabled,
|
|
10447
|
+
size = _ref39.size,
|
|
10448
|
+
width = _ref39.width,
|
|
10449
|
+
_ref39$labelText = _ref39.labelText,
|
|
10450
|
+
labelText = _ref39$labelText === void 0 ? 'Select' : _ref39$labelText,
|
|
10451
|
+
border = _ref39.border,
|
|
10452
|
+
background = _ref39.background,
|
|
10453
|
+
_ref39$padding = _ref39.padding,
|
|
10454
|
+
padding = _ref39$padding === void 0 ? '0px' : _ref39$padding,
|
|
10455
|
+
borderRadius = _ref39.borderRadius,
|
|
10456
|
+
optionColor = _ref39.optionColor,
|
|
10457
|
+
optionFontSize = _ref39.optionFontSize,
|
|
10458
|
+
optionFontWeight = _ref39.optionFontWeight,
|
|
10459
|
+
optionBackgroundColor = _ref39.optionBackgroundColor,
|
|
10460
|
+
menuBackground = _ref39.menuBackground,
|
|
10461
|
+
optionsBorderRadius = _ref39.optionsBorderRadius,
|
|
10462
|
+
color = _ref39.color,
|
|
10463
|
+
required = _ref39.required,
|
|
10464
|
+
_ref39$NoOptionsText = _ref39.NoOptionsText,
|
|
10465
|
+
NoOptionsText = _ref39$NoOptionsText === void 0 ? 'No Options Available' : _ref39$NoOptionsText,
|
|
10466
|
+
positionRef = _ref39.positionRef,
|
|
10467
|
+
fontStyle = _ref39.fontStyle,
|
|
10468
|
+
icon = _ref39.icon,
|
|
10469
|
+
_ref39$searchBox = _ref39.searchBox,
|
|
10470
|
+
searchBox = _ref39$searchBox === void 0 ? true : _ref39$searchBox,
|
|
10471
|
+
searchBoxBackground = _ref39.searchBoxBackground,
|
|
10472
|
+
searchBoxBorder = _ref39.searchBoxBorder,
|
|
10473
|
+
searchBoxBorderRadius = _ref39.searchBoxBorderRadius,
|
|
10474
|
+
searchIcon = _ref39.searchIcon,
|
|
10475
|
+
_ref39$placeholderTex = _ref39.placeholderText,
|
|
10476
|
+
placeholderText = _ref39$placeholderTex === void 0 ? 'Search...' : _ref39$placeholderTex,
|
|
10477
|
+
iconColor = _ref39.iconColor,
|
|
10478
|
+
placeholderColor = _ref39.placeholderColor,
|
|
10479
|
+
inputColor = _ref39.inputColor,
|
|
10480
|
+
_ref39$iconSize = _ref39.iconSize,
|
|
10481
|
+
iconSize = _ref39$iconSize === void 0 ? 16 : _ref39$iconSize,
|
|
10482
|
+
_ref39$allowDeselect = _ref39.allowDeselect,
|
|
10483
|
+
allowDeselect = _ref39$allowDeselect === void 0 ? true : _ref39$allowDeselect,
|
|
10484
|
+
titleRightNode = _ref39.titleRightNode,
|
|
10485
|
+
_ref39$dropDownPositi = _ref39.dropDownPosition,
|
|
10486
|
+
dropDownPosition = _ref39$dropDownPositi === void 0 ? 'left' : _ref39$dropDownPositi,
|
|
10487
|
+
_ref39$allowCustomVal = _ref39.allowCustomValue,
|
|
10488
|
+
allowCustomValue = _ref39$allowCustomVal === void 0 ? false : _ref39$allowCustomVal,
|
|
10489
|
+
_ref39$loading = _ref39.loading,
|
|
10490
|
+
loading = _ref39$loading === void 0 ? false : _ref39$loading,
|
|
10491
|
+
_ref39$loadingText = _ref39.loadingText,
|
|
10492
|
+
loadingText = _ref39$loadingText === void 0 ? 'Loading...' : _ref39$loadingText;
|
|
10487
10493
|
var themeColors = useTheme();
|
|
10488
10494
|
var _useState = React.useState(false),
|
|
10489
10495
|
dropUp = _useState[0],
|