@fluid-topics/ft-tooltip 1.3.14 → 1.3.16

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.
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { html } from "lit";
8
8
  import { eventOptions, property, query, queryAssignedNodes, state } from "lit/decorators.js";
9
- import { Debouncer, FtLitElement } from "@fluid-topics/ft-wc-utils";
9
+ import { Debouncer, designSystemVariables, FtLitElement } from "@fluid-topics/ft-wc-utils";
10
10
  import { FtTypography } from "@fluid-topics/ft-typography";
11
11
  import { styles } from "./ft-tooltip.styles";
12
12
  import { computeOffsetPosition } from "@fluid-topics/ft-wc-utils/build/floating";
@@ -55,7 +55,7 @@ class FtTooltip extends FtLitElement {
55
55
  }
56
56
  contentAvailableCallback(props) {
57
57
  super.contentAvailableCallback(props);
58
- if (["visible", "text"].some(p => props.has(p)) && this.visible) {
58
+ if (["visible", "text"].some((p) => props.has(p)) && this.visible) {
59
59
  this.positionTooltip();
60
60
  }
61
61
  }
@@ -84,7 +84,7 @@ class FtTooltip extends FtLitElement {
84
84
  }
85
85
  get slottedElement() {
86
86
  var _a;
87
- return ((_a = this.slotNodes) !== null && _a !== void 0 ? _a : []).filter(node => node.nodeType == Node.ELEMENT_NODE)[0];
87
+ return ((_a = this.slotNodes) !== null && _a !== void 0 ? _a : []).filter((node) => node.nodeType == Node.ELEMENT_NODE)[0];
88
88
  }
89
89
  resetTooltipContent() {
90
90
  if (this.tooltip && this.tooltipContent) {
@@ -125,8 +125,7 @@ class FtTooltip extends FtLitElement {
125
125
  }
126
126
  this.revealDebouncer.run(() => {
127
127
  if (this.tooltipContent) {
128
- this.tooltipContent.style.transition = "top var(--ft-transition-duration, 250ms), " +
129
- "left var(--ft-transition-duration, 250ms)";
128
+ this.tooltipContent.style.transition = `top ${designSystemVariables.transitionDuration}, left ${designSystemVariables.transitionDuration}`;
130
129
  this.tooltipContent.style.top = "0";
131
130
  this.tooltipContent.style.left = "0";
132
131
  }