UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 166 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 I=(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"}),M=(e,t)=>{let{valid:o,invalid:a,hover:r,focus:s,checked:l,active:c,selected:b,disabled:N,indeterminate:h,loading:k,empty:m,readonly:L,highlighted:C,...S}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":r,"k-focus":s,"k-checked":l,"k-active":c,"k-selected":b,"k-disabled":N,"k-indeterminate":h&&!l,"k-loading":k,"k-empty":m,"k-readonly":L,"k-highlighted":C},Object.keys(S).reduce((E,y)=>(y.startsWith("k-")?E[y]=S[y]:E[`k-${y}`]=S[y],E),{}))};function Bi(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"},u={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},bt={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},x={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},i={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"},Pi={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var Ur={};function T(e){return Ur[e]=(Ur[e]||0)+1,`k-${e}-${Ur[e]}`}import{Fragment as Qd,jsx as wi}from"react/jsx-runtime";var Vr="k-font-icon",Wd=[],Jd={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info]},Yd={},xa=e=>{let{size:t,themeColor:o,icon:a,rotate:r,flip:s,...l}=e;return a?wi("span",{...l,className:n(e.className,Vr,I(Vr,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):wi(Qd,{})};xa.states=Wd;xa.options=Jd;xa.className=Vr;xa.defaultOptions=Yd;var Ri=xa;import{Fragment as ep,jsx as Ja}from"react/jsx-runtime";var $r="k-svg-icon",Zd=[],jd={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[bt.outline,bt.solid,bt.duotone]},Xr={viewBox:"0 0 24 24",variant:bt.outline},Na=e=>{let{size:t,themeColor:o,rotate:a,flip:r,viewBox:s=Xr.viewBox,variant:l=Xr.variant,icon:c,...b}=e;if(!c)return Ja(ep,{});if(c==="none")return Ja("span",{...b,className:n(e.className,$r,I("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?l&&c.variants?.[l]||c.variants?.outline||c.content:void 0;return Ja("span",{...b,className:n(e.className,$r,I("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`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 c=="object"?c.viewBox:s,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:c?void 0:e.children})})};Na.states=Zd;Na.options=jd;Na.className=$r;Na.defaultOptions=Xr;var qr=Na;import*as Wr from"@progress/kendo-svg-icons";var Ki="icon",_i="icons";import{useContext as op}from"react";import{createContext as tp}from"react";var Di=tp({iconsType:"svg"});import{Fragment as Hi,jsx as ka}from"react/jsx-runtime";var Ya="k-icon",ap=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),rp=[],np={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[bt.outline,bt.solid,bt.duotone]},Qa={viewBox:"0 0 24 24",type:"svg",variant:bt.outline},v=e=>{let{iconsType:t}=op(Di),{size:o,themeColor:a,icon:r,type:s=t||Qa.type,rotate:l,flip:c,viewBox:b=Qa.viewBox,variant:N=Qa.variant,...h}=e;if(!r)return ka(Hi,{});if((t||s)==="svg"){if(r==="none")return ka(qr,{...h,className:n(e.className,Ya),icon:r,size:o,variant:N});let m=Wr[r]?r:ap(`${r}-icon`);return Wr[m]?ka(qr,{...h,className:n(e.className,Ya),icon:Wr[m],size:o,themeColor:a,rotate:l,flip:c,viewBox:b,variant:N}):ka(Hi,{})}return ka(Ri,{...h,className:n(e.className,Ya),icon:r,size:o,themeColor:a,rotate:l,flip:c})};v.states=rp;v.options=np;v.defaultOptions=Qa;v.className=Ya;v.moduleName=Ki;v.folderName=_i;v.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 Jr="button",zi=Jr;import{Fragment as Fi,jsx as uo,jsxs as Gi}from"react/jsx-runtime";var ga="k-button",ip=["icon-button"],sp=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],lp={size:[p.undefined,p.xsmall,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info,x.inverse]},Yr={showArrow:!1,arrowIconName:"chevron-down"},d=e=>{let{as:t="button",size:o,rounded:a,fillMode:r,themeColor:s,showArrow:l=Yr.showArrow,arrowIconName:c=Yr.arrowIconName,variant:b,hover:N,focus:h,active:k,selected:m,disabled:L,togglable:C,ariaDisabled:S,icon:E,iconSize:y,text:w,iconClassName:Q,className:pe,...ue}=e,fe=E!=null,be=e.children!==void 0;return Gi(t,{className:n(pe,ga,Bi(ga,b),I(ga,{size:o,rounded:a,fillMode:r,themeColor:s}),M(ga,{hover:N,focus:h,active:k,disabled:L||S,selected:m}),{"k-icon-button":!w&&!be&&fe}),"aria-pressed":C?m?"true":"false":void 0,...ue,"aria-disabled":S?"true":void 0,disabled:L||void 0,children:[typeof E=="string"&&E&&uo(v,{className:n(Q,"k-button-icon"),icon:E,size:y}),E&&typeof E!="string"&&uo(Fi,{children:E}),w?Gi(Fi,{children:[w&&uo("span",{className:"k-button-text",children:w}),e.children]}):e.children&&uo("span",{className:"k-button-text",children:e.children}),l&&uo("span",{className:"k-menu-button-arrow k-button-arrow",children:uo(v,{icon:c})})]})};d.states=sp;d.options=lp;d.variants=ip;d.className=ga;d.defaultOptions=Yr;d.moduleName=Jr;d.folderName=zi;d.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as dp}from"react/jsx-runtime";var V=e=>dp(d,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as pp}from"react/jsx-runtime";var K=e=>pp(d,{icon:"folder",children:"Button",...e});import{jsx as cp}from"react/jsx-runtime";var Jt=e=>cp(d,{children:"Button",...e});import{jsx as Qr}from"react/jsx-runtime";var mp=d.options,up=d.states,fp={...d.defaultOptions,variant:"text"},bp=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],hp=[],fo=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Qr(V,{...o,icon:"star"});case"icon-and-text":return Qr(K,{...o,icon:"star",children:"Button"});default:return Qr(Jt,{...o,children:"Button"})}};fo.options=mp;fo.states=up;fo.variants=bp;fo.defaultOptions=fp;fo.modifiers=hp;fo.className=d.className;var Zr="button",Ui=Zr;import{jsx as gp}from"react/jsx-runtime";var va="k-button-group",xp=[i.disabled],Np={fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},kp={},B=e=>{let{fillMode:t,disabled:o,stretched:a,...r}=e;return gp("div",{role:"group",...r,className:n(e.className,va,I(va,{fillMode:t}),M(va,{disabled:o}),{[`${va}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};B.states=xp;B.options=Np;B.className=va;B.defaultOptions=kp;B.moduleName=Zr;B.folderName=Ui;B.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 tg,jsx as eg,jsxs as og}from"react/jsx-runtime";import{Fragment as lg,jsx as sg,jsxs as dg}from"react/jsx-runtime";import{Fragment as bg,jsx as fg,jsxs as hg}from"react/jsx-runtime";import{Fragment as Cg,jsx as vg,jsxs as Lg}from"react/jsx-runtime";import{Fragment as Tg,jsx as yg,jsxs as Eg}from"react/jsx-runtime";import{Fragment as Kg,jsx as Rg,jsxs as _g}from"react/jsx-runtime";import{jsx as Ct,jsxs as jr}from"react/jsx-runtime";var vp={...d.options,...B.options},Cp=d.states,Lp={...d.defaultOptions,...B.defaultOptions,variant:"text-button"},Mp=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Sp=[],bo=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?jr(B,{fillMode:a.fillMode,className:o,children:[Ct(d,{...a,icon:"star"}),Ct(d,{...a,icon:"star"}),Ct(d,{...a,icon:"star"})]}):t==="icon-text-button"?jr(B,{fillMode:a.fillMode,className:o,children:[Ct(d,{...a,icon:"star",children:"First"}),Ct(d,{...a,icon:"star",children:"Middle"}),Ct(d,{...a,icon:"star",children:"Last"})]}):jr(B,{fillMode:a.fillMode,className:o,children:[Ct(d,{...a,children:"First"}),Ct(d,{...a,children:"Middle"}),Ct(d,{...a,children:"Last"})]})};bo.options=vp;bo.states=Cp;bo.variants=Mp;bo.defaultOptions=Lp;bo.modifiers=Sp;bo.className=B.className;var Ca="input",Za=Ca;import{jsx as Tp}from"react/jsx-runtime";var ja="k-input",Ap=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Ip={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},yp={},Z=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c,size:b,rounded:N,fillMode:h,...k}=e;return Tp("span",{...k,className:n(e.className,ja,I(ja,{size:b,rounded:N,fillMode:h}),M(ja,{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c}))})};Z.states=Ap;Z.options=Ip;Z.className=ja;Z.defaultOptions=yp;Z.moduleName=Ca;Z.folderName=Za;import{jsx as Pp}from"react/jsx-runtime";var er="k-picker",Ep=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Op={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Bp={},ht=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c,size:b,rounded:N,fillMode:h,...k}=e;return Pp("span",{...k,className:n(e.className,er,I(er,{size:b,rounded:N,fillMode:h}),M(er,{hover:t,focus:o,disabled:a,invalid:r,valid:s,loading:l,readonly:c})),children:e.children})};ht.states=Ep;ht.options=Op;ht.className=er;ht.defaultOptions=Bp;ht.moduleName=Ca;ht.folderName=Za;import{Fragment as Kp,jsx as en}from"react/jsx-runtime";var Vi="k-clear-value",wp=[i.disabled,i.loading,i.readonly],Rp={},Ve=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?en(Kp,{}):en("span",{className:n(e.className,Vi),children:en(v,{icon:"x"})})};Ve.states=wp;Ve.options=Rp;Ve.className=Vi;import{jsx as Hp}from"react/jsx-runtime";var tn="k-input-inner",_p=[],Dp={},tr={type:"text",autocomplete:"off",value:"",placeholder:""},$e=e=>{let{value:t=tr.value,type:o=tr.type,placeholder:a=tr.placeholder,autocomplete:r=tr.autocomplete,disabled:s,readOnly:l,...c}=e;return Hp("input",{...c,type:o,className:n(e.className,tn,I(tn,e)),placeholder:a,autoComplete:r,defaultValue:t,disabled:s||void 0,readOnly:l||void 0})};$e.states=_p;$e.options=Dp;$e.className=tn;import{jsx as $i,jsxs as Gp}from"react/jsx-runtime";var on="k-input-inner",zp=[],Fp={},Yt=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:s,...l}=e;return Gp("span",{...l,className:n(e.className,on,I(on,e)),children:[r,!r&&s&&$i(v,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&$i("span",{className:"k-input-value-text",children:t})]})};Yt.states=zp;Yt.options=Fp;Yt.className=on;import{jsx as $p}from"react/jsx-runtime";var an="k-input-inner",Up=[],Vp={},Xi={value:"",placeholder:""},La=e=>{let{value:t=Xi.value,placeholder:o=Xi.placeholder,rows:a,disabled:r,...s}=e;return $p("textarea",{...s,className:n(e.className,an,I(an,e)),placeholder:o,rows:a,defaultValue:t,disabled:r||void 0})};La.states=Up;La.options=Vp;La.className=an;import{Fragment as qp,jsx as qi}from"react/jsx-runtime";var Wi="k-input-loading-icon",Xp=[i.disabled,i.loading],De=e=>{let{disabled:t,loading:o}=e;return t||!o?qi(qp,{}):qi("span",{className:n(e.className,Wi,"k-icon k-i-loading")})};De.states=Xp;De.className=Wi;import{Fragment as Yp,jsx as Ji}from"react/jsx-runtime";var Yi="k-input-validation-icon",Wp=[i.valid,i.invalid,i.disabled,i.loading],Jp={},Me=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,s=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?Ji(Yp,{}):Ji(v,{className:n(Yi),icon:s})};Me.states=Wp;Me.options=Jp;Me.className=Yi;import{Fragment as jp,jsx as Qi}from"react/jsx-runtime";var Qp="k-input-prefix",Zp={direction:"horizontal"},He=e=>{let{direction:t=Zp.direction,...o}=e;return e.children?Qi("span",{...o,className:n(Qp,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Qi(jp,{})};import{Fragment as oc,jsx as Zi}from"react/jsx-runtime";var ec="k-input-suffix",tc={direction:"horizontal"},ze=e=>{let{direction:t=tc.direction,...o}=e;return e.children?Zi("span",{...o,className:n(ec,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Zi(oc,{})};import{jsx as _v}from"react/jsx-runtime";import{jsx as rc}from"react/jsx-runtime";var ac="k-input-suffix-text",rn=e=>{let{children:t,...o}=e;return rc("span",{...o,className:n(ac,e.className),children:t})};import{jsx as ic}from"react/jsx-runtime";var ji="k-input-separator",nc={direction:"vertical"},Se=e=>{let{direction:t=nc.direction,...o}=e;return ic("span",{...o,className:n(ji,e.className,{[`${ji}-${t}`]:t})})};import{Fragment as es,jsx as xt,jsxs as nn}from"react/jsx-runtime";var sc=Z.states,lc=Z.defaultOptions,dc=Z.options,pc=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],cc=[],ho=e=>{let{modifiers:t,valid:o,invalid:a,loading:r,disabled:s,readonly:l,...c}=e,b=t?.prefix,N=t?.suffix,h=t?.["clear-button"],k=t?.["validation-icon"],m=t?.separators;return nn(Z,{...c,valid:o,invalid:a,loading:r,disabled:s,readonly:l,style:{width:300},children:[b&&nn(es,{children:[xt(He,{children:xt(v,{icon:"lock"})}),m&&xt(Se,{})]}),xt($e,{placeholder:"Placeholder",value:"Value"}),k&&xt(Me,{valid:o,invalid:a,loading:r,disabled:s}),xt(De,{loading:r,disabled:s}),h&&xt(Ve,{loading:r,disabled:s,readonly:l,value:"Value"}),N&&nn(es,{children:[m&&xt(Se,{}),xt(ze,{children:xt(Jt,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};ho.options=dc;ho.states=sc;ho.variants=cc;ho.defaultOptions=lc;ho.modifiers=pc;ho.className=Z.className;import{jsx as ts,jsxs as fc}from"react/jsx-runtime";var os="k-color-preview",mc=[],uc={},Pt=e=>{let{color:t,iconName:o,...a}=e;return fc("span",{...a,className:n(e.className,os,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ts(v,{icon:o,className:"k-color-preview-icon"}),ts("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Pt.states=mc;Pt.options=uc;Pt.className=os;var sn="popup",as=sn;import{jsx as rs}from"react/jsx-runtime";var ns="k-animation-container",bc=[],hc={},ln={positionMode:"absolute",shown:!0},Nt=e=>{let{positionMode:t=ln.positionMode,shown:o=ln.shown,animationStyle:a,offset:r,...s}=e;return rs("div",{...s,style:{...r,...e.style},className:n(e.className,ns,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:rs("div",{className:"k-child-animation-container",style:a,children:e.children})})};Nt.states=bc;Nt.options=hc;Nt.className=ns;Nt.defaultOptions=ln;Nt.moduleName=sn;Nt.folderName=as;var dn="popup",is=dn;import{jsx as ss}from"react/jsx-runtime";var ls="k-popup",xc=[],Nc={},ds={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:o=ds.positionMode,animationStyle:a,containerClassName:r,containerRole:s,containerAriaLabel:l,...c}=e;return ss(Nt,{positionMode:o,offset:t,animationStyle:a,className:r,role:s,"aria-label":l,children:ss("div",{...c,className:n(e.className,ls),children:e.children})})};F.states=xc;F.options=Nc;F.className=ls;F.defaultOptions=ds;F.moduleName=dn;F.folderName=is;F.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 pn="action-buttons",ps=pn;import{jsx as vc}from"react/jsx-runtime";var or="k-actions",kc=[],gc={},cn={alignment:"start",orientation:"horizontal"},G=e=>{let{alignment:t=cn.alignment,orientation:o=cn.orientation,...a}=e;return vc("div",{...a,className:n(or,{[`${or}-${t}`]:t,[`${or}-${o}`]:o},e.className),children:e.children})};G.states=kc;G.options=gc;G.className=or;G.defaultOptions=cn;G.moduleName=pn;G.folderName=ps;import{jsx as Lc}from"react/jsx-runtime";var Cc="k-actionsheet-footer",cs={alignment:"stretched",orientation:"horizontal"},wt=e=>{let{alignment:t=cs.alignment,orientation:o=cs.orientation,template:a,as:r=a?"div":G,...s}=e;return Lc(r,{...s,...!a&&{alignment:t,orientation:o},className:n(e.className,Cc),children:e.children})};var mn="searchbox",ms=mn;import{jsx as Ma,jsxs as Ac}from"react/jsx-runtime";var us="k-searchbox",Mc=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],Sc={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},un={showIcon:!0,icon:"search"},Ze=e=>{let{value:t,placeholder:o,size:a,rounded:r,fillMode:s,hover:l,focus:c,valid:b,invalid:N,required:h,loading:k,disabled:m,showIcon:L=un.showIcon,icon:C=un.icon,"aria-label":S,...E}=e;return Ac(Z,{...E,size:a,rounded:r,fillMode:s,hover:l,focus:c,valid:b,invalid:N,required:h,loading:k,disabled:m,className:n(e.className,us),children:[L&&Ma(v,{className:"k-input-icon",icon:C}),Ma($e,{placeholder:o,value:t,"aria-label":S}),Ma(De,{...e}),Ma(Me,{...e}),Ma(Ve,{...e})]})};Ze.states=Mc;Ze.options=Sc;Ze.className=us;Ze.defaultOptions=un;Ze.moduleName=mn;Ze.folderName=ms;import{jsx as lL}from"react/jsx-runtime";var fn="textbox",fs=fn;import{Fragment as bs,jsx as Rt,jsxs as bn}from"react/jsx-runtime";var hs="k-textbox",Ic=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],yc={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},ar={showClearButton:!0,showValidationIcon:!0,separators:!0},he=e=>{let{size:t,rounded:o,fillMode:a,separators:r=ar.separators,showClearButton:s=ar.showClearButton,showValidationIcon:l=ar.showValidationIcon,prefix:c,suffix:b,type:N,value:h,placeholder:k,hover:m,focus:L,valid:C,invalid:S,required:E,loading:y,disabled:w,readonly:Q,id:pe,"aria-label":ue,"aria-describedby":fe,...be}=e;return bn(Z,{...be,size:t,rounded:o,fillMode:a,hover:m,focus:L,valid:C,invalid:S,required:E,loading:y,disabled:w,readonly:Q,className:n(e.className,hs),children:[c&&bn(bs,{children:[Rt(He,{children:c}),r&&Rt(Se,{})]}),Rt($e,{id:pe,placeholder:k,value:h,type:N,disabled:w,"aria-label":ue,"aria-describedby":fe,"aria-invalid":S?"true":void 0}),l&&Rt(Me,{valid:C,invalid:S,loading:y,disabled:w}),Rt(De,{loading:y,disabled:w}),s&&Rt(Ve,{loading:y,disabled:w,readonly:Q,value:h}),b&&bn(bs,{children:[r&&Rt(Se,{}),Rt(ze,{children:b})]})]})};he.states=Ic;he.options=yc;he.className=hs;he.defaultOptions=ar;he.moduleName=fn;he.folderName=fs;he.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 Sa=he;import{jsx as Tc}from"react/jsx-runtime";var xs=e=>Tc(Sa,{...e});import{Fragment as AL,jsx as SL}from"react/jsx-runtime";import{Fragment as BL,jsx as OL}from"react/jsx-runtime";import{jsx as KL}from"react/jsx-runtime";import{jsx as hn}from"react/jsx-runtime";var Ec=he.states,Oc=he.defaultOptions,Bc=he.options,Pc=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],wc=[],xo=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{switch(r){case"prefix":a.prefix=t?.[r]?hn(v,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[r]?hn(Jt,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[r];break;default:break}}),hn(xs,{value:"Value",style:{width:300},...o,...a})};xo.options=Bc;xo.states=Ec;xo.variants=wc;xo.defaultOptions=Oc;xo.modifiers=Pc;xo.className=he.className;import{jsx as Kt,jsxs as xn}from"react/jsx-runtime";var Ns="k-actionsheet-titlebar",Rc={},Ae=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:r,filter:s,input:l,inputValue:c,inputPlaceholder:b,adaptive:N,titleId:h,children:k,...m}=e;return xn("div",{...m,className:n(e.className,Ns),children:[xn("div",{className:"k-actionsheet-titlebar-group",children:[a&&Kt("div",{className:"k-actionsheet-actions",children:a}),!k&&xn("div",{className:"k-actionsheet-title",id:h,children:[t&&Kt("div",{className:"k-text-center",children:t}),o&&Kt("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),k&&Kt("div",{className:"k-actionsheet-title",id:h,children:k}),r&&Kt("div",{className:"k-actionsheet-actions",children:r})]}),(l||s)&&Kt("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Kt(he,{value:c,placeholder:b,size:N?"large":"medium","aria-label":t||b||"Input"}):Kt(Ze,{placeholder:"Filter",size:N?"large":"medium","aria-label":"Filter options"})})]})};Ae.className=Ns;Ae.defaultOptions=Rc;import{jsx as Nn,jsxs as Hc}from"react/jsx-runtime";var kn="k-actionsheet-view",Kc=[],_c={},Dc={},No=e=>{let{adaptive:t,animated:o,children:a,header:r,footer:s,titleId:l,...c}=e,b=r?.type===Ae&&Nn(Ae,{adaptive:t,titleId:l,...r?.props}),N=s?.type===wt&&Nn(wt,{...s?.props});return Hc("div",{...c,className:n(e.className,kn,{[`${kn}-animated`]:o}),children:[b,Nn("div",{className:"k-actionsheet-content",children:a}),N]})};No.states=Kc;No.options=_c;No.className=kn;No.defaultOptions=Dc;var Aa="action-sheet",rr=Aa;var gn="overlay",ks=gn;import{jsx as Uc}from"react/jsx-runtime";var gs="k-overlay",zc=[],Fc={},Gc={},_t=e=>{let{...t}=e;return Uc("div",{...t,className:n(e.className,gs),children:e.children})};_t.states=zc;_t.options=Fc;_t.className=gs;_t.defaultOptions=Gc;_t.moduleName=gn;_t.folderName=ks;import{jsx as nr,jsxs as Xc}from"react/jsx-runtime";var vs="k-actionsheet",Vc=[],$c={},Ia={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},oe=e=>{let{side:t=Ia.side,fullscreen:o=Ia.fullscreen,adaptive:a=Ia.adaptive,overlay:r=Ia.overlay,template:s,children:l,header:c,footer:b,id:N,...h}=e,k=N&&!s&&c?`${N}-title`:void 0;return Xc("div",{className:"k-actionsheet-container",children:[r&&nr(_t,{}),nr(Nt,{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:nr("div",{...h,id:N,role:"dialog","aria-modal":r?"true":void 0,"aria-labelledby":k,className:n(e.className,vs,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||nr(No,{header:c,footer:b,adaptive:a,titleId:k,...e,children:l})})})]})};oe.states=Vc;oe.options=$c;oe.className=vs;oe.defaultOptions=Ia;oe.moduleName=Aa;oe.folderName=rr;oe.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 Yc}from"react/jsx-runtime";var Cs="k-actionsheet-container",qc=[],Wc={},Jc={},ko=e=>{let{children:t,...o}=e;return Yc("div",{...o,className:Cs,children:t})};ko.states=qc;ko.options=Wc;ko.className=Cs;ko.defaultOptions=Jc;ko.moduleName=Aa;ko.folderName=rr;import{jsx as Qc}from"react/jsx-runtime";var vn=e=>{let{...t}=e;return Qc("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as jc,jsx as ya,jsxs as Cn}from"react/jsx-runtime";var Ln="k-actionsheet-item",Zc=[i.hover,i.focus,i.selected,i.disabled],Dt=e=>{let{iconName:t,text:o,description:a,hover:r,focus:s,selected:l,disabled:c,...b}=e;return Cn("span",{...b,className:n(e.className,Ln,M(Ln,{hover:r,focus:s,selected:l,disabled:c})),children:[!e.children&&ya(jc,{children:Cn("span",{className:"k-actionsheet-action",children:[t&&ya("span",{className:"k-icon-wrap",children:ya(v,{className:"k-actionsheet-item-icon",icon:t})}),Cn("span",{className:"k-actionsheet-item-text",children:[o&&ya("span",{className:"k-actionsheet-item-title",children:o}),a&&ya("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Dt.states=Zc;Dt.className=Ln;import{jsx as RM,jsxs as KM}from"react/jsx-runtime";import{jsx as zM}from"react/jsx-runtime";import{jsx as VM}from"react/jsx-runtime";import{jsx as WM}from"react/jsx-runtime";import{jsx as xe,jsxs as Mn}from"react/jsx-runtime";var em=oe.options,tm=oe.states,Ms={...oe.defaultOptions,variant:"normal"},om=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],am=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],go=e=>{let{variant:t,modifiers:o,...a}={...Ms,...e},r={},s=Mn(vn,{children:[xe(Dt,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),xe(Dt,{text:"Add to Favorites",iconName:"heart"}),xe(Dt,{text:"Upload New",iconName:"upload",disabled:!0}),xe("hr",{className:"k-hr"}),xe(Dt,{text:"Cancel",iconName:"cancel"})]}),l="Choose from the items below",c="Select Item";return t==="fullScreen"&&(r.fullScreen=!0),Object.keys(o||{}).forEach(b=>{switch(b){case"actions":r.actionsStart=!!o?.[b],r.actionsEnd=!!o?.[b];break;case"subtitle":r.subtitle=o?.[b]?l:void 0;break;case"footer":r.footer=!!o?.[b];break;default:break}}),t==="adaptive"?xe(oe,{...a,adaptive:!0,fullscreen:r.fullScreen,header:xe(Ae,{actionsStart:r.actionsStart?xe(d,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?xe(d,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:r.subtitle}),footer:r.footer?Mn(wt,{alignment:"stretched",children:[xe(d,{text:"Cancel",size:"large",themeColor:"base"}),xe(d,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):xe(oe,{...a,fullscreen:r.fullScreen,header:xe(Ae,{actionsStart:r.actionsStart?xe(d,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?xe(d,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:r.subtitle}),footer:r.footer?Mn(wt,{alignment:"stretched",children:[xe(d,{text:"Apply",themeColor:"primary"}),xe(d,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};go.options=em;go.states=tm;go.variants=om;go.defaultOptions=Ms;go.modifiers=am;go.className=oe.className;var Sn="slider",Ss=Sn;import{jsx as vo,jsxs as An}from"react/jsx-runtime";var Ta="k-slider",rm=[i.hover,i.focus,i.active,i.disabled,i.readonly],nm={},je={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},W=e=>{let{type:t=je.type,orientation:o=je.orientation,gradientType:a=je.gradientType,readonly:r=je.readonly,disabled:s=je.disabled,handlePosition:l=je.handlePosition,showButtons:c=je.showButtons,showTicks:b=je.showTicks,value:N=je.value,min:h=je.min,max:k=je.max,startValue:m,endValue:L,hover:C,focus:S,active:E,trackStyle:y,dir:w,...Q}=e,ue=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),fe,be;return o==="horizontal"?(fe=w==="rtl"?"chevron-left":"chevron-right",be=w==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(fe="chevron-up",be="chevron-down"),An("div",{...Q,className:n(Ta,e.className,M(Ta,{readonly:r,disabled:s}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:w,children:[c&&vo(d,{className:"k-button-decrease",rounded:"full",icon:be,tabIndex:-1,title:"Decrease"}),An("div",{className:"k-slider-track-wrap",children:[b&&vo("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),An("div",{className:"k-slider-track",style:y,children:[vo("div",{className:"k-slider-selection"}),t==="range"&&vo("span",{className:n("k-draghandle","k-draghandle-start",M(Ta,{hover:C,focus:S,active:E})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":m??h,"aria-valuemin":h,"aria-valuemax":L??k,"aria-orientation":ue,"aria-disabled":s?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":Q["aria-label"]?`${Q["aria-label"]} start`:"Range start"}),vo("span",{className:n("k-draghandle",`k-draghandle-${l}`,M(Ta,{hover:C,focus:S,active:E})),role:"slider",tabIndex:s?void 0:0,"aria-valuenow":t==="range"?L??k:N,"aria-valuemin":t==="range"?m??h:h,"aria-valuemax":k,"aria-orientation":ue,"aria-disabled":s?"true":void 0,"aria-readonly":r?"true":void 0,"aria-label":t==="range"?Q["aria-label"]?`${Q["aria-label"]} end`:"Range end":Q["aria-label"]})]})]}),c&&vo(d,{className:"k-button-increase",rounded:"full",icon:fe,tabIndex:-1,title:"Increase"})]})};W.states=rm;W.options=nm;W.className=Ta;W.defaultOptions=je;W.moduleName=Sn;W.folderName=Ss;W.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 As}from"react/jsx-runtime";var Is="k-tick",im=[],sm={},ys={label:!1},O=e=>{let{style:t,label:o=ys.label,orientation:a,large:r,text:s,...l}=e;return As("li",{...l,role:"presentation",title:s||"Tick",className:n(e.className,Is,{[`k-tick-${a}`]:a,"k-tick-large":r}),style:t,children:o&&As("span",{className:"k-label",children:s})})};O.states=im;O.options=sm;O.className=Is;O.defaultOptions=ys;import{Fragment as lm,jsx as et,jsxs as dm}from"react/jsx-runtime";var Ts=e=>et(W,{"aria-label":e["aria-label"]||"Slider",children:dm(lm,{children:[et(O,{className:"k-first",label:!0,large:!0,text:"0"}),et(O,{}),et(O,{}),et(O,{}),et(O,{}),et(O,{label:!0,large:!0,text:"5"}),et(O,{}),et(O,{}),et(O,{}),et(O,{}),et(O,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as pm,jsx as tt,jsxs as cm}from"react/jsx-runtime";var Es=e=>tt(W,{children:cm(pm,{children:[tt(O,{className:"k-first",label:!0,large:!0,text:"0"}),tt(O,{}),tt(O,{}),tt(O,{}),tt(O,{}),tt(O,{label:!0,large:!0,text:"5"}),tt(O,{}),tt(O,{}),tt(O,{}),tt(O,{}),tt(O,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as KS,jsx as RS,jsxs as _S}from"react/jsx-runtime";import{Fragment as GS,jsx as FS,jsxs as US}from"react/jsx-runtime";import{jsx as mm}from"react/jsx-runtime";var In=e=>mm(W,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as um}from"react/jsx-runtime";var yn=e=>um(W,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as eA,jsx as jS,jsxs as tA}from"react/jsx-runtime";import{Fragment as iA,jsx as nA,jsxs as sA}from"react/jsx-runtime";import{jsx as kt,jsxs as Os}from"react/jsx-runtime";var fm=W.options,bm=W.states,Bs={...W.defaultOptions,variant:"horizontal",label:!0},hm=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],xm=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],Co=e=>{let{variant:t,modifiers:o,...a}=e,r=Bs.label,s={};Object.keys(o||{}).forEach(c=>{switch(c){case"button":{s.showButtons=!!o?.[c];break}case"label":{r=!!o?.[c];break}case"tick":{s.showTicks=!!o?.[c];break}}});let l={"--kendo-slider-start":0,"--kendo-slider-end":60};return t==="vertical"?Os(Es,{style:{height:"300px",...l},...a,...s,children:[kt(O,{label:r,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),kt(O,{label:r,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),kt(O,{label:r,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),kt(O,{label:r,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),kt(O,{label:r,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):Os(Ts,{style:{width:"400px",...l},...a,...s,children:[kt(O,{label:r,large:!0,orientation:"horizontal",text:"0",style:{position:"absolute",left:"0%"}}),kt(O,{label:r,large:!0,orientation:"horizontal",text:"2",style:{position:"absolute",left:"25%"}}),kt(O,{label:r,large:!0,orientation:"horizontal",text:"4",style:{position:"absolute",left:"50%"}}),kt(O,{label:r,large:!0,orientation:"horizontal",text:"6",style:{position:"absolute",left:"75%"}}),kt(O,{label:r,large:!0,orientation:"horizontal",text:"8",style:{position:"absolute",left:"100%"}})]})};Co.options=fm;Co.states=bm;Co.variants=hm;Co.defaultOptions=Bs;Co.modifiers=xm;Co.className=W.className;import{jsx as Ps,jsxs as Cm}from"react/jsx-runtime";var ws="k-spin-button",gm=[],vm={size:[p.undefined,p.small,p.medium,p.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Tn={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},Ht=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:r=Tn.increaseLabel,decreaseLabel:s=Tn.decreaseLabel,...l}=e;return Cm("span",{...l,className:n(ws,e.className),children:[Ps(d,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":r}),Ps(d,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":s})]})};Ht.states=gm;Ht.options=vm;Ht.className=ws;Ht.defaultOptions=Tn;Ht.moduleName=null;Ht.folderName=null;var Rs="numeric-textbox",Ks="numerictextbox";import{Fragment as _s,jsx as Lt,jsxs as En}from"react/jsx-runtime";var Ds="k-numerictextbox",Lm=[i.hover,i.focus,i.valid,i.invalid,i.loading,i.required,i.disabled,i.readonly],Mm={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},ir={showSpinButton:!0,showClearButton:!0,separators:!0},$=e=>{let{size:t,rounded:o,fillMode:a,separators:r=ir.separators,showClearButton:s=ir.showClearButton,showSpinButton:l=ir.showSpinButton,prefix:c,suffix:b,value:N,placeholder:h,hover:k,focus:m,valid:L,invalid:C,required:S,loading:E,disabled:y,readonly:w,id:Q,"aria-label":pe,"aria-describedby":ue,...fe}=e;return En(Z,{...fe,size:t,rounded:o,fillMode:a,hover:k,focus:m,valid:L,invalid:C,required:S,loading:E,disabled:y,readonly:w,className:n(e.className,Ds),children:[c&&En(_s,{children:[Lt(He,{children:c}),r&&Lt(Se,{})]}),Lt($e,{id:Q,placeholder:h,value:N,role:"spinbutton",disabled:y,"aria-label":pe,"aria-describedby":ue,"aria-invalid":C?"true":void 0}),Lt(Me,{valid:L,invalid:C,loading:E,disabled:y}),Lt(De,{loading:E,disabled:y}),s&&Lt(Ve,{loading:E,disabled:y,readonly:w,value:N}),b&&En(_s,{children:[r&&Lt(Se,{}),Lt(ze,{children:b})]}),l&&Lt(Ht,{className:"k-input-spinner",size:t,fillMode:a,disabled:y})]})};$.states=Lm;$.options=Mm;$.className=Ds;$.defaultOptions=ir;$.moduleName=Rs;$.folderName=Ks;$.ariaSpec={selector:".k-numerictextbox",rules:[{selector:".k-numerictextbox > .k-input-inner",attribute:"role=spinbutton",usage:"Announces the spin button capabilities of the NumericTextBox."},{selector:".k-numerictextbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuenow (when has value)",usage:"Announces the current value of the component."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuemin (when has min)",usage:"Announces the minimum allowed value."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-valuemax (when has max)",usage:"Announces the maximum allowed value."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the NumericTextBox is in an invalid state."},{selector:".k-numerictextbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message."},{selector:".k-numerictextbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the NumericTextBox is disabled."},{selector:".k-numerictextbox .k-spin-button > .k-button",attribute:"role=button or nodeName=button",usage:"Describes the role of the spin buttons."},{selector:".k-numerictextbox .k-spin-button > .k-button",attribute:"aria-label",usage:"The button element requires discernible text."},{selector:".k-numerictextbox.k-disabled .k-spin-button > .k-button",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the NumericTextBox is disabled."}]};var Ea=$;import{jsx as Sm}from"react/jsx-runtime";var Hs=e=>Sm(Ea,{...e});import Bn from"react";import{jsx as zs}from"react/jsx-runtime";var Am="k-list-group-sticky-header",On=e=>zs("div",{className:n(Am,e.className),children:zs("div",{className:"k-list-header-text",children:e.children})});import{jsx as ym}from"react/jsx-runtime";var Im="k-no-data",sr=e=>{let{live:t,...o}=e;return ym("span",{...o,className:n(Im,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Qt="list",Lo=Qt;import{jsx as Fs,jsxs as Gs}from"react/jsx-runtime";var Pn="k-list",Tm=[],Em={size:[p.undefined,p.small,p.medium,p.large]},Om={},H=e=>{let{size:t,virtualization:o,children:a,header:r,selectAll:s,optionLabel:l,customValue:c,noData:b,screenReaders:N,...h}=e,m=Bn.Children.toArray(a)[0],L=m?.props?.children?Bn.Children.count(m.props.children):Bn.Children.count(a);return Gs("div",{...h,className:n(e.className,Pn,I(Pn,{size:t}),{"k-virtual-list":o}),children:[l,s,c,r&&Fs(On,{children:r}),a||(b!==void 0?b:Fs(sr,{live:!0,children:"No data found."})),N&&a&&Gs(sr,{className:"k-sr-only",live:!0,children:[L," items found."]})]})};H.states=Tm;H.options=Em;H.className=Pn;H.defaultOptions=Om;H.moduleName=Qt;H.folderName=Lo;H.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};import{jsx as Rm}from"react/jsx-runtime";var Us="k-list-container",Bm=[],Pm={},wm={},Mo=e=>{let{...t}=e;return Rm("div",{...t,className:n(e.className,Us),children:e.children})};Mo.states=Bm;Mo.options=Pm;Mo.className=Us;Mo.defaultOptions=wm;Mo.moduleName=Qt;Mo.folderName=Lo;var Zt="checkbox",So=Zt;import{jsx as Vs}from"react/jsx-runtime";var lr="k-checkbox",Km=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.checked,i.indeterminate],_m={size:[p.undefined,p.small,p.medium,p.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full]},Dm={},Fe=e=>{let{id:t,checked:o,indeterminate:a,hover:r,focus:s,disabled:l,invalid:c,valid:b,required:N,size:h,rounded:k,wrapperRole:m,...L}=e;return Vs("span",{className:"k-checkbox-wrap",role:m,children:Vs("input",{...L,id:t,type:"checkbox",defaultChecked:o,required:N,disabled:l||void 0,"aria-invalid":c?"true":void 0,className:n(e.className,lr,I(lr,{size:h,rounded:k}),M(lr,{hover:r,focus:s,disabled:l,invalid:c,valid:b,indeterminate:a,checked:o}))})})};Fe.states=Km;Fe.options=_m;Fe.className=lr;Fe.defaultOptions=Dm;Fe.moduleName=Zt;Fe.folderName=So;Fe.ariaSpec={selector:".k-checkbox",rules:[{selector:".k-checkbox",attribute:"role=checkbox or type=checkbox",usage:"Announces the checkbox role of the element."},{selector:".k-checkbox",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name to which it will be assigned."},{selector:".k-checkbox",attribute:"aria-checked=true/false/mixed or checked",usage:"For native checkboxes the checked state is handled by the browser. aria-checked is used for custom implementations."},{selector:".k-checkbox",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the checkbox."},{selector:".k-checkbox",attribute:"disabled or aria-disabled=true (when disabled)",usage:"For native checkboxes use the HTML disabled attribute. aria-disabled for custom implementations."},{selector:".k-invalid, .ng-invalid",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the CheckBox is in a form and announces the invalid state."}]};var ct=Fe;import{jsx as Fm}from"react/jsx-runtime";var $s="k-checkbox-list",Hm=[],zm={},Xs={layout:"vertical"},Ie=e=>{let{layout:t=Xs.layout,...o}=e;return Fm("ul",{...o,className:n(e.className,$s,{[`k-list-${t}`]:t}),children:e.children})};Ie.states=Hm;Ie.options=zm;Ie.className=$s;Ie.defaultOptions=Xs;Ie.moduleName=Zt;Ie.folderName=So;import{jsx as $m}from"react/jsx-runtime";var qs="k-checkbox-list-item",Gm=[],Um={},Vm={},ye=e=>{let{...t}=e;return $m("li",{...t,className:n(e.className,qs),children:e.children})};ye.states=Gm;ye.options=Um;ye.className=qs;ye.defaultOptions=Vm;ye.moduleName=Zt;ye.folderName=So;import{Fragment as Xm,jsx as Ws,jsxs as qm}from"react/jsx-runtime";var Mt=({children:e="Label",id:t="cb-label-after",...o})=>qm(Xm,{children:[Ws(ct,{id:t,...o}),Ws("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as OI,jsx as EI,jsxs as BI}from"react/jsx-runtime";import{Fragment as _I,jsx as KI,jsxs as DI}from"react/jsx-runtime";import{Fragment as UI,jsx as GI,jsxs as VI}from"react/jsx-runtime";import{jsx as WI}from"react/jsx-runtime";import{jsx as ZI}from"react/jsx-runtime";import{jsx as oy}from"react/jsx-runtime";import{jsx as ot,jsxs as Js}from"react/jsx-runtime";var Wm=Ie.options,Jm=Ie.states,Ym={...Ie.defaultOptions,variant:"vertical"},Qm=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Zm=[],Ao=e=>{let{variant:t,...o}=e;return t==="horizontal"?Js(Ie,{layout:"horizontal",...o,children:[ot(ye,{children:ot(Mt,{id:T("cb"),defaultChecked:!0,children:"Label"})}),ot(ye,{children:ot(Mt,{id:T("cb"),children:"Label"})}),ot(ye,{children:ot(Mt,{id:T("cb"),children:"Label"})})]}):Js(Ie,{...o,children:[ot(ye,{children:ot(Mt,{id:T("cb"),defaultChecked:!0,children:"Label"})}),ot(ye,{children:ot(Mt,{id:T("cb"),children:"Label"})}),ot(ye,{children:ot(Mt,{id:T("cb"),children:"Label"})})]})};Ao.options=Wm;Ao.states=Jm;Ao.variants=Qm;Ao.defaultOptions=Ym;Ao.modifiers=Zm;Ao.className=Ie.className;import{jsx as ru}from"react/jsx-runtime";var jm=ct.options,eu=ct.states,tu=ct.defaultOptions,ou=[],au=[],Io=e=>ru(Mt,{id:T("checkbox"),...e,defaultChecked:!0,children:"Label"});Io.options=jm;Io.states=eu;Io.variants=ou;Io.defaultOptions=tu;Io.modifiers=au;Io.className=ct.className;import{jsx as jt,jsxs as lu}from"react/jsx-runtime";var wn="k-list-item",nu=[i.hover,i.focus,i.selected,i.disabled],iu={},su={},P=e=>{let{text:t,groupLabel:o,group:a,iconName:r,iconClassName:s,showCheckbox:l,checked:c,hover:b,focus:N,selected:h,disabled:k,actions:m,description:L,id:C,...S}=e,E=t||e.children;return lu("li",{...S,id:C,role:a?"presentation":"option",tabIndex:a?void 0:N?0:-1,"aria-selected":!a&&h?"true":a?void 0:"false","aria-disabled":!a&&k?"true":void 0,className:n(e.className,a?"k-list-group-item":wn,M(wn,{hover:b,focus:N,disabled:k,selected:h})),children:[l&&jt(Fe,{checked:c}),r&&jt("span",{className:"k-list-item-icon-wrapper",children:jt(v,{icon:r,className:n("k-list-item-icon",s)})}),jt("span",{className:"k-list-item-text",children:E}),m&&jt("div",{className:"k-list-item-actions",children:m}),L&&jt("span",{className:"k-list-item-description",children:L}),o&&o!==""&&jt("div",{className:"k-list-item-group-label",children:o})]})};P.states=nu;P.options=iu;P.className=wn;P.defaultOptions=su;P.moduleName=Qt;P.folderName=Lo;P.ariaSpec={selector:".k-list-item",rules:[{selector:".k-list-item",attribute:"role=option",usage:"Each list item is an option in the listbox."},{selector:".k-list-item",attribute:"id",usage:"ID for aria-activedescendant reference."},{selector:".k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state of the option."},{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-item-icon",attribute:"aria-hidden=true",usage:"Decorative i