UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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