UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 165 kB
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...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 A=(e,t)=>n({[`${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"}),M=(e,t)=>{let{valid:o,invalid:a,hover:r,focus:s,checked:l,active:c,selected:b,disabled:N,indeterminate:h,loading:k,empty:m,readonly:L,highlighted:C,...S}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":r,"k-focus":s,"k-checked":l,"k-active":c,"k-selected":b,"k-disabled":N,"k-indeterminate":h&&!l,"k-loading":k,"k-empty":m,"k-readonly":L,"k-highlighted":C},Object.keys(S).reduce((T,I)=>(I.startsWith("k-")?T[I]=S[I]:T[`k-${I}`]=S[I],T),{}))};function Oi(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var p={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},u={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},ut={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},x={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},i={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"},Bi={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var Gr={};function y(e){return Gr[e]=(Gr[e]||0)+1,`k-${e}-${Gr[e]}`}import{Fragment as Qd,jsx as Pi}from"react/jsx-runtime";var Ur="k-font-icon",Wd=[],Jd={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info]},Yd={},ha=e=>{let{size:t,themeColor:o,icon:a,rotate:r,flip:s,...l}=e;return a?Pi("span",{...l,className:n(e.className,Ur,A(Ur,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):Pi(Qd,{})};ha.states=Wd;ha.options=Jd;ha.className=Ur;ha.defaultOptions=Yd;var wi=ha;import{Fragment as ep,jsx as Wa}from"react/jsx-runtime";var Vr="k-svg-icon",Zd=[],jd={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[ut.outline,ut.solid,ut.duotone]},$r={viewBox:"0 0 24 24",variant:ut.outline},xa=e=>{let{size:t,themeColor:o,rotate:a,flip:r,viewBox:s=$r.viewBox,variant:l=$r.variant,icon:c,...b}=e;if(!c)return Wa(ep,{});if(c==="none")return Wa("span",{...b,className:n(e.className,Vr,A("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?l&&c.variants?.[l]||c.variants?.outline||c.content:void 0;return Wa("span",{...b,className:n(e.className,Vr,A("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true",children:Wa("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:s,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:c?void 0:e.children})})};xa.states=Zd;xa.options=jd;xa.className=Vr;xa.defaultOptions=$r;var Xr=xa;import*as qr from"@progress/kendo-svg-icons";var Ri="icon",Ki="icons";import{useContext as op}from"react";import{createContext as tp}from"react";var _i=tp({iconsType:"svg"});import{Fragment as Di,jsx as Na}from"react/jsx-runtime";var Ja="k-icon",ap=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),rp=[],np={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[ut.outline,ut.solid,ut.duotone]},Ya={viewBox:"0 0 24 24",type:"svg",variant:ut.outline},v=e=>{let{iconsType:t}=op(_i),{size:o,themeColor:a,icon:r,type:s=t||Ya.type,rotate:l,flip:c,viewBox:b=Ya.viewBox,variant:N=Ya.variant,...h}=e;if(!r)return Na(Di,{});if((t||s)==="svg"){if(r==="none")return Na(Xr,{...h,className:n(e.className,Ja),icon:r,size:o,variant:N});let m=qr[r]?r:ap(`${r}-icon`);return qr[m]?Na(Xr,{...h,className:n(e.className,Ja),icon:qr[m],size:o,themeColor:a,rotate:l,flip:c,viewBox:b,variant:N}):Na(Di,{})}return Na(wi,{...h,className:n(e.className,Ja),icon:r,size:o,themeColor:a,rotate:l,flip:c})};v.states=rp;v.options=np;v.defaultOptions=Ya;v.className=Ja;v.moduleName=Ri;v.folderName=Ki;v.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 Wr="button",Hi=Wr;import{Fragment as zi,jsx as uo,jsxs as Fi}from"react/jsx-runtime";var ka="k-button",ip=["icon-button"],sp=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],lp={size:[p.undefined,p.xsmall,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info,x.inverse]},Jr={showArrow:!1,arrowIconName:"chevron-down"},d=e=>{let{as:t="button",size:o,rounded:a,fillMode:r,themeColor:s,showArrow:l=Jr.showArrow,arrowIconName:c=Jr.arrowIconName,variant:b,hover:N,focus:h,active:k,selected:m,disabled:L,togglable:C,ariaDisabled:S,icon:T,iconSize:I,text:w,iconClassName:Q,className:pe,...ue}=e,fe=T!=null,be=e.children!==void 0;return Fi(t,{className:n(pe,ka,Oi(ka,b),A(ka,{size:o,rounded:a,fillMode:r,themeColor:s}),M(ka,{hover:N,focus:h,active:k,disabled:L||S,selected:m}),{"k-icon-button":!w&&!be&&fe}),"aria-pressed":C?m?"true":"false":void 0,...ue,"aria-disabled":S?"true":void 0,disabled:L||void 0,children:[typeof T=="string"&&T&&uo(v,{className:n(Q,"k-button-icon"),icon:T,size:I}),T&&typeof T!="string"&&uo(zi,{children:T}),w?Fi(zi,{children:[w&&uo("span",{className:"k-button-text",children:w}),e.children]}):e.children&&uo("span",{className:"k-button-text",children:e.children}),l&&uo("span",{className:"k-menu-button-arrow k-button-arrow",children:uo(v,{icon:c})})]})};d.states=sp;d.options=lp;d.variants=ip;d.className=ka;d.defaultOptions=Jr;d.moduleName=Wr;d.folderName=Hi;d.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 dp}from"react/jsx-runtime";var V=e=>dp(d,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as pp}from"react/jsx-runtime";var H=e=>pp(d,{icon:"folder",children:"Button",...e});import{jsx as cp}from"react/jsx-runtime";var Jt=e=>cp(d,{children:"Button",...e});import{jsx as Yr}from"react/jsx-runtime";var mp=d.options,up=d.states,fp={...d.defaultOptions,variant:"text"},bp=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],hp=[],fo=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Yr(V,{...o,icon:"star"});case"icon-and-text":return Yr(H,{...o,icon:"star",children:"Button"});default:return Yr(Jt,{...o,children:"Button"})}};fo.options=mp;fo.states=up;fo.variants=bp;fo.defaultOptions=fp;fo.modifiers=hp;fo.className=d.className;var Qr="prompt",Gi=Qr;import{Fragment as gp,jsx as Ui}from"react/jsx-runtime";var Vi="k-prompt",xp=[],Np={},kp={},F=e=>{let{...t}=e;return Ui("div",{...t,className:n(e.className,Vi),children:Ui(gp,{children:e.children})})};F.states=xp;F.options=Np;F.className=Vi;F.defaultOptions=kp;F.moduleName=Qr;F.folderName=Gi;F.ariaSpec={selector:".k-prompt",rules:[{selector:".k-input-prefix > .k-button",attribute:"role=button or nodeName=button",usage:"The buttons must have appropriate role."},{selector:".k-input-prefix > .k-button",attribute:"aria-label or title",usage:"The buttons must be properly labelled."},{selector:".k-input-suffix > .k-button",attribute:"role=button or nodeName=button",usage:"The buttons must have appropriate role."},{selector:".k-input-suffix > .k-button",attribute:"aria-label or title",usage:"The buttons must be properly labelled."},{selector:".k-input-suffix > .k-prompt-send.k-disabled",attribute:"disabled",usage:"Announces send action as disabled if necessary."},{selector:".k-prompt-expander .k-button",attribute:"aria-controls (when present)",usage:"Points to the controlled element based on the given id."},{selector:".k-prompt-expander .k-button",attribute:"aria-expanded",usage:"Indicates the expanded state of the prompt expander content."},{selector:".k-prompt-expander .k-suggestion-group",attribute:"role=group",usage:"Indicates that the suggestion container element is a group."},{selector:".k-prompt-expander .k-suggestion",attribute:"role=button",usage:"Indicates that the suggestion element is a button."},{selector:".k-prompt-expander .k-suggestion",attribute:"aria-label or title",usage:"The suggestion elements must be properly labelled."},{selector:".k-prompt-expander .k-suggestion",attribute:"tabindex=0",usage:"The suggestion element should be focusable."}]};import{jsx as Cp}from"react/jsx-runtime";var vp="k-prompt-header",ft=e=>{let{...t}=e;return Cp("div",{...t,className:n(e.className,vp),children:e.children})};import{Fragment as Mp,jsx as $i}from"react/jsx-runtime";var Lp="k-prompt-content",Le=e=>{let{...t}=e;return $i("div",{...t,className:n(e.className,Lp),children:$i(Mp,{children:e.children})})};import{jsx as Ap}from"react/jsx-runtime";var Sp="k-prompt-view",Me=e=>{let{...t}=e;return Ap("div",{...t,className:n(e.className,Sp),children:e.children})};import{jsx as Xi,jsxs as yp}from"react/jsx-runtime";var Ip="k-prompt-expander",Qa=e=>{let{title:t,children:o,expanded:a,...r}=e,s=y("prompt-expander-content");return yp("div",{...r,className:n(e.className,Ip),children:[Xi(H,{fillMode:"flat",icon:a?"chevron-up":"chevron-down","aria-expanded":a?"true":"false","aria-controls":a?s:void 0,children:t}),a&&Xi("div",{className:"k-prompt-expander-content",id:s,children:o})]})};import{jsx as Ep}from"react/jsx-runtime";var Tp="k-prompt-footer",bo=e=>{let{...t}=e;return Ep("div",{...t,className:n(e.className,Tp),children:e.children})};import{jsx as hg}from"react/jsx-runtime";import{jsx as Op}from"react/jsx-runtime";var qi="k-prompt-send",Wi={generating:!1},vt=e=>{let{generating:t=Wi.generating,...o}=e;return Op(d,{...o,className:n(e.className,qi,{"k-generating":t}),icon:t?"stop-sm":"paper-plane",active:t,fillMode:"flat","aria-label":t?"Stop generating":"Send prompt"})};vt.states=d.states;vt.options=d.options;vt.className=qi;vt.defaultOptions=Wi;import{jsx as Ji,jsxs as Kp}from"react/jsx-runtime";var Za="k-fab",wp=[i.hover,i.focus,i.active,i.selected,i.disabled],Rp={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary]},Yi={type:"button"},oe=e=>{let{size:t,rounded:o,themeColor:a,text:r,icon:s,type:l=Yi.type,position:c,hover:b,focus:N,active:h,selected:k,disabled:m,...L}=e;return Kp("button",{...L,type:l,className:n(e.className,Za,A(Za,{size:t,rounded:o,themeColor:a}),M(Za,{hover:b,focus:N,active:h,disabled:m,selected:k}),{[`!k-pos-absolute k-${c}`]:c}),...!r&&s&&!e["aria-label"]&&{"aria-label":"Action"},...m&&{"aria-disabled":"true"},disabled:m||void 0,children:[s&&Ji(v,{className:"k-fab-icon",icon:s}),r&&Ji("span",{className:"k-fab-text",children:r})]})};oe.states=wp;oe.options=Rp;oe.className=Za;oe.defaultOptions=Yi;oe.moduleName="fab";oe.folderName="fab";oe.ariaSpec={selector:".k-fab",rules:[{selector:".k-fab",attribute:"role=button or nodeName=button",usage:"Omitted if the <button> DOM element is used."},{selector:".k-fab",attribute:"aria-label or title (when icon-only)",usage:"The attribute must be present when no text is initially visible in the button."},{selector:".k-fab.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the button is disabled."}]};import{jsx as Dp}from"react/jsx-runtime";var _p="k-fab-items",Qi=e=>{let{position:t,...o}=e;return Dp("ul",{...o,className:n(e.className,_p,{[`k-fab-items-${t}`]:t}),children:e.children})};import{jsx as ji,jsxs as zp}from"react/jsx-runtime";var Zi="k-fab-item",Hp=[i.hover,i.focus,i.active,i.disabled],Zr=e=>{let{text:t,icon:o,align:a,hover:r,focus:s,active:l,disabled:c,...b}=e;return zp("li",{...b,className:n(e.className,Zi,{[`k-text-${a}`]:a},M(Zi,{hover:r,focus:s,active:l,disabled:c})),children:[ji("span",{className:"k-fab-item-text",children:t}),ji(v,{className:"k-fab-item-icon",icon:o})]})};Zr.states=Hp;import{jsx as Hg}from"react/jsx-runtime";import{jsx as Ug}from"react/jsx-runtime";import{jsx as qg}from"react/jsx-runtime";import{jsx as Qg}from"react/jsx-runtime";import{jsx as ho,jsxs as Xp}from"react/jsx-runtime";var Fp=oe.options,Gp=oe.states,Up={...oe.defaultOptions,variant:"text"},Vp=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],$p=[{name:"opened",title:"Opened"}],xo=e=>{let{variant:t,modifiers:o,...a}=e,{opened:r}=o||{},s=r?ho("div",{className:"k-fab-popup k-popup k-popup-transparent",style:{position:"absolute",top:"calc(16px + 36px)",right:"calc(16px + calc(36px / 2) - calc(36px /2))"},children:ho(Qi,{position:"bottom",children:ho(Zr,{text:"Item",icon:"pencil",align:"right"})})}):null,l;switch(t){case"icon-only":l=ho(oe,{...a,icon:"star"});break;case"icon-and-text":l=ho(oe,{...a,icon:"star",text:"Action"});break;default:l=ho(oe,{...a,text:"Action"});break}return Xp("span",{style:{position:"relative"},children:[l,s]})};xo.options=Fp;xo.states=Gp;xo.variants=Vp;xo.defaultOptions=Up;xo.modifiers=$p;xo.className=oe.className;import{jsx as qp}from"react/jsx-runtime";var es="k-prompt-stop-fab",ts={generating:!0},Yt=e=>{let{generating:t=ts.generating,icon:o,...a}=e;return qp(oe,{...a,className:n(e.className,es,{"k-generating":t}),style:{bottom:"16px",right:"16px"},position:"bottom-end",icon:t?"stop-sm":o,active:t,"aria-label":t?"Stop generating":"Action"})};Yt.states=d.states;Yt.options=d.options;Yt.className=es;Yt.defaultOptions=ts;var jr="action-buttons",os=jr;import{jsx as Yp}from"react/jsx-runtime";var ja="k-actions",Wp=[],Jp={},en={alignment:"start",orientation:"horizontal"},G=e=>{let{alignment:t=en.alignment,orientation:o=en.orientation,...a}=e;return Yp("div",{...a,className:n(ja,{[`${ja}-${t}`]:t,[`${ja}-${o}`]:o},e.className),children:e.children})};G.states=Wp;G.options=Jp;G.className=ja;G.defaultOptions=en;G.moduleName=jr;G.folderName=os;var tn="button",as=tn;import{jsx as ec}from"react/jsx-runtime";var ga="k-button-group",Qp=[i.disabled],Zp={fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},jp={},B=e=>{let{fillMode:t,disabled:o,stretched:a,...r}=e;return ec("div",{role:"group",...r,className:n(e.className,ga,A(ga,{fillMode:t}),M(ga,{disabled:o}),{[`${ga}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};B.states=Qp;B.options=Zp;B.className=ga;B.defaultOptions=jp;B.moduleName=tn;B.folderName=as;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 Hv,jsx as Dv,jsxs as zv}from"react/jsx-runtime";import{Fragment as Xv,jsx as $v,jsxs as qv}from"react/jsx-runtime";import{Fragment as jv,jsx as Zv,jsxs as eC}from"react/jsx-runtime";import{Fragment as iC,jsx as nC,jsxs as sC}from"react/jsx-runtime";import{Fragment as uC,jsx as mC,jsxs as fC}from"react/jsx-runtime";import{Fragment as gC,jsx as kC,jsxs as vC}from"react/jsx-runtime";import{jsx as Ct,jsxs as on}from"react/jsx-runtime";var tc={...d.options,...B.options},oc=d.states,ac={...d.defaultOptions,...B.defaultOptions,variant:"text-button"},rc=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],nc=[],No=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?on(B,{fillMode:a.fillMode,className:o,children:[Ct(d,{...a,icon:"star"}),Ct(d,{...a,icon:"star"}),Ct(d,{...a,icon:"star"})]}):t==="icon-text-button"?on(B,{fillMode:a.fillMode,className:o,children:[Ct(d,{...a,icon:"star",children:"First"}),Ct(d,{...a,icon:"star",children:"Middle"}),Ct(d,{...a,icon:"star",children:"Last"})]}):on(B,{fillMode:a.fillMode,className:o,children:[Ct(d,{...a,children:"First"}),Ct(d,{...a,children:"Middle"}),Ct(d,{...a,children:"Last"})]})};No.options=tc;No.states=oc;No.variants=rc;No.defaultOptions=ac;No.modifiers=nc;No.className=B.className;var va="input",er=va;import{jsx as dc}from"react/jsx-runtime";var tr="k-input",ic=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],sc={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},lc={},j=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c,size:b,rounded:N,fillMode:h,...k}=e;return dc("span",{...k,className:n(e.className,tr,A(tr,{size:b,rounded:N,fillMode:h}),M(tr,{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c}))})};j.states=ic;j.options=sc;j.className=tr;j.defaultOptions=lc;j.moduleName=va;j.folderName=er;import{jsx as uc}from"react/jsx-runtime";var or="k-picker",pc=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],cc={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},mc={},bt=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c,size:b,rounded:N,fillMode:h,...k}=e;return uc("span",{...k,className:n(e.className,or,A(or,{size:b,rounded:N,fillMode:h}),M(or,{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c})),children:e.children})};bt.states=pc;bt.options=cc;bt.className=or;bt.defaultOptions=mc;bt.moduleName=va;bt.folderName=er;import{Fragment as hc,jsx as an}from"react/jsx-runtime";var rs="k-clear-value",fc=[i.disabled,i.loading,i.readonly],bc={},Ue=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?an(hc,{}):an("span",{className:n(e.className,rs),children:an(v,{icon:"x"})})};Ue.states=fc;Ue.options=bc;Ue.className=rs;import{jsx as kc}from"react/jsx-runtime";var rn="k-input-inner",xc=[],Nc={},ar={type:"text",autocomplete:"off",value:"",placeholder:""},Ve=e=>{let{value:t=ar.value,type:o=ar.type,placeholder:a=ar.placeholder,autocomplete:r=ar.autocomplete,disabled:s,readOnly:l,...c}=e;return kc("input",{...c,type:o,className:n(e.className,rn,A(rn,e)),placeholder:a,autoComplete:r,defaultValue:t,disabled:s||void 0,readOnly:l||void 0})};Ve.states=xc;Ve.options=Nc;Ve.className=rn;import{jsx as ns,jsxs as Cc}from"react/jsx-runtime";var nn="k-input-inner",gc=[],vc={},Qt=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:s,...l}=e;return Cc("span",{...l,className:n(e.className,nn,A(nn,e)),children:[r,!r&&s&&ns(v,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&ns("span",{className:"k-input-value-text",children:t})]})};Qt.states=gc;Qt.options=vc;Qt.className=nn;import{jsx as Sc}from"react/jsx-runtime";var sn="k-input-inner",Lc=[],Mc={},is={value:"",placeholder:""},Ca=e=>{let{value:t=is.value,placeholder:o=is.placeholder,rows:a,disabled:r,...s}=e;return Sc("textarea",{...s,className:n(e.className,sn,A(sn,e)),placeholder:o,rows:a,defaultValue:t,disabled:r||void 0})};Ca.states=Lc;Ca.options=Mc;Ca.className=sn;import{Fragment as Ic,jsx as ss}from"react/jsx-runtime";var ls="k-input-loading-icon",Ac=[i.disabled,i.loading],De=e=>{let{disabled:t,loading:o}=e;return t||!o?ss(Ic,{}):ss("span",{className:n(e.className,ls,"k-icon k-i-loading")})};De.states=Ac;De.className=ls;import{Fragment as Ec,jsx as ds}from"react/jsx-runtime";var ps="k-input-validation-icon",yc=[i.valid,i.invalid,i.disabled,i.loading],Tc={},Se=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,s=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?ds(Ec,{}):ds(v,{className:n(ps),icon:s})};Se.states=yc;Se.options=Tc;Se.className=ps;import{Fragment as Pc,jsx as cs}from"react/jsx-runtime";var Oc="k-input-prefix",Bc={direction:"horizontal"},He=e=>{let{direction:t=Bc.direction,...o}=e;return e.children?cs("span",{...o,className:n(Oc,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):cs(Pc,{})};import{Fragment as Kc,jsx as ms}from"react/jsx-runtime";var wc="k-input-suffix",Rc={direction:"horizontal"},ze=e=>{let{direction:t=Rc.direction,...o}=e;return e.children?ms("span",{...o,className:n(wc,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ms(Kc,{})};import{jsx as vL}from"react/jsx-runtime";import{jsx as Dc}from"react/jsx-runtime";var _c="k-input-suffix-text",ln=e=>{let{children:t,...o}=e;return Dc("span",{...o,className:n(_c,e.className),children:t})};import{jsx as zc}from"react/jsx-runtime";var us="k-input-separator",Hc={direction:"vertical"},Ae=e=>{let{direction:t=Hc.direction,...o}=e;return zc("span",{...o,className:n(us,e.className,{[`${us}-${t}`]:t})})};import{Fragment as fs,jsx as ht,jsxs as dn}from"react/jsx-runtime";var Fc=j.states,Gc=j.defaultOptions,Uc=j.options,Vc=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],$c=[],ko=e=>{let{modifiers:t,valid:o,invalid:a,loading:r,disabled:s,readonly:l,...c}=e,b=t?.prefix,N=t?.suffix,h=t?.["clear-button"],k=t?.["validation-icon"],m=t?.separators;return dn(j,{...c,valid:o,invalid:a,loading:r,disabled:s,readonly:l,style:{width:300},children:[b&&dn(fs,{children:[ht(He,{children:ht(v,{icon:"lock"})}),m&&ht(Ae,{})]}),ht(Ve,{placeholder:"Placeholder",value:"Value"}),k&&ht(Se,{valid:o,invalid:a,loading:r,disabled:s}),ht(De,{loading:r,disabled:s}),h&&ht(Ue,{loading:r,disabled:s,readonly:l,value:"Value"}),N&&dn(fs,{children:[m&&ht(Ae,{}),ht(ze,{children:ht(Jt,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};ko.options=Uc;ko.states=Fc;ko.variants=$c;ko.defaultOptions=Gc;ko.modifiers=Vc;ko.className=j.className;import{jsx as bs,jsxs as Wc}from"react/jsx-runtime";var hs="k-color-preview",Xc=[],qc={},Pt=e=>{let{color:t,iconName:o,...a}=e;return Wc("span",{...a,className:n(e.className,hs,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&bs(v,{icon:o,className:"k-color-preview-icon"}),bs("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Pt.states=Xc;Pt.options=qc;Pt.className=hs;var pn="popup",xs=pn;import{jsx as Ns}from"react/jsx-runtime";var ks="k-animation-container",Jc=[],Yc={},cn={positionMode:"absolute",shown:!0},xt=e=>{let{positionMode:t=cn.positionMode,shown:o=cn.shown,animationStyle:a,offset:r,...s}=e;return Ns("div",{...s,style:{...r,...e.style},className:n(e.className,ks,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Ns("div",{className:"k-child-animation-container",style:a,children:e.children})})};xt.states=Jc;xt.options=Yc;xt.className=ks;xt.defaultOptions=cn;xt.moduleName=pn;xt.folderName=xs;var mn="popup",gs=mn;import{jsx as vs}from"react/jsx-runtime";var Cs="k-popup",Qc=[],Zc={},Ls={positionMode:"absolute"},U=e=>{let{offset:t,positionMode:o=Ls.positionMode,animationStyle:a,containerClassName:r,containerRole:s,containerAriaLabel:l,...c}=e;return vs(xt,{positionMode:o,offset:t,animationStyle:a,className:r,role:s,"aria-label":l,children:vs("div",{...c,className:n(e.className,Cs),children:e.children})})};U.states=Qc;U.options=Zc;U.className=Cs;U.defaultOptions=Ls;U.moduleName=mn;U.folderName=gs;U.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.'}]};import{jsx as em}from"react/jsx-runtime";var jc="k-actionsheet-footer",Ms={alignment:"stretched",orientation:"horizontal"},wt=e=>{let{alignment:t=Ms.alignment,orientation:o=Ms.orientation,template:a,as:r=a?"div":G,...s}=e;return em(r,{...s,...!a&&{alignment:t,orientation:o},className:n(e.className,jc),children:e.children})};var un="searchbox",Ss=un;import{jsx as La,jsxs as am}from"react/jsx-runtime";var As="k-searchbox",tm=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],om={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},fn={showIcon:!0,icon:"search"},Qe=e=>{let{value:t,placeholder:o,size:a,rounded:r,fillMode:s,hover:l,focus:c,valid:b,invalid:N,required:h,loading:k,disabled:m,showIcon:L=fn.showIcon,icon:C=fn.icon,"aria-label":S,...T}=e;return am(j,{...T,size:a,rounded:r,fillMode:s,hover:l,focus:c,valid:b,invalid:N,required:h,loading:k,disabled:m,className:n(e.className,As),children:[L&&La(v,{className:"k-input-icon",icon:C}),La(Ve,{placeholder:o,value:t,"aria-label":S}),La(De,{...e}),La(Se,{...e}),La(Ue,{...e})]})};Qe.states=tm;Qe.options=om;Qe.className=As;Qe.defaultOptions=fn;Qe.moduleName=un;Qe.folderName=Ss;import{jsx as HM}from"react/jsx-runtime";var bn="textbox",Is=bn;import{Fragment as ys,jsx as Rt,jsxs as hn}from"react/jsx-runtime";var Ts="k-textbox",rm=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],nm={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},rr={showClearButton:!0,showValidationIcon:!0,separators:!0},he=e=>{let{size:t,rounded:o,fillMode:a,separators:r=rr.separators,showClearButton:s=rr.showClearButton,showValidationIcon:l=rr.showValidationIcon,prefix:c,suffix:b,type:N,value:h,placeholder:k,hover:m,focus:L,valid:C,invalid:S,required:T,loading:I,disabled:w,readonly:Q,id:pe,"aria-label":ue,"aria-describedby":fe,...be}=e;return hn(j,{...be,size:t,rounded:o,fillMode:a,hover:m,focus:L,valid:C,invalid:S,required:T,loading:I,disabled:w,readonly:Q,className:n(e.className,Ts),children:[c&&hn(ys,{children:[Rt(He,{children:c}),r&&Rt(Ae,{})]}),Rt(Ve,{id:pe,placeholder:k,value:h,type:N,disabled:w,"aria-label":ue,"aria-describedby":fe,"aria-invalid":S?"true":void 0}),l&&Rt(Se,{valid:C,invalid:S,loading:I,disabled:w}),Rt(De,{loading:I,disabled:w}),s&&Rt(Ue,{loading:I,disabled:w,readonly:Q,value:h}),b&&hn(ys,{children:[r&&Rt(Ae,{}),Rt(ze,{children:b})]})]})};he.states=rm;he.options=nm;he.className=Ts;he.defaultOptions=rr;he.moduleName=bn;he.folderName=Is;he.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 Ma=he;import{jsx as im}from"react/jsx-runtime";var Es=e=>im(Ma,{...e});import{Fragment as aS,jsx as oS}from"react/jsx-runtime";import{Fragment as dS,jsx as lS}from"react/jsx-runtime";import{jsx as uS}from"react/jsx-runtime";import{jsx as xn}from"react/jsx-runtime";var sm=he.states,lm=he.defaultOptions,dm=he.options,pm=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],cm=[],go=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{switch(r){case"prefix":a.prefix=t?.[r]?xn(v,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[r]?xn(Jt,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[r];break;default:break}}),xn(Es,{value:"Value",style:{width:300},...o,...a})};go.options=dm;go.states=sm;go.variants=cm;go.defaultOptions=lm;go.modifiers=pm;go.className=he.className;import{jsx as Kt,jsxs as Nn}from"react/jsx-runtime";var Os="k-actionsheet-titlebar",mm={},Ie=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:r,filter:s,input:l,inputValue:c,inputPlaceholder:b,adaptive:N,titleId:h,children:k,...m}=e;return Nn("div",{...m,className:n(e.className,Os),children:[Nn("div",{className:"k-actionsheet-titlebar-group",children:[a&&Kt("div",{className:"k-actionsheet-actions",children:a}),!k&&Nn("div",{className:"k-actionsheet-title",id:h,children:[t&&Kt("div",{className:"k-text-center",children:t}),o&&Kt("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),k&&Kt("div",{className:"k-actionsheet-title",id:h,children:k}),r&&Kt("div",{className:"k-actionsheet-actions",children:r})]}),(l||s)&&Kt("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Kt(he,{value:c,placeholder:b,size:N?"large":"medium","aria-label":t||b||"Input"}):Kt(Qe,{placeholder:"Filter",size:N?"large":"medium","aria-label":"Filter options"})})]})};Ie.className=Os;Ie.defaultOptions=mm;import{jsx as kn,jsxs as hm}from"react/jsx-runtime";var gn="k-actionsheet-view",um=[],fm={},bm={},vo=e=>{let{adaptive:t,animated:o,children:a,header:r,footer:s,titleId:l,...c}=e,b=r?.type===Ie&&kn(Ie,{adaptive:t,titleId:l,...r?.props}),N=s?.type===wt&&kn(wt,{...s?.props});return hm("div",{...c,className:n(e.className,gn,{[`${gn}-animated`]:o}),children:[b,kn("div",{className:"k-actionsheet-content",children:a}),N]})};vo.states=um;vo.options=fm;vo.className=gn;vo.defaultOptions=bm;var Sa="action-sheet",nr=Sa;var vn="overlay",Bs=vn;import{jsx as gm}from"react/jsx-runtime";var Ps="k-overlay",xm=[],Nm={},km={},_t=e=>{let{...t}=e;return gm("div",{...t,className:n(e.className,Ps),children:e.children})};_t.states=xm;_t.options=Nm;_t.className=Ps;_t.defaultOptions=km;_t.moduleName=vn;_t.folderName=Bs;import{jsx as ir,jsxs as Lm}from"react/jsx-runtime";var ws="k-actionsheet",vm=[],Cm={},Aa={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ae=e=>{let{side:t=Aa.side,fullscreen:o=Aa.fullscreen,adaptive:a=Aa.adaptive,overlay:r=Aa.overlay,template:s,children:l,header:c,footer:b,id:N,...h}=e,k=N&&!s&&c?`${N}-title`:void 0;return Lm("div",{className:"k-actionsheet-container",children:[r&&ir(_t,{}),ir(xt,{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:ir("div",{...h,id:N,role:"dialog","aria-modal":r?"true":void 0,"aria-labelledby":k,className:n(e.className,ws,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||ir(vo,{header:c,footer:b,adaptive:a,titleId:k,...e,children:l})})})]})};ae.states=vm;ae.options=Cm;ae.className=ws;ae.defaultOptions=Aa;ae.moduleName=Sa;ae.folderName=nr;ae.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 Im}from"react/jsx-runtime";var Rs="k-actionsheet-container",Mm=[],Sm={},Am={},Co=e=>{let{children:t,...o}=e;return Im("div",{...o,className:Rs,children:t})};Co.states=Mm;Co.options=Sm;Co.className=Rs;Co.defaultOptions=Am;Co.moduleName=Sa;Co.folderName=nr;import{jsx as ym}from"react/jsx-runtime";var Cn=e=>{let{...t}=e;return ym("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as Em,jsx as Ia,jsxs as Ln}from"react/jsx-runtime";var Mn="k-actionsheet-item",Tm=[i.hover,i.focus,i.selected,i.disabled],Dt=e=>{let{iconName:t,text:o,description:a,hover:r,focus:s,selected:l,disabled:c,...b}=e;return Ln("span",{...b,className:n(e.className,Mn,M(Mn,{hover:r,focus:s,selected:l,disabled:c})),children:[!e.children&&Ia(Em,{children:Ln("span",{className:"k-actionsheet-action",children:[t&&Ia("span",{className:"k-icon-wrap",children:Ia(v,{className:"k-actionsheet-item-icon",icon:t})}),Ln("span",{className:"k-actionsheet-item-text",children:[o&&Ia("span",{className:"k-actionsheet-item-title",children:o}),a&&Ia("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Dt.states=Tm;Dt.className=Mn;import{jsx as mA,jsxs as uA}from"react/jsx-runtime";import{jsx as xA}from"react/jsx-runtime";import{jsx as vA}from"react/jsx-runtime";import{jsx as SA}from"react/jsx-runtime";import{jsx as xe,jsxs as Sn}from"react/jsx-runtime";var Om=ae.options,Bm=ae.states,_s={...ae.defaultOptions,variant:"normal"},Pm=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],wm=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Lo=e=>{let{variant:t,modifiers:o,...a}={..._s,...e},r={},s=Sn(Cn,{children:[xe(Dt,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),xe(Dt,{text:"Add to Favorites",iconName:"heart"}),xe(Dt,{text:"Upload New",iconName:"upload",disabled:!0}),xe("hr",{className:"k-hr"}),xe(Dt,{text:"Cancel",iconName:"cancel"})]}),l="Choose from the items below",c="Select Item";return t==="fullScreen"&&(r.fullScreen=!0),Object.keys(o||{}).forEach(b=>{switch(b){case"actions":r.actionsStart=!!o?.[b],r.actionsEnd=!!o?.[b];break;case"subtitle":r.subtitle=o?.[b]?l:void 0;break;case"footer":r.footer=!!o?.[b];break;default:break}}),t==="adaptive"?xe(ae,{...a,adaptive:!0,fullscreen:r.fullScreen,header:xe(Ie,{actionsStart:r.actionsStart?xe(d,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?xe(d,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:r.subtitle}),footer:r.footer?Sn(wt,{alignment:"stretched",children:[xe(d,{text:"Cancel",size:"large",themeColor:"base"}),xe(d,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):xe(ae,{...a,fullscreen:r.fullScreen,header:xe(Ie,{actionsStart:r.actionsStart?xe(d,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?xe(d,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:r.subtitle}),footer:r.footer?Sn(wt,{alignment:"stretched",children:[xe(d,{text:"Apply",themeColor:"primary"}),xe(d,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Lo.options=Om;Lo.states=Bm;Lo.variants=Pm;Lo.defaultOptions=_s;Lo.modifiers=wm;Lo.className=ae.className;var An="slider",Ds=An;import{jsx as Mo,jsxs as In}from"react/jsx-runtime";var ya="k-slider",Rm=[i.hover,i.focus,i.active,i.disabled,i.readonly],Km={},Ze={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},J=e=>{let{type:t=Ze.type,orientation:o=Ze.orientation,gradientType:a=Ze.gradientType,readonly:r=Ze.readonly,disabled:s=Ze.disabled,handlePosition:l=Ze.handlePosition,showButtons:c=Ze.showButtons,showTicks:b=Ze.showTicks,value:N=Ze.value,min:h=Ze.min,max:k=Ze.max,startValue:m,endValue:L,hover:C,focus:S,active:T,trackStyle:I,dir:w,...Q}=e,ue=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),fe,be;return o==="horizontal"?(fe=w==="rtl"?"chevron-left":"chevron-right",be=w==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(fe="chevron-up",be="chevron-down"),In("div",{...Q,className:n(ya,e.className,M(ya,{readonly:r,disabled:s}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:w,children:[c&&Mo(d,{className:"k-button-decrease",rounded:"full",icon:be,tabIndex:-1,title:"Decrease"}),In("div",{className:"k-slider-track-wrap",children:[b&&Mo("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),In("div",{className:"k-slider-track",style:I,children:[Mo("div",{className:"k-slider-selection"}),t==="range"&&Mo("span",{className:n("k-draghandle","k-draghandle-start",M(ya,{hover:C,focus:S,active:T})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":m??h,"aria-valuemin":h,"aria-valuemax":L??k,"aria-orientation":ue,"aria-disabled":s?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":Q["aria-label"]?`${Q["aria-label"]} start`:"Range start"}),Mo("span",{className:n("k-draghandle",`k-draghandle-${l}`,M(ya,{hover:C,focus:S,active:T})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":t==="range"?L??k:N,"aria-valuemin":t==="range"?m??h:h,"aria-valuemax":k,"aria-orientation":ue,"aria-disabled":s?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":t==="range"?Q["aria-label"]?`${Q["aria-label"]} end`:"Range end":Q["aria-label"]})]})]}),c&&Mo(d,{className:"k-button-increase",rounded:"full",icon:fe,tabIndex:-1,title:"Increase"})]})};J.states=Rm;J.options=Km;J.className=ya;J.defaultOptions=Ze;J.moduleName=An;J.folderName=Ds;J.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 Hs}from"react/jsx-runtime";var zs="k-tick",_m=[],Dm={},Fs={label:!1},O=e=>{let{style:t,label:o=Fs.label,orientation:a,large:r,text:s,...l}=e;return Hs("li",{...l,role:"presentation",title:s||"Tick",className:n(e.className,zs,{[`k-tick-${a}`]:a,"k-tick-large":r}),style:t,children:o&&Hs("span",{className:"k-label",children:s})})};O.states=_m;O.options=Dm;O.className=zs;O.defaultOptions=Fs;import{Fragment as Hm,jsx as je,jsxs as zm}from"react/jsx-runtime";var Gs=e=>je(J,{"aria-label":e["aria-label"]||"Slider",children:zm(Hm,{children:[je(O,{className:"k-first",label:!0,large:!0,text:"0"}),je(O,{}),je(O,{}),je(O,{}),je(O,{}),je(O,{label:!0,large:!0,text:"5"}),je(O,{}),je(O,{}),je(O,{}),je(O,{}),je(O,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as Fm,jsx as et,jsxs as Gm}from"react/jsx-runtime";var Us=e=>et(J,{children:Gm(Fm,{children:[et(O,{className:"k-first",label:!0,large:!0,text:"0"}),et(O,{}),et(O,{}),et(O,{}),et(O,{}),et(O,{label:!0,large:!0,text:"5"}),et(O,{}),et(O,{}),et(O,{}),et(O,{}),et(O,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as uI,jsx as mI,jsxs as fI}from"react/jsx-runtime";import{Fragment as kI,jsx as NI,jsxs as gI}from"react/jsx-runtime";import{jsx as Um}from"react/jsx-runtime";var yn=e=>Um(J,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as Vm}from"react/jsx-runtime";var Tn=e=>Vm(J,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as OI,jsx as EI,jsxs as BI}from"react/jsx-runtime";import{Fragment as _I,jsx as KI,jsxs as DI}from"react/jsx-runtime";import{jsx as Nt,jsxs as Vs}from"react/jsx-runtime";var $m=J.options,Xm=J.states,$s={...J.defaultOptions,variant:"horizontal",label:!0},qm=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],Wm=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],So=e=>{let{variant:t,modifiers:o,...a}=e,r=$s.label,s={};Object.keys(o||{}).forEach(c=>{switch(c){case"button":{s.showButtons=!!o?.[c];break}case"label":{r=!!o?.[c];break}case"tick":{s.showTicks=!!o?.[c];break}}});let l={"--kendo-slider-start":0,"--kendo-slider-end":60};return t==="vertical"?Vs(Us,{style:{height:"300px",...l},...a,...s,children:[Nt(O,{label:r,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),Nt(O,{label:r,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),Nt(O,{label:r,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),Nt(O,{label:r,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),Nt(O,{label:r,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):Vs(Gs,{style:{width:"400px",...l},...a,...s,children:[Nt(O,{label:r,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),Nt(O,{label:r,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),Nt(O,{label:r,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),Nt(O,{label:r,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),Nt(O,{label:r,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};So.options=$m;So.states=Xm;So.variants=qm;So.defaultOptions=$s;So.modifiers=Wm;So.className=J.className;import{jsx as Xs,jsxs as jm}from"react/jsx-runtime";var qs="k-spin-button",Qm=[],Zm={size:[p.undefined,p.small,p.medium,p.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},En={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},Ht=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:r=En.increaseLabel,decreaseLabel:s=En.decreaseLabel,...l}=e;return jm("span",{...l,className:n(qs,e.className),children:[Xs(d,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":r}),Xs(d,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":s})]})};Ht.states=Qm;Ht.options=Zm;Ht.className=qs;Ht.defaultOptions=En;Ht.moduleName=null;Ht.folderName=null;var Ws="numeric-textbox",Js="numerictextbox";import{Fragment as Ys,jsx as Lt,jsxs as On}from"react/jsx-runtime";var Qs="k-numerictextbox",eu=[i.hover,i.focus,i.valid,i.invalid,i.loading,i.required,i.disabled,i.readonly],tu={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},sr={showSpinButton:!0,showClearButton:!0,separators:!0},$=e=>{let{size:t,rounded:o,fillMode:a,separators:r=sr.separators,showClearButton:s=sr.showClearButton,showSpinButton:l=sr.showSpinButton,prefix:c,suffix:b,value:N,placeholder:h,hover:k,focus:m,valid:L,invalid:C,required:S,loading:T,disabled:I,readonly:w,id:Q,"aria-label":pe,"aria-describedby":ue,...fe}=e;return On(j,{...fe,size:t,rounded:o,fillMode:a,hover:k,focus:m,valid:L,invalid:C,required:S,loading:T,disabled:I,readonly:w,className:n(e.className,Qs),children:[c&&On(Ys,{children:[Lt(He,{children:c}),r&&Lt(Ae,{})]}),Lt(Ve,{id:Q,placeholder:h,value:N,role:"spinbutton",disabled:I,"aria-label":pe,"aria-describedby":ue,"aria-invalid":C?"true":void 0}),Lt(Se,{valid:L,invalid:C,loading:T,disabled:I}),Lt(De,{loading:T,disabled:I}),s&&Lt(Ue,{loading:T,disabled:I,readonly:w,value:N}),b&&On(Ys,{children:[r&&Lt(Ae,{}),Lt(ze,{children:b})]}),l&&Lt(Ht,{className:"k-input-spinner",size:t,fillMode:a,disabled:I})]})};$.states=eu;$.options=tu;$.className=Qs;$.defaultOptions=sr;$.moduleName=Ws;$.folderName=Js;$.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 Ta=$;import{jsx as ou}from"react/jsx-runtime";var Zs=e=>ou(Ta,{...e});import Pn from"react";import{jsx as js}from"react/jsx-runtime";var au="k-list-group-sticky-header",Bn=e=>js("div",{className:n(au,e.className),children:js("div",{className:"k-list-header-text",children:e.children})});import{jsx as nu}from"react/jsx-runtime";var ru="k-no-data",lr=e=>{let{live:t,...o}=e;return nu("span",{...o,className:n(ru,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Zt="list",Ao=Zt;import{jsx as el,jsxs as tl}from"react/jsx-runtime";var wn="k-list",iu=[],su={size:[p.und