@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 114 kB
JavaScript
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var y=(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.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),E=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:s,checked:d,active:p,selected:h,disabled:x,indeterminate:b,loading:N,empty:c,readonly:g,highlighted:v,...I}=t;return i({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":s,"k-checked":d,"k-active":p,"k-selected":h,"k-disabled":x,"k-indeterminate":b&&!d,"k-loading":N,"k-empty":c,"k-readonly":g,"k-highlighted":v},Object.keys(I).reduce((M,S)=>(S.startsWith("k-")?M[S]=I[S]:M[`k-${S}`]=I[S],M),{}))};function Ln(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},u={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},we={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},k={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},r={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",generating:"generating",expanded:"expanded"};var Zo={};function R(e){return Zo[e]=(Zo[e]||0)+1,`k-${e}-${Zo[e]}`}import{Fragment as Oi,jsx as In}from"react/jsx-runtime";var jo="k-font-icon",Ei=[],Ai={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary,k.success,k.warning,k.error,k.info]},Ti={},Zt=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:s,...d}=e;return a?In("span",{...d,className:i(e.className,jo,y(jo,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):In(Oi,{})};Zt.states=Ei;Zt.options=Ai;Zt.className=jo;Zt.defaultOptions=Ti;var Sn=Zt;import{Fragment as Ri,jsx as Io}from"react/jsx-runtime";var ea="k-svg-icon",wi=[],Pi={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary,k.success,k.warning,k.error,k.info],variant:[we.outline,we.solid,we.duotone]},ta={viewBox:"0 0 24 24",variant:we.outline},jt=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:s=ta.viewBox,variant:d=ta.variant,icon:p,...h}=e;if(!p)return Io(Ri,{});if(p==="none")return Io("span",{...h,className:i(e.className,ea,y("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof p=="object"&&p.name&&p.name,b=typeof p=="object"?d&&p.variants?.[d]||p.variants?.outline||p.content:void 0;return Io("span",{...h,className:i(e.className,ea,y("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:Io("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:s,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:p?void 0:e.children})})};jt.states=wi;jt.options=Pi;jt.className=ea;jt.defaultOptions=ta;var oa=jt;import*as aa from"@progress/kendo-svg-icons";var Mn="icon",Cn="icons";import{useContext as Bi}from"react";import{createContext as Ki}from"react";var yn=Ki({iconsType:"svg"});import{Fragment as En,jsx as eo}from"react/jsx-runtime";var So="k-icon",_i=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Di=[],Hi={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary,k.success,k.warning,k.error,k.info],variant:[we.outline,we.solid,we.duotone]},Mo={viewBox:"0 0 24 24",type:"svg",variant:we.outline},L=e=>{let{iconsType:t}=Bi(yn),{size:o,themeColor:a,icon:n,type:s=t||Mo.type,rotate:d,flip:p,viewBox:h=Mo.viewBox,variant:x=Mo.variant,...b}=e;if(!n)return eo(En,{});if((t||s)==="svg"){if(n==="none")return eo(oa,{...b,className:i(e.className,So),icon:n,size:o,variant:x});let c=aa[n]?n:_i(`${n}-icon`);return aa[c]?eo(oa,{...b,className:i(e.className,So),icon:aa[c],size:o,themeColor:a,rotate:d,flip:p,viewBox:h,variant:x}):eo(En,{})}return eo(Sn,{...b,className:i(e.className,So),icon:n,size:o,themeColor:a,rotate:d,flip:p})};L.states=Di;L.options=Hi;L.defaultOptions=Mo;L.className=So;L.moduleName=Mn;L.folderName=Cn;L.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var na="button",An=na;import{Fragment as Tn,jsx as vt,jsxs as On}from"react/jsx-runtime";var to="k-button",zi=["icon-button"],Ui=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],Gi={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary,k.success,k.warning,k.error,k.info,k.inverse]},ra={showArrow:!1,arrowIconName:"chevron-down"},m=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:s,showArrow:d=ra.showArrow,arrowIconName:p=ra.arrowIconName,variant:h,hover:x,focus:b,active:N,selected:c,disabled:g,togglable:v,ariaDisabled:I,icon:M,iconSize:S,text:T,iconClassName:G,className:Q,...te}=e,oe=M!=null,ae=e.children!==void 0;return On(t,{className:i(Q,to,Ln(to,h),y(to,{size:o,rounded:a,fillMode:n,themeColor:s}),E(to,{hover:x,focus:b,active:N,disabled:g||I,selected:c}),{"k-icon-button":!T&&!ae&&oe}),"aria-pressed":v?c?"true":"false":void 0,...te,"aria-disabled":I?"true":void 0,disabled:g||void 0,children:[typeof M=="string"&&M&&vt(L,{className:i(G,"k-button-icon"),icon:M,size:S}),M&&typeof M!="string"&&vt(Tn,{children:M}),T?On(Tn,{children:[T&&vt("span",{className:"k-button-text",children:T}),e.children]}):e.children&&vt("span",{className:"k-button-text",children:e.children}),d&&vt("span",{className:"k-menu-button-arrow k-button-arrow",children:vt(L,{icon:p})})]})};m.states=Ui;m.options=Gi;m.variants=zi;m.className=to;m.defaultOptions=ra;m.moduleName=na;m.folderName=An;m.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as Fi}from"react/jsx-runtime";var qe=e=>Fi(m,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Vi}from"react/jsx-runtime";var oo=e=>Vi(m,{icon:"folder",children:"Button",...e});import{jsx as $i}from"react/jsx-runtime";var st=e=>$i(m,{children:"Button",...e});import{jsx as ia}from"react/jsx-runtime";var Xi=m.options,qi=m.states,Ji={...m.defaultOptions,variant:"text"},Wi=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Yi=[],kt=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return ia(qe,{...o,icon:"star"});case"icon-and-text":return ia(oo,{...o,icon:"star",children:"Button"});default:return ia(st,{...o,children:"Button"})}};kt.options=Xi;kt.states=qi;kt.variants=Wi;kt.defaultOptions=Ji;kt.modifiers=Yi;kt.className=m.className;var sa="button",wn=sa;import{jsx as es}from"react/jsx-runtime";var ao="k-button-group",Qi=[r.disabled],Zi={fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},ji={},B=e=>{let{fillMode:t,disabled:o,stretched:a,...n}=e;return es("div",{role:"group",...n,className:i(e.className,ao,y(ao,{fillMode:t}),E(ao,{disabled:o}),{[`${ao}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};B.states=Qi;B.options=Zi;B.className=ao;B.defaultOptions=ji;B.moduleName=sa;B.folderName=wn;B.ariaSpec={selector:".k-button-group",rules:[{selector:".k-button-group:not(.k-split-button)",attribute:"role=group",usage:"Sets the proper role for the group of buttons."},{selector:".k-button-group.k-disabled",attribute:"aria-disabled=true",usage:"The attribute is rendered only when the entire button group is disabled."},{selector:".k-button-group:not(.k-split-button):not(.k-scheduler-navigation):not(.k-zoom-control) .k-button",attribute:"aria-pressed (when selected)",usage:"Specifies the current state of the ButtonGroup. Only the selected button within the group will have this attribute set to true."}]};import{Fragment as Nu,jsx as xu,jsxs as vu}from"react/jsx-runtime";import{Fragment as Mu,jsx as Su,jsxs as Cu}from"react/jsx-runtime";import{Fragment as wu,jsx as Ou,jsxs as Pu}from"react/jsx-runtime";import{Fragment as Hu,jsx as Du,jsxs as zu}from"react/jsx-runtime";import{Fragment as Xu,jsx as $u,jsxs as qu}from"react/jsx-runtime";import{Fragment as ju,jsx as Zu,jsxs as ef}from"react/jsx-runtime";import{jsx as ze,jsxs as la}from"react/jsx-runtime";var ts={...m.options,...B.options},os=m.states,as={...m.defaultOptions,...B.defaultOptions,variant:"text-button"},ns=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],rs=[],gt=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?la(B,{fillMode:a.fillMode,className:o,children:[ze(m,{...a,icon:"star"}),ze(m,{...a,icon:"star"}),ze(m,{...a,icon:"star"})]}):t==="icon-text-button"?la(B,{fillMode:a.fillMode,className:o,children:[ze(m,{...a,icon:"star",children:"First"}),ze(m,{...a,icon:"star",children:"Middle"}),ze(m,{...a,icon:"star",children:"Last"})]}):la(B,{fillMode:a.fillMode,className:o,children:[ze(m,{...a,children:"First"}),ze(m,{...a,children:"Middle"}),ze(m,{...a,children:"Last"})]})};gt.options=ts;gt.states=os;gt.variants=ns;gt.defaultOptions=as;gt.modifiers=rs;gt.className=B.className;var no="input",Co=no;import{jsx as ds}from"react/jsx-runtime";var yo="k-input",is=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ss={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},ls={},F=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p,size:h,rounded:x,fillMode:b,...N}=e;return ds("span",{...N,className:i(e.className,yo,y(yo,{size:h,rounded:x,fillMode:b}),E(yo,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p}))})};F.states=is;F.options=ss;F.className=yo;F.defaultOptions=ls;F.moduleName=no;F.folderName=Co;import{jsx as us}from"react/jsx-runtime";var Eo="k-picker",cs=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ps={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},ms={},Pe=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p,size:h,rounded:x,fillMode:b,...N}=e;return us("span",{...N,className:i(e.className,Eo,y(Eo,{size:h,rounded:x,fillMode:b}),E(Eo,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p})),children:e.children})};Pe.states=cs;Pe.options=ps;Pe.className=Eo;Pe.defaultOptions=ms;Pe.moduleName=no;Pe.folderName=Co;import{Fragment as hs,jsx as da}from"react/jsx-runtime";var Pn="k-clear-value",fs=[r.disabled,r.loading,r.readonly],bs={},ue=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?da(hs,{}):da("span",{className:i(e.className,Pn),children:da(L,{icon:"x"})})};ue.states=fs;ue.options=bs;ue.className=Pn;import{jsx as vs}from"react/jsx-runtime";var ca="k-input-inner",xs=[],Ns={},Ao={type:"text",autocomplete:"off",value:"",placeholder:""},fe=e=>{let{value:t=Ao.value,type:o=Ao.type,placeholder:a=Ao.placeholder,autocomplete:n=Ao.autocomplete,disabled:s,readOnly:d,...p}=e;return vs("input",{...p,type:o,className:i(e.className,ca,y(ca,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:s||void 0,readOnly:d||void 0})};fe.states=xs;fe.options=Ns;fe.className=ca;import{jsx as Rn,jsxs as Ls}from"react/jsx-runtime";var pa="k-input-inner",ks=[],gs={},lt=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:s,...d}=e;return Ls("span",{...d,className:i(e.className,pa,y(pa,e)),children:[n,!n&&s&&Rn(L,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&Rn("span",{className:"k-input-value-text",children:t})]})};lt.states=ks;lt.options=gs;lt.className=pa;import{jsx as Ms}from"react/jsx-runtime";var ma="k-input-inner",Is=[],Ss={},Kn={value:"",placeholder:""},ua=e=>{let{value:t=Kn.value,placeholder:o=Kn.placeholder,rows:a,disabled:n,...s}=e;return Ms("textarea",{...s,className:i(e.className,ma,y(ma,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};ua.states=Is;ua.options=Ss;ua.className=ma;import{Fragment as ys,jsx as Bn}from"react/jsx-runtime";var _n="k-input-loading-icon",Cs=[r.disabled,r.loading],pe=e=>{let{disabled:t,loading:o}=e;return t||!o?Bn(ys,{}):Bn("span",{className:i(e.className,_n,"k-icon k-i-loading")})};pe.states=Cs;pe.className=_n;import{Fragment as Ts,jsx as Dn}from"react/jsx-runtime";var Hn="k-input-validation-icon",Es=[r.valid,r.invalid,r.disabled,r.loading],As={},ne=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,s=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?Dn(Ts,{}):Dn(L,{className:i(Hn),icon:s})};ne.states=Es;ne.options=As;ne.className=Hn;import{Fragment as Ps,jsx as zn}from"react/jsx-runtime";var Os="k-input-prefix",ws={direction:"horizontal"},Ne=e=>{let{direction:t=ws.direction,...o}=e;return e.children?zn("span",{...o,className:i(Os,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):zn(Ps,{})};import{Fragment as Bs,jsx as Un}from"react/jsx-runtime";var Rs="k-input-suffix",Ks={direction:"horizontal"},ve=e=>{let{direction:t=Ks.direction,...o}=e;return e.children?Un("span",{...o,className:i(Rs,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Un(Bs,{})};import{jsx as tb}from"react/jsx-runtime";import{jsx as Ds}from"react/jsx-runtime";var _s="k-input-suffix-text",fa=e=>{let{children:t,...o}=e;return Ds("span",{...o,className:i(_s,e.className),children:t})};import{jsx as zs}from"react/jsx-runtime";var Gn="k-input-separator",Hs={direction:"vertical"},ke=e=>{let{direction:t=Hs.direction,...o}=e;return zs("span",{...o,className:i(Gn,e.className,{[`${Gn}-${t}`]:t})})};import{Fragment as Fn,jsx as Re,jsxs as ba}from"react/jsx-runtime";var Us=F.states,Gs=F.defaultOptions,Fs=F.options,Vs=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],$s=[],Lt=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:s,readonly:d,...p}=e,h=t?.prefix,x=t?.suffix,b=t?.["clear-button"],N=t?.["validation-icon"],c=t?.separators;return ba(F,{...p,valid:o,invalid:a,loading:n,disabled:s,readonly:d,style:{width:300},children:[h&&ba(Fn,{children:[Re(Ne,{children:Re(L,{icon:"lock"})}),c&&Re(ke,{})]}),Re(fe,{placeholder:"Placeholder",value:"Value"}),N&&Re(ne,{valid:o,invalid:a,loading:n,disabled:s}),Re(pe,{loading:n,disabled:s}),b&&Re(ue,{loading:n,disabled:s,readonly:d,value:"Value"}),x&&ba(Fn,{children:[c&&Re(ke,{}),Re(ve,{children:Re(st,{size:p.size,fillMode:"clear",children:"Send"})})]})]})};Lt.options=Fs;Lt.states=Us;Lt.variants=$s;Lt.defaultOptions=Gs;Lt.modifiers=Vs;Lt.className=F.className;import{jsx as Vn,jsxs as Js}from"react/jsx-runtime";var $n="k-color-preview",Xs=[],qs={},Je=e=>{let{color:t,iconName:o,...a}=e;return Js("span",{...a,className:i(e.className,$n,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Vn(L,{icon:o,className:"k-color-preview-icon"}),Vn("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Je.states=Xs;Je.options=qs;Je.className=$n;var ha="popup",Xn=ha;import{jsx as qn}from"react/jsx-runtime";var Jn="k-animation-container",Ws=[],Ys={},xa={positionMode:"absolute",shown:!0},Ke=e=>{let{positionMode:t=xa.positionMode,shown:o=xa.shown,animationStyle:a,offset:n,...s}=e;return qn("div",{...s,style:{...n,...e.style},className:i(e.className,Jn,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:qn("div",{className:"k-child-animation-container",style:a,children:e.children})})};Ke.states=Ws;Ke.options=Ys;Ke.className=Jn;Ke.defaultOptions=xa;Ke.moduleName=ha;Ke.folderName=Xn;var Na="popup",Wn=Na;import{jsx as Yn}from"react/jsx-runtime";var Qn="k-popup",Qs=[],Zs={},Zn={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:o=Zn.positionMode,animationStyle:a,containerClassName:n,containerRole:s,containerAriaLabel:d,...p}=e;return Yn(Ke,{positionMode:o,offset:t,animationStyle:a,className:n,role:s,"aria-label":d,children:Yn("div",{...p,className:i(e.className,Qn),children:e.children})})};H.states=Qs;H.options=Zs;H.className=Qn;H.defaultOptions=Zn;H.moduleName=Na;H.folderName=Wn;H.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var va="action-buttons",jn=va;import{jsx as tl}from"react/jsx-runtime";var To="k-actions",js=[],el={},ka={alignment:"start",orientation:"horizontal"},Be=e=>{let{alignment:t=ka.alignment,orientation:o=ka.orientation,...a}=e;return tl("div",{...a,className:i(To,{[`${To}-${t}`]:t,[`${To}-${o}`]:o},e.className),children:e.children})};Be.states=js;Be.options=el;Be.className=To;Be.defaultOptions=ka;Be.moduleName=va;Be.folderName=jn;import{jsx as al}from"react/jsx-runtime";var ol="k-actionsheet-footer",er={alignment:"stretched",orientation:"horizontal"},We=e=>{let{alignment:t=er.alignment,orientation:o=er.orientation,template:a,as:n=a?"div":Be,...s}=e;return al(n,{...s,...!a&&{alignment:t,orientation:o},className:i(e.className,ol),children:e.children})};var ga="searchbox",tr=ga;import{jsx as ro,jsxs as il}from"react/jsx-runtime";var or="k-searchbox",nl=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],rl={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},La={showIcon:!0,icon:"search"},ge=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:s,hover:d,focus:p,valid:h,invalid:x,required:b,loading:N,disabled:c,showIcon:g=La.showIcon,icon:v=La.icon,"aria-label":I,...M}=e;return il(F,{...M,size:a,rounded:n,fillMode:s,hover:d,focus:p,valid:h,invalid:x,required:b,loading:N,disabled:c,className:i(e.className,or),children:[g&&ro(L,{className:"k-input-icon",icon:v}),ro(fe,{placeholder:o,value:t,"aria-label":I}),ro(pe,{...e}),ro(ne,{...e}),ro(ue,{...e})]})};ge.states=nl;ge.options=rl;ge.className=or;ge.defaultOptions=La;ge.moduleName=ga;ge.folderName=tr;import{jsx as Ch}from"react/jsx-runtime";var Ia="textbox",ar=Ia;import{Fragment as nr,jsx as Ye,jsxs as Sa}from"react/jsx-runtime";var rr="k-textbox",sl=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ll={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Oo={showClearButton:!0,showValidationIcon:!0,separators:!0},W=e=>{let{size:t,rounded:o,fillMode:a,separators:n=Oo.separators,showClearButton:s=Oo.showClearButton,showValidationIcon:d=Oo.showValidationIcon,prefix:p,suffix:h,type:x,value:b,placeholder:N,hover:c,focus:g,valid:v,invalid:I,required:M,loading:S,disabled:T,readonly:G,id:Q,"aria-label":te,"aria-describedby":oe,...ae}=e;return Sa(F,{...ae,size:t,rounded:o,fillMode:a,hover:c,focus:g,valid:v,invalid:I,required:M,loading:S,disabled:T,readonly:G,className:i(e.className,rr),children:[p&&Sa(nr,{children:[Ye(Ne,{children:p}),n&&Ye(ke,{})]}),Ye(fe,{id:Q,placeholder:N,value:b,type:x,disabled:T,"aria-label":te,"aria-describedby":oe,"aria-invalid":I?"true":void 0}),d&&Ye(ne,{valid:v,invalid:I,loading:S,disabled:T}),Ye(pe,{loading:S,disabled:T}),s&&Ye(ue,{loading:S,disabled:T,readonly:G,value:b}),h&&Sa(nr,{children:[n&&Ye(ke,{}),Ye(ve,{children:h})]})]})};W.states=sl;W.options=ll;W.className=rr;W.defaultOptions=Oo;W.moduleName=Ia;W.folderName=ar;W.ariaSpec={selector:".k-textbox",rules:[{selector:".k-textbox > .k-input-inner",attribute:"role=textbox or nodeName=input",usage:"Describes the role of the component."},{selector:".k-textbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-textbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the TextBox is in an invalid state."},{selector:".k-textbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the input."},{selector:".k-textbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the TextBox is disabled."}]};var io=W;import{jsx as dl}from"react/jsx-runtime";var ir=e=>dl(io,{...e});import{Fragment as Vh,jsx as Fh}from"react/jsx-runtime";import{Fragment as Yh,jsx as Wh}from"react/jsx-runtime";import{jsx as ex}from"react/jsx-runtime";import{jsx as Ma}from"react/jsx-runtime";var cl=W.states,pl=W.defaultOptions,ml=W.options,ul=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],fl=[],It=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?Ma(L,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?Ma(st,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),Ma(ir,{value:"Value",style:{width:300},...o,...a})};It.options=ml;It.states=cl;It.variants=fl;It.defaultOptions=pl;It.modifiers=ul;It.className=W.className;import{jsx as Qe,jsxs as Ca}from"react/jsx-runtime";var sr="k-actionsheet-titlebar",bl={},re=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:s,input:d,inputValue:p,inputPlaceholder:h,adaptive:x,titleId:b,children:N,...c}=e;return Ca("div",{...c,className:i(e.className,sr),children:[Ca("div",{className:"k-actionsheet-titlebar-group",children:[a&&Qe("div",{className:"k-actionsheet-actions",children:a}),!N&&Ca("div",{className:"k-actionsheet-title",id:b,children:[t&&Qe("div",{className:"k-text-center",children:t}),o&&Qe("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&Qe("div",{className:"k-actionsheet-title",id:b,children:N}),n&&Qe("div",{className:"k-actionsheet-actions",children:n})]}),(d||s)&&Qe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Qe(W,{value:p,placeholder:h,size:x?"large":"medium","aria-label":t||h||"Input"}):Qe(ge,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};re.className=sr;re.defaultOptions=bl;import{jsx as ya,jsxs as vl}from"react/jsx-runtime";var Ea="k-actionsheet-view",hl=[],xl={},Nl={},St=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:s,titleId:d,...p}=e,h=n?.type===re&&ya(re,{adaptive:t,titleId:d,...n?.props}),x=s?.type===We&&ya(We,{...s?.props});return vl("div",{...p,className:i(e.className,Ea,{[`${Ea}-animated`]:o}),children:[h,ya("div",{className:"k-actionsheet-content",children:a}),x]})};St.states=hl;St.options=xl;St.className=Ea;St.defaultOptions=Nl;var so="action-sheet",wo=so;var Aa="overlay",lr=Aa;import{jsx as Il}from"react/jsx-runtime";var dr="k-overlay",kl=[],gl={},Ll={},Ze=e=>{let{...t}=e;return Il("div",{...t,className:i(e.className,dr),children:e.children})};Ze.states=kl;Ze.options=gl;Ze.className=dr;Ze.defaultOptions=Ll;Ze.moduleName=Aa;Ze.folderName=lr;import{jsx as Po,jsxs as Cl}from"react/jsx-runtime";var cr="k-actionsheet",Sl=[],Ml={},lo={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},z=e=>{let{side:t=lo.side,fullscreen:o=lo.fullscreen,adaptive:a=lo.adaptive,overlay:n=lo.overlay,template:s,children:d,header:p,footer:h,id:x,...b}=e,N=x&&!s&&p?`${x}-title`:void 0;return Cl("div",{className:"k-actionsheet-container",children:[n&&Po(Ze,{}),Po(Ke,{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:Po("div",{...b,id:x,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":N,className:i(e.className,cr,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||Po(St,{header:p,footer:h,adaptive:a,titleId:N,...e,children:d})})})]})};z.states=Sl;z.options=Ml;z.className=cr;z.defaultOptions=lo;z.moduleName=so;z.folderName=wo;z.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};import{jsx as Tl}from"react/jsx-runtime";var pr="k-actionsheet-container",yl=[],El={},Al={},Mt=e=>{let{children:t,...o}=e;return Tl("div",{...o,className:pr,children:t})};Mt.states=yl;Mt.options=El;Mt.className=pr;Mt.defaultOptions=Al;Mt.moduleName=so;Mt.folderName=wo;import{jsx as Ol}from"react/jsx-runtime";var Ta=e=>{let{...t}=e;return Ol("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};import{Fragment as Pl,jsx as co,jsxs as Oa}from"react/jsx-runtime";var wa="k-actionsheet-item",wl=[r.hover,r.focus,r.selected,r.disabled],je=e=>{let{iconName:t,text:o,description:a,hover:n,focus:s,selected:d,disabled:p,...h}=e;return Oa("span",{...h,className:i(e.className,wa,E(wa,{hover:n,focus:s,selected:d,disabled:p})),children:[!e.children&&co(Pl,{children:Oa("span",{className:"k-actionsheet-action",children:[t&&co("span",{className:"k-icon-wrap",children:co(L,{className:"k-actionsheet-item-icon",icon:t})}),Oa("span",{className:"k-actionsheet-item-text",children:[o&&co("span",{className:"k-actionsheet-item-title",children:o}),a&&co("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};je.states=wl;je.className=wa;import{jsx as jx,jsxs as eN}from"react/jsx-runtime";import{jsx as nN}from"react/jsx-runtime";import{jsx as lN}from"react/jsx-runtime";import{jsx as mN}from"react/jsx-runtime";import{jsx as Y,jsxs as Pa}from"react/jsx-runtime";var Rl=z.options,Kl=z.states,ur={...z.defaultOptions,variant:"normal"},Bl=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],_l=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Ct=e=>{let{variant:t,modifiers:o,...a}={...ur,...e},n={},s=Pa(Ta,{children:[Y(je,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),Y(je,{text:"Add to Favorites",iconName:"heart"}),Y(je,{text:"Upload New",iconName:"upload",disabled:!0}),Y("hr",{className:"k-hr"}),Y(je,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",p="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(h=>{switch(h){case"actions":n.actionsStart=!!o?.[h],n.actionsEnd=!!o?.[h];break;case"subtitle":n.subtitle=o?.[h]?d:void 0;break;case"footer":n.footer=!!o?.[h];break;default:break}}),t==="adaptive"?Y(z,{...a,adaptive:!0,fullscreen:n.fullScreen,header:Y(re,{actionsStart:n.actionsStart?Y(m,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?Y(m,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:p,subtitle:n.subtitle}),footer:n.footer?Pa(We,{alignment:"stretched",children:[Y(m,{text:"Cancel",size:"large",themeColor:"base"}),Y(m,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):Y(z,{...a,fullscreen:n.fullScreen,header:Y(re,{actionsStart:n.actionsStart?Y(m,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?Y(m,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Pa(We,{alignment:"stretched",children:[Y(m,{text:"Apply",themeColor:"primary"}),Y(m,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Ct.options=Rl;Ct.states=Kl;Ct.variants=Bl;Ct.defaultOptions=ur;Ct.modifiers=_l;Ct.className=z.className;var Ra="slider",fr=Ra;import{jsx as yt,jsxs as Ka}from"react/jsx-runtime";var po="k-slider",Dl=[r.hover,r.focus,r.active,r.disabled,r.readonly],Hl={},Le={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},D=e=>{let{type:t=Le.type,orientation:o=Le.orientation,gradientType:a=Le.gradientType,readonly:n=Le.readonly,disabled:s=Le.disabled,handlePosition:d=Le.handlePosition,showButtons:p=Le.showButtons,showTicks:h=Le.showTicks,value:x=Le.value,min:b=Le.min,max:N=Le.max,startValue:c,endValue:g,hover:v,focus:I,active:M,trackStyle:S,dir:T,...G}=e,te=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),oe,ae;return o==="horizontal"?(oe=T==="rtl"?"chevron-left":"chevron-right",ae=T==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(oe="chevron-up",ae="chevron-down"),Ka("div",{...G,className:i(po,e.className,E(po,{readonly:n,disabled:s}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:T,children:[p&&yt(m,{className:"k-button-decrease",rounded:"full",icon:ae,tabIndex:-1,title:"Decrease"}),Ka("div",{className:"k-slider-track-wrap",children:[h&&yt("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),Ka("div",{className:"k-slider-track",style:S,children:[yt("div",{className:"k-slider-selection"}),t==="range"&&yt("span",{className:i("k-draghandle","k-draghandle-start",E(po,{hover:v,focus:I,active:M})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":c??b,"aria-valuemin":b,"aria-valuemax":g??N,"aria-orientation":te,"aria-disabled":s?"true":void 0,"aria-readonly":n?"true":void 0,"aria-label":G["aria-label"]?`${G["aria-label"]} start`:"Range start"}),yt("span",{className:i("k-draghandle",`k-draghandle-${d}`,E(po,{hover:v,focus:I,active:M})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":t==="range"?g??N:x,"aria-valuemin":t==="range"?c??b:b,"aria-valuemax":N,"aria-orientation":te,"aria-disabled":s?"true":void 0,"aria-readonly":n?"true":void 0,"aria-label":t==="range"?G["aria-label"]?`${G["aria-label"]} end`:"Range end":G["aria-label"]})]})]}),p&&yt(m,{className:"k-button-increase",rounded:"full",icon:oe,tabIndex:-1,title:"Increase"})]})};D.states=Dl;D.options=Hl;D.className=po;D.defaultOptions=Le;D.moduleName=Ra;D.folderName=fr;D.ariaSpec={selector:".k-slider",rules:[{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"role=slider",usage:"Sets the proper role for Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-label or aria-labelledby or title",usage:"The Slider needs an accessible name to be assigned to it."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the Slider is in a form and announces the invalid state."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuetext (when has text alternative)",usage:"Specifies a human-readable text alternative to the numeric value. Provided by consuming applications."},{selector:".k-slider:not(.k-disabled) .k-draghandle:not(.k-hsv-draghandle)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled sliders are removed from tab order."},{selector:".k-slider-vertical .k-draghandle",attribute:"aria-orientation=vertical (when vertical)",usage:"Present only when slider is vertical."},{selector:".k-slider.k-disabled .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-disabled=true",usage:"Rendered only when the Slider is disabled."},{selector:".k-slider.k-readonly .k-draghandle",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Slider is readonly. Readonly sliders remain focusable but their value cannot be changed."},{selector:".k-slider .k-button",attribute:"tabindex=-1",usage:"Excludes the buttons from the natural tab order. Keyboard users use arrow keys on the drag handle."},{selector:".k-slider .k-button",attribute:"title",usage:'Provides a tooltip describing the button action (e.g., "Decrease" or "Increase").'},{selector:".k-slider .k-slider-items",attribute:"aria-hidden=true",usage:"Hides the tick list from assistive technologies. Tick values are redundant with the drag handle value attributes."},{selector:".k-slider .k-tick",attribute:"role=presentation",usage:"Removes semantic meaning from individual tick elements. Ticks are visual-only markers."},{selector:".k-slider .k-tick",attribute:"title",usage:"Represents the value associated with the respective tick."}]};import{jsx as br}from"react/jsx-runtime";var hr="k-tick",zl=[],Ul={},xr={label:!1},C=e=>{let{style:t,label:o=xr.label,orientation:a,large:n,text:s,...d}=e;return br("li",{...d,role:"presentation",title:s||"Tick",className:i(e.className,hr,{[`k-tick-${a}`]:a,"k-tick-large":n}),style:t,children:o&&br("span",{className:"k-label",children:s})})};C.states=zl;C.options=Ul;C.className=hr;C.defaultOptions=xr;import{Fragment as Gl,jsx as Ie,jsxs as Fl}from"react/jsx-runtime";var Nr=e=>Ie(D,{"aria-label":e["aria-label"]||"Slider",children:Fl(Gl,{children:[Ie(C,{className:"k-first",label:!0,large:!0,text:"0"}),Ie(C,{}),Ie(C,{}),Ie(C,{}),Ie(C,{}),Ie(C,{label:!0,large:!0,text:"5"}),Ie(C,{}),Ie(C,{}),Ie(C,{}),Ie(C,{}),Ie(C,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as Vl,jsx as Se,jsxs as $l}from"react/jsx-runtime";var vr=e=>Se(D,{children:$l(Vl,{children:[Se(C,{className:"k-first",label:!0,large:!0,text:"0"}),Se(C,{}),Se(C,{}),Se(C,{}),Se(C,{}),Se(C,{label:!0,large:!0,text:"5"}),Se(C,{}),Se(C,{}),Se(C,{}),Se(C,{}),Se(C,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as ev,jsx as jN,jsxs as tv}from"react/jsx-runtime";import{Fragment as iv,jsx as rv,jsxs as sv}from"react/jsx-runtime";import{jsx as Xl}from"react/jsx-runtime";var Ba=e=>Xl(D,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as ql}from"react/jsx-runtime";var _a=e=>ql(D,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as Nv,jsx as xv,jsxs as vv}from"react/jsx-runtime";import{Fragment as Sv,jsx as Iv,jsxs as Mv}from"react/jsx-runtime";import{jsx as _e,jsxs as kr}from"react/jsx-runtime";var Jl=D.options,Wl=D.states,gr={...D.defaultOptions,variant:"horizontal",label:!0},Yl=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],Ql=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],Et=e=>{let{variant:t,modifiers:o,...a}=e,n=gr.label,s={};Object.keys(o||{}).forEach(p=>{switch(p){case"button":{s.showButtons=!!o?.[p];break}case"label":{n=!!o?.[p];break}case"tick":{s.showTicks=!!o?.[p];break}}});let d={"--kendo-slider-start":0,"--kendo-slider-end":60};return t==="vertical"?kr(vr,{style:{height:"300px",...d},...a,...s,children:[_e(C,{label:n,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),_e(C,{label:n,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),_e(C,{label:n,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),_e(C,{label:n,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),_e(C,{label:n,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):kr(Nr,{style:{width:"400px",...d},...a,...s,children:[_e(C,{label:n,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),_e(C,{label:n,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),_e(C,{label:n,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),_e(C,{label:n,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),_e(C,{label:n,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};Et.options=Jl;Et.states=Wl;Et.variants=Yl;Et.defaultOptions=gr;Et.modifiers=Ql;Et.className=D.className;import{jsx as Lr,jsxs as od}from"react/jsx-runtime";var Ir="k-spin-button",ed=[],td={size:[l.undefined,l.small,l.medium,l.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Da={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},et=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:n=Da.increaseLabel,decreaseLabel:s=Da.decreaseLabel,...d}=e;return od("span",{...d,className:i(Ir,e.className),children:[Lr(m,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":n}),Lr(m,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":s})]})};et.states=ed;et.options=td;et.className=Ir;et.defaultOptions=Da;et.moduleName=null;et.folderName=null;var Sr="numeric-textbox",Mr="numerictextbox";import{Fragment as Cr,jsx as Ue,jsxs as Ha}from"react/jsx-runtime";var yr="k-numerictextbox",ad=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],nd={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Ro={showSpinButton:!0,showClearButton:!0,separators:!0},K=e=>{let{size:t,rounded:o,fillMode:a,separators:n=Ro.separators,showClearButton:s=Ro.showClearButton,showSpinButton:d=Ro.showSpinButton,prefix:p,suffix:h,value:x,placeholder:b,hover:N,focus:c,valid:g,invalid:v,required:I,loading:M,disabled:S,readonly:T,id:G,"aria-label":Q,"aria-describedby":te,...oe}=e;return Ha(F,{...oe,size:t,rounded:o,fillMode:a,hover:N,focus:c,valid:g,invalid:v,required:I,loading:M,disabled:S,readonly:T,className:i(e.className,yr),children:[p&&Ha(Cr,{children:[Ue(Ne,{children:p}),n&&Ue(ke,{})]}),Ue(fe,{id:G,placeholder:b,value:x,role:"spinbutton",disabled:S,"aria-label":Q,"aria-describedby":te,"aria-invalid":v?"true":void 0}),Ue(ne,{valid:g,invalid:v,loading:M,disabled:S}),Ue(pe,{loading:M,disabled:S}),s&&Ue(ue,{loading:M,disabled:S,readonly:T,value:x}),h&&Ha(Cr,{children:[n&&Ue(ke,{}),Ue(ve,{children:h})]}),d&&Ue(et,{className:"k-input-spinner",size:t,fillMode:a,disabled:S})]})};K.states=ad;K.options=nd;K.className=yr;K.defaultOptions=Ro;K.moduleName=Sr;K.folderName=Mr;K.ariaSpec={selector:".k-numerictextbox",rules:[{selector:".k-numerictextbox > .k-input-inner",attribute:"role=spinbutton",usage:"Announces the spin button capabilities of the NumericTextBox."},{selector:".k-numerictextbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuenow (when has value)",usage:"Announces the current value of the component."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuemin (when has min)",usage:"Announces the minimum allowed value."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuemax (when has max)",usage:"Announces the maximum allowed value."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the NumericTextBox is in an invalid state."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message."},{selector:".k-numerictextbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the NumericTextBox is disabled."},{selector:".k-numerictextbox .k-spin-button > .k-button",attribute:"role=button or nodeName=button",usage:"Describes the role of the spin buttons."},{selector:".k-numerictextbox .k-spin-button > .k-button",attribute:"aria-label",usage:"The button element requires discernible text."},{selector:".k-numerictextbox.k-disabled .k-spin-button > .k-button",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the NumericTextBox is disabled."}]};var mo=K;import{jsx as rd}from"react/jsx-runtime";var Er=e=>rd(mo,{...e});import Ua from"react";import{jsx as Ar}from"react/jsx-runtime";var id="k-list-group-sticky-header",za=e=>Ar("div",{className:i(id,e.className),children:Ar("div",{className:"k-list-header-text",children:e.children})});import{jsx as ld}from"react/jsx-runtime";var sd="k-no-data",Ko=e=>{let{live:t,...o}=e;return ld("span",{...o,className:i(sd,e.className),"aria-live":t?"polite":void 0,children:e.children})};var dt="list",At=dt;import{jsx as Tr,jsxs as Or}from"react/jsx-runtime";var Ga="k-list",dd=[],cd={size:[l.undefined,l.small,l.medium,l.large]},pd={},w=e=>{let{size:t,virtualization:o,children:a,header:n,selectAll:s,optionLabel:d,customValue:p,noData:h,screenReaders:x,...b}=e,c=Ua.Children.toArray(a)[0],g=c?.props?.children?Ua.Children.count(c.props.children):Ua.Children.count(a);return Or("div",{...b,className:i(e.className,Ga,y(Ga,{size:t}),{"k-virtual-list":o}),children:[d,s,p,n&&Tr(za,{children:n}),a||(h!==void 0?h:Tr(Ko,{live:!0,children:"No data found."})),x&&a&&Or(Ko,{className:"k-sr-only",live:!0,children:[g," items found."]})]})};w.states=dd;w.options=cd;w.className=Ga;w.defaultOptions=pd;w.moduleName=dt;w.folderName=At;w.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};import{jsx as bd}from"react/jsx-runtime";var wr="k-list-container",md=[],ud={},fd={},Tt=e=>{let{...t}=e;return bd("div",{...t,className:i(e.className,wr),children:e.children})};Tt.states=md;Tt.options=ud;Tt.className=wr;Tt.defaultOptions=fd;Tt.moduleName=dt;Tt.folderName=At;var ct="checkbox",Ot=ct;import{jsx as Pr}from"react/jsx-runtime";var Bo="k-checkbox",hd=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],xd={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full]},Nd={},me=e=>{let{id:t,checked:o,indeterminate:a,hover:n,focus:s,disabled:d,invalid:p,valid:h,required:x,size:b,rounded:N,wrapperRole:c,...g}=e;return Pr("span",{className:"k-checkbox-wrap",role:c,children:Pr("input",{...g,id:t,type:"checkbox",defaultChecked:o,required:x,disabled:d||void 0,"aria-invalid":p?"true":void 0,className:i(e.className,Bo,y(Bo,{size:b,rounded:N}),E(Bo,{hover:n,focus:s,disabled:d,invalid:p,valid:h,indeterminate:a,checked:o}))})})};me.states=hd;me.options=xd;me.className=Bo;me.defaultOptions=Nd;me.moduleName=ct;me.folderName=Ot;me.ariaSpec={selector:".k-checkbox",rules:[{selector:".k-checkbox",attribute:"role=checkbox or type=checkbox",usage:"Announces the checkbox role of the element."},{selector:".k-checkbox",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name to which it will be assigned."},{selector:".k-checkbox",attribute:"aria-checked=true/false/mixed or checked",usage:"For native checkboxes the checked state is handled by the browser. aria-checked is used for custom implementations."},{selector:".k-checkbox",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the checkbox."},{selector:".k-checkbox",attribute:"disabled or aria-disabled=true (when disabled)",usage:"For native checkboxes use the HTML disabled attribute. aria-disabled for custom implementations."},{selector:".k-invalid, .ng-invalid",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the CheckBox is in a form and announces the invalid state."}]};var Oe=me;import{jsx as gd}from"react/jsx-runtime";var Rr="k-checkbox-list",vd=[],kd={},Kr={layout:"vertical"},ie=e=>{let{layout:t=Kr.layout,...o}=e;return gd("ul",{...o,className:i(e.className,Rr,{[`k-list-${t}`]:t}),children:e.children})};ie.states=vd;ie.options=kd;ie.className=Rr;ie.defaultOptions=Kr;ie.moduleName=ct;ie.folderName=Ot;import{jsx as Md}from"react/jsx-runtime";var Br="k-checkbox-list-item",Ld=[],Id={},Sd={},se=e=>{let{...t}=e;return Md("li",{...t,className:i(e.className,Br),children:e.children})};se.states=Ld;se.options=Id;se.className=Br;se.defaultOptions=Sd;se.moduleName=ct;se.folderName=Ot;import{Fragment as Cd,jsx as _r,jsxs as yd}from"react/jsx-runtime";var Ge=({children:e="Label",id:t="cb-label-after",...o})=>yd(Cd,{children:[_r(Oe,{id:t,...o}),_r("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as Wk,jsx as Jk,jsxs as Yk}from"react/jsx-runtime";import{Fragment as tg,jsx as eg,jsxs as og}from"react/jsx-runtime";import{Fragment as sg,jsx as ig,jsxs as lg}from"react/jsx-runtime";import{jsx as mg}from"react/jsx-runtime";import{jsx as hg}from"react/jsx-runtime";import{jsx as kg}from"react/jsx-runtime";import{jsx as Me,jsxs as Dr}from"react/jsx-runtime";var Ed=ie.options,Ad=ie.states,Td={...ie.defaultOptions,variant:"vertical"},Od=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],wd=[],wt=e=>{let{variant:t,...o}=e;return t==="horizontal"?Dr(ie,{layout:"horizontal",...o,children:[Me(se,{children:Me(Ge,{id:R("cb"),defaultChecked:!0,children:"Label"})}),Me(se,{children:Me(Ge,{id:R("cb"),children:"Label"})}),Me(se,{children:Me(Ge,{id:R("cb"),children:"Label"})})]}):Dr(ie,{...o,children:[Me(se,{children:Me(Ge,{id:R("cb"),defaultChecked:!0,children:"Label"})}),Me(se,{children:Me(Ge,{id:R("cb"),children:"Label"})}),Me(se,{children:Me(Ge,{id:R("cb"),children:"Label"})})]})};wt.options=Ed;wt.states=Ad;wt.variants=Od;wt.defaultOptions=Td;wt.modifiers=wd;wt.className=ie.className;import{jsx as Dd}from"react/jsx-runtime";var Pd=Oe.options,Rd=Oe.states,Kd=Oe.defaultOptions,Bd=[],_d=[],Pt=e=>Dd(Ge,{id:R("checkbox"),...e,defaultChecked:!0,children:"Label"});Pt.options=Pd;Pt.states=Rd;Pt.variants=Bd;Pt.defaultOptions=Kd;Pt.modifiers=_d;Pt.className=Oe.className;import{jsx as pt,jsxs as Gd}from"react/jsx-runtime";var Fa="k-list-item",Hd=[r.hover,r.focus,r.selected,r.disabled],zd={},Ud={},A=e=>{let{text:t,groupLabel:o,group:a,iconName:n,iconClassName:s,showCheckbox:d,checked:p,hover:h,focus:x,selected:b,disabled:N,actions:c,description:g,id:v,...I}=e,M=t||e.children;return Gd("li",{...I,id:v,role:a?"presentation":"option",tabIndex:a?void 0:x?0:-1,"aria-selected":!a&&b?"true":a?void 0:"false","aria-disabled":!a&&N?"true":void 0,className:i(e.className,a?"k-list-group-item":Fa,E(Fa,{hover:h,focus:x,disabled:N,selected:b})),children:[d&&pt(me,{checked:p}),n&&pt("span",{className:"k-list-item-icon-wrapper",children:pt(L,{icon:n,className:i("k-list-item-icon",s)})}),pt("span",{className:"k-list-item-text",children:M}),c&&pt("div",{className:"k-list-item-actions",children:c}),g&&pt("span",{className:"k-list-item-description",children:g}),o&&o!==""&&pt("div",{className:"k-list-item-group-label",children:o})]})};A.states=Hd;A.options=zd;A.className=Fa;A.defaultOptions=Ud;A.moduleName=dt;A.folderName=At;A.ariaSpec={selector:".k-list-item",rules:[{selector:".k-list-item",attribute:"role=option",usage:"Each list item is an option in the listbox."},{selector:".k-list-item",attribute:"id",usage:"ID for aria-activedescendant reference."},{selector:".k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state of the option."},{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-item-icon",attribute:"aria-hidden=true",usage:"Decorative icons are hidden from assistive technology."}]};import{jsx as Vd}from"react/jsx-runtime";var Fd="k-list-ul",Fe=e=>{let{children:t,role:o,id:a,...n}=e;re