@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,{MultiSelectValue:()=>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="input",gt=nt;var qo=require("react/jsx-runtime"),kt="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,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}))})};T.states=On;T.options=Rn;T.className=kt;T.defaultOptions=Kn;T.moduleName=nt;T.folderName=gt;var Jo=require("react/jsx-runtime"),It="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={},Ee=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,Jo.jsx)("span",{...N,className:s(e.className,It,C(It,{size:u,rounded:f,fillMode:b}),y(It,{hover:t,focus:o,disabled:n,invalid:i,valid:r,loading:c,readonly:p})),children:e.children})};Ee.states=_n;Ee.options=Hn;Ee.className=It;Ee.defaultOptions=Pn;Ee.moduleName=nt;Ee.folderName=gt;var at=require("react/jsx-runtime"),$t="k-font-icon",wn=[],zn={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]},Dn={},st=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:r,...c}=e;return n?(0,at.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,at.jsx)(at.Fragment,{})};st.states=wn;st.options=zn;st.className=$t;st.defaultOptions=Dn;var Wo=st;var Ae=require("react/jsx-runtime"),Xt="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:[oe.outline,oe.solid,oe.duotone]},qt={viewBox:"0 0 24 24",variant:oe.outline},rt=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,Ae.jsx)(Ae.Fragment,{});if(p==="none")return(0,Ae.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,Ae.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,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})})};rt.states=Bn;rt.options=Un;rt.className=Xt;rt.defaultOptions=qt;var Jt=rt;var Wt=$o(require("@progress/kendo-svg-icons"));var Yo="icon",Qo="icons";var ei=require("react");var Zo=require("react"),jo=(0,Zo.createContext)({iconsType:"svg"});var se=require("react/jsx-runtime"),St="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:[oe.outline,oe.solid,oe.duotone]},yt={viewBox:"0 0 24 24",type:"svg",variant:oe.outline},x=e=>{let{iconsType:t}=(0,ei.useContext)(jo),{size:o,themeColor:n,icon:i,type:r=t||yt.type,rotate:c,flip:p,viewBox:u=yt.viewBox,variant:f=yt.variant,...b}=e;if(!i)return(0,se.jsx)(se.Fragment,{});if((t||r)==="svg"){if(i==="none")return(0,se.jsx)(Jt,{...b,className:s(e.className,St),icon:i,size:o,variant:f});let L=Wt[i]?i:Vn(`${i}-icon`);return Wt[L]?(0,se.jsx)(Jt,{...b,className:s(e.className,St),icon:Wt[L],size:o,themeColor:n,rotate:c,flip:p,viewBox:u,variant:f}):(0,se.jsx)(se.Fragment,{})}return(0,se.jsx)(Wo,{...b,className:s(e.className,St),icon:i,size:o,themeColor:n,rotate:c,flip:p})};x.states=Fn;x.options=Gn;x.defaultOptions=yt;x.className=St;x.moduleName=Yo;x.folderName=Qo;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 Te=require("react/jsx-runtime"),ti="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,Te.jsx)(Te.Fragment,{}):(0,Te.jsx)("span",{className:s(e.className,ti),children:(0,Te.jsx)(x,{icon:"x"})})};Y.states=$n;Y.options=Xn;Y.className=ti;var oi=require("react/jsx-runtime"),Yt="k-input-inner",qn=[],Jn={},Mt={type:"text",autocomplete:"off",value:"",placeholder:""},Q=e=>{let{value:t=Mt.value,type:o=Mt.type,placeholder:n=Mt.placeholder,autocomplete:i=Mt.autocomplete,disabled:r,readOnly:c,...p}=e;return(0,oi.jsx)("input",{...p,type:o,className:s(e.className,Yt,C(Yt,e)),placeholder:n,autoComplete:i,defaultValue:t,disabled:r||void 0,readOnly:c||void 0})};Q.states=qn;Q.options=Jn;Q.className=Yt;var lt=require("react/jsx-runtime"),Qt="k-input-inner",Wn=[],Yn={},Zt=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:r,...c}=e;return(0,lt.jsxs)("span",{...c,className:s(e.className,Qt,C(Qt,e)),children:[i,!i&&r&&(0,lt.jsx)(x,{className:"k-input-value-icon",icon:r}),n&&!t&&o,n&&t&&(0,lt.jsx)("span",{className:"k-input-value-text",children:t})]})};Zt.states=Wn;Zt.options=Yn;Zt.className=Qt;var ni=require("react/jsx-runtime"),jt="k-input-inner",Qn=[],Zn={},ii={value:"",placeholder:""},eo=e=>{let{value:t=ii.value,placeholder:o=ii.placeholder,rows:n,disabled:i,...r}=e;return(0,ni.jsx)("textarea",{...r,className:s(e.className,jt,C(jt,e)),placeholder:o,rows:n,defaultValue:t,disabled:i||void 0})};eo.states=Qn;eo.options=Zn;eo.className=jt;var ct=require("react/jsx-runtime"),ai="k-input-loading-icon",jn=[a.disabled,a.loading],ie=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,ct.jsx)(ct.Fragment,{}):(0,ct.jsx)("span",{className:s(e.className,ai,"k-icon k-i-loading")})};ie.states=jn;ie.className=ai;var pt=require("react/jsx-runtime"),si="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,pt.jsx)(pt.Fragment,{}):(0,pt.jsx)(x,{className:s(si),icon:r})};Z.states=ea;Z.options=ta;Z.className=si;var dt=require("react/jsx-runtime"),oa="k-input-prefix",ia={direction:"horizontal"},Oe=e=>{let{direction:t=ia.direction,...o}=e;return e.children?(0,dt.jsx)("span",{...o,className:s(oa,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,dt.jsx)(dt.Fragment,{})};var mt=require("react/jsx-runtime"),na="k-input-suffix",aa={direction:"horizontal"},Re=e=>{let{direction:t=aa.direction,...o}=e;return e.children?(0,mt.jsx)("span",{...o,className:s(na,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,mt.jsx)(mt.Fragment,{})};var sa=require("react/jsx-runtime");var ra=require("react/jsx-runtime");var li=require("react/jsx-runtime"),ri="k-input-separator",la={direction:"vertical"},re=e=>{let{direction:t=la.direction,...o}=e;return(0,li.jsx)("span",{...o,className:s(ri,e.className,{[`${ri}-${t}`]:t})})};var to="button",ci=to;var X=require("react/jsx-runtime"),ut="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]},oo={showArrow:!1,arrowIconName:"chevron-down"},A=e=>{let{as:t="button",size:o,rounded:n,fillMode:i,themeColor:r,showArrow:c=oo.showArrow,arrowIconName:p=oo.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,...tt}=e,ot=S!=null,it=e.children!==void 0;return(0,X.jsxs)(t,{className:s(fe,ut,Xo(ut,u),C(ut,{size:o,rounded:n,fillMode:i,themeColor:r}),y(ut,{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(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=ut;A.defaultOptions=oo;A.moduleName=to;A.folderName=ci;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 pi=require("react/jsx-runtime"),Ce=e=>(0,pi.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=[],Ke=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)(Oe,{children:(0,O.jsx)(x,{icon:"lock"})}),L&&(0,O.jsx)(re,{})]}),(0,O.jsx)(Q,{placeholder:"Placeholder",value:"Value"}),N&&(0,O.jsx)(Z,{valid:o,invalid:n,loading:i,disabled:r}),(0,O.jsx)(ie,{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)(re,{}),(0,O.jsx)(Re,{children:(0,O.jsx)(Ce,{size:p.size,fillMode:"clear",children:"Send"})})]})]})};Ke.options=fa;Ke.states=ma;Ke.variants=ba;Ke.defaultOptions=ua;Ke.modifiers=ha;Ke.className=T.className;var mi=require("react/jsx-runtime"),di=e=>(0,mi.jsx)(A,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var fi=require("react/jsx-runtime"),ui=e=>(0,fi.jsx)(A,{icon:"folder",children:"Button",...e});var Et=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=[],_e=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,Et.jsx)(di,{...o,icon:"star"});case"icon-and-text":return(0,Et.jsx)(ui,{...o,icon:"star",children:"Button"});default:return(0,Et.jsx)(Ce,{...o,children:"Button"})}};_e.options=xa;_e.states=Na;_e.variants=La;_e.defaultOptions=va;_e.modifiers=Aa;_e.className=A.className;var ft=require("react/jsx-runtime"),Ca="k-chip-action";var j=e=>{let{type:t,...o}=e,n;switch(t){case"remove":n=(0,ft.jsx)(x,{icon:"x-circle",size:"small"});break;case"more":n=(0,ft.jsx)(x,{icon:"more-vertical",size:"small"});break;default:return(0,ft.jsx)(x,{icon:t,size:"small"})}return(0,ft.jsx)("span",{...o,className:s(e.className,Ca,`k-chip-${t}-action`),children:n})};var io="avatar",hi=io;var ao=require("react/jsx-runtime"),ht="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]},no={type:"text",border:!1},B=e=>{let{size:t,rounded:o,fillMode:n,themeColor:i,type:r=no.type,border:c=no.border,...p}=e;return(0,ao.jsx)("div",{...p,className:s(e.className,ht,C(ht,{size:t,rounded:o,fillMode:n,themeColor:i}),{[`${ht}-bordered`]:c}),children:(0,ao.jsx)("span",{className:`${ht}-${r}`,children:e.children})})};B.states=ga;B.options=ka;B.className=ht;B.defaultOptions=no;B.moduleName=io;B.folderName=hi;B.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var ge=B;var xi=require("react/jsx-runtime"),bi=e=>(0,xi.jsx)(ge,{type:"icon",...e});var vi=require("react/jsx-runtime"),Ni=e=>(0,vi.jsx)(ge,{type:"text",...e});var Ai=require("react/jsx-runtime"),Li=e=>(0,Ai.jsx)(ge,{type:"image",...e});var Ia=require("react/jsx-runtime");var He=require("react/jsx-runtime"),Sa=B.options,ya=B.states,Ma={...B.defaultOptions,variant:"image"},Ea=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],Ta=[],Pe=e=>{let{variant:t,...o}=e;switch(t){case"icon":return(0,He.jsx)(bi,{...o,children:(0,He.jsx)(x,{icon:"star"})});case"text":return(0,He.jsx)(Ni,{...o,children:"JO"});default:return(0,He.jsx)(Li,{...o,children:(0,He.jsx)("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};Pe.options=Sa;Pe.states=ya;Pe.variants=Ea;Pe.defaultOptions=Ma;Pe.modifiers=Ta;Pe.className=B.className;var bt="chip",Tt=bt,Ot="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";var le=require("react/jsx-runtime"),Rt="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]},Ci={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=Ci.avatarImage,hover:b,focus:N,active:L,selected:g,disabled:M,...I}=e;return(0,le.jsxs)("div",{...I,className:s(e.className,Rt,C(Rt,{size:t,rounded:o,fillMode:n,themeColor:i}),y(Rt,{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)(B,{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})]})};P.states=Oa;P.options=Ra;P.className=Rt;P.defaultOptions=Ci;P.moduleName=bt;P.folderName=Tt;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 gi=require("react/jsx-runtime"),so="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,gi.jsx)("div",{...i,className:s(e.className,so,C(so,{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=so;R.defaultOptions=Ha;R.moduleName=bt;R.folderName=Tt;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 ki=require("react/jsx-runtime"),Kt=e=>(0,ki.jsx)(J,{text:"text",...e});var za=require("react/jsx-runtime");var Da=require("react/jsx-runtime");var ro=require("react/jsx-runtime");var Ii=require("react/jsx-runtime");var Si=require("react/jsx-runtime");var yi=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"}],we=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?Ot:void 0;return(0,ce.jsxs)(R,{size:n.size,className:o,children:[(0,ce.jsx)(Kt,{...n,role:"option","aria-selected":"false","aria-pressed":void 0,icon:i?"star":void 0,actions:r?(0,ce.jsx)(j,{type:"remove"}):void 0,showAvatar:c,avatarImage:p,children:"Chip"}),(0,ce.jsx)(Kt,{...n,role:"option","aria-selected":"false","aria-pressed":void 0,icon:i?"star":void 0,actions:r?(0,ce.jsx)(j,{type:"remove"}):void 0,showAvatar:c,avatarImage:p,children:"Chip"}),(0,ce.jsx)(Kt,{...n,role:"option","aria-selected":"false","aria-pressed":void 0,icon:i?"star":void 0,actions:r?(0,ce.jsx)(j,{type:"remove"}):void 0,showAvatar:c,avatarImage:p,children:"Chip"})]})};we.options=Ba;we.states=Va;we.variants=Ua;we.defaultOptions=Fa;we.modifiers=Ga;we.className=R.className;var _t=require("react/jsx-runtime"),$a=P.states,Xa=P.defaultOptions,qa=P.options,Ja=[],Wa=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],ze=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]?Ot:void 0;break;case"more-options":n.actions||(n.actions=[]),n.actions[0]=t!=null&&t[i]?(0,_t.jsx)(j,{type:"more"}):void 0;break;case"remove-icon":n.actions||(n.actions=[]),n.actions[1]=t!=null&&t[i]?(0,_t.jsx)(j,{type:"remove"}):void 0;break;default:break}}),(0,_t.jsx)(P,{...o,...n,children:"Chip component"})};ze.options=qa;ze.states=$a;ze.variants=Ja;ze.defaultOptions=Xa;ze.modifiers=Wa;ze.className=P.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"},pe=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})})};pe.states=Za;pe.options=ja;pe.className=Oi;pe.defaultOptions=Ri;pe.moduleName=mo;pe.folderName=Ti;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 fo="action-buttons",Ki=fo;var _i=require("react/jsx-runtime"),Ht="k-actions",es=[],ts={},ho={alignment:"start",orientation:"horizontal"},he=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})};he.states=es;he.options=ts;he.className=Ht;he.defaultOptions=ho;he.moduleName=fo;he.folderName=Ki;var Pi=require("react/jsx-runtime"),os="k-actionsheet-footer",Hi={alignment:"stretched",orientation:"horizontal"},De=e=>{let{alignment:t=Hi.alignment,orientation:o=Hi.orientation,template:n,as:i=n?"div":he,...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 be=require("react/jsx-runtime"),zi="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"},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=xo.showIcon,icon:M=xo.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,zi),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)(ie,{...e}),(0,be.jsx)(Z,{...e}),(0,be.jsx)(Y,{...e})]})};xe.states=is;xe.options=ns;xe.className=zi;xe.defaultOptions=xo;xe.moduleName=bo;xe.folderName=wi;var as=require("react/jsx-runtime");var No="textbox",Di=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:ue,id:fe,"aria-label":tt,"aria-describedby":ot,...it}=e;return(0,w.jsxs)(T,{...it,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,Bi),children:[p&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Oe,{children:p}),i&&(0,w.jsx)(re,{})]}),(0,w.jsx)(Q,{id:fe,placeholder:N,value:b,type:f,disabled:K,"aria-label":tt,"aria-describedby":ot,"aria-invalid":I?"true":void 0}),c&&(0,w.jsx)(Z,{valid:M,invalid:I,loading:E,disabled:K}),(0,w.jsx)(ie,{loading:E,disabled:K}),r&&(0,w.jsx)(Y,{loading:E,disabled:K,readonly:ue,value:b}),u&&(0,w.jsxs)(w.Fragment,{children:[i&&(0,w.jsx)(re,{}),(0,w.jsx)(Re,{children:u})]})]})};U.states=ss;U.options=rs;U.className=Bi;U.defaultOptions=Pt;U.moduleName=No;U.folderName=Di;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)(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,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)(xe,{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)===De&&(0,Ue.jsx)(De,{...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",zt=Nt;var Lo="overlay",Xi=Lo;var Ji=require("react/jsx-runtime"),qi="k-overlay",Ns=[],vs={},Ls={},Ne=e=>{let{...t}=e;return(0,Ji.jsx)("div",{...t,className:s(e.className,qi),children:e.children})};Ne.states=Ns;Ne.options=vs;Ne.className=qi;Ne.defaultOptions=Ls;Ne.moduleName=Lo;Ne.folderName=Xi;var ke=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,ke.jsxs)("div",{className:"k-actionsheet-container",children:[i&&(0,ke.jsx)(Ne,{}),(0,ke.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,ke.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,ke.jsx)(Ve,{header:p,footer:u,adaptive:n,titleId:N,...e,children:c})})})]})};_.states=As;_.options=Cs;_.className=Wi;_.defaultOptions=vt;_.moduleName=Nt;_.folderName=zt;_.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=zt;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],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,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]})};ve.states=Ss;ve.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)(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)(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)(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)(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)(De,{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 Dt=$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 Ie="list",$e=Ie;var Xe=require("react/jsx-runtime"),So="k-list",Ps=[],ws={size:[l.undefined,l.small,l.medium,l.large]},zs={},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=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,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=zs;V.moduleName=Ie;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",Ds=[],Bs={},Us={},qe=e=>{let{...t}=e;return(0,an.jsx)("div",{...t,className:s(e.className,nn),children:e.children})};qe.states=Ds;qe.options=Bs;qe.className=nn;qe.defaultOptions=Us;qe.moduleName=Ie;qe.folderName=$e;var Se="checkbox",Je=Se;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=Se;$.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=Se;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=Se;G.folderName=Je;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)(te,{id:t,...o}),(0,ye.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 z=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,z.jsxs)(F,{layout:"horizontal",...o,children:[(0,z.jsx)(G,{children:(0,z.jsx)(de,{id:H("cb"),defaultChecked:!0,children:"Label"})}),(0,z.jsx)(G,{children:(0,z.jsx)(de,{id:H("cb"),children:"Label"})}),(0,z.jsx)(G,{children:(0,z.jsx)(de,{id:H("cb"),children:"Label"})})]}):(0,z.jsxs)(F,{...o,children:[(0,z.jsx)(G,{children:(0,z.jsx)(de,{id:H("cb"),defaultChecked:!0,children:"Label"})}),(0,z.jsx)(G,{children:(0,z.jsx)(de,{id:H("cb"),children:"Label"})}),(0,z.jsx)(G,{children:(0,z.jsx)(de,{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)(de,{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={},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,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})]})};D.states=cr;D.options=pr;D.className=Oo;D.defaultOptions=dr;D.moduleName=Ie;D.folderName=$e;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 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",me=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",{})})]})};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 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 zo=require("react/jsx-runtime");var Do=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},Le=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:ue,opened:fe,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)(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,bn),children:[r&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Oe,{children:r}),i&&(0,v.jsx)(re,{})]}),(0,v.jsxs)("div",{className:"k-input-values",children:[(0,v.jsx)(R,{size:t,id:Fo,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&&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:ue})]}),(0,v.jsx)(Z,{valid:M,invalid:I,loading:E,disabled:K}),(0,v.jsx)(ie,{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)(re,{}),(0,v.jsx)(Re,{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}),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,titl