@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 26.9 kB
JavaScript
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,i)=>t[i]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var M=(e,t)=>s({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),g=(e,t)=>{let{valid:o,invalid:i,hover:r,focus:l,checked:p,active:d,selected:c,disabled:u,indeterminate:N,loading:h,empty:L,readonly:S,highlighted:v,...I}=t;return s({"k-valid":o,"k-invalid":i,"k-hover":r,"k-focus":l,"k-checked":p,"k-active":d,"k-selected":c,"k-disabled":u,"k-indeterminate":N&&!p,"k-loading":h,"k-empty":L,"k-readonly":S,"k-highlighted":v},Object.keys(I).reduce((O,C)=>(C.startsWith("k-")?O[C]=I[C]:O[`k-${C}`]=I[C],O),{}))};function Ot(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(i=>[`k-${i}`,!0]))}var a={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},x={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},m={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},n={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var ue="input",Te=ue;import{jsx as Po}from"react/jsx-runtime";var Oe="k-input",Ho=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Ro={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},ge={size:a.medium,rounded:a.medium,fillMode:x.solid},E=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:d,size:c=ge.size,rounded:u=ge.rounded,fillMode:N=ge.fillMode,...h}=e;return Po("span",{...h,className:s(e.className,Oe,M(Oe,{size:c,rounded:u,fillMode:N}),g(Oe,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:d}))})};E.states=Ho;E.options=Ro;E.className=Oe;E.defaultOptions=ge;E.moduleName=ue;E.folderName=Te;import{jsx as Bo}from"react/jsx-runtime";var ke="k-picker",zo=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Do={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},ye={size:a.medium,rounded:f.medium,fillMode:x.solid},se=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:d,size:c=ye.size,rounded:u=ye.rounded,fillMode:N=ye.fillMode,...h}=e;return Bo("span",{...h,className:s(e.className,ke,M(ke,{size:c,rounded:u,fillMode:N}),g(ke,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:d})),children:e.children})};se.states=zo;se.options=Do;se.className=ke;se.defaultOptions=ye;se.moduleName=ue;se.folderName=Te;import{Fragment as Vo,jsx as gt}from"react/jsx-runtime";var Ge="k-font-icon",wo=[],Uo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Fo={},fe=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:l,...p}=e;return i?gt("span",{...p,className:s(e.className,Ge,M(Ge,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):gt(Vo,{})};fe.states=wo;fe.options=Uo;fe.className=Ge;fe.defaultOptions=Fo;var kt=fe;import{Fragment as Xo,jsx as _e}from"react/jsx-runtime";var $e="k-svg-icon",Go=[],$o={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},yt={viewBox:"0 0 24 24"},xe=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:l=yt.viewBox,icon:p,...d}=e;if(!p)return _e(Xo,{});p==="none"&&{...d,className:s(e.className,$e,"k-none")};let c=typeof p=="object"&&p.name&&p.name;return _e("span",{...d,className:s(e.className,$e,M("k-icon",{size:t}),{[`k-svg-i-${c}`]:c,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:_e("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:l,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:e.children})})};xe.states=Go;xe.options=$o;xe.className=$e;xe.defaultOptions=yt;var Xe=xe;import*as Je from"@progress/kendo-svg-icons";var _t="icon",Kt="icons";import{Fragment as Ht,jsx as Ne}from"react/jsx-runtime";var Ke="k-icon",Jo=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),qo=[],Wo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},qe={viewBox:"0 0 24 24",type:"svg"},A=e=>{let{size:t,themeColor:o,icon:i,type:r=qe.type,rotate:l,flip:p,viewBox:d=qe.viewBox,...c}=e;if(!i)return Ne(Ht,{});if(r==="svg"){if(i==="none")return Ne(Xe,{...c,className:s(e.className,Ke),icon:i,size:t});let u=Je[i]?i:Jo(`${i}-icon`);return Je[u]?Ne(Xe,{...c,className:s(e.className,Ke),icon:Je[u],size:t,themeColor:o,rotate:l,flip:p,viewBox:d}):Ne(Ht,{})}return Ne(kt,{...c,className:s(e.className,Ke),icon:i,size:t,themeColor:o,rotate:l,flip:p})};A.states=qo;A.options=Wo;A.defaultOptions=qe;A.className=Ke;A.moduleName=_t;A.folderName=Kt;import{Fragment as Zo,jsx as We}from"react/jsx-runtime";var Rt="k-clear-value",Qo=[n.disabled,n.loading,n.readonly],Yo={},P=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?We(Zo,{}):We("span",{className:s(e.className,Rt),children:We(A,{icon:"x"})})};P.states=Qo;P.options=Yo;P.className=Rt;import{jsx as tn}from"react/jsx-runtime";var Qe="k-input-inner",jo=[],en={},He={type:"text",autocomplete:"off",value:"",placeholder:""},z=e=>{let{value:t=He.value,type:o=He.type,placeholder:i=He.placeholder,autocomplete:r=He.autocomplete,...l}=e;return tn("input",{...l,type:o,className:s(e.className,Qe,M(Qe,e)),placeholder:i,autoComplete:r,defaultValue:t})};z.states=jo;z.options=en;z.className=Qe;import{jsx as Pt,jsxs as sn}from"react/jsx-runtime";var Ye="k-input-inner",on=[],nn={},Ze=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:l,...p}=e;return sn("span",{...p,className:s(e.className,Ye,M(Ye,e)),children:[r,!r&&l&&Pt(A,{className:"k-input-value-icon",icon:l}),i&&!t&&o,i&&t&&Pt("span",{className:"k-input-value-text",children:t})]})};Ze.states=on;Ze.options=nn;Ze.className=Ye;import{jsx as ln}from"react/jsx-runtime";var je="k-input-inner",an=[],rn={},zt={value:"",placeholder:""},et=e=>{let{value:t=zt.value,placeholder:o=zt.placeholder,rows:i,...r}=e;return ln("textarea",{...r,className:s(e.className,je,M(je,e)),placeholder:o,rows:i,defaultValue:t})};et.states=an;et.options=rn;et.className=je;import{Fragment as mn,jsx as Dt}from"react/jsx-runtime";var Bt="k-input-loading-icon",pn=[n.disabled,n.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?Dt(mn,{}):Dt("span",{className:s(e.className,Bt,"k-icon k-i-loading")})};F.states=pn;F.className=Bt;import{Fragment as un,jsx as wt}from"react/jsx-runtime";var Ut="k-input-validation-icon",cn=[n.valid,n.invalid,n.disabled,n.loading],dn={},D=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,l=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?wt(un,{}):wt(A,{className:s(Ut),icon:l})};D.states=cn;D.options=dn;D.className=Ut;import{Fragment as Nn,jsx as Ft}from"react/jsx-runtime";var fn="k-input-prefix",xn={direction:"horizontal"},Re=e=>{let{direction:t=xn.direction,...o}=e;return e.children?Ft("span",{...o,className:s(fn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ft(Nn,{})};import{Fragment as bn,jsx as Vt}from"react/jsx-runtime";var hn="k-input-suffix",Ln={direction:"horizontal"},Pe=e=>{let{direction:t=Ln.direction,...o}=e;return e.children?Vt("span",{...o,className:s(hn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Vt(bn,{})};import{jsx as Qi}from"react/jsx-runtime";import{jsx as ea}from"react/jsx-runtime";import{jsx as Sn}from"react/jsx-runtime";var Gt="k-input-separator",An={direction:"vertical"},ie=e=>{let{direction:t=An.direction,...o}=e;return Sn("span",{...o,className:s(Gt,e.className,{[`${Gt}-${t}`]:t})})};var tt="popup",$t=tt;import{jsx as Xt}from"react/jsx-runtime";var Jt="k-animation-container",Mn=[],En={},qt={positionMode:"absolute"},_=e=>{let{positionMode:t=qt.positionMode,animationStyle:o,offset:i,...r}=e;return Xt("div",{...r,style:{...i,...e.style},className:s(e.className,Jt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Xt("div",{className:"k-child-animation-container",style:o,children:e.children})})};_.states=Mn;_.options=En;_.className=Jt;_.defaultOptions=qt;_.moduleName=tt;_.folderName=$t;var ot="popup",Wt=ot;import{jsx as Qt}from"react/jsx-runtime";var Yt="k-popup",In=[],vn={},Zt={positionMode:"absolute"},V=e=>{let{offset:t,positionMode:o=Zt.positionMode,animationStyle:i,...r}=e;return Qt(_,{positionMode:o,offset:t,animationStyle:i,children:Qt("div",{...r,className:s(e.className,Yt),children:e.children})})};V.states=In;V.options=vn;V.className=Yt;V.defaultOptions=Zt;V.moduleName=ot;V.folderName=Wt;var nt="action-buttons",jt=nt;import{jsx as On}from"react/jsx-runtime";var ze="k-actions",Cn=[],Tn={},st={alignment:"start",orientation:"horizontal"},G=e=>{let{alignment:t=st.alignment,orientation:o=st.orientation,...i}=e;return On("div",{...i,className:s(ze,{[`${ze}-${t}`]:t,[`${ze}-${o}`]:o},e.className),children:e.children})};G.states=Cn;G.options=Tn;G.className=ze;G.defaultOptions=st;G.moduleName=nt;G.folderName=jt;import{jsx as kn}from"react/jsx-runtime";var gn="k-actionsheet-footer",eo={alignment:"stretched",orientation:"horizontal"},it=e=>{let{alignment:t=eo.alignment,orientation:o=eo.orientation,template:i,as:r=i?"div":G,...l}=e;return kn(r,{...l,...!i&&{alignment:t,orientation:o},className:s(e.className,gn),children:e.children})};var at="searchbox",to=at;import{jsx as he,jsxs as Kn}from"react/jsx-runtime";var oo="k-searchbox",yn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],_n={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},rt={showIcon:!0,icon:"search",size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},$=e=>{let{value:t,placeholder:o,size:i,rounded:r,fillMode:l,hover:p,focus:d,valid:c,invalid:u,required:N,loading:h,disabled:L,showIcon:S=rt.showIcon,icon:v=rt.icon,...I}=e;return Kn(E,{...I,size:i,rounded:r,fillMode:l,hover:p,focus:d,valid:c,invalid:u,required:N,loading:h,disabled:L,className:s(e.className,oo),children:[S&&he(A,{className:"k-input-icon",icon:v}),he(z,{placeholder:o,value:t}),he(F,{...e}),he(D,{...e}),he(P,{...e})]})};$.states=yn;$.options=_n;$.className=oo;$.defaultOptions=rt;$.moduleName=at;$.folderName=to;import{jsx as tr}from"react/jsx-runtime";var lt="textbox",no=lt;import{Fragment as so,jsx as X,jsxs as pt}from"react/jsx-runtime";var io="k-textbox",Hn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Rn={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},j={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},J=e=>{let{size:t=j.size,rounded:o=j.rounded,fillMode:i=j.fillMode,separators:r=j.separators,showClearButton:l=j.showClearButton,showValidationIcon:p=j.showValidationIcon,prefix:d,suffix:c,type:u,value:N,placeholder:h,hover:L,focus:S,valid:v,invalid:I,required:O,loading:C,disabled:R,readonly:Ce,...Ve}=e;return pt(E,{...Ve,size:t,rounded:o,fillMode:i,hover:L,focus:S,valid:v,invalid:I,required:O,loading:C,disabled:R,readonly:Ce,className:s(e.className,io),children:[d&&pt(so,{children:[X(Re,{children:d}),r&&X(ie,{})]}),X(z,{placeholder:h,value:N,type:u}),p&&X(D,{valid:v,invalid:I,loading:C,disabled:R}),X(F,{loading:C,disabled:R}),l&&X(P,{loading:C,disabled:R,readonly:Ce,value:N}),c&&pt(so,{children:[r&&X(ie,{}),X(Pe,{children:c})]})]})};J.states=Hn;J.options=Rn;J.className=io;J.defaultOptions=j;J.moduleName=lt;J.folderName=no;import{jsx as fr}from"react/jsx-runtime";import{Fragment as Ar,jsx as br}from"react/jsx-runtime";var mt="button",ro=mt;import{Fragment as Bn,jsx as Le,jsxs as lo}from"react/jsx-runtime";var be="k-button",Pn=["icon-button"],zn=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Dn={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark,m.inverse]},ee={size:a.medium,rounded:f.medium,fillMode:x.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},k=e=>{let{size:t=ee.size,rounded:o=ee.rounded,fillMode:i=ee.fillMode,themeColor:r=ee.themeColor,showArrow:l=ee.showArrow,arrowIconName:p=ee.arrowIconName,variant:d,hover:c,focus:u,active:N,selected:h,disabled:L,icon:S,text:v,iconClassName:I,...O}=e,C=S!==void 0,R=e.children!==void 0;return lo("button",{...O,className:s(e.className,be,Ot(be,d),M(be,{size:t,rounded:o,fillMode:i,themeColor:r}),g(be,{hover:c,focus:u,active:N,disabled:L,selected:h}),{"k-icon-button":!v&&!R&&C}),children:[S&&Le(A,{className:s(I,"k-button-icon"),icon:S}),v?lo(Bn,{children:[v&&Le("span",{className:"k-button-text",children:v}),e.children]}):e.children&&Le("span",{className:"k-button-text",children:e.children}),l&&Le("span",{className:"k-menu-button-arrow k-button-arrow",children:Le(A,{icon:p})})]})};k.states=zn;k.options=Dn;k.variants=Pn;k.className=be;k.defaultOptions=ee;k.moduleName=mt;k.folderName=ro;import{jsx as kr}from"react/jsx-runtime";import{jsx as Hr}from"react/jsx-runtime";import{jsx as Dr}from"react/jsx-runtime";import{Fragment as Qr,jsx as Wr}from"react/jsx-runtime";import{jsx as q,jsxs as ct}from"react/jsx-runtime";var po="k-actionsheet-titlebar",wn={},W=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:l,input:p,inputValue:d,inputPlaceholder:c,adaptive:u,children:N,...h}=e;return ct("div",{...h,className:s(e.className,po),children:[ct("div",{className:"k-actionsheet-titlebar-group",children:[i&&q("div",{className:"k-actionsheet-actions",children:i}),!N&&ct("div",{className:"k-actionsheet-title",children:[t&&q("div",{className:"k-text-center",children:t}),o&&q("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&q("div",{className:"k-actionsheet-title",children:N}),r&&q("div",{className:"k-actionsheet-actions",children:r})]}),(p||l)&&q("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?q(J,{value:d,placeholder:c,size:u?"large":"medium"}):q($,{placeholder:"Filter",size:u?"large":"medium"})})]})};W.className=po;W.defaultOptions=wn;import{jsx as dt,jsxs as Gn}from"react/jsx-runtime";var ut="k-actionsheet-view",Un=[],Fn={},Vn={},ae=e=>{let{adaptive:t,animated:o,children:i,header:r,footer:l,...p}=e,d=r?.type===W&&dt(W,{adaptive:t,...r?.props}),c=l?.type===it&&dt(it,{...l?.props});return Gn("div",{...p,className:s(e.className,ut,{[`${ut}-animated`]:o}),children:[d,dt("div",{className:"k-actionsheet-content",children:i}),c]})};ae.states=Un;ae.options=Fn;ae.className=ut;ae.defaultOptions=Vn;var Ae="action-sheet",De=Ae;import{jsx as Be,jsxs as Jn}from"react/jsx-runtime";var mo="k-actionsheet",$n=[],Xn={},Se={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},B=e=>{let{side:t=Se.side,fullscreen:o=Se.fullscreen,adaptive:i=Se.adaptive,overlay:r=Se.overlay,template:l,children:p,header:d,footer:c,...u}=e;return Jn("div",{className:"k-actionsheet-container",children:[r&&Be("div",{className:"k-overlay"}),Be(_,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:Be("div",{...u,className:s(e.className,mo,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:l||Be(ae,{header:d,footer:c,adaptive:i,...e,children:p})})})]})};B.states=$n;B.options=Xn;B.className=mo;B.defaultOptions=Se;B.moduleName=Ae;B.folderName=De;import{jsx as Yn}from"react/jsx-runtime";var co="k-actionsheet-container",qn=[],Wn={},Qn={},re=e=>{let{children:t,...o}=e;return Yn("div",{...o,className:co,children:t})};re.states=qn;re.options=Wn;re.className=co;re.defaultOptions=Qn;re.moduleName=Ae;re.folderName=De;import{jsx as vl}from"react/jsx-runtime";import{Fragment as jn,jsx as Me,jsxs as ft}from"react/jsx-runtime";var xt="k-actionsheet-item",Zn=[n.hover,n.focus,n.selected,n.disabled],Nt=e=>{let{iconName:t,text:o,description:i,hover:r,focus:l,selected:p,disabled:d,...c}=e;return ft("span",{...c,className:s(e.className,xt,g(xt,{hover:r,focus:l,selected:p,disabled:d})),children:[!e.children&&Me(jn,{children:ft("span",{className:"k-actionsheet-action",children:[t&&Me("span",{className:"k-icon-wrap",children:Me(A,{className:"k-actionsheet-item-icon",icon:t})}),ft("span",{className:"k-actionsheet-item-text",children:[o&&Me("span",{className:"k-actionsheet-item-title",children:o}),i&&Me("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};Nt.states=Zn;Nt.className=xt;import{jsx as Hl,jsxs as Rl}from"react/jsx-runtime";import{jsx as Bl}from"react/jsx-runtime";import{jsx as Vl}from"react/jsx-runtime";import{jsx as Jl}from"react/jsx-runtime";import{jsx as ts}from"react/jsx-runtime";var es="k-no-data",Ee=e=>ts("span",{className:s(es,e.className),children:e.children});var w="list",Q=w;import{jsx as le,jsxs as fo}from"react/jsx-runtime";var ht="k-list",os=[],ns={size:[a.small,a.medium,a.large]},xo={size:a.medium},y=e=>{let{size:t=xo.size,virtualization:o,children:i,optionLabel:r,customValue:l,screenReaders:p,...d}=e,c,u,N,h,L=[];return i?i.map((S,v)=>{S.type===K?(S.props.root===!0?(c=S.props.label,S.props.children.map((I,O)=>{L.push(le(b,{...I.props},`optChild-${O}-${new Date().getTime()}`))})):S.props.children.forEach((I,O)=>{let C="";O===0&&(C=S.props.label),L.push(le(b,{className:O===0?"k-first":"",...I.props,groupLabel:C},`groupLabel-${O}-${new Date().getTime()}`))}),u=le(K,{label:c,virtualization:o,children:L})):S.type===b&&(L.push(le(b,{...S.props},`${S.type}-${v}`)),N=le(pe,{virtualization:o,children:L}),p&&(h=fo(Ee,{className:"k-sr-only",children:[L.length," items found."]})))}):h=le(Ee,{children:"No data found."}),fo("div",{...d,className:s(e.className,ht,M(ht,{size:t}),{"k-virtual-list":o}),children:[r,l,u,N,h]})};y.states=os;y.options=ns;y.className=ht;y.defaultOptions=xo;y.moduleName=w;y.folderName=Q;import{jsx as rs}from"react/jsx-runtime";var No="k-list-container",ss=[],is={},as={},me=e=>{let{...t}=e;return rs("div",{...t,className:s(e.className,No),children:e.children})};me.states=ss;me.options=is;me.className=No;me.defaultOptions=as;me.moduleName=w;me.folderName=Q;import{jsx as te,jsxs as ms}from"react/jsx-runtime";var Lt="k-list",ls=[],ps={size:[a.small,a.medium,a.large]},ho={size:a.medium},U=e=>{let{size:t=ho.size,virtualization:o,children:i,...r}=e,l,p,d,c=[];return i?i.map((u,N)=>{u.type===K?(u.props.root===!0?(l=u.props.label,u.props.children.map((h,L)=>{c.push(te(b,{...h.props},`optChild-${L}-${new Date().getTime()}`))})):(c.push(te(Lo,{...u.props,children:u.props.label},`listChild-${N}`)),u.props.children.map((h,L)=>{c.push(te(b,{...h.props},`fwOptChild-${L}-${new Date().getTime()}`))})),p=te(K,{label:l,virtualization:o,children:c})):u.type===b&&(c.push(te(b,{...u.props},`${u.type}-${N}`)),d=te(pe,{virtualization:o,children:c}))}):d=te(Ee,{children:"No data found."}),ms("div",{...r,className:s(e.className,Lt,M(Lt,{size:t}),{"k-virtual-list":o}),children:[p,d]})};U.states=ls;U.options=ps;U.className=Lt;U.defaultOptions=ho;U.moduleName=w;U.folderName=Q;var oe="checkbox",ce=oe;import{jsx as bo}from"react/jsx-runtime";var we="k-checkbox",cs=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],ds={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full]},bt={size:a.medium,rounded:f.medium},H=e=>{let{id:t,checked:o,indeterminate:i,hover:r,focus:l,disabled:p,invalid:d,valid:c,required:u,size:N=bt.size,rounded:h=bt.rounded,...L}=e;return bo("span",{className:"k-checkbox-wrap",children:bo("input",{...L,id:t,type:"checkbox",defaultChecked:o,required:u,className:s(e.className,we,M(we,{size:N,rounded:h}),g(we,{hover:r,focus:l,disabled:p,invalid:d,valid:c,indeterminate:i,checked:o}))})})};H.states=cs;H.options=ds;H.className=we;H.defaultOptions=bt;H.moduleName=oe;H.folderName=ce;import{jsx as xs}from"react/jsx-runtime";var Ao="k-checkbox-list",us=[],fs={},So={layout:"vertical"},Y=e=>{let{layout:t=So.layout,...o}=e;return xs("ul",{...o,className:s(e.className,Ao,{[`k-list-${t}`]:t}),children:e.children})};Y.states=us;Y.options=fs;Y.className=Ao;Y.defaultOptions=So;Y.moduleName=oe;Y.folderName=ce;import{jsx as bs}from"react/jsx-runtime";var Mo="k-checkbox-list-item",Ns=[],hs={},Ls={},Z=e=>{let{...t}=e;return bs("li",{...t,className:s(e.className,Mo),children:e.children})};Z.states=Ns;Z.options=hs;Z.className=Mo;Z.defaultOptions=Ls;Z.moduleName=oe;Z.folderName=ce;import{Fragment as $p,jsx as Gp,jsxs as Xp}from"react/jsx-runtime";import{Fragment as Yp,jsx as Qp,jsxs as Zp}from"react/jsx-runtime";import{Fragment as nm,jsx as om,jsxs as sm}from"react/jsx-runtime";import{Fragment as pm,jsx as lm,jsxs as mm}from"react/jsx-runtime";import{jsx as fm}from"react/jsx-runtime";import{jsx as Lm}from"react/jsx-runtime";import{jsx as Ue,jsxs as Es}from"react/jsx-runtime";var St="k-list-item",As=[n.hover,n.focus,n.selected,n.disabled],Ss={},Ms={},b=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:l,showCheckbox:p,checked:d,hover:c,focus:u,selected:N,disabled:h,...L}=e,S=t||e.children;return Es("li",{...L,className:s(e.className,i?"k-list-group-item":St,g(St,{hover:c,focus:u,disabled:h,selected:N})),children:[p&&Ue(H,{checked:d}),r&&Ue(A,{icon:l}),Ue("span",{className:"k-list-item-text",children:S}),o&&o!==""&&Ue("div",{className:"k-list-item-group-label",children:o})]})};b.states=As;b.options=Ss;b.className=St;b.defaultOptions=Ms;b.moduleName=w;b.folderName=Q;import{jsx as Mt,jsxs as vs}from"react/jsx-runtime";var Is="k-list-content",pe=e=>{let{virtualization:t,...o}=e;return vs("div",{...o,className:s(Is,e.className),children:[Mt("ul",{className:s("k-list-ul"),children:e.children}),t&&Mt("div",{className:"k-height-container",children:Mt("div",{})})]})};import{jsx as Eo}from"react/jsx-runtime";var Cs="k-list-group-sticky-header",Io=e=>Eo("div",{className:s(Cs,e.className),children:Eo("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Ts,jsx as vo,jsxs as Os}from"react/jsx-runtime";var K=e=>{let{virtualization:t,label:o}=e;return Os(Ts,{children:[o&&vo(Io,{children:o}),e.children&&vo(pe,{virtualization:t,children:e.children})]})};import{jsx as Co}from"react/jsx-runtime";var gs="k-list-group-item",Lo=e=>Co("li",{className:s(gs,e.className),children:Co("span",{className:"k-list-item-text",children:e.children})});import{jsx as Ks}from"react/jsx-runtime";var Et="k-list-optionlabel",ks=[n.hover,n.focus,n.selected,n.disabled],ys={},_s={},Fe=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return Ks("div",{...p,className:s(Et,g(Et,{hover:o,focus:i,selected:r,disabled:l})),children:t})};Fe.states=ks;Fe.options=ys;Fe.className=Et;Fe.defaultOptions=_s;import{jsx as zs}from"react/jsx-runtime";var It="k-list-custom-value",Hs=[n.hover,n.focus,n.selected,n.disabled],Rs={},Ps={},de=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return zs("div",{...p,className:s(It,g(It,{hover:o,focus:i,selected:r,disabled:l})),children:t})};de.states=Hs;de.options=Rs;de.className=It;de.defaultOptions=Ps;import{jsx as oc}from"react/jsx-runtime";import{jsx as ac}from"react/jsx-runtime";import{jsx as mc,jsxs as cc}from"react/jsx-runtime";import{jsx as xc,jsxs as Nc}from"react/jsx-runtime";import{jsx as Ac}from"react/jsx-runtime";import{jsx as Ic,jsxs as vc}from"react/jsx-runtime";import{jsx as gc,jsxs as kc}from"react/jsx-runtime";var vt="autocomplete",To=vt;import{Fragment as Ct,jsx as T,jsxs as Ie}from"react/jsx-runtime";var Oo="k-autocomplete",Ds=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Bs={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},ve={size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},ne=e=>{let{size:t=ve.size,rounded:o=ve.rounded,fillMode:i=ve.fillMode,separators:r=ve.separators,prefix:l,suffix:p,value:d,placeholder:c,hover:u,focus:N,valid:h,invalid:L,required:S,loading:v,disabled:I,popup:O,opened:C,readonly:R,adaptive:Ce,adaptiveSettings:Ve,adaptiveTitle:ko,adaptiveSubtitle:yo,adaptiveCustomValue:_o,...Ko}=e;return Ie(Ct,{children:[Ie(E,{...Ko,size:t,rounded:o,fillMode:i,hover:u,focus:N,valid:h,invalid:L,required:S,loading:v,disabled:I,readonly:R,className:s(e.className,Oo),children:[l&&Ie(Ct,{children:[T(Re,{children:l}),r&&T(ie,{})]}),T(z,{placeholder:c,value:d}),T(D,{valid:h,invalid:L,loading:v,disabled:I}),T(F,{loading:v,disabled:I}),T(P,{loading:v,disabled:I,readonly:R,value:d}),p&&Ie(Ct,{children:[r&&T(ie,{}),T(Pe,{children:p})]})]}),C&&O&&T(V,{className:"k-list-container k-autocomplete-popup",children:O}),Ce&&T(B,{adaptive:!0,...Ve,header:T(W,{actionsEnd:T(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:d,inputPlaceholder:c,title:ko,subtitle:yo}),children:T("div",{className:"k-list-container",children:Ie(y,{customValue:_o?T(de,{text:`Use "${d}"`}):void 0,size:"large",children:[T(b,{text:"List item"}),T(b,{text:"List item"}),T(b,{text:"List item"})]})})})]})};ne.states=Ds;ne.options=Bs;ne.className=Oo;ne.defaultOptions=ve;ne.moduleName=vt;ne.folderName=To;var go=ne;import{Fragment as ws,jsx as Tt}from"react/jsx-runtime";var pd=e=>Tt(go,{prefix:Tt(ws,{children:Tt(A,{icon:"search"})}),...e});export{pd as AutocompletePrefix};