@vx-oss/heroui-v2-tooltip 2.2.25-alpha.2 → 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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useTooltip
4
- } from "./chunk-ZQCIM4IR.mjs";
4
+ } from "./chunk-YYVKDEH6.mjs";
5
5
 
6
6
  // src/tooltip.tsx
7
7
  import { forwardRef } from "@vx-oss/heroui-v2-system";
@@ -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 { clsx, dataAttr, objectToDeps, mergeProps } from "@vx-oss/heroui-v2-shared-utils";
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: clsx(classNames == null ? void 0 : classNames.content, className) })
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, import_heroui_v2_shared_utils.clsx)(classNames == null ? void 0 : classNames.content, className) })
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
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  tooltip_default
4
- } from "./chunk-JMIJGG7Q.mjs";
4
+ } from "./chunk-XZFUWJYT.mjs";
5
5
  import {
6
6
  useTooltip
7
- } from "./chunk-ZQCIM4IR.mjs";
7
+ } from "./chunk-YYVKDEH6.mjs";
8
8
  export {
9
9
  tooltip_default as Tooltip,
10
10
  useTooltip
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, import_heroui_v2_shared_utils.clsx)(classNames == null ? void 0 : classNames.content, className) })
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
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  tooltip_default
4
- } from "./chunk-JMIJGG7Q.mjs";
5
- import "./chunk-ZQCIM4IR.mjs";
4
+ } from "./chunk-XZFUWJYT.mjs";
5
+ import "./chunk-YYVKDEH6.mjs";
6
6
  export {
7
7
  tooltip_default as default
8
8
  };
@@ -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, import_heroui_v2_shared_utils.clsx)(classNames == null ? void 0 : classNames.content, className) })
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
  );
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useTooltip
4
- } from "./chunk-ZQCIM4IR.mjs";
4
+ } from "./chunk-YYVKDEH6.mjs";
5
5
  export {
6
6
  useTooltip
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vx-oss/heroui-v2-tooltip",
3
- "version": "2.2.25-alpha.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.24-alpha.0",
32
- "@vx-oss/heroui-v2-system": ">=2.4.24-alpha.0"
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.30.0",
36
- "@react-aria/tooltip": "3.8.8",
37
- "@react-stately/tooltip": "3.5.8",
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.4.21",
40
- "@vx-oss/heroui-v2-shared-utils": "2.1.13-alpha.2",
41
- "@vx-oss/heroui-v2-react-utils": "2.1.15-alpha.2",
42
- "@vx-oss/heroui-v2-aria-utils": "2.2.25-alpha.2",
43
- "@vx-oss/heroui-v2-framer-utils": "2.1.24-alpha.2",
44
- "@vx-oss/heroui-v2-use-safe-layout-effect": "2.1.9-alpha.2",
45
- "@vx-oss/heroui-v2-use-aria-overlay": "2.0.5-alpha.2",
46
- "@vx-oss/heroui-v2-dom-animation": "2.1.11-alpha.2"
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",