UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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