@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 25.1 kB
JavaScript
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...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 S=(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"}),g=(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});var a={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},u={small:"small",medium:"medium",large:"large",full:"full"},x={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},c={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},s={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"};import{jsx as ao}from"react/jsx-runtime";var be="k-input",no=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],io={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},Ne={size:a.medium,rounded:a.medium,fillMode:x.solid},I=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:m,size:d=Ne.size,rounded:f=Ne.rounded,fillMode:h=Ne.fillMode,...b}=e;return ao("span",{...b,className:n(e.className,be,S(be,{size:d,rounded:f,fillMode:h}),g(be,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:m}))})};I.states=no;I.options=io;I.className=be;I.defaultOptions=Ne;import{jsx as po}from"react/jsx-runtime";var Le="k-picker",ro=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],lo={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},ve={size:a.medium,rounded:u.medium,fillMode:x.solid},Se=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:m,size:d=ve.size,rounded:f=ve.rounded,fillMode:h=ve.fillMode,...b}=e;return po("span",{...b,className:n(e.className,Le,S(Le,{size:d,rounded:f,fillMode:h}),g(Le,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:m})),children:e.children})};Se.states=ro;Se.options=lo;Se.className=Le;Se.defaultOptions=ve;import{Fragment as fo,jsx as ct}from"react/jsx-runtime";var He="k-icon k-font-icon",co=[],mo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},uo={},ie=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:l,...p}=e;return i?ct("span",{...p,className:n(e.className,He,S(He,{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"})}):ct(fo,{})};ie.states=co;ie.options=mo;ie.className=He;ie.defaultOptions=uo;var dt=ie;import{Fragment as bo,jsx as Ie}from"react/jsx-runtime";var Ke="k-icon k-svg-icon",xo=[],ho={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},mt={viewBox:"0 0 24 24"},ae=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:l=mt.viewBox,icon:p,...m}=e;if(!p)return Ie(bo,{});p==="none"&&{...m,className:n(e.className,Ke,"k-none")};let d=typeof p=="object"&&p.name&&p.name;return Ie("span",{...m,className:n(e.className,Ke,S("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:Ie("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})})};ae.states=xo;ae.options=ho;ae.className=Ke;ae.defaultOptions=mt;var Re=ae;import*as ut from"@progress/kendo-svg-icons";import{Fragment as ft,jsx as re}from"react/jsx-runtime";var No=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Lo=[],vo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},Pe={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:o,icon:i,type:r=Pe.type,rotate:l,flip:p,viewBox:m=Pe.viewBox,...d}=e;if(!i)return re(ft,{});if(r==="svg"){if(i==="none")return re(Re,{...d,icon:i,size:t});let f=No(`${i}-icon`);return ut[f]?re(Re,{...d,icon:ut[f],size:t,themeColor:o,rotate:l,flip:p,viewBox:m}):re(ft,{})}return re(dt,{...d,icon:i,size:t,themeColor:o,rotate:l,flip:p})};y.states=Lo;y.options=vo;y.defaultOptions=Pe;import{Fragment as yo,jsx as we}from"react/jsx-runtime";var xt="k-clear-value",So=[s.disabled,s.loading,s.readonly],Io={},H=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?we(yo,{}):we("span",{className:n(e.className,xt),children:we(y,{icon:"x"})})};H.states=So;H.options=Io;H.className=xt;import{jsx as Ao}from"react/jsx-runtime";var Ve="k-input-inner",ko=[],go={},ye={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=ye.value,type:o=ye.type,placeholder:i=ye.placeholder,autocomplete:r=ye.autocomplete,...l}=e;return Ao("input",{...l,type:o,className:n(e.className,Ve,S(Ve,e)),placeholder:i,autoComplete:r,defaultValue:t})};K.states=ko;K.options=go;K.className=Ve;import{jsx as ht,jsxs as To}from"react/jsx-runtime";var Be="k-input-inner",Co=[],Mo={},Ge=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:l,...p}=e;return To("span",{...p,className:n(e.className,Be,S(Be,e)),children:[r,!r&&l&&ht(y,{className:"k-input-value-icon",icon:l}),i&&!t&&o,i&&t&&ht("span",{className:"k-input-value-text",children:t})]})};Ge.states=Co;Ge.options=Mo;Ge.className=Be;import{jsx as Oo}from"react/jsx-runtime";var $e="k-input-inner",zo=[],Eo={},bt={value:"",placeholder:""},_e=e=>{let{value:t=bt.value,placeholder:o=bt.placeholder,rows:i,...r}=e;return Oo("textarea",{...r,className:n(e.className,$e,S($e,e)),placeholder:o,rows:i,defaultValue:t})};_e.states=zo;_e.options=Eo;_e.className=$e;import{Fragment as Ko,jsx as Nt}from"react/jsx-runtime";var Lt="k-input-loading-icon",Ho=[s.disabled,s.loading],P=e=>{let{disabled:t,loading:o}=e;return t||!o?Nt(Ko,{}):Nt("span",{className:n(e.className,Lt,"k-icon k-i-loading")})};P.states=Ho;P.className=Lt;import{Fragment as wo,jsx as vt}from"react/jsx-runtime";var St="k-input-validation-icon",Ro=[s.valid,s.invalid,s.disabled,s.loading],Po={},R=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,l=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?vt(wo,{}):vt(y,{className:n(St),icon:l})};R.states=Ro;R.options=Po;R.className=St;import{Fragment as Go,jsx as It}from"react/jsx-runtime";var Vo="k-input-prefix",Bo={direction:"horizontal"},ke=e=>{let{direction:t=Bo.direction,...o}=e;return e.children?It("span",{...o,className:n(Vo,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):It(Go,{})};import{Fragment as Xo,jsx as yt}from"react/jsx-runtime";var $o="k-input-suffix",_o={direction:"horizontal"},ge=e=>{let{direction:t=_o.direction,...o}=e;return e.children?yt("span",{...o,className:n($o,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):yt(Xo,{})};import{jsx as li}from"react/jsx-runtime";import{jsx as mi}from"react/jsx-runtime";import{jsx as Fo}from"react/jsx-runtime";var kt="k-input-separator",Do={direction:"vertical"},U=e=>{let{direction:t=Do.direction,...o}=e;return Fo("span",{...o,className:n(kt,e.className,{[`${kt}-${t}`]:t})})};import{jsx as gt}from"react/jsx-runtime";var At="k-animation-container",Jo=[],qo={},Ct={positionMode:"absolute"},w=e=>{let{positionMode:t=Ct.positionMode,animationStyle:o,offset:i,...r}=e;return gt("div",{...r,style:{...i,...e.style},className:n(e.className,At,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:gt("div",{className:"k-child-animation-container",style:o,children:e.children})})};w.states=Jo;w.options=qo;w.className=At;w.defaultOptions=Ct;import{jsx as Mt}from"react/jsx-runtime";var Tt="k-popup",Uo=[],Wo={},zt={positionMode:"absolute"},W=e=>{let{offset:t,positionMode:o=zt.positionMode,animationStyle:i,...r}=e;return Mt(w,{positionMode:o,offset:t,animationStyle:i,children:Mt("div",{...r,className:n(e.className,Tt),children:e.children})})};W.states=Uo;W.options=Wo;W.className=Tt;W.defaultOptions=zt;import{jsx as Zo}from"react/jsx-runtime";var Ae="k-actions",Qo=[],Yo={},Xe={alignment:"start",orientation:"horizontal"},Q=e=>{let{alignment:t=Xe.alignment,orientation:o=Xe.orientation,...i}=e;return Zo("div",{...i,className:n(Ae,{[`${Ae}-${t}`]:t,[`${Ae}-${o}`]:o},e.className),children:e.children})};Q.states=Qo;Q.options=Yo;Q.className=Ae;Q.defaultOptions=Xe;import{jsx as es}from"react/jsx-runtime";var jo="k-actionsheet-footer",Et={alignment:"stretched",orientation:"horizontal"},De=e=>{let{alignment:t=Et.alignment,orientation:o=Et.orientation,template:i,as:r=i?"div":Q,...l}=e;return es(r,{...l,...!i&&{alignment:t,orientation:o},className:n(e.className,jo),children:e.children})};import{jsx as le,jsxs as ss}from"react/jsx-runtime";var Ot="k-searchbox",ts=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],os={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},Fe={showIcon:!0,icon:"search",size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode},Y=e=>{let{value:t,placeholder:o,size:i,rounded:r,fillMode:l,hover:p,focus:m,valid:d,invalid:f,required:h,loading:b,disabled:N,showIcon:v=Fe.showIcon,icon:C=Fe.icon,...A}=e;return ss(I,{...A,size:i,rounded:r,fillMode:l,hover:p,focus:m,valid:d,invalid:f,required:h,loading:b,disabled:N,className:n(e.className,Ot),children:[v&&le(y,{className:"k-input-icon",icon:C}),le(K,{placeholder:o,value:t}),le(P,{...e}),le(R,{...e}),le(H,{...e})]})};Y.states=ts;Y.options=os;Y.className=Ot;Y.defaultOptions=Fe;import{jsx as ia}from"react/jsx-runtime";import{Fragment as Ht,jsx as V,jsxs as Je}from"react/jsx-runtime";var Kt="k-textbox",ns=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],is={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},X={showClearButton:!0,showValidationIcon:!0,size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode,separators:!0},Z=e=>{let{size:t=X.size,rounded:o=X.rounded,fillMode:i=X.fillMode,separators:r=X.separators,showClearButton:l=X.showClearButton,showValidationIcon:p=X.showValidationIcon,prefix:m,suffix:d,type:f,value:h,placeholder:b,hover:N,focus:v,valid:C,invalid:A,required:M,loading:T,disabled:_,readonly:he,...Oe}=e;return Je(I,{...Oe,size:t,rounded:o,fillMode:i,hover:N,focus:v,valid:C,invalid:A,required:M,loading:T,disabled:_,readonly:he,className:n(e.className,Kt),children:[m&&Je(Ht,{children:[V(ke,{children:m}),r&&V(U,{})]}),V(K,{placeholder:b,value:h,type:f}),p&&V(R,{valid:C,invalid:A,loading:T,disabled:_}),V(P,{loading:T,disabled:_}),l&&V(H,{loading:T,disabled:_,readonly:he,value:h}),d&&Je(Ht,{children:[r&&V(U,{}),V(ge,{children:d})]})]})};Z.states=ns;Z.options=is;Z.className=Kt;Z.defaultOptions=X;import{jsx as ha}from"react/jsx-runtime";import{Fragment as Ia,jsx as Sa}from"react/jsx-runtime";import{Fragment as ls,jsx as pe,jsxs as Pt}from"react/jsx-runtime";var Ce="k-button",as=[s.hover,s.focus,s.active,s.selected,s.disabled],rs={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark,c.inverse]},D={size:a.medium,rounded:u.medium,fillMode:x.solid,themeColor:c.base,showArrow:!1,arrowIconName:"caret-alt-down"},z=e=>{let{size:t=D.size,rounded:o=D.rounded,fillMode:i=D.fillMode,themeColor:r=D.themeColor,showArrow:l=D.showArrow,arrowIconName:p=D.arrowIconName,hover:m,focus:d,active:f,selected:h,disabled:b,icon:N,text:v,iconClassName:C,...A}=e,M=N!==void 0,T=e.children!==void 0;return Pt("button",{...A,className:n(e.className,Ce,S(Ce,{size:t,rounded:o,fillMode:i,themeColor:r}),g(Ce,{hover:m,focus:d,active:f,disabled:b,selected:h}),{"k-icon-button":!v&&!T&&M}),children:[N&&pe(y,{className:n(C,"k-button-icon"),icon:N}),v?Pt(ls,{children:[v&&pe("span",{className:"k-button-text",children:v}),e.children]}):e.children&&pe("span",{className:"k-button-text",children:e.children}),l&&pe("span",{className:"k-menu-button-arrow k-button-arrow",children:pe(y,{icon:p})})]})};z.states=as;z.options=rs;z.className=Ce;z.defaultOptions=D;import{jsx as za}from"react/jsx-runtime";import{jsx as Ka}from"react/jsx-runtime";import{jsx as ps}from"react/jsx-runtime";var qe=e=>ps(z,{children:"Button",...e});import{Fragment as Ua,jsx as qa}from"react/jsx-runtime";import{jsx as B,jsxs as Ue}from"react/jsx-runtime";var wt="k-actionsheet-titlebar",cs={},G=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:l,input:p,inputValue:m,inputPlaceholder:d,adaptive:f,children:h,...b}=e;return Ue("div",{...b,className:n(e.className,wt),children:[Ue("div",{className:"k-actionsheet-titlebar-group",children:[i&&B("div",{className:"k-actionsheet-actions",children:i}),!h&&Ue("div",{className:"k-actionsheet-title",children:[t&&B("div",{className:"k-text-center",children:t}),o&&B("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&B("div",{className:"k-actionsheet-title",children:h}),r&&B("div",{className:"k-actionsheet-actions",children:r})]}),(p||l)&&B("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?B(Z,{value:m,placeholder:d,size:f?"large":"medium"}):B(Y,{placeholder:"Filter",size:f?"large":"medium"})})]})};G.className=wt;G.defaultOptions=cs;import{jsx as We,jsxs as fs}from"react/jsx-runtime";var Qe="k-actionsheet-view",ds=[],ms={},us={},j=e=>{let{adaptive:t,animated:o,children:i,header:r,footer:l,...p}=e,m=r?.type===G&&We(G,{adaptive:t,...r?.props}),d=l?.type===De&&We(De,{...l?.props});return fs("div",{...p,className:n(e.className,Qe,{[`${Qe}-animated`]:o}),children:[m,We("div",{className:"k-actionsheet-content",children:i}),d]})};j.states=ds;j.options=ms;j.className=Qe;j.defaultOptions=us;import{jsx as Me,jsxs as bs}from"react/jsx-runtime";var Vt="k-actionsheet",xs=[],hs={},ce={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},F=e=>{let{side:t=ce.side,fullscreen:o=ce.fullscreen,adaptive:i=ce.adaptive,overlay:r=ce.overlay,template:l,children:p,header:m,footer:d,...f}=e;return bs("div",{className:"k-actionsheet-container",children:[r&&Me("div",{className:"k-overlay"}),Me(w,{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:Me("div",{...f,className:n(e.className,Vt,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:l||Me(j,{header:m,footer:d,adaptive:i,...e,children:p})})})]})};F.states=xs;F.options=hs;F.className=Vt;F.defaultOptions=ce;import{jsx as Nr}from"react/jsx-runtime";import{Fragment as Ls,jsx as de,jsxs as Ye}from"react/jsx-runtime";var Ze="k-actionsheet-item",Ns=[s.hover,s.focus,s.selected,s.disabled],je=e=>{let{iconName:t,text:o,description:i,hover:r,focus:l,selected:p,disabled:m,...d}=e;return Ye("span",{...d,className:n(e.className,Ze,g(Ze,{hover:r,focus:l,selected:p,disabled:m})),children:[!e.children&&de(Ls,{children:Ye("span",{className:"k-actionsheet-action",children:[t&&de("span",{className:"k-icon-wrap",children:de(y,{className:"k-actionsheet-item-icon",icon:t})}),Ye("span",{className:"k-actionsheet-item-text",children:[o&&de("span",{className:"k-actionsheet-item-title",children:o}),i&&de("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};je.states=Ns;je.className=Ze;import{jsx as Cr,jsxs as Mr}from"react/jsx-runtime";import{jsx as Or}from"react/jsx-runtime";import{jsx as Pr}from"react/jsx-runtime";import{jsx as Gr}from"react/jsx-runtime";import{jsx as Ss}from"react/jsx-runtime";var vs="k-no-data",me=e=>Ss("span",{className:n(vs,e.className),children:e.children});import{jsx as ee,jsxs as Gt}from"react/jsx-runtime";var et="k-list",Is=[],ys={size:[a.small,a.medium,a.large]},$t={size:a.medium},O=e=>{let{size:t=$t.size,virtualization:o,children:i,optionLabel:r,customValue:l,screenReaders:p,...m}=e,d,f,h,b,N=[];return i?i.map((v,C)=>{v.type===E?(v.props.root===!0?(d=v.props.label,v.props.children.map((A,M)=>{N.push(ee(L,{...A.props},`optChild-${M}-${new Date().getTime()}`))})):v.props.children.forEach((A,M)=>{let T="";M===0&&(T=v.props.label),N.push(ee(L,{className:M===0?"k-first":"",...A.props,groupLabel:T},`groupLabel-${M}-${new Date().getTime()}`))}),f=ee(E,{label:d,virtualization:o,children:N})):v.type===L&&(N.push(ee(L,{...v.props},`${v.type}-${C}`)),h=ee(te,{virtualization:o,children:N}),p&&(b=Gt(me,{className:"k-sr-only",children:[N.length," items found."]})))}):b=ee(me,{children:"No data found."}),Gt("div",{...m,className:n(e.className,et,S(et,{size:t}),{"k-virtual-list":o}),children:[r,l,f,h,b]})};O.states=Is;O.options=ys;O.className=et;O.defaultOptions=$t;import{jsx as J,jsxs as As}from"react/jsx-runtime";var tt="k-list",ks=[],gs={size:[a.small,a.medium,a.large]},_t={size:a.medium},q=e=>{let{size:t=_t.size,virtualization:o,children:i,...r}=e,l,p,m,d=[];return i?i.map((f,h)=>{f.type===E?(f.props.root===!0?(l=f.props.label,f.props.children.map((b,N)=>{d.push(J(L,{...b.props},`optChild-${N}-${new Date().getTime()}`))})):(d.push(J(Xt,{...f.props,children:f.props.label},`listChild-${h}`)),f.props.children.map((b,N)=>{d.push(J(L,{...b.props},`fwOptChild-${N}-${new Date().getTime()}`))})),p=J(E,{label:l,virtualization:o,children:d})):f.type===L&&(d.push(J(L,{...f.props},`${f.type}-${h}`)),m=J(te,{virtualization:o,children:d}))}):m=J(me,{children:"No data found."}),As("div",{...r,className:n(e.className,tt,S(tt,{size:t}),{"k-virtual-list":o}),children:[p,m]})};q.states=ks;q.options=gs;q.className=tt;q.defaultOptions=_t;import{jsx as Dt}from"react/jsx-runtime";var Te="k-checkbox",Cs=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],Ms={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full]},ot={size:a.medium,rounded:u.medium},$=e=>{let{id:t,checked:o,indeterminate:i,hover:r,focus:l,disabled:p,invalid:m,valid:d,required:f,size:h=ot.size,rounded:b=ot.rounded,...N}=e;return Dt("span",{className:"k-checkbox-wrap",children:Dt("input",{...N,id:t,type:"checkbox",defaultChecked:o,required:f,className:n(e.className,Te,S(Te,{size:h,rounded:b}),g(Te,{hover:r,focus:l,disabled:p,invalid:m,valid:d,indeterminate:i,checked:o}))})})};$.states=Cs;$.options=Ms;$.className=Te;$.defaultOptions=ot;import{jsx as Es}from"react/jsx-runtime";var Ft="k-checkbox-list",Ts=[],zs={},Jt={layout:"vertical"},oe=e=>{let{layout:t=Jt.layout,...o}=e;return Es("ul",{...o,className:n(e.className,Ft,{[`k-list-${t}`]:t}),children:e.children})};oe.states=Ts;oe.options=zs;oe.className=Ft;oe.defaultOptions=Jt;import{jsx as Rs}from"react/jsx-runtime";var qt="k-checkbox-list-item",Os=[],Hs={},Ks={},se=e=>{let{...t}=e;return Rs("li",{...t,className:n(e.className,qt),children:e.children})};se.states=Os;se.options=Hs;se.className=qt;se.defaultOptions=Ks;import{Fragment as Al,jsx as gl,jsxs as Cl}from"react/jsx-runtime";import{Fragment as Ol,jsx as El,jsxs as Hl}from"react/jsx-runtime";import{Fragment as Vl,jsx as wl,jsxs as Bl}from"react/jsx-runtime";import{Fragment as Dl,jsx as Xl,jsxs as Fl}from"react/jsx-runtime";import{jsx as Wl}from"react/jsx-runtime";import{jsx as jl}from"react/jsx-runtime";import{jsx as ze,jsxs as Bs}from"react/jsx-runtime";var nt="k-list-item",Ps=[s.hover,s.focus,s.selected,s.disabled],ws={},Vs={},L=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:l,showCheckbox:p,checked:m,hover:d,focus:f,selected:h,disabled:b,...N}=e,v=t||e.children;return Bs("li",{...N,className:n(e.className,i?"k-list-group-item":nt,g(nt,{hover:d,focus:f,disabled:b,selected:h})),children:[p&&ze($,{checked:m}),r&&ze(y,{icon:l}),ze("span",{className:"k-list-item-text",children:v}),o&&o!==""&&ze("div",{className:"k-list-item-group-label",children:o})]})};L.states=Ps;L.options=ws;L.className=nt;L.defaultOptions=Vs;import{jsx as it,jsxs as $s}from"react/jsx-runtime";var Gs="k-list-content",te=e=>{let{virtualization:t,...o}=e;return $s("div",{...o,className:n(Gs,e.className),children:[it("ul",{className:n("k-list-ul"),children:e.children}),t&&it("div",{className:"k-height-container",children:it("div",{})})]})};import{jsx as Ut}from"react/jsx-runtime";var _s="k-list-group-sticky-header",Wt=e=>Ut("div",{className:n(_s,e.className),children:Ut("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Xs,jsx as Qt,jsxs as Ds}from"react/jsx-runtime";var E=e=>{let{virtualization:t,label:o}=e;return Ds(Xs,{children:[o&&Qt(Wt,{children:o}),e.children&&Qt(te,{virtualization:t,children:e.children})]})};import{jsx as Yt}from"react/jsx-runtime";var Fs="k-list-group-item",Xt=e=>Yt("li",{className:n(Fs,e.className),children:Yt("span",{className:"k-list-item-text",children:e.children})});import{jsx as Ws}from"react/jsx-runtime";var at="k-list-optionlabel",Js=[s.hover,s.focus,s.selected,s.disabled],qs={},Us={},Ee=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return Ws("div",{...p,className:n(at,g(at,{hover:o,focus:i,selected:r,disabled:l})),children:t})};Ee.states=Js;Ee.options=qs;Ee.className=at;Ee.defaultOptions=Us;import{jsx as js}from"react/jsx-runtime";var rt="k-list-custom-value",Qs=[s.hover,s.focus,s.selected,s.disabled],Ys={},Zs={},ne=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return js("div",{...p,className:n(rt,g(rt,{hover:o,focus:i,selected:r,disabled:l})),children:t})};ne.states=Qs;ne.options=Ys;ne.className=rt;ne.defaultOptions=Zs;import{jsx as Pp}from"react/jsx-runtime";import{jsx as Gp}from"react/jsx-runtime";import{jsx as Dp,jsxs as Fp}from"react/jsx-runtime";import{jsx as Wp,jsxs as Qp}from"react/jsx-runtime";import{jsx as ec}from"react/jsx-runtime";import{jsx as nc,jsxs as ic}from"react/jsx-runtime";import{jsx as pc,jsxs as cc}from"react/jsx-runtime";import{Fragment as lt,jsx as k,jsxs as ue}from"react/jsx-runtime";var Zt="k-autocomplete",en=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],tn={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},fe={size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode,separators:!0},xe=e=>{let{size:t=fe.size,rounded:o=fe.rounded,fillMode:i=fe.fillMode,separators:r=fe.separators,prefix:l,suffix:p,value:m,placeholder:d,hover:f,focus:h,valid:b,invalid:N,required:v,loading:C,disabled:A,popup:M,opened:T,readonly:_,adaptive:he,adaptiveSettings:Oe,adaptiveTitle:eo,adaptiveSubtitle:to,adaptiveCustomValue:oo,...so}=e;return ue(lt,{children:[ue(I,{...so,size:t,rounded:o,fillMode:i,hover:f,focus:h,valid:b,invalid:N,required:v,loading:C,disabled:A,readonly:_,className:n(e.className,Zt),children:[l&&ue(lt,{children:[k(ke,{children:l}),r&&k(U,{})]}),k(K,{placeholder:d,value:m}),k(R,{valid:b,invalid:N,loading:C,disabled:A}),k(P,{loading:C,disabled:A}),k(H,{loading:C,disabled:A,readonly:_,value:m}),p&&ue(lt,{children:[r&&k(U,{}),k(ge,{children:p})]})]}),T&&M&&k(W,{className:"k-list-container k-autocomplete-popup",children:M}),he&&k(F,{adaptive:!0,...Oe,header:k(G,{actionsEnd:k(z,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:m,inputPlaceholder:d,title:eo,subtitle:to}),children:k("div",{className:"k-list-container",children:ue(O,{customValue:oo?k(ne,{text:`Use "${m}"`}):void 0,size:"large",children:[k(L,{text:"List item"}),k(L,{text:"List item"}),k(L,{text:"List item"})]})})})]})};xe.states=en;xe.options=tn;xe.className=Zt;xe.defaultOptions=fe;var jt=xe;import{Fragment as on,jsx as pt}from"react/jsx-runtime";var Gc=e=>pt(jt,{suffix:pt(on,{children:pt(qe,{fillMode:"clear",children:"Search"})}),...e});export{Gc as AutocompleteSuffix};