UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 1.39 kB
var o=(...n)=>n.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?o(...e):typeof e=="object"?Object.keys(e).map((t,a)=>e[a]||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 c="stack-layout",m="stacklayout";import{jsx as p}from"react/jsx-runtime";var h=[],k={orientation:["horizontal","vertical"],alignItems:["start","center","end","stretch"],justifyContent:["start","center","end","stretch"],justifyItems:["start","center","end","stretch"]},r={orientation:null,alignItems:null,justifyContent:null,justifyItems:null,wrap:!1},s=n=>{let{gap:e,orientation:t=r.orientation,alignItems:a=r.alignItems,justifyContent:l=r.justifyContent,justifyItems:d=r.justifyItems,wrap:x=r.wrap,style:y,...g}=n;return p("div",{...g,style:{gap:e,...y},className:o(n.className,{[`k-${u.orientationMap[t]||t}`]:t,[`k-align-items-${a}`]:a,[`k-justify-content-${l}`]:l,[`k-justify-items-${d}`]:d,"k-flex-wrap":x}),children:n.children})};s.states=h;s.options=k;s.defaultOptions=r;import{jsx as v}from"react/jsx-runtime";var f="k-stack-layout",L=[],A={},i=n=>{let{className:e,...t}=n;return v(s,{...t,className:o(e,f),children:n.children})};i.states=L;i.options=A;i.className=f;i.moduleName=c;i.folderName=m;var P=i;export{f as STACKLAYOUT_CLASSNAME,i as StackLayout,P as default};