UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 51.1 kB
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 So(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"},Y={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 yt={};function _(e){return yt[e]=(yt[e]||0)+1,`k-${e}-${yt[e]}`}var $e="input",st=$e;import{jsx as $i}from"react/jsx-runtime";var rt="k-input",Vi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Fi={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]},Gi={},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 $i("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=Vi;M.options=Fi;M.className=rt;M.defaultOptions=Gi;M.moduleName=$e;M.folderName=st;import{jsx as Wi}from"react/jsx-runtime";var lt="k-picker",Xi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],qi={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]},Ji={},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 Wi("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=Xi;ve.options=qi;ve.className=lt;ve.defaultOptions=Ji;ve.moduleName=$e;ve.folderName=st;import{Fragment as ji,jsx as yo}from"react/jsx-runtime";var Mt="k-font-icon",Yi=[],Qi={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]},Zi={},Xe=e=>{let{size:t,themeColor:o,icon:i,rotate:n,flip:l,...c}=e;return i?yo("span",{...c,className:s(e.className,Mt,A(Mt,{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"}):yo(ji,{})};Xe.states=Yi;Xe.options=Qi;Xe.className=Mt;Xe.defaultOptions=Zi;var Mo=Xe;import{Fragment as on,jsx as ct}from"react/jsx-runtime";var Et="k-svg-icon",en=[],tn={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:[Y.outline,Y.solid,Y.duotone]},Tt={viewBox:"0 0 24 24",variant:Y.outline},qe=e=>{let{size:t,themeColor:o,rotate:i,flip:n,viewBox:l=Tt.viewBox,variant:c=Tt.variant,icon:p,...u}=e;if(!p)return ct(on,{});if(p==="none")return ct("span",{...u,className:s(e.className,Et,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,Et,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=en;qe.options=tn;qe.className=Et;qe.defaultOptions=Tt;var Ot=qe;import*as Rt from"@progress/kendo-svg-icons";var Eo="icon",To="icons";import{useContext as an}from"react";import{createContext as nn}from"react";var Oo=nn({iconsType:"svg"});import{Fragment as Ro,jsx as Je}from"react/jsx-runtime";var pt="k-icon",sn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),rn=[],ln={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:[Y.outline,Y.solid,Y.duotone]},dt={viewBox:"0 0 24 24",type:"svg",variant:Y.outline},x=e=>{let{iconsType:t}=an(Oo),{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(Ro,{});if((t||l)==="svg"){if(n==="none")return Je(Ot,{...b,className:s(e.className,pt),icon:n,size:o,variant:f});let L=Rt[n]?n:sn(`${n}-icon`);return Rt[L]?Je(Ot,{...b,className:s(e.className,pt),icon:Rt[L],size:o,themeColor:i,rotate:c,flip:p,viewBox:u,variant:f}):Je(Ro,{})}return Je(Mo,{...b,className:s(e.className,pt),icon:n,size:o,themeColor:i,rotate:c,flip:p})};x.states=rn;x.options=ln;x.defaultOptions=dt;x.className=pt;x.moduleName=Eo;x.folderName=To;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 dn,jsx as Kt}from"react/jsx-runtime";var Ko="k-clear-value",cn=[a.disabled,a.loading,a.readonly],pn={},$=e=>{let{disabled:t,loading:o,readonly:i,value:n}=e;return t||i||o||!n?Kt(dn,{}):Kt("span",{className:s(e.className,Ko),children:Kt(x,{icon:"x"})})};$.states=cn;$.options=pn;$.className=Ko;import{jsx as fn}from"react/jsx-runtime";var _t="k-input-inner",mn=[],un={},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 fn("input",{...p,type:o,className:s(e.className,_t,A(_t,e)),placeholder:i,autoComplete:n,defaultValue:t,disabled:l||void 0,readOnly:c||void 0})};X.states=mn;X.options=un;X.className=_t;import{jsx as _o,jsxs as xn}from"react/jsx-runtime";var Ht="k-input-inner",hn=[],bn={},Pt=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:n,valueIconName:l,...c}=e;return xn("span",{...c,className:s(e.className,Ht,A(Ht,e)),children:[n,!n&&l&&_o(x,{className:"k-input-value-icon",icon:l}),i&&!t&&o,i&&t&&_o("span",{className:"k-input-value-text",children:t})]})};Pt.states=hn;Pt.options=bn;Pt.className=Ht;import{jsx as Ln}from"react/jsx-runtime";var wt="k-input-inner",Nn=[],vn={},Ho={value:"",placeholder:""},Dt=e=>{let{value:t=Ho.value,placeholder:o=Ho.placeholder,rows:i,disabled:n,...l}=e;return Ln("textarea",{...l,className:s(e.className,wt,A(wt,e)),placeholder:o,rows:i,defaultValue:t,disabled:n||void 0})};Dt.states=Nn;Dt.options=vn;Dt.className=wt;import{Fragment as Cn,jsx as Po}from"react/jsx-runtime";var wo="k-input-loading-icon",An=[a.disabled,a.loading],Q=e=>{let{disabled:t,loading:o}=e;return t||!o?Po(Cn,{}):Po("span",{className:s(e.className,wo,"k-icon k-i-loading")})};Q.states=An;Q.className=wo;import{Fragment as In,jsx as Do}from"react/jsx-runtime";var zo="k-input-validation-icon",gn=[a.valid,a.invalid,a.disabled,a.loading],kn={},q=e=>{let{valid:t,invalid:o,disabled:i,loading:n}=e,l=o?"warning-circle":"check-circle";return i||n||!!!(t||o)?Do(In,{}):Do(x,{className:s(zo),icon:l})};q.states=gn;q.options=kn;q.className=zo;import{Fragment as Mn,jsx as Bo}from"react/jsx-runtime";var Sn="k-input-prefix",yn={direction:"horizontal"},Le=e=>{let{direction:t=yn.direction,...o}=e;return e.children?Bo("span",{...o,className:s(Sn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Bo(Mn,{})};import{Fragment as On,jsx as Uo}from"react/jsx-runtime";var En="k-input-suffix",Tn={direction:"horizontal"},Ae=e=>{let{direction:t=Tn.direction,...o}=e;return e.children?Uo("span",{...o,className:s(En,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Uo(On,{})};import{jsx as _l}from"react/jsx-runtime";import{jsx as Dl}from"react/jsx-runtime";import{jsx as Kn}from"react/jsx-runtime";var Vo="k-input-separator",Rn={direction:"vertical"},ee=e=>{let{direction:t=Rn.direction,...o}=e;return Kn("span",{...o,className:s(Vo,e.className,{[`${Vo}-${t}`]:t})})};var zt="button",Fo=zt;import{Fragment as Go,jsx as Ce,jsxs as $o}from"react/jsx-runtime";var We="k-button",_n=["icon-button"],Hn=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],Pn={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]},Bt={showArrow:!1,arrowIconName:"chevron-down"},v=e=>{let{as:t="button",size:o,rounded:i,fillMode:n,themeColor:l,showArrow:c=Bt.showArrow,arrowIconName:p=Bt.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 $o(t,{className:s(se,We,So(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(Go,{children:I}),T?$o(Go,{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=Hn;v.options=Pn;v.variants=_n;v.className=We;v.defaultOptions=Bt;v.moduleName=zt;v.folderName=Fo;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 wn}from"react/jsx-runtime";var fe=e=>wn(v,{children:"Button",...e});import{Fragment as Xo,jsx as Z,jsxs as Ut}from"react/jsx-runtime";var Dn=M.states,zn=M.defaultOptions,Bn=M.options,Un=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Vn=[],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 Ut(M,{...p,valid:o,invalid:i,loading:n,disabled:l,readonly:c,style:{width:300},children:[u&&Ut(Xo,{children:[Z(Le,{children:Z(x,{icon:"lock"})}),L&&Z(ee,{})]}),Z(X,{placeholder:"Placeholder",value:"Value"}),N&&Z(q,{valid:o,invalid:i,loading:n,disabled:l}),Z(Q,{loading:n,disabled:l}),b&&Z($,{loading:n,disabled:l,readonly:c,value:"Value"}),f&&Ut(Xo,{children:[L&&Z(ee,{}),Z(Ae,{children:Z(fe,{size:p.size,fillMode:"clear",children:"Send"})})]})]})};ge.options=Bn;ge.states=Dn;ge.variants=Vn;ge.defaultOptions=zn;ge.modifiers=Un;ge.className=M.className;import{jsx as Fn}from"react/jsx-runtime";var qo=e=>Fn(v,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Gn}from"react/jsx-runtime";var Jo=e=>Gn(v,{icon:"folder",children:"Button",...e});import{jsx as Vt}from"react/jsx-runtime";var $n=v.options,Xn=v.states,qn={...v.defaultOptions,variant:"text"},Jn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Wn=[],ke=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Vt(qo,{...o,icon:"star"});case"icon-and-text":return Vt(Jo,{...o,icon:"star",children:"Button"});default:return Vt(fe,{...o,children:"Button"})}};ke.options=$n;ke.states=Xn;ke.variants=Jn;ke.defaultOptions=qn;ke.modifiers=Wn;ke.className=v.className;import{jsx as ut}from"react/jsx-runtime";var Yn="k-chip-action";var te=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,Yn,`k-chip-${t}-action`),children:i})};var Ft="avatar",Wo=Ft;import{jsx as Yo}from"react/jsx-runtime";var Ye="k-avatar";var Qn=[a.hover,a.focus,a.active,a.selected,a.disabled],Zn={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]},Gt={type:"text",border:!1},P=e=>{let{size:t,rounded:o,fillMode:i,themeColor:n,type:l=Gt.type,border:c=Gt.border,...p}=e;return Yo("div",{...p,className:s(e.className,Ye,A(Ye,{size:t,rounded:o,fillMode:i,themeColor:n}),{[`${Ye}-bordered`]:c}),children:Yo("span",{className:`${Ye}-${l}`,children:e.children})})};P.states=Qn;P.options=Zn;P.className=Ye;P.defaultOptions=Gt;P.moduleName=Ft;P.folderName=Wo;P.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var he=P;import{jsx as jn}from"react/jsx-runtime";var Qo=e=>jn(he,{type:"icon",...e});import{jsx as ea}from"react/jsx-runtime";var Zo=e=>ea(he,{type:"text",...e});import{jsx as ta}from"react/jsx-runtime";var jo=e=>ta(he,{type:"image",...e});import{jsx as mp}from"react/jsx-runtime";import{jsx as Qe}from"react/jsx-runtime";var oa=P.options,ia=P.states,na={...P.defaultOptions,variant:"image"},aa=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],sa=[],Ie=e=>{let{variant:t,...o}=e;switch(t){case"icon":return Qe(Qo,{...o,children:Qe(x,{icon:"star"})});case"text":return Qe(Zo,{...o,children:"JO"});default:return Qe(jo,{...o,children:Qe("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};Ie.options=oa;Ie.states=ia;Ie.variants=aa;Ie.defaultOptions=na;Ie.modifiers=sa;Ie.className=P.className;var Ze="chip",ft=Ze,ht="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";import{jsx as Se,jsxs as ca}from"react/jsx-runtime";var bt="k-chip",ra=[a.hover,a.focus,a.active,a.selected,a.disabled],la={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]},ei={avatarImage:"/packages/html/assets/avatar.jpg"},U=e=>{let{size:t,rounded:o,fillMode:i,themeColor:n,text:l,icon:c,actions:p,showAvatar:u,avatarImage:f=ei.avatarImage,hover:b,focus:N,active:L,selected:C,disabled:K,...k}=e;return ca("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(P,{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})]})};U.states=ra;U.options=la;U.className=bt;U.defaultOptions=ei;U.moduleName=Ze;U.folderName=ft;U.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=U;import{jsx as ua}from"react/jsx-runtime";var $t="k-chip-list",pa=[],da={size:[r.undefined,r.small,r.medium,r.large]},ma={},E=e=>{let{size:t,multiselectable:o,ariaLabel:i,...n}=e;return ua("div",{...n,className:s(e.className,$t,A($t,{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=pa;E.options=da;E.className=$t;E.defaultOptions=ma;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 Vp}from"react/jsx-runtime";import{jsx as Xp}from"react/jsx-runtime";import{jsx as fa}from"react/jsx-runtime";var xt=e=>fa(F,{text:"text",...e});import{jsx as ed}from"react/jsx-runtime";import{jsx as nd}from"react/jsx-runtime";import{Fragment as pd,jsx as cd,jsxs as dd}from"react/jsx-runtime";import{jsx as bd,jsxs as xd}from"react/jsx-runtime";import{jsx as Cd,jsxs as gd}from"react/jsx-runtime";import{jsx as Ed,jsxs as Td}from"react/jsx-runtime";import{jsx as ye,jsxs as La}from"react/jsx-runtime";var ha={...F.options,...E.options},ba=[],xa=E.states,Na={...F.defaultOptions,...E.defaultOptions},va=[{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 La(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(te,{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(te,{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(te,{type:"remove"}):void 0,showAvatar:c,avatarImage:p,children:"Chip"})]})};Me.options=ha;Me.states=xa;Me.variants=ba;Me.defaultOptions=Na;Me.modifiers=va;Me.className=E.className;import{jsx as Xt}from"react/jsx-runtime";var Aa=U.states,Ca=U.defaultOptions,ga=U.options,ka=[],Ia=[{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]?Xt(te,{type:"more"}):void 0;break;case"remove-icon":i.actions||(i.actions=[]),i.actions[1]=t?.[n]?Xt(te,{type:"remove"}):void 0;break;default:break}}),Xt(U,{...o,...i,children:"Chip component"})};Ee.options=ga;Ee.states=Aa;Ee.variants=ka;Ee.defaultOptions=Ca;Ee.modifiers=Ia;Ee.className=U.className;var qt="popup",ti=qt;import{jsx as oi}from"react/jsx-runtime";var ii="k-animation-container",Sa=[],ya={},Jt={positionMode:"absolute",shown:!0},j=e=>{let{positionMode:t=Jt.positionMode,shown:o=Jt.shown,animationStyle:i,offset:n,...l}=e;return oi("div",{...l,style:{...n,...e.style},className:s(e.className,ii,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:oi("div",{className:"k-child-animation-container",style:i,children:e.children})})};j.states=Sa;j.options=ya;j.className=ii;j.defaultOptions=Jt;j.moduleName=qt;j.folderName=ti;var Wt="popup",ni=Wt;import{jsx as ai}from"react/jsx-runtime";var si="k-popup",Ma=[],Ea={},ri={positionMode:"absolute"},oe=e=>{let{offset:t,positionMode:o=ri.positionMode,animationStyle:i,containerClassName:n,containerRole:l,containerAriaLabel:c,...p}=e;return ai(j,{positionMode:o,offset:t,animationStyle:i,className:n,role:l,"aria-label":c,children:ai("div",{...p,className:s(e.className,si),children:e.children})})};oe.states=Ma;oe.options=Ea;oe.className=si;oe.defaultOptions=ri;oe.moduleName=Wt;oe.folderName=ni;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 Yt="action-buttons",li=Yt;import{jsx as Ra}from"react/jsx-runtime";var Nt="k-actions",Ta=[],Oa={},Qt={alignment:"start",orientation:"horizontal"},re=e=>{let{alignment:t=Qt.alignment,orientation:o=Qt.orientation,...i}=e;return Ra("div",{...i,className:s(Nt,{[`${Nt}-${t}`]:t,[`${Nt}-${o}`]:o},e.className),children:e.children})};re.states=Ta;re.options=Oa;re.className=Nt;re.defaultOptions=Qt;re.moduleName=Yt;re.folderName=li;import{jsx as _a}from"react/jsx-runtime";var Ka="k-actionsheet-footer",ci={alignment:"stretched",orientation:"horizontal"},Te=e=>{let{alignment:t=ci.alignment,orientation:o=ci.orientation,template:i,as:n=i?"div":re,...l}=e;return _a(n,{...l,...!i&&{alignment:t,orientation:o},className:s(e.className,Ka),children:e.children})};var Zt="searchbox",pi=Zt;import{jsx as je,jsxs as wa}from"react/jsx-runtime";var di="k-searchbox",Ha=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],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.flat,h.outline]},jt={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=jt.showIcon,icon:K=jt.icon,"aria-label":k,...I}=e;return wa(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,di),children:[C&&je(x,{className:"k-input-icon",icon:K}),je(X,{placeholder:o,value:t,"aria-label":k}),je(Q,{...e}),je(q,{...e}),je($,{...e})]})};le.states=Ha;le.options=Pa;le.className=di;le.defaultOptions=jt;le.moduleName=Zt;le.folderName=pi;import{jsx as Gm}from"react/jsx-runtime";var eo="textbox",mi=eo;import{Fragment as ui,jsx as ce,jsxs as to}from"react/jsx-runtime";var fi="k-textbox",Da=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],za={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},w=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 to(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,fi),children:[p&&to(ui,{children:[ce(Le,{children:p}),n&&ce(ee,{})]}),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(Q,{loading:y,disabled:T}),l&&ce($,{loading:y,disabled:T,readonly:ae,value:b}),u&&to(ui,{children:[n&&ce(ee,{}),ce(Ae,{children:u})]})]})};w.states=Da;w.options=za;w.className=fi;w.defaultOptions=vt;w.moduleName=eo;w.folderName=mi;w.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=w;import{jsx as Ba}from"react/jsx-runtime";var hi=e=>Ba(et,{...e});import{Fragment as lu,jsx as ru}from"react/jsx-runtime";import{Fragment as fu,jsx as uu}from"react/jsx-runtime";import{jsx as Nu}from"react/jsx-runtime";import{jsx as oo}from"react/jsx-runtime";var Ua=w.states,Va=w.defaultOptions,Fa=w.options,Ga=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],$a=[],Oe=e=>{let{modifiers:t,...o}=e,i={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":i.prefix=t?.[n]?oo(x,{icon:"lock"}):void 0;break;case"suffix":i.suffix=t?.[n]?oo(fe,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":i.showClearButton=t?.[n];break;default:break}}),oo(hi,{value:"Value",style:{width:300},...o,...i})};Oe.options=Fa;Oe.states=Ua;Oe.variants=$a;Oe.defaultOptions=Va;Oe.modifiers=Ga;Oe.className=w.className;import{jsx as pe,jsxs as io}from"react/jsx-runtime";var bi="k-actionsheet-titlebar",Xa={},J=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 io("div",{...L,className:s(e.className,bi),children:[io("div",{className:"k-actionsheet-titlebar-group",children:[i&&pe("div",{className:"k-actionsheet-actions",children:i}),!N&&io("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(w,{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"})})]})};J.className=bi;J.defaultOptions=Xa;import{jsx as no,jsxs as Ya}from"react/jsx-runtime";var ao="k-actionsheet-view",qa=[],Ja={},Wa={},Re=e=>{let{adaptive:t,animated:o,children:i,header:n,footer:l,titleId:c,...p}=e,u=n?.type===J&&no(J,{adaptive:t,titleId:c,...n?.props}),f=l?.type===Te&&no(Te,{...l?.props});return Ya("div",{...p,className:s(e.className,ao,{[`${ao}-animated`]:o}),children:[u,no("div",{className:"k-actionsheet-content",children:i}),f]})};Re.states=qa;Re.options=Ja;Re.className=ao;Re.defaultOptions=Wa;var tt="action-sheet",Lt=tt;var so="overlay",xi=so;import{jsx as es}from"react/jsx-runtime";var Ni="k-overlay",Qa=[],Za={},ja={},de=e=>{let{...t}=e;return es("div",{...t,className:s(e.className,Ni),children:e.children})};de.states=Qa;de.options=Za;de.className=Ni;de.defaultOptions=ja;de.moduleName=so;de.folderName=xi;import{jsx as At,jsxs as is}from"react/jsx-runtime";var vi="k-actionsheet",ts=[],os={},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 is("div",{className:"k-actionsheet-container",children:[n&&At(de,{}),At(j,{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,vi,{[`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=ts;O.options=os;O.className=vi;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 rs}from"react/jsx-runtime";var Li="k-actionsheet-container",ns=[],as={},ss={},Ke=e=>{let{children:t,...o}=e;return rs("div",{...o,className:Li,children:t})};Ke.states=ns;Ke.options=as;Ke.className=Li;Ke.defaultOptions=ss;Ke.moduleName=tt;Ke.folderName=Lt;import{jsx as ls}from"react/jsx-runtime";var ro=e=>{let{...t}=e;return ls("div",{...t,className:s(e.className,"k-list-ul"),children:e.children})};import{Fragment as ps,jsx as it,jsxs as lo}from"react/jsx-runtime";var co="k-actionsheet-item",cs=[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 lo("span",{...u,className:s(e.className,co,S(co,{hover:n,focus:l,selected:c,disabled:p})),children:[!e.children&&it(ps,{children:lo("span",{className:"k-actionsheet-action",children:[t&&it("span",{className:"k-icon-wrap",children:it(x,{className:"k-actionsheet-item-icon",icon:t})}),lo("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=cs;me.className=co;import{jsx as Nf,jsxs as vf}from"react/jsx-runtime";import{jsx as gf}from"react/jsx-runtime";import{jsx as yf}from"react/jsx-runtime";import{jsx as Of}from"react/jsx-runtime";import{jsx as R,jsxs as po}from"react/jsx-runtime";var ds=O.options,ms=O.states,Ci={...O.defaultOptions,variant:"normal"},us=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],fs=[{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}={...Ci,...e},n={},l=po(ro,{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(J,{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?po(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(J,{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?po(Te,{alignment:"stretched",children:[R(v,{text:"Apply",themeColor:"primary"}),R(v,{text:"Cancel",themeColor:"base"})]}):void 0,children:l})};_e.options=ds;_e.states=ms;_e.variants=us;_e.defaultOptions=Ci;_e.modifiers=fs;_e.className=O.className;import fo from"react";import{jsx as gi}from"react/jsx-runtime";var hs="k-list-group-sticky-header",mo=e=>gi("div",{className:s(hs,e.className),children:gi("div",{className:"k-list-header-text",children:e.children})});import{jsx as xs}from"react/jsx-runtime";var bs="k-no-data",uo=e=>{let{live:t,...o}=e;return xs("span",{...o,className:s(bs,e.className),"aria-live":t?"polite":void 0,children:e.children})};var be="list",He=be;import{jsx as ki,jsxs as Ii}from"react/jsx-runtime";var ho="k-list",Ns=[],vs={size:[r.undefined,r.small,r.medium,r.large]},Ls={},D=e=>{let{size:t,virtualization:o,children:i,header:n,selectAll:l,optionLabel:c,customValue:p,noData:u,screenReaders:f,...b}=e,L=fo.Children.toArray(i)[0],C=L?.props?.children?fo.Children.count(L.props.children):fo.Children.count(i);return Ii("div",{...b,className:s(e.className,ho,A(ho,{size:t}),{"k-virtual-list":o}),children:[c,l,p,n&&ki(mo,{children:n}),i||(u!==void 0?u:ki(uo,{live:!0,children:"No data found."})),f&&i&&Ii(uo,{className:"k-sr-only",live:!0,children:[C," items found."]})]})};D.states=Ns;D.options=vs;D.className=ho;D.defaultOptions=Ls;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 ks}from"react/jsx-runtime";var Si="k-list-container",As=[],Cs={},gs={},Pe=e=>{let{...t}=e;return ks("div",{...t,className:s(e.className,Si),children:e.children})};Pe.states=As;Pe.options=Cs;Pe.className=Si;Pe.defaultOptions=gs;Pe.moduleName=be;Pe.folderName=He;var xe="checkbox",we=xe;import{jsx as yi}from"react/jsx-runtime";var Ct="k-checkbox",Is=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Ss={size:[r.undefined,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full]},ys={},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 yi("span",{className:"k-checkbox-wrap",role:L,children:yi("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=Is;V.options=Ss;V.className=Ct;V.defaultOptions=ys;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 W=V;import{jsx as Ts}from"react/jsx-runtime";var Mi="k-checkbox-list",Ms=[],Es={},Ei={layout:"vertical"},z=e=>{let{layout:t=Ei.layout,...o}=e;return Ts("ul",{...o,className:s(e.className,Mi,{[`k-list-${t}`]:t}),children:e.children})};z.states=Ms;z.options=Es;z.className=Mi;z.defaultOptions=Ei;z.moduleName=xe;z.folderName=we;import{jsx as _s}from"react/jsx-runtime";var Ti="k-checkbox-list-item",Os=[],Rs={},Ks={},B=e=>{let{...t}=e;return _s("li",{...t,className:s(e.className,Ti),children:e.children})};B.states=Os;B.options=Rs;B.className=Ti;B.defaultOptions=Ks;B.moduleName=xe;B.folderName=we;import{Fragment as Hs,jsx as Oi,jsxs as Ps}from"react/jsx-runtime";var ie=({children:e="Label",id:t="cb-label-after",...o})=>Ps(Hs,{children:[Oi(W,{id:t,...o}),Oi("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as Bh,jsx as zh,jsxs as Uh}from"react/jsx-runtime";import{Fragment as Xh,jsx as $h,jsxs as qh}from"react/jsx-runtime";import{Fragment as Zh,jsx as Qh,jsxs as jh}from"react/jsx-runtime";import{jsx as ib}from"react/jsx-runtime";import{jsx as rb}from"react/jsx-runtime";import{jsx as db}from"react/jsx-runtime";import{jsx as G,jsxs as Ri}from"react/jsx-runtime";var ws=z.options,Ds=z.states,zs={...z.defaultOptions,variant:"vertical"},Bs=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Us=[],De=e=>{let{variant:t,...o}=e;return t==="horizontal"?Ri(z,{layout:"horizontal",...o,children:[G(B,{children:G(ie,{id:_("cb"),defaultChecked:!0,children:"Label"})}),G(B,{children:G(ie,{id:_("cb"),children:"Label"})}),G(B,{children:G(ie,{id:_("cb"),children:"Label"})})]}):Ri(z,{...o,children:[G(B,{children:G(ie,{id:_("cb"),defaultChecked:!0,children:"Label"})}),G(B,{children:G(ie,{id:_("cb"),children:"Label"})}),G(B,{children:G(ie,{id:_("cb"),children:"Label"})})]})};De.options=ws;De.states=Ds;De.variants=Bs;De.defaultOptions=zs;De.modifiers=Us;De.className=z.className;import{jsx as qs}from"react/jsx-runtime";var Vs=W.options,Fs=W.states,Gs=W.defaultOptions,$s=[],Xs=[],ze=e=>qs(ie,{id:_("checkbox"),...e,defaultChecked:!0,children:"Label"});ze.options=Vs;ze.states=Fs;ze.variants=$s;ze.defaultOptions=Gs;ze.modifiers=Xs;ze.className=W.className;import{jsx as Ne,jsxs as Qs}from"react/jsx-runtime";var bo="k-list-item",Js=[a.hover,a.focus,a.selected,a.disabled],Ws={},Ys={},H=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 Qs("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":bo,S(bo,{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})]})};H.states=Js;H.options=Ws;H.className=bo;H.defaultOptions=Ys;H.moduleName=be;H.folderName=He;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 js}from"react/jsx-runtime";var Zs="k-list-ul",nt=e=>{let{children:t,role:o,id:i,...n}=e;return js("ul",{...n,id:i,role:o,className:s(Zs,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 xo,jsxs as tr}from"react/jsx-runtime";var er="k-list-content",ne=e=>{let{virtualization:t,grouping:o,"aria-label":i,"aria-labelledby":n,listboxId:l,...c}=e;return tr("div",{...c,className:s(er,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:xo(nt,{role:"listbox",id:l,"aria-label":i,"aria-labelledby":n,children:e.children}),t&&xo("div",{className:"k-height-container",children:xo("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 No,jsxs as ar}from"react/jsx-runtime";var gt="k-list-sticky-header",or=[a.hover,a.focus,a.selected],ir={},nr={},kt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:i,indeterminate:n,hover:l,focus:c,selected:p,...u}=e;return No("div",{...u,className:s(gt,e.className),children:ar("div",{className:s(`${gt}-item`,S(`${gt}-item`,{hover:l,focus:c,selected:p})),children:[o&&No(V,{checked:i,indeterminate:n,"aria-label":t}),No("span",{className:"k-list-item-text",children:t})]})})};kt.states=or;kt.options=ir;kt.className=gt;kt.defaultOptions=nr;import{Fragment as ax,jsx as nx,jsxs as sx}from"react/jsx-runtime";import{jsx as vo,jsxs as rr}from"react/jsx-runtime";var sr="k-list-group-item",Lo=e=>{let{groupIconName:t,...o}=e;return rr("li",{...o,role:"presentation",className:s(sr,e.className),children:[t&&vo("span",{className:"k-list-item-icon-wrapper",children:vo(x,{icon:t,className:"k-list-item-icon"})}),vo("span",{className:"k-list-item-text",children:e.children})]})};Lo.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 dr}from"react/jsx-runtime";var Ao="k-list-optionlabel",lr=[a.hover,a.focus,a.selected,a.disabled],cr={},pr={},It=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:l,...c}=e;return dr("div",{...c,className:s(Ao,S(Ao,{hover:o,focus:i,selected:n,disabled:l})),children:t})};It.states=lr;It.options=cr;It.className=Ao;It.defaultOptions=pr;import{jsx as hr}from"react/jsx-runtime";var Co="k-list-custom-value",mr=[a.hover,a.focus,a.selected,a.disabled],ur={},fr={},Be=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:l,...c}=e;return hr("div",{...c,className:s(Co,S(Co,{hover:o,focus:i,selected:n,disabled:l})),children:t})};Be.states=mr;Be.options=ur;Be.className=Co;Be.defaultOptions=fr;import{Fragment as Cx,jsx as Ax,jsxs as gx}from"react/jsx-runtime";import{Fragment as Ex,jsx as Mx,jsxs as Tx}from"react/jsx-runtime";import{Fragment as wx,jsx as Hx,jsxs as Px}from"react/jsx-runtime";import{Fragment as Gx,jsx as Vx,jsxs as Fx}from"react/jsx-runtime";import{jsx as Jx}from"react/jsx-runtime";import{Fragment as eN,jsx as jx,jsxs as tN}from"react/jsx-runtime";var go="multiselect",Ki=go;import{Fragment as St,jsx as g,jsxs as Ue}from"react/jsx-runtime";var _i="k-multiselect",br=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],xr={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: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:wi,adaptiveCustomValue:Di,id:at,activeDescendant:ko,"aria-label":zi,...Bi}=e,Ui=at?`${at}-listbox`:void 0,Io=at?`${at}-taglist`:void 0;return Ue(St,{children:[Ue(M,{...Bi,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,_i),children:[l&&Ue(St,{children:[g(Le,{children:l}),n&&g(ee,{})]}),Ue("div",{className:"k-input-values",children:[g(E,{size:t,id:Io,children:g(St,{children:f})}),g(X,{placeholder:u,value:p,role:"combobox","aria-haspopup":"listbox","aria-expanded":se?"true":"false","aria-controls":se?Ui:void 0,"aria-activedescendant":se&&ko?ko:void 0,"aria-autocomplete":"list","aria-describedby":f?Io:void 0,"aria-invalid":k?"true":void 0,"aria-busy":y?"true":void 0,"aria-label":zi,disabled:T,readOnly:ae})]}),g(q,{valid:K,invalid:k,loading:y,disabled:T}),g(Q,{loading:y,disabled:T}),g($,{loading:y,disabled:T,readonly:ae,value:f?"value":""}),c&&Ue(St,{children:[n&&g(ee,{}),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(J,{actionsEnd:g(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),input:!0,inputValue:p,inputPlaceholder:u,title:Ge,subtitle:wi}),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(H,{text:"List item"}),g(H,{text:"List item"}),g(H,{text:"List item"})]})})})})]})};ue.states=br;ue.options=xr;ue.className=_i;ue.defaultOptions=Hi;ue.moduleName=go;ue.folderName=Ki;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:"aria