UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 1.37 kB
var i=(...n)=>n.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?i(...e):typeof e=="object"?Object.keys(e).map((t,l)=>e[l]||e[t]&&t||null).filter(t=>t!==null).join(" "):e).filter(e=>!!e).join(" ");var f=(n,e)=>{let{valid:t,invalid:l,hover:d,focus:s,checked:a,active:g,selected:h,disabled:k,indeterminate:b,loading:y,empty:v,readonly:$,highlighted:L,...u}=e;return i({"k-valid":t,"k-invalid":l,"k-hover":d,"k-focus":s,"k-checked":a,"k-active":g,"k-selected":h,"k-disabled":k,"k-indeterminate":b&&!a,"k-loading":y,"k-empty":v,"k-readonly":$,"k-highlighted":L},Object.keys(u).reduce((c,r)=>(r.startsWith("k-")?c[r]=u[r]:c[`k-${r}`]=u[r],c),{}))};var o={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",highlighted:"highlighted",generating:"generating",expanded:"expanded"};import{jsx as w}from"react/jsx-runtime";var m="k-table-row",T=[o.hover,o.focus,o.selected,o.disabled],x=n=>{let{hover:e,focus:t,selected:l,disabled:d,alt:s,...a}=n;return w("li",{...a,className:i(n.className,m,{"k-table-alt-row":s},f(m,{hover:e,focus:t,disabled:d,selected:l})),children:n.children})};x.states=T;x.className=m;var p=x;export{m as TABLELISTROW_CLASSNAME,x as TableListRow,p as default};