UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 25.3 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"}),k=(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"},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"};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:[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:r,valid:l,loading:p,readonly:d,size:m=Ne.size,rounded:f=Ne.rounded,fillMode:b=Ne.fillMode,...L}=e;return ao("span",{...L,className:n(e.className,Le,S(Le,{size:m,rounded:f,fillMode:b}),k(Le,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:d}))})};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:[h.solid,h.flat,h.outline]},Se={size:a.medium,rounded:u.medium,fillMode:h.solid},Ie=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:d,size:m=Se.size,rounded:f=Se.rounded,fillMode:b=Se.fillMode,...L}=e;return po("span",{...L,className:n(e.className,ve,S(ve,{size:m,rounded:f,fillMode:b}),k(ve,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:d})),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 mt=ae;import{Fragment as bo,jsx as ge}from"react/jsx-runtime";var Re="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]},dt={viewBox:"0 0 24 24"},re=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:l=dt.viewBox,icon:p,...d}=e;if(!p)return ge(bo,{});p==="none"&&{...d,className:n(e.className,Re,"k-none")};let m=typeof p=="object"&&p.name&&p.name;return ge("span",{...d,className:n(e.className,Re,S("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`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=xo;re.options=ho;re.className=Re;re.defaultOptions=dt;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:d=we.viewBox,...m}=e;if(!i)return le(ft,{});if(r==="svg"){if(i==="none")return le(Pe,{...m,icon:i,size:t});let f=Lo(`${i}-icon`);return ut[f]?le(Pe,{...m,icon:ut[f],size:t,themeColor:o,rotate:l,flip:p,viewBox:d}):le(ft,{})}return le(mt,{...m,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 xt="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,xt),children:Ge(g,{icon:"x"})})};O.states=So;O.options=Io;O.className=xt;import{jsx as Ao}from"react/jsx-runtime";var Ve="k-input-inner",yo=[],ko={},ye={type:"text",autocomplete:"off",value:"",placeholder:""},H=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})};H.states=yo;H.options=ko;H.className=Ve;import{jsx as ht,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&&ht(g,{className:"k-input-value-icon",icon:l}),i&&!t&&o,i&&t&&ht("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"},ke=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 yt="k-input-separator",Do={direction:"vertical"},W=e=>{let{direction:t=Do.direction,...o}=e;return Fo("span",{...o,className:n(yt,e.className,{[`${yt}-${t}`]:t})})};import{jsx as kt}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 kt("div",{...r,style:{...i,...e.style},className:n(e.className,At,"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=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:[h.solid,h.flat,h.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:d,valid:m,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:d,valid:m,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:[h.solid,h.flat,h.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:d,suffix:m,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:[d&&qe(Ht,{children:[G(ke,{children:d}),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}),m&&qe(Ht,{children:[r&&G(W,{}),G(Ae,{children:m})]})]})};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:[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]},F={size:a.medium,rounded:u.medium,fillMode:h.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:d,focus:m,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}),k(Me,{hover:d,focus:m,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:d,inputPlaceholder:m,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:d,placeholder:m,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=[],ms={},ds={},ee=e=>{let{adaptive:t,animated:o,children:i,header:r,footer:l,...p}=e,d=r?.type===B&&We(B,{adaptive:t,...r?.props}),m=l?.type===Fe&&We(Fe,{...l?.props});return us("div",{...p,className:n(e.className,Qe,{[`${Qe}-animated`]:o}),children:[d,We("div",{className:"k-actionsheet-content",children:i}),m]})};ee.states=cs;ee.options=ms;ee.className=Qe;ee.defaultOptions=ds;import{jsx as Te,jsxs as hs}from"react/jsx-runtime";var Gt="k-actionsheet",fs=[],xs={},me={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},J=e=>{let{side:t=me.side,fullscreen:o=me.fullscreen,adaptive:i=me.adaptive,overlay:r=me.overlay,template:l,children:p,header:d,footer:m,...f}=e;return hs("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:d,footer:m,adaptive:i,...e,children:p})})})]})};J.states=fs;J.options=xs;J.className=Gt;J.defaultOptions=me;import{jsx as Lr}from"react/jsx-runtime";import{Fragment as Ls,jsx as de,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:d,...m}=e;return Ye("span",{...m,className:n(e.className,Ze,k(Ze,{hover:r,focus:l,selected:p,disabled:d})),children:[!e.children&&de(Ls,{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=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,...d}=e,m,f,b,L,N=[];return i?i.map((v,C)=>{v.type===M?(v.props.root===!0?(m=v.props.label,v.props.children.map((A,T)=>{N.push(te(x,{...A.props},`optChild-${T}-${new Date().getTime()}`))})):v.props.children.forEach((A,T)=>{let E="";T===0&&(E=v.props.label),N.push(te(x,{className:T===0?"k-first":"",...A.props,groupLabel:E},`groupLabel-${T}-${new Date().getTime()}`))}),f=te(M,{label:m,virtualization:o,children:N})):v.type===x&&(N.push(te(x,{...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",{...d,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 ks}from"react/jsx-runtime";var tt="k-list",gs=[],ys={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,d,m=[];return i?i.map((f,b)=>{f.type===M?(f.props.root===!0?(l=f.props.label,f.props.children.map((L,N)=>{m.push(q(x,{...L.props},`optChild-${N}-${new Date().getTime()}`))})):(m.push(q(Xt,{...f.props,children:f.props.label},`listChild-${b}`)),f.props.children.map((L,N)=>{m.push(q(x,{...L.props},`fwOptChild-${N}-${new Date().getTime()}`))})),p=q(M,{label:l,virtualization:o,children:m})):f.type===x&&(m.push(q(x,{...f.props},`${f.type}-${b}`)),d=q(oe,{virtualization:o,children:m}))}):d=q(ue,{children:"No data found."}),ks("div",{...r,className:n(e.className,tt,S(tt,{size:t}),{"k-virtual-list":o}),children:[p,d]})};U.states=gs;U.options=ys;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:d,valid:m,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}),k(ze,{hover:r,focus:l,disabled:p,invalid:d,valid:m,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 kl,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={},x=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:l,showCheckbox:p,checked:d,hover:m,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,k(nt,{hover:m,focus:f,disabled:L,selected:b})),children:[p&&Ee($,{checked:d}),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})]})};x.states=Rs;x.options=Ps;x.className=nt;x.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,k(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,k(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 y,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:[h.solid,h.flat,h.outline]},xe={size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode,separators:!0},he=e=>{let{size:t=xe.size,rounded:o=xe.rounded,fillMode:i=xe.fillMode,separators:r=xe.separators,prefix:l,suffix:p,value:d,placeholder:m,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:[y(ke,{children:l}),r&&y(W,{})]}),y(H,{placeholder:m,value:d}),y(K,{valid:L,invalid:N,loading:C,disabled:A}),y(P,{loading:C,disabled:A}),y(O,{loading:C,disabled:A,readonly:X,value:d}),p&&fe(lt,{children:[r&&y(W,{}),y(Ae,{children:p})]})]}),E&&T&&y(Q,{className:"k-list-container k-autocomplete-popup",children:T}),be&&y(J,{adaptive:!0,...He,header:y(B,{actionsEnd:y(R,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:d,inputPlaceholder:m,title:eo,subtitle:to}),children:y("div",{className:"k-list-container",children:fe(z,{customValue:oo?y(ie,{text:`Use "${d}"`}):void 0,size:"large",children:[y(x,{text:"List item"}),y(x,{text:"List item"}),y(x,{text:"List item"})]})})})]})};he.states=js;he.options=en;he.className=Zt;he.defaultOptions=xe;var jt=he;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:[_(x,{children:"List group 1 item 1"}),_(x,{children:"List group 1 item 2"}),_(x,{children:"List group 1 item 3"})]}),pt(M,{children:[_(x,{group:!0,children:"Group 2"}),_(x,{children:"List group 1 item 1"}),_(x,{children:"List group 1 item 2"}),_(x,{children:"List group 1 item 3"})]})]}),...e});export{Bc as AutocompleteGroupingModern};