labsense-ui-kit 1.2.86 → 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.
@@ -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; \n position: absolute;\n z-index: 1;\n ", "\n ", "\n z-index: 2;\n"])), function (_ref24) {
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 (_ref30) {
7804
- var $background = _ref30.$background,
7805
- theme = _ref30.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 theme = _ref32.theme;
7812
- return "1px solid " + theme.vms.border.light;
7818
+ var $border = _ref32.$border;
7819
+ return $border || 'none';
7813
7820
  }, function (_ref33) {
7814
- var $borderRadius = _ref33.$borderRadius;
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 (_ref34) {
7818
- var $inputColor = _ref34.$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(_ref36) {
7836
+ var SelectOption = function SelectOption(_ref37) {
7827
7837
  var _options$find;
7828
- var title = _ref36.title,
7829
- titlecolor = _ref36.titlecolor,
7830
- titleWeight = _ref36.titleWeight,
7831
- options = _ref36.options,
7832
- value = _ref36.value,
7833
- onChange = _ref36.onChange,
7834
- _ref36$disabled = _ref36.disabled,
7835
- disabled = _ref36$disabled === void 0 ? false : _ref36$disabled,
7836
- size = _ref36.size,
7837
- width = _ref36.width,
7838
- _ref36$labelText = _ref36.labelText,
7839
- labelText = _ref36$labelText === void 0 ? 'Select' : _ref36$labelText,
7840
- border = _ref36.border,
7841
- background = _ref36.background,
7842
- _ref36$padding = _ref36.padding,
7843
- padding = _ref36$padding === void 0 ? '0px' : _ref36$padding,
7844
- borderRadius = _ref36.borderRadius,
7845
- optionColor = _ref36.optionColor,
7846
- optionFontSize = _ref36.optionFontSize,
7847
- optionFontWeight = _ref36.optionFontWeight,
7848
- optionBackgroundColor = _ref36.optionBackgroundColor,
7849
- menuBackground = _ref36.menuBackground,
7850
- optionsBorderRadius = _ref36.optionsBorderRadius,
7851
- color = _ref36.color,
7852
- required = _ref36.required,
7853
- _ref36$NoOptionsText = _ref36.NoOptionsText,
7854
- NoOptionsText = _ref36$NoOptionsText === void 0 ? 'No Options Available' : _ref36$NoOptionsText,
7855
- positionRef = _ref36.positionRef,
7856
- fontStyle = _ref36.fontStyle,
7857
- icon = _ref36.icon,
7858
- _ref36$searchBox = _ref36.searchBox,
7859
- searchBox = _ref36$searchBox === void 0 ? true : _ref36$searchBox,
7860
- searchBoxBackground = _ref36.searchBoxBackground,
7861
- searchBoxBorder = _ref36.searchBoxBorder,
7862
- searchBoxBorderRadius = _ref36.searchBoxBorderRadius,
7863
- searchIcon = _ref36.searchIcon,
7864
- _ref36$placeholderTex = _ref36.placeholderText,
7865
- placeholderText = _ref36$placeholderTex === void 0 ? 'Search...' : _ref36$placeholderTex,
7866
- iconColor = _ref36.iconColor,
7867
- placeholderColor = _ref36.placeholderColor,
7868
- inputColor = _ref36.inputColor,
7869
- _ref36$iconSize = _ref36.iconSize,
7870
- iconSize = _ref36$iconSize === void 0 ? 16 : _ref36$iconSize,
7871
- _ref36$allowDeselect = _ref36.allowDeselect,
7872
- allowDeselect = _ref36$allowDeselect === void 0 ? true : _ref36$allowDeselect,
7873
- titleRightNode = _ref36.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,