@versini/ui-tooltip 4.0.7 → 5.0.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.
Files changed (2) hide show
  1. package/dist/index.js +9 -5
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  /*!
2
- @versini/ui-tooltip v4.0.7
2
+ @versini/ui-tooltip v5.0.0
3
3
  © 2025 gizmette.com
4
4
  */
5
5
  try {
6
6
  if (!window.__VERSINI_UI_TOOLTIP__) {
7
7
  window.__VERSINI_UI_TOOLTIP__ = {
8
- version: "4.0.7",
9
- buildTime: "12/16/2025 01:51 PM EST",
8
+ version: "5.0.0",
9
+ buildTime: "12/16/2025 06:23 PM EST",
10
10
  homepage: "https://www.npmjs.com/package/@versini/ui-tooltip",
11
11
  license: "MIT",
12
12
  };
@@ -17,7 +17,8 @@ try {
17
17
 
18
18
  import { jsx, jsxs } from "react/jsx-runtime";
19
19
  import { arrow as dom_arrow, computePosition, flip, offset, shift } from "@floating-ui/dom";
20
- import { useClickOutside, useInterval } from "@versini/ui-hooks";
20
+ import { useClickOutside } from "@versini/ui-hooks/use-click-outside";
21
+ import { useInterval } from "@versini/ui-hooks/use-interval";
21
22
  import { useCallback, useEffect, useRef, useState } from "react";
22
23
  import clsx from "clsx";
23
24
 
@@ -29,7 +30,9 @@ const TOOLTIP_ARROW_CLASSNAME = "av-tooltip-arrow";
29
30
 
30
31
  ;// CONCATENATED MODULE: external "@floating-ui/dom"
31
32
 
32
- ;// CONCATENATED MODULE: external "@versini/ui-hooks"
33
+ ;// CONCATENATED MODULE: external "@versini/ui-hooks/use-click-outside"
34
+
35
+ ;// CONCATENATED MODULE: external "@versini/ui-hooks/use-interval"
33
36
 
34
37
  ;// CONCATENATED MODULE: external "react"
35
38
 
@@ -91,6 +94,7 @@ const getAnimationStyles = ({ animationDuration = 300 })=>{
91
94
 
92
95
 
93
96
 
97
+
94
98
  const DEFAULT_DEACTIVATION_DELAY = 5000;
95
99
  const Tooltip = ({ trigger, label, placement = "top", mode = "system", animationDuration = 300, delay = 0, className, tooltipClassName, arrowClassName })=>{
96
100
  const referenceRef = useClickOutside(()=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-tooltip",
3
- "version": "4.0.7",
3
+ "version": "5.0.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -43,12 +43,12 @@
43
43
  "dependencies": {
44
44
  "@floating-ui/dom": "1.7.4",
45
45
  "@tailwindcss/typography": "0.5.19",
46
- "@versini/ui-hooks": "5.3.2",
46
+ "@versini/ui-hooks": "6.0.0",
47
47
  "clsx": "2.1.1",
48
48
  "tailwindcss": "4.1.18"
49
49
  },
50
50
  "sideEffects": [
51
51
  "**/*.css"
52
52
  ],
53
- "gitHead": "ef4323fa1f14f9f2a5471d71f063519230762aec"
53
+ "gitHead": "30d86d13d4369cc841fc267c970cca423d27bf2f"
54
54
  }