@linzjs/lui 22.1.3 → 22.1.5

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,17 @@
1
+ ## [22.1.5](https://github.com/linz/lui/compare/v22.1.4...v22.1.5) (2025-01-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * exports missing components ([#1184](https://github.com/linz/lui/issues/1184)) ([23c39e4](https://github.com/linz/lui/commit/23c39e45740ccba94a9a5dc044655db032a03c33))
7
+
8
+ ## [22.1.4](https://github.com/linz/lui/compare/v22.1.3...v22.1.4) (2025-01-09)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Force release ([#1187](https://github.com/linz/lui/issues/1187)) ([d2a2389](https://github.com/linz/lui/commit/d2a2389043eed6c93472f256da5057859e1762ab))
14
+
1
15
  ## [22.1.3](https://github.com/linz/lui/compare/v22.1.2...v22.1.3) (2025-01-09)
2
16
 
3
17
 
@@ -11,6 +11,9 @@ export interface ISearchInputProps<SearchResult extends ISearchResult = ISearchR
11
11
  disclaimer?: string;
12
12
  initialValue?: string;
13
13
  inputTransformer?: (input: string) => string;
14
+ /**
15
+ * @deprecated This property will no longer be used to display a name in the message when no result found
16
+ */
14
17
  name?: string;
15
18
  focusUpdate?: boolean;
16
19
  onClearCallback?: () => void;
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export { LuiExpandableBanner } from './components/LuiExpandableBanner/LuiExpanda
9
9
  export { LuiMenu, LuiControlledMenu } from './components/LuiMenu/LuiMenu';
10
10
  export { LuiResizableLayout, SplitPanelState, } from './components/LuiResizableLayout/LuiResizableLayout';
11
11
  export { LuiSelectMenu, LuiSelectMenuItem, LuiSelectMenuItemSwitch, LuiSelectSubMenuItem, } from './components/LuiSelectMenu/LuiSelectMenu';
12
- export { LuiSelectDataMenu } from './components/LuiSelectMenu/LuiSelectDataMenu';
12
+ export { LuiSelectDataMenu, LuiSelectMenuDivider, LuiSelectMenuHeader, } from './components/LuiSelectMenu/LuiSelectDataMenu';
13
13
  export { LuiFilterMenu } from './components/LuiFilterMenu/LuiFilterMenu';
14
14
  export { LuiTabs, LuiTabsContext } from './components/LuiTabs/LuiTabs';
15
15
  export { LuiTab } from './components/LuiTabs/LuiTab/LuiTab';
package/dist/index.js CHANGED
@@ -42730,10 +42730,7 @@ var LuiSearchInput = function (props) {
42730
42730
  if (!enoughChars(inputValue)) {
42731
42731
  return typeMore;
42732
42732
  }
42733
- if (props.name)
42734
- return "The ".concat(props.name, " could not be displayed or does not exist.");
42735
- else
42736
- return null;
42733
+ return 'No results available. Please refine your search and try again.';
42737
42734
  }
42738
42735
  return props.onSearch ? (React__default["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["default"].createElement("div", { className: "LuiSearchInput", onClick: props.onClickInput },
42739
42736
  React__default["default"].createElement("span", { className: "LuiSearchInput-inputWrapper" },
@@ -42748,8 +42745,7 @@ var LuiSearchInput = function (props) {
42748
42745
  cancelIcon),
42749
42746
  (isLoading || results.length > 0) && haveFocus && (React__default["default"].createElement("div", null,
42750
42747
  React__default["default"].createElement(ResultsDisplay, { results: results, selectedId: selectedId, setSelectedId: setSelectedId, selectedRef: selectedRef, onClick: selectItem, isLoading: isLoading, renderItem: props.renderItem }))),
42751
- props.name &&
42752
- haveFocus &&
42748
+ haveFocus &&
42753
42749
  results.length === 0 &&
42754
42750
  !isLoading &&
42755
42751
  noOptionsMessage(typedValue) && (React__default["default"].createElement(React__default["default"].Fragment, null,
@@ -42775,9 +42771,9 @@ var LuiSearchBox = function (_a) {
42775
42771
  return value === initOptionValue;
42776
42772
  });
42777
42773
  var _d = React.useState(initOption ? initOption : searchBoxOptions[0]), selectedMenuOption = _d[0], setSelectedMenuOption = _d[1];
42778
- //auto focus every time select a menu item
42774
+ // auto focus every time select a menu item
42779
42775
  var _e = React.useState(false), focusUpdate = _e[0], setFocusUpdate = _e[1];
42780
- //don't focus when first time display
42776
+ // don't focus when first time display
42781
42777
  var _f = React.useState(false), isFocus = _f[0], setIsFocus = _f[1];
42782
42778
  var _g = React.useState(false), showStacked = _g[0], setShowStacked = _g[1];
42783
42779
  var containerRef = React.useRef(null);
@@ -60202,6 +60198,8 @@ exports.LuiSearchInput = LuiSearchInput;
60202
60198
  exports.LuiSelectDataMenu = LuiSelectDataMenu;
60203
60199
  exports.LuiSelectInput = LuiSelectInput;
60204
60200
  exports.LuiSelectMenu = LuiSelectMenu;
60201
+ exports.LuiSelectMenuDivider = LuiSelectMenuDivider;
60202
+ exports.LuiSelectMenuHeader = LuiSelectMenuHeader;
60205
60203
  exports.LuiSelectMenuItem = LuiSelectMenuItem;
60206
60204
  exports.LuiSelectMenuItemSwitch = LuiSelectMenuItemSwitch;
60207
60205
  exports.LuiSelectSubMenuItem = LuiSelectSubMenuItem;