UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 184 kB
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,l)=>t[l]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var H=(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"}),_=(e,t)=>{let{valid:o,invalid:l,hover:r,focus:i,checked:u,active:m,selected:x,disabled:C,indeterminate:v,loading:S,empty:b,readonly:A,highlighted:T,...B}=t;return n({"k-valid":o,"k-invalid":l,"k-hover":r,"k-focus":i,"k-checked":u,"k-active":m,"k-selected":x,"k-disabled":C,"k-indeterminate":v&&!u,"k-loading":S,"k-empty":b,"k-readonly":A,"k-highlighted":T},Object.keys(B).reduce((K,P)=>(P.startsWith("k-")?K[P]=B[P]:K[`k-${P}`]=B[P],K),{}))};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"},k={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},y={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},At={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},M={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 $l={};function $(e){return $l[e]=($l[e]||0)+1,`k-${e}-${$l[e]}`}import{Fragment as Jd,jsx as Ln}from"react/jsx-runtime";var Xl="k-font-icon",Vd=[],$d={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[M.undefined,M.base,M.primary,M.secondary,M.tertiary,M.success,M.warning,M.error,M.info]},Xd={},Ta=e=>{let{size:t,themeColor:o,icon:l,rotate:r,flip:i,...u}=e;return l?Ln("span",{...u,className:n(e.className,Xl,H(Xl,{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"}):Ln(Jd,{})};Ta.states=Vd;Ta.options=$d;Ta.className=Xl;Ta.defaultOptions=Xd;var En=Ta;import{Fragment as Qd,jsx as tl}from"react/jsx-runtime";var Jl="k-svg-icon",qd=[],Yd={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[M.undefined,M.base,M.primary,M.secondary,M.tertiary,M.success,M.warning,M.error,M.info],variant:[At.outline,At.solid,At.duotone]},ql={viewBox:"0 0 24 24",variant:At.outline},wa=e=>{let{size:t,themeColor:o,rotate:l,flip:r,viewBox:i=ql.viewBox,variant:u=ql.variant,icon:m,...x}=e;if(!m)return tl(Qd,{});if(m==="none")return tl("span",{...x,className:n(e.className,Jl,H("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let C=typeof m=="object"&&m.name&&m.name,v=typeof m=="object"?u&&m.variants?.[u]||m.variants?.outline||m.content:void 0;return tl("span",{...x,className:n(e.className,Jl,H("k-icon",{size:t}),{[`k-svg-i-${C}`]:C,[`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:v!==void 0?{__html:v}:void 0,children:m?void 0:e.children})})};wa.states=qd;wa.options=Yd;wa.className=Jl;wa.defaultOptions=ql;var Yl=wa;import*as Ql from"@progress/kendo-svg-icons";var An="icon",Rn="icons";import{useContext as jd}from"react";import{createContext as Zd}from"react";var In=Zd({iconsType:"svg"});import{Fragment as On,jsx as Ma}from"react/jsx-runtime";var ol="k-icon",ec=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),tc=[],oc={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[M.undefined,M.base,M.primary,M.secondary,M.tertiary,M.success,M.warning,M.error,M.info],variant:[At.outline,At.solid,At.duotone]},al={viewBox:"0 0 24 24",type:"svg",variant:At.outline},E=e=>{let{iconsType:t}=jd(In),{size:o,themeColor:l,icon:r,type:i=t||al.type,rotate:u,flip:m,viewBox:x=al.viewBox,variant:C=al.variant,...v}=e;if(!r)return Ma(On,{});if((t||i)==="svg"){if(r==="none")return Ma(Yl,{...v,className:n(e.className,ol),icon:r,size:o,variant:C});let b=Ql[r]?r:ec(`${r}-icon`);return Ql[b]?Ma(Yl,{...v,className:n(e.className,ol),icon:Ql[b],size:o,themeColor:l,rotate:u,flip:m,viewBox:x,variant:C}):Ma(On,{})}return Ma(En,{...v,className:n(e.className,ol),icon:r,size:o,themeColor:l,rotate:u,flip:m})};E.states=tc;E.options=oc;E.defaultOptions=al;E.className=ol;E.moduleName=An;E.folderName=Rn;E.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 Zl=E;var jl="button",Bn=jl;import{Fragment as Pn,jsx as Io,jsxs as Dn}from"react/jsx-runtime";var La="k-button",ac=["icon-button"],lc=[d.hover,d.focus,d.active,d.selected,d.disabled,d.generating],rc={size:[p.undefined,p.xsmall,p.small,p.medium,p.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[y.undefined,y.solid,y.flat,y.outline,y.clear,y.link],themeColor:[M.undefined,M.base,M.primary,M.secondary,M.tertiary,M.success,M.warning,M.error,M.info,M.inverse]},er={showArrow:!1,arrowIconName:"chevron-down"},c=e=>{let{as:t="button",size:o,rounded:l,fillMode:r,themeColor:i,showArrow:u=er.showArrow,arrowIconName:m=er.arrowIconName,variant:x,hover:C,focus:v,active:S,selected:b,disabled:A,togglable:T,ariaDisabled:B,icon:K,iconSize:P,text:V,iconClassName:ce,className:ve,...Re}=e,we=K!=null,Ge=e.children!==void 0;return Dn(t,{className:n(ve,La,Mn(La,x),H(La,{size:o,rounded:l,fillMode:r,themeColor:i}),_(La,{hover:C,focus:v,active:S,disabled:A||B,selected:b}),{"k-icon-button":!V&&!Ge&&we}),"aria-pressed":T?b?"true":"false":void 0,...Re,"aria-disabled":B?"true":void 0,disabled:A||void 0,children:[typeof K=="string"&&K&&Io(E,{className:n(ce,"k-button-icon"),icon:K,size:P}),K&&typeof K!="string"&&Io(Pn,{children:K}),V?Dn(Pn,{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(E,{icon:m})})]})};c.states=lc;c.options=rc;c.variants=ac;c.className=La;c.defaultOptions=er;c.moduleName=jl;c.folderName=Bn;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 nc}from"react/jsx-runtime";var jt=e=>nc(c,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as sc}from"react/jsx-runtime";var Ea=e=>sc(c,{icon:"folder",children:"Button",...e});import{jsx as ic}from"react/jsx-runtime";var bo=e=>ic(c,{children:"Button",...e});import{jsx as tr}from"react/jsx-runtime";var dc=c.options,cc=c.states,pc={...c.defaultOptions,variant:"text"},uc=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],mc=[],Oo=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return tr(jt,{...o,icon:"star"});case"icon-and-text":return tr(Ea,{...o,icon:"star",children:"Button"});default:return tr(bo,{...o,children:"Button"})}};Oo.options=dc;Oo.states=cc;Oo.variants=uc;Oo.defaultOptions=pc;Oo.modifiers=mc;Oo.className=c.className;var j="scheduler",te=j;import{jsx as xc}from"react/jsx-runtime";var Kn="k-scheduler-layout",hc=[],bc={},fc={},fo=e=>{let{as:t="div",view:o,...l}=e,r=o==="agenda"?"grid":o==="year"?void 0:"none";return xc(t,{...l,className:n(e.className,Kn,{[`k-scheduler-${o}view`]:o}),...r&&{role:r},children:e.children})};fo.states=hc;fo.options=bc;fo.className=Kn;fo.defaultOptions=fc;fo.moduleName=j;fo.folderName=te;var Hn=fo;import{jsx as kc,jsxs as Sc}from"react/jsx-runtime";var _n="k-scheduler",Cc=[],vc={},yc={},X=e=>{let{view:t,toolbar:o,footer:l,layout:r,...i}=e;return Sc("div",{...i,className:n(e.className,_n),role:"application",children:[o,kc(Hn,{className:n({"k-scheduler-layout-flex":r==="flex"}),as:r==="table"?"table":"div",view:t,children:e.children}),l]})};X.states=Cc;X.options=vc;X.className=_n;X.defaultOptions=yc;X.moduleName=j;X.folderName=te;X.ariaSpec={selector:".k-scheduler",rules:[{selector:".k-scheduler",attribute:"role=application",usage:"Specifies the role of the component."},{selector:".k-scheduler-toolbar",attribute:"role=toolbar",usage:"Follows Toolbar spec: sets the component role."},{selector:".k-scheduler-toolbar",attribute:"aria-label or title",usage:"Follows Toolbar spec: each toolbar must have a label specifying its purpose."},{selector:'.k-scheduler-navigation .k-button:has([class*="i-chevron-left"])',attribute:"aria-label",usage:"Required as the previous navigation button contains only an icon (no text)."},{selector:'.k-scheduler-navigation .k-button:has([class*="i-chevron-right"])',attribute:"aria-label",usage:"Required as the next navigation button contains only an icon (no text)."},{selector:".k-nav-current",attribute:"aria-live=polite",usage:"The new date of the Scheduler view will be announced upon navigation to a new time span or view type."},{selector:".k-views-dropdown",attribute:"aria-label",usage:"The <select> element visible on the toolbar on small screens must have its aria-label set."},{selector:".k-scheduler-views",attribute:"role=group",usage:"Follows SegmentedControl spec: sets the proper role for the group of view buttons."},{selector:".k-scheduler-views .k-segmented-control-button",attribute:"aria-pressed (when selected)",usage:"Follows SegmentedControl spec: specifies the current state of the view SegmentedControl. Only the selected button within the group will have this attribute set to true."},{selector:".k-scheduler-agendaview",attribute:"role=grid",usage:"The main table of the Agenda view must indicate it is a Data Grid."},{selector:".k-scheduler-agendaview>tbody",attribute:"role=none/presentation",usage:"The <tbody> element must have its semantics removed."},{selector:".k-scheduler-agendaview .k-scheduler-table",attribute:"role=none/presentation",usage:"Inner <table> elements within the Agenda Scheduler must have their semantic role removed."},{selector:".k-scheduler-agendaview .k-scheduler-table>tbody",attribute:"role=rowgroup",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-agendaview .k-scheduler-table>tbody>tr",attribute:"role=row",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-agendaview .k-scheduler-table>tbody>tr>th",attribute:"role=columnheader",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-agendaview .k-scheduler-content tr .k-selected",attribute:"aria-selected",usage:"Used to signify the currently selected row in Agenda view."},{selector:".k-scheduler-content>.k-scheduler-table>tbody>tr>.k-scheduler-groupcolumn,.k-scheduler-content>.k-scheduler-table>tbody>tr>.k-scheduler-datecolumn",attribute:"role=rowheader",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-content>.k-scheduler-table>tbody>tr>.k-scheduler-timecolumn,.k-scheduler-content>.k-scheduler-table>tbody>tr>.k-scheduler-timecolumn+td",attribute:"role=gridcell",usage:"Must have role explicitly set as it has been removed by the <table> role set (none/presentation)."},{selector:".k-scheduler-dayview,.k-scheduler-weekview,.k-scheduler-monthview,.k-scheduler-timelineview",attribute:"role=none/presentation",usage:"All <table> elements within the Scheduler must have their semantic role removed."},{selector:".k-scheduler-times .k-scheduler-table",attribute:"role=none/presentation",usage:"Times sidebar tables must have their semantics removed. The role propagates to child th/tr elements, resolving empty-table-header violations."},{selector:".k-event",attribute:"role=button",usage:"Indicating that the event element is interactive."},{selector:".k-event",attribute:"aria-label",usage:"Label containing the title, start, and end date of the appointment."},{selector:".k-scheduler-layout:not(.k-scheduler-agendaview) .k-scheduler-content",attribute:"tabindex=0",usage:"Scrollable elements need to be focusable to ensure scrolling with arrow keys is available (does not apply to agenda view)."}]};import{jsx as zn}from"react/jsx-runtime";var Gn="k-scheduler-header",Nt=e=>zn("div",{...e,className:n(Gn,e.className),children:zn("div",{className:"k-scheduler-header-wrap",children:e.children})});Nt.className=Gn;Nt.moduleName=j;Nt.folderName=te;import{jsx as Nc}from"react/jsx-runtime";var Un="k-scheduler-content",gt=e=>Nc("div",{...e,className:n(Un,e.className),children:e.children});gt.className=Un;gt.moduleName=j;gt.folderName=te;import{jsx as gc}from"react/jsx-runtime";var Fn="k-scheduler-times",Rt=e=>gc("div",{...e,className:n(Fn,e.className),children:e.children});Rt.className=Fn;Rt.moduleName=j;Rt.folderName=te;import{jsx as Tc}from"react/jsx-runtime";var Wn="k-scheduler-table",Ue=e=>Tc("table",{...e,className:n(Wn,e.className),children:e.children});Ue.className=Wn;Ue.moduleName=j;Ue.folderName=te;import{jsx as Vn}from"react/jsx-runtime";var $n="k-scheduler-cell",wc=[],Mc={},Lc={},a=e=>{let{cellType:t,allDay:o,text:l,colspan:r,rowspan:i,as:u="div",...m}=e,x=l||e.children,C=!l&&!e.children,v=u==="th"&&C&&!m.role?"presentation":void 0;return Vn(u,{...m,colSpan:r,rowSpan:i,...v&&{role:v},className:n($n,e.className,{"k-scheduler-times-all-day":o},t?.map(S=>({[`k-${S}-cell`]:!0}))),children:!o&&l?Vn("span",{className:"k-link k-nav-day",children:x}):x})};a.states=wc;a.options=Mc;a.defaultOptions=Lc;a.className=$n;a.moduleName=j;a.folderName=te;import{jsx as Ec}from"react/jsx-runtime";var Xn="k-sticky-cell",Bo=e=>Ec("div",{...e,className:n(Xn,e.className),children:e.children});Bo.className=Xn;Bo.moduleName=j;Bo.folderName=te;import{jsx as Ac}from"react/jsx-runtime";var Jn="k-scheduler-row",g=e=>Ac("div",{...e,className:n(Jn,e.className),children:e.children});g.className=Jn;g.moduleName=j;g.folderName=te;var or="button",qn=or;import{jsx as Bc}from"react/jsx-runtime";var Aa="k-button-group",Rc=[d.disabled],Ic={fillMode:[y.undefined,y.solid,y.flat,y.outline,y.clear,y.link]},Oc={},I=e=>{let{fillMode:t,disabled:o,stretched:l,...r}=e;return Bc("div",{role:"group",...r,className:n(e.className,Aa,H(Aa,{fillMode:t}),_(Aa,{disabled:o}),{[`${Aa}-stretched`]:l}),...o&&{"aria-disabled":"true"},children:e.children})};I.states=Rc;I.options=Ic;I.className=Aa;I.defaultOptions=Oc;I.moduleName=or;I.folderName=qn;I.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 Cv,jsx as xv,jsxs as vv}from"react/jsx-runtime";import{Fragment as Tv,jsx as gv,jsxs as wv}from"react/jsx-runtime";import{Fragment as Iv,jsx as Rv,jsxs as Ov}from"react/jsx-runtime";import{Fragment as _v,jsx as Hv,jsxs as zv}from"react/jsx-runtime";import{Fragment as $v,jsx as Vv,jsxs as Xv}from"react/jsx-runtime";import{Fragment as jv,jsx as Zv,jsxs as ey}from"react/jsx-runtime";import{jsx as Gt,jsxs as ar}from"react/jsx-runtime";var Pc={...c.options,...I.options},Dc=c.states,Kc={...c.defaultOptions,...I.defaultOptions,variant:"text-button"},Hc=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],_c=[],Po=e=>{let{variant:t,className:o,...l}=e;return t==="icon-button"?ar(I,{fillMode:l.fillMode,className:o,children:[Gt(c,{...l,icon:"star"}),Gt(c,{...l,icon:"star"}),Gt(c,{...l,icon:"star"})]}):t==="icon-text-button"?ar(I,{fillMode:l.fillMode,className:o,children:[Gt(c,{...l,icon:"star",children:"First"}),Gt(c,{...l,icon:"star",children:"Middle"}),Gt(c,{...l,icon:"star",children:"Last"})]}):ar(I,{fillMode:l.fillMode,className:o,children:[Gt(c,{...l,children:"First"}),Gt(c,{...l,children:"Middle"}),Gt(c,{...l,children:"Last"})]})};Po.options=Pc;Po.states=Dc;Po.variants=Hc;Po.defaultOptions=Kc;Po.modifiers=_c;Po.className=I.className;var lr="segmented-control",Yn=lr,Qn="segmented-control-button",Zn="segmented-control";import{jsx as Uc,jsxs as Fc}from"react/jsx-runtime";var ll="k-segmented-control",zc=[],Gc={size:[p.undefined,p.small,p.medium,p.large]},pe=e=>{let{size:t,stretched:o,children:l,thumbStyles:r,...i}=e;return Fc("div",{...i,className:n(e.className,ll,H(ll,{size:t}),{[`${ll}-stretched`]:o}),role:"group",children:[Uc("div",{className:"k-segmented-control-thumb","aria-hidden":"true",style:r}),l]})};pe.states=zc;pe.options=Gc;pe.className=ll;pe.moduleName=lr;pe.folderName=Yn;pe.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 jn,jsxs as Xc}from"react/jsx-runtime";var rr="k-segmented-control-button",Wc=[d.selected,d.hover,d.focus,d.disabled],Vc={},$c={},z=e=>{let{hover:t,focus:o,selected:l,disabled:r,icon:i,text:u,iconClassName:m,...x}=e;return Xc("button",{...x,className:n(e.className,rr,_(rr,{hover:t,focus:o,disabled:r,selected:l})),"aria-pressed":l?"true":"false","aria-disabled":r?"true":void 0,children:[i&&jn(E,{className:n(m,"k-segmented-control-button-icon"),icon:i}),(u||e.children)&&jn("span",{className:"k-segmented-control-button-text",children:u||e.children})]})};z.states=Wc;z.options=Vc;z.className=rr;z.defaultOptions=$c;z.moduleName=Qn;z.folderName=Zn;import{Fragment as Ay,jsx as Ey,jsxs as Ry}from"react/jsx-runtime";import{Fragment as Ky,jsx as Dy,jsxs as Hy}from"react/jsx-runtime";import{Fragment as Wy,jsx as Fy,jsxs as Vy}from"react/jsx-runtime";import{Fragment as Qy,jsx as Yy,jsxs as Zy}from"react/jsx-runtime";import{Fragment as lk,jsx as ak,jsxs as rk}from"react/jsx-runtime";var Ra="input",sl=Ra;import{jsx as Qc}from"react/jsx-runtime";var il="k-input",Jc=[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:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[y.undefined,y.solid,y.flat,y.outline]},Yc={},ye=e=>{let{hover:t,focus:o,disabled:l,invalid:r,valid:i,loading:u,readonly:m,size:x,rounded:C,fillMode:v,...S}=e;return Qc("span",{...S,className:n(e.className,il,H(il,{size:x,rounded:C,fillMode:v}),_(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=[d.hover,d.focus,d.valid,d.invalid,d.required,d.disabled,d.loading,d.readonly],jc={size:[p.undefined,p.small,p.medium,p.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[y.undefined,y.solid,y.flat,y.outline]},ep={},It=e=>{let{hover:t,focus:o,disabled:l,invalid:r,valid:i,loading:u,readonly:m,size:x,rounded:C,fillMode:v,...S}=e;return tp("span",{...S,className:n(e.className,dl,H(dl,{size:x,rounded:C,fillMode:v}),_(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=[d.disabled,d.loading,d.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(E,{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,H(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,H(ir,e)),children:[r,!r&&i&&ts(E,{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,H(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=[d.disabled,d.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=[d.valid,d.invalid,d.disabled,d.loading],xp={},Fe=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(E,{className:n(ns),icon:i})};Fe.states=fp;Fe.options=xp;Fe.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 jk}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,x=t?.prefix,C=t?.suffix,v=t?.["clear-button"],S=t?.["validation-icon"],b=t?.separators;return ur(ye,{...m,valid:o,invalid:l,loading:r,disabled:i,readonly:u,style:{width:300},children:[x&&ur(cs,{children:[Ot(pt,{children:Ot(E,{icon:"lock"})}),b&&Ot(mt,{})]}),Ot(tt,{placeholder:"Placeholder",value:"Value"}),S&&Ot(Fe,{valid:o,invalid:l,loading:r,disabled:i}),Ot(Ye,{loading:r,disabled:i}),v&&Ot(et,{loading:r,disabled:i,readonly:u,value:"Value"}),C&&ur(cs,{children:[b&&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(E,{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"},ue=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})})};ue.states=_p;ue.options=zp;ue.className=Cs;ue.defaultOptions=vs;ue.moduleName=br;ue.folderName=fs;ue.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=[d.hover,d.focus,d.valid,d.invalid,d.required,d.disabled,d.loading],Xp={size:[p.undefined,p.small,p.medium,p.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[y.undefined,y.solid,y.flat,y.outline]},vr={showIcon:!0,icon:"search"},ht=e=>{let{value:t,placeholder:o,size:l,rounded:r,fillMode:i,hover:u,focus:m,valid:x,invalid:C,required:v,loading:S,disabled:b,showIcon:A=vr.showIcon,icon:T=vr.icon,"aria-label":B,...K}=e;return Jp(ye,{...K,size:l,rounded:r,fillMode:i,hover:u,focus:m,valid:x,invalid:C,required:v,loading:S,disabled:b,className:n(e.className,Ns),children:[A&&Ia(E,{className:"k-input-icon",icon:T}),Ia(tt,{placeholder:o,value:t,"aria-label":B}),Ia(Ye,{...e}),Ia(Fe,{...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 gN}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=[d.hover,d.focus,d.valid,d.invalid,d.required,d.disabled,d.loading,d.readonly],Yp={size:[p.undefined,p.small,p.medium,p.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[y.undefined,y.solid,y.flat,y.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:x,type:C,value:v,placeholder:S,hover:b,focus:A,valid:T,invalid:B,required:K,loading:P,disabled:V,readonly:ce,id:ve,"aria-label":Re,"aria-describedby":we,...Ge}=e;return kr(ye,{...Ge,size:t,rounded:o,fillMode:l,hover:b,focus:A,valid:T,invalid:B,required:K,loading:P,disabled:V,readonly:ce,className:n(e.className,ws),children:[m&&kr(Ts,{children:[oo(pt,{children:m}),r&&oo(mt,{})]}),oo(tt,{id:ve,placeholder:S,value:v,type:C,disabled:V,"aria-label":Re,"aria-describedby":we,"aria-invalid":B?"true":void 0}),u&&oo(Fe,{valid:T,invalid:B,loading:P,disabled:V}),oo(Ye,{loading:P,disabled:V}),i&&oo(et,{loading:P,disabled:V,readonly:ce,value:v}),x&&kr(Ts,{children:[r&&oo(mt,{}),oo(ut,{children:x})]})]})};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 UN,jsx as GN}from"react/jsx-runtime";import{Fragment as JN,jsx as XN}from"react/jsx-runtime";import{jsx as ZN}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(E,{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={},We=e=>{let{title:t,subtitle:o,actionsStart:l,actionsEnd:r,filter:i,input:u,inputValue:m,inputPlaceholder:x,adaptive:C,titleId:v,children:S,...b}=e;return Nr("div",{...b,className:n(e.className,Ls),children:[Nr("div",{className:"k-actionsheet-titlebar-group",children:[l&&ao("div",{className:"k-actionsheet-actions",children:l}),!S&&Nr("div",{className:"k-actionsheet-title",id:v,children:[t&&ao("div",{className:"k-text-center",children:t}),o&&ao("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),S&&ao("div",{className:"k-actionsheet-title",id:v,children:S}),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:x,size:C?"large":"medium","aria-label":t||x||"Input"}):ao(ht,{placeholder:"Filter",size:C?"large":"medium","aria-label":"Filter options"})})]})};We.className=Ls;We.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,x=r?.type===We&&gr(We,{adaptive:t,titleId:u,...r?.props}),C=i?.type===to&&gr(to,{...i?.props});return su("div",{...m,className:n(e.className,Tr,{[`${Tr}-animated`]:o}),children:[x,gr("div",{className:"k-actionsheet-content",children:l}),C]})};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:x,id:C,...v}=e,S=C&&!i&&m?`${C}-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",{...v,id:C,role:"dialog","aria-modal":r?"true":void 0,"aria-labelledby":S,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:x,adaptive:l,titleId:S,...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=[d.hover,d.focus,d.selected,d.disabled],ro=e=>{let{iconName:t,text:o,description:l,hover:r,focus:i,selected:u,disabled:m,...x}=e;return Lr("span",{...x,className:n(e.className,Er,_(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(E,{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 Qg,jsxs as Zg}from"react/jsx-runtime";import{jsx 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 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(x=>{switch(x){case"actions":r.actionsStart=!!o?.[x],r.actionsEnd=!!o?.[x];break;case"subtitle":r.subtitle=o?.[x]?u:void 0;break;case"footer":r.footer=!!o?.[x];break;default:break}}),t==="adaptive"?Oe(fe,{...l,adaptive:!0,fullscreen:r.fullScreen,header:Oe(We,{actionsStart:r.actionsStart?Oe(c,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?Oe(c,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:m,subtitle:r.subtitle}),footer:r.footer?Ar(to,{alignment:"stretched",children:[Oe(c,{text:"Cancel",size:"large",themeColor:"base"}),Oe(c,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:i}):Oe(fe,{...l,fullscreen:r.fullScreen,header:Oe(We,{actionsStart:r.actionsStart?Oe(c,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?Oe(c,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:r.subtitle}),footer:r.footer?Ar(to,{alignment:"stretched",children:[Oe(c,{text:"Apply",themeColor:"primary"}),Oe(c,{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=[d.hover,d.focus,d.active,d.disabled,d.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},ie=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:x=bt.showTicks,value:C=bt.value,min:v=bt.min,max:S=bt.max,startValue:b,endValue:A,hover:T,focus:B,active:K,trackStyle:P,dir:V,...ce}=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",{...ce,className:n(Ka,e.className,_(Ka,{readonly:r,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:V,children:[m&&Go(c,{className:"k-button-decrease",rounded:"full",icon:Ge,tabIndex:-1,title:"Decrease"}),Ir("div",{className:"k-slider-track-wrap",children:[x&&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",_(Ka,{hover:T,focus:B,active:K})),role:"slider",tabIndex:i?void 0:0,"aria-valuenow":b??v,"aria-valuemin":v,"aria-valuemax":A??S,"aria-orientation":Re,"aria-disabled":i?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":ce["aria-label"]?`${ce["aria-label"]} start`:"Range start"}),Go("span",{className:n("k-draghandle",`k-draghandle-${u}`,_(Ka,{hover:T,focus:B,active:K})),role:"slider",tabIndex:i?void 0:0,"aria-valuenow":t==="range"?A??S:C,"aria-valuemin":t==="range"?b??v:v,"aria-valuemax":S,"aria-orientation":Re,"aria-disabled":i?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":t==="range"?ce["aria-label"]?`${ce["aria-label"]} end`:"Range end":ce["aria-label"]})]})]}),m&&Go(c,{className:"k-button-increase",rounded:"full",icon:we,tabIndex:-1,title:"Increase"})]})};ie.states=wu;ie.options=Mu;ie.className=Ka;ie.defaultOptions=bt;ie.moduleName=Rr;ie.folderName=Ps;ie.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(ie,{"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(ie,{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 ZT,jsx as QT,jsxs as jT}from"react/jsx-runtime";import{Fragment as lw,jsx as aw,jsxs as rw}from"react/jsx-runtime";import{jsx as Bu}from"react/jsx-runtime";var Or=e=>Bu(ie,{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(ie,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as fw,jsx as bw,jsxs as xw}from"react/jsx-runtime";import{Fragment as Sw,jsx as kw,jsxs as Nw}from"react/jsx-runtime";import{jsx as Dt,jsxs as Gs}from"react/jsx-runtime";var Du=ie.options,Ku=ie.states,Us={...ie.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=ie.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:[y.undefined,y.solid,y.flat,y.outline,y.clear,y.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(c,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:l,"aria-label":r}),Fs(c,{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 Ut,jsxs as Dr}from"react/jsx-runtime";var Js="k-numerictextbox",Vu=[d.hover,d.focus,d.valid,d.invalid,d.loading,d.required,d.disabled,d.readonly],$u={size:[p.undefined,p.small,p.medium,p.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[y.undefined,y.solid,y.flat,y.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:x,value:C,placeholder:v,hover:S,focus:b,valid:A,invalid:T,required:B,loading:K,disabled:P,readonly:V,id:ce,"aria-label":ve,"aria-describedby":Re,...we}=e;return Dr(ye,{...we,size:t,rounded:o,fillMode:l,hover:S,focus:b,valid:A,invalid:T,required:B,loading:K,disabled:P,readonly:V,className:n(e.className,Js),children:[m&&Dr(Xs,{children:[Ut(pt,{children:m}),r&&Ut(mt,{})]}),Ut(tt,{id:ce,placeholder:v,value:C,role:"spinbutton",disabled:P,"aria-label":ve,"aria-describedby":Re,"aria-invalid":T?"true":void 0}),Ut(Fe,{valid:A,invalid:T,loading:K,disabled:P}),Ut(Ye,{loading:K,disabled:P}),i&&Ut(et,{loading:K,disabled:P,readonly:V,value:C}),x&&Dr(Xs,{children:[r&&Ut(mt,{}),Ut(ut,{children:x})]}),u&&Ut(no,{className:"k-input-spinner",size:t,fillMode:l,disabled:P})]})};ae.states=Vu;ae.options=$u;ae.className=Js;ae.defaultOptions=bl;ae.moduleName=Vs;ae.folderName=$