@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
23 lines (22 loc) • 1.31 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
*-------------------------------------------------------------------------------------------
*/
"use client";
import * as t from "react";
import { getGroupCellTdProps as P, getCustomCell as g } from "./utils.mjs";
import { useGroupCellClientTdProps as y } from "./useGroupCellClientTdProps.mjs";
import { useLegacyCellProps as f } from "../hooks.mjs";
const b = (u) => {
const { cellProps: l } = u, { tdProps: e, td2Props: r, content: s, renderToggleCell: d } = P(l), o = y(l, d), i = f(l), a = { ...l, ...i }, c = { ...e, ...o, style: { ...e == null ? void 0 : e.style, ...o.style } }, n = r ? { ...r, onContextMenu: o.onContextMenu } : null, m = g(l);
if (m)
return /* @__PURE__ */ t.createElement(m, { ...a, tdProps: c, td2Props: n }, s);
const C = e ? /* @__PURE__ */ t.createElement("td", { ...c, key: e == null ? void 0 : e.key }, s) : null, p = n ? /* @__PURE__ */ t.createElement("td", { ...n }) : null;
return p ? /* @__PURE__ */ t.createElement(t.Fragment, null, C, p) : C;
};
export {
b as GridGroupCell
};