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