@sanity/ui 2.3.5 → 2.3.6-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.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 +25 -33
- package/src/core/primitives/tooltip/tooltip.tsx +4 -0
package/dist/index.js
CHANGED
|
@@ -4467,7 +4467,9 @@ const Root$a = styledComponents.styled(Layer)`
|
|
|
4467
4467
|
ref.current = node, refs.setFloating(node);
|
|
4468
4468
|
},
|
|
4469
4469
|
[refs]
|
|
4470
|
-
), childRef = react.useRef(null)
|
|
4470
|
+
), childRef = react.useRef(null);
|
|
4471
|
+
react.useImperativeHandle(childProp == null ? void 0 : childProp.ref, () => childRef.current);
|
|
4472
|
+
const child = react.useMemo(() => childProp ? react.cloneElement(childProp, {
|
|
4471
4473
|
onBlur: handleBlur,
|
|
4472
4474
|
onFocus: handleFocus,
|
|
4473
4475
|
onMouseEnter: handleMouseEnter,
|