UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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