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