UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 1.35 kB
var a=(...l)=>l.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?a(...e):typeof e=="object"?Object.keys(e).map((t,i)=>e[i]||e[t]&&t||null).filter(t=>t!==null).join(" "):e).filter(e=>!!e).join(" ");var x=(l,e)=>{let{valid:t,invalid:i,hover:o,focus:f,checked:m,active:g,selected:h,disabled:k,indeterminate:v,loading:y,empty:b,readonly:$,highlighted:M,...s}=e;return a({"k-valid":t,"k-invalid":i,"k-hover":o,"k-focus":f,"k-checked":m,"k-active":g,"k-selected":h,"k-disabled":k,"k-indeterminate":v&&!m,"k-loading":y,"k-empty":b,"k-readonly":$,"k-highlighted":M},Object.keys(s).reduce((d,r)=>(r.startsWith("k-")?d[r]=s[r]:d[`k-${r}`]=s[r],d),{}))};var c={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 A}from"react/jsx-runtime";var u="k-tabstrip-content",S=[c.active,c.focus],T={},z={},n=l=>{let{active:e,focus:t,children:i,...o}=l;return A("div",{...o,className:a(l.className,u,x(u,{active:e,focus:t}),l.className),children:i})};n.states=S;n.options=T;n.className=u;n.defaultOptions=z;var L=n;export{u as TABSTRIPCONTENT_CLASSNAME,n as TabStripContent,L as default};