@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 52.3 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"}),y=(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:O,...M}=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":O},Object.keys(M).reduce((L,I)=>(I.startsWith("k-")?L[I]=M[I]:L[`k-${I}`]=M[I],L),{}))};function vo(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"},te={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 It={};function T(e){return It[e]=(It[e]||0)+1,`k-${e}-${It[e]}`}import{Fragment as Vi,jsx as Io}from"react/jsx-runtime";var kt="k-font-icon",Bi=[],Ui={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]},Fi={},Xe=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:l,...p}=e;return n?Io("span",{...p,className:a(e.className,kt,A(kt,{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"}):Io(Vi,{})};Xe.states=Bi;Xe.options=Ui;Xe.className=kt;Xe.defaultOptions=Fi;var ko=Xe;import{Fragment as $i,jsx as nt}from"react/jsx-runtime";var St="k-svg-icon",Gi=[],Xi={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:[te.outline,te.solid,te.duotone]},At={viewBox:"0 0 24 24",variant:te.outline},$e=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:l=At.viewBox,variant:p=At.variant,icon:d,...c}=e;if(!d)return nt($i,{});if(d==="none")return nt("span",{...c,className:a(e.className,St,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 nt("span",{...c,className:a(e.className,St,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:nt("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})})};$e.states=Gi;$e.options=Xi;$e.className=St;$e.defaultOptions=At;var Ct=$e;import*as Tt from"@progress/kendo-svg-icons";var So="icon",Ao="icons";import{useContext as Wi}from"react";import{createContext as qi}from"react";var Co=qi({iconsType:"svg"});import{Fragment as To,jsx as qe}from"react/jsx-runtime";var at="k-icon",Ji=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),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:[te.outline,te.solid,te.duotone]},st={viewBox:"0 0 24 24",type:"svg",variant:te.outline},v=e=>{let{iconsType:t}=Wi(Co),{size:o,themeColor:n,icon:i,type:l=t||st.type,rotate:p,flip:d,viewBox:c=st.viewBox,variant:u=st.variant,...b}=e;if(!i)return qe(To,{});if((t||l)==="svg"){if(i==="none")return qe(Ct,{...b,className:a(e.className,at),icon:i,size:o,variant:u});let g=Tt[i]?i:Ji(`${i}-icon`);return Tt[g]?qe(Ct,{...b,className:a(e.className,at),icon:Tt[g],size:o,themeColor:n,rotate:p,flip:d,viewBox:c,variant:u}):qe(To,{})}return qe(ko,{...b,className:a(e.className,at),icon:i,size:o,themeColor:n,rotate:p,flip:d})};v.states=Yi;v.options=Qi;v.defaultOptions=st;v.className=at;v.moduleName=So;v.folderName=Ao;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 yo}from"react/jsx-runtime";var We="k-button",Zi=["icon-button"],ji=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],en={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:O,ariaDisabled:M,icon:L,iconSize:I,text:P,iconClassName:Y,className:C,...Le}=e,ge=L!=null,Ve=e.children!==void 0;return yo(t,{className:a(C,We,vo(We,c),A(We,{size:o,rounded:n,fillMode:i,themeColor:l}),y(We,{hover:u,focus:b,active:N,disabled:k||M,selected:g}),{"k-icon-button":!P&&!Ve&&ge}),"aria-pressed":O?g?"true":"false":void 0,...Le,"aria-disabled":M?"true":void 0,disabled:k||void 0,children:[typeof L=="string"&&L&&Ce(v,{className:a(Y,"k-button-icon"),icon:L,size:I}),L&&typeof L!="string"&&Ce(Mo,{children:L}),P?yo(Mo,{children:[P&&Ce("span",{className:"k-button-text",children:P}),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=ji;h.options=en;h.variants=Zi;h.className=We;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 tn}from"react/jsx-runtime";var Oo=e=>tn(h,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as on}from"react/jsx-runtime";var Po=e=>on(h,{icon:"folder",children:"Button",...e});import{jsx as nn}from"react/jsx-runtime";var ve=e=>nn(h,{children:"Button",...e});import{jsx as yt}from"react/jsx-runtime";var an=h.options,sn=h.states,rn={...h.defaultOptions,variant:"text"},ln=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],dn=[],Te=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return yt(Oo,{...o,icon:"star"});case"icon-and-text":return yt(Po,{...o,icon:"star",children:"Button"});default:return yt(ve,{...o,children:"Button"})}};Te.options=an;Te.states=sn;Te.variants=ln;Te.defaultOptions=rn;Te.modifiers=dn;Te.className=h.className;var Je="input",rt=Je;import{jsx as un}from"react/jsx-runtime";var lt="k-input",pn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],cn={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]},mn={},w=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 un("span",{...N,className:a(e.className,lt,A(lt,{size:c,rounded:u,fillMode:b}),y(lt,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:d}))})};w.states=pn;w.options=cn;w.className=lt;w.defaultOptions=mn;w.moduleName=Je;w.folderName=rt;import{jsx as hn}from"react/jsx-runtime";var dt="k-picker",fn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],bn={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]},xn={},le=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 hn("span",{...N,className:a(e.className,dt,A(dt,{size:c,rounded:u,fillMode:b}),y(dt,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:d})),children:e.children})};le.states=fn;le.options=bn;le.className=dt;le.defaultOptions=xn;le.moduleName=Je;le.folderName=rt;import{Fragment as gn,jsx as Ot}from"react/jsx-runtime";var wo="k-clear-value",Nn=[s.disabled,s.loading,s.readonly],Ln={},Q=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?Ot(gn,{}):Ot("span",{className:a(e.className,wo),children:Ot(v,{icon:"x"})})};Q.states=Nn;Q.options=Ln;Q.className=wo;import{jsx as kn}from"react/jsx-runtime";var Pt="k-input-inner",vn=[],In={},pt={type:"text",autocomplete:"off",value:"",placeholder:""},Z=e=>{let{value:t=pt.value,type:o=pt.type,placeholder:n=pt.placeholder,autocomplete:i=pt.autocomplete,disabled:l,readOnly:p,...d}=e;return kn("input",{...d,type:o,className:a(e.className,Pt,A(Pt,e)),placeholder:n,autoComplete:i,defaultValue:t,disabled:l||void 0,readOnly:p||void 0})};Z.states=vn;Z.options=In;Z.className=Pt;import{jsx as Ro,jsxs as Cn}from"react/jsx-runtime";var wt="k-input-inner",Sn=[],An={},Ye=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:l,...p}=e;return Cn("span",{...p,className:a(e.className,wt,A(wt,e)),children:[i,!i&&l&&Ro(v,{className:"k-input-value-icon",icon:l}),n&&!t&&o,n&&t&&Ro("span",{className:"k-input-value-text",children:t})]})};Ye.states=Sn;Ye.options=An;Ye.className=wt;import{jsx as Mn}from"react/jsx-runtime";var Rt="k-input-inner",Tn=[],En={},Ko={value:"",placeholder:""},Kt=e=>{let{value:t=Ko.value,placeholder:o=Ko.placeholder,rows:n,disabled:i,...l}=e;return Mn("textarea",{...l,className:a(e.className,Rt,A(Rt,e)),placeholder:o,rows:n,defaultValue:t,disabled:i||void 0})};Kt.states=Tn;Kt.options=En;Kt.className=Rt;import{Fragment as On,jsx as _o}from"react/jsx-runtime";var Do="k-input-loading-icon",yn=[s.disabled,s.loading],q=e=>{let{disabled:t,loading:o}=e;return t||!o?_o(On,{}):_o("span",{className:a(e.className,Do,"k-icon k-i-loading")})};q.states=yn;q.className=Do;import{Fragment as Rn,jsx as Ho}from"react/jsx-runtime";var zo="k-input-validation-icon",Pn=[s.valid,s.invalid,s.disabled,s.loading],wn={},X=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,l=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?Ho(Rn,{}):Ho(v,{className:a(zo),icon:l})};X.states=Pn;X.options=wn;X.className=zo;import{Fragment as Dn,jsx as Bo}from"react/jsx-runtime";var Kn="k-input-prefix",_n={direction:"horizontal"},de=e=>{let{direction:t=_n.direction,...o}=e;return e.children?Bo("span",{...o,className:a(Kn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Bo(Dn,{})};import{Fragment as Bn,jsx as Uo}from"react/jsx-runtime";var Hn="k-input-suffix",zn={direction:"horizontal"},pe=e=>{let{direction:t=zn.direction,...o}=e;return e.children?Uo("span",{...o,className:a(Hn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Uo(Bn,{})};import{jsx as jl}from"react/jsx-runtime";import{jsx as Fn}from"react/jsx-runtime";var Un="k-input-suffix-text",_t=e=>{let{children:t,...o}=e;return Fn("span",{...o,className:a(Un,e.className),children:t})};import{jsx as Gn}from"react/jsx-runtime";var Fo="k-input-separator",Vn={direction:"vertical"},ne=e=>{let{direction:t=Vn.direction,...o}=e;return Gn("span",{...o,className:a(Fo,e.className,{[`${Fo}-${t}`]:t})})};import{Fragment as Vo,jsx as oe,jsxs as Dt}from"react/jsx-runtime";var Xn=w.states,$n=w.defaultOptions,qn=w.options,Wn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Jn=[],Ee=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 Dt(w,{...d,valid:o,invalid:n,loading:i,disabled:l,readonly:p,style:{width:300},children:[c&&Dt(Vo,{children:[oe(de,{children:oe(v,{icon:"lock"})}),g&&oe(ne,{})]}),oe(Z,{placeholder:"Placeholder",value:"Value"}),N&&oe(X,{valid:o,invalid:n,loading:i,disabled:l}),oe(q,{loading:i,disabled:l}),b&&oe(Q,{loading:i,disabled:l,readonly:p,value:"Value"}),u&&Dt(Vo,{children:[g&&oe(ne,{}),oe(pe,{children:oe(ve,{size:d.size,fillMode:"clear",children:"Send"})})]})]})};Ee.options=qn;Ee.states=Xn;Ee.variants=Jn;Ee.defaultOptions=$n;Ee.modifiers=Wn;Ee.className=w.className;var Ht="popup",Go=Ht;import{jsx as Xo}from"react/jsx-runtime";var $o="k-animation-container",Yn=[],Qn={},zt={positionMode:"absolute",shown:!0},ie=e=>{let{positionMode:t=zt.positionMode,shown:o=zt.shown,animationStyle:n,offset:i,...l}=e;return Xo("div",{...l,style:{...i,...e.style},className:a(e.className,$o,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Xo("div",{className:"k-child-animation-container",style:n,children:e.children})})};ie.states=Yn;ie.options=Qn;ie.className=$o;ie.defaultOptions=zt;ie.moduleName=Ht;ie.folderName=Go;var Bt="popup",qo=Bt;import{jsx as Wo}from"react/jsx-runtime";var Jo="k-popup",Zn=[],jn={},Yo={positionMode:"absolute"},ae=e=>{let{offset:t,positionMode:o=Yo.positionMode,animationStyle:n,containerClassName:i,containerRole:l,containerAriaLabel:p,...d}=e;return Wo(ie,{positionMode:o,offset:t,animationStyle:n,className:i,role:l,"aria-label":p,children:Wo("div",{...d,className:a(e.className,Jo),children:e.children})})};ae.states=Zn;ae.options=jn;ae.className=Jo;ae.defaultOptions=Yo;ae.moduleName=Bt;ae.folderName=qo;ae.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 Ut="action-buttons",Qo=Ut;import{jsx as oa}from"react/jsx-runtime";var ct="k-actions",ea=[],ta={},Ft={alignment:"start",orientation:"horizontal"},ce=e=>{let{alignment:t=Ft.alignment,orientation:o=Ft.orientation,...n}=e;return oa("div",{...n,className:a(ct,{[`${ct}-${t}`]:t,[`${ct}-${o}`]:o},e.className),children:e.children})};ce.states=ea;ce.options=ta;ce.className=ct;ce.defaultOptions=Ft;ce.moduleName=Ut;ce.folderName=Qo;import{jsx as na}from"react/jsx-runtime";var ia="k-actionsheet-footer",Zo={alignment:"stretched",orientation:"horizontal"},Me=e=>{let{alignment:t=Zo.alignment,orientation:o=Zo.orientation,template:n,as:i=n?"div":ce,...l}=e;return na(i,{...l,...!n&&{alignment:t,orientation:o},className:a(e.className,ia),children:e.children})};var Vt="searchbox",jo=Vt;import{jsx as Qe,jsxs as ra}from"react/jsx-runtime";var ei="k-searchbox",aa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],sa={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]},Gt={showIcon:!0,icon:"search"},W=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=Gt.showIcon,icon:O=Gt.icon,"aria-label":M,...L}=e;return ra(w,{...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,ei),children:[k&&Qe(v,{className:"k-input-icon",icon:O}),Qe(Z,{placeholder:o,value:t,"aria-label":M}),Qe(q,{...e}),Qe(X,{...e}),Qe(Q,{...e})]})};W.states=aa;W.options=sa;W.className=ei;W.defaultOptions=Gt;W.moduleName=Vt;W.folderName=jo;import{jsx as Np}from"react/jsx-runtime";var Xt="textbox",ti=Xt;import{Fragment as oi,jsx as me,jsxs as $t}from"react/jsx-runtime";var ii="k-textbox",la=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],da={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]},mt={showClearButton:!0,showValidationIcon:!0,separators:!0},D=e=>{let{size:t,rounded:o,fillMode:n,separators:i=mt.separators,showClearButton:l=mt.showClearButton,showValidationIcon:p=mt.showValidationIcon,prefix:d,suffix:c,type:u,value:b,placeholder:N,hover:g,focus:k,valid:O,invalid:M,required:L,loading:I,disabled:P,readonly:Y,id:C,"aria-label":Le,"aria-describedby":ge,...Ve}=e;return $t(w,{...Ve,size:t,rounded:o,fillMode:n,hover:g,focus:k,valid:O,invalid:M,required:L,loading:I,disabled:P,readonly:Y,className:a(e.className,ii),children:[d&&$t(oi,{children:[me(de,{children:d}),i&&me(ne,{})]}),me(Z,{id:C,placeholder:N,value:b,type:u,disabled:P,"aria-label":Le,"aria-describedby":ge,"aria-invalid":M?"true":void 0}),p&&me(X,{valid:O,invalid:M,loading:I,disabled:P}),me(q,{loading:I,disabled:P}),l&&me(Q,{loading:I,disabled:P,readonly:Y,value:b}),c&&$t(oi,{children:[i&&me(ne,{}),me(pe,{children:c})]})]})};D.states=la;D.options=da;D.className=ii;D.defaultOptions=mt;D.moduleName=Xt;D.folderName=ti;D.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 Ze=D;import{jsx as pa}from"react/jsx-runtime";var ni=e=>pa(Ze,{...e});import{Fragment as _p,jsx as Kp}from"react/jsx-runtime";import{Fragment as Fp,jsx as Up}from"react/jsx-runtime";import{jsx as $p}from"react/jsx-runtime";import{jsx as qt}from"react/jsx-runtime";var ca=D.states,ma=D.defaultOptions,ua=D.options,fa=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],ba=[],ye=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":n.prefix=t?.[i]?qt(v,{icon:"lock"}):void 0;break;case"suffix":n.suffix=t?.[i]?qt(ve,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":n.showClearButton=t?.[i];break;default:break}}),qt(ni,{value:"Value",style:{width:300},...o,...n})};ye.options=ua;ye.states=ca;ye.variants=ba;ye.defaultOptions=ma;ye.modifiers=fa;ye.className=D.className;import{jsx as ue,jsxs as Wt}from"react/jsx-runtime";var ai="k-actionsheet-titlebar",xa={},j=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 Wt("div",{...g,className:a(e.className,ai),children:[Wt("div",{className:"k-actionsheet-titlebar-group",children:[n&&ue("div",{className:"k-actionsheet-actions",children:n}),!N&&Wt("div",{className:"k-actionsheet-title",id:b,children:[t&&ue("div",{className:"k-text-center",children:t}),o&&ue("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&ue("div",{className:"k-actionsheet-title",id:b,children:N}),i&&ue("div",{className:"k-actionsheet-actions",children:i})]}),(p||l)&&ue("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?ue(D,{value:d,placeholder:c,size:u?"large":"medium","aria-label":t||c||"Input"}):ue(W,{placeholder:"Filter",size:u?"large":"medium","aria-label":"Filter options"})})]})};j.className=ai;j.defaultOptions=xa;import{jsx as Jt,jsxs as ga}from"react/jsx-runtime";var Yt="k-actionsheet-view",ha=[],Na={},La={},Oe=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:l,titleId:p,...d}=e,c=i?.type===j&&Jt(j,{adaptive:t,titleId:p,...i?.props}),u=l?.type===Me&&Jt(Me,{...l?.props});return ga("div",{...d,className:a(e.className,Yt,{[`${Yt}-animated`]:o}),children:[c,Jt("div",{className:"k-actionsheet-content",children:n}),u]})};Oe.states=ha;Oe.options=Na;Oe.className=Yt;Oe.defaultOptions=La;var je="action-sheet",ut=je;var Qt="overlay",si=Qt;import{jsx as Sa}from"react/jsx-runtime";var ri="k-overlay",va=[],Ia={},ka={},fe=e=>{let{...t}=e;return Sa("div",{...t,className:a(e.className,ri),children:e.children})};fe.states=va;fe.options=Ia;fe.className=ri;fe.defaultOptions=ka;fe.moduleName=Qt;fe.folderName=si;import{jsx as ft,jsxs as Ta}from"react/jsx-runtime";var li="k-actionsheet",Aa=[],Ca={},et={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},K=e=>{let{side:t=et.side,fullscreen:o=et.fullscreen,adaptive:n=et.adaptive,overlay:i=et.overlay,template:l,children:p,header:d,footer:c,id:u,...b}=e,N=u&&!l&&d?`${u}-title`:void 0;return Ta("div",{className:"k-actionsheet-container",children:[i&&ft(fe,{}),ft(ie,{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:ft("div",{...b,id:u,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":N,className:a(e.className,li,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:l||ft(Oe,{header:d,footer:c,adaptive:n,titleId:N,...e,children:p})})})]})};K.states=Aa;K.options=Ca;K.className=li;K.defaultOptions=et;K.moduleName=je;K.folderName=ut;K.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 Oa}from"react/jsx-runtime";var di="k-actionsheet-container",Ea=[],Ma={},ya={},Pe=e=>{let{children:t,...o}=e;return Oa("div",{...o,className:di,children:t})};Pe.states=Ea;Pe.options=Ma;Pe.className=di;Pe.defaultOptions=ya;Pe.moduleName=je;Pe.folderName=ut;import{jsx as Pa}from"react/jsx-runtime";var Zt=e=>{let{...t}=e;return Pa("div",{...t,className:a(e.className,"k-list-ul"),children:e.children})};import{Fragment as Ra,jsx as tt,jsxs as jt}from"react/jsx-runtime";var eo="k-actionsheet-item",wa=[s.hover,s.focus,s.selected,s.disabled],be=e=>{let{iconName:t,text:o,description:n,hover:i,focus:l,selected:p,disabled:d,...c}=e;return jt("span",{...c,className:a(e.className,eo,y(eo,{hover:i,focus:l,selected:p,disabled:d})),children:[!e.children&&tt(Ra,{children:jt("span",{className:"k-actionsheet-action",children:[t&&tt("span",{className:"k-icon-wrap",children:tt(v,{className:"k-actionsheet-item-icon",icon:t})}),jt("span",{className:"k-actionsheet-item-text",children:[o&&tt("span",{className:"k-actionsheet-item-title",children:o}),n&&tt("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};be.states=wa;be.className=eo;import{jsx as Xc,jsxs as $c}from"react/jsx-runtime";import{jsx as Yc}from"react/jsx-runtime";import{jsx as em}from"react/jsx-runtime";import{jsx as nm}from"react/jsx-runtime";import{jsx as _,jsxs as to}from"react/jsx-runtime";var Ka=K.options,_a=K.states,ci={...K.defaultOptions,variant:"normal"},Da=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Ha=[{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}={...ci,...e},i={},l=to(Zt,{children:[_(be,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),_(be,{text:"Add to Favorites",iconName:"heart"}),_(be,{text:"Upload New",iconName:"upload",disabled:!0}),_("hr",{className:"k-hr"}),_(be,{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"?_(K,{...n,adaptive:!0,fullscreen:i.fullScreen,header:_(j,{actionsStart:i.actionsStart?_(h,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?_(h,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:d,subtitle:i.subtitle}),footer:i.footer?to(Me,{alignment:"stretched",children:[_(h,{text:"Cancel",size:"large",themeColor:"base"}),_(h,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:l}):_(K,{...n,fullscreen:i.fullScreen,header:_(j,{actionsStart:i.actionsStart?_(h,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?_(h,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:i.subtitle}),footer:i.footer?to(Me,{alignment:"stretched",children:[_(h,{text:"Apply",themeColor:"primary"}),_(h,{text:"Cancel",themeColor:"base"})]}):void 0,children:l})};we.options=Ka;we.states=_a;we.variants=Da;we.defaultOptions=ci;we.modifiers=Ha;we.className=K.className;import no from"react";import{jsx as mi}from"react/jsx-runtime";var za="k-list-group-sticky-header",oo=e=>mi("div",{className:a(za,e.className),children:mi("div",{className:"k-list-header-text",children:e.children})});import{jsx as Ua}from"react/jsx-runtime";var Ba="k-no-data",io=e=>{let{live:t,...o}=e;return Ua("span",{...o,className:a(Ba,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Ie="list",Re=Ie;import{jsx as ui,jsxs as fi}from"react/jsx-runtime";var ao="k-list",Fa=[],Va={size:[r.undefined,r.small,r.medium,r.large]},Ga={},E=e=>{let{size:t,virtualization:o,children:n,header:i,selectAll:l,optionLabel:p,customValue:d,noData:c,screenReaders:u,...b}=e,g=no.Children.toArray(n)[0],k=g?.props?.children?no.Children.count(g.props.children):no.Children.count(n);return fi("div",{...b,className:a(e.className,ao,A(ao,{size:t}),{"k-virtual-list":o}),children:[p,l,d,i&&ui(oo,{children:i}),n||(c!==void 0?c:ui(io,{live:!0,children:"No data found."})),u&&n&&fi(io,{className:"k-sr-only",live:!0,children:[k," items found."]})]})};E.states=Fa;E.options=Va;E.className=ao;E.defaultOptions=Ga;E.moduleName=Ie;E.folderName=Re;E.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 Wa}from"react/jsx-runtime";var bi="k-list-container",Xa=[],$a={},qa={},Ke=e=>{let{...t}=e;return Wa("div",{...t,className:a(e.className,bi),children:e.children})};Ke.states=Xa;Ke.options=$a;Ke.className=bi;Ke.defaultOptions=qa;Ke.moduleName=Ie;Ke.folderName=Re;var ke="checkbox",_e=ke;import{jsx as xi}from"react/jsx-runtime";var bt="k-checkbox",Ja=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],Ya={size:[r.undefined,r.small,r.medium,r.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full]},Qa={},V=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 xi("span",{className:"k-checkbox-wrap",role:g,children:xi("input",{...k,id:t,type:"checkbox",defaultChecked:o,required:u,disabled:p||void 0,"aria-invalid":d?"true":void 0,className:a(e.className,bt,A(bt,{size:b,rounded:N}),y(bt,{hover:i,focus:l,disabled:p,invalid:d,valid:c,indeterminate:n,checked:o}))})})};V.states=Ja;V.options=Ya;V.className=bt;V.defaultOptions=Qa;V.moduleName=ke;V.folderName=_e;V.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 ee=V;import{jsx as es}from"react/jsx-runtime";var hi="k-checkbox-list",Za=[],ja={},Ni={layout:"vertical"},H=e=>{let{layout:t=Ni.layout,...o}=e;return es("ul",{...o,className:a(e.className,hi,{[`k-list-${t}`]:t}),children:e.children})};H.states=Za;H.options=ja;H.className=hi;H.defaultOptions=Ni;H.moduleName=ke;H.folderName=_e;import{jsx as ns}from"react/jsx-runtime";var Li="k-checkbox-list-item",ts=[],os={},is={},z=e=>{let{...t}=e;return ns("li",{...t,className:a(e.className,Li),children:e.children})};z.states=ts;z.options=os;z.className=Li;z.defaultOptions=is;z.moduleName=ke;z.folderName=_e;import{Fragment as as,jsx as gi,jsxs as ss}from"react/jsx-runtime";var se=({children:e="Label",id:t="cb-label-after",...o})=>ss(as,{children:[gi(ee,{id:t,...o}),gi("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as uu,jsx as mu,jsxs as fu}from"react/jsx-runtime";import{Fragment as Lu,jsx as Nu,jsxs as gu}from"react/jsx-runtime";import{Fragment as Au,jsx as Su,jsxs as Cu}from"react/jsx-runtime";import{jsx as yu}from"react/jsx-runtime";import{jsx as Ru}from"react/jsx-runtime";import{jsx as Hu}from"react/jsx-runtime";import{jsx as J,jsxs as vi}from"react/jsx-runtime";var rs=H.options,ls=H.states,ds={...H.defaultOptions,variant:"vertical"},ps=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],cs=[],De=e=>{let{variant:t,...o}=e;return t==="horizontal"?vi(H,{layout:"horizontal",...o,children:[J(z,{children:J(se,{id:T("cb"),defaultChecked:!0,children:"Label"})}),J(z,{children:J(se,{id:T("cb"),children:"Label"})}),J(z,{children:J(se,{id:T("cb"),children:"Label"})})]}):vi(H,{...o,children:[J(z,{children:J(se,{id:T("cb"),defaultChecked:!0,children:"Label"})}),J(z,{children:J(se,{id:T("cb"),children:"Label"})}),J(z,{children:J(se,{id:T("cb"),children:"Label"})})]})};De.options=rs;De.states=ls;De.variants=ps;De.defaultOptions=ds;De.modifiers=cs;De.className=H.className;import{jsx as hs}from"react/jsx-runtime";var ms=ee.options,us=ee.states,fs=ee.defaultOptions,bs=[],xs=[],He=e=>hs(se,{id:T("checkbox"),...e,defaultChecked:!0,children:"Label"});He.options=ms;He.states=us;He.variants=bs;He.defaultOptions=fs;He.modifiers=xs;He.className=ee.className;import{jsx as Se,jsxs as vs}from"react/jsx-runtime";var so="k-list-item",Ns=[s.hover,s.focus,s.selected,s.disabled],Ls={},gs={},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:O,...M}=e,L=t||e.children;return vs("li",{...M,id:O,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":so,y(so,{hover:c,focus:u,disabled:N,selected:b})),children:[p&&Se(V,{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=Ns;S.options=Ls;S.className=so;S.defaultOptions=gs;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 ks}from"react/jsx-runtime";var Is="k-list-ul",Ae=e=>{let{children:t,role:o,id:n,...i}=e;return ks("ul",{...i,id:n,role:o,className:a(Is,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 ro,jsxs as As}from"react/jsx-runtime";var Ss="k-list-content",B=e=>{let{virtualization:t,grouping:o,"aria-label":n,"aria-labelledby":i,listboxId:l,...p}=e;return As("div",{...p,className:a(Ss,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:ro(Ae,{role:"listbox",id:l,"aria-label":n,"aria-labelledby":i,children:e.children}),t&&ro("div",{className:"k-height-container",children:ro("div",{})})]})};B.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 lo,jsxs as Ms}from"react/jsx-runtime";var xt="k-list-sticky-header",Cs=[s.hover,s.focus,s.selected],Ts={},Es={},ht=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:n,indeterminate:i,hover:l,focus:p,selected:d,...c}=e;return lo("div",{...c,className:a(xt,e.className),children:Ms("div",{className:a(`${xt}-item`,y(`${xt}-item`,{hover:l,focus:p,selected:d})),children:[o&&lo(V,{checked:n,indeterminate:i,"aria-label":t}),lo("span",{className:"k-list-item-text",children:t})]})})};ht.states=Cs;ht.options=Ts;ht.className=xt;ht.defaultOptions=Es;import{Fragment as wf,jsx as Pf,jsxs as Rf}from"react/jsx-runtime";import{jsx as po,jsxs as Os}from"react/jsx-runtime";var ys="k-list-group-item",ot=e=>{let{groupIconName:t,...o}=e;return Os("li",{...o,role:"presentation",className:a(ys,e.className),children:[t&&po("span",{className:"k-list-item-icon-wrapper",children:po(v,{icon:t,className:"k-list-item-icon"})}),po("span",{className:"k-list-item-text",children:e.children})]})};ot.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 Ks}from"react/jsx-runtime";var co="k-list-optionlabel",Ps=[s.hover,s.focus,s.selected,s.disabled],ws={},Rs={},Nt=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:l,...p}=e;return Ks("div",{...p,className:a(co,y(co,{hover:o,focus:n,selected:i,disabled:l})),children:t})};Nt.states=Ps;Nt.options=ws;Nt.className=co;Nt.defaultOptions=Rs;import{jsx as zs}from"react/jsx-runtime";var mo="k-list-custom-value",_s=[s.hover,s.focus,s.selected,s.disabled],Ds={},Hs={},Lt=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:l,...p}=e;return zs("div",{...p,className:a(mo,y(mo,{hover:o,focus:n,selected:i,disabled:l})),children:t})};Lt.states=_s;Lt.options=Ds;Lt.className=mo;Lt.defaultOptions=Hs;import{Fragment as Yf,jsx as Jf,jsxs as Qf}from"react/jsx-runtime";import{Fragment as ib,jsx as ob,jsxs as nb}from"react/jsx-runtime";import{Fragment as cb,jsx as db,jsxs as pb}from"react/jsx-runtime";import{Fragment as Nb,jsx as xb,jsxs as hb}from"react/jsx-runtime";import{jsx as Ib}from"react/jsx-runtime";import{Fragment as Eb,jsx as Tb,jsxs as Mb}from"react/jsx-runtime";var Ii="dropdown-list",ki="dropdownlist";import{Fragment as Fs,jsx as U,jsxs as uo}from"react/jsx-runtime";var Si="k-dropdownlist",Bs=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Us={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]},fo={showValue:!0,arrowIconName:"chevron-down"},R=e=>{let{size:t,rounded:o,fillMode:n,arrowIconName:i=fo.arrowIconName,showValue:l=fo.showValue,valueIconName:p,prefix:d,suffix:c,value:u,placeholder:b,hover:N,focus:g,valid:k,invalid:O,required:M,loading:L,disabled:I,readonly:P,popup:Y,opened:C,adaptive:Le,adaptiveSettings:ge,adaptiveTitle:Ve,adaptiveSubtitle:Ki,adaptiveFilter:_i,id:Ge,activeDescendant:Lo,"aria-label":Di,...Hi}=e,zi=Ge?`${Ge}-listbox`:void 0,go=Ge?`${Ge}-value`:void 0;return uo(Fs,{children:[uo(le,{...Hi,id:Ge,size:t,rounded:o,fillMode:n,hover:N,focus:g,valid:k,invalid:O,required:M,loading:L,disabled:I,readonly:P,className:a(e.className,Si,{"k-icon-picker":!l&&p}),role:"combobox","aria-haspopup":"listbox","aria-expanded":C?"true":"false","aria-controls":C?zi:void 0,"aria-activedescendant":C&&Lo?Lo:void 0,"aria-describedby":C?go:void 0,"aria-disabled":I?"true":void 0,"aria-label":Di,tabIndex:0,children:[U(de,{children:d}),U(Ye,{placeholder:b,value:u,showValue:l,valueIconName:p,id:go}),U(X,{valid:k,invalid:O,loading:L,disabled:I}),U(q,{loading:L,disabled:I}),U(pe,{children:c}),U(h,{className:"k-input-button",icon:i,size:e.size,fillMode:e.fillMode,"aria-label":b||"Toggle dropdown",tabIndex:-1})]}),C&&Y&&U(ae,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown suggestions",children:Y}),Le&&U(K,{adaptive:!0,...ge,header:U(j,{actionsEnd:U(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:_i,inputValue:u,inputPlaceholder:b,title:Ve,subtitle:Ki}),children:U("div",{className:"k-list-container",children:U(E,{size:"large",children:uo(B,{"aria-label":"Options",children:[U(S,{text:"List item"}),U(S,{text:"List item"}),U(S,{text:"List item"})]})})})})]})};R.states=Bs;R.options=Us;R.className=Si;R.defaultOptions=fo;R.moduleName=Ii;R.folderName=ki;R.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 dx}from"react/jsx-runtime";import{jsx as bx,jsxs as xx}from"react/jsx-runtime";import{Fragment as Ax,jsx as kx,jsxs as Sx}from"react/jsx-runtime";import{jsx as yx}from"react/jsx-runtime";import{jsx as _x,jsxs as Dx}from"react/jsx-runtime";import{Fragment as $x,jsx as Gx,jsxs as Xx}from"react/jsx-runtime";import{jsx as Qx}from"react/jsx-runtime";import{Fragment as Ws,jsx as xe,jsxs as Ai}from"react/jsx-runtime";var Vs=R.states,Gs=R.defaultOptions,Xs=R.options,$s=[{name:"opened",title:"Opened"}],qs=[],Be=e=>{let{modifiers:t,...o}=e,n={},i=Ai(Ws,{children:[xe("div",{className:"k-list-filter",children:xe(W,{})}),xe(E,{style:{width:300},size:o.size,children:Ai(B,{children:[xe(S,{children:"List item"}),xe(S,{children:"List item"}),xe(S,{children:"List item"})]})})]});return Object.keys(t||{}).forEach(l=>{l==="opened"&&(n.opened=!!t?.[l],n.popup=t?.[l]?i:void 0)}),xe("div",{children:xe(R,{placeholder:"Value",style:{width:300},...o,...n})})};Be.options=Xs;Be.states=Vs;Be.variants=qs;Be.defaultOptions=Gs;Be.modifiers=$s;Be.className=R.className;import{jsx as Ci,jsxs as js}from"react/jsx-runtime";var Ti="k-spin-button",Qs=[],Zs={size:[r.undefined,r.small,r.medium,r.large],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},bo={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},he=e=>{let{size:t,fillMode:o,disabled:n,increaseLabel:i=bo.increaseLabel,decreaseLabel:l=bo.decreaseLabel,...p}=e;return js("span",{...p,className:a(Ti,e.className),children:[Ci(h,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:n,"aria-label":i}),Ci(h,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:n,"aria-label":l})]})};he.states=Qs;he.options=Zs;he.className=Ti;he.defaultOptions=bo;he.moduleName=null;he.folderName=null;var Ei="numeric-textbox",Mi="numerictextbox";import{Fragment as yi,jsx as re,jsxs as xo}from"react/jsx-runtime";var Oi="k-numerictextbox",er=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],tr={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]},gt={showSpinButton:!0,showClearButton:!0,separators:!0},F=e=>{let{size:t,rounded:o,fillMode:n,separators:i=gt.separators,showClearButton:l=gt.showClearButton,showSpinButton:p=gt.showSpinButton,prefix:d,suffix:c,value:u,placeholder:b,hover:N,focus:g,valid:k,invalid:O,required:M,loading:L,disabled:I,readonly:P,id:Y,"aria-label":C,"aria-describedby":Le,...ge}=e;return xo(w,{...ge,size:t,rounded:o,fillMode:n,hover:N,focus:g,valid:k,invalid:O,required:M,loading:L,disabled:I,readonly:P,className:a(e.className,Oi),children:[d&&xo(yi,{children:[re(de,{children:d}),i&&re(ne,{})]}),re(Z,{id:Y,placeholder:b,value:u,role:"spinbutton",disabled:I,"aria-label":C,"aria-describedby":Le,"aria-invalid":O?"true":void 0}),re(X,{valid:k,invalid:O,loading:L,disabled:I}),re(q,{loading:L,disabled:I}),l&&re(Q,{loading:L,disabled:I,readonly:P,value:u}),c&&xo(yi,{children:[i&&re(ne,{}),re(pe,{children:c})]}),p&&re(he,{className:"k-input-spinner",size:t,fillMode:n,disabled:I})]})};F.states=er;F.options=tr;F.className=Oi;F.defaultOptions=gt;F.moduleName=Ei;F.folderName=Mi;F.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 it=F;import{jsx as or}from"react/jsx-runtime";var Pi=e=>or(it,{...e});import{Fragment as Dh,jsx as _h}from"react/jsx-runtime";import{Fragment as Vh,jsx as Fh}from"react/jsx-runtime";import{jsx as qh}from"react/jsx-runtime";import{jsx as ho}from"react/jsx-runtime";var ir=F.states,nr=F.defaultOptions,ar=F.options,sr=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"spin-button",title:"`Spin` Button"}],rr=[],Ue=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":n.prefix=t?.[i]?ho(R,{size:o.size,fillMode:"flat",value:"mm"}):void 0;break;case"suffix":n.suffix=t?.[i]?ho(_t,{children:"mm"}):void 0;break;case"clear-button":n.showClearButton=t?.[i];break;case"spin-button":n.showSpinButton=t?.[i];break;default:break}}),ho(Pi,{value:"Value",style:{width:300},...o,...n})};Ue.options=ar;Ue.states=ir;Ue.variants=rr;Ue.defaultOptions=nr;Ue.modifiers=sr;Ue.className=F.className;var No="pager",wi=No;import{Fragment as Ri,jsx as G,jsxs as Fe}from"react/jsx-runtime";var vt="k-pager",lr=[s.focus,s.disabled],dr={size:[r.undefined,r.small,r.medium,r.large]},$={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},Ne=e=>{let{responsive:t=$.responsive,size:o,pagerSizeInfo:n=$.pagerSizeInfo,pageTitleInfo:i=$.pageTitleInfo,maxPagesInfo:l=$.maxPagesInfo,itemsPerPage:p=$.itemsPerPage,maxPages:d=$.maxPages,currentPage:c=$.currentPage,previousNext:u=$.previousNext,type:b=$.type,pageSizes:N=$.pageSizes,refresh:g=$.refresh,info:k=$.info,focus:O,disabled:M,dir:L,...I}=e,P=[],Y=[];for(let C=1;C<=d;C++)P.push(G(h,{selected:C===c,fillMode:"flat",themeColor:"primary",size:o,"aria-label":`Page ${C}`,...C===c&&{"aria-current":"page"},children:C},C)),Y.push(G("option",{selected:C===c,children:C},C));return Fe("div",{dir:L,...I,className:a(e.className,vt,A(vt,{size:o}),y(vt,{focus:O,disabled:M}),{"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(Ri,{children:[G(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"}),G(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"&&G("div",{className:a("k-pager-numbers"),children:P}),b==="input"&&Fe("span",{className:a("k-pager-input"),children:[i&&G("span",{children:"Page"}),G(F,{value:`${c}`,size:o,showSpinButton:!1,showClearButton:!1,"aria-label":"Current page"}),G("span",{children:l&&`of ${d}`})]}),u&&Fe(Ri,{children:[G(h,{cl