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