@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 154 kB
JavaScript
var r=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?r(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var y=(e,t)=>r({[`${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"}),S=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:s,checked:d,active:p,selected:b,disabled:h,indeterminate:x,loading:N,empty:m,readonly:L,highlighted:g,...C}=t;return r({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":s,"k-checked":d,"k-active":p,"k-selected":b,"k-disabled":h,"k-indeterminate":x&&!d,"k-loading":N,"k-empty":m,"k-readonly":L,"k-highlighted":g},Object.keys(C).reduce((A,I)=>(I.startsWith("k-")?A[I]=C[I]:A[`k-${I}`]=C[I],A),{}))};function ti(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var c={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"},rt={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"},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"},oi={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var hn={};function T(e){return hn[e]=(hn[e]||0)+1,`k-${e}-${hn[e]}`}var Nn="prompt",ai=Nn;import{Fragment as fd,jsx as ni}from"react/jsx-runtime";var ri="k-prompt",pd=[],md={},ud={},ve=e=>{let{...t}=e;return ni("div",{...t,className:r(e.className,ri),children:ni(fd,{children:e.children})})};ve.states=pd;ve.options=md;ve.className=ri;ve.defaultOptions=ud;ve.moduleName=Nn;ve.folderName=ai;ve.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{Fragment as xd,jsx as ii}from"react/jsx-runtime";var bd="k-prompt-content",Ca=e=>{let{...t}=e;return ii("div",{...t,className:r(e.className,bd),children:ii(xd,{children:e.children})})};import{jsx as Nd}from"react/jsx-runtime";var hd="k-prompt-footer",si=e=>{let{...t}=e;return Nd("div",{...t,className:r(e.className,hd),children:e.children})};import{jsx as vd}from"react/jsx-runtime";var kd="k-prompt-header",Ia=e=>{let{...t}=e;return vd("div",{...t,className:r(e.className,kd),children:e.children})};import{jsx as Ld}from"react/jsx-runtime";var gd="k-prompt-view",Ta=e=>{let{...t}=e;return Ld("div",{...t,className:r(e.className,gd),children:e.children})};import{Fragment as Id,jsx as li}from"react/jsx-runtime";var kn="k-font-icon",Md=[],Sd={size:[c.undefined,c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary,k.success,k.warning,k.error,k.info]},Cd={},Qo=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:s,...d}=e;return a?li("span",{...d,className:r(e.className,kn,y(kn,{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"}):li(Id,{})};Qo.states=Md;Qo.options=Sd;Qo.className=kn;Qo.defaultOptions=Cd;var di=Qo;import{Fragment as yd,jsx as Aa}from"react/jsx-runtime";var vn="k-svg-icon",Td=[],Ad={size:[c.undefined,c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary,k.success,k.warning,k.error,k.info],variant:[rt.outline,rt.solid,rt.duotone]},gn={viewBox:"0 0 24 24",variant:rt.outline},Zo=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:s=gn.viewBox,variant:d=gn.variant,icon:p,...b}=e;if(!p)return Aa(yd,{});if(p==="none")return Aa("span",{...b,className:r(e.className,vn,y("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let h=typeof p=="object"&&p.name&&p.name,x=typeof p=="object"?d&&p.variants?.[d]||p.variants?.outline||p.content:void 0;return Aa("span",{...b,className:r(e.className,vn,y("k-icon",{size:t}),{[`k-svg-i-${h}`]:h,[`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:Aa("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:s,dangerouslySetInnerHTML:x!==void 0?{__html:x}:void 0,children:p?void 0:e.children})})};Zo.states=Td;Zo.options=Ad;Zo.className=vn;Zo.defaultOptions=gn;var Ln=Zo;import*as Mn from"@progress/kendo-svg-icons";var ci="icon",pi="icons";import{useContext as Od}from"react";import{createContext as Ed}from"react";var mi=Ed({iconsType:"svg"});import{Fragment as ui,jsx as jo}from"react/jsx-runtime";var ya="k-icon",Bd=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Pd=[],wd={size:[c.undefined,c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary,k.success,k.warning,k.error,k.info],variant:[rt.outline,rt.solid,rt.duotone]},Ea={viewBox:"0 0 24 24",type:"svg",variant:rt.outline},M=e=>{let{iconsType:t}=Od(mi),{size:o,themeColor:a,icon:n,type:s=t||Ea.type,rotate:d,flip:p,viewBox:b=Ea.viewBox,variant:h=Ea.variant,...x}=e;if(!n)return jo(ui,{});if((t||s)==="svg"){if(n==="none")return jo(Ln,{...x,className:r(e.className,ya),icon:n,size:o,variant:h});let m=Mn[n]?n:Bd(`${n}-icon`);return Mn[m]?jo(Ln,{...x,className:r(e.className,ya),icon:Mn[m],size:o,themeColor:a,rotate:d,flip:p,viewBox:b,variant:h}):jo(ui,{})}return jo(di,{...x,className:r(e.className,ya),icon:n,size:o,themeColor:a,rotate:d,flip:p})};M.states=Pd;M.options=wd;M.defaultOptions=Ea;M.className=ya;M.moduleName=ci;M.folderName=pi;M.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 Sn="button",fi=Sn;import{Fragment as bi,jsx as eo,jsxs as xi}from"react/jsx-runtime";var ea="k-button",Rd=["icon-button"],Kd=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],_d={size:[c.undefined,c.xsmall,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary,k.success,k.warning,k.error,k.info,k.inverse]},Cn={showArrow:!1,arrowIconName:"chevron-down"},l=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:s,showArrow:d=Cn.showArrow,arrowIconName:p=Cn.arrowIconName,variant:b,hover:h,focus:x,active:N,selected:m,disabled:L,togglable:g,ariaDisabled:C,icon:A,iconSize:I,text:w,iconClassName:$,className:ie,...de}=e,ce=A!=null,pe=e.children!==void 0;return xi(t,{className:r(ie,ea,ti(ea,b),y(ea,{size:o,rounded:a,fillMode:n,themeColor:s}),S(ea,{hover:h,focus:x,active:N,disabled:L||C,selected:m}),{"k-icon-button":!w&&!pe&&ce}),"aria-pressed":g?m?"true":"false":void 0,...de,"aria-disabled":C?"true":void 0,disabled:L||void 0,children:[typeof A=="string"&&A&&eo(M,{className:r($,"k-button-icon"),icon:A,size:I}),A&&typeof A!="string"&&eo(bi,{children:A}),w?xi(bi,{children:[w&&eo("span",{className:"k-button-text",children:w}),e.children]}):e.children&&eo("span",{className:"k-button-text",children:e.children}),d&&eo("span",{className:"k-menu-button-arrow k-button-arrow",children:eo(M,{icon:p})})]})};l.states=Kd;l.options=_d;l.variants=Rd;l.className=ea;l.defaultOptions=Cn;l.moduleName=Sn;l.folderName=fi;l.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 Dd}from"react/jsx-runtime";var me=e=>Dd(l,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Hd}from"react/jsx-runtime";var te=e=>Hd(l,{icon:"folder",children:"Button",...e});import{jsx as zd}from"react/jsx-runtime";var Dt=e=>zd(l,{children:"Button",...e});import{jsx as In}from"react/jsx-runtime";var Fd=l.options,Ud=l.states,Gd={...l.defaultOptions,variant:"text"},Vd=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],$d=[],to=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return In(me,{...o,icon:"star"});case"icon-and-text":return In(te,{...o,icon:"star",children:"Button"});default:return In(Dt,{...o,children:"Button"})}};to.options=Fd;to.states=Ud;to.variants=Vd;to.defaultOptions=Gd;to.modifiers=$d;to.className=l.className;import{jsx as hi,jsxs as qd}from"react/jsx-runtime";var Xd="k-prompt-expander",Ni=e=>{let{title:t,children:o,expanded:a,...n}=e,s=T("prompt-expander-content");return qd("div",{...n,className:r(e.className,Xd),children:[hi(te,{fillMode:"flat",icon:a?"chevron-up":"chevron-down","aria-expanded":a?"true":"false","aria-controls":a?s:void 0,children:t}),a&&hi("div",{className:"k-prompt-expander-content",id:s,children:o})]})};import{jsx as ki,jsxs as Zd}from"react/jsx-runtime";var Oa="k-fab",Yd=[i.hover,i.focus,i.active,i.selected,i.disabled],Qd={size:[c.undefined,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],themeColor:[k.undefined,k.base,k.primary,k.secondary,k.tertiary]},vi={type:"button"},Y=e=>{let{size:t,rounded:o,themeColor:a,text:n,icon:s,type:d=vi.type,position:p,hover:b,focus:h,active:x,selected:N,disabled:m,...L}=e;return Zd("button",{...L,type:d,className:r(e.className,Oa,y(Oa,{size:t,rounded:o,themeColor:a}),S(Oa,{hover:b,focus:h,active:x,disabled:m,selected:N}),{[`!k-pos-absolute k-${p}`]:p}),...!n&&s&&!e["aria-label"]&&{"aria-label":"Action"},...m&&{"aria-disabled":"true"},disabled:m||void 0,children:[s&&ki(M,{className:"k-fab-icon",icon:s}),n&&ki("span",{className:"k-fab-text",children:n})]})};Y.states=Yd;Y.options=Qd;Y.className=Oa;Y.defaultOptions=vi;Y.moduleName="fab";Y.folderName="fab";Y.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 ec}from"react/jsx-runtime";var jd="k-fab-items",gi=e=>{let{position:t,...o}=e;return ec("ul",{...o,className:r(e.className,jd,{[`k-fab-items-${t}`]:t}),children:e.children})};import{jsx as Mi,jsxs as oc}from"react/jsx-runtime";var Li="k-fab-item",tc=[i.hover,i.focus,i.active,i.disabled],Tn=e=>{let{text:t,icon:o,align:a,hover:n,focus:s,active:d,disabled:p,...b}=e;return oc("li",{...b,className:r(e.className,Li,{[`k-text-${a}`]:a},S(Li,{hover:n,focus:s,active:d,disabled:p})),children:[Mi("span",{className:"k-fab-item-text",children:t}),Mi(M,{className:"k-fab-item-icon",icon:o})]})};Tn.states=tc;import{jsx as dk}from"react/jsx-runtime";import{jsx as uk}from"react/jsx-runtime";import{jsx as hk}from"react/jsx-runtime";import{jsx as gk}from"react/jsx-runtime";import{jsx as oo,jsxs as lc}from"react/jsx-runtime";var ac=Y.options,nc=Y.states,rc={...Y.defaultOptions,variant:"text"},ic=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],sc=[{name:"opened",title:"Opened"}],ao=e=>{let{variant:t,modifiers:o,...a}=e,{opened:n}=o||{},s=n?oo("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:oo(gi,{position:"bottom",children:oo(Tn,{text:"Item",icon:"pencil",align:"right"})})}):null,d;switch(t){case"icon-only":d=oo(Y,{...a,icon:"star"});break;case"icon-and-text":d=oo(Y,{...a,icon:"star",text:"Action"});break;default:d=oo(Y,{...a,text:"Action"});break}return lc("span",{style:{position:"relative"},children:[d,s]})};ao.options=ac;ao.states=nc;ao.variants=ic;ao.defaultOptions=rc;ao.modifiers=sc;ao.className=Y.className;import{jsx as dc}from"react/jsx-runtime";var Si="k-prompt-stop-fab",Ci={generating:!0},no=e=>{let{generating:t=Ci.generating,icon:o,...a}=e;return dc(Y,{...a,className:r(e.className,Si,{"k-generating":t}),style:{bottom:"16px",right:"16px"},position:"bottom-end",icon:t?"stop-sm":o,active:t,"aria-label":t?"Stop generating":"Action"})};no.states=l.states;no.options=l.options;no.className=Si;no.defaultOptions=Ci;var An="action-buttons",Ii=An;import{jsx as mc}from"react/jsx-runtime";var Ba="k-actions",cc=[],pc={},yn={alignment:"start",orientation:"horizontal"},X=e=>{let{alignment:t=yn.alignment,orientation:o=yn.orientation,...a}=e;return mc("div",{...a,className:r(Ba,{[`${Ba}-${t}`]:t,[`${Ba}-${o}`]:o},e.className),children:e.children})};X.states=cc;X.options=pc;X.className=Ba;X.defaultOptions=yn;X.moduleName=An;X.folderName=Ii;var En="button",Ti=En;import{jsx as xc}from"react/jsx-runtime";var ta="k-button-group",uc=[i.disabled],fc={fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},bc={},B=e=>{let{fillMode:t,disabled:o,stretched:a,...n}=e;return xc("div",{role:"group",...n,className:r(e.className,ta,y(ta,{fillMode:t}),S(ta,{disabled:o}),{[`${ta}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};B.states=uc;B.options=fc;B.className=ta;B.defaultOptions=bc;B.moduleName=En;B.folderName=Ti;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 dv,jsx as lv,jsxs as cv}from"react/jsx-runtime";import{Fragment as xv,jsx as bv,jsxs as hv}from"react/jsx-runtime";import{Fragment as Mv,jsx as Lv,jsxs as Sv}from"react/jsx-runtime";import{Fragment as Ev,jsx as yv,jsxs as Ov}from"react/jsx-runtime";import{Fragment as _v,jsx as Kv,jsxs as Dv}from"react/jsx-runtime";import{Fragment as Vv,jsx as Gv,jsxs as $v}from"react/jsx-runtime";import{jsx as ut,jsxs as On}from"react/jsx-runtime";var hc={...l.options,...B.options},Nc=l.states,kc={...l.defaultOptions,...B.defaultOptions,variant:"text-button"},vc=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],gc=[],ro=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?On(B,{fillMode:a.fillMode,className:o,children:[ut(l,{...a,icon:"star"}),ut(l,{...a,icon:"star"}),ut(l,{...a,icon:"star"})]}):t==="icon-text-button"?On(B,{fillMode:a.fillMode,className:o,children:[ut(l,{...a,icon:"star",children:"First"}),ut(l,{...a,icon:"star",children:"Middle"}),ut(l,{...a,icon:"star",children:"Last"})]}):On(B,{fillMode:a.fillMode,className:o,children:[ut(l,{...a,children:"First"}),ut(l,{...a,children:"Middle"}),ut(l,{...a,children:"Last"})]})};ro.options=hc;ro.states=Nc;ro.variants=vc;ro.defaultOptions=kc;ro.modifiers=gc;ro.className=B.className;var oa="input",Pa=oa;import{jsx as Cc}from"react/jsx-runtime";var wa="k-input",Lc=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Mc={size:[c.undefined,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Sc={},q=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p,size:b,rounded:h,fillMode:x,...N}=e;return Cc("span",{...N,className:r(e.className,wa,y(wa,{size:b,rounded:h,fillMode:x}),S(wa,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p}))})};q.states=Lc;q.options=Mc;q.className=wa;q.defaultOptions=Sc;q.moduleName=oa;q.folderName=Pa;import{jsx as yc}from"react/jsx-runtime";var Ra="k-picker",Ic=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Tc={size:[c.undefined,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Ac={},it=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p,size:b,rounded:h,fillMode:x,...N}=e;return yc("span",{...N,className:r(e.className,Ra,y(Ra,{size:b,rounded:h,fillMode:x}),S(Ra,{hover:t,focus:o,disabled:a,invalid:n,valid:s,loading:d,readonly:p})),children:e.children})};it.states=Ic;it.options=Tc;it.className=Ra;it.defaultOptions=Ac;it.moduleName=oa;it.folderName=Pa;import{Fragment as Bc,jsx as Bn}from"react/jsx-runtime";var Ai="k-clear-value",Ec=[i.disabled,i.loading,i.readonly],Oc={},_e=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?Bn(Bc,{}):Bn("span",{className:r(e.className,Ai),children:Bn(M,{icon:"x"})})};_e.states=Ec;_e.options=Oc;_e.className=Ai;import{jsx as Rc}from"react/jsx-runtime";var Pn="k-input-inner",Pc=[],wc={},Ka={type:"text",autocomplete:"off",value:"",placeholder:""},De=e=>{let{value:t=Ka.value,type:o=Ka.type,placeholder:a=Ka.placeholder,autocomplete:n=Ka.autocomplete,disabled:s,readOnly:d,...p}=e;return Rc("input",{...p,type:o,className:r(e.className,Pn,y(Pn,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:s||void 0,readOnly:d||void 0})};De.states=Pc;De.options=wc;De.className=Pn;import{jsx as yi,jsxs as Dc}from"react/jsx-runtime";var wn="k-input-inner",Kc=[],_c={},Ht=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:s,...d}=e;return Dc("span",{...d,className:r(e.className,wn,y(wn,e)),children:[n,!n&&s&&yi(M,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&yi("span",{className:"k-input-value-text",children:t})]})};Ht.states=Kc;Ht.options=_c;Ht.className=wn;import{jsx as Fc}from"react/jsx-runtime";var Rn="k-input-inner",Hc=[],zc={},Ei={value:"",placeholder:""},aa=e=>{let{value:t=Ei.value,placeholder:o=Ei.placeholder,rows:a,disabled:n,...s}=e;return Fc("textarea",{...s,className:r(e.className,Rn,y(Rn,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};aa.states=Hc;aa.options=zc;aa.className=Rn;import{Fragment as Gc,jsx as Oi}from"react/jsx-runtime";var Bi="k-input-loading-icon",Uc=[i.disabled,i.loading],Ee=e=>{let{disabled:t,loading:o}=e;return t||!o?Oi(Gc,{}):Oi("span",{className:r(e.className,Bi,"k-icon k-i-loading")})};Ee.states=Uc;Ee.className=Bi;import{Fragment as Xc,jsx as Pi}from"react/jsx-runtime";var wi="k-input-validation-icon",Vc=[i.valid,i.invalid,i.disabled,i.loading],$c={},ge=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,s=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?Pi(Xc,{}):Pi(M,{className:r(wi),icon:s})};ge.states=Vc;ge.options=$c;ge.className=wi;import{Fragment as Jc,jsx as Ri}from"react/jsx-runtime";var qc="k-input-prefix",Wc={direction:"horizontal"},Oe=e=>{let{direction:t=Wc.direction,...o}=e;return e.children?Ri("span",{...o,className:r(qc,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ri(Jc,{})};import{Fragment as Zc,jsx as Ki}from"react/jsx-runtime";var Yc="k-input-suffix",Qc={direction:"horizontal"},Be=e=>{let{direction:t=Qc.direction,...o}=e;return e.children?Ki("span",{...o,className:r(Yc,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ki(Zc,{})};import{jsx as $g}from"react/jsx-runtime";import{jsx as ep}from"react/jsx-runtime";var jc="k-input-suffix-text",Kn=e=>{let{children:t,...o}=e;return ep("span",{...o,className:r(jc,e.className),children:t})};import{jsx as op}from"react/jsx-runtime";var _i="k-input-separator",tp={direction:"vertical"},Le=e=>{let{direction:t=tp.direction,...o}=e;return op("span",{...o,className:r(_i,e.className,{[`${_i}-${t}`]:t})})};import{Fragment as Di,jsx as st,jsxs as _n}from"react/jsx-runtime";var ap=q.states,np=q.defaultOptions,rp=q.options,ip=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],sp=[],io=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:s,readonly:d,...p}=e,b=t?.prefix,h=t?.suffix,x=t?.["clear-button"],N=t?.["validation-icon"],m=t?.separators;return _n(q,{...p,valid:o,invalid:a,loading:n,disabled:s,readonly:d,style:{width:300},children:[b&&_n(Di,{children:[st(Oe,{children:st(M,{icon:"lock"})}),m&&st(Le,{})]}),st(De,{placeholder:"Placeholder",value:"Value"}),N&&st(ge,{valid:o,invalid:a,loading:n,disabled:s}),st(Ee,{loading:n,disabled:s}),x&&st(_e,{loading:n,disabled:s,readonly:d,value:"Value"}),h&&_n(Di,{children:[m&&st(Le,{}),st(Be,{children:st(Dt,{size:p.size,fillMode:"clear",children:"Send"})})]})]})};io.options=rp;io.states=ap;io.variants=sp;io.defaultOptions=np;io.modifiers=ip;io.className=q.className;import{jsx as Hi,jsxs as cp}from"react/jsx-runtime";var zi="k-color-preview",lp=[],dp={},Lt=e=>{let{color:t,iconName:o,...a}=e;return cp("span",{...a,className:r(e.className,zi,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Hi(M,{icon:o,className:"k-color-preview-icon"}),Hi("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Lt.states=lp;Lt.options=dp;Lt.className=zi;var Dn="popup",Fi=Dn;import{jsx as Ui}from"react/jsx-runtime";var Gi="k-animation-container",pp=[],mp={},Hn={positionMode:"absolute",shown:!0},lt=e=>{let{positionMode:t=Hn.positionMode,shown:o=Hn.shown,animationStyle:a,offset:n,...s}=e;return Ui("div",{...s,style:{...n,...e.style},className:r(e.className,Gi,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Ui("div",{className:"k-child-animation-container",style:a,children:e.children})})};lt.states=pp;lt.options=mp;lt.className=Gi;lt.defaultOptions=Hn;lt.moduleName=Dn;lt.folderName=Fi;var zn="popup",Vi=zn;import{jsx as $i}from"react/jsx-runtime";var Xi="k-popup",up=[],fp={},qi={positionMode:"absolute"},z=e=>{let{offset:t,positionMode:o=qi.positionMode,animationStyle:a,containerClassName:n,containerRole:s,containerAriaLabel:d,...p}=e;return $i(lt,{positionMode:o,offset:t,animationStyle:a,className:n,role:s,"aria-label":d,children:$i("div",{...p,className:r(e.className,Xi),children:e.children})})};z.states=up;z.options=fp;z.className=Xi;z.defaultOptions=qi;z.moduleName=zn;z.folderName=Vi;z.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};import{jsx as xp}from"react/jsx-runtime";var bp="k-actionsheet-footer",Wi={alignment:"stretched",orientation:"horizontal"},Mt=e=>{let{alignment:t=Wi.alignment,orientation:o=Wi.orientation,template:a,as:n=a?"div":X,...s}=e;return xp(n,{...s,...!a&&{alignment:t,orientation:o},className:r(e.className,bp),children:e.children})};var Fn="searchbox",Ji=Fn;import{jsx as na,jsxs as kp}from"react/jsx-runtime";var Yi="k-searchbox",hp=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],Np={size:[c.undefined,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Un={showIcon:!0,icon:"search"},$e=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:s,hover:d,focus:p,valid:b,invalid:h,required:x,loading:N,disabled:m,showIcon:L=Un.showIcon,icon:g=Un.icon,"aria-label":C,...A}=e;return kp(q,{...A,size:a,rounded:n,fillMode:s,hover:d,focus:p,valid:b,invalid:h,required:x,loading:N,disabled:m,className:r(e.className,Yi),children:[L&&na(M,{className:"k-input-icon",icon:g}),na(De,{placeholder:o,value:t,"aria-label":C}),na(Ee,{...e}),na(ge,{...e}),na(_e,{...e})]})};$e.states=hp;$e.options=Np;$e.className=Yi;$e.defaultOptions=Un;$e.moduleName=Fn;$e.folderName=Ji;import{jsx as dM}from"react/jsx-runtime";var Gn="textbox",Qi=Gn;import{Fragment as Zi,jsx as St,jsxs as Vn}from"react/jsx-runtime";var ji="k-textbox",vp=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],gp={size:[c.undefined,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},_a={showClearButton:!0,showValidationIcon:!0,separators:!0},ue=e=>{let{size:t,rounded:o,fillMode:a,separators:n=_a.separators,showClearButton:s=_a.showClearButton,showValidationIcon:d=_a.showValidationIcon,prefix:p,suffix:b,type:h,value:x,placeholder:N,hover:m,focus:L,valid:g,invalid:C,required:A,loading:I,disabled:w,readonly:$,id:ie,"aria-label":de,"aria-describedby":ce,...pe}=e;return Vn(q,{...pe,size:t,rounded:o,fillMode:a,hover:m,focus:L,valid:g,invalid:C,required:A,loading:I,disabled:w,readonly:$,className:r(e.className,ji),children:[p&&Vn(Zi,{children:[St(Oe,{children:p}),n&&St(Le,{})]}),St(De,{id:ie,placeholder:N,value:x,type:h,disabled:w,"aria-label":de,"aria-describedby":ce,"aria-invalid":C?"true":void 0}),d&&St(ge,{valid:g,invalid:C,loading:I,disabled:w}),St(Ee,{loading:I,disabled:w}),s&&St(_e,{loading:I,disabled:w,readonly:$,value:x}),b&&Vn(Zi,{children:[n&&St(Le,{}),St(Be,{children:b})]})]})};ue.states=vp;ue.options=gp;ue.className=ji;ue.defaultOptions=_a;ue.moduleName=Gn;ue.folderName=Qi;ue.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 ra=ue;import{jsx as Lp}from"react/jsx-runtime";var es=e=>Lp(ra,{...e});import{Fragment as TM,jsx as IM}from"react/jsx-runtime";import{Fragment as PM,jsx as BM}from"react/jsx-runtime";import{jsx as _M}from"react/jsx-runtime";import{jsx as $n}from"react/jsx-runtime";var Mp=ue.states,Sp=ue.defaultOptions,Cp=ue.options,Ip=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Tp=[],so=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?$n(M,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?$n(Dt,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),$n(es,{value:"Value",style:{width:300},...o,...a})};so.options=Cp;so.states=Mp;so.variants=Tp;so.defaultOptions=Sp;so.modifiers=Ip;so.className=ue.className;import{jsx as Ct,jsxs as Xn}from"react/jsx-runtime";var ts="k-actionsheet-titlebar",Ap={},Me=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:s,input:d,inputValue:p,inputPlaceholder:b,adaptive:h,titleId:x,children:N,...m}=e;return Xn("div",{...m,className:r(e.className,ts),children:[Xn("div",{className:"k-actionsheet-titlebar-group",children:[a&&Ct("div",{className:"k-actionsheet-actions",children:a}),!N&&Xn("div",{className:"k-actionsheet-title",id:x,children:[t&&Ct("div",{className:"k-text-center",children:t}),o&&Ct("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&Ct("div",{className:"k-actionsheet-title",id:x,children:N}),n&&Ct("div",{className:"k-actionsheet-actions",children:n})]}),(d||s)&&Ct("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Ct(ue,{value:p,placeholder:b,size:h?"large":"medium","aria-label":t||b||"Input"}):Ct($e,{placeholder:"Filter",size:h?"large":"medium","aria-label":"Filter options"})})]})};Me.className=ts;Me.defaultOptions=Ap;import{jsx as qn,jsxs as Bp}from"react/jsx-runtime";var Wn="k-actionsheet-view",yp=[],Ep={},Op={},lo=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:s,titleId:d,...p}=e,b=n?.type===Me&&qn(Me,{adaptive:t,titleId:d,...n?.props}),h=s?.type===Mt&&qn(Mt,{...s?.props});return Bp("div",{...p,className:r(e.className,Wn,{[`${Wn}-animated`]:o}),children:[b,qn("div",{className:"k-actionsheet-content",children:a}),h]})};lo.states=yp;lo.options=Ep;lo.className=Wn;lo.defaultOptions=Op;var ia="action-sheet",Da=ia;var Jn="overlay",os=Jn;import{jsx as Kp}from"react/jsx-runtime";var as="k-overlay",Pp=[],wp={},Rp={},It=e=>{let{...t}=e;return Kp("div",{...t,className:r(e.className,as),children:e.children})};It.states=Pp;It.options=wp;It.className=as;It.defaultOptions=Rp;It.moduleName=Jn;It.folderName=os;import{jsx as Ha,jsxs as Hp}from"react/jsx-runtime";var ns="k-actionsheet",_p=[],Dp={},sa={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Q=e=>{let{side:t=sa.side,fullscreen:o=sa.fullscreen,adaptive:a=sa.adaptive,overlay:n=sa.overlay,template:s,children:d,header:p,footer:b,id:h,...x}=e,N=h&&!s&&p?`${h}-title`:void 0;return Hp("div",{className:"k-actionsheet-container",children:[n&&Ha(It,{}),Ha(lt,{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:Ha("div",{...x,id:h,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":N,className:r(e.className,ns,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||Ha(lo,{header:p,footer:b,adaptive:a,titleId:N,...e,children:d})})})]})};Q.states=_p;Q.options=Dp;Q.className=ns;Q.defaultOptions=sa;Q.moduleName=ia;Q.folderName=Da;Q.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 Gp}from"react/jsx-runtime";var rs="k-actionsheet-container",zp=[],Fp={},Up={},co=e=>{let{children:t,...o}=e;return Gp("div",{...o,className:rs,children:t})};co.states=zp;co.options=Fp;co.className=rs;co.defaultOptions=Up;co.moduleName=ia;co.folderName=Da;import{jsx as Vp}from"react/jsx-runtime";var Yn=e=>{let{...t}=e;return Vp("div",{...t,className:r(e.className,"k-list-ul"),children:e.children})};import{Fragment as Xp,jsx as la,jsxs as Qn}from"react/jsx-runtime";var Zn="k-actionsheet-item",$p=[i.hover,i.focus,i.selected,i.disabled],Tt=e=>{let{iconName:t,text:o,description:a,hover:n,focus:s,selected:d,disabled:p,...b}=e;return Qn("span",{...b,className:r(e.className,Zn,S(Zn,{hover:n,focus:s,selected:d,disabled:p})),children:[!e.children&&la(Xp,{children:Qn("span",{className:"k-actionsheet-action",children:[t&&la("span",{className:"k-icon-wrap",children:la(M,{className:"k-actionsheet-item-icon",icon:t})}),Qn("span",{className:"k-actionsheet-item-text",children:[o&&la("span",{className:"k-actionsheet-item-title",children:o}),a&&la("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Tt.states=$p;Tt.className=Zn;import{jsx as KS,jsxs as _S}from"react/jsx-runtime";import{jsx as FS}from"react/jsx-runtime";import{jsx as $S}from"react/jsx-runtime";import{jsx as JS}from"react/jsx-runtime";import{jsx as fe,jsxs as jn}from"react/jsx-runtime";var qp=Q.options,Wp=Q.states,ss={...Q.defaultOptions,variant:"normal"},Jp=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Yp=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],po=e=>{let{variant:t,modifiers:o,...a}={...ss,...e},n={},s=jn(Yn,{children:[fe(Tt,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),fe(Tt,{text:"Add to Favorites",iconName:"heart"}),fe(Tt,{text:"Upload New",iconName:"upload",disabled:!0}),fe("hr",{className:"k-hr"}),fe(Tt,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",p="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(b=>{switch(b){case"actions":n.actionsStart=!!o?.[b],n.actionsEnd=!!o?.[b];break;case"subtitle":n.subtitle=o?.[b]?d:void 0;break;case"footer":n.footer=!!o?.[b];break;default:break}}),t==="adaptive"?fe(Q,{...a,adaptive:!0,fullscreen:n.fullScreen,header:fe(Me,{actionsStart:n.actionsStart?fe(l,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?fe(l,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:p,subtitle:n.subtitle}),footer:n.footer?jn(Mt,{alignment:"stretched",children:[fe(l,{text:"Cancel",size:"large",themeColor:"base"}),fe(l,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):fe(Q,{...a,fullscreen:n.fullScreen,header:fe(Me,{actionsStart:n.actionsStart?fe(l,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?fe(l,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?jn(Mt,{alignment:"stretched",children:[fe(l,{text:"Apply",themeColor:"primary"}),fe(l,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};po.options=qp;po.states=Wp;po.variants=Jp;po.defaultOptions=ss;po.modifiers=Yp;po.className=Q.className;var er="slider",ls=er;import{jsx as mo,jsxs as tr}from"react/jsx-runtime";var da="k-slider",Qp=[i.hover,i.focus,i.active,i.disabled,i.readonly],Zp={},Xe={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},V=e=>{let{type:t=Xe.type,orientation:o=Xe.orientation,gradientType:a=Xe.gradientType,readonly:n=Xe.readonly,disabled:s=Xe.disabled,handlePosition:d=Xe.handlePosition,showButtons:p=Xe.showButtons,showTicks:b=Xe.showTicks,value:h=Xe.value,min:x=Xe.min,max:N=Xe.max,startValue:m,endValue:L,hover:g,focus:C,active:A,trackStyle:I,dir:w,...$}=e,de=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),ce,pe;return o==="horizontal"?(ce=w==="rtl"?"chevron-left":"chevron-right",pe=w==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(ce="chevron-up",pe="chevron-down"),tr("div",{...$,className:r(da,e.className,S(da,{readonly:n,disabled:s}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:w,children:[p&&mo(l,{className:"k-button-decrease",rounded:"full",icon:pe,tabIndex:-1,title:"Decrease"}),tr("div",{className:"k-slider-track-wrap",children:[b&&mo("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),tr("div",{className:"k-slider-track",style:I,children:[mo("div",{className:"k-slider-selection"}),t==="range"&&mo("span",{className:r("k-draghandle","k-draghandle-start",S(da,{hover:g,focus:C,active:A})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":m??x,"aria-valuemin":x,"aria-valuemax":L??N,"aria-orientation":de,"aria-disabled":s?"true":void 0,"aria-readonly":n?"true":void 0,"aria-label":$["aria-label"]?`${$["aria-label"]} start`:"Range start"}),mo("span",{className:r("k-draghandle",`k-draghandle-${d}`,S(da,{hover:g,focus:C,active:A})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":t==="range"?L??N:h,"aria-valuemin":t==="range"?m??x:x,"aria-valuemax":N,"aria-orientation":de,"aria-disabled":s?"true":void 0,"aria-readonly":n?"true":void 0,"aria-label":t==="range"?$["aria-label"]?`${$["aria-label"]} end`:"Range end":$["aria-label"]})]})]}),p&&mo(l,{className:"k-button-increase",rounded:"full",icon:ce,tabIndex:-1,title:"Increase"})]})};V.states=Qp;V.options=Zp;V.className=da;V.defaultOptions=Xe;V.moduleName=er;V.folderName=ls;V.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 ds}from"react/jsx-runtime";var cs="k-tick",jp=[],em={},ps={label:!1},O=e=>{let{style:t,label:o=ps.label,orientation:a,large:n,text:s,...d}=e;return ds("li",{...d,role:"presentation",title:s||"Tick",className:r(e.className,cs,{[`k-tick-${a}`]:a,"k-tick-large":n}),style:t,children:o&&ds("span",{className:"k-label",children:s})})};O.states=jp;O.options=em;O.className=cs;O.defaultOptions=ps;import{Fragment as tm,jsx as qe,jsxs as om}from"react/jsx-runtime";var ms=e=>qe(V,{"aria-label":e["aria-label"]||"Slider",children:om(tm,{children:[qe(O,{className:"k-first",label:!0,large:!0,text:"0"}),qe(O,{}),qe(O,{}),qe(O,{}),qe(O,{}),qe(O,{label:!0,large:!0,text:"5"}),qe(O,{}),qe(O,{}),qe(O,{}),qe(O,{}),qe(O,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as am,jsx as We,jsxs as nm}from"react/jsx-runtime";var us=e=>We(V,{children:nm(am,{children:[We(O,{className:"k-first",label:!0,large:!0,text:"0"}),We(O,{}),We(O,{}),We(O,{}),We(O,{}),We(O,{label:!0,large:!0,text:"5"}),We(O,{}),We(O,{}),We(O,{}),We(O,{}),We(O,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as _C,jsx as KC,jsxs as DC}from"react/jsx-runtime";import{Fragment as GC,jsx as UC,jsxs as VC}from"react/jsx-runtime";import{jsx as rm}from"react/jsx-runtime";var or=e=>rm(V,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as im}from"react/jsx-runtime";var ar=e=>im(V,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as tI,jsx as eI,jsxs as oI}from"react/jsx-runtime";import{Fragment as sI,jsx as iI,jsxs as lI}from"react/jsx-runtime";import{jsx as dt,jsxs as fs}from"react/jsx-runtime";var sm=V.options,lm=V.states,bs={...V.defaultOptions,variant:"horizontal",label:!0},dm=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],cm=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],uo=e=>{let{variant:t,modifiers:o,...a}=e,n=bs.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"?fs(us,{style:{height:"300px",...d},...a,...s,children:[dt(O,{label:n,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),dt(O,{label:n,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),dt(O,{label:n,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),dt(O,{label:n,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),dt(O,{label:n,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):fs(ms,{style:{width:"400px",...d},...a,...s,children:[dt(O,{label:n,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),dt(O,{label:n,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),dt(O,{label:n,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),dt(O,{label:n,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),dt(O,{label:n,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};uo.options=sm;uo.states=lm;uo.variants=dm;uo.defaultOptions=bs;uo.modifiers=cm;uo.className=V.className;import{jsx as xs,jsxs as bm}from"react/jsx-runtime";var hs="k-spin-button",um=[],fm={size:[c.undefined,c.small,c.medium,c.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},nr={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},At=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:n=nr.increaseLabel,decreaseLabel:s=nr.decreaseLabel,...d}=e;return bm("span",{...d,className:r(hs,e.className),children:[xs(l,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":n}),xs(l,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":s})]})};At.states=um;At.options=fm;At.className=hs;At.defaultOptions=nr;At.moduleName=null;At.folderName=null;var Ns="numeric-textbox",ks="numerictextbox";import{Fragment as vs,jsx as ft,jsxs as rr}from"react/jsx-runtime";var gs="k-numerictextbox",xm=[i.hover,i.focus,i.valid,i.invalid,i.loading,i.required,i.disabled,i.readonly],hm={size:[c.undefined,c.small,c.medium,c.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},za={showSpinButton:!0,showClearButton:!0,separators:!0},H=e=>{let{size:t,rounded:o,fillMode:a,separators:n=za.separators,showClearButton:s=za.showClearButton,showSpinButton:d=za.showSpinButton,prefix:p,suffix:b,value:h,placeholder:x,hover:N,focus:m,valid:L,invalid:g,required:C,loading:A,disabled:I,readonly:w,id:$,"aria-label":ie,"aria-describedby":de,...ce}=e;return rr(q,{...ce,size:t,rounded:o,fillMode:a,hover:N,focus:m,valid:L,invalid:g,required:C,loading:A,disabled:I,readonly:w,className:r(e.className,gs),children:[p&&rr(vs,{children:[ft(Oe,{children:p}),n&&ft(Le,{})]}),ft(De,{id:$,placeholder:x,value:h,role:"spinbutton",disabled:I,"aria-label":ie,"aria-describedby":de,"aria-invalid":g?"true":void 0}),ft(ge,{valid:L,invalid:g,loading:A,disabled:I}),ft(Ee,{loading:A,disabled:I}),s&&ft(_e,{loading:A,disabled:I,readonly:w,value:h}),b&&rr(vs,{children:[n&&ft(Le,{}),ft(Be,{children:b})]}),d&&ft(At,{className:"k-input-spinner",size:t,fillMode:a,disabled:I})]})};H.states=xm;H.options=hm;H.className=gs;H.defaultOptions=za;H.moduleName=Ns;H.folderName=ks;H.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 ca=H;import{jsx as Nm}from"react/jsx-runtime";var Ls=e=>Nm(ca,{...e});import sr from"react";import{jsx as Ms}from"react/jsx-runtime";var km="k-list-group-sticky-header",ir=e=>Ms("div",{className:r(km,e.className),children:Ms("div",{className:"k-list-header-text",children:e.children})});import{jsx as gm}from"react/jsx-runtime";var vm="k-no-data",Fa=e=>{let{live:t,...o}=e;return gm("span",{...o,className:r(vm,e.className),"aria-live":t?"polite":void 0,children:e.children})};var zt="list",fo=zt;import{jsx as Ss,jsxs as Cs}from"react/jsx-runtime";var lr="k-list",Lm=[],Mm={size:[c.undefined,c.small,c.medium,c.large]},Sm={},_=e=>{let{size:t,virtualization:o,children:a,header:n,selectAll:s,optionLabel:d,customValue:p,noData:b,screenReaders:h,...x}=e,m=sr.Children.toArray(a)[0],L=m?.props?.children?sr.Children.count(m.props.children):sr.Children.count(a);return Cs("div",{...x,className:r(e.className,lr,y(lr,{size:t}),{"k-virtual-list":o}),children:[d,s,p,n&&Ss(ir,{children:n}),a||(b!==void 0?b:Ss(Fa,{live:!0,child