UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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