@versini/ui-tooltip 6.2.1 → 6.3.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/index.d.ts CHANGED
@@ -2,58 +2,69 @@ import { JSX } from 'react';
2
2
 
3
3
  declare type Placement = "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
4
4
 
5
- export declare const Tooltip: ({ trigger, label, placement, mode, animationDuration, delay, className, tooltipClassName, arrowClassName, }: TooltipTypes.Props) => JSX.Element;
5
+ export declare const Tooltip: ({ trigger, label, placement, mode, animationDuration, delay, className, tooltipClassName, arrowClassName, }: TooltipProps) => JSX.Element;
6
6
 
7
7
  export declare const TOOLTIP_ARROW_CLASSNAME = "av-tooltip-arrow";
8
8
 
9
9
  export declare const TOOLTIP_CLASSNAME = "av-tooltip";
10
10
 
11
+ export declare type TooltipProps = {
12
+ /**
13
+ * CSS class(es) to add to the main component wrapper. This is different from
14
+ * the tooltip itself and should be used to style the main component wrapper,
15
+ * such as margins, padding, etc.
16
+ */
17
+ className?: string;
18
+ /**
19
+ * CSS class(es) to add to the tooltip. This is different from the main
20
+ * component wrapper and should be used to style the tooltip itself, such as
21
+ * background color, text color, etc.
22
+ */
23
+ tooltipClassName?: string;
24
+ /**
25
+ * CSS class(es) to add to the arrow portion of the tooltip.
26
+ */
27
+ arrowClassName?: string;
28
+ /**
29
+ * The label to show in the tooltip.
30
+ */
31
+ label: string;
32
+ /**
33
+ * The trigger element for the tooltip.
34
+ */
35
+ trigger: React.ReactNode;
36
+ /**
37
+ * The placement of the tooltip.
38
+ * @default top
39
+ */
40
+ placement?: Placement;
41
+ /**
42
+ * The mode of tooltip. This will change the color of the tooltip.
43
+ */
44
+ mode?: "dark" | "light" | "system" | "alt-system";
45
+ /**
46
+ * The duration in milliseconds of the tooltip fade-in animation.
47
+ * @default 300
48
+ */
49
+ animationDuration?: number;
50
+ /**
51
+ * The delay in milliseconds before showing the tooltip after hovering.
52
+ * @default 0
53
+ */
54
+ delay?: number;
55
+ };
56
+
57
+ /**
58
+ * Compatibility shim left over from the retired `@versini/ui-types`. The flat
59
+ * `TooltipProps` above is the house convention and the canonical definition;
60
+ * this namespace only aliases it. See "Props type naming" in CLAUDE.md. Removal
61
+ * is tracked in versini-org/ui-components#1990.
62
+ */
11
63
  export declare namespace TooltipTypes {
12
- export type Props = {
13
- /**
14
- * CSS class(es) to add to the main component wrapper. This is different from
15
- * the tooltip itself and should be used to style the main component wrapper,
16
- * such as margins, padding, etc.
17
- */
18
- className?: string;
19
- /**
20
- * CSS class(es) to add to the tooltip. This is different from the main
21
- * component wrapper and should be used to style the tooltip itself, such as
22
- * background color, text color, etc.
23
- */
24
- tooltipClassName?: string;
25
- /**
26
- * CSS class(es) to add to the arrow portion of the tooltip.
27
- */
28
- arrowClassName?: string;
29
- /**
30
- * The label to show in the tooltip.
31
- */
32
- label: string;
33
- /**
34
- * The trigger element for the tooltip.
35
- */
36
- trigger: React.ReactNode;
37
- /**
38
- * The placement of the tooltip.
39
- * @default top
40
- */
41
- placement?: Placement;
42
- /**
43
- * The mode of tooltip. This will change the color of the tooltip.
44
- */
45
- mode?: "dark" | "light" | "system" | "alt-system";
46
- /**
47
- * The duration in milliseconds of the tooltip fade-in animation.
48
- * @default 300
49
- */
50
- animationDuration?: number;
51
- /**
52
- * The delay in milliseconds before showing the tooltip after hovering.
53
- * @default 0
54
- */
55
- delay?: number;
56
- };
64
+ /**
65
+ * @deprecated Use `TooltipProps` instead.
66
+ */
67
+ export type Props = TooltipProps;
57
68
  }
58
69
 
59
70
  export { }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-tooltip v6.2.1
2
+ @versini/ui-tooltip v6.3.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-tooltip",
3
- "version": "6.2.1",
3
+ "version": "6.3.1",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -50,5 +50,5 @@
50
50
  "peerDependencies": {
51
51
  "react": "^19.0.0"
52
52
  },
53
- "gitHead": "8edfc28ac74f82af2ecdd5c639534f0be6fe4044"
53
+ "gitHead": "065479294f4135e164fcf2df90219feb169104f7"
54
54
  }