UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 28.1 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",de=e=>Lo("span",{className:n(No,e.className),children:e.children});import{jsx as W,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((A,z)=>{L.push(W(v,{...A.props},`optChild-${z}-${new Date().getTime()}`))})):S.props.children.forEach((A,z)=>{let C="";z===0&&(C=S.props.label),L.push(W(v,{className:z===0?"k-first":"",...A.props,groupLabel:C},`groupLabel-${z}-${new Date().getTime()}`))}),f=W(E,{label:d,virtualization:s,children:L})):S.type===v&&(L.push(W(v,{...S.props},`${S.type}-${M}`)),x=W(Q,{virtualization:s,children:L}),c&&(N=Nt(de,{className:"k-sr-only",children:[L.length," items found."]})))}):N=W(de,{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 X,jsxs as ko}from"react/jsx-runtime";var Fe="k-list",Io=[],go={size:[i.small,i.medium,i.large]},St={size:i.medium},D=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(X(v,{...N.props},`optChild-${L}-${new Date().getTime()}`))})):(d.push(X(yt,{...f.props,children:f.props.label},`listChild-${x}`)),f.props.children.map((N,L)=>{d.push(X(v,{...N.props},`fwOptChild-${L}-${new Date().getTime()}`))})),c=X(E,{label:p,virtualization:s,children:d})):f.type===v&&(d.push(X(v,{...f.props},`${f.type}-${x}`)),u=X(Q,{virtualization:s,children:d}))}):u=X(de,{children:"No data found."}),ko("div",{...r,className:n(e.className,Fe,b(Fe,{size:t}),{"k-virtual-list":s}),children:[c,u]})};D.states=Io;D.options=go;D.className=Fe;D.defaultOptions=St;import{jsx as It}from"react/jsx-runtime";var ge="k-checkbox",Ao=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.checked,o.indeterminate],Co={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=Ao;w.options=Co;w.className=ge;w.defaultOptions=Je;import{jsx as zo}from"react/jsx-runtime";var gt="k-checkbox-list",Mo=[],To={},kt={layout:"vertical"},Y=e=>{let{layout:t=kt.layout,...s}=e;return zo("ul",{...s,className:n(e.className,gt,{[`k-list-${t}`]:t}),children:e.children})};Y.states=Mo;Y.options=To;Y.className=gt;Y.defaultOptions=kt;import{jsx as Ko}from"react/jsx-runtime";var At="k-checkbox-list-item",Eo=[],Oo={},Ho={},Z=e=>{let{...t}=e;return Ko("li",{...t,className:n(e.className,At),children:e.children})};Z.states=Eo;Z.options=Oo;Z.className=At;Z.defaultOptions=Ho;import{Fragment as ri,jsx as ai,jsxs as li}from"react/jsx-runtime";import{Fragment as ui,jsx as di,jsxs as fi}from"react/jsx-runtime";import{Fragment as Ni,jsx as vi,jsxs as Li}from"react/jsx-runtime";import{Fragment as ki,jsx as gi,jsxs as Ai}from"react/jsx-runtime";import{jsx as zi}from"react/jsx-runtime";import{jsx as Ki}from"react/jsx-runtime";import{Fragment as Vo,jsx as Ct}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={},ue=e=>{let{size:t,themeColor:s,icon:a,rotate:r,flip:p,...c}=e;return a?Ct("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"})}):Ct(Vo,{})};ue.states=Ro;ue.options=Po;ue.className=Ue;ue.defaultOptions=wo;var Mt=ue;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"},fe=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})})};fe.states=$o;fe.options=Bo;fe.className=We;fe.defaultOptions=Tt;var Qe=fe;import*as zt from"@progress/kendo-svg-icons";import{Fragment as Et,jsx as he}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 he(Et,{});if(r==="svg"){if(a==="none")return he(Qe,{...d,icon:a,size:t});let f=_o(`${a}-icon`);return zt[f]?he(Qe,{...d,icon:zt[f],size:t,themeColor:s,rotate:p,flip:c,viewBox:u}):he(Et,{})}return he(Mt,{...d,icon:a,size:t,themeColor:s,rotate:p,flip:c})};y.states=Xo;y.options=Do;y.defaultOptions=Ye;import{jsx as Ae,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&&Ae(w,{checked:u}),r&&Ae(y,{icon:p}),Ae("span",{className:"k-list-item-text",children:S}),s&&s!==""&&Ae("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",Q=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(Q,{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={},Ce=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})};Ce.states=ts;Ce.options=os;Ce.className=et;Ce.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={},j=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})};j.states=is;j.options=as;j.className=tt;j.defaultOptions=rs;import{jsx as Oa}from"react/jsx-runtime";import{jsx as Pa}from"react/jsx-runtime";import{jsx as Ba,jsxs as Ga}from"react/jsx-runtime";import{jsx as Fa,jsxs as Ja}from"react/jsx-runtime";import{jsx as Qa}from"react/jsx-runtime";import{jsx as er,jsxs as tr}from"react/jsx-runtime";import{jsx as ir,jsxs as ar}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 As}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 As("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",Cs=[o.disabled,o.loading],V=e=>{let{disabled:t,loading:s}=e;return t||!s?$t(Ms,{}):$t("span",{className:n(e.className,Bt,"k-icon k-i-loading")})};V.states=Cs;V.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 al}from"react/jsx-runtime";import{jsx as cl}from"react/jsx-runtime";import{jsx as $s}from"react/jsx-runtime";var Ft="k-input-separator",Vs={direction:"vertical"},ee=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 xe,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]},F={size:i.medium,rounded:m.medium,fillMode:h.solid,themeColor:l.base,showArrow:!1,arrowIconName:"caret-alt-down"},O=e=>{let{size:t=F.size,rounded:s=F.rounded,fillMode:a=F.fillMode,themeColor:r=F.themeColor,showArrow:p=F.showArrow,arrowIconName:c=F.arrowIconName,hover:u,focus:d,active:f,selected:x,disabled:N,icon:L,text:S,iconClassName:M,...A}=e,z=L!==void 0,C=e.children!==void 0;return Jt("button",{...A,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&&!C&&z}),children:[L&&xe(y,{className:n(M,"k-button-icon"),icon:L}),S?Jt(_s,{children:[S&&xe("span",{className:"k-button-text",children:S}),e.children]}):e.children&&xe("span",{className:"k-button-text",children:e.children}),p&&xe("span",{className:"k-menu-button-arrow k-button-arrow",children:xe(y,{icon:c})})]})};O.states=Bs;O.options=Gs;O.className=Pe;O.defaultOptions=F;import{jsx as Rl}from"react/jsx-runtime";import{jsx as $l}from"react/jsx-runtime";import{jsx as Xl}from"react/jsx-runtime";import{jsx as jl}from"react/jsx-runtime";import{jsx as qt}from"react/jsx-runtime";var be="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]},J={type:"text",size:i.medium,rounded:m.full,fillMode:h.solid,themeColor:l.primary,border:!1},te=e=>{let{size:t=J.size,rounded:s=J.rounded,fillMode:a=J.fillMode,themeColor:r=J.themeColor,type:p=J.type,border:c=J.border,...u}=e;return qt("div",{...u,className:n(e.className,be,b(be,{size:t,rounded:s,fillMode:a,themeColor:r}),{[`${be}-bordered`]:c}),children:qt("span",{className:`${be}-${p}`,children:e.children})})};te.states=Xs;te.options=Ds;te.className=be;te.defaultOptions=J;import{jsx as ap}from"react/jsx-runtime";import{jsx as cp}from"react/jsx-runtime";import{jsx as fp}from"react/jsx-runtime";import{jsx as oe,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]},se={size:i.medium,rounded:m.medium,fillMode:h.solid,themeColor:l.base,avatarImage:"/packages/html/assets/avatar.jpg"},Ve=e=>{let{size:t=se.size,rounded:s=se.rounded,fillMode:a=se.fillMode,themeColor:r=se.themeColor,text:p,icon:c,actions:u,showAvatar:d,avatarImage:f=se.avatarImage,hover:x,focus:N,active:L,selected:S,disabled:M,...A}=e;return qs("div",{...A,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&&oe(y,{className:"k-chip-icon",icon:c,size:"small"}),d&&oe(te,{className:"k-chip-avatar",type:"image",children:oe("img",{src:f})}),oe("span",{className:"k-chip-content",children:e.children?e.children:p&&oe("span",{className:"k-chip-label",children:p})}),u&&oe("span",{className:"k-chip-actions",children:u})]})};Ve.states=Fs;Ve.options=Js;Ve.className=we;Ve.defaultOptions=se;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},ne=e=>{let{size:t=Wt.size,...s}=e;return Qs("div",{...s,className:n(e.className,lt,b(lt,{size:t})),children:e.children})};ne.states=Us;ne.options=Ws;ne.className=lt;ne.defaultOptions=Wt;import{jsx as Ep}from"react/jsx-runtime";import{jsx as Rp}from"react/jsx-runtime";import{jsx as $p}from"react/jsx-runtime";import{jsx as Dp}from"react/jsx-runtime";import{Fragment as Qp,jsx as Wp,jsxs as Yp}from"react/jsx-runtime";import{jsx as Qt}from"react/jsx-runtime";var Yt="k-animation-container",Zs=[],js={},Zt={positionMode:"absolute"},$=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})})};$.states=Zs;$.options=js;$.className=Yt;$.defaultOptions=Zt;import{jsx as jt}from"react/jsx-runtime";var eo="k-popup",en=[],tn={},to={positionMode:"absolute"},ie=e=>{let{offset:t,positionMode:s=to.positionMode,animationStyle:a,...r}=e;return jt($,{positionMode:s,offset:t,animationStyle:a,children:jt("div",{...r,className:n(e.className,eo),children:e.children})})};ie.states=en;ie.options=tn;ie.className=eo;ie.defaultOptions=to;import{jsx as nn}from"react/jsx-runtime";var Be="k-actions",on=[],sn={},pt={alignment:"start",orientation:"horizontal"},ae=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})};ae.states=on;ae.options=sn;ae.className=Be;ae.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":ae,...p}=e;return rn(r,{...p,...!a&&{alignment:t,orientation:s},className:n(e.className,an),children:e.children})};import{jsx as ve,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},re=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,...A}=e;return cn(g,{...A,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&&ve(y,{className:"k-input-icon",icon:M}),ve(R,{placeholder:s,value:t}),ve(V,{...e}),ve(P,{...e}),ve(K,{...e})]})};re.states=ln;re.options=pn;re.className=so;re.defaultOptions=mt;import{jsx as Pc}from"react/jsx-runtime";import{Fragment as no,jsx as B,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]},q={showClearButton:!0,showValidationIcon:!0,size:g.defaultOptions.size,rounded:g.defaultOptions.rounded,fillMode:g.defaultOptions.fillMode,separators:!0},le=e=>{let{size:t=q.size,rounded:s=q.rounded,fillMode:a=q.fillMode,separators:r=q.separators,showClearButton:p=q.showClearButton,showValidationIcon:c=q.showValidationIcon,prefix:u,suffix:d,type:f,value:x,placeholder:N,hover:L,focus:S,valid:M,invalid:A,required:z,loading:C,disabled:H,readonly:me,...Xe}=e;return dt(g,{...Xe,size:t,rounded:s,fillMode:a,hover:L,focus:S,valid:M,invalid:A,required:z,loading:C,disabled:H,readonly:me,className:n(e.className,io),children:[u&&dt(no,{children:[B(Ke,{children:u}),r&&B(ee,{})]}),B(R,{placeholder:N,value:x,type:f}),c&&B(P,{valid:M,invalid:A,loading:C,disabled:H}),B(V,{loading:C,disabled:H}),p&&B(K,{loading:C,disabled:H,readonly:me,value:x}),d&&dt(no,{children:[r&&B(ee,{}),B(Re,{children:d})]})]})};le.states=mn;le.options=dn;le.className=io;le.defaultOptions=q;import{jsx as qc}from"react/jsx-runtime";import{Fragment as jc,jsx as Zc}from"react/jsx-runtime";import{Fragment as am,jsx as im}from"react/jsx-runtime";import{jsx as G,jsxs as ut}from"react/jsx-runtime";var ro="k-actionsheet-titlebar",un={},_=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&&G("div",{className:"k-actionsheet-actions",children:a}),!x&&ut("div",{className:"k-actionsheet-title",children:[t&&G("div",{className:"k-text-center",children:t}),s&&G("div",{className:"k-actionsheet-subtitle k-text-center",children:s})]}),x&&G("div",{className:"k-actionsheet-title",children:x}),r&&G("div",{className:"k-actionsheet-actions",children:r})]}),(c||p)&&G("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?G(le,{value:u,placeholder:d,size:f?"large":"medium"}):G(re,{placeholder:"Filter",size:f?"large":"medium"})})]})};_.className=ro;_.defaultOptions=un;import{jsx as ft,jsxs as bn}from"react/jsx-runtime";var ht="k-actionsheet-view",fn=[],hn={},xn={},pe=e=>{let{adaptive:t,animated:s,children:a,header:r,footer:p,...c}=e,u=r?.type===_&&ft(_,{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]})};pe.states=fn;pe.options=hn;pe.className=ht;pe.defaultOptions=xn;import{jsx as Ge,jsxs as Ln}from"react/jsx-runtime";var lo="k-actionsheet",vn=[],Nn={},Ne={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},U=e=>{let{side:t=Ne.side,fullscreen:s=Ne.fullscreen,adaptive:a=Ne.adaptive,overlay:r=Ne.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($,{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(pe,{header:u,footer:d,adaptive:a,...e,children:c})})})]})};U.states=vn;U.options=Nn;U.className=lo;U.defaultOptions=Ne;import{jsx as zm}from"react/jsx-runtime";import{Fragment as yn,jsx as Le,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&&Le(yn,{children:xt("span",{className:"k-actionsheet-action",children:[t&&Le("span",{className:"k-icon-wrap",children:Le(y,{className:"k-actionsheet-item-icon",icon:t})}),xt("span",{className:"k-actionsheet-item-text",children:[s&&Le("span",{className:"k-actionsheet-item-title",children:s}),a&&Le("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};vt.states=Sn;vt.className=bt;import{jsx as $m,jsxs as Bm}from"react/jsx-runtime";import{jsx as Dm}from"react/jsx-runtime";import{jsx as Um}from"react/jsx-runtime";import{jsx as Zm}from"react/jsx-runtime";import{Fragment as _e,jsx as I,jsxs as ce}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]},Se={size:g.defaultOptions.size,rounded:g.defaultOptions.rounded,fillMode:g.defaultOptions.fillMode,separators:!0},ye=e=>{let{size:t=Se.size,rounded:s=Se.rounded,fillMode:a=Se.fillMode,separators:r=Se.separators,prefix:p,suffix:c,value:u,placeholder:d,tags:f,popup:x,showArrowButton:N,hover:L,focus:S,valid:M,invalid:A,required:z,loading:C,disabled:H,readonly:me,opened:Xe,adaptive:uo,adaptiveSettings:fo,adaptiveTitle:ho,adaptiveSubtitle:xo,adaptiveCustomValue:bo,...vo}=e;return ce(_e,{children:[ce(g,{...vo,size:t,rounded:s,fillMode:a,hover:L,focus:S,valid:M,invalid:A,required:z,loading:C,disabled:H,readonly:me,className:n(e.className,co),children:[p&&ce(_e,{children:[I(Ke,{children:p}),r&&I(ee,{})]}),ce("div",{className:"k-input-values",children:[I(ne,{size:t,children:I(_e,{children:f})}),I(R,{placeholder:d,value:u})]}),I(P,{valid:M,invalid:A,loading:C,disabled:H}),I(V,{loading:C,disabled:H}),I(K,{loading:C,disabled:H,readonly:me,value:f?"value":""}),c&&ce(_e,{children:[r&&I(ee,{}),I(Re,{children:c})]}),N&&I(O,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]}),Xe&&x&&I(ie,{className:"k-list-container k-multiselect-popup",children:x}),uo&&I(U,{adaptive:!0,...fo,header:I(_,{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:ce(T,{customValue:bo?I(j,{text:`Use "${u}"`}):void 0,size:"large",children:[I(v,{text:"List item"}),I(v,{text:"List item"}),I(v,{text:"List item"})]})})})]})};ye.states=In;ye.options=gn;ye.className=co;ye.defaultOptions=Se;var mo=ye;import{jsx as Ie,jsxs as kn}from"react/jsx-runtime";var Id=e=>Ie(mo,{opened:!0,popup:kn(T,{children:[Ie(v,{children:"List item"}),Ie(v,{children:"List item"}),Ie(v,{children:"List item"}),Ie(v,{children:"List item"})]}),...e});export{Id as MultiSelectPopup};