@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 53 kB
JavaScript
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 A=(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"}),y=(e,t)=>{let{valid:o,invalid:a,hover:i,focus:l,checked:p,active:d,selected:c,disabled:u,indeterminate:b,loading:N,empty:g,readonly:k,highlighted:O,...T}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":i,"k-focus":l,"k-checked":p,"k-active":d,"k-selected":c,"k-disabled":u,"k-indeterminate":b&&!p,"k-loading":N,"k-empty":g,"k-readonly":k,"k-highlighted":O},Object.keys(T).reduce((L,I)=>(I.startsWith("k-")?L[I]=T[I]:L[`k-${I}`]=T[I],L),{}))};function So(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},m={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"},oe={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"},s={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 kt={};function M(e){return kt[e]=(kt[e]||0)+1,`k-${e}-${kt[e]}`}import{Fragment as Ji,jsx as Ao}from"react/jsx-runtime";var St="k-font-icon",$i=[],qi={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info]},Wi={},$e=e=>{let{size:t,themeColor:o,icon:a,rotate:i,flip:l,...p}=e;return a?Ao("span",{...p,className:n(e.className,St,A(St,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true"}):Ao(Ji,{})};$e.states=$i;$e.options=qi;$e.className=St;$e.defaultOptions=Wi;var Eo=$e;import{Fragment as Zi,jsx as at}from"react/jsx-runtime";var At="k-svg-icon",Yi=[],Qi={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[oe.outline,oe.solid,oe.duotone]},Et={viewBox:"0 0 24 24",variant:oe.outline},qe=e=>{let{size:t,themeColor:o,rotate:a,flip:i,viewBox:l=Et.viewBox,variant:p=Et.variant,icon:d,...c}=e;if(!d)return at(Zi,{});if(d==="none")return at("span",{...c,className:n(e.className,At,A("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let u=typeof d=="object"&&d.name&&d.name,b=typeof d=="object"?p&&d.variants?.[p]||d.variants?.outline||d.content:void 0;return at("span",{...c,className:n(e.className,At,A("k-icon",{size:t}),{[`k-svg-i-${u}`]:u,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:at("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:l,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:d?void 0:e.children})})};qe.states=Yi;qe.options=Qi;qe.className=At;qe.defaultOptions=Et;var Mt=qe;import*as Ct from"@progress/kendo-svg-icons";var Mo="icon",Co="icons";import{useContext as en}from"react";import{createContext as ji}from"react";var To=ji({iconsType:"svg"});import{Fragment as yo,jsx as We}from"react/jsx-runtime";var st="k-icon",tn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),on=[],nn={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[oe.outline,oe.solid,oe.duotone]},rt={viewBox:"0 0 24 24",type:"svg",variant:oe.outline},v=e=>{let{iconsType:t}=en(To),{size:o,themeColor:a,icon:i,type:l=t||rt.type,rotate:p,flip:d,viewBox:c=rt.viewBox,variant:u=rt.variant,...b}=e;if(!i)return We(yo,{});if((t||l)==="svg"){if(i==="none")return We(Mt,{...b,className:n(e.className,st),icon:i,size:o,variant:u});let g=Ct[i]?i:tn(`${i}-icon`);return Ct[g]?We(Mt,{...b,className:n(e.className,st),icon:Ct[g],size:o,themeColor:a,rotate:p,flip:d,viewBox:c,variant:u}):We(yo,{})}return We(Eo,{...b,className:n(e.className,st),icon:i,size:o,themeColor:a,rotate:p,flip:d})};v.states=on;v.options=nn;v.defaultOptions=rt;v.className=st;v.moduleName=Mo;v.folderName=Co;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 Tt="button",Oo=Tt;import{Fragment as Po,jsx as Ee,jsxs as Ro}from"react/jsx-runtime";var Je="k-button",an=["icon-button"],sn=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],rn={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.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]},yt={showArrow:!1,arrowIconName:"chevron-down"},h=e=>{let{as:t="button",size:o,rounded:a,fillMode:i,themeColor:l,showArrow:p=yt.showArrow,arrowIconName:d=yt.arrowIconName,variant:c,hover:u,focus:b,active:N,selected:g,disabled:k,togglable:O,ariaDisabled:T,icon:L,iconSize:I,text:P,iconClassName:Q,className:E,...Le}=e,ge=L!=null,Ge=e.children!==void 0;return Ro(t,{className:n(E,Je,So(Je,c),A(Je,{size:o,rounded:a,fillMode:i,themeColor:l}),y(Je,{hover:u,focus:b,active:N,disabled:k||T,selected:g}),{"k-icon-button":!P&&!Ge&&ge}),"aria-pressed":O?g?"true":"false":void 0,...Le,"aria-disabled":T?"true":void 0,disabled:k||void 0,children:[typeof L=="string"&&L&&Ee(v,{className:n(Q,"k-button-icon"),icon:L,size:I}),L&&typeof L!="string"&&Ee(Po,{children:L}),P?Ro(Po,{children:[P&&Ee("span",{className:"k-button-text",children:P}),e.children]}):e.children&&Ee("span",{className:"k-button-text",children:e.children}),p&&Ee("span",{className:"k-menu-button-arrow k-button-arrow",children:Ee(v,{icon:d})})]})};h.states=sn;h.options=rn;h.variants=an;h.className=Je;h.defaultOptions=yt;h.moduleName=Tt;h.folderName=Oo;h.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 ln}from"react/jsx-runtime";var wo=e=>ln(h,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as dn}from"react/jsx-runtime";var Ko=e=>dn(h,{icon:"folder",children:"Button",...e});import{jsx as pn}from"react/jsx-runtime";var ve=e=>pn(h,{children:"Button",...e});import{jsx as Ot}from"react/jsx-runtime";var cn=h.options,mn=h.states,un={...h.defaultOptions,variant:"text"},fn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],bn=[],Me=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Ot(wo,{...o,icon:"star"});case"icon-and-text":return Ot(Ko,{...o,icon:"star",children:"Button"});default:return Ot(ve,{...o,children:"Button"})}};Me.options=cn;Me.states=mn;Me.variants=fn;Me.defaultOptions=un;Me.modifiers=bn;Me.className=h.className;var Ye="input",lt=Ye;import{jsx as Ln}from"react/jsx-runtime";var dt="k-input",xn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],hn={size:[r.undefined,r.small,r.medium,r.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Nn={},w=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:l,loading:p,readonly:d,size:c,rounded:u,fillMode:b,...N}=e;return Ln("span",{...N,className:n(e.className,dt,A(dt,{size:c,rounded:u,fillMode:b}),y(dt,{hover:t,focus:o,disabled:a,invalid:i,valid:l,loading:p,readonly:d}))})};w.states=xn;w.options=hn;w.className=dt;w.defaultOptions=Nn;w.moduleName=Ye;w.folderName=lt;import{jsx as kn}from"react/jsx-runtime";var pt="k-picker",gn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],vn={size:[r.undefined,r.small,r.medium,r.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},In={},de=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:l,loading:p,readonly:d,size:c,rounded:u,fillMode:b,...N}=e;return kn("span",{...N,className:n(e.className,pt,A(pt,{size:c,rounded:u,fillMode:b}),y(pt,{hover:t,focus:o,disabled:a,invalid:i,valid:l,loading:p,readonly:d})),children:e.children})};de.states=gn;de.options=vn;de.className=pt;de.defaultOptions=In;de.moduleName=Ye;de.folderName=lt;import{Fragment as En,jsx as Pt}from"react/jsx-runtime";var _o="k-clear-value",Sn=[s.disabled,s.loading,s.readonly],An={},Z=e=>{let{disabled:t,loading:o,readonly:a,value:i}=e;return t||a||o||!i?Pt(En,{}):Pt("span",{className:n(e.className,_o),children:Pt(v,{icon:"x"})})};Z.states=Sn;Z.options=An;Z.className=_o;import{jsx as Tn}from"react/jsx-runtime";var Rt="k-input-inner",Mn=[],Cn={},ct={type:"text",autocomplete:"off",value:"",placeholder:""},j=e=>{let{value:t=ct.value,type:o=ct.type,placeholder:a=ct.placeholder,autocomplete:i=ct.autocomplete,disabled:l,readOnly:p,...d}=e;return Tn("input",{...d,type:o,className:n(e.className,Rt,A(Rt,e)),placeholder:a,autoComplete:i,defaultValue:t,disabled:l||void 0,readOnly:p||void 0})};j.states=Mn;j.options=Cn;j.className=Rt;import{jsx as Do,jsxs as Pn}from"react/jsx-runtime";var wt="k-input-inner",yn=[],On={},Qe=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:i,valueIconName:l,...p}=e;return Pn("span",{...p,className:n(e.className,wt,A(wt,e)),children:[i,!i&&l&&Do(v,{className:"k-input-value-icon",icon:l}),a&&!t&&o,a&&t&&Do("span",{className:"k-input-value-text",children:t})]})};Qe.states=yn;Qe.options=On;Qe.className=wt;import{jsx as Kn}from"react/jsx-runtime";var Kt="k-input-inner",Rn=[],wn={},Ho={value:"",placeholder:""},_t=e=>{let{value:t=Ho.value,placeholder:o=Ho.placeholder,rows:a,disabled:i,...l}=e;return Kn("textarea",{...l,className:n(e.className,Kt,A(Kt,e)),placeholder:o,rows:a,defaultValue:t,disabled:i||void 0})};_t.states=Rn;_t.options=wn;_t.className=Kt;import{Fragment as Dn,jsx as zo}from"react/jsx-runtime";var Bo="k-input-loading-icon",_n=[s.disabled,s.loading],W=e=>{let{disabled:t,loading:o}=e;return t||!o?zo(Dn,{}):zo("span",{className:n(e.className,Bo,"k-icon k-i-loading")})};W.states=_n;W.className=Bo;import{Fragment as Bn,jsx as Uo}from"react/jsx-runtime";var Fo="k-input-validation-icon",Hn=[s.valid,s.invalid,s.disabled,s.loading],zn={},$=e=>{let{valid:t,invalid:o,disabled:a,loading:i}=e,l=o?"warning-circle":"check-circle";return a||i||!!!(t||o)?Uo(Bn,{}):Uo(v,{className:n(Fo),icon:l})};$.states=Hn;$.options=zn;$.className=Fo;import{Fragment as Vn,jsx as Vo}from"react/jsx-runtime";var Un="k-input-prefix",Fn={direction:"horizontal"},pe=e=>{let{direction:t=Fn.direction,...o}=e;return e.children?Vo("span",{...o,className:n(Un,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Vo(Vn,{})};import{Fragment as $n,jsx as Go}from"react/jsx-runtime";var Gn="k-input-suffix",Xn={direction:"horizontal"},ce=e=>{let{direction:t=Xn.direction,...o}=e;return e.children?Go("span",{...o,className:n(Gn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Go($n,{})};import{jsx as cd}from"react/jsx-runtime";import{jsx as Wn}from"react/jsx-runtime";var qn="k-input-suffix-text",Dt=e=>{let{children:t,...o}=e;return Wn("span",{...o,className:n(qn,e.className),children:t})};import{jsx as Yn}from"react/jsx-runtime";var Xo="k-input-separator",Jn={direction:"vertical"},ae=e=>{let{direction:t=Jn.direction,...o}=e;return Yn("span",{...o,className:n(Xo,e.className,{[`${Xo}-${t}`]:t})})};import{Fragment as $o,jsx as ie,jsxs as Ht}from"react/jsx-runtime";var Qn=w.states,Zn=w.defaultOptions,jn=w.options,ea=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],ta=[],Ce=e=>{let{modifiers:t,valid:o,invalid:a,loading:i,disabled:l,readonly:p,...d}=e,c=t?.prefix,u=t?.suffix,b=t?.["clear-button"],N=t?.["validation-icon"],g=t?.separators;return Ht(w,{...d,valid:o,invalid:a,loading:i,disabled:l,readonly:p,style:{width:300},children:[c&&Ht($o,{children:[ie(pe,{children:ie(v,{icon:"lock"})}),g&&ie(ae,{})]}),ie(j,{placeholder:"Placeholder",value:"Value"}),N&&ie($,{valid:o,invalid:a,loading:i,disabled:l}),ie(W,{loading:i,disabled:l}),b&&ie(Z,{loading:i,disabled:l,readonly:p,value:"Value"}),u&&Ht($o,{children:[g&&ie(ae,{}),ie(ce,{children:ie(ve,{size:d.size,fillMode:"clear",children:"Send"})})]})]})};Ce.options=jn;Ce.states=Qn;Ce.variants=ta;Ce.defaultOptions=Zn;Ce.modifiers=ea;Ce.className=w.className;var zt="popup",qo=zt;import{jsx as Wo}from"react/jsx-runtime";var Jo="k-animation-container",oa=[],ia={},Bt={positionMode:"absolute",shown:!0},ne=e=>{let{positionMode:t=Bt.positionMode,shown:o=Bt.shown,animationStyle:a,offset:i,...l}=e;return Wo("div",{...l,style:{...i,...e.style},className:n(e.className,Jo,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Wo("div",{className:"k-child-animation-container",style:a,children:e.children})})};ne.states=oa;ne.options=ia;ne.className=Jo;ne.defaultOptions=Bt;ne.moduleName=zt;ne.folderName=qo;var Ut="popup",Yo=Ut;import{jsx as Qo}from"react/jsx-runtime";var Zo="k-popup",na=[],aa={},jo={positionMode:"absolute"},se=e=>{let{offset:t,positionMode:o=jo.positionMode,animationStyle:a,containerClassName:i,containerRole:l,containerAriaLabel:p,...d}=e;return Qo(ne,{positionMode:o,offset:t,animationStyle:a,className:i,role:l,"aria-label":p,children:Qo("div",{...d,className:n(e.className,Zo),children:e.children})})};se.states=na;se.options=aa;se.className=Zo;se.defaultOptions=jo;se.moduleName=Ut;se.folderName=Yo;se.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 Ft="action-buttons",ei=Ft;import{jsx as la}from"react/jsx-runtime";var mt="k-actions",sa=[],ra={},Vt={alignment:"start",orientation:"horizontal"},me=e=>{let{alignment:t=Vt.alignment,orientation:o=Vt.orientation,...a}=e;return la("div",{...a,className:n(mt,{[`${mt}-${t}`]:t,[`${mt}-${o}`]:o},e.className),children:e.children})};me.states=sa;me.options=ra;me.className=mt;me.defaultOptions=Vt;me.moduleName=Ft;me.folderName=ei;import{jsx as pa}from"react/jsx-runtime";var da="k-actionsheet-footer",ti={alignment:"stretched",orientation:"horizontal"},Te=e=>{let{alignment:t=ti.alignment,orientation:o=ti.orientation,template:a,as:i=a?"div":me,...l}=e;return pa(i,{...l,...!a&&{alignment:t,orientation:o},className:n(e.className,da),children:e.children})};var Gt="searchbox",oi=Gt;import{jsx as Ze,jsxs as ua}from"react/jsx-runtime";var ii="k-searchbox",ca=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],ma={size:[r.undefined,r.small,r.medium,r.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Xt={showIcon:!0,icon:"search"},J=e=>{let{value:t,placeholder:o,size:a,rounded:i,fillMode:l,hover:p,focus:d,valid:c,invalid:u,required:b,loading:N,disabled:g,showIcon:k=Xt.showIcon,icon:O=Xt.icon,"aria-label":T,...L}=e;return ua(w,{...L,size:a,rounded:i,fillMode:l,hover:p,focus:d,valid:c,invalid:u,required:b,loading:N,disabled:g,className:n(e.className,ii),children:[k&&Ze(v,{className:"k-input-icon",icon:O}),Ze(j,{placeholder:o,value:t,"aria-label":T}),Ze(W,{...e}),Ze($,{...e}),Ze(Z,{...e})]})};J.states=ca;J.options=ma;J.className=ii;J.defaultOptions=Xt;J.moduleName=Gt;J.folderName=oi;import{jsx as yp}from"react/jsx-runtime";var $t="textbox",ni=$t;import{Fragment as ai,jsx as ue,jsxs as qt}from"react/jsx-runtime";var si="k-textbox",fa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],ba={size:[r.undefined,r.small,r.medium,r.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},ut={showClearButton:!0,showValidationIcon:!0,separators:!0},H=e=>{let{size:t,rounded:o,fillMode:a,separators:i=ut.separators,showClearButton:l=ut.showClearButton,showValidationIcon:p=ut.showValidationIcon,prefix:d,suffix:c,type:u,value:b,placeholder:N,hover:g,focus:k,valid:O,invalid:T,required:L,loading:I,disabled:P,readonly:Q,id:E,"aria-label":Le,"aria-describedby":ge,...Ge}=e;return qt(w,{...Ge,size:t,rounded:o,fillMode:a,hover:g,focus:k,valid:O,invalid:T,required:L,loading:I,disabled:P,readonly:Q,className:n(e.className,si),children:[d&&qt(ai,{children:[ue(pe,{children:d}),i&&ue(ae,{})]}),ue(j,{id:E,placeholder:N,value:b,type:u,disabled:P,"aria-label":Le,"aria-describedby":ge,"aria-invalid":T?"true":void 0}),p&&ue($,{valid:O,invalid:T,loading:I,disabled:P}),ue(W,{loading:I,disabled:P}),l&&ue(Z,{loading:I,disabled:P,readonly:Q,value:b}),c&&qt(ai,{children:[i&&ue(ae,{}),ue(ce,{children:c})]})]})};H.states=fa;H.options=ba;H.className=si;H.defaultOptions=ut;H.moduleName=$t;H.folderName=ni;H.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 je=H;import{jsx as xa}from"react/jsx-runtime";var ri=e=>xa(je,{...e});import{Fragment as Wp,jsx as qp}from"react/jsx-runtime";import{Fragment as ec,jsx as jp}from"react/jsx-runtime";import{jsx as nc}from"react/jsx-runtime";import{jsx as Wt}from"react/jsx-runtime";var ha=H.states,Na=H.defaultOptions,La=H.options,ga=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],va=[],ye=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":a.prefix=t?.[i]?Wt(v,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[i]?Wt(ve,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[i];break;default:break}}),Wt(ri,{value:"Value",style:{width:300},...o,...a})};ye.options=La;ye.states=ha;ye.variants=va;ye.defaultOptions=Na;ye.modifiers=ga;ye.className=H.className;import{jsx as fe,jsxs as Jt}from"react/jsx-runtime";var li="k-actionsheet-titlebar",Ia={},ee=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:i,filter:l,input:p,inputValue:d,inputPlaceholder:c,adaptive:u,titleId:b,children:N,...g}=e;return Jt("div",{...g,className:n(e.className,li),children:[Jt("div",{className:"k-actionsheet-titlebar-group",children:[a&&fe("div",{className:"k-actionsheet-actions",children:a}),!N&&Jt("div",{className:"k-actionsheet-title",id:b,children:[t&&fe("div",{className:"k-text-center",children:t}),o&&fe("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&fe("div",{className:"k-actionsheet-title",id:b,children:N}),i&&fe("div",{className:"k-actionsheet-actions",children:i})]}),(p||l)&&fe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?fe(H,{value:d,placeholder:c,size:u?"large":"medium","aria-label":t||c||"Input"}):fe(J,{placeholder:"Filter",size:u?"large":"medium","aria-label":"Filter options"})})]})};ee.className=li;ee.defaultOptions=Ia;import{jsx as Yt,jsxs as Ea}from"react/jsx-runtime";var Qt="k-actionsheet-view",ka=[],Sa={},Aa={},Oe=e=>{let{adaptive:t,animated:o,children:a,header:i,footer:l,titleId:p,...d}=e,c=i?.type===ee&&Yt(ee,{adaptive:t,titleId:p,...i?.props}),u=l?.type===Te&&Yt(Te,{...l?.props});return Ea("div",{...d,className:n(e.className,Qt,{[`${Qt}-animated`]:o}),children:[c,Yt("div",{className:"k-actionsheet-content",children:a}),u]})};Oe.states=ka;Oe.options=Sa;Oe.className=Qt;Oe.defaultOptions=Aa;var et="action-sheet",ft=et;var Zt="overlay",di=Zt;import{jsx as ya}from"react/jsx-runtime";var pi="k-overlay",Ma=[],Ca={},Ta={},be=e=>{let{...t}=e;return ya("div",{...t,className:n(e.className,pi),children:e.children})};be.states=Ma;be.options=Ca;be.className=pi;be.defaultOptions=Ta;be.moduleName=Zt;be.folderName=di;import{jsx as bt,jsxs as Ra}from"react/jsx-runtime";var ci="k-actionsheet",Oa=[],Pa={},tt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},_=e=>{let{side:t=tt.side,fullscreen:o=tt.fullscreen,adaptive:a=tt.adaptive,overlay:i=tt.overlay,template:l,children:p,header:d,footer:c,id:u,...b}=e,N=u&&!l&&d?`${u}-title`:void 0;return Ra("div",{className:"k-actionsheet-container",children:[i&&bt(be,{}),bt(ne,{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:bt("div",{...b,id:u,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":N,className:n(e.className,ci,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:l||bt(Oe,{header:d,footer:c,adaptive:a,titleId:N,...e,children:p})})})]})};_.states=Oa;_.options=Pa;_.className=ci;_.defaultOptions=tt;_.moduleName=et;_.folderName=ft;_.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 Da}from"react/jsx-runtime";var mi="k-actionsheet-container",wa=[],Ka={},_a={},Pe=e=>{let{children:t,...o}=e;return Da("div",{...o,className:mi,children:t})};Pe.states=wa;Pe.options=Ka;Pe.className=mi;Pe.defaultOptions=_a;Pe.moduleName=et;Pe.folderName=ft;import{jsx as Ha}from"react/jsx-runtime";var jt=e=>{let{...t}=e;return Ha("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as Ba,jsx as ot,jsxs as eo}from"react/jsx-runtime";var to="k-actionsheet-item",za=[s.hover,s.focus,s.selected,s.disabled],xe=e=>{let{iconName:t,text:o,description:a,hover:i,focus:l,selected:p,disabled:d,...c}=e;return eo("span",{...c,className:n(e.className,to,y(to,{hover:i,focus:l,selected:p,disabled:d})),children:[!e.children&&ot(Ba,{children:eo("span",{className:"k-actionsheet-action",children:[t&&ot("span",{className:"k-icon-wrap",children:ot(v,{className:"k-actionsheet-item-icon",icon:t})}),eo("span",{className:"k-actionsheet-item-text",children:[o&&ot("span",{className:"k-actionsheet-item-title",children:o}),a&&ot("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};xe.states=za;xe.className=to;import{jsx as im,jsxs as nm}from"react/jsx-runtime";import{jsx as lm}from"react/jsx-runtime";import{jsx as mm}from"react/jsx-runtime";import{jsx as xm}from"react/jsx-runtime";import{jsx as D,jsxs as oo}from"react/jsx-runtime";var Ua=_.options,Fa=_.states,fi={..._.defaultOptions,variant:"normal"},Va=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Ga=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Re=e=>{let{variant:t,modifiers:o,...a}={...fi,...e},i={},l=oo(jt,{children:[D(xe,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),D(xe,{text:"Add to Favorites",iconName:"heart"}),D(xe,{text:"Upload New",iconName:"upload",disabled:!0}),D("hr",{className:"k-hr"}),D(xe,{text:"Cancel",iconName:"cancel"})]}),p="Choose from the items below",d="Select Item";return t==="fullScreen"&&(i.fullScreen=!0),Object.keys(o||{}).forEach(c=>{switch(c){case"actions":i.actionsStart=!!o?.[c],i.actionsEnd=!!o?.[c];break;case"subtitle":i.subtitle=o?.[c]?p:void 0;break;case"footer":i.footer=!!o?.[c];break;default:break}}),t==="adaptive"?D(_,{...a,adaptive:!0,fullscreen:i.fullScreen,header:D(ee,{actionsStart:i.actionsStart?D(h,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?D(h,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:d,subtitle:i.subtitle}),footer:i.footer?oo(Te,{alignment:"stretched",children:[D(h,{text:"Cancel",size:"large",themeColor:"base"}),D(h,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:l}):D(_,{...a,fullscreen:i.fullScreen,header:D(ee,{actionsStart:i.actionsStart?D(h,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?D(h,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:i.subtitle}),footer:i.footer?oo(Te,{alignment:"stretched",children:[D(h,{text:"Apply",themeColor:"primary"}),D(h,{text:"Cancel",themeColor:"base"})]}):void 0,children:l})};Re.options=Ua;Re.states=Fa;Re.variants=Va;Re.defaultOptions=fi;Re.modifiers=Ga;Re.className=_.className;import ao from"react";import{jsx as bi}from"react/jsx-runtime";var Xa="k-list-group-sticky-header",io=e=>bi("div",{className:n(Xa,e.className),children:bi("div",{className:"k-list-header-text",children:e.children})});import{jsx as qa}from"react/jsx-runtime";var $a="k-no-data",no=e=>{let{live:t,...o}=e;return qa("span",{...o,className:n($a,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Ie="list",we=Ie;import{jsx as xi,jsxs as hi}from"react/jsx-runtime";var so="k-list",Wa=[],Ja={size:[r.undefined,r.small,r.medium,r.large]},Ya={},C=e=>{let{size:t,virtualization:o,children:a,header:i,selectAll:l,optionLabel:p,customValue:d,noData:c,screenReaders:u,...b}=e,g=ao.Children.toArray(a)[0],k=g?.props?.children?ao.Children.count(g.props.children):ao.Children.count(a);return hi("div",{...b,className:n(e.className,so,A(so,{size:t}),{"k-virtual-list":o}),children:[p,l,d,i&&xi(io,{children:i}),a||(c!==void 0?c:xi(no,{live:!0,children:"No data found."})),u&&a&&hi(no,{className:"k-sr-only",live:!0,children:[k," items found."]})]})};C.states=Wa;C.options=Ja;C.className=so;C.defaultOptions=Ya;C.moduleName=Ie;C.folderName=we;C.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 es}from"react/jsx-runtime";var Ni="k-list-container",Qa=[],Za={},ja={},Ke=e=>{let{...t}=e;return es("div",{...t,className:n(e.className,Ni),children:e.children})};Ke.states=Qa;Ke.options=Za;Ke.className=Ni;Ke.defaultOptions=ja;Ke.moduleName=Ie;Ke.folderName=we;var ke="checkbox",_e=ke;import{jsx as Li}from"react/jsx-runtime";var xt="k-checkbox",ts=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],os={size:[r.undefined,r.small,r.medium,r.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full]},is={},G=e=>{let{id:t,checked:o,indeterminate:a,hover:i,focus:l,disabled:p,invalid:d,valid:c,required:u,size:b,rounded:N,wrapperRole:g,...k}=e;return Li("span",{className:"k-checkbox-wrap",role:g,children:Li("input",{...k,id:t,type:"checkbox",defaultChecked:o,required:u,disabled:p||void 0,"aria-invalid":d?"true":void 0,className:n(e.className,xt,A(xt,{size:b,rounded:N}),y(xt,{hover:i,focus:l,disabled:p,invalid:d,valid:c,indeterminate:a,checked:o}))})})};G.states=ts;G.options=os;G.className=xt;G.defaultOptions=is;G.moduleName=ke;G.folderName=_e;G.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 te=G;import{jsx as ss}from"react/jsx-runtime";var gi="k-checkbox-list",ns=[],as={},vi={layout:"vertical"},z=e=>{let{layout:t=vi.layout,...o}=e;return ss("ul",{...o,className:n(e.className,gi,{[`k-list-${t}`]:t}),children:e.children})};z.states=ns;z.options=as;z.className=gi;z.defaultOptions=vi;z.moduleName=ke;z.folderName=_e;import{jsx as ps}from"react/jsx-runtime";var Ii="k-checkbox-list-item",rs=[],ls={},ds={},B=e=>{let{...t}=e;return ps("li",{...t,className:n(e.className,Ii),children:e.children})};B.states=rs;B.options=ls;B.className=Ii;B.defaultOptions=ds;B.moduleName=ke;B.folderName=_e;import{Fragment as cs,jsx as ki,jsxs as ms}from"react/jsx-runtime";var re=({children:e="Label",id:t="cb-label-after",...o})=>ms(cs,{children:[ki(te,{id:t,...o}),ki("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as Au,jsx as Su,jsxs as Eu}from"react/jsx-runtime";import{Fragment as Ou,jsx as yu,jsxs as Pu}from"react/jsx-runtime";import{Fragment as Du,jsx as _u,jsxs as Hu}from"react/jsx-runtime";import{jsx as Fu}from"react/jsx-runtime";import{jsx as $u}from"react/jsx-runtime";import{jsx as Yu}from"react/jsx-runtime";import{jsx as Y,jsxs as Si}from"react/jsx-runtime";var us=z.options,fs=z.states,bs={...z.defaultOptions,variant:"vertical"},xs=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],hs=[],De=e=>{let{variant:t,...o}=e;return t==="horizontal"?Si(z,{layout:"horizontal",...o,children:[Y(B,{children:Y(re,{id:M("cb"),defaultChecked:!0,children:"Label"})}),Y(B,{children:Y(re,{id:M("cb"),children:"Label"})}),Y(B,{children:Y(re,{id:M("cb"),children:"Label"})})]}):Si(z,{...o,children:[Y(B,{children:Y(re,{id:M("cb"),defaultChecked:!0,children:"Label"})}),Y(B,{children:Y(re,{id:M("cb"),children:"Label"})}),Y(B,{children:Y(re,{id:M("cb"),children:"Label"})})]})};De.options=us;De.states=fs;De.variants=xs;De.defaultOptions=bs;De.modifiers=hs;De.className=z.className;import{jsx as ks}from"react/jsx-runtime";var Ns=te.options,Ls=te.states,gs=te.defaultOptions,vs=[],Is=[],He=e=>ks(re,{id:M("checkbox"),...e,defaultChecked:!0,children:"Label"});He.options=Ns;He.states=Ls;He.variants=vs;He.defaultOptions=gs;He.modifiers=Is;He.className=te.className;import{jsx as Se,jsxs as Ms}from"react/jsx-runtime";var ro="k-list-item",Ss=[s.hover,s.focus,s.selected,s.disabled],As={},Es={},S=e=>{let{text:t,groupLabel:o,group:a,iconName:i,iconClassName:l,showCheckbox:p,checked:d,hover:c,focus:u,selected:b,disabled:N,actions:g,description:k,id:O,...T}=e,L=t||e.children;return Ms("li",{...T,id:O,role:a?"presentation":"option",tabIndex:a?void 0:u?0:-1,"aria-selected":!a&&b?"true":a?void 0:"false","aria-disabled":!a&&N?"true":void 0,className:n(e.className,a?"k-list-group-item":ro,y(ro,{hover:c,focus:u,disabled:N,selected:b})),children:[p&&Se(G,{checked:d}),i&&Se("span",{className:"k-list-item-icon-wrapper",children:Se(v,{icon:i,className:n("k-list-item-icon",l)})}),Se("span",{className:"k-list-item-text",children:L}),g&&Se("div",{className:"k-list-item-actions",children:g}),k&&Se("span",{className:"k-list-item-description",children:k}),o&&o!==""&&Se("div",{className:"k-list-item-group-label",children:o})]})};S.states=Ss;S.options=As;S.className=ro;S.defaultOptions=Es;S.moduleName=Ie;S.folderName=we;S.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 icons are hidden from assistive technology."}]};import{jsx as Ts}from"react/jsx-runtime";var Cs="k-list-ul",Ae=e=>{let{children:t,role:o,id:a,...i}=e;return Ts("ul",{...i,id:a,role:o,className:n(Cs,e.className),children:t})};Ae.ariaSpec={selector:".k-list-ul",rules:[{selector:'.k-list-ul[role="listbox"]',attribute:"role=listbox",usage:"For ungrouped lists, the UL has the listbox role."},{selector:'.k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."},{selector:'.k-list-ul[role="group"]',attribute:"role=group",usage:"For grouped sublists under a group header."},{selector:'.k-list-ul[role="group"]',attribute:"aria-labelledby (when grouped)",usage:"References the group header ID."}]};import{jsx as lo,jsxs as Os}from"react/jsx-runtime";var ys="k-list-content",U=e=>{let{virtualization:t,grouping:o,"aria-label":a,"aria-labelledby":i,listboxId:l,...p}=e;return Os("div",{...p,className:n(ys,e.className),role:o?"listbox":void 0,id:o?l:void 0,"aria-label":o?a:void 0,"aria-labelledby":o?i:void 0,children:[o?e.children:lo(Ae,{role:"listbox",id:l,"aria-label":a,"aria-labelledby":i,children:e.children}),t&&lo("div",{className:"k-height-container",children:lo("div",{})})]})};U.ariaSpec={selector:".k-list-content",rules:[{selector:'.k-list-content[role="listbox"]',attribute:"role=listbox",usage:"For grouped lists, the list content container has the listbox role."},{selector:'.k-list-content[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."}]};import{jsx as po,jsxs as Ks}from"react/jsx-runtime";var ht="k-list-sticky-header",Ps=[s.hover,s.focus,s.selected],Rs={},ws={},Nt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:a,indeterminate:i,hover:l,focus:p,selected:d,...c}=e;return po("div",{...c,className:n(ht,e.className),children:Ks("div",{className:n(`${ht}-item`,y(`${ht}-item`,{hover:l,focus:p,selected:d})),children:[o&&po(G,{checked:a,indeterminate:i,"aria-label":t}),po("span",{className:"k-list-item-text",children:t})]})})};Nt.states=Ps;Nt.options=Rs;Nt.className=ht;Nt.defaultOptions=ws;import{Fragment as Xf,jsx as Gf,jsxs as $f}from"react/jsx-runtime";import{jsx as co,jsxs as Ds}from"react/jsx-runtime";var _s="k-list-group-item",it=e=>{let{groupIconName:t,...o}=e;return Ds("li",{...o,role:"presentation",className:n(_s,e.className),children:[t&&co("span",{className:"k-list-item-icon-wrapper",children:co(v,{icon:t,className:"k-list-item-icon"})}),co("span",{className:"k-list-item-text",children:e.children})]})};it.ariaSpec={selector:".k-list-group-item",rules:[{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-group-item",attribute:"id (when referenced)",usage:"ID for aria-labelledby on the parent group UL."}]};import{jsx as Us}from"react/jsx-runtime";var mo="k-list-optionlabel",Hs=[s.hover,s.focus,s.selected,s.disabled],zs={},Bs={},Lt=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:l,...p}=e;return Us("div",{...p,className:n(mo,y(mo,{hover:o,focus:a,selected:i,disabled:l})),children:t})};Lt.states=Hs;Lt.options=zs;Lt.className=mo;Lt.defaultOptions=Bs;import{jsx as Xs}from"react/jsx-runtime";var uo="k-list-custom-value",Fs=[s.hover,s.focus,s.selected,s.disabled],Vs={},Gs={},gt=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:l,...p}=e;return Xs("div",{...p,className:n(uo,y(uo,{hover:o,focus:a,selected:i,disabled:l})),children:t})};gt.states=Fs;gt.options=Vs;gt.className=uo;gt.defaultOptions=Gs;import{Fragment as lb,jsx as rb,jsxs as db}from"react/jsx-runtime";import{Fragment as bb,jsx as fb,jsxs as xb}from"react/jsx-runtime";import{Fragment as kb,jsx as vb,jsxs as Ib}from"react/jsx-runtime";import{Fragment as yb,jsx as Cb,jsxs as Tb}from"react/jsx-runtime";import{jsx as wb}from"react/jsx-runtime";import{Fragment as Bb,jsx as zb,jsxs as Ub}from"react/jsx-runtime";var Ai="dropdown-list",Ei="dropdownlist";import{Fragment as Ws,jsx as F,jsxs as fo}from"react/jsx-runtime";var Mi="k-dropdownlist",$s=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],qs={size:[r.undefined,r.small,r.medium,r.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},bo={showValue:!0,arrowIconName:"chevron-down"},K=e=>{let{size:t,rounded:o,fillMode:a,arrowIconName:i=bo.arrowIconName,showValue:l=bo.showValue,valueIconName:p,prefix:d,suffix:c,value:u,placeholder:b,hover:N,focus:g,valid:k,invalid:O,required:T,loading:L,disabled:I,readonly:P,popup:Q,opened:E,adaptive:Le,adaptiveSettings:ge,adaptiveTitle:Ge,adaptiveSubtitle:Ui,adaptiveFilter:Fi,id:Xe,activeDescendant:Io,"aria-label":Vi,...Gi}=e,Xi=Xe?`${Xe}-listbox`:void 0,ko=Xe?`${Xe}-value`:void 0;return fo(Ws,{children:[fo(de,{...Gi,id:Xe,size:t,rounded:o,fillMode:a,hover:N,focus:g,valid:k,invalid:O,required:T,loading:L,disabled:I,readonly:P,className:n(e.className,Mi,{"k-icon-picker":!l&&p}),role:"combobox","aria-haspopup":"listbox","aria-expanded":E?"true":"false","aria-controls":E?Xi:void 0,"aria-activedescendant":E&&Io?Io:void 0,"aria-describedby":E?ko:void 0,"aria-disabled":I?"true":void 0,"aria-label":Vi,tabIndex:0,children:[F(pe,{children:d}),F(Qe,{placeholder:b,value:u,showValue:l,valueIconName:p,id:ko}),F($,{valid:k,invalid:O,loading:L,disabled:I}),F(W,{loading:L,disabled:I}),F(ce,{children:c}),F(h,{className:"k-input-button",icon:i,size:e.size,fillMode:e.fillMode,"aria-label":b||"Toggle dropdown",tabIndex:-1})]}),E&&Q&&F(se,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown suggestions",children:Q}),Le&&F(_,{adaptive:!0,...ge,header:F(ee,{actionsEnd:F(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:Fi,inputValue:u,inputPlaceholder:b,title:Ge,subtitle:Ui}),children:F("div",{className:"k-list-container",children:F(C,{size:"large",children:fo(U,{"aria-label":"Options",children:[F(S,{text:"List item"}),F(S,{text:"List item"}),F(S,{text:"List item"})]})})})})]})};K.states=$s;K.options=qs;K.className=Mi;K.defaultOptions=bo;K.moduleName=Ai;K.folderName=Ei;K.ariaSpec={rules:[{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"role=combobox",usage:"Announces the dropdown element."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-haspopup=listbox",usage:"Indicates the presence of a listbox popup."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-expanded",usage:"Announces the visibility state of the popup."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-label",usage:"Accessible name for the dropdown."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"tabindex=0",usage:"The element must be focusable."},{selector:".k-dropdownlist.k-disabled",attribute:"aria-disabled=true",usage:"Rendered when the dropdown is disabled."},{selector:".k-dropdownlist .k-input-button",attribute:"aria-label",usage:"Accessible name for the dropdown button."},{selector:".k-dropdownlist .k-input-button",attribute:"tabindex=-1",usage:"The button must not be focusable."},{selector:".k-dropdownlist-popup .k-list-content, .k-dropdownlist-popup .k-list-ul",attribute:"role=listbox",usage:"Popup list has listbox role."},{selector:'.k-dropdownlist-popup .k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby",usage:"Popup listbox must have an accessible name. Consuming code is responsible for associating with the component label via aria-labelledby."},{selector:".k-dropdownlist-popup .k-list-item",attribute:"role=option",usage:"Each list item is an option."}]};import{jsx as vx}from"react/jsx-runtime";import{jsx as Mx,jsxs as Cx}from"react/jsx-runtime";import{Fragment as Dx,jsx as Kx,jsxs as _x}from"react/jsx-runtime";import{jsx as Fx}from"react/jsx-runtime";import{jsx as Wx,jsxs as Jx}from"react/jsx-runtime";import{Fragment as nh,jsx as oh,jsxs as ih}from"react/jsx-runtime";import{jsx as dh}from"react/jsx-runtime";import{Fragment as er,jsx as he,jsxs as Ci}from"react/jsx-runtime";var Js=K.states,Ys=K.defaultOptions,Qs=K.options,Zs=[{name:"opened",title:"Opened"}],js=[],Be=e=>{let{modifiers:t,...o}=e,a={},i=Ci(er,{children:[he("div",{className:"k-list-filter",children:he(J,{})}),he(C,{style:{width:300},size:o.size,children:Ci(U,{children:[he(S,{children:"List item"}),he(S,{children:"List item"}),he(S,{children:"List item"})]})})]});return Object.keys(t||{}).forEach(l=>{l==="opened"&&(a.opened=!!t?.[l],a.popup=t?.[l]?i:void 0)}),he("div",{children:he(K,{placeholder:"Value",style:{width:300},...o,...a})})};Be.options=Qs;Be.states=Js;Be.variants=js;Be.defaultOptions=Ys;Be.modifiers=Zs;Be.className=K.className;import{jsx as Ti,jsxs as ar}from"react/jsx-runtime";var yi="k-spin-button",ir=[],nr={size:[r.undefined,r.small,r.medium,r.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},xo={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},Ne=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:i=xo.increaseLabel,decreaseLabel:l=xo.decreaseLabel,...p}=e;return ar("span",{...p,className:n(yi,e.className),children:[Ti(h,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":i}),Ti(h,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":l})]})};Ne.states=ir;Ne.options=nr;Ne.className=yi;Ne.defaultOptions=xo;Ne.moduleName=null;Ne.folderName=null;var Oi="numeric-textbox",Pi="numerictextbox";import{Fragment as Ri,jsx as le,jsxs as ho}from"react/jsx-runtime";var wi="k-numerictextbox",sr=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],rr={size:[r.undefined,r.small,r.medium,r.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},vt={showSpinButton:!0,showClearButton:!0,separators:!0},V=e=>{let{size:t,rounded:o,fillMode:a,separators:i=vt.separators,showClearButton:l=vt.showClearButton,showSpinButton:p=vt.showSpinButton,prefix:d,suffix:c,value:u,placeholder:b,hover:N,focus:g,valid:k,invalid:O,required:T,loading:L,disabled:I,readonly:P,id:Q,"aria-label":E,"aria-describedby":Le,...ge}=e;return ho(w,{...ge,size:t,rounded:o,fillMode:a,hover:N,focus:g,valid:k,invalid:O,required:T,loading:L,disabled:I,readonly:P,className:n(e.className,wi),children:[d&&ho(Ri,{children:[le(pe,{children:d}),i&&le(ae,{})]}),le(j,{id:Q,placeholder:b,value:u,role:"spinbutton",disabled:I,"aria-label":E,"aria-describedby":Le,"aria-invalid":O?"true":void 0}),le($,{valid:k,invalid:O,loading:L,disabled:I}),le(W,{loading:L,disabled:I}),l&&le(Z,{loading:L,disabled:I,readonly:P,value:u}),c&&ho(Ri,{children:[i&&le(ae,{}),le(ce,{children:c})]}),p&&le(Ne,{className:"k-input-spinner",size:t,fillMode:a,disabled:I})]})};V.states=sr;V.options=rr;V.className=wi;V.defaultOptions=vt;V.moduleName=Oi;V.folderName=Pi;V.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 nt=V;import{jsx as lr}from"react/jsx-runtime";var Ki=e=>lr(nt,{...e});import{Fragment as Jh,jsx as Wh}from"react/jsx-runtime";import{Fragment as tN,jsx as eN}from"react/jsx-runtime";import{jsx as aN}from"react/jsx-runtime";import{jsx as No}from"react/jsx-runtime";var dr=V.states,pr=V.defaultOptions,cr=V.options,mr=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"spin-button",title:"`Spin` Button"}],ur=[],Ue=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":a.prefix=t?.[i]?No(K,{size:o.size,fillMode:"flat",value:"mm"}):void 0;break;case"suffix":a.suffix=t?.[i]?No(Dt,{children:"mm"}):void 0;break;case"clear-button":a.showClearButton=t?.[i];break;case"spin-button":a.showSpinButton=t?.[i];break;default:break}}),No(Ki,{value:"Value",style:{width:300},...o,...a})};Ue.options=cr;Ue.states=dr;Ue.variants=ur;Ue.defaultOptions=pr;Ue.modifiers=mr;Ue.className=V.className;var Lo="pager",_i=Lo;import{Fragment as Di,jsx as X,jsxs as Fe}from"react/jsx-runtime";var It="k-pager",fr=[s.focus,s.disabled],br={size:[r.undefined,r.small,r.medium,r.large]},q={responsive:!0,pagerSizeInfo:!0,pageTitleInfo:!0,maxPagesInfo:!0,type:"numeric",pageSizes:!0,refresh:!0,previousNext:!0,info:"1 - 5 of 20 items",itemsPerPage:5,maxPages:6,currentPage:1},R=e=>{let{responsive:t=q.responsive,size:o,pagerSizeInfo:a=q.pagerSizeInfo,pageTitleInfo:i=q.pageTitleInfo,maxPagesInfo:l=q.maxPagesInfo,itemsPerPage:p=q.itemsPerPage,maxPages:d=q.maxPages,currentPage:c=q.currentPage,previousNext:u=q.previousNext,type:b=q.type,pageSizes:N=q.pageSizes,refresh:g=q.refresh,info:k=q.info,focus:O,disabled:T,dir:L,...I}=e,P=[],Q=[];for(let E=1;E<=d;E++)P.push(X(h,{selected:E===c,fillMode:"flat",themeColor:"primary",size:o,"aria-label":`Page ${E}`,...E===c&&{"aria-current":"page"},children:E},E)),Q.push(X("option",{selected:E===c,children:E},E));return Fe("div",{dir:L,...I,className:n(e.className,It,A(It,{size:o}),y(It,{focus:O,disabled:T}),{"k-pager-responsive":t}),role:"application","aria-roledescription":"pager","aria-keyshortcuts":"Enter ArrowRight ArrowLeft","aria-label":`Page ${c} of ${d}`,children:[Fe("div",{className:n("k-pager-numbers-wrap"),children:[u&&Fe(Di,{children:[X(h,{className:n("k-pager-nav","k-pager-first"),ariaDisabled:c===1,fillMode:"flat",size:o,icon:L==="rtl"?"caret-alt-to-right":"caret-alt-to-left",title:"Go to the first page","aria-label":"Go to the first page"}),X(h,{className:n("k-pager-nav"),ariaDisabled:c===1,fillMode:"flat",size:o,icon:L==="rtl"?"caret-alt-right":"caret-alt-left",title:"Go to the previous page","aria-label":"Go to the previous page"})]}),b==="numeric"&&X("div",{className:n("k-pager-numbers"),children:P}),b==="input"&&Fe("span",{className:n("k-pager-input"),children:[i&&X("span",{children:"Page"}),X(V,{value:`${c}`,size:o,showSpinButton:!1,showClearButton:!1,"aria-label":"Current page"}),X("span",{children:l&&`of ${d}`})]}),u&&Fe(Di,{children:[