@progress/kendo-react-spreadsheet
Version:
KendoReact Spreadsheet package
32 lines (31 loc) • 1.47 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import * as e from "react";
import { IconWrap as n } from "@progress/kendo-react-common";
import { formulaFxIcon as c } from "@progress/kendo-svg-icons";
const r = e.forwardRef((a, m) => {
const l = e.useRef(null), s = e.useRef(null);
return e.useImperativeHandle(l, () => ({
element: s.current,
props: a
})), e.useImperativeHandle(m, () => l.current), /* @__PURE__ */ e.createElement("div", { className: "k-list k-list-md" }, /* @__PURE__ */ e.createElement("div", { className: "k-list-content" }, /* @__PURE__ */ e.createElement(
"ul",
{
ref: s,
className: "k-spreadsheet-formula-list k-list-ul",
onMouseDown: (t) => t.preventDefault(),
style: { maxHeight: 280 }
},
a.data.map((t) => /* @__PURE__ */ e.createElement("li", { key: t.text, className: "k-list-item", onClick: () => a.onItemClick(t.value) }, /* @__PURE__ */ e.createElement(n, { name: "formula-fx", icon: c }), /* @__PURE__ */ e.createElement("span", { className: "k-list-item-text" }, t.text)))
)));
});
r.displayName = "List";
r.propTypes = {};
export {
r as List
};