node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import {useState as $jNFHB$useState, useEffect as $jNFHB$useEffect} from "react";
import {observeElementRect as $jNFHB$observeElementRect} from "@radix-ui/rect";
/**
* Use this custom hook to get access to an element's rect (getBoundingClientRect)
* and observe it along time.
*/ function $ccac1052a272b78b$export$9823a655542017cd(measurable) {
const [rect, setRect] = $jNFHB$useState();
$jNFHB$useEffect(()=>{
if (measurable) {
const unobserve = $jNFHB$observeElementRect(measurable, setRect);
return ()=>{
setRect(undefined);
unobserve();
};
}
return;
}, [
measurable
]);
return rect;
}
export {$ccac1052a272b78b$export$9823a655542017cd as useRect};
//# sourceMappingURL=index.mjs.map