UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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