@linzjs/lui 17.39.2 → 17.40.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 +7 -0
- package/dist/components/LuiTooltip/LuiTooltip.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +3 -1
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [17.40.0](https://github.com/linz/lui/compare/v17.39.2...v17.40.0) (2023-03-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* expose allowHTML and interactive tippy properties ([#876](https://github.com/linz/lui/issues/876)) ([a1d86c3](https://github.com/linz/lui/commit/a1d86c35f6fd4648045700f15f50b827699dc23b))
|
|
7
|
+
|
|
1
8
|
## [17.39.2](https://github.com/linz/lui/compare/v17.39.1...v17.39.2) (2023-03-07)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -10,5 +10,7 @@ export interface ILuiTooltipProperties {
|
|
|
10
10
|
animation?: boolean;
|
|
11
11
|
followCursor?: boolean;
|
|
12
12
|
mode?: 'default' | 'info' | 'error';
|
|
13
|
+
interactive?: boolean;
|
|
14
|
+
allowHTML?: boolean;
|
|
13
15
|
}
|
|
14
16
|
export declare const LuiTooltip: (props: ILuiTooltipProperties) => JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -47260,7 +47260,7 @@ styleInject(css_248z$4);
|
|
|
47260
47260
|
var id = 0;
|
|
47261
47261
|
var getKey = function () { return id++; };
|
|
47262
47262
|
var LuiTooltip = function (props) {
|
|
47263
|
-
var children = props.children, message = props.message, placement = props.placement, trigger = props.trigger, _a = props.animation, animation = _a === void 0 ? true : _a, _b = props.followCursor, followCursor$1 = _b === void 0 ? false : _b, _c = props.mode, mode = _c === void 0 ? 'default' : _c;
|
|
47263
|
+
var children = props.children, message = props.message, placement = props.placement, trigger = props.trigger, _a = props.animation, animation = _a === void 0 ? true : _a, _b = props.followCursor, followCursor$1 = _b === void 0 ? false : _b, _c = props.mode, mode = _c === void 0 ? 'default' : _c, _d = props.interactive, interactive = _d === void 0 ? false : _d, _e = props.allowHTML, allowHTML = _e === void 0 ? false : _e;
|
|
47264
47264
|
var id = "LuiToolTip_".concat(React$1.useMemo(getKey, []));
|
|
47265
47265
|
if (typeof message !== 'string') {
|
|
47266
47266
|
throw new Error('LuiTooltip message must be a string!');
|
|
@@ -47275,6 +47275,8 @@ var LuiTooltip = function (props) {
|
|
|
47275
47275
|
offset: [0, 18],
|
|
47276
47276
|
animation: animation,
|
|
47277
47277
|
followCursor: followCursor$1,
|
|
47278
|
+
interactive: interactive,
|
|
47279
|
+
allowHTML: allowHTML,
|
|
47278
47280
|
plugins: [followCursor]
|
|
47279
47281
|
});
|
|
47280
47282
|
return function () {
|