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