UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 183 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,P)=>(P.startsWith("k-")?H[P]=O[P]:H[`k-${P}`]=O[P],H),{}))};function Mn(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"},At={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 $l={};function $(e){return $l[e]=($l[e]||0)+1,`k-${e}-${$l[e]}`}var Xl="button",Ln=Xl;import{jsx as Jd}from"react/jsx-runtime";var Ta="k-button-group",Vd=[c.disabled],$d={fillMode:[v.undefined,v.solid,v.flat,v.outline,v.clear,v.link]},Xd={},R=e=>{let{fillMode:t,disabled:o,stretched:l,...r}=e;return Jd("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=Vd;R.options=$d;R.className=Ta;R.defaultOptions=Xd;R.moduleName=Xl;R.folderName=Ln;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 Zd,jsx as En}from"react/jsx-runtime";var Jl="k-font-icon",qd=[],Yd={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]},Qd={},wa=e=>{let{size:t,themeColor:o,icon:l,rotate:r,flip:i,...u}=e;return l?En("span",{...u,className:n(e.className,Jl,_(Jl,{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"}):En(Zd,{})};wa.states=qd;wa.options=Yd;wa.className=Jl;wa.defaultOptions=Qd;var An=wa;import{Fragment as tc,jsx as tl}from"react/jsx-runtime";var ql="k-svg-icon",jd=[],ec={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:[At.outline,At.solid,At.duotone]},Yl={viewBox:"0 0 24 24",variant:At.outline},Ma=e=>{let{size:t,themeColor:o,rotate:l,flip:r,viewBox:i=Yl.viewBox,variant:u=Yl.variant,icon:m,...f}=e;if(!m)return tl(tc,{});if(m==="none")return tl("span",{...f,className:n(e.className,ql,_("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 tl("span",{...f,className:n(e.className,ql,_("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:tl("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=jd;Ma.options=ec;Ma.className=ql;Ma.defaultOptions=Yl;var Ql=Ma;import*as Zl from"@progress/kendo-svg-icons";var Rn="icon",In="icons";import{useContext as ac}from"react";import{createContext as oc}from"react";var On=oc({iconsType:"svg"});import{Fragment as Bn,jsx as La}from"react/jsx-runtime";var ol="k-icon",lc=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),rc=[],nc={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:[At.outline,At.solid,At.duotone]},al={viewBox:"0 0 24 24",type:"svg",variant:At.outline},L=e=>{let{iconsType:t}=ac(On),{size:o,themeColor:l,icon:r,type:i=t||al.type,rotate:u,flip:m,viewBox:f=al.viewBox,variant:x=al.variant,...C}=e;if(!r)return La(Bn,{});if((t||i)==="svg"){if(r==="none")return La(Ql,{...C,className:n(e.className,ol),icon:r,size:o,variant:x});let h=Zl[r]?r:lc(`${r}-icon`);return Zl[h]?La(Ql,{...C,className:n(e.className,ol),icon:Zl[h],size:o,themeColor:l,rotate:u,flip:m,viewBox:f,variant:x}):La(Bn,{})}return La(An,{...C,className:n(e.className,ol),icon:r,size:o,themeColor:l,rotate:u,flip:m})};L.states=rc;L.options=nc;L.defaultOptions=al;L.className=ol;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 jl=L;var er="button",Pn=er;import{Fragment as Dn,jsx as Io,jsxs as Kn}from"react/jsx-runtime";var Ea="k-button",sc=["icon-button"],ic=[c.hover,c.focus,c.active,c.selected,c.disabled,c.generating],dc={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]},tr={showArrow:!1,arrowIconName:"chevron-down"},d=e=>{let{as:t="button",size:o,rounded:l,fillMode:r,themeColor:i,showArrow:u=tr.showArrow,arrowIconName:m=tr.arrowIconName,variant:f,hover:x,focus:C,active:k,selected:h,disabled:E,togglable:g,ariaDisabled:O,icon:H,iconSize:P,text:V,iconClassName:pe,className:ve,...Re}=e,we=H!=null,Ge=e.children!==void 0;return Kn(t,{className:n(ve,Ea,Mn(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:P}),H&&typeof H!="string"&&Io(Dn,{children:H}),V?Kn(Dn,{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=ic;d.options=dc;d.variants=sc;d.className=Ea;d.defaultOptions=tr;d.moduleName=er;d.folderName=Pn;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 cc}from"react/jsx-runtime";var jt=e=>cc(d,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as pc}from"react/jsx-runtime";var Aa=e=>pc(d,{icon:"folder",children:"Button",...e});import{jsx as uc}from"react/jsx-runtime";var bo=e=>uc(d,{children:"Button",...e});import{jsx as or}from"react/jsx-runtime";var mc=d.options,hc=d.states,bc={...d.defaultOptions,variant:"text"},fc=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],xc=[],Oo=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return or(jt,{...o,icon:"star"});case"icon-and-text":return or(Aa,{...o,icon:"star",children:"Button"});default:return or(bo,{...o,children:"Button"})}};Oo.options=mc;Oo.states=hc;Oo.variants=fc;Oo.defaultOptions=bc;Oo.modifiers=xc;Oo.className=d.className;import{Fragment as OC,jsx as IC,jsxs as BC}from"react/jsx-runtime";import{Fragment as zC,jsx as _C,jsxs as GC}from"react/jsx-runtime";import{Fragment as XC,jsx as $C,jsxs as JC}from"react/jsx-runtime";import{Fragment as ev,jsx as jC,jsxs as tv}from"react/jsx-runtime";import{Fragment as sv,jsx as nv,jsxs as iv}from"react/jsx-runtime";import{Fragment as hv,jsx as mv,jsxs as bv}from"react/jsx-runtime";import{jsx as Ut,jsxs as ar}from"react/jsx-runtime";var Cc={...d.options,...R.options},vc=d.states,yc={...d.defaultOptions,...R.defaultOptions,variant:"text-button"},kc=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Sc=[],Bo=e=>{let{variant:t,className:o,...l}=e;return t==="icon-button"?ar(R,{fillMode:l.fillMode,className:o,children:[Ut(d,{...l,icon:"star"}),Ut(d,{...l,icon:"star"}),Ut(d,{...l,icon:"star"})]}):t==="icon-text-button"?ar(R,{fillMode:l.fillMode,className:o,children:[Ut(d,{...l,icon:"star",children:"First"}),Ut(d,{...l,icon:"star",children:"Middle"}),Ut(d,{...l,icon:"star",children:"Last"})]}):ar(R,{fillMode:l.fillMode,className:o,children:[Ut(d,{...l,children:"First"}),Ut(d,{...l,children:"Middle"}),Ut(d,{...l,children:"Last"})]})};Bo.options=Cc;Bo.states=vc;Bo.variants=kc;Bo.defaultOptions=yc;Bo.modifiers=Sc;Bo.className=R.className;var lr="segmented-control",Hn=lr,_n="segmented-control-button",zn="segmented-control";import{jsx as Tc,jsxs as wc}from"react/jsx-runtime";var ll="k-segmented-control",Nc=[],gc={size:[p.undefined,p.small,p.medium,p.large]},ie=e=>{let{size:t,stretched:o,children:l,thumbStyles:r,...i}=e;return wc("div",{...i,className:n(e.className,ll,_(ll,{size:t}),{[`${ll}-stretched`]:o}),role:"group",children:[Tc("div",{className:"k-segmented-control-thumb","aria-hidden":"true",style:r}),l]})};ie.states=Nc;ie.options=gc;ie.className=ll;ie.moduleName=lr;ie.folderName=Hn;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 Gn,jsxs as Ac}from"react/jsx-runtime";var rr="k-segmented-control-button",Mc=[c.selected,c.hover,c.focus,c.disabled],Lc={},Ec={},D=e=>{let{hover:t,focus:o,selected:l,disabled:r,icon:i,text:u,iconClassName:m,...f}=e;return Ac("button",{...f,className:n(e.className,rr,z(rr,{hover:t,focus:o,disabled:r,selected:l})),"aria-pressed":l?"true":"false","aria-disabled":r?"true":void 0,children:[i&&Gn(L,{className:n(m,"k-segmented-control-button-icon"),icon:i}),(u||e.children)&&Gn("span",{className:"k-segmented-control-button-text",children:u||e.children})]})};D.states=Mc;D.options=Lc;D.className=rr;D.defaultOptions=Ec;D.moduleName=_n;D.folderName=zn;import{Fragment as Vv,jsx as Wv,jsxs as $v}from"react/jsx-runtime";import{Fragment as Zv,jsx as Qv,jsxs as jv}from"react/jsx-runtime";import{Fragment as ry,jsx as ly,jsxs as ny}from"react/jsx-runtime";import{Fragment as uy,jsx as py,jsxs as my}from"react/jsx-runtime";import{Fragment as vy,jsx as Cy,jsxs as yy}from"react/jsx-runtime";import{Fragment as Py,jsx as Oy,jsxs as By}from"react/jsx-runtime";var j="scheduler",oe=j;import{jsx as Bc}from"react/jsx-runtime";var Un="k-scheduler-layout",Rc=[],Ic={},Oc={},fo=e=>{let{as:t="div",view:o,...l}=e,r=o==="agenda"?"grid":o==="year"?void 0:"none";return Bc(t,{...l,className:n(e.className,Un,{[`k-scheduler-${o}view`]:o}),...r&&{role:r},children:e.children})};fo.states=Rc;fo.options=Ic;fo.className=Un;fo.defaultOptions=Oc;fo.moduleName=j;fo.folderName=oe;var Fn=fo;import{jsx as Hc,jsxs as _c}from"react/jsx-runtime";var Wn="k-scheduler",Pc=[],Dc={},Kc={},X=e=>{let{view:t,toolbar:o,footer:l,layout:r,...i}=e;return _c("div",{...i,className:n(e.className,Wn),role:"application",children:[o,Hc(Fn,{className:n({"k-scheduler-layout-flex":r==="flex"}),as:r==="table"?"table":"div",view:t,children:e.children}),l]})};X.states=Pc;X.options=Dc;X.className=Wn;X.defaultOptions=Kc;X.moduleName=j;X.folderName=oe;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 Vn}from"react/jsx-runtime";var $n="k-scheduler-header",Nt=e=>Vn("div",{...e,className:n($n,e.className),children:Vn("div",{className:"k-scheduler-header-wrap",children:e.children})});Nt.className=$n;Nt.moduleName=j;Nt.folderName=oe;import{jsx as zc}from"react/jsx-runtime";var Xn="k-scheduler-content",gt=e=>zc("div",{...e,className:n(Xn,e.className),children:e.children});gt.className=Xn;gt.moduleName=j;gt.folderName=oe;import{jsx as Gc}from"react/jsx-runtime";var Jn="k-scheduler-times",Rt=e=>Gc("div",{...e,className:n(Jn,e.className),children:e.children});Rt.className=Jn;Rt.moduleName=j;Rt.folderName=oe;import{jsx as Uc}from"react/jsx-runtime";var qn="k-scheduler-table",qe=e=>Uc("table",{...e,className:n(qn,e.className),children:e.children});qe.className=qn;qe.moduleName=j;qe.folderName=oe;import{jsx as Yn}from"react/jsx-runtime";var Qn="k-scheduler-cell",Fc=[],Wc={},Vc={},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 Yn(u,{...m,colSpan:r,rowSpan:i,...C&&{role:C},className:n(Qn,e.className,{"k-scheduler-times-all-day":o},t?.map(k=>({[`k-${k}-cell`]:!0}))),children:!o&&l?Yn("span",{className:"k-link k-nav-day",children:f}):f})};a.states=Fc;a.options=Wc;a.defaultOptions=Vc;a.className=Qn;a.moduleName=j;a.folderName=oe;import{jsx as $c}from"react/jsx-runtime";var Zn="k-sticky-cell",Po=e=>$c("div",{...e,className:n(Zn,e.className),children:e.children});Po.className=Zn;Po.moduleName=j;Po.folderName=oe;import{jsx as Xc}from"react/jsx-runtime";var jn="k-scheduler-row",N=e=>Xc("div",{...e,className:n(jn,e.className),children:e.children});N.className=jn;N.moduleName=j;N.folderName=oe;var Ra="input",sl=Ra;import{jsx as Qc}from"react/jsx-runtime";var il="k-input",Jc=[c.hover,c.focus,c.valid,c.invalid,c.required,c.disabled,c.loading,c.readonly],qc={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]},Yc={},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 Qc("span",{...k,className:n(e.className,il,_(il,{size:f,rounded:x,fillMode:C}),z(il,{hover:t,focus:o,disabled:l,invalid:r,valid:i,loading:u,readonly:m}))})};ye.states=Jc;ye.options=qc;ye.className=il;ye.defaultOptions=Yc;ye.moduleName=Ra;ye.folderName=sl;import{jsx as tp}from"react/jsx-runtime";var dl="k-picker",Zc=[c.hover,c.focus,c.valid,c.invalid,c.required,c.disabled,c.loading,c.readonly],jc={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]},ep={},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 tp("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})),children:e.children})};It.states=Zc;It.options=jc;It.className=dl;It.defaultOptions=ep;It.moduleName=Ra;It.folderName=sl;import{Fragment as lp,jsx as nr}from"react/jsx-runtime";var es="k-clear-value",op=[c.disabled,c.loading,c.readonly],ap={},et=e=>{let{disabled:t,loading:o,readonly:l,value:r}=e;return t||l||o||!r?nr(lp,{}):nr("span",{className:n(e.className,es),children:nr(L,{icon:"x"})})};et.states=op;et.options=ap;et.className=es;import{jsx as sp}from"react/jsx-runtime";var sr="k-input-inner",rp=[],np={},cl={type:"text",autocomplete:"off",value:"",placeholder:""},tt=e=>{let{value:t=cl.value,type:o=cl.type,placeholder:l=cl.placeholder,autocomplete:r=cl.autocomplete,disabled:i,readOnly:u,...m}=e;return sp("input",{...m,type:o,className:n(e.className,sr,_(sr,e)),placeholder:l,autoComplete:r,defaultValue:t,disabled:i||void 0,readOnly:u||void 0})};tt.states=rp;tt.options=np;tt.className=sr;import{jsx as ts,jsxs as cp}from"react/jsx-runtime";var ir="k-input-inner",ip=[],dp={},xo=e=>{let{value:t,placeholder:o,showValue:l,valueIcon:r,valueIconName:i,...u}=e;return cp("span",{...u,className:n(e.className,ir,_(ir,e)),children:[r,!r&&i&&ts(L,{className:"k-input-value-icon",icon:i}),l&&!t&&o,l&&t&&ts("span",{className:"k-input-value-text",children:t})]})};xo.states=ip;xo.options=dp;xo.className=ir;import{jsx as mp}from"react/jsx-runtime";var dr="k-input-inner",pp=[],up={},os={value:"",placeholder:""},cr=e=>{let{value:t=os.value,placeholder:o=os.placeholder,rows:l,disabled:r,...i}=e;return mp("textarea",{...i,className:n(e.className,dr,_(dr,e)),placeholder:o,rows:l,defaultValue:t,disabled:r||void 0})};cr.states=pp;cr.options=up;cr.className=dr;import{Fragment as bp,jsx as as}from"react/jsx-runtime";var ls="k-input-loading-icon",hp=[c.disabled,c.loading],Ye=e=>{let{disabled:t,loading:o}=e;return t||!o?as(bp,{}):as("span",{className:n(e.className,ls,"k-icon k-i-loading")})};Ye.states=hp;Ye.className=ls;import{Fragment as Cp,jsx as rs}from"react/jsx-runtime";var ns="k-input-validation-icon",fp=[c.valid,c.invalid,c.disabled,c.loading],xp={},Ue=e=>{let{valid:t,invalid:o,disabled:l,loading:r}=e,i=o?"warning-circle":"check-circle";return l||r||!!!(t||o)?rs(Cp,{}):rs(L,{className:n(ns),icon:i})};Ue.states=fp;Ue.options=xp;Ue.className=ns;import{Fragment as kp,jsx as ss}from"react/jsx-runtime";var vp="k-input-prefix",yp={direction:"horizontal"},pt=e=>{let{direction:t=yp.direction,...o}=e;return e.children?ss("span",{...o,className:n(vp,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ss(kp,{})};import{Fragment as gp,jsx as is}from"react/jsx-runtime";var Sp="k-input-suffix",Np={direction:"horizontal"},ut=e=>{let{direction:t=Np.direction,...o}=e;return e.children?is("span",{...o,className:n(Sp,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):is(gp,{})};import{jsx as rS}from"react/jsx-runtime";import{jsx as wp}from"react/jsx-runtime";var Tp="k-input-suffix-text",pr=e=>{let{children:t,...o}=e;return wp("span",{...o,className:n(Tp,e.className),children:t})};import{jsx as Lp}from"react/jsx-runtime";var ds="k-input-separator",Mp={direction:"vertical"},mt=e=>{let{direction:t=Mp.direction,...o}=e;return Lp("span",{...o,className:n(ds,e.className,{[`${ds}-${t}`]:t})})};import{Fragment as cs,jsx as Ot,jsxs as ur}from"react/jsx-runtime";var Ep=ye.states,Ap=ye.defaultOptions,Rp=ye.options,Ip=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Op=[],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 ur(ye,{...m,valid:o,invalid:l,loading:r,disabled:i,readonly:u,style:{width:300},children:[f&&ur(cs,{children:[Ot(pt,{children:Ot(L,{icon:"lock"})}),h&&Ot(mt,{})]}),Ot(tt,{placeholder:"Placeholder",value:"Value"}),k&&Ot(Ue,{valid:o,invalid:l,loading:r,disabled:i}),Ot(Ye,{loading:r,disabled:i}),C&&Ot(et,{loading:r,disabled:i,readonly:u,value:"Value"}),x&&ur(cs,{children:[h&&Ot(mt,{}),Ot(ut,{children:Ot(bo,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};Do.options=Rp;Do.states=Ep;Do.variants=Op;Do.defaultOptions=Ap;Do.modifiers=Ip;Do.className=ye.className;import{jsx as ps,jsxs as Dp}from"react/jsx-runtime";var us="k-color-preview",Bp=[],Pp={},eo=e=>{let{color:t,iconName:o,...l}=e;return Dp("span",{...l,className:n(e.className,us,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ps(L,{icon:o,className:"k-color-preview-icon"}),ps("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};eo.states=Bp;eo.options=Pp;eo.className=us;var mr="popup",ms=mr;import{jsx as hs}from"react/jsx-runtime";var bs="k-animation-container",Kp=[],Hp={},hr={positionMode:"absolute",shown:!0},Bt=e=>{let{positionMode:t=hr.positionMode,shown:o=hr.shown,animationStyle:l,offset:r,...i}=e;return hs("div",{...i,style:{...r,...e.style},className:n(e.className,bs,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:hs("div",{className:"k-child-animation-container",style:l,children:e.children})})};Bt.states=Kp;Bt.options=Hp;Bt.className=bs;Bt.defaultOptions=hr;Bt.moduleName=mr;Bt.folderName=ms;var br="popup",fs=br;import{jsx as xs}from"react/jsx-runtime";var Cs="k-popup",_p=[],zp={},vs={positionMode:"absolute"},me=e=>{let{offset:t,positionMode:o=vs.positionMode,animationStyle:l,containerClassName:r,containerRole:i,containerAriaLabel:u,...m}=e;return xs(Bt,{positionMode:o,offset:t,animationStyle:l,className:r,role:i,"aria-label":u,children:xs("div",{...m,className:n(e.className,Cs),children:e.children})})};me.states=_p;me.options=zp;me.className=Cs;me.defaultOptions=vs;me.moduleName=br;me.folderName=fs;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 fr="action-buttons",ys=fr;import{jsx as Fp}from"react/jsx-runtime";var pl="k-actions",Gp=[],Up={},xr={alignment:"start",orientation:"horizontal"},Pt=e=>{let{alignment:t=xr.alignment,orientation:o=xr.orientation,...l}=e;return Fp("div",{...l,className:n(pl,{[`${pl}-${t}`]:t,[`${pl}-${o}`]:o},e.className),children:e.children})};Pt.states=Gp;Pt.options=Up;Pt.className=pl;Pt.defaultOptions=xr;Pt.moduleName=fr;Pt.folderName=ys;import{jsx as Vp}from"react/jsx-runtime";var Wp="k-actionsheet-footer",ks={alignment:"stretched",orientation:"horizontal"},to=e=>{let{alignment:t=ks.alignment,orientation:o=ks.orientation,template:l,as:r=l?"div":Pt,...i}=e;return Vp(r,{...i,...!l&&{alignment:t,orientation:o},className:n(e.className,Wp),children:e.children})};var Cr="searchbox",Ss=Cr;import{jsx as Ia,jsxs as Jp}from"react/jsx-runtime";var Ns="k-searchbox",$p=[c.hover,c.focus,c.valid,c.invalid,c.required,c.disabled,c.loading],Xp={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]},vr={showIcon:!0,icon:"search"},ht=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=vr.showIcon,icon:g=vr.icon,"aria-label":O,...H}=e;return Jp(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,Ns),children:[E&&Ia(L,{className:"k-input-icon",icon:g}),Ia(tt,{placeholder:o,value:t,"aria-label":O}),Ia(Ye,{...e}),Ia(Ue,{...e}),Ia(et,{...e})]})};ht.states=$p;ht.options=Xp;ht.className=Ns;ht.defaultOptions=vr;ht.moduleName=Cr;ht.folderName=Ss;import{jsx as AN}from"react/jsx-runtime";var yr="textbox",gs=yr;import{Fragment as Ts,jsx as oo,jsxs as kr}from"react/jsx-runtime";var ws="k-textbox",qp=[c.hover,c.focus,c.valid,c.invalid,c.required,c.disabled,c.loading,c.readonly],Yp={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]},ul={showClearButton:!0,showValidationIcon:!0,separators:!0},Ie=e=>{let{size:t,rounded:o,fillMode:l,separators:r=ul.separators,showClearButton:i=ul.showClearButton,showValidationIcon:u=ul.showValidationIcon,prefix:m,suffix:f,type:x,value:C,placeholder:k,hover:h,focus:E,valid:g,invalid:O,required:H,loading:P,disabled:V,readonly:pe,id:ve,"aria-label":Re,"aria-describedby":we,...Ge}=e;return kr(ye,{...Ge,size:t,rounded:o,fillMode:l,hover:h,focus:E,valid:g,invalid:O,required:H,loading:P,disabled:V,readonly:pe,className:n(e.className,ws),children:[m&&kr(Ts,{children:[oo(pt,{children:m}),r&&oo(mt,{})]}),oo(tt,{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:P,disabled:V}),oo(Ye,{loading:P,disabled:V}),i&&oo(et,{loading:P,disabled:V,readonly:pe,value:C}),f&&kr(Ts,{children:[r&&oo(mt,{}),oo(ut,{children:f})]})]})};Ie.states=qp;Ie.options=Yp;Ie.className=ws;Ie.defaultOptions=ul;Ie.moduleName=yr;Ie.folderName=gs;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 Qp}from"react/jsx-runtime";var Ms=e=>Qp(Oa,{...e});import{Fragment as JN,jsx as XN}from"react/jsx-runtime";import{Fragment as eg,jsx as jN}from"react/jsx-runtime";import{jsx as lg}from"react/jsx-runtime";import{jsx as Sr}from"react/jsx-runtime";var Zp=Ie.states,jp=Ie.defaultOptions,eu=Ie.options,tu=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],ou=[],Ko=e=>{let{modifiers:t,...o}=e,l={};return Object.keys(t||{}).forEach(r=>{switch(r){case"prefix":l.prefix=t?.[r]?Sr(L,{icon:"lock"}):void 0;break;case"suffix":l.suffix=t?.[r]?Sr(bo,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":l.showClearButton=t?.[r];break;default:break}}),Sr(Ms,{value:"Value",style:{width:300},...o,...l})};Ko.options=eu;Ko.states=Zp;Ko.variants=ou;Ko.defaultOptions=jp;Ko.modifiers=tu;Ko.className=Ie.className;import{jsx as ao,jsxs as Nr}from"react/jsx-runtime";var Ls="k-actionsheet-titlebar",au={},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 Nr("div",{...h,className:n(e.className,Ls),children:[Nr("div",{className:"k-actionsheet-titlebar-group",children:[l&&ao("div",{className:"k-actionsheet-actions",children:l}),!k&&Nr("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(ht,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};Fe.className=Ls;Fe.defaultOptions=au;import{jsx as gr,jsxs as su}from"react/jsx-runtime";var Tr="k-actionsheet-view",lu=[],ru={},nu={},Ho=e=>{let{adaptive:t,animated:o,children:l,header:r,footer:i,titleId:u,...m}=e,f=r?.type===Fe&&gr(Fe,{adaptive:t,titleId:u,...r?.props}),x=i?.type===to&&gr(to,{...i?.props});return su("div",{...m,className:n(e.className,Tr,{[`${Tr}-animated`]:o}),children:[f,gr("div",{className:"k-actionsheet-content",children:l}),x]})};Ho.states=lu;Ho.options=ru;Ho.className=Tr;Ho.defaultOptions=nu;var Ba="action-sheet",ml=Ba;var wr="overlay",Es=wr;import{jsx as pu}from"react/jsx-runtime";var As="k-overlay",iu=[],du={},cu={},lo=e=>{let{...t}=e;return pu("div",{...t,className:n(e.className,As),children:e.children})};lo.states=iu;lo.options=du;lo.className=As;lo.defaultOptions=cu;lo.moduleName=wr;lo.folderName=Es;import{jsx as hl,jsxs as hu}from"react/jsx-runtime";var Rs="k-actionsheet",uu=[],mu={},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 hu("div",{className:"k-actionsheet-container",children:[r&&hl(lo,{}),hl(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:hl("div",{...C,id:x,role:"dialog","aria-modal":r?"true":void 0,"aria-labelledby":k,className:n(e.className,Rs,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":l}),children:i||hl(Ho,{header:m,footer:f,adaptive:l,titleId:k,...e,children:u})})})]})};fe.states=uu;fe.options=mu;fe.className=Rs;fe.defaultOptions=Pa;fe.moduleName=Ba;fe.folderName=ml;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 Cu}from"react/jsx-runtime";var Is="k-actionsheet-container",bu=[],fu={},xu={},_o=e=>{let{children:t,...o}=e;return Cu("div",{...o,className:Is,children:t})};_o.states=bu;_o.options=fu;_o.className=Is;_o.defaultOptions=xu;_o.moduleName=Ba;_o.folderName=ml;import{jsx as vu}from"react/jsx-runtime";var Mr=e=>{let{...t}=e;return vu("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as ku,jsx as Da,jsxs as Lr}from"react/jsx-runtime";var Er="k-actionsheet-item",yu=[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 Lr("span",{...f,className:n(e.className,Er,z(Er,{hover:r,focus:i,selected:u,disabled:m})),children:[!e.children&&Da(ku,{children:Lr("span",{className:"k-actionsheet-action",children:[t&&Da("span",{className:"k-icon-wrap",children:Da(L,{className:"k-actionsheet-item-icon",icon:t})}),Lr("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=yu;ro.className=Er;import{jsx as aT,jsxs as lT}from"react/jsx-runtime";import{jsx as iT}from"react/jsx-runtime";import{jsx as uT}from"react/jsx-runtime";import{jsx as fT}from"react/jsx-runtime";import{jsx as Oe,jsxs as Ar}from"react/jsx-runtime";var Su=fe.options,Nu=fe.states,Bs={...fe.defaultOptions,variant:"normal"},gu=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Tu=[{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}={...Bs,...e},r={},i=Ar(Mr,{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?Ar(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?Ar(to,{alignment:"stretched",children:[Oe(d,{text:"Apply",themeColor:"primary"}),Oe(d,{text:"Cancel",themeColor:"base"})]}):void 0,children:i})};zo.options=Su;zo.states=Nu;zo.variants=gu;zo.defaultOptions=Bs;zo.modifiers=Tu;zo.className=fe.className;var Rr="slider",Ps=Rr;import{jsx as Go,jsxs as Ir}from"react/jsx-runtime";var Ka="k-slider",wu=[c.hover,c.focus,c.active,c.disabled,c.readonly],Mu={},bt={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=bt.type,orientation:o=bt.orientation,gradientType:l=bt.gradientType,readonly:r=bt.readonly,disabled:i=bt.disabled,handlePosition:u=bt.handlePosition,showButtons:m=bt.showButtons,showTicks:f=bt.showTicks,value:x=bt.value,min:C=bt.min,max:k=bt.max,startValue:h,endValue:E,hover:g,focus:O,active:H,trackStyle:P,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"),Ir("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"}),Ir("div",{className:"k-slider-track-wrap",children:[f&&Go("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),Ir("div",{className:"k-slider-track",style:P,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=wu;ce.options=Mu;ce.className=Ka;ce.defaultOptions=bt;ce.moduleName=Rr;ce.folderName=Ps;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 Ds}from"react/jsx-runtime";var Ks="k-tick",Lu=[],Eu={},Hs={label:!1},G=e=>{let{style:t,label:o=Hs.label,orientation:l,large:r,text:i,...u}=e;return Ds("li",{...u,role:"presentation",title:i||"Tick",className:n(e.className,Ks,{[`k-tick-${l}`]:l,"k-tick-large":r}),style:t,children:o&&Ds("span",{className:"k-label",children:i})})};G.states=Lu;G.options=Eu;G.className=Ks;G.defaultOptions=Hs;import{Fragment as Au,jsx as ft,jsxs as Ru}from"react/jsx-runtime";var _s=e=>ft(ce,{"aria-label":e["aria-label"]||"Slider",children:Ru(Au,{children:[ft(G,{className:"k-first",label:!0,large:!0,text:"0"}),ft(G,{}),ft(G,{}),ft(G,{}),ft(G,{}),ft(G,{label:!0,large:!0,text:"5"}),ft(G,{}),ft(G,{}),ft(G,{}),ft(G,{}),ft(G,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as Iu,jsx as xt,jsxs as Ou}from"react/jsx-runtime";var zs=e=>xt(ce,{children:Ou(Iu,{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"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as lw,jsx as aw,jsxs as rw}from"react/jsx-runtime";import{Fragment as cw,jsx as dw,jsxs as pw}from"react/jsx-runtime";import{jsx as Bu}from"react/jsx-runtime";var Or=e=>Bu(ce,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as Pu}from"react/jsx-runtime";var Br=e=>Pu(ce,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as Sw,jsx as kw,jsxs as Nw}from"react/jsx-runtime";import{Fragment as Lw,jsx as Mw,jsxs as Ew}from"react/jsx-runtime";import{jsx as Dt,jsxs as Gs}from"react/jsx-runtime";var Du=ce.options,Ku=ce.states,Us={...ce.defaultOptions,variant:"horizontal",label:!0},Hu=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],_u=[{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=Us.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"?Gs(zs,{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%"}})]}):Gs(_s,{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=Du;Uo.states=Ku;Uo.variants=Hu;Uo.defaultOptions=Us;Uo.modifiers=_u;Uo.className=ce.className;import{jsx as Fs,jsxs as Wu}from"react/jsx-runtime";var Ws="k-spin-button",Uu=[],Fu={size:[p.undefined,p.small,p.medium,p.large],fillMode:[v.undefined,v.solid,v.flat,v.outline,v.clear,v.link]},Pr={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},no=e=>{let{size:t,fillMode:o,disabled:l,increaseLabel:r=Pr.increaseLabel,decreaseLabel:i=Pr.decreaseLabel,...u}=e;return Wu("span",{...u,className:n(Ws,e.className),children:[Fs(d,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:l,"aria-label":r}),Fs(d,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:l,"aria-label":i})]})};no.states=Uu;no.options=Fu;no.className=Ws;no.defaultOptions=Pr;no.moduleName=null;no.folderName=null;var Vs="numeric-textbox",$s="numerictextbox";import{Fragment as Xs,jsx as Ft,jsxs as Dr}from"react/jsx-runtime";var Js="k-numerictextbox",Vu=[c.hover,c.focus,c.valid,c.invalid,c.loading,c.required,c.disabled,c.readonly],$u={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]},bl={showSpinButton:!0,showClearButton:!0,separators:!0},ae=e=>{let{size:t,rounded:o,fillMode:l,separators:r=bl.separators,showClearButton:i=bl.showClearButton,showSpinButton:u=bl.showSpinButton,prefix:m,suffix:f,value:x,placeholder:C,hover:k,focus:h,valid:E,invalid:g,required:O,loading:H,disabled:P,readonly:V,id:pe,"aria-label":ve,"aria-describedby":Re,...we}=e;return Dr(ye,{...we,size:t,rounded:o,fillMode:l,hover:k,focus:h,valid:E,invalid:g,required:O,loading:H,disabled:P,readonly:V,className:n(e.className,Js),children:[m&&Dr(Xs,{children:[Ft(pt,{children:m}),r&&Ft(mt,{})]}),Ft(tt,{id:pe,placeholder:C,value:x,role:"spinbutton",disabled:P,"aria-label":ve,"aria-describedby":Re,"aria-invalid":g?"true":void 0}),Ft(Ue,{valid:E,invalid:g,loading:H,disabled:P}),Ft(Ye,{loading:H,disabled:P}),i&&Ft(et,{loading:H,disabled:P,readonly:V,value:x}),f&&Dr(Xs,{children:[r&&Ft(mt,{}),Ft(ut,{children:f})]}),u&&Ft(no,{className:"k-input-spinner",size:t,fillMode:l,disabled:P})]})};ae.states=Vu;ae.options=$u;ae