@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
36 lines (35 loc) • 1.27 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 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 { useId as y, useUnstyled as z } from "@progress/kendo-react-common";
import { useLocalization as C, useInternationalization as I } from "@progress/kendo-react-intl";
import { useGridState as b } from "./GridState.mjs";
import { cloneReactElement as g } from "./utils/index.mjs";
const H = (t) => {
const o = y(), n = t.id || o, s = z(), i = C(), c = I(), [, r] = e.useReducer((h) => !h, !0), a = e.useRef(0), f = e.useRef(0), l = e.useRef(0), u = e.useRef(0), d = e.useRef(0), R = e.useRef("body"), [m, , p] = b();
return g(t.children, {
...m,
...p,
id: n,
unstyled: s,
localization: i,
intl: c,
scrollLeftRef: a,
widthRef: f,
containerHeightRef: l,
minRowHeightRef: u,
virtualSkipRef: d,
editZoneRef: R,
forceUpdate: r,
isClient: !0
});
};
export {
H as GridClientContextReader
};