UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 51 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 B(e){return yt[e]=(yt[e]||0)+1,`k-${e}-${yt[e]}`}var $e="input",st=$e;import{jsx as Gi}from"react/jsx-runtime";var rt="k-input",Ui=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Vi={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]},Fi={},E=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 Gi("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}))})};E.states=Ui;E.options=Vi;E.className=rt;E.defaultOptions=Fi;E.moduleName=$e;E.folderName=st;import{jsx as Ji}from"react/jsx-runtime";var lt="k-picker",$i=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Xi={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]},qi={},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 Ji("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=$i;ve.options=Xi;ve.className=lt;ve.defaultOptions=qi;ve.moduleName=$e;ve.folderName=st;import{Fragment as Zi,jsx as yo}from"react/jsx-runtime";var Et="k-font-icon",Wi=[],Yi={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]},Qi={},Xe=e=>{let{size:t,themeColor:o,icon:i,rotate:n,flip:l,...c}=e;return i?yo("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"}):yo(Zi,{})};Xe.states=Wi;Xe.options=Yi;Xe.className=Et;Xe.defaultOptions=Qi;var Eo=Xe;import{Fragment as tn,jsx as ct}from"react/jsx-runtime";var Mt="k-svg-icon",ji=[],en={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(tn,{});if(p==="none")return ct("span",{...u,className:s(e.className,Mt,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,Mt,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=ji;qe.options=en;qe.className=Mt;qe.defaultOptions=Tt;var Ot=qe;import*as Rt from"@progress/kendo-svg-icons";var Mo="icon",To="icons";import{useContext as nn}from"react";import{createContext as on}from"react";var Oo=on({iconsType:"svg"});import{Fragment as Ro,jsx as Je}from"react/jsx-runtime";var pt="k-icon",an=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),sn=[],rn={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}=nn(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:an(`${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(Eo,{...b,className:s(e.className,pt),icon:n,size:o,themeColor:i,rotate:c,flip:p})};x.states=sn;x.options=rn;x.defaultOptions=dt;x.className=pt;x.moduleName=Mo;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 pn,jsx as Kt}from"react/jsx-runtime";var Ko="k-clear-value",ln=[a.disabled,a.loading,a.readonly],cn={},$=e=>{let{disabled:t,loading:o,readonly:i,value:n}=e;return t||i||o||!n?Kt(pn,{}):Kt("span",{className:s(e.className,Ko),children:Kt(x,{icon:"x"})})};$.states=ln;$.options=cn;$.className=Ko;import{jsx as un}from"react/jsx-runtime";var _t="k-input-inner",dn=[],mn={},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 un("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=dn;X.options=mn;X.className=_t;import{jsx as _o,jsxs as bn}from"react/jsx-runtime";var Ht="k-input-inner",fn=[],hn={},Pt=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:n,valueIconName:l,...c}=e;return bn("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=fn;Pt.options=hn;Pt.className=Ht;import{jsx as vn}from"react/jsx-runtime";var wt="k-input-inner",xn=[],Nn={},Ho={value:"",placeholder:""},Dt=e=>{let{value:t=Ho.value,placeholder:o=Ho.placeholder,rows:i,disabled:n,...l}=e;return vn("textarea",{...l,className:s(e.className,wt,A(wt,e)),placeholder:o,rows:i,defaultValue:t,disabled:n||void 0})};Dt.states=xn;Dt.options=Nn;Dt.className=wt;import{Fragment as An,jsx as Po}from"react/jsx-runtime";var wo="k-input-loading-icon",Ln=[a.disabled,a.loading],Q=e=>{let{disabled:t,loading:o}=e;return t||!o?Po(An,{}):Po("span",{className:s(e.className,wo,"k-icon k-i-loading")})};Q.states=Ln;Q.className=wo;import{Fragment as kn,jsx as Do}from"react/jsx-runtime";var zo="k-input-validation-icon",Cn=[a.valid,a.invalid,a.disabled,a.loading],gn={},q=e=>{let{valid:t,invalid:o,disabled:i,loading:n}=e,l=o?"warning-circle":"check-circle";return i||n||!!!(t||o)?Do(kn,{}):Do(x,{className:s(zo),icon:l})};q.states=Cn;q.options=gn;q.className=zo;import{Fragment as yn,jsx as Bo}from"react/jsx-runtime";var In="k-input-prefix",Sn={direction:"horizontal"},Le=e=>{let{direction:t=Sn.direction,...o}=e;return e.children?Bo("span",{...o,className:s(In,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Bo(yn,{})};import{Fragment as Tn,jsx as Uo}from"react/jsx-runtime";var En="k-input-suffix",Mn={direction:"horizontal"},Ae=e=>{let{direction:t=Mn.direction,...o}=e;return e.children?Uo("span",{...o,className:s(En,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Uo(Tn,{})};import{jsx as Rl}from"react/jsx-runtime";import{jsx as Pl}from"react/jsx-runtime";import{jsx as Rn}from"react/jsx-runtime";var Vo="k-input-separator",On={direction:"vertical"},ee=e=>{let{direction:t=On.direction,...o}=e;return Rn("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",Kn=["icon-button"],_n=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],Hn={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=_n;v.options=Hn;v.variants=Kn;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 Pn}from"react/jsx-runtime";var fe=e=>Pn(v,{children:"Button",...e});import{Fragment as Xo,jsx as Z,jsxs as Ut}from"react/jsx-runtime";var wn=E.states,Dn=E.defaultOptions,zn=E.options,Bn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Un=[],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(E,{...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=zn;ge.states=wn;ge.variants=Un;ge.defaultOptions=Dn;ge.modifiers=Bn;ge.className=E.className;import{jsx as Vn}from"react/jsx-runtime";var qo=e=>Vn(v,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Fn}from"react/jsx-runtime";var Jo=e=>Fn(v,{icon:"folder",children:"Button",...e});import{jsx as Vt}from"react/jsx-runtime";var Gn=v.options,$n=v.states,Xn={...v.defaultOptions,variant:"text"},qn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Jn=[],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=Gn;ke.states=$n;ke.variants=qn;ke.defaultOptions=Xn;ke.modifiers=Jn;ke.className=v.className;import{jsx as ut}from"react/jsx-runtime";var Wn="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,Wn,`k-chip-${t}-action`),children:i})};var Ft="avatar",Wo=Ft;import{jsx as Yo}from"react/jsx-runtime";var Ye="k-avatar";var Yn=[a.hover,a.focus,a.active,a.selected,a.disabled],Qn={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},H=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})})};H.states=Yn;H.options=Qn;H.className=Ye;H.defaultOptions=Gt;H.moduleName=Ft;H.folderName=Wo;H.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var he=H;import{jsx as Zn}from"react/jsx-runtime";var Qo=e=>Zn(he,{type:"icon",...e});import{jsx as jn}from"react/jsx-runtime";var Zo=e=>jn(he,{type:"text",...e});import{jsx as ea}from"react/jsx-runtime";var jo=e=>ea(he,{type:"image",...e});import{jsx as pp}from"react/jsx-runtime";import{jsx as Qe}from"react/jsx-runtime";var ta=H.options,oa=H.states,ia={...H.defaultOptions,variant:"image"},na=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],aa=[],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=ta;Ie.states=oa;Ie.variants=na;Ie.defaultOptions=ia;Ie.modifiers=aa;Ie.className=H.className;var Ze="chip",ft=Ze,ht="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";import{jsx as Se,jsxs as la}from"react/jsx-runtime";var bt="k-chip",sa=[a.hover,a.focus,a.active,a.selected,a.disabled],ra={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 la("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(H,{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=sa;U.options=ra;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 ma}from"react/jsx-runtime";var $t="k-chip-list",ca=[],pa={size:[r.undefined,r.small,r.medium,r.large]},da={},M=e=>{let{size:t,multiselectable:o,ariaLabel:i,...n}=e;return ma("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})};M.states=ca;M.options=pa;M.className=$t;M.defaultOptions=da;M.moduleName=Ze;M.folderName=ft;M.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 Bp}from"react/jsx-runtime";import{jsx as Gp}from"react/jsx-runtime";import{jsx as ua}from"react/jsx-runtime";var xt=e=>ua(F,{text:"text",...e});import{jsx as Zp}from"react/jsx-runtime";import{jsx as od}from"react/jsx-runtime";import{Fragment as ld,jsx as rd,jsxs as cd}from"react/jsx-runtime";import{jsx as fd,jsxs as hd}from"react/jsx-runtime";import{jsx as Ld,jsxs as Ad}from"react/jsx-runtime";import{jsx as yd,jsxs as Ed}from"react/jsx-runtime";import{jsx as ye,jsxs as va}from"react/jsx-runtime";var fa={...F.options,...M.options},ha=[],ba=M.states,xa={...F.defaultOptions,...M.defaultOptions},Na=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],Ee=e=>{let{modifiers:t,className:o,...i}=e,n=t?.icon,l=t?.actions,c=t?.avatar,p=c?ht:void 0;return va(M,{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"})]})};Ee.options=fa;Ee.states=ba;Ee.variants=ha;Ee.defaultOptions=xa;Ee.modifiers=Na;Ee.className=M.className;import{jsx as Xt}from"react/jsx-runtime";var La=U.states,Aa=U.defaultOptions,Ca=U.options,ga=[],ka=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],Me=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"})};Me.options=Ca;Me.states=La;Me.variants=ga;Me.defaultOptions=Aa;Me.modifiers=ka;Me.className=U.className;var qt="popup",ti=qt;import{jsx as oi}from"react/jsx-runtime";var ii="k-animation-container",Ia=[],Sa={},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=Ia;j.options=Sa;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",ya=[],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=ya;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 Oa}from"react/jsx-runtime";var Nt="k-actions",Ma=[],Ta={},Qt={alignment:"start",orientation:"horizontal"},re=e=>{let{alignment:t=Qt.alignment,orientation:o=Qt.orientation,...i}=e;return Oa("div",{...i,className:s(Nt,{[`${Nt}-${t}`]:t,[`${Nt}-${o}`]:o},e.className),children:e.children})};re.states=Ma;re.options=Ta;re.className=Nt;re.defaultOptions=Qt;re.moduleName=Yt;re.folderName=li;import{jsx as Ka}from"react/jsx-runtime";var Ra="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 Ka(n,{...l,...!i&&{alignment:t,orientation:o},className:s(e.className,Ra),children:e.children})};var Zt="searchbox",pi=Zt;import{jsx as je,jsxs as Pa}from"react/jsx-runtime";var di="k-searchbox",_a=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Ha={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 Pa(E,{...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=_a;le.options=Ha;le.className=di;le.defaultOptions=jt;le.moduleName=Zt;le.folderName=pi;import{jsx as Vm}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",wa=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Da={size:[r.undefined,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},vt={showClearButton:!0,showValidationIcon:!0,separators:!0},P=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(E,{...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})]})]})};P.states=wa;P.options=Da;P.className=fi;P.defaultOptions=vt;P.moduleName=eo;P.folderName=mi;P.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=P;import{jsx as za}from"react/jsx-runtime";var hi=e=>za(et,{...e});import{Fragment as su,jsx as au}from"react/jsx-runtime";import{Fragment as mu,jsx as du}from"react/jsx-runtime";import{jsx as bu}from"react/jsx-runtime";import{jsx as oo}from"react/jsx-runtime";var Ba=P.states,Ua=P.defaultOptions,Va=P.options,Fa=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Ga=[],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=Va;Oe.states=Ba;Oe.variants=Ga;Oe.defaultOptions=Ua;Oe.modifiers=Fa;Oe.className=P.className;import{jsx as pe,jsxs as io}from"react/jsx-runtime";var bi="k-actionsheet-titlebar",$a={},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(P,{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=$a;import{jsx as no,jsxs as Wa}from"react/jsx-runtime";var ao="k-actionsheet-view",Xa=[],qa={},Ja={},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 Wa("div",{...p,className:s(e.className,ao,{[`${ao}-animated`]:o}),children:[u,no("div",{className:"k-actionsheet-content",children:i}),f]})};Re.states=Xa;Re.options=qa;Re.className=ao;Re.defaultOptions=Ja;var tt="action-sheet",Lt=tt;var so="overlay",xi=so;import{jsx as ja}from"react/jsx-runtime";var Ni="k-overlay",Ya=[],Qa={},Za={},de=e=>{let{...t}=e;return ja("div",{...t,className:s(e.className,Ni),children:e.children})};de.states=Ya;de.options=Qa;de.className=Ni;de.defaultOptions=Za;de.moduleName=so;de.folderName=xi;import{jsx as At,jsxs as os}from"react/jsx-runtime";var vi="k-actionsheet",es=[],ts={},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 os("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=es;O.options=ts;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 ss}from"react/jsx-runtime";var Li="k-actionsheet-container",is=[],ns={},as={},Ke=e=>{let{children:t,...o}=e;return ss("div",{...o,className:Li,children:t})};Ke.states=is;Ke.options=ns;Ke.className=Li;Ke.defaultOptions=as;Ke.moduleName=tt;Ke.folderName=Lt;import{jsx as rs}from"react/jsx-runtime";var ro=e=>{let{...t}=e;return rs("div",{...t,className:s(e.className,"k-list-ul"),children:e.children})};import{Fragment as cs,jsx as it,jsxs as lo}from"react/jsx-runtime";var co="k-actionsheet-item",ls=[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(cs,{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=ls;me.className=co;import{jsx as bf,jsxs as xf}from"react/jsx-runtime";import{jsx as Af}from"react/jsx-runtime";import{jsx as If}from"react/jsx-runtime";import{jsx as Mf}from"react/jsx-runtime";import{jsx as R,jsxs as po}from"react/jsx-runtime";var ps=O.options,ds=O.states,Ci={...O.defaultOptions,variant:"normal"},ms=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],us=[{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=ps;_e.states=ds;_e.variants=ms;_e.defaultOptions=Ci;_e.modifiers=us;_e.className=O.className;import fo from"react";import{jsx as gi}from"react/jsx-runtime";var fs="k-list-group-sticky-header",mo=e=>gi("div",{className:s(fs,e.className),children:gi("div",{className:"k-list-header-text",children:e.children})});import{jsx as bs}from"react/jsx-runtime";var hs="k-no-data",uo=e=>{let{live:t,...o}=e;return bs("span",{...o,className:s(hs,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",xs=[],Ns={size:[r.undefined,r.small,r.medium,r.large]},vs={},w=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."]})]})};w.states=xs;w.options=Ns;w.className=ho;w.defaultOptions=vs;w.moduleName=be;w.folderName=He;w.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 gs}from"react/jsx-runtime";var Si="k-list-container",Ls=[],As={},Cs={},Pe=e=>{let{...t}=e;return gs("div",{...t,className:s(e.className,Si),children:e.children})};Pe.states=Ls;Pe.options=As;Pe.className=Si;Pe.defaultOptions=Cs;Pe.moduleName=be;Pe.folderName=He;var xe="checkbox",we=xe;import{jsx as yi}from"react/jsx-runtime";var Ct="k-checkbox",ks=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Is={size:[r.undefined,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full]},Ss={},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=ks;V.options=Is;V.className=Ct;V.defaultOptions=Ss;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 Ms}from"react/jsx-runtime";var Ei="k-checkbox-list",ys=[],Es={},Mi={layout:"vertical"},D=e=>{let{layout:t=Mi.layout,...o}=e;return Ms("ul",{...o,className:s(e.className,Ei,{[`k-list-${t}`]:t}),children:e.children})};D.states=ys;D.options=Es;D.className=Ei;D.defaultOptions=Mi;D.moduleName=xe;D.folderName=we;import{jsx as Ks}from"react/jsx-runtime";var Ti="k-checkbox-list-item",Ts=[],Os={},Rs={},z=e=>{let{...t}=e;return Ks("li",{...t,className:s(e.className,Ti),children:e.children})};z.states=Ts;z.options=Os;z.className=Ti;z.defaultOptions=Rs;z.moduleName=xe;z.folderName=we;import{Fragment as _s,jsx as Oi,jsxs as Hs}from"react/jsx-runtime";var ie=({children:e="Label",id:t="cb-label-after",...o})=>Hs(_s,{children:[Oi(W,{id:t,...o}),Oi("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as Dh,jsx as wh,jsxs as zh}from"react/jsx-runtime";import{Fragment as Gh,jsx as Fh,jsxs as $h}from"react/jsx-runtime";import{Fragment as Yh,jsx as Wh,jsxs as Qh}from"react/jsx-runtime";import{jsx as tb}from"react/jsx-runtime";import{jsx as ab}from"react/jsx-runtime";import{jsx as cb}from"react/jsx-runtime";import{jsx as G,jsxs as Ri}from"react/jsx-runtime";var Ps=D.options,ws=D.states,Ds={...D.defaultOptions,variant:"vertical"},zs=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Bs=[],De=e=>{let{variant:t,...o}=e;return t==="horizontal"?Ri(D,{layout:"horizontal",...o,children:[G(z,{children:G(ie,{id:B("cb"),defaultChecked:!0,children:"Label"})}),G(z,{children:G(ie,{id:B("cb"),children:"Label"})}),G(z,{children:G(ie,{id:B("cb"),children:"Label"})})]}):Ri(D,{...o,children:[G(z,{children:G(ie,{id:B("cb"),defaultChecked:!0,children:"Label"})}),G(z,{children:G(ie,{id:B("cb"),children:"Label"})}),G(z,{children:G(ie,{id:B("cb"),children:"Label"})})]})};De.options=Ps;De.states=ws;De.variants=zs;De.defaultOptions=Ds;De.modifiers=Bs;De.className=D.className;import{jsx as Xs}from"react/jsx-runtime";var Us=W.options,Vs=W.states,Fs=W.defaultOptions,Gs=[],$s=[],ze=e=>Xs(ie,{id:B("checkbox"),...e,defaultChecked:!0,children:"Label"});ze.options=Us;ze.states=Vs;ze.variants=Gs;ze.defaultOptions=Fs;ze.modifiers=$s;ze.className=W.className;import{jsx as Ne,jsxs as Ys}from"react/jsx-runtime";var bo="k-list-item",qs=[a.hover,a.focus,a.selected,a.disabled],Js={},Ws={},_=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 Ys("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})]})};_.states=qs;_.options=Js;_.className=bo;_.defaultOptions=Ws;_.moduleName=be;_.folderName=He;_.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 Zs}from"react/jsx-runtime";var Qs="k-list-ul",nt=e=>{let{children:t,role:o,id:i,...n}=e;return Zs("ul",{...n,id:i,role:o,className:s(Qs,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 er}from"react/jsx-runtime";var js="k-list-content",ne=e=>{let{virtualization:t,grouping:o,"aria-label":i,"aria-labelledby":n,listboxId:l,...c}=e;return er("div",{...c,className:s(js,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 nr}from"react/jsx-runtime";var gt="k-list-sticky-header",tr=[a.hover,a.focus,a.selected],or={},ir={},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:nr("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=tr;kt.options=or;kt.className=gt;kt.defaultOptions=ir;import{Fragment as ix,jsx as ox,jsxs as nx}from"react/jsx-runtime";import{jsx as vo,jsxs as sr}from"react/jsx-runtime";var ar="k-list-group-item",Lo=e=>{let{groupIconName:t,...o}=e;return sr("li",{...o,role:"presentation",className:s(ar,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 pr}from"react/jsx-runtime";var Ao="k-list-optionlabel",rr=[a.hover,a.focus,a.selected,a.disabled],lr={},cr={},It=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:l,...c}=e;return pr("div",{...c,className:s(Ao,S(Ao,{hover:o,focus:i,selected:n,disabled:l})),children:t})};It.states=rr;It.options=lr;It.className=Ao;It.defaultOptions=cr;import{jsx as fr}from"react/jsx-runtime";var Co="k-list-custom-value",dr=[a.hover,a.focus,a.selected,a.disabled],mr={},ur={},Be=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:l,...c}=e;return fr("div",{...c,className:s(Co,S(Co,{hover:o,focus:i,selected:n,disabled:l})),children:t})};Be.states=dr;Be.options=mr;Be.className=Co;Be.defaultOptions=ur;import{Fragment as Lx,jsx as vx,jsxs as Ax}from"react/jsx-runtime";import{Fragment as yx,jsx as Sx,jsxs as Ex}from"react/jsx-runtime";import{Fragment as Hx,jsx as Kx,jsxs as _x}from"react/jsx-runtime";import{Fragment as Vx,jsx as Bx,jsxs as Ux}from"react/jsx-runtime";import{jsx as Xx}from"react/jsx-runtime";import{Fragment as Zx,jsx as Qx,jsxs as jx}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",hr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],br={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:Pi,adaptiveCustomValue:wi,id:at,activeDescendant:ko,"aria-label":Di,...zi}=e,Bi=at?`${at}-listbox`:void 0,Io=at?`${at}-taglist`:void 0;return Ue(St,{children:[Ue(E,{...zi,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(M,{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?Bi: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":Di,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:Pi}),children:g("div",{className:"k-list-container",children:g(w,{customValue:wi?g(Be,{text:`Use "${p}"`}):void 0,size:"large",children:Ue(ne,{"aria-label":"Options",children:[g(_,{text:"List item"}),g(_,{text:"List item"}),g(_,{text:"List item"})]})})})})]})};ue.states=hr;ue.options=br;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