@linzjs/lui 17.47.0 → 17.47.1

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
+ ## [17.47.1](https://github.com/linz/lui/compare/v17.47.0...v17.47.1) (2023-04-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * release luitooltip offset change ([#916](https://github.com/linz/lui/issues/916)) ([19a1f37](https://github.com/linz/lui/commit/19a1f37776e0736191359555d4fa163a58dee3c9))
7
+
1
8
  # [17.47.0](https://github.com/linz/lui/compare/v17.46.0...v17.47.0) (2023-03-29)
2
9
 
3
10
 
@@ -12,5 +12,6 @@ export interface ILuiTooltipProperties {
12
12
  mode?: 'default' | 'info' | 'error';
13
13
  interactive?: boolean;
14
14
  allowHTML?: boolean;
15
+ offset?: [number, number];
15
16
  }
16
17
  export declare const LuiTooltip: (props: ILuiTooltipProperties) => JSX.Element;
package/dist/index.js CHANGED
@@ -47287,7 +47287,7 @@ styleInject(css_248z$4);
47287
47287
  var id = 0;
47288
47288
  var getKey = function () { return id++; };
47289
47289
  var LuiTooltip = function (props) {
47290
- 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;
47290
+ 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, _f = props.offset, offset = _f === void 0 ? [0, 18] : _f;
47291
47291
  var id = "LuiToolTip_".concat(React$1.useMemo(getKey, []));
47292
47292
  if (typeof message !== 'string') {
47293
47293
  throw new Error('LuiTooltip message must be a string!');
@@ -47299,7 +47299,7 @@ var LuiTooltip = function (props) {
47299
47299
  trigger: trigger,
47300
47300
  theme: mode,
47301
47301
  placement: placement,
47302
- offset: [0, 18],
47302
+ offset: offset,
47303
47303
  animation: animation,
47304
47304
  followCursor: followCursor$1,
47305
47305
  interactive: interactive,