UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 30 kB
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"}),C=(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"},u={small:"small",medium:"medium",large:"large",full:"full"},x={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},d={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 ko,jsx as Nt}from"react/jsx-runtime";var Xe="k-icon k-font-icon",vo=[],So={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},Io={},ge=e=>{let{size:t,themeColor:o,icon:a,rotate:r,flip:l,...p}=e;return a?Nt("span",{...p,className:i(e.className,Xe,S(Xe,{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"})}):Nt(ko,{})};ge.states=vo;ge.options=So;ge.className=Xe;ge.defaultOptions=Io;var gt=ge;import{Fragment as Ao,jsx as Te}from"react/jsx-runtime";var _e="k-icon k-svg-icon",yo=[],Mo={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},vt={viewBox:"0 0 24 24"},ve=e=>{let{size:t,themeColor:o,rotate:a,flip:r,viewBox:l=vt.viewBox,icon:p,...f}=e;if(!p)return Te(Ao,{});p==="none"&&{...f,className:i(e.className,_e,"k-none")};let m=typeof p=="object"&&p.name&&p.name;return Te("span",{...f,className:i(e.className,_e,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:Te("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})})};ve.states=yo;ve.options=Mo;ve.className=_e;ve.defaultOptions=vt;var Fe=ve;import*as St from"@progress/kendo-svg-icons";import{Fragment as It,jsx as Se}from"react/jsx-runtime";var Co=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),To=[],zo={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},Je={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:a,type:r=Je.type,rotate:l,flip:p,viewBox:f=Je.viewBox,...m}=e;if(!a)return Se(It,{});if(r==="svg"){if(a==="none")return Se(Fe,{...m,icon:a,size:t});let c=Co(`${a}-icon`);return St[c]?Se(Fe,{...m,icon:St[c],size:t,themeColor:o,rotate:l,flip:p,viewBox:f}):Se(It,{})}return Se(gt,{...m,icon:a,size:t,themeColor:o,rotate:l,flip:p})};M.states=To;M.options=zo;M.defaultOptions=Je;import{Fragment as Eo,jsx as Ie,jsxs as kt}from"react/jsx-runtime";var ze="k-button",Po=[s.hover,s.focus,s.active,s.selected,s.disabled],Oo={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark,d.inverse]},Q={size:n.medium,rounded:u.medium,fillMode:x.solid,themeColor:d.base,showArrow:!1,arrowIconName:"caret-alt-down"},y=e=>{let{size:t=Q.size,rounded:o=Q.rounded,fillMode:a=Q.fillMode,themeColor:r=Q.themeColor,showArrow:l=Q.showArrow,arrowIconName:p=Q.arrowIconName,hover:f,focus:m,active:c,selected:h,disabled:L,icon:g,text:b,iconClassName:T,...I}=e,v=g!==void 0,k=e.children!==void 0;return kt("button",{...I,className:i(e.className,ze,S(ze,{size:t,rounded:o,fillMode:a,themeColor:r}),C(ze,{hover:f,focus:m,active:c,disabled:L,selected:h}),{"k-icon-button":!b&&!k&&v}),children:[g&&Ie(M,{className:i(T,"k-button-icon"),icon:g}),b?kt(Eo,{children:[b&&Ie("span",{className:"k-button-text",children:b}),e.children]}):e.children&&Ie("span",{className:"k-button-text",children:e.children}),l&&Ie("span",{className:"k-menu-button-arrow k-button-arrow",children:Ie(M,{icon:p})})]})};y.states=Po;y.options=Oo;y.className=ze;y.defaultOptions=Q;import{jsx as on}from"react/jsx-runtime";import{jsx as rn}from"react/jsx-runtime";import{jsx as dn}from"react/jsx-runtime";import{jsx as Ho}from"react/jsx-runtime";var Pe="k-input",wo=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ko={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},Oe={size:n.medium,rounded:n.medium,fillMode:x.solid},A=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:p,readonly:f,size:m=Oe.size,rounded:c=Oe.rounded,fillMode:h=Oe.fillMode,...L}=e;return Ho("span",{...L,className:i(e.className,Pe,S(Pe,{size:m,rounded:c,fillMode:h}),C(Pe,{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:p,readonly:f}))})};A.states=wo;A.options=Ko;A.className=Pe;A.defaultOptions=Oe;import{jsx as Go}from"react/jsx-runtime";var Ee="k-picker",Ro=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Bo={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},we={size:n.medium,rounded:u.medium,fillMode:x.solid},ie=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:p,readonly:f,size:m=we.size,rounded:c=we.rounded,fillMode:h=we.fillMode,...L}=e;return Go("span",{...L,className:i(e.className,Ee,S(Ee,{size:m,rounded:c,fillMode:h}),C(Ee,{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:p,readonly:f})),children:e.children})};ie.states=Ro;ie.options=Bo;ie.className=Ee;ie.defaultOptions=we;import{Fragment as $o,jsx as qe}from"react/jsx-runtime";var yt="k-clear-value",Do=[s.disabled,s.loading,s.readonly],Vo={},D=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?qe($o,{}):qe("span",{className:i(e.className,yt),children:qe(M,{icon:"x"})})};D.states=Do;D.options=Vo;D.className=yt;import{jsx as Fo}from"react/jsx-runtime";var Ue="k-input-inner",Xo=[],_o={},Ke={type:"text",autocomplete:"off",value:"",placeholder:""},V=e=>{let{value:t=Ke.value,type:o=Ke.type,placeholder:a=Ke.placeholder,autocomplete:r=Ke.autocomplete,...l}=e;return Fo("input",{...l,type:o,className:i(e.className,Ue,S(Ue,e)),placeholder:a,autoComplete:r,defaultValue:t})};V.states=Xo;V.options=_o;V.className=Ue;import{jsx as Mt,jsxs as Uo}from"react/jsx-runtime";var We="k-input-inner",Jo=[],qo={},ke=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:l,...p}=e;return Uo("span",{...p,className:i(e.className,We,S(We,e)),children:[r,!r&&l&&Mt(M,{className:"k-input-value-icon",icon:l}),a&&!t&&o,a&&t&&Mt("span",{className:"k-input-value-text",children:t})]})};ke.states=Jo;ke.options=qo;ke.className=We;import{jsx as Yo}from"react/jsx-runtime";var Qe="k-input-inner",Wo=[],Qo={},At={value:"",placeholder:""},Ye=e=>{let{value:t=At.value,placeholder:o=At.placeholder,rows:a,...r}=e;return Yo("textarea",{...r,className:i(e.className,Qe,S(Qe,e)),placeholder:o,rows:a,defaultValue:t})};Ye.states=Wo;Ye.options=Qo;Ye.className=Qe;import{Fragment as jo,jsx as Ct}from"react/jsx-runtime";var Tt="k-input-loading-icon",Zo=[s.disabled,s.loading],B=e=>{let{disabled:t,loading:o}=e;return t||!o?Ct(jo,{}):Ct("span",{className:i(e.className,Tt,"k-icon k-i-loading")})};B.states=Zo;B.className=Tt;import{Fragment as os,jsx as zt}from"react/jsx-runtime";var Pt="k-input-validation-icon",es=[s.valid,s.invalid,s.disabled,s.loading],ts={},H=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,l=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?zt(os,{}):zt(M,{className:i(Pt),icon:l})};H.states=es;H.options=ts;H.className=Pt;import{Fragment as ns,jsx as Ot}from"react/jsx-runtime";var ss="k-input-prefix",is={direction:"horizontal"},ne=e=>{let{direction:t=is.direction,...o}=e;return e.children?Ot("span",{...o,className:i(ss,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ot(ns,{})};import{Fragment as ls,jsx as Et}from"react/jsx-runtime";var as="k-input-suffix",rs={direction:"horizontal"},ae=e=>{let{direction:t=rs.direction,...o}=e;return e.children?Et("span",{...o,className:i(as,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Et(ls,{})};import{jsx as jn}from"react/jsx-runtime";import{jsx as sa}from"react/jsx-runtime";import{jsx as ms}from"react/jsx-runtime";var wt="k-input-separator",ps={direction:"vertical"},re=e=>{let{direction:t=ps.direction,...o}=e;return ms("span",{...o,className:i(wt,e.className,{[`${wt}-${t}`]:t})})};import{jsx as Kt}from"react/jsx-runtime";var Ht="k-animation-container",ds=[],cs={},Rt={positionMode:"absolute"},F=e=>{let{positionMode:t=Rt.positionMode,animationStyle:o,offset:a,...r}=e;return Kt("div",{...r,style:{...a,...e.style},className:i(e.className,Ht,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Kt("div",{className:"k-child-animation-container",style:o,children:e.children})})};F.states=ds;F.options=cs;F.className=Ht;F.defaultOptions=Rt;import{jsx as Bt}from"react/jsx-runtime";var Gt="k-popup",us=[],fs={},Dt={positionMode:"absolute"},le=e=>{let{offset:t,positionMode:o=Dt.positionMode,animationStyle:a,...r}=e;return Bt(F,{positionMode:o,offset:t,animationStyle:a,children:Bt("div",{...r,className:i(e.className,Gt),children:e.children})})};le.states=us;le.options=fs;le.className=Gt;le.defaultOptions=Dt;import{jsx as Ls}from"react/jsx-runtime";var He="k-actions",xs=[],hs={},Ze={alignment:"start",orientation:"horizontal"},pe=e=>{let{alignment:t=Ze.alignment,orientation:o=Ze.orientation,...a}=e;return Ls("div",{...a,className:i(He,{[`${He}-${t}`]:t,[`${He}-${o}`]:o},e.className),children:e.children})};pe.states=xs;pe.options=hs;pe.className=He;pe.defaultOptions=Ze;import{jsx as Ns}from"react/jsx-runtime";var bs="k-actionsheet-footer",Vt={alignment:"stretched",orientation:"horizontal"},je=e=>{let{alignment:t=Vt.alignment,orientation:o=Vt.orientation,template:a,as:r=a?"div":pe,...l}=e;return Ns(r,{...l,...!a&&{alignment:t,orientation:o},className:i(e.className,bs),children:e.children})};import{jsx as ye,jsxs as Ss}from"react/jsx-runtime";var $t="k-searchbox",gs=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],vs={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},et={showIcon:!0,icon:"search",size:A.defaultOptions.size,rounded:A.defaultOptions.rounded,fillMode:A.defaultOptions.fillMode},$=e=>{let{value:t,placeholder:o,size:a,rounded:r,fillMode:l,hover:p,focus:f,valid:m,invalid:c,required:h,loading:L,disabled:g,showIcon:b=et.showIcon,icon:T=et.icon,...I}=e;return Ss(A,{...I,size:a,rounded:r,fillMode:l,hover:p,focus:f,valid:m,invalid:c,required:h,loading:L,disabled:g,className:i(e.className,$t),children:[b&&ye(M,{className:"k-input-icon",icon:T}),ye(V,{placeholder:o,value:t}),ye(B,{...e}),ye(H,{...e}),ye(D,{...e})]})};$.states=gs;$.options=vs;$.className=$t;$.defaultOptions=et;import{jsx as Qa}from"react/jsx-runtime";import{Fragment as Xt,jsx as J,jsxs as tt}from"react/jsx-runtime";var _t="k-textbox",Is=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],ks={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},Y={showClearButton:!0,showValidationIcon:!0,size:A.defaultOptions.size,rounded:A.defaultOptions.rounded,fillMode:A.defaultOptions.fillMode,separators:!0},me=e=>{let{size:t=Y.size,rounded:o=Y.rounded,fillMode:a=Y.fillMode,separators:r=Y.separators,showClearButton:l=Y.showClearButton,showValidationIcon:p=Y.showValidationIcon,prefix:f,suffix:m,type:c,value:h,placeholder:L,hover:g,focus:b,valid:T,invalid:I,required:v,loading:k,disabled:K,readonly:G,...R}=e;return tt(A,{...R,size:t,rounded:o,fillMode:a,hover:g,focus:b,valid:T,invalid:I,required:v,loading:k,disabled:K,readonly:G,className:i(e.className,_t),children:[f&&tt(Xt,{children:[J(ne,{children:f}),r&&J(re,{})]}),J(V,{placeholder:L,value:h,type:c}),p&&J(H,{valid:T,invalid:I,loading:k,disabled:K}),J(B,{loading:k,disabled:K}),l&&J(D,{loading:k,disabled:K,readonly:G,value:h}),m&&tt(Xt,{children:[r&&J(re,{}),J(ae,{children:m})]})]})};me.states=Is;me.options=ks;me.className=_t;me.defaultOptions=Y;import{jsx as rr}from"react/jsx-runtime";import{Fragment as ur,jsx as cr}from"react/jsx-runtime";import{Fragment as gr,jsx as Nr}from"react/jsx-runtime";import{jsx as q,jsxs as ot}from"react/jsx-runtime";var Jt="k-actionsheet-titlebar",ys={},U=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:r,filter:l,input:p,inputValue:f,inputPlaceholder:m,adaptive:c,children:h,...L}=e;return ot("div",{...L,className:i(e.className,Jt),children:[ot("div",{className:"k-actionsheet-titlebar-group",children:[a&&q("div",{className:"k-actionsheet-actions",children:a}),!h&&ot("div",{className:"k-actionsheet-title",children:[t&&q("div",{className:"k-text-center",children:t}),o&&q("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&q("div",{className:"k-actionsheet-title",children:h}),r&&q("div",{className:"k-actionsheet-actions",children:r})]}),(p||l)&&q("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?q(me,{value:f,placeholder:m,size:c?"large":"medium"}):q($,{placeholder:"Filter",size:c?"large":"medium"})})]})};U.className=Jt;U.defaultOptions=ys;import{jsx as st,jsxs as Ts}from"react/jsx-runtime";var it="k-actionsheet-view",Ms=[],As={},Cs={},de=e=>{let{adaptive:t,animated:o,children:a,header:r,footer:l,...p}=e,f=r?.type===U&&st(U,{adaptive:t,...r?.props}),m=l?.type===je&&st(je,{...l?.props});return Ts("div",{...p,className:i(e.className,it,{[`${it}-animated`]:o}),children:[f,st("div",{className:"k-actionsheet-content",children:a}),m]})};de.states=Ms;de.options=As;de.className=it;de.defaultOptions=Cs;import{jsx as Re,jsxs as Os}from"react/jsx-runtime";var qt="k-actionsheet",zs=[],Ps={},Me={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Z=e=>{let{side:t=Me.side,fullscreen:o=Me.fullscreen,adaptive:a=Me.adaptive,overlay:r=Me.overlay,template:l,children:p,header:f,footer:m,...c}=e;return Os("div",{className:"k-actionsheet-container",children:[r&&Re("div",{className:"k-overlay"}),Re(F,{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:Re("div",{...c,className:i(e.className,qt,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:l||Re(de,{header:f,footer:m,adaptive:a,...e,children:p})})})]})};Z.states=zs;Z.options=Ps;Z.className=qt;Z.defaultOptions=Me;import{jsx as _r}from"react/jsx-runtime";import{Fragment as ws,jsx as Ae,jsxs as nt}from"react/jsx-runtime";var at="k-actionsheet-item",Es=[s.hover,s.focus,s.selected,s.disabled],rt=e=>{let{iconName:t,text:o,description:a,hover:r,focus:l,selected:p,disabled:f,...m}=e;return nt("span",{...m,className:i(e.className,at,C(at,{hover:r,focus:l,selected:p,disabled:f})),children:[!e.children&&Ae(ws,{children:nt("span",{className:"k-actionsheet-action",children:[t&&Ae("span",{className:"k-icon-wrap",children:Ae(M,{className:"k-actionsheet-item-icon",icon:t})}),nt("span",{className:"k-actionsheet-item-text",children:[o&&Ae("span",{className:"k-actionsheet-item-title",children:o}),a&&Ae("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};rt.states=Es;rt.className=at;import{jsx as jr,jsxs as el}from"react/jsx-runtime";import{jsx as il}from"react/jsx-runtime";import{jsx as ll}from"react/jsx-runtime";import{jsx as cl}from"react/jsx-runtime";import{jsx as Hs}from"react/jsx-runtime";var Ks="k-no-data",Ce=e=>Hs("span",{className:i(Ks,e.className),children:e.children});import{jsx as ce,jsxs as Wt}from"react/jsx-runtime";var lt="k-list",Rs=[],Bs={size:[n.small,n.medium,n.large]},Qt={size:n.medium},z=e=>{let{size:t=Qt.size,virtualization:o,children:a,optionLabel:r,customValue:l,screenReaders:p,...f}=e,m,c,h,L,g=[];return a?a.map((b,T)=>{b.type===P?(b.props.root===!0?(m=b.props.label,b.props.children.map((I,v)=>{g.push(ce(N,{...I.props},`optChild-${v}-${new Date().getTime()}`))})):b.props.children.forEach((I,v)=>{let k="";v===0&&(k=b.props.label),g.push(ce(N,{className:v===0?"k-first":"",...I.props,groupLabel:k},`groupLabel-${v}-${new Date().getTime()}`))}),c=ce(P,{label:m,virtualization:o,children:g})):b.type===N&&(g.push(ce(N,{...b.props},`${b.type}-${T}`)),h=ce(ue,{virtualization:o,children:g}),p&&(L=Wt(Ce,{className:"k-sr-only",children:[g.length," items found."]})))}):L=ce(Ce,{children:"No data found."}),Wt("div",{...f,className:i(e.className,lt,S(lt,{size:t}),{"k-virtual-list":o}),children:[r,l,c,h,L]})};z.states=Rs;z.options=Bs;z.className=lt;z.defaultOptions=Qt;import{jsx as j,jsxs as Vs}from"react/jsx-runtime";var pt="k-list",Gs=[],Ds={size:[n.small,n.medium,n.large]},Yt={size:n.medium},ee=e=>{let{size:t=Yt.size,virtualization:o,children:a,...r}=e,l,p,f,m=[];return a?a.map((c,h)=>{c.type===P?(c.props.root===!0?(l=c.props.label,c.props.children.map((L,g)=>{m.push(j(N,{...L.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(j(Zt,{...c.props,children:c.props.label},`listChild-${h}`)),c.props.children.map((L,g)=>{m.push(j(N,{...L.props},`fwOptChild-${g}-${new Date().getTime()}`))})),p=j(P,{label:l,virtualization:o,children:m})):c.type===N&&(m.push(j(N,{...c.props},`${c.type}-${h}`)),f=j(ue,{virtualization:o,children:m}))}):f=j(Ce,{children:"No data found."}),Vs("div",{...r,className:i(e.className,pt,S(pt,{size:t}),{"k-virtual-list":o}),children:[p,f]})};ee.states=Gs;ee.options=Ds;ee.className=pt;ee.defaultOptions=Yt;import{jsx as jt}from"react/jsx-runtime";var Be="k-checkbox",$s=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],Xs={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full]},mt={size:n.medium,rounded:u.medium},W=e=>{let{id:t,checked:o,indeterminate:a,hover:r,focus:l,disabled:p,invalid:f,valid:m,required:c,size:h=mt.size,rounded:L=mt.rounded,...g}=e;return jt("span",{className:"k-checkbox-wrap",children:jt("input",{...g,id:t,type:"checkbox",defaultChecked:o,required:c,className:i(e.className,Be,S(Be,{size:h,rounded:L}),C(Be,{hover:r,focus:l,disabled:p,invalid:f,valid:m,indeterminate:a,checked:o}))})})};W.states=$s;W.options=Xs;W.className=Be;W.defaultOptions=mt;import{jsx as Js}from"react/jsx-runtime";var eo="k-checkbox-list",_s=[],Fs={},to={layout:"vertical"},fe=e=>{let{layout:t=to.layout,...o}=e;return Js("ul",{...o,className:i(e.className,eo,{[`k-list-${t}`]:t}),children:e.children})};fe.states=_s;fe.options=Fs;fe.className=eo;fe.defaultOptions=to;import{jsx as Qs}from"react/jsx-runtime";var oo="k-checkbox-list-item",qs=[],Us={},Ws={},xe=e=>{let{...t}=e;return Qs("li",{...t,className:i(e.className,oo),children:e.children})};xe.states=qs;xe.options=Us;xe.className=oo;xe.defaultOptions=Ws;import{Fragment as Zl,jsx as Yl,jsxs as jl}from"react/jsx-runtime";import{Fragment as ip,jsx as sp,jsxs as np}from"react/jsx-runtime";import{Fragment as mp,jsx as pp,jsxs as dp}from"react/jsx-runtime";import{Fragment as hp,jsx as xp,jsxs as Lp}from"react/jsx-runtime";import{jsx as vp}from"react/jsx-runtime";import{jsx as yp}from"react/jsx-runtime";import{jsx as Ge,jsxs as ei}from"react/jsx-runtime";var ct="k-list-item",Ys=[s.hover,s.focus,s.selected,s.disabled],Zs={},js={},N=e=>{let{text:t,groupLabel:o,group:a,showIcon:r,iconName:l,showCheckbox:p,checked:f,hover:m,focus:c,selected:h,disabled:L,...g}=e,b=t||e.children;return ei("li",{...g,className:i(e.className,a?"k-list-group-item":ct,C(ct,{hover:m,focus:c,disabled:L,selected:h})),children:[p&&Ge(W,{checked:f}),r&&Ge(M,{icon:l}),Ge("span",{className:"k-list-item-text",children:b}),o&&o!==""&&Ge("div",{className:"k-list-item-group-label",children:o})]})};N.states=Ys;N.options=Zs;N.className=ct;N.defaultOptions=js;import{jsx as ut,jsxs as oi}from"react/jsx-runtime";var ti="k-list-content",ue=e=>{let{virtualization:t,...o}=e;return oi("div",{...o,className:i(ti,e.className),children:[ut("ul",{className:i("k-list-ul"),children:e.children}),t&&ut("div",{className:"k-height-container",children:ut("div",{})})]})};import{jsx as so}from"react/jsx-runtime";var si="k-list-group-sticky-header",io=e=>so("div",{className:i(si,e.className),children:so("div",{className:"k-list-header-text",children:e.children})});import{Fragment as ii,jsx as no,jsxs as ni}from"react/jsx-runtime";var P=e=>{let{virtualization:t,label:o}=e;return ni(ii,{children:[o&&no(io,{children:o}),e.children&&no(ue,{virtualization:t,children:e.children})]})};import{jsx as ao}from"react/jsx-runtime";var ai="k-list-group-item",Zt=e=>ao("li",{className:i(ai,e.className),children:ao("span",{className:"k-list-item-text",children:e.children})});import{jsx as mi}from"react/jsx-runtime";var ft="k-list-optionlabel",ri=[s.hover,s.focus,s.selected,s.disabled],li={},pi={},De=e=>{let{text:t,hover:o,focus:a,selected:r,disabled:l,...p}=e;return mi("div",{...p,className:i(ft,C(ft,{hover:o,focus:a,selected:r,disabled:l})),children:t})};De.states=ri;De.options=li;De.className=ft;De.defaultOptions=pi;import{jsx as fi}from"react/jsx-runtime";var xt="k-list-custom-value",di=[s.hover,s.focus,s.selected,s.disabled],ci={},ui={},Ve=e=>{let{text:t,hover:o,focus:a,selected:r,disabled:l,...p}=e;return fi("div",{...p,className:i(xt,C(xt,{hover:o,focus:a,selected:r,disabled:l})),children:t})};Ve.states=di;Ve.options=ci;Ve.className=xt;Ve.defaultOptions=ui;import{jsx as lm}from"react/jsx-runtime";import{jsx as cm}from"react/jsx-runtime";import{jsx as hm,jsxs as Lm}from"react/jsx-runtime";import{jsx as vm,jsxs as Sm}from"react/jsx-runtime";import{jsx as Mm}from"react/jsx-runtime";import{jsx as zm,jsxs as Pm}from"react/jsx-runtime";import{jsx as Km,jsxs as Hm}from"react/jsx-runtime";import{Fragment as Li,jsx as O,jsxs as ht}from"react/jsx-runtime";var ro="k-dropdownlist",xi=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],hi={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},he={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:u.medium,fillMode:x.solid},te=e=>{let{size:t=he.size,rounded:o=he.rounded,fillMode:a=he.fillMode,arrowIconName:r=he.arrowIconName,showValue:l=he.showValue,valueIconName:p,prefix:f,suffix:m,value:c,placeholder:h,hover:L,focus:g,valid:b,invalid:T,required:I,loading:v,disabled:k,readonly:K,popup:G,opened:R,adaptive:xo,adaptiveSettings:ho,adaptiveTitle:Lo,adaptiveSubtitle:bo,adaptiveFilter:No,...go}=e;return ht(Li,{children:[ht(ie,{...go,size:t,rounded:o,fillMode:a,hover:L,focus:g,valid:b,invalid:T,required:I,loading:v,disabled:k,readonly:K,className:i(e.className,ro,{"k-icon-picker":!l&&p}),children:[O(ne,{children:f}),O(ke,{placeholder:h,value:c,showValue:l,valueIconName:p}),O(H,{valid:b,invalid:T,loading:v,disabled:k}),O(B,{loading:v,disabled:k}),O(ae,{children:m}),O(y,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),R&&G&&O(le,{className:"k-list-container k-dropdownlist-popup",children:G}),xo&&O(Z,{adaptive:!0,...ho,header:O(U,{actionsEnd:O(y,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:No,inputValue:c,inputPlaceholder:h,title:Lo,subtitle:bo}),children:O("div",{className:"k-list-container",children:ht(z,{size:"large",children:[O(N,{text:"List item"}),O(N,{text:"List item"}),O(N,{text:"List item"})]})})})]})};te.states=xi;te.options=hi;te.className=ro;te.defaultOptions=he;import{jsx as cd}from"react/jsx-runtime";import{jsx as Ld,jsxs as bd}from"react/jsx-runtime";import{Fragment as Md,jsx as kd,jsxs as yd}from"react/jsx-runtime";import{jsx as zd}from"react/jsx-runtime";import{jsx as Kd,jsxs as Hd}from"react/jsx-runtime";import{jsx as Vd,jsxs as $d}from"react/jsx-runtime";import{Fragment as Qd,jsx as Ud,jsxs as Wd}from"react/jsx-runtime";import{Fragment as ic,jsx as oc,jsxs as sc}from"react/jsx-runtime";import{jsx as lo,jsxs as gi}from"react/jsx-runtime";var po="k-spin-button",bi=[],Ni={size:[n.small,n.medium,n.large],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},Lt={size:n.medium,fillMode:x.solid},Le=e=>{let{size:t=Lt.size,fillMode:o=Lt.fillMode,...a}=e;return gi("span",{...a,className:i(po,e.className),children:[lo(y,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),lo(y,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Le.states=bi;Le.options=Ni;Le.className=po;Le.defaultOptions=Lt;import{Fragment as mo,jsx as X,jsxs as bt}from"react/jsx-runtime";var co="k-numerictextbox",vi=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Si={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},se={showSpinButton:!0,showClearButton:!0,size:A.defaultOptions.size,rounded:A.defaultOptions.rounded,fillMode:A.defaultOptions.fillMode,separators:!0},be=e=>{let{size:t=se.size,rounded:o=se.rounded,fillMode:a=se.fillMode,separators:r=se.separators,showClearButton:l=se.showClearButton,showSpinButton:p=se.showSpinButton,prefix:f,suffix:m,value:c,placeholder:h,hover:L,focus:g,valid:b,invalid:T,required:I,loading:v,disabled:k,readonly:K,...G}=e;return bt(A,{...G,size:t,rounded:o,fillMode:a,hover:L,focus:g,valid:b,invalid:T,required:I,loading:v,disabled:k,readonly:K,className:i(e.className,co),children:[f&&bt(mo,{children:[X(ne,{children:f}),r&&X(re,{})]}),X(V,{placeholder:h,value:c}),X(H,{valid:b,invalid:T,loading:v,disabled:k}),X(B,{loading:v,disabled:k}),l&&X(D,{loading:v,disabled:k,readonly:K,value:c}),m&&bt(mo,{children:[r&&X(re,{}),X(ae,{children:m})]}),p&&X(Le,{className:"k-input-spinner",size:t,fillMode:a})]})};be.states=vi;be.options=Si;be.className=co;be.defaultOptions=se;import{jsx as Tc}from"react/jsx-runtime";import{Fragment as Kc,jsx as wc}from"react/jsx-runtime";import{Fragment as $c,jsx as Vc}from"react/jsx-runtime";import{Fragment as fo,jsx as E,jsxs as Ne}from"react/jsx-runtime";var $e="k-pager",Ii=[s.focus,s.disabled],ki={size:[n.small,n.medium,n.large]},w={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},_=e=>{let{responsive:t=w.responsive,size:o=w.size,pagerSizeInfo:a=w.pagerSizeInfo,pageTitleInfo:r=w.pageTitleInfo,maxPagesInfo:l=w.maxPagesInfo,itemsPerPage:p=w.itemsPerPage,maxPages:f=w.maxPages,currentPage:m=w.currentPage,previousNext:c=w.previousNext,type:h=w.type,pageSizes:L=w.pageSizes,refresh:g=w.refresh,info:b=w.info,focus:T,disabled:I,dir:v,...k}=e,K=[],G=[];for(let R=1;R<=f;R++)K.push(E(y,{selected:R===m,fillMode:"flat",themeColor:"primary",size:o,rounded:null,children:R})),G.push(E("option",{selected:R===m,children:R}));return Ne("div",{dir:v,...k,className:i(e.className,$e,S($e,{size:o}),C($e,{focus:T,disabled:I}),{"k-pager-responsive":t}),children:[Ne("div",{className:i("k-pager-numbers-wrap"),children:[c&&Ne(fo,{children:[E(y,{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"}),E(y,{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"&&E("div",{className:i("k-pager-numbers"),children:K}),h==="input"&&Ne("span",{className:i("k-pager-input"),children:[r&&E("span",{children:"Page"}),E(be,{value:`${m}`,size:o,showSpinButton:!1,showClearButton:!1}),E("span",{children:l&&`of ${f}`})]}),c&&Ne(fo,{children:[E(y,{className:i("k-pager-nav"),disabled:m===f&&!I,fillMode:"flat",size:o,rounded:null,icon:v==="rtl"?"caret-alt-left":"caret-alt-right"}),E(y,{className:i("k-pager-nav","k-pager-last"),disabled:m===f&&!I,fillMode:"flat",size:o,rounded:null,icon:v==="rtl"?"caret-alt-to-left":"caret-alt-to-right"})]})]}),L&&Ne("span",{className:i("k-pager-sizes"),children:[E(te,{value:`${p}`,size:o}),a&&E("span",{children:"items per page"})]}),g&&E(y,{className:i("k-pager-refresh"),fillMode:"flat",size:o,rounded:null,icon:"arrow-rotate-cw"}),b&&E("span",{className:i("k-pager-info"),children:b})]})};_.states=Ii;_.options=ki;_.className=$e;_.defaultOptions=w;import{jsx as su}from"react/jsx-runtime";import{jsx as ru}from"react/jsx-runtime";import{jsx as du}from"react/jsx-runtime";import{jsx as Mi}from"react/jsx-runtime";var yi="k-grid-pager",vu=e=>Mi(_,{...e,className:i(e.className,yi),children:e.children});export{vu as GridPager};