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