@linzjs/lui 21.9.1 → 21.9.2

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,10 @@
1
+ ## [21.9.2](https://github.com/linz/lui/compare/v21.9.1...v21.9.2) (2023-11-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fixes LuiTool tip allowing content and message as props ([#1046](https://github.com/linz/lui/issues/1046)) ([8310c92](https://github.com/linz/lui/commit/8310c9276a087d4b80e7e8cf13e2756407e67d95))
7
+
1
8
  ## [21.9.1](https://github.com/linz/lui/compare/v21.9.0...v21.9.1) (2023-11-15)
2
9
 
3
10
 
package/dist/index.js CHANGED
@@ -46715,8 +46715,8 @@ var Tippy = index;
46715
46715
 
46716
46716
  var LuiTooltip = function (props) {
46717
46717
  var _a;
46718
- 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, rest = __rest(props, ["children", "message", "theme", "offset", "arrow", "plugins"]);
46719
- var tippyProps = __assign(__assign({}, rest), { content: message, theme: theme, offset: offset, arrow: arrow, plugins: __spreadArray(__spreadArray([], (plugins || []), true), [followCursor], false) });
46718
+ 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"]);
46719
+ var tippyProps = __assign(__assign({}, rest), { content: content || message, theme: theme, offset: offset, arrow: arrow, plugins: __spreadArray(__spreadArray([], (plugins || []), true), [followCursor], false) });
46720
46720
  return React__default["default"].createElement(Tippy, __assign({}, tippyProps), children);
46721
46721
  };
46722
46722