@evergis/uilib-gl 1.0.39 → 1.0.41

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.
@@ -13,7 +13,7 @@ export declare class AutoComplete extends Component<IAutoCompleteProps, IAutoCom
13
13
  filterOptions: (value: string, options: IOption<string>[]) => IOption<string>[];
14
14
  };
15
15
  state: IAutoCompleteState;
16
- input: HTMLElement | null;
16
+ input: HTMLInputElement | null;
17
17
  loadSuggestionsDebounced: (value: string) => void;
18
18
  loadSuggestionsThrottled: (value: string) => void;
19
19
  constructor(props: IAutoCompleteProps);
@@ -11556,7 +11556,7 @@ var textOverflowEllipsisMixin = "\n overflow: hidden;\n text-overflow: ellipsi
11556
11556
 
11557
11557
  var _templateObject$h, _templateObject2$a;
11558
11558
  var IconBefore = /*#__PURE__*/styled.span(_templateObject$h || (_templateObject$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 2rem;\n min-width: 2rem;\n height: 2rem;\n width: 2rem;\n"])));
11559
- var IconAfter = /*#__PURE__*/styled.span(_templateObject2$a || (_templateObject2$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n right: ", "rem;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 2rem;\n min-width: 2rem;\n height: 2rem;\n width: 2rem;\n"])), function (_ref) {
11559
+ var IconAfter = /*#__PURE__*/styled.span(_templateObject2$a || (_templateObject2$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n right: ", "rem;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 2rem;\n min-width: 2rem;\n height: 2rem;\n width: 2rem;\n\n button {\n width: auto;\n }\n"])), function (_ref) {
11560
11560
  var indent = _ref.indent;
11561
11561
  return indent;
11562
11562
  });
@@ -11566,7 +11566,7 @@ var inputMixin = /*#__PURE__*/css(_templateObject$i || (_templateObject$i = /*#_
11566
11566
  return props.height || "auto";
11567
11567
  }, function (_ref) {
11568
11568
  var paddingRight = _ref.paddingRight;
11569
- return (paddingRight || 0) + "rem";
11569
+ return (paddingRight || 0) + "px";
11570
11570
  }, function (_ref2) {
11571
11571
  var extraLeftPaddingWidth = _ref2.extraLeftPaddingWidth;
11572
11572
  return extraLeftPaddingWidth ? (extraLeftPaddingWidth != null ? extraLeftPaddingWidth : 0) + 8 + "px" : "0.5rem";
@@ -12408,7 +12408,7 @@ var InputComponent = function InputComponent(_ref) {
12408
12408
 
12409
12409
  var realChildren = getRealChildren(children);
12410
12410
  var childrenCount = realChildren.length;
12411
- var paddingRight = childrenCount * 2;
12411
+ var paddingRight = childrenCount * 2 + (iconAfter ? 32 : 0);
12412
12412
  return React__default.createElement(InputContainer, {
12413
12413
  disabled: disabled,
12414
12414
  error: props.error,
@@ -18022,13 +18022,12 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
18022
18022
  onSuggestionSelected: this.onSuggestionSelected,
18023
18023
  getSuggestionValue: getSuggestionValue,
18024
18024
  renderSuggestion: function renderSuggestion(suggestion, _ref3) {
18025
- var query = _ref3.query;
18025
+ var query = _ref3.query,
18026
+ isHighlighted = _ref3.isHighlighted;
18026
18027
  return React__default.createElement(Option$1, {
18027
18028
  suggestion: suggestion,
18028
18029
  query: query,
18029
- isHighlighted: selectedSuggestions.some(function (item) {
18030
- return item.value === suggestion.value;
18031
- }),
18030
+ isHighlighted: isHighlighted,
18032
18031
  multiSelect: multiSelect,
18033
18032
  optionStyle: optionStyle
18034
18033
  });