@linzjs/lui 22.12.2 → 22.12.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [22.12.3](https://github.com/linz/lui/compare/v22.12.2...v22.12.3) (2025-05-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Adds prop to hide no options message ([#1218](https://github.com/linz/lui/issues/1218)) ([f0deb3f](https://github.com/linz/lui/commit/f0deb3f05426f94f2d8d315a2eb654e63b4c8b4f))
7
+
1
8
  ## [22.12.2](https://github.com/linz/lui/compare/v22.12.1...v22.12.2) (2025-05-20)
2
9
 
3
10
 
@@ -22,5 +22,6 @@ export interface ISearchInputProps<SearchResult extends ISearchResult = ISearchR
22
22
  onSearch?: (searchString: string) => void;
23
23
  validateInput?: (input: string) => InputValidationResult | undefined;
24
24
  hideDisclaimerOnFail?: boolean;
25
+ hideNoOptionsMessage?: boolean;
25
26
  }
26
27
  export declare const LuiSearchInput: <SearchResult extends ISearchResult = ISearchResult>(props: React.PropsWithChildren<ISearchInputProps<SearchResult>>) => JSX.Element;
package/dist/index.js CHANGED
@@ -42801,6 +42801,7 @@ var LuiSearchInput = function (props) {
42801
42801
  haveFocus &&
42802
42802
  results.length === 0 &&
42803
42803
  !isLoading &&
42804
+ props.hideNoOptionsMessage !== true &&
42804
42805
  noOptionsMessage(typedValue) && (React__default["default"].createElement(React__default["default"].Fragment, null,
42805
42806
  React__default["default"].createElement("hr", { className: "LuiSearchInput-resultSeparator" }),
42806
42807
  React__default["default"].createElement("div", { "data-testid": "no-result-msg", className: "LuiSearchInput-disclaimer" }, noOptionsMessage(typedValue)))),