@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 31.1 kB
JavaScript
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var S=(e,t)=>i({[`${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)=>i({"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 n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},x={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={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{Fragment as zo,jsx as St}from"react/jsx-runtime";var Fe="k-icon k-font-icon",Ao=[],Co={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},To={},ve=e=>{let{size:t,themeColor:o,icon:a,rotate:r,flip:l,...p}=e;return a?St("span",{...p,className:i(e.className,Fe,S(Fe,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):St(zo,{})};ve.states=Ao;ve.options=Co;ve.className=Fe;ve.defaultOptions=To;var It=ve;import{Fragment as Oo,jsx as Pe}from"react/jsx-runtime";var Je="k-icon k-svg-icon",Po=[],wo={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},kt={viewBox:"0 0 24 24"},Se=e=>{let{size:t,themeColor:o,rotate:a,flip:r,viewBox:l=kt.viewBox,icon:p,...c}=e;if(!p)return Pe(Oo,{});p==="none"&&{...c,className:i(e.className,Je,"k-none")};let m=typeof p=="object"&&p.name&&p.name;return Pe("span",{...c,className:i(e.className,Je,S("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:Pe("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})})};Se.states=Po;Se.options=wo;Se.className=Je;Se.defaultOptions=kt;var qe=Se;import*as yt from"@progress/kendo-svg-icons";import{Fragment as Mt,jsx as Ie}from"react/jsx-runtime";var Eo=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ko=[],Ho={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Ue={viewBox:"0 0 24 24",type:"svg"},A=e=>{let{size:t,themeColor:o,icon:a,type:r=Ue.type,rotate:l,flip:p,viewBox:c=Ue.viewBox,...m}=e;if(!a)return Ie(Mt,{});if(r==="svg"){if(a==="none")return Ie(qe,{...m,icon:a,size:t});let d=Eo(`${a}-icon`);return yt[d]?Ie(qe,{...m,icon:yt[d],size:t,themeColor:o,rotate:l,flip:p,viewBox:c}):Ie(Mt,{})}return Ie(It,{...m,icon:a,size:t,themeColor:o,rotate:l,flip:p})};A.states=Ko;A.options=Ho;A.defaultOptions=Ue;import{Fragment as Go,jsx as ke,jsxs as At}from"react/jsx-runtime";var we="k-button",Ro=[s.hover,s.focus,s.active,s.selected,s.disabled],Bo={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Y={size:n.medium,rounded:f.medium,fillMode:x.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},M=e=>{let{size:t=Y.size,rounded:o=Y.rounded,fillMode:a=Y.fillMode,themeColor:r=Y.themeColor,showArrow:l=Y.showArrow,arrowIconName:p=Y.arrowIconName,hover:c,focus:m,active:d,selected:h,disabled:L,icon:N,text:b,iconClassName:T,...I}=e,v=N!==void 0,k=e.children!==void 0;return At("button",{...I,className:i(e.className,we,S(we,{size:t,rounded:o,fillMode:a,themeColor:r}),y(we,{hover:c,focus:m,active:d,disabled:L,selected:h}),{"k-icon-button":!b&&!k&&v}),children:[N&&ke(A,{className:i(T,"k-button-icon"),icon:N}),b?At(Go,{children:[b&&ke("span",{className:"k-button-text",children:b}),e.children]}):e.children&&ke("span",{className:"k-button-text",children:e.children}),l&&ke("span",{className:"k-menu-button-arrow k-button-arrow",children:ke(A,{icon:p})})]})};M.states=Ro;M.options=Bo;M.className=we;M.defaultOptions=Y;import{jsx as dn}from"react/jsx-runtime";import{jsx as xn}from"react/jsx-runtime";import{jsx as Nn}from"react/jsx-runtime";import{jsx as $o}from"react/jsx-runtime";var Oe="k-input",Vo=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Do={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Ee={size:n.medium,rounded:n.medium,fillMode:x.solid},C=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:p,readonly:c,size:m=Ee.size,rounded:d=Ee.rounded,fillMode:h=Ee.fillMode,...L}=e;return $o("span",{...L,className:i(e.className,Oe,S(Oe,{size:m,rounded:d,fillMode:h}),y(Oe,{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:p,readonly:c}))})};C.states=Vo;C.options=Do;C.className=Oe;C.defaultOptions=Ee;import{jsx as Fo}from"react/jsx-runtime";var Ke="k-picker",_o=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Xo={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},He={size:n.medium,rounded:f.medium,fillMode:x.solid},ne=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:p,readonly:c,size:m=He.size,rounded:d=He.rounded,fillMode:h=He.fillMode,...L}=e;return Fo("span",{...L,className:i(e.className,Ke,S(Ke,{size:m,rounded:d,fillMode:h}),y(Ke,{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:p,readonly:c})),children:e.children})};ne.states=_o;ne.options=Xo;ne.className=Ke;ne.defaultOptions=He;import{Fragment as Uo,jsx as We}from"react/jsx-runtime";var Ct="k-clear-value",Jo=[s.disabled,s.loading,s.readonly],qo={},V=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?We(Uo,{}):We("span",{className:i(e.className,Ct),children:We(A,{icon:"x"})})};V.states=Jo;V.options=qo;V.className=Ct;import{jsx as Yo}from"react/jsx-runtime";var Qe="k-input-inner",Wo=[],Qo={},Re={type:"text",autocomplete:"off",value:"",placeholder:""},D=e=>{let{value:t=Re.value,type:o=Re.type,placeholder:a=Re.placeholder,autocomplete:r=Re.autocomplete,...l}=e;return Yo("input",{...l,type:o,className:i(e.className,Qe,S(Qe,e)),placeholder:a,autoComplete:r,defaultValue:t})};D.states=Wo;D.options=Qo;D.className=Qe;import{jsx as Tt,jsxs as es}from"react/jsx-runtime";var Ye="k-input-inner",Zo=[],jo={},ye=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:l,...p}=e;return es("span",{...p,className:i(e.className,Ye,S(Ye,e)),children:[r,!r&&l&&Tt(A,{className:"k-input-value-icon",icon:l}),a&&!t&&o,a&&t&&Tt("span",{className:"k-input-value-text",children:t})]})};ye.states=Zo;ye.options=jo;ye.className=Ye;import{jsx as ss}from"react/jsx-runtime";var Ze="k-input-inner",ts=[],os={},zt={value:"",placeholder:""},je=e=>{let{value:t=zt.value,placeholder:o=zt.placeholder,rows:a,...r}=e;return ss("textarea",{...r,className:i(e.className,Ze,S(Ze,e)),placeholder:o,rows:a,defaultValue:t})};je.states=ts;je.options=os;je.className=Ze;import{Fragment as ns,jsx as Pt}from"react/jsx-runtime";var wt="k-input-loading-icon",is=[s.disabled,s.loading],B=e=>{let{disabled:t,loading:o}=e;return t||!o?Pt(ns,{}):Pt("span",{className:i(e.className,wt,"k-icon k-i-loading")})};B.states=is;B.className=wt;import{Fragment as ls,jsx as Ot}from"react/jsx-runtime";var Et="k-input-validation-icon",as=[s.valid,s.invalid,s.disabled,s.loading],rs={},H=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,l=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?Ot(ls,{}):Ot(A,{className:i(Et),icon:l})};H.states=as;H.options=rs;H.className=Et;import{Fragment as ds,jsx as Kt}from"react/jsx-runtime";var ps="k-input-prefix",ms={direction:"horizontal"},ae=e=>{let{direction:t=ms.direction,...o}=e;return e.children?Kt("span",{...o,className:i(ps,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Kt(ds,{})};import{Fragment as fs,jsx as Ht}from"react/jsx-runtime";var cs="k-input-suffix",us={direction:"horizontal"},re=e=>{let{direction:t=us.direction,...o}=e;return e.children?Ht("span",{...o,className:i(cs,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ht(fs,{})};import{jsx as ra}from"react/jsx-runtime";import{jsx as da}from"react/jsx-runtime";import{jsx as hs}from"react/jsx-runtime";var Rt="k-input-separator",xs={direction:"vertical"},le=e=>{let{direction:t=xs.direction,...o}=e;return hs("span",{...o,className:i(Rt,e.className,{[`${Rt}-${t}`]:t})})};import{jsx as Bt}from"react/jsx-runtime";var Gt="k-animation-container",bs=[],Ls={},Vt={positionMode:"absolute"},X=e=>{let{positionMode:t=Vt.positionMode,animationStyle:o,offset:a,...r}=e;return Bt("div",{...r,style:{...a,...e.style},className:i(e.className,Gt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Bt("div",{className:"k-child-animation-container",style:o,children:e.children})})};X.states=bs;X.options=Ls;X.className=Gt;X.defaultOptions=Vt;import{jsx as Dt}from"react/jsx-runtime";var $t="k-popup",Ns=[],gs={},_t={positionMode:"absolute"},pe=e=>{let{offset:t,positionMode:o=_t.positionMode,animationStyle:a,...r}=e;return Dt(X,{positionMode:o,offset:t,animationStyle:a,children:Dt("div",{...r,className:i(e.className,$t),children:e.children})})};pe.states=Ns;pe.options=gs;pe.className=$t;pe.defaultOptions=_t;import{jsx as Is}from"react/jsx-runtime";var Be="k-actions",vs=[],Ss={},et={alignment:"start",orientation:"horizontal"},me=e=>{let{alignment:t=et.alignment,orientation:o=et.orientation,...a}=e;return Is("div",{...a,className:i(Be,{[`${Be}-${t}`]:t,[`${Be}-${o}`]:o},e.className),children:e.children})};me.states=vs;me.options=Ss;me.className=Be;me.defaultOptions=et;import{jsx as ys}from"react/jsx-runtime";var ks="k-actionsheet-footer",Xt={alignment:"stretched",orientation:"horizontal"},tt=e=>{let{alignment:t=Xt.alignment,orientation:o=Xt.orientation,template:a,as:r=a?"div":me,...l}=e;return ys(r,{...l,...!a&&{alignment:t,orientation:o},className:i(e.className,ks),children:e.children})};import{jsx as Me,jsxs as Cs}from"react/jsx-runtime";var Ft="k-searchbox",Ms=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],As={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},ot={showIcon:!0,icon:"search",size:C.defaultOptions.size,rounded:C.defaultOptions.rounded,fillMode:C.defaultOptions.fillMode},$=e=>{let{value:t,placeholder:o,size:a,rounded:r,fillMode:l,hover:p,focus:c,valid:m,invalid:d,required:h,loading:L,disabled:N,showIcon:b=ot.showIcon,icon:T=ot.icon,...I}=e;return Cs(C,{...I,size:a,rounded:r,fillMode:l,hover:p,focus:c,valid:m,invalid:d,required:h,loading:L,disabled:N,className:i(e.className,Ft),children:[b&&Me(A,{className:"k-input-icon",icon:T}),Me(D,{placeholder:o,value:t}),Me(B,{...e}),Me(H,{...e}),Me(V,{...e})]})};$.states=Ms;$.options=As;$.className=Ft;$.defaultOptions=ot;import{jsx as ir}from"react/jsx-runtime";import{Fragment as Jt,jsx as F,jsxs as st}from"react/jsx-runtime";var qt="k-textbox",Ts=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],zs={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Z={showClearButton:!0,showValidationIcon:!0,size:C.defaultOptions.size,rounded:C.defaultOptions.rounded,fillMode:C.defaultOptions.fillMode,separators:!0},de=e=>{let{size:t=Z.size,rounded:o=Z.rounded,fillMode:a=Z.fillMode,separators:r=Z.separators,showClearButton:l=Z.showClearButton,showValidationIcon:p=Z.showValidationIcon,prefix:c,suffix:m,type:d,value:h,placeholder:L,hover:N,focus:b,valid:T,invalid:I,required:v,loading:k,disabled:K,readonly:G,...R}=e;return st(C,{...R,size:t,rounded:o,fillMode:a,hover:N,focus:b,valid:T,invalid:I,required:v,loading:k,disabled:K,readonly:G,className:i(e.className,qt),children:[c&&st(Jt,{children:[F(ae,{children:c}),r&&F(le,{})]}),F(D,{placeholder:L,value:h,type:d}),p&&F(H,{valid:T,invalid:I,loading:k,disabled:K}),F(B,{loading:k,disabled:K}),l&&F(V,{loading:k,disabled:K,readonly:G,value:h}),m&&st(Jt,{children:[r&&F(le,{}),F(re,{children:m})]})]})};de.states=Ts;de.options=zs;de.className=qt;de.defaultOptions=Z;import{jsx as xr}from"react/jsx-runtime";import{Fragment as vr,jsx as gr}from"react/jsx-runtime";import{Fragment as Cr,jsx as Ar}from"react/jsx-runtime";import{jsx as J,jsxs as it}from"react/jsx-runtime";var Wt="k-actionsheet-titlebar",Ps={},q=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:r,filter:l,input:p,inputValue:c,inputPlaceholder:m,adaptive:d,children:h,...L}=e;return it("div",{...L,className:i(e.className,Wt),children:[it("div",{className:"k-actionsheet-titlebar-group",children:[a&&J("div",{className:"k-actionsheet-actions",children:a}),!h&&it("div",{className:"k-actionsheet-title",children:[t&&J("div",{className:"k-text-center",children:t}),o&&J("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&J("div",{className:"k-actionsheet-title",children:h}),r&&J("div",{className:"k-actionsheet-actions",children:r})]}),(p||l)&&J("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?J(de,{value:c,placeholder:m,size:d?"large":"medium"}):J($,{placeholder:"Filter",size:d?"large":"medium"})})]})};q.className=Wt;q.defaultOptions=Ps;import{jsx as nt,jsxs as Ks}from"react/jsx-runtime";var at="k-actionsheet-view",ws=[],Os={},Es={},ce=e=>{let{adaptive:t,animated:o,children:a,header:r,footer:l,...p}=e,c=r?.type===q&&nt(q,{adaptive:t,...r?.props}),m=l?.type===tt&&nt(tt,{...l?.props});return Ks("div",{...p,className:i(e.className,at,{[`${at}-animated`]:o}),children:[c,nt("div",{className:"k-actionsheet-content",children:a}),m]})};ce.states=ws;ce.options=Os;ce.className=at;ce.defaultOptions=Es;import{jsx as Ge,jsxs as Bs}from"react/jsx-runtime";var Qt="k-actionsheet",Hs=[],Rs={},Ae={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},j=e=>{let{side:t=Ae.side,fullscreen:o=Ae.fullscreen,adaptive:a=Ae.adaptive,overlay:r=Ae.overlay,template:l,children:p,header:c,footer:m,...d}=e;return Bs("div",{className:"k-actionsheet-container",children:[r&&Ge("div",{className:"k-overlay"}),Ge(X,{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:Ge("div",{...d,className:i(e.className,Qt,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:l||Ge(ce,{header:c,footer:m,adaptive:a,...e,children:p})})})]})};j.states=Hs;j.options=Rs;j.className=Qt;j.defaultOptions=Ae;import{jsx as Zr}from"react/jsx-runtime";import{Fragment as Vs,jsx as Ce,jsxs as rt}from"react/jsx-runtime";var lt="k-actionsheet-item",Gs=[s.hover,s.focus,s.selected,s.disabled],pt=e=>{let{iconName:t,text:o,description:a,hover:r,focus:l,selected:p,disabled:c,...m}=e;return rt("span",{...m,className:i(e.className,lt,y(lt,{hover:r,focus:l,selected:p,disabled:c})),children:[!e.children&&Ce(Vs,{children:rt("span",{className:"k-actionsheet-action",children:[t&&Ce("span",{className:"k-icon-wrap",children:Ce(A,{className:"k-actionsheet-item-icon",icon:t})}),rt("span",{className:"k-actionsheet-item-text",children:[o&&Ce("span",{className:"k-actionsheet-item-title",children:o}),a&&Ce("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};pt.states=Gs;pt.className=lt;import{jsx as rl,jsxs as ll}from"react/jsx-runtime";import{jsx as cl}from"react/jsx-runtime";import{jsx as hl}from"react/jsx-runtime";import{jsx as gl}from"react/jsx-runtime";import{jsx as $s}from"react/jsx-runtime";var Ds="k-no-data",Te=e=>$s("span",{className:i(Ds,e.className),children:e.children});import{jsx as ue,jsxs as Zt}from"react/jsx-runtime";var mt="k-list",_s=[],Xs={size:[n.small,n.medium,n.large]},jt={size:n.medium},z=e=>{let{size:t=jt.size,virtualization:o,children:a,optionLabel:r,customValue:l,screenReaders:p,...c}=e,m,d,h,L,N=[];return a?a.map((b,T)=>{b.type===P?(b.props.root===!0?(m=b.props.label,b.props.children.map((I,v)=>{N.push(ue(g,{...I.props},`optChild-${v}-${new Date().getTime()}`))})):b.props.children.forEach((I,v)=>{let k="";v===0&&(k=b.props.label),N.push(ue(g,{className:v===0?"k-first":"",...I.props,groupLabel:k},`groupLabel-${v}-${new Date().getTime()}`))}),d=ue(P,{label:m,virtualization:o,children:N})):b.type===g&&(N.push(ue(g,{...b.props},`${b.type}-${T}`)),h=ue(fe,{virtualization:o,children:N}),p&&(L=Zt(Te,{className:"k-sr-only",children:[N.length," items found."]})))}):L=ue(Te,{children:"No data found."}),Zt("div",{...c,className:i(e.className,mt,S(mt,{size:t}),{"k-virtual-list":o}),children:[r,l,d,h,L]})};z.states=_s;z.options=Xs;z.className=mt;z.defaultOptions=jt;import{jsx as ee,jsxs as qs}from"react/jsx-runtime";var dt="k-list",Fs=[],Js={size:[n.small,n.medium,n.large]},eo={size:n.medium},te=e=>{let{size:t=eo.size,virtualization:o,children:a,...r}=e,l,p,c,m=[];return a?a.map((d,h)=>{d.type===P?(d.props.root===!0?(l=d.props.label,d.props.children.map((L,N)=>{m.push(ee(g,{...L.props},`optChild-${N}-${new Date().getTime()}`))})):(m.push(ee(to,{...d.props,children:d.props.label},`listChild-${h}`)),d.props.children.map((L,N)=>{m.push(ee(g,{...L.props},`fwOptChild-${N}-${new Date().getTime()}`))})),p=ee(P,{label:l,virtualization:o,children:m})):d.type===g&&(m.push(ee(g,{...d.props},`${d.type}-${h}`)),c=ee(fe,{virtualization:o,children:m}))}):c=ee(Te,{children:"No data found."}),qs("div",{...r,className:i(e.className,dt,S(dt,{size:t}),{"k-virtual-list":o}),children:[p,c]})};te.states=Fs;te.options=Js;te.className=dt;te.defaultOptions=eo;import{jsx as oo}from"react/jsx-runtime";var Ve="k-checkbox",Us=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],Ws={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},ct={size:n.medium,rounded:f.medium},U=e=>{let{id:t,checked:o,indeterminate:a,hover:r,focus:l,disabled:p,invalid:c,valid:m,required:d,size:h=ct.size,rounded:L=ct.rounded,...N}=e;return oo("span",{className:"k-checkbox-wrap",children:oo("input",{...N,id:t,type:"checkbox",defaultChecked:o,required:d,className:i(e.className,Ve,S(Ve,{size:h,rounded:L}),y(Ve,{hover:r,focus:l,disabled:p,invalid:c,valid:m,indeterminate:a,checked:o}))})})};U.states=Us;U.options=Ws;U.className=Ve;U.defaultOptions=ct;import{jsx as Zs}from"react/jsx-runtime";var so="k-checkbox-list",Qs=[],Ys={},io={layout:"vertical"},xe=e=>{let{layout:t=io.layout,...o}=e;return Zs("ul",{...o,className:i(e.className,so,{[`k-list-${t}`]:t}),children:e.children})};xe.states=Qs;xe.options=Ys;xe.className=so;xe.defaultOptions=io;import{jsx as oi}from"react/jsx-runtime";var no="k-checkbox-list-item",js=[],ei={},ti={},he=e=>{let{...t}=e;return oi("li",{...t,className:i(e.className,no),children:e.children})};he.states=js;he.options=ei;he.className=no;he.defaultOptions=ti;import{Fragment as ap,jsx as np,jsxs as rp}from"react/jsx-runtime";import{Fragment as cp,jsx as dp,jsxs as up}from"react/jsx-runtime";import{Fragment as Lp,jsx as bp,jsxs as Np}from"react/jsx-runtime";import{Fragment as kp,jsx as Ip,jsxs as yp}from"react/jsx-runtime";import{jsx as Tp}from"react/jsx-runtime";import{jsx as Op}from"react/jsx-runtime";import{jsx as De,jsxs as ai}from"react/jsx-runtime";var ft="k-list-item",si=[s.hover,s.focus,s.selected,s.disabled],ii={},ni={},g=e=>{let{text:t,groupLabel:o,group:a,showIcon:r,iconName:l,showCheckbox:p,checked:c,hover:m,focus:d,selected:h,disabled:L,...N}=e,b=t||e.children;return ai("li",{...N,className:i(e.className,a?"k-list-group-item":ft,y(ft,{hover:m,focus:d,disabled:L,selected:h})),children:[p&&De(U,{checked:c}),r&&De(A,{icon:l}),De("span",{className:"k-list-item-text",children:b}),o&&o!==""&&De("div",{className:"k-list-item-group-label",children:o})]})};g.states=si;g.options=ii;g.className=ft;g.defaultOptions=ni;import{jsx as xt,jsxs as li}from"react/jsx-runtime";var ri="k-list-content",fe=e=>{let{virtualization:t,...o}=e;return li("div",{...o,className:i(ri,e.className),children:[xt("ul",{className:i("k-list-ul"),children:e.children}),t&&xt("div",{className:"k-height-container",children:xt("div",{})})]})};import{jsx as ao}from"react/jsx-runtime";var pi="k-list-group-sticky-header",ro=e=>ao("div",{className:i(pi,e.className),children:ao("div",{className:"k-list-header-text",children:e.children})});import{Fragment as mi,jsx as lo,jsxs as di}from"react/jsx-runtime";var P=e=>{let{virtualization:t,label:o}=e;return di(mi,{children:[o&&lo(ro,{children:o}),e.children&&lo(fe,{virtualization:t,children:e.children})]})};import{jsx as po}from"react/jsx-runtime";var ci="k-list-group-item",to=e=>po("li",{className:i(ci,e.className),children:po("span",{className:"k-list-item-text",children:e.children})});import{jsx as hi}from"react/jsx-runtime";var ht="k-list-optionlabel",ui=[s.hover,s.focus,s.selected,s.disabled],fi={},xi={},$e=e=>{let{text:t,hover:o,focus:a,selected:r,disabled:l,...p}=e;return hi("div",{...p,className:i(ht,y(ht,{hover:o,focus:a,selected:r,disabled:l})),children:t})};$e.states=ui;$e.options=fi;$e.className=ht;$e.defaultOptions=xi;import{jsx as gi}from"react/jsx-runtime";var bt="k-list-custom-value",bi=[s.hover,s.focus,s.selected,s.disabled],Li={},Ni={},_e=e=>{let{text:t,hover:o,focus:a,selected:r,disabled:l,...p}=e;return gi("div",{...p,className:i(bt,y(bt,{hover:o,focus:a,selected:r,disabled:l})),children:t})};_e.states=bi;_e.options=Li;_e.className=bt;_e.defaultOptions=Ni;import{jsx as hm}from"react/jsx-runtime";import{jsx as gm}from"react/jsx-runtime";import{jsx as km,jsxs as ym}from"react/jsx-runtime";import{jsx as Tm,jsxs as zm}from"react/jsx-runtime";import{jsx as Em}from"react/jsx-runtime";import{jsx as Bm,jsxs as Gm}from"react/jsx-runtime";import{jsx as _m,jsxs as Xm}from"react/jsx-runtime";import{Fragment as Ii,jsx as w,jsxs as Lt}from"react/jsx-runtime";var mo="k-dropdownlist",vi=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Si={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},be={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:x.solid},oe=e=>{let{size:t=be.size,rounded:o=be.rounded,fillMode:a=be.fillMode,arrowIconName:r=be.arrowIconName,showValue:l=be.showValue,valueIconName:p,prefix:c,suffix:m,value:d,placeholder:h,hover:L,focus:N,valid:b,invalid:T,required:I,loading:v,disabled:k,readonly:K,popup:G,opened:R,adaptive:vo,adaptiveSettings:So,adaptiveTitle:Io,adaptiveSubtitle:ko,adaptiveFilter:yo,...Mo}=e;return Lt(Ii,{children:[Lt(ne,{...Mo,size:t,rounded:o,fillMode:a,hover:L,focus:N,valid:b,invalid:T,required:I,loading:v,disabled:k,readonly:K,className:i(e.className,mo,{"k-icon-picker":!l&&p}),children:[w(ae,{children:c}),w(ye,{placeholder:h,value:d,showValue:l,valueIconName:p}),w(H,{valid:b,invalid:T,loading:v,disabled:k}),w(B,{loading:v,disabled:k}),w(re,{children:m}),w(M,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),R&&G&&w(pe,{className:"k-list-container k-dropdownlist-popup",children:G}),vo&&w(j,{adaptive:!0,...So,header:w(q,{actionsEnd:w(M,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:yo,inputValue:d,inputPlaceholder:h,title:Io,subtitle:ko}),children:w("div",{className:"k-list-container",children:Lt(z,{size:"large",children:[w(g,{text:"List item"}),w(g,{text:"List item"}),w(g,{text:"List item"})]})})})]})};oe.states=vi;oe.options=Si;oe.className=mo;oe.defaultOptions=be;import{jsx as gd}from"react/jsx-runtime";import{jsx as yd,jsxs as Md}from"react/jsx-runtime";import{Fragment as Ed,jsx as wd,jsxs as Od}from"react/jsx-runtime";import{jsx as Bd}from"react/jsx-runtime";import{jsx as _d,jsxs as Xd}from"react/jsx-runtime";import{jsx as Wd,jsxs as Qd}from"react/jsx-runtime";import{Fragment as ic,jsx as oc,jsxs as sc}from"react/jsx-runtime";import{Fragment as cc,jsx as mc,jsxs as dc}from"react/jsx-runtime";import{jsx as co,jsxs as Mi}from"react/jsx-runtime";var uo="k-spin-button",ki=[],yi={size:[n.small,n.medium,n.large],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},Nt={size:n.medium,fillMode:x.solid},Le=e=>{let{size:t=Nt.size,fillMode:o=Nt.fillMode,...a}=e;return Mi("span",{...a,className:i(uo,e.className),children:[co(M,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),co(M,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Le.states=ki;Le.options=yi;Le.className=uo;Le.defaultOptions=Nt;import{Fragment as fo,jsx as _,jsxs as gt}from"react/jsx-runtime";var xo="k-numerictextbox",Ai=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Ci={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},ie={showSpinButton:!0,showClearButton:!0,size:C.defaultOptions.size,rounded:C.defaultOptions.rounded,fillMode:C.defaultOptions.fillMode,separators:!0},Ne=e=>{let{size:t=ie.size,rounded:o=ie.rounded,fillMode:a=ie.fillMode,separators:r=ie.separators,showClearButton:l=ie.showClearButton,showSpinButton:p=ie.showSpinButton,prefix:c,suffix:m,value:d,placeholder:h,hover:L,focus:N,valid:b,invalid:T,required:I,loading:v,disabled:k,readonly:K,...G}=e;return gt(C,{...G,size:t,rounded:o,fillMode:a,hover:L,focus:N,valid:b,invalid:T,required:I,loading:v,disabled:k,readonly:K,className:i(e.className,xo),children:[c&>(fo,{children:[_(ae,{children:c}),r&&_(le,{})]}),_(D,{placeholder:h,value:d}),_(H,{valid:b,invalid:T,loading:v,disabled:k}),_(B,{loading:v,disabled:k}),l&&_(V,{loading:v,disabled:k,readonly:K,value:d}),m&>(fo,{children:[r&&_(le,{}),_(re,{children:m})]}),p&&_(Le,{className:"k-input-spinner",size:t,fillMode:a})]})};Ne.states=Ai;Ne.options=Ci;Ne.className=xo;Ne.defaultOptions=ie;import{jsx as Rc}from"react/jsx-runtime";import{Fragment as _c,jsx as $c}from"react/jsx-runtime";import{Fragment as Qc,jsx as Wc}from"react/jsx-runtime";import{Fragment as bo,jsx as O,jsxs as ge}from"react/jsx-runtime";var Xe="k-pager",Ti=[s.focus,s.disabled],zi={size:[n.small,n.medium,n.large]},E={responsive:!0,size:n.medium,pagerSizeInfo:!0,pageTitleInfo:!0,maxPagesInfo:!0,type:"numeric",pageSizes:!0,refresh:!0,previousNext:!0,info:"1 - 5 of 20 items",itemsPerPage:5,maxPages:6,currentPage:1},W=e=>{let{responsive:t=E.responsive,size:o=E.size,pagerSizeInfo:a=E.pagerSizeInfo,pageTitleInfo:r=E.pageTitleInfo,maxPagesInfo:l=E.maxPagesInfo,itemsPerPage:p=E.itemsPerPage,maxPages:c=E.maxPages,currentPage:m=E.currentPage,previousNext:d=E.previousNext,type:h=E.type,pageSizes:L=E.pageSizes,refresh:N=E.refresh,info:b=E.info,focus:T,disabled:I,dir:v,...k}=e,K=[],G=[];for(let R=1;R<=c;R++)K.push(O(M,{selected:R===m,fillMode:"flat",themeColor:"primary",size:o,rounded:null,children:R})),G.push(O("option",{selected:R===m,children:R}));return ge("div",{dir:v,...k,className:i(e.className,Xe,S(Xe,{size:o}),y(Xe,{focus:T,disabled:I}),{"k-pager-responsive":t}),children:[ge("div",{className:i("k-pager-numbers-wrap"),children:[d&&ge(bo,{children:[O(M,{className:i("k-pager-nav","k-pager-first"),disabled:m===1&&!I,fillMode:"flat",size:o,rounded:null,icon:v==="rtl"?"caret-alt-to-right":"caret-alt-to-left"}),O(M,{className:i("k-pager-nav"),disabled:m===1&&!I,fillMode:"flat",size:o,rounded:null,icon:v==="rtl"?"caret-alt-right":"caret-alt-left"})]}),h==="numeric"&&O("div",{className:i("k-pager-numbers"),children:K}),h==="input"&&ge("span",{className:i("k-pager-input"),children:[r&&O("span",{children:"Page"}),O(Ne,{value:`${m}`,size:o,showSpinButton:!1,showClearButton:!1}),O("span",{children:l&&`of ${c}`})]}),d&&ge(bo,{children:[O(M,{className:i("k-pager-nav"),disabled:m===c&&!I,fillMode:"flat",size:o,rounded:null,icon:v==="rtl"?"caret-alt-left":"caret-alt-right"}),O(M,{className:i("k-pager-nav","k-pager-last"),disabled:m===c&&!I,fillMode:"flat",size:o,rounded:null,icon:v==="rtl"?"caret-alt-to-left":"caret-alt-to-right"})]})]}),L&&ge("span",{className:i("k-pager-sizes"),children:[O(oe,{value:`${p}`,size:o}),a&&O("span",{children:"items per page"})]}),N&&O(M,{className:i("k-pager-refresh"),fillMode:"flat",size:o,rounded:null,icon:"arrow-rotate-cw"}),b&&O("span",{className:i("k-pager-info"),children:b})]})};W.states=Ti;W.options=zi;W.className=Xe;W.defaultOptions=E;import{jsx as Pi}from"react/jsx-runtime";var Lo=e=>Pi(W,{...e,responsive:!1});import{jsx as fu}from"react/jsx-runtime";import{jsx as Lu}from"react/jsx-runtime";import{Fragment as Ei,jsx as Q,jsxs as No}from"react/jsx-runtime";var vt="k-listview",wi=[s.loading,s.disabled],Oi={},go={pagerPosition:"bottom"},ze=e=>{let{header:t,footer:o,pageable:a,pagerPosition:r=go.pagerPosition,bordered:l,layout:p,flexDirection:c,flexWrap:m,gridColumns:d,loading:h,disabled:L,...N}=e,b=Q(Lo,{className:`k-listview-pager k-listview-pager-${r}`}),T=Q(Ei,{children:No("div",{className:"k-loading-mask",style:{height:"100%",width:"100%"},children:[Q("span",{className:"k-loading-text",children:"Loading..."}),Q("div",{className:"k-loading-image"}),Q("div",{className:"k-loading-color"})]})});return No("div",{...N,className:i(e.className,vt,{"k-listview-bordered":l},y(vt,{disabled:L,loading:h})),children:[a&&r==="top"&&b,t&&Q("div",{className:"k-listview-header",children:"Header"}),Q("div",{className:i("k-listview-content",{[`k-d-${p}`]:p,[`k-flex-${c}`]:c,[`k-flex-${m}`]:m,[`k-grid-cols-${d}`]:d}),children:e.children}),h&&T,o&&Q("div",{className:"k-listview-footer",children:"Footer"}),a&&r==="bottom"&&b]})};ze.states=wi;ze.options=Oi;ze.className=vt;ze.defaultOptions=go;var Au=ze;export{vt as LISTVIEW_CLASSNAME,ze as ListView,Au as default};