@linzjs/lui 22.12.3 → 22.12.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.12.5](https://github.com/linz/lui/compare/v22.12.4...v22.12.5) (2025-06-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **LuiTooltip:** SRVPUW-1291 "tippy mode is not a valid prop" warnings ([#1220](https://github.com/linz/lui/issues/1220)) ([7171697](https://github.com/linz/lui/commit/71716973bad52a81e016506dcc721a2efc664c68))
7
+
8
+ ## [22.12.4](https://github.com/linz/lui/compare/v22.12.3...v22.12.4) (2025-05-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * pass hidden message props down ([#1219](https://github.com/linz/lui/issues/1219)) ([258b76b](https://github.com/linz/lui/commit/258b76b2ce41662ee4350a9e1f7308bb332d2613))
14
+
1
15
  ## [22.12.3](https://github.com/linz/lui/compare/v22.12.2...v22.12.3) (2025-05-22)
2
16
 
3
17
 
@@ -20,6 +20,7 @@ export interface ISearchMenuOption {
20
20
  validateInput?: (input: string) => InputValidationResult | undefined;
21
21
  customizedInput?: React.ReactElement;
22
22
  hideDisclaimerOnFail?: boolean;
23
+ hideNoOptionsMessage?: boolean;
23
24
  }
24
25
  export interface ILuiSearchBoxProps {
25
26
  searchBoxOptions: ISearchMenuOption[];
@@ -1,7 +1,16 @@
1
1
  /// <reference types="react" />
2
2
  import { TippyProps } from '@tippyjs/react';
3
+ /**
4
+ * @see https://atomiks.github.io/tippyjs/
5
+ */
3
6
  export declare type ILuiTooltipProperties = TippyProps & {
7
+ /**
8
+ * @deprecated use "content" instead.
9
+ */
4
10
  message?: TippyProps['content'];
11
+ /**
12
+ * @deprecated use "theme" instead.
13
+ */
5
14
  mode?: 'default' | 'info' | 'error' | 'default-withDelay' | 'info-withDelay' | 'error-withDelay';
6
15
  };
7
16
  export declare const LuiTooltip: (props: ILuiTooltipProperties) => JSX.Element;
package/dist/index.js CHANGED
@@ -42885,7 +42885,7 @@ var LuiSearchBox = function (_a) {
42885
42885
  ? selectedMenuOption.renderItem
42886
42886
  : function (item) {
42887
42887
  return React__default["default"].createElement("span", { style: resultStyle }, item.description);
42888
- }, disclaimer: selectedMenuOption.disclaimer, focusUpdate: autoFocus && isFocus ? focusUpdate : undefined, externalSearch: externalSearch, initialValue: !!externalSearch ? searchString : undefined, onClickInput: onClickInput, onClearCallback: onClearInput, onSearch: selectedMenuOption.onSearch, validateInput: selectedMenuOption.validateInput, hideDisclaimerOnFail: selectedMenuOption.hideDisclaimerOnFail })))));
42888
+ }, disclaimer: selectedMenuOption.disclaimer, focusUpdate: autoFocus && isFocus ? focusUpdate : undefined, externalSearch: externalSearch, initialValue: !!externalSearch ? searchString : undefined, onClickInput: onClickInput, onClearCallback: onClearInput, onSearch: selectedMenuOption.onSearch, validateInput: selectedMenuOption.validateInput, hideDisclaimerOnFail: selectedMenuOption.hideDisclaimerOnFail, hideNoOptionsMessage: selectedMenuOption.hideNoOptionsMessage })))));
42889
42889
  };
42890
42890
  var LuiSearchBoxButton = React__default["default"].forwardRef(function (props, ref) {
42891
42891
  var button = React.useMemo(function () {
@@ -47145,9 +47145,12 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
47145
47145
  var Tippy = index;
47146
47146
 
47147
47147
  var LuiTooltip = function (props) {
47148
- var _a;
47149
- var children = props.children, message = props.message, _b = props.theme, theme = _b === void 0 ? (_a = props.mode) !== null && _a !== void 0 ? _a : 'default' : _b, _c = props.offset, offset = _c === void 0 ? [0, 4] : _c, _d = props.arrow, arrow = _d === void 0 ? false : _d, plugins = props.plugins, content = props.content, rest = __rest(props, ["children", "message", "theme", "offset", "arrow", "plugins", "content"]);
47150
- var tippyProps = __assign(__assign({}, rest), { content: content || message, theme: theme, offset: offset, arrow: arrow, plugins: __spreadArray(__spreadArray([], (plugins || []), true), [followCursor], false) });
47148
+ var children = props.children, message = props.message, mode = props.mode; props.plugins; var rest = __rest(props, ["children", "message", "mode", "plugins"]);
47149
+ var tippyProps = __assign({
47150
+ // backward compatibility for deprecated properties
47151
+ content: message, theme: mode !== null && mode !== void 0 ? mode : 'default',
47152
+ // defaults
47153
+ arrow: false, offset: [0, 4], plugins: [followCursor] }, rest);
47151
47154
  return React__default["default"].createElement(Tippy, __assign({}, tippyProps), children);
47152
47155
  };
47153
47156