@choice-ui/react 1.5.0 → 1.5.2

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 @@ function getChildRef(children) {
6
6
  if (IS_REACT_19) {
7
7
  return children.props.ref;
8
8
  }
9
- return children.ref;
9
+ return void 0;
10
10
  }
11
11
  const Slot = forwardRef(
12
12
  ({ children, ...slotProps }, forwardedRef) => {
@@ -1,7 +1,7 @@
1
1
  import { Kbd } from "../../kbd/dist/index.js";
2
2
  import { useMergeRefs, useDelayGroup, useTransitionStyles, FloatingPortal, offset, flip, shift, arrow, useFloating, autoUpdate, useHover, useFocus, useDismiss, useRole, useInteractions } from "@floating-ui/react";
3
3
  import { FloatingDelayGroup } from "@floating-ui/react";
4
- import React, { forwardRef, createContext, useMemo, useState, useRef, useContext } from "react";
4
+ import { forwardRef, createContext, useMemo, useState, useRef, useContext } from "react";
5
5
  import { jsxs, jsx } from "react/jsx-runtime";
6
6
  import { Slot } from "../../slot/dist/index.js";
7
7
  import { tcv, tcx } from "../../../shared/utils/tcx/tcx.js";
@@ -183,8 +183,7 @@ var TooltipContent = forwardRef(
183
183
  var TooltipTrigger = forwardRef(
184
184
  function TooltipTrigger2({ children, ...props }, propRef) {
185
185
  const state = useTooltipState();
186
- const childrenRef = React.isValidElement(children) ? children.props.ref : void 0;
187
- const ref = useMergeRefs([state.refs.setReference, propRef, childrenRef]);
186
+ const ref = useMergeRefs([state.refs.setReference, propRef]);
188
187
  return /* @__PURE__ */ jsx(
189
188
  Slot,
190
189
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choice-ui/react",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "A desktop-first React UI component library built for professional desktop applications with comprehensive documentation",
5
5
  "sideEffects": false,
6
6
  "type": "module",