@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 180 kB
JavaScript
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 K=(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"}),H=(e,t)=>{let{valid:o,invalid:a,hover:r,focus:i,checked:u,active:m,selected:f,disabled:x,indeterminate:C,loading:k,empty:h,readonly:E,highlighted:g,...O}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":r,"k-focus":i,"k-checked":u,"k-active":m,"k-selected":f,"k-disabled":x,"k-indeterminate":C&&!u,"k-loading":k,"k-empty":h,"k-readonly":E,"k-highlighted":g},Object.keys(O).reduce((D,B)=>(B.startsWith("k-")?D[B]=O[B]:D[`k-${B}`]=O[B],D),{}))};function Tn(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"},y={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},v={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},wt={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},w={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},d={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var Wl={};function V(e){return Wl[e]=(Wl[e]||0)+1,`k-${e}-${Wl[e]}`}var Z="scheduler",ee=Z;import{jsx as $d}from"react/jsx-runtime";var wn="k-scheduler-layout",Fd=[],Wd={},Vd={},mo=e=>{let{as:t="div",view:o,...a}=e,r=o==="agenda"?"grid":o==="year"?void 0:"none";return $d(t,{...a,className:n(e.className,wn,{[`k-scheduler-${o}view`]:o}),...r&&{role:r},children:e.children})};mo.states=Fd;mo.options=Wd;mo.className=wn;mo.defaultOptions=Vd;mo.moduleName=Z;mo.folderName=ee;var Mn=mo;import{jsx as Yd,jsxs as Qd}from"react/jsx-runtime";var Ln="k-scheduler",Xd=[],Jd={},qd={},Y=e=>{let{view:t,toolbar:o,footer:a,layout:r,...i}=e;return Qd("div",{...i,className:n(e.className,Ln),role:"application",children:[o,Yd(Mn,{className:n({"k-scheduler-layout-flex":r==="flex"}),as:r==="table"?"table":"div",view:t,children:e.children}),a]})};Y.states=Xd;Y.options=Jd;Y.className=Ln;Y.defaultOptions=qd;Y.moduleName=Z;Y.folderName=ee;Y.ariaSpec={selector:".k-scheduler",rules:[{selector:".k-scheduler",attribute:"role=application",usage:"Specifies the role of the component."},{selector:".k-scheduler-toolbar",attribute:"role=toolbar",usage:"Follows Toolbar spec: sets the component role."},{selector:".k-scheduler-toolbar",attribute:"aria-label or title",usage:"Follows Toolbar spec: each toolbar must have a label specifying its purpose."},{selector:'.k-scheduler-navigation .k-button:has([class*="i-chevron-left"])',attribute:"aria-label",usage:"Required as the previous navigation button contains only an icon (no text)."},{selector:'.k-scheduler-navigation .k-button:has([class*="i-chevron-right"])',attribute:"aria-label",usage:"Required as the next navigation button contains only an icon (no text)."},{selector:".k-nav-current",attribute:"aria-live=polite",usage:"The new date of the Scheduler view will be announced upon navigation to a new time span or view type."},{selector:".k-views-dropdown",attribute:"aria-label",usage:"The <select> element visible on the toolbar on small screens must have its aria-label set."},{selector:".k-scheduler-views",attribute:"role=group",usage:"Follows SegmentedControl spec: sets the proper role for the group of view buttons."},{selector:".k-scheduler-views .k-segmented-control-button",attribute:"aria-pressed (when selected)",usage:"Follows SegmentedControl spec: specifies the current state of the view SegmentedControl. Only the selected button within the group will have this attribute set to true."},{selector:".k-scheduler-agendaview",attribute:"role=grid",usage:"The main table of the Agenda view must indicate it is a Data Grid."},{selector:".k-scheduler-agendaview>tbody",attribute:"role=none/presentation",usage:"The <tbody> element must have its semantics removed."},{selector:".k-scheduler-agendaview .k-scheduler-table",attribute:"role=none/presentation",usage:"Inner <table> elements within the Agenda Scheduler must have their semantic role removed."},{selector:".k-scheduler-agendaview .k-scheduler-table>tbody",attribute:"role=rowgroup",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-agendaview .k-scheduler-table>tbody>tr",attribute:"role=row",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-agendaview .k-scheduler-table>tbody>tr>th",attribute:"role=columnheader",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-agendaview .k-scheduler-content tr .k-selected",attribute:"aria-selected",usage:"Used to signify the currently selected row in Agenda view."},{selector:".k-scheduler-content>.k-scheduler-table>tbody>tr>.k-scheduler-groupcolumn,.k-scheduler-content>.k-scheduler-table>tbody>tr>.k-scheduler-datecolumn",attribute:"role=rowheader",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-content>.k-scheduler-table>tbody>tr>.k-scheduler-timecolumn,.k-scheduler-content>.k-scheduler-table>tbody>tr>.k-scheduler-timecolumn+td",attribute:"role=gridcell",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-dayview,.k-scheduler-weekview,.k-scheduler-monthview,.k-scheduler-timelineview",attribute:"role=none/presentation",usage:"All <table> elements within the Scheduler must have their semantic role removed."},{selector:".k-scheduler-times .k-scheduler-table",attribute:"role=none/presentation",usage:"Times sidebar tables must have their semantics removed. The role propagates to child th/tr elements, resolving empty-table-header violations."},{selector:".k-event",attribute:"role=button",usage:"Indicating that the event element is interactive."},{selector:".k-event",attribute:"aria-label",usage:"Label containing the title, start, and end date of the appointment."},{selector:".k-scheduler-layout:not(.k-scheduler-agendaview) .k-scheduler-content",attribute:"tabindex=0",usage:"Scrollable elements need to be focusable to ensure scrolling with arrow keys is available (does not apply to agenda view)."}]};import{Fragment as tc,jsx as En}from"react/jsx-runtime";var Vl="k-font-icon",Zd=[],jd={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info]},ec={},Na=e=>{let{size:t,themeColor:o,icon:a,rotate:r,flip:i,...u}=e;return a?En("span",{...u,className:n(e.className,Vl,K(Vl,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true"}):En(tc,{})};Na.states=Zd;Na.options=jd;Na.className=Vl;Na.defaultOptions=ec;var An=Na;import{Fragment as lc,jsx as ja}from"react/jsx-runtime";var $l="k-svg-icon",oc=[],ac={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info],variant:[wt.outline,wt.solid,wt.duotone]},Xl={viewBox:"0 0 24 24",variant:wt.outline},ga=e=>{let{size:t,themeColor:o,rotate:a,flip:r,viewBox:i=Xl.viewBox,variant:u=Xl.variant,icon:m,...f}=e;if(!m)return ja(lc,{});if(m==="none")return ja("span",{...f,className:n(e.className,$l,K("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof m=="object"&&m.name&&m.name,C=typeof m=="object"?u&&m.variants?.[u]||m.variants?.outline||m.content:void 0;return ja("span",{...f,className:n(e.className,$l,K("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`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:ja("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof m=="object"?m.viewBox:i,dangerouslySetInnerHTML:C!==void 0?{__html:C}:void 0,children:m?void 0:e.children})})};ga.states=oc;ga.options=ac;ga.className=$l;ga.defaultOptions=Xl;var Jl=ga;import*as ql from"@progress/kendo-svg-icons";var Rn="icon",In="icons";import{useContext as nc}from"react";import{createContext as rc}from"react";var On=rc({iconsType:"svg"});import{Fragment as Bn,jsx as Ta}from"react/jsx-runtime";var el="k-icon",sc=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ic=[],dc={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info],variant:[wt.outline,wt.solid,wt.duotone]},tl={viewBox:"0 0 24 24",type:"svg",variant:wt.outline},L=e=>{let{iconsType:t}=nc(On),{size:o,themeColor:a,icon:r,type:i=t||tl.type,rotate:u,flip:m,viewBox:f=tl.viewBox,variant:x=tl.variant,...C}=e;if(!r)return Ta(Bn,{});if((t||i)==="svg"){if(r==="none")return Ta(Jl,{...C,className:n(e.className,el),icon:r,size:o,variant:x});let h=ql[r]?r:sc(`${r}-icon`);return ql[h]?Ta(Jl,{...C,className:n(e.className,el),icon:ql[h],size:o,themeColor:a,rotate:u,flip:m,viewBox:f,variant:x}):Ta(Bn,{})}return Ta(An,{...C,className:n(e.className,el),icon:r,size:o,themeColor:a,rotate:u,flip:m})};L.states=ic;L.options=dc;L.defaultOptions=tl;L.className=el;L.moduleName=Rn;L.folderName=In;L.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var Yl=L;var Ql="button",Pn=Ql;import{Fragment as Dn,jsx as Ro,jsxs as Kn}from"react/jsx-runtime";var wa="k-button",cc=["icon-button"],pc=[d.hover,d.focus,d.active,d.selected,d.disabled,d.generating],uc={size:[p.undefined,p.xsmall,p.small,p.medium,p.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[v.undefined,v.solid,v.flat,v.outline,v.clear,v.link],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info,w.inverse]},Zl={showArrow:!1,arrowIconName:"chevron-down"},c=e=>{let{as:t="button",size:o,rounded:a,fillMode:r,themeColor:i,showArrow:u=Zl.showArrow,arrowIconName:m=Zl.arrowIconName,variant:f,hover:x,focus:C,active:k,selected:h,disabled:E,togglable:g,ariaDisabled:O,icon:D,iconSize:B,text:W,iconClassName:ie,className:Ce,...Ae}=e,Te=D!=null,ze=e.children!==void 0;return Kn(t,{className:n(Ce,wa,Tn(wa,f),K(wa,{size:o,rounded:a,fillMode:r,themeColor:i}),H(wa,{hover:x,focus:C,active:k,disabled:E||O,selected:h}),{"k-icon-button":!W&&!ze&&Te}),"aria-pressed":g?h?"true":"false":void 0,...Ae,"aria-disabled":O?"true":void 0,disabled:E||void 0,children:[typeof D=="string"&&D&&Ro(L,{className:n(ie,"k-button-icon"),icon:D,size:B}),D&&typeof D!="string"&&Ro(Dn,{children:D}),W?Kn(Dn,{children:[W&&Ro("span",{className:"k-button-text",children:W}),e.children]}):e.children&&Ro("span",{className:"k-button-text",children:e.children}),u&&Ro("span",{className:"k-menu-button-arrow k-button-arrow",children:Ro(L,{icon:m})})]})};c.states=pc;c.options=uc;c.variants=cc;c.className=wa;c.defaultOptions=Zl;c.moduleName=Ql;c.folderName=Pn;c.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 mc}from"react/jsx-runtime";var Yt=e=>mc(c,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as hc}from"react/jsx-runtime";var Ma=e=>hc(c,{icon:"folder",children:"Button",...e});import{jsx as bc}from"react/jsx-runtime";var ho=e=>bc(c,{children:"Button",...e});import{jsx as jl}from"react/jsx-runtime";var fc=c.options,xc=c.states,Cc={...c.defaultOptions,variant:"text"},vc=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],yc=[],Io=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return jl(Yt,{...o,icon:"star"});case"icon-and-text":return jl(Ma,{...o,icon:"star",children:"Button"});default:return jl(ho,{...o,children:"Button"})}};Io.options=fc;Io.states=xc;Io.variants=vc;Io.defaultOptions=Cc;Io.modifiers=yc;Io.className=c.className;var er="button",Hn=er;import{jsx as gc}from"react/jsx-runtime";var La="k-button-group",kc=[d.disabled],Sc={fillMode:[v.undefined,v.solid,v.flat,v.outline,v.clear,v.link]},Nc={},R=e=>{let{fillMode:t,disabled:o,stretched:a,...r}=e;return gc("div",{role:"group",...r,className:n(e.className,La,K(La,{fillMode:t}),H(La,{disabled:o}),{[`${La}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};R.states=kc;R.options=Sc;R.className=La;R.defaultOptions=Nc;R.moduleName=er;R.folderName=Hn;R.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 GC,jsx as zC,jsxs as UC}from"react/jsx-runtime";import{Fragment as JC,jsx as XC,jsxs as qC}from"react/jsx-runtime";import{Fragment as tv,jsx as ev,jsxs as ov}from"react/jsx-runtime";import{Fragment as iv,jsx as sv,jsxs as dv}from"react/jsx-runtime";import{Fragment as bv,jsx as hv,jsxs as fv}from"react/jsx-runtime";import{Fragment as Sv,jsx as kv,jsxs as Nv}from"react/jsx-runtime";import{jsx as _t,jsxs as tr}from"react/jsx-runtime";var Tc={...c.options,...R.options},wc=c.states,Mc={...c.defaultOptions,...R.defaultOptions,variant:"text-button"},Lc=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Ec=[],Oo=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?tr(R,{fillMode:a.fillMode,className:o,children:[_t(c,{...a,icon:"star"}),_t(c,{...a,icon:"star"}),_t(c,{...a,icon:"star"})]}):t==="icon-text-button"?tr(R,{fillMode:a.fillMode,className:o,children:[_t(c,{...a,icon:"star",children:"First"}),_t(c,{...a,icon:"star",children:"Middle"}),_t(c,{...a,icon:"star",children:"Last"})]}):tr(R,{fillMode:a.fillMode,className:o,children:[_t(c,{...a,children:"First"}),_t(c,{...a,children:"Middle"}),_t(c,{...a,children:"Last"})]})};Oo.options=Tc;Oo.states=wc;Oo.variants=Lc;Oo.defaultOptions=Mc;Oo.modifiers=Ec;Oo.className=R.className;var or="segmented-control",_n=or,zn="segmented-control-button",Gn="segmented-control";import{jsx as Ic,jsxs as Oc}from"react/jsx-runtime";var ol="k-segmented-control",Ac=[],Rc={size:[p.undefined,p.small,p.medium,p.large]},de=e=>{let{size:t,stretched:o,children:a,thumbStyles:r,...i}=e;return Oc("div",{...i,className:n(e.className,ol,K(ol,{size:t}),{[`${ol}-stretched`]:o}),role:"group",children:[Ic("div",{className:"k-segmented-control-thumb","aria-hidden":"true",style:r}),a]})};de.states=Ac;de.options=Rc;de.className=ol;de.moduleName=or;de.folderName=_n;de.ariaSpec={selector:".k-segmented-control",rules:[{selector:".k-segmented-control",attribute:"role=group",usage:"Sets the proper role for the group of buttons."},{selector:".k-segmented-control-button",attribute:"role=button or nodeName=button",usage:"Each button must have the appropriate button role."},{selector:".k-segmented-control-button.k-selected",attribute:"aria-pressed=true",usage:"Only the selected button within the group will have this attribute set to true."},{selector:".k-segmented-control-button.k-disabled",attribute:"aria-disabled=true",usage:"Indicates that the button is disabled and cannot be interacted with."},{selector:".k-segmented-control-thumb",attribute:"aria-hidden=true",usage:"The thumb is purely decorative and should be hidden from screen readers."}]};import{jsx as Un,jsxs as Kc}from"react/jsx-runtime";var ar="k-segmented-control-button",Bc=[d.selected,d.hover,d.focus,d.disabled],Pc={},Dc={},_=e=>{let{hover:t,focus:o,selected:a,disabled:r,icon:i,text:u,iconClassName:m,...f}=e;return Kc("button",{...f,className:n(e.className,ar,H(ar,{hover:t,focus:o,disabled:r,selected:a})),"aria-pressed":a?"true":"false","aria-disabled":r?"true":void 0,children:[i&&Un(L,{className:n(m,"k-segmented-control-button-icon"),icon:i}),(u||e.children)&&Un("span",{className:"k-segmented-control-button-text",children:u||e.children})]})};_.states=Bc;_.options=Pc;_.className=ar;_.defaultOptions=Dc;_.moduleName=zn;_.folderName=Gn;import{Fragment as jv,jsx as Zv,jsxs as ey}from"react/jsx-runtime";import{Fragment as ny,jsx as ry,jsxs as sy}from"react/jsx-runtime";import{Fragment as my,jsx as uy,jsxs as hy}from"react/jsx-runtime";import{Fragment as yy,jsx as vy,jsxs as ky}from"react/jsx-runtime";import{Fragment as My,jsx as wy,jsxs as Ly}from"react/jsx-runtime";var Ea="input",rl=Ea;import{jsx as Gc}from"react/jsx-runtime";var nl="k-input",Hc=[d.hover,d.focus,d.valid,d.invalid,d.required,d.disabled,d.loading,d.readonly],_c={size:[p.undefined,p.small,p.medium,p.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},zc={},ve=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:i,loading:u,readonly:m,size:f,rounded:x,fillMode:C,...k}=e;return Gc("span",{...k,className:n(e.className,nl,K(nl,{size:f,rounded:x,fillMode:C}),H(nl,{hover:t,focus:o,disabled:a,invalid:r,valid:i,loading:u,readonly:m}))})};ve.states=Hc;ve.options=_c;ve.className=nl;ve.defaultOptions=zc;ve.moduleName=Ea;ve.folderName=rl;import{jsx as Vc}from"react/jsx-runtime";var sl="k-picker",Uc=[d.hover,d.focus,d.valid,d.invalid,d.required,d.disabled,d.loading,d.readonly],Fc={size:[p.undefined,p.small,p.medium,p.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},Wc={},Mt=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:i,loading:u,readonly:m,size:f,rounded:x,fillMode:C,...k}=e;return Vc("span",{...k,className:n(e.className,sl,K(sl,{size:f,rounded:x,fillMode:C}),H(sl,{hover:t,focus:o,disabled:a,invalid:r,valid:i,loading:u,readonly:m})),children:e.children})};Mt.states=Uc;Mt.options=Fc;Mt.className=sl;Mt.defaultOptions=Wc;Mt.moduleName=Ea;Mt.folderName=rl;import{Fragment as Jc,jsx as lr}from"react/jsx-runtime";var Fn="k-clear-value",$c=[d.disabled,d.loading,d.readonly],Xc={},Ze=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?lr(Jc,{}):lr("span",{className:n(e.className,Fn),children:lr(L,{icon:"x"})})};Ze.states=$c;Ze.options=Xc;Ze.className=Fn;import{jsx as Qc}from"react/jsx-runtime";var rr="k-input-inner",qc=[],Yc={},il={type:"text",autocomplete:"off",value:"",placeholder:""},je=e=>{let{value:t=il.value,type:o=il.type,placeholder:a=il.placeholder,autocomplete:r=il.autocomplete,disabled:i,readOnly:u,...m}=e;return Qc("input",{...m,type:o,className:n(e.className,rr,K(rr,e)),placeholder:a,autoComplete:r,defaultValue:t,disabled:i||void 0,readOnly:u||void 0})};je.states=qc;je.options=Yc;je.className=rr;import{jsx as Wn,jsxs as ep}from"react/jsx-runtime";var nr="k-input-inner",Zc=[],jc={},bo=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:i,...u}=e;return ep("span",{...u,className:n(e.className,nr,K(nr,e)),children:[r,!r&&i&&Wn(L,{className:"k-input-value-icon",icon:i}),a&&!t&&o,a&&t&&Wn("span",{className:"k-input-value-text",children:t})]})};bo.states=Zc;bo.options=jc;bo.className=nr;import{jsx as ap}from"react/jsx-runtime";var sr="k-input-inner",tp=[],op={},Vn={value:"",placeholder:""},ir=e=>{let{value:t=Vn.value,placeholder:o=Vn.placeholder,rows:a,disabled:r,...i}=e;return ap("textarea",{...i,className:n(e.className,sr,K(sr,e)),placeholder:o,rows:a,defaultValue:t,disabled:r||void 0})};ir.states=tp;ir.options=op;ir.className=sr;import{Fragment as rp,jsx as $n}from"react/jsx-runtime";var Xn="k-input-loading-icon",lp=[d.disabled,d.loading],Je=e=>{let{disabled:t,loading:o}=e;return t||!o?$n(rp,{}):$n("span",{className:n(e.className,Xn,"k-icon k-i-loading")})};Je.states=lp;Je.className=Xn;import{Fragment as ip,jsx as Jn}from"react/jsx-runtime";var qn="k-input-validation-icon",np=[d.valid,d.invalid,d.disabled,d.loading],sp={},Ge=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,i=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?Jn(ip,{}):Jn(L,{className:n(qn),icon:i})};Ge.states=np;Ge.options=sp;Ge.className=qn;import{Fragment as pp,jsx as Yn}from"react/jsx-runtime";var dp="k-input-prefix",cp={direction:"horizontal"},dt=e=>{let{direction:t=cp.direction,...o}=e;return e.children?Yn("span",{...o,className:n(dp,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Yn(pp,{})};import{Fragment as hp,jsx as Qn}from"react/jsx-runtime";var up="k-input-suffix",mp={direction:"horizontal"},ct=e=>{let{direction:t=mp.direction,...o}=e;return e.children?Qn("span",{...o,className:n(up,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Qn(hp,{})};import{jsx as Sk}from"react/jsx-runtime";import{jsx as fp}from"react/jsx-runtime";var bp="k-input-suffix-text",dr=e=>{let{children:t,...o}=e;return fp("span",{...o,className:n(bp,e.className),children:t})};import{jsx as Cp}from"react/jsx-runtime";var Zn="k-input-separator",xp={direction:"vertical"},pt=e=>{let{direction:t=xp.direction,...o}=e;return Cp("span",{...o,className:n(Zn,e.className,{[`${Zn}-${t}`]:t})})};import{Fragment as jn,jsx as Lt,jsxs as cr}from"react/jsx-runtime";var vp=ve.states,yp=ve.defaultOptions,kp=ve.options,Sp=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Np=[],Bo=e=>{let{modifiers:t,valid:o,invalid:a,loading:r,disabled:i,readonly:u,...m}=e,f=t?.prefix,x=t?.suffix,C=t?.["clear-button"],k=t?.["validation-icon"],h=t?.separators;return cr(ve,{...m,valid:o,invalid:a,loading:r,disabled:i,readonly:u,style:{width:300},children:[f&&cr(jn,{children:[Lt(dt,{children:Lt(L,{icon:"lock"})}),h&&Lt(pt,{})]}),Lt(je,{placeholder:"Placeholder",value:"Value"}),k&&Lt(Ge,{valid:o,invalid:a,loading:r,disabled:i}),Lt(Je,{loading:r,disabled:i}),C&&Lt(Ze,{loading:r,disabled:i,readonly:u,value:"Value"}),x&&cr(jn,{children:[h&&Lt(pt,{}),Lt(ct,{children:Lt(ho,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};Bo.options=kp;Bo.states=vp;Bo.variants=Np;Bo.defaultOptions=yp;Bo.modifiers=Sp;Bo.className=ve.className;import{jsx as es,jsxs as wp}from"react/jsx-runtime";var ts="k-color-preview",gp=[],Tp={},Qt=e=>{let{color:t,iconName:o,...a}=e;return wp("span",{...a,className:n(e.className,ts,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&es(L,{icon:o,className:"k-color-preview-icon"}),es("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Qt.states=gp;Qt.options=Tp;Qt.className=ts;var pr="popup",os=pr;import{jsx as as}from"react/jsx-runtime";var ls="k-animation-container",Mp=[],Lp={},ur={positionMode:"absolute",shown:!0},Et=e=>{let{positionMode:t=ur.positionMode,shown:o=ur.shown,animationStyle:a,offset:r,...i}=e;return as("div",{...i,style:{...r,...e.style},className:n(e.className,ls,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:as("div",{className:"k-child-animation-container",style:a,children:e.children})})};Et.states=Mp;Et.options=Lp;Et.className=ls;Et.defaultOptions=ur;Et.moduleName=pr;Et.folderName=os;var mr="popup",rs=mr;import{jsx as ns}from"react/jsx-runtime";var ss="k-popup",Ep=[],Ap={},is={positionMode:"absolute"},ce=e=>{let{offset:t,positionMode:o=is.positionMode,animationStyle:a,containerClassName:r,containerRole:i,containerAriaLabel:u,...m}=e;return ns(Et,{positionMode:o,offset:t,animationStyle:a,className:r,role:i,"aria-label":u,children:ns("div",{...m,className:n(e.className,ss),children:e.children})})};ce.states=Ep;ce.options=Ap;ce.className=ss;ce.defaultOptions=is;ce.moduleName=mr;ce.folderName=rs;ce.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var hr="action-buttons",ds=hr;import{jsx as Op}from"react/jsx-runtime";var dl="k-actions",Rp=[],Ip={},br={alignment:"start",orientation:"horizontal"},At=e=>{let{alignment:t=br.alignment,orientation:o=br.orientation,...a}=e;return Op("div",{...a,className:n(dl,{[`${dl}-${t}`]:t,[`${dl}-${o}`]:o},e.className),children:e.children})};At.states=Rp;At.options=Ip;At.className=dl;At.defaultOptions=br;At.moduleName=hr;At.folderName=ds;import{jsx as Pp}from"react/jsx-runtime";var Bp="k-actionsheet-footer",cs={alignment:"stretched",orientation:"horizontal"},Zt=e=>{let{alignment:t=cs.alignment,orientation:o=cs.orientation,template:a,as:r=a?"div":At,...i}=e;return Pp(r,{...i,...!a&&{alignment:t,orientation:o},className:n(e.className,Bp),children:e.children})};var fr="searchbox",ps=fr;import{jsx as Aa,jsxs as Hp}from"react/jsx-runtime";var us="k-searchbox",Dp=[d.hover,d.focus,d.valid,d.invalid,d.required,d.disabled,d.loading],Kp={size:[p.undefined,p.small,p.medium,p.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},xr={showIcon:!0,icon:"search"},ut=e=>{let{value:t,placeholder:o,size:a,rounded:r,fillMode:i,hover:u,focus:m,valid:f,invalid:x,required:C,loading:k,disabled:h,showIcon:E=xr.showIcon,icon:g=xr.icon,"aria-label":O,...D}=e;return Hp(ve,{...D,size:a,rounded:r,fillMode:i,hover:u,focus:m,valid:f,invalid:x,required:C,loading:k,disabled:h,className:n(e.className,us),children:[E&&Aa(L,{className:"k-input-icon",icon:g}),Aa(je,{placeholder:o,value:t,"aria-label":O}),Aa(Je,{...e}),Aa(Ge,{...e}),Aa(Ze,{...e})]})};ut.states=Dp;ut.options=Kp;ut.className=us;ut.defaultOptions=xr;ut.moduleName=fr;ut.folderName=ps;import{jsx as XS}from"react/jsx-runtime";var Cr="textbox",ms=Cr;import{Fragment as hs,jsx as jt,jsxs as vr}from"react/jsx-runtime";var bs="k-textbox",_p=[d.hover,d.focus,d.valid,d.invalid,d.required,d.disabled,d.loading,d.readonly],zp={size:[p.undefined,p.small,p.medium,p.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},cl={showClearButton:!0,showValidationIcon:!0,separators:!0},Re=e=>{let{size:t,rounded:o,fillMode:a,separators:r=cl.separators,showClearButton:i=cl.showClearButton,showValidationIcon:u=cl.showValidationIcon,prefix:m,suffix:f,type:x,value:C,placeholder:k,hover:h,focus:E,valid:g,invalid:O,required:D,loading:B,disabled:W,readonly:ie,id:Ce,"aria-label":Ae,"aria-describedby":Te,...ze}=e;return vr(ve,{...ze,size:t,rounded:o,fillMode:a,hover:h,focus:E,valid:g,invalid:O,required:D,loading:B,disabled:W,readonly:ie,className:n(e.className,bs),children:[m&&vr(hs,{children:[jt(dt,{children:m}),r&&jt(pt,{})]}),jt(je,{id:Ce,placeholder:k,value:C,type:x,disabled:W,"aria-label":Ae,"aria-describedby":Te,"aria-invalid":O?"true":void 0}),u&&jt(Ge,{valid:g,invalid:O,loading:B,disabled:W}),jt(Je,{loading:B,disabled:W}),i&&jt(Ze,{loading:B,disabled:W,readonly:ie,value:C}),f&&vr(hs,{children:[r&&jt(pt,{}),jt(ct,{children:f})]})]})};Re.states=_p;Re.options=zp;Re.className=bs;Re.defaultOptions=cl;Re.moduleName=Cr;Re.folderName=ms;Re.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=Re;import{jsx as Gp}from"react/jsx-runtime";var fs=e=>Gp(Ra,{...e});import{Fragment as pN,jsx as cN}from"react/jsx-runtime";import{Fragment as xN,jsx as fN}from"react/jsx-runtime";import{jsx as kN}from"react/jsx-runtime";import{jsx as yr}from"react/jsx-runtime";var Up=Re.states,Fp=Re.defaultOptions,Wp=Re.options,Vp=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],$p=[],Po=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{switch(r){case"prefix":a.prefix=t?.[r]?yr(L,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[r]?yr(ho,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[r];break;default:break}}),yr(fs,{value:"Value",style:{width:300},...o,...a})};Po.options=Wp;Po.states=Up;Po.variants=$p;Po.defaultOptions=Fp;Po.modifiers=Vp;Po.className=Re.className;import{jsx as eo,jsxs as kr}from"react/jsx-runtime";var xs="k-actionsheet-titlebar",Xp={},Ue=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:r,filter:i,input:u,inputValue:m,inputPlaceholder:f,adaptive:x,titleId:C,children:k,...h}=e;return kr("div",{...h,className:n(e.className,xs),children:[kr("div",{className:"k-actionsheet-titlebar-group",children:[a&&eo("div",{className:"k-actionsheet-actions",children:a}),!k&&kr("div",{className:"k-actionsheet-title",id:C,children:[t&&eo("div",{className:"k-text-center",children:t}),o&&eo("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),k&&eo("div",{className:"k-actionsheet-title",id:C,children:k}),r&&eo("div",{className:"k-actionsheet-actions",children:r})]}),(u||i)&&eo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:u?eo(Re,{value:m,placeholder:f,size:x?"large":"medium","aria-label":t||f||"Input"}):eo(ut,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};Ue.className=xs;Ue.defaultOptions=Xp;import{jsx as Sr,jsxs as Qp}from"react/jsx-runtime";var Nr="k-actionsheet-view",Jp=[],qp={},Yp={},Do=e=>{let{adaptive:t,animated:o,children:a,header:r,footer:i,titleId:u,...m}=e,f=r?.type===Ue&&Sr(Ue,{adaptive:t,titleId:u,...r?.props}),x=i?.type===Zt&&Sr(Zt,{...i?.props});return Qp("div",{...m,className:n(e.className,Nr,{[`${Nr}-animated`]:o}),children:[f,Sr("div",{className:"k-actionsheet-content",children:a}),x]})};Do.states=Jp;Do.options=qp;Do.className=Nr;Do.defaultOptions=Yp;var Ia="action-sheet",pl=Ia;var gr="overlay",Cs=gr;import{jsx as tu}from"react/jsx-runtime";var vs="k-overlay",Zp=[],jp={},eu={},to=e=>{let{...t}=e;return tu("div",{...t,className:n(e.className,vs),children:e.children})};to.states=Zp;to.options=jp;to.className=vs;to.defaultOptions=eu;to.moduleName=gr;to.folderName=Cs;import{jsx as ul,jsxs as lu}from"react/jsx-runtime";var ys="k-actionsheet",ou=[],au={},Oa={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},be=e=>{let{side:t=Oa.side,fullscreen:o=Oa.fullscreen,adaptive:a=Oa.adaptive,overlay:r=Oa.overlay,template:i,children:u,header:m,footer:f,id:x,...C}=e,k=x&&!i&&m?`${x}-title`:void 0;return lu("div",{className:"k-actionsheet-container",children:[r&&ul(to,{}),ul(Et,{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:ul("div",{...C,id:x,role:"dialog","aria-modal":r?"true":void 0,"aria-labelledby":k,className:n(e.className,ys,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:i||ul(Do,{header:m,footer:f,adaptive:a,titleId:k,...e,children:u})})})]})};be.states=ou;be.options=au;be.className=ys;be.defaultOptions=Oa;be.moduleName=Ia;be.folderName=pl;be.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 iu}from"react/jsx-runtime";var ks="k-actionsheet-container",ru=[],nu={},su={},Ko=e=>{let{children:t,...o}=e;return iu("div",{...o,className:ks,children:t})};Ko.states=ru;Ko.options=nu;Ko.className=ks;Ko.defaultOptions=su;Ko.moduleName=Ia;Ko.folderName=pl;import{jsx as du}from"react/jsx-runtime";var Tr=e=>{let{...t}=e;return du("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as pu,jsx as Ba,jsxs as wr}from"react/jsx-runtime";var Mr="k-actionsheet-item",cu=[d.hover,d.focus,d.selected,d.disabled],oo=e=>{let{iconName:t,text:o,description:a,hover:r,focus:i,selected:u,disabled:m,...f}=e;return wr("span",{...f,className:n(e.className,Mr,H(Mr,{hover:r,focus:i,selected:u,disabled:m})),children:[!e.children&&Ba(pu,{children:wr("span",{className:"k-actionsheet-action",children:[t&&Ba("span",{className:"k-icon-wrap",children:Ba(L,{className:"k-actionsheet-item-icon",icon:t})}),wr("span",{className:"k-actionsheet-item-text",children:[o&&Ba("span",{className:"k-actionsheet-item-title",children:o}),a&&Ba("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};oo.states=cu;oo.className=Mr;import{jsx as yg,jsxs as kg}from"react/jsx-runtime";import{jsx as Tg}from"react/jsx-runtime";import{jsx as Eg}from"react/jsx-runtime";import{jsx as Og}from"react/jsx-runtime";import{jsx as Ie,jsxs as Lr}from"react/jsx-runtime";var uu=be.options,mu=be.states,Ns={...be.defaultOptions,variant:"normal"},hu=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],bu=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Ho=e=>{let{variant:t,modifiers:o,...a}={...Ns,...e},r={},i=Lr(Tr,{children:[Ie(oo,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),Ie(oo,{text:"Add to Favorites",iconName:"heart"}),Ie(oo,{text:"Upload New",iconName:"upload",disabled:!0}),Ie("hr",{className:"k-hr"}),Ie(oo,{text:"Cancel",iconName:"cancel"})]}),u="Choose from the items below",m="Select Item";return t==="fullScreen"&&(r.fullScreen=!0),Object.keys(o||{}).forEach(f=>{switch(f){case"actions":r.actionsStart=!!o?.[f],r.actionsEnd=!!o?.[f];break;case"subtitle":r.subtitle=o?.[f]?u:void 0;break;case"footer":r.footer=!!o?.[f];break;default:break}}),t==="adaptive"?Ie(be,{...a,adaptive:!0,fullscreen:r.fullScreen,header:Ie(Ue,{actionsStart:r.actionsStart?Ie(c,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?Ie(c,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:m,subtitle:r.subtitle}),footer:r.footer?Lr(Zt,{alignment:"stretched",children:[Ie(c,{text:"Cancel",size:"large",themeColor:"base"}),Ie(c,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:i}):Ie(be,{...a,fullscreen:r.fullScreen,header:Ie(Ue,{actionsStart:r.actionsStart?Ie(c,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?Ie(c,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:r.subtitle}),footer:r.footer?Lr(Zt,{alignment:"stretched",children:[Ie(c,{text:"Apply",themeColor:"primary"}),Ie(c,{text:"Cancel",themeColor:"base"})]}):void 0,children:i})};Ho.options=uu;Ho.states=mu;Ho.variants=hu;Ho.defaultOptions=Ns;Ho.modifiers=bu;Ho.className=be.className;var Er="slider",gs=Er;import{jsx as _o,jsxs as Ar}from"react/jsx-runtime";var Pa="k-slider",fu=[d.hover,d.focus,d.active,d.disabled,d.readonly],xu={},mt={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},se=e=>{let{type:t=mt.type,orientation:o=mt.orientation,gradientType:a=mt.gradientType,readonly:r=mt.readonly,disabled:i=mt.disabled,handlePosition:u=mt.handlePosition,showButtons:m=mt.showButtons,showTicks:f=mt.showTicks,value:x=mt.value,min:C=mt.min,max:k=mt.max,startValue:h,endValue:E,hover:g,focus:O,active:D,trackStyle:B,dir:W,...ie}=e,Ae=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),Te,ze;return o==="horizontal"?(Te=W==="rtl"?"chevron-left":"chevron-right",ze=W==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(Te="chevron-up",ze="chevron-down"),Ar("div",{...ie,className:n(Pa,e.className,H(Pa,{readonly:r,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:W,children:[m&&_o(c,{className:"k-button-decrease",rounded:"full",icon:ze,tabIndex:-1,title:"Decrease"}),Ar("div",{className:"k-slider-track-wrap",children:[f&&_o("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),Ar("div",{className:"k-slider-track",style:B,children:[_o("div",{className:"k-slider-selection"}),t==="range"&&_o("span",{className:n("k-draghandle","k-draghandle-start",H(Pa,{hover:g,focus:O,active:D})),role:"slider",tabIndex:i?void 0:0,"aria-valuenow":h??C,"aria-valuemin":C,"aria-valuemax":E??k,"aria-orientation":Ae,"aria-disabled":i?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":ie["aria-label"]?`${ie["aria-label"]} start`:"Range start"}),_o("span",{className:n("k-draghandle",`k-draghandle-${u}`,H(Pa,{hover:g,focus:O,active:D})),role:"slider",tabIndex:i?void 0:0,"aria-valuenow":t==="range"?E??k:x,"aria-valuemin":t==="range"?h??C:C,"aria-valuemax":k,"aria-orientation":Ae,"aria-disabled":i?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":t==="range"?ie["aria-label"]?`${ie["aria-label"]} end`:"Range end":ie["aria-label"]})]})]}),m&&_o(c,{className:"k-button-increase",rounded:"full",icon:Te,tabIndex:-1,title:"Increase"})]})};se.states=fu;se.options=xu;se.className=Pa;se.defaultOptions=mt;se.moduleName=Er;se.folderName=gs;se.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 Ts}from"react/jsx-runtime";var ws="k-tick",Cu=[],vu={},Ms={label:!1},z=e=>{let{style:t,label:o=Ms.label,orientation:a,large:r,text:i,...u}=e;return Ts("li",{...u,role:"presentation",title:i||"Tick",className:n(e.className,ws,{[`k-tick-${a}`]:a,"k-tick-large":r}),style:t,children:o&&Ts("span",{className:"k-label",children:i})})};z.states=Cu;z.options=vu;z.className=ws;z.defaultOptions=Ms;import{Fragment as yu,jsx as ht,jsxs as ku}from"react/jsx-runtime";var Ls=e=>ht(se,{"aria-label":e["aria-label"]||"Slider",children:ku(yu,{children:[ht(z,{className:"k-first",label:!0,large:!0,text:"0"}),ht(z,{}),ht(z,{}),ht(z,{}),ht(z,{}),ht(z,{label:!0,large:!0,text:"5"}),ht(z,{}),ht(z,{}),ht(z,{}),ht(z,{}),ht(z,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as Su,jsx as bt,jsxs as Nu}from"react/jsx-runtime";var Es=e=>bt(se,{children:Nu(Su,{children:[bt(z,{className:"k-first",label:!0,large:!0,text:"0"}),bt(z,{}),bt(z,{}),bt(z,{}),bt(z,{}),bt(z,{label:!0,large:!0,text:"5"}),bt(z,{}),bt(z,{}),bt(z,{}),bt(z,{}),bt(z,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as kT,jsx as yT,jsxs as ST}from"react/jsx-runtime";import{Fragment as MT,jsx as wT,jsxs as LT}from"react/jsx-runtime";import{jsx as gu}from"react/jsx-runtime";var Rr=e=>gu(se,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as Tu}from"react/jsx-runtime";var Ir=e=>Tu(se,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as _T,jsx as HT,jsxs as zT}from"react/jsx-runtime";import{Fragment as VT,jsx as WT,jsxs as $T}from"react/jsx-runtime";import{jsx as Rt,jsxs as As}from"react/jsx-runtime";var wu=se.options,Mu=se.states,Rs={...se.defaultOptions,variant:"horizontal",label:!0},Lu=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],Eu=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],zo=e=>{let{variant:t,modifiers:o,...a}=e,r=Rs.label,i={};Object.keys(o||{}).forEach(m=>{switch(m){case"button":{i.showButtons=!!o?.[m];break}case"label":{r=!!o?.[m];break}case"tick":{i.showTicks=!!o?.[m];break}}});let u={"--kendo-slider-start":0,"--kendo-slider-end":60};return t==="vertical"?As(Es,{style:{height:"300px",...u},...a,...i,children:[Rt(z,{label:r,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),Rt(z,{label:r,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),Rt(z,{label:r,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),Rt(z,{label:r,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),Rt(z,{label:r,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):As(Ls,{style:{width:"400px",...u},...a,...i,children:[Rt(z,{label:r,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),Rt(z,{label:r,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),Rt(z,{label:r,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),Rt(z,{label:r,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),Rt(z,{label:r,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};zo.options=wu;zo.states=Mu;zo.variants=Lu;zo.defaultOptions=Rs;zo.modifiers=Eu;zo.className=se.className;import{jsx as Is,jsxs as Bu}from"react/jsx-runtime";var Os="k-spin-button",Iu=[],Ou={size:[p.undefined,p.small,p.medium,p.large],fillMode:[v.undefined,v.solid,v.flat,v.outline,v.clear,v.link]},Or={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},ao=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:r=Or.increaseLabel,decreaseLabel:i=Or.decreaseLabel,...u}=e;return Bu("span",{...u,className:n(Os,e.className),children:[Is(c,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":r}),Is(c,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":i})]})};ao.states=Iu;ao.options=Ou;ao.className=Os;ao.defaultOptions=Or;ao.moduleName=null;ao.folderName=null;var Bs="numeric-textbox",Ps="numerictextbox";import{Fragment as Ds,jsx as zt,jsxs as Br}from"react/jsx-runtime";var Ks="k-numerictextbox",Pu=[d.hover,d.focus,d.valid,d.invalid,d.loading,d.required,d.disabled,d.readonly],Du={size:[p.undefined,p.small,p.medium,p.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},ml={showSpinButton:!0,showClearButton:!0,separators:!0},te=e=>{let{size:t,rounded:o,fillMode:a,separators:r=ml.separators,showClearButton:i=ml.showClearButton,showSpinButton:u=ml.showSpinButton,prefix:m,suffix:f,value:x,placeholder:C,hover:k,focus:h,valid:E,invalid:g,required:O,loading:D,disabled:B,readonly:W,id:ie,"aria-label":Ce,"aria-describedby":Ae,...Te}=e;return Br(ve,{...Te,size:t,rounded:o,fillMode:a,hover:k,focus:h,valid:E,invalid:g,required:O,loading:D,disabled:B,readonly:W,className:n(e.className,Ks),children:[m&&Br(Ds,{children:[zt(dt,{children:m}),r&&zt(pt,{})]}),zt(je,{id:ie,placeholder:C,value:x,role:"spinbutton",disabled:B,"aria-label":Ce,"aria-describedby":Ae,"aria-invalid":g?"true":void 0}),zt(Ge,{valid:E,invalid:g,loading:D,disabled:B}),zt(Je,{loading:D,disabled:B}),i&&zt(Ze,{loading:D,disabled:B,readonly:W,value:x}),f&&Br(Ds,{children:[r&&zt(pt,{}),zt(ct,{children:f})]}),u&&zt(ao,{className:"k-input-spinner",size:t,fillMode:a,disabled:B})]})};te.states=Pu;te.options=Du;te.className=Ks;te.defaultOptions=ml;te.moduleName=Bs;te.folderName=Ps;te.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