UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 27.9 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 No}from"react/jsx-runtime";var ge="k-input",bo=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading,o.readonly],vo={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[h.solid,h.flat,h.outline]},Ie={size:i.medium,rounded:i.medium,fillMode:h.solid},I=e=>{let{hover:t,focus:s,disabled:a,invalid:r,valid:p,loading:c,readonly:u,size:d=Ie.size,rounded:f=Ie.rounded,fillMode:x=Ie.fillMode,...v}=e;return No("span",{...v,className:n(e.className,ge,b(ge,{size:d,rounded:f,fillMode:x}),k(ge,{hover:t,focus:s,disabled:a,invalid:r,valid:p,loading:c,readonly:u}))})};I.states=bo;I.options=vo;I.className=ge;I.defaultOptions=Ie;import{jsx as yo}from"react/jsx-runtime";var ke="k-picker",Lo=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading,o.readonly],So={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[h.solid,h.flat,h.outline]},Ae={size:i.medium,rounded:m.medium,fillMode:h.solid},Ce=e=>{let{hover:t,focus:s,disabled:a,invalid:r,valid:p,loading:c,readonly:u,size:d=Ae.size,rounded:f=Ae.rounded,fillMode:x=Ae.fillMode,...v}=e;return yo("span",{...v,className:n(e.className,ke,b(ke,{size:d,rounded:f,fillMode:x}),k(ke,{hover:t,focus:s,disabled:a,invalid:r,valid:p,loading:c,readonly:u})),children:e.children})};Ce.states=Lo;Ce.options=So;Ce.className=ke;Ce.defaultOptions=Ae;import{Fragment as Ao,jsx as vt}from"react/jsx-runtime";var Xe="k-icon k-font-icon",go=[],Io={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]},ko={},de=e=>{let{size:t,themeColor:s,icon:a,rotate:r,flip:p,...c}=e;return a?vt("span",{...c,className:n(e.className,Xe,b(Xe,{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"})}):vt(Ao,{})};de.states=go;de.options=Io;de.className=Xe;de.defaultOptions=ko;var Nt=de;import{Fragment as To,jsx as Me}from"react/jsx-runtime";var De="k-icon k-svg-icon",Co=[],Mo={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]},Lt={viewBox:"0 0 24 24"},ue=e=>{let{size:t,themeColor:s,rotate:a,flip:r,viewBox:p=Lt.viewBox,icon:c,...u}=e;if(!c)return Me(To,{});c==="none"&&{...u,className:n(e.className,De,"k-none")};let d=typeof c=="object"&&c.name&&c.name;return Me("span",{...u,className:n(e.className,De,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:Me("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})})};ue.states=Co;ue.options=Mo;ue.className=De;ue.defaultOptions=Lt;var Fe=ue;import*as St from"@progress/kendo-svg-icons";import{Fragment as yt,jsx as fe}from"react/jsx-runtime";var zo=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Eo=[],Oo={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]},Je={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:s,icon:a,type:r=Je.type,rotate:p,flip:c,viewBox:u=Je.viewBox,...d}=e;if(!a)return fe(yt,{});if(r==="svg"){if(a==="none")return fe(Fe,{...d,icon:a,size:t});let f=zo(`${a}-icon`);return St[f]?fe(Fe,{...d,icon:St[f],size:t,themeColor:s,rotate:p,flip:c,viewBox:u}):fe(yt,{})}return fe(Nt,{...d,icon:a,size:t,themeColor:s,rotate:p,flip:c})};y.states=Eo;y.options=Oo;y.defaultOptions=Je;import{Fragment as Ro,jsx as qe}from"react/jsx-runtime";var gt="k-clear-value",Ho=[o.disabled,o.loading,o.readonly],Ko={},K=e=>{let{disabled:t,loading:s,readonly:a,value:r}=e;return t||a||s||!r?qe(Ro,{}):qe("span",{className:n(e.className,gt),children:qe(y,{icon:"x"})})};K.states=Ho;K.options=Ko;K.className=gt;import{jsx as Vo}from"react/jsx-runtime";var Ue="k-input-inner",Po=[],wo={},Te={type:"text",autocomplete:"off",value:"",placeholder:""},R=e=>{let{value:t=Te.value,type:s=Te.type,placeholder:a=Te.placeholder,autocomplete:r=Te.autocomplete,...p}=e;return Vo("input",{...p,type:s,className:n(e.className,Ue,b(Ue,e)),placeholder:a,autoComplete:r,defaultValue:t})};R.states=Po;R.options=wo;R.className=Ue;import{jsx as It,jsxs as Go}from"react/jsx-runtime";var We="k-input-inner",$o=[],Bo={},Qe=e=>{let{value:t,placeholder:s,showValue:a,valueIcon:r,valueIconName:p,...c}=e;return Go("span",{...c,className:n(e.className,We,b(We,e)),children:[r,!r&&p&&It(y,{className:"k-input-value-icon",icon:p}),a&&!t&&s,a&&t&&It("span",{className:"k-input-value-text",children:t})]})};Qe.states=$o;Qe.options=Bo;Qe.className=We;import{jsx as Do}from"react/jsx-runtime";var Ye="k-input-inner",_o=[],Xo={},kt={value:"",placeholder:""},Ze=e=>{let{value:t=kt.value,placeholder:s=kt.placeholder,rows:a,...r}=e;return Do("textarea",{...r,className:n(e.className,Ye,b(Ye,e)),placeholder:s,rows:a,defaultValue:t})};Ze.states=_o;Ze.options=Xo;Ze.className=Ye;import{Fragment as Jo,jsx as At}from"react/jsx-runtime";var Ct="k-input-loading-icon",Fo=[o.disabled,o.loading],w=e=>{let{disabled:t,loading:s}=e;return t||!s?At(Jo,{}):At("span",{className:n(e.className,Ct,"k-icon k-i-loading")})};w.states=Fo;w.className=Ct;import{Fragment as Wo,jsx as Mt}from"react/jsx-runtime";var Tt="k-input-validation-icon",qo=[o.valid,o.invalid,o.disabled,o.loading],Uo={},P=e=>{let{valid:t,invalid:s,disabled:a,loading:r}=e,p=s?"warning-circle":"check-circle";return a||r||!!!(t||s)?Mt(Wo,{}):Mt(y,{className:n(Tt),icon:p})};P.states=qo;P.options=Uo;P.className=Tt;import{Fragment as Zo,jsx as zt}from"react/jsx-runtime";var Qo="k-input-prefix",Yo={direction:"horizontal"},ze=e=>{let{direction:t=Yo.direction,...s}=e;return e.children?zt("span",{...s,className:n(Qo,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):zt(Zo,{})};import{Fragment as ts,jsx as Et}from"react/jsx-runtime";var jo="k-input-suffix",es={direction:"horizontal"},Ee=e=>{let{direction:t=es.direction,...s}=e;return e.children?Et("span",{...s,className:n(jo,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Et(ts,{})};import{jsx as Ci}from"react/jsx-runtime";import{jsx as Ei}from"react/jsx-runtime";import{jsx as ss}from"react/jsx-runtime";var Ot="k-input-separator",os={direction:"vertical"},W=e=>{let{direction:t=os.direction,...s}=e;return ss("span",{...s,className:n(Ot,e.className,{[`${Ot}-${t}`]:t})})};import{Fragment as as,jsx as he,jsxs as Ht}from"react/jsx-runtime";var Oe="k-button",ns=[o.hover,o.focus,o.active,o.selected,o.disabled],is={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]},X={size:i.medium,rounded:m.medium,fillMode:h.solid,themeColor:l.base,showArrow:!1,arrowIconName:"caret-alt-down"},z=e=>{let{size:t=X.size,rounded:s=X.rounded,fillMode:a=X.fillMode,themeColor:r=X.themeColor,showArrow:p=X.showArrow,arrowIconName:c=X.arrowIconName,hover:u,focus:d,active:f,selected:x,disabled:v,icon:N,text:L,iconClassName:M,...A}=e,T=N!==void 0,C=e.children!==void 0;return Ht("button",{...A,className:n(e.className,Oe,b(Oe,{size:t,rounded:s,fillMode:a,themeColor:r}),k(Oe,{hover:u,focus:d,active:f,disabled:v,selected:x}),{"k-icon-button":!L&&!C&&T}),children:[N&&he(y,{className:n(M,"k-button-icon"),icon:N}),L?Ht(as,{children:[L&&he("span",{className:"k-button-text",children:L}),e.children]}):e.children&&he("span",{className:"k-button-text",children:e.children}),p&&he("span",{className:"k-menu-button-arrow k-button-arrow",children:he(y,{icon:c})})]})};z.states=ns;z.options=is;z.className=Oe;z.defaultOptions=X;import{jsx as oa}from"react/jsx-runtime";import{jsx as aa}from"react/jsx-runtime";import{jsx as ca}from"react/jsx-runtime";import{jsx as La}from"react/jsx-runtime";import{jsx as Kt}from"react/jsx-runtime";var xe="k-avatar";var rs=[o.hover,o.focus,o.active,o.selected,o.disabled],ls={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]},D={type:"text",size:i.medium,rounded:m.full,fillMode:h.solid,themeColor:l.primary,border:!1},Q=e=>{let{size:t=D.size,rounded:s=D.rounded,fillMode:a=D.fillMode,themeColor:r=D.themeColor,type:p=D.type,border:c=D.border,...u}=e;return Kt("div",{...u,className:n(e.className,xe,b(xe,{size:t,rounded:s,fillMode:a,themeColor:r}),{[`${xe}-bordered`]:c}),children:Kt("span",{className:`${xe}-${p}`,children:e.children})})};Q.states=rs;Q.options=ls;Q.className=xe;Q.defaultOptions=D;import{jsx as Ca}from"react/jsx-runtime";import{jsx as Ea}from"react/jsx-runtime";import{jsx as Ra}from"react/jsx-runtime";import{jsx as Y,jsxs as ms}from"react/jsx-runtime";var He="k-chip",ps=[o.hover,o.focus,o.active,o.selected,o.disabled],cs={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]},Z={size:i.medium,rounded:m.medium,fillMode:h.solid,themeColor:l.base,avatarImage:"/packages/html/assets/avatar.jpg"},Ke=e=>{let{size:t=Z.size,rounded:s=Z.rounded,fillMode:a=Z.fillMode,themeColor:r=Z.themeColor,text:p,icon:c,actions:u,showAvatar:d,avatarImage:f=Z.avatarImage,hover:x,focus:v,active:N,selected:L,disabled:M,...A}=e;return ms("div",{...A,className:n(e.className,He,b(He,{size:t,rounded:s,fillMode:a,themeColor:r}),k(He,{hover:x,focus:v,active:N,disabled:M,selected:L})),children:[c&&Y(y,{className:"k-chip-icon",icon:c,size:"small"}),d&&Y(Q,{className:"k-chip-avatar",type:"image",children:Y("img",{src:f})}),Y("span",{className:"k-chip-content",children:e.children?e.children:p&&Y("span",{className:"k-chip-label",children:p})}),u&&Y("span",{className:"k-chip-actions",children:u})]})};Ke.states=ps;Ke.options=cs;Ke.className=He;Ke.defaultOptions=Z;import{jsx as fs}from"react/jsx-runtime";var je="k-chip-list",ds=[],us={size:[i.small,i.medium,i.large]},Pt={size:i.medium},j=e=>{let{size:t=Pt.size,...s}=e;return fs("div",{...s,className:n(e.className,je,b(je,{size:t})),children:e.children})};j.states=ds;j.options=us;j.className=je;j.defaultOptions=Pt;import{jsx as Za}from"react/jsx-runtime";import{jsx as or}from"react/jsx-runtime";import{jsx as ar}from"react/jsx-runtime";import{jsx as mr}from"react/jsx-runtime";import{Fragment as br,jsx as xr,jsxs as vr}from"react/jsx-runtime";import{jsx as wt}from"react/jsx-runtime";var Vt="k-animation-container",xs=[],bs={},$t={positionMode:"absolute"},V=e=>{let{positionMode:t=$t.positionMode,animationStyle:s,offset:a,...r}=e;return wt("div",{...r,style:{...a,...e.style},className:n(e.className,Vt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:wt("div",{className:"k-child-animation-container",style:s,children:e.children})})};V.states=xs;V.options=bs;V.className=Vt;V.defaultOptions=$t;import{jsx as Bt}from"react/jsx-runtime";var Gt="k-popup",vs=[],Ns={},_t={positionMode:"absolute"},ee=e=>{let{offset:t,positionMode:s=_t.positionMode,animationStyle:a,...r}=e;return Bt(V,{positionMode:s,offset:t,animationStyle:a,children:Bt("div",{...r,className:n(e.className,Gt),children:e.children})})};ee.states=vs;ee.options=Ns;ee.className=Gt;ee.defaultOptions=_t;import{jsx as ys}from"react/jsx-runtime";var Pe="k-actions",Ls=[],Ss={},et={alignment:"start",orientation:"horizontal"},te=e=>{let{alignment:t=et.alignment,orientation:s=et.orientation,...a}=e;return ys("div",{...a,className:n(Pe,{[`${Pe}-${t}`]:t,[`${Pe}-${s}`]:s},e.className),children:e.children})};te.states=Ls;te.options=Ss;te.className=Pe;te.defaultOptions=et;import{jsx as Is}from"react/jsx-runtime";var gs="k-actionsheet-footer",Xt={alignment:"stretched",orientation:"horizontal"},tt=e=>{let{alignment:t=Xt.alignment,orientation:s=Xt.orientation,template:a,as:r=a?"div":te,...p}=e;return Is(r,{...p,...!a&&{alignment:t,orientation:s},className:n(e.className,gs),children:e.children})};import{jsx as be,jsxs as Cs}from"react/jsx-runtime";var Dt="k-searchbox",ks=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading],As={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[h.solid,h.flat,h.outline]},ot={showIcon:!0,icon:"search",size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode},oe=e=>{let{value:t,placeholder:s,size:a,rounded:r,fillMode:p,hover:c,focus:u,valid:d,invalid:f,required:x,loading:v,disabled:N,showIcon:L=ot.showIcon,icon:M=ot.icon,...A}=e;return Cs(I,{...A,size:a,rounded:r,fillMode:p,hover:c,focus:u,valid:d,invalid:f,required:x,loading:v,disabled:N,className:n(e.className,Dt),children:[L&&be(y,{className:"k-input-icon",icon:M}),be(R,{placeholder:s,value:t}),be(w,{...e}),be(P,{...e}),be(K,{...e})]})};oe.states=ks;oe.options=As;oe.className=Dt;oe.defaultOptions=ot;import{jsx as sl}from"react/jsx-runtime";import{Fragment as Ft,jsx as $,jsxs as st}from"react/jsx-runtime";var Jt="k-textbox",Ms=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading,o.readonly],Ts={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[h.solid,h.flat,h.outline]},F={showClearButton:!0,showValidationIcon:!0,size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode,separators:!0},se=e=>{let{size:t=F.size,rounded:s=F.rounded,fillMode:a=F.fillMode,separators:r=F.separators,showClearButton:p=F.showClearButton,showValidationIcon:c=F.showValidationIcon,prefix:u,suffix:d,type:f,value:x,placeholder:v,hover:N,focus:L,valid:M,invalid:A,required:T,loading:C,disabled:H,readonly:me,..._e}=e;return st(I,{..._e,size:t,rounded:s,fillMode:a,hover:N,focus:L,valid:M,invalid:A,required:T,loading:C,disabled:H,readonly:me,className:n(e.className,Jt),children:[u&&st(Ft,{children:[$(ze,{children:u}),r&&$(W,{})]}),$(R,{placeholder:v,value:x,type:f}),c&&$(P,{valid:M,invalid:A,loading:C,disabled:H}),$(w,{loading:C,disabled:H}),p&&$(K,{loading:C,disabled:H,readonly:me,value:x}),d&&st(Ft,{children:[r&&$(W,{}),$(Ee,{children:d})]})]})};se.states=Ms;se.options=Ts;se.className=Jt;se.defaultOptions=F;import{jsx as fl}from"react/jsx-runtime";import{Fragment as Ll,jsx as Nl}from"react/jsx-runtime";import{Fragment as Cl,jsx as Al}from"react/jsx-runtime";import{jsx as B,jsxs as nt}from"react/jsx-runtime";var Ut="k-actionsheet-titlebar",zs={},G=e=>{let{title:t,subtitle:s,actionsStart:a,actionsEnd:r,filter:p,input:c,inputValue:u,inputPlaceholder:d,adaptive:f,children:x,...v}=e;return nt("div",{...v,className:n(e.className,Ut),children:[nt("div",{className:"k-actionsheet-titlebar-group",children:[a&&B("div",{className:"k-actionsheet-actions",children:a}),!x&&nt("div",{className:"k-actionsheet-title",children:[t&&B("div",{className:"k-text-center",children:t}),s&&B("div",{className:"k-actionsheet-subtitle k-text-center",children:s})]}),x&&B("div",{className:"k-actionsheet-title",children:x}),r&&B("div",{className:"k-actionsheet-actions",children:r})]}),(c||p)&&B("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?B(se,{value:u,placeholder:d,size:f?"large":"medium"}):B(oe,{placeholder:"Filter",size:f?"large":"medium"})})]})};G.className=Ut;G.defaultOptions=zs;import{jsx as it,jsxs as Ks}from"react/jsx-runtime";var at="k-actionsheet-view",Es=[],Os={},Hs={},ne=e=>{let{adaptive:t,animated:s,children:a,header:r,footer:p,...c}=e,u=r?.type===G&&it(G,{adaptive:t,...r?.props}),d=p?.type===tt&&it(tt,{...p?.props});return Ks("div",{...c,className:n(e.className,at,{[`${at}-animated`]:s}),children:[u,it("div",{className:"k-actionsheet-content",children:a}),d]})};ne.states=Es;ne.options=Os;ne.className=at;ne.defaultOptions=Hs;import{jsx as we,jsxs as ws}from"react/jsx-runtime";var Wt="k-actionsheet",Rs=[],Ps={},ve={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},J=e=>{let{side:t=ve.side,fullscreen:s=ve.fullscreen,adaptive:a=ve.adaptive,overlay:r=ve.overlay,template:p,children:c,header:u,footer:d,...f}=e;return ws("div",{className:"k-actionsheet-container",children:[r&&we("div",{className:"k-overlay"}),we(V,{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:we("div",{...f,className:n(e.className,Wt,{[`k-actionsheet-${t}`]:s===!1,"k-actionsheet-fullscreen":s===!0,"k-adaptive-actionsheet":a}),children:p||we(ne,{header:u,footer:d,adaptive:a,...e,children:c})})})]})};J.states=Rs;J.options=Ps;J.className=Wt;J.defaultOptions=ve;import{jsx as Yl}from"react/jsx-runtime";import{Fragment as $s,jsx as Ne,jsxs as rt}from"react/jsx-runtime";var lt="k-actionsheet-item",Vs=[o.hover,o.focus,o.selected,o.disabled],pt=e=>{let{iconName:t,text:s,description:a,hover:r,focus:p,selected:c,disabled:u,...d}=e;return rt("span",{...d,className:n(e.className,lt,k(lt,{hover:r,focus:p,selected:c,disabled:u})),children:[!e.children&&Ne($s,{children:rt("span",{className:"k-actionsheet-action",children:[t&&Ne("span",{className:"k-icon-wrap",children:Ne(y,{className:"k-actionsheet-item-icon",icon:t})}),rt("span",{className:"k-actionsheet-item-text",children:[s&&Ne("span",{className:"k-actionsheet-item-title",children:s}),a&&Ne("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};pt.states=Vs;pt.className=lt;import{jsx as ap,jsxs 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 Np}from"react/jsx-runtime";import{jsx as Gs}from"react/jsx-runtime";var Bs="k-no-data",Le=e=>Gs("span",{className:n(Bs,e.className),children:e.children});import{jsx as ie,jsxs as Yt}from"react/jsx-runtime";var ct="k-list",_s=[],Xs={size:[i.small,i.medium,i.large]},Zt={size:i.medium},O=e=>{let{size:t=Zt.size,virtualization:s,children:a,optionLabel:r,customValue:p,screenReaders:c,...u}=e,d,f,x,v,N=[];return a?a.map((L,M)=>{L.type===E?(L.props.root===!0?(d=L.props.label,L.props.children.map((A,T)=>{N.push(ie(S,{...A.props},`optChild-${T}-${new Date().getTime()}`))})):L.props.children.forEach((A,T)=>{let C="";T===0&&(C=L.props.label),N.push(ie(S,{className:T===0?"k-first":"",...A.props,groupLabel:C},`groupLabel-${T}-${new Date().getTime()}`))}),f=ie(E,{label:d,virtualization:s,children:N})):L.type===S&&(N.push(ie(S,{...L.props},`${L.type}-${M}`)),x=ie(ae,{virtualization:s,children:N}),c&&(v=Yt(Le,{className:"k-sr-only",children:[N.length," items found."]})))}):v=ie(Le,{children:"No data found."}),Yt("div",{...u,className:n(e.className,ct,b(ct,{size:t}),{"k-virtual-list":s}),children:[r,p,f,x,v]})};O.states=_s;O.options=Xs;O.className=ct;O.defaultOptions=Zt;import{jsx as q,jsxs as Js}from"react/jsx-runtime";var mt="k-list",Ds=[],Fs={size:[i.small,i.medium,i.large]},jt={size:i.medium},U=e=>{let{size:t=jt.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((v,N)=>{d.push(q(S,{...v.props},`optChild-${N}-${new Date().getTime()}`))})):(d.push(q(eo,{...f.props,children:f.props.label},`listChild-${x}`)),f.props.children.map((v,N)=>{d.push(q(S,{...v.props},`fwOptChild-${N}-${new Date().getTime()}`))})),c=q(E,{label:p,virtualization:s,children:d})):f.type===S&&(d.push(q(S,{...f.props},`${f.type}-${x}`)),u=q(ae,{virtualization:s,children:d}))}):u=q(Le,{children:"No data found."}),Js("div",{...r,className:n(e.className,mt,b(mt,{size:t}),{"k-virtual-list":s}),children:[c,u]})};U.states=Ds;U.options=Fs;U.className=mt;U.defaultOptions=jt;import{jsx as to}from"react/jsx-runtime";var Ve="k-checkbox",qs=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.checked,o.indeterminate],Us={size:[i.small,i.medium,i.large],rounded:[m.small,m.medium,m.large,m.full]},dt={size:i.medium,rounded:m.medium},_=e=>{let{id:t,checked:s,indeterminate:a,hover:r,focus:p,disabled:c,invalid:u,valid:d,required:f,size:x=dt.size,rounded:v=dt.rounded,...N}=e;return to("span",{className:"k-checkbox-wrap",children:to("input",{...N,id:t,type:"checkbox",defaultChecked:s,required:f,className:n(e.className,Ve,b(Ve,{size:x,rounded:v}),k(Ve,{hover:r,focus:p,disabled:c,invalid:u,valid:d,indeterminate:a,checked:s}))})})};_.states=qs;_.options=Us;_.className=Ve;_.defaultOptions=dt;import{jsx as Ys}from"react/jsx-runtime";var oo="k-checkbox-list",Ws=[],Qs={},so={layout:"vertical"},re=e=>{let{layout:t=so.layout,...s}=e;return Ys("ul",{...s,className:n(e.className,oo,{[`k-list-${t}`]:t}),children:e.children})};re.states=Ws;re.options=Qs;re.className=oo;re.defaultOptions=so;import{jsx as tn}from"react/jsx-runtime";var no="k-checkbox-list-item",Zs=[],js={},en={},le=e=>{let{...t}=e;return tn("li",{...t,className:n(e.className,no),children:e.children})};le.states=Zs;le.options=js;le.className=no;le.defaultOptions=en;import{Fragment as ic,jsx as nc,jsxs as ac}from"react/jsx-runtime";import{Fragment as mc,jsx as cc,jsxs as dc}from"react/jsx-runtime";import{Fragment as bc,jsx as xc,jsxs as vc}from"react/jsx-runtime";import{Fragment as gc,jsx as yc,jsxs as Ic}from"react/jsx-runtime";import{jsx as Mc}from"react/jsx-runtime";import{jsx as Oc}from"react/jsx-runtime";import{jsx as $e,jsxs as an}from"react/jsx-runtime";var ft="k-list-item",on=[o.hover,o.focus,o.selected,o.disabled],sn={},nn={},S=e=>{let{text:t,groupLabel:s,group:a,showIcon:r,iconName:p,showCheckbox:c,checked:u,hover:d,focus:f,selected:x,disabled:v,...N}=e,L=t||e.children;return an("li",{...N,className:n(e.className,a?"k-list-group-item":ft,k(ft,{hover:d,focus:f,disabled:v,selected:x})),children:[c&&$e(_,{checked:u}),r&&$e(y,{icon:p}),$e("span",{className:"k-list-item-text",children:L}),s&&s!==""&&$e("div",{className:"k-list-item-group-label",children:s})]})};S.states=on;S.options=sn;S.className=ft;S.defaultOptions=nn;import{jsx as ht,jsxs as ln}from"react/jsx-runtime";var rn="k-list-content",ae=e=>{let{virtualization:t,...s}=e;return ln("div",{...s,className:n(rn,e.className),children:[ht("ul",{className:n("k-list-ul"),children:e.children}),t&&ht("div",{className:"k-height-container",children:ht("div",{})})]})};import{jsx as io}from"react/jsx-runtime";var pn="k-list-group-sticky-header",ao=e=>io("div",{className:n(pn,e.className),children:io("div",{className:"k-list-header-text",children:e.children})});import{Fragment as cn,jsx as ro,jsxs as mn}from"react/jsx-runtime";var E=e=>{let{virtualization:t,label:s}=e;return mn(cn,{children:[s&&ro(ao,{children:s}),e.children&&ro(ae,{virtualization:t,children:e.children})]})};import{jsx as lo}from"react/jsx-runtime";var dn="k-list-group-item",eo=e=>lo("li",{className:n(dn,e.className),children:lo("span",{className:"k-list-item-text",children:e.children})});import{jsx as xn}from"react/jsx-runtime";var xt="k-list-optionlabel",un=[o.hover,o.focus,o.selected,o.disabled],fn={},hn={},Be=e=>{let{text:t,hover:s,focus:a,selected:r,disabled:p,...c}=e;return xn("div",{...c,className:n(xt,k(xt,{hover:s,focus:a,selected:r,disabled:p})),children:t})};Be.states=un;Be.options=fn;Be.className=xt;Be.defaultOptions=hn;import{jsx as Ln}from"react/jsx-runtime";var bt="k-list-custom-value",bn=[o.hover,o.focus,o.selected,o.disabled],vn={},Nn={},pe=e=>{let{text:t,hover:s,focus:a,selected:r,disabled:p,...c}=e;return Ln("div",{...c,className:n(bt,k(bt,{hover:s,focus:a,selected:r,disabled:p})),children:t})};pe.states=bn;pe.options=vn;pe.className=bt;pe.defaultOptions=Nn;import{jsx as hm}from"react/jsx-runtime";import{jsx as Nm}from"react/jsx-runtime";import{jsx as gm,jsxs as Im}from"react/jsx-runtime";import{jsx as Mm,jsxs as Tm}from"react/jsx-runtime";import{jsx as Hm}from"react/jsx-runtime";import{jsx as wm,jsxs as Vm}from"react/jsx-runtime";import{jsx as _m,jsxs as Xm}from"react/jsx-runtime";import{Fragment as Ge,jsx as g,jsxs as ce}from"react/jsx-runtime";var po="k-multiselect",Sn=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading,o.readonly],yn={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:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.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:v,hover:N,focus:L,valid:M,invalid:A,required:T,loading:C,disabled:H,readonly:me,opened:_e,adaptive:co,adaptiveSettings:mo,adaptiveTitle:uo,adaptiveSubtitle:fo,adaptiveCustomValue:ho,...xo}=e;return ce(Ge,{children:[ce(I,{...xo,size:t,rounded:s,fillMode:a,hover:N,focus:L,valid:M,invalid:A,required:T,loading:C,disabled:H,readonly:me,className:n(e.className,po),children:[p&&ce(Ge,{children:[g(ze,{children:p}),r&&g(W,{})]}),ce("div",{className:"k-input-values",children:[g(j,{size:t,children:g(Ge,{children:f})}),g(R,{placeholder:d,value:u})]}),g(P,{valid:M,invalid:A,loading:C,disabled:H}),g(w,{loading:C,disabled:H}),g(K,{loading:C,disabled:H,readonly:me,value:f?"value":""}),c&&ce(Ge,{children:[r&&g(W,{}),g(Ee,{children:c})]}),v&&g(z,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]}),_e&&x&&g(ee,{className:"k-list-container k-multiselect-popup",children:x}),co&&g(J,{adaptive:!0,...mo,header:g(G,{actionsEnd:g(z,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:u,inputPlaceholder:d,title:uo,subtitle:fo}),children:g("div",{className:"k-list-container",children:ce(O,{customValue:ho?g(pe,{text:`Use "${u}"`}):void 0,size:"large",children:[g(S,{text:"List item"}),g(S,{text:"List item"}),g(S,{text:"List item"})]})})})]})};ye.states=Sn;ye.options=yn;ye.className=po;ye.defaultOptions=Se;var xd=ye;export{po as MULTISELECT_CLASSNAME,ye as MultiSelect,xd as default};