UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 28.2 kB
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((s,a)=>t[a]||t[s]&&s||null).filter(s=>s!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>n({[`${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)=>n({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var i={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},m={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"},o={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"};import{jsx as Lo}from"react/jsx-runtime";var No="k-no-data",ue=e=>Lo("span",{className:n(No,e.className),children:e.children});import{jsx as Y,jsxs as Nt}from"react/jsx-runtime";var De="k-list",So=[],yo={size:[i.small,i.medium,i.large]},Lt={size:i.medium},T=e=>{let{size:t=Lt.size,virtualization:s,children:a,optionLabel:r,customValue:p,screenReaders:c,...u}=e,d,f,x,N,L=[];return a?a.map((S,M)=>{S.type===E?(S.props.root===!0?(d=S.props.label,S.props.children.map((C,z)=>{L.push(Y(v,{...C.props},`optChild-${z}-${new Date().getTime()}`))})):S.props.children.forEach((C,z)=>{let A="";z===0&&(A=S.props.label),L.push(Y(v,{className:z===0?"k-first":"",...C.props,groupLabel:A},`groupLabel-${z}-${new Date().getTime()}`))}),f=Y(E,{label:d,virtualization:s,children:L})):S.type===v&&(L.push(Y(v,{...S.props},`${S.type}-${M}`)),x=Y(Z,{virtualization:s,children:L}),c&&(N=Nt(ue,{className:"k-sr-only",children:[L.length," items found."]})))}):N=Y(ue,{children:"No data found."}),Nt("div",{...u,className:n(e.className,De,b(De,{size:t}),{"k-virtual-list":s}),children:[r,p,f,x,N]})};T.states=So;T.options=yo;T.className=De;T.defaultOptions=Lt;import{jsx as D,jsxs as ko}from"react/jsx-runtime";var Fe="k-list",Io=[],go={size:[i.small,i.medium,i.large]},St={size:i.medium},F=e=>{let{size:t=St.size,virtualization:s,children:a,...r}=e,p,c,u,d=[];return a?a.map((f,x)=>{f.type===E?(f.props.root===!0?(p=f.props.label,f.props.children.map((N,L)=>{d.push(D(v,{...N.props},`optChild-${L}-${new Date().getTime()}`))})):(d.push(D(yt,{...f.props,children:f.props.label},`listChild-${x}`)),f.props.children.map((N,L)=>{d.push(D(v,{...N.props},`fwOptChild-${L}-${new Date().getTime()}`))})),c=D(E,{label:p,virtualization:s,children:d})):f.type===v&&(d.push(D(v,{...f.props},`${f.type}-${x}`)),u=D(Z,{virtualization:s,children:d}))}):u=D(ue,{children:"No data found."}),ko("div",{...r,className:n(e.className,Fe,b(Fe,{size:t}),{"k-virtual-list":s}),children:[c,u]})};F.states=Io;F.options=go;F.className=Fe;F.defaultOptions=St;import{jsx as It}from"react/jsx-runtime";var ge="k-checkbox",Co=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.checked,o.indeterminate],Ao={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.full]},Je={size:i.medium,rounded:m.medium},w=e=>{let{id:t,checked:s,indeterminate:a,hover:r,focus:p,disabled:c,invalid:u,valid:d,required:f,size:x=Je.size,rounded:N=Je.rounded,...L}=e;return It("span",{className:"k-checkbox-wrap",children:It("input",{...L,id:t,type:"checkbox",defaultChecked:s,required:f,className:n(e.className,ge,b(ge,{size:x,rounded:N}),k(ge,{hover:r,focus:p,disabled:c,invalid:u,valid:d,indeterminate:a,checked:s}))})})};w.states=Co;w.options=Ao;w.className=ge;w.defaultOptions=Je;import{jsx as zo}from"react/jsx-runtime";var gt="k-checkbox-list",Mo=[],To={},kt={layout:"vertical"},j=e=>{let{layout:t=kt.layout,...s}=e;return zo("ul",{...s,className:n(e.className,gt,{[`k-list-${t}`]:t}),children:e.children})};j.states=Mo;j.options=To;j.className=gt;j.defaultOptions=kt;import{jsx as Ko}from"react/jsx-runtime";var Ct="k-checkbox-list-item",Eo=[],Oo={},Ho={},ee=e=>{let{...t}=e;return Ko("li",{...t,className:n(e.className,Ct),children:e.children})};ee.states=Eo;ee.options=Oo;ee.className=Ct;ee.defaultOptions=Ho;import{Fragment as li,jsx as ri,jsxs as pi}from"react/jsx-runtime";import{Fragment as fi,jsx as ui,jsxs as hi}from"react/jsx-runtime";import{Fragment as Li,jsx as Ni,jsxs as Si}from"react/jsx-runtime";import{Fragment as Ci,jsx as ki,jsxs as Ai}from"react/jsx-runtime";import{jsx as Ei}from"react/jsx-runtime";import{jsx as Ri}from"react/jsx-runtime";import{Fragment as Vo,jsx as At}from"react/jsx-runtime";var Ue="k-icon k-font-icon",Ro=[],Po={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},wo={},fe=e=>{let{size:t,themeColor:s,icon:a,rotate:r,flip:p,...c}=e;return a?At("span",{...c,className:n(e.className,Ue,b(Ue,{size:t}),{[`k-i-${a}`]:a,[`k-color-${s}`]:s,[`k-rotate-${r}`]:r,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):At(Vo,{})};fe.states=Ro;fe.options=Po;fe.className=Ue;fe.defaultOptions=wo;var Mt=fe;import{Fragment as Go,jsx as ke}from"react/jsx-runtime";var We="k-icon k-svg-icon",$o=[],Bo={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},Tt={viewBox:"0 0 24 24"},he=e=>{let{size:t,themeColor:s,rotate:a,flip:r,viewBox:p=Tt.viewBox,icon:c,...u}=e;if(!c)return ke(Go,{});c==="none"&&{...u,className:n(e.className,We,"k-none")};let d=typeof c=="object"&&c.name&&c.name;return ke("span",{...u,className:n(e.className,We,b("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${s}`]:s,[`k-rotate-${a}`]:a,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:ke("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=$o;he.options=Bo;he.className=We;he.defaultOptions=Tt;var Qe=he;import*as zt from"@progress/kendo-svg-icons";import{Fragment as Et,jsx as xe}from"react/jsx-runtime";var _o=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Xo=[],Do={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},Ye={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:s,icon:a,type:r=Ye.type,rotate:p,flip:c,viewBox:u=Ye.viewBox,...d}=e;if(!a)return xe(Et,{});if(r==="svg"){if(a==="none")return xe(Qe,{...d,icon:a,size:t});let f=_o(`${a}-icon`);return zt[f]?xe(Qe,{...d,icon:zt[f],size:t,themeColor:s,rotate:p,flip:c,viewBox:u}):xe(Et,{})}return xe(Mt,{...d,icon:a,size:t,themeColor:s,rotate:p,flip:c})};y.states=Xo;y.options=Do;y.defaultOptions=Ye;import{jsx as Ce,jsxs as Uo}from"react/jsx-runtime";var Ze="k-list-item",Fo=[o.hover,o.focus,o.selected,o.disabled],Jo={},qo={},v=e=>{let{text:t,groupLabel:s,group:a,showIcon:r,iconName:p,showCheckbox:c,checked:u,hover:d,focus:f,selected:x,disabled:N,...L}=e,S=t||e.children;return Uo("li",{...L,className:n(e.className,a?"k-list-group-item":Ze,k(Ze,{hover:d,focus:f,disabled:N,selected:x})),children:[c&&Ce(w,{checked:u}),r&&Ce(y,{icon:p}),Ce("span",{className:"k-list-item-text",children:S}),s&&s!==""&&Ce("div",{className:"k-list-item-group-label",children:s})]})};v.states=Fo;v.options=Jo;v.className=Ze;v.defaultOptions=qo;import{jsx as je,jsxs as Qo}from"react/jsx-runtime";var Wo="k-list-content",Z=e=>{let{virtualization:t,...s}=e;return Qo("div",{...s,className:n(Wo,e.className),children:[je("ul",{className:n("k-list-ul"),children:e.children}),t&&je("div",{className:"k-height-container",children:je("div",{})})]})};import{jsx as Ot}from"react/jsx-runtime";var Yo="k-list-group-sticky-header",Ht=e=>Ot("div",{className:n(Yo,e.className),children:Ot("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Zo,jsx as Kt,jsxs as jo}from"react/jsx-runtime";var E=e=>{let{virtualization:t,label:s}=e;return jo(Zo,{children:[s&&Kt(Ht,{children:s}),e.children&&Kt(Z,{virtualization:t,children:e.children})]})};import{jsx as Rt}from"react/jsx-runtime";var es="k-list-group-item",yt=e=>Rt("li",{className:n(es,e.className),children:Rt("span",{className:"k-list-item-text",children:e.children})});import{jsx as ns}from"react/jsx-runtime";var et="k-list-optionlabel",ts=[o.hover,o.focus,o.selected,o.disabled],os={},ss={},Ae=e=>{let{text:t,hover:s,focus:a,selected:r,disabled:p,...c}=e;return ns("div",{...c,className:n(et,k(et,{hover:s,focus:a,selected:r,disabled:p})),children:t})};Ae.states=ts;Ae.options=os;Ae.className=et;Ae.defaultOptions=ss;import{jsx as ls}from"react/jsx-runtime";var tt="k-list-custom-value",is=[o.hover,o.focus,o.selected,o.disabled],as={},rs={},V=e=>{let{text:t,hover:s,focus:a,selected:r,disabled:p,...c}=e;return ls("div",{...c,className:n(tt,k(tt,{hover:s,focus:a,selected:r,disabled:p})),children:t})};V.states=is;V.options=as;V.className=tt;V.defaultOptions=rs;import{jsx as Ha}from"react/jsx-runtime";import{jsx as wa}from"react/jsx-runtime";import{jsx as Ga,jsxs as _a}from"react/jsx-runtime";import{jsx as Ja,jsxs as qa}from"react/jsx-runtime";import{jsx as Ya}from"react/jsx-runtime";import{jsx as tr,jsxs as or}from"react/jsx-runtime";import{jsx as ar,jsxs as rr}from"react/jsx-runtime";import{jsx as ms}from"react/jsx-runtime";var Me="k-input",ps=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading,o.readonly],cs={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[h.solid,h.flat,h.outline]},Te={size:i.medium,rounded:i.medium,fillMode:h.solid},g=e=>{let{hover:t,focus:s,disabled:a,invalid:r,valid:p,loading:c,readonly:u,size:d=Te.size,rounded:f=Te.rounded,fillMode:x=Te.fillMode,...N}=e;return ms("span",{...N,className:n(e.className,Me,b(Me,{size:d,rounded:f,fillMode:x}),k(Me,{hover:t,focus:s,disabled:a,invalid:r,valid:p,loading:c,readonly:u}))})};g.states=ps;g.options=cs;g.className=Me;g.defaultOptions=Te;import{jsx as fs}from"react/jsx-runtime";var ze="k-picker",ds=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading,o.readonly],us={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[h.solid,h.flat,h.outline]},Ee={size:i.medium,rounded:m.medium,fillMode:h.solid},Oe=e=>{let{hover:t,focus:s,disabled:a,invalid:r,valid:p,loading:c,readonly:u,size:d=Ee.size,rounded:f=Ee.rounded,fillMode:x=Ee.fillMode,...N}=e;return fs("span",{...N,className:n(e.className,ze,b(ze,{size:d,rounded:f,fillMode:x}),k(ze,{hover:t,focus:s,disabled:a,invalid:r,valid:p,loading:c,readonly:u})),children:e.children})};Oe.states=ds;Oe.options=us;Oe.className=ze;Oe.defaultOptions=Ee;import{Fragment as bs,jsx as ot}from"react/jsx-runtime";var Pt="k-clear-value",hs=[o.disabled,o.loading,o.readonly],xs={},K=e=>{let{disabled:t,loading:s,readonly:a,value:r}=e;return t||a||s||!r?ot(bs,{}):ot("span",{className:n(e.className,Pt),children:ot(y,{icon:"x"})})};K.states=hs;K.options=xs;K.className=Pt;import{jsx as Ls}from"react/jsx-runtime";var st="k-input-inner",vs=[],Ns={},He={type:"text",autocomplete:"off",value:"",placeholder:""},R=e=>{let{value:t=He.value,type:s=He.type,placeholder:a=He.placeholder,autocomplete:r=He.autocomplete,...p}=e;return Ls("input",{...p,type:s,className:n(e.className,st,b(st,e)),placeholder:a,autoComplete:r,defaultValue:t})};R.states=vs;R.options=Ns;R.className=st;import{jsx as wt,jsxs as Is}from"react/jsx-runtime";var nt="k-input-inner",Ss=[],ys={},it=e=>{let{value:t,placeholder:s,showValue:a,valueIcon:r,valueIconName:p,...c}=e;return Is("span",{...c,className:n(e.className,nt,b(nt,e)),children:[r,!r&&p&&wt(y,{className:"k-input-value-icon",icon:p}),a&&!t&&s,a&&t&&wt("span",{className:"k-input-value-text",children:t})]})};it.states=Ss;it.options=ys;it.className=nt;import{jsx as Cs}from"react/jsx-runtime";var at="k-input-inner",gs=[],ks={},Vt={value:"",placeholder:""},rt=e=>{let{value:t=Vt.value,placeholder:s=Vt.placeholder,rows:a,...r}=e;return Cs("textarea",{...r,className:n(e.className,at,b(at,e)),placeholder:s,rows:a,defaultValue:t})};rt.states=gs;rt.options=ks;rt.className=at;import{Fragment as Ms,jsx as $t}from"react/jsx-runtime";var Bt="k-input-loading-icon",As=[o.disabled,o.loading],$=e=>{let{disabled:t,loading:s}=e;return t||!s?$t(Ms,{}):$t("span",{className:n(e.className,Bt,"k-icon k-i-loading")})};$.states=As;$.className=Bt;import{Fragment as Es,jsx as Gt}from"react/jsx-runtime";var _t="k-input-validation-icon",Ts=[o.valid,o.invalid,o.disabled,o.loading],zs={},P=e=>{let{valid:t,invalid:s,disabled:a,loading:r}=e,p=s?"warning-circle":"check-circle";return a||r||!!!(t||s)?Gt(Es,{}):Gt(y,{className:n(_t),icon:p})};P.states=Ts;P.options=zs;P.className=_t;import{Fragment as Ks,jsx as Xt}from"react/jsx-runtime";var Os="k-input-prefix",Hs={direction:"horizontal"},Ke=e=>{let{direction:t=Hs.direction,...s}=e;return e.children?Xt("span",{...s,className:n(Os,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Xt(Ks,{})};import{Fragment as ws,jsx as Dt}from"react/jsx-runtime";var Rs="k-input-suffix",Ps={direction:"horizontal"},Re=e=>{let{direction:t=Ps.direction,...s}=e;return e.children?Dt("span",{...s,className:n(Rs,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Dt(ws,{})};import{jsx as rl}from"react/jsx-runtime";import{jsx as ml}from"react/jsx-runtime";import{jsx as $s}from"react/jsx-runtime";var Ft="k-input-separator",Vs={direction:"vertical"},te=e=>{let{direction:t=Vs.direction,...s}=e;return $s("span",{...s,className:n(Ft,e.className,{[`${Ft}-${t}`]:t})})};import{Fragment as _s,jsx as be,jsxs as Jt}from"react/jsx-runtime";var Pe="k-button",Bs=[o.hover,o.focus,o.active,o.selected,o.disabled],Gs={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.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]},J={size:i.medium,rounded:m.medium,fillMode:h.solid,themeColor:l.base,showArrow:!1,arrowIconName:"caret-alt-down"},O=e=>{let{size:t=J.size,rounded:s=J.rounded,fillMode:a=J.fillMode,themeColor:r=J.themeColor,showArrow:p=J.showArrow,arrowIconName:c=J.arrowIconName,hover:u,focus:d,active:f,selected:x,disabled:N,icon:L,text:S,iconClassName:M,...C}=e,z=L!==void 0,A=e.children!==void 0;return Jt("button",{...C,className:n(e.className,Pe,b(Pe,{size:t,rounded:s,fillMode:a,themeColor:r}),k(Pe,{hover:u,focus:d,active:f,disabled:N,selected:x}),{"k-icon-button":!S&&!A&&z}),children:[L&&be(y,{className:n(M,"k-button-icon"),icon:L}),S?Jt(_s,{children:[S&&be("span",{className:"k-button-text",children:S}),e.children]}):e.children&&be("span",{className:"k-button-text",children:e.children}),p&&be("span",{className:"k-menu-button-arrow k-button-arrow",children:be(y,{icon:c})})]})};O.states=Bs;O.options=Gs;O.className=Pe;O.defaultOptions=J;import{jsx as Pl}from"react/jsx-runtime";import{jsx as Bl}from"react/jsx-runtime";import{jsx as Dl}from"react/jsx-runtime";import{jsx as ep}from"react/jsx-runtime";import{jsx as qt}from"react/jsx-runtime";var ve="k-avatar";var Xs=[o.hover,o.focus,o.active,o.selected,o.disabled],Ds={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.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]},q={type:"text",size:i.medium,rounded:m.full,fillMode:h.solid,themeColor:l.primary,border:!1},oe=e=>{let{size:t=q.size,rounded:s=q.rounded,fillMode:a=q.fillMode,themeColor:r=q.themeColor,type:p=q.type,border:c=q.border,...u}=e;return qt("div",{...u,className:n(e.className,ve,b(ve,{size:t,rounded:s,fillMode:a,themeColor:r}),{[`${ve}-bordered`]:c}),children:qt("span",{className:`${ve}-${p}`,children:e.children})})};oe.states=Xs;oe.options=Ds;oe.className=ve;oe.defaultOptions=q;import{jsx as rp}from"react/jsx-runtime";import{jsx as mp}from"react/jsx-runtime";import{jsx as hp}from"react/jsx-runtime";import{jsx as se,jsxs as qs}from"react/jsx-runtime";var we="k-chip",Fs=[o.hover,o.focus,o.active,o.selected,o.disabled],Js={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[h.solid,h.outline],themeColor:[l.base,l.success,l.warning,l.error,l.info]},ne={size:i.medium,rounded:m.medium,fillMode:h.solid,themeColor:l.base,avatarImage:"/packages/html/assets/avatar.jpg"},Ve=e=>{let{size:t=ne.size,rounded:s=ne.rounded,fillMode:a=ne.fillMode,themeColor:r=ne.themeColor,text:p,icon:c,actions:u,showAvatar:d,avatarImage:f=ne.avatarImage,hover:x,focus:N,active:L,selected:S,disabled:M,...C}=e;return qs("div",{...C,className:n(e.className,we,b(we,{size:t,rounded:s,fillMode:a,themeColor:r}),k(we,{hover:x,focus:N,active:L,disabled:M,selected:S})),children:[c&&se(y,{className:"k-chip-icon",icon:c,size:"small"}),d&&se(oe,{className:"k-chip-avatar",type:"image",children:se("img",{src:f})}),se("span",{className:"k-chip-content",children:e.children?e.children:p&&se("span",{className:"k-chip-label",children:p})}),u&&se("span",{className:"k-chip-actions",children:u})]})};Ve.states=Fs;Ve.options=Js;Ve.className=we;Ve.defaultOptions=ne;import{jsx as Qs}from"react/jsx-runtime";var lt="k-chip-list",Us=[],Ws={size:[i.small,i.medium,i.large]},Wt={size:i.medium},ie=e=>{let{size:t=Wt.size,...s}=e;return Qs("div",{...s,className:n(e.className,lt,b(lt,{size:t})),children:e.children})};ie.states=Us;ie.options=Ws;ie.className=lt;ie.defaultOptions=Wt;import{jsx as Op}from"react/jsx-runtime";import{jsx as Pp}from"react/jsx-runtime";import{jsx as Bp}from"react/jsx-runtime";import{jsx as Fp}from"react/jsx-runtime";import{Fragment as Yp,jsx as Qp,jsxs as Zp}from"react/jsx-runtime";import{jsx as Qt}from"react/jsx-runtime";var Yt="k-animation-container",Zs=[],js={},Zt={positionMode:"absolute"},B=e=>{let{positionMode:t=Zt.positionMode,animationStyle:s,offset:a,...r}=e;return Qt("div",{...r,style:{...a,...e.style},className:n(e.className,Yt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Qt("div",{className:"k-child-animation-container",style:s,children:e.children})})};B.states=Zs;B.options=js;B.className=Yt;B.defaultOptions=Zt;import{jsx as jt}from"react/jsx-runtime";var eo="k-popup",en=[],tn={},to={positionMode:"absolute"},ae=e=>{let{offset:t,positionMode:s=to.positionMode,animationStyle:a,...r}=e;return jt(B,{positionMode:s,offset:t,animationStyle:a,children:jt("div",{...r,className:n(e.className,eo),children:e.children})})};ae.states=en;ae.options=tn;ae.className=eo;ae.defaultOptions=to;import{jsx as nn}from"react/jsx-runtime";var Be="k-actions",on=[],sn={},pt={alignment:"start",orientation:"horizontal"},re=e=>{let{alignment:t=pt.alignment,orientation:s=pt.orientation,...a}=e;return nn("div",{...a,className:n(Be,{[`${Be}-${t}`]:t,[`${Be}-${s}`]:s},e.className),children:e.children})};re.states=on;re.options=sn;re.className=Be;re.defaultOptions=pt;import{jsx as rn}from"react/jsx-runtime";var an="k-actionsheet-footer",oo={alignment:"stretched",orientation:"horizontal"},ct=e=>{let{alignment:t=oo.alignment,orientation:s=oo.orientation,template:a,as:r=a?"div":re,...p}=e;return rn(r,{...p,...!a&&{alignment:t,orientation:s},className:n(e.className,an),children:e.children})};import{jsx as Ne,jsxs as cn}from"react/jsx-runtime";var so="k-searchbox",ln=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading],pn={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[h.solid,h.flat,h.outline]},mt={showIcon:!0,icon:"search",size:g.defaultOptions.size,rounded:g.defaultOptions.rounded,fillMode:g.defaultOptions.fillMode},le=e=>{let{value:t,placeholder:s,size:a,rounded:r,fillMode:p,hover:c,focus:u,valid:d,invalid:f,required:x,loading:N,disabled:L,showIcon:S=mt.showIcon,icon:M=mt.icon,...C}=e;return cn(g,{...C,size:a,rounded:r,fillMode:p,hover:c,focus:u,valid:d,invalid:f,required:x,loading:N,disabled:L,className:n(e.className,so),children:[S&&Ne(y,{className:"k-input-icon",icon:M}),Ne(R,{placeholder:s,value:t}),Ne($,{...e}),Ne(P,{...e}),Ne(K,{...e})]})};le.states=ln;le.options=pn;le.className=so;le.defaultOptions=mt;import{jsx as wc}from"react/jsx-runtime";import{Fragment as no,jsx as G,jsxs as dt}from"react/jsx-runtime";var io="k-textbox",mn=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading,o.readonly],dn={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[h.solid,h.flat,h.outline]},U={showClearButton:!0,showValidationIcon:!0,size:g.defaultOptions.size,rounded:g.defaultOptions.rounded,fillMode:g.defaultOptions.fillMode,separators:!0},pe=e=>{let{size:t=U.size,rounded:s=U.rounded,fillMode:a=U.fillMode,separators:r=U.separators,showClearButton:p=U.showClearButton,showValidationIcon:c=U.showValidationIcon,prefix:u,suffix:d,type:f,value:x,placeholder:N,hover:L,focus:S,valid:M,invalid:C,required:z,loading:A,disabled:H,readonly:de,...Xe}=e;return dt(g,{...Xe,size:t,rounded:s,fillMode:a,hover:L,focus:S,valid:M,invalid:C,required:z,loading:A,disabled:H,readonly:de,className:n(e.className,io),children:[u&&dt(no,{children:[G(Ke,{children:u}),r&&G(te,{})]}),G(R,{placeholder:N,value:x,type:f}),c&&G(P,{valid:M,invalid:C,loading:A,disabled:H}),G($,{loading:A,disabled:H}),p&&G(K,{loading:A,disabled:H,readonly:de,value:x}),d&&dt(no,{children:[r&&G(te,{}),G(Re,{children:d})]})]})};pe.states=mn;pe.options=dn;pe.className=io;pe.defaultOptions=U;import{jsx as Uc}from"react/jsx-runtime";import{Fragment as em,jsx as jc}from"react/jsx-runtime";import{Fragment as rm,jsx as am}from"react/jsx-runtime";import{jsx as _,jsxs as ut}from"react/jsx-runtime";var ro="k-actionsheet-titlebar",un={},X=e=>{let{title:t,subtitle:s,actionsStart:a,actionsEnd:r,filter:p,input:c,inputValue:u,inputPlaceholder:d,adaptive:f,children:x,...N}=e;return ut("div",{...N,className:n(e.className,ro),children:[ut("div",{className:"k-actionsheet-titlebar-group",children:[a&&_("div",{className:"k-actionsheet-actions",children:a}),!x&&ut("div",{className:"k-actionsheet-title",children:[t&&_("div",{className:"k-text-center",children:t}),s&&_("div",{className:"k-actionsheet-subtitle k-text-center",children:s})]}),x&&_("div",{className:"k-actionsheet-title",children:x}),r&&_("div",{className:"k-actionsheet-actions",children:r})]}),(c||p)&&_("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?_(pe,{value:u,placeholder:d,size:f?"large":"medium"}):_(le,{placeholder:"Filter",size:f?"large":"medium"})})]})};X.className=ro;X.defaultOptions=un;import{jsx as ft,jsxs as bn}from"react/jsx-runtime";var ht="k-actionsheet-view",fn=[],hn={},xn={},ce=e=>{let{adaptive:t,animated:s,children:a,header:r,footer:p,...c}=e,u=r?.type===X&&ft(X,{adaptive:t,...r?.props}),d=p?.type===ct&&ft(ct,{...p?.props});return bn("div",{...c,className:n(e.className,ht,{[`${ht}-animated`]:s}),children:[u,ft("div",{className:"k-actionsheet-content",children:a}),d]})};ce.states=fn;ce.options=hn;ce.className=ht;ce.defaultOptions=xn;import{jsx as Ge,jsxs as Ln}from"react/jsx-runtime";var lo="k-actionsheet",vn=[],Nn={},Le={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},W=e=>{let{side:t=Le.side,fullscreen:s=Le.fullscreen,adaptive:a=Le.adaptive,overlay:r=Le.overlay,template:p,children:c,header:u,footer:d,...f}=e;return Ln("div",{className:"k-actionsheet-container",children:[r&&Ge("div",{className:"k-overlay"}),Ge(B,{animationStyle:{[`${s===!0?"top":t}`]:0,[`${s===!0?"width":null}`]:"100%",[`${s===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:Ge("div",{...f,className:n(e.className,lo,{[`k-actionsheet-${t}`]:s===!1,"k-actionsheet-fullscreen":s===!0,"k-adaptive-actionsheet":a}),children:p||Ge(ce,{header:u,footer:d,adaptive:a,...e,children:c})})})]})};W.states=vn;W.options=Nn;W.className=lo;W.defaultOptions=Le;import{jsx as Em}from"react/jsx-runtime";import{Fragment as yn,jsx as Se,jsxs as xt}from"react/jsx-runtime";var bt="k-actionsheet-item",Sn=[o.hover,o.focus,o.selected,o.disabled],vt=e=>{let{iconName:t,text:s,description:a,hover:r,focus:p,selected:c,disabled:u,...d}=e;return xt("span",{...d,className:n(e.className,bt,k(bt,{hover:r,focus:p,selected:c,disabled:u})),children:[!e.children&&Se(yn,{children:xt("span",{className:"k-actionsheet-action",children:[t&&Se("span",{className:"k-icon-wrap",children:Se(y,{className:"k-actionsheet-item-icon",icon:t})}),xt("span",{className:"k-actionsheet-item-text",children:[s&&Se("span",{className:"k-actionsheet-item-title",children:s}),a&&Se("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};vt.states=Sn;vt.className=bt;import{jsx as Bm,jsxs as Gm}from"react/jsx-runtime";import{jsx as Fm}from"react/jsx-runtime";import{jsx as Wm}from"react/jsx-runtime";import{jsx as jm}from"react/jsx-runtime";import{Fragment as _e,jsx as I,jsxs as me}from"react/jsx-runtime";var co="k-multiselect",In=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading,o.readonly],gn={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[h.solid,h.flat,h.outline]},ye={size:g.defaultOptions.size,rounded:g.defaultOptions.rounded,fillMode:g.defaultOptions.fillMode,separators:!0},Ie=e=>{let{size:t=ye.size,rounded:s=ye.rounded,fillMode:a=ye.fillMode,separators:r=ye.separators,prefix:p,suffix:c,value:u,placeholder:d,tags:f,popup:x,showArrowButton:N,hover:L,focus:S,valid:M,invalid:C,required:z,loading:A,disabled:H,readonly:de,opened:Xe,adaptive:uo,adaptiveSettings:fo,adaptiveTitle:ho,adaptiveSubtitle:xo,adaptiveCustomValue:bo,...vo}=e;return me(_e,{children:[me(g,{...vo,size:t,rounded:s,fillMode:a,hover:L,focus:S,valid:M,invalid:C,required:z,loading:A,disabled:H,readonly:de,className:n(e.className,co),children:[p&&me(_e,{children:[I(Ke,{children:p}),r&&I(te,{})]}),me("div",{className:"k-input-values",children:[I(ie,{size:t,children:I(_e,{children:f})}),I(R,{placeholder:d,value:u})]}),I(P,{valid:M,invalid:C,loading:A,disabled:H}),I($,{loading:A,disabled:H}),I(K,{loading:A,disabled:H,readonly:de,value:f?"value":""}),c&&me(_e,{children:[r&&I(te,{}),I(Re,{children:c})]}),N&&I(O,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]}),Xe&&x&&I(ae,{className:"k-list-container k-multiselect-popup",children:x}),uo&&I(W,{adaptive:!0,...fo,header:I(X,{actionsEnd:I(O,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:u,inputPlaceholder:d,title:ho,subtitle:xo}),children:I("div",{className:"k-list-container",children:me(T,{customValue:bo?I(V,{text:`Use "${u}"`}):void 0,size:"large",children:[I(v,{text:"List item"}),I(v,{text:"List item"}),I(v,{text:"List item"})]})})})]})};Ie.states=In;Ie.options=gn;Ie.className=co;Ie.defaultOptions=ye;var mo=Ie;import{Fragment as Cn,jsx as Q,jsxs as kn}from"react/jsx-runtime";var gd=({value:e="Custom value",...t})=>Q(mo,{value:e,opened:!0,popup:Q(Cn,{children:kn(T,{customValue:Q(V,{text:`Use "${e}"`}),children:[Q(v,{children:"List item"}),Q(v,{children:"List item"}),Q(v,{children:"List item"}),Q(v,{children:"List item"})]})}),...t});export{gd as MultiSelectCustomValue};