UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 59.7 kB
var za=Object.create;var yt=Object.defineProperty;var Ba=Object.getOwnPropertyDescriptor;var Va=Object.getOwnPropertyNames;var Ua=Object.getPrototypeOf,Fa=Object.prototype.hasOwnProperty;var Ga=(e,t)=>{for(var o in t)yt(e,o,{get:t[o],enumerable:!0})},ei=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Va(t))!Fa.call(e,i)&&i!==o&&yt(e,i,{get:()=>t[i],enumerable:!(a=Ba(t,i))||a.enumerable});return e};var ti=(e,t,o)=>(o=e!=null?za(Ua(e)):{},ei(t||!e||!e.__esModule?yt(o,"default",{value:e,enumerable:!0}):o,e)),Xa=e=>ei(yt({},"__esModule",{value:!0}),e);var al={};Ga(al,{FILEMANAGERLISTVIEW_CLASSNAME:()=>Qo,FileManagerListView:()=>Te,default:()=>il});module.exports=Xa(al);var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>n({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),E=(e,t)=>{let{valid:o,invalid:a,hover:i,focus:r,checked:p,active:d,selected:c,disabled:u,indeterminate:f,loading:L,empty:N,readonly:k,highlighted:A,...T}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":i,"k-focus":r,"k-checked":p,"k-active":d,"k-selected":c,"k-disabled":u,"k-indeterminate":f&&!p,"k-loading":L,"k-empty":N,"k-readonly":k,"k-highlighted":A},Object.keys(T).reduce((g,I)=>(I.startsWith("k-")?g[I]=T[I]:g[`k-${I}`]=T[I],g),{}))};function oi(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={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"},b={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},fe={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 Qt={};function R(e){return Qt[e]=(Qt[e]||0)+1,`k-${e}-${Qt[e]}`}var pt=require("react/jsx-runtime"),Zt="k-font-icon",$a=[],Wa={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info]},qa={},ct=e=>{let{size:t,themeColor:o,icon:a,rotate:i,flip:r,...p}=e;return a?(0,pt.jsx)("span",{...p,className:n(e.className,Zt,C(Zt,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):(0,pt.jsx)(pt.Fragment,{})};ct.states=$a;ct.options=Wa;ct.className=Zt;ct.defaultOptions=qa;var ii=ct;var we=require("react/jsx-runtime"),jt="k-svg-icon",Ja=[],Ya={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[fe.outline,fe.solid,fe.duotone]},eo={viewBox:"0 0 24 24",variant:fe.outline},mt=e=>{var L,N;let{size:t,themeColor:o,rotate:a,flip:i,viewBox:r=eo.viewBox,variant:p=eo.variant,icon:d,...c}=e;if(!d)return(0,we.jsx)(we.Fragment,{});if(d==="none")return(0,we.jsx)("span",{...c,className:n(e.className,jt,C("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let u=typeof d=="object"&&d.name&&d.name,f=typeof d=="object"?p&&((L=d.variants)==null?void 0:L[p])||((N=d.variants)==null?void 0:N.outline)||d.content:void 0;return(0,we.jsx)("span",{...c,className:n(e.className,jt,C("k-icon",{size:t}),{[`k-svg-i-${u}`]:u,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:(0,we.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:r,dangerouslySetInnerHTML:f!==void 0?{__html:f}:void 0,children:d?void 0:e.children})})};mt.states=Ja;mt.options=Ya;mt.className=jt;mt.defaultOptions=eo;var to=mt;var oo=ti(require("@progress/kendo-svg-icons"));var ai="icon",ni="icons";var li=require("react");var si=require("react"),ri=(0,si.createContext)({iconsType:"svg"});var he=require("react/jsx-runtime"),Tt="k-icon",Qa=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Za=[],ja={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info],variant:[fe.outline,fe.solid,fe.duotone]},Ct={viewBox:"0 0 24 24",type:"svg",variant:fe.outline},v=e=>{let{iconsType:t}=(0,li.useContext)(ri),{size:o,themeColor:a,icon:i,type:r=t||Ct.type,rotate:p,flip:d,viewBox:c=Ct.viewBox,variant:u=Ct.variant,...f}=e;if(!i)return(0,he.jsx)(he.Fragment,{});if((t||r)==="svg"){if(i==="none")return(0,he.jsx)(to,{...f,className:n(e.className,Tt),icon:i,size:o,variant:u});let N=oo[i]?i:Qa(`${i}-icon`);return oo[N]?(0,he.jsx)(to,{...f,className:n(e.className,Tt),icon:oo[N],size:o,themeColor:a,rotate:p,flip:d,viewBox:c,variant:u}):(0,he.jsx)(he.Fragment,{})}return(0,he.jsx)(ii,{...f,className:n(e.className,Tt),icon:i,size:o,themeColor:a,rotate:p,flip:d})};v.states=Za;v.options=ja;v.defaultOptions=Ct;v.className=Tt;v.moduleName=ai;v.folderName=ni;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 io="button",di=io;var te=require("react/jsx-runtime"),ut="k-button",en=["icon-button"],tn=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],on={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[b.undefined,b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[x.undefined,x.base,x.primary,x.secondary,x.tertiary,x.success,x.warning,x.error,x.info,x.inverse]},ao={showArrow:!1,arrowIconName:"chevron-down"},h=e=>{let{as:t="button",size:o,rounded:a,fillMode:i,themeColor:r,showArrow:p=ao.showArrow,arrowIconName:d=ao.arrowIconName,variant:c,hover:u,focus:f,active:L,selected:N,disabled:k,togglable:A,ariaDisabled:T,icon:g,iconSize:I,text:_,iconClassName:de,className:O,...Ce}=e,Oe=g!=null,lt=e.children!==void 0;return(0,te.jsxs)(t,{className:n(O,ut,oi(ut,c),C(ut,{size:o,rounded:a,fillMode:i,themeColor:r}),E(ut,{hover:u,focus:f,active:L,disabled:k||T,selected:N}),{"k-icon-button":!_&&!lt&&Oe}),"aria-pressed":A?N?"true":"false":void 0,...Ce,"aria-disabled":T?"true":void 0,disabled:k||void 0,children:[typeof g=="string"&&g&&(0,te.jsx)(v,{className:n(de,"k-button-icon"),icon:g,size:I}),g&&typeof g!="string"&&(0,te.jsx)(te.Fragment,{children:g}),_?(0,te.jsxs)(te.Fragment,{children:[_&&(0,te.jsx)("span",{className:"k-button-text",children:_}),e.children]}):e.children&&(0,te.jsx)("span",{className:"k-button-text",children:e.children}),p&&(0,te.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,te.jsx)(v,{icon:d})})]})};h.states=tn;h.options=on;h.variants=en;h.className=ut;h.defaultOptions=ao;h.moduleName=io;h.folderName=di;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."}]};var ci=require("react/jsx-runtime"),pi=e=>(0,ci.jsx)(h,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ui=require("react/jsx-runtime"),mi=e=>(0,ui.jsx)(h,{icon:"folder",children:"Button",...e});var fi=require("react/jsx-runtime"),Pe=e=>(0,fi.jsx)(h,{children:"Button",...e});var Ot=require("react/jsx-runtime"),an=h.options,nn=h.states,sn={...h.defaultOptions,variant:"text"},rn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ln=[],ze=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,Ot.jsx)(pi,{...o,icon:"star"});case"icon-and-text":return(0,Ot.jsx)(mi,{...o,icon:"star",children:"Button"});default:return(0,Ot.jsx)(Pe,{...o,children:"Button"})}};ze.options=an;ze.states=nn;ze.variants=rn;ze.defaultOptions=sn;ze.modifiers=ln;ze.className=h.className;var ft="input",wt=ft;var bi=require("react/jsx-runtime"),Pt="k-input",dn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],pn={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},cn={},D=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:r,loading:p,readonly:d,size:c,rounded:u,fillMode:f,...L}=e;return(0,bi.jsx)("span",{...L,className:n(e.className,Pt,C(Pt,{size:c,rounded:u,fillMode:f}),E(Pt,{hover:t,focus:o,disabled:a,invalid:i,valid:r,loading:p,readonly:d}))})};D.states=dn;D.options=pn;D.className=Pt;D.defaultOptions=cn;D.moduleName=ft;D.folderName=wt;var xi=require("react/jsx-runtime"),Rt="k-picker",mn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],un={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},fn={},ve=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:r,loading:p,readonly:d,size:c,rounded:u,fillMode:f,...L}=e;return(0,xi.jsx)("span",{...L,className:n(e.className,Rt,C(Rt,{size:c,rounded:u,fillMode:f}),E(Rt,{hover:t,focus:o,disabled:a,invalid:i,valid:r,loading:p,readonly:d})),children:e.children})};ve.states=mn;ve.options=un;ve.className=Rt;ve.defaultOptions=fn;ve.moduleName=ft;ve.folderName=wt;var Be=require("react/jsx-runtime"),hi="k-clear-value",bn=[s.disabled,s.loading,s.readonly],xn={},pe=e=>{let{disabled:t,loading:o,readonly:a,value:i}=e;return t||a||o||!i?(0,Be.jsx)(Be.Fragment,{}):(0,Be.jsx)("span",{className:n(e.className,hi),children:(0,Be.jsx)(v,{icon:"x"})})};pe.states=bn;pe.options=xn;pe.className=hi;var Li=require("react/jsx-runtime"),no="k-input-inner",hn=[],Ln={},Kt={type:"text",autocomplete:"off",value:"",placeholder:""},ce=e=>{let{value:t=Kt.value,type:o=Kt.type,placeholder:a=Kt.placeholder,autocomplete:i=Kt.autocomplete,disabled:r,readOnly:p,...d}=e;return(0,Li.jsx)("input",{...d,type:o,className:n(e.className,no,C(no,e)),placeholder:a,autoComplete:i,defaultValue:t,disabled:r||void 0,readOnly:p||void 0})};ce.states=hn;ce.options=Ln;ce.className=no;var bt=require("react/jsx-runtime"),so="k-input-inner",Nn=[],gn={},xt=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:i,valueIconName:r,...p}=e;return(0,bt.jsxs)("span",{...p,className:n(e.className,so,C(so,e)),children:[i,!i&&r&&(0,bt.jsx)(v,{className:"k-input-value-icon",icon:r}),a&&!t&&o,a&&t&&(0,bt.jsx)("span",{className:"k-input-value-text",children:t})]})};xt.states=Nn;xt.options=gn;xt.className=so;var gi=require("react/jsx-runtime"),ro="k-input-inner",vn=[],In={},Ni={value:"",placeholder:""},lo=e=>{let{value:t=Ni.value,placeholder:o=Ni.placeholder,rows:a,disabled:i,...r}=e;return(0,gi.jsx)("textarea",{...r,className:n(e.className,ro,C(ro,e)),placeholder:o,rows:a,defaultValue:t,disabled:i||void 0})};lo.states=vn;lo.options=In;lo.className=ro;var ht=require("react/jsx-runtime"),vi="k-input-loading-icon",kn=[s.disabled,s.loading],ne=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,ht.jsx)(ht.Fragment,{}):(0,ht.jsx)("span",{className:n(e.className,vi,"k-icon k-i-loading")})};ne.states=kn;ne.className=vi;var Lt=require("react/jsx-runtime"),Ii="k-input-validation-icon",Sn=[s.valid,s.invalid,s.disabled,s.loading],An={},oe=e=>{let{valid:t,invalid:o,disabled:a,loading:i}=e,r=o?"warning-circle":"check-circle";return a||i||!!!(t||o)?(0,Lt.jsx)(Lt.Fragment,{}):(0,Lt.jsx)(v,{className:n(Ii),icon:r})};oe.states=Sn;oe.options=An;oe.className=Ii;var Nt=require("react/jsx-runtime"),En="k-input-prefix",Mn={direction:"horizontal"},Ie=e=>{let{direction:t=Mn.direction,...o}=e;return e.children?(0,Nt.jsx)("span",{...o,className:n(En,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Nt.jsx)(Nt.Fragment,{})};var gt=require("react/jsx-runtime"),yn="k-input-suffix",Tn={direction:"horizontal"},ke=e=>{let{direction:t=Tn.direction,...o}=e;return e.children?(0,gt.jsx)("span",{...o,className:n(yn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,gt.jsx)(gt.Fragment,{})};var Cn=require("react/jsx-runtime");var ki=require("react/jsx-runtime"),On="k-input-suffix-text",po=e=>{let{children:t,...o}=e;return(0,ki.jsx)("span",{...o,className:n(On,e.className),children:t})};var Ai=require("react/jsx-runtime"),Si="k-input-separator",wn={direction:"vertical"},Le=e=>{let{direction:t=wn.direction,...o}=e;return(0,Ai.jsx)("span",{...o,className:n(Si,e.className,{[`${Si}-${t}`]:t})})};var H=require("react/jsx-runtime"),Pn=D.states,Rn=D.defaultOptions,Kn=D.options,_n=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Dn=[],Ve=e=>{let{modifiers:t,valid:o,invalid:a,loading:i,disabled:r,readonly:p,...d}=e,c=t==null?void 0:t.prefix,u=t==null?void 0:t.suffix,f=t==null?void 0:t["clear-button"],L=t==null?void 0:t["validation-icon"],N=t==null?void 0:t.separators;return(0,H.jsxs)(D,{...d,valid:o,invalid:a,loading:i,disabled:r,readonly:p,style:{width:300},children:[c&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Ie,{children:(0,H.jsx)(v,{icon:"lock"})}),N&&(0,H.jsx)(Le,{})]}),(0,H.jsx)(ce,{placeholder:"Placeholder",value:"Value"}),L&&(0,H.jsx)(oe,{valid:o,invalid:a,loading:i,disabled:r}),(0,H.jsx)(ne,{loading:i,disabled:r}),f&&(0,H.jsx)(pe,{loading:i,disabled:r,readonly:p,value:"Value"}),u&&(0,H.jsxs)(H.Fragment,{children:[N&&(0,H.jsx)(Le,{}),(0,H.jsx)(ke,{children:(0,H.jsx)(Pe,{size:d.size,fillMode:"clear",children:"Send"})})]})]})};Ve.options=Kn;Ve.states=Pn;Ve.variants=Dn;Ve.defaultOptions=Rn;Ve.modifiers=_n;Ve.className=D.className;var co="popup",Ei=co;var uo=require("react/jsx-runtime"),Mi="k-animation-container",Hn=[],zn={},mo={positionMode:"absolute",shown:!0},be=e=>{let{positionMode:t=mo.positionMode,shown:o=mo.shown,animationStyle:a,offset:i,...r}=e;return(0,uo.jsx)("div",{...r,style:{...i,...e.style},className:n(e.className,Mi,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,uo.jsx)("div",{className:"k-child-animation-container",style:a,children:e.children})})};be.states=Hn;be.options=zn;be.className=Mi;be.defaultOptions=mo;be.moduleName=co;be.folderName=Ei;var fo="popup",yi=fo;var bo=require("react/jsx-runtime"),Ti="k-popup",Bn=[],Vn={},Ci={positionMode:"absolute"},Ne=e=>{let{offset:t,positionMode:o=Ci.positionMode,animationStyle:a,containerClassName:i,containerRole:r,containerAriaLabel:p,...d}=e;return(0,bo.jsx)(be,{positionMode:o,offset:t,animationStyle:a,className:i,role:r,"aria-label":p,children:(0,bo.jsx)("div",{...d,className:n(e.className,Ti),children:e.children})})};Ne.states=Bn;Ne.options=Vn;Ne.className=Ti;Ne.defaultOptions=Ci;Ne.moduleName=fo;Ne.folderName=yi;Ne.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 xo="action-buttons",Oi=xo;var wi=require("react/jsx-runtime"),_t="k-actions",Un=[],Fn={},ho={alignment:"start",orientation:"horizontal"},Se=e=>{let{alignment:t=ho.alignment,orientation:o=ho.orientation,...a}=e;return(0,wi.jsx)("div",{...a,className:n(_t,{[`${_t}-${t}`]:t,[`${_t}-${o}`]:o},e.className),children:e.children})};Se.states=Un;Se.options=Fn;Se.className=_t;Se.defaultOptions=ho;Se.moduleName=xo;Se.folderName=Oi;var Ri=require("react/jsx-runtime"),Gn="k-actionsheet-footer",Pi={alignment:"stretched",orientation:"horizontal"},Ue=e=>{let{alignment:t=Pi.alignment,orientation:o=Pi.orientation,template:a,as:i=a?"div":Se,...r}=e;return(0,Ri.jsx)(i,{...r,...!a&&{alignment:t,orientation:o},className:n(e.className,Gn),children:e.children})};var Lo="searchbox",Ki=Lo;var Ae=require("react/jsx-runtime"),_i="k-searchbox",Xn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],$n={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},No={showIcon:!0,icon:"search"},se=e=>{let{value:t,placeholder:o,size:a,rounded:i,fillMode:r,hover:p,focus:d,valid:c,invalid:u,required:f,loading:L,disabled:N,showIcon:k=No.showIcon,icon:A=No.icon,"aria-label":T,...g}=e;return(0,Ae.jsxs)(D,{...g,size:a,rounded:i,fillMode:r,hover:p,focus:d,valid:c,invalid:u,required:f,loading:L,disabled:N,className:n(e.className,_i),children:[k&&(0,Ae.jsx)(v,{className:"k-input-icon",icon:A}),(0,Ae.jsx)(ce,{placeholder:o,value:t,"aria-label":T}),(0,Ae.jsx)(ne,{...e}),(0,Ae.jsx)(oe,{...e}),(0,Ae.jsx)(pe,{...e})]})};se.states=Xn;se.options=$n;se.className=_i;se.defaultOptions=No;se.moduleName=Lo;se.folderName=Ki;var Wn=require("react/jsx-runtime");var go="textbox",Di=go;var G=require("react/jsx-runtime"),Hi="k-textbox",qn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Jn={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},Dt={showClearButton:!0,showValidationIcon:!0,separators:!0},$=e=>{let{size:t,rounded:o,fillMode:a,separators:i=Dt.separators,showClearButton:r=Dt.showClearButton,showValidationIcon:p=Dt.showValidationIcon,prefix:d,suffix:c,type:u,value:f,placeholder:L,hover:N,focus:k,valid:A,invalid:T,required:g,loading:I,disabled:_,readonly:de,id:O,"aria-label":Ce,"aria-describedby":Oe,...lt}=e;return(0,G.jsxs)(D,{...lt,size:t,rounded:o,fillMode:a,hover:N,focus:k,valid:A,invalid:T,required:g,loading:I,disabled:_,readonly:de,className:n(e.className,Hi),children:[d&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Ie,{children:d}),i&&(0,G.jsx)(Le,{})]}),(0,G.jsx)(ce,{id:O,placeholder:L,value:f,type:u,disabled:_,"aria-label":Ce,"aria-describedby":Oe,"aria-invalid":T?"true":void 0}),p&&(0,G.jsx)(oe,{valid:A,invalid:T,loading:I,disabled:_}),(0,G.jsx)(ne,{loading:I,disabled:_}),r&&(0,G.jsx)(pe,{loading:I,disabled:_,readonly:de,value:f}),c&&(0,G.jsxs)(G.Fragment,{children:[i&&(0,G.jsx)(Le,{}),(0,G.jsx)(ke,{children:c})]})]})};$.states=qn;$.options=Jn;$.className=Hi;$.defaultOptions=Dt;$.moduleName=go;$.folderName=Di;$.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 vt=$;var Bi=require("react/jsx-runtime"),zi=e=>(0,Bi.jsx)(vt,{...e});var Vi=require("react/jsx-runtime");var Ui=require("react/jsx-runtime");var Yn=require("react/jsx-runtime");var Ht=require("react/jsx-runtime"),Qn=$.states,Zn=$.defaultOptions,jn=$.options,es=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],ts=[],Fe=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":a.prefix=t!=null&&t[i]?(0,Ht.jsx)(v,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t!=null&&t[i]?(0,Ht.jsx)(Pe,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t==null?void 0:t[i];break;default:break}}),(0,Ht.jsx)(zi,{value:"Value",style:{width:300},...o,...a})};Fe.options=jn;Fe.states=Qn;Fe.variants=ts;Fe.defaultOptions=Zn;Fe.modifiers=es;Fe.className=$.className;var ie=require("react/jsx-runtime"),Fi="k-actionsheet-titlebar",os={},me=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:i,filter:r,input:p,inputValue:d,inputPlaceholder:c,adaptive:u,titleId:f,children:L,...N}=e;return(0,ie.jsxs)("div",{...N,className:n(e.className,Fi),children:[(0,ie.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[a&&(0,ie.jsx)("div",{className:"k-actionsheet-actions",children:a}),!L&&(0,ie.jsxs)("div",{className:"k-actionsheet-title",id:f,children:[t&&(0,ie.jsx)("div",{className:"k-text-center",children:t}),o&&(0,ie.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),L&&(0,ie.jsx)("div",{className:"k-actionsheet-title",id:f,children:L}),i&&(0,ie.jsx)("div",{className:"k-actionsheet-actions",children:i})]}),(p||r)&&(0,ie.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?(0,ie.jsx)($,{value:d,placeholder:c,size:u?"large":"medium","aria-label":t||c||"Input"}):(0,ie.jsx)(se,{placeholder:"Filter",size:u?"large":"medium","aria-label":"Filter options"})})]})};me.className=Fi;me.defaultOptions=os;var Ge=require("react/jsx-runtime"),vo="k-actionsheet-view",is=[],as={},ns={},Xe=e=>{let{adaptive:t,animated:o,children:a,header:i,footer:r,titleId:p,...d}=e,c=(i==null?void 0:i.type)===me&&(0,Ge.jsx)(me,{adaptive:t,titleId:p,...i==null?void 0:i.props}),u=(r==null?void 0:r.type)===Ue&&(0,Ge.jsx)(Ue,{...r==null?void 0:r.props});return(0,Ge.jsxs)("div",{...d,className:n(e.className,vo,{[`${vo}-animated`]:o}),children:[c,(0,Ge.jsx)("div",{className:"k-actionsheet-content",children:a}),u]})};Xe.states=is;Xe.options=as;Xe.className=vo;Xe.defaultOptions=ns;var It="action-sheet",zt=It;var Io="overlay",Gi=Io;var $i=require("react/jsx-runtime"),Xi="k-overlay",ss=[],rs={},ls={},Ee=e=>{let{...t}=e;return(0,$i.jsx)("div",{...t,className:n(e.className,Xi),children:e.children})};Ee.states=ss;Ee.options=rs;Ee.className=Xi;Ee.defaultOptions=ls;Ee.moduleName=Io;Ee.folderName=Gi;var Re=require("react/jsx-runtime"),Wi="k-actionsheet",ds=[],ps={},kt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},U=e=>{let{side:t=kt.side,fullscreen:o=kt.fullscreen,adaptive:a=kt.adaptive,overlay:i=kt.overlay,template:r,children:p,header:d,footer:c,id:u,...f}=e,L=u&&!r&&d?`${u}-title`:void 0;return(0,Re.jsxs)("div",{className:"k-actionsheet-container",children:[i&&(0,Re.jsx)(Ee,{}),(0,Re.jsx)(be,{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:(0,Re.jsx)("div",{...f,id:u,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":L,className:n(e.className,Wi,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:r||(0,Re.jsx)(Xe,{header:d,footer:c,adaptive:a,titleId:L,...e,children:p})})})]})};U.states=ds;U.options=ps;U.className=Wi;U.defaultOptions=kt;U.moduleName=It;U.folderName=zt;U.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."}]};var Ji=require("react/jsx-runtime"),qi="k-actionsheet-container",cs=[],ms={},us={},$e=e=>{let{children:t,...o}=e;return(0,Ji.jsx)("div",{...o,className:qi,children:t})};$e.states=cs;$e.options=ms;$e.className=qi;$e.defaultOptions=us;$e.moduleName=It;$e.folderName=zt;var Yi=require("react/jsx-runtime"),ko=e=>{let{...t}=e;return(0,Yi.jsx)("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};var re=require("react/jsx-runtime"),So="k-actionsheet-item",fs=[s.hover,s.focus,s.selected,s.disabled],Me=e=>{let{iconName:t,text:o,description:a,hover:i,focus:r,selected:p,disabled:d,...c}=e;return(0,re.jsxs)("span",{...c,className:n(e.className,So,E(So,{hover:i,focus:r,selected:p,disabled:d})),children:[!e.children&&(0,re.jsx)(re.Fragment,{children:(0,re.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,re.jsx)("span",{className:"k-icon-wrap",children:(0,re.jsx)(v,{className:"k-actionsheet-item-icon",icon:t})}),(0,re.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,re.jsx)("span",{className:"k-actionsheet-item-title",children:o}),a&&(0,re.jsx)("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Me.states=fs;Me.className=So;var Qi=require("react/jsx-runtime");var bs=require("react/jsx-runtime");var xs=require("react/jsx-runtime");var hs=require("react/jsx-runtime");var w=require("react/jsx-runtime"),Ls=U.options,Ns=U.states,ji={...U.defaultOptions,variant:"normal"},gs=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],vs=[{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,...a}={...ji,...e},i={},r=(0,w.jsxs)(ko,{children:[(0,w.jsx)(Me,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,w.jsx)(Me,{text:"Add to Favorites",iconName:"heart"}),(0,w.jsx)(Me,{text:"Upload New",iconName:"upload",disabled:!0}),(0,w.jsx)("hr",{className:"k-hr"}),(0,w.jsx)(Me,{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!=null&&o[c]),i.actionsEnd=!!(o!=null&&o[c]);break;case"subtitle":i.subtitle=o!=null&&o[c]?p:void 0;break;case"footer":i.footer=!!(o!=null&&o[c]);break;default:break}}),t==="adaptive"?(0,w.jsx)(U,{...a,adaptive:!0,fullscreen:i.fullScreen,header:(0,w.jsx)(me,{actionsStart:i.actionsStart?(0,w.jsx)(h,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?(0,w.jsx)(h,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:d,subtitle:i.subtitle}),footer:i.footer?(0,w.jsxs)(Ue,{alignment:"stretched",children:[(0,w.jsx)(h,{text:"Cancel",size:"large",themeColor:"base"}),(0,w.jsx)(h,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):(0,w.jsx)(U,{...a,fullscreen:i.fullScreen,header:(0,w.jsx)(me,{actionsStart:i.actionsStart?(0,w.jsx)(h,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?(0,w.jsx)(h,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:i.subtitle}),footer:i.footer?(0,w.jsxs)(Ue,{alignment:"stretched",children:[(0,w.jsx)(h,{text:"Apply",themeColor:"primary"}),(0,w.jsx)(h,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};We.options=Ls;We.states=Ns;We.variants=gs;We.defaultOptions=ji;We.modifiers=vs;We.className=U.className;var Vt=ti(require("react"));var Ao=require("react/jsx-runtime"),Is="k-list-group-sticky-header",Eo=e=>(0,Ao.jsx)("div",{className:n(Is,e.className),children:(0,Ao.jsx)("div",{className:"k-list-header-text",children:e.children})});var ea=require("react/jsx-runtime"),ks="k-no-data",Bt=e=>{let{live:t,...o}=e;return(0,ea.jsx)("span",{...o,className:n(ks,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Ke="list",qe=Ke;var Je=require("react/jsx-runtime"),Mo="k-list",Ss=[],As={size:[l.undefined,l.small,l.medium,l.large]},Es={},K=e=>{var A;let{size:t,virtualization:o,children:a,header:i,selectAll:r,optionLabel:p,customValue:d,noData:c,screenReaders:u,...f}=e,N=Vt.default.Children.toArray(a)[0],k=(A=N==null?void 0:N.props)!=null&&A.children?Vt.default.Children.count(N.props.children):Vt.default.Children.count(a);return(0,Je.jsxs)("div",{...f,className:n(e.className,Mo,C(Mo,{size:t}),{"k-virtual-list":o}),children:[p,r,d,i&&(0,Je.jsx)(Eo,{children:i}),a||(c!==void 0?c:(0,Je.jsx)(Bt,{live:!0,children:"No data found."})),u&&a&&(0,Je.jsxs)(Bt,{className:"k-sr-only",live:!0,children:[k," items found."]})]})};K.states=Ss;K.options=As;K.className=Mo;K.defaultOptions=Es;K.moduleName=Ke;K.folderName=qe;K.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};var oa=require("react/jsx-runtime"),ta="k-list-container",Ms=[],ys={},Ts={},Ye=e=>{let{...t}=e;return(0,oa.jsx)("div",{...t,className:n(e.className,ta),children:e.children})};Ye.states=Ms;Ye.options=ys;Ye.className=ta;Ye.defaultOptions=Ts;Ye.moduleName=Ke;Ye.folderName=qe;var _e="checkbox",Qe=_e;var yo=require("react/jsx-runtime"),Ut="k-checkbox",Cs=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],Os={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full]},ws={},Z=e=>{let{id:t,checked:o,indeterminate:a,hover:i,focus:r,disabled:p,invalid:d,valid:c,required:u,size:f,rounded:L,wrapperRole:N,...k}=e;return(0,yo.jsx)("span",{className:"k-checkbox-wrap",role:N,children:(0,yo.jsx)("input",{...k,id:t,type:"checkbox",defaultChecked:o,required:u,disabled:p||void 0,"aria-invalid":d?"true":void 0,className:n(e.className,Ut,C(Ut,{size:f,rounded:L}),E(Ut,{hover:i,focus:r,disabled:p,invalid:d,valid:c,indeterminate:a,checked:o}))})})};Z.states=Cs;Z.options=Os;Z.className=Ut;Z.defaultOptions=ws;Z.moduleName=_e;Z.folderName=Qe;Z.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 ue=Z;var na=require("react/jsx-runtime"),ia="k-checkbox-list",Ps=[],Rs={},aa={layout:"vertical"},W=e=>{let{layout:t=aa.layout,...o}=e;return(0,na.jsx)("ul",{...o,className:n(e.className,ia,{[`k-list-${t}`]:t}),children:e.children})};W.states=Ps;W.options=Rs;W.className=ia;W.defaultOptions=aa;W.moduleName=_e;W.folderName=Qe;var ra=require("react/jsx-runtime"),sa="k-checkbox-list-item",Ks=[],_s={},Ds={},q=e=>{let{...t}=e;return(0,ra.jsx)("li",{...t,className:n(e.className,sa),children:e.children})};q.states=Ks;q.options=_s;q.className=sa;q.defaultOptions=Ds;q.moduleName=_e;q.folderName=Qe;var De=require("react/jsx-runtime"),ge=({children:e="Label",id:t="cb-label-after",...o})=>(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(ue,{id:t,...o}),(0,De.jsx)("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});var To=require("react/jsx-runtime");var Co=require("react/jsx-runtime");var Oo=require("react/jsx-runtime");var Hs=require("react/jsx-runtime");var zs=require("react/jsx-runtime");var Bs=require("react/jsx-runtime");var X=require("react/jsx-runtime"),Vs=W.options,Us=W.states,Fs={...W.defaultOptions,variant:"vertical"},Gs=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Xs=[],Ze=e=>{let{variant:t,...o}=e;return t==="horizontal"?(0,X.jsxs)(W,{layout:"horizontal",...o,children:[(0,X.jsx)(q,{children:(0,X.jsx)(ge,{id:R("cb"),defaultChecked:!0,children:"Label"})}),(0,X.jsx)(q,{children:(0,X.jsx)(ge,{id:R("cb"),children:"Label"})}),(0,X.jsx)(q,{children:(0,X.jsx)(ge,{id:R("cb"),children:"Label"})})]}):(0,X.jsxs)(W,{...o,children:[(0,X.jsx)(q,{children:(0,X.jsx)(ge,{id:R("cb"),defaultChecked:!0,children:"Label"})}),(0,X.jsx)(q,{children:(0,X.jsx)(ge,{id:R("cb"),children:"Label"})}),(0,X.jsx)(q,{children:(0,X.jsx)(ge,{id:R("cb"),children:"Label"})})]})};Ze.options=Vs;Ze.states=Us;Ze.variants=Gs;Ze.defaultOptions=Fs;Ze.modifiers=Xs;Ze.className=W.className;var la=require("react/jsx-runtime"),$s=ue.options,Ws=ue.states,qs=ue.defaultOptions,Js=[],Ys=[],je=e=>(0,la.jsx)(ge,{id:R("checkbox"),...e,defaultChecked:!0,children:"Label"});je.options=$s;je.states=Ws;je.variants=Js;je.defaultOptions=qs;je.modifiers=Ys;je.className=ue.className;var xe=require("react/jsx-runtime"),wo="k-list-item",Qs=[s.hover,s.focus,s.selected,s.disabled],Zs={},js={},M=e=>{let{text:t,groupLabel:o,group:a,iconName:i,iconClassName:r,showCheckbox:p,checked:d,hover:c,focus:u,selected:f,disabled:L,actions:N,description:k,id:A,...T}=e,g=t||e.children;return(0,xe.jsxs)("li",{...T,id:A,role:a?"presentation":"option",tabIndex:a?void 0:u?0:-1,"aria-selected":!a&&f?"true":a?void 0:"false","aria-disabled":!a&&L?"true":void 0,className:n(e.className,a?"k-list-group-item":wo,E(wo,{hover:c,focus:u,disabled:L,selected:f})),children:[p&&(0,xe.jsx)(Z,{checked:d}),i&&(0,xe.jsx)("span",{className:"k-list-item-icon-wrapper",children:(0,xe.jsx)(v,{icon:i,className:n("k-list-item-icon",r)})}),(0,xe.jsx)("span",{className:"k-list-item-text",children:g}),N&&(0,xe.jsx)("div",{className:"k-list-item-actions",children:N}),k&&(0,xe.jsx)("span",{className:"k-list-item-description",children:k}),o&&o!==""&&(0,xe.jsx)("div",{className:"k-list-item-group-label",children:o})]})};M.states=Qs;M.options=Zs;M.className=wo;M.defaultOptions=js;M.moduleName=Ke;M.folderName=qe;M.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."}]};var da=require("react/jsx-runtime"),er="k-list-ul",He=e=>{let{children:t,role:o,id:a,...i}=e;return(0,da.jsx)("ul",{...i,id:a,role:o,className:n(er,e.className),children:t})};He.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."}]};var et=require("react/jsx-runtime"),tr="k-list-content",J=e=>{let{virtualization:t,grouping:o,"aria-label":a,"aria-labelledby":i,listboxId:r,...p}=e;return(0,et.jsxs)("div",{...p,className:n(tr,e.className),role:o?"listbox":void 0,id:o?r:void 0,"aria-label":o?a:void 0,"aria-labelledby":o?i:void 0,children:[o?e.children:(0,et.jsx)(He,{role:"listbox",id:r,"aria-label":a,"aria-labelledby":i,children:e.children}),t&&(0,et.jsx)("div",{className:"k-height-container",children:(0,et.jsx)("div",{})})]})};J.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."}]};var tt=require("react/jsx-runtime"),Ft="k-list-sticky-header",or=[s.hover,s.focus,s.selected],ir={},ar={},Gt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:a,indeterminate:i,hover:r,focus:p,selected:d,...c}=e;return(0,tt.jsx)("div",{...c,className:n(Ft,e.className),children:(0,tt.jsxs)("div",{className:n(`${Ft}-item`,E(`${Ft}-item`,{hover:r,focus:p,selected:d})),children:[o&&(0,tt.jsx)(Z,{checked:a,indeterminate:i,"aria-label":t}),(0,tt.jsx)("span",{className:"k-list-item-text",children:t})]})})};Gt.states=or;Gt.options=ir;Gt.className=Ft;Gt.defaultOptions=ar;var Po=require("react/jsx-runtime");var ot=require("react/jsx-runtime"),nr="k-list-group-item",St=e=>{let{groupIconName:t,...o}=e;return(0,ot.jsxs)("li",{...o,role:"presentation",className:n(nr,e.className),children:[t&&(0,ot.jsx)("span",{className:"k-list-item-icon-wrapper",children:(0,ot.jsx)(v,{icon:t,className:"k-list-item-icon"})}),(0,ot.jsx)("span",{className:"k-list-item-text",children:e.children})]})};St.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."}]};var pa=require("react/jsx-runtime"),Ro="k-list-optionlabel",sr=[s.hover,s.focus,s.selected,s.disabled],rr={},lr={},Xt=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:r,...p}=e;return(0,pa.jsx)("div",{...p,className:n(Ro,E(Ro,{hover:o,focus:a,selected:i,disabled:r})),children:t})};Xt.states=sr;Xt.options=rr;Xt.className=Ro;Xt.defaultOptions=lr;var ca=require("react/jsx-runtime"),Ko="k-list-custom-value",dr=[s.hover,s.focus,s.selected,s.disabled],pr={},cr={},$t=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:r,...p}=e;return(0,ca.jsx)("div",{...p,className:n(Ko,E(Ko,{hover:o,focus:a,selected:i,disabled:r})),children:t})};$t.states=dr;$t.options=pr;$t.className=Ko;$t.defaultOptions=cr;var _o=require("react/jsx-runtime");var Do=require("react/jsx-runtime");var Ho=require("react/jsx-runtime");var zo=require("react/jsx-runtime");var mr=require("react/jsx-runtime");var Bo=require("react/jsx-runtime");var ma="dropdown-list",ua="dropdownlist";var P=require("react/jsx-runtime"),fa="k-dropdownlist",ur=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],fr={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},Vo={showValue:!0,arrowIconName:"chevron-down"},z=e=>{let{size:t,rounded:o,fillMode:a,arrowIconName:i=Vo.arrowIconName,showValue:r=Vo.showValue,valueIconName:p,prefix:d,suffix:c,value:u,placeholder:f,hover:L,focus:N,valid:k,invalid:A,required:T,loading:g,disabled:I,readonly:_,popup:de,opened:O,adaptive:Ce,adaptiveSettings:Oe,adaptiveTitle:lt,adaptiveSubtitle:Ra,adaptiveFilter:Ka,id:dt,activeDescendant:Zo,"aria-label":_a,...Da}=e,Ha=dt?`${dt}-listbox`:void 0,jo=dt?`${dt}-value`:void 0;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(ve,{...Da,id:dt,size:t,rounded:o,fillMode:a,hover:L,focus:N,valid:k,invalid:A,required:T,loading:g,disabled:I,readonly:_,className:n(e.className,fa,{"k-icon-picker":!r&&p}),role:"combobox","aria-haspopup":"listbox","aria-expanded":O?"true":"false","aria-controls":O?Ha:void 0,"aria-activedescendant":O&&Zo?Zo:void 0,"aria-describedby":O?jo:void 0,"aria-disabled":I?"true":void 0,"aria-label":_a,tabIndex:0,children:[(0,P.jsx)(Ie,{children:d}),(0,P.jsx)(xt,{placeholder:f,value:u,showValue:r,valueIconName:p,id:jo}),(0,P.jsx)(oe,{valid:k,invalid:A,loading:g,disabled:I}),(0,P.jsx)(ne,{loading:g,disabled:I}),(0,P.jsx)(ke,{children:c}),(0,P.jsx)(h,{className:"k-input-button",icon:i,size:e.size,fillMode:e.fillMode,"aria-label":f||"Toggle dropdown",tabIndex:-1})]}),O&&de&&(0,P.jsx)(Ne,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown suggestions",children:de}),Ce&&(0,P.jsx)(U,{adaptive:!0,...Oe,header:(0,P.jsx)(me,{actionsEnd:(0,P.jsx)(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:Ka,inputValue:u,inputPlaceholder:f,title:lt,subtitle:Ra}),children:(0,P.jsx)("div",{className:"k-list-container",children:(0,P.jsx)(K,{size:"large",children:(0,P.jsxs)(J,{"aria-label":"Options",children:[(0,P.jsx)(M,{text:"List item"}),(0,P.jsx)(M,{text:"List item"}),(0,P.jsx)(M,{text:"List item"})]})})})})]})};z.states=ur;z.options=fr;z.className=fa;z.defaultOptions=Vo;z.moduleName=ma;z.folderName=ua;z.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."}]};var br=require("react/jsx-runtime");var ba=require("react/jsx-runtime");var Uo=require("react/jsx-runtime");var xr=require("react/jsx-runtime");var xa=require("react/jsx-runtime");var Fo=require("react/jsx-runtime");var hr=require("react/jsx-runtime");var j=require("react/jsx-runtime"),Lr=z.states,Nr=z.defaultOptions,gr=z.options,vr=[{name:"opened",title:"Opened"}],Ir=[],at=e=>{let{modifiers:t,...o}=e,a={},i=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:"k-list-filter",children:(0,j.jsx)(se,{})}),(0,j.jsx)(K,{style:{width:300},size:o.size,children:(0,j.jsxs)(J,{children:[(0,j.jsx)(M,{children:"List item"}),(0,j.jsx)(M,{children:"List item"}),(0,j.jsx)(M,{children:"List item"})]})})]});return Object.keys(t||{}).forEach(r=>{r==="opened"&&(a.opened=!!(t!=null&&t[r]),a.popup=t!=null&&t[r]?i:void 0)}),(0,j.jsx)("div",{children:(0,j.jsx)(z,{placeholder:"Value",style:{width:300},...o,...a})})};at.options=gr;at.states=Lr;at.variants=Ir;at.defaultOptions=Nr;at.modifiers=vr;at.className=z.className;var At=require("react/jsx-runtime"),ha="k-spin-button",Ar=[],Er={size:[l.undefined,l.small,l.medium,l.large],fillMode:[b.undefined,b.solid,b.flat,b.outline,b.clear,b.link]},Go={increaseLabel:"Increase value",decreaseLabel:"Decrease value"},ye=e=>{let{size:t,fillMode:o,disabled:a,increaseLabel:i=Go.increaseLabel,decreaseLabel:r=Go.decreaseLabel,...p}=e;return(0,At.jsxs)("span",{...p,className:n(ha,e.className),children:[(0,At.jsx)(h,{className:"k-spinner-increase",icon:"chevron-up",size:t,fillMode:o,disabled:a,"aria-label":i}),(0,At.jsx)(h,{className:"k-spinner-decrease",icon:"chevron-down",size:t,fillMode:o,disabled:a,"aria-label":r})]})};ye.states=Ar;ye.options=Er;ye.className=ha;ye.defaultOptions=Go;ye.moduleName=null;ye.folderName=null;var La="numeric-textbox",Na="numerictextbox";var F=require("react/jsx-runtime"),ga="k-numerictextbox",Mr=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],yr={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},Wt={showSpinButton:!0,showClearButton:!0,separators:!0},Y=e=>{let{size:t,rounded:o,fillMode:a,separators:i=Wt.separators,showClearButton:r=Wt.showClearButton,showSpinButton:p=Wt.showSpinButton,prefix:d,suffix:c,value:u,placeholder:f,hover:L,focus:N,valid:k,invalid:A,required:T,loading:g,disabled:I,readonly:_,id:de,"aria-label":O,"aria-describedby":Ce,...Oe}=e;return(0,F.jsxs)(D,{...Oe,size:t,rounded:o,fillMode:a,hover:L,focus:N,valid:k,invalid:A,required:T,loading:g,disabled:I,readonly:_,className:n(e.className,ga),children:[d&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ie,{children:d}),i&&(0,F.jsx)(Le,{})]}),(0,F.jsx)(ce,{id:de,placeholder:f,value:u,role:"spinbutton",disabled:I,"aria-label":O,"aria-describedby":Ce,"aria-invalid":A?"true":void 0}),(0,F.jsx)(oe,{valid:k,invalid:A,loading:g,disabled:I}),(0,F.jsx)(ne,{loading:g,disabled:I}),r&&(0,F.jsx)(pe,{loading:g,disabled:I,readonly:_,value:u}),c&&(0,F.jsxs)(F.Fragment,{children:[i&&(0,F.jsx)(Le,{}),(0,F.jsx)(ke,{children:c})]}),p&&(0,F.jsx)(ye,{className:"k-input-spinner",size:t,fillMode:a,disabled:I})]})};Y.states=Mr;Y.options=yr;Y.className=ga;Y.defaultOptions=Wt;Y.moduleName=La;Y.folderName=Na;Y.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 Et=Y;var Ia=require("react/jsx-runtime"),va=e=>(0,Ia.jsx)(Et,{...e});var ka=require("react/jsx-runtime");var Sa=require("react/jsx-runtime");var Tr=require("react/jsx-runtime");var qt=require("react/jsx-runtime"),Cr=Y.states,Or=Y.defaultOptions,wr=Y.options,Pr=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"spin-button",title:"`Spin` Button"}],Rr=[],nt=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":a.prefix=t!=null&&t[i]?(0,qt.jsx)(z,{size:o.size,fillMode:"flat",value:"mm"}):void 0;break;case"suffix":a.suffix=t!=null&&t[i]?(0,qt.jsx)(po,{children:"mm"}):void 0;break;case"clear-button":a.showClearButton=t==null?void 0:t[i];break;case"spin-button":a.showSpinButton=t==null?void 0:t[i];break;default:break}}),(0,qt.jsx)(va,{value:"Value",style:{width:300},...o,...a})};nt.options=wr;nt.states=Cr;nt.variants=Rr;nt.defaultOptions=Or;nt.modifiers=Pr;nt.className=Y.className;var Xo="pager",Aa=Xo;var S=require("react/jsx-runtime"),Jt="k-pager",Kr=[s.focus,s.disabled],_r={size:[l.undefined,l.small,l.medium,l.large]},ae={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},B=e=>{let{responsive:t=ae.responsive,size:o,pagerSizeInfo:a=ae.pagerSizeInfo,pageTitleInfo:i=ae.pageTitleInfo,maxPag