@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 1.19 kB
JavaScript
var i=(...l)=>l.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?i(...e):typeof e=="object"?Object.keys(e).map((t,r)=>e[r]||e[t]&&t||null).filter(t=>t!==null).join(" "):e).filter(e=>!!e).join(" ");var d=(l,e)=>i({"k-valid":e.valid,"k-invalid":e.invalid,"k-hover":e.hover,"k-focus":e.focus,"k-checked":e.checked,"k-active":e.active,"k-selected":e.selected,"k-disabled":e.disabled,"k-indeterminate":e.indeterminate&&!e.checked,"k-loading":e.loading,"k-empty":e.empty,"k-readonly":e.readonly});var a={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly"};import{jsx as k}from"react/jsx-runtime";var n="k-colorpalette-tile",u=[a.hover,a.focus,a.selected],f={},o=l=>{let{color:e,tileSize:t,hover:r,focus:s,selected:c,...x}=l,m={backgroundColor:e,width:t?t+"px":"",height:t?t+"px":""};return k("td",{...x,className:i(l.className,n,d(n,{hover:r,focus:s,selected:c})),style:m})};o.states=u;o.options=f;o.className=n;var S=o;export{n as COLORPALETTETILE_CLASSNAME,o as ColorPaletteTile,S as default};