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