UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 41.7 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 R(e){return st[e]=(st[e]||0)+1,`k-${e}-${st[e]}`}var Ke="input",$e=Ke;import{jsx as bn}from"react/jsx-runtime";var Xe="k-input",mn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],un={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]},fn={},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 bn("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=mn;C.options=un;C.className=Xe;C.defaultOptions=fn;C.moduleName=Ke;C.folderName=$e;import{jsx as Ln}from"react/jsx-runtime";var qe="k-picker",hn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],xn={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]},Nn={},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 Ln("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=hn;me.options=xn;me.className=qe;me.defaultOptions=Nn;me.moduleName=Ke;me.folderName=$e;import{Fragment as kn,jsx as oo}from"react/jsx-runtime";var rt="k-font-icon",vn=[],An={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]},gn={},_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(kn,{})};_e.states=vn;_e.options=An;_e.className=rt;_e.defaultOptions=gn;var no=_e;import{Fragment as Cn,jsx as Je}from"react/jsx-runtime";var lt="k-svg-icon",In=[],Sn={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(Cn,{});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=In;He.options=Sn;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 yn}from"react";import{createContext as En}from"react";var so=En({iconsType:"svg"});import{Fragment as ro,jsx as Pe}from"react/jsx-runtime";var We="k-icon",Mn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Tn=[],On={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}=yn(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:Mn(`${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=Tn;L.options=On;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 _n,jsx as mt}from"react/jsx-runtime";var lo="k-clear-value",Rn=[a.disabled,a.loading,a.readonly],Kn={},U=e=>{let{disabled:t,loading:o,readonly:s,value:n}=e;return t||s||o||!n?mt(_n,{}):mt("span",{className:i(e.className,lo),children:mt(L,{icon:"x"})})};U.states=Rn;U.options=Kn;U.className=lo;import{jsx as wn}from"react/jsx-runtime";var ut="k-input-inner",Hn=[],Pn={},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 wn("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=Hn;F.options=Pn;F.className=ut;import{jsx as co,jsxs as Bn}from"react/jsx-runtime";var ft="k-input-inner",Dn=[],zn={},bt=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:n,valueIconName:r,...d}=e;return Bn("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=Dn;bt.options=zn;bt.className=ft;import{jsx as Vn}from"react/jsx-runtime";var ht="k-input-inner",Un=[],Fn={},po={value:"",placeholder:""},xt=e=>{let{value:t=po.value,placeholder:o=po.placeholder,rows:s,disabled:n,...r}=e;return Vn("textarea",{...r,className:i(e.className,ht,g(ht,e)),placeholder:o,rows:s,defaultValue:t,disabled:n||void 0})};xt.states=Un;xt.options=Fn;xt.className=ht;import{Fragment as $n,jsx as mo}from"react/jsx-runtime";var uo="k-input-loading-icon",Gn=[a.disabled,a.loading],q=e=>{let{disabled:t,loading:o}=e;return t||!o?mo($n,{}):mo("span",{className:i(e.className,uo,"k-icon k-i-loading")})};q.states=Gn;q.className=uo;import{Fragment as Jn,jsx as fo}from"react/jsx-runtime";var bo="k-input-validation-icon",Xn=[a.valid,a.invalid,a.disabled,a.loading],qn={},V=e=>{let{valid:t,invalid:o,disabled:s,loading:n}=e,r=o?"warning-circle":"check-circle";return s||n||!!!(t||o)?fo(Jn,{}):fo(L,{className:i(bo),icon:r})};V.states=Xn;V.options=qn;V.className=bo;import{Fragment as Qn,jsx as ho}from"react/jsx-runtime";var Wn="k-input-prefix",Yn={direction:"horizontal"},ue=e=>{let{direction:t=Yn.direction,...o}=e;return e.children?ho("span",{...o,className:i(Wn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ho(Qn,{})};import{Fragment as ei,jsx as xo}from"react/jsx-runtime";var Zn="k-input-suffix",jn={direction:"horizontal"},fe=e=>{let{direction:t=jn.direction,...o}=e;return e.children?xo("span",{...o,className:i(Zn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):xo(ei,{})};import{jsx as Er}from"react/jsx-runtime";import{jsx as Or}from"react/jsx-runtime";import{jsx as oi}from"react/jsx-runtime";var No="k-input-separator",ti={direction:"vertical"},Y=e=>{let{direction:t=ti.direction,...o}=e;return oi("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",ni=["icon-button"],ii=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],ai={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:_,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":!_&&!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}),_?Ao(vo,{children:[_&&be("span",{className:"k-button-text",children:_}),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=ii;N.options=ai;N.variants=ni;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 si}from"react/jsx-runtime";var re=e=>si(N,{children:"Button",...e});import{Fragment as go,jsx as J,jsxs as vt}from"react/jsx-runtime";var ri=C.states,li=C.defaultOptions,ci=C.options,di=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],pi=[],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=ci;he.states=ri;he.variants=pi;he.defaultOptions=li;he.modifiers=di;he.className=C.className;var At="popup",ko=At;import{jsx as Io}from"react/jsx-runtime";var So="k-animation-container",mi=[],ui={},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=mi;W.options=ui;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",fi=[],bi={},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=fi;Q.options=bi;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 Ni}from"react/jsx-runtime";var Ze="k-actions",hi=[],xi={},St={alignment:"start",orientation:"horizontal"},ee=e=>{let{alignment:t=St.alignment,orientation:o=St.orientation,...s}=e;return Ni("div",{...s,className:i(Ze,{[`${Ze}-${t}`]:t,[`${Ze}-${o}`]:o},e.className),children:e.children})};ee.states=hi;ee.options=xi;ee.className=Ze;ee.defaultOptions=St;ee.moduleName=It;ee.folderName=To;import{jsx as vi}from"react/jsx-runtime";var Li="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 vi(n,{...r,...!s&&{alignment:t,orientation:o},className:i(e.className,Li),children:e.children})};var Ct="searchbox",Ro=Ct;import{jsx as De,jsxs as ki}from"react/jsx-runtime";var Ko="k-searchbox",Ai=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],gi={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 ki(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=Ai;te.options=gi;te.className=Ko;te.defaultOptions=Et;te.moduleName=Ct;te.folderName=Ro;import{jsx as oc}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",Ii=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Si={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},H=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:_,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:_,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:_,"aria-label":Te,"aria-describedby":Oe,"aria-invalid":k?"true":void 0}),d&&oe(V,{valid:O,invalid:k,loading:I,disabled:_}),oe(q,{loading:I,disabled:_}),r&&oe(U,{loading:I,disabled:_,readonly:pe,value:b}),m&&Mt(Ho,{children:[n&&oe(Y,{}),oe(fe,{children:m})]})]})};H.states=Ii;H.options=Si;H.className=Po;H.defaultOptions=je;H.moduleName=yt;H.folderName=_o;H.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=H;import{jsx as Ci}from"react/jsx-runtime";var wo=e=>Ci(ze,{...e});import{Fragment as vc,jsx as Lc}from"react/jsx-runtime";import{jsx as Ei}from"react/jsx-runtime";var Do=e=>Ei(N,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as yi}from"react/jsx-runtime";var zo=e=>yi(N,{icon:"folder",children:"Button",...e});import{jsx as Tt}from"react/jsx-runtime";var Mi=N.options,Ti=N.states,Oi={...N.defaultOptions,variant:"text"},Ri=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ki=[],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=Mi;Ne.states=Ti;Ne.variants=Ri;Ne.defaultOptions=Oi;Ne.modifiers=Ki;Ne.className=N.className;import{Fragment as $c,jsx as Gc}from"react/jsx-runtime";import{jsx as Wc}from"react/jsx-runtime";import{jsx as Ot}from"react/jsx-runtime";var _i=H.states,Hi=H.defaultOptions,Pi=H.options,wi=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Di=[],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=Pi;Le.states=_i;Le.variants=Di;Le.defaultOptions=Hi;Le.modifiers=wi;Le.className=H.className;import{jsx as ne,jsxs as Rt}from"react/jsx-runtime";var Bo="k-actionsheet-titlebar",zi={},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(H,{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=zi;import{jsx as Kt,jsxs as Vi}from"react/jsx-runtime";var _t="k-actionsheet-view",Bi=[],Ui={},Fi={},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 Vi("div",{...c,className:i(e.className,_t,{[`${_t}-animated`]:o}),children:[m,Kt("div",{className:"k-actionsheet-content",children:s}),f]})};ve.states=Bi;ve.options=Ui;ve.className=_t;ve.defaultOptions=Fi;var Be="action-sheet",et=Be;var Ht="overlay",Uo=Ht;import{jsx as qi}from"react/jsx-runtime";var Fo="k-overlay",Gi=[],$i={},Xi={},ie=e=>{let{...t}=e;return qi("div",{...t,className:i(e.className,Fo),children:e.children})};ie.states=Gi;ie.options=$i;ie.className=Fo;ie.defaultOptions=Xi;ie.moduleName=Ht;ie.folderName=Uo;import{jsx as tt,jsxs as Yi}from"react/jsx-runtime";var Vo="k-actionsheet",Ji=[],Wi={},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 Yi("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=Ji;M.options=Wi;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 ea}from"react/jsx-runtime";var Go="k-actionsheet-container",Qi=[],Zi={},ji={},Ae=e=>{let{children:t,...o}=e;return ea("div",{...o,className:Go,children:t})};Ae.states=Qi;Ae.options=Zi;Ae.className=Go;Ae.defaultOptions=ji;Ae.moduleName=Be;Ae.folderName=et;import{jsx as ta}from"react/jsx-runtime";var Pt=e=>{let{...t}=e;return ta("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};import{Fragment as na,jsx as Fe,jsxs as wt}from"react/jsx-runtime";var Dt="k-actionsheet-item",oa=[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(na,{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=oa;ae.className=Dt;import{jsx as Jd,jsxs as Wd}from"react/jsx-runtime";import{jsx as jd}from"react/jsx-runtime";import{jsx as np}from"react/jsx-runtime";import{jsx as rp}from"react/jsx-runtime";import{jsx as T,jsxs as zt}from"react/jsx-runtime";var ia=M.options,aa=M.states,Xo={...M.defaultOptions,variant:"normal"},sa=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],ra=[{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=ia;ge.states=aa;ge.variants=sa;ge.defaultOptions=Xo;ge.modifiers=ra;ge.className=M.className;import Ft from"react";import{jsx as qo}from"react/jsx-runtime";var la="k-list-group-sticky-header",Bt=e=>qo("div",{className:i(la,e.className),children:qo("div",{className:"k-list-header-text",children:e.children})});import{jsx as da}from"react/jsx-runtime";var ca="k-no-data",Ut=e=>{let{live:t,...o}=e;return da("span",{...o,className:i(ca,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",pa=[],ma={size:[l.undefined,l.small,l.medium,l.large]},ua={},P=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."]})]})};P.states=pa;P.options=ma;P.className=Vt;P.defaultOptions=ua;P.moduleName=le;P.folderName=ke;P.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 xa}from"react/jsx-runtime";var Yo="k-list-container",fa=[],ba={},ha={},Ie=e=>{let{...t}=e;return xa("div",{...t,className:i(e.className,Yo),children:e.children})};Ie.states=fa;Ie.options=ba;Ie.className=Yo;Ie.defaultOptions=ha;Ie.moduleName=le;Ie.folderName=ke;var ce="checkbox",Se=ce;import{jsx as Qo}from"react/jsx-runtime";var ot="k-checkbox",Na=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],La={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},va={},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=Na;z.options=La;z.className=ot;z.defaultOptions=va;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 ka}from"react/jsx-runtime";var Zo="k-checkbox-list",Aa=[],ga={},jo={layout:"vertical"},w=e=>{let{layout:t=jo.layout,...o}=e;return ka("ul",{...o,className:i(e.className,Zo,{[`k-list-${t}`]:t}),children:e.children})};w.states=Aa;w.options=ga;w.className=Zo;w.defaultOptions=jo;w.moduleName=ce;w.folderName=Se;import{jsx as Ea}from"react/jsx-runtime";var en="k-checkbox-list-item",Ia=[],Sa={},Ca={},D=e=>{let{...t}=e;return Ea("li",{...t,className:i(e.className,en),children:e.children})};D.states=Ia;D.options=Sa;D.className=en;D.defaultOptions=Ca;D.moduleName=ce;D.folderName=Se;import{Fragment as ya,jsx as tn,jsxs as Ma}from"react/jsx-runtime";var Z=({children:e="Label",id:t="cb-label-after",...o})=>Ma(ya,{children:[tn($,{id:t,...o}),tn("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as hm,jsx as bm,jsxs as xm}from"react/jsx-runtime";import{Fragment as gm,jsx as Am,jsxs as km}from"react/jsx-runtime";import{Fragment as ym,jsx as Em,jsxs as Mm}from"react/jsx-runtime";import{jsx as Km}from"react/jsx-runtime";import{jsx as wm}from"react/jsx-runtime";import{jsx as Um}from"react/jsx-runtime";import{jsx as B,jsxs as on}from"react/jsx-runtime";var Ta=w.options,Oa=w.states,Ra={...w.defaultOptions,variant:"vertical"},Ka=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],_a=[],Ce=e=>{let{variant:t,...o}=e;return t==="horizontal"?on(w,{layout:"horizontal",...o,children:[B(D,{children:B(Z,{id:R("cb"),defaultChecked:!0,children:"Label"})}),B(D,{children:B(Z,{id:R("cb"),children:"Label"})}),B(D,{children:B(Z,{id:R("cb"),children:"Label"})})]}):on(w,{...o,children:[B(D,{children:B(Z,{id:R("cb"),defaultChecked:!0,children:"Label"})}),B(D,{children:B(Z,{id:R("cb"),children:"Label"})}),B(D,{children:B(Z,{id:R("cb"),children:"Label"})})]})};Ce.options=Ta;Ce.states=Oa;Ce.variants=Ka;Ce.defaultOptions=Ra;Ce.modifiers=_a;Ce.className=w.className;import{jsx as Ba}from"react/jsx-runtime";var Ha=$.options,Pa=$.states,wa=$.defaultOptions,Da=[],za=[],Ee=e=>Ba(Z,{id:R("checkbox"),...e,defaultChecked:!0,children:"Label"});Ee.options=Ha;Ee.states=Pa;Ee.variants=Da;Ee.defaultOptions=wa;Ee.modifiers=za;Ee.className=$.className;import{jsx as de,jsxs as Ga}from"react/jsx-runtime";var Gt="k-list-item",Ua=[a.hover,a.focus,a.selected,a.disabled],Fa={},Va={},K=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 Ga("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})]})};K.states=Ua;K.options=Fa;K.className=Gt;K.defaultOptions=Va;K.moduleName=le;K.folderName=ke;K.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 Xa}from"react/jsx-runtime";var $a="k-list-ul",Ve=e=>{let{children:t,role:o,id:s,...n}=e;return Xa("ul",{...n,id:s,role:o,className:i($a,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 Ja}from"react/jsx-runtime";var qa="k-list-content",j=e=>{let{virtualization:t,grouping:o,"aria-label":s,"aria-labelledby":n,listboxId:r,...d}=e;return Ja("div",{...d,className:i(qa,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 Za}from"react/jsx-runtime";var nt="k-list-sticky-header",Wa=[a.hover,a.focus,a.selected],Ya={},Qa={},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:Za("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=Wa;it.options=Ya;it.className=nt;it.defaultOptions=Qa;import{Fragment as Hu,jsx as _u,jsxs as Pu}from"react/jsx-runtime";import{jsx as qt,jsxs as es}from"react/jsx-runtime";var ja="k-list-group-item",Jt=e=>{let{groupIconName:t,...o}=e;return es("li",{...o,role:"presentation",className:i(ja,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 is}from"react/jsx-runtime";var Wt="k-list-optionlabel",ts=[a.hover,a.focus,a.selected,a.disabled],os={},ns={},at=e=>{let{text:t,hover:o,focus:s,selected:n,disabled:r,...d}=e;return is("div",{...d,className:i(Wt,S(Wt,{hover:o,focus:s,selected:n,disabled:r})),children:t})};at.states=ts;at.options=os;at.className=Wt;at.defaultOptions=ns;import{jsx as ls}from"react/jsx-runtime";var Yt="k-list-custom-value",as=[a.hover,a.focus,a.selected,a.disabled],ss={},rs={},ye=e=>{let{text:t,hover:o,focus:s,selected:n,disabled:r,...d}=e;return ls("div",{...d,className:i(Yt,S(Yt,{hover:o,focus:s,selected:n,disabled:r})),children:t})};ye.states=as;ye.options=ss;ye.className=Yt;ye.defaultOptions=rs;import{Fragment as Zu,jsx as Qu,jsxs as ju}from"react/jsx-runtime";import{Fragment as sf,jsx as af,jsxs as rf}from"react/jsx-runtime";import{Fragment as ff,jsx as mf,jsxs as uf}from"react/jsx-runtime";import{Fragment as Af,jsx as Lf,jsxs as vf}from"react/jsx-runtime";import{jsx as Sf}from"react/jsx-runtime";import{Fragment as Of,jsx as Tf,jsxs as Rf}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",cs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ds={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:_,adaptive:pe,adaptiveSettings:Me,adaptiveTitle:Te,adaptiveSubtitle:Oe,adaptiveCustomValue:Re,id:jt,autocomplete:ln,activeDescendant:eo,"aria-label":cn,...dn}=e,pn=jt?`${jt}-listbox`:void 0;return Ge(Zt,{children:[Ge(C,{...dn,size:t,rounded:o,fillMode:s,hover:f,focus:b,valid:x,invalid:v,required:y,loading:O,disabled:k,readonly:_,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?pn:void 0,"aria-activedescendant":I&&eo?eo:void 0,"aria-autocomplete":ln,"aria-invalid":v?"true":void 0,"aria-busy":O?"true":void 0,"aria-label":cn,disabled:k,readOnly:_}),E(V,{valid:x,invalid:v,loading:O,disabled:k}),E(q,{loading:O,disabled:k}),E(U,{loading:O,disabled:k,readonly:_,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(P,{customValue:Re?E(ye,{text:`Use "${c}"`}):void 0,size:"large",children:Ge(j,{"aria-label":"Options",children:[E(K,{text:"List item"}),E(K,{text:"List item"}),E(K,{text:"List item"})]})})})})]})};se.states=cs;se.options=ds;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 rn=se;import{jsx as ps}from"react/jsx-runtime";var pb=e=>ps(rn,{id:R("ac"),"aria-label":"Disabled autocomplete",disabled:!0,value:"Disabled value",...e});export{pb as AutocompleteDisabled};