UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 896 B
var r=(...l)=>l.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?r(...e):typeof e=="object"?Object.keys(e).map((t,n)=>e[n]||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={},i={orientation:null,alignItems:null,justifyContent:null,justifyItems:null,wrap:!1},a=l=>{let{gap:e,orientation:t=i.orientation,alignItems:n=i.alignItems,justifyContent:s=i.justifyContent,justifyItems:o=i.justifyItems,wrap:u=i.wrap,style:c,...m}=l;return x("div",{...m,style:{gap:e,...c},className:r(l.className,{[`k-${d.orientationMap[t]||t}`]:t,[`k-align-items-${n}`]:n,[`k-justify-content-${s}`]:s,[`k-justify-items-${o}`]:o,"k-flex-wrap":u}),children:l.children})};a.states=f;a.options=g;var w=a;export{a as Layout,w as default};