@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:b,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":b&&!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 $e="input",st=$e;import{jsx as Xi}from"react/jsx-runtime";var rt="k-input",Fi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Gi={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]},$i={},M=e=>{let{hover:t,focus:o,disabled:i,invalid:n,valid:l,loading:c,readonly:p,size:u,rounded:f,fillMode:b,...N}=e;return Xi("span",{...N,className:s(e.className,rt,A(rt,{size:u,rounded:f,fillMode:b}),S(rt,{hover:t,focus:o,disabled:i,invalid:n,valid:l,loading:c,readonly:p}))})};M.states=Fi;M.options=Gi;M.className=rt;M.defaultOptions=$i;M.moduleName=$e;M.folderName=st;import{jsx as Yi}from"react/jsx-runtime";var lt="k-picker",qi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ji={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]},Wi={},ve=e=>{let{hover:t,focus:o,disabled:i,invalid:n,valid:l,loading:c,readonly:p,size:u,rounded:f,fillMode:b,...N}=e;return Yi("span",{...N,className:s(e.className,lt,A(lt,{size:u,rounded:f,fillMode:b}),S(lt,{hover:t,focus:o,disabled:i,invalid:n,valid:l,loading:c,readonly:p})),children:e.children})};ve.states=qi;ve.options=Ji;ve.className=lt;ve.defaultOptions=Wi;ve.moduleName=$e;ve.folderName=st;import{Fragment as en,jsx as Mo}from"react/jsx-runtime";var Et="k-font-icon",Qi=[],Zi={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]},ji={},Xe=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(en,{})};Xe.states=Qi;Xe.options=Zi;Xe.className=Et;Xe.defaultOptions=ji;var Eo=Xe;import{Fragment as nn,jsx as ct}from"react/jsx-runtime";var Tt="k-svg-icon",tn=[],on={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},qe=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 ct(nn,{});if(p==="none")return ct("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,b=typeof p=="object"?c&&p.variants?.[c]||p.variants?.outline||p.content:void 0;return ct("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:ct("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:l,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:p?void 0:e.children})})};qe.states=tn;qe.options=on;qe.className=Tt;qe.defaultOptions=Ot;var Rt=qe;import*as Kt from"@progress/kendo-svg-icons";var To="icon",Oo="icons";import{useContext as sn}from"react";import{createContext as an}from"react";var Ro=an({iconsType:"svg"});import{Fragment as Ko,jsx as Je}from"react/jsx-runtime";var pt="k-icon",rn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ln=[],cn={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]},dt={viewBox:"0 0 24 24",type:"svg",variant:Q.outline},x=e=>{let{iconsType:t}=sn(Ro),{size:o,themeColor:i,icon:n,type:l=t||dt.type,rotate:c,flip:p,viewBox:u=dt.viewBox,variant:f=dt.variant,...b}=e;if(!n)return Je(Ko,{});if((t||l)==="svg"){if(n==="none")return Je(Rt,{...b,className:s(e.className,pt),icon:n,size:o,variant:f});let L=Kt[n]?n:rn(`${n}-icon`);return Kt[L]?Je(Rt,{...b,className:s(e.className,pt),icon:Kt[L],size:o,themeColor:i,rotate:c,flip:p,viewBox:u,variant:f}):Je(Ko,{})}return Je(Eo,{...b,className:s(e.className,pt),icon:n,size:o,themeColor:i,rotate:c,flip:p})};x.states=ln;x.options=cn;x.defaultOptions=dt;x.className=pt;x.moduleName=To;x.folderName=Oo;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."}]};import{Fragment as mn,jsx as _t}from"react/jsx-runtime";var _o="k-clear-value",pn=[a.disabled,a.loading,a.readonly],dn={},$=e=>{let{disabled:t,loading:o,readonly:i,value:n}=e;return t||i||o||!n?_t(mn,{}):_t("span",{className:s(e.className,_o),children:_t(x,{icon:"x"})})};$.states=pn;$.options=dn;$.className=_o;import{jsx as hn}from"react/jsx-runtime";var Ht="k-input-inner",un=[],fn={},mt={type:"text",autocomplete:"off",value:"",placeholder:""},X=e=>{let{value:t=mt.value,type:o=mt.type,placeholder:i=mt.placeholder,autocomplete:n=mt.autocomplete,disabled:l,readOnly:c,...p}=e;return hn("input",{...p,type:o,className:s(e.className,Ht,A(Ht,e)),placeholder:i,autoComplete:n,defaultValue:t,disabled:l||void 0,readOnly:c||void 0})};X.states=un;X.options=fn;X.className=Ht;import{jsx as Ho,jsxs as Nn}from"react/jsx-runtime";var Pt="k-input-inner",bn=[],xn={},wt=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:n,valueIconName:l,...c}=e;return Nn("span",{...c,className:s(e.className,Pt,A(Pt,e)),children:[n,!n&&l&&Ho(x,{className:"k-input-value-icon",icon:l}),i&&!t&&o,i&&t&&Ho("span",{className:"k-input-value-text",children:t})]})};wt.states=bn;wt.options=xn;wt.className=Pt;import{jsx as An}from"react/jsx-runtime";var zt="k-input-inner",vn=[],Ln={},Po={value:"",placeholder:""},Dt=e=>{let{value:t=Po.value,placeholder:o=Po.placeholder,rows:i,disabled:n,...l}=e;return An("textarea",{...l,className:s(e.className,zt,A(zt,e)),placeholder:o,rows:i,defaultValue:t,disabled:n||void 0})};Dt.states=vn;Dt.options=Ln;Dt.className=zt;import{Fragment as gn,jsx as wo}from"react/jsx-runtime";var zo="k-input-loading-icon",Cn=[a.disabled,a.loading],Z=e=>{let{disabled:t,loading:o}=e;return t||!o?wo(gn,{}):wo("span",{className:s(e.className,zo,"k-icon k-i-loading")})};Z.states=Cn;Z.className=zo;import{Fragment as Sn,jsx as Do}from"react/jsx-runtime";var Bo="k-input-validation-icon",kn=[a.valid,a.invalid,a.disabled,a.loading],In={},q=e=>{let{valid:t,invalid:o,disabled:i,loading:n}=e,l=o?"warning-circle":"check-circle";return i||n||!!!(t||o)?Do(Sn,{}):Do(x,{className:s(Bo),icon:l})};q.states=kn;q.options=In;q.className=Bo;import{Fragment as En,jsx as Uo}from"react/jsx-runtime";var yn="k-input-prefix",Mn={direction:"horizontal"},Le=e=>{let{direction:t=Mn.direction,...o}=e;return e.children?Uo("span",{...o,className:s(yn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Uo(En,{})};import{Fragment as Rn,jsx as Vo}from"react/jsx-runtime";var Tn="k-input-suffix",On={direction:"horizontal"},Ae=e=>{let{direction:t=On.direction,...o}=e;return e.children?Vo("span",{...o,className:s(Tn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Vo(Rn,{})};import{jsx as Hl}from"react/jsx-runtime";import{jsx as Dl}from"react/jsx-runtime";import{jsx as _n}from"react/jsx-runtime";var Fo="k-input-separator",Kn={direction:"vertical"},te=e=>{let{direction:t=Kn.direction,...o}=e;return _n("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 We="k-button",Hn=["icon-button"],Pn=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],wn={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:b,active:N,selected:L,disabled:C,togglable:K,ariaDisabled:k,icon:I,iconSize:y,text:T,iconClassName:ae,className:se,...Ve}=e,Fe=I!=null,Ge=e.children!==void 0;return Xo(t,{className:s(se,We,yo(We,u),A(We,{size:o,rounded:i,fillMode:n,themeColor:l}),S(We,{hover:f,focus:b,active:N,disabled:C||k,selected:L}),{"k-icon-button":!T&&!Ge&&Fe}),"aria-pressed":K?L?"true":"false":void 0,...Ve,"aria-disabled":k?"true":void 0,disabled:C||void 0,children:[typeof I=="string"&&I&&Ce(x,{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(x,{icon:p})})]})};v.states=Pn;v.options=wn;v.variants=Hn;v.className=We;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 Dn=M.states,Bn=M.defaultOptions,Un=M.options,Vn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Fn=[],ge=e=>{let{modifiers:t,valid:o,invalid:i,loading:n,disabled:l,readonly:c,...p}=e,u=t?.prefix,f=t?.suffix,b=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(x,{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}),b&&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=Un;ge.states=Dn;ge.variants=Fn;ge.defaultOptions=Bn;ge.modifiers=Vn;ge.className=M.className;import{jsx as Gn}from"react/jsx-runtime";var Jo=e=>Gn(v,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as $n}from"react/jsx-runtime";var Wo=e=>$n(v,{icon:"folder",children:"Button",...e});import{jsx as Ft}from"react/jsx-runtime";var Xn=v.options,qn=v.states,Jn={...v.defaultOptions,variant:"text"},Wn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Yn=[],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=Xn;ke.states=qn;ke.variants=Wn;ke.defaultOptions=Jn;ke.modifiers=Yn;ke.className=v.className;import{jsx as ut}from"react/jsx-runtime";var Qn="k-chip-action";var J=e=>{let{type:t,...o}=e,i;switch(t){case"remove":i=ut(x,{icon:"x-circle",size:"small"});break;case"more":i=ut(x,{icon:"more-vertical",size:"small"});break;default:return ut(x,{icon:t,size:"small"})}return ut("span",{...o,className:s(e.className,Qn,`k-chip-${t}-action`),children:i})};var Gt="avatar",Yo=Gt;import{jsx as Qo}from"react/jsx-runtime";var Ye="k-avatar";var Zn=[a.hover,a.focus,a.active,a.selected,a.disabled],jn={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,Ye,A(Ye,{size:t,rounded:o,fillMode:i,themeColor:n}),{[`${Ye}-bordered`]:c}),children:Qo("span",{className:`${Ye}-${l}`,children:e.children})})};w.states=Zn;w.options=jn;w.className=Ye;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 ea}from"react/jsx-runtime";var Zo=e=>ea(he,{type:"icon",...e});import{jsx as ta}from"react/jsx-runtime";var jo=e=>ta(he,{type:"text",...e});import{jsx as oa}from"react/jsx-runtime";var ei=e=>oa(he,{type:"image",...e});import{jsx as up}from"react/jsx-runtime";import{jsx as Qe}from"react/jsx-runtime";var ia=w.options,na=w.states,aa={...w.defaultOptions,variant:"image"},sa=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],ra=[],Ie=e=>{let{variant:t,...o}=e;switch(t){case"icon":return Qe(Zo,{...o,children:Qe(x,{icon:"star"})});case"text":return Qe(jo,{...o,children:"JO"});default:return Qe(ei,{...o,children:Qe("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};Ie.options=ia;Ie.states=na;Ie.variants=sa;Ie.defaultOptions=aa;Ie.modifiers=ra;Ie.className=w.className;var Ze="chip",ft=Ze,ht="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";import{jsx as Se,jsxs as pa}from"react/jsx-runtime";var bt="k-chip",la=[a.hover,a.focus,a.active,a.selected,a.disabled],ca={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"},H=e=>{let{size:t,rounded:o,fillMode:i,themeColor:n,text:l,icon:c,actions:p,showAvatar:u,avatarImage:f=ti.avatarImage,hover:b,focus:N,active:L,selected:C,disabled:K,...k}=e;return pa("div",{...k,className:s(e.className,bt,A(bt,{size:t,rounded:o,fillMode:i,themeColor:n}),S(bt,{hover:b,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(x,{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})]})};H.states=la;H.options=ca;H.className=bt;H.defaultOptions=ti;H.moduleName=Ze;H.folderName=ft;H.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=H;import{jsx as fa}from"react/jsx-runtime";var Xt="k-chip-list",da=[],ma={size:[r.undefined,r.small,r.medium,r.large]},ua={},E=e=>{let{size:t,multiselectable:o,ariaLabel:i,...n}=e;return fa("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=da;E.options=ma;E.className=Xt;E.defaultOptions=ua;E.moduleName=Ze;E.folderName=ft;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 ha}from"react/jsx-runtime";var xt=e=>ha(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 Aa}from"react/jsx-runtime";var ba={...F.options,...E.options},xa=[],Na=E.states,va={...F.defaultOptions,...E.defaultOptions},La=[{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?ht:void 0;return Aa(E,{size:i.size,className:o,children:[ye(xt,{...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(xt,{...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(xt,{...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=ba;Me.states=Na;Me.variants=xa;Me.defaultOptions=va;Me.modifiers=La;Me.className=E.className;import{jsx as qt}from"react/jsx-runtime";var Ca=H.states,ga=H.defaultOptions,ka=H.options,Ia=[],Sa=[{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]?ht: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(H,{...o,...i,children:"Chip component"})};Ee.options=ka;Ee.states=Ca;Ee.variants=Ia;Ee.defaultOptions=ga;Ee.modifiers=Sa;Ee.className=H.className;var Jt="popup",oi=Jt;import{jsx as ii}from"react/jsx-runtime";var ni="k-animation-container",ya=[],Ma={},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=ya;ee.options=Ma;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",Ea=[],Ta={},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=Ea;oe.options=Ta;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 Ka}from"react/jsx-runtime";var Nt="k-actions",Oa=[],Ra={},Zt={alignment:"start",orientation:"horizontal"},re=e=>{let{alignment:t=Zt.alignment,orientation:o=Zt.orientation,...i}=e;return Ka("div",{...i,className:s(Nt,{[`${Nt}-${t}`]:t,[`${Nt}-${o}`]:o},e.className),children:e.children})};re.states=Oa;re.options=Ra;re.className=Nt;re.defaultOptions=Zt;re.moduleName=Qt;re.folderName=ci;import{jsx as Ha}from"react/jsx-runtime";var _a="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,_a),children:e.children})};var jt="searchbox",di=jt;import{jsx as je,jsxs as za}from"react/jsx-runtime";var mi="k-searchbox",Pa=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],wa={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:b,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:b,loading:N,disabled:L,className:s(e.className,mi),children:[C&&je(x,{className:"k-input-icon",icon:K}),je(X,{placeholder:o,value:t,"aria-label":k}),je(Z,{...e}),je(q,{...e}),je($,{...e})]})};le.states=Pa;le.options=wa;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",Da=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ba={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]},vt={showClearButton:!0,showValidationIcon:!0,separators:!0},z=e=>{let{size:t,rounded:o,fillMode:i,separators:n=vt.separators,showClearButton:l=vt.showClearButton,showValidationIcon:c=vt.showValidationIcon,prefix:p,suffix:u,type:f,value:b,placeholder:N,hover:L,focus:C,valid:K,invalid:k,required:I,loading:y,disabled:T,readonly:ae,id:se,"aria-label":Ve,"aria-describedby":Fe,...Ge}=e;return oo(M,{...Ge,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:b,type:f,disabled:T,"aria-label":Ve,"aria-describedby":Fe,"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:b}),u&&oo(fi,{children:[n&&ce(te,{}),ce(Ae,{children:u})]})]})};z.states=Da;z.options=Ba;z.className=hi;z.defaultOptions=vt;z.moduleName=to;z.folderName=ui;z.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 et=z;import{jsx as Ua}from"react/jsx-runtime";var bi=e=>Ua(et,{...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 Va=z.states,Fa=z.defaultOptions,Ga=z.options,$a=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Xa=[],Oe=e=>{let{modifiers:t,...o}=e,i={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":i.prefix=t?.[n]?io(x,{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=Ga;Oe.states=Va;Oe.variants=Xa;Oe.defaultOptions=Fa;Oe.modifiers=$a;Oe.className=z.className;import{jsx as pe,jsxs as no}from"react/jsx-runtime";var xi="k-actionsheet-titlebar",qa={},W=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:n,filter:l,input:c,inputValue:p,inputPlaceholder:u,adaptive:f,titleId:b,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:b,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:b,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(z,{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=qa;import{jsx as ao,jsxs as Qa}from"react/jsx-runtime";var so="k-actionsheet-view",Ja=[],Wa={},Ya={},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 Qa("div",{...p,className:s(e.className,so,{[`${so}-animated`]:o}),children:[u,ao("div",{className:"k-actionsheet-content",children:i}),f]})};Re.states=Ja;Re.options=Wa;Re.className=so;Re.defaultOptions=Ya;var tt="action-sheet",Lt=tt;var ro="overlay",Ni=ro;import{jsx as ts}from"react/jsx-runtime";var vi="k-overlay",Za=[],ja={},es={},de=e=>{let{...t}=e;return ts("div",{...t,className:s(e.className,vi),children:e.children})};de.states=Za;de.options=ja;de.className=vi;de.defaultOptions=es;de.moduleName=ro;de.folderName=Ni;import{jsx as At,jsxs as ns}from"react/jsx-runtime";var Li="k-actionsheet",os=[],is={},ot={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},O=e=>{let{side:t=ot.side,fullscreen:o=ot.fullscreen,adaptive:i=ot.adaptive,overlay:n=ot.overlay,template:l,children:c,header:p,footer:u,id:f,...b}=e,N=f&&!l&&p?`${f}-title`:void 0;return ns("div",{className:"k-actionsheet-container",children:[n&&At(de,{}),At(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:At("div",{...b,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||At(Re,{header:p,footer:u,adaptive:i,titleId:N,...e,children:c})})})]})};O.states=os;O.options=is;O.className=Li;O.defaultOptions=ot;O.moduleName=tt;O.folderName=Lt;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 ls}from"react/jsx-runtime";var Ai="k-actionsheet-container",as=[],ss={},rs={},Ke=e=>{let{children:t,...o}=e;return ls("div",{...o,className:Ai,children:t})};Ke.states=as;Ke.options=ss;Ke.className=Ai;Ke.defaultOptions=rs;Ke.moduleName=tt;Ke.folderName=Lt;import{jsx as cs}from"react/jsx-runtime";var lo=e=>{let{...t}=e;return cs("div",{...t,className:s(e.className,"k-list-ul"),children:e.children})};import{Fragment as ds,jsx as it,jsxs as co}from"react/jsx-runtime";var po="k-actionsheet-item",ps=[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&&it(ds,{children:co("span",{className:"k-actionsheet-action",children:[t&&it("span",{className:"k-icon-wrap",children:it(x,{className:"k-actionsheet-item-icon",icon:t})}),co("span",{className:"k-actionsheet-item-text",children:[o&&it("span",{className:"k-actionsheet-item-title",children:o}),i&&it("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};me.states=ps;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 ms=O.options,us=O.states,gi={...O.defaultOptions,variant:"normal"},fs=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],hs=[{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=ms;_e.states=us;_e.variants=fs;_e.defaultOptions=gi;_e.modifiers=hs;_e.className=O.className;import ho from"react";import{jsx as ki}from"react/jsx-runtime";var bs="k-list-group-sticky-header",uo=e=>ki("div",{className:s(bs,e.className),children:ki("div",{className:"k-list-header-text",children:e.children})});import{jsx as Ns}from"react/jsx-runtime";var xs="k-no-data",fo=e=>{let{live:t,...o}=e;return Ns("span",{...o,className:s(xs,e.className),"aria-live":t?"polite":void 0,children:e.children})};var be="list",He=be;import{jsx as Ii,jsxs as Si}from"react/jsx-runtime";var bo="k-list",vs=[],Ls={size:[r.undefined,r.small,r.medium,r.large]},As={},D=e=>{let{size:t,virtualization:o,children:i,header:n,selectAll:l,optionLabel:c,customValue:p,noData:u,screenReaders:f,...b}=e,L=ho.Children.toArray(i)[0],C=L?.props?.children?ho.Children.count(L.props.children):ho.Children.count(i);return Si("div",{...b,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."]})]})};D.states=vs;D.options=Ls;D.className=bo;D.defaultOptions=As;D.moduleName=be;D.folderName=He;D.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 Is}from"react/jsx-runtime";var yi="k-list-container",Cs=[],gs={},ks={},Pe=e=>{let{...t}=e;return Is("div",{...t,className:s(e.className,yi),children:e.children})};Pe.states=Cs;Pe.options=gs;Pe.className=yi;Pe.defaultOptions=ks;Pe.moduleName=be;Pe.folderName=He;var xe="checkbox",we=xe;import{jsx as Mi}from"react/jsx-runtime";var Ct="k-checkbox",Ss=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],ys={size:[r.undefined,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full]},Ms={},V=e=>{let{id:t,checked:o,indeterminate:i,hover:n,focus:l,disabled:c,invalid:p,valid:u,required:f,size:b,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,Ct,A(Ct,{size:b,rounded:N}),S(Ct,{hover:n,focus:l,disabled:c,invalid:p,valid:u,indeterminate:i,checked:o}))})})};V.states=Ss;V.options=ys;V.className=Ct;V.defaultOptions=Ms;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 Os}from"react/jsx-runtime";var Ei="k-checkbox-list",Es=[],Ts={},Ti={layout:"vertical"},B=e=>{let{layout:t=Ti.layout,...o}=e;return Os("ul",{...o,className:s(e.className,Ei,{[`k-list-${t}`]:t}),children:e.children})};B.states=Es;B.options=Ts;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",Rs=[],Ks={},_s={},U=e=>{let{...t}=e;return Hs("li",{...t,className:s(e.className,Oi),children:e.children})};U.states=Rs;U.options=Ks;U.className=Oi;U.defaultOptions=_s;U.moduleName=xe;U.folderName=we;import{Fragment as Ps,jsx as Ri,jsxs as ws}from"react/jsx-runtime";var ie=({children:e="Label",id:t="cb-label-after",...o})=>ws(Ps,{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,Ds=B.states,Bs={...B.defaultOptions,variant:"vertical"},Us=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Vs=[],ze=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"})})]})};ze.options=zs;ze.states=Ds;ze.variants=Us;ze.defaultOptions=Bs;ze.modifiers=Vs;ze.className=B.className;import{jsx as Js}from"react/jsx-runtime";var Fs=Y.options,Gs=Y.states,$s=Y.defaultOptions,Xs=[],qs=[],De=e=>Js(ie,{id:_("checkbox"),...e,defaultChecked:!0,children:"Label"});De.options=Fs;De.states=Gs;De.variants=Xs;De.defaultOptions=$s;De.modifiers=qs;De.className=Y.className;import{jsx as Ne,jsxs as Zs}from"react/jsx-runtime";var xo="k-list-item",Ws=[a.hover,a.focus,a.selected,a.disabled],Ys={},Qs={},P=e=>{let{text:t,groupLabel:o,group:i,iconName:n,iconClassName:l,showCheckbox:c,checked:p,hover:u,focus:f,selected:b,disabled:N,actions:L,description:C,id:K,...k}=e,I=t||e.children;return Zs("li",{...k,id:K,role:i?"presentation":"option",tabIndex:i?void 0:f?0:-1,"aria-selected":!i&&b?"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:b})),children:[c&&Ne(V,{checked:p}),n&&Ne("span",{className:"k-list-item-icon-wrapper",children:Ne(x,{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})]})};P.states=Ws;P.options=Ys;P.className=xo;P.defaultOptions=Qs;P.moduleName=be;P.folderName=He;P.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 er}from"react/jsx-runtime";var js="k-list-ul",nt=e=>{let{children:t,role:o,id:i,...n}=e;return er("ul",{...n,id:i,role:o,className:s(js,e.className),children:t})};nt.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 or}from"react/jsx-runtime";var tr="k-list-content",ne=e=>{let{virtualization:t,grouping:o,"aria-label":i,"aria-labelledby":n,listboxId:l,...c}=e;return or("div",{...c,className:s(tr,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(nt,{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 sr}from"react/jsx-runtime";var gt="k-list-sticky-header",ir=[a.hover,a.focus,a.selected],nr={},ar={},kt=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(gt,e.className),children:sr("div",{className:s(`${gt}-item`,S(`${gt}-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})]})})};kt.states=ir;kt.options=nr;kt.className=gt;kt.defaultOptions=ar;import{Fragment as sx,jsx as ax,jsxs as rx}from"react/jsx-runtime";import{jsx as Lo,jsxs as lr}from"react/jsx-runtime";var rr="k-list-group-item",Ao=e=>{let{groupIconName:t,...o}=e;return lr("li",{...o,role:"presentation",className:s(rr,e.className),children:[t&&Lo("span",{className:"k-list-item-icon-wrapper",children:Lo(x,{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 mr}from"react/jsx-runtime";var Co="k-list-optionlabel",cr=[a.hover,a.focus,a.selected,a.disabled],pr={},dr={},It=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:l,...c}=e;return mr("div",{...c,className:s(Co,S(Co,{hover:o,focus:i,selected:n,disabled:l})),children:t})};It.states=cr;It.options=pr;It.className=Co;It.defaultOptions=dr;import{jsx as br}from"react/jsx-runtime";var go="k-list-custom-value",ur=[a.hover,a.focus,a.selected,a.disabled],fr={},hr={},Be=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:l,...c}=e;return br("div",{...c,className:s(go,S(go,{hover:o,focus:i,selected:n,disabled:l})),children:t})};Be.states=ur;Be.options=fr;Be.className=go;Be.defaultOptions=hr;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 zx,jsx as Px,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 St,jsx as g,jsxs as Ue}from"react/jsx-runtime";var Hi="k-multiselect",xr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Nr={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]},Pi={separators:!0},ue=e=>{let{size:t,rounded:o,fillMode:i,separators:n=Pi.separators,prefix:l,suffix:c,value:p,placeholder:u,tags:f,popup:b,showArrowButton:N,hover:L,focus:C,valid:K,invalid:k,required:I,loading:y,disabled:T,readonly:ae,opened:se,adaptive:Ve,adaptiveSettings:Fe,adaptiveTitle:Ge,adaptiveSubtitle:zi,adaptiveCustomValue:Di,id:at,activeDescendant:Io,"aria-label":Bi,...Ui}=e,Vi=at?`${at}-listbox`:void 0,So=at?`${at}-taglist`:void 0;return Ue(St,{children:[Ue(M,{...Ui,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:[l&&Ue(St,{children:[g(Le,{children:l}),n&&g(te,{})]}),Ue("div",{className:"k-input-values",children:[g(E,{size:t,id:So,children:g(St,{children:f})}),g(X,{placeholder:u,value:p,role:"combobox","aria-haspopup":"listbox","aria-expanded":se?"true":"false","aria-controls":se?Vi: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":Bi,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(St,{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&&b&&g(oe,{className:"k-list-container k-multiselect-popup",containerRole:"region",containerAriaLabel:"MultiSelect suggestions",children:b}),Ve&&g(O,{adaptive:!0,...Fe,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:Ge,subtitle:zi}),children:g("div",{className:"k-list-container",children:g(D,{customValue:Di?g(Be,{text:`Use "${p}"`}):void 0,size:"large",children:Ue(ne,{"aria-label":"Options",children:[g(P,{text:"List item"}),g(P,{text:"List item"}),g(P,{text:"List item"})]})})})})]})};ue.states=xr;ue.options=Nr;ue.className=Hi;ue.defaultOptions=Pi;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