@sanity/ui 2.3.6-canary.6 → 2.3.7-canary.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/dist/index.compiled.mjs +3 -1
- package/dist/index.compiled.mjs.map +1 -1
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/core/primitives/tooltip/tooltip.tsx +4 -0
package/dist/index.mjs
CHANGED
|
@@ -4449,7 +4449,9 @@ const Root$a = styled(Layer)`
|
|
|
4449
4449
|
ref.current = node, refs.setFloating(node);
|
|
4450
4450
|
},
|
|
4451
4451
|
[refs]
|
|
4452
|
-
), childRef = useRef(null)
|
|
4452
|
+
), childRef = useRef(null);
|
|
4453
|
+
useImperativeHandle(childProp == null ? void 0 : childProp.ref, () => childRef.current);
|
|
4454
|
+
const child = useMemo(() => childProp ? cloneElement(childProp, {
|
|
4453
4455
|
onBlur: handleBlur,
|
|
4454
4456
|
onFocus: handleFocus,
|
|
4455
4457
|
onMouseEnter: handleMouseEnter,
|