@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 30.2 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:x,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":x,"k-empty":A,"k-readonly":M,"k-highlighted":T},Object.keys(I).reduce((y,C)=>(C.startsWith("k-")?y[C]=I[C]:y[`k-${C}`]=I[C],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",Se=e=>en("span",{className:s(jo,e.className),children:e.children});var z="list",V=z;import{jsx as le,jsxs as Vt}from"react/jsx-runtime";var nt="k-list",tn=[],on={size:[a.small,a.medium,a.large]},Ft={size:a.medium},g=e=>{let{size:t=Ft.size,virtualization:o,children:i,optionLabel:r,customValue:p,screenReaders:m,...u}=e,d,f,N,x,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(le(L,{...I.props},`optChild-${y}-${new Date().getTime()}`))})):M.props.children.forEach((I,y)=>{let C="";y===0&&(C=M.props.label),A.push(le(L,{className:y===0?"k-first":"",...I.props,groupLabel:C},`groupLabel-${y}-${new Date().getTime()}`))}),f=le(_,{label:d,virtualization:o,children:A})):M.type===L&&(A.push(le(L,{...M.props},`${M.type}-${T}`)),N=le(pe,{virtualization:o,children:A}),m&&(x=Vt(Se,{className:"k-sr-only",children:[A.length," items found."]})))}):x=le(Se,{children:"No data found."}),Vt("div",{...u,className:s(e.className,nt,b(nt,{size:t}),{"k-virtual-list":o}),children:[r,p,f,N,x]})};g.states=tn;g.options=on;g.className=nt;g.defaultOptions=Ft;g.moduleName=z;g.folderName=V;import{jsx as rn}from"react/jsx-runtime";var $t="k-list-container",nn=[],sn={},an={},me=e=>{let{...t}=e;return rn("div",{...t,className:s(e.className,$t),children:e.children})};me.states=nn;me.options=sn;me.className=$t;me.defaultOptions=an;me.moduleName=z;me.folderName=V;import{jsx as oe,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((x,A)=>{d.push(oe(L,{...x.props},`optChild-${A}-${new Date().getTime()}`))})):(d.push(oe(Gt,{...f.props,children:f.props.label},`listChild-${N}`)),f.props.children.map((x,A)=>{d.push(oe(L,{...x.props},`fwOptChild-${A}-${new Date().getTime()}`))})),m=oe(_,{label:p,virtualization:o,children:d})):f.type===L&&(d.push(oe(L,{...f.props},`${f.type}-${N}`)),u=oe(pe,{virtualization:o,children:d}))}):u=oe(Se,{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=V;var ne="checkbox",ce=ne;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:x=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:x}),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=ne;R.folderName=ce;import{jsx as hn}from"react/jsx-runtime";var qt="k-checkbox-list",un=[],fn={},Wt={layout:"vertical"},F=e=>{let{layout:t=Wt.layout,...o}=e;return hn("ul",{...o,className:s(e.className,qt,{[`k-list-${t}`]:t}),children:e.children})};F.states=un;F.options=fn;F.className=qt;F.defaultOptions=Wt;F.moduleName=ne;F.folderName=ce;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=ne;$.folderName=ce;import{Fragment as la,jsx as ra,jsxs as pa}from"react/jsx-runtime";import{Fragment as fa,jsx as ua,jsxs as ha}from"react/jsx-runtime";import{Fragment as Aa,jsx as ba,jsxs as Ma}from"react/jsx-runtime";import{Fragment as Ia,jsx as va,jsxs as Ta}from"react/jsx-runtime";import{jsx as ka}from"react/jsx-runtime";import{jsx as Ha}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={},Ee=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,{})};Ee.states=An;Ee.options=Mn;Ee.className=rt;Ee.defaultOptions=Sn;var Zt=Ee;import{Fragment as In,jsx as Pe}from"react/jsx-runtime";var lt="k-svg-icon",Cn=[],vn={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"},Ce=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})})};Ce.states=Cn;Ce.options=vn;Ce.className=lt;Ce.defaultOptions=jt;var pt=Ce;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={},L=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:p,showCheckbox:m,checked:u,hover:d,focus:f,selected:N,disabled:x,...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:x,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})]})};L.states=gn;L.options=kn;L.className=dt;L.defaultOptions=Kn;L.moduleName=z;L.folderName=V;import{jsx as ut,jsxs as Hn}from"react/jsx-runtime";var Rn="k-list-content",pe=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(pe,{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 Fn}from"react/jsx-runtime";var ft="k-list-optionlabel",Bn=[n.hover,n.focus,n.selected,n.disabled],Un={},Vn={},Be=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:p,...m}=e;return Fn("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=Vn;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={},X=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})};X.states=$n;X.options=Xn;X.className=ht;X.defaultOptions=Gn;import{jsx as zr}from"react/jsx-runtime";import{jsx as Br}from"react/jsx-runtime";import{jsx as $r,jsxs as Xr}from"react/jsx-runtime";import{jsx as Wr,jsxs as Qr}from"react/jsx-runtime";import{jsx as el}from"react/jsx-runtime";import{jsx as sl,jsxs as il}from"react/jsx-runtime";import{jsx as pl,jsxs as ml}from"react/jsx-runtime";var Ie="input",Ue=Ie;import{jsx as Qn}from"react/jsx-runtime";var Ve="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]},Fe={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=Fe.size,rounded:f=Fe.rounded,fillMode:N=Fe.fillMode,...x}=e;return Qn("span",{...x,className:s(e.className,Ve,b(Ve,{size:d,rounded:f,fillMode:N}),O(Ve,{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u}))})};E.states=qn;E.options=Wn;E.className=Ve;E.defaultOptions=Fe;E.moduleName=Ie;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,...x}=e;return jn("span",{...x,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=Ie;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],G=e=>{let{disabled:t,loading:o}=e;return t||!o?mo(us,{}):mo("span",{className:s(e.className,co,"k-icon k-i-loading")})};G.states=ds;G.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 fp}from"react/jsx-runtime";import{jsx as Lp}from"react/jsx-runtime";import{jsx as Cs}from"react/jsx-runtime";var xo="k-input-separator",Es={direction:"vertical"},ue=e=>{let{direction:t=Es.direction,...o}=e;return Cs("span",{...o,className:s(xo,e.className,{[`${xo}-${t}`]:t})})};var St="button",Lo=St;import{Fragment as Os,jsx as Te,jsxs as bo}from"react/jsx-runtime";var Oe="k-button",vs=["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]},se={size:a.medium,rounded:c.medium,fillMode:h.solid,themeColor:l.base,showArrow:!1,arrowIconName:"caret-alt-down"},k=e=>{let{size:t=se.size,rounded:o=se.rounded,fillMode:i=se.fillMode,themeColor:r=se.themeColor,showArrow:p=se.showArrow,arrowIconName:m=se.arrowIconName,variant:u,hover:d,focus:f,active:N,selected:x,disabled:A,icon:M,text:T,iconClassName:I,...y}=e,C=M!==void 0,K=e.children!==void 0;return bo("button",{...y,className:s(e.className,Oe,Ut(Oe,u),b(Oe,{size:t,rounded:o,fillMode:i,themeColor:r}),O(Oe,{hover:d,focus:f,active:N,disabled:A,selected:x}),{"k-icon-button":!T&&!K&&C}),children:[M&&Te(S,{className:s(I,"k-button-icon"),icon:M}),T?bo(Os,{children:[T&&Te("span",{className:"k-button-text",children:T}),e.children]}):e.children&&Te("span",{className:"k-button-text",children:e.children}),p&&Te("span",{className:"k-menu-button-arrow k-button-arrow",children:Te(S,{icon:m})})]})};k.states=Is;k.options=Ts;k.variants=vs;k.className=Oe;k.defaultOptions=se;k.moduleName=St;k.folderName=Lo;import{jsx as Xp}from"react/jsx-runtime";import{jsx as Wp}from"react/jsx-runtime";import{jsx as jp}from"react/jsx-runtime";import{jsx as pm}from"react/jsx-runtime";var Et="avatar",Ao=Et;import{jsx as Mo}from"react/jsx-runtime";var ye="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]},ie={type:"text",size:a.medium,rounded:c.full,fillMode:h.solid,themeColor:l.primary,border:!1},J=e=>{let{size:t=ie.size,rounded:o=ie.rounded,fillMode:i=ie.fillMode,themeColor:r=ie.themeColor,type:p=ie.type,border:m=ie.border,...u}=e;return Mo("div",{...u,className:s(e.className,ye,b(ye,{size:t,rounded:o,fillMode:i,themeColor:r}),{[`${ye}-bordered`]:m}),children:Mo("span",{className:`${ye}-${p}`,children:e.children})})};J.states=ys;J.options=gs;J.className=ye;J.defaultOptions=ie;J.moduleName=Et;J.folderName=Ao;import{jsx as Lm}from"react/jsx-runtime";import{jsx as Sm}from"react/jsx-runtime";import{jsx as Im}from"react/jsx-runtime";var ge="chip",We=ge;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:x,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:x,active:A,disabled:T,selected:M})),children:[m&&fe(S,{className:"k-chip-icon",icon:m,size:"small"}),d&&fe(J,{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=ge;Ne.folderName=We;import{jsx as zs}from"react/jsx-runtime";var Ct="k-chip-list",Rs=[],Hs={size:[a.small,a.medium,a.large]},Eo={size:a.medium},q=e=>{let{size:t=Eo.size,...o}=e;return zs("div",{...o,className:s(e.className,Ct,b(Ct,{size:t})),children:e.children})};q.states=Rs;q.options=Hs;q.className=Ct;q.defaultOptions=Eo;q.moduleName=ge;q.folderName=We;import{jsx as Gm}from"react/jsx-runtime";import{jsx as Qm}from"react/jsx-runtime";import{jsx as ec}from"react/jsx-runtime";import{jsx as ic}from"react/jsx-runtime";import{Fragment as cc,jsx as mc,jsxs as dc}from"react/jsx-runtime";var vt="popup",Co=vt;import{jsx as vo}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 vo("div",{...r,style:{...i,...e.style},className:s(e.className,Io,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:vo("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=vt;H.folderName=Co;var It="popup",Oo=It;import{jsx as yo}from"react/jsx-runtime";var go="k-popup",Bs=[],Us={},ko={positionMode:"absolute"},W=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})})};W.states=Bs;W.options=Us;W.className=go;W.defaultOptions=ko;W.moduleName=It;W.folderName=Oo;var Tt="action-buttons",Ko=Tt;import{jsx as $s}from"react/jsx-runtime";var Ze="k-actions",Vs=[],Fs={},Ot={alignment:"start",orientation:"horizontal"},Q=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})};Q.states=Vs;Q.options=Fs;Q.className=Ze;Q.defaultOptions=Ot;Q.moduleName=Tt;Q.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":Q,...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 ke,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},Y=e=>{let{value:t,placeholder:o,size:i,rounded:r,fillMode:p,hover:m,focus:u,valid:d,invalid:f,required:N,loading:x,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:x,disabled:A,className:s(e.className,Ho),children:[M&&ke(S,{className:"k-input-icon",icon:T}),ke(w,{placeholder:o,value:t}),ke(G,{...e}),ke(B,{...e}),ke(D,{...e})]})};Y.states=Js;Y.options=qs;Y.className=Ho;Y.defaultOptions=kt;Y.moduleName=gt;Y.folderName=Ro;import{jsx as id}from"react/jsx-runtime";var Kt="textbox",zo=Kt;import{Fragment as Po,jsx as Z,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]},ae={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},j=e=>{let{size:t=ae.size,rounded:o=ae.rounded,fillMode:i=ae.fillMode,separators:r=ae.separators,showClearButton:p=ae.showClearButton,showValidationIcon:m=ae.showValidationIcon,prefix:u,suffix:d,type:f,value:N,placeholder:x,hover:A,focus:M,valid:T,invalid:I,required:y,loading:C,disabled:K,readonly:Me,...ot}=e;return _t(E,{...ot,size:t,rounded:o,fillMode:i,hover:A,focus:M,valid:T,invalid:I,required:y,loading:C,disabled:K,readonly:Me,className:s(e.className,Do),children:[u&&_t(Po,{children:[Z(Je,{children:u}),r&&Z(ue,{})]}),Z(w,{placeholder:x,value:N,type:f}),m&&Z(B,{valid:T,invalid:I,loading:C,disabled:K}),Z(G,{loading:C,disabled:K}),p&&Z(D,{loading:C,disabled:K,readonly:Me,value:N}),d&&_t(Po,{children:[r&&Z(ue,{}),Z(qe,{children:d})]})]})};j.states=Qs;j.options=Ys;j.className=Do;j.defaultOptions=ae;j.moduleName=Kt;j.folderName=zo;import{jsx as Ld}from"react/jsx-runtime";import{Fragment as Cd,jsx as Ed}from"react/jsx-runtime";import{Fragment as kd,jsx as gd}from"react/jsx-runtime";import{jsx as ee,jsxs as Rt}from"react/jsx-runtime";var Bo="k-actionsheet-titlebar",Zs={},te=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:p,input:m,inputValue:u,inputPlaceholder:d,adaptive:f,children:N,...x}=e;return Rt("div",{...x,className:s(e.className,Bo),children:[Rt("div",{className:"k-actionsheet-titlebar-group",children:[i&&ee("div",{className:"k-actionsheet-actions",children:i}),!N&&Rt("div",{className:"k-actionsheet-title",children:[t&&ee("div",{className:"k-text-center",children:t}),o&&ee("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&ee("div",{className:"k-actionsheet-title",children:N}),r&&ee("div",{className:"k-actionsheet-actions",children:r})]}),(m||p)&&ee("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:m?ee(j,{value:u,placeholder:d,size:f?"large":"medium"}):ee(Y,{placeholder:"Filter",size:f?"large":"medium"})})]})};te.className=Bo;te.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===te&&Ht(te,{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={},_e={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},U=e=>{let{side:t=_e.side,fullscreen:o=_e.fullscreen,adaptive:i=_e.adaptive,overlay:r=_e.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=_e;U.moduleName=Ke;U.folderName=je;import{jsx as pi}from"react/jsx-runtime";var Vo="k-actionsheet-container",ai=[],ri={},li={},Le=e=>{let{children:t,...o}=e;return pi("div",{...o,className:Vo,children:t})};Le.states=ai;Le.options=ri;Le.className=Vo;Le.defaultOptions=li;Le.moduleName=Ke;Le.folderName=je;import{jsx as au}from"react/jsx-runtime";import{Fragment as ci,jsx as Re,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&&Re(ci,{children:Pt("span",{className:"k-actionsheet-action",children:[t&&Re("span",{className:"k-icon-wrap",children:Re(S,{className:"k-actionsheet-item-icon",icon:t})}),Pt("span",{className:"k-actionsheet-item-text",children:[o&&Re("span",{className:"k-actionsheet-item-title",children:o}),i&&Re("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};wt.states=mi;wt.className=Dt;import{jsx as hu,jsxs as Nu}from"react/jsx-runtime";import{jsx as Au}from"react/jsx-runtime";import{jsx as Cu}from"react/jsx-runtime";import{jsx as Ou}from"react/jsx-runtime";var Bt="multiselect",$o=Bt;import{Fragment as tt,jsx as v,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]},He={size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},re=e=>{let{size:t=He.size,rounded:o=He.rounded,fillMode:i=He.fillMode,separators:r=He.separators,prefix:p,suffix:m,value:u,placeholder:d,tags:f,popup:N,showArrowButton:x,hover:A,focus:M,valid:T,invalid:I,required:y,loading:C,disabled:K,readonly:Me,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:C,disabled:K,readonly:Me,className:s(e.className,Xo),children:[p&&be(tt,{children:[v(Je,{children:p}),r&&v(ue,{})]}),be("div",{className:"k-input-values",children:[v(q,{size:t,children:v(tt,{children:f})}),v(w,{placeholder:d,value:u})]}),v(B,{valid:T,invalid:I,loading:C,disabled:K}),v(G,{loading:C,disabled:K}),v(D,{loading:C,disabled:K,readonly:Me,value:f?"value":""}),m&&be(tt,{children:[r&&v(ue,{}),v(qe,{children:m})]}),x&&v(k,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:i})]}),ot&&N&&v(W,{className:"k-list-container k-multiselect-popup",children:N}),Jo&&v(U,{adaptive:!0,...qo,header:v(te,{actionsEnd:v(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:u,inputPlaceholder:d,title:Wo,subtitle:Qo}),children:v("div",{className:"k-list-container",children:be(g,{customValue:Yo?v(X,{text:`Use "${u}"`}):void 0,size:"large",children:[v(L,{text:"List item"}),v(L,{text:"List item"}),v(L,{text:"List item"})]})})})]})};re.states=di;re.options=ui;re.className=Xo;re.defaultOptions=He;re.moduleName=Bt;re.folderName=$o;var Go=re;import{Fragment as hi,jsx as Ae,jsxs as fi}from"react/jsx-runtime";var of=({value:e="Custom value",...t})=>Ae(Go,{value:e,opened:!0,popup:Ae(hi,{children:fi(g,{customValue:Ae(X,{text:`Use "${e}"`}),children:[Ae(L,{children:"List item"}),Ae(L,{children:"List item"}),Ae(L,{children:"List item"})]})}),...t});export{of as MultiSelectCustomValue};