@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 947 B
JavaScript
var r=(...o)=>o.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?r(...e):typeof e=="object"?Object.keys(e).map((n,l)=>e[l]||e[n]&&n||null).filter(n=>n!==null).join(" "):e).filter(e=>!!e).join(" ");function d(o,e){if(!e)return{};let n=Array.isArray(e)?e:[e];return Object.fromEntries(n.map(l=>[`k-${l}`,!0]))}var a="skeleton",c=a;import{jsx as h}from"react/jsx-runtime";var i="k-skeleton",u=["circle","text","rect"],f=[],k={},s={variant:"text",shape:"text",animation:"pulse"},t=o=>{let{variant:e,shape:n,animation:l=s.animation,...m}=o,x=`skeleton-${e||n||s.variant}`;return h("span",{...m,className:r(o.className,i,d(i,x),{[`k-skeleton-${l}`]:l}),style:o.style})};t.states=f;t.options=k;t.variants=u;t.className=i;t.defaultOptions=s;t.moduleName=a;t.folderName=c;import{jsx as R}from"react/jsx-runtime";import{jsx as D}from"react/jsx-runtime";import{jsx as g}from"react/jsx-runtime";var I=o=>g(t,{shape:"rect",...o});export{I as SkeletonRectangle};