UNPKG

@progress/kendo-react-data-tools

Version:

Includes React Pager & React Filter component, an intuitive interface to create complex filter descriptions. KendoReact Data Tools package

44 lines (43 loc) 1.43 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use client"; import * as e from "react"; import { createPortal as r } from "react-dom"; import { canUseDOM as s } from "@progress/kendo-react-common"; class a extends e.PureComponent { constructor(t) { super(t), this.state = { height: 0, visible: !1, left: 0, top: 0 }, this.hiddenElementRef = e.createRef(); } render() { const t = this.hiddenElementRef.current, n = this.state.visible && s && r( /* @__PURE__ */ e.createElement( "div", { className: "k-grouping-dropclue", style: { zIndex: 1e4, display: "block", top: this.state.top + "px", left: this.state.left + "px", height: this.state.height + "px" } } ), t && t.ownerDocument ? t.ownerDocument.body : document.body ); return /* @__PURE__ */ e.createElement(e.Fragment, null, n, /* @__PURE__ */ e.createElement("div", { ref: this.hiddenElementRef, style: { display: "none" } })); } } export { a as DropClue };