@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
14 lines (13 loc) • 337 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ownerDocument = ownerDocument;
exports.ownerWindow = ownerWindow;
function ownerDocument(node) {
return node && node.ownerDocument || document;
}
function ownerWindow(node) {
const doc = ownerDocument(node);
return doc.defaultView || window;
}