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.modern.js
CHANGED
|
@@ -9558,7 +9558,7 @@ var DropdownContainer = styled.div(_templateObject$b || (_templateObject$b = _ta
|
|
|
9558
9558
|
var $hasTitle = _ref4.$hasTitle;
|
|
9559
9559
|
return $hasTitle ? 'calc(100% - 22px)' : '100%';
|
|
9560
9560
|
});
|
|
9561
|
-
var DropdownButton = styled.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) {
|
|
9561
|
+
var DropdownButton = styled.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) {
|
|
9562
9562
|
var $replaceLabel = _ref5.$replaceLabel,
|
|
9563
9563
|
$showAllSelected = _ref5.$showAllSelected;
|
|
9564
9564
|
return $replaceLabel ? $showAllSelected ? 'auto' : 'hidden' : '';
|
|
@@ -9591,12 +9591,15 @@ var DropdownButton = styled.div(_templateObject2$8 || (_templateObject2$8 = _tag
|
|
|
9591
9591
|
var $borderRadius = _ref11.$borderRadius;
|
|
9592
9592
|
return $borderRadius || '8px';
|
|
9593
9593
|
}, function (_ref12) {
|
|
9594
|
-
var
|
|
9595
|
-
return
|
|
9594
|
+
var theme = _ref12.theme;
|
|
9595
|
+
return theme.vms.text.dark;
|
|
9596
9596
|
}, function (_ref13) {
|
|
9597
|
-
var $
|
|
9598
|
-
|
|
9599
|
-
|
|
9597
|
+
var $disabled = _ref13.$disabled;
|
|
9598
|
+
return $disabled ? 'not-allowed' : 'pointer';
|
|
9599
|
+
}, function (_ref14) {
|
|
9600
|
+
var $background = _ref14.$background,
|
|
9601
|
+
$disabled = _ref14.$disabled,
|
|
9602
|
+
theme = _ref14.theme;
|
|
9600
9603
|
switch ($background) {
|
|
9601
9604
|
case 'dark':
|
|
9602
9605
|
return $disabled ? theme.vms.disabled.secondary : theme.vms.text.dark;
|
|
@@ -9617,12 +9620,12 @@ var DropdownButton = styled.div(_templateObject2$8 || (_templateObject2$8 = _tag
|
|
|
9617
9620
|
default:
|
|
9618
9621
|
return $disabled ? theme.vms.disabled.secondary : $background;
|
|
9619
9622
|
}
|
|
9620
|
-
}, function (_ref14) {
|
|
9621
|
-
var $color = _ref14.$color,
|
|
9622
|
-
theme = _ref14.theme;
|
|
9623
|
-
return $color || theme.vms.text.medium;
|
|
9624
9623
|
}, function (_ref15) {
|
|
9625
|
-
var $
|
|
9624
|
+
var $color = _ref15.$color,
|
|
9625
|
+
theme = _ref15.theme;
|
|
9626
|
+
return $color || theme.vms.text.medium;
|
|
9627
|
+
}, function (_ref16) {
|
|
9628
|
+
var $size = _ref16.$size;
|
|
9626
9629
|
switch ($size) {
|
|
9627
9630
|
case 'small':
|
|
9628
9631
|
return '12px';
|
|
@@ -9631,8 +9634,8 @@ var DropdownButton = styled.div(_templateObject2$8 || (_templateObject2$8 = _tag
|
|
|
9631
9634
|
default:
|
|
9632
9635
|
return '14px';
|
|
9633
9636
|
}
|
|
9634
|
-
}, function (
|
|
9635
|
-
var $size =
|
|
9637
|
+
}, function (_ref17) {
|
|
9638
|
+
var $size = _ref17.$size;
|
|
9636
9639
|
switch ($size) {
|
|
9637
9640
|
case 'small':
|
|
9638
9641
|
return '12px';
|
|
@@ -9642,20 +9645,20 @@ var DropdownButton = styled.div(_templateObject2$8 || (_templateObject2$8 = _tag
|
|
|
9642
9645
|
return '14px';
|
|
9643
9646
|
}
|
|
9644
9647
|
});
|
|
9645
|
-
var TitleText = styled.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 (
|
|
9646
|
-
var $titleWeight =
|
|
9648
|
+
var TitleText = styled.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) {
|
|
9649
|
+
var $titleWeight = _ref18.$titleWeight;
|
|
9647
9650
|
return $titleWeight != null ? $titleWeight : '500';
|
|
9648
|
-
}, function (_ref18) {
|
|
9649
|
-
var $titleSize = _ref18.$titleSize,
|
|
9650
|
-
$size = _ref18.$size;
|
|
9651
|
-
return $titleSize ? $titleSize + "px" : $size === 'small' ? '14px' : $size === 'large' ? '18px' : '16px';
|
|
9652
9651
|
}, function (_ref19) {
|
|
9653
9652
|
var $titleSize = _ref19.$titleSize,
|
|
9654
9653
|
$size = _ref19.$size;
|
|
9655
9654
|
return $titleSize ? $titleSize + "px" : $size === 'small' ? '14px' : $size === 'large' ? '18px' : '16px';
|
|
9656
9655
|
}, function (_ref20) {
|
|
9657
|
-
var $
|
|
9658
|
-
|
|
9656
|
+
var $titleSize = _ref20.$titleSize,
|
|
9657
|
+
$size = _ref20.$size;
|
|
9658
|
+
return $titleSize ? $titleSize + "px" : $size === 'small' ? '14px' : $size === 'large' ? '18px' : '16px';
|
|
9659
|
+
}, function (_ref21) {
|
|
9660
|
+
var $titleColor = _ref21.$titleColor,
|
|
9661
|
+
theme = _ref21.theme;
|
|
9659
9662
|
switch ($titleColor) {
|
|
9660
9663
|
case 'dark':
|
|
9661
9664
|
return theme.vms.text.dark;
|
|
@@ -9678,29 +9681,29 @@ var TitleText = styled.div(_templateObject3$5 || (_templateObject3$5 = _taggedTe
|
|
|
9678
9681
|
}
|
|
9679
9682
|
});
|
|
9680
9683
|
var Container$2 = styled.div(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: 8px;\n height: 100%;\n"])));
|
|
9681
|
-
var LabelText = styled.div(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-weight: 400;\n font-style:", ";\n color: ", ";\n"])), function (
|
|
9682
|
-
var $labelStyle =
|
|
9684
|
+
var LabelText = styled.div(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-weight: 400;\n font-style:", ";\n color: ", ";\n"])), function (_ref22) {
|
|
9685
|
+
var $labelStyle = _ref22.$labelStyle;
|
|
9683
9686
|
return $labelStyle;
|
|
9684
|
-
}, function (
|
|
9685
|
-
var $labelColor =
|
|
9686
|
-
theme =
|
|
9687
|
+
}, function (_ref23) {
|
|
9688
|
+
var $labelColor = _ref23.$labelColor,
|
|
9689
|
+
theme = _ref23.theme;
|
|
9687
9690
|
return $labelColor || theme.vms.text.medium;
|
|
9688
9691
|
});
|
|
9689
|
-
var DropdownMenu = styled.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 (
|
|
9690
|
-
var theme =
|
|
9692
|
+
var DropdownMenu = styled.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) {
|
|
9693
|
+
var theme = _ref24.theme;
|
|
9691
9694
|
return "1px solid " + theme.vms.border.light;
|
|
9692
|
-
}, function (_ref24) {
|
|
9693
|
-
var $optionsBorderRadius = _ref24.$optionsBorderRadius;
|
|
9694
|
-
return $optionsBorderRadius || '8px';
|
|
9695
9695
|
}, function (_ref25) {
|
|
9696
|
-
var $
|
|
9697
|
-
return $
|
|
9696
|
+
var $optionsBorderRadius = _ref25.$optionsBorderRadius;
|
|
9697
|
+
return $optionsBorderRadius || '8px';
|
|
9698
9698
|
}, function (_ref26) {
|
|
9699
|
-
var $
|
|
9700
|
-
|
|
9701
|
-
return $menuBackground || theme.vms.accent.light_2;
|
|
9699
|
+
var $width = _ref26.$width;
|
|
9700
|
+
return $width ? $width : 'max-content';
|
|
9702
9701
|
}, function (_ref27) {
|
|
9703
|
-
var $
|
|
9702
|
+
var $menuBackground = _ref27.$menuBackground,
|
|
9703
|
+
theme = _ref27.theme;
|
|
9704
|
+
return $menuBackground || theme.vms.accent.light_2;
|
|
9705
|
+
}, function (_ref28) {
|
|
9706
|
+
var $position = _ref28.$position;
|
|
9704
9707
|
switch ($position) {
|
|
9705
9708
|
case 'topLeft':
|
|
9706
9709
|
return "\n bottom: calc(100% + 8px);\n left: 0;\n top: auto;\n ";
|
|
@@ -9719,10 +9722,10 @@ var DropdownMenu = styled.div(_templateObject6$4 || (_templateObject6$4 = _tagge
|
|
|
9719
9722
|
}
|
|
9720
9723
|
});
|
|
9721
9724
|
var SelectedOptionsWrapper = styled.div(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n height: 100%;\n"])));
|
|
9722
|
-
var SelectedOptionDiv = styled.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 (
|
|
9723
|
-
var $selectedOptionBackground =
|
|
9724
|
-
$disabled =
|
|
9725
|
-
theme =
|
|
9725
|
+
var SelectedOptionDiv = styled.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) {
|
|
9726
|
+
var $selectedOptionBackground = _ref29.$selectedOptionBackground,
|
|
9727
|
+
$disabled = _ref29.$disabled,
|
|
9728
|
+
theme = _ref29.theme;
|
|
9726
9729
|
switch ($selectedOptionBackground) {
|
|
9727
9730
|
case 'dark':
|
|
9728
9731
|
return theme.vms.text.dark;
|
|
@@ -9743,9 +9746,9 @@ var SelectedOptionDiv = styled.div(_templateObject8$2 || (_templateObject8$2 = _
|
|
|
9743
9746
|
default:
|
|
9744
9747
|
return $selectedOptionBackground || theme.vms.accent.light_2;
|
|
9745
9748
|
}
|
|
9746
|
-
}, function (
|
|
9747
|
-
var $selectedOptionColor =
|
|
9748
|
-
theme =
|
|
9749
|
+
}, function (_ref30) {
|
|
9750
|
+
var $selectedOptionColor = _ref30.$selectedOptionColor,
|
|
9751
|
+
theme = _ref30.theme;
|
|
9749
9752
|
switch ($selectedOptionColor) {
|
|
9750
9753
|
case 'dark':
|
|
9751
9754
|
return theme.vms.text.dark;
|
|
@@ -9767,26 +9770,26 @@ var SelectedOptionDiv = styled.div(_templateObject8$2 || (_templateObject8$2 = _
|
|
|
9767
9770
|
return $selectedOptionColor;
|
|
9768
9771
|
}
|
|
9769
9772
|
});
|
|
9770
|
-
var RemoveIcon = styled.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 (
|
|
9771
|
-
var $disabled =
|
|
9773
|
+
var RemoveIcon = styled.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) {
|
|
9774
|
+
var $disabled = _ref31.$disabled;
|
|
9772
9775
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
9773
|
-
}, function (_ref31) {
|
|
9774
|
-
var removeIconBackground = _ref31.removeIconBackground,
|
|
9775
|
-
$type = _ref31.$type,
|
|
9776
|
-
theme = _ref31.theme;
|
|
9777
|
-
return removeIconBackground ? removeIconBackground : $type === 'remove' ? '#5E5E5E24' : theme.vms.disabled.primary;
|
|
9778
9776
|
}, function (_ref32) {
|
|
9779
|
-
var
|
|
9777
|
+
var removeIconBackground = _ref32.removeIconBackground,
|
|
9778
|
+
$type = _ref32.$type,
|
|
9779
|
+
theme = _ref32.theme;
|
|
9780
|
+
return removeIconBackground ? removeIconBackground : $type === 'remove' ? '#5E5E5E24' : theme.vms.disabled.primary;
|
|
9781
|
+
}, function (_ref33) {
|
|
9782
|
+
var $disabled = _ref33.$disabled;
|
|
9780
9783
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
9781
9784
|
});
|
|
9782
9785
|
var TextWrapper = styled.div(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 4px;\n"])));
|
|
9783
9786
|
var ChipArea = styled.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"])));
|
|
9784
9787
|
var MeasureLayer = styled.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"])));
|
|
9785
9788
|
var SingleLineRow = styled.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"])));
|
|
9786
|
-
var OverflowCountBadge = styled.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 (
|
|
9787
|
-
var $selectedOptionBackground =
|
|
9788
|
-
$disabled =
|
|
9789
|
-
theme =
|
|
9789
|
+
var OverflowCountBadge = styled.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) {
|
|
9790
|
+
var $selectedOptionBackground = _ref34.$selectedOptionBackground,
|
|
9791
|
+
$disabled = _ref34.$disabled,
|
|
9792
|
+
theme = _ref34.theme;
|
|
9790
9793
|
switch ($selectedOptionBackground) {
|
|
9791
9794
|
case 'dark':
|
|
9792
9795
|
return theme.vms.text.dark;
|
|
@@ -9807,9 +9810,9 @@ var OverflowCountBadge = styled.div(_templateObject14$1 || (_templateObject14$1
|
|
|
9807
9810
|
default:
|
|
9808
9811
|
return $selectedOptionBackground || theme.vms.accent.light_2;
|
|
9809
9812
|
}
|
|
9810
|
-
}, function (
|
|
9811
|
-
var $selectedOptionColor =
|
|
9812
|
-
theme =
|
|
9813
|
+
}, function (_ref35) {
|
|
9814
|
+
var $selectedOptionColor = _ref35.$selectedOptionColor,
|
|
9815
|
+
theme = _ref35.theme;
|
|
9813
9816
|
switch ($selectedOptionColor) {
|
|
9814
9817
|
case 'dark':
|
|
9815
9818
|
return theme.vms.text.dark;
|
|
@@ -9831,66 +9834,66 @@ var OverflowCountBadge = styled.div(_templateObject14$1 || (_templateObject14$1
|
|
|
9831
9834
|
return $selectedOptionColor || theme.vms.text.medium;
|
|
9832
9835
|
}
|
|
9833
9836
|
});
|
|
9834
|
-
var Asterisk = styled.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 (
|
|
9835
|
-
var theme =
|
|
9837
|
+
var Asterisk = styled.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) {
|
|
9838
|
+
var theme = _ref36.theme;
|
|
9836
9839
|
return theme.vms["default"].error;
|
|
9837
9840
|
});
|
|
9838
|
-
var MultiSelectDropdown = function MultiSelectDropdown(
|
|
9839
|
-
var title =
|
|
9840
|
-
titleWeight =
|
|
9841
|
-
titleSize =
|
|
9842
|
-
titleColor =
|
|
9843
|
-
|
|
9844
|
-
labelText =
|
|
9845
|
-
labelStyle =
|
|
9846
|
-
labelColor =
|
|
9847
|
-
|
|
9848
|
-
replaceLabel =
|
|
9849
|
-
options =
|
|
9850
|
-
width =
|
|
9851
|
-
optionWidth =
|
|
9852
|
-
height =
|
|
9853
|
-
placeholder =
|
|
9854
|
-
border =
|
|
9855
|
-
background =
|
|
9856
|
-
selectedOptionBackground =
|
|
9857
|
-
selectedOptionColor =
|
|
9858
|
-
menuBackground =
|
|
9859
|
-
optionsBorderRadius =
|
|
9860
|
-
borderRadius =
|
|
9861
|
-
removeIconBackground =
|
|
9862
|
-
handleSelectChange =
|
|
9863
|
-
selectedOptions =
|
|
9864
|
-
placeholderColor =
|
|
9865
|
-
optionBorder =
|
|
9866
|
-
optionColor =
|
|
9867
|
-
searchIcon =
|
|
9868
|
-
searchbarTextColor =
|
|
9869
|
-
searchBoxBackground =
|
|
9870
|
-
searchBoxBorder =
|
|
9871
|
-
searchBoxBorderRadius =
|
|
9872
|
-
size =
|
|
9873
|
-
removeIcon =
|
|
9874
|
-
type =
|
|
9875
|
-
icon =
|
|
9876
|
-
|
|
9877
|
-
disabled =
|
|
9878
|
-
|
|
9879
|
-
required =
|
|
9880
|
-
|
|
9881
|
-
searchBox =
|
|
9882
|
-
|
|
9883
|
-
searchBoxTextLength =
|
|
9884
|
-
|
|
9885
|
-
NoOptionsText =
|
|
9886
|
-
|
|
9887
|
-
selectAllOption =
|
|
9888
|
-
|
|
9889
|
-
selectAllLabel =
|
|
9890
|
-
selectAllChecked =
|
|
9891
|
-
dropdownPosition =
|
|
9892
|
-
|
|
9893
|
-
showAllSelected =
|
|
9841
|
+
var MultiSelectDropdown = function MultiSelectDropdown(_ref37) {
|
|
9842
|
+
var title = _ref37.title,
|
|
9843
|
+
titleWeight = _ref37.titleWeight,
|
|
9844
|
+
titleSize = _ref37.titleSize,
|
|
9845
|
+
titleColor = _ref37.titleColor,
|
|
9846
|
+
_ref37$labelText = _ref37.labelText,
|
|
9847
|
+
labelText = _ref37$labelText === void 0 ? 'Select Cameras' : _ref37$labelText,
|
|
9848
|
+
labelStyle = _ref37.labelStyle,
|
|
9849
|
+
labelColor = _ref37.labelColor,
|
|
9850
|
+
_ref37$replaceLabel = _ref37.replaceLabel,
|
|
9851
|
+
replaceLabel = _ref37$replaceLabel === void 0 ? true : _ref37$replaceLabel,
|
|
9852
|
+
options = _ref37.options,
|
|
9853
|
+
width = _ref37.width,
|
|
9854
|
+
optionWidth = _ref37.optionWidth,
|
|
9855
|
+
height = _ref37.height,
|
|
9856
|
+
placeholder = _ref37.placeholder,
|
|
9857
|
+
border = _ref37.border,
|
|
9858
|
+
background = _ref37.background,
|
|
9859
|
+
selectedOptionBackground = _ref37.selectedOptionBackground,
|
|
9860
|
+
selectedOptionColor = _ref37.selectedOptionColor,
|
|
9861
|
+
menuBackground = _ref37.menuBackground,
|
|
9862
|
+
optionsBorderRadius = _ref37.optionsBorderRadius,
|
|
9863
|
+
borderRadius = _ref37.borderRadius,
|
|
9864
|
+
removeIconBackground = _ref37.removeIconBackground,
|
|
9865
|
+
handleSelectChange = _ref37.handleSelectChange,
|
|
9866
|
+
selectedOptions = _ref37.selectedOptions,
|
|
9867
|
+
placeholderColor = _ref37.placeholderColor,
|
|
9868
|
+
optionBorder = _ref37.optionBorder,
|
|
9869
|
+
optionColor = _ref37.optionColor,
|
|
9870
|
+
searchIcon = _ref37.searchIcon,
|
|
9871
|
+
searchbarTextColor = _ref37.searchbarTextColor,
|
|
9872
|
+
searchBoxBackground = _ref37.searchBoxBackground,
|
|
9873
|
+
searchBoxBorder = _ref37.searchBoxBorder,
|
|
9874
|
+
searchBoxBorderRadius = _ref37.searchBoxBorderRadius,
|
|
9875
|
+
size = _ref37.size,
|
|
9876
|
+
removeIcon = _ref37.removeIcon,
|
|
9877
|
+
type = _ref37.type,
|
|
9878
|
+
icon = _ref37.icon,
|
|
9879
|
+
_ref37$disabled = _ref37.disabled,
|
|
9880
|
+
disabled = _ref37$disabled === void 0 ? false : _ref37$disabled,
|
|
9881
|
+
_ref37$required = _ref37.required,
|
|
9882
|
+
required = _ref37$required === void 0 ? false : _ref37$required,
|
|
9883
|
+
_ref37$searchBox = _ref37.searchBox,
|
|
9884
|
+
searchBox = _ref37$searchBox === void 0 ? true : _ref37$searchBox,
|
|
9885
|
+
_ref37$searchBoxTextL = _ref37.searchBoxTextLength,
|
|
9886
|
+
searchBoxTextLength = _ref37$searchBoxTextL === void 0 ? 50 : _ref37$searchBoxTextL,
|
|
9887
|
+
_ref37$NoOptionsText = _ref37.NoOptionsText,
|
|
9888
|
+
NoOptionsText = _ref37$NoOptionsText === void 0 ? 'No Options Available' : _ref37$NoOptionsText,
|
|
9889
|
+
_ref37$selectAllOptio = _ref37.selectAllOption,
|
|
9890
|
+
selectAllOption = _ref37$selectAllOptio === void 0 ? false : _ref37$selectAllOptio,
|
|
9891
|
+
_ref37$selectAllLabel = _ref37.selectAllLabel,
|
|
9892
|
+
selectAllLabel = _ref37$selectAllLabel === void 0 ? 'Select All' : _ref37$selectAllLabel,
|
|
9893
|
+
selectAllChecked = _ref37.selectAllChecked,
|
|
9894
|
+
dropdownPosition = _ref37.dropdownPosition,
|
|
9895
|
+
_ref37$showAllSelecte = _ref37.showAllSelected,
|
|
9896
|
+
showAllSelected = _ref37$showAllSelecte === void 0 ? false : _ref37$showAllSelecte;
|
|
9894
9897
|
var themeColors = useTheme();
|
|
9895
9898
|
var _useState = useState(false),
|
|
9896
9899
|
dropUp = _useState[0],
|
|
@@ -10241,7 +10244,7 @@ var DropdownContainer$1 = styled.div(_templateObject2$9 || (_templateObject2$9 =
|
|
|
10241
10244
|
var $width = _ref4.$width;
|
|
10242
10245
|
return $width || '100%';
|
|
10243
10246
|
});
|
|
10244
|
-
var DropdownButton$1 = styled.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) {
|
|
10247
|
+
var DropdownButton$1 = styled.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) {
|
|
10245
10248
|
var $disabled = _ref5.$disabled;
|
|
10246
10249
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
10247
10250
|
}, function (_ref6) {
|
|
@@ -10269,12 +10272,15 @@ var DropdownButton$1 = styled.div(_templateObject3$6 || (_templateObject3$6 = _t
|
|
|
10269
10272
|
return '9.5px 12px';
|
|
10270
10273
|
}
|
|
10271
10274
|
}, function (_ref11) {
|
|
10272
|
-
var
|
|
10273
|
-
|
|
10274
|
-
theme = _ref11.theme;
|
|
10275
|
-
return $disabled ? theme.vms.border.light : $background || theme.vms.accent.light_2;
|
|
10275
|
+
var theme = _ref11.theme;
|
|
10276
|
+
return theme.vms.text.dark;
|
|
10276
10277
|
}, function (_ref12) {
|
|
10277
|
-
var $
|
|
10278
|
+
var $background = _ref12.$background,
|
|
10279
|
+
$disabled = _ref12.$disabled,
|
|
10280
|
+
theme = _ref12.theme;
|
|
10281
|
+
return $disabled ? theme.vms.border.light : $background || theme.vms.accent.light_2;
|
|
10282
|
+
}, function (_ref13) {
|
|
10283
|
+
var $size = _ref13.$size;
|
|
10278
10284
|
switch ($size) {
|
|
10279
10285
|
case 'small':
|
|
10280
10286
|
return '12px';
|
|
@@ -10283,8 +10289,8 @@ var DropdownButton$1 = styled.div(_templateObject3$6 || (_templateObject3$6 = _t
|
|
|
10283
10289
|
default:
|
|
10284
10290
|
return '14px';
|
|
10285
10291
|
}
|
|
10286
|
-
}, function (
|
|
10287
|
-
var $size =
|
|
10292
|
+
}, function (_ref14) {
|
|
10293
|
+
var $size = _ref14.$size;
|
|
10288
10294
|
switch ($size) {
|
|
10289
10295
|
case 'small':
|
|
10290
10296
|
return '12px';
|
|
@@ -10294,33 +10300,33 @@ var DropdownButton$1 = styled.div(_templateObject3$6 || (_templateObject3$6 = _t
|
|
|
10294
10300
|
return '14px';
|
|
10295
10301
|
}
|
|
10296
10302
|
});
|
|
10297
|
-
var Options = styled.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 (
|
|
10298
|
-
var $optionColor =
|
|
10299
|
-
$optionSelected =
|
|
10300
|
-
$isHighlighted =
|
|
10301
|
-
theme =
|
|
10303
|
+
var Options = styled.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) {
|
|
10304
|
+
var $optionColor = _ref15.$optionColor,
|
|
10305
|
+
$optionSelected = _ref15.$optionSelected,
|
|
10306
|
+
$isHighlighted = _ref15.$isHighlighted,
|
|
10307
|
+
theme = _ref15.theme;
|
|
10302
10308
|
return $optionSelected || $isHighlighted ? theme.vms.text.white : $optionColor || theme.vms.text.medium;
|
|
10303
|
-
}, function (_ref15) {
|
|
10304
|
-
var $optionFontSize = _ref15.$optionFontSize;
|
|
10305
|
-
return $optionFontSize || '14px';
|
|
10306
10309
|
}, function (_ref16) {
|
|
10307
|
-
var $
|
|
10308
|
-
return $
|
|
10310
|
+
var $optionFontSize = _ref16.$optionFontSize;
|
|
10311
|
+
return $optionFontSize || '14px';
|
|
10309
10312
|
}, function (_ref17) {
|
|
10310
|
-
var $
|
|
10311
|
-
|
|
10312
|
-
$isHighlighted = _ref17.$isHighlighted,
|
|
10313
|
-
theme = _ref17.theme;
|
|
10314
|
-
return $optionSelected ? theme.vms["default"].primary : $isHighlighted ? theme.vms.hover.primary : $optionBackgroundColor || theme.vms["default"].tertiary;
|
|
10313
|
+
var $optionFontWeight = _ref17.$optionFontWeight;
|
|
10314
|
+
return $optionFontWeight || 400;
|
|
10315
10315
|
}, function (_ref18) {
|
|
10316
|
-
var
|
|
10317
|
-
|
|
10316
|
+
var $optionBackgroundColor = _ref18.$optionBackgroundColor,
|
|
10317
|
+
$optionSelected = _ref18.$optionSelected,
|
|
10318
|
+
$isHighlighted = _ref18.$isHighlighted,
|
|
10319
|
+
theme = _ref18.theme;
|
|
10320
|
+
return $optionSelected ? theme.vms["default"].primary : $isHighlighted ? theme.vms.hover.primary : $optionBackgroundColor || theme.vms["default"].tertiary;
|
|
10318
10321
|
}, function (_ref19) {
|
|
10319
10322
|
var theme = _ref19.theme;
|
|
10323
|
+
return theme.vms.hover.primary;
|
|
10324
|
+
}, function (_ref20) {
|
|
10325
|
+
var theme = _ref20.theme;
|
|
10320
10326
|
return theme.vms.text.white;
|
|
10321
10327
|
});
|
|
10322
|
-
var LabelText$1 = styled.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 (
|
|
10323
|
-
var $size =
|
|
10328
|
+
var LabelText$1 = styled.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) {
|
|
10329
|
+
var $size = _ref21.$size;
|
|
10324
10330
|
switch ($size) {
|
|
10325
10331
|
case 'small':
|
|
10326
10332
|
return '14px';
|
|
@@ -10329,8 +10335,8 @@ var LabelText$1 = styled.div(_templateObject5$5 || (_templateObject5$5 = _tagged
|
|
|
10329
10335
|
default:
|
|
10330
10336
|
return '14px';
|
|
10331
10337
|
}
|
|
10332
|
-
}, function (
|
|
10333
|
-
var $size =
|
|
10338
|
+
}, function (_ref22) {
|
|
10339
|
+
var $size = _ref22.$size;
|
|
10334
10340
|
switch ($size) {
|
|
10335
10341
|
case 'small':
|
|
10336
10342
|
return 'normal';
|
|
@@ -10339,40 +10345,40 @@ var LabelText$1 = styled.div(_templateObject5$5 || (_templateObject5$5 = _tagged
|
|
|
10339
10345
|
default:
|
|
10340
10346
|
return 'normal';
|
|
10341
10347
|
}
|
|
10342
|
-
}, function (_ref22) {
|
|
10343
|
-
var $fontStyle = _ref22.$fontStyle;
|
|
10344
|
-
return $fontStyle || '';
|
|
10345
10348
|
}, function (_ref23) {
|
|
10346
|
-
var $
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
+
var $fontStyle = _ref23.$fontStyle;
|
|
10350
|
+
return $fontStyle || '';
|
|
10351
|
+
}, function (_ref24) {
|
|
10352
|
+
var $color = _ref24.$color,
|
|
10353
|
+
$disabled = _ref24.$disabled,
|
|
10354
|
+
theme = _ref24.theme;
|
|
10349
10355
|
return $disabled ? theme.vms.text.medium : $color || theme.vms.text.medium;
|
|
10350
10356
|
});
|
|
10351
10357
|
var NoOptions = styled(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"])));
|
|
10352
|
-
var DropdownMenu$1 = styled.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 (
|
|
10353
|
-
var theme =
|
|
10358
|
+
var DropdownMenu$1 = styled.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) {
|
|
10359
|
+
var theme = _ref25.theme;
|
|
10354
10360
|
return "1px solid " + theme.vms.border.light;
|
|
10355
|
-
}, function (_ref25) {
|
|
10356
|
-
var $optionsBorderRadius = _ref25.$optionsBorderRadius;
|
|
10357
|
-
return $optionsBorderRadius || '8px';
|
|
10358
10361
|
}, function (_ref26) {
|
|
10359
|
-
var $
|
|
10360
|
-
return $
|
|
10362
|
+
var $optionsBorderRadius = _ref26.$optionsBorderRadius;
|
|
10363
|
+
return $optionsBorderRadius || '8px';
|
|
10361
10364
|
}, function (_ref27) {
|
|
10362
10365
|
var $width = _ref27.$width;
|
|
10363
10366
|
return $width ? $width : '100%';
|
|
10364
10367
|
}, function (_ref28) {
|
|
10365
|
-
var $
|
|
10366
|
-
|
|
10367
|
-
return $menuBackground || theme.vms.accent.light_2;
|
|
10368
|
+
var $width = _ref28.$width;
|
|
10369
|
+
return $width ? $width : '100%';
|
|
10368
10370
|
}, function (_ref29) {
|
|
10369
|
-
var $
|
|
10370
|
-
|
|
10371
|
+
var $menuBackground = _ref29.$menuBackground,
|
|
10372
|
+
theme = _ref29.theme;
|
|
10373
|
+
return $menuBackground || theme.vms.accent.light_2;
|
|
10371
10374
|
}, function (_ref30) {
|
|
10372
|
-
var $
|
|
10373
|
-
return $
|
|
10375
|
+
var $top = _ref30.$top;
|
|
10376
|
+
return $top && "top: " + $top + ";";
|
|
10374
10377
|
}, function (_ref31) {
|
|
10375
|
-
var $
|
|
10378
|
+
var $bottom = _ref31.$bottom;
|
|
10379
|
+
return $bottom && "bottom: " + $bottom + ";";
|
|
10380
|
+
}, function (_ref32) {
|
|
10381
|
+
var $dropDownPosition = _ref32.$dropDownPosition;
|
|
10376
10382
|
switch ($dropDownPosition) {
|
|
10377
10383
|
case 'center':
|
|
10378
10384
|
return "\n left: 50%;\n transform: translateX(-50%);\n ";
|
|
@@ -10383,27 +10389,27 @@ var DropdownMenu$1 = styled.div(_templateObject7$3 || (_templateObject7$3 = _tag
|
|
|
10383
10389
|
}
|
|
10384
10390
|
});
|
|
10385
10391
|
var OptionsWrapper = styled.div(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n max-height: 150px; \n overflow-y: auto;\n scrollbar-width: thin;\n width: 100%;\n"])));
|
|
10386
|
-
var SearchContainer$1 = styled.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 (
|
|
10387
|
-
var $background =
|
|
10388
|
-
theme =
|
|
10392
|
+
var SearchContainer$1 = styled.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) {
|
|
10393
|
+
var $background = _ref33.$background,
|
|
10394
|
+
theme = _ref33.theme;
|
|
10389
10395
|
return $background || theme.vms.accent.light_2;
|
|
10390
|
-
}, function (_ref33) {
|
|
10391
|
-
var $border = _ref33.$border;
|
|
10392
|
-
return $border || 'none';
|
|
10393
10396
|
}, function (_ref34) {
|
|
10394
|
-
var
|
|
10395
|
-
return
|
|
10397
|
+
var $border = _ref34.$border;
|
|
10398
|
+
return $border || 'none';
|
|
10396
10399
|
}, function (_ref35) {
|
|
10397
|
-
var
|
|
10400
|
+
var theme = _ref35.theme;
|
|
10401
|
+
return "1px solid " + theme.vms.border.light;
|
|
10402
|
+
}, function (_ref36) {
|
|
10403
|
+
var $borderRadius = _ref36.$borderRadius;
|
|
10398
10404
|
return $borderRadius || '8px 8px 0 0';
|
|
10399
10405
|
});
|
|
10400
|
-
var SearchBar$1 = styled.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 (
|
|
10401
|
-
var $inputColor =
|
|
10402
|
-
theme = _ref36.theme;
|
|
10403
|
-
return $inputColor || theme.vms.text.medium;
|
|
10404
|
-
}, function (_ref37) {
|
|
10405
|
-
var $placeholderColor = _ref37.$placeholderColor,
|
|
10406
|
+
var SearchBar$1 = styled.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) {
|
|
10407
|
+
var $inputColor = _ref37.$inputColor,
|
|
10406
10408
|
theme = _ref37.theme;
|
|
10409
|
+
return $inputColor || theme.vms.text.medium;
|
|
10410
|
+
}, function (_ref38) {
|
|
10411
|
+
var $placeholderColor = _ref38.$placeholderColor,
|
|
10412
|
+
theme = _ref38.theme;
|
|
10407
10413
|
return $placeholderColor || theme.vms.text.light;
|
|
10408
10414
|
});
|
|
10409
10415
|
var getClippingBoundary = function getClippingBoundary(element) {
|
|
@@ -10424,61 +10430,61 @@ var getClippingBoundary = function getClippingBoundary(element) {
|
|
|
10424
10430
|
bottom: bottom
|
|
10425
10431
|
};
|
|
10426
10432
|
};
|
|
10427
|
-
var SelectOption = function SelectOption(
|
|
10428
|
-
var title =
|
|
10429
|
-
titlecolor =
|
|
10430
|
-
titleWeight =
|
|
10431
|
-
options =
|
|
10432
|
-
value =
|
|
10433
|
-
onChange =
|
|
10434
|
-
|
|
10435
|
-
disabled =
|
|
10436
|
-
size =
|
|
10437
|
-
width =
|
|
10438
|
-
|
|
10439
|
-
labelText =
|
|
10440
|
-
border =
|
|
10441
|
-
background =
|
|
10442
|
-
|
|
10443
|
-
padding =
|
|
10444
|
-
borderRadius =
|
|
10445
|
-
optionColor =
|
|
10446
|
-
optionFontSize =
|
|
10447
|
-
optionFontWeight =
|
|
10448
|
-
optionBackgroundColor =
|
|
10449
|
-
menuBackground =
|
|
10450
|
-
optionsBorderRadius =
|
|
10451
|
-
color =
|
|
10452
|
-
required =
|
|
10453
|
-
|
|
10454
|
-
NoOptionsText =
|
|
10455
|
-
positionRef =
|
|
10456
|
-
fontStyle =
|
|
10457
|
-
icon =
|
|
10458
|
-
|
|
10459
|
-
searchBox =
|
|
10460
|
-
searchBoxBackground =
|
|
10461
|
-
searchBoxBorder =
|
|
10462
|
-
searchBoxBorderRadius =
|
|
10463
|
-
searchIcon =
|
|
10464
|
-
|
|
10465
|
-
placeholderText =
|
|
10466
|
-
iconColor =
|
|
10467
|
-
placeholderColor =
|
|
10468
|
-
inputColor =
|
|
10469
|
-
|
|
10470
|
-
iconSize =
|
|
10471
|
-
|
|
10472
|
-
allowDeselect =
|
|
10473
|
-
titleRightNode =
|
|
10474
|
-
|
|
10475
|
-
dropDownPosition =
|
|
10476
|
-
|
|
10477
|
-
allowCustomValue =
|
|
10478
|
-
|
|
10479
|
-
loading =
|
|
10480
|
-
|
|
10481
|
-
loadingText =
|
|
10433
|
+
var SelectOption = function SelectOption(_ref39) {
|
|
10434
|
+
var title = _ref39.title,
|
|
10435
|
+
titlecolor = _ref39.titlecolor,
|
|
10436
|
+
titleWeight = _ref39.titleWeight,
|
|
10437
|
+
options = _ref39.options,
|
|
10438
|
+
value = _ref39.value,
|
|
10439
|
+
onChange = _ref39.onChange,
|
|
10440
|
+
_ref39$disabled = _ref39.disabled,
|
|
10441
|
+
disabled = _ref39$disabled === void 0 ? false : _ref39$disabled,
|
|
10442
|
+
size = _ref39.size,
|
|
10443
|
+
width = _ref39.width,
|
|
10444
|
+
_ref39$labelText = _ref39.labelText,
|
|
10445
|
+
labelText = _ref39$labelText === void 0 ? 'Select' : _ref39$labelText,
|
|
10446
|
+
border = _ref39.border,
|
|
10447
|
+
background = _ref39.background,
|
|
10448
|
+
_ref39$padding = _ref39.padding,
|
|
10449
|
+
padding = _ref39$padding === void 0 ? '0px' : _ref39$padding,
|
|
10450
|
+
borderRadius = _ref39.borderRadius,
|
|
10451
|
+
optionColor = _ref39.optionColor,
|
|
10452
|
+
optionFontSize = _ref39.optionFontSize,
|
|
10453
|
+
optionFontWeight = _ref39.optionFontWeight,
|
|
10454
|
+
optionBackgroundColor = _ref39.optionBackgroundColor,
|
|
10455
|
+
menuBackground = _ref39.menuBackground,
|
|
10456
|
+
optionsBorderRadius = _ref39.optionsBorderRadius,
|
|
10457
|
+
color = _ref39.color,
|
|
10458
|
+
required = _ref39.required,
|
|
10459
|
+
_ref39$NoOptionsText = _ref39.NoOptionsText,
|
|
10460
|
+
NoOptionsText = _ref39$NoOptionsText === void 0 ? 'No Options Available' : _ref39$NoOptionsText,
|
|
10461
|
+
positionRef = _ref39.positionRef,
|
|
10462
|
+
fontStyle = _ref39.fontStyle,
|
|
10463
|
+
icon = _ref39.icon,
|
|
10464
|
+
_ref39$searchBox = _ref39.searchBox,
|
|
10465
|
+
searchBox = _ref39$searchBox === void 0 ? true : _ref39$searchBox,
|
|
10466
|
+
searchBoxBackground = _ref39.searchBoxBackground,
|
|
10467
|
+
searchBoxBorder = _ref39.searchBoxBorder,
|
|
10468
|
+
searchBoxBorderRadius = _ref39.searchBoxBorderRadius,
|
|
10469
|
+
searchIcon = _ref39.searchIcon,
|
|
10470
|
+
_ref39$placeholderTex = _ref39.placeholderText,
|
|
10471
|
+
placeholderText = _ref39$placeholderTex === void 0 ? 'Search...' : _ref39$placeholderTex,
|
|
10472
|
+
iconColor = _ref39.iconColor,
|
|
10473
|
+
placeholderColor = _ref39.placeholderColor,
|
|
10474
|
+
inputColor = _ref39.inputColor,
|
|
10475
|
+
_ref39$iconSize = _ref39.iconSize,
|
|
10476
|
+
iconSize = _ref39$iconSize === void 0 ? 16 : _ref39$iconSize,
|
|
10477
|
+
_ref39$allowDeselect = _ref39.allowDeselect,
|
|
10478
|
+
allowDeselect = _ref39$allowDeselect === void 0 ? true : _ref39$allowDeselect,
|
|
10479
|
+
titleRightNode = _ref39.titleRightNode,
|
|
10480
|
+
_ref39$dropDownPositi = _ref39.dropDownPosition,
|
|
10481
|
+
dropDownPosition = _ref39$dropDownPositi === void 0 ? 'left' : _ref39$dropDownPositi,
|
|
10482
|
+
_ref39$allowCustomVal = _ref39.allowCustomValue,
|
|
10483
|
+
allowCustomValue = _ref39$allowCustomVal === void 0 ? false : _ref39$allowCustomVal,
|
|
10484
|
+
_ref39$loading = _ref39.loading,
|
|
10485
|
+
loading = _ref39$loading === void 0 ? false : _ref39$loading,
|
|
10486
|
+
_ref39$loadingText = _ref39.loadingText,
|
|
10487
|
+
loadingText = _ref39$loadingText === void 0 ? 'Loading...' : _ref39$loadingText;
|
|
10482
10488
|
var themeColors = useTheme();
|
|
10483
10489
|
var _useState = useState(false),
|
|
10484
10490
|
dropUp = _useState[0],
|