@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 1.49 kB
JavaScript
var s=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var k=Object.prototype.hasOwnProperty;var v=(n,e)=>{for(var t in e)s(n,t,{get:e[t],enumerable:!0})},y=(n,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of h(e))!k.call(n,r)&&r!==t&&s(n,r,{get:()=>e[r],enumerable:!(o=f(e,r))||o.enumerable});return n};var p=n=>y(s({},"__esModule",{value:!0}),n);var M={};v(M,{ORGCHARTGROUP_CLASSNAME:()=>c,OrgchartGroup:()=>i,default:()=>z});module.exports=p(M);var l=(...n)=>n.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?l(...e):typeof e=="object"?Object.keys(e).map((t,o)=>e[o]||e[t]&&t||null).filter(t=>t!==null).join(" "):e).filter(e=>!!e).join(" ");var u={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var a=require("react/jsx-runtime"),c="k-orgchart-group",$=[],b={},m={orientation:"horizontal"},i=n=>{let{children:e,nodes:t,orientation:o=m.orientation,justifyContent:r,level:g,...x}=n,d=g===1;return(0,a.jsxs)("div",{...x,className:l(c,"k-pos-absolute",{[`k-${u.orientationMap[o]||o}`]:o,[`k-justify-content-${r}`]:r,"k-orgchart-level-1":d}),role:d?"tree":"group","aria-orientation":d?"horizontal":void 0,style:{width:"100%"},children:[t&&(0,a.jsx)("div",{className:l("k-orgchart-node-container","k-justify-content-around",{[`k-${u.orientationMap[o]||o}`]:o}),role:"presentation",children:t}),e]})};i.states=$;i.options=b;i.className=c;i.defaultOptions=m;var z=i;