@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
10 lines • 491 B
JavaScript
import { getCssDimensions } from './getCssDimensions';
import { getOffsetParent } from './getOffsetParent';
import { getRectRelativeToOffsetParent } from './getRectRelativeToOffsetParent';
export const getElementRects = ({ reference, floating, strategy, }) => {
return {
reference: getRectRelativeToOffsetParent(reference, getOffsetParent(floating), strategy),
floating: { x: 0, y: 0, ...getCssDimensions(floating) },
};
};
//# sourceMappingURL=getElementRects.js.map