@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 25.1 kB
JavaScript
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,i)=>t[i]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var S=(e,t)=>n({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),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"},p={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 so}from"react/jsx-runtime";var be="k-input",to=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],oo={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:c,readonly:m,size:d=Ne.size,rounded:f=Ne.rounded,fillMode:h=Ne.fillMode,...b}=e;return so("span",{...b,className:n(e.className,be,S(be,{size:d,rounded:f,fillMode:h}),y(be,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:c,readonly:m}))})};I.states=to;I.options=oo;I.className=be;I.defaultOptions=Ne;import{jsx as ao}from"react/jsx-runtime";var Le="k-picker",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]},ve={size:a.medium,rounded:u.medium,fillMode:x.solid},Se=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:c,readonly:m,size:d=ve.size,rounded:f=ve.rounded,fillMode:h=ve.fillMode,...b}=e;return ao("span",{...b,className:n(e.className,Le,S(Le,{size:d,rounded:f,fillMode:h}),y(Le,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:c,readonly:m})),children:e.children})};Se.states=no;Se.options=io;Se.className=Le;Se.defaultOptions=ve;import{Fragment as po,jsx as lt}from"react/jsx-runtime";var He="k-icon k-font-icon",ro=[],lo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info,p.light,p.dark]},co={},ie=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:l,...c}=e;return i?lt("span",{...c,className:n(e.className,He,S(He,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):lt(po,{})};ie.states=ro;ie.options=lo;ie.className=He;ie.defaultOptions=co;var ct=ie;import{Fragment as fo,jsx as Ie}from"react/jsx-runtime";var Ke="k-icon k-svg-icon",mo=[],uo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info,p.light,p.dark]},pt={viewBox:"0 0 24 24"},ae=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:l=pt.viewBox,icon:c,...m}=e;if(!c)return Ie(fo,{});c==="none"&&{...m,className:n(e.className,Ke,"k-none")};let d=typeof c=="object"&&c.name&&c.name;return Ie("span",{...m,className:n(e.className,Ke,S("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:Ie("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:l,dangerouslySetInnerHTML:typeof c=="object"?{__html:c.content}:void 0,children:c?void 0:e.children})})};ae.states=mo;ae.options=uo;ae.className=Ke;ae.defaultOptions=pt;var Re=ae;import*as dt from"@progress/kendo-svg-icons";import{Fragment as mt,jsx as re}from"react/jsx-runtime";var xo=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ho=[],bo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info,p.light,p.dark]},Pe={viewBox:"0 0 24 24",type:"svg"},g=e=>{let{size:t,themeColor:o,icon:i,type:r=Pe.type,rotate:l,flip:c,viewBox:m=Pe.viewBox,...d}=e;if(!i)return re(mt,{});if(r==="svg"){if(i==="none")return re(Re,{...d,icon:i,size:t});let f=xo(`${i}-icon`);return dt[f]?re(Re,{...d,icon:dt[f],size:t,themeColor:o,rotate:l,flip:c,viewBox:m}):re(mt,{})}return re(ct,{...d,icon:i,size:t,themeColor:o,rotate:l,flip:c})};g.states=ho;g.options=bo;g.defaultOptions=Pe;import{Fragment as vo,jsx as we}from"react/jsx-runtime";var ut="k-clear-value",No=[s.disabled,s.loading,s.readonly],Lo={},H=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?we(vo,{}):we("span",{className:n(e.className,ut),children:we(g,{icon:"x"})})};H.states=No;H.options=Lo;H.className=ut;import{jsx as go}from"react/jsx-runtime";var Ve="k-input-inner",So=[],Io={},ge={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=ge.value,type:o=ge.type,placeholder:i=ge.placeholder,autocomplete:r=ge.autocomplete,...l}=e;return go("input",{...l,type:o,className:n(e.className,Ve,S(Ve,e)),placeholder:i,autoComplete:r,defaultValue:t})};K.states=So;K.options=Io;K.className=Ve;import{jsx as ft,jsxs as Ao}from"react/jsx-runtime";var Be="k-input-inner",ko=[],yo={},Ge=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:l,...c}=e;return Ao("span",{...c,className:n(e.className,Be,S(Be,e)),children:[r,!r&&l&&ft(g,{className:"k-input-value-icon",icon:l}),i&&!t&&o,i&&t&&ft("span",{className:"k-input-value-text",children:t})]})};Ge.states=ko;Ge.options=yo;Ge.className=Be;import{jsx as To}from"react/jsx-runtime";var $e="k-input-inner",Co=[],Mo={},xt={value:"",placeholder:""},_e=e=>{let{value:t=xt.value,placeholder:o=xt.placeholder,rows:i,...r}=e;return To("textarea",{...r,className:n(e.className,$e,S($e,e)),placeholder:o,rows:i,defaultValue:t})};_e.states=Co;_e.options=Mo;_e.className=$e;import{Fragment as Oo,jsx as ht}from"react/jsx-runtime";var bt="k-input-loading-icon",zo=[s.disabled,s.loading],P=e=>{let{disabled:t,loading:o}=e;return t||!o?ht(Oo,{}):ht("span",{className:n(e.className,bt,"k-icon k-i-loading")})};P.states=zo;P.className=bt;import{Fragment as Ko,jsx as Nt}from"react/jsx-runtime";var Lt="k-input-validation-icon",Eo=[s.valid,s.invalid,s.disabled,s.loading],Ho={},R=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,l=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?Nt(Ko,{}):Nt(g,{className:n(Lt),icon:l})};R.states=Eo;R.options=Ho;R.className=Lt;import{Fragment as wo,jsx as vt}from"react/jsx-runtime";var Ro="k-input-prefix",Po={direction:"horizontal"},ke=e=>{let{direction:t=Po.direction,...o}=e;return e.children?vt("span",{...o,className:n(Ro,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):vt(wo,{})};import{Fragment as Go,jsx as St}from"react/jsx-runtime";var Vo="k-input-suffix",Bo={direction:"horizontal"},ye=e=>{let{direction:t=Bo.direction,...o}=e;return e.children?St("span",{...o,className:n(Vo,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):St(Go,{})};import{jsx as si}from"react/jsx-runtime";import{jsx as ri}from"react/jsx-runtime";import{jsx as _o}from"react/jsx-runtime";var It="k-input-separator",$o={direction:"vertical"},U=e=>{let{direction:t=$o.direction,...o}=e;return _o("span",{...o,className:n(It,e.className,{[`${It}-${t}`]:t})})};import{Fragment as Fo,jsx as le,jsxs as gt}from"react/jsx-runtime";var Ae="k-button",Xo=[s.hover,s.focus,s.active,s.selected,s.disabled],Do={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:[p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info,p.light,p.dark,p.inverse]},X={size:a.medium,rounded:u.medium,fillMode:x.solid,themeColor:p.base,showArrow:!1,arrowIconName:"caret-alt-down"},z=e=>{let{size:t=X.size,rounded:o=X.rounded,fillMode:i=X.fillMode,themeColor:r=X.themeColor,showArrow:l=X.showArrow,arrowIconName:c=X.arrowIconName,hover:m,focus:d,active:f,selected:h,disabled:b,icon:N,text:v,iconClassName:C,...A}=e,M=N!==void 0,T=e.children!==void 0;return gt("button",{...A,className:n(e.className,Ae,S(Ae,{size:t,rounded:o,fillMode:i,themeColor:r}),y(Ae,{hover:m,focus:d,active:f,disabled:b,selected:h}),{"k-icon-button":!v&&!T&&M}),children:[N&&le(g,{className:n(C,"k-button-icon"),icon:N}),v?gt(Fo,{children:[v&&le("span",{className:"k-button-text",children:v}),e.children]}):e.children&&le("span",{className:"k-button-text",children:e.children}),l&&le("span",{className:"k-menu-button-arrow k-button-arrow",children:le(g,{icon:c})})]})};z.states=Xo;z.options=Do;z.className=Ae;z.defaultOptions=X;import{jsx as Ei}from"react/jsx-runtime";import{jsx as Pi}from"react/jsx-runtime";import{jsx as Gi}from"react/jsx-runtime";import{jsx as kt}from"react/jsx-runtime";var yt="k-animation-container",Jo=[],qo={},At={positionMode:"absolute"},w=e=>{let{positionMode:t=At.positionMode,animationStyle:o,offset:i,...r}=e;return kt("div",{...r,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=Jo;w.options=qo;w.className=yt;w.defaultOptions=At;import{jsx as Ct}from"react/jsx-runtime";var Mt="k-popup",Uo=[],Wo={},Tt={positionMode:"absolute"},W=e=>{let{offset:t,positionMode:o=Tt.positionMode,animationStyle:i,...r}=e;return Ct(w,{positionMode:o,offset:t,animationStyle:i,children:Ct("div",{...r,className:n(e.className,Mt),children:e.children})})};W.states=Uo;W.options=Wo;W.className=Mt;W.defaultOptions=Tt;import{jsx as Zo}from"react/jsx-runtime";var Ce="k-actions",Qo=[],Yo={},Xe={alignment:"start",orientation:"horizontal"},Q=e=>{let{alignment:t=Xe.alignment,orientation:o=Xe.orientation,...i}=e;return Zo("div",{...i,className:n(Ce,{[`${Ce}-${t}`]:t,[`${Ce}-${o}`]:o},e.className),children:e.children})};Q.states=Qo;Q.options=Yo;Q.className=Ce;Q.defaultOptions=Xe;import{jsx as es}from"react/jsx-runtime";var jo="k-actionsheet-footer",zt={alignment:"stretched",orientation:"horizontal"},De=e=>{let{alignment:t=zt.alignment,orientation:o=zt.orientation,template:i,as:r=i?"div":Q,...l}=e;return es(r,{...l,...!i&&{alignment:t,orientation:o},className:n(e.className,jo),children:e.children})};import{jsx as ce,jsxs as ss}from"react/jsx-runtime";var Ot="k-searchbox",ts=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],os={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},Fe={showIcon:!0,icon:"search",size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode},Y=e=>{let{value:t,placeholder:o,size:i,rounded:r,fillMode:l,hover:c,focus:m,valid:d,invalid:f,required:h,loading:b,disabled:N,showIcon:v=Fe.showIcon,icon:C=Fe.icon,...A}=e;return ss(I,{...A,size:i,rounded:r,fillMode:l,hover:c,focus:m,valid:d,invalid:f,required:h,loading:b,disabled:N,className:n(e.className,Ot),children:[v&&ce(g,{className:"k-input-icon",icon:C}),ce(K,{placeholder:o,value:t}),ce(P,{...e}),ce(R,{...e}),ce(H,{...e})]})};Y.states=ts;Y.options=os;Y.className=Ot;Y.defaultOptions=Fe;import{jsx as Sa}from"react/jsx-runtime";import{Fragment as Et,jsx as V,jsxs as Je}from"react/jsx-runtime";var Ht="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},Z=e=>{let{size:t=D.size,rounded:o=D.rounded,fillMode:i=D.fillMode,separators:r=D.separators,showClearButton:l=D.showClearButton,showValidationIcon:c=D.showValidationIcon,prefix:m,suffix:d,type:f,value:h,placeholder:b,hover:N,focus:v,valid:C,invalid:A,required:M,loading:T,disabled:_,readonly:he,...Ee}=e;return Je(I,{...Ee,size:t,rounded:o,fillMode:i,hover:N,focus:v,valid:C,invalid:A,required:M,loading:T,disabled:_,readonly:he,className:n(e.className,Ht),children:[m&&Je(Et,{children:[V(ke,{children:m}),r&&V(U,{})]}),V(K,{placeholder:b,value:h,type:f}),c&&V(R,{valid:C,invalid:A,loading:T,disabled:_}),V(P,{loading:T,disabled:_}),l&&V(H,{loading:T,disabled:_,readonly:he,value:h}),d&&Je(Et,{children:[r&&V(U,{}),V(ye,{children:d})]})]})};Z.states=ns;Z.options=is;Z.className=Ht;Z.defaultOptions=D;import{jsx as Ea}from"react/jsx-runtime";import{Fragment as Va,jsx as wa}from"react/jsx-runtime";import{Fragment as Fa,jsx as Da}from"react/jsx-runtime";import{jsx as B,jsxs as qe}from"react/jsx-runtime";var Rt="k-actionsheet-titlebar",as={},G=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:l,input:c,inputValue:m,inputPlaceholder:d,adaptive:f,children:h,...b}=e;return qe("div",{...b,className:n(e.className,Rt),children:[qe("div",{className:"k-actionsheet-titlebar-group",children:[i&&B("div",{className:"k-actionsheet-actions",children:i}),!h&&qe("div",{className:"k-actionsheet-title",children:[t&&B("div",{className:"k-text-center",children:t}),o&&B("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&B("div",{className:"k-actionsheet-title",children:h}),r&&B("div",{className:"k-actionsheet-actions",children:r})]}),(c||l)&&B("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?B(Z,{value:m,placeholder:d,size:f?"large":"medium"}):B(Y,{placeholder:"Filter",size:f?"large":"medium"})})]})};G.className=Rt;G.defaultOptions=as;import{jsx as Ue,jsxs as ps}from"react/jsx-runtime";var We="k-actionsheet-view",rs=[],ls={},cs={},j=e=>{let{adaptive:t,animated:o,children:i,header:r,footer:l,...c}=e,m=r?.type===G&&Ue(G,{adaptive:t,...r?.props}),d=l?.type===De&&Ue(De,{...l?.props});return ps("div",{...c,className:n(e.className,We,{[`${We}-animated`]:o}),children:[m,Ue("div",{className:"k-actionsheet-content",children:i}),d]})};j.states=rs;j.options=ls;j.className=We;j.defaultOptions=cs;import{jsx as Me,jsxs as us}from"react/jsx-runtime";var Pt="k-actionsheet",ds=[],ms={},pe={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},F=e=>{let{side:t=pe.side,fullscreen:o=pe.fullscreen,adaptive:i=pe.adaptive,overlay:r=pe.overlay,template:l,children:c,header:m,footer:d,...f}=e;return us("div",{className:"k-actionsheet-container",children:[r&&Me("div",{className:"k-overlay"}),Me(w,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:Me("div",{...f,className:n(e.className,Pt,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:l||Me(j,{header:m,footer:d,adaptive:i,...e,children:c})})})]})};F.states=ds;F.options=ms;F.className=Pt;F.defaultOptions=pe;import{jsx as xr}from"react/jsx-runtime";import{Fragment as xs,jsx as de,jsxs as Qe}from"react/jsx-runtime";var Ye="k-actionsheet-item",fs=[s.hover,s.focus,s.selected,s.disabled],Ze=e=>{let{iconName:t,text:o,description:i,hover:r,focus:l,selected:c,disabled:m,...d}=e;return Qe("span",{...d,className:n(e.className,Ye,y(Ye,{hover:r,focus:l,selected:c,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=fs;Ze.className=Ye;import{jsx as kr,jsxs as yr}from"react/jsx-runtime";import{jsx as Tr}from"react/jsx-runtime";import{jsx as Hr}from"react/jsx-runtime";import{jsx as wr}from"react/jsx-runtime";import{jsx as bs}from"react/jsx-runtime";var hs="k-no-data",me=e=>bs("span",{className:n(hs,e.className),children:e.children});import{jsx as ee,jsxs as Vt}from"react/jsx-runtime";var je="k-list",Ns=[],Ls={size:[a.small,a.medium,a.large]},Bt={size:a.medium},E=e=>{let{size:t=Bt.size,virtualization:o,children:i,optionLabel:r,customValue:l,screenReaders:c,...m}=e,d,f,h,b,N=[];return i?i.map((v,C)=>{v.type===O?(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(O,{label:d,virtualization:o,children:N})):v.type===L&&(N.push(ee(L,{...v.props},`${v.type}-${C}`)),h=ee(te,{virtualization:o,children:N}),c&&(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:[r,l,f,h,b]})};E.states=Ns;E.options=Ls;E.className=je;E.defaultOptions=Bt;import{jsx as J,jsxs as Is}from"react/jsx-runtime";var et="k-list",vs=[],Ss={size:[a.small,a.medium,a.large]},Gt={size:a.medium},q=e=>{let{size:t=Gt.size,virtualization:o,children:i,...r}=e,l,c,m,d=[];return i?i.map((f,h)=>{f.type===O?(f.props.root===!0?(l=f.props.label,f.props.children.map((b,N)=>{d.push(J(L,{...b.props},`optChild-${N}-${new Date().getTime()}`))})):(d.push(J($t,{...f.props,children:f.props.label},`listChild-${h}`)),f.props.children.map((b,N)=>{d.push(J(L,{...b.props},`fwOptChild-${N}-${new Date().getTime()}`))})),c=J(O,{label:l,virtualization:o,children:d})):f.type===L&&(d.push(J(L,{...f.props},`${f.type}-${h}`)),m=J(te,{virtualization:o,children:d}))}):m=J(me,{children:"No data found."}),Is("div",{...r,className:n(e.className,et,S(et,{size:t}),{"k-virtual-list":o}),children:[c,m]})};q.states=vs;q.options=Ss;q.className=et;q.defaultOptions=Gt;import{jsx as _t}from"react/jsx-runtime";var Te="k-checkbox",gs=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],ks={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:r,focus:l,disabled:c,invalid:m,valid:d,required:f,size:h=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:h,rounded:b}),y(Te,{hover:r,focus:l,disabled:c,invalid:m,valid:d,indeterminate:i,checked:o}))})})};$.states=gs;$.options=ks;$.className=Te;$.defaultOptions=tt;import{jsx as Cs}from"react/jsx-runtime";var Xt="k-checkbox-list",ys=[],As={},Dt={layout:"vertical"},oe=e=>{let{layout:t=Dt.layout,...o}=e;return Cs("ul",{...o,className:n(e.className,Xt,{[`k-list-${t}`]:t}),children:e.children})};oe.states=ys;oe.options=As;oe.className=Xt;oe.defaultOptions=Dt;import{jsx as Os}from"react/jsx-runtime";var Ft="k-checkbox-list-item",Ms=[],Ts={},zs={},se=e=>{let{...t}=e;return Os("li",{...t,className:n(e.className,Ft),children:e.children})};se.states=Ms;se.options=Ts;se.className=Ft;se.defaultOptions=zs;import{Fragment as gl,jsx as Il,jsxs as kl}from"react/jsx-runtime";import{Fragment as Tl,jsx as Ml,jsxs as zl}from"react/jsx-runtime";import{Fragment as Rl,jsx as Kl,jsxs as Pl}from"react/jsx-runtime";import{Fragment as $l,jsx as Gl,jsxs as _l}from"react/jsx-runtime";import{jsx as Jl}from"react/jsx-runtime";import{jsx as Ql}from"react/jsx-runtime";import{jsx as ze,jsxs as Rs}from"react/jsx-runtime";var st="k-list-item",Es=[s.hover,s.focus,s.selected,s.disabled],Hs={},Ks={},L=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:l,showCheckbox:c,checked:m,hover:d,focus:f,selected:h,disabled:b,...N}=e,v=t||e.children;return Rs("li",{...N,className:n(e.className,i?"k-list-group-item":st,y(st,{hover:d,focus:f,disabled:b,selected:h})),children:[c&&ze($,{checked:m}),r&&ze(g,{icon:l}),ze("span",{className:"k-list-item-text",children:v}),o&&o!==""&&ze("div",{className:"k-list-item-group-label",children:o})]})};L.states=Es;L.options=Hs;L.className=st;L.defaultOptions=Ks;import{jsx as nt,jsxs as ws}from"react/jsx-runtime";var Ps="k-list-content",te=e=>{let{virtualization:t,...o}=e;return ws("div",{...o,className:n(Ps,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 Vs="k-list-group-sticky-header",qt=e=>Jt("div",{className:n(Vs,e.className),children:Jt("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Bs,jsx as Ut,jsxs as Gs}from"react/jsx-runtime";var O=e=>{let{virtualization:t,label:o}=e;return Gs(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 Fs}from"react/jsx-runtime";var it="k-list-optionlabel",_s=[s.hover,s.focus,s.selected,s.disabled],Xs={},Ds={},Oe=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...c}=e;return Fs("div",{...c,className:n(it,y(it,{hover:o,focus:i,selected:r,disabled:l})),children:t})};Oe.states=_s;Oe.options=Xs;Oe.className=it;Oe.defaultOptions=Ds;import{jsx as Ws}from"react/jsx-runtime";var at="k-list-custom-value",Js=[s.hover,s.focus,s.selected,s.disabled],qs={},Us={},ne=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...c}=e;return Ws("div",{...c,className:n(at,y(at,{hover:o,focus:i,selected:r,disabled:l})),children:t})};ne.states=Js;ne.options=qs;ne.className=at;ne.defaultOptions=Us;import{jsx as Hc}from"react/jsx-runtime";import{jsx as wc}from"react/jsx-runtime";import{jsx as $c,jsxs as _c}from"react/jsx-runtime";import{jsx as Jc,jsxs as qc}from"react/jsx-runtime";import{jsx as Yc}from"react/jsx-runtime";import{jsx as tp,jsxs as op}from"react/jsx-runtime";import{jsx as ap,jsxs as rp}from"react/jsx-runtime";import{Fragment as rt,jsx as k,jsxs as ue}from"react/jsx-runtime";var Qt="k-combobox",Qs=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Ys={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},fe={size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode,separators:!0},xe=e=>{let{size:t=fe.size,rounded:o=fe.rounded,fillMode:i=fe.fillMode,separators:r=fe.separators,prefix:l,suffix:c,value:m,placeholder:d,hover:f,focus:h,valid:b,invalid:N,required:v,loading:C,disabled:A,popup:M,opened:T,readonly:_,adaptive:he,adaptiveSettings:Ee,adaptiveTitle:Yt,adaptiveSubtitle:Zt,adaptiveCustomValue:jt,...eo}=e;return ue(rt,{children:[ue(I,{...eo,size:t,rounded:o,fillMode:i,hover:f,focus:h,valid:b,invalid:N,required:v,loading:C,disabled:A,readonly:_,className:n(e.className,Qt),children:[l&&ue(rt,{children:[k(ke,{children:l}),r&&k(U,{})]}),k(K,{placeholder:d,value:m}),k(R,{valid:b,invalid:N,loading:C,disabled:A}),k(P,{loading:C,disabled:A}),k(H,{loading:C,disabled:A,readonly:_,value:m}),c&&ue(rt,{children:[r&&k(U,{}),k(ye,{children:c})]}),k(z,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:i})]}),T&&M&&k(W,{className:"k-list-container k-combobox-popup",children:M}),he&&k(F,{adaptive:!0,...Ee,header:k(G,{actionsEnd:k(z,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:m,inputPlaceholder:d,title:Yt,subtitle:Zt}),children:k("div",{className:"k-list-container",children:ue(E,{customValue:jt?k(ne,{text:`Use "${m}"`}):void 0,size:"large",children:[k(L,{text:"List item"}),k(L,{text:"List item"}),k(L,{text:"List item"})]})})})]})};xe.states=Qs;xe.options=Ys;xe.className=Qt;xe.defaultOptions=fe;var Hp=xe;export{Qt as COMBOBOX_CLASSNAME,xe as Combobox,Hp as default};