UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 41.6 kB
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var g=(e,t)=>i({[`${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:s,hover:n,focus:r,checked:d,active:c,selected:m,disabled:f,indeterminate:b,loading:x,empty:v,readonly:y,highlighted:O,...k}=t;return i({"k-valid":o,"k-invalid":s,"k-hover":n,"k-focus":r,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":f,"k-indeterminate":b&&!d,"k-loading":x,"k-empty":v,"k-readonly":y,"k-highlighted":O},Object.keys(k).reduce((A,I)=>(I.startsWith("k-")?A[I]=k[I]:A[`k-${I}`]=k[I],A),{}))};function to(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(s=>[`k-${s}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},p={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"},X={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},u={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 st={};function D(e){return st[e]=(st[e]||0)+1,`k-${e}-${st[e]}`}var Ke="input",$e=Ke;import{jsx as fn}from"react/jsx-runtime";var Xe="k-input",pn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],mn={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},un={},C=e=>{let{hover:t,focus:o,disabled:s,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:f,fillMode:b,...x}=e;return fn("span",{...x,className:i(e.className,Xe,g(Xe,{size:m,rounded:f,fillMode:b}),S(Xe,{hover:t,focus:o,disabled:s,invalid:n,valid:r,loading:d,readonly:c}))})};C.states=pn;C.options=mn;C.className=Xe;C.defaultOptions=un;C.moduleName=Ke;C.folderName=$e;import{jsx as Nn}from"react/jsx-runtime";var qe="k-picker",bn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],hn={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},xn={},me=e=>{let{hover:t,focus:o,disabled:s,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:f,fillMode:b,...x}=e;return Nn("span",{...x,className:i(e.className,qe,g(qe,{size:m,rounded:f,fillMode:b}),S(qe,{hover:t,focus:o,disabled:s,invalid:n,valid:r,loading:d,readonly:c})),children:e.children})};me.states=bn;me.options=hn;me.className=qe;me.defaultOptions=xn;me.moduleName=Ke;me.folderName=$e;import{Fragment as gn,jsx as oo}from"react/jsx-runtime";var rt="k-font-icon",Ln=[],vn={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},An={},_e=e=>{let{size:t,themeColor:o,icon:s,rotate:n,flip:r,...d}=e;return s?oo("span",{...d,className:i(e.className,rt,g(rt,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):oo(gn,{})};_e.states=Ln;_e.options=vn;_e.className=rt;_e.defaultOptions=An;var no=_e;import{Fragment as Sn,jsx as Je}from"react/jsx-runtime";var lt="k-svg-icon",kn=[],In={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[X.outline,X.solid,X.duotone]},ct={viewBox:"0 0 24 24",variant:X.outline},He=e=>{let{size:t,themeColor:o,rotate:s,flip:n,viewBox:r=ct.viewBox,variant:d=ct.variant,icon:c,...m}=e;if(!c)return Je(Sn,{});if(c==="none")return Je("span",{...m,className:i(e.className,lt,g("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let f=typeof c=="object"&&c.name&&c.name,b=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return Je("span",{...m,className:i(e.className,lt,g("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:Je("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:r,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:c?void 0:e.children})})};He.states=kn;He.options=In;He.className=lt;He.defaultOptions=ct;var dt=He;import*as pt from"@progress/kendo-svg-icons";var io="icon",ao="icons";import{useContext as En}from"react";import{createContext as Cn}from"react";var so=Cn({iconsType:"svg"});import{Fragment as ro,jsx as Pe}from"react/jsx-runtime";var We="k-icon",yn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Mn=[],Tn={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[X.outline,X.solid,X.duotone]},Ye={viewBox:"0 0 24 24",type:"svg",variant:X.outline},L=e=>{let{iconsType:t}=En(so),{size:o,themeColor:s,icon:n,type:r=t||Ye.type,rotate:d,flip:c,viewBox:m=Ye.viewBox,variant:f=Ye.variant,...b}=e;if(!n)return Pe(ro,{});if((t||r)==="svg"){if(n==="none")return Pe(dt,{...b,className:i(e.className,We),icon:n,size:o,variant:f});let v=pt[n]?n:yn(`${n}-icon`);return pt[v]?Pe(dt,{...b,className:i(e.className,We),icon:pt[v],size:o,themeColor:s,rotate:d,flip:c,viewBox:m,variant:f}):Pe(ro,{})}return Pe(no,{...b,className:i(e.className,We),icon:n,size:o,themeColor:s,rotate:d,flip:c})};L.states=Mn;L.options=Tn;L.defaultOptions=Ye;L.className=We;L.moduleName=io;L.folderName=ao;L.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 Kn,jsx as mt}from"react/jsx-runtime";var lo="k-clear-value",On=[a.disabled,a.loading,a.readonly],Rn={},U=e=>{let{disabled:t,loading:o,readonly:s,value:n}=e;return t||s||o||!n?mt(Kn,{}):mt("span",{className:i(e.className,lo),children:mt(L,{icon:"x"})})};U.states=On;U.options=Rn;U.className=lo;import{jsx as Pn}from"react/jsx-runtime";var ut="k-input-inner",_n=[],Hn={},Qe={type:"text",autocomplete:"off",value:"",placeholder:""},F=e=>{let{value:t=Qe.value,type:o=Qe.type,placeholder:s=Qe.placeholder,autocomplete:n=Qe.autocomplete,disabled:r,readOnly:d,...c}=e;return Pn("input",{...c,type:o,className:i(e.className,ut,g(ut,e)),placeholder:s,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};F.states=_n;F.options=Hn;F.className=ut;import{jsx as co,jsxs as zn}from"react/jsx-runtime";var ft="k-input-inner",wn=[],Dn={},bt=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:n,valueIconName:r,...d}=e;return zn("span",{...d,className:i(e.className,ft,g(ft,e)),children:[n,!n&&r&&co(L,{className:"k-input-value-icon",icon:r}),s&&!t&&o,s&&t&&co("span",{className:"k-input-value-text",children:t})]})};bt.states=wn;bt.options=Dn;bt.className=ft;import{jsx as Fn}from"react/jsx-runtime";var ht="k-input-inner",Bn=[],Un={},po={value:"",placeholder:""},xt=e=>{let{value:t=po.value,placeholder:o=po.placeholder,rows:s,disabled:n,...r}=e;return Fn("textarea",{...r,className:i(e.className,ht,g(ht,e)),placeholder:o,rows:s,defaultValue:t,disabled:n||void 0})};xt.states=Bn;xt.options=Un;xt.className=ht;import{Fragment as Gn,jsx as mo}from"react/jsx-runtime";var uo="k-input-loading-icon",Vn=[a.disabled,a.loading],q=e=>{let{disabled:t,loading:o}=e;return t||!o?mo(Gn,{}):mo("span",{className:i(e.className,uo,"k-icon k-i-loading")})};q.states=Vn;q.className=uo;import{Fragment as qn,jsx as fo}from"react/jsx-runtime";var bo="k-input-validation-icon",$n=[a.valid,a.invalid,a.disabled,a.loading],Xn={},V=e=>{let{valid:t,invalid:o,disabled:s,loading:n}=e,r=o?"warning-circle":"check-circle";return s||n||!!!(t||o)?fo(qn,{}):fo(L,{className:i(bo),icon:r})};V.states=$n;V.options=Xn;V.className=bo;import{Fragment as Yn,jsx as ho}from"react/jsx-runtime";var Jn="k-input-prefix",Wn={direction:"horizontal"},ue=e=>{let{direction:t=Wn.direction,...o}=e;return e.children?ho("span",{...o,className:i(Jn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ho(Yn,{})};import{Fragment as jn,jsx as xo}from"react/jsx-runtime";var Qn="k-input-suffix",Zn={direction:"horizontal"},fe=e=>{let{direction:t=Zn.direction,...o}=e;return e.children?xo("span",{...o,className:i(Qn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):xo(jn,{})};import{jsx as Sr}from"react/jsx-runtime";import{jsx as Mr}from"react/jsx-runtime";import{jsx as ti}from"react/jsx-runtime";var No="k-input-separator",ei={direction:"vertical"},Y=e=>{let{direction:t=ei.direction,...o}=e;return ti("span",{...o,className:i(No,e.className,{[`${No}-${t}`]:t})})};var Nt="button",Lo=Nt;import{Fragment as vo,jsx as be,jsxs as Ao}from"react/jsx-runtime";var we="k-button",oi=["icon-button"],ni=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],ii={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},Lt={showArrow:!1,arrowIconName:"chevron-down"},N=e=>{let{as:t="button",size:o,rounded:s,fillMode:n,themeColor:r,showArrow:d=Lt.showArrow,arrowIconName:c=Lt.arrowIconName,variant:m,hover:f,focus:b,active:x,selected:v,disabled:y,togglable:O,ariaDisabled:k,icon:A,iconSize:I,text:K,iconClassName:pe,className:Me,...Te}=e,Oe=A!=null,Re=e.children!==void 0;return Ao(t,{className:i(Me,we,to(we,m),g(we,{size:o,rounded:s,fillMode:n,themeColor:r}),S(we,{hover:f,focus:b,active:x,disabled:y||k,selected:v}),{"k-icon-button":!K&&!Re&&Oe}),"aria-pressed":O?v?"true":"false":void 0,...Te,"aria-disabled":k?"true":void 0,disabled:y||void 0,children:[typeof A=="string"&&A&&be(L,{className:i(pe,"k-button-icon"),icon:A,size:I}),A&&typeof A!="string"&&be(vo,{children:A}),K?Ao(vo,{children:[K&&be("span",{className:"k-button-text",children:K}),e.children]}):e.children&&be("span",{className:"k-button-text",children:e.children}),d&&be("span",{className:"k-menu-button-arrow k-button-arrow",children:be(L,{icon:c})})]})};N.states=ni;N.options=ii;N.variants=oi;N.className=we;N.defaultOptions=Lt;N.moduleName=Nt;N.folderName=Lo;N.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 ai}from"react/jsx-runtime";var re=e=>ai(N,{children:"Button",...e});import{Fragment as go,jsx as J,jsxs as vt}from"react/jsx-runtime";var si=C.states,ri=C.defaultOptions,li=C.options,ci=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],di=[],he=e=>{let{modifiers:t,valid:o,invalid:s,loading:n,disabled:r,readonly:d,...c}=e,m=t?.prefix,f=t?.suffix,b=t?.["clear-button"],x=t?.["validation-icon"],v=t?.separators;return vt(C,{...c,valid:o,invalid:s,loading:n,disabled:r,readonly:d,style:{width:300},children:[m&&vt(go,{children:[J(ue,{children:J(L,{icon:"lock"})}),v&&J(Y,{})]}),J(F,{placeholder:"Placeholder",value:"Value"}),x&&J(V,{valid:o,invalid:s,loading:n,disabled:r}),J(q,{loading:n,disabled:r}),b&&J(U,{loading:n,disabled:r,readonly:d,value:"Value"}),f&&vt(go,{children:[v&&J(Y,{}),J(fe,{children:J(re,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};he.options=li;he.states=si;he.variants=di;he.defaultOptions=ri;he.modifiers=ci;he.className=C.className;var At="popup",ko=At;import{jsx as Io}from"react/jsx-runtime";var So="k-animation-container",pi=[],mi={},gt={positionMode:"absolute",shown:!0},W=e=>{let{positionMode:t=gt.positionMode,shown:o=gt.shown,animationStyle:s,offset:n,...r}=e;return Io("div",{...r,style:{...n,...e.style},className:i(e.className,So,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Io("div",{className:"k-child-animation-container",style:s,children:e.children})})};W.states=pi;W.options=mi;W.className=So;W.defaultOptions=gt;W.moduleName=At;W.folderName=ko;var kt="popup",Co=kt;import{jsx as Eo}from"react/jsx-runtime";var yo="k-popup",ui=[],fi={},Mo={positionMode:"absolute"},Q=e=>{let{offset:t,positionMode:o=Mo.positionMode,animationStyle:s,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return Eo(W,{positionMode:o,offset:t,animationStyle:s,className:n,role:r,"aria-label":d,children:Eo("div",{...c,className:i(e.className,yo),children:e.children})})};Q.states=ui;Q.options=fi;Q.className=yo;Q.defaultOptions=Mo;Q.moduleName=kt;Q.folderName=Co;Q.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 It="action-buttons",To=It;import{jsx as xi}from"react/jsx-runtime";var Ze="k-actions",bi=[],hi={},St={alignment:"start",orientation:"horizontal"},ee=e=>{let{alignment:t=St.alignment,orientation:o=St.orientation,...s}=e;return xi("div",{...s,className:i(Ze,{[`${Ze}-${t}`]:t,[`${Ze}-${o}`]:o},e.className),children:e.children})};ee.states=bi;ee.options=hi;ee.className=Ze;ee.defaultOptions=St;ee.moduleName=It;ee.folderName=To;import{jsx as Li}from"react/jsx-runtime";var Ni="k-actionsheet-footer",Oo={alignment:"stretched",orientation:"horizontal"},xe=e=>{let{alignment:t=Oo.alignment,orientation:o=Oo.orientation,template:s,as:n=s?"div":ee,...r}=e;return Li(n,{...r,...!s&&{alignment:t,orientation:o},className:i(e.className,Ni),children:e.children})};var Ct="searchbox",Ro=Ct;import{jsx as De,jsxs as gi}from"react/jsx-runtime";var Ko="k-searchbox",vi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Ai={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Et={showIcon:!0,icon:"search"},te=e=>{let{value:t,placeholder:o,size:s,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:f,required:b,loading:x,disabled:v,showIcon:y=Et.showIcon,icon:O=Et.icon,"aria-label":k,...A}=e;return gi(C,{...A,size:s,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:f,required:b,loading:x,disabled:v,className:i(e.className,Ko),children:[y&&De(L,{className:"k-input-icon",icon:O}),De(F,{placeholder:o,value:t,"aria-label":k}),De(q,{...e}),De(V,{...e}),De(U,{...e})]})};te.states=vi;te.options=Ai;te.className=Ko;te.defaultOptions=Et;te.moduleName=Ct;te.folderName=Ro;import{jsx as ec}from"react/jsx-runtime";var yt="textbox",_o=yt;import{Fragment as Ho,jsx as oe,jsxs as Mt}from"react/jsx-runtime";var Po="k-textbox",ki=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ii={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},je={showClearButton:!0,showValidationIcon:!0,separators:!0},_=e=>{let{size:t,rounded:o,fillMode:s,separators:n=je.separators,showClearButton:r=je.showClearButton,showValidationIcon:d=je.showValidationIcon,prefix:c,suffix:m,type:f,value:b,placeholder:x,hover:v,focus:y,valid:O,invalid:k,required:A,loading:I,disabled:K,readonly:pe,id:Me,"aria-label":Te,"aria-describedby":Oe,...Re}=e;return Mt(C,{...Re,size:t,rounded:o,fillMode:s,hover:v,focus:y,valid:O,invalid:k,required:A,loading:I,disabled:K,readonly:pe,className:i(e.className,Po),children:[c&&Mt(Ho,{children:[oe(ue,{children:c}),n&&oe(Y,{})]}),oe(F,{id:Me,placeholder:x,value:b,type:f,disabled:K,"aria-label":Te,"aria-describedby":Oe,"aria-invalid":k?"true":void 0}),d&&oe(V,{valid:O,invalid:k,loading:I,disabled:K}),oe(q,{loading:I,disabled:K}),r&&oe(U,{loading:I,disabled:K,readonly:pe,value:b}),m&&Mt(Ho,{children:[n&&oe(Y,{}),oe(fe,{children:m})]})]})};_.states=ki;_.options=Ii;_.className=Po;_.defaultOptions=je;_.moduleName=yt;_.folderName=_o;_.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 ze=_;import{jsx as Si}from"react/jsx-runtime";var wo=e=>Si(ze,{...e});import{Fragment as Nc,jsx as xc}from"react/jsx-runtime";import{jsx as Ci}from"react/jsx-runtime";var Do=e=>Ci(N,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Ei}from"react/jsx-runtime";var zo=e=>Ei(N,{icon:"folder",children:"Button",...e});import{jsx as Tt}from"react/jsx-runtime";var yi=N.options,Mi=N.states,Ti={...N.defaultOptions,variant:"text"},Oi=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ri=[],Ne=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Tt(Do,{...o,icon:"star"});case"icon-and-text":return Tt(zo,{...o,icon:"star",children:"Button"});default:return Tt(re,{...o,children:"Button"})}};Ne.options=yi;Ne.states=Mi;Ne.variants=Oi;Ne.defaultOptions=Ti;Ne.modifiers=Ri;Ne.className=N.className;import{Fragment as Vc,jsx as Fc}from"react/jsx-runtime";import{jsx as qc}from"react/jsx-runtime";import{jsx as Ot}from"react/jsx-runtime";var Ki=_.states,_i=_.defaultOptions,Hi=_.options,Pi=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],wi=[],Le=e=>{let{modifiers:t,...o}=e,s={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":s.prefix=t?.[n]?Ot(L,{icon:"lock"}):void 0;break;case"suffix":s.suffix=t?.[n]?Ot(re,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":s.showClearButton=t?.[n];break;default:break}}),Ot(wo,{value:"Value",style:{width:300},...o,...s})};Le.options=Hi;Le.states=Ki;Le.variants=wi;Le.defaultOptions=_i;Le.modifiers=Pi;Le.className=_.className;import{jsx as ne,jsxs as Rt}from"react/jsx-runtime";var Bo="k-actionsheet-titlebar",Di={},G=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:n,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:f,titleId:b,children:x,...v}=e;return Rt("div",{...v,className:i(e.className,Bo),children:[Rt("div",{className:"k-actionsheet-titlebar-group",children:[s&&ne("div",{className:"k-actionsheet-actions",children:s}),!x&&Rt("div",{className:"k-actionsheet-title",id:b,children:[t&&ne("div",{className:"k-text-center",children:t}),o&&ne("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&ne("div",{className:"k-actionsheet-title",id:b,children:x}),n&&ne("div",{className:"k-actionsheet-actions",children:n})]}),(d||r)&&ne("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?ne(_,{value:c,placeholder:m,size:f?"large":"medium","aria-label":t||m||"Input"}):ne(te,{placeholder:"Filter",size:f?"large":"medium","aria-label":"Filter options"})})]})};G.className=Bo;G.defaultOptions=Di;import{jsx as Kt,jsxs as Fi}from"react/jsx-runtime";var _t="k-actionsheet-view",zi=[],Bi={},Ui={},ve=e=>{let{adaptive:t,animated:o,children:s,header:n,footer:r,titleId:d,...c}=e,m=n?.type===G&&Kt(G,{adaptive:t,titleId:d,...n?.props}),f=r?.type===xe&&Kt(xe,{...r?.props});return Fi("div",{...c,className:i(e.className,_t,{[`${_t}-animated`]:o}),children:[m,Kt("div",{className:"k-actionsheet-content",children:s}),f]})};ve.states=zi;ve.options=Bi;ve.className=_t;ve.defaultOptions=Ui;var Be="action-sheet",et=Be;var Ht="overlay",Uo=Ht;import{jsx as Xi}from"react/jsx-runtime";var Fo="k-overlay",Vi=[],Gi={},$i={},ie=e=>{let{...t}=e;return Xi("div",{...t,className:i(e.className,Fo),children:e.children})};ie.states=Vi;ie.options=Gi;ie.className=Fo;ie.defaultOptions=$i;ie.moduleName=Ht;ie.folderName=Uo;import{jsx as tt,jsxs as Wi}from"react/jsx-runtime";var Vo="k-actionsheet",qi=[],Ji={},Ue={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},M=e=>{let{side:t=Ue.side,fullscreen:o=Ue.fullscreen,adaptive:s=Ue.adaptive,overlay:n=Ue.overlay,template:r,children:d,header:c,footer:m,id:f,...b}=e,x=f&&!r&&c?`${f}-title`:void 0;return Wi("div",{className:"k-actionsheet-container",children:[n&&tt(ie,{}),tt(W,{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:tt("div",{...b,id:f,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":x,className:i(e.className,Vo,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:r||tt(ve,{header:c,footer:m,adaptive:s,titleId:x,...e,children:d})})})]})};M.states=qi;M.options=Ji;M.className=Vo;M.defaultOptions=Ue;M.moduleName=Be;M.folderName=et;M.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 ji}from"react/jsx-runtime";var Go="k-actionsheet-container",Yi=[],Qi={},Zi={},Ae=e=>{let{children:t,...o}=e;return ji("div",{...o,className:Go,children:t})};Ae.states=Yi;Ae.options=Qi;Ae.className=Go;Ae.defaultOptions=Zi;Ae.moduleName=Be;Ae.folderName=et;import{jsx as ea}from"react/jsx-runtime";var Pt=e=>{let{...t}=e;return ea("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};import{Fragment as oa,jsx as Fe,jsxs as wt}from"react/jsx-runtime";var Dt="k-actionsheet-item",ta=[a.hover,a.focus,a.selected,a.disabled],ae=e=>{let{iconName:t,text:o,description:s,hover:n,focus:r,selected:d,disabled:c,...m}=e;return wt("span",{...m,className:i(e.className,Dt,S(Dt,{hover:n,focus:r,selected:d,disabled:c})),children:[!e.children&&Fe(oa,{children:wt("span",{className:"k-actionsheet-action",children:[t&&Fe("span",{className:"k-icon-wrap",children:Fe(L,{className:"k-actionsheet-item-icon",icon:t})}),wt("span",{className:"k-actionsheet-item-text",children:[o&&Fe("span",{className:"k-actionsheet-item-title",children:o}),s&&Fe("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};ae.states=ta;ae.className=Dt;import{jsx as Xd,jsxs as qd}from"react/jsx-runtime";import{jsx as Qd}from"react/jsx-runtime";import{jsx as tp}from"react/jsx-runtime";import{jsx as ap}from"react/jsx-runtime";import{jsx as T,jsxs as zt}from"react/jsx-runtime";var na=M.options,ia=M.states,Xo={...M.defaultOptions,variant:"normal"},aa=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],sa=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],ge=e=>{let{variant:t,modifiers:o,...s}={...Xo,...e},n={},r=zt(Pt,{children:[T(ae,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),T(ae,{text:"Add to Favorites",iconName:"heart"}),T(ae,{text:"Upload New",iconName:"upload",disabled:!0}),T("hr",{className:"k-hr"}),T(ae,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(m=>{switch(m){case"actions":n.actionsStart=!!o?.[m],n.actionsEnd=!!o?.[m];break;case"subtitle":n.subtitle=o?.[m]?d:void 0;break;case"footer":n.footer=!!o?.[m];break;default:break}}),t==="adaptive"?T(M,{...s,adaptive:!0,fullscreen:n.fullScreen,header:T(G,{actionsStart:n.actionsStart?T(N,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?T(N,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?zt(xe,{alignment:"stretched",children:[T(N,{text:"Cancel",size:"large",themeColor:"base"}),T(N,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):T(M,{...s,fullscreen:n.fullScreen,header:T(G,{actionsStart:n.actionsStart?T(N,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?T(N,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?zt(xe,{alignment:"stretched",children:[T(N,{text:"Apply",themeColor:"primary"}),T(N,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};ge.options=na;ge.states=ia;ge.variants=aa;ge.defaultOptions=Xo;ge.modifiers=sa;ge.className=M.className;import Ft from"react";import{jsx as qo}from"react/jsx-runtime";var ra="k-list-group-sticky-header",Bt=e=>qo("div",{className:i(ra,e.className),children:qo("div",{className:"k-list-header-text",children:e.children})});import{jsx as ca}from"react/jsx-runtime";var la="k-no-data",Ut=e=>{let{live:t,...o}=e;return ca("span",{...o,className:i(la,e.className),"aria-live":t?"polite":void 0,children:e.children})};var le="list",ke=le;import{jsx as Jo,jsxs as Wo}from"react/jsx-runtime";var Vt="k-list",da=[],pa={size:[l.undefined,l.small,l.medium,l.large]},ma={},H=e=>{let{size:t,virtualization:o,children:s,header:n,selectAll:r,optionLabel:d,customValue:c,noData:m,screenReaders:f,...b}=e,v=Ft.Children.toArray(s)[0],y=v?.props?.children?Ft.Children.count(v.props.children):Ft.Children.count(s);return Wo("div",{...b,className:i(e.className,Vt,g(Vt,{size:t}),{"k-virtual-list":o}),children:[d,r,c,n&&Jo(Bt,{children:n}),s||(m!==void 0?m:Jo(Ut,{live:!0,children:"No data found."})),f&&s&&Wo(Ut,{className:"k-sr-only",live:!0,children:[y," items found."]})]})};H.states=da;H.options=pa;H.className=Vt;H.defaultOptions=ma;H.moduleName=le;H.folderName=ke;H.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 ha}from"react/jsx-runtime";var Yo="k-list-container",ua=[],fa={},ba={},Ie=e=>{let{...t}=e;return ha("div",{...t,className:i(e.className,Yo),children:e.children})};Ie.states=ua;Ie.options=fa;Ie.className=Yo;Ie.defaultOptions=ba;Ie.moduleName=le;Ie.folderName=ke;var ce="checkbox",Se=ce;import{jsx as Qo}from"react/jsx-runtime";var ot="k-checkbox",xa=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Na={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},La={},z=e=>{let{id:t,checked:o,indeterminate:s,hover:n,focus:r,disabled:d,invalid:c,valid:m,required:f,size:b,rounded:x,wrapperRole:v,...y}=e;return Qo("span",{className:"k-checkbox-wrap",role:v,children:Qo("input",{...y,id:t,type:"checkbox",defaultChecked:o,required:f,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:i(e.className,ot,g(ot,{size:b,rounded:x}),S(ot,{hover:n,focus:r,disabled:d,invalid:c,valid:m,indeterminate:s,checked:o}))})})};z.states=xa;z.options=Na;z.className=ot;z.defaultOptions=La;z.moduleName=ce;z.folderName=Se;z.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 $=z;import{jsx as ga}from"react/jsx-runtime";var Zo="k-checkbox-list",va=[],Aa={},jo={layout:"vertical"},P=e=>{let{layout:t=jo.layout,...o}=e;return ga("ul",{...o,className:i(e.className,Zo,{[`k-list-${t}`]:t}),children:e.children})};P.states=va;P.options=Aa;P.className=Zo;P.defaultOptions=jo;P.moduleName=ce;P.folderName=Se;import{jsx as Ca}from"react/jsx-runtime";var en="k-checkbox-list-item",ka=[],Ia={},Sa={},w=e=>{let{...t}=e;return Ca("li",{...t,className:i(e.className,en),children:e.children})};w.states=ka;w.options=Ia;w.className=en;w.defaultOptions=Sa;w.moduleName=ce;w.folderName=Se;import{Fragment as Ea,jsx as tn,jsxs as ya}from"react/jsx-runtime";var Z=({children:e="Label",id:t="cb-label-after",...o})=>ya(Ea,{children:[tn($,{id:t,...o}),tn("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as fm,jsx as um,jsxs as bm}from"react/jsx-runtime";import{Fragment as vm,jsx as Lm,jsxs as Am}from"react/jsx-runtime";import{Fragment as Cm,jsx as Sm,jsxs as Em}from"react/jsx-runtime";import{jsx as Om}from"react/jsx-runtime";import{jsx as Hm}from"react/jsx-runtime";import{jsx as zm}from"react/jsx-runtime";import{jsx as B,jsxs as on}from"react/jsx-runtime";var Ma=P.options,Ta=P.states,Oa={...P.defaultOptions,variant:"vertical"},Ra=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Ka=[],Ce=e=>{let{variant:t,...o}=e;return t==="horizontal"?on(P,{layout:"horizontal",...o,children:[B(w,{children:B(Z,{id:D("cb"),defaultChecked:!0,children:"Label"})}),B(w,{children:B(Z,{id:D("cb"),children:"Label"})}),B(w,{children:B(Z,{id:D("cb"),children:"Label"})})]}):on(P,{...o,children:[B(w,{children:B(Z,{id:D("cb"),defaultChecked:!0,children:"Label"})}),B(w,{children:B(Z,{id:D("cb"),children:"Label"})}),B(w,{children:B(Z,{id:D("cb"),children:"Label"})})]})};Ce.options=Ma;Ce.states=Ta;Ce.variants=Ra;Ce.defaultOptions=Oa;Ce.modifiers=Ka;Ce.className=P.className;import{jsx as za}from"react/jsx-runtime";var _a=$.options,Ha=$.states,Pa=$.defaultOptions,wa=[],Da=[],Ee=e=>za(Z,{id:D("checkbox"),...e,defaultChecked:!0,children:"Label"});Ee.options=_a;Ee.states=Ha;Ee.variants=wa;Ee.defaultOptions=Pa;Ee.modifiers=Da;Ee.className=$.className;import{jsx as de,jsxs as Va}from"react/jsx-runtime";var Gt="k-list-item",Ba=[a.hover,a.focus,a.selected,a.disabled],Ua={},Fa={},R=e=>{let{text:t,groupLabel:o,group:s,iconName:n,iconClassName:r,showCheckbox:d,checked:c,hover:m,focus:f,selected:b,disabled:x,actions:v,description:y,id:O,...k}=e,A=t||e.children;return Va("li",{...k,id:O,role:s?"presentation":"option",tabIndex:s?void 0:f?0:-1,"aria-selected":!s&&b?"true":s?void 0:"false","aria-disabled":!s&&x?"true":void 0,className:i(e.className,s?"k-list-group-item":Gt,S(Gt,{hover:m,focus:f,disabled:x,selected:b})),children:[d&&de(z,{checked:c}),n&&de("span",{className:"k-list-item-icon-wrapper",children:de(L,{icon:n,className:i("k-list-item-icon",r)})}),de("span",{className:"k-list-item-text",children:A}),v&&de("div",{className:"k-list-item-actions",children:v}),y&&de("span",{className:"k-list-item-description",children:y}),o&&o!==""&&de("div",{className:"k-list-item-group-label",children:o})]})};R.states=Ba;R.options=Ua;R.className=Gt;R.defaultOptions=Fa;R.moduleName=le;R.folderName=ke;R.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 $a}from"react/jsx-runtime";var Ga="k-list-ul",Ve=e=>{let{children:t,role:o,id:s,...n}=e;return $a("ul",{...n,id:s,role:o,className:i(Ga,e.className),children:t})};Ve.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 $t,jsxs as qa}from"react/jsx-runtime";var Xa="k-list-content",j=e=>{let{virtualization:t,grouping:o,"aria-label":s,"aria-labelledby":n,listboxId:r,...d}=e;return qa("div",{...d,className:i(Xa,e.className),role:o?"listbox":void 0,id:o?r:void 0,"aria-label":o?s:void 0,"aria-labelledby":o?n:void 0,children:[o?e.children:$t(Ve,{role:"listbox",id:r,"aria-label":s,"aria-labelledby":n,children:e.children}),t&&$t("div",{className:"k-height-container",children:$t("div",{})})]})};j.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 Xt,jsxs as Qa}from"react/jsx-runtime";var nt="k-list-sticky-header",Ja=[a.hover,a.focus,a.selected],Wa={},Ya={},it=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:s,indeterminate:n,hover:r,focus:d,selected:c,...m}=e;return Xt("div",{...m,className:i(nt,e.className),children:Qa("div",{className:i(`${nt}-item`,S(`${nt}-item`,{hover:r,focus:d,selected:c})),children:[o&&Xt(z,{checked:s,indeterminate:n,"aria-label":t}),Xt("span",{className:"k-list-item-text",children:t})]})})};it.states=Ja;it.options=Wa;it.className=nt;it.defaultOptions=Ya;import{Fragment as Ku,jsx as Ru,jsxs as _u}from"react/jsx-runtime";import{jsx as qt,jsxs as ja}from"react/jsx-runtime";var Za="k-list-group-item",Jt=e=>{let{groupIconName:t,...o}=e;return ja("li",{...o,role:"presentation",className:i(Za,e.className),children:[t&&qt("span",{className:"k-list-item-icon-wrapper",children:qt(L,{icon:t,className:"k-list-item-icon"})}),qt("span",{className:"k-list-item-text",children:e.children})]})};Jt.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 ns}from"react/jsx-runtime";var Wt="k-list-optionlabel",es=[a.hover,a.focus,a.selected,a.disabled],ts={},os={},at=e=>{let{text:t,hover:o,focus:s,selected:n,disabled:r,...d}=e;return ns("div",{...d,className:i(Wt,S(Wt,{hover:o,focus:s,selected:n,disabled:r})),children:t})};at.states=es;at.options=ts;at.className=Wt;at.defaultOptions=os;import{jsx as rs}from"react/jsx-runtime";var Yt="k-list-custom-value",is=[a.hover,a.focus,a.selected,a.disabled],as={},ss={},ye=e=>{let{text:t,hover:o,focus:s,selected:n,disabled:r,...d}=e;return rs("div",{...d,className:i(Yt,S(Yt,{hover:o,focus:s,selected:n,disabled:r})),children:t})};ye.states=is;ye.options=as;ye.className=Yt;ye.defaultOptions=ss;import{Fragment as Yu,jsx as Wu,jsxs as Qu}from"react/jsx-runtime";import{Fragment as nf,jsx as of,jsxs as af}from"react/jsx-runtime";import{Fragment as mf,jsx as df,jsxs as pf}from"react/jsx-runtime";import{Fragment as Lf,jsx as xf,jsxs as Nf}from"react/jsx-runtime";import{jsx as kf}from"react/jsx-runtime";import{Fragment as Mf,jsx as yf,jsxs as Tf}from"react/jsx-runtime";var Qt="autocomplete",nn=Qt;import{Fragment as Zt,jsx as E,jsxs as Ge}from"react/jsx-runtime";var an="k-autocomplete",ls=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],cs={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},sn={separators:!0},se=e=>{let{size:t,rounded:o,fillMode:s,separators:n=sn.separators,prefix:r,suffix:d,value:c,placeholder:m,hover:f,focus:b,valid:x,invalid:v,required:y,loading:O,disabled:k,popup:A,opened:I,readonly:K,adaptive:pe,adaptiveSettings:Me,adaptiveTitle:Te,adaptiveSubtitle:Oe,adaptiveCustomValue:Re,id:jt,autocomplete:rn,activeDescendant:eo,"aria-label":ln,...cn}=e,dn=jt?`${jt}-listbox`:void 0;return Ge(Zt,{children:[Ge(C,{...cn,size:t,rounded:o,fillMode:s,hover:f,focus:b,valid:x,invalid:v,required:y,loading:O,disabled:k,readonly:K,className:i(e.className,an),children:[r&&Ge(Zt,{children:[E(ue,{children:r}),n&&E(Y,{})]}),E(F,{placeholder:m,value:c,role:"combobox","aria-haspopup":"listbox","aria-expanded":I?"true":"false","aria-controls":I?dn:void 0,"aria-activedescendant":I&&eo?eo:void 0,"aria-autocomplete":rn,"aria-invalid":v?"true":void 0,"aria-busy":O?"true":void 0,"aria-label":ln,disabled:k,readOnly:K}),E(V,{valid:x,invalid:v,loading:O,disabled:k}),E(q,{loading:O,disabled:k}),E(U,{loading:O,disabled:k,readonly:K,value:c}),d&&Ge(Zt,{children:[n&&E(Y,{}),E(fe,{children:d})]})]}),I&&A&&E(Q,{className:"k-list-container k-autocomplete-popup",containerRole:"region",containerAriaLabel:"Autocomplete suggestions",children:A}),pe&&E(M,{adaptive:!0,...Me,header:E(G,{actionsEnd:E(N,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),input:!0,inputValue:c,inputPlaceholder:m,title:Te,subtitle:Oe}),children:E("div",{className:"k-list-container",children:E(H,{customValue:Re?E(ye,{text:`Use "${c}"`}):void 0,size:"large",children:Ge(j,{"aria-label":"Options",children:[E(R,{text:"List item"}),E(R,{text:"List item"}),E(R,{text:"List item"})]})})})})]})};se.states=ls;se.options=cs;se.className=an;se.defaultOptions=sn;se.moduleName=Qt;se.folderName=nn;se.ariaSpec={rules:[{selector:".k-autocomplete .k-input-inner",attribute:"role=combobox",usage:"Announces the autocomplete input."},{selector:".k-autocomplete .k-input-inner",attribute:"aria-haspopup=listbox",usage:"Indicates the component has a listbox popup."},{selector:".k-autocomplete .k-input-inner",attribute:"aria-expanded",usage:"Announces the popup visibility."},{selector:".k-autocomplete .k-input-inner",attribute:"aria-label",usage:"Accessible name for the autocomplete."},{selector:".k-autocomplete.k-disabled .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the autocomplete is disabled."},{selector:".k-autocomplete-popup .k-list-content, .k-autocomplete-popup .k-list-ul",attribute:"role=listbox",usage:"Popup list has listbox role."},{selector:'.k-autocomplete-popup .k-list-ul[role="listbox"], .k-autocomplete-popup .k-list-content[role="listbox"]',attribute:"aria-label or aria-labelledby",usage:"Popup listbox must have an accessible name. Consuming code is responsible for associating with the component label via aria-labelledby."},{selector:".k-autocomplete-popup .k-list-item",attribute:"role=option",usage:"Each list item is an option."}]};var ab=se;export{an as AUTOCOMPLETE_CLASSNAME,se as Autocomplete,ab as default};