@linzjs/lui 22.12.4 → 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 +7 -0
- package/dist/components/LuiTooltip/LuiTooltip.d.ts +9 -0
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +6 -3
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
8
|
## [22.12.4](https://github.com/linz/lui/compare/v22.12.3...v22.12.4) (2025-05-22)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -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
|
@@ -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
|
|
47149
|
-
var
|
|
47150
|
-
|
|
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
|
|