@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 116 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 Mn(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"},Pe={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 ta={};function R(e){return ta[e]=(ta[e]||0)+1,`k-${e}-${ta[e]}`}import{Fragment as Bi,jsx as Cn}from"react/jsx-runtime";var oa="k-font-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]},Ri={},oo=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:s,...d}=e;return a?Cn("span",{...d,className:i(e.className,oa,y(oa,{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"}):Cn(Bi,{})};oo.states=wi;oo.options=Pi;oo.className=oa;oo.defaultOptions=Ri;var yn=oo;import{Fragment as Di,jsx as Co}from"react/jsx-runtime";var aa="k-svg-icon",Ki=[],_i={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:[Pe.outline,Pe.solid,Pe.duotone]},na={viewBox:"0 0 24 24",variant:Pe.outline},ao=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:s=na.viewBox,variant:d=na.variant,icon:p,...h}=e;if(!p)return Co(Di,{});if(p==="none")return Co("span",{...h,className:i(e.className,aa,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 Co("span",{...h,className:i(e.className,aa,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:Co("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})})};ao.states=Ki;ao.options=_i;ao.className=aa;ao.defaultOptions=na;var ra=ao;import*as ia from"@progress/kendo-svg-icons";var En="icon",Tn="icons";import{useContext as zi}from"react";import{createContext as Hi}from"react";var An=Hi({iconsType:"svg"});import{Fragment as On,jsx as no}from"react/jsx-runtime";var yo="k-icon",Ui=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Gi=[],Fi={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:[Pe.outline,Pe.solid,Pe.duotone]},Eo={viewBox:"0 0 24 24",type:"svg",variant:Pe.outline},L=e=>{let{iconsType:t}=zi(An),{size:o,themeColor:a,icon:n,type:s=t||Eo.type,rotate:d,flip:p,viewBox:h=Eo.viewBox,variant:x=Eo.variant,...b}=e;if(!n)return no(On,{});if((t||s)==="svg"){if(n==="none")return no(ra,{...b,className:i(e.className,yo),icon:n,size:o,variant:x});let c=ia[n]?n:Ui(`${n}-icon`);return ia[c]?no(ra,{...b,className:i(e.className,yo),icon:ia[c],size:o,themeColor:a,rotate:d,flip:p,viewBox:h,variant:x}):no(On,{})}return no(yn,{...b,className:i(e.className,yo),icon:n,size:o,themeColor:a,rotate:d,flip:p})};L.states=Gi;L.options=Fi;L.defaultOptions=Eo;L.className=yo;L.moduleName=En;L.folderName=Tn;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 sa="button",wn=sa;import{Fragment as Pn,jsx as Lt,jsxs as Rn}from"react/jsx-runtime";var ro="k-button",Vi=["icon-button"],$i=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],Xi={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]},la={showArrow:!1,arrowIconName:"chevron-down"},m=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:s,showArrow:d=la.showArrow,arrowIconName:p=la.arrowIconName,variant:h,hover:x,focus:b,active:N,selected:c,disabled:g,togglable:v,ariaDisabled:I,icon:M,iconSize:S,text:A,iconClassName:V,className:ee,...ae}=e,ne=M!=null,re=e.children!==void 0;return Rn(t,{className:i(ee,ro,Mn(ro,h),y(ro,{size:o,rounded:a,fillMode:n,themeColor:s}),E(ro,{hover:x,focus:b,active:N,disabled:g||I,selected:c}),{"k-icon-button":!A&&!re&&ne}),"aria-pressed":v?c?"true":"false":void 0,...ae,"aria-disabled":I?"true":void 0,disabled:g||void 0,children:[typeof M=="string"&&M&&Lt(L,{className:i(V,"k-button-icon"),icon:M,size:S}),M&&typeof M!="string"&&Lt(Pn,{children:M}),A?Rn(Pn,{children:[A&&Lt("span",{className:"k-button-text",children:A}),e.children]}):e.children&&Lt("span",{className:"k-button-text",children:e.children}),d&&Lt("span",{className:"k-menu-button-arrow k-button-arrow",children:Lt(L,{icon:p})})]})};m.states=$i;m.options=Xi;m.variants=Vi;m.className=ro;m.defaultOptions=la;m.moduleName=sa;m.folderName=wn;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 qi}from"react/jsx-runtime";var Qe=e=>qi(m,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Ji}from"react/jsx-runtime";var io=e=>Ji(m,{icon:"folder",children:"Button",...e});import{jsx as Wi}from"react/jsx-runtime";var dt=e=>Wi(m,{children:"Button",...e});import{jsx as da}from"react/jsx-runtime";var Yi=m.options,Qi=m.states,Zi={...m.defaultOptions,variant:"text"},ji=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],es=[],It=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return da(Qe,{...o,icon:"star"});case"icon-and-text":return da(io,{...o,icon:"star",children:"Button"});default:return da(dt,{...o,children:"Button"})}};It.options=Yi;It.states=Qi;It.variants=ji;It.defaultOptions=Zi;It.modifiers=es;It.className=m.className;var ca="button",Bn=ca;import{jsx as ns}from"react/jsx-runtime";var so="k-button-group",ts=[r.disabled],os={fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},as={},B=e=>{let{fillMode:t,disabled:o,stretched:a,...n}=e;return ns("div",{role:"group",...n,className:i(e.className,so,y(so,{fillMode:t}),E(so,{disabled:o}),{[`${so}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};B.states=ts;B.options=os;B.className=so;B.defaultOptions=as;B.moduleName=ca;B.folderName=Bn;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 Eu,jsx as yu,jsxs as Tu}from"react/jsx-runtime";import{Fragment as Bu,jsx as Ru,jsxs as Ku}from"react/jsx-runtime";import{Fragment as Gu,jsx as Uu,jsxs as Fu}from"react/jsx-runtime";import{Fragment as Wu,jsx as Ju,jsxs as Yu}from"react/jsx-runtime";import{Fragment as of,jsx as tf,jsxs as af}from"react/jsx-runtime";import{Fragment as cf,jsx as df,jsxs as pf}from"react/jsx-runtime";import{jsx as Ue,jsxs as pa}from"react/jsx-runtime";var rs={...m.options,...B.options},is=m.states,ss={...m.defaultOptions,...B.defaultOptions,variant:"text-button"},ls=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],ds=[],St=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?pa(B,{fillMode:a.fillMode,className:o,children:[Ue(m,{...a,icon:"star"}),Ue(m,{...a,icon:"star"}),Ue(m,{...a,icon:"star"})]}):t==="icon-text-button"?pa(B,{fillMode:a.fillMode,className:o,children:[Ue(m,{...a,icon:"star",children:"First"}),Ue(m,{...a,icon:"star",children:"Middle"}),Ue(m,{...a,icon:"star",children:"Last"})]}):pa(B,{fillMode:a.fillMode,className:o,children:[Ue(m,{...a,children:"First"}),Ue(m,{...a,children:"Middle"}),Ue(m,{...a,children:"Last"})]})};St.options=rs;St.states=is;St.variants=ls;St.defaultOptions=ss;St.modifiers=ds;St.className=B.className;var lo="input",To=lo;import{jsx as us}from"react/jsx-runtime";var Ao="k-input",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={},$=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,Ao,y(Ao,{size:h,rounded:x,fillMode:b}),E(Ao,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p}))})};$.states=cs;$.options=ps;$.className=Ao;$.defaultOptions=ms;$.moduleName=lo;$.folderName=To;import{jsx as xs}from"react/jsx-runtime";var Oo="k-picker",fs=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],bs={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]},hs={},Re=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 xs("span",{...N,className:i(e.className,Oo,y(Oo,{size:h,rounded:x,fillMode:b}),E(Oo,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p})),children:e.children})};Re.states=fs;Re.options=bs;Re.className=Oo;Re.defaultOptions=hs;Re.moduleName=lo;Re.folderName=To;import{Fragment as ks,jsx as ma}from"react/jsx-runtime";var Kn="k-clear-value",Ns=[r.disabled,r.loading,r.readonly],vs={},be=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?ma(ks,{}):ma("span",{className:i(e.className,Kn),children:ma(L,{icon:"x"})})};be.states=Ns;be.options=vs;be.className=Kn;import{jsx as Is}from"react/jsx-runtime";var ua="k-input-inner",gs=[],Ls={},wo={type:"text",autocomplete:"off",value:"",placeholder:""},he=e=>{let{value:t=wo.value,type:o=wo.type,placeholder:a=wo.placeholder,autocomplete:n=wo.autocomplete,disabled:s,readOnly:d,...p}=e;return Is("input",{...p,type:o,className:i(e.className,ua,y(ua,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:s||void 0,readOnly:d||void 0})};he.states=gs;he.options=Ls;he.className=ua;import{jsx as _n,jsxs as Cs}from"react/jsx-runtime";var fa="k-input-inner",Ss=[],Ms={},ct=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:s,...d}=e;return Cs("span",{...d,className:i(e.className,fa,y(fa,e)),children:[n,!n&&s&&_n(L,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&_n("span",{className:"k-input-value-text",children:t})]})};ct.states=Ss;ct.options=Ms;ct.className=fa;import{jsx as Ts}from"react/jsx-runtime";var ba="k-input-inner",ys=[],Es={},Dn={value:"",placeholder:""},ha=e=>{let{value:t=Dn.value,placeholder:o=Dn.placeholder,rows:a,disabled:n,...s}=e;return Ts("textarea",{...s,className:i(e.className,ba,y(ba,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};ha.states=ys;ha.options=Es;ha.className=ba;import{Fragment as Os,jsx as Hn}from"react/jsx-runtime";var zn="k-input-loading-icon",As=[r.disabled,r.loading],ue=e=>{let{disabled:t,loading:o}=e;return t||!o?Hn(Os,{}):Hn("span",{className:i(e.className,zn,"k-icon k-i-loading")})};ue.states=As;ue.className=zn;import{Fragment as Rs,jsx as Un}from"react/jsx-runtime";var Gn="k-input-validation-icon",ws=[r.valid,r.invalid,r.disabled,r.loading],Ps={},ie=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,s=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?Un(Rs,{}):Un(L,{className:i(Gn),icon:s})};ie.states=ws;ie.options=Ps;ie.className=Gn;import{Fragment as _s,jsx as Fn}from"react/jsx-runtime";var Bs="k-input-prefix",Ks={direction:"horizontal"},ke=e=>{let{direction:t=Ks.direction,...o}=e;return e.children?Fn("span",{...o,className:i(Bs,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Fn(_s,{})};import{Fragment as zs,jsx as Vn}from"react/jsx-runtime";var Ds="k-input-suffix",Hs={direction:"horizontal"},ge=e=>{let{direction:t=Hs.direction,...o}=e;return e.children?Vn("span",{...o,className:i(Ds,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Vn(zs,{})};import{jsx as pb}from"react/jsx-runtime";import{jsx as Gs}from"react/jsx-runtime";var Us="k-input-suffix-text",xa=e=>{let{children:t,...o}=e;return Gs("span",{...o,className:i(Us,e.className),children:t})};import{jsx as Vs}from"react/jsx-runtime";var $n="k-input-separator",Fs={direction:"vertical"},Le=e=>{let{direction:t=Fs.direction,...o}=e;return Vs("span",{...o,className:i($n,e.className,{[`${$n}-${t}`]:t})})};import{Fragment as Xn,jsx as Be,jsxs as Na}from"react/jsx-runtime";var $s=$.states,Xs=$.defaultOptions,qs=$.options,Js=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Ws=[],Mt=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 Na($,{...p,valid:o,invalid:a,loading:n,disabled:s,readonly:d,style:{width:300},children:[h&&Na(Xn,{children:[Be(ke,{children:Be(L,{icon:"lock"})}),c&&Be(Le,{})]}),Be(he,{placeholder:"Placeholder",value:"Value"}),N&&Be(ie,{valid:o,invalid:a,loading:n,disabled:s}),Be(ue,{loading:n,disabled:s}),b&&Be(be,{loading:n,disabled:s,readonly:d,value:"Value"}),x&&Na(Xn,{children:[c&&Be(Le,{}),Be(ge,{children:Be(dt,{size:p.size,fillMode:"clear",children:"Send"})})]})]})};Mt.options=qs;Mt.states=$s;Mt.variants=Ws;Mt.defaultOptions=Xs;Mt.modifiers=Js;Mt.className=$.className;import{jsx as qn,jsxs as Zs}from"react/jsx-runtime";var Jn="k-color-preview",Ys=[],Qs={},Ze=e=>{let{color:t,iconName:o,...a}=e;return Zs("span",{...a,className:i(e.className,Jn,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&qn(L,{icon:o,className:"k-color-preview-icon"}),qn("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ze.states=Ys;Ze.options=Qs;Ze.className=Jn;var va="popup",Wn=va;import{jsx as Yn}from"react/jsx-runtime";var Qn="k-animation-container",js=[],el={},ka={positionMode:"absolute",shown:!0},Ke=e=>{let{positionMode:t=ka.positionMode,shown:o=ka.shown,animationStyle:a,offset:n,...s}=e;return Yn("div",{...s,style:{...n,...e.style},className:i(e.className,Qn,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Yn("div",{className:"k-child-animation-container",style:a,children:e.children})})};Ke.states=js;Ke.options=el;Ke.className=Qn;Ke.defaultOptions=ka;Ke.moduleName=va;Ke.folderName=Wn;var ga="popup",Zn=ga;import{jsx as jn}from"react/jsx-runtime";var er="k-popup",tl=[],ol={},tr={positionMode:"absolute"},z=e=>{let{offset:t,positionMode:o=tr.positionMode,animationStyle:a,containerClassName:n,containerRole:s,containerAriaLabel:d,...p}=e;return jn(Ke,{positionMode:o,offset:t,animationStyle:a,className:n,role:s,"aria-label":d,children:jn("div",{...p,className:i(e.className,er),children:e.children})})};z.states=tl;z.options=ol;z.className=er;z.defaultOptions=tr;z.moduleName=ga;z.folderName=Zn;z.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 La="action-buttons",or=La;import{jsx as rl}from"react/jsx-runtime";var Po="k-actions",al=[],nl={},Ia={alignment:"start",orientation:"horizontal"},_e=e=>{let{alignment:t=Ia.alignment,orientation:o=Ia.orientation,...a}=e;return rl("div",{...a,className:i(Po,{[`${Po}-${t}`]:t,[`${Po}-${o}`]:o},e.className),children:e.children})};_e.states=al;_e.options=nl;_e.className=Po;_e.defaultOptions=Ia;_e.moduleName=La;_e.folderName=or;import{jsx as sl}from"react/jsx-runtime";var il="k-actionsheet-footer",ar={alignment:"stretched",orientation:"horizontal"},je=e=>{let{alignment:t=ar.alignment,orientation:o=ar.orientation,template:a,as:n=a?"div":_e,...s}=e;return sl(n,{...s,...!a&&{alignment:t,orientation:o},className:i(e.className,il),children:e.children})};var Sa="searchbox",nr=Sa;import{jsx as co,jsxs as cl}from"react/jsx-runtime";var rr="k-searchbox",ll=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],dl={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]},Ma={showIcon:!0,icon:"search"},Ie=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=Ma.showIcon,icon:v=Ma.icon,"aria-label":I,...M}=e;return cl($,{...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,rr),children:[g&&co(L,{className:"k-input-icon",icon:v}),co(he,{placeholder:o,value:t,"aria-label":I}),co(ue,{...e}),co(ie,{...e}),co(be,{...e})]})};Ie.states=ll;Ie.options=dl;Ie.className=rr;Ie.defaultOptions=Ma;Ie.moduleName=Sa;Ie.folderName=nr;import{jsx as Kh}from"react/jsx-runtime";var Ca="textbox",ir=Ca;import{Fragment as sr,jsx as et,jsxs as ya}from"react/jsx-runtime";var lr="k-textbox",pl=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ml={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={showClearButton:!0,showValidationIcon:!0,separators:!0},Q=e=>{let{size:t,rounded:o,fillMode:a,separators:n=Ro.separators,showClearButton:s=Ro.showClearButton,showValidationIcon:d=Ro.showValidationIcon,prefix:p,suffix:h,type:x,value:b,placeholder:N,hover:c,focus:g,valid:v,invalid:I,required:M,loading:S,disabled:A,readonly:V,id:ee,"aria-label":ae,"aria-describedby":ne,...re}=e;return ya($,{...re,size:t,rounded:o,fillMode:a,hover:c,focus:g,valid:v,invalid:I,required:M,loading:S,disabled:A,readonly:V,className:i(e.className,lr),children:[p&&ya(sr,{children:[et(ke,{children:p}),n&&et(Le,{})]}),et(he,{id:ee,placeholder:N,value:b,type:x,disabled:A,"aria-label":ae,"aria-describedby":ne,"aria-invalid":I?"true":void 0}),d&&et(ie,{valid:v,invalid:I,loading:S,disabled:A}),et(ue,{loading:S,disabled:A}),s&&et(be,{loading:S,disabled:A,readonly:V,value:b}),h&&ya(sr,{children:[n&&et(Le,{}),et(ge,{children:h})]})]})};Q.states=pl;Q.options=ml;Q.className=lr;Q.defaultOptions=Ro;Q.moduleName=Ca;Q.folderName=ir;Q.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 po=Q;import{jsx as ul}from"react/jsx-runtime";var dr=e=>ul(po,{...e});import{Fragment as ex,jsx as jh}from"react/jsx-runtime";import{Fragment as ix,jsx as rx}from"react/jsx-runtime";import{jsx as cx}from"react/jsx-runtime";import{jsx as Ea}from"react/jsx-runtime";var fl=Q.states,bl=Q.defaultOptions,hl=Q.options,xl=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Nl=[],Ct=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?Ea(L,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?Ea(dt,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),Ea(dr,{value:"Value",style:{width:300},...o,...a})};Ct.options=hl;Ct.states=fl;Ct.variants=Nl;Ct.defaultOptions=bl;Ct.modifiers=xl;Ct.className=Q.className;import{jsx as tt,jsxs as Ta}from"react/jsx-runtime";var cr="k-actionsheet-titlebar",vl={},se=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 Ta("div",{...c,className:i(e.className,cr),children:[Ta("div",{className:"k-actionsheet-titlebar-group",children:[a&&tt("div",{className:"k-actionsheet-actions",children:a}),!N&&Ta("div",{className:"k-actionsheet-title",id:b,children:[t&&tt("div",{className:"k-text-center",children:t}),o&&tt("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&tt("div",{className:"k-actionsheet-title",id:b,children:N}),n&&tt("div",{className:"k-actionsheet-actions",children:n})]}),(d||s)&&tt("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?tt(Q,{value:p,placeholder:h,size:x?"large":"medium","aria-label":t||h||"Input"}):tt(Ie,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};se.className=cr;se.defaultOptions=vl;import{jsx as Aa,jsxs as Il}from"react/jsx-runtime";var Oa="k-actionsheet-view",kl=[],gl={},Ll={},yt=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:s,titleId:d,...p}=e,h=n?.type===se&&Aa(se,{adaptive:t,titleId:d,...n?.props}),x=s?.type===je&&Aa(je,{...s?.props});return Il("div",{...p,className:i(e.className,Oa,{[`${Oa}-animated`]:o}),children:[h,Aa("div",{className:"k-actionsheet-content",children:a}),x]})};yt.states=kl;yt.options=gl;yt.className=Oa;yt.defaultOptions=Ll;var mo="action-sheet",Bo=mo;var wa="overlay",pr=wa;import{jsx as yl}from"react/jsx-runtime";var mr="k-overlay",Sl=[],Ml={},Cl={},ot=e=>{let{...t}=e;return yl("div",{...t,className:i(e.className,mr),children:e.children})};ot.states=Sl;ot.options=Ml;ot.className=mr;ot.defaultOptions=Cl;ot.moduleName=wa;ot.folderName=pr;import{jsx as Ko,jsxs as Al}from"react/jsx-runtime";var ur="k-actionsheet",El=[],Tl={},uo={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},U=e=>{let{side:t=uo.side,fullscreen:o=uo.fullscreen,adaptive:a=uo.adaptive,overlay:n=uo.overlay,template:s,children:d,header:p,footer:h,id:x,...b}=e,N=x&&!s&&p?`${x}-title`:void 0;return Al("div",{className:"k-actionsheet-container",children:[n&&Ko(ot,{}),Ko(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:Ko("div",{...b,id:x,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":N,className:i(e.className,ur,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||Ko(yt,{header:p,footer:h,adaptive:a,titleId:N,...e,children:d})})})]})};U.states=El;U.options=Tl;U.className=ur;U.defaultOptions=uo;U.moduleName=mo;U.folderName=Bo;U.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 Rl}from"react/jsx-runtime";var fr="k-actionsheet-container",Ol=[],wl={},Pl={},Et=e=>{let{children:t,...o}=e;return Rl("div",{...o,className:fr,children:t})};Et.states=Ol;Et.options=wl;Et.className=fr;Et.defaultOptions=Pl;Et.moduleName=mo;Et.folderName=Bo;import{jsx as Bl}from"react/jsx-runtime";var Pa=e=>{let{...t}=e;return Bl("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};import{Fragment as _l,jsx as fo,jsxs as Ra}from"react/jsx-runtime";var Ba="k-actionsheet-item",Kl=[r.hover,r.focus,r.selected,r.disabled],at=e=>{let{iconName:t,text:o,description:a,hover:n,focus:s,selected:d,disabled:p,...h}=e;return Ra("span",{...h,className:i(e.className,Ba,E(Ba,{hover:n,focus:s,selected:d,disabled:p})),children:[!e.children&&fo(_l,{children:Ra("span",{className:"k-actionsheet-action",children:[t&&fo("span",{className:"k-icon-wrap",children:fo(L,{className:"k-actionsheet-item-icon",icon:t})}),Ra("span",{className:"k-actionsheet-item-text",children:[o&&fo("span",{className:"k-actionsheet-item-title",children:o}),a&&fo("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};at.states=Kl;at.className=Ba;import{jsx as dN,jsxs as cN}from"react/jsx-runtime";import{jsx as fN}from"react/jsx-runtime";import{jsx as NN}from"react/jsx-runtime";import{jsx as LN}from"react/jsx-runtime";import{jsx as Z,jsxs as Ka}from"react/jsx-runtime";var Dl=U.options,Hl=U.states,hr={...U.defaultOptions,variant:"normal"},zl=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Ul=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Tt=e=>{let{variant:t,modifiers:o,...a}={...hr,...e},n={},s=Ka(Pa,{children:[Z(at,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),Z(at,{text:"Add to Favorites",iconName:"heart"}),Z(at,{text:"Upload New",iconName:"upload",disabled:!0}),Z("hr",{className:"k-hr"}),Z(at,{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"?Z(U,{...a,adaptive:!0,fullscreen:n.fullScreen,header:Z(se,{actionsStart:n.actionsStart?Z(m,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?Z(m,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:p,subtitle:n.subtitle}),footer:n.footer?Ka(je,{alignment:"stretched",children:[Z(m,{text:"Cancel",size:"large",themeColor:"base"}),Z(m,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):Z(U,{...a,fullscreen:n.fullScreen,header:Z(se,{actionsStart:n.actionsStart?Z(m,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?Z(m,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Ka(je,{alignment:"stretched",children:[Z(m,{text:"Apply",themeColor:"primary"}),Z(m,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Tt.options=Dl;Tt.states=Hl;Tt.variants=zl;Tt.defaultOptions=hr;Tt.modifiers=Ul;Tt.className=U.className;var _a="slider",xr=_a;import{jsx as At,jsxs as Da}from"react/jsx-runtime";var bo="k-slider",Gl=[r.hover,r.focus,r.active,r.disabled,r.readonly],Fl={},Se={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=Se.type,orientation:o=Se.orientation,gradientType:a=Se.gradientType,readonly:n=Se.readonly,disabled:s=Se.disabled,handlePosition:d=Se.handlePosition,showButtons:p=Se.showButtons,showTicks:h=Se.showTicks,value:x=Se.value,min:b=Se.min,max:N=Se.max,startValue:c,endValue:g,hover:v,focus:I,active:M,trackStyle:S,dir:A,...V}=e,ae=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),ne,re;return o==="horizontal"?(ne=A==="rtl"?"chevron-left":"chevron-right",re=A==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(ne="chevron-up",re="chevron-down"),Da("div",{...V,className:i(bo,e.className,E(bo,{readonly:n,disabled:s}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:A,children:[p&&At(m,{className:"k-button-decrease",rounded:"full",icon:re,tabIndex:-1,title:"Decrease"}),Da("div",{className:"k-slider-track-wrap",children:[h&&At("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),Da("div",{className:"k-slider-track",style:S,children:[At("div",{className:"k-slider-selection"}),t==="range"&&At("span",{className:i("k-draghandle","k-draghandle-start",E(bo,{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":ae,"aria-disabled":s?"true":void 0,"aria-readonly":n?"true":void 0,"aria-label":V["aria-label"]?`${V["aria-label"]} start`:"Range start"}),At("span",{className:i("k-draghandle",`k-draghandle-${d}`,E(bo,{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":ae,"aria-disabled":s?"true":void 0,"aria-readonly":n?"true":void 0,"aria-label":t==="range"?V["aria-label"]?`${V["aria-label"]} end`:"Range end":V["aria-label"]})]})]}),p&&At(m,{className:"k-button-increase",rounded:"full",icon:ne,tabIndex:-1,title:"Increase"})]})};D.states=Gl;D.options=Fl;D.className=bo;D.defaultOptions=Se;D.moduleName=_a;D.folderName=xr;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 Nr}from"react/jsx-runtime";var vr="k-tick",Vl=[],$l={},kr={label:!1},C=e=>{let{style:t,label:o=kr.label,orientation:a,large:n,text:s,...d}=e;return Nr("li",{...d,role:"presentation",title:s||"Tick",className:i(e.className,vr,{[`k-tick-${a}`]:a,"k-tick-large":n}),style:t,children:o&&Nr("span",{className:"k-label",children:s})})};C.states=Vl;C.options=$l;C.className=vr;C.defaultOptions=kr;import{Fragment as Xl,jsx as Me,jsxs as ql}from"react/jsx-runtime";var gr=e=>Me(D,{"aria-label":e["aria-label"]||"Slider",children:ql(Xl,{children:[Me(C,{className:"k-first",label:!0,large:!0,text:"0"}),Me(C,{}),Me(C,{}),Me(C,{}),Me(C,{}),Me(C,{label:!0,large:!0,text:"5"}),Me(C,{}),Me(C,{}),Me(C,{}),Me(C,{}),Me(C,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as Jl,jsx as Ce,jsxs as Wl}from"react/jsx-runtime";var Lr=e=>Ce(D,{children:Wl(Jl,{children:[Ce(C,{className:"k-first",label:!0,large:!0,text:"0"}),Ce(C,{}),Ce(C,{}),Ce(C,{}),Ce(C,{}),Ce(C,{label:!0,large:!0,text:"5"}),Ce(C,{}),Ce(C,{}),Ce(C,{}),Ce(C,{}),Ce(C,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as cv,jsx as dv,jsxs as pv}from"react/jsx-runtime";import{Fragment as hv,jsx as bv,jsxs as xv}from"react/jsx-runtime";import{jsx as Yl}from"react/jsx-runtime";var Ha=e=>Yl(D,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as Ql}from"react/jsx-runtime";var za=e=>Ql(D,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as Ev,jsx as yv,jsxs as Tv}from"react/jsx-runtime";import{Fragment as Rv,jsx as Pv,jsxs as Bv}from"react/jsx-runtime";import{jsx as De,jsxs as Ir}from"react/jsx-runtime";var Zl=D.options,jl=D.states,Sr={...D.defaultOptions,variant:"horizontal",label:!0},ed=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],td=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],Ot=e=>{let{variant:t,modifiers:o,...a}=e,n=Sr.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"?Ir(Lr,{style:{height:"300px",...d},...a,...s,children:[De(C,{label:n,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),De(C,{label:n,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),De(C,{label:n,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),De(C,{label:n,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),De(C,{label:n,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):Ir(gr,{style:{width:"400px",...d},...a,...s,children:[De(C,{label:n,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),De(C,{label:n,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),De(C,{label:n,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),De(C,{label:n,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),De(C,{label:n,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};Ot.options=Zl;Ot.states=jl;Ot.variants=ed;Ot.defaultOptions=Sr;Ot.modifiers=td;Ot.className=D.className;import{jsx as Mr,jsxs as id}from"react/jsx-runtime";var Cr="k-spin-button",nd=[],rd={size:[l.undefined,l.small,l.medium,l.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Ua={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},nt=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:n=Ua.increaseLabel,decreaseLabel:s=Ua.decreaseLabel,...d}=e;return id("span",{...d,className:i(Cr,e.className),children:[Mr(m,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":n}),Mr(m,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":s})]})};nt.states=nd;nt.options=rd;nt.className=Cr;nt.defaultOptions=Ua;nt.moduleName=null;nt.folderName=null;var yr="numeric-textbox",Er="numerictextbox";import{Fragment as Tr,jsx as Ge,jsxs as Ga}from"react/jsx-runtime";var Ar="k-numerictextbox",sd=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],ld={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]},_o={showSpinButton:!0,showClearButton:!0,separators:!0},K=e=>{let{size:t,rounded:o,fillMode:a,separators:n=_o.separators,showClearButton:s=_o.showClearButton,showSpinButton:d=_o.showSpinButton,prefix:p,suffix:h,value:x,placeholder:b,hover:N,focus:c,valid:g,invalid:v,required:I,loading:M,disabled:S,readonly:A,id:V,"aria-label":ee,"aria-describedby":ae,...ne}=e;return Ga($,{...ne,size:t,rounded:o,fillMode:a,hover:N,focus:c,valid:g,invalid:v,required:I,loading:M,disabled:S,readonly:A,className:i(e.className,Ar),children:[p&&Ga(Tr,{children:[Ge(ke,{children:p}),n&&Ge(Le,{})]}),Ge(he,{id:V,placeholder:b,value:x,role:"spinbutton",disabled:S,"aria-label":ee,"aria-describedby":ae,"aria-invalid":v?"true":void 0}),Ge(ie,{valid:g,invalid:v,loading:M,disabled:S}),Ge(ue,{loading:M,disabled:S}),s&&Ge(be,{loading:M,disabled:S,readonly:A,value:x}),h&&Ga(Tr,{children:[n&&Ge(Le,{}),Ge(ge,{children:h})]}),d&&Ge(nt,{className:"k-input-spinner",size:t,fillMode:a,disabled:S})]})};K.states=sd;K.options=ld;K.className=Ar;K.defaultOptions=_o;K.moduleName=yr;K.folderName=Er;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 ho=K;import{jsx as dd}from"react/jsx-runtime";var Or=e=>dd(ho,{...e});import Va from"react";import{jsx as wr}from"react/jsx-runtime";var cd="k-list-group-sticky-header",Fa=e=>wr("div",{className:i(cd,e.className),children:wr("div",{className:"k-list-header-text",children:e.children})});import{jsx as md}from"react/jsx-runtime";var pd="k-no-data",Do=e=>{let{live:t,...o}=e;return md("span",{...o,className:i(pd,e.className),"aria-live":t?"polite":void 0,children:e.children})};var pt="list",wt=pt;import{jsx as Pr,jsxs as Rr}from"react/jsx-runtime";var $a="k-list",ud=[],fd={size:[l.undefined,l.small,l.medium,l.large]},bd={},w=e=>{let{size:t,virtualization:o,children:a,header:n,selectAll:s,optionLabel:d,customValue:p,noData:h,screenReaders:x,...b}=e,c=Va.Children.toArray(a)[0],g=c?.props?.children?Va.Children.count(c.props.children):Va.Children.count(a);return Rr("div",{...b,className:i(e.className,$a,y($a,{size:t}),{"k-virtual-list":o}),children:[d,s,p,n&&Pr(Fa,{children:n}),a||(h!==void 0?h:Pr(Do,{live:!0,children:"No data found."})),x&&a&&Rr(Do,{className:"k-sr-only",live:!0,children:[g," items found."]})]})};w.states=ud;w.options=fd;w.className=$a;w.defaultOptions=bd;w.moduleName=pt;w.folderName=wt;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 vd}from"react/jsx-runtime";var Br="k-list-container",hd=[],xd={},Nd={},Pt=e=>{let{...t}=e;return vd("div",{...t,className:i(e.className,Br),children:e.children})};Pt.states=hd;Pt.options=xd;Pt.className=Br;Pt.defaultOptions=Nd;Pt.moduleName=pt;Pt.folderName=wt;var mt="checkbox",Rt=mt;import{jsx as Kr}from"react/jsx-runtime";var Ho="k-checkbox",kd=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],gd={size:[l.undefined,l.small,l.medium,l.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full]},Ld={},fe=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 Kr("span",{className:"k-checkbox-wrap",role:c,children:Kr("input",{...g,id:t,type:"checkbox",defaultChecked:o,required:x,disabled:d||void 0,"aria-invalid":p?"true":void 0,className:i(e.className,Ho,y(Ho,{size:b,rounded:N}),E(Ho,{hover:n,focus:s,disabled:d,invalid:p,valid:h,indeterminate:a,checked:o}))})})};fe.states=kd;fe.options=gd;fe.className=Ho;fe.defaultOptions=Ld;fe.moduleName=mt;fe.folderName=Rt;fe.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 we=fe;import{jsx as Md}from"react/jsx-runtime";var _r="k-checkbox-list",Id=[],Sd={},Dr={layout:"vertical"},le=e=>{let{layout:t=Dr.layout,...o}=e;return Md("ul",{...o,className:i(e.className,_r,{[`k-list-${t}`]:t}),children:e.children})};le.states=Id;le.options=Sd;le.className=_r;le.defaultOptions=Dr;le.moduleName=mt;le.folderName=Rt;import{jsx as Td}from"react/jsx-runtime";var Hr="k-checkbox-list-item",Cd=[],yd={},Ed={},de=e=>{let{...t}=e;return Td("li",{...t,className:i(e.className,Hr),children:e.children})};de.states=Cd;de.options=yd;de.className=Hr;de.defaultOptions=Ed;de.moduleName=mt;de.folderName=Rt;import{Fragment as Ad,jsx as zr,jsxs as Od}from"react/jsx-runtime";var Fe=({children:e="Label",id:t="cb-label-after",...o})=>Od(Ad,{children:[zr(we,{id:t,...o}),zr("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as rg,jsx as ng,jsxs as ig}from"react/jsx-runtime";import{Fragment as pg,jsx as cg,jsxs as mg}from"react/jsx-runtime";import{Fragment as xg,jsx as hg,jsxs as Ng}from"react/jsx-runtime";import{jsx as Lg}from"react/jsx-runtime";import{jsx as Cg}from"react/jsx-runtime";import{jsx as Ag}from"react/jsx-runtime";import{jsx as ye,jsxs as Ur}from"react/jsx-runtime";var wd=le.options,Pd=le.states,Rd={...le.defaultOptions,variant:"vertical"},Bd=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Kd=[],Bt=e=>{let{variant:t,...o}=e;return t==="horizontal"?Ur(le,{layout:"horizontal",...o,children:[ye(de,{children:ye(Fe,{id:R("cb"),defaultChecked:!0,children:"Label"})}),ye(de,{children:ye(Fe,{id:R("cb"),children:"Label"})}),ye(de,{children:ye(Fe,{id:R("cb"),children:"Label"})})]}):Ur(le,{...o,children:[ye(de,{children:ye(Fe,{id:R("cb"),defaultChecked:!0,children:"Label"})}),ye(de,{children:ye(Fe,{id:R("cb"),children:"Label"})}),ye(de,{children:ye(Fe,{id:R("cb"),children:"Label"})})]})};Bt.options=wd;Bt.states=Pd;Bt.variants=Bd;Bt.defaultOptions=Rd;Bt.modifiers=Kd;Bt.className=le.className;import{jsx as Gd}from"react/jsx-runtime";var _d=we.options,Dd=we.states,Hd=we.defaultOptions,zd=[],Ud=[],Kt=e=>Gd(Fe,{id:R("checkbox"),...e,defaultChecked:!0,children:"Label"});Kt.options=_d;Kt.states=Dd;Kt.variants=zd;Kt.defaultOptions=Hd;Kt.modifiers=Ud;Kt.className=we.className;import{jsx as ut,jsxs as Xd}from"react/jsx-runtime";var Xa="k-list-item",Fd=[r.hover,r.focus,r.selected,r.disabled],Vd={},$d={},T=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 Xd("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":Xa,E(Xa,{hover:h,focus:x,disabled:N,selected:b})),children:[d&&ut(fe,{checked:p}),n&&ut("span",{className:"k-list-item-icon-wrapper",children:ut(L,{icon:n,className:i("k-list-item-icon",s)})}),ut("span",{className:"k-list-item-text",children:M}),c&&ut("div",{className:"k-list-item-actions",children:c}),g&&ut("span",{className:"k-list-item-description",children:g}),o&&o!==""&&ut("div",{className:"k-list-item-group-label",children:o})]})};T.states=Fd;T.options=Vd;T.className=Xa;T.defaultOptions=$d;T.moduleName=pt;T.folderName=wt;T.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 Jd}from"react/jsx-runtime";var qd="k-list-ul",Ve=e=>{let{children:t,role:o,id:a,...n