@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 30.1 kB
JavaScript
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,i)=>t[i]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>s({[`${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"}),O=(e,t)=>{let{valid:o,invalid:i,hover:r,focus:p,checked:m,active:u,selected:d,disabled:f,indeterminate:N,loading:L,empty:A,readonly:M,highlighted:T,...I}=t;return s({"k-valid":o,"k-invalid":i,"k-hover":r,"k-focus":p,"k-checked":m,"k-active":u,"k-selected":d,"k-disabled":f,"k-indeterminate":N&&!m,"k-loading":L,"k-empty":A,"k-readonly":M,"k-highlighted":T},Object.keys(I).reduce((y,v)=>(v.startsWith("k-")?y[v]=I[v]:y[`k-${v}`]=I[v],y),{}))};function Ut(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(i=>[`k-${i}`,!0]))}var a={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},c={small:"small",medium:"medium",large:"large",full:"full"},h={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"};import{jsx as en}from"react/jsx-runtime";var jo="k-no-data",Me=e=>en("span",{className:s(jo,e.className),children:e.children});var z="list",F=z;import{jsx as re,jsxs as Ft}from"react/jsx-runtime";var nt="k-list",tn=[],on={size:[a.small,a.medium,a.large]},Vt={size:a.medium},g=e=>{let{size:t=Vt.size,virtualization:o,children:i,optionLabel:r,customValue:p,screenReaders:m,...u}=e,d,f,N,L,A=[];return i?i.map((M,T)=>{M.type===_?(M.props.root===!0?(d=M.props.label,M.props.children.map((I,y)=>{A.push(re(x,{...I.props},`optChild-${y}-${new Date().getTime()}`))})):M.props.children.forEach((I,y)=>{let v="";y===0&&(v=M.props.label),A.push(re(x,{className:y===0?"k-first":"",...I.props,groupLabel:v},`groupLabel-${y}-${new Date().getTime()}`))}),f=re(_,{label:d,virtualization:o,children:A})):M.type===x&&(A.push(re(x,{...M.props},`${M.type}-${T}`)),N=re(le,{virtualization:o,children:A}),m&&(L=Ft(Me,{className:"k-sr-only",children:[A.length," items found."]})))}):L=re(Me,{children:"No data found."}),Ft("div",{...u,className:s(e.className,nt,b(nt,{size:t}),{"k-virtual-list":o}),children:[r,p,f,N,L]})};g.states=tn;g.options=on;g.className=nt;g.defaultOptions=Vt;g.moduleName=z;g.folderName=F;import{jsx as rn}from"react/jsx-runtime";var $t="k-list-container",nn=[],sn={},an={},pe=e=>{let{...t}=e;return rn("div",{...t,className:s(e.className,$t),children:e.children})};pe.states=nn;pe.options=sn;pe.className=$t;pe.defaultOptions=an;pe.moduleName=z;pe.folderName=F;import{jsx as te,jsxs as mn}from"react/jsx-runtime";var st="k-list",ln=[],pn={size:[a.small,a.medium,a.large]},Xt={size:a.medium},P=e=>{let{size:t=Xt.size,virtualization:o,children:i,...r}=e,p,m,u,d=[];return i?i.map((f,N)=>{f.type===_?(f.props.root===!0?(p=f.props.label,f.props.children.map((L,A)=>{d.push(te(x,{...L.props},`optChild-${A}-${new Date().getTime()}`))})):(d.push(te(Gt,{...f.props,children:f.props.label},`listChild-${N}`)),f.props.children.map((L,A)=>{d.push(te(x,{...L.props},`fwOptChild-${A}-${new Date().getTime()}`))})),m=te(_,{label:p,virtualization:o,children:d})):f.type===x&&(d.push(te(x,{...f.props},`${f.type}-${N}`)),u=te(le,{virtualization:o,children:d}))}):u=te(Me,{children:"No data found."}),mn("div",{...r,className:s(e.className,st,b(st,{size:t}),{"k-virtual-list":o}),children:[m,u]})};P.states=ln;P.options=pn;P.className=st;P.defaultOptions=Xt;P.moduleName=z;P.folderName=F;var oe="checkbox",me=oe;import{jsx as Jt}from"react/jsx-runtime";var ze="k-checkbox",cn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],dn={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full]},it={size:a.medium,rounded:c.medium},R=e=>{let{id:t,checked:o,indeterminate:i,hover:r,focus:p,disabled:m,invalid:u,valid:d,required:f,size:N=it.size,rounded:L=it.rounded,...A}=e;return Jt("span",{className:"k-checkbox-wrap",children:Jt("input",{...A,id:t,type:"checkbox",defaultChecked:o,required:f,className:s(e.className,ze,b(ze,{size:N,rounded:L}),O(ze,{hover:r,focus:p,disabled:m,invalid:u,valid:d,indeterminate:i,checked:o}))})})};R.states=cn;R.options=dn;R.className=ze;R.defaultOptions=it;R.moduleName=oe;R.folderName=me;import{jsx as hn}from"react/jsx-runtime";var qt="k-checkbox-list",un=[],fn={},Wt={layout:"vertical"},V=e=>{let{layout:t=Wt.layout,...o}=e;return hn("ul",{...o,className:s(e.className,qt,{[`k-list-${t}`]:t}),children:e.children})};V.states=un;V.options=fn;V.className=qt;V.defaultOptions=Wt;V.moduleName=oe;V.folderName=me;import{jsx as bn}from"react/jsx-runtime";var Qt="k-checkbox-list-item",Nn=[],xn={},Ln={},$=e=>{let{...t}=e;return bn("li",{...t,className:s(e.className,Qt),children:e.children})};$.states=Nn;$.options=xn;$.className=Qt;$.defaultOptions=Ln;$.moduleName=oe;$.folderName=me;import{Fragment as ra,jsx as aa,jsxs as la}from"react/jsx-runtime";import{Fragment as ua,jsx as da,jsxs as fa}from"react/jsx-runtime";import{Fragment as ba,jsx as La,jsxs as Aa}from"react/jsx-runtime";import{Fragment as Ca,jsx as va,jsxs as Ia}from"react/jsx-runtime";import{jsx as ga}from"react/jsx-runtime";import{jsx as Ra}from"react/jsx-runtime";import{Fragment as En,jsx as Yt}from"react/jsx-runtime";var rt="k-font-icon",An=[],Mn={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},Sn={},Se=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:p,...m}=e;return i?Yt("span",{...m,className:s(e.className,rt,b(rt,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):Yt(En,{})};Se.states=An;Se.options=Mn;Se.className=rt;Se.defaultOptions=Sn;var Zt=Se;import{Fragment as In,jsx as Pe}from"react/jsx-runtime";var lt="k-svg-icon",vn=[],Cn={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},jt={viewBox:"0 0 24 24"},Ee=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:p=jt.viewBox,icon:m,...u}=e;if(!m)return Pe(In,{});m==="none"&&{...u,className:s(e.className,lt,"k-none")};let d=typeof m=="object"&&m.name&&m.name;return Pe("span",{...u,className:s(e.className,lt,b("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:Pe("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof m=="object"?m.viewBox:p,dangerouslySetInnerHTML:typeof m=="object"?{__html:m.content}:void 0,children:m?void 0:e.children})})};Ee.states=vn;Ee.options=Cn;Ee.className=lt;Ee.defaultOptions=jt;var pt=Ee;import*as mt from"@progress/kendo-svg-icons";var eo="icon",to="icons";import{Fragment as oo,jsx as ve}from"react/jsx-runtime";var De="k-icon",Tn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),On=[],yn={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},ct={viewBox:"0 0 24 24",type:"svg"},S=e=>{let{size:t,themeColor:o,icon:i,type:r=ct.type,rotate:p,flip:m,viewBox:u=ct.viewBox,...d}=e;if(!i)return ve(oo,{});if(r==="svg"){if(i==="none")return ve(pt,{...d,className:s(e.className,De),icon:i,size:t});let f=mt[i]?i:Tn(`${i}-icon`);return mt[f]?ve(pt,{...d,className:s(e.className,De),icon:mt[f],size:t,themeColor:o,rotate:p,flip:m,viewBox:u}):ve(oo,{})}return ve(Zt,{...d,className:s(e.className,De),icon:i,size:t,themeColor:o,rotate:p,flip:m})};S.states=On;S.options=yn;S.defaultOptions=ct;S.className=De;S.moduleName=eo;S.folderName=to;import{jsx as we,jsxs as _n}from"react/jsx-runtime";var dt="k-list-item",gn=[n.hover,n.focus,n.selected,n.disabled],kn={},Kn={},x=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:p,showCheckbox:m,checked:u,hover:d,focus:f,selected:N,disabled:L,...A}=e,M=t||e.children;return _n("li",{...A,className:s(e.className,i?"k-list-group-item":dt,O(dt,{hover:d,focus:f,disabled:L,selected:N})),children:[m&&we(R,{checked:u}),r&&we(S,{icon:p}),we("span",{className:"k-list-item-text",children:M}),o&&o!==""&&we("div",{className:"k-list-item-group-label",children:o})]})};x.states=gn;x.options=kn;x.className=dt;x.defaultOptions=Kn;x.moduleName=z;x.folderName=F;import{jsx as ut,jsxs as Hn}from"react/jsx-runtime";var Rn="k-list-content",le=e=>{let{virtualization:t,...o}=e;return Hn("div",{...o,className:s(Rn,e.className),children:[ut("ul",{className:s("k-list-ul"),children:e.children}),t&&ut("div",{className:"k-height-container",children:ut("div",{})})]})};import{jsx as no}from"react/jsx-runtime";var zn="k-list-group-sticky-header",so=e=>no("div",{className:s(zn,e.className),children:no("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Pn,jsx as io,jsxs as Dn}from"react/jsx-runtime";var _=e=>{let{virtualization:t,label:o}=e;return Dn(Pn,{children:[o&&io(so,{children:o}),e.children&&io(le,{virtualization:t,children:e.children})]})};import{jsx as ao}from"react/jsx-runtime";var wn="k-list-group-item",Gt=e=>ao("li",{className:s(wn,e.className),children:ao("span",{className:"k-list-item-text",children:e.children})});import{jsx as Vn}from"react/jsx-runtime";var ft="k-list-optionlabel",Bn=[n.hover,n.focus,n.selected,n.disabled],Un={},Fn={},Be=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:p,...m}=e;return Vn("div",{...m,className:s(ft,O(ft,{hover:o,focus:i,selected:r,disabled:p})),children:t})};Be.states=Bn;Be.options=Un;Be.className=ft;Be.defaultOptions=Fn;import{jsx as Jn}from"react/jsx-runtime";var ht="k-list-custom-value",$n=[n.hover,n.focus,n.selected,n.disabled],Xn={},Gn={},ce=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:p,...m}=e;return Jn("div",{...m,className:s(ht,O(ht,{hover:o,focus:i,selected:r,disabled:p})),children:t})};ce.states=$n;ce.options=Xn;ce.className=ht;ce.defaultOptions=Gn;import{jsx as Hr}from"react/jsx-runtime";import{jsx as wr}from"react/jsx-runtime";import{jsx as Vr,jsxs as $r}from"react/jsx-runtime";import{jsx as qr,jsxs as Wr}from"react/jsx-runtime";import{jsx as jr}from"react/jsx-runtime";import{jsx as nl,jsxs as sl}from"react/jsx-runtime";import{jsx as ll,jsxs as pl}from"react/jsx-runtime";var Ce="input",Ue=Ce;import{jsx as Qn}from"react/jsx-runtime";var Fe="k-input",qn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Wn={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},Ve={size:a.medium,rounded:a.medium,fillMode:h.solid},E=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u,size:d=Ve.size,rounded:f=Ve.rounded,fillMode:N=Ve.fillMode,...L}=e;return Qn("span",{...L,className:s(e.className,Fe,b(Fe,{size:d,rounded:f,fillMode:N}),O(Fe,{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u}))})};E.states=qn;E.options=Wn;E.className=Fe;E.defaultOptions=Ve;E.moduleName=Ce;E.folderName=Ue;import{jsx as jn}from"react/jsx-runtime";var $e="k-picker",Yn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Zn={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},Xe={size:a.medium,rounded:c.medium,fillMode:h.solid},de=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u,size:d=Xe.size,rounded:f=Xe.rounded,fillMode:N=Xe.fillMode,...L}=e;return jn("span",{...L,className:s(e.className,$e,b($e,{size:d,rounded:f,fillMode:N}),O($e,{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u})),children:e.children})};de.states=Yn;de.options=Zn;de.className=$e;de.defaultOptions=Xe;de.moduleName=Ce;de.folderName=Ue;import{Fragment as os,jsx as Nt}from"react/jsx-runtime";var ro="k-clear-value",es=[n.disabled,n.loading,n.readonly],ts={},D=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?Nt(os,{}):Nt("span",{className:s(e.className,ro),children:Nt(S,{icon:"x"})})};D.states=es;D.options=ts;D.className=ro;import{jsx as is}from"react/jsx-runtime";var xt="k-input-inner",ns=[],ss={},Ge={type:"text",autocomplete:"off",value:"",placeholder:""},w=e=>{let{value:t=Ge.value,type:o=Ge.type,placeholder:i=Ge.placeholder,autocomplete:r=Ge.autocomplete,...p}=e;return is("input",{...p,type:o,className:s(e.className,xt,b(xt,e)),placeholder:i,autoComplete:r,defaultValue:t})};w.states=ns;w.options=ss;w.className=xt;import{jsx as lo,jsxs as ls}from"react/jsx-runtime";var Lt="k-input-inner",as=[],rs={},bt=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:p,...m}=e;return ls("span",{...m,className:s(e.className,Lt,b(Lt,e)),children:[r,!r&&p&&lo(S,{className:"k-input-value-icon",icon:p}),i&&!t&&o,i&&t&&lo("span",{className:"k-input-value-text",children:t})]})};bt.states=as;bt.options=rs;bt.className=Lt;import{jsx as cs}from"react/jsx-runtime";var At="k-input-inner",ps=[],ms={},po={value:"",placeholder:""},Mt=e=>{let{value:t=po.value,placeholder:o=po.placeholder,rows:i,...r}=e;return cs("textarea",{...r,className:s(e.className,At,b(At,e)),placeholder:o,rows:i,defaultValue:t})};Mt.states=ps;Mt.options=ms;Mt.className=At;import{Fragment as us,jsx as mo}from"react/jsx-runtime";var co="k-input-loading-icon",ds=[n.disabled,n.loading],X=e=>{let{disabled:t,loading:o}=e;return t||!o?mo(us,{}):mo("span",{className:s(e.className,co,"k-icon k-i-loading")})};X.states=ds;X.className=co;import{Fragment as Ns,jsx as uo}from"react/jsx-runtime";var fo="k-input-validation-icon",fs=[n.valid,n.invalid,n.disabled,n.loading],hs={},B=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,p=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?uo(Ns,{}):uo(S,{className:s(fo),icon:p})};B.states=fs;B.options=hs;B.className=fo;import{Fragment as bs,jsx as ho}from"react/jsx-runtime";var xs="k-input-prefix",Ls={direction:"horizontal"},Je=e=>{let{direction:t=Ls.direction,...o}=e;return e.children?ho("span",{...o,className:s(xs,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ho(bs,{})};import{Fragment as Ss,jsx as No}from"react/jsx-runtime";var As="k-input-suffix",Ms={direction:"horizontal"},qe=e=>{let{direction:t=Ms.direction,...o}=e;return e.children?No("span",{...o,className:s(As,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):No(Ss,{})};import{jsx as up}from"react/jsx-runtime";import{jsx as xp}from"react/jsx-runtime";import{jsx as vs}from"react/jsx-runtime";var xo="k-input-separator",Es={direction:"vertical"},ue=e=>{let{direction:t=Es.direction,...o}=e;return vs("span",{...o,className:s(xo,e.className,{[`${xo}-${t}`]:t})})};var St="button",Lo=St;import{Fragment as Os,jsx as Ie,jsxs as bo}from"react/jsx-runtime";var Te="k-button",Cs=["icon-button"],Is=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Ts={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline,h.clear,h.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:a.medium,rounded:c.medium,fillMode:h.solid,themeColor:l.base,showArrow:!1,arrowIconName:"caret-alt-down"},k=e=>{let{size:t=ne.size,rounded:o=ne.rounded,fillMode:i=ne.fillMode,themeColor:r=ne.themeColor,showArrow:p=ne.showArrow,arrowIconName:m=ne.arrowIconName,variant:u,hover:d,focus:f,active:N,selected:L,disabled:A,icon:M,text:T,iconClassName:I,...y}=e,v=M!==void 0,K=e.children!==void 0;return bo("button",{...y,className:s(e.className,Te,Ut(Te,u),b(Te,{size:t,rounded:o,fillMode:i,themeColor:r}),O(Te,{hover:d,focus:f,active:N,disabled:A,selected:L}),{"k-icon-button":!T&&!K&&v}),children:[M&&Ie(S,{className:s(I,"k-button-icon"),icon:M}),T?bo(Os,{children:[T&&Ie("span",{className:"k-button-text",children:T}),e.children]}):e.children&&Ie("span",{className:"k-button-text",children:e.children}),p&&Ie("span",{className:"k-menu-button-arrow k-button-arrow",children:Ie(S,{icon:m})})]})};k.states=Is;k.options=Ts;k.variants=Cs;k.className=Te;k.defaultOptions=ne;k.moduleName=St;k.folderName=Lo;import{jsx as $p}from"react/jsx-runtime";import{jsx as qp}from"react/jsx-runtime";import{jsx as Zp}from"react/jsx-runtime";import{jsx as lm}from"react/jsx-runtime";var Et="avatar",Ao=Et;import{jsx as Mo}from"react/jsx-runtime";var Oe="k-avatar";var ys=[n.hover,n.focus,n.active,n.selected,n.disabled],gs={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark,l.inverse]},se={type:"text",size:a.medium,rounded:c.full,fillMode:h.solid,themeColor:l.primary,border:!1},G=e=>{let{size:t=se.size,rounded:o=se.rounded,fillMode:i=se.fillMode,themeColor:r=se.themeColor,type:p=se.type,border:m=se.border,...u}=e;return Mo("div",{...u,className:s(e.className,Oe,b(Oe,{size:t,rounded:o,fillMode:i,themeColor:r}),{[`${Oe}-bordered`]:m}),children:Mo("span",{className:`${Oe}-${p}`,children:e.children})})};G.states=ys;G.options=gs;G.className=Oe;G.defaultOptions=se;G.moduleName=Et;G.folderName=Ao;import{jsx as xm}from"react/jsx-runtime";import{jsx as Mm}from"react/jsx-runtime";import{jsx as Cm}from"react/jsx-runtime";var ye="chip",We=ye;import{jsx as fe,jsxs as _s}from"react/jsx-runtime";var Qe="k-chip",ks=[n.hover,n.focus,n.active,n.selected,n.disabled],Ks={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.outline],themeColor:[l.base,l.success,l.warning,l.error,l.info]},he={size:a.medium,rounded:c.medium,fillMode:h.solid,themeColor:l.base,avatarImage:"/packages/html/assets/avatar.jpg"},Ne=e=>{let{size:t=he.size,rounded:o=he.rounded,fillMode:i=he.fillMode,themeColor:r=he.themeColor,text:p,icon:m,actions:u,showAvatar:d,avatarImage:f=he.avatarImage,hover:N,focus:L,active:A,selected:M,disabled:T,...I}=e;return _s("div",{...I,className:s(e.className,Qe,b(Qe,{size:t,rounded:o,fillMode:i,themeColor:r}),O(Qe,{hover:N,focus:L,active:A,disabled:T,selected:M})),children:[m&&fe(S,{className:"k-chip-icon",icon:m,size:"small"}),d&&fe(G,{className:"k-chip-avatar",type:"image",children:fe("img",{src:f})}),fe("span",{className:"k-chip-content",children:e.children?e.children:p&&fe("span",{className:"k-chip-label",children:p})}),u&&fe("span",{className:"k-chip-actions",children:u})]})};Ne.states=ks;Ne.options=Ks;Ne.className=Qe;Ne.defaultOptions=he;Ne.moduleName=ye;Ne.folderName=We;import{jsx as zs}from"react/jsx-runtime";var vt="k-chip-list",Rs=[],Hs={size:[a.small,a.medium,a.large]},Eo={size:a.medium},J=e=>{let{size:t=Eo.size,...o}=e;return zs("div",{...o,className:s(e.className,vt,b(vt,{size:t})),children:e.children})};J.states=Rs;J.options=Hs;J.className=vt;J.defaultOptions=Eo;J.moduleName=ye;J.folderName=We;import{jsx as Xm}from"react/jsx-runtime";import{jsx as Wm}from"react/jsx-runtime";import{jsx as jm}from"react/jsx-runtime";import{jsx as sc}from"react/jsx-runtime";import{Fragment as mc,jsx as pc,jsxs as cc}from"react/jsx-runtime";var Ct="popup",vo=Ct;import{jsx as Co}from"react/jsx-runtime";var Io="k-animation-container",Ds=[],ws={},To={positionMode:"absolute"},H=e=>{let{positionMode:t=To.positionMode,animationStyle:o,offset:i,...r}=e;return Co("div",{...r,style:{...i,...e.style},className:s(e.className,Io,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Co("div",{className:"k-child-animation-container",style:o,children:e.children})})};H.states=Ds;H.options=ws;H.className=Io;H.defaultOptions=To;H.moduleName=Ct;H.folderName=vo;var It="popup",Oo=It;import{jsx as yo}from"react/jsx-runtime";var go="k-popup",Bs=[],Us={},ko={positionMode:"absolute"},q=e=>{let{offset:t,positionMode:o=ko.positionMode,animationStyle:i,...r}=e;return yo(H,{positionMode:o,offset:t,animationStyle:i,children:yo("div",{...r,className:s(e.className,go),children:e.children})})};q.states=Bs;q.options=Us;q.className=go;q.defaultOptions=ko;q.moduleName=It;q.folderName=Oo;var Tt="action-buttons",Ko=Tt;import{jsx as $s}from"react/jsx-runtime";var Ze="k-actions",Fs=[],Vs={},Ot={alignment:"start",orientation:"horizontal"},W=e=>{let{alignment:t=Ot.alignment,orientation:o=Ot.orientation,...i}=e;return $s("div",{...i,className:s(Ze,{[`${Ze}-${t}`]:t,[`${Ze}-${o}`]:o},e.className),children:e.children})};W.states=Fs;W.options=Vs;W.className=Ze;W.defaultOptions=Ot;W.moduleName=Tt;W.folderName=Ko;import{jsx as Gs}from"react/jsx-runtime";var Xs="k-actionsheet-footer",_o={alignment:"stretched",orientation:"horizontal"},yt=e=>{let{alignment:t=_o.alignment,orientation:o=_o.orientation,template:i,as:r=i?"div":W,...p}=e;return Gs(r,{...p,...!i&&{alignment:t,orientation:o},className:s(e.className,Xs),children:e.children})};var gt="searchbox",Ro=gt;import{jsx as ge,jsxs as Ws}from"react/jsx-runtime";var Ho="k-searchbox",Js=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],qs={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},kt={showIcon:!0,icon:"search",size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},Q=e=>{let{value:t,placeholder:o,size:i,rounded:r,fillMode:p,hover:m,focus:u,valid:d,invalid:f,required:N,loading:L,disabled:A,showIcon:M=kt.showIcon,icon:T=kt.icon,...I}=e;return Ws(E,{...I,size:i,rounded:r,fillMode:p,hover:m,focus:u,valid:d,invalid:f,required:N,loading:L,disabled:A,className:s(e.className,Ho),children:[M&&ge(S,{className:"k-input-icon",icon:T}),ge(w,{placeholder:o,value:t}),ge(X,{...e}),ge(B,{...e}),ge(D,{...e})]})};Q.states=Js;Q.options=qs;Q.className=Ho;Q.defaultOptions=kt;Q.moduleName=gt;Q.folderName=Ro;import{jsx as sd}from"react/jsx-runtime";var Kt="textbox",zo=Kt;import{Fragment as Po,jsx as Y,jsxs as _t}from"react/jsx-runtime";var Do="k-textbox",Qs=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Ys={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},ie={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},Z=e=>{let{size:t=ie.size,rounded:o=ie.rounded,fillMode:i=ie.fillMode,separators:r=ie.separators,showClearButton:p=ie.showClearButton,showValidationIcon:m=ie.showValidationIcon,prefix:u,suffix:d,type:f,value:N,placeholder:L,hover:A,focus:M,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,...ot}=e;return _t(E,{...ot,size:t,rounded:o,fillMode:i,hover:A,focus:M,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,className:s(e.className,Do),children:[u&&_t(Po,{children:[Y(Je,{children:u}),r&&Y(ue,{})]}),Y(w,{placeholder:L,value:N,type:f}),m&&Y(B,{valid:T,invalid:I,loading:v,disabled:K}),Y(X,{loading:v,disabled:K}),p&&Y(D,{loading:v,disabled:K,readonly:Ae,value:N}),d&&_t(Po,{children:[r&&Y(ue,{}),Y(qe,{children:d})]})]})};Z.states=Qs;Z.options=Ys;Z.className=Do;Z.defaultOptions=ie;Z.moduleName=Kt;Z.folderName=zo;import{jsx as xd}from"react/jsx-runtime";import{Fragment as Ed,jsx as Sd}from"react/jsx-runtime";import{Fragment as gd,jsx as yd}from"react/jsx-runtime";import{jsx as j,jsxs as Rt}from"react/jsx-runtime";var Bo="k-actionsheet-titlebar",Zs={},ee=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:p,input:m,inputValue:u,inputPlaceholder:d,adaptive:f,children:N,...L}=e;return Rt("div",{...L,className:s(e.className,Bo),children:[Rt("div",{className:"k-actionsheet-titlebar-group",children:[i&&j("div",{className:"k-actionsheet-actions",children:i}),!N&&Rt("div",{className:"k-actionsheet-title",children:[t&&j("div",{className:"k-text-center",children:t}),o&&j("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&j("div",{className:"k-actionsheet-title",children:N}),r&&j("div",{className:"k-actionsheet-actions",children:r})]}),(m||p)&&j("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:m?j(Z,{value:u,placeholder:d,size:f?"large":"medium"}):j(Q,{placeholder:"Filter",size:f?"large":"medium"})})]})};ee.className=Bo;ee.defaultOptions=Zs;import{jsx as Ht,jsxs as oi}from"react/jsx-runtime";var zt="k-actionsheet-view",js=[],ei={},ti={},xe=e=>{let{adaptive:t,animated:o,children:i,header:r,footer:p,...m}=e,u=r?.type===ee&&Ht(ee,{adaptive:t,...r?.props}),d=p?.type===yt&&Ht(yt,{...p?.props});return oi("div",{...m,className:s(e.className,zt,{[`${zt}-animated`]:o}),children:[u,Ht("div",{className:"k-actionsheet-content",children:i}),d]})};xe.states=js;xe.options=ei;xe.className=zt;xe.defaultOptions=ti;var ke="action-sheet",je=ke;import{jsx as et,jsxs as ii}from"react/jsx-runtime";var Uo="k-actionsheet",ni=[],si={},Ke={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},U=e=>{let{side:t=Ke.side,fullscreen:o=Ke.fullscreen,adaptive:i=Ke.adaptive,overlay:r=Ke.overlay,template:p,children:m,header:u,footer:d,...f}=e;return ii("div",{className:"k-actionsheet-container",children:[r&&et("div",{className:"k-overlay"}),et(H,{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:et("div",{...f,className:s(e.className,Uo,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:p||et(xe,{header:u,footer:d,adaptive:i,...e,children:m})})})]})};U.states=ni;U.options=si;U.className=Uo;U.defaultOptions=Ke;U.moduleName=ke;U.folderName=je;import{jsx as pi}from"react/jsx-runtime";var Fo="k-actionsheet-container",ai=[],ri={},li={},Le=e=>{let{children:t,...o}=e;return pi("div",{...o,className:Fo,children:t})};Le.states=ai;Le.options=ri;Le.className=Fo;Le.defaultOptions=li;Le.moduleName=ke;Le.folderName=je;import{jsx as iu}from"react/jsx-runtime";import{Fragment as ci,jsx as _e,jsxs as Pt}from"react/jsx-runtime";var Dt="k-actionsheet-item",mi=[n.hover,n.focus,n.selected,n.disabled],wt=e=>{let{iconName:t,text:o,description:i,hover:r,focus:p,selected:m,disabled:u,...d}=e;return Pt("span",{...d,className:s(e.className,Dt,O(Dt,{hover:r,focus:p,selected:m,disabled:u})),children:[!e.children&&_e(ci,{children:Pt("span",{className:"k-actionsheet-action",children:[t&&_e("span",{className:"k-icon-wrap",children:_e(S,{className:"k-actionsheet-item-icon",icon:t})}),Pt("span",{className:"k-actionsheet-item-text",children:[o&&_e("span",{className:"k-actionsheet-item-title",children:o}),i&&_e("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};wt.states=mi;wt.className=Dt;import{jsx as fu,jsxs as hu}from"react/jsx-runtime";import{jsx as bu}from"react/jsx-runtime";import{jsx as Eu}from"react/jsx-runtime";import{jsx as Tu}from"react/jsx-runtime";var Bt="multiselect",$o=Bt;import{Fragment as tt,jsx as C,jsxs as be}from"react/jsx-runtime";var Xo="k-multiselect",di=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],ui={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},Re={size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},ae=e=>{let{size:t=Re.size,rounded:o=Re.rounded,fillMode:i=Re.fillMode,separators:r=Re.separators,prefix:p,suffix:m,value:u,placeholder:d,tags:f,popup:N,showArrowButton:L,hover:A,focus:M,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,opened:ot,adaptive:Jo,adaptiveSettings:qo,adaptiveTitle:Wo,adaptiveSubtitle:Qo,adaptiveCustomValue:Yo,...Zo}=e;return be(tt,{children:[be(E,{...Zo,size:t,rounded:o,fillMode:i,hover:A,focus:M,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,className:s(e.className,Xo),children:[p&&be(tt,{children:[C(Je,{children:p}),r&&C(ue,{})]}),be("div",{className:"k-input-values",children:[C(J,{size:t,children:C(tt,{children:f})}),C(w,{placeholder:d,value:u})]}),C(B,{valid:T,invalid:I,loading:v,disabled:K}),C(X,{loading:v,disabled:K}),C(D,{loading:v,disabled:K,readonly:Ae,value:f?"value":""}),m&&be(tt,{children:[r&&C(ue,{}),C(qe,{children:m})]}),L&&C(k,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:i})]}),ot&&N&&C(q,{className:"k-list-container k-multiselect-popup",children:N}),Jo&&C(U,{adaptive:!0,...qo,header:C(ee,{actionsEnd:C(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:u,inputPlaceholder:d,title:Wo,subtitle:Qo}),children:C("div",{className:"k-list-container",children:be(g,{customValue:Yo?C(ce,{text:`Use "${u}"`}):void 0,size:"large",children:[C(x,{text:"List item"}),C(x,{text:"List item"}),C(x,{text:"List item"})]})})})]})};ae.states=di;ae.options=ui;ae.className=Xo;ae.defaultOptions=Re;ae.moduleName=Bt;ae.folderName=$o;var Go=ae;import{jsx as He,jsxs as fi}from"react/jsx-runtime";var tf=e=>He(Go,{opened:!0,popup:fi(g,{children:[He(x,{children:"List item"}),He(x,{children:"List item"}),He(x,{children:"List item"}),He(x,{children:"List item"})]}),...e});export{tf as MultiSelectPopup};