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