UNPKG

@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.33 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),a=require("prop-types"),s=require("@progress/kendo-react-common"),n=require("./interfaces/Enums.js");function l(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const u=l(i),c=t=>{const e={layout:n.cardActionsLayout.START,orientation:n.cardOrientation.HORIZONTAL,...t};return u.createElement("div",{style:e.style,className:s.classNames("k-card-actions","k-actions",e.className,`k-actions-${e.layout}`,e.orientation!==n.cardOrientation.VERTICAL?"k-actions-horizontal":"k-actions-vertical")},e.children)};c.propTypes={layout:a.oneOf(["stretched","start","center","end"]),orientation:a.oneOf(["horizontal","vertical"])};exports.CardActions=c;