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