UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 28.7 kB
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,r)=>t[r]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var v=(e,t)=>i({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),k=(e,t)=>{let{valid:o,invalid:r,hover:a,focus:p,checked:c,active:d,selected:h,disabled:N,indeterminate:T,loading:E,empty:L,readonly:S,highlighted:I,...M}=t;return i({"k-valid":o,"k-invalid":r,"k-hover":a,"k-focus":p,"k-checked":c,"k-active":d,"k-selected":h,"k-disabled":N,"k-indeterminate":T&&!c,"k-loading":E,"k-empty":L,"k-readonly":S,"k-highlighted":I},Object.keys(M).reduce((O,y)=>(y.startsWith("k-")?O[y]=M[y]:O[`k-${y}`]=M[y],O),{}))};function gt(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(r=>[`k-${r}`,!0]))}var s={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},m={small:"small",medium:"medium",large:"large",full:"full"},u={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},l={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},n={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"};var ee="checkbox",se=ee;import{jsx as Rt}from"react/jsx-runtime";var Oe="k-checkbox",Vo=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],Xo={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full]},Ze={size:s.medium,rounded:m.medium},_=e=>{let{id:t,checked:o,indeterminate:r,hover:a,focus:p,disabled:c,invalid:d,valid:h,required:N,size:T=Ze.size,rounded:E=Ze.rounded,...L}=e;return Rt("span",{className:"k-checkbox-wrap",children:Rt("input",{...L,id:t,type:"checkbox",defaultChecked:o,required:N,className:i(e.className,Oe,v(Oe,{size:T,rounded:E}),k(Oe,{hover:a,focus:p,disabled:c,invalid:d,valid:h,indeterminate:r,checked:o}))})})};_.states=Vo;_.options=Xo;_.className=Oe;_.defaultOptions=Ze;_.moduleName=ee;_.folderName=se;import{jsx as Jo}from"react/jsx-runtime";var _t="k-checkbox-list",Go=[],$o={},Kt={layout:"vertical"},U=e=>{let{layout:t=Kt.layout,...o}=e;return Jo("ul",{...o,className:i(e.className,_t,{[`k-list-${t}`]:t}),children:e.children})};U.states=Go;U.options=$o;U.className=_t;U.defaultOptions=Kt;U.moduleName=ee;U.folderName=se;import{jsx as Yo}from"react/jsx-runtime";var Ht="k-checkbox-list-item",qo=[],Wo={},Qo={},V=e=>{let{...t}=e;return Yo("li",{...t,className:i(e.className,Ht),children:e.children})};V.states=qo;V.options=Wo;V.className=Ht;V.defaultOptions=Qo;V.moduleName=ee;V.folderName=se;import{Fragment as mr,jsx as cr,jsxs as dr}from"react/jsx-runtime";import{Fragment as Nr,jsx as xr,jsxs as vr}from"react/jsx-runtime";import{Fragment as Ar,jsx as Er,jsxs as Mr}from"react/jsx-runtime";import{Fragment as Lr,jsx as kr,jsxs as Or}from"react/jsx-runtime";import{jsx as _r}from"react/jsx-runtime";import{jsx as zr}from"react/jsx-runtime";import{Fragment as tn,jsx as Pt}from"react/jsx-runtime";var et="k-font-icon",Zo=[],jo={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},en={},fe=e=>{let{size:t,themeColor:o,icon:r,rotate:a,flip:p,...c}=e;return r?Pt("span",{...c,className:i(e.className,et,v(et,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):Pt(tn,{})};fe.states=Zo;fe.options=jo;fe.className=et;fe.defaultOptions=en;var zt=fe;import{Fragment as rn,jsx as we}from"react/jsx-runtime";var tt="k-svg-icon",on=[],nn={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},Dt={viewBox:"0 0 24 24"},he=e=>{let{size:t,themeColor:o,rotate:r,flip:a,viewBox:p=Dt.viewBox,icon:c,...d}=e;if(!c)return we(rn,{});c==="none"&&{...d,className:i(e.className,tt,"k-none")};let h=typeof c=="object"&&c.name&&c.name;return we("span",{...d,className:i(e.className,tt,v("k-icon",{size:t}),{[`k-svg-i-${h}`]:h,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),children:we("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:p,dangerouslySetInnerHTML:typeof c=="object"?{__html:c.content}:void 0,children:c?void 0:e.children})})};he.states=on;he.options=nn;he.className=tt;he.defaultOptions=Dt;var ot=he;import*as nt from"@progress/kendo-svg-icons";var Bt="icon",Ft="icons";import{Fragment as Ut,jsx as xe}from"react/jsx-runtime";var ge="k-icon",sn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),an=[],ln={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},it={viewBox:"0 0 24 24",type:"svg"},x=e=>{let{size:t,themeColor:o,icon:r,type:a=it.type,rotate:p,flip:c,viewBox:d=it.viewBox,...h}=e;if(!r)return xe(Ut,{});if(a==="svg"){if(r==="none")return xe(ot,{...h,className:i(e.className,ge),icon:r,size:t});let N=nt[r]?r:sn(`${r}-icon`);return nt[N]?xe(ot,{...h,className:i(e.className,ge),icon:nt[N],size:t,themeColor:o,rotate:p,flip:c,viewBox:d}):xe(Ut,{})}return xe(zt,{...h,className:i(e.className,ge),icon:r,size:t,themeColor:o,rotate:p,flip:c})};x.states=an;x.options=ln;x.defaultOptions=it;x.className=ge;x.moduleName=Bt;x.folderName=Ft;var rt="textbox",Vt=rt;var Ne="input",Re=Ne;import{jsx as mn}from"react/jsx-runtime";var _e="k-input",pn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],cn={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline]},Ke={size:s.medium,rounded:s.medium,fillMode:u.solid},A=e=>{let{hover:t,focus:o,disabled:r,invalid:a,valid:p,loading:c,readonly:d,size:h=Ke.size,rounded:N=Ke.rounded,fillMode:T=Ke.fillMode,...E}=e;return mn("span",{...E,className:i(e.className,_e,v(_e,{size:h,rounded:N,fillMode:T}),k(_e,{hover:t,focus:o,disabled:r,invalid:a,valid:p,loading:c,readonly:d}))})};A.states=pn;A.options=cn;A.className=_e;A.defaultOptions=Ke;A.moduleName=Ne;A.folderName=Re;import{jsx as fn}from"react/jsx-runtime";var He="k-picker",dn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],un={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline]},Pe={size:s.medium,rounded:m.medium,fillMode:u.solid},ae=e=>{let{hover:t,focus:o,disabled:r,invalid:a,valid:p,loading:c,readonly:d,size:h=Pe.size,rounded:N=Pe.rounded,fillMode:T=Pe.fillMode,...E}=e;return fn("span",{...E,className:i(e.className,He,v(He,{size:h,rounded:N,fillMode:T}),k(He,{hover:t,focus:o,disabled:r,invalid:a,valid:p,loading:c,readonly:d})),children:e.children})};ae.states=dn;ae.options=un;ae.className=He;ae.defaultOptions=Pe;ae.moduleName=Ne;ae.folderName=Re;import{Fragment as Nn,jsx as st}from"react/jsx-runtime";var Xt="k-clear-value",hn=[n.disabled,n.loading,n.readonly],xn={},D=e=>{let{disabled:t,loading:o,readonly:r,value:a}=e;return t||r||o||!a?st(Nn,{}):st("span",{className:i(e.className,Xt),children:st(x,{icon:"x"})})};D.states=hn;D.options=xn;D.className=Xt;import{jsx as Tn}from"react/jsx-runtime";var at="k-input-inner",vn=[],bn={},ze={type:"text",autocomplete:"off",value:"",placeholder:""},te=e=>{let{value:t=ze.value,type:o=ze.type,placeholder:r=ze.placeholder,autocomplete:a=ze.autocomplete,...p}=e;return Tn("input",{...p,type:o,className:i(e.className,at,v(at,e)),placeholder:r,autoComplete:a,defaultValue:t})};te.states=vn;te.options=bn;te.className=at;import{jsx as Gt,jsxs as An}from"react/jsx-runtime";var lt="k-input-inner",Cn=[],En={},pt=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:a,valueIconName:p,...c}=e;return An("span",{...c,className:i(e.className,lt,v(lt,e)),children:[a,!a&&p&&Gt(x,{className:"k-input-value-icon",icon:p}),r&&!t&&o,r&&t&&Gt("span",{className:"k-input-value-text",children:t})]})};pt.states=Cn;pt.options=En;pt.className=lt;import{jsx as In}from"react/jsx-runtime";var ct="k-input-inner",Mn=[],Sn={},$t={value:"",placeholder:""},mt=e=>{let{value:t=$t.value,placeholder:o=$t.placeholder,rows:r,...a}=e;return In("textarea",{...a,className:i(e.className,ct,v(ct,e)),placeholder:o,rows:r,defaultValue:t})};mt.states=Mn;mt.options=Sn;mt.className=ct;import{Fragment as kn,jsx as Jt}from"react/jsx-runtime";var qt="k-input-loading-icon",yn=[n.disabled,n.loading],X=e=>{let{disabled:t,loading:o}=e;return t||!o?Jt(kn,{}):Jt("span",{className:i(e.className,qt,"k-icon k-i-loading")})};X.states=yn;X.className=qt;import{Fragment as wn,jsx as Wt}from"react/jsx-runtime";var Qt="k-input-validation-icon",Ln=[n.valid,n.invalid,n.disabled,n.loading],On={},B=e=>{let{valid:t,invalid:o,disabled:r,loading:a}=e,p=o?"warning-circle":"check-circle";return r||a||!!!(t||o)?Wt(wn,{}):Wt(x,{className:i(Qt),icon:p})};B.states=Ln;B.options=On;B.className=Qt;import{Fragment as _n,jsx as Yt}from"react/jsx-runtime";var gn="k-input-prefix",Rn={direction:"horizontal"},De=e=>{let{direction:t=Rn.direction,...o}=e;return e.children?Yt("span",{...o,className:i(gn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Yt(_n,{})};import{Fragment as Pn,jsx as Zt}from"react/jsx-runtime";var Kn="k-input-suffix",Hn={direction:"horizontal"},Be=e=>{let{direction:t=Hn.direction,...o}=e;return e.children?Zt("span",{...o,className:i(Kn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Zt(Pn,{})};import{jsx as Zs}from"react/jsx-runtime";import{jsx as oa}from"react/jsx-runtime";import{jsx as Dn}from"react/jsx-runtime";var jt="k-input-separator",zn={direction:"vertical"},dt=e=>{let{direction:t=zn.direction,...o}=e;return Dn("span",{...o,className:i(jt,e.className,{[`${jt}-${t}`]:t})})};import{Fragment as eo,jsx as G,jsxs as ut}from"react/jsx-runtime";var to="k-textbox",Bn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Fn={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline]},oe={showClearButton:!0,showValidationIcon:!0,size:A.defaultOptions.size,rounded:A.defaultOptions.rounded,fillMode:A.defaultOptions.fillMode,separators:!0},H=e=>{let{size:t=oe.size,rounded:o=oe.rounded,fillMode:r=oe.fillMode,separators:a=oe.separators,showClearButton:p=oe.showClearButton,showValidationIcon:c=oe.showValidationIcon,prefix:d,suffix:h,type:N,value:T,placeholder:E,hover:L,focus:S,valid:I,invalid:M,required:O,loading:y,disabled:K,readonly:z,...j}=e;return ut(A,{...j,size:t,rounded:o,fillMode:r,hover:L,focus:S,valid:I,invalid:M,required:O,loading:y,disabled:K,readonly:z,className:i(e.className,to),children:[d&&ut(eo,{children:[G(De,{children:d}),a&&G(dt,{})]}),G(te,{placeholder:E,value:T,type:N}),c&&G(B,{valid:I,invalid:M,loading:y,disabled:K}),G(X,{loading:y,disabled:K}),p&&G(D,{loading:y,disabled:K,readonly:z,value:T}),h&&ut(eo,{children:[a&&G(dt,{}),G(Be,{children:h})]})]})};H.states=Bn;H.options=Fn;H.className=to;H.defaultOptions=oe;H.moduleName=rt;H.folderName=Vt;import{jsx as ka}from"react/jsx-runtime";import{Fragment as _a,jsx as Ra}from"react/jsx-runtime";var ft="button",no=ft;import{Fragment as Gn,jsx as ve,jsxs as io}from"react/jsx-runtime";var be="k-button",Un=["icon-button"],Vn=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Xn={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark,l.inverse]},ne={size:s.medium,rounded:m.medium,fillMode:u.solid,themeColor:l.base,showArrow:!1,arrowIconName:"caret-alt-down"},R=e=>{let{size:t=ne.size,rounded:o=ne.rounded,fillMode:r=ne.fillMode,themeColor:a=ne.themeColor,showArrow:p=ne.showArrow,arrowIconName:c=ne.arrowIconName,variant:d,hover:h,focus:N,active:T,selected:E,disabled:L,icon:S,text:I,iconClassName:M,...O}=e,y=S!==void 0,K=e.children!==void 0;return io("button",{...O,className:i(e.className,be,gt(be,d),v(be,{size:t,rounded:o,fillMode:r,themeColor:a}),k(be,{hover:h,focus:N,active:T,disabled:L,selected:E}),{"k-icon-button":!I&&!K&&y}),children:[S&&ve(x,{className:i(M,"k-button-icon"),icon:S}),I?io(Gn,{children:[I&&ve("span",{className:"k-button-text",children:I}),e.children]}):e.children&&ve("span",{className:"k-button-text",children:e.children}),p&&ve("span",{className:"k-menu-button-arrow k-button-arrow",children:ve(x,{icon:c})})]})};R.states=Vn;R.options=Xn;R.variants=Un;R.className=be;R.defaultOptions=ne;R.moduleName=ft;R.folderName=no;import{jsx as Xa}from"react/jsx-runtime";import{jsx as qa}from"react/jsx-runtime";import{jsx as Za}from"react/jsx-runtime";import{Fragment as cl,jsx as pl}from"react/jsx-runtime";var Te="treeview",Fe=Te;import{jsx as Ue}from"react/jsx-runtime";import{createElement as ro}from"react";var ht="k-treeview",$n=[],Jn={size:[s.small,s.medium,s.large]},so={size:s.medium},w=e=>{let{size:t=so.size,children:o,dir:r,...a}=e,p=[];return o&&(Array.isArray(o)?o.map((c,d)=>{c.type===f&&p.push(ro(f,{...c.props,dir:r,key:d})),c.type===C&&p.push(ro(C,{...c.props,dir:r,key:d}))}):(o.type===f&&p.push(Ue(f,{...o.props,dir:r})),o.type===C&&p.push(Ue(C,{...o.props,dir:r})))),Ue("div",{...a,dir:r,className:i(e.className,ht,v(ht,{size:t})),children:Ue(C,{className:"k-treeview-lines",dir:r,children:p})})};w.states=$n;w.options=Jn;w.className=ht;w.defaultOptions=so;w.moduleName=Te;w.folderName=Fe;import{jsx as ao}from"react/jsx-runtime";import{createElement as Wn}from"react";var qn="k-treeview-group",C=e=>{let{children:t,dir:o}=e,r=[];return t&&(Array.isArray(t)?t.map((a,p)=>{a.type===Ce&&r.push(Wn(Ce,{...a.props,dir:o,key:p}))}):t.type===Ce&&r.push(ao(Ce,{...t.props,dir:o}))),ao("ul",{className:i(e.className,qn),children:r})};import{jsx as lo,jsxs as Zn}from"react/jsx-runtime";var xt="k-treeview-leaf",Qn=[n.hover,n.focus,n.selected],Yn={},Ve=e=>{let{text:t,showIcon:o,icon:r,hover:a,focus:p,selected:c,...d}=e;return Zn("span",{...d,className:i(e.className,xt,k(xt,{hover:a,focus:p,selected:c})),children:[o&&lo(x,{icon:r}),lo("span",{className:"k-treeview-leaf-text",children:t})]})};Ve.states=Qn;Ve.options=Yn;Ve.className=xt;var po=Ve;import{Fragment as ni,jsx as le,jsxs as co}from"react/jsx-runtime";import{createElement as oi}from"react";var mo="k-treeview-item",jn=[n.hover,n.focus,n.selected,n.disabled],ei={},ti={},f=e=>{let{leafClassName:t,children:o,hasChildren:r,expanded:a,text:p,showIcon:c,icon:d,showCheckbox:h,checked:N,hover:T,focus:E,selected:L,disabled:S,top:I,bottom:M,dir:O,...y}=e,K=r||o,z=[];return o&&(Array.isArray(o)?o.map((j,Ye)=>{j.type===C&&z.push(oi(C,{...j.props,dir:O,key:Ye},j.props.children))}):o.type===C&&z.push(le(C,{...o.props,dir:O,children:o.props.children}))),co("li",{...y,className:i(e.className,mo),children:[co("span",{className:i({"k-treeview-top":I,"k-treeview-bot":M,"k-treeview-mid":!I&&!M}),children:[K&&le("span",{className:i("k-treeview-toggle",k("k-treeview-toggle",{disabled:S})),children:le(x,{icon:a?"caret-alt-down":O==="rtl"?"caret-alt-left":"caret-alt-right"})}),h&&le(_,{checked:N,disabled:S}),le(po,{className:i(t,k(t,{disabled:S})),text:p,showIcon:c,icon:d,hover:T,focus:E,selected:L})]}),a&&K&&le(ni,{children:z})]})};f.states=jn;f.options=ei;f.className=mo;f.defaultOptions=ti;f.moduleName=Te;f.folderName=Fe;var Ce=f;import{jsx as Xl}from"react/jsx-runtime";import{jsx as ql,jsxs as Wl}from"react/jsx-runtime";import{jsx as jl,jsxs as ep}from"react/jsx-runtime";import{jsx as ip,jsxs as rp}from"react/jsx-runtime";import{jsx as pp,jsxs as cp}from"react/jsx-runtime";import{jsx as Sp}from"react/jsx-runtime";var Nt="avatar",uo=Nt;import{jsx as fo}from"react/jsx-runtime";var Ee="k-avatar";var ii=[n.hover,n.focus,n.active,n.selected,n.disabled],ri={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark,l.inverse]},ie={type:"text",size:s.medium,rounded:m.full,fillMode:u.solid,themeColor:l.primary,border:!1},$=e=>{let{size:t=ie.size,rounded:o=ie.rounded,fillMode:r=ie.fillMode,themeColor:a=ie.themeColor,type:p=ie.type,border:c=ie.border,...d}=e;return fo("div",{...d,className:i(e.className,Ee,v(Ee,{size:t,rounded:o,fillMode:r,themeColor:a}),{[`${Ee}-bordered`]:c}),children:fo("span",{className:`${Ee}-${p}`,children:e.children})})};$.states=ii;$.options=ri;$.className=Ee;$.defaultOptions=ie;$.moduleName=Nt;$.folderName=uo;import{jsx as _p}from"react/jsx-runtime";import{jsx as zp}from"react/jsx-runtime";import{jsx as Up}from"react/jsx-runtime";var Ae="chip",Xe=Ae;import{jsx as pe,jsxs as li}from"react/jsx-runtime";var Ge="k-chip",si=[n.hover,n.focus,n.active,n.selected,n.disabled],ai={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.outline],themeColor:[l.base,l.success,l.warning,l.error,l.info]},ce={size:s.medium,rounded:m.medium,fillMode:u.solid,themeColor:l.base,avatarImage:"/packages/html/assets/avatar.jpg"},me=e=>{let{size:t=ce.size,rounded:o=ce.rounded,fillMode:r=ce.fillMode,themeColor:a=ce.themeColor,text:p,icon:c,actions:d,showAvatar:h,avatarImage:N=ce.avatarImage,hover:T,focus:E,active:L,selected:S,disabled:I,...M}=e;return li("div",{...M,className:i(e.className,Ge,v(Ge,{size:t,rounded:o,fillMode:r,themeColor:a}),k(Ge,{hover:T,focus:E,active:L,disabled:I,selected:S})),children:[c&&pe(x,{className:"k-chip-icon",icon:c,size:"small"}),h&&pe($,{className:"k-chip-avatar",type:"image",children:pe("img",{src:N})}),pe("span",{className:"k-chip-content",children:e.children?e.children:p&&pe("span",{className:"k-chip-label",children:p})}),d&&pe("span",{className:"k-chip-actions",children:d})]})};me.states=si;me.options=ai;me.className=Ge;me.defaultOptions=ce;me.moduleName=Ae;me.folderName=Xe;import{jsx as mi}from"react/jsx-runtime";var vt="k-chip-list",pi=[],ci={size:[s.small,s.medium,s.large]},xo={size:s.medium},J=e=>{let{size:t=xo.size,...o}=e;return mi("div",{...o,className:i(e.className,vt,v(vt,{size:t})),children:e.children})};J.states=pi;J.options=ci;J.className=vt;J.defaultOptions=xo;J.moduleName=Ae;J.folderName=Xe;import{jsx as lc}from"react/jsx-runtime";import{jsx as dc}from"react/jsx-runtime";import{jsx as xc}from"react/jsx-runtime";import{jsx as Cc}from"react/jsx-runtime";import{Fragment as yc,jsx as Ic,jsxs as kc}from"react/jsx-runtime";var bt="popup",No=bt;import{jsx as vo}from"react/jsx-runtime";var bo="k-animation-container",ui=[],fi={},To={positionMode:"absolute"},P=e=>{let{positionMode:t=To.positionMode,animationStyle:o,offset:r,...a}=e;return vo("div",{...a,style:{...r,...e.style},className:i(e.className,bo,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:vo("div",{className:"k-child-animation-container",style:o,children:e.children})})};P.states=ui;P.options=fi;P.className=bo;P.defaultOptions=To;P.moduleName=bt;P.folderName=No;var Tt="popup",Co=Tt;import{jsx as Eo}from"react/jsx-runtime";var Ao="k-popup",hi=[],xi={},Mo={positionMode:"absolute"},q=e=>{let{offset:t,positionMode:o=Mo.positionMode,animationStyle:r,...a}=e;return Eo(P,{positionMode:o,offset:t,animationStyle:r,children:Eo("div",{...a,className:i(e.className,Ao),children:e.children})})};q.states=hi;q.options=xi;q.className=Ao;q.defaultOptions=Mo;q.moduleName=Tt;q.folderName=Co;var Ct="action-buttons",So=Ct;import{jsx as bi}from"react/jsx-runtime";var Je="k-actions",Ni=[],vi={},Et={alignment:"start",orientation:"horizontal"},W=e=>{let{alignment:t=Et.alignment,orientation:o=Et.orientation,...r}=e;return bi("div",{...r,className:i(Je,{[`${Je}-${t}`]:t,[`${Je}-${o}`]:o},e.className),children:e.children})};W.states=Ni;W.options=vi;W.className=Je;W.defaultOptions=Et;W.moduleName=Ct;W.folderName=So;import{jsx as Ci}from"react/jsx-runtime";var Ti="k-actionsheet-footer",Io={alignment:"stretched",orientation:"horizontal"},At=e=>{let{alignment:t=Io.alignment,orientation:o=Io.orientation,template:r,as:a=r?"div":W,...p}=e;return Ci(a,{...p,...!r&&{alignment:t,orientation:o},className:i(e.className,Ti),children:e.children})};var Mt="searchbox",yo=Mt;import{jsx as Me,jsxs as Mi}from"react/jsx-runtime";var ko="k-searchbox",Ei=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],Ai={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline]},St={showIcon:!0,icon:"search",size:A.defaultOptions.size,rounded:A.defaultOptions.rounded,fillMode:A.defaultOptions.fillMode},Q=e=>{let{value:t,placeholder:o,size:r,rounded:a,fillMode:p,hover:c,focus:d,valid:h,invalid:N,required:T,loading:E,disabled:L,showIcon:S=St.showIcon,icon:I=St.icon,...M}=e;return Mi(A,{...M,size:r,rounded:a,fillMode:p,hover:c,focus:d,valid:h,invalid:N,required:T,loading:E,disabled:L,className:i(e.className,ko),children:[S&&Me(x,{className:"k-input-icon",icon:I}),Me(te,{placeholder:o,value:t}),Me(X,{...e}),Me(B,{...e}),Me(D,{...e})]})};Q.states=Ei;Q.options=Ai;Q.className=ko;Q.defaultOptions=St;Q.moduleName=Mt;Q.folderName=yo;import{jsx as Cm}from"react/jsx-runtime";import{jsx as Y,jsxs as It}from"react/jsx-runtime";var Lo="k-actionsheet-titlebar",Si={},Z=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:a,filter:p,input:c,inputValue:d,inputPlaceholder:h,adaptive:N,children:T,...E}=e;return It("div",{...E,className:i(e.className,Lo),children:[It("div",{className:"k-actionsheet-titlebar-group",children:[r&&Y("div",{className:"k-actionsheet-actions",children:r}),!T&&It("div",{className:"k-actionsheet-title",children:[t&&Y("div",{className:"k-text-center",children:t}),o&&Y("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),T&&Y("div",{className:"k-actionsheet-title",children:T}),a&&Y("div",{className:"k-actionsheet-actions",children:a})]}),(c||p)&&Y("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?Y(H,{value:d,placeholder:h,size:N?"large":"medium"}):Y(Q,{placeholder:"Filter",size:N?"large":"medium"})})]})};Z.className=Lo;Z.defaultOptions=Si;import{jsx as yt,jsxs as Li}from"react/jsx-runtime";var kt="k-actionsheet-view",Ii=[],yi={},ki={},de=e=>{let{adaptive:t,animated:o,children:r,header:a,footer:p,...c}=e,d=a?.type===Z&&yt(Z,{adaptive:t,...a?.props}),h=p?.type===At&&yt(At,{...p?.props});return Li("div",{...c,className:i(e.className,kt,{[`${kt}-animated`]:o}),children:[d,yt("div",{className:"k-actionsheet-content",children:r}),h]})};de.states=Ii;de.options=yi;de.className=kt;de.defaultOptions=ki;var Se="action-sheet",qe=Se;import{jsx as We,jsxs as gi}from"react/jsx-runtime";var Oo="k-actionsheet",Oi=[],wi={},Ie={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},F=e=>{let{side:t=Ie.side,fullscreen:o=Ie.fullscreen,adaptive:r=Ie.adaptive,overlay:a=Ie.overlay,template:p,children:c,header:d,footer:h,...N}=e;return gi("div",{className:"k-actionsheet-container",children:[a&&We("div",{className:"k-overlay"}),We(P,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:We("div",{...N,className:i(e.className,Oo,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:p||We(de,{header:d,footer:h,adaptive:r,...e,children:c})})})]})};F.states=Oi;F.options=wi;F.className=Oo;F.defaultOptions=Ie;F.moduleName=Se;F.folderName=qe;import{jsx as Hi}from"react/jsx-runtime";var wo="k-actionsheet-container",Ri=[],_i={},Ki={},ue=e=>{let{children:t,...o}=e;return Hi("div",{...o,className:wo,children:t})};ue.states=Ri;ue.options=_i;ue.className=wo;ue.defaultOptions=Ki;ue.moduleName=Se;ue.folderName=qe;import{jsx as qm}from"react/jsx-runtime";import{Fragment as zi,jsx as ye,jsxs as Lt}from"react/jsx-runtime";var Ot="k-actionsheet-item",Pi=[n.hover,n.focus,n.selected,n.disabled],wt=e=>{let{iconName:t,text:o,description:r,hover:a,focus:p,selected:c,disabled:d,...h}=e;return Lt("span",{...h,className:i(e.className,Ot,k(Ot,{hover:a,focus:p,selected:c,disabled:d})),children:[!e.children&&ye(zi,{children:Lt("span",{className:"k-actionsheet-action",children:[t&&ye("span",{className:"k-icon-wrap",children:ye(x,{className:"k-actionsheet-item-icon",icon:t})}),Lt("span",{className:"k-actionsheet-item-text",children:[o&&ye("span",{className:"k-actionsheet-item-title",children:o}),r&&ye("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};wt.states=Pi;wt.className=Ot;import{jsx as nd,jsxs as id}from"react/jsx-runtime";import{jsx as ld}from"react/jsx-runtime";import{jsx as dd}from"react/jsx-runtime";import{jsx as xd}from"react/jsx-runtime";var Ro="dropdown-tree",_o="dropdowntree";import{Fragment as Ko,jsx as b,jsxs as ke}from"react/jsx-runtime";var Ho="k-multiselecttree",Di=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Bi={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline]},Qe={size:A.defaultOptions.size,rounded:A.defaultOptions.rounded,fillMode:A.defaultOptions.fillMode},re=e=>{let{size:t=Qe.size,rounded:o=Qe.rounded,fillMode:r=Qe.fillMode,prefix:a,suffix:p,placeholder:c,tags:d,popup:h,showArrowButton:N,hover:T,focus:E,valid:L,invalid:S,required:I,loading:M,disabled:O,readonly:y,opened:K,dir:z,adaptive:j,adaptiveSettings:Ye,adaptiveTitle:Do,adaptiveSubtitle:Bo,adaptiveFilter:Fo,...Uo}=e;return ke(Ko,{children:[ke(A,{...Uo,dir:z,size:t,rounded:o,fillMode:r,hover:T,focus:E,valid:L,invalid:S,required:I,loading:M,disabled:O,readonly:y,className:i(e.className,Ho),children:[b(De,{children:a}),b(J,{size:t,className:"k-input-values",children:b(Ko,{children:d})}),b("span",{className:"k-input-inner",children:!d&&b("span",{className:"k-input-value-text",children:c})}),b(B,{valid:L,invalid:S,loading:M,disabled:O}),b(X,{loading:M,disabled:O}),b(D,{loading:M,disabled:O,readonly:y,value:d?"value":""}),b(Be,{children:p}),N&&b(R,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:r})]}),K&&h&&b(q,{className:"k-multiselecttree-popup",dir:z,children:h}),j&&b(F,{adaptive:!0,...Ye,header:b(Z,{actionsEnd:b(R,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Fo,inputPlaceholder:c,title:Do,subtitle:Bo}),children:ke(w,{size:"large",children:[b(f,{top:!0,text:"Root 1"}),b(f,{text:"Root 2",expanded:!0,children:ke(C,{children:[b(f,{top:!0,text:"Child 2.1"}),b(f,{text:"Child 2.2",children:b(C,{children:b(f,{bottom:!0,text:"Child 2.2.1"})})}),b(f,{text:"Child 2.3"}),b(f,{bottom:!0,leafClassName:"k-treeview-load-more-button",text:"Load more ..."})]})}),b(f,{bottom:!0,text:"Root 3",children:ke(C,{children:[b(f,{top:!0,text:"Child 3.1"}),b(f,{text:"Child 3.2"}),b(f,{bottom:!0,text:"Child 3.3"})]})})]})})]})};re.states=Di;re.options=Bi;re.className=Ho;re.defaultOptions=Qe;re.moduleName=Ro;re.folderName=_o;var Po=re;import{Fragment as zo,jsx as g,jsxs as Le}from"react/jsx-runtime";var Jd=e=>g(Po,{opened:!0,popup:Le(zo,{children:[g("div",{className:"k-list-filter",children:g(H,{prefix:g(zo,{children:g(x,{icon:"search"})})})}),Le("div",{className:"k-check-all",children:[g(_,{}),g("span",{className:"k-checkbox-label",children:"Check all"})]}),Le(w,{dir:e.dir,children:[g(f,{top:!0,text:"Furniture",showCheckbox:!0,children:Le(C,{children:[g(f,{top:!0,text:"Child 1",showCheckbox:!0}),g(f,{text:"Child 2",showCheckbox:!0}),g(f,{bottom:!0,text:"Child 3",showCheckbox:!0})]})}),g(f,{bottom:!0,text:"Decor",showCheckbox:!0,children:Le(C,{children:[g(f,{top:!0,text:"Child 1",showCheckbox:!0}),g(f,{text:"Child 2",showCheckbox:!0}),g(f,{bottom:!0,text:"Child 3",showCheckbox:!0})]})})]})]}),...e});export{Jd as MultiSelectTreeFiltering};