UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 1.38 kB
var d=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var k=Object.prototype.hasOwnProperty;var v=(t,e)=>{for(var l in e)d(t,l,{get:e[l],enumerable:!0})},$=(t,e,l,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!k.call(t,n)&&n!==l&&d(t,n,{get:()=>e[n],enumerable:!(i=h(e,n))||i.enumerable});return t};var j=t=>$(d({},"__esModule",{value:!0}),t);var w={};v(w,{Layout:()=>o,default:()=>z});module.exports=j(w);var r=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?r(...e):typeof e=="object"?Object.keys(e).map((l,i)=>e[i]||e[l]&&l||null).filter(l=>l!==null).join(" "):e).filter(e=>!!e).join(" ");var c={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var m=require("react/jsx-runtime"),M=[],b={},a={type:null,orientation:null,alignItems:null,justifyContent:null,justifyItems:null,wrap:!1},o=t=>{let{gap:e,type:l=a.type,orientation:i=a.orientation,alignItems:n=a.alignItems,justifyContent:s=a.justifyContent,justifyItems:u=a.justifyItems,wrap:f=a.wrap,style:x,...y}=t;return(0,m.jsx)("div",{...y,style:{gap:e,...x},className:r(t.className,{[`k-${l}-layout`]:l,[`k-${c.orientationMap[i]||i}`]:i,[`k-align-items-${n}`]:n,[`k-justify-content-${s}`]:s,[`k-justify-items-${u}`]:u,"k-flex-wrap":f}),children:t.children})};o.states=M;o.options=b;var z=o;