UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 75.7 kB
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...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 I=(e,t)=>s({[`${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"}),S=(e,t)=>s({"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 r={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},x={small:"small",medium:"medium",large:"large",full:"full"},f={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},h={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},a={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 cn,jsx as za}from"react/jsx-runtime";var So="k-icon k-font-icon",rn=[],ln={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info,h.light,h.dark]},pn={},St=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:l,...p}=e;return n?za("span",{...p,className:s(e.className,So,I(So,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):za(cn,{})};St.states=rn;St.options=ln;St.className=So;St.defaultOptions=pn;var wa=St;import{Fragment as un,jsx as Xt}from"react/jsx-runtime";var Lo="k-icon k-svg-icon",dn=[],mn={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info,h.light,h.dark]},Ea={viewBox:"0 0 24 24"},Lt=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:l=Ea.viewBox,icon:p,...m}=e;if(!p)return Xt(un,{});p==="none"&&{...m,className:s(e.className,Lo,"k-none")};let u=typeof p=="object"&&p.name&&p.name;return Xt("span",{...m,className:s(e.className,Lo,I("k-icon",{size:t}),{[`k-svg-i-${u}`]:u,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:Xt("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})})};Lt.states=dn;Lt.options=mn;Lt.className=Lo;Lt.defaultOptions=Ea;var Mo=Lt;import*as Oa from"@progress/kendo-svg-icons";import{Fragment as Ka,jsx as Mt}from"react/jsx-runtime";var fn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),bn=[],hn={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info,h.light,h.dark]},Io={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:n,type:i=Io.type,rotate:l,flip:p,viewBox:m=Io.viewBox,...u}=e;if(!n)return Mt(Ka,{});if(i==="svg"){if(n==="none")return Mt(Mo,{...u,icon:n,size:t});let b=fn(`${n}-icon`);return Oa[b]?Mt(Mo,{...u,icon:Oa[b],size:t,themeColor:o,rotate:l,flip:p,viewBox:m}):Mt(Ka,{})}return Mt(wa,{...u,icon:n,size:t,themeColor:o,rotate:l,flip:p})};M.states=bn;M.options=hn;M.defaultOptions=Io;import{Fragment as kn,jsx as It,jsxs as Ra}from"react/jsx-runtime";var Jt="k-button",xn=[a.hover,a.focus,a.active,a.selected,a.disabled],Nn={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info,h.light,h.dark,h.inverse]},De={size:r.medium,rounded:x.medium,fillMode:f.solid,themeColor:h.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=De.size,rounded:o=De.rounded,fillMode:n=De.fillMode,themeColor:i=De.themeColor,showArrow:l=De.showArrow,arrowIconName:p=De.arrowIconName,hover:m,focus:u,active:b,selected:N,disabled:v,icon:d,text:k,iconClassName:g,...L}=e,C=d!==void 0,P=e.children!==void 0;return Ra("button",{...L,className:s(e.className,Jt,I(Jt,{size:t,rounded:o,fillMode:n,themeColor:i}),S(Jt,{hover:m,focus:u,active:b,disabled:v,selected:N}),{"k-icon-button":!k&&!P&&C}),children:[d&&It(M,{className:s(g,"k-button-icon"),icon:d}),k?Ra(kn,{children:[k&&It("span",{className:"k-button-text",children:k}),e.children]}):e.children&&It("span",{className:"k-button-text",children:e.children}),l&&It("span",{className:"k-menu-button-arrow k-button-arrow",children:It(M,{icon:p})})]})};c.states=xn;c.options=Nn;c.className=Jt;c.defaultOptions=De;import{jsx as gn}from"react/jsx-runtime";var qt=e=>gn(c,{icon:"folder",...e,children:void 0});import{jsx as vn}from"react/jsx-runtime";var yo=e=>vn(c,{icon:"folder",children:"Button",...e});import{jsx as Ap}from"react/jsx-runtime";import{jsx as Mn}from"react/jsx-runtime";var yt="k-button-group",Sn=[a.disabled],Ln={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Ha={fillMode:f.solid},z=e=>{let{fillMode:t=Ha.fillMode,disabled:o,stretched:n,...i}=e;return Mn("div",{...i,className:s(e.className,yt,I(yt,{fillMode:t}),S(yt,{disabled:o}),{[`${yt}-stretched`]:n}),children:e.children})};z.states=Sn;z.options=Ln;z.className=yt;z.defaultOptions=Ha;import{Fragment as Vp,jsx as $p,jsxs as _p}from"react/jsx-runtime";import{Fragment as Wp,jsx as qp,jsxs as Zp}from"react/jsx-runtime";import{Fragment as oc,jsx as tc,jsxs as ac}from"react/jsx-runtime";import{Fragment as pc,jsx as lc,jsxs as cc}from"react/jsx-runtime";import{jsx as Cn}from"react/jsx-runtime";var Wt="k-input",In=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],yn={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},Zt={size:r.medium,rounded:r.medium,fillMode:f.solid},E=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:m,size:u=Zt.size,rounded:b=Zt.rounded,fillMode:N=Zt.fillMode,...v}=e;return Cn("span",{...v,className:s(e.className,Wt,I(Wt,{size:u,rounded:b,fillMode:N}),S(Wt,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:m}))})};E.states=In;E.options=yn;E.className=Wt;E.defaultOptions=Zt;import{jsx as Tn}from"react/jsx-runtime";var Qt="k-picker",An=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Pn={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},Yt={size:r.medium,rounded:x.medium,fillMode:f.solid},re=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:m,size:u=Yt.size,rounded:b=Yt.rounded,fillMode:N=Yt.fillMode,...v}=e;return Tn("span",{...v,className:s(e.className,Qt,I(Qt,{size:u,rounded:b,fillMode:N}),S(Qt,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:m})),children:e.children})};re.states=An;re.options=Pn;re.className=Qt;re.defaultOptions=Yt;import{Fragment as wn,jsx as Co}from"react/jsx-runtime";var Ga="k-clear-value",Bn=[a.disabled,a.loading,a.readonly],zn={},ie=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?Co(wn,{}):Co("span",{className:s(e.className,Ga),children:Co(M,{icon:"x"})})};ie.states=Bn;ie.options=zn;ie.className=Ga;import{jsx as Kn}from"react/jsx-runtime";var Ao="k-input-inner",En=[],On={},jt={type:"text",autocomplete:"off",value:"",placeholder:""},le=e=>{let{value:t=jt.value,type:o=jt.type,placeholder:n=jt.placeholder,autocomplete:i=jt.autocomplete,...l}=e;return Kn("input",{...l,type:o,className:s(e.className,Ao,I(Ao,e)),placeholder:n,autoComplete:i,defaultValue:t})};le.states=En;le.options=On;le.className=Ao;import{jsx as Da,jsxs as Gn}from"react/jsx-runtime";var Po="k-input-inner",Rn=[],Hn={},$e=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:l,...p}=e;return Gn("span",{...p,className:s(e.className,Po,I(Po,e)),children:[i,!i&&l&&Da(M,{className:"k-input-value-icon",icon:l}),n&&!t&&o,n&&t&&Da("span",{className:"k-input-value-text",children:t})]})};$e.states=Rn;$e.options=Hn;$e.className=Po;import{jsx as Vn}from"react/jsx-runtime";var To="k-input-inner",Dn=[],$n={},$a={value:"",placeholder:""},Bo=e=>{let{value:t=$a.value,placeholder:o=$a.placeholder,rows:n,...i}=e;return Vn("textarea",{...i,className:s(e.className,To,I(To,e)),placeholder:o,rows:n,defaultValue:t})};Bo.states=Dn;Bo.options=$n;Bo.className=To;import{Fragment as Fn,jsx as Va}from"react/jsx-runtime";var _a="k-input-loading-icon",_n=[a.disabled,a.loading],Y=e=>{let{disabled:t,loading:o}=e;return t||!o?Va(Fn,{}):Va("span",{className:s(e.className,_a,"k-icon k-i-loading")})};Y.states=_n;Y.className=_a;import{Fragment as Jn,jsx as Fa}from"react/jsx-runtime";var Ua="k-input-validation-icon",Un=[a.valid,a.invalid,a.disabled,a.loading],Xn={},Q=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,l=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?Fa(Jn,{}):Fa(M,{className:s(Ua),icon:l})};Q.states=Un;Q.options=Xn;Q.className=Ua;import{Fragment as Zn,jsx as Xa}from"react/jsx-runtime";var qn="k-input-prefix",Wn={direction:"horizontal"},de=e=>{let{direction:t=Wn.direction,...o}=e;return e.children?Xa("span",{...o,className:s(qn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Xa(Zn,{})};import{Fragment as jn,jsx as Ja}from"react/jsx-runtime";var Qn="k-input-suffix",Yn={direction:"horizontal"},me=e=>{let{direction:t=Yn.direction,...o}=e;return e.children?Ja("span",{...o,className:s(Qn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ja(jn,{})};import{jsx as jc}from"react/jsx-runtime";import{jsx as ad}from"react/jsx-runtime";import{jsx as tr}from"react/jsx-runtime";var qa="k-input-separator",er={direction:"vertical"},Ne=e=>{let{direction:t=er.direction,...o}=e;return tr("span",{...o,className:s(qa,e.className,{[`${qa}-${t}`]:t})})};import{jsx as Wa}from"react/jsx-runtime";var Za="k-animation-container",or=[],ar={},Qa={positionMode:"absolute"},Pe=e=>{let{positionMode:t=Qa.positionMode,animationStyle:o,offset:n,...i}=e;return Wa("div",{...i,style:{...n,...e.style},className:s(e.className,Za,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Wa("div",{className:"k-child-animation-container",style:o,children:e.children})})};Pe.states=or;Pe.options=ar;Pe.className=Za;Pe.defaultOptions=Qa;import{jsx as Ya}from"react/jsx-runtime";var ja="k-popup",sr=[],nr={},es={positionMode:"absolute"},V=e=>{let{offset:t,positionMode:o=es.positionMode,animationStyle:n,...i}=e;return Ya(Pe,{positionMode:o,offset:t,animationStyle:n,children:Ya("div",{...i,className:s(e.className,ja),children:e.children})})};V.states=sr;V.options=nr;V.className=ja;V.defaultOptions=es;import{jsx as lr}from"react/jsx-runtime";var eo="k-actions",rr=[],ir={},zo={alignment:"start",orientation:"horizontal"},ke=e=>{let{alignment:t=zo.alignment,orientation:o=zo.orientation,...n}=e;return lr("div",{...n,className:s(eo,{[`${eo}-${t}`]:t,[`${eo}-${o}`]:o},e.className),children:e.children})};ke.states=rr;ke.options=ir;ke.className=eo;ke.defaultOptions=zo;var ts=ke;import{jsx as cr}from"react/jsx-runtime";var pr="k-actionsheet-footer",os={alignment:"stretched",orientation:"horizontal"},Ct=e=>{let{alignment:t=os.alignment,orientation:o=os.orientation,template:n,as:i=n?"div":ke,...l}=e;return cr(i,{...l,...!n&&{alignment:t,orientation:o},className:s(e.className,pr),children:e.children})};import{jsx as At,jsxs as ur}from"react/jsx-runtime";var as="k-searchbox",dr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],mr={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},wo={showIcon:!0,icon:"search",size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},ge=e=>{let{value:t,placeholder:o,size:n,rounded:i,fillMode:l,hover:p,focus:m,valid:u,invalid:b,required:N,loading:v,disabled:d,showIcon:k=wo.showIcon,icon:g=wo.icon,...L}=e;return ur(E,{...L,size:n,rounded:i,fillMode:l,hover:p,focus:m,valid:u,invalid:b,required:N,loading:v,disabled:d,className:s(e.className,as),children:[k&&At(M,{className:"k-input-icon",icon:g}),At(le,{placeholder:o,value:t}),At(Y,{...e}),At(Q,{...e}),At(ie,{...e})]})};ge.states=dr;ge.options=mr;ge.className=as;ge.defaultOptions=wo;import{jsx as Zd}from"react/jsx-runtime";import{Fragment as ss,jsx as Te,jsxs as Eo}from"react/jsx-runtime";var ns="k-textbox",fr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],br={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},Ve={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},ue=e=>{let{size:t=Ve.size,rounded:o=Ve.rounded,fillMode:n=Ve.fillMode,separators:i=Ve.separators,showClearButton:l=Ve.showClearButton,showValidationIcon:p=Ve.showValidationIcon,prefix:m,suffix:u,type:b,value:N,placeholder:v,hover:d,focus:k,valid:g,invalid:L,required:C,loading:P,disabled:w,readonly:$,...U}=e;return Eo(E,{...U,size:t,rounded:o,fillMode:n,hover:d,focus:k,valid:g,invalid:L,required:C,loading:P,disabled:w,readonly:$,className:s(e.className,ns),children:[m&&Eo(ss,{children:[Te(de,{children:m}),i&&Te(Ne,{})]}),Te(le,{placeholder:v,value:N,type:b}),p&&Te(Q,{valid:g,invalid:L,loading:P,disabled:w}),Te(Y,{loading:P,disabled:w}),l&&Te(ie,{loading:P,disabled:w,readonly:$,value:N}),u&&Eo(ss,{children:[i&&Te(Ne,{}),Te(me,{children:u})]})]})};ue.states=fr;ue.options=br;ue.className=ns;ue.defaultOptions=Ve;import{jsx as im}from"react/jsx-runtime";import{Fragment as um,jsx as mm}from"react/jsx-runtime";import{Fragment as gm,jsx as km}from"react/jsx-runtime";import{jsx as Be,jsxs as Oo}from"react/jsx-runtime";var is="k-actionsheet-titlebar",hr={},j=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:i,filter:l,input:p,inputValue:m,inputPlaceholder:u,adaptive:b,children:N,...v}=e;return Oo("div",{...v,className:s(e.className,is),children:[Oo("div",{className:"k-actionsheet-titlebar-group",children:[n&&Be("div",{className:"k-actionsheet-actions",children:n}),!N&&Oo("div",{className:"k-actionsheet-title",children:[t&&Be("div",{className:"k-text-center",children:t}),o&&Be("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&Be("div",{className:"k-actionsheet-title",children:N}),i&&Be("div",{className:"k-actionsheet-actions",children:i})]}),(p||l)&&Be("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?Be(ue,{value:m,placeholder:u,size:b?"large":"medium"}):Be(ge,{placeholder:"Filter",size:b?"large":"medium"})})]})};j.className=is;j.defaultOptions=hr;import{jsx as Ko,jsxs as gr}from"react/jsx-runtime";var Ro="k-actionsheet-view",xr=[],Nr={},kr={},tt=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:l,...p}=e,m=i?.type===j&&Ko(j,{adaptive:t,...i?.props}),u=l?.type===Ct&&Ko(Ct,{...l?.props});return gr("div",{...p,className:s(e.className,Ro,{[`${Ro}-animated`]:o}),children:[m,Ko("div",{className:"k-actionsheet-content",children:n}),u]})};tt.states=xr;tt.options=Nr;tt.className=Ro;tt.defaultOptions=kr;import{jsx as to,jsxs as Lr}from"react/jsx-runtime";var ls="k-actionsheet",vr=[],Sr={},Pt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},pe=e=>{let{side:t=Pt.side,fullscreen:o=Pt.fullscreen,adaptive:n=Pt.adaptive,overlay:i=Pt.overlay,template:l,children:p,header:m,footer:u,...b}=e;return Lr("div",{className:"k-actionsheet-container",children:[i&&to("div",{className:"k-overlay"}),to(Pe,{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:to("div",{...b,className:s(e.className,ls,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:l||to(tt,{header:m,footer:u,adaptive:n,...e,children:p})})})]})};pe.states=vr;pe.options=Sr;pe.className=ls;pe.defaultOptions=Pt;import{jsx as Fm}from"react/jsx-runtime";import{Fragment as Ir,jsx as Tt,jsxs as Ho}from"react/jsx-runtime";var Go="k-actionsheet-item",Mr=[a.hover,a.focus,a.selected,a.disabled],Do=e=>{let{iconName:t,text:o,description:n,hover:i,focus:l,selected:p,disabled:m,...u}=e;return Ho("span",{...u,className:s(e.className,Go,S(Go,{hover:i,focus:l,selected:p,disabled:m})),children:[!e.children&&Tt(Ir,{children:Ho("span",{className:"k-actionsheet-action",children:[t&&Tt("span",{className:"k-icon-wrap",children:Tt(M,{className:"k-actionsheet-item-icon",icon:t})}),Ho("span",{className:"k-actionsheet-item-text",children:[o&&Tt("span",{className:"k-actionsheet-item-title",children:o}),n&&Tt("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Do.states=Mr;Do.className=Go;import{jsx as jm,jsxs as eu}from"react/jsx-runtime";import{jsx as su}from"react/jsx-runtime";import{jsx as lu}from"react/jsx-runtime";import{jsx as mu}from"react/jsx-runtime";import{jsx as Cr}from"react/jsx-runtime";var yr="k-no-data",Bt=e=>Cr("span",{className:s(yr,e.className),children:e.children});import{jsx as ot,jsxs as cs}from"react/jsx-runtime";var $o="k-list",Ar=[],Pr={size:[r.small,r.medium,r.large]},ds={size:r.medium},O=e=>{let{size:t=ds.size,virtualization:o,children:n,optionLabel:i,customValue:l,screenReaders:p,...m}=e,u,b,N,v,d=[];return n?n.map((k,g)=>{k.type===_?(k.props.root===!0?(u=k.props.label,k.props.children.map((L,C)=>{d.push(ot(A,{...L.props},`optChild-${C}-${new Date().getTime()}`))})):k.props.children.forEach((L,C)=>{let P="";C===0&&(P=k.props.label),d.push(ot(A,{className:C===0?"k-first":"",...L.props,groupLabel:P},`groupLabel-${C}-${new Date().getTime()}`))}),b=ot(_,{label:u,virtualization:o,children:d})):k.type===A&&(d.push(ot(A,{...k.props},`${k.type}-${g}`)),N=ot(at,{virtualization:o,children:d}),p&&(v=cs(Bt,{className:"k-sr-only",children:[d.length," items found."]})))}):v=ot(Bt,{children:"No data found."}),cs("div",{...m,className:s(e.className,$o,I($o,{size:t}),{"k-virtual-list":o}),children:[i,l,b,N,v]})};O.states=Ar;O.options=Pr;O.className=$o;O.defaultOptions=ds;import{jsx as _e,jsxs as zr}from"react/jsx-runtime";var Vo="k-list",Tr=[],Br={size:[r.small,r.medium,r.large]},ms={size:r.medium},Fe=e=>{let{size:t=ms.size,virtualization:o,children:n,...i}=e,l,p,m,u=[];return n?n.map((b,N)=>{b.type===_?(b.props.root===!0?(l=b.props.label,b.props.children.map((v,d)=>{u.push(_e(A,{...v.props},`optChild-${d}-${new Date().getTime()}`))})):(u.push(_e(us,{...b.props,children:b.props.label},`listChild-${N}`)),b.props.children.map((v,d)=>{u.push(_e(A,{...v.props},`fwOptChild-${d}-${new Date().getTime()}`))})),p=_e(_,{label:l,virtualization:o,children:u})):b.type===A&&(u.push(_e(A,{...b.props},`${b.type}-${N}`)),m=_e(at,{virtualization:o,children:u}))}):m=_e(Bt,{children:"No data found."}),zr("div",{...i,className:s(e.className,Vo,I(Vo,{size:t}),{"k-virtual-list":o}),children:[p,m]})};Fe.states=Tr;Fe.options=Br;Fe.className=Vo;Fe.defaultOptions=ms;import{jsx as fs}from"react/jsx-runtime";var oo="k-checkbox",wr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Er={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full]},_o={size:r.medium,rounded:x.medium},ze=e=>{let{id:t,checked:o,indeterminate:n,hover:i,focus:l,disabled:p,invalid:m,valid:u,required:b,size:N=_o.size,rounded:v=_o.rounded,...d}=e;return fs("span",{className:"k-checkbox-wrap",children:fs("input",{...d,id:t,type:"checkbox",defaultChecked:o,required:b,className:s(e.className,oo,I(oo,{size:N,rounded:v}),S(oo,{hover:i,focus:l,disabled:p,invalid:m,valid:u,indeterminate:n,checked:o}))})})};ze.states=wr;ze.options=Er;ze.className=oo;ze.defaultOptions=_o;import{jsx as Rr}from"react/jsx-runtime";var bs="k-checkbox-list",Or=[],Kr={},hs={layout:"vertical"},st=e=>{let{layout:t=hs.layout,...o}=e;return Rr("ul",{...o,className:s(e.className,bs,{[`k-list-${t}`]:t}),children:e.children})};st.states=Or;st.options=Kr;st.className=bs;st.defaultOptions=hs;import{jsx as $r}from"react/jsx-runtime";var xs="k-checkbox-list-item",Hr=[],Gr={},Dr={},nt=e=>{let{...t}=e;return $r("li",{...t,className:s(e.className,xs),children:e.children})};nt.states=Hr;nt.options=Gr;nt.className=xs;nt.defaultOptions=Dr;import{Fragment as Yu,jsx as Qu,jsxs as ju}from"react/jsx-runtime";import{Fragment as sf,jsx as af,jsxs as nf}from"react/jsx-runtime";import{Fragment as df,jsx as cf,jsxs as mf}from"react/jsx-runtime";import{Fragment as xf,jsx as hf,jsxs as Nf}from"react/jsx-runtime";import{jsx as Sf}from"react/jsx-runtime";import{jsx as yf}from"react/jsx-runtime";import{jsx as ao,jsxs as Ur}from"react/jsx-runtime";var Uo="k-list-item",Vr=[a.hover,a.focus,a.selected,a.disabled],_r={},Fr={},A=e=>{let{text:t,groupLabel:o,group:n,showIcon:i,iconName:l,showCheckbox:p,checked:m,hover:u,focus:b,selected:N,disabled:v,...d}=e,k=t||e.children;return Ur("li",{...d,className:s(e.className,n?"k-list-group-item":Uo,S(Uo,{hover:u,focus:b,disabled:v,selected:N})),children:[p&&ao(ze,{checked:m}),i&&ao(M,{icon:l}),ao("span",{className:"k-list-item-text",children:k}),o&&o!==""&&ao("div",{className:"k-list-item-group-label",children:o})]})};A.states=Vr;A.options=_r;A.className=Uo;A.defaultOptions=Fr;import{jsx as Xo,jsxs as Jr}from"react/jsx-runtime";var Xr="k-list-content",at=e=>{let{virtualization:t,...o}=e;return Jr("div",{...o,className:s(Xr,e.className),children:[Xo("ul",{className:s("k-list-ul"),children:e.children}),t&&Xo("div",{className:"k-height-container",children:Xo("div",{})})]})};import{jsx as Ns}from"react/jsx-runtime";var qr="k-list-group-sticky-header",ks=e=>Ns("div",{className:s(qr,e.className),children:Ns("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Wr,jsx as gs,jsxs as Zr}from"react/jsx-runtime";var _=e=>{let{virtualization:t,label:o}=e;return Zr(Wr,{children:[o&&gs(ks,{children:o}),e.children&&gs(at,{virtualization:t,children:e.children})]})};import{jsx as vs}from"react/jsx-runtime";var Qr="k-list-group-item",us=e=>vs("li",{className:s(Qr,e.className),children:vs("span",{className:"k-list-item-text",children:e.children})});import{jsx as ti}from"react/jsx-runtime";var Jo="k-list-optionlabel",Yr=[a.hover,a.focus,a.selected,a.disabled],jr={},ei={},so=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:l,...p}=e;return ti("div",{...p,className:s(Jo,S(Jo,{hover:o,focus:n,selected:i,disabled:l})),children:t})};so.states=Yr;so.options=jr;so.className=Jo;so.defaultOptions=ei;import{jsx as ni}from"react/jsx-runtime";var qo="k-list-custom-value",oi=[a.hover,a.focus,a.selected,a.disabled],ai={},si={},we=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:l,...p}=e;return ni("div",{...p,className:s(qo,S(qo,{hover:o,focus:n,selected:i,disabled:l})),children:t})};we.states=oi;we.options=ai;we.className=qo;we.defaultOptions=si;import{jsx as pb}from"react/jsx-runtime";import{jsx as ub}from"react/jsx-runtime";import{jsx as xb,jsxs as Nb}from"react/jsx-runtime";import{jsx as Sb,jsxs as Lb}from"react/jsx-runtime";import{jsx as Cb}from"react/jsx-runtime";import{jsx as Bb,jsxs as zb}from"react/jsx-runtime";import{jsx as Kb,jsxs as Rb}from"react/jsx-runtime";import{Fragment as Wo,jsx as D,jsxs as zt}from"react/jsx-runtime";var Ss="k-combobox",ri=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],ii={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},wt={size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},ee=e=>{let{size:t=wt.size,rounded:o=wt.rounded,fillMode:n=wt.fillMode,separators:i=wt.separators,prefix:l,suffix:p,value:m,placeholder:u,hover:b,focus:N,valid:v,invalid:d,required:k,loading:g,disabled:L,popup:C,opened:P,readonly:w,adaptive:$,adaptiveSettings:U,adaptiveTitle:gt,adaptiveSubtitle:vt,adaptiveCustomValue:go,...vo}=e;return zt(Wo,{children:[zt(E,{...vo,size:t,rounded:o,fillMode:n,hover:b,focus:N,valid:v,invalid:d,required:k,loading:g,disabled:L,readonly:w,className:s(e.className,Ss),children:[l&&zt(Wo,{children:[D(de,{children:l}),i&&D(Ne,{})]}),D(le,{placeholder:u,value:m}),D(Q,{valid:v,invalid:d,loading:g,disabled:L}),D(Y,{loading:g,disabled:L}),D(ie,{loading:g,disabled:L,readonly:w,value:m}),p&&zt(Wo,{children:[i&&D(Ne,{}),D(me,{children:p})]}),D(c,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:n})]}),P&&C&&D(V,{className:"k-list-container k-combobox-popup",children:C}),$&&D(pe,{adaptive:!0,...U,header:D(j,{actionsEnd:D(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:m,inputPlaceholder:u,title:gt,subtitle:vt}),children:D("div",{className:"k-list-container",children:zt(O,{customValue:go?D(we,{text:`Use "${m}"`}):void 0,size:"large",children:[D(A,{text:"List item"}),D(A,{text:"List item"}),D(A,{text:"List item"})]})})})]})};ee.states=ri;ee.options=ii;ee.className=Ss;ee.defaultOptions=wt;import{jsx as uh}from"react/jsx-runtime";import{jsx as Nh,jsxs as kh}from"react/jsx-runtime";import{jsx as Mh,jsxs as Ih}from"react/jsx-runtime";import{jsx as Th,jsxs as Bh}from"react/jsx-runtime";import{jsx as Oh}from"react/jsx-runtime";import{Fragment as $h,jsx as Dh}from"react/jsx-runtime";import{Fragment as Jh,jsx as Xh}from"react/jsx-runtime";import{jsx as Yh,jsxs as jh}from"react/jsx-runtime";import{Fragment as rx,jsx as sx,jsxs as nx}from"react/jsx-runtime";import{jsx as no,jsxs as ci}from"react/jsx-runtime";var Zo="k-external-dropzone",li=[a.disabled,a.hover],pi={},Qo={icon:"upload",hint:"Drag and drop files here to upload"},Ue=e=>{let{hover:t,disabled:o,icon:n=Qo.icon,hint:i=Qo.hint,note:l,...p}=e;return no("div",{...p,className:s(e.className,Zo,S(Zo,{disabled:o}),{"k-external-dropzone-hover":t}),children:ci("div",{className:"k-dropzone-inner",children:[n&&no(M,{icon:n,className:"k-dropzone-icon",size:"xxxlarge"}),i&&no("span",{className:"k-dropzone-hint",children:i}),l&&no("span",{className:"k-dropzone-note",children:l})]})})};Ue.states=li;Ue.options=pi;Ue.className=Zo;Ue.defaultOptions=Qo;import{jsx as di}from"react/jsx-runtime";var Ls=e=>di(Ue,{...e});import{jsx as Ax}from"react/jsx-runtime";import{Fragment as fi,jsx as Ms,jsxs as bi}from"react/jsx-runtime";var Is="k-menu-button",mi=[a.hover,a.focus,a.active,a.selected,a.disabled],ui={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info,h.light,h.dark,h.inverse]},Xe={size:r.medium,rounded:x.medium,fillMode:f.solid,themeColor:h.base,showArrow:!0,arrowIconName:"caret-alt-down"},H=e=>{let{size:t=Xe.size,rounded:o=Xe.rounded,fillMode:n=Xe.fillMode,themeColor:i=Xe.themeColor,hover:l,focus:p,active:m,selected:u,disabled:b,icon:N,text:v,showArrow:d=Xe.showArrow,arrowIconName:k=Xe.arrowIconName,popup:g,opened:L,...C}=e;return bi(fi,{children:[Ms(c,{...C,className:s(e.className,Is),text:v,size:t,rounded:o,fillMode:n,themeColor:i,hover:l,focus:p,active:m,selected:u,disabled:b,icon:N,showArrow:d,arrowIconName:k}),L&&g&&Ms(V,{className:"k-menu-popup",children:g})]})};H.states=mi;H.options=ui;H.className=Is;H.defaultOptions=Xe;import{jsx as $x}from"react/jsx-runtime";import{jsx as Ux}from"react/jsx-runtime";import{jsx as Wx}from"react/jsx-runtime";import{Fragment as Ni,jsx as rt,jsxs as ys}from"react/jsx-runtime";var jo="k-menu-item",hi=[a.hover,a.focus,a.active,a.selected,a.disabled],xi={},Cs={iconPosition:"before"},ve=e=>{let{hover:t,focus:o,active:n,selected:i,disabled:l,icon:p,text:m,first:u,last:b,showArrow:N,arrowIconName:v,iconPosition:d=Cs.iconPosition,dir:k,children:g,...L}=e,C=rt(Ni,{});g&&g.forEach(w=>{if(w.type==="MenuItemContent"){C.props.children.push(w);return}});let P=v;return P||(P=k==="rtl"?"caret-alt-left":"caret-alt-right"),ys("li",{...L,className:s(e.className,jo,"k-item",S(jo,{focus:o,disabled:l,hover:t,active:n,selected:i}),{"k-first":u,"k-last":b}),children:[ys("span",{className:s("k-link k-menu-link"),children:[p&&d==="before"&&rt(M,{className:"k-menu-link-icon",icon:p}),rt("span",{className:"k-menu-link-text",children:m}),p&&d==="after"&&rt(M,{className:"k-menu-link-icon",icon:p}),N&&rt("span",{className:"k-menu-expand-arrow",children:rt(M,{icon:P})})]}),C]})};ve.states=hi;ve.options=xi;ve.className=jo;ve.defaultOptions=Cs;import{Fragment as vi,jsx as it,jsxs as As}from"react/jsx-runtime";var ea="k-menu-item",ki=[a.hover,a.focus,a.active,a.selected,a.disabled],gi={},ta={dir:"ltr",iconPosition:"before"},fe=e=>{let{hover:t,focus:o,active:n,selected:i,disabled:l,icon:p,text:m,first:u,last:b,showArrow:N,arrowIconName:v,iconPosition:d=ta.iconPosition,dir:k=ta.dir,children:g,popup:L,...C}=e,P=it(vi,{});g&&g.forEach($=>{if($.type==="MenuListItemContent"){P.props.children.push($);return}});let w=v;return w||(w=k==="rtl"?"caret-alt-left":"caret-alt-right"),As("li",{...C,className:s(e.className,ea,"k-item",S(ea,{focus:o,disabled:l}),{"k-first":u,"k-last":b}),children:[As("span",{className:s("k-link k-menu-link",S("k-menu-link",{hover:t,active:n,selected:i,disabled:l})),children:[p&&d==="before"&&it(M,{className:"k-menu-link-icon",icon:p}),it("span",{className:"k-menu-link-text",children:m}),p&&d==="after"&&it(M,{className:"k-menu-link-icon",icon:p}),N&&it("span",{className:"k-menu-expand-arrow",children:it(M,{icon:w})})]}),P,L]})};fe.states=ki;fe.options=gi;fe.className=ea;fe.defaultOptions=ta;import{jsx as Ii}from"react/jsx-runtime";var Ps="k-menu-scroll-wrapper",Si=[],Li={},Mi={},Et=e=>{let{className:t,children:o,orientation:n,...i}=e;return Ii("div",{...i,className:s(t,Ps,{"k-menu-scroll-wrapper-vertical":n==="vertical"}),children:o})};Et.states=Si;Et.options=Li;Et.className=Ps;Et.defaultOptions=Mi;var Ts=Et;import{Fragment as oa,jsx as Je,jsxs as ro}from"react/jsx-runtime";var aa="k-menu",yi=[],Ci={},io={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},Se=e=>{let{children:t,orientation:o=io.orientation,header:n=io.header,scrollable:i,scrollButtonsPosition:l=io.scrollButtonsPosition,wrapperStyles:p,dir:m,popup:u,...b}=e,N={horizontal:{prev:m!=="rtl"?"left":"right",next:m!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},v=Je("ul",{dir:m,...b,className:s(e.className,"k-reset",aa,{[`${aa}-${o}`]:o,"k-header":n}),children:t});return ro(oa,{children:[i?ro(Ts,{orientation:o,style:p,dir:e.dir,children:[l==="start"&&ro(oa,{children:[Je(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${N[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Je(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${N[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),l==="around"&&Je(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${N[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),v,l==="end"&&ro(oa,{children:[Je(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${N[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Je(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${N[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),l==="around"&&Je(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${N[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}):v,u]})};Se.states=yi;Se.options=Ci;Se.className=aa;Se.defaultOptions=io;import{jsx as Ai}from"react/jsx-runtime";var sa="k-separator",Bs={orientation:"horizontal"},Ot=e=>{let{orientation:t=Bs.orientation,...o}=e;return Ai("li",{...o,className:s(e.className,"k-item",sa,{[`${sa}-${t}`]:t})})};Ot.className=sa;Ot.defaultOptions=Bs;import{Fragment as NN,jsx as kN}from"react/jsx-runtime";import{jsx as zs}from"react/jsx-runtime";import{createElement as Bi}from"react";var na="k-menu-group",Pi=[],Ti={size:[r.small,r.medium,r.large]},ra={size:r.medium,dir:"ltr"},qe=e=>{let{children:t,size:o=ra.size,dir:n=ra.dir,...i}=e,l=[];return t&&Array.isArray(t)&&t.map((p,m)=>{p.type===fe?l.push(Bi(fe,{...p.props,dir:n,key:m})):p.type===Ot?l.push(zs(Ot,{})):l.push(p)}),zs("ul",{...i,className:s(e.className,na,I(na,{size:o})),children:l})};qe.states=Pi;qe.options=Ti;qe.className=na;qe.defaultOptions=ra;import{Fragment as PN,jsx as AN,jsxs as TN}from"react/jsx-runtime";import{Fragment as RN,jsx as ON,jsxs as KN}from"react/jsx-runtime";import{Fragment as VN,jsx as $N,jsxs as _N}from"react/jsx-runtime";import{Fragment as qN,jsx as JN,jsxs as WN}from"react/jsx-runtime";import{Fragment as ek,jsx as jN,jsxs as tk}from"react/jsx-runtime";import{jsx as kk,jsxs as gk}from"react/jsx-runtime";import{Fragment as Ei,jsx as J,jsxs as ia}from"react/jsx-runtime";var ws="k-dropdownlist",zi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],wi={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},lt={showValue:!0,arrowIconName:"caret-alt-down",size:r.medium,rounded:x.medium,fillMode:f.solid},be=e=>{let{size:t=lt.size,rounded:o=lt.rounded,fillMode:n=lt.fillMode,arrowIconName:i=lt.arrowIconName,showValue:l=lt.showValue,valueIconName:p,prefix:m,suffix:u,value:b,placeholder:N,hover:v,focus:d,valid:k,invalid:g,required:L,loading:C,disabled:P,readonly:w,popup:$,opened:U,adaptive:gt,adaptiveSettings:vt,adaptiveTitle:go,adaptiveSubtitle:vo,adaptiveFilter:sn,...nn}=e;return ia(Ei,{children:[ia(re,{...nn,size:t,rounded:o,fillMode:n,hover:v,focus:d,valid:k,invalid:g,required:L,loading:C,disabled:P,readonly:w,className:s(e.className,ws,{"k-icon-picker":!l&&p}),children:[J(de,{children:m}),J($e,{placeholder:N,value:b,showValue:l,valueIconName:p}),J(Q,{valid:k,invalid:g,loading:C,disabled:P}),J(Y,{loading:C,disabled:P}),J(me,{children:u}),J(c,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),U&&$&&J(V,{className:"k-list-container k-dropdownlist-popup",children:$}),gt&&J(pe,{adaptive:!0,...vt,header:J(j,{actionsEnd:J(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:sn,inputValue:b,inputPlaceholder:N,title:go,subtitle:vo}),children:J("div",{className:"k-list-container",children:ia(O,{size:"large",children:[J(A,{text:"List item"}),J(A,{text:"List item"}),J(A,{text:"List item"})]})})})]})};be.states=zi;be.options=wi;be.className=ws;be.defaultOptions=lt;import{jsx as Gk}from"react/jsx-runtime";import{jsx as Fk,jsxs as Uk}from"react/jsx-runtime";import{Fragment as jk,jsx as Qk,jsxs as Yk}from"react/jsx-runtime";import{jsx as ag}from"react/jsx-runtime";import{jsx as lg,jsxs as pg}from"react/jsx-runtime";import{jsx as fg,jsxs as bg}from"react/jsx-runtime";import{Fragment as Lg,jsx as vg,jsxs as Sg}from"react/jsx-runtime";import{Fragment as Bg,jsx as Pg,jsxs as Tg}from"react/jsx-runtime";import{jsx as Es,jsxs as Ri}from"react/jsx-runtime";var Os="k-spin-button",Oi=[],Ki={size:[r.small,r.medium,r.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},la={size:r.medium,fillMode:f.solid},pt=e=>{let{size:t=la.size,fillMode:o=la.fillMode,...n}=e;return Ri("span",{...n,className:s(Os,e.className),children:[Es(c,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Es(c,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};pt.states=Oi;pt.options=Ki;pt.className=Os;pt.defaultOptions=la;import{Fragment as Ks,jsx as Le,jsxs as pa}from"react/jsx-runtime";var Rs="k-numerictextbox",Hi=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Gi={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},Ze={showSpinButton:!0,showClearButton:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},K=e=>{let{size:t=Ze.size,rounded:o=Ze.rounded,fillMode:n=Ze.fillMode,separators:i=Ze.separators,showClearButton:l=Ze.showClearButton,showSpinButton:p=Ze.showSpinButton,prefix:m,suffix:u,value:b,placeholder:N,hover:v,focus:d,valid:k,invalid:g,required:L,loading:C,disabled:P,readonly:w,...$}=e;return pa(E,{...$,size:t,rounded:o,fillMode:n,hover:v,focus:d,valid:k,invalid:g,required:L,loading:C,disabled:P,readonly:w,className:s(e.className,Rs),children:[m&&pa(Ks,{children:[Le(de,{children:m}),i&&Le(Ne,{})]}),Le(le,{placeholder:N,value:b}),Le(Q,{valid:k,invalid:g,loading:C,disabled:P}),Le(Y,{loading:C,disabled:P}),l&&Le(ie,{loading:C,disabled:P,readonly:w,value:b}),u&&pa(Ks,{children:[i&&Le(Ne,{}),Le(me,{children:u})]}),p&&Le(pt,{className:"k-input-spinner",size:t,fillMode:n})]})};K.states=Hi;K.options=Gi;K.className=Rs;K.defaultOptions=Ze;import{jsx as ov}from"react/jsx-runtime";import{Fragment as lv,jsx as iv}from"react/jsx-runtime";import{Fragment as bv,jsx as fv}from"react/jsx-runtime";import{Fragment as Gs,jsx as q,jsxs as ct}from"react/jsx-runtime";var lo="k-pager",Di=[a.focus,a.disabled],$i={size:[r.small,r.medium,r.large]},W={responsive:!0,size:r.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},Oe=e=>{let{responsive:t=W.responsive,size:o=W.size,pagerSizeInfo:n=W.pagerSizeInfo,pageTitleInfo:i=W.pageTitleInfo,maxPagesInfo:l=W.maxPagesInfo,itemsPerPage:p=W.itemsPerPage,maxPages:m=W.maxPages,currentPage:u=W.currentPage,previousNext:b=W.previousNext,type:N=W.type,pageSizes:v=W.pageSizes,refresh:d=W.refresh,info:k=W.info,focus:g,disabled:L,dir:C,...P}=e,w=[],$=[];for(let U=1;U<=m;U++)w.push(q(c,{selected:U===u,fillMode:"flat",themeColor:"primary",size:o,rounded:null,children:U})),$.push(q("option",{selected:U===u,children:U}));return ct("div",{dir:C,...P,className:s(e.className,lo,I(lo,{size:o}),S(lo,{focus:g,disabled:L}),{"k-pager-responsive":t}),children:[ct("div",{className:s("k-pager-numbers-wrap"),children:[b&&ct(Gs,{children:[q(c,{className:s("k-pager-nav","k-pager-first"),disabled:u===1&&!L,fillMode:"flat",size:o,rounded:null,icon:C==="rtl"?"caret-alt-to-right":"caret-alt-to-left"}),q(c,{className:s("k-pager-nav"),disabled:u===1&&!L,fillMode:"flat",size:o,rounded:null,icon:C==="rtl"?"caret-alt-right":"caret-alt-left"})]}),N==="numeric"&&q("div",{className:s("k-pager-numbers"),children:w}),N==="input"&&ct("span",{className:s("k-pager-input"),children:[i&&q("span",{children:"Page"}),q(K,{value:`${u}`,size:o,showSpinButton:!1,showClearButton:!1}),q("span",{children:l&&`of ${m}`})]}),b&&ct(Gs,{children:[q(c,{className:s("k-pager-nav"),disabled:u===m&&!L,fillMode:"flat",size:o,rounded:null,icon:C==="rtl"?"caret-alt-left":"caret-alt-right"}),q(c,{className:s("k-pager-nav","k-pager-last"),disabled:u===m&&!L,fillMode:"flat",size:o,rounded:null,icon:C==="rtl"?"caret-alt-to-left":"caret-alt-to-right"})]})]}),v&&ct("span",{className:s("k-pager-sizes"),children:[q(be,{value:`${p}`,size:o}),n&&q("span",{children:"items per page"})]}),d&&q(c,{className:s("k-pager-refresh"),fillMode:"flat",size:o,rounded:null,icon:"arrow-rotate-cw"}),k&&q("span",{className:s("k-pager-info"),children:k})]})};Oe.states=Di;Oe.options=$i;Oe.className=lo;Oe.defaultOptions=W;import{jsx as Tv}from"react/jsx-runtime";import{jsx as Vi}from"react/jsx-runtime";var Kt=e=>Vi(Oe,{type:"input",responsive:!1,...e});import{jsx as Rv}from"react/jsx-runtime";import{jsx as Ds,jsxs as Ui}from"react/jsx-runtime";var $s="k-color-preview",_i=[],Fi={},Ke=e=>{let{color:t,iconName:o,...n}=e;return Ui("span",{...n,className:s(e.className,$s,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Ds(M,{icon:o,className:"k-color-preview-icon"}),Ds("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ke.states=_i;Ke.options=Fi;Ke.className=$s;import{jsx as dt,jsxs as ca}from"react/jsx-runtime";var Rt="k-slider",Xi=[a.hover,a.focus,a.active,a.disabled,a.readonly],Ji={},Re={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},te=e=>{let{type:t=Re.type,orientation:o=Re.orientation,readonly:n=Re.readonly,disabled:i=Re.disabled,handlePosition:l=Re.handlePosition,showButtons:p=Re.showButtons,showTicks:m=Re.showTicks,hover:u,focus:b,active:N,trackStyle:v,dir:d,...k}=e,g,L;return o==="horizontal"?(g=d==="rtl"?"caret-alt-left":"caret-alt-right",L=d==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(g="caret-alt-up",L="caret-alt-down"),ca("div",{...k,className:s(Rt,e.className,S(Rt,{readonly:n,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:d,children:[p&&dt(c,{className:"k-button-decrease",rounded:"full",icon:L}),ca("div",{className:"k-slider-track-wrap",children:[m&&dt("ul",{className:"k-reset k-slider-items",children:e.children}),ca("div",{className:"k-slider-track",style:v,children:[dt("div",{className:"k-slider-selection"}),t==="range"&&dt("span",{className:s("k-draghandle","k-draghandle-start",S(Rt,{hover:u,focus:b,active:N}))}),dt("span",{className:s("k-draghandle",`k-draghandle-${l}`,S(Rt,{hover:u,focus:b,active:N}))})]})]}),p&&dt(c,{className:"k-button-increase",rounded:"full",icon:g})]})};te.states=Xi;te.options=Ji;te.className=Rt;te.defaultOptions=Re;import{jsx as Vs}from"react/jsx-runtime";var _s="k-tick",qi=[],Wi={},Fs={label:!1},He=e=>{let{style:t,label:o=Fs.label,orientation:n,large:i,text:l,...p}=e;return Vs("li",{...p,className:s(e.className,_s,{[`k-tick-${n}`]:n,"k-tick-large":i}),style:t,children:o&&Vs("span",{className:"k-label",children:l})})};He.states=qi;He.options=Wi;He.className=_s;He.defaultOptions=Fs;import{Fragment as rS,jsx as nS,jsxs as iS}from"react/jsx-runtime";import{Fragment as mS,jsx as dS,jsxs as uS}from"react/jsx-runtime";import{Fragment as NS,jsx as xS,jsxs as kS}from"react/jsx-runtime";import{Fragment as MS,jsx as LS,jsxs as IS}from"react/jsx-runtime";import{jsx as Zi}from"react/jsx-runtime";var da=e=>Zi(te,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Qi}from"react/jsx-runtime";var ma=e=>Qi(te,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{Fragment as Ht,jsx as T,jsxs as R}from"react/jsx-runtime";var Us="k-colorgradient-inputs",Yi=[],ji={size:[r.small,r.medium,r.large]},Xs={mode:"rgba",size:r.medium},mt=e=>{let{mode:t=Xs.mode,size:o,...n}=e;return R("div",{...n,className:s(Us,"k-hstack"),children:[T("div",{className:"k-vstack",children:T(c,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&R(Ht,{children:[R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"R"})]}),R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"G"})]}),R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"B"})]}),R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),T("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&R(Ht,{children:[R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"R"})]}),R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"G"})]}),R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&R(Ht,{children:[R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"H"})]}),R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"S"})]}),R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"V"})]}),R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),T("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&R(Ht,{children:[R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"H"})]}),R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"S"})]}),R("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&T(Ht,{children:R("div",{className:"k-vstack k-flex-1",children:[T(ue,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),T("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};mt.states=Yi;mt.options=ji;mt.className=Us;mt.defaultOptions=Xs;import{jsx as Qe,jsxs as Ye}from"react/jsx-runtime";var Js="k-colorgradient-color-contrast",el=[],tl={},ol={},ut=()=>Ye("div",{className:s(Js,"k-vbox"),children:[Ye("div",{className:"k-contrast-ratio",children:[Qe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Ye("span",{className:"k-contrast-validation !k-text-success",children:[Qe(M,{icon:"check"}),Qe(M,{icon:"check"})]})]}),Ye("div",{children:[Qe("span",{children:"AA: 4.5"}),Ye("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Qe(M,{icon:"check"})]})]}),Ye("div",{children:[Qe("span",{children:"AAA: 7.0"}),Ye("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Qe(M,{icon:"x"})]})]})]});ut.states=el;ut.options=tl;ut.className=Js;ut.defaultOptions=ol;import{jsx as oe,jsxs as Gt}from"react/jsx-runtime";var po="k-colorgradient",al=[a.hover,a.focus,a.readonly,a.disabled],sl={size:[r.small,r.medium,r.large]},ce={size:r.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},Ge=e=>{let{size:t=ce.size,mode:o=ce.mode,readonly:n=ce.readonly,disabled:i=ce.disabled,gradientStyle:l=ce.gradientStyle,dragHandleStyle:p=ce.dragHandleStyle,alphaStyle:m=ce.alphaStyle,alphaStyleHorizontal:u=ce.alphaStyleHorizontal,contrast:b=ce.contrast,dir:N,hover:v,focus:d,hoverHandle:k,focusHandle:g,canvasOrientation:L=ce.canvasOrientation,...C}=e;return Gt("div",{...C,className:s(e.className,po,I(po,{size:t}),S(po,{hover:v,focus:d,readonly:n,disabled:i})),dir:N,children:[!L||L==="horizontal"&&Gt("div",{className:"k-colorgradient-canvas k-hstack",children:[oe("div",{className:"k-hsv-rectangle",style:l,children:oe("div",{className:"k-hsv-gradient",children:oe("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":g}),style:p})})}),Gt("div",{className:"k-hsv-controls k-hstack",children:[oe(ma,{className:"k-hue-slider",hover:k,focus:g}),o!=="rgb"&&o!=="hsv"&&oe(ma,{className:"k-alpha-slider",hover:k,focus:g,trackStyle:m})]})]}),L==="vertical"&&Gt("div",{className:"k-colorgradient-canvas k-vstack",children:[oe("div",{className:"k-hsv-rectangle",style:l,children:oe("div",{className:"k-hsv-gradient",children:oe("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":g}),style:p})})}),Gt("div",{className:"k-hsv-controls k-vstack",children:[oe(da,{className:"k-hue-slider",hover:k,focus:g}),o!=="rgb"&&o!=="hsv"&&oe(da,{className:"k-alpha-slider",hover:k,focus:g,trackStyle:u})]})]}),oe(mt,{mode:e.mode,size:t}),b&&oe(ut,{})]})};Ge.states=al;Ge.options=sl;Ge.className=po;Ge.defaultOptions=ce;import{jsx as rL}from"react/jsx-runtime";import{jsx as cL}from"react/jsx-runtime";import{jsx as nl}from"react/jsx-runtime";var qs=e=>nl("tr",{children:e.children});import{jsx as ll}from"react/jsx-runtime";var ua="k-colorpalette-tile",rl=[a.hover,a.focus,a.selected],il={},Dt=e=>{let{color:t,tileSize:o,hover:n,focus:i,selected:l,...p}=e,m={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return ll("td",{...p,className:s(e.className,ua,S(ua,{hover:n,focus:i,selected:l})),style:m})};Dt.states=rl;Dt.options=il;Dt.className=ua;import{jsx as $t}from"react/jsx-runtime";var co="k-colorpalette",pl=[a.disabled],cl={size:[r.small,r.medium,r.large]},fa={columns:10,size:r.medium},ft=e=>{let{size:t=fa.size,palette:o,columns:n=fa.columns,tileSize:i,disabled:l,...p}=e,m=[];if(o){let u=n||o.columns,b=o.colors?o.colors:o;Array.isArray(b)&&Array.from({length:Math.ceil(b.length/u)},(N,v)=>{let d=[];b.slice(v*u,(v+1)*u).map((g,L)=>{d.push($t(Dt,{color:g,tileSize:i},L))});let k=$t(qs,{children:d},v);m.push(k)})}return $t("div",{...p,className:s(e.className,co,