UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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