UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 25.1 kB
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 io}from"react/jsx-runtime";var be="k-input",so=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],no={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[h.solid,h.flat,h.outline]},Le={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=Le.size,rounded:f=Le.rounded,fillMode:b=Le.fillMode,...L}=e;return io("span",{...L,className:n(e.className,be,S(be,{size:d,rounded:f,fillMode:b}),y(be,{hover:t,focus:o,disabled:i,invalid:l,valid:r,loading:p,readonly:m}))})};I.states=so;I.options=no;I.className=be;I.defaultOptions=Le;import{jsx as ro}from"react/jsx-runtime";var Ne="k-picker",ao=[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:[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:b=ve.fillMode,...L}=e;return ro("span",{...L,className:n(e.className,Ne,S(Ne,{size:d,rounded:f,fillMode:b}),y(Ne,{hover:t,focus:o,disabled:i,invalid:l,valid:r,loading:p,readonly:m})),children:e.children})};Se.states=ao;Se.options=lo;Se.className=Ne;Se.defaultOptions=ve;import{Fragment as uo,jsx as pt}from"react/jsx-runtime";var Ke="k-icon k-font-icon",po=[],co={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]},mo={},ie=e=>{let{size:t,themeColor:o,icon:i,rotate:l,flip:r,...p}=e;return i?pt("span",{...p,className:n(e.className,Ke,S(Ke,{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"})}):pt(uo,{})};ie.states=po;ie.options=co;ie.className=Ke;ie.defaultOptions=mo;var ct=ie;import{Fragment as xo,jsx as Ie}from"react/jsx-runtime";var Re="k-icon k-svg-icon",fo=[],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]},dt={viewBox:"0 0 24 24"},ae=e=>{let{size:t,themeColor:o,rotate:i,flip:l,viewBox:r=dt.viewBox,icon:p,...m}=e;if(!p)return Ie(xo,{});p==="none"&&{...m,className:n(e.className,Re,"k-none")};let d=typeof p=="object"&&p.name&&p.name;return Ie("span",{...m,className:n(e.className,Re,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=fo;ae.options=ho;ae.className=Re;ae.defaultOptions=dt;var Pe=ae;import*as mt from"@progress/kendo-svg-icons";import{Fragment as ut,jsx as le}from"react/jsx-runtime";var bo=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Lo=[],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]},we={viewBox:"0 0 24 24",type:"svg"},g=e=>{let{size:t,themeColor:o,icon:i,type:l=we.type,rotate:r,flip:p,viewBox:m=we.viewBox,...d}=e;if(!i)return le(ut,{});if(l==="svg"){if(i==="none")return le(Pe,{...d,icon:i,size:t});let f=bo(`${i}-icon`);return mt[f]?le(Pe,{...d,icon:mt[f],size:t,themeColor:o,rotate:r,flip:p,viewBox:m}):le(ut,{})}return le(ct,{...d,icon:i,size:t,themeColor:o,rotate:r,flip:p})};g.states=Lo;g.options=No;g.defaultOptions=we;import{Fragment as Io,jsx as Ve}from"react/jsx-runtime";var ft="k-clear-value",vo=[s.disabled,s.loading,s.readonly],So={},O=e=>{let{disabled:t,loading:o,readonly:i,value:l}=e;return t||i||o||!l?Ve(Io,{}):Ve("span",{className:n(e.className,ft),children:Ve(g,{icon:"x"})})};O.states=vo;O.options=So;O.className=ft;import{jsx as yo}from"react/jsx-runtime";var Ge="k-input-inner",go=[],ko={},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 yo("input",{...r,type:o,className:n(e.className,Ge,S(Ge,e)),placeholder:i,autoComplete:l,defaultValue:t})};H.states=go;H.options=ko;H.className=Ge;import{jsx as ht,jsxs as Mo}from"react/jsx-runtime";var Be="k-input-inner",Ao=[],Co={},$e=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:l,valueIconName:r,...p}=e;return Mo("span",{...p,className:n(e.className,Be,S(Be,e)),children:[l,!l&&r&&ht(g,{className:"k-input-value-icon",icon:r}),i&&!t&&o,i&&t&&ht("span",{className:"k-input-value-text",children:t})]})};$e.states=Ao;$e.options=Co;$e.className=Be;import{jsx as Eo}from"react/jsx-runtime";var _e="k-input-inner",To=[],zo={},xt={value:"",placeholder:""},Xe=e=>{let{value:t=xt.value,placeholder:o=xt.placeholder,rows:i,...l}=e;return Eo("textarea",{...l,className:n(e.className,_e,S(_e,e)),placeholder:o,rows:i,defaultValue:t})};Xe.states=To;Xe.options=zo;Xe.className=_e;import{Fragment as Ho,jsx as bt}from"react/jsx-runtime";var Lt="k-input-loading-icon",Oo=[s.disabled,s.loading],P=e=>{let{disabled:t,loading:o}=e;return t||!o?bt(Ho,{}):bt("span",{className:n(e.className,Lt,"k-icon k-i-loading")})};P.states=Oo;P.className=Lt;import{Fragment as Po,jsx as Nt}from"react/jsx-runtime";var vt="k-input-validation-icon",Ko=[s.valid,s.invalid,s.disabled,s.loading],Ro={},K=e=>{let{valid:t,invalid:o,disabled:i,loading:l}=e,r=o?"warning-circle":"check-circle";return i||l||!!!(t||o)?Nt(Po,{}):Nt(g,{className:n(vt),icon:r})};K.states=Ko;K.options=Ro;K.className=vt;import{Fragment as Go,jsx as St}from"react/jsx-runtime";var wo="k-input-prefix",Vo={direction:"horizontal"},ke=e=>{let{direction:t=Vo.direction,...o}=e;return e.children?St("span",{...o,className:n(wo,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):St(Go,{})};import{Fragment as _o,jsx as It}from"react/jsx-runtime";var Bo="k-input-suffix",$o={direction:"horizontal"},ye=e=>{let{direction:t=$o.direction,...o}=e;return e.children?It("span",{...o,className:n(Bo,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):It(_o,{})};import{jsx as ai}from"react/jsx-runtime";import{jsx as ci}from"react/jsx-runtime";import{jsx as Do}from"react/jsx-runtime";var gt="k-input-separator",Xo={direction:"vertical"},U=e=>{let{direction:t=Xo.direction,...o}=e;return Do("span",{...o,className:n(gt,e.className,{[`${gt}-${t}`]:t})})};import{jsx as kt}from"react/jsx-runtime";var yt="k-animation-container",Fo=[],Jo={},At={positionMode:"absolute"},w=e=>{let{positionMode:t=At.positionMode,animationStyle:o,offset:i,...l}=e;return kt("div",{...l,style:{...i,...e.style},className:n(e.className,yt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:kt("div",{className:"k-child-animation-container",style:o,children:e.children})})};w.states=Fo;w.options=Jo;w.className=yt;w.defaultOptions=At;import{jsx as Ct}from"react/jsx-runtime";var Mt="k-popup",qo=[],Uo={},Tt={positionMode:"absolute"},W=e=>{let{offset:t,positionMode:o=Tt.positionMode,animationStyle:i,...l}=e;return Ct(w,{positionMode:o,offset:t,animationStyle:i,children:Ct("div",{...l,className:n(e.className,Mt),children:e.children})})};W.states=qo;W.options=Uo;W.className=Mt;W.defaultOptions=Tt;import{jsx as Yo}from"react/jsx-runtime";var Ae="k-actions",Wo=[],Qo={},De={alignment:"start",orientation:"horizontal"},Q=e=>{let{alignment:t=De.alignment,orientation:o=De.orientation,...i}=e;return Yo("div",{...i,className:n(Ae,{[`${Ae}-${t}`]:t,[`${Ae}-${o}`]:o},e.className),children:e.children})};Q.states=Wo;Q.options=Qo;Q.className=Ae;Q.defaultOptions=De;import{jsx as jo}from"react/jsx-runtime";var Zo="k-actionsheet-footer",zt={alignment:"stretched",orientation:"horizontal"},Fe=e=>{let{alignment:t=zt.alignment,orientation:o=zt.orientation,template:i,as:l=i?"div":Q,...r}=e;return jo(l,{...r,...!i&&{alignment:t,orientation:o},className:n(e.className,Zo),children:e.children})};import{jsx as re,jsxs as os}from"react/jsx-runtime";var Et="k-searchbox",es=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],ts={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[h.solid,h.flat,h.outline]},Je={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:b,loading:L,disabled:N,showIcon:v=Je.showIcon,icon:C=Je.icon,...A}=e;return os(I,{...A,size:i,rounded:l,fillMode:r,hover:p,focus:m,valid:d,invalid:f,required:b,loading:L,disabled:N,className:n(e.className,Et),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=es;Y.options=ts;Y.className=Et;Y.defaultOptions=Je;import{jsx as sa}from"react/jsx-runtime";import{Fragment as Ot,jsx as V,jsxs as qe}from"react/jsx-runtime";var Ht="k-textbox",ss=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],ns={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:b,placeholder:L,hover:N,focus:v,valid:C,invalid:A,required:M,loading:z,disabled:_,readonly:xe,...He}=e;return qe(I,{...He,size:t,rounded:o,fillMode:i,hover:N,focus:v,valid:C,invalid:A,required:M,loading:z,disabled:_,readonly:xe,className:n(e.className,Ht),children:[m&&qe(Ot,{children:[V(ke,{children:m}),l&&V(U,{})]}),V(H,{placeholder:L,value:b,type:f}),p&&V(K,{valid:C,invalid:A,loading:z,disabled:_}),V(P,{loading:z,disabled:_}),r&&V(O,{loading:z,disabled:_,readonly:xe,value:b}),d&&qe(Ot,{children:[l&&V(U,{}),V(ye,{children:d})]})]})};Z.states=ss;Z.options=ns;Z.className=Ht;Z.defaultOptions=X;import{jsx as fa}from"react/jsx-runtime";import{Fragment as va,jsx as Na}from"react/jsx-runtime";import{Fragment as ls,jsx as pe,jsxs as Rt}from"react/jsx-runtime";var Ce="k-button",is=[s.hover,s.focus,s.active,s.selected,s.disabled],as={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:b,disabled:L,icon:N,text:v,iconClassName:C,...A}=e,M=N!==void 0,z=e.children!==void 0;return Rt("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:L,selected:b}),{"k-icon-button":!v&&!z&&M}),children:[N&&pe(g,{className:n(C,"k-button-icon"),icon:N}),v?Rt(ls,{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=is;R.options=as;R.className=Ce;R.defaultOptions=D;import{jsx as Ma}from"react/jsx-runtime";import{jsx as Oa}from"react/jsx-runtime";import{jsx as Pa}from"react/jsx-runtime";import{Fragment as Ua,jsx as qa}from"react/jsx-runtime";import{jsx as G,jsxs as Ue}from"react/jsx-runtime";var Pt="k-actionsheet-titlebar",rs={},B=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:l,filter:r,input:p,inputValue:m,inputPlaceholder:d,adaptive:f,children:b,...L}=e;return Ue("div",{...L,className:n(e.className,Pt),children:[Ue("div",{className:"k-actionsheet-titlebar-group",children:[i&&G("div",{className:"k-actionsheet-actions",children:i}),!b&&Ue("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})]}),b&&G("div",{className:"k-actionsheet-title",children:b}),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=Pt;B.defaultOptions=rs;import{jsx as We,jsxs as ms}from"react/jsx-runtime";var Qe="k-actionsheet-view",ps=[],cs={},ds={},j=e=>{let{adaptive:t,animated:o,children:i,header:l,footer:r,...p}=e,m=l?.type===B&&We(B,{adaptive:t,...l?.props}),d=r?.type===Fe&&We(Fe,{...r?.props});return ms("div",{...p,className:n(e.className,Qe,{[`${Qe}-animated`]:o}),children:[m,We("div",{className:"k-actionsheet-content",children:i}),d]})};j.states=ps;j.options=cs;j.className=Qe;j.defaultOptions=ds;import{jsx as Me,jsxs as hs}from"react/jsx-runtime";var wt="k-actionsheet",us=[],fs={},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 hs("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,wt,{[`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=us;F.options=fs;F.className=wt;F.defaultOptions=ce;import{jsx as Ll}from"react/jsx-runtime";import{Fragment as bs,jsx as de,jsxs as Ye}from"react/jsx-runtime";var Ze="k-actionsheet-item",xs=[s.hover,s.focus,s.selected,s.disabled],je=e=>{let{iconName:t,text:o,description:i,hover:l,focus:r,selected:p,disabled:m,...d}=e;return Ye("span",{...d,className:n(e.className,Ze,y(Ze,{hover:l,focus:r,selected:p,disabled:m})),children:[!e.children&&de(bs,{children:Ye("span",{className:"k-actionsheet-action",children:[t&&de("span",{className:"k-icon-wrap",children:de(g,{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=xs;je.className=Ze;import{jsx as Cl,jsxs as Ml}from"react/jsx-runtime";import{jsx as Ol}from"react/jsx-runtime";import{jsx as Pl}from"react/jsx-runtime";import{jsx as Bl}from"react/jsx-runtime";import{jsx as Ns}from"react/jsx-runtime";var Ls="k-no-data",me=e=>Ns("span",{className:n(Ls,e.className),children:e.children});import{jsx as ee,jsxs as Gt}from"react/jsx-runtime";var et="k-list",vs=[],Ss={size:[a.small,a.medium,a.large]},Bt={size:a.medium},T=e=>{let{size:t=Bt.size,virtualization:o,children:i,optionLabel:l,customValue:r,screenReaders:p,...m}=e,d,f,b,L,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(x,{...A.props},`optChild-${M}-${new Date().getTime()}`))})):v.props.children.forEach((A,M)=>{let z="";M===0&&(z=v.props.label),N.push(ee(x,{className:M===0?"k-first":"",...A.props,groupLabel:z},`groupLabel-${M}-${new Date().getTime()}`))}),f=ee(E,{label:d,virtualization:o,children:N})):v.type===x&&(N.push(ee(x,{...v.props},`${v.type}-${C}`)),b=ee(te,{virtualization:o,children:N}),p&&(L=Gt(me,{className:"k-sr-only",children:[N.length," items found."]})))}):L=ee(me,{children:"No data found."}),Gt("div",{...m,className:n(e.className,et,S(et,{size:t}),{"k-virtual-list":o}),children:[l,r,f,b,L]})};T.states=vs;T.options=Ss;T.className=et;T.defaultOptions=Bt;import{jsx as J,jsxs as ks}from"react/jsx-runtime";var tt="k-list",Is=[],gs={size:[a.small,a.medium,a.large]},$t={size:a.medium},q=e=>{let{size:t=$t.size,virtualization:o,children:i,...l}=e,r,p,m,d=[];return i?i.map((f,b)=>{f.type===E?(f.props.root===!0?(r=f.props.label,f.props.children.map((L,N)=>{d.push(J(x,{...L.props},`optChild-${N}-${new Date().getTime()}`))})):(d.push(J(_t,{...f.props,children:f.props.label},`listChild-${b}`)),f.props.children.map((L,N)=>{d.push(J(x,{...L.props},`fwOptChild-${N}-${new Date().getTime()}`))})),p=J(E,{label:r,virtualization:o,children:d})):f.type===x&&(d.push(J(x,{...f.props},`${f.type}-${b}`)),m=J(te,{virtualization:o,children:d}))}):m=J(me,{children:"No data found."}),ks("div",{...l,className:n(e.className,tt,S(tt,{size:t}),{"k-virtual-list":o}),children:[p,m]})};q.states=Is;q.options=gs;q.className=tt;q.defaultOptions=$t;import{jsx as Xt}from"react/jsx-runtime";var Te="k-checkbox",ys=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],As={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:l,focus:r,disabled:p,invalid:m,valid:d,required:f,size:b=ot.size,rounded:L=ot.rounded,...N}=e;return Xt("span",{className:"k-checkbox-wrap",children:Xt("input",{...N,id:t,type:"checkbox",defaultChecked:o,required:f,className:n(e.className,Te,S(Te,{size:b,rounded:L}),y(Te,{hover:l,focus:r,disabled:p,invalid:m,valid:d,indeterminate:i,checked:o}))})})};$.states=ys;$.options=As;$.className=Te;$.defaultOptions=ot;import{jsx as Ts}from"react/jsx-runtime";var Dt="k-checkbox-list",Cs=[],Ms={},Ft={layout:"vertical"},oe=e=>{let{layout:t=Ft.layout,...o}=e;return Ts("ul",{...o,className:n(e.className,Dt,{[`k-list-${t}`]:t}),children:e.children})};oe.states=Cs;oe.options=Ms;oe.className=Dt;oe.defaultOptions=Ft;import{jsx as Hs}from"react/jsx-runtime";var Jt="k-checkbox-list-item",zs=[],Es={},Os={},se=e=>{let{...t}=e;return Hs("li",{...t,className:n(e.className,Jt),children:e.children})};se.states=zs;se.options=Es;se.className=Jt;se.defaultOptions=Os;import{Fragment as Ar,jsx as yr,jsxs as Cr}from"react/jsx-runtime";import{Fragment as Or,jsx as Er,jsxs as Hr}from"react/jsx-runtime";import{Fragment as Vr,jsx as wr,jsxs as Gr}from"react/jsx-runtime";import{Fragment as Dr,jsx as Xr,jsxs as Fr}from"react/jsx-runtime";import{jsx as Wr}from"react/jsx-runtime";import{jsx as jr}from"react/jsx-runtime";import{jsx as ze,jsxs as ws}from"react/jsx-runtime";var nt="k-list-item",Ks=[s.hover,s.focus,s.selected,s.disabled],Rs={},Ps={},x=e=>{let{text:t,groupLabel:o,group:i,showIcon:l,iconName:r,showCheckbox:p,checked:m,hover:d,focus:f,selected:b,disabled:L,...N}=e,v=t||e.children;return ws("li",{...N,className:n(e.className,i?"k-list-group-item":nt,y(nt,{hover:d,focus:f,disabled:L,selected:b})),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})]})};x.states=Ks;x.options=Rs;x.className=nt;x.defaultOptions=Ps;import{jsx as it,jsxs as Gs}from"react/jsx-runtime";var Vs="k-list-content",te=e=>{let{virtualization:t,...o}=e;return Gs("div",{...o,className:n(Vs,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 qt}from"react/jsx-runtime";var Bs="k-list-group-sticky-header",Ut=e=>qt("div",{className:n(Bs,e.className),children:qt("div",{className:"k-list-header-text",children:e.children})});import{Fragment as $s,jsx as Wt,jsxs as _s}from"react/jsx-runtime";var E=e=>{let{virtualization:t,label:o}=e;return _s($s,{children:[o&&Wt(Ut,{children:o}),e.children&&Wt(te,{virtualization:t,children:e.children})]})};import{jsx as Qt}from"react/jsx-runtime";var Xs="k-list-group-item",_t=e=>Qt("li",{className:n(Xs,e.className),children:Qt("span",{className:"k-list-item-text",children:e.children})});import{jsx as qs}from"react/jsx-runtime";var at="k-list-optionlabel",Ds=[s.hover,s.focus,s.selected,s.disabled],Fs={},Js={},Ee=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})};Ee.states=Ds;Ee.options=Fs;Ee.className=at;Ee.defaultOptions=Js;import{jsx as Ys}from"react/jsx-runtime";var lt="k-list-custom-value",Us=[s.hover,s.focus,s.selected,s.disabled],Ws={},Qs={},ne=e=>{let{text:t,hover:o,focus:i,selected:l,disabled:r,...p}=e;return Ys("div",{...p,className:n(lt,y(lt,{hover:o,focus:i,selected:l,disabled:r})),children:t})};ne.states=Us;ne.options=Ws;ne.className=lt;ne.defaultOptions=Qs;import{jsx as Pp}from"react/jsx-runtime";import{jsx as Bp}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 rt,jsx as k,jsxs as ue}from"react/jsx-runtime";var Yt="k-autocomplete",Zs=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],js={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:b,valid:L,invalid:N,required:v,loading:C,disabled:A,popup:M,opened:z,readonly:_,adaptive:xe,adaptiveSettings:He,adaptiveTitle:jt,adaptiveSubtitle:eo,adaptiveCustomValue:to,...oo}=e;return ue(rt,{children:[ue(I,{...oo,size:t,rounded:o,fillMode:i,hover:f,focus:b,valid:L,invalid:N,required:v,loading:C,disabled:A,readonly:_,className:n(e.className,Yt),children:[r&&ue(rt,{children:[k(ke,{children:r}),l&&k(U,{})]}),k(H,{placeholder:d,value:m}),k(K,{valid:L,invalid:N,loading:C,disabled:A}),k(P,{loading:C,disabled:A}),k(O,{loading:C,disabled:A,readonly:_,value:m}),p&&ue(rt,{children:[l&&k(U,{}),k(ye,{children:p})]})]}),z&&M&&k(W,{className:"k-list-container k-autocomplete-popup",children:M}),xe&&k(F,{adaptive:!0,...He,header:k(B,{actionsEnd:k(R,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:m,inputPlaceholder:d,title:jt,subtitle:eo}),children:k("div",{className:"k-list-container",children:ue(T,{customValue:to?k(ne,{text:`Use "${m}"`}):void 0,size:"large",children:[k(x,{text:"List item"}),k(x,{text:"List item"}),k(x,{text:"List item"})]})})})]})};he.states=Zs;he.options=js;he.className=Yt;he.defaultOptions=fe;var Zt=he;import{jsx as Oe,jsxs as en}from"react/jsx-runtime";var Bc=e=>Oe(Zt,{opened:!0,popup:en(T,{children:[Oe(x,{children:"List item"}),Oe(x,{children:"List item"}),Oe(x,{children:"List item"})]}),...e});export{Bc as AutocompletePopup};