@linzjs/lui 17.46.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/dist/lui.esm.js CHANGED
@@ -12963,15 +12963,15 @@ var LuiFloatingWindow = function (props) {
12963
12963
  };
12964
12964
 
12965
12965
  var LuiToastMessage = function (_a) {
12966
- var level = _a.level, _b = _a.displayTimeout, displayTimeout = _b === void 0 ? 4000 : _b, _c = _a.display, display = _c === void 0 ? true : _c, requireDismiss = _a.requireDismiss, onClose = _a.onClose, children = _a.children, type = _a.type;
12967
- var _d = useState('lui-msg-toast-show'), className = _d[0], setClassname = _d[1];
12968
- var _e = useState(undefined), fadeOutTimer = _e[0], setFadeOutTimer = _e[1];
12969
- var _f = useState(undefined), removeTimer = _f[0], setRemoveTimer = _f[1];
12966
+ var level = _a.level, _b = _a.displayTimeout, displayTimeout = _b === void 0 ? 4000 : _b, _c = _a.display, display = _c === void 0 ? true : _c, requireDismiss = _a.requireDismiss, onClose = _a.onClose, _d = _a.onCloseDelay, onCloseDelay = _d === void 0 ? displayTimeout : _d, children = _a.children, type = _a.type;
12967
+ var _e = useState('lui-msg-toast-show'), className = _e[0], setClassname = _e[1];
12968
+ var _f = useState(undefined), fadeOutTimer = _f[0], setFadeOutTimer = _f[1];
12969
+ var _g = useState(undefined), removeTimer = _g[0], setRemoveTimer = _g[1];
12970
12970
  var materialIcon = getMaterialIconForLevel(level);
12971
12971
  var callOnCloseAfterDissolved = function () {
12972
12972
  // This is so the caller can remove it from the dom
12973
12973
  if (onClose) {
12974
- var timer = window.setTimeout(onClose, displayTimeout);
12974
+ var timer = window.setTimeout(onClose, onCloseDelay);
12975
12975
  setRemoveTimer(timer);
12976
12976
  }
12977
12977
  };
@@ -47258,7 +47258,7 @@ styleInject(css_248z$4);
47258
47258
  var id = 0;
47259
47259
  var getKey = function () { return id++; };
47260
47260
  var LuiTooltip = function (props) {
47261
- 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;
47261
+ 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;
47262
47262
  var id = "LuiToolTip_".concat(useMemo(getKey, []));
47263
47263
  if (typeof message !== 'string') {
47264
47264
  throw new Error('LuiTooltip message must be a string!');
@@ -47270,7 +47270,7 @@ var LuiTooltip = function (props) {
47270
47270
  trigger: trigger,
47271
47271
  theme: mode,
47272
47272
  placement: placement,
47273
- offset: [0, 18],
47273
+ offset: offset,
47274
47274
  animation: animation,
47275
47275
  followCursor: followCursor$1,
47276
47276
  interactive: interactive,