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 Lo}from"react/jsx-runtime";var ge="k-input",vo=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading,o.readonly],No={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 Lo("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=vo;I.options=No;I.className=ge;I.defaultOptions=Ie;import{jsx as go}from"react/jsx-runtime";var ke="k-picker",So=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading,o.readonly],yo={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 go("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=So;Ce.options=yo;Ce.className=ke;Ce.defaultOptions=Ae;import{Fragment as Co,jsx as vt}from"react/jsx-runtime";var Xe="k-icon k-font-icon",Io=[],ko={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]},Ao={},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(Co,{})};de.states=Io;de.options=ko;de.className=Xe;de.defaultOptions=Ao;var Nt=de;import{Fragment as zo,jsx as Me}from"react/jsx-runtime";var De="k-icon k-svg-icon",Mo=[],To={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(zo,{});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=Mo;ue.options=To;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 Eo=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Oo=[],Ho={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=Eo(`${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=Oo;y.options=Ho;y.defaultOptions=Je;import{Fragment as Po,jsx as qe}from"react/jsx-runtime";var gt="k-clear-value",Ko=[o.disabled,o.loading,o.readonly],Ro={},K=e=>{let{disabled:t,loading:s,readonly:a,value:r}=e;return t||a||s||!r?qe(Po,{}):qe("span",{className:n(e.className,gt),children:qe(y,{icon:"x"})})};K.states=Ko;K.options=Ro;K.className=gt;import{jsx as $o}from"react/jsx-runtime";var Ue="k-input-inner",wo=[],Vo={},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 $o("input",{...p,type:s,className:n(e.className,Ue,b(Ue,e)),placeholder:a,autoComplete:r,defaultValue:t})};R.states=wo;R.options=Vo;R.className=Ue;import{jsx as It,jsxs as _o}from"react/jsx-runtime";var We="k-input-inner",Bo=[],Go={},Qe=e=>{let{value:t,placeholder:s,showValue:a,valueIcon:r,valueIconName:p,...c}=e;return _o("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=Bo;Qe.options=Go;Qe.className=We;import{jsx as Fo}from"react/jsx-runtime";var Ye="k-input-inner",Xo=[],Do={},kt={value:"",placeholder:""},Ze=e=>{let{value:t=kt.value,placeholder:s=kt.placeholder,rows:a,...r}=e;return Fo("textarea",{...r,className:n(e.className,Ye,b(Ye,e)),placeholder:s,rows:a,defaultValue:t})};Ze.states=Xo;Ze.options=Do;Ze.className=Ye;import{Fragment as qo,jsx as At}from"react/jsx-runtime";var Ct="k-input-loading-icon",Jo=[o.disabled,o.loading],w=e=>{let{disabled:t,loading:s}=e;return t||!s?At(qo,{}):At("span",{className:n(e.className,Ct,"k-icon k-i-loading")})};w.states=Jo;w.className=Ct;import{Fragment as Qo,jsx as Mt}from"react/jsx-runtime";var Tt="k-input-validation-icon",Uo=[o.valid,o.invalid,o.disabled,o.loading],Wo={},P=e=>{let{valid:t,invalid:s,disabled:a,loading:r}=e,p=s?"warning-circle":"check-circle";return a||r||!!!(t||s)?Mt(Qo,{}):Mt(y,{className:n(Tt),icon:p})};P.states=Uo;P.options=Wo;P.className=Tt;import{Fragment as jo,jsx as zt}from"react/jsx-runtime";var Yo="k-input-prefix",Zo={direction:"horizontal"},ze=e=>{let{direction:t=Zo.direction,...s}=e;return e.children?zt("span",{...s,className:n(Yo,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):zt(jo,{})};import{Fragment as os,jsx as Et}from"react/jsx-runtime";var es="k-input-suffix",ts={direction:"horizontal"},Ee=e=>{let{direction:t=ts.direction,...s}=e;return e.children?Et("span",{...s,className:n(es,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Et(os,{})};import{jsx as Ti}from"react/jsx-runtime";import{jsx as Hi}from"react/jsx-runtime";import{jsx as ns}from"react/jsx-runtime";var Ot="k-input-separator",ss={direction:"vertical"},W=e=>{let{direction:t=ss.direction,...s}=e;return ns("span",{...s,className:n(Ot,e.className,{[`${Ot}-${t}`]:t})})};import{Fragment as rs,jsx as he,jsxs as Ht}from"react/jsx-runtime";var Oe="k-button",is=[o.hover,o.focus,o.active,o.selected,o.disabled],as={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(rs,{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=is;z.options=as;z.className=Oe;z.defaultOptions=X;import{jsx as na}from"react/jsx-runtime";import{jsx as la}from"react/jsx-runtime";import{jsx as da}from"react/jsx-runtime";import{jsx as ya}from"react/jsx-runtime";import{jsx as Kt}from"react/jsx-runtime";var xe="k-avatar";var ls=[o.hover,o.focus,o.active,o.selected,o.disabled],ps={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=ls;Q.options=ps;Q.className=xe;Q.defaultOptions=D;import{jsx as Ta}from"react/jsx-runtime";import{jsx as Ha}from"react/jsx-runtime";import{jsx as wa}from"react/jsx-runtime";import{jsx as Y,jsxs as ds}from"react/jsx-runtime";var He="k-chip",cs=[o.hover,o.focus,o.active,o.selected,o.disabled],ms={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 ds("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=cs;Ke.options=ms;Ke.className=He;Ke.defaultOptions=Z;import{jsx as hs}from"react/jsx-runtime";var je="k-chip-list",us=[],fs={size:[i.small,i.medium,i.large]},Pt={size:i.medium},j=e=>{let{size:t=Pt.size,...s}=e;return hs("div",{...s,className:n(e.className,je,b(je,{size:t})),children:e.children})};j.states=us;j.options=fs;j.className=je;j.defaultOptions=Pt;import{jsx as er}from"react/jsx-runtime";import{jsx as nr}from"react/jsx-runtime";import{jsx as lr}from"react/jsx-runtime";import{jsx as ur}from"react/jsx-runtime";import{Fragment as Nr,jsx as vr,jsxs as Lr}from"react/jsx-runtime";import{jsx as wt}from"react/jsx-runtime";var Vt="k-animation-container",bs=[],vs={},$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=bs;V.options=vs;V.className=Vt;V.defaultOptions=$t;import{jsx as Bt}from"react/jsx-runtime";var Gt="k-popup",Ns=[],Ls={},_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=Ns;ee.options=Ls;ee.className=Gt;ee.defaultOptions=_t;import{jsx as gs}from"react/jsx-runtime";var Pe="k-actions",Ss=[],ys={},et={alignment:"start",orientation:"horizontal"},te=e=>{let{alignment:t=et.alignment,orientation:s=et.orientation,...a}=e;return gs("div",{...a,className:n(Pe,{[`${Pe}-${t}`]:t,[`${Pe}-${s}`]:s},e.className),children:e.children})};te.states=Ss;te.options=ys;te.className=Pe;te.defaultOptions=et;import{jsx as ks}from"react/jsx-runtime";var Is="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 ks(r,{...p,...!a&&{alignment:t,orientation:s},className:n(e.className,Is),children:e.children})};import{jsx as be,jsxs as Ms}from"react/jsx-runtime";var Dt="k-searchbox",As=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading],Cs={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 Ms(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=As;oe.options=Cs;oe.className=Dt;oe.defaultOptions=ot;import{jsx as il}from"react/jsx-runtime";import{Fragment as Ft,jsx as $,jsxs as st}from"react/jsx-runtime";var Jt="k-textbox",Ts=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.loading,o.readonly],zs={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=Ts;se.options=zs;se.className=Jt;se.defaultOptions=F;import{jsx as xl}from"react/jsx-runtime";import{Fragment as yl,jsx as Sl}from"react/jsx-runtime";import{Fragment as Tl,jsx as Ml}from"react/jsx-runtime";import{jsx as B,jsxs as nt}from"react/jsx-runtime";var Ut="k-actionsheet-titlebar",Es={},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=Es;import{jsx as it,jsxs as Rs}from"react/jsx-runtime";var at="k-actionsheet-view",Os=[],Hs={},Ks={},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 Rs("div",{...c,className:n(e.className,at,{[`${at}-animated`]:s}),children:[u,it("div",{className:"k-actionsheet-content",children:a}),d]})};ne.states=Os;ne.options=Hs;ne.className=at;ne.defaultOptions=Ks;import{jsx as we,jsxs as Vs}from"react/jsx-runtime";var Wt="k-actionsheet",Ps=[],ws={},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 Vs("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=Ps;J.options=ws;J.className=Wt;J.defaultOptions=ve;import{jsx as jl}from"react/jsx-runtime";import{Fragment as Bs,jsx as Ne,jsxs as rt}from"react/jsx-runtime";var lt="k-actionsheet-item",$s=[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(Bs,{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=$s;pt.className=lt;import{jsx as lp,jsxs as pp}from"react/jsx-runtime";import{jsx as up}from"react/jsx-runtime";import{jsx as bp}from"react/jsx-runtime";import{jsx as Sp}from"react/jsx-runtime";import{jsx as _s}from"react/jsx-runtime";var Gs="k-no-data",Le=e=>_s("span",{className:n(Gs,e.className),children:e.children});import{jsx as ie,jsxs as Yt}from"react/jsx-runtime";var ct="k-list",Xs=[],Ds={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=Xs;O.options=Ds;O.className=ct;O.defaultOptions=Zt;import{jsx as q,jsxs as qs}from"react/jsx-runtime";var mt="k-list",Fs=[],Js={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."}),qs("div",{...r,className:n(e.className,mt,b(mt,{size:t}),{"k-virtual-list":s}),children:[c,u]})};U.states=Fs;U.options=Js;U.className=mt;U.defaultOptions=jt;import{jsx as to}from"react/jsx-runtime";var Ve="k-checkbox",Us=[o.hover,o.focus,o.valid,o.invalid,o.required,o.disabled,o.checked,o.indeterminate],Ws={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=Us;_.options=Ws;_.className=Ve;_.defaultOptions=dt;import{jsx as Zs}from"react/jsx-runtime";var oo="k-checkbox-list",Qs=[],Ys={},so={layout:"vertical"},re=e=>{let{layout:t=so.layout,...s}=e;return Zs("ul",{...s,className:n(e.className,oo,{[`k-list-${t}`]:t}),children:e.children})};re.states=Qs;re.options=Ys;re.className=oo;re.defaultOptions=so;import{jsx as on}from"react/jsx-runtime";var no="k-checkbox-list-item",js=[],en={},tn={},le=e=>{let{...t}=e;return on("li",{...t,className:n(e.className,no),children:e.children})};le.states=js;le.options=en;le.className=no;le.defaultOptions=tn;import{Fragment as rc,jsx as ac,jsxs as lc}from"react/jsx-runtime";import{Fragment as uc,jsx as dc,jsxs as fc}from"react/jsx-runtime";import{Fragment as Nc,jsx as vc,jsxs as Lc}from"react/jsx-runtime";import{Fragment as kc,jsx as Ic,jsxs as Ac}from"react/jsx-runtime";import{jsx as zc}from"react/jsx-runtime";import{jsx as Kc}from"react/jsx-runtime";import{jsx as $e,jsxs as rn}from"react/jsx-runtime";var ft="k-list-item",sn=[o.hover,o.focus,o.selected,o.disabled],nn={},an={},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 rn("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=sn;S.options=nn;S.className=ft;S.defaultOptions=an;import{jsx as ht,jsxs as pn}from"react/jsx-runtime";var ln="k-list-content",ae=e=>{let{virtualization:t,...s}=e;return pn("div",{...s,className:n(ln,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 cn="k-list-group-sticky-header",ao=e=>io("div",{className:n(cn,e.className),children:io("div",{className:"k-list-header-text",children:e.children})});import{Fragment as mn,jsx as ro,jsxs as dn}from"react/jsx-runtime";var E=e=>{let{virtualization:t,label:s}=e;return dn(mn,{children:[s&&ro(ao,{children:s}),e.children&&ro(ae,{virtualization:t,children:e.children})]})};import{jsx as lo}from"react/jsx-runtime";var un="k-list-group-item",eo=e=>lo("li",{className:n(un,e.className),children:lo("span",{className:"k-list-item-text",children:e.children})});import{jsx as bn}from"react/jsx-runtime";var xt="k-list-optionlabel",fn=[o.hover,o.focus,o.selected,o.disabled],hn={},xn={},Be=e=>{let{text:t,hover:s,focus:a,selected:r,disabled:p,...c}=e;return bn("div",{...c,className:n(xt,k(xt,{hover:s,focus:a,selected:r,disabled:p})),children:t})};Be.states=fn;Be.options=hn;Be.className=xt;Be.defaultOptions=xn;import{jsx as Sn}from"react/jsx-runtime";var bt="k-list-custom-value",vn=[o.hover,o.focus,o.selected,o.disabled],Nn={},Ln={},pe=e=>{let{text:t,hover:s,focus:a,selected:r,disabled:p,...c}=e;return Sn("div",{...c,className:n(bt,k(bt,{hover:s,focus:a,selected:r,disabled:p})),children:t})};pe.states=vn;pe.options=Nn;pe.className=bt;pe.defaultOptions=Ln;import{jsx as bm}from"react/jsx-runtime";import{jsx as Sm}from"react/jsx-runtime";import{jsx as km,jsxs as Am}from"react/jsx-runtime";import{jsx as zm,jsxs as Em}from"react/jsx-runtime";import{jsx as Rm}from"react/jsx-runtime";import{jsx as $m,jsxs as Bm}from"react/jsx-runtime";import{jsx as Dm,jsxs as Fm}from"react/jsx-runtime";import{Fragment as Ge,jsx as g,jsxs as ce}from"react/jsx-runtime";var po="k-multiselect",yn=[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: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:mo,adaptiveSettings:uo,adaptiveTitle:fo,adaptiveSubtitle:ho,adaptiveCustomValue:xo,...bo}=e;return ce(Ge,{children:[ce(I,{...bo,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}),mo&&g(J,{adaptive:!0,...uo,header:g(G,{actionsEnd:g(z,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:u,inputPlaceholder:d,title:fo,subtitle:ho}),children:g("div",{className:"k-list-container",children:ce(O,{customValue:xo?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=yn;ye.options=gn;ye.className=po;ye.defaultOptions=Se;var co=ye;import{jsx as In}from"react/jsx-runtime";var Sd=e=>In(co,{...e});export{Sd as MultiSelectNormal};