@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 1.54 kB
JavaScript
var a=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var k=(t,e)=>{for(var n in e)a(t,n,{get:e[n],enumerable:!0})},v=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of h(e))!y.call(t,i)&&i!==n&&a(t,i,{get:()=>e[i],enumerable:!(r=x(e,i))||r.enumerable});return t};var $=t=>v(a({},"__esModule",{value:!0}),t);var I={};k(I,{Layout:()=>o,default:()=>p});module.exports=$(I);var s=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?s(...e):typeof e=="object"?Object.keys(e).map((n,r)=>e[r]||e[n]&&n||null).filter(n=>n!==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=require("react/jsx-runtime"),j=[],b={orientation:["horizontal","vertical"],alignItems:["start","center","end","stretch"],justifyContent:["start","center","end","stretch"],justifyItems:["start","center","end","stretch"]},l={orientation:null,alignItems:null,justifyContent:null,justifyItems:null,wrap:!1},o=t=>{let{gap:e,orientation:n=l.orientation,alignItems:r=l.alignItems,justifyContent:i=l.justifyContent,justifyItems:d=l.justifyItems,wrap:m=l.wrap,style:f,...g}=t;return(0,c.jsx)("div",{...g,style:{gap:e,...f},className:s(t.className,{[`k-${u.orientationMap[n]||n}`]:n,[`k-align-items-${r}`]:r,[`k-justify-content-${i}`]:i,[`k-justify-items-${d}`]:d,"k-flex-wrap":m}),children:t.children})};o.states=j;o.options=b;o.defaultOptions=l;var p=o;