@linzjs/lui 24.13.0 → 24.14.0
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 +15 -0
- package/dist/components/LuiSearchInput/LuiSearchInput.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lui.css +1 -1
- package/dist/lui.esm.js +2 -1
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiErrorPage/LuiErrorPage.scss +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@
|
|
|
5
5
|
|
|
6
6
|
* **LuiComboSelect:** restore interface to support styling of the input element. ([#1270](https://github.com/linz/lui/issues/1270)) ([7ce6a13](https://github.com/linz/lui/commit/7ce6a137c7f16ffa3acbe4357569a6eb59ef47db))
|
|
7
7
|
|
|
8
|
+
## [24.14.0](https://github.com/linz/Lui/compare/lui-v24.13.1...lui-v24.14.0) (2026-04-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* CS-9492 - allows a custom no options found message to be used with LuiSearchInput ([#1340](https://github.com/linz/Lui/issues/1340)) ([ae2ed7c](https://github.com/linz/Lui/commit/ae2ed7cba04ed5231d62c6f019a23c17f1eadc29))
|
|
14
|
+
* Remove this story as it's in common-js ([#1338](https://github.com/linz/Lui/issues/1338)) ([5cb0468](https://github.com/linz/Lui/commit/5cb04686874d908204bbb5af299fb0d4febb56ab))
|
|
15
|
+
|
|
16
|
+
## [24.13.1](https://github.com/linz/Lui/compare/lui-v24.13.0...lui-v24.13.1) (2026-04-29)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* TITLE-9163 Use min-height: 100vh instead of height: 100% in LuiErrorPage ([#1336](https://github.com/linz/Lui/issues/1336)) ([355d265](https://github.com/linz/Lui/commit/355d2656982b476f56628cd5eb5c32a035d66119))
|
|
22
|
+
|
|
8
23
|
## [24.13.0](https://github.com/linz/Lui/compare/lui-v24.12.0...lui-v24.13.0) (2026-04-21)
|
|
9
24
|
|
|
10
25
|
|
|
@@ -23,6 +23,7 @@ export interface ISearchInputProps<SearchResult extends ISearchResult = ISearchR
|
|
|
23
23
|
validateInput?: (input: string) => InputValidationResult | undefined;
|
|
24
24
|
hideDisclaimerOnFail?: boolean;
|
|
25
25
|
hideNoOptionsMessage?: boolean;
|
|
26
|
+
noOptionsMessage?: string;
|
|
26
27
|
hideSearchIcon?: boolean;
|
|
27
28
|
filterElement?: ReactElement;
|
|
28
29
|
trimBeforeMinCharCheck?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -18912,13 +18912,14 @@ var LuiSearchInput = function (props) {
|
|
|
18912
18912
|
props.minCharactersForSearch);
|
|
18913
18913
|
}
|
|
18914
18914
|
function noOptionsMessage(inputValue) {
|
|
18915
|
+
var _a;
|
|
18915
18916
|
if (inputValue === '') {
|
|
18916
18917
|
return null;
|
|
18917
18918
|
}
|
|
18918
18919
|
if (!enoughChars(inputValue)) {
|
|
18919
18920
|
return typeMore;
|
|
18920
18921
|
}
|
|
18921
|
-
return 'No results available. Please refine your search and try again.';
|
|
18922
|
+
return ((_a = props.noOptionsMessage) !== null && _a !== void 0 ? _a : 'No results available. Please refine your search and try again.');
|
|
18922
18923
|
}
|
|
18923
18924
|
function determineDisclaimer() {
|
|
18924
18925
|
if (props.hideDisclaimerOnFail && noOptionsMessage(typedValue))
|