labsense-ui-kit 1.2.85 → 1.2.87
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/Dropdown/SelectOption.d.ts +2 -0
- package/dist/index.js +78 -65
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +78 -65
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7779,7 +7779,7 @@ var LabelText$1 = styled.div(_templateObject5$5 || (_templateObject5$5 = _tagged
|
|
|
7779
7779
|
return $disabled ? theme.vms.text.medium : $color || theme.vms.text.medium;
|
|
7780
7780
|
});
|
|
7781
7781
|
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"])));
|
|
7782
|
-
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 width: ", ";\n background: ", ";\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n overflow: hidden
|
|
7782
|
+
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 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 ", "\n ", "\n\n ", "\n"])), function (_ref24) {
|
|
7783
7783
|
var theme = _ref24.theme;
|
|
7784
7784
|
return "1px solid " + theme.vms.border.light;
|
|
7785
7785
|
}, function (_ref25) {
|
|
@@ -7798,79 +7798,91 @@ var DropdownMenu$1 = styled.div(_templateObject7$3 || (_templateObject7$3 = _tag
|
|
|
7798
7798
|
}, function (_ref29) {
|
|
7799
7799
|
var $bottom = _ref29.$bottom;
|
|
7800
7800
|
return $bottom && "bottom: " + $bottom + ";";
|
|
7801
|
+
}, function (_ref30) {
|
|
7802
|
+
var $dropDownPosition = _ref30.$dropDownPosition;
|
|
7803
|
+
switch ($dropDownPosition) {
|
|
7804
|
+
case 'center':
|
|
7805
|
+
return "\n left: 50%;\n transform: translateX(-50%);\n ";
|
|
7806
|
+
case 'right':
|
|
7807
|
+
return "\n right: 0;\n left: auto;\n ";
|
|
7808
|
+
default:
|
|
7809
|
+
return "\n left: 0;\n ";
|
|
7810
|
+
}
|
|
7801
7811
|
});
|
|
7802
7812
|
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"])));
|
|
7803
|
-
var SearchContainer$1 = styled.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 (
|
|
7804
|
-
var $background =
|
|
7805
|
-
theme =
|
|
7813
|
+
var SearchContainer$1 = styled.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 (_ref31) {
|
|
7814
|
+
var $background = _ref31.$background,
|
|
7815
|
+
theme = _ref31.theme;
|
|
7806
7816
|
return $background || theme.vms.accent.light_2;
|
|
7807
|
-
}, function (_ref31) {
|
|
7808
|
-
var $border = _ref31.$border;
|
|
7809
|
-
return $border || 'none';
|
|
7810
7817
|
}, function (_ref32) {
|
|
7811
|
-
var
|
|
7812
|
-
return
|
|
7818
|
+
var $border = _ref32.$border;
|
|
7819
|
+
return $border || 'none';
|
|
7813
7820
|
}, function (_ref33) {
|
|
7814
|
-
var
|
|
7821
|
+
var theme = _ref33.theme;
|
|
7822
|
+
return "1px solid " + theme.vms.border.light;
|
|
7823
|
+
}, function (_ref34) {
|
|
7824
|
+
var $borderRadius = _ref34.$borderRadius;
|
|
7815
7825
|
return $borderRadius || '8px 8px 0 0';
|
|
7816
7826
|
});
|
|
7817
|
-
var SearchBar$1 = styled.input(_templateObject10$3 || (_templateObject10$3 = _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 (
|
|
7818
|
-
var $inputColor =
|
|
7819
|
-
theme = _ref34.theme;
|
|
7820
|
-
return $inputColor || theme.vms.text.medium;
|
|
7821
|
-
}, function (_ref35) {
|
|
7822
|
-
var $placeholderColor = _ref35.$placeholderColor,
|
|
7827
|
+
var SearchBar$1 = styled.input(_templateObject10$3 || (_templateObject10$3 = _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 (_ref35) {
|
|
7828
|
+
var $inputColor = _ref35.$inputColor,
|
|
7823
7829
|
theme = _ref35.theme;
|
|
7830
|
+
return $inputColor || theme.vms.text.medium;
|
|
7831
|
+
}, function (_ref36) {
|
|
7832
|
+
var $placeholderColor = _ref36.$placeholderColor,
|
|
7833
|
+
theme = _ref36.theme;
|
|
7824
7834
|
return $placeholderColor || theme.vms.text.light;
|
|
7825
7835
|
});
|
|
7826
|
-
var SelectOption = function SelectOption(
|
|
7836
|
+
var SelectOption = function SelectOption(_ref37) {
|
|
7827
7837
|
var _options$find;
|
|
7828
|
-
var title =
|
|
7829
|
-
titlecolor =
|
|
7830
|
-
titleWeight =
|
|
7831
|
-
options =
|
|
7832
|
-
value =
|
|
7833
|
-
onChange =
|
|
7834
|
-
|
|
7835
|
-
disabled =
|
|
7836
|
-
size =
|
|
7837
|
-
width =
|
|
7838
|
-
|
|
7839
|
-
labelText =
|
|
7840
|
-
border =
|
|
7841
|
-
background =
|
|
7842
|
-
|
|
7843
|
-
padding =
|
|
7844
|
-
borderRadius =
|
|
7845
|
-
optionColor =
|
|
7846
|
-
optionFontSize =
|
|
7847
|
-
optionFontWeight =
|
|
7848
|
-
optionBackgroundColor =
|
|
7849
|
-
menuBackground =
|
|
7850
|
-
optionsBorderRadius =
|
|
7851
|
-
color =
|
|
7852
|
-
required =
|
|
7853
|
-
|
|
7854
|
-
NoOptionsText =
|
|
7855
|
-
positionRef =
|
|
7856
|
-
fontStyle =
|
|
7857
|
-
icon =
|
|
7858
|
-
|
|
7859
|
-
searchBox =
|
|
7860
|
-
searchBoxBackground =
|
|
7861
|
-
searchBoxBorder =
|
|
7862
|
-
searchBoxBorderRadius =
|
|
7863
|
-
searchIcon =
|
|
7864
|
-
|
|
7865
|
-
placeholderText =
|
|
7866
|
-
iconColor =
|
|
7867
|
-
placeholderColor =
|
|
7868
|
-
inputColor =
|
|
7869
|
-
|
|
7870
|
-
iconSize =
|
|
7871
|
-
|
|
7872
|
-
allowDeselect =
|
|
7873
|
-
titleRightNode =
|
|
7838
|
+
var title = _ref37.title,
|
|
7839
|
+
titlecolor = _ref37.titlecolor,
|
|
7840
|
+
titleWeight = _ref37.titleWeight,
|
|
7841
|
+
options = _ref37.options,
|
|
7842
|
+
value = _ref37.value,
|
|
7843
|
+
onChange = _ref37.onChange,
|
|
7844
|
+
_ref37$disabled = _ref37.disabled,
|
|
7845
|
+
disabled = _ref37$disabled === void 0 ? false : _ref37$disabled,
|
|
7846
|
+
size = _ref37.size,
|
|
7847
|
+
width = _ref37.width,
|
|
7848
|
+
_ref37$labelText = _ref37.labelText,
|
|
7849
|
+
labelText = _ref37$labelText === void 0 ? 'Select' : _ref37$labelText,
|
|
7850
|
+
border = _ref37.border,
|
|
7851
|
+
background = _ref37.background,
|
|
7852
|
+
_ref37$padding = _ref37.padding,
|
|
7853
|
+
padding = _ref37$padding === void 0 ? '0px' : _ref37$padding,
|
|
7854
|
+
borderRadius = _ref37.borderRadius,
|
|
7855
|
+
optionColor = _ref37.optionColor,
|
|
7856
|
+
optionFontSize = _ref37.optionFontSize,
|
|
7857
|
+
optionFontWeight = _ref37.optionFontWeight,
|
|
7858
|
+
optionBackgroundColor = _ref37.optionBackgroundColor,
|
|
7859
|
+
menuBackground = _ref37.menuBackground,
|
|
7860
|
+
optionsBorderRadius = _ref37.optionsBorderRadius,
|
|
7861
|
+
color = _ref37.color,
|
|
7862
|
+
required = _ref37.required,
|
|
7863
|
+
_ref37$NoOptionsText = _ref37.NoOptionsText,
|
|
7864
|
+
NoOptionsText = _ref37$NoOptionsText === void 0 ? 'No Options Available' : _ref37$NoOptionsText,
|
|
7865
|
+
positionRef = _ref37.positionRef,
|
|
7866
|
+
fontStyle = _ref37.fontStyle,
|
|
7867
|
+
icon = _ref37.icon,
|
|
7868
|
+
_ref37$searchBox = _ref37.searchBox,
|
|
7869
|
+
searchBox = _ref37$searchBox === void 0 ? true : _ref37$searchBox,
|
|
7870
|
+
searchBoxBackground = _ref37.searchBoxBackground,
|
|
7871
|
+
searchBoxBorder = _ref37.searchBoxBorder,
|
|
7872
|
+
searchBoxBorderRadius = _ref37.searchBoxBorderRadius,
|
|
7873
|
+
searchIcon = _ref37.searchIcon,
|
|
7874
|
+
_ref37$placeholderTex = _ref37.placeholderText,
|
|
7875
|
+
placeholderText = _ref37$placeholderTex === void 0 ? 'Search...' : _ref37$placeholderTex,
|
|
7876
|
+
iconColor = _ref37.iconColor,
|
|
7877
|
+
placeholderColor = _ref37.placeholderColor,
|
|
7878
|
+
inputColor = _ref37.inputColor,
|
|
7879
|
+
_ref37$iconSize = _ref37.iconSize,
|
|
7880
|
+
iconSize = _ref37$iconSize === void 0 ? 16 : _ref37$iconSize,
|
|
7881
|
+
_ref37$allowDeselect = _ref37.allowDeselect,
|
|
7882
|
+
allowDeselect = _ref37$allowDeselect === void 0 ? true : _ref37$allowDeselect,
|
|
7883
|
+
titleRightNode = _ref37.titleRightNode,
|
|
7884
|
+
_ref37$dropDownPositi = _ref37.dropDownPosition,
|
|
7885
|
+
dropDownPosition = _ref37$dropDownPositi === void 0 ? 'left' : _ref37$dropDownPositi;
|
|
7874
7886
|
var themeColors = useTheme();
|
|
7875
7887
|
var _useState = useState(false),
|
|
7876
7888
|
dropUp = _useState[0],
|
|
@@ -7999,7 +8011,8 @@ var SelectOption = function SelectOption(_ref36) {
|
|
|
7999
8011
|
"$optionsBorderRadius": optionsBorderRadius,
|
|
8000
8012
|
"$optionsAvailable": options.length > 0,
|
|
8001
8013
|
"$top": dropUp ? 'auto' : '126%',
|
|
8002
|
-
"$bottom": dropUp ? '126%' : 'auto'
|
|
8014
|
+
"$bottom": dropUp ? '126%' : 'auto',
|
|
8015
|
+
"$dropDownPosition": dropDownPosition
|
|
8003
8016
|
}, showSearchBox && React.createElement(SearchContainer$1, {
|
|
8004
8017
|
"$background": searchBoxBackground,
|
|
8005
8018
|
"$border": searchBoxBorder,
|
|
@@ -9689,7 +9702,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
9689
9702
|
};
|
|
9690
9703
|
|
|
9691
9704
|
var _templateObject$q, _templateObject2$l, _templateObject3$e, _templateObject4$b, _templateObject5$9;
|
|
9692
|
-
var TableContainer = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n background: ", ";\n display: flex;\n flex-direction: column;\n border-radius: 8px;\n scrollbar-width: thin;\n
|
|
9705
|
+
var TableContainer = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n background: ", ";\n display: flex;\n flex-direction: column;\n border-radius: 8px;\n scrollbar-width: thin;\n flex: 1;\n"])), function (_ref) {
|
|
9693
9706
|
var theme = _ref.theme;
|
|
9694
9707
|
return theme.vms.brand.light;
|
|
9695
9708
|
});
|