UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 1.1 kB
var l=(...i)=>i.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?l(...e):typeof e=="object"?Object.keys(e).map((t,r)=>e[r]||e[t]&&t||null).filter(t=>t!==null).join(" "):e).filter(e=>!!e).join(" ");var d={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{jsx as x}from"react/jsx-runtime";var f=[],g={orientation:["horizontal","vertical"],alignItems:["start","center","end","stretch"],justifyContent:["start","center","end","stretch"],justifyItems:["start","center","end","stretch"]},n={orientation:null,alignItems:null,justifyContent:null,justifyItems:null,wrap:!1},o=i=>{let{gap:e,orientation:t=n.orientation,alignItems:r=n.alignItems,justifyContent:s=n.justifyContent,justifyItems:a=n.justifyItems,wrap:u=n.wrap,style:c,...m}=i;return x("div",{...m,style:{gap:e,...c},className:l(i.className,{[`k-${d.orientationMap[t]||t}`]:t,[`k-align-items-${r}`]:r,[`k-justify-content-${s}`]:s,[`k-justify-items-${a}`]:a,"k-flex-wrap":u}),children:i.children})};o.states=f;o.options=g;o.defaultOptions=n;var w=o;export{o as Layout,w as default};