wini-web-components 1.7.5 → 1.7.6

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.
@@ -20,6 +20,7 @@ interface Select1Props {
20
20
  handleSearch?: (e: string) => Promise<Array<OptionsItem>>;
21
21
  readOnly?: boolean;
22
22
  popupClassName?: string;
23
+ prefix?: ReactNode;
23
24
  }
24
25
  interface Select1State {
25
26
  value?: string | number;
@@ -286,6 +286,7 @@ var Select1 = /** @class */ (function (_super) {
286
286
  (_c = _this.inputRef.current) === null || _c === void 0 ? void 0 : _c.focus();
287
287
  }
288
288
  } },
289
+ this.props.prefix,
289
290
  (!_value || typeof _value.name === "string" || typeof _value.name === "number") ? react_1.default.createElement("input", { ref: this.inputRef, readOnly: this.props.readOnly, onChange: this.search, placeholder: this.props.placeholder, onKeyDown: this.onKeyDown, onBlur: function (ev) {
290
291
  if (_this.state.onSelect && !_this.props.readOnly)
291
292
  ev.target.focus();
@@ -293,7 +294,7 @@ var Select1 = /** @class */ (function (_super) {
293
294
  _this.setState(__assign(__assign({}, _this.state), { isOpen: false, onSelect: null }));
294
295
  } }) : _value.name,
295
296
  react_1.default.createElement("div", { ref: function (iconRef) {
296
- if ((iconRef === null || iconRef === void 0 ? void 0 : iconRef.parentElement) && iconRef.parentElement.getBoundingClientRect().width < 120)
297
+ if ((iconRef === null || iconRef === void 0 ? void 0 : iconRef.parentElement) && iconRef.parentElement.getBoundingClientRect().width < 100)
297
298
  iconRef.style.display = "none";
298
299
  }, className: 'row' },
299
300
  react_1.default.createElement(react_fontawesome_1.FontAwesomeIcon, { icon: this.state.isOpen ? free_solid_svg_icons_1.faChevronUp : free_solid_svg_icons_1.faChevronDown, style: { fontSize: '1.1rem', color: "var(--neutral-text-subtitle-color)" } })),