UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 180 kB
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var K=(e,t)=>n({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),H=(e,t)=>{let{valid:o,invalid:a,hover:r,focus:i,checked:u,active:m,selected:f,disabled:x,indeterminate:C,loading:k,empty:h,readonly:E,highlighted:g,...O}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":r,"k-focus":i,"k-checked":u,"k-active":m,"k-selected":f,"k-disabled":x,"k-indeterminate":C&&!u,"k-loading":k,"k-empty":h,"k-readonly":E,"k-highlighted":g},Object.keys(O).reduce((D,B)=>(B.startsWith("k-")?D[B]=O[B]:D[`k-${B}`]=O[B],D),{}))};function Tn(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var p={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},y={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},v={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},wt={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},w={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},d={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var Wl={};function V(e){return Wl[e]=(Wl[e]||0)+1,`k-${e}-${Wl[e]}`}import{Fragment as $d,jsx as wn}from"react/jsx-runtime";var Vl="k-font-icon",Fd=[],Wd={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]},Vd={},Na=e=>{let{size:t,themeColor:o,icon:a,rotate:r,flip:i,...u}=e;return a?wn("span",{...u,className:n(e.className,Vl,K(Vl,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true"}):wn($d,{})};Na.states=Fd;Na.options=Wd;Na.className=Vl;Na.defaultOptions=Vd;var Mn=Na;import{Fragment as qd,jsx as ja}from"react/jsx-runtime";var $l="k-svg-icon",Xd=[],Jd={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info],variant:[wt.outline,wt.solid,wt.duotone]},Xl={viewBox:"0 0 24 24",variant:wt.outline},ga=e=>{let{size:t,themeColor:o,rotate:a,flip:r,viewBox:i=Xl.viewBox,variant:u=Xl.variant,icon:m,...f}=e;if(!m)return ja(qd,{});if(m==="none")return ja("span",{...f,className:n(e.className,$l,K("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof m=="object"&&m.name&&m.name,C=typeof m=="object"?u&&m.variants?.[u]||m.variants?.outline||m.content:void 0;return ja("span",{...f,className:n(e.className,$l,K("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true",children:ja("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof m=="object"?m.viewBox:i,dangerouslySetInnerHTML:C!==void 0?{__html:C}:void 0,children:m?void 0:e.children})})};ga.states=Xd;ga.options=Jd;ga.className=$l;ga.defaultOptions=Xl;var Jl=ga;import*as ql from"@progress/kendo-svg-icons";var Ln="icon",En="icons";import{useContext as Qd}from"react";import{createContext as Yd}from"react";var An=Yd({iconsType:"svg"});import{Fragment as Rn,jsx as Ta}from"react/jsx-runtime";var el="k-icon",Zd=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),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:[wt.outline,wt.solid,wt.duotone]},tl={viewBox:"0 0 24 24",type:"svg",variant:wt.outline},L=e=>{let{iconsType:t}=Qd(An),{size:o,themeColor:a,icon:r,type:i=t||tl.type,rotate:u,flip:m,viewBox:f=tl.viewBox,variant:x=tl.variant,...C}=e;if(!r)return Ta(Rn,{});if((t||i)==="svg"){if(r==="none")return Ta(Jl,{...C,className:n(e.className,el),icon:r,size:o,variant:x});let h=ql[r]?r:Zd(`${r}-icon`);return ql[h]?Ta(Jl,{...C,className:n(e.className,el),icon:ql[h],size:o,themeColor:a,rotate:u,flip:m,viewBox:f,variant:x}):Ta(Rn,{})}return Ta(Mn,{...C,className:n(e.className,el),icon:r,size:o,themeColor:a,rotate:u,flip:m})};L.states=jd;L.options=ec;L.defaultOptions=tl;L.className=el;L.moduleName=Ln;L.folderName=En;L.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var Yl=L;var Ql="button",In=Ql;import{Fragment as On,jsx as Ao,jsxs as Bn}from"react/jsx-runtime";var wa="k-button",tc=["icon-button"],oc=[d.hover,d.focus,d.active,d.selected,d.disabled,d.generating],ac={size:[p.undefined,p.xsmall,p.small,p.medium,p.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[v.undefined,v.solid,v.flat,v.outline,v.clear,v.link],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info,w.inverse]},Zl={showArrow:!1,arrowIconName:"chevron-down"},c=e=>{let{as:t="button",size:o,rounded:a,fillMode:r,themeColor:i,showArrow:u=Zl.showArrow,arrowIconName:m=Zl.arrowIconName,variant:f,hover:x,focus:C,active:k,selected:h,disabled:E,togglable:g,ariaDisabled:O,icon:D,iconSize:B,text:W,iconClassName:ie,className:Ce,...Ae}=e,Te=D!=null,ze=e.children!==void 0;return Bn(t,{className:n(Ce,wa,Tn(wa,f),K(wa,{size:o,rounded:a,fillMode:r,themeColor:i}),H(wa,{hover:x,focus:C,active:k,disabled:E||O,selected:h}),{"k-icon-button":!W&&!ze&&Te}),"aria-pressed":g?h?"true":"false":void 0,...Ae,"aria-disabled":O?"true":void 0,disabled:E||void 0,children:[typeof D=="string"&&D&&Ao(L,{className:n(ie,"k-button-icon"),icon:D,size:B}),D&&typeof D!="string"&&Ao(On,{children:D}),W?Bn(On,{children:[W&&Ao("span",{className:"k-button-text",children:W}),e.children]}):e.children&&Ao("span",{className:"k-button-text",children:e.children}),u&&Ao("span",{className:"k-menu-button-arrow k-button-arrow",children:Ao(L,{icon:m})})]})};c.states=oc;c.options=ac;c.variants=tc;c.className=wa;c.defaultOptions=Zl;c.moduleName=Ql;c.folderName=In;c.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as lc}from"react/jsx-runtime";var Yt=e=>lc(c,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as rc}from"react/jsx-runtime";var Ma=e=>rc(c,{icon:"folder",children:"Button",...e});import{jsx as nc}from"react/jsx-runtime";var mo=e=>nc(c,{children:"Button",...e});import{jsx as jl}from"react/jsx-runtime";var sc=c.options,ic=c.states,dc={...c.defaultOptions,variant:"text"},cc=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],pc=[],Ro=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return jl(Yt,{...o,icon:"star"});case"icon-and-text":return jl(Ma,{...o,icon:"star",children:"Button"});default:return jl(mo,{...o,children:"Button"})}};Ro.options=sc;Ro.states=ic;Ro.variants=cc;Ro.defaultOptions=dc;Ro.modifiers=pc;Ro.className=c.className;var er="button",Pn=er;import{jsx as bc}from"react/jsx-runtime";var La="k-button-group",uc=[d.disabled],mc={fillMode:[v.undefined,v.solid,v.flat,v.outline,v.clear,v.link]},hc={},R=e=>{let{fillMode:t,disabled:o,stretched:a,...r}=e;return bc("div",{role:"group",...r,className:n(e.className,La,K(La,{fillMode:t}),H(La,{disabled:o}),{[`${La}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};R.states=uc;R.options=mc;R.className=La;R.defaultOptions=hc;R.moduleName=er;R.folderName=Pn;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 RC,jsx as AC,jsxs as IC}from"react/jsx-runtime";import{Fragment as HC,jsx as KC,jsxs as _C}from"react/jsx-runtime";import{Fragment as VC,jsx as WC,jsxs as $C}from"react/jsx-runtime";import{Fragment as ZC,jsx as QC,jsxs as jC}from"react/jsx-runtime";import{Fragment as rv,jsx as lv,jsxs as nv}from"react/jsx-runtime";import{Fragment as uv,jsx as pv,jsxs as mv}from"react/jsx-runtime";import{jsx as _t,jsxs as tr}from"react/jsx-runtime";var fc={...c.options,...R.options},xc=c.states,Cc={...c.defaultOptions,...R.defaultOptions,variant:"text-button"},vc=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],yc=[],Io=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?tr(R,{fillMode:a.fillMode,className:o,children:[_t(c,{...a,icon:"star"}),_t(c,{...a,icon:"star"}),_t(c,{...a,icon:"star"})]}):t==="icon-text-button"?tr(R,{fillMode:a.fillMode,className:o,children:[_t(c,{...a,icon:"star",children:"First"}),_t(c,{...a,icon:"star",children:"Middle"}),_t(c,{...a,icon:"star",children:"Last"})]}):tr(R,{fillMode:a.fillMode,className:o,children:[_t(c,{...a,children:"First"}),_t(c,{...a,children:"Middle"}),_t(c,{...a,children:"Last"})]})};Io.options=fc;Io.states=xc;Io.variants=vc;Io.defaultOptions=Cc;Io.modifiers=yc;Io.className=R.className;var or="segmented-control",Dn=or,Kn="segmented-control-button",Hn="segmented-control";import{jsx as Nc,jsxs as gc}from"react/jsx-runtime";var ol="k-segmented-control",kc=[],Sc={size:[p.undefined,p.small,p.medium,p.large]},de=e=>{let{size:t,stretched:o,children:a,thumbStyles:r,...i}=e;return gc("div",{...i,className:n(e.className,ol,K(ol,{size:t}),{[`${ol}-stretched`]:o}),role:"group",children:[Nc("div",{className:"k-segmented-control-thumb","aria-hidden":"true",style:r}),a]})};de.states=kc;de.options=Sc;de.className=ol;de.moduleName=or;de.folderName=Dn;de.ariaSpec={selector:".k-segmented-control",rules:[{selector:".k-segmented-control",attribute:"role=group",usage:"Sets the proper role for the group of buttons."},{selector:".k-segmented-control-button",attribute:"role=button or nodeName=button",usage:"Each button must have the appropriate button role."},{selector:".k-segmented-control-button.k-selected",attribute:"aria-pressed=true",usage:"Only the selected button within the group will have this attribute set to true."},{selector:".k-segmented-control-button.k-disabled",attribute:"aria-disabled=true",usage:"Indicates that the button is disabled and cannot be interacted with."},{selector:".k-segmented-control-thumb",attribute:"aria-hidden=true",usage:"The thumb is purely decorative and should be hidden from screen readers."}]};import{jsx as _n,jsxs as Lc}from"react/jsx-runtime";var ar="k-segmented-control-button",Tc=[d.selected,d.hover,d.focus,d.disabled],wc={},Mc={},_=e=>{let{hover:t,focus:o,selected:a,disabled:r,icon:i,text:u,iconClassName:m,...f}=e;return Lc("button",{...f,className:n(e.className,ar,H(ar,{hover:t,focus:o,disabled:r,selected:a})),"aria-pressed":a?"true":"false","aria-disabled":r?"true":void 0,children:[i&&_n(L,{className:n(m,"k-segmented-control-button-icon"),icon:i}),(u||e.children)&&_n("span",{className:"k-segmented-control-button-text",children:u||e.children})]})};_.states=Tc;_.options=wc;_.className=ar;_.defaultOptions=Mc;_.moduleName=Kn;_.folderName=Hn;import{Fragment as Fv,jsx as Uv,jsxs as Wv}from"react/jsx-runtime";import{Fragment as Yv,jsx as qv,jsxs as Qv}from"react/jsx-runtime";import{Fragment as ay,jsx as oy,jsxs as ly}from"react/jsx-runtime";import{Fragment as cy,jsx as dy,jsxs as py}from"react/jsx-runtime";import{Fragment as xy,jsx as fy,jsxs as Cy}from"react/jsx-runtime";import{Fragment as Oy,jsx as Ry,jsxs as Iy}from"react/jsx-runtime";var Z="scheduler",ee=Z;import{jsx as Ic}from"react/jsx-runtime";var zn="k-scheduler-layout",Ec=[],Ac={},Rc={},ho=e=>{let{as:t="div",view:o,...a}=e,r=o==="agenda"?"grid":o==="year"?void 0:"none";return Ic(t,{...a,className:n(e.className,zn,{[`k-scheduler-${o}view`]:o}),...r&&{role:r},children:e.children})};ho.states=Ec;ho.options=Ac;ho.className=zn;ho.defaultOptions=Rc;ho.moduleName=Z;ho.folderName=ee;var Gn=ho;import{jsx as Dc,jsxs as Kc}from"react/jsx-runtime";var Un="k-scheduler",Oc=[],Bc={},Pc={},Y=e=>{let{view:t,toolbar:o,footer:a,layout:r,...i}=e;return Kc("div",{...i,className:n(e.className,Un),role:"application",children:[o,Dc(Gn,{className:n({"k-scheduler-layout-flex":r==="flex"}),as:r==="table"?"table":"div",view:t,children:e.children}),a]})};Y.states=Oc;Y.options=Bc;Y.className=Un;Y.defaultOptions=Pc;Y.moduleName=Z;Y.folderName=ee;Y.ariaSpec={selector:".k-scheduler",rules:[{selector:".k-scheduler",attribute:"role=application",usage:"Specifies the role of the component."},{selector:".k-scheduler-toolbar",attribute:"role=toolbar",usage:"Follows Toolbar spec: sets the component role."},{selector:".k-scheduler-toolbar",attribute:"aria-label or title",usage:"Follows Toolbar spec: each toolbar must have a label specifying its purpose."},{selector:'.k-scheduler-navigation .k-button:has([class*="i-chevron-left"])',attribute:"aria-label",usage:"Required as the previous navigation button contains only an icon (no text)."},{selector:'.k-scheduler-navigation .k-button:has([class*="i-chevron-right"])',attribute:"aria-label",usage:"Required as the next navigation button contains only an icon (no text)."},{selector:".k-nav-current",attribute:"aria-live=polite",usage:"The new date of the Scheduler view will be announced upon navigation to a new time span or view type."},{selector:".k-views-dropdown",attribute:"aria-label",usage:"The <select> element visible on the toolbar on small screens must have its aria-label set."},{selector:".k-scheduler-views",attribute:"role=group",usage:"Follows SegmentedControl spec: sets the proper role for the group of view buttons."},{selector:".k-scheduler-views .k-segmented-control-button",attribute:"aria-pressed (when selected)",usage:"Follows SegmentedControl spec: specifies the current state of the view SegmentedControl. Only the selected button within the group will have this attribute set to true."},{selector:".k-scheduler-agendaview",attribute:"role=grid",usage:"The main table of the Agenda view must indicate it is a Data Grid."},{selector:".k-scheduler-agendaview>tbody",attribute:"role=none/presentation",usage:"The <tbody> element must have its semantics removed."},{selector:".k-scheduler-agendaview .k-scheduler-table",attribute:"role=none/presentation",usage:"Inner <table> elements within the Agenda Scheduler must have their semantic role removed."},{selector:".k-scheduler-agendaview .k-scheduler-table>tbody",attribute:"role=rowgroup",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-agendaview .k-scheduler-table>tbody>tr",attribute:"role=row",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-agendaview .k-scheduler-table>tbody>tr>th",attribute:"role=columnheader",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-agendaview .k-scheduler-content tr .k-selected",attribute:"aria-selected",usage:"Used to signify the currently selected row in Agenda view."},{selector:".k-scheduler-content>.k-scheduler-table>tbody>tr>.k-scheduler-groupcolumn,.k-scheduler-content>.k-scheduler-table>tbody>tr>.k-scheduler-datecolumn",attribute:"role=rowheader",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-content>.k-scheduler-table>tbody>tr>.k-scheduler-timecolumn,.k-scheduler-content>.k-scheduler-table>tbody>tr>.k-scheduler-timecolumn+td",attribute:"role=gridcell",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-dayview,.k-scheduler-weekview,.k-scheduler-monthview,.k-scheduler-timelineview",attribute:"role=none/presentation",usage:"All <table> elements within the Scheduler must have their semantic role removed."},{selector:".k-scheduler-times .k-scheduler-table",attribute:"role=none/presentation",usage:"Times sidebar tables must have their semantics removed. The role propagates to child th/tr elements, resolving empty-table-header violations."},{selector:".k-event",attribute:"role=button",usage:"Indicating that the event element is interactive."},{selector:".k-event",attribute:"aria-label",usage:"Label containing the title, start, and end date of the appointment."},{selector:".k-scheduler-layout:not(.k-scheduler-agendaview) .k-scheduler-content",attribute:"tabindex=0",usage:"Scrollable elements need to be focusable to ensure scrolling with arrow keys is available (does not apply to agenda view)."}]};import{jsx as Fn}from"react/jsx-runtime";var Wn="k-scheduler-header",Mt=e=>Fn("div",{...e,className:n(Wn,e.className),children:Fn("div",{className:"k-scheduler-header-wrap",children:e.children})});Mt.className=Wn;Mt.moduleName=Z;Mt.folderName=ee;import{jsx as Hc}from"react/jsx-runtime";var Vn="k-scheduler-content",Lt=e=>Hc("div",{...e,className:n(Vn,e.className),children:e.children});Lt.className=Vn;Lt.moduleName=Z;Lt.folderName=ee;import{jsx as _c}from"react/jsx-runtime";var $n="k-scheduler-times",Qt=e=>_c("div",{...e,className:n($n,e.className),children:e.children});Qt.className=$n;Qt.moduleName=Z;Qt.folderName=ee;import{jsx as zc}from"react/jsx-runtime";var Xn="k-scheduler-table",Et=e=>zc("table",{...e,className:n(Xn,e.className),children:e.children});Et.className=Xn;Et.moduleName=Z;Et.folderName=ee;import{jsx as Jn}from"react/jsx-runtime";var qn="k-scheduler-cell",Gc=[],Uc={},Fc={},l=e=>{let{cellType:t,allDay:o,text:a,colspan:r,rowspan:i,as:u="div",...m}=e,f=a||e.children,x=!a&&!e.children,C=u==="th"&&x&&!m.role?"presentation":void 0;return Jn(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&&a?Jn("span",{className:"k-link k-nav-day",children:f}):f})};l.states=Gc;l.options=Uc;l.defaultOptions=Fc;l.className=qn;l.moduleName=Z;l.folderName=ee;import{jsx as Wc}from"react/jsx-runtime";var Yn="k-sticky-cell",Oo=e=>Wc("div",{...e,className:n(Yn,e.className),children:e.children});Oo.className=Yn;Oo.moduleName=Z;Oo.folderName=ee;import{jsx as Vc}from"react/jsx-runtime";var Qn="k-scheduler-row",N=e=>Vc("div",{...e,className:n(Qn,e.className),children:e.children});N.className=Qn;N.moduleName=Z;N.folderName=ee;var Ea="input",rl=Ea;import{jsx as qc}from"react/jsx-runtime";var nl="k-input",$c=[d.hover,d.focus,d.valid,d.invalid,d.required,d.disabled,d.loading,d.readonly],Xc={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]},Jc={},ve=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:i,loading:u,readonly:m,size:f,rounded:x,fillMode:C,...k}=e;return qc("span",{...k,className:n(e.className,nl,K(nl,{size:f,rounded:x,fillMode:C}),H(nl,{hover:t,focus:o,disabled:a,invalid:r,valid:i,loading:u,readonly:m}))})};ve.states=$c;ve.options=Xc;ve.className=nl;ve.defaultOptions=Jc;ve.moduleName=Ea;ve.folderName=rl;import{jsx as jc}from"react/jsx-runtime";var sl="k-picker",Yc=[d.hover,d.focus,d.valid,d.invalid,d.required,d.disabled,d.loading,d.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]},Zc={},At=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:i,loading:u,readonly:m,size:f,rounded:x,fillMode:C,...k}=e;return jc("span",{...k,className:n(e.className,sl,K(sl,{size:f,rounded:x,fillMode:C}),H(sl,{hover:t,focus:o,disabled:a,invalid:r,valid:i,loading:u,readonly:m})),children:e.children})};At.states=Yc;At.options=Qc;At.className=sl;At.defaultOptions=Zc;At.moduleName=Ea;At.folderName=rl;import{Fragment as op,jsx as lr}from"react/jsx-runtime";var Zn="k-clear-value",ep=[d.disabled,d.loading,d.readonly],tp={},Ze=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?lr(op,{}):lr("span",{className:n(e.className,Zn),children:lr(L,{icon:"x"})})};Ze.states=ep;Ze.options=tp;Ze.className=Zn;import{jsx as rp}from"react/jsx-runtime";var rr="k-input-inner",ap=[],lp={},il={type:"text",autocomplete:"off",value:"",placeholder:""},je=e=>{let{value:t=il.value,type:o=il.type,placeholder:a=il.placeholder,autocomplete:r=il.autocomplete,disabled:i,readOnly:u,...m}=e;return rp("input",{...m,type:o,className:n(e.className,rr,K(rr,e)),placeholder:a,autoComplete:r,defaultValue:t,disabled:i||void 0,readOnly:u||void 0})};je.states=ap;je.options=lp;je.className=rr;import{jsx as jn,jsxs as ip}from"react/jsx-runtime";var nr="k-input-inner",np=[],sp={},bo=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:i,...u}=e;return ip("span",{...u,className:n(e.className,nr,K(nr,e)),children:[r,!r&&i&&jn(L,{className:"k-input-value-icon",icon:i}),a&&!t&&o,a&&t&&jn("span",{className:"k-input-value-text",children:t})]})};bo.states=np;bo.options=sp;bo.className=nr;import{jsx as pp}from"react/jsx-runtime";var sr="k-input-inner",dp=[],cp={},es={value:"",placeholder:""},ir=e=>{let{value:t=es.value,placeholder:o=es.placeholder,rows:a,disabled:r,...i}=e;return pp("textarea",{...i,className:n(e.className,sr,K(sr,e)),placeholder:o,rows:a,defaultValue:t,disabled:r||void 0})};ir.states=dp;ir.options=cp;ir.className=sr;import{Fragment as mp,jsx as ts}from"react/jsx-runtime";var os="k-input-loading-icon",up=[d.disabled,d.loading],Je=e=>{let{disabled:t,loading:o}=e;return t||!o?ts(mp,{}):ts("span",{className:n(e.className,os,"k-icon k-i-loading")})};Je.states=up;Je.className=os;import{Fragment as fp,jsx as as}from"react/jsx-runtime";var ls="k-input-validation-icon",hp=[d.valid,d.invalid,d.disabled,d.loading],bp={},Ge=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,i=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?as(fp,{}):as(L,{className:n(ls),icon:i})};Ge.states=hp;Ge.options=bp;Ge.className=ls;import{Fragment as vp,jsx as rs}from"react/jsx-runtime";var xp="k-input-prefix",Cp={direction:"horizontal"},dt=e=>{let{direction:t=Cp.direction,...o}=e;return e.children?rs("span",{...o,className:n(xp,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):rs(vp,{})};import{Fragment as Sp,jsx as ns}from"react/jsx-runtime";var yp="k-input-suffix",kp={direction:"horizontal"},ct=e=>{let{direction:t=kp.direction,...o}=e;return e.children?ns("span",{...o,className:n(yp,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ns(Sp,{})};import{jsx as aS}from"react/jsx-runtime";import{jsx as gp}from"react/jsx-runtime";var Np="k-input-suffix-text",dr=e=>{let{children:t,...o}=e;return gp("span",{...o,className:n(Np,e.className),children:t})};import{jsx as wp}from"react/jsx-runtime";var ss="k-input-separator",Tp={direction:"vertical"},pt=e=>{let{direction:t=Tp.direction,...o}=e;return wp("span",{...o,className:n(ss,e.className,{[`${ss}-${t}`]:t})})};import{Fragment as is,jsx as Rt,jsxs as cr}from"react/jsx-runtime";var Mp=ve.states,Lp=ve.defaultOptions,Ep=ve.options,Ap=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Rp=[],Bo=e=>{let{modifiers:t,valid:o,invalid:a,loading:r,disabled:i,readonly:u,...m}=e,f=t?.prefix,x=t?.suffix,C=t?.["clear-button"],k=t?.["validation-icon"],h=t?.separators;return cr(ve,{...m,valid:o,invalid:a,loading:r,disabled:i,readonly:u,style:{width:300},children:[f&&cr(is,{children:[Rt(dt,{children:Rt(L,{icon:"lock"})}),h&&Rt(pt,{})]}),Rt(je,{placeholder:"Placeholder",value:"Value"}),k&&Rt(Ge,{valid:o,invalid:a,loading:r,disabled:i}),Rt(Je,{loading:r,disabled:i}),C&&Rt(Ze,{loading:r,disabled:i,readonly:u,value:"Value"}),x&&cr(is,{children:[h&&Rt(pt,{}),Rt(ct,{children:Rt(mo,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};Bo.options=Ep;Bo.states=Mp;Bo.variants=Rp;Bo.defaultOptions=Lp;Bo.modifiers=Ap;Bo.className=ve.className;import{jsx as ds,jsxs as Bp}from"react/jsx-runtime";var cs="k-color-preview",Ip=[],Op={},Zt=e=>{let{color:t,iconName:o,...a}=e;return Bp("span",{...a,className:n(e.className,cs,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ds(L,{icon:o,className:"k-color-preview-icon"}),ds("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Zt.states=Ip;Zt.options=Op;Zt.className=cs;var pr="popup",ps=pr;import{jsx as us}from"react/jsx-runtime";var ms="k-animation-container",Pp=[],Dp={},ur={positionMode:"absolute",shown:!0},It=e=>{let{positionMode:t=ur.positionMode,shown:o=ur.shown,animationStyle:a,offset:r,...i}=e;return us("div",{...i,style:{...r,...e.style},className:n(e.className,ms,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:us("div",{className:"k-child-animation-container",style:a,children:e.children})})};It.states=Pp;It.options=Dp;It.className=ms;It.defaultOptions=ur;It.moduleName=pr;It.folderName=ps;var mr="popup",hs=mr;import{jsx as bs}from"react/jsx-runtime";var fs="k-popup",Kp=[],Hp={},xs={positionMode:"absolute"},pe=e=>{let{offset:t,positionMode:o=xs.positionMode,animationStyle:a,containerClassName:r,containerRole:i,containerAriaLabel:u,...m}=e;return bs(It,{positionMode:o,offset:t,animationStyle:a,className:r,role:i,"aria-label":u,children:bs("div",{...m,className:n(e.className,fs),children:e.children})})};pe.states=Kp;pe.options=Hp;pe.className=fs;pe.defaultOptions=xs;pe.moduleName=mr;pe.folderName=hs;pe.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var hr="action-buttons",Cs=hr;import{jsx as Gp}from"react/jsx-runtime";var dl="k-actions",_p=[],zp={},br={alignment:"start",orientation:"horizontal"},Ot=e=>{let{alignment:t=br.alignment,orientation:o=br.orientation,...a}=e;return Gp("div",{...a,className:n(dl,{[`${dl}-${t}`]:t,[`${dl}-${o}`]:o},e.className),children:e.children})};Ot.states=_p;Ot.options=zp;Ot.className=dl;Ot.defaultOptions=br;Ot.moduleName=hr;Ot.folderName=Cs;import{jsx as Fp}from"react/jsx-runtime";var Up="k-actionsheet-footer",vs={alignment:"stretched",orientation:"horizontal"},jt=e=>{let{alignment:t=vs.alignment,orientation:o=vs.orientation,template:a,as:r=a?"div":Ot,...i}=e;return Fp(r,{...i,...!a&&{alignment:t,orientation:o},className:n(e.className,Up),children:e.children})};var fr="searchbox",ys=fr;import{jsx as Aa,jsxs as $p}from"react/jsx-runtime";var ks="k-searchbox",Wp=[d.hover,d.focus,d.valid,d.invalid,d.required,d.disabled,d.loading],Vp={size:[p.undefined,p.small,p.medium,p.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},xr={showIcon:!0,icon:"search"},ut=e=>{let{value:t,placeholder:o,size:a,rounded:r,fillMode:i,hover:u,focus:m,valid:f,invalid:x,required:C,loading:k,disabled:h,showIcon:E=xr.showIcon,icon:g=xr.icon,"aria-label":O,...D}=e;return $p(ve,{...D,size:a,rounded:r,fillMode:i,hover:u,focus:m,valid:f,invalid:x,required:C,loading:k,disabled:h,className:n(e.className,ks),children:[E&&Aa(L,{className:"k-input-icon",icon:g}),Aa(je,{placeholder:o,value:t,"aria-label":O}),Aa(Je,{...e}),Aa(Ge,{...e}),Aa(Ze,{...e})]})};ut.states=Wp;ut.options=Vp;ut.className=ks;ut.defaultOptions=xr;ut.moduleName=fr;ut.folderName=ys;import{jsx as LN}from"react/jsx-runtime";var Cr="textbox",Ss=Cr;import{Fragment as Ns,jsx as eo,jsxs as vr}from"react/jsx-runtime";var gs="k-textbox",Xp=[d.hover,d.focus,d.valid,d.invalid,d.required,d.disabled,d.loading,d.readonly],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]},cl={showClearButton:!0,showValidationIcon:!0,separators:!0},Re=e=>{let{size:t,rounded:o,fillMode:a,separators:r=cl.separators,showClearButton:i=cl.showClearButton,showValidationIcon:u=cl.showValidationIcon,prefix:m,suffix:f,type:x,value:C,placeholder:k,hover:h,focus:E,valid:g,invalid:O,required:D,loading:B,disabled:W,readonly:ie,id:Ce,"aria-label":Ae,"aria-describedby":Te,...ze}=e;return vr(ve,{...ze,size:t,rounded:o,fillMode:a,hover:h,focus:E,valid:g,invalid:O,required:D,loading:B,disabled:W,readonly:ie,className:n(e.className,gs),children:[m&&vr(Ns,{children:[eo(dt,{children:m}),r&&eo(pt,{})]}),eo(je,{id:Ce,placeholder:k,value:C,type:x,disabled:W,"aria-label":Ae,"aria-describedby":Te,"aria-invalid":O?"true":void 0}),u&&eo(Ge,{valid:g,invalid:O,loading:B,disabled:W}),eo(Je,{loading:B,disabled:W}),i&&eo(Ze,{loading:B,disabled:W,readonly:ie,value:C}),f&&vr(Ns,{children:[r&&eo(pt,{}),eo(ct,{children:f})]})]})};Re.states=Xp;Re.options=Jp;Re.className=gs;Re.defaultOptions=cl;Re.moduleName=Cr;Re.folderName=Ss;Re.ariaSpec={selector:".k-textbox",rules:[{selector:".k-textbox > .k-input-inner",attribute:"role=textbox or nodeName=input",usage:"Describes the role of the component."},{selector:".k-textbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-textbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the TextBox is in an invalid state."},{selector:".k-textbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the input."},{selector:".k-textbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the TextBox is disabled."}]};var Ra=Re;import{jsx as qp}from"react/jsx-runtime";var Ts=e=>qp(Ra,{...e});import{Fragment as $N,jsx as VN}from"react/jsx-runtime";import{Fragment as ZN,jsx as QN}from"react/jsx-runtime";import{jsx as og}from"react/jsx-runtime";import{jsx as yr}from"react/jsx-runtime";var Yp=Re.states,Qp=Re.defaultOptions,Zp=Re.options,jp=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],eu=[],Po=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{switch(r){case"prefix":a.prefix=t?.[r]?yr(L,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[r]?yr(mo,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[r];break;default:break}}),yr(Ts,{value:"Value",style:{width:300},...o,...a})};Po.options=Zp;Po.states=Yp;Po.variants=eu;Po.defaultOptions=Qp;Po.modifiers=jp;Po.className=Re.className;import{jsx as to,jsxs as kr}from"react/jsx-runtime";var ws="k-actionsheet-titlebar",tu={},Ue=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:r,filter:i,input:u,inputValue:m,inputPlaceholder:f,adaptive:x,titleId:C,children:k,...h}=e;return kr("div",{...h,className:n(e.className,ws),children:[kr("div",{className:"k-actionsheet-titlebar-group",children:[a&&to("div",{className:"k-actionsheet-actions",children:a}),!k&&kr("div",{className:"k-actionsheet-title",id:C,children:[t&&to("div",{className:"k-text-center",children:t}),o&&to("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),k&&to("div",{className:"k-actionsheet-title",id:C,children:k}),r&&to("div",{className:"k-actionsheet-actions",children:r})]}),(u||i)&&to("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:u?to(Re,{value:m,placeholder:f,size:x?"large":"medium","aria-label":t||f||"Input"}):to(ut,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};Ue.className=ws;Ue.defaultOptions=tu;import{jsx as Sr,jsxs as ru}from"react/jsx-runtime";var Nr="k-actionsheet-view",ou=[],au={},lu={},Do=e=>{let{adaptive:t,animated:o,children:a,header:r,footer:i,titleId:u,...m}=e,f=r?.type===Ue&&Sr(Ue,{adaptive:t,titleId:u,...r?.props}),x=i?.type===jt&&Sr(jt,{...i?.props});return ru("div",{...m,className:n(e.className,Nr,{[`${Nr}-animated`]:o}),children:[f,Sr("div",{className:"k-actionsheet-content",children:a}),x]})};Do.states=ou;Do.options=au;Do.className=Nr;Do.defaultOptions=lu;var Ia="action-sheet",pl=Ia;var gr="overlay",Ms=gr;import{jsx as du}from"react/jsx-runtime";var Ls="k-overlay",nu=[],su={},iu={},oo=e=>{let{...t}=e;return du("div",{...t,className:n(e.className,Ls),children:e.children})};oo.states=nu;oo.options=su;oo.className=Ls;oo.defaultOptions=iu;oo.moduleName=gr;oo.folderName=Ms;import{jsx as ul,jsxs as uu}from"react/jsx-runtime";var Es="k-actionsheet",cu=[],pu={},Oa={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},be=e=>{let{side:t=Oa.side,fullscreen:o=Oa.fullscreen,adaptive:a=Oa.adaptive,overlay:r=Oa.overlay,template:i,children:u,header:m,footer:f,id:x,...C}=e,k=x&&!i&&m?`${x}-title`:void 0;return uu("div",{className:"k-actionsheet-container",children:[r&&ul(oo,{}),ul(It,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:ul("div",{...C,id:x,role:"dialog","aria-modal":r?"true":void 0,"aria-labelledby":k,className:n(e.className,Es,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:i||ul(Do,{header:m,footer:f,adaptive:a,titleId:k,...e,children:u})})})]})};be.states=cu;be.options=pu;be.className=Es;be.defaultOptions=Oa;be.moduleName=Ia;be.folderName=pl;be.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};import{jsx as fu}from"react/jsx-runtime";var As="k-actionsheet-container",mu=[],hu={},bu={},Ko=e=>{let{children:t,...o}=e;return fu("div",{...o,className:As,children:t})};Ko.states=mu;Ko.options=hu;Ko.className=As;Ko.defaultOptions=bu;Ko.moduleName=Ia;Ko.folderName=pl;import{jsx as xu}from"react/jsx-runtime";var Tr=e=>{let{...t}=e;return xu("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as vu,jsx as Ba,jsxs as wr}from"react/jsx-runtime";var Mr="k-actionsheet-item",Cu=[d.hover,d.focus,d.selected,d.disabled],ao=e=>{let{iconName:t,text:o,description:a,hover:r,focus:i,selected:u,disabled:m,...f}=e;return wr("span",{...f,className:n(e.className,Mr,H(Mr,{hover:r,focus:i,selected:u,disabled:m})),children:[!e.children&&Ba(vu,{children:wr("span",{className:"k-actionsheet-action",children:[t&&Ba("span",{className:"k-icon-wrap",children:Ba(L,{className:"k-actionsheet-item-icon",icon:t})}),wr("span",{className:"k-actionsheet-item-text",children:[o&&Ba("span",{className:"k-actionsheet-item-title",children:o}),a&&Ba("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};ao.states=Cu;ao.className=Mr;import{jsx as tT,jsxs as oT}from"react/jsx-runtime";import{jsx as nT}from"react/jsx-runtime";import{jsx as cT}from"react/jsx-runtime";import{jsx as hT}from"react/jsx-runtime";import{jsx as Ie,jsxs as Lr}from"react/jsx-runtime";var yu=be.options,ku=be.states,Is={...be.defaultOptions,variant:"normal"},Su=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Nu=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Ho=e=>{let{variant:t,modifiers:o,...a}={...Is,...e},r={},i=Lr(Tr,{children:[Ie(ao,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),Ie(ao,{text:"Add to Favorites",iconName:"heart"}),Ie(ao,{text:"Upload New",iconName:"upload",disabled:!0}),Ie("hr",{className:"k-hr"}),Ie(ao,{text:"Cancel",iconName:"cancel"})]}),u="Choose from the items below",m="Select Item";return t==="fullScreen"&&(r.fullScreen=!0),Object.keys(o||{}).forEach(f=>{switch(f){case"actions":r.actionsStart=!!o?.[f],r.actionsEnd=!!o?.[f];break;case"subtitle":r.subtitle=o?.[f]?u:void 0;break;case"footer":r.footer=!!o?.[f];break;default:break}}),t==="adaptive"?Ie(be,{...a,adaptive:!0,fullscreen:r.fullScreen,header:Ie(Ue,{actionsStart:r.actionsStart?Ie(c,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?Ie(c,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:m,subtitle:r.subtitle}),footer:r.footer?Lr(jt,{alignment:"stretched",children:[Ie(c,{text:"Cancel",size:"large",themeColor:"base"}),Ie(c,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:i}):Ie(be,{...a,fullscreen:r.fullScreen,header:Ie(Ue,{actionsStart:r.actionsStart?Ie(c,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?Ie(c,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:r.subtitle}),footer:r.footer?Lr(jt,{alignment:"stretched",children:[Ie(c,{text:"Apply",themeColor:"primary"}),Ie(c,{text:"Cancel",themeColor:"base"})]}):void 0,children:i})};Ho.options=yu;Ho.states=ku;Ho.variants=Su;Ho.defaultOptions=Is;Ho.modifiers=Nu;Ho.className=be.className;var Er="slider",Os=Er;import{jsx as _o,jsxs as Ar}from"react/jsx-runtime";var Pa="k-slider",gu=[d.hover,d.focus,d.active,d.disabled,d.readonly],Tu={},mt={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},se=e=>{let{type:t=mt.type,orientation:o=mt.orientation,gradientType:a=mt.gradientType,readonly:r=mt.readonly,disabled:i=mt.disabled,handlePosition:u=mt.handlePosition,showButtons:m=mt.showButtons,showTicks:f=mt.showTicks,value:x=mt.value,min:C=mt.min,max:k=mt.max,startValue:h,endValue:E,hover:g,focus:O,active:D,trackStyle:B,dir:W,...ie}=e,Ae=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),Te,ze;return o==="horizontal"?(Te=W==="rtl"?"chevron-left":"chevron-right",ze=W==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(Te="chevron-up",ze="chevron-down"),Ar("div",{...ie,className:n(Pa,e.className,H(Pa,{readonly:r,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:W,children:[m&&_o(c,{className:"k-button-decrease",rounded:"full",icon:ze,tabIndex:-1,title:"Decrease"}),Ar("div",{className:"k-slider-track-wrap",children:[f&&_o("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),Ar("div",{className:"k-slider-track",style:B,children:[_o("div",{className:"k-slider-selection"}),t==="range"&&_o("span",{className:n("k-draghandle","k-draghandle-start",H(Pa,{hover:g,focus:O,active:D})),role:"slider",tabIndex:i?void 0:0,"aria-valuenow":h??C,"aria-valuemin":C,"aria-valuemax":E??k,"aria-orientation":Ae,"aria-disabled":i?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":ie["aria-label"]?`${ie["aria-label"]} start`:"Range start"}),_o("span",{className:n("k-draghandle",`k-draghandle-${u}`,H(Pa,{hover:g,focus:O,active:D})),role:"slider",tabIndex:i?void 0:0,"aria-valuenow":t==="range"?E??k:x,"aria-valuemin":t==="range"?h??C:C,"aria-valuemax":k,"aria-orientation":Ae,"aria-disabled":i?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":t==="range"?ie["aria-label"]?`${ie["aria-label"]} end`:"Range end":ie["aria-label"]})]})]}),m&&_o(c,{className:"k-button-increase",rounded:"full",icon:Te,tabIndex:-1,title:"Increase"})]})};se.states=gu;se.options=Tu;se.className=Pa;se.defaultOptions=mt;se.moduleName=Er;se.folderName=Os;se.ariaSpec={selector:".k-slider",rules:[{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"role=slider",usage:"Sets the proper role for Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-label or aria-labelledby or title",usage:"The Slider needs an accessible name to be assigned to it."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the Slider is in a form and announces the invalid state."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuetext (when has text alternative)",usage:"Specifies a human-readable text alternative to the numeric value. Provided by consuming applications."},{selector:".k-slider:not(.k-disabled) .k-draghandle:not(.k-hsv-draghandle)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled sliders are removed from tab order."},{selector:".k-slider-vertical .k-draghandle",attribute:"aria-orientation=vertical (when vertical)",usage:"Present only when slider is vertical."},{selector:".k-slider.k-disabled .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-disabled=true",usage:"Rendered only when the Slider is disabled."},{selector:".k-slider.k-readonly .k-draghandle",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Slider is readonly. Readonly sliders remain focusable but their value cannot be changed."},{selector:".k-slider .k-button",attribute:"tabindex=-1",usage:"Excludes the buttons from the natural tab order. Keyboard users use arrow keys on the drag handle."},{selector:".k-slider .k-button",attribute:"title",usage:'Provides a tooltip describing the button action (e.g., "Decrease" or "Increase").'},{selector:".k-slider .k-slider-items",attribute:"aria-hidden=true",usage:"Hides the tick list from assistive technologies. Tick values are redundant with the drag handle value attributes."},{selector:".k-slider .k-tick",attribute:"role=presentation",usage:"Removes semantic meaning from individual tick elements. Ticks are visual-only markers."},{selector:".k-slider .k-tick",attribute:"title",usage:"Represents the value associated with the respective tick."}]};import{jsx as Bs}from"react/jsx-runtime";var Ps="k-tick",wu=[],Mu={},Ds={label:!1},z=e=>{let{style:t,label:o=Ds.label,orientation:a,large:r,text:i,...u}=e;return Bs("li",{...u,role:"presentation",title:i||"Tick",className:n(e.className,Ps,{[`k-tick-${a}`]:a,"k-tick-large":r}),style:t,children:o&&Bs("span",{className:"k-label",children:i})})};z.states=wu;z.options=Mu;z.className=Ps;z.defaultOptions=Ds;import{Fragment as Lu,jsx as ht,jsxs as Eu}from"react/jsx-runtime";var Ks=e=>ht(se,{"aria-label":e["aria-label"]||"Slider",children:Eu(Lu,{children:[ht(z,{className:"k-first",label:!0,large:!0,text:"0"}),ht(z,{}),ht(z,{}),ht(z,{}),ht(z,{}),ht(z,{label:!0,large:!0,text:"5"}),ht(z,{}),ht(z,{}),ht(z,{}),ht(z,{}),ht(z,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as Au,jsx as bt,jsxs as Ru}from"react/jsx-runtime";var Hs=e=>bt(se,{children:Ru(Au,{children:[bt(z,{className:"k-first",label:!0,large:!0,text:"0"}),bt(z,{}),bt(z,{}),bt(z,{}),bt(z,{}),bt(z,{label:!0,large:!0,text:"5"}),bt(z,{}),bt(z,{}),bt(z,{}),bt(z,{}),bt(z,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as ow,jsx as tw,jsxs as aw}from"react/jsx-runtime";import{Fragment as iw,jsx as sw,jsxs as dw}from"react/jsx-runtime";import{jsx as Iu}from"react/jsx-runtime";var Rr=e=>Iu(se,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as Ou}from"react/jsx-runtime";var Ir=e=>Ou(se,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as yw,jsx as vw,jsxs as kw}from"react/jsx-runtime";import{Fragment as ww,jsx as Tw,jsxs as Mw}from"react/jsx-runtime";import{jsx as Bt,jsxs as _s}from"react/jsx-runtime";var Bu=se.options,Pu=se.states,zs={...se.defaultOptions,variant:"horizontal",label:!0},Du=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],Ku=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],zo=e=>{let{variant:t,modifiers:o,...a}=e,r=zs.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"?_s(Hs,{style:{height:"300px",...u},...a,...i,children:[Bt(z,{label:r,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),Bt(z,{label:r,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),Bt(z,{label:r,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),Bt(z,{label:r,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),Bt(z,{label:r,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):_s(Ks,{style:{width:"400px",...u},...a,...i,children:[Bt(z,{label:r,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),Bt(z,{label:r,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),Bt(z,{label:r,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),Bt(z,{label:r,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),Bt(z,{label:r,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};zo.options=Bu;zo.states=Pu;zo.variants=Du;zo.defaultOptions=zs;zo.modifiers=Ku;zo.className=se.className;import{jsx as Gs,jsxs as Uu}from"react/jsx-runtime";var Us="k-spin-button",zu=[],Gu={size:[p.undefined,p.small,p.medium,p.large],fillMode:[v.undefined,v.solid,v.flat,v.outline,v.clear,v.link]},Or={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},lo=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:r=Or.increaseLabel,decreaseLabel:i=Or.decreaseLabel,...u}=e;return Uu("span",{...u,className:n(Us,e.className),children:[Gs(c,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":r}),Gs(c,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":i})]})};lo.states=zu;lo.options=Gu;lo.className=Us;lo.defaultOptions=Or;lo.moduleName=null;lo.folderName=null;var Fs="numeric-textbox",Ws="numerictextbox";import{Fragment as Vs,jsx as zt,jsxs as Br}from"react/jsx-runtime";var $s="k-numerictextbox",Fu=[d.hover,d.focus,d.valid,d.invalid,d.loading,d.required,d.disabled,d.readonly],Wu={size:[p.undefined,p.small,p.medium,p.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},ml={showSpinButton:!0,showClearButton:!0,separators:!0},oe=e=>{let{size:t,rounded:o,fillMode:a,separators:r=ml.separators,showClearButton:i=ml.showClearButton,showSpinButton:u=ml.showSpinButton,prefix:m,suffix:f,value:x,placeholder:C,hover:k,focus:h,valid:E,invalid:g,required:O,loading:D,disabled:B,readonly:W,id:ie,"aria-label":Ce,"aria-describedby":Ae,...Te}=e;return Br(ve,{...Te,size:t,rounded:o,fillMode:a,hover:k,focus:h,valid:E,invalid:g,required:O,loading:D,disabled:B,readonly:W,className:n(e.className,$s),children:[m&&Br(Vs,{children:[zt(dt,{children:m}),r&&zt(pt,{})]}),zt(je,{id:ie,placeholder:C,value:x,role:"spinbutton",disabled:B,"aria-label":Ce,"aria-describedby":Ae,"aria-invalid":g?"true":void 0}),zt(Ge,{valid:E,invalid:g,loading:D,disabled:B}),zt(Je,{loading:D,disabled:B}),i&&zt(Ze,{loading:D,disabled:B,readonly:W,value:x}),f&&Br(Vs,{children:[r&&zt(pt,{}),zt(ct,{children:f})]}),u&&zt(lo,{className:"k-input-spinner",size:t,fillMode:a,disabled:B})]})};oe.states=Fu;oe.options=Wu;oe