@linzjs/lui 22.1.3 → 22.1.4

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/lui.esm.js CHANGED
@@ -42701,10 +42701,7 @@ var LuiSearchInput = function (props) {
42701
42701
  if (!enoughChars(inputValue)) {
42702
42702
  return typeMore;
42703
42703
  }
42704
- if (props.name)
42705
- return "The ".concat(props.name, " could not be displayed or does not exist.");
42706
- else
42707
- return null;
42704
+ return 'No results available. Please refine your search and try again.';
42708
42705
  }
42709
42706
  return props.onSearch ? (React__default.createElement(ControlledPassiveSearchInputComponent, __assign({ typedValue: typedValue, setTypedValue: setTypedValue }, props, { minCharactersForSearch: props.minCharactersForSearch, placeholderText: props.placeholderText, onSearch: props.onSearch, disclaimer: props.disclaimer, initialValue: props.initialValue, inputTransformer: props.inputTransformer, focusUpdate: props.focusUpdate, onClearCallback: props.onClearCallback, onClickInput: props.onClickInput, validateInput: props.validateInput }))) : (React__default.createElement("div", { className: "LuiSearchInput", onClick: props.onClickInput },
42710
42707
  React__default.createElement("span", { className: "LuiSearchInput-inputWrapper" },
@@ -42719,8 +42716,7 @@ var LuiSearchInput = function (props) {
42719
42716
  cancelIcon),
42720
42717
  (isLoading || results.length > 0) && haveFocus && (React__default.createElement("div", null,
42721
42718
  React__default.createElement(ResultsDisplay, { results: results, selectedId: selectedId, setSelectedId: setSelectedId, selectedRef: selectedRef, onClick: selectItem, isLoading: isLoading, renderItem: props.renderItem }))),
42722
- props.name &&
42723
- haveFocus &&
42719
+ haveFocus &&
42724
42720
  results.length === 0 &&
42725
42721
  !isLoading &&
42726
42722
  noOptionsMessage(typedValue) && (React__default.createElement(React__default.Fragment, null,
@@ -42746,9 +42742,9 @@ var LuiSearchBox = function (_a) {
42746
42742
  return value === initOptionValue;
42747
42743
  });
42748
42744
  var _d = useState(initOption ? initOption : searchBoxOptions[0]), selectedMenuOption = _d[0], setSelectedMenuOption = _d[1];
42749
- //auto focus every time select a menu item
42745
+ // auto focus every time select a menu item
42750
42746
  var _e = useState(false), focusUpdate = _e[0], setFocusUpdate = _e[1];
42751
- //don't focus when first time display
42747
+ // don't focus when first time display
42752
42748
  var _f = useState(false), isFocus = _f[0], setIsFocus = _f[1];
42753
42749
  var _g = useState(false), showStacked = _g[0], setShowStacked = _g[1];
42754
42750
  var containerRef = useRef(null);