@progress/kendo-react-layout
Version:
React Layout components enable you to create a perceptive and intuitive layout of web projects. KendoReact Layout package
9 lines (8 loc) • 1.65 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
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react"),r=require("prop-types"),g=require("@progress/kendo-react-common"),c=require("./interfaces/Enums.js");function R(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const n=R(O),i=n.forwardRef((e,a)=>{const{children:t,dir:o,style:f,className:m,type:s=p.type,orientation:l=p.orientation,...y}=e,d=n.useRef(null),u=n.useRef(null);return n.useImperativeHandle(d,()=>({element:u.current,props:e})),n.useImperativeHandle(a,()=>d.current),n.createElement("div",{dir:o,style:f,ref:u,className:g.classNames("k-card",m,{[`k-card-${s}`]:s!==c.cardType.DEFAULT},l===null?void 0:l!==c.cardOrientation.HORIZONTAL?"k-card-vertical":"k-card-horizontal"),...y},t)});i.displayName="KendoReactCard";i.propTypes={children:r.node,className:r.string,dir:r.string,orientation:r.oneOf(["horizontal","vertical"]),style:r.object,type:r.oneOf(["default","primary","info","success","warning","error"])};const p={type:c.cardType.DEFAULT,orientation:c.cardOrientation.VERTICAL};exports.Card=i;