@vx-oss/heroui-v2-tooltip 2.2.25-alpha.1 → 2.2.28-beta.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.
- package/LICENSE +8 -9
- package/dist/{chunk-JMIJGG7Q.mjs → chunk-XZFUWJYT.mjs} +1 -1
- package/dist/{chunk-ZQCIM4IR.mjs → chunk-YYVKDEH6.mjs} +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/tooltip.js +1 -1
- package/dist/tooltip.mjs +2 -2
- package/dist/use-tooltip.js +1 -1
- package/dist/use-tooltip.mjs +1 -1
- package/package.json +14 -14
package/LICENSE
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
SPDX-License-Identifier: MIT
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Creator / Maintainer : Vezham Technologies Private Limited
|
|
8
|
-
Original Author : NextUI Inc
|
|
9
|
-
Licensor : Vezham Technologies Private Limited
|
|
3
|
+
Attribution:
|
|
4
|
+
Creator / Maintainer : Vezham Technologies Private Limited
|
|
5
|
+
Original Author : NextUI Inc
|
|
6
|
+
Licensor : Vezham Technologies Private Limited
|
|
10
7
|
|
|
11
|
-
Copyright
|
|
12
|
-
Copyright (c)
|
|
8
|
+
Copyright (c) 2020 NextUI Inc.
|
|
9
|
+
Copyright (c) 2025 Vezham Technologies Private Limited. All rights reserved.
|
|
13
10
|
|
|
14
11
|
---
|
|
15
12
|
|
|
13
|
+
The MIT License (MIT)
|
|
14
|
+
|
|
16
15
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
17
16
|
of this software and associated documentation files (the "Software"), to deal
|
|
18
17
|
in the Software without restriction, including without limitation the rights
|
|
@@ -6,8 +6,8 @@ import { useTooltipTriggerState } from "@react-stately/tooltip";
|
|
|
6
6
|
import { useTooltip as useReactAriaTooltip, useTooltipTrigger } from "@react-aria/tooltip";
|
|
7
7
|
import { useOverlayPosition } from "@react-aria/overlays";
|
|
8
8
|
import { mapPropsVariants, useProviderContext } from "@vx-oss/heroui-v2-system";
|
|
9
|
-
import { popover } from "@vx-oss/heroui-v2-theme";
|
|
10
|
-
import {
|
|
9
|
+
import { popover, cn } from "@vx-oss/heroui-v2-theme";
|
|
10
|
+
import { dataAttr, objectToDeps, mergeProps } from "@vx-oss/heroui-v2-shared-utils";
|
|
11
11
|
import { mergeRefs } from "@vx-oss/heroui-v2-react-utils";
|
|
12
12
|
import { createDOMRef } from "@vx-oss/heroui-v2-react-utils";
|
|
13
13
|
import { useMemo, useRef, useCallback } from "react";
|
|
@@ -180,7 +180,7 @@ function useTooltip(originalProps) {
|
|
|
180
180
|
"data-arrow": dataAttr(showArrow),
|
|
181
181
|
"data-disabled": dataAttr(isDisabled),
|
|
182
182
|
"data-placement": getArrowPlacement(placement || "top", placementProp),
|
|
183
|
-
className: slots.content({ class:
|
|
183
|
+
className: slots.content({ class: cn(classNames == null ? void 0 : classNames.content, className) })
|
|
184
184
|
}),
|
|
185
185
|
[slots, isOpen, showArrow, isDisabled, placement, placementProp, classNames]
|
|
186
186
|
);
|
package/dist/index.js
CHANGED
|
@@ -225,7 +225,7 @@ function useTooltip(originalProps) {
|
|
|
225
225
|
"data-arrow": (0, import_heroui_v2_shared_utils.dataAttr)(showArrow),
|
|
226
226
|
"data-disabled": (0, import_heroui_v2_shared_utils.dataAttr)(isDisabled),
|
|
227
227
|
"data-placement": (0, import_heroui_v2_aria_utils.getArrowPlacement)(placement || "top", placementProp),
|
|
228
|
-
className: slots.content({ class: (0,
|
|
228
|
+
className: slots.content({ class: (0, import_heroui_v2_theme.cn)(classNames == null ? void 0 : classNames.content, className) })
|
|
229
229
|
}),
|
|
230
230
|
[slots, isOpen, showArrow, isDisabled, placement, placementProp, classNames]
|
|
231
231
|
);
|
package/dist/index.mjs
CHANGED
package/dist/tooltip.js
CHANGED
|
@@ -222,7 +222,7 @@ function useTooltip(originalProps) {
|
|
|
222
222
|
"data-arrow": (0, import_heroui_v2_shared_utils.dataAttr)(showArrow),
|
|
223
223
|
"data-disabled": (0, import_heroui_v2_shared_utils.dataAttr)(isDisabled),
|
|
224
224
|
"data-placement": (0, import_heroui_v2_aria_utils.getArrowPlacement)(placement || "top", placementProp),
|
|
225
|
-
className: slots.content({ class: (0,
|
|
225
|
+
className: slots.content({ class: (0, import_heroui_v2_theme.cn)(classNames == null ? void 0 : classNames.content, className) })
|
|
226
226
|
}),
|
|
227
227
|
[slots, isOpen, showArrow, isDisabled, placement, placementProp, classNames]
|
|
228
228
|
);
|
package/dist/tooltip.mjs
CHANGED
package/dist/use-tooltip.js
CHANGED
|
@@ -203,7 +203,7 @@ function useTooltip(originalProps) {
|
|
|
203
203
|
"data-arrow": (0, import_heroui_v2_shared_utils.dataAttr)(showArrow),
|
|
204
204
|
"data-disabled": (0, import_heroui_v2_shared_utils.dataAttr)(isDisabled),
|
|
205
205
|
"data-placement": (0, import_heroui_v2_aria_utils.getArrowPlacement)(placement || "top", placementProp),
|
|
206
|
-
className: slots.content({ class: (0,
|
|
206
|
+
className: slots.content({ class: (0, import_heroui_v2_theme.cn)(classNames == null ? void 0 : classNames.content, className) })
|
|
207
207
|
}),
|
|
208
208
|
[slots, isOpen, showArrow, isDisabled, placement, placementProp, classNames]
|
|
209
209
|
);
|
package/dist/use-tooltip.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vx-oss/heroui-v2-tooltip",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.28-beta.0",
|
|
4
4
|
"description": "A React Component for rendering dynamically positioned Tooltips",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tooltip"
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
"react": ">=18 || >=19.0.0-rc.0",
|
|
29
29
|
"react-dom": ">=18 || >=19.0.0-rc.0",
|
|
30
30
|
"framer-motion": ">=11.5.6 || >=12.0.0-alpha.1",
|
|
31
|
-
"@vx-oss/heroui-v2-theme": ">=2.4.
|
|
32
|
-
"@vx-oss/heroui-v2-system": ">=2.4.
|
|
31
|
+
"@vx-oss/heroui-v2-theme": ">=2.4.27-beta.0",
|
|
32
|
+
"@vx-oss/heroui-v2-system": ">=2.4.27-beta.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@react-aria/overlays": "3.
|
|
36
|
-
"@react-aria/tooltip": "3.
|
|
37
|
-
"@react-stately/tooltip": "3.5.
|
|
35
|
+
"@react-aria/overlays": "3.31.0",
|
|
36
|
+
"@react-aria/tooltip": "3.9.0",
|
|
37
|
+
"@react-stately/tooltip": "3.5.9",
|
|
38
38
|
"@react-types/overlays": "3.9.2",
|
|
39
|
-
"@react-types/tooltip": "3.
|
|
40
|
-
"@vx-oss/heroui-v2-shared-utils": "2.1.13-
|
|
41
|
-
"@vx-oss/heroui-v2-react-utils": "2.1.15-
|
|
42
|
-
"@vx-oss/heroui-v2-aria-utils": "2.2.
|
|
43
|
-
"@vx-oss/heroui-v2-use-safe-layout-effect": "2.1.9-
|
|
44
|
-
"@vx-oss/heroui-v2-framer-utils": "2.1.
|
|
45
|
-
"@vx-oss/heroui-v2-use-aria-overlay": "2.0.
|
|
46
|
-
"@vx-oss/heroui-v2-dom-animation": "2.1.11-
|
|
39
|
+
"@react-types/tooltip": "3.5.0",
|
|
40
|
+
"@vx-oss/heroui-v2-shared-utils": "2.1.13-beta.0",
|
|
41
|
+
"@vx-oss/heroui-v2-react-utils": "2.1.15-beta.0",
|
|
42
|
+
"@vx-oss/heroui-v2-aria-utils": "2.2.28-beta.0",
|
|
43
|
+
"@vx-oss/heroui-v2-use-safe-layout-effect": "2.1.9-beta.0",
|
|
44
|
+
"@vx-oss/heroui-v2-framer-utils": "2.1.27-beta.0",
|
|
45
|
+
"@vx-oss/heroui-v2-use-aria-overlay": "2.0.6-beta.0",
|
|
46
|
+
"@vx-oss/heroui-v2-dom-animation": "2.1.11-beta.0"
|
|
47
47
|
},
|
|
48
48
|
"clean-package": "../../../clean-package.config.json",
|
|
49
49
|
"module": "dist/index.mjs",
|