@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
10 lines (9 loc) • 1.25 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";
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),o=require("@progress/kendo-react-common"),r=require("@progress/kendo-react-intl"),m=require("./GridState.js"),g=require("./utils/index.js");function y(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const i=y(b),p=e=>{const n=o.useId(),t=e.id||n,c=o.useUnstyled(),a=r.useLocalization(),s=r.useInternationalization(),[,l]=i.useReducer(R=>!R,!0),u=i.useRef(0),[d,,f]=m.useGridState();return g.cloneReactElement(e.children,{...d,...f,id:t,unstyled:c,localization:a,intl:s,scrollLeftRef:u,forceUpdate:l,isClient:!0})};exports.GridClientContextReader=p;