@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 53 kB
JavaScript
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var A=(e,t)=>a({[`${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:n,hover:i,focus:l,checked:p,active:d,selected:c,disabled:u,indeterminate:b,loading:N,empty:g,readonly:k,highlighted:P,...E}=t;return a({"k-valid":o,"k-invalid":n,"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":P},Object.keys(E).reduce((L,I)=>(I.startsWith("k-")?L[I]=E[I]:L[`k-${I}`]=E[I],L),{}))};function Io(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(n=>[`k-${n}`,!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 y(e){return kt[e]=(kt[e]||0)+1,`k-${e}-${kt[e]}`}import{Fragment as Xi,jsx as ko}from"react/jsx-runtime";var St="k-font-icon",Fi=[],Vi={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]},Gi={},$e=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:l,...p}=e;return n?ko("span",{...p,className:a(e.className,St,A(St,{size:t}),{[`k-i-${n}`]:n,[`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"}):ko(Xi,{})};$e.states=Fi;$e.options=Vi;$e.className=St;$e.defaultOptions=Gi;var So=$e;import{Fragment as Wi,jsx as at}from"react/jsx-runtime";var At="k-svg-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],variant:[oe.outline,oe.solid,oe.duotone]},Ct={viewBox:"0 0 24 24",variant:oe.outline},qe=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:l=Ct.viewBox,variant:p=Ct.variant,icon:d,...c}=e;if(!d)return at(Wi,{});if(d==="none")return at("span",{...c,className:a(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:a(e.className,At,A("k-icon",{size:t}),{[`k-svg-i-${u}`]:u,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"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=$i;qe.options=qi;qe.className=At;qe.defaultOptions=Ct;var yt=qe;import*as Tt from"@progress/kendo-svg-icons";var Ao="icon",Co="icons";import{useContext as Yi}from"react";import{createContext as Ji}from"react";var yo=Ji({iconsType:"svg"});import{Fragment as To,jsx as We}from"react/jsx-runtime";var st="k-icon",Qi=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Zi=[],ji={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}=Yi(yo),{size:o,themeColor:n,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(To,{});if((t||l)==="svg"){if(i==="none")return We(yt,{...b,className:a(e.className,st),icon:i,size:o,variant:u});let g=Tt[i]?i:Qi(`${i}-icon`);return Tt[g]?We(yt,{...b,className:a(e.className,st),icon:Tt[g],size:o,themeColor:n,rotate:p,flip:d,viewBox:c,variant:u}):We(To,{})}return We(So,{...b,className:a(e.className,st),icon:i,size:o,themeColor:n,rotate:p,flip:d})};v.states=Zi;v.options=ji;v.defaultOptions=rt;v.className=st;v.moduleName=Ao;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 Et="button",Eo=Et;import{Fragment as Mo,jsx as Ce,jsxs as Oo}from"react/jsx-runtime";var Je="k-button",en=["icon-button"],tn=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],on={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]},Mt={showArrow:!1,arrowIconName:"chevron-down"},h=e=>{let{as:t="button",size:o,rounded:n,fillMode:i,themeColor:l,showArrow:p=Mt.showArrow,arrowIconName:d=Mt.arrowIconName,variant:c,hover:u,focus:b,active:N,selected:g,disabled:k,togglable:P,ariaDisabled:E,icon:L,iconSize:I,text:w,iconClassName:Q,className:C,...Le}=e,ge=L!=null,Ge=e.children!==void 0;return Oo(t,{className:a(C,Je,Io(Je,c),A(Je,{size:o,rounded:n,fillMode:i,themeColor:l}),M(Je,{hover:u,focus:b,active:N,disabled:k||E,selected:g}),{"k-icon-button":!w&&!Ge&&ge}),"aria-pressed":P?g?"true":"false":void 0,...Le,"aria-disabled":E?"true":void 0,disabled:k||void 0,children:[typeof L=="string"&&L&&Ce(v,{className:a(Q,"k-button-icon"),icon:L,size:I}),L&&typeof L!="string"&&Ce(Mo,{children:L}),w?Oo(Mo,{children:[w&&Ce("span",{className:"k-button-text",children:w}),e.children]}):e.children&&Ce("span",{className:"k-button-text",children:e.children}),p&&Ce("span",{className:"k-menu-button-arrow k-button-arrow",children:Ce(v,{icon:d})})]})};h.states=tn;h.options=on;h.variants=en;h.className=Je;h.defaultOptions=Mt;h.moduleName=Et;h.folderName=Eo;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 nn}from"react/jsx-runtime";var Po=e=>nn(h,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as an}from"react/jsx-runtime";var wo=e=>an(h,{icon:"folder",children:"Button",...e});import{jsx as sn}from"react/jsx-runtime";var ve=e=>sn(h,{children:"Button",...e});import{jsx as Ot}from"react/jsx-runtime";var rn=h.options,ln=h.states,dn={...h.defaultOptions,variant:"text"},pn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],cn=[],ye=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Ot(Po,{...o,icon:"star"});case"icon-and-text":return Ot(wo,{...o,icon:"star",children:"Button"});default:return Ot(ve,{...o,children:"Button"})}};ye.options=rn;ye.states=ln;ye.variants=pn;ye.defaultOptions=dn;ye.modifiers=cn;ye.className=h.className;var Ye="input",lt=Ye;import{jsx as bn}from"react/jsx-runtime";var dt="k-input",mn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],un={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]},fn={},R=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:d,size:c,rounded:u,fillMode:b,...N}=e;return bn("span",{...N,className:a(e.className,dt,A(dt,{size:c,rounded:u,fillMode:b}),M(dt,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:d}))})};R.states=mn;R.options=un;R.className=dt;R.defaultOptions=fn;R.moduleName=Ye;R.folderName=lt;import{jsx as Ln}from"react/jsx-runtime";var pt="k-picker",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={},de=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:d,size:c,rounded:u,fillMode:b,...N}=e;return Ln("span",{...N,className:a(e.className,pt,A(pt,{size:c,rounded:u,fillMode:b}),M(pt,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:d})),children:e.children})};de.states=xn;de.options=hn;de.className=pt;de.defaultOptions=Nn;de.moduleName=Ye;de.folderName=lt;import{Fragment as In,jsx as Pt}from"react/jsx-runtime";var Ro="k-clear-value",gn=[s.disabled,s.loading,s.readonly],vn={},Z=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?Pt(In,{}):Pt("span",{className:a(e.className,Ro),children:Pt(v,{icon:"x"})})};Z.states=gn;Z.options=vn;Z.className=Ro;import{jsx as An}from"react/jsx-runtime";var wt="k-input-inner",kn=[],Sn={},ct={type:"text",autocomplete:"off",value:"",placeholder:""},j=e=>{let{value:t=ct.value,type:o=ct.type,placeholder:n=ct.placeholder,autocomplete:i=ct.autocomplete,disabled:l,readOnly:p,...d}=e;return An("input",{...d,type:o,className:a(e.className,wt,A(wt,e)),placeholder:n,autoComplete:i,defaultValue:t,disabled:l||void 0,readOnly:p||void 0})};j.states=kn;j.options=Sn;j.className=wt;import{jsx as Ko,jsxs as Tn}from"react/jsx-runtime";var Rt="k-input-inner",Cn=[],yn={},Qe=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:l,...p}=e;return Tn("span",{...p,className:a(e.className,Rt,A(Rt,e)),children:[i,!i&&l&&Ko(v,{className:"k-input-value-icon",icon:l}),n&&!t&&o,n&&t&&Ko("span",{className:"k-input-value-text",children:t})]})};Qe.states=Cn;Qe.options=yn;Qe.className=Rt;import{jsx as On}from"react/jsx-runtime";var Kt="k-input-inner",En=[],Mn={},_o={value:"",placeholder:""},_t=e=>{let{value:t=_o.value,placeholder:o=_o.placeholder,rows:n,disabled:i,...l}=e;return On("textarea",{...l,className:a(e.className,Kt,A(Kt,e)),placeholder:o,rows:n,defaultValue:t,disabled:i||void 0})};_t.states=En;_t.options=Mn;_t.className=Kt;import{Fragment as wn,jsx as Do}from"react/jsx-runtime";var Ho="k-input-loading-icon",Pn=[s.disabled,s.loading],W=e=>{let{disabled:t,loading:o}=e;return t||!o?Do(wn,{}):Do("span",{className:a(e.className,Ho,"k-icon k-i-loading")})};W.states=Pn;W.className=Ho;import{Fragment as _n,jsx as zo}from"react/jsx-runtime";var Bo="k-input-validation-icon",Rn=[s.valid,s.invalid,s.disabled,s.loading],Kn={},$=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,l=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?zo(_n,{}):zo(v,{className:a(Bo),icon:l})};$.states=Rn;$.options=Kn;$.className=Bo;import{Fragment as zn,jsx as Uo}from"react/jsx-runtime";var Dn="k-input-prefix",Hn={direction:"horizontal"},pe=e=>{let{direction:t=Hn.direction,...o}=e;return e.children?Uo("span",{...o,className:a(Dn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Uo(zn,{})};import{Fragment as Fn,jsx as Fo}from"react/jsx-runtime";var Bn="k-input-suffix",Un={direction:"horizontal"},ce=e=>{let{direction:t=Un.direction,...o}=e;return e.children?Fo("span",{...o,className:a(Bn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Fo(Fn,{})};import{jsx as dd}from"react/jsx-runtime";import{jsx as Gn}from"react/jsx-runtime";var Vn="k-input-suffix-text",Dt=e=>{let{children:t,...o}=e;return Gn("span",{...o,className:a(Vn,e.className),children:t})};import{jsx as $n}from"react/jsx-runtime";var Vo="k-input-separator",Xn={direction:"vertical"},ae=e=>{let{direction:t=Xn.direction,...o}=e;return $n("span",{...o,className:a(Vo,e.className,{[`${Vo}-${t}`]:t})})};import{Fragment as Go,jsx as ie,jsxs as Ht}from"react/jsx-runtime";var qn=R.states,Wn=R.defaultOptions,Jn=R.options,Yn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Qn=[],Te=e=>{let{modifiers:t,valid:o,invalid:n,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(R,{...d,valid:o,invalid:n,loading:i,disabled:l,readonly:p,style:{width:300},children:[c&&Ht(Go,{children:[ie(pe,{children:ie(v,{icon:"lock"})}),g&&ie(ae,{})]}),ie(j,{placeholder:"Placeholder",value:"Value"}),N&&ie($,{valid:o,invalid:n,loading:i,disabled:l}),ie(W,{loading:i,disabled:l}),b&&ie(Z,{loading:i,disabled:l,readonly:p,value:"Value"}),u&&Ht(Go,{children:[g&&ie(ae,{}),ie(ce,{children:ie(ve,{size:d.size,fillMode:"clear",children:"Send"})})]})]})};Te.options=Jn;Te.states=qn;Te.variants=Qn;Te.defaultOptions=Wn;Te.modifiers=Yn;Te.className=R.className;var zt="popup",Xo=zt;import{jsx as $o}from"react/jsx-runtime";var qo="k-animation-container",Zn=[],jn={},Bt={positionMode:"absolute",shown:!0},ne=e=>{let{positionMode:t=Bt.positionMode,shown:o=Bt.shown,animationStyle:n,offset:i,...l}=e;return $o("div",{...l,style:{...i,...e.style},className:a(e.className,qo,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:$o("div",{className:"k-child-animation-container",style:n,children:e.children})})};ne.states=Zn;ne.options=jn;ne.className=qo;ne.defaultOptions=Bt;ne.moduleName=zt;ne.folderName=Xo;var Ut="popup",Wo=Ut;import{jsx as Jo}from"react/jsx-runtime";var Yo="k-popup",ea=[],ta={},Qo={positionMode:"absolute"},se=e=>{let{offset:t,positionMode:o=Qo.positionMode,animationStyle:n,containerClassName:i,containerRole:l,containerAriaLabel:p,...d}=e;return Jo(ne,{positionMode:o,offset:t,animationStyle:n,className:i,role:l,"aria-label":p,children:Jo("div",{...d,className:a(e.className,Yo),children:e.children})})};se.states=ea;se.options=ta;se.className=Yo;se.defaultOptions=Qo;se.moduleName=Ut;se.folderName=Wo;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",Zo=Ft;import{jsx as na}from"react/jsx-runtime";var mt="k-actions",oa=[],ia={},Vt={alignment:"start",orientation:"horizontal"},me=e=>{let{alignment:t=Vt.alignment,orientation:o=Vt.orientation,...n}=e;return na("div",{...n,className:a(mt,{[`${mt}-${t}`]:t,[`${mt}-${o}`]:o},e.className),children:e.children})};me.states=oa;me.options=ia;me.className=mt;me.defaultOptions=Vt;me.moduleName=Ft;me.folderName=Zo;import{jsx as sa}from"react/jsx-runtime";var aa="k-actionsheet-footer",jo={alignment:"stretched",orientation:"horizontal"},Ee=e=>{let{alignment:t=jo.alignment,orientation:o=jo.orientation,template:n,as:i=n?"div":me,...l}=e;return sa(i,{...l,...!n&&{alignment:t,orientation:o},className:a(e.className,aa),children:e.children})};var Gt="searchbox",ei=Gt;import{jsx as Ze,jsxs as da}from"react/jsx-runtime";var ti="k-searchbox",ra=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],la={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:n,rounded:i,fillMode:l,hover:p,focus:d,valid:c,invalid:u,required:b,loading:N,disabled:g,showIcon:k=Xt.showIcon,icon:P=Xt.icon,"aria-label":E,...L}=e;return da(R,{...L,size:n,rounded:i,fillMode:l,hover:p,focus:d,valid:c,invalid:u,required:b,loading:N,disabled:g,className:a(e.className,ti),children:[k&&Ze(v,{className:"k-input-icon",icon:P}),Ze(j,{placeholder:o,value:t,"aria-label":E}),Ze(W,{...e}),Ze($,{...e}),Ze(Z,{...e})]})};J.states=ra;J.options=la;J.className=ti;J.defaultOptions=Xt;J.moduleName=Gt;J.folderName=ei;import{jsx as Tp}from"react/jsx-runtime";var $t="textbox",oi=$t;import{Fragment as ii,jsx as ue,jsxs as qt}from"react/jsx-runtime";var ni="k-textbox",pa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],ca={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:n,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:P,invalid:E,required:L,loading:I,disabled:w,readonly:Q,id:C,"aria-label":Le,"aria-describedby":ge,...Ge}=e;return qt(R,{...Ge,size:t,rounded:o,fillMode:n,hover:g,focus:k,valid:P,invalid:E,required:L,loading:I,disabled:w,readonly:Q,className:a(e.className,ni),children:[d&&qt(ii,{children:[ue(pe,{children:d}),i&&ue(ae,{})]}),ue(j,{id:C,placeholder:N,value:b,type:u,disabled:w,"aria-label":Le,"aria-describedby":ge,"aria-invalid":E?"true":void 0}),p&&ue($,{valid:P,invalid:E,loading:I,disabled:w}),ue(W,{loading:I,disabled:w}),l&&ue(Z,{loading:I,disabled:w,readonly:Q,value:b}),c&&qt(ii,{children:[i&&ue(ae,{}),ue(ce,{children:c})]})]})};H.states=pa;H.options=ca;H.className=ni;H.defaultOptions=ut;H.moduleName=$t;H.folderName=oi;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 ma}from"react/jsx-runtime";var ai=e=>ma(je,{...e});import{Fragment as $p,jsx as Xp}from"react/jsx-runtime";import{Fragment as Zp,jsx as Qp}from"react/jsx-runtime";import{jsx as oc}from"react/jsx-runtime";import{jsx as Wt}from"react/jsx-runtime";var ua=H.states,fa=H.defaultOptions,ba=H.options,xa=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],ha=[],Me=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":n.prefix=t?.[i]?Wt(v,{icon:"lock"}):void 0;break;case"suffix":n.suffix=t?.[i]?Wt(ve,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":n.showClearButton=t?.[i];break;default:break}}),Wt(ai,{value:"Value",style:{width:300},...o,...n})};Me.options=ba;Me.states=ua;Me.variants=ha;Me.defaultOptions=fa;Me.modifiers=xa;Me.className=H.className;import{jsx as fe,jsxs as Jt}from"react/jsx-runtime";var si="k-actionsheet-titlebar",Na={},ee=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:i,filter:l,input:p,inputValue:d,inputPlaceholder:c,adaptive:u,titleId:b,children:N,...g}=e;return Jt("div",{...g,className:a(e.className,si),children:[Jt("div",{className:"k-actionsheet-titlebar-group",children:[n&&fe("div",{className:"k-actionsheet-actions",children:n}),!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=si;ee.defaultOptions=Na;import{jsx as Yt,jsxs as Ia}from"react/jsx-runtime";var Qt="k-actionsheet-view",La=[],ga={},va={},Oe=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:l,titleId:p,...d}=e,c=i?.type===ee&&Yt(ee,{adaptive:t,titleId:p,...i?.props}),u=l?.type===Ee&&Yt(Ee,{...l?.props});return Ia("div",{...d,className:a(e.className,Qt,{[`${Qt}-animated`]:o}),children:[c,Yt("div",{className:"k-actionsheet-content",children:n}),u]})};Oe.states=La;Oe.options=ga;Oe.className=Qt;Oe.defaultOptions=va;var et="action-sheet",ft=et;var Zt="overlay",ri=Zt;import{jsx as Ca}from"react/jsx-runtime";var li="k-overlay",ka=[],Sa={},Aa={},be=e=>{let{...t}=e;return Ca("div",{...t,className:a(e.className,li),children:e.children})};be.states=ka;be.options=Sa;be.className=li;be.defaultOptions=Aa;be.moduleName=Zt;be.folderName=ri;import{jsx as bt,jsxs as Ea}from"react/jsx-runtime";var di="k-actionsheet",ya=[],Ta={},tt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},_=e=>{let{side:t=tt.side,fullscreen:o=tt.fullscreen,adaptive:n=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 Ea("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:a(e.className,di,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:l||bt(Oe,{header:d,footer:c,adaptive:n,titleId:N,...e,children:p})})})]})};_.states=ya;_.options=Ta;_.className=di;_.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 wa}from"react/jsx-runtime";var pi="k-actionsheet-container",Ma=[],Oa={},Pa={},Pe=e=>{let{children:t,...o}=e;return wa("div",{...o,className:pi,children:t})};Pe.states=Ma;Pe.options=Oa;Pe.className=pi;Pe.defaultOptions=Pa;Pe.moduleName=et;Pe.folderName=ft;import{jsx as Ra}from"react/jsx-runtime";var jt=e=>{let{...t}=e;return Ra("div",{...t,className:a(e.className,"k-list-ul"),children:e.children})};import{Fragment as _a,jsx as ot,jsxs as eo}from"react/jsx-runtime";var to="k-actionsheet-item",Ka=[s.hover,s.focus,s.selected,s.disabled],xe=e=>{let{iconName:t,text:o,description:n,hover:i,focus:l,selected:p,disabled:d,...c}=e;return eo("span",{...c,className:a(e.className,to,M(to,{hover:i,focus:l,selected:p,disabled:d})),children:[!e.children&&ot(_a,{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}),n&&ot("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};xe.states=Ka;xe.className=to;import{jsx as tm,jsxs as om}from"react/jsx-runtime";import{jsx as sm}from"react/jsx-runtime";import{jsx as pm}from"react/jsx-runtime";import{jsx as fm}from"react/jsx-runtime";import{jsx as D,jsxs as oo}from"react/jsx-runtime";var Da=_.options,Ha=_.states,mi={..._.defaultOptions,variant:"normal"},za=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Ba=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],we=e=>{let{variant:t,modifiers:o,...n}={...mi,...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(_,{...n,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(Ee,{alignment:"stretched",children:[D(h,{text:"Cancel",size:"large",themeColor:"base"}),D(h,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:l}):D(_,{...n,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(Ee,{alignment:"stretched",children:[D(h,{text:"Apply",themeColor:"primary"}),D(h,{text:"Cancel",themeColor:"base"})]}):void 0,children:l})};we.options=Da;we.states=Ha;we.variants=za;we.defaultOptions=mi;we.modifiers=Ba;we.className=_.className;import ao from"react";import{jsx as ui}from"react/jsx-runtime";var Ua="k-list-group-sticky-header",io=e=>ui("div",{className:a(Ua,e.className),children:ui("div",{className:"k-list-header-text",children:e.children})});import{jsx as Va}from"react/jsx-runtime";var Fa="k-no-data",no=e=>{let{live:t,...o}=e;return Va("span",{...o,className:a(Fa,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Ie="list",Re=Ie;import{jsx as fi,jsxs as bi}from"react/jsx-runtime";var so="k-list",Ga=[],Xa={size:[r.undefined,r.small,r.medium,r.large]},$a={},T=e=>{let{size:t,virtualization:o,children:n,header:i,selectAll:l,optionLabel:p,customValue:d,noData:c,screenReaders:u,...b}=e,g=ao.Children.toArray(n)[0],k=g?.props?.children?ao.Children.count(g.props.children):ao.Children.count(n);return bi("div",{...b,className:a(e.className,so,A(so,{size:t}),{"k-virtual-list":o}),children:[p,l,d,i&&fi(io,{children:i}),n||(c!==void 0?c:fi(no,{live:!0,children:"No data found."})),u&&n&&bi(no,{className:"k-sr-only",live:!0,children:[k," items found."]})]})};T.states=Ga;T.options=Xa;T.className=so;T.defaultOptions=$a;T.moduleName=Ie;T.folderName=Re;T.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 Ya}from"react/jsx-runtime";var xi="k-list-container",qa=[],Wa={},Ja={},Ke=e=>{let{...t}=e;return Ya("div",{...t,className:a(e.className,xi),children:e.children})};Ke.states=qa;Ke.options=Wa;Ke.className=xi;Ke.defaultOptions=Ja;Ke.moduleName=Ie;Ke.folderName=Re;var ke="checkbox",_e=ke;import{jsx as hi}from"react/jsx-runtime";var xt="k-checkbox",Qa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],Za={size:[r.undefined,r.small,r.medium,r.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full]},ja={},G=e=>{let{id:t,checked:o,indeterminate:n,hover:i,focus:l,disabled:p,invalid:d,valid:c,required:u,size:b,rounded:N,wrapperRole:g,...k}=e;return hi("span",{className:"k-checkbox-wrap",role:g,children:hi("input",{...k,id:t,type:"checkbox",defaultChecked:o,required:u,disabled:p||void 0,"aria-invalid":d?"true":void 0,className:a(e.className,xt,A(xt,{size:b,rounded:N}),M(xt,{hover:i,focus:l,disabled:p,invalid:d,valid:c,indeterminate:n,checked:o}))})})};G.states=Qa;G.options=Za;G.className=xt;G.defaultOptions=ja;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 os}from"react/jsx-runtime";var Ni="k-checkbox-list",es=[],ts={},Li={layout:"vertical"},z=e=>{let{layout:t=Li.layout,...o}=e;return os("ul",{...o,className:a(e.className,Ni,{[`k-list-${t}`]:t}),children:e.children})};z.states=es;z.options=ts;z.className=Ni;z.defaultOptions=Li;z.moduleName=ke;z.folderName=_e;import{jsx as ss}from"react/jsx-runtime";var gi="k-checkbox-list-item",is=[],ns={},as={},B=e=>{let{...t}=e;return ss("li",{...t,className:a(e.className,gi),children:e.children})};B.states=is;B.options=ns;B.className=gi;B.defaultOptions=as;B.moduleName=ke;B.folderName=_e;import{Fragment as rs,jsx as vi,jsxs as ls}from"react/jsx-runtime";var re=({children:e="Label",id:t="cb-label-after",...o})=>ls(rs,{children:[vi(te,{id:t,...o}),vi("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as ku,jsx as Iu,jsxs as Su}from"react/jsx-runtime";import{Fragment as Eu,jsx as Tu,jsxs as Mu}from"react/jsx-runtime";import{Fragment as Ku,jsx as Ru,jsxs as _u}from"react/jsx-runtime";import{jsx as Bu}from"react/jsx-runtime";import{jsx as Gu}from"react/jsx-runtime";import{jsx as Wu}from"react/jsx-runtime";import{jsx as Y,jsxs as Ii}from"react/jsx-runtime";var ds=z.options,ps=z.states,cs={...z.defaultOptions,variant:"vertical"},ms=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],us=[],De=e=>{let{variant:t,...o}=e;return t==="horizontal"?Ii(z,{layout:"horizontal",...o,children:[Y(B,{children:Y(re,{id:y("cb"),defaultChecked:!0,children:"Label"})}),Y(B,{children:Y(re,{id:y("cb"),children:"Label"})}),Y(B,{children:Y(re,{id:y("cb"),children:"Label"})})]}):Ii(z,{...o,children:[Y(B,{children:Y(re,{id:y("cb"),defaultChecked:!0,children:"Label"})}),Y(B,{children:Y(re,{id:y("cb"),children:"Label"})}),Y(B,{children:Y(re,{id:y("cb"),children:"Label"})})]})};De.options=ds;De.states=ps;De.variants=ms;De.defaultOptions=cs;De.modifiers=us;De.className=z.className;import{jsx as Ls}from"react/jsx-runtime";var fs=te.options,bs=te.states,xs=te.defaultOptions,hs=[],Ns=[],He=e=>Ls(re,{id:y("checkbox"),...e,defaultChecked:!0,children:"Label"});He.options=fs;He.states=bs;He.variants=hs;He.defaultOptions=xs;He.modifiers=Ns;He.className=te.className;import{jsx as Se,jsxs as ks}from"react/jsx-runtime";var ro="k-list-item",gs=[s.hover,s.focus,s.selected,s.disabled],vs={},Is={},S=e=>{let{text:t,groupLabel:o,group:n,iconName:i,iconClassName:l,showCheckbox:p,checked:d,hover:c,focus:u,selected:b,disabled:N,actions:g,description:k,id:P,...E}=e,L=t||e.children;return ks("li",{...E,id:P,role:n?"presentation":"option",tabIndex:n?void 0:u?0:-1,"aria-selected":!n&&b?"true":n?void 0:"false","aria-disabled":!n&&N?"true":void 0,className:a(e.className,n?"k-list-group-item":ro,M(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:a("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=gs;S.options=vs;S.className=ro;S.defaultOptions=Is;S.moduleName=Ie;S.folderName=Re;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 As}from"react/jsx-runtime";var Ss="k-list-ul",Ae=e=>{let{children:t,role:o,id:n,...i}=e;return As("ul",{...i,id:n,role:o,className:a(Ss,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 ys}from"react/jsx-runtime";var Cs="k-list-content",U=e=>{let{virtualization:t,grouping:o,"aria-label":n,"aria-labelledby":i,listboxId:l,...p}=e;return ys("div",{...p,className:a(Cs,e.className),role:o?"listbox":void 0,id:o?l:void 0,"aria-label":o?n:void 0,"aria-labelledby":o?i:void 0,children:[o?e.children:lo(Ae,{role:"listbox",id:l,"aria-label":n,"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 Os}from"react/jsx-runtime";var ht="k-list-sticky-header",Ts=[s.hover,s.focus,s.selected],Es={},Ms={},Nt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:n,indeterminate:i,hover:l,focus:p,selected:d,...c}=e;return po("div",{...c,className:a(ht,e.className),children:Os("div",{className:a(`${ht}-item`,M(`${ht}-item`,{hover:l,focus:p,selected:d})),children:[o&&po(G,{checked:n,indeterminate:i,"aria-label":t}),po("span",{className:"k-list-item-text",children:t})]})})};Nt.states=Ts;Nt.options=Es;Nt.className=ht;Nt.defaultOptions=Ms;import{Fragment as Vf,jsx as Ff,jsxs as Gf}from"react/jsx-runtime";import{jsx as co,jsxs as ws}from"react/jsx-runtime";var Ps="k-list-group-item",it=e=>{let{groupIconName:t,...o}=e;return ws("li",{...o,role:"presentation",className:a(Ps,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 Ds}from"react/jsx-runtime";var mo="k-list-optionlabel",Rs=[s.hover,s.focus,s.selected,s.disabled],Ks={},_s={},Lt=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:l,...p}=e;return Ds("div",{...p,className:a(mo,M(mo,{hover:o,focus:n,selected:i,disabled:l})),children:t})};Lt.states=Rs;Lt.options=Ks;Lt.className=mo;Lt.defaultOptions=_s;import{jsx as Us}from"react/jsx-runtime";var uo="k-list-custom-value",Hs=[s.hover,s.focus,s.selected,s.disabled],zs={},Bs={},gt=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:l,...p}=e;return Us("div",{...p,className:a(uo,M(uo,{hover:o,focus:n,selected:i,disabled:l})),children:t})};gt.states=Hs;gt.options=zs;gt.className=uo;gt.defaultOptions=Bs;import{Fragment as sb,jsx as ab,jsxs as rb}from"react/jsx-runtime";import{Fragment as ub,jsx as mb,jsxs as fb}from"react/jsx-runtime";import{Fragment as vb,jsx as Lb,jsxs as gb}from"react/jsx-runtime";import{Fragment as Tb,jsx as Cb,jsxs as yb}from"react/jsx-runtime";import{jsx as Pb}from"react/jsx-runtime";import{Fragment as Hb,jsx as Db,jsxs as zb}from"react/jsx-runtime";var ki="dropdown-list",Si="dropdownlist";import{Fragment as Gs,jsx as F,jsxs as fo}from"react/jsx-runtime";var Ai="k-dropdownlist",Fs=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Vs={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:n,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:P,required:E,loading:L,disabled:I,readonly:w,popup:Q,opened:C,adaptive:Le,adaptiveSettings:ge,adaptiveTitle:Ge,adaptiveSubtitle:Di,adaptiveFilter:Hi,id:Xe,activeDescendant:go,"aria-label":zi,...Bi}=e,Ui=Xe?`${Xe}-listbox`:void 0,vo=Xe?`${Xe}-value`:void 0;return fo(Gs,{children:[fo(de,{...Bi,id:Xe,size:t,rounded:o,fillMode:n,hover:N,focus:g,valid:k,invalid:P,required:E,loading:L,disabled:I,readonly:w,className:a(e.className,Ai,{"k-icon-picker":!l&&p}),role:"combobox","aria-haspopup":"listbox","aria-expanded":C?"true":"false","aria-controls":C?Ui:void 0,"aria-activedescendant":C&&go?go:void 0,"aria-describedby":C?vo:void 0,"aria-disabled":I?"true":void 0,"aria-label":zi,tabIndex:0,children:[F(pe,{children:d}),F(Qe,{placeholder:b,value:u,showValue:l,valueIconName:p,id:vo}),F($,{valid:k,invalid:P,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})]}),C&&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:Hi,inputValue:u,inputPlaceholder:b,title:Ge,subtitle:Di}),children:F("div",{className:"k-list-container",children:F(T,{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=Fs;K.options=Vs;K.className=Ai;K.defaultOptions=bo;K.moduleName=ki;K.folderName=Si;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 Lx}from"react/jsx-runtime";import{jsx as Ax,jsxs as Cx}from"react/jsx-runtime";import{Fragment as Kx,jsx as wx,jsxs as Rx}from"react/jsx-runtime";import{jsx as Bx}from"react/jsx-runtime";import{jsx as $x,jsxs as qx}from"react/jsx-runtime";import{Fragment as oh,jsx as eh,jsxs as th}from"react/jsx-runtime";import{jsx as rh}from"react/jsx-runtime";import{Fragment as Ys,jsx as he,jsxs as Ci}from"react/jsx-runtime";var Xs=K.states,$s=K.defaultOptions,qs=K.options,Ws=[{name:"opened",title:"Opened"}],Js=[],Be=e=>{let{modifiers:t,...o}=e,n={},i=Ci(Ys,{children:[he("div",{className:"k-list-filter",children:he(J,{})}),he(T,{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"&&(n.opened=!!t?.[l],n.popup=t?.[l]?i:void 0)}),he("div",{children:he(K,{placeholder:"Value",style:{width:300},...o,...n})})};Be.options=qs;Be.states=Xs;Be.variants=Js;Be.defaultOptions=$s;Be.modifiers=Ws;Be.className=K.className;import{jsx as yi,jsxs as tr}from"react/jsx-runtime";var Ti="k-spin-button",js=[],er={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:n,increaseLabel:i=xo.increaseLabel,decreaseLabel:l=xo.decreaseLabel,...p}=e;return tr("span",{...p,className:a(Ti,e.className),children:[yi(h,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:n,"aria-label":i}),yi(h,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:n,"aria-label":l})]})};Ne.states=js;Ne.options=er;Ne.className=Ti;Ne.defaultOptions=xo;Ne.moduleName=null;Ne.folderName=null;var Ei="numeric-textbox",Mi="numerictextbox";import{Fragment as Oi,jsx as le,jsxs as ho}from"react/jsx-runtime";var Pi="k-numerictextbox",or=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],ir={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:n,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:P,required:E,loading:L,disabled:I,readonly:w,id:Q,"aria-label":C,"aria-describedby":Le,...ge}=e;return ho(R,{...ge,size:t,rounded:o,fillMode:n,hover:N,focus:g,valid:k,invalid:P,required:E,loading:L,disabled:I,readonly:w,className:a(e.className,Pi),children:[d&&ho(Oi,{children:[le(pe,{children:d}),i&&le(ae,{})]}),le(j,{id:Q,placeholder:b,value:u,role:"spinbutton",disabled:I,"aria-label":C,"aria-describedby":Le,"aria-invalid":P?"true":void 0}),le($,{valid:k,invalid:P,loading:L,disabled:I}),le(W,{loading:L,disabled:I}),l&&le(Z,{loading:L,disabled:I,readonly:w,value:u}),c&&ho(Oi,{children:[i&&le(ae,{}),le(ce,{children:c})]}),p&&le(Ne,{className:"k-input-spinner",size:t,fillMode:n,disabled:I})]})};V.states=or;V.options=ir;V.className=Pi;V.defaultOptions=vt;V.moduleName=Ei;V.folderName=Mi;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 nr}from"react/jsx-runtime";var wi=e=>nr(nt,{...e});import{Fragment as qh,jsx as $h}from"react/jsx-runtime";import{Fragment as jh,jsx as Zh}from"react/jsx-runtime";import{jsx as iN}from"react/jsx-runtime";import{jsx as No}from"react/jsx-runtime";var ar=V.states,sr=V.defaultOptions,rr=V.options,lr=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"spin-button",title:"`Spin` Button"}],dr=[],Ue=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":n.prefix=t?.[i]?No(K,{size:o.size,fillMode:"flat",value:"mm"}):void 0;break;case"suffix":n.suffix=t?.[i]?No(Dt,{children:"mm"}):void 0;break;case"clear-button":n.showClearButton=t?.[i];break;case"spin-button":n.showSpinButton=t?.[i];break;default:break}}),No(wi,{value:"Value",style:{width:300},...o,...n})};Ue.options=rr;Ue.states=ar;Ue.variants=dr;Ue.defaultOptions=sr;Ue.modifiers=lr;Ue.className=V.className;var Lo="pager",Ri=Lo;import{Fragment as Ki,jsx as X,jsxs as Fe}from"react/jsx-runtime";var It="k-pager",pr=[s.focus,s.disabled],cr={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},O=e=>{let{responsive:t=q.responsive,size:o,pagerSizeInfo:n=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:P,disabled:E,dir:L,...I}=e,w=[],Q=[];for(let C=1;C<=d;C++)w.push(X(h,{selected:C===c,fillMode:"flat",themeColor:"primary",size:o,"aria-label":`Page ${C}`,...C===c&&{"aria-current":"page"},children:C},C)),Q.push(X("option",{selected:C===c,children:C},C));return Fe("div",{dir:L,...I,className:a(e.className,It,A(It,{size:o}),M(It,{focus:P,disabled:E}),{"k-pager-responsive":t}),role:"application","aria-roledescription":"pager","aria-keyshortcuts":"Enter ArrowRight ArrowLeft","aria-label":`Page ${c} of ${d}`,children:[Fe("div",{className:a("k-pager-numbers-wrap"),children:[u&&Fe(Ki,{children:[X(h,{className:a("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:a("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:a("k-pager-numbers"),children:w}),b==="input"&&Fe("span",{className:a("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(Ki,{children:[