UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 184 kB
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,l)=>t[l]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var _=(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"}),z=(e,t)=>{let{valid:o,invalid:l,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":l,"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((H,B)=>(B.startsWith("k-")?H[B]=O[B]:H[`k-${B}`]=O[B],H),{}))};function Ln(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(l=>[`k-${l}`,!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"},Rt={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"},c={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 Xl={};function $(e){return Xl[e]=(Xl[e]||0)+1,`k-${e}-${Xl[e]}`}var Jl="button",En=Jl;import{jsx as qd}from"react/jsx-runtime";var Ta="k-button-group",$d=[c.disabled],Xd={fillMode:[v.undefined,v.solid,v.flat,v.outline,v.clear,v.link]},Jd={},R=e=>{let{fillMode:t,disabled:o,stretched:l,...r}=e;return qd("div",{role:"group",...r,className:n(e.className,Ta,_(Ta,{fillMode:t}),z(Ta,{disabled:o}),{[`${Ta}-stretched`]:l}),...o&&{"aria-disabled":"true"},children:e.children})};R.states=$d;R.options=Xd;R.className=Ta;R.defaultOptions=Jd;R.moduleName=Jl;R.folderName=En;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 jd,jsx as An}from"react/jsx-runtime";var ql="k-font-icon",Yd=[],Qd={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]},Zd={},wa=e=>{let{size:t,themeColor:o,icon:l,rotate:r,flip:i,...u}=e;return l?An("span",{...u,className:n(e.className,ql,_(ql,{size:t}),{[`k-i-${l}`]:l,[`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"}):An(jd,{})};wa.states=Yd;wa.options=Qd;wa.className=ql;wa.defaultOptions=Zd;var Rn=wa;import{Fragment as oc,jsx as ol}from"react/jsx-runtime";var Yl="k-svg-icon",ec=[],tc={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:[Rt.outline,Rt.solid,Rt.duotone]},Ql={viewBox:"0 0 24 24",variant:Rt.outline},Ma=e=>{let{size:t,themeColor:o,rotate:l,flip:r,viewBox:i=Ql.viewBox,variant:u=Ql.variant,icon:m,...f}=e;if(!m)return ol(oc,{});if(m==="none")return ol("span",{...f,className:n(e.className,Yl,_("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 ol("span",{...f,className:n(e.className,Yl,_("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${l}`]:l,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true",children:ol("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})})};Ma.states=ec;Ma.options=tc;Ma.className=Yl;Ma.defaultOptions=Ql;var Zl=Ma;import*as jl from"@progress/kendo-svg-icons";var In="icon",On="icons";import{useContext as lc}from"react";import{createContext as ac}from"react";var Bn=ac({iconsType:"svg"});import{Fragment as Pn,jsx as La}from"react/jsx-runtime";var al="k-icon",rc=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),nc=[],sc={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:[Rt.outline,Rt.solid,Rt.duotone]},ll={viewBox:"0 0 24 24",type:"svg",variant:Rt.outline},L=e=>{let{iconsType:t}=lc(Bn),{size:o,themeColor:l,icon:r,type:i=t||ll.type,rotate:u,flip:m,viewBox:f=ll.viewBox,variant:x=ll.variant,...C}=e;if(!r)return La(Pn,{});if((t||i)==="svg"){if(r==="none")return La(Zl,{...C,className:n(e.className,al),icon:r,size:o,variant:x});let h=jl[r]?r:rc(`${r}-icon`);return jl[h]?La(Zl,{...C,className:n(e.className,al),icon:jl[h],size:o,themeColor:l,rotate:u,flip:m,viewBox:f,variant:x}):La(Pn,{})}return La(Rn,{...C,className:n(e.className,al),icon:r,size:o,themeColor:l,rotate:u,flip:m})};L.states=nc;L.options=sc;L.defaultOptions=ll;L.className=al;L.moduleName=In;L.folderName=On;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 er=L;var tr="button",Dn=tr;import{Fragment as Kn,jsx as Io,jsxs as Hn}from"react/jsx-runtime";var Ea="k-button",ic=["icon-button"],dc=[c.hover,c.focus,c.active,c.selected,c.disabled,c.generating],cc={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]},or={showArrow:!1,arrowIconName:"chevron-down"},d=e=>{let{as:t="button",size:o,rounded:l,fillMode:r,themeColor:i,showArrow:u=or.showArrow,arrowIconName:m=or.arrowIconName,variant:f,hover:x,focus:C,active:k,selected:h,disabled:E,togglable:g,ariaDisabled:O,icon:H,iconSize:B,text:V,iconClassName:pe,className:ve,...Re}=e,we=H!=null,Ge=e.children!==void 0;return Hn(t,{className:n(ve,Ea,Ln(Ea,f),_(Ea,{size:o,rounded:l,fillMode:r,themeColor:i}),z(Ea,{hover:x,focus:C,active:k,disabled:E||O,selected:h}),{"k-icon-button":!V&&!Ge&&we}),"aria-pressed":g?h?"true":"false":void 0,...Re,"aria-disabled":O?"true":void 0,disabled:E||void 0,children:[typeof H=="string"&&H&&Io(L,{className:n(pe,"k-button-icon"),icon:H,size:B}),H&&typeof H!="string"&&Io(Kn,{children:H}),V?Hn(Kn,{children:[V&&Io("span",{className:"k-button-text",children:V}),e.children]}):e.children&&Io("span",{className:"k-button-text",children:e.children}),u&&Io("span",{className:"k-menu-button-arrow k-button-arrow",children:Io(L,{icon:m})})]})};d.states=dc;d.options=cc;d.variants=ic;d.className=Ea;d.defaultOptions=or;d.moduleName=tr;d.folderName=Dn;d.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as pc}from"react/jsx-runtime";var Zt=e=>pc(d,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as uc}from"react/jsx-runtime";var Aa=e=>uc(d,{icon:"folder",children:"Button",...e});import{jsx as mc}from"react/jsx-runtime";var bo=e=>mc(d,{children:"Button",...e});import{jsx as ar}from"react/jsx-runtime";var hc=d.options,bc=d.states,fc={...d.defaultOptions,variant:"text"},xc=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Cc=[],Oo=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return ar(Zt,{...o,icon:"star"});case"icon-and-text":return ar(Aa,{...o,icon:"star",children:"Button"});default:return ar(bo,{...o,children:"Button"})}};Oo.options=hc;Oo.states=bc;Oo.variants=xc;Oo.defaultOptions=fc;Oo.modifiers=Cc;Oo.className=d.className;import{Fragment as BC,jsx as OC,jsxs as PC}from"react/jsx-runtime";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{jsx as Gt,jsxs as lr}from"react/jsx-runtime";var vc={...d.options,...R.options},yc=d.states,kc={...d.defaultOptions,...R.defaultOptions,variant:"text-button"},Sc=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Nc=[],Bo=e=>{let{variant:t,className:o,...l}=e;return t==="icon-button"?lr(R,{fillMode:l.fillMode,className:o,children:[Gt(d,{...l,icon:"star"}),Gt(d,{...l,icon:"star"}),Gt(d,{...l,icon:"star"})]}):t==="icon-text-button"?lr(R,{fillMode:l.fillMode,className:o,children:[Gt(d,{...l,icon:"star",children:"First"}),Gt(d,{...l,icon:"star",children:"Middle"}),Gt(d,{...l,icon:"star",children:"Last"})]}):lr(R,{fillMode:l.fillMode,className:o,children:[Gt(d,{...l,children:"First"}),Gt(d,{...l,children:"Middle"}),Gt(d,{...l,children:"Last"})]})};Bo.options=vc;Bo.states=yc;Bo.variants=Sc;Bo.defaultOptions=kc;Bo.modifiers=Nc;Bo.className=R.className;var rr="segmented-control",_n=rr,zn="segmented-control-button",Gn="segmented-control";import{jsx as wc,jsxs as Mc}from"react/jsx-runtime";var rl="k-segmented-control",gc=[],Tc={size:[p.undefined,p.small,p.medium,p.large]},ie=e=>{let{size:t,stretched:o,children:l,thumbStyles:r,...i}=e;return Mc("div",{...i,className:n(e.className,rl,_(rl,{size:t}),{[`${rl}-stretched`]:o}),role:"group",children:[wc("div",{className:"k-segmented-control-thumb","aria-hidden":"true",style:r}),l]})};ie.states=gc;ie.options=Tc;ie.className=rl;ie.moduleName=rr;ie.folderName=_n;ie.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 Rc}from"react/jsx-runtime";var nr="k-segmented-control-button",Lc=[c.selected,c.hover,c.focus,c.disabled],Ec={},Ac={},P=e=>{let{hover:t,focus:o,selected:l,disabled:r,icon:i,text:u,iconClassName:m,...f}=e;return Rc("button",{...f,className:n(e.className,nr,z(nr,{hover:t,focus:o,disabled:r,selected:l})),"aria-pressed":l?"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})]})};P.states=Lc;P.options=Ec;P.className=nr;P.defaultOptions=Ac;P.moduleName=zn;P.folderName=Gn;import{Fragment as $v,jsx as Vv,jsxs as Xv}from"react/jsx-runtime";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 Dy,jsx as By,jsxs as Py}from"react/jsx-runtime";var j="scheduler",te=j;import{jsx as Pc}from"react/jsx-runtime";var Fn="k-scheduler-layout",Ic=[],Oc={},Bc={},fo=e=>{let{as:t="div",view:o,...l}=e,r=o==="agenda"?"grid":o==="year"?void 0:"none";return Pc(t,{...l,className:n(e.className,Fn,{[`k-scheduler-${o}view`]:o}),...r&&{role:r},children:e.children})};fo.states=Ic;fo.options=Oc;fo.className=Fn;fo.defaultOptions=Bc;fo.moduleName=j;fo.folderName=te;var Wn=fo;import{jsx as _c,jsxs as zc}from"react/jsx-runtime";var Vn="k-scheduler",Dc=[],Kc={},Hc={},X=e=>{let{view:t,toolbar:o,footer:l,layout:r,...i}=e;return zc("div",{...i,className:n(e.className,Vn),role:"application",children:[o,_c(Wn,{className:n({"k-scheduler-layout-flex":r==="flex"}),as:r==="table"?"table":"div",view:t,children:e.children}),l]})};X.states=Dc;X.options=Kc;X.className=Vn;X.defaultOptions=Hc;X.moduleName=j;X.folderName=te;X.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{jsx as $n}from"react/jsx-runtime";var Xn="k-scheduler-header",gt=e=>$n("div",{...e,className:n(Xn,e.className),children:$n("div",{className:"k-scheduler-header-wrap",children:e.children})});gt.className=Xn;gt.moduleName=j;gt.folderName=te;import{jsx as Gc}from"react/jsx-runtime";var Jn="k-scheduler-content",Tt=e=>Gc("div",{...e,className:n(Jn,e.className),children:e.children});Tt.className=Jn;Tt.moduleName=j;Tt.folderName=te;import{jsx as Uc}from"react/jsx-runtime";var qn="k-scheduler-times",jt=e=>Uc("div",{...e,className:n(qn,e.className),children:e.children});jt.className=qn;jt.moduleName=j;jt.folderName=te;import{jsx as Fc}from"react/jsx-runtime";var Yn="k-scheduler-table",pt=e=>Fc("table",{...e,className:n(Yn,e.className),children:e.children});pt.className=Yn;pt.moduleName=j;pt.folderName=te;import{jsx as Qn}from"react/jsx-runtime";var Zn="k-scheduler-cell",Wc=[],Vc={},$c={},a=e=>{let{cellType:t,allDay:o,text:l,colspan:r,rowspan:i,as:u="div",...m}=e,f=l||e.children,x=!l&&!e.children,C=u==="th"&&x&&!m.role?"presentation":void 0;return Qn(u,{...m,colSpan:r,rowSpan:i,...C&&{role:C},className:n(Zn,e.className,{"k-scheduler-times-all-day":o},t?.map(k=>({[`k-${k}-cell`]:!0}))),children:!o&&l?Qn("span",{className:"k-link k-nav-day",children:f}):f})};a.states=Wc;a.options=Vc;a.defaultOptions=$c;a.className=Zn;a.moduleName=j;a.folderName=te;import{jsx as Xc}from"react/jsx-runtime";var jn="k-sticky-cell",Po=e=>Xc("div",{...e,className:n(jn,e.className),children:e.children});Po.className=jn;Po.moduleName=j;Po.folderName=te;import{jsx as Jc}from"react/jsx-runtime";var es="k-scheduler-row",N=e=>Jc("div",{...e,className:n(es,e.className),children:e.children});N.className=es;N.moduleName=j;N.folderName=te;var Ra="input",il=Ra;import{jsx as Zc}from"react/jsx-runtime";var dl="k-input",qc=[c.hover,c.focus,c.valid,c.invalid,c.required,c.disabled,c.loading,c.readonly],Yc={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]},Qc={},ye=e=>{let{hover:t,focus:o,disabled:l,invalid:r,valid:i,loading:u,readonly:m,size:f,rounded:x,fillMode:C,...k}=e;return Zc("span",{...k,className:n(e.className,dl,_(dl,{size:f,rounded:x,fillMode:C}),z(dl,{hover:t,focus:o,disabled:l,invalid:r,valid:i,loading:u,readonly:m}))})};ye.states=qc;ye.options=Yc;ye.className=dl;ye.defaultOptions=Qc;ye.moduleName=Ra;ye.folderName=il;import{jsx as op}from"react/jsx-runtime";var cl="k-picker",jc=[c.hover,c.focus,c.valid,c.invalid,c.required,c.disabled,c.loading,c.readonly],ep={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]},tp={},It=e=>{let{hover:t,focus:o,disabled:l,invalid:r,valid:i,loading:u,readonly:m,size:f,rounded:x,fillMode:C,...k}=e;return op("span",{...k,className:n(e.className,cl,_(cl,{size:f,rounded:x,fillMode:C}),z(cl,{hover:t,focus:o,disabled:l,invalid:r,valid:i,loading:u,readonly:m})),children:e.children})};It.states=jc;It.options=ep;It.className=cl;It.defaultOptions=tp;It.moduleName=Ra;It.folderName=il;import{Fragment as rp,jsx as sr}from"react/jsx-runtime";var ts="k-clear-value",ap=[c.disabled,c.loading,c.readonly],lp={},tt=e=>{let{disabled:t,loading:o,readonly:l,value:r}=e;return t||l||o||!r?sr(rp,{}):sr("span",{className:n(e.className,ts),children:sr(L,{icon:"x"})})};tt.states=ap;tt.options=lp;tt.className=ts;import{jsx as ip}from"react/jsx-runtime";var ir="k-input-inner",np=[],sp={},pl={type:"text",autocomplete:"off",value:"",placeholder:""},ot=e=>{let{value:t=pl.value,type:o=pl.type,placeholder:l=pl.placeholder,autocomplete:r=pl.autocomplete,disabled:i,readOnly:u,...m}=e;return ip("input",{...m,type:o,className:n(e.className,ir,_(ir,e)),placeholder:l,autoComplete:r,defaultValue:t,disabled:i||void 0,readOnly:u||void 0})};ot.states=np;ot.options=sp;ot.className=ir;import{jsx as os,jsxs as pp}from"react/jsx-runtime";var dr="k-input-inner",dp=[],cp={},xo=e=>{let{value:t,placeholder:o,showValue:l,valueIcon:r,valueIconName:i,...u}=e;return pp("span",{...u,className:n(e.className,dr,_(dr,e)),children:[r,!r&&i&&os(L,{className:"k-input-value-icon",icon:i}),l&&!t&&o,l&&t&&os("span",{className:"k-input-value-text",children:t})]})};xo.states=dp;xo.options=cp;xo.className=dr;import{jsx as hp}from"react/jsx-runtime";var cr="k-input-inner",up=[],mp={},as={value:"",placeholder:""},pr=e=>{let{value:t=as.value,placeholder:o=as.placeholder,rows:l,disabled:r,...i}=e;return hp("textarea",{...i,className:n(e.className,cr,_(cr,e)),placeholder:o,rows:l,defaultValue:t,disabled:r||void 0})};pr.states=up;pr.options=mp;pr.className=cr;import{Fragment as fp,jsx as ls}from"react/jsx-runtime";var rs="k-input-loading-icon",bp=[c.disabled,c.loading],qe=e=>{let{disabled:t,loading:o}=e;return t||!o?ls(fp,{}):ls("span",{className:n(e.className,rs,"k-icon k-i-loading")})};qe.states=bp;qe.className=rs;import{Fragment as vp,jsx as ns}from"react/jsx-runtime";var ss="k-input-validation-icon",xp=[c.valid,c.invalid,c.disabled,c.loading],Cp={},Ue=e=>{let{valid:t,invalid:o,disabled:l,loading:r}=e,i=o?"warning-circle":"check-circle";return l||r||!!!(t||o)?ns(vp,{}):ns(L,{className:n(ss),icon:i})};Ue.states=xp;Ue.options=Cp;Ue.className=ss;import{Fragment as Sp,jsx as is}from"react/jsx-runtime";var yp="k-input-prefix",kp={direction:"horizontal"},ut=e=>{let{direction:t=kp.direction,...o}=e;return e.children?is("span",{...o,className:n(yp,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):is(Sp,{})};import{Fragment as Tp,jsx as ds}from"react/jsx-runtime";var Np="k-input-suffix",gp={direction:"horizontal"},mt=e=>{let{direction:t=gp.direction,...o}=e;return e.children?ds("span",{...o,className:n(Np,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ds(Tp,{})};import{jsx as nS}from"react/jsx-runtime";import{jsx as Mp}from"react/jsx-runtime";var wp="k-input-suffix-text",ur=e=>{let{children:t,...o}=e;return Mp("span",{...o,className:n(wp,e.className),children:t})};import{jsx as Ep}from"react/jsx-runtime";var cs="k-input-separator",Lp={direction:"vertical"},ht=e=>{let{direction:t=Lp.direction,...o}=e;return Ep("span",{...o,className:n(cs,e.className,{[`${cs}-${t}`]:t})})};import{Fragment as ps,jsx as Ot,jsxs as mr}from"react/jsx-runtime";var Ap=ye.states,Rp=ye.defaultOptions,Ip=ye.options,Op=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Bp=[],Do=e=>{let{modifiers:t,valid:o,invalid:l,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 mr(ye,{...m,valid:o,invalid:l,loading:r,disabled:i,readonly:u,style:{width:300},children:[f&&mr(ps,{children:[Ot(ut,{children:Ot(L,{icon:"lock"})}),h&&Ot(ht,{})]}),Ot(ot,{placeholder:"Placeholder",value:"Value"}),k&&Ot(Ue,{valid:o,invalid:l,loading:r,disabled:i}),Ot(qe,{loading:r,disabled:i}),C&&Ot(tt,{loading:r,disabled:i,readonly:u,value:"Value"}),x&&mr(ps,{children:[h&&Ot(ht,{}),Ot(mt,{children:Ot(bo,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};Do.options=Ip;Do.states=Ap;Do.variants=Bp;Do.defaultOptions=Rp;Do.modifiers=Op;Do.className=ye.className;import{jsx as us,jsxs as Kp}from"react/jsx-runtime";var ms="k-color-preview",Pp=[],Dp={},eo=e=>{let{color:t,iconName:o,...l}=e;return Kp("span",{...l,className:n(e.className,ms,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&us(L,{icon:o,className:"k-color-preview-icon"}),us("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};eo.states=Pp;eo.options=Dp;eo.className=ms;var hr="popup",hs=hr;import{jsx as bs}from"react/jsx-runtime";var fs="k-animation-container",Hp=[],_p={},br={positionMode:"absolute",shown:!0},Bt=e=>{let{positionMode:t=br.positionMode,shown:o=br.shown,animationStyle:l,offset:r,...i}=e;return bs("div",{...i,style:{...r,...e.style},className:n(e.className,fs,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:bs("div",{className:"k-child-animation-container",style:l,children:e.children})})};Bt.states=Hp;Bt.options=_p;Bt.className=fs;Bt.defaultOptions=br;Bt.moduleName=hr;Bt.folderName=hs;var fr="popup",xs=fr;import{jsx as Cs}from"react/jsx-runtime";var vs="k-popup",zp=[],Gp={},ys={positionMode:"absolute"},me=e=>{let{offset:t,positionMode:o=ys.positionMode,animationStyle:l,containerClassName:r,containerRole:i,containerAriaLabel:u,...m}=e;return Cs(Bt,{positionMode:o,offset:t,animationStyle:l,className:r,role:i,"aria-label":u,children:Cs("div",{...m,className:n(e.className,vs),children:e.children})})};me.states=zp;me.options=Gp;me.className=vs;me.defaultOptions=ys;me.moduleName=fr;me.folderName=xs;me.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 xr="action-buttons",ks=xr;import{jsx as Wp}from"react/jsx-runtime";var ul="k-actions",Up=[],Fp={},Cr={alignment:"start",orientation:"horizontal"},Pt=e=>{let{alignment:t=Cr.alignment,orientation:o=Cr.orientation,...l}=e;return Wp("div",{...l,className:n(ul,{[`${ul}-${t}`]:t,[`${ul}-${o}`]:o},e.className),children:e.children})};Pt.states=Up;Pt.options=Fp;Pt.className=ul;Pt.defaultOptions=Cr;Pt.moduleName=xr;Pt.folderName=ks;import{jsx as $p}from"react/jsx-runtime";var Vp="k-actionsheet-footer",Ss={alignment:"stretched",orientation:"horizontal"},to=e=>{let{alignment:t=Ss.alignment,orientation:o=Ss.orientation,template:l,as:r=l?"div":Pt,...i}=e;return $p(r,{...i,...!l&&{alignment:t,orientation:o},className:n(e.className,Vp),children:e.children})};var vr="searchbox",Ns=vr;import{jsx as Ia,jsxs as qp}from"react/jsx-runtime";var gs="k-searchbox",Xp=[c.hover,c.focus,c.valid,c.invalid,c.required,c.disabled,c.loading],Jp={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]},yr={showIcon:!0,icon:"search"},bt=e=>{let{value:t,placeholder:o,size:l,rounded:r,fillMode:i,hover:u,focus:m,valid:f,invalid:x,required:C,loading:k,disabled:h,showIcon:E=yr.showIcon,icon:g=yr.icon,"aria-label":O,...H}=e;return qp(ye,{...H,size:l,rounded:r,fillMode:i,hover:u,focus:m,valid:f,invalid:x,required:C,loading:k,disabled:h,className:n(e.className,gs),children:[E&&Ia(L,{className:"k-input-icon",icon:g}),Ia(ot,{placeholder:o,value:t,"aria-label":O}),Ia(qe,{...e}),Ia(Ue,{...e}),Ia(tt,{...e})]})};bt.states=Xp;bt.options=Jp;bt.className=gs;bt.defaultOptions=yr;bt.moduleName=vr;bt.folderName=Ns;import{jsx as RN}from"react/jsx-runtime";var kr="textbox",Ts=kr;import{Fragment as ws,jsx as oo,jsxs as Sr}from"react/jsx-runtime";var Ms="k-textbox",Yp=[c.hover,c.focus,c.valid,c.invalid,c.required,c.disabled,c.loading,c.readonly],Qp={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={showClearButton:!0,showValidationIcon:!0,separators:!0},Ie=e=>{let{size:t,rounded:o,fillMode:l,separators:r=ml.separators,showClearButton:i=ml.showClearButton,showValidationIcon:u=ml.showValidationIcon,prefix:m,suffix:f,type:x,value:C,placeholder:k,hover:h,focus:E,valid:g,invalid:O,required:H,loading:B,disabled:V,readonly:pe,id:ve,"aria-label":Re,"aria-describedby":we,...Ge}=e;return Sr(ye,{...Ge,size:t,rounded:o,fillMode:l,hover:h,focus:E,valid:g,invalid:O,required:H,loading:B,disabled:V,readonly:pe,className:n(e.className,Ms),children:[m&&Sr(ws,{children:[oo(ut,{children:m}),r&&oo(ht,{})]}),oo(ot,{id:ve,placeholder:k,value:C,type:x,disabled:V,"aria-label":Re,"aria-describedby":we,"aria-invalid":O?"true":void 0}),u&&oo(Ue,{valid:g,invalid:O,loading:B,disabled:V}),oo(qe,{loading:B,disabled:V}),i&&oo(tt,{loading:B,disabled:V,readonly:pe,value:C}),f&&Sr(ws,{children:[r&&oo(ht,{}),oo(mt,{children:f})]})]})};Ie.states=Yp;Ie.options=Qp;Ie.className=Ms;Ie.defaultOptions=ml;Ie.moduleName=kr;Ie.folderName=Ts;Ie.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 Oa=Ie;import{jsx as Zp}from"react/jsx-runtime";var Ls=e=>Zp(Oa,{...e});import{Fragment as qN,jsx as JN}from"react/jsx-runtime";import{Fragment as tg,jsx as eg}from"react/jsx-runtime";import{jsx as rg}from"react/jsx-runtime";import{jsx as Nr}from"react/jsx-runtime";var jp=Ie.states,eu=Ie.defaultOptions,tu=Ie.options,ou=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],au=[],Ko=e=>{let{modifiers:t,...o}=e,l={};return Object.keys(t||{}).forEach(r=>{switch(r){case"prefix":l.prefix=t?.[r]?Nr(L,{icon:"lock"}):void 0;break;case"suffix":l.suffix=t?.[r]?Nr(bo,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":l.showClearButton=t?.[r];break;default:break}}),Nr(Ls,{value:"Value",style:{width:300},...o,...l})};Ko.options=tu;Ko.states=jp;Ko.variants=au;Ko.defaultOptions=eu;Ko.modifiers=ou;Ko.className=Ie.className;import{jsx as ao,jsxs as gr}from"react/jsx-runtime";var Es="k-actionsheet-titlebar",lu={},Fe=e=>{let{title:t,subtitle:o,actionsStart:l,actionsEnd:r,filter:i,input:u,inputValue:m,inputPlaceholder:f,adaptive:x,titleId:C,children:k,...h}=e;return gr("div",{...h,className:n(e.className,Es),children:[gr("div",{className:"k-actionsheet-titlebar-group",children:[l&&ao("div",{className:"k-actionsheet-actions",children:l}),!k&&gr("div",{className:"k-actionsheet-title",id:C,children:[t&&ao("div",{className:"k-text-center",children:t}),o&&ao("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),k&&ao("div",{className:"k-actionsheet-title",id:C,children:k}),r&&ao("div",{className:"k-actionsheet-actions",children:r})]}),(u||i)&&ao("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:u?ao(Ie,{value:m,placeholder:f,size:x?"large":"medium","aria-label":t||f||"Input"}):ao(bt,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};Fe.className=Es;Fe.defaultOptions=lu;import{jsx as Tr,jsxs as iu}from"react/jsx-runtime";var wr="k-actionsheet-view",ru=[],nu={},su={},Ho=e=>{let{adaptive:t,animated:o,children:l,header:r,footer:i,titleId:u,...m}=e,f=r?.type===Fe&&Tr(Fe,{adaptive:t,titleId:u,...r?.props}),x=i?.type===to&&Tr(to,{...i?.props});return iu("div",{...m,className:n(e.className,wr,{[`${wr}-animated`]:o}),children:[f,Tr("div",{className:"k-actionsheet-content",children:l}),x]})};Ho.states=ru;Ho.options=nu;Ho.className=wr;Ho.defaultOptions=su;var Ba="action-sheet",hl=Ba;var Mr="overlay",As=Mr;import{jsx as uu}from"react/jsx-runtime";var Rs="k-overlay",du=[],cu={},pu={},lo=e=>{let{...t}=e;return uu("div",{...t,className:n(e.className,Rs),children:e.children})};lo.states=du;lo.options=cu;lo.className=Rs;lo.defaultOptions=pu;lo.moduleName=Mr;lo.folderName=As;import{jsx as bl,jsxs as bu}from"react/jsx-runtime";var Is="k-actionsheet",mu=[],hu={},Pa={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},fe=e=>{let{side:t=Pa.side,fullscreen:o=Pa.fullscreen,adaptive:l=Pa.adaptive,overlay:r=Pa.overlay,template:i,children:u,header:m,footer:f,id:x,...C}=e,k=x&&!i&&m?`${x}-title`:void 0;return bu("div",{className:"k-actionsheet-container",children:[r&&bl(lo,{}),bl(Bt,{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:bl("div",{...C,id:x,role:"dialog","aria-modal":r?"true":void 0,"aria-labelledby":k,className:n(e.className,Is,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":l}),children:i||bl(Ho,{header:m,footer:f,adaptive:l,titleId:k,...e,children:u})})})]})};fe.states=mu;fe.options=hu;fe.className=Is;fe.defaultOptions=Pa;fe.moduleName=Ba;fe.folderName=hl;fe.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 vu}from"react/jsx-runtime";var Os="k-actionsheet-container",fu=[],xu={},Cu={},_o=e=>{let{children:t,...o}=e;return vu("div",{...o,className:Os,children:t})};_o.states=fu;_o.options=xu;_o.className=Os;_o.defaultOptions=Cu;_o.moduleName=Ba;_o.folderName=hl;import{jsx as yu}from"react/jsx-runtime";var Lr=e=>{let{...t}=e;return yu("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as Su,jsx as Da,jsxs as Er}from"react/jsx-runtime";var Ar="k-actionsheet-item",ku=[c.hover,c.focus,c.selected,c.disabled],ro=e=>{let{iconName:t,text:o,description:l,hover:r,focus:i,selected:u,disabled:m,...f}=e;return Er("span",{...f,className:n(e.className,Ar,z(Ar,{hover:r,focus:i,selected:u,disabled:m})),children:[!e.children&&Da(Su,{children:Er("span",{className:"k-actionsheet-action",children:[t&&Da("span",{className:"k-icon-wrap",children:Da(L,{className:"k-actionsheet-item-icon",icon:t})}),Er("span",{className:"k-actionsheet-item-text",children:[o&&Da("span",{className:"k-actionsheet-item-title",children:o}),l&&Da("span",{className:"k-actionsheet-item-description",children:l})]})]})}),e.children]})};ro.states=ku;ro.className=Ar;import{jsx as lT,jsxs as rT}from"react/jsx-runtime";import{jsx as dT}from"react/jsx-runtime";import{jsx as mT}from"react/jsx-runtime";import{jsx as xT}from"react/jsx-runtime";import{jsx as Oe,jsxs as Rr}from"react/jsx-runtime";var Nu=fe.options,gu=fe.states,Ps={...fe.defaultOptions,variant:"normal"},Tu=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],wu=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],zo=e=>{let{variant:t,modifiers:o,...l}={...Ps,...e},r={},i=Rr(Lr,{children:[Oe(ro,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),Oe(ro,{text:"Add to Favorites",iconName:"heart"}),Oe(ro,{text:"Upload New",iconName:"upload",disabled:!0}),Oe("hr",{className:"k-hr"}),Oe(ro,{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"?Oe(fe,{...l,adaptive:!0,fullscreen:r.fullScreen,header:Oe(Fe,{actionsStart:r.actionsStart?Oe(d,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?Oe(d,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:m,subtitle:r.subtitle}),footer:r.footer?Rr(to,{alignment:"stretched",children:[Oe(d,{text:"Cancel",size:"large",themeColor:"base"}),Oe(d,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:i}):Oe(fe,{...l,fullscreen:r.fullScreen,header:Oe(Fe,{actionsStart:r.actionsStart?Oe(d,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?Oe(d,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:r.subtitle}),footer:r.footer?Rr(to,{alignment:"stretched",children:[Oe(d,{text:"Apply",themeColor:"primary"}),Oe(d,{text:"Cancel",themeColor:"base"})]}):void 0,children:i})};zo.options=Nu;zo.states=gu;zo.variants=Tu;zo.defaultOptions=Ps;zo.modifiers=wu;zo.className=fe.className;var Ir="slider",Ds=Ir;import{jsx as Go,jsxs as Or}from"react/jsx-runtime";var Ka="k-slider",Mu=[c.hover,c.focus,c.active,c.disabled,c.readonly],Lu={},ft={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},ce=e=>{let{type:t=ft.type,orientation:o=ft.orientation,gradientType:l=ft.gradientType,readonly:r=ft.readonly,disabled:i=ft.disabled,handlePosition:u=ft.handlePosition,showButtons:m=ft.showButtons,showTicks:f=ft.showTicks,value:x=ft.value,min:C=ft.min,max:k=ft.max,startValue:h,endValue:E,hover:g,focus:O,active:H,trackStyle:B,dir:V,...pe}=e,Re=(()=>{if(t==="gradient"&&l==="2d")return"undefined";if(o==="vertical")return"vertical"})(),we,Ge;return o==="horizontal"?(we=V==="rtl"?"chevron-left":"chevron-right",Ge=V==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(we="chevron-up",Ge="chevron-down"),Or("div",{...pe,className:n(Ka,e.className,z(Ka,{readonly:r,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:V,children:[m&&Go(d,{className:"k-button-decrease",rounded:"full",icon:Ge,tabIndex:-1,title:"Decrease"}),Or("div",{className:"k-slider-track-wrap",children:[f&&Go("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),Or("div",{className:"k-slider-track",style:B,children:[Go("div",{className:"k-slider-selection"}),t==="range"&&Go("span",{className:n("k-draghandle","k-draghandle-start",z(Ka,{hover:g,focus:O,active:H})),role:"slider",tabIndex:i?void 0:0,"aria-valuenow":h??C,"aria-valuemin":C,"aria-valuemax":E??k,"aria-orientation":Re,"aria-disabled":i?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":pe["aria-label"]?`${pe["aria-label"]} start`:"Range start"}),Go("span",{className:n("k-draghandle",`k-draghandle-${u}`,z(Ka,{hover:g,focus:O,active:H})),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":Re,"aria-disabled":i?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":t==="range"?pe["aria-label"]?`${pe["aria-label"]} end`:"Range end":pe["aria-label"]})]})]}),m&&Go(d,{className:"k-button-increase",rounded:"full",icon:we,tabIndex:-1,title:"Increase"})]})};ce.states=Mu;ce.options=Lu;ce.className=Ka;ce.defaultOptions=ft;ce.moduleName=Ir;ce.folderName=Ds;ce.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 Ks}from"react/jsx-runtime";var Hs="k-tick",Eu=[],Au={},_s={label:!1},G=e=>{let{style:t,label:o=_s.label,orientation:l,large:r,text:i,...u}=e;return Ks("li",{...u,role:"presentation",title:i||"Tick",className:n(e.className,Hs,{[`k-tick-${l}`]:l,"k-tick-large":r}),style:t,children:o&&Ks("span",{className:"k-label",children:i})})};G.states=Eu;G.options=Au;G.className=Hs;G.defaultOptions=_s;import{Fragment as Ru,jsx as xt,jsxs as Iu}from"react/jsx-runtime";var zs=e=>xt(ce,{"aria-label":e["aria-label"]||"Slider",children:Iu(Ru,{children:[xt(G,{className:"k-first",label:!0,large:!0,text:"0"}),xt(G,{}),xt(G,{}),xt(G,{}),xt(G,{}),xt(G,{label:!0,large:!0,text:"5"}),xt(G,{}),xt(G,{}),xt(G,{}),xt(G,{}),xt(G,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as Ou,jsx as Ct,jsxs as Bu}from"react/jsx-runtime";var Gs=e=>Ct(ce,{children:Bu(Ou,{children:[Ct(G,{className:"k-first",label:!0,large:!0,text:"0"}),Ct(G,{}),Ct(G,{}),Ct(G,{}),Ct(G,{}),Ct(G,{label:!0,large:!0,text:"5"}),Ct(G,{}),Ct(G,{}),Ct(G,{}),Ct(G,{}),Ct(G,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as rw,jsx as lw,jsxs as nw}from"react/jsx-runtime";import{Fragment as pw,jsx as cw,jsxs as uw}from"react/jsx-runtime";import{jsx as Pu}from"react/jsx-runtime";var Br=e=>Pu(ce,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as Du}from"react/jsx-runtime";var Pr=e=>Du(ce,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as Nw,jsx as Sw,jsxs as gw}from"react/jsx-runtime";import{Fragment as Ew,jsx as Lw,jsxs as Aw}from"react/jsx-runtime";import{jsx as Dt,jsxs as Us}from"react/jsx-runtime";var Ku=ce.options,Hu=ce.states,Fs={...ce.defaultOptions,variant:"horizontal",label:!0},_u=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],zu=[{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,...l}=e,r=Fs.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"?Us(Gs,{style:{height:"300px",...u},...l,...i,children:[Dt(G,{label:r,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),Dt(G,{label:r,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),Dt(G,{label:r,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),Dt(G,{label:r,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),Dt(G,{label:r,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):Us(zs,{style:{width:"400px",...u},...l,...i,children:[Dt(G,{label:r,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),Dt(G,{label:r,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),Dt(G,{label:r,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),Dt(G,{label:r,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),Dt(G,{label:r,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};Uo.options=Ku;Uo.states=Hu;Uo.variants=_u;Uo.defaultOptions=Fs;Uo.modifiers=zu;Uo.className=ce.className;import{jsx as Ws,jsxs as Vu}from"react/jsx-runtime";var Vs="k-spin-button",Fu=[],Wu={size:[p.undefined,p.small,p.medium,p.large],fillMode:[v.undefined,v.solid,v.flat,v.outline,v.clear,v.link]},Dr={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},no=e=>{let{size:t,fillMode:o,disabled:l,increaseLabel:r=Dr.increaseLabel,decreaseLabel:i=Dr.decreaseLabel,...u}=e;return Vu("span",{...u,className:n(Vs,e.className),children:[Ws(d,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:l,"aria-label":r}),Ws(d,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:l,"aria-label":i})]})};no.states=Fu;no.options=Wu;no.className=Vs;no.defaultOptions=Dr;no.moduleName=null;no.folderName=null;var $s="numeric-textbox",Xs="numerictextbox";import{Fragment as Js,jsx as Ut,jsxs as Kr}from"react/jsx-runtime";var qs="k-numerictextbox",$u=[c.hover,c.focus,c.valid,c.invalid,c.loading,c.required,c.disabled,c.readonly],Xu={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]},fl={showSpinButton:!0,showClearButton:!0,separators:!0},ae=e=>{let{size:t,rounded:o,fillMode:l,separators:r=fl.separators,showClearButton:i=fl.showClearButton,showSpinButton:u=fl.showSpinButton,prefix:m,suffix:f,value:x,placeholder:C,hover:k,focus:h,valid:E,invalid:g,required:O,loading:H,disabled:B,readonly:V,id:pe,"aria-label":ve,"aria-describedby":Re,...we}=e;return Kr(ye,{...we,size:t,rounded:o,fillMode:l,hover:k,focus:h,valid:E,invalid:g,required:O,loading:H,disabled:B,readonly:V,className:n(e.className,qs),children:[m&&Kr(Js,{children:[Ut(ut,{children:m}),r&&Ut(ht,{})]}),Ut(ot,{id:pe,placeholder:C,value:x,role:"spinbutton",disabled:B,"aria-label":ve,"aria-describedby":Re,"aria-invalid":g?"true":void 0}),Ut(Ue,{valid:E,invalid:g,loading:H,disabled:B}),Ut(qe,{loading:H,disabled:B}),i&&Ut(tt,{loading:H,disabled:B,readonly:V,value:x}),f&&Kr(Js,{children:[r&&Ut(ht,{}),Ut(mt,{children:f})]}),u&&Ut(no,{className:"k-input-spinner",size:t,fillMode:l,disabled:B})]})};ae.states=$u;ae.options=Xu;ae