@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 41.7 kB
JavaScript
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:N,empty:v,readonly:y,highlighted:O,...I}=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":N,"k-empty":v,"k-readonly":y,"k-highlighted":O},Object.keys(I).reduce((A,k)=>(k.startsWith("k-")?A[k]=I[k]:A[`k-${k}`]=I[k],A),{}))};function oo(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 hn}from"react/jsx-runtime";var Xe="k-input",un=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],fn={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]},bn={},C=e=>{let{hover:t,focus:o,disabled:s,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:f,fillMode:b,...N}=e;return hn("span",{...N,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=un;C.options=fn;C.className=Xe;C.defaultOptions=bn;C.moduleName=Ke;C.folderName=$e;import{jsx as vn}from"react/jsx-runtime";var qe="k-picker",xn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Nn={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]},Ln={},me=e=>{let{hover:t,focus:o,disabled:s,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:f,fillMode:b,...N}=e;return vn("span",{...N,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=xn;me.options=Nn;me.className=qe;me.defaultOptions=Ln;me.moduleName=Ke;me.folderName=$e;import{Fragment as kn,jsx as no}from"react/jsx-runtime";var rt="k-font-icon",An=[],gn={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]},In={},_e=e=>{let{size:t,themeColor:o,icon:s,rotate:n,flip:r,...d}=e;return s?no("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"}):no(kn,{})};_e.states=An;_e.options=gn;_e.className=rt;_e.defaultOptions=In;var io=_e;import{Fragment as En,jsx as Je}from"react/jsx-runtime";var lt="k-svg-icon",Sn=[],Cn={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(En,{});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=Sn;He.options=Cn;He.className=lt;He.defaultOptions=ct;var dt=He;import*as pt from"@progress/kendo-svg-icons";var ao="icon",so="icons";import{useContext as Mn}from"react";import{createContext as yn}from"react";var ro=yn({iconsType:"svg"});import{Fragment as lo,jsx as Pe}from"react/jsx-runtime";var We="k-icon",Tn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),On=[],Rn={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},x=e=>{let{iconsType:t}=Mn(ro),{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(lo,{});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:Tn(`${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(lo,{})}return Pe(io,{...b,className:i(e.className,We),icon:n,size:o,themeColor:s,rotate:d,flip:c})};x.states=On;x.options=Rn;x.defaultOptions=Ye;x.className=We;x.moduleName=ao;x.folderName=so;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 Hn,jsx as mt}from"react/jsx-runtime";var co="k-clear-value",Kn=[a.disabled,a.loading,a.readonly],_n={},U=e=>{let{disabled:t,loading:o,readonly:s,value:n}=e;return t||s||o||!n?mt(Hn,{}):mt("span",{className:i(e.className,co),children:mt(x,{icon:"x"})})};U.states=Kn;U.options=_n;U.className=co;import{jsx as Dn}from"react/jsx-runtime";var ut="k-input-inner",Pn=[],wn={},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 Dn("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=Pn;F.options=wn;F.className=ut;import{jsx as po,jsxs as Un}from"react/jsx-runtime";var ft="k-input-inner",zn=[],Bn={},bt=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:n,valueIconName:r,...d}=e;return Un("span",{...d,className:i(e.className,ft,g(ft,e)),children:[n,!n&&r&&po(x,{className:"k-input-value-icon",icon:r}),s&&!t&&o,s&&t&&po("span",{className:"k-input-value-text",children:t})]})};bt.states=zn;bt.options=Bn;bt.className=ft;import{jsx as Gn}from"react/jsx-runtime";var ht="k-input-inner",Fn=[],Vn={},mo={value:"",placeholder:""},xt=e=>{let{value:t=mo.value,placeholder:o=mo.placeholder,rows:s,disabled:n,...r}=e;return Gn("textarea",{...r,className:i(e.className,ht,g(ht,e)),placeholder:o,rows:s,defaultValue:t,disabled:n||void 0})};xt.states=Fn;xt.options=Vn;xt.className=ht;import{Fragment as Xn,jsx as uo}from"react/jsx-runtime";var fo="k-input-loading-icon",$n=[a.disabled,a.loading],q=e=>{let{disabled:t,loading:o}=e;return t||!o?uo(Xn,{}):uo("span",{className:i(e.className,fo,"k-icon k-i-loading")})};q.states=$n;q.className=fo;import{Fragment as Wn,jsx as bo}from"react/jsx-runtime";var ho="k-input-validation-icon",qn=[a.valid,a.invalid,a.disabled,a.loading],Jn={},V=e=>{let{valid:t,invalid:o,disabled:s,loading:n}=e,r=o?"warning-circle":"check-circle";return s||n||!!!(t||o)?bo(Wn,{}):bo(x,{className:i(ho),icon:r})};V.states=qn;V.options=Jn;V.className=ho;import{Fragment as Zn,jsx as xo}from"react/jsx-runtime";var Yn="k-input-prefix",Qn={direction:"horizontal"},ue=e=>{let{direction:t=Qn.direction,...o}=e;return e.children?xo("span",{...o,className:i(Yn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):xo(Zn,{})};import{Fragment as ti,jsx as No}from"react/jsx-runtime";var jn="k-input-suffix",ei={direction:"horizontal"},fe=e=>{let{direction:t=ei.direction,...o}=e;return e.children?No("span",{...o,className:i(jn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):No(ti,{})};import{jsx as yr}from"react/jsx-runtime";import{jsx as Rr}from"react/jsx-runtime";import{jsx as ni}from"react/jsx-runtime";var Lo="k-input-separator",oi={direction:"vertical"},Y=e=>{let{direction:t=oi.direction,...o}=e;return ni("span",{...o,className:i(Lo,e.className,{[`${Lo}-${t}`]:t})})};var Nt="button",vo=Nt;import{Fragment as Ao,jsx as be,jsxs as go}from"react/jsx-runtime";var we="k-button",ii=["icon-button"],ai=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],si={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"},L=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:N,selected:v,disabled:y,togglable:O,ariaDisabled:I,icon:A,iconSize:k,text:_,iconClassName:pe,className:Me,...Te}=e,Oe=A!=null,Re=e.children!==void 0;return go(t,{className:i(Me,we,oo(we,m),g(we,{size:o,rounded:s,fillMode:n,themeColor:r}),S(we,{hover:f,focus:b,active:N,disabled:y||I,selected:v}),{"k-icon-button":!_&&!Re&&Oe}),"aria-pressed":O?v?"true":"false":void 0,...Te,"aria-disabled":I?"true":void 0,disabled:y||void 0,children:[typeof A=="string"&&A&&be(x,{className:i(pe,"k-button-icon"),icon:A,size:k}),A&&typeof A!="string"&&be(Ao,{children:A}),_?go(Ao,{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(x,{icon:c})})]})};L.states=ai;L.options=si;L.variants=ii;L.className=we;L.defaultOptions=Lt;L.moduleName=Nt;L.folderName=vo;L.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 ri}from"react/jsx-runtime";var re=e=>ri(L,{children:"Button",...e});import{Fragment as Io,jsx as J,jsxs as vt}from"react/jsx-runtime";var li=C.states,ci=C.defaultOptions,di=C.options,pi=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],mi=[],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"],N=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(Io,{children:[J(ue,{children:J(x,{icon:"lock"})}),v&&J(Y,{})]}),J(F,{placeholder:"Placeholder",value:"Value"}),N&&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(Io,{children:[v&&J(Y,{}),J(fe,{children:J(re,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};he.options=di;he.states=li;he.variants=mi;he.defaultOptions=ci;he.modifiers=pi;he.className=C.className;var At="popup",ko=At;import{jsx as So}from"react/jsx-runtime";var Co="k-animation-container",ui=[],fi={},gt={positionMode:"absolute",shown:!0},W=e=>{let{positionMode:t=gt.positionMode,shown:o=gt.shown,animationStyle:s,offset:n,...r}=e;return So("div",{...r,style:{...n,...e.style},className:i(e.className,Co,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:So("div",{className:"k-child-animation-container",style:s,children:e.children})})};W.states=ui;W.options=fi;W.className=Co;W.defaultOptions=gt;W.moduleName=At;W.folderName=ko;var It="popup",Eo=It;import{jsx as yo}from"react/jsx-runtime";var Mo="k-popup",bi=[],hi={},To={positionMode:"absolute"},Q=e=>{let{offset:t,positionMode:o=To.positionMode,animationStyle:s,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return yo(W,{positionMode:o,offset:t,animationStyle:s,className:n,role:r,"aria-label":d,children:yo("div",{...c,className:i(e.className,Mo),children:e.children})})};Q.states=bi;Q.options=hi;Q.className=Mo;Q.defaultOptions=To;Q.moduleName=It;Q.folderName=Eo;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 kt="action-buttons",Oo=kt;import{jsx as Li}from"react/jsx-runtime";var Ze="k-actions",xi=[],Ni={},St={alignment:"start",orientation:"horizontal"},ee=e=>{let{alignment:t=St.alignment,orientation:o=St.orientation,...s}=e;return Li("div",{...s,className:i(Ze,{[`${Ze}-${t}`]:t,[`${Ze}-${o}`]:o},e.className),children:e.children})};ee.states=xi;ee.options=Ni;ee.className=Ze;ee.defaultOptions=St;ee.moduleName=kt;ee.folderName=Oo;import{jsx as Ai}from"react/jsx-runtime";var vi="k-actionsheet-footer",Ro={alignment:"stretched",orientation:"horizontal"},xe=e=>{let{alignment:t=Ro.alignment,orientation:o=Ro.orientation,template:s,as:n=s?"div":ee,...r}=e;return Ai(n,{...r,...!s&&{alignment:t,orientation:o},className:i(e.className,vi),children:e.children})};var Ct="searchbox",Ko=Ct;import{jsx as De,jsxs as ki}from"react/jsx-runtime";var _o="k-searchbox",gi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],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]},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:N,disabled:v,showIcon:y=Et.showIcon,icon:O=Et.icon,"aria-label":I,...A}=e;return ki(C,{...A,size:s,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:f,required:b,loading:N,disabled:v,className:i(e.className,_o),children:[y&&De(x,{className:"k-input-icon",icon:O}),De(F,{placeholder:o,value:t,"aria-label":I}),De(q,{...e}),De(V,{...e}),De(U,{...e})]})};te.states=gi;te.options=Ii;te.className=_o;te.defaultOptions=Et;te.moduleName=Ct;te.folderName=Ko;import{jsx as nc}from"react/jsx-runtime";var yt="textbox",Ho=yt;import{Fragment as Po,jsx as oe,jsxs as Mt}from"react/jsx-runtime";var wo="k-textbox",Si=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ci={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:N,hover:v,focus:y,valid:O,invalid:I,required:A,loading:k,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:I,required:A,loading:k,disabled:_,readonly:pe,className:i(e.className,wo),children:[c&&Mt(Po,{children:[oe(ue,{children:c}),n&&oe(Y,{})]}),oe(F,{id:Me,placeholder:N,value:b,type:f,disabled:_,"aria-label":Te,"aria-describedby":Oe,"aria-invalid":I?"true":void 0}),d&&oe(V,{valid:O,invalid:I,loading:k,disabled:_}),oe(q,{loading:k,disabled:_}),r&&oe(U,{loading:k,disabled:_,readonly:pe,value:b}),m&&Mt(Po,{children:[n&&oe(Y,{}),oe(fe,{children:m})]})]})};H.states=Si;H.options=Ci;H.className=wo;H.defaultOptions=je;H.moduleName=yt;H.folderName=Ho;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 Ei}from"react/jsx-runtime";var Do=e=>Ei(ze,{...e});import{Fragment as Ac,jsx as vc}from"react/jsx-runtime";import{jsx as yi}from"react/jsx-runtime";var zo=e=>yi(L,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Mi}from"react/jsx-runtime";var Bo=e=>Mi(L,{icon:"folder",children:"Button",...e});import{jsx as Tt}from"react/jsx-runtime";var Ti=L.options,Oi=L.states,Ri={...L.defaultOptions,variant:"text"},Ki=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],_i=[],Ne=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Tt(zo,{...o,icon:"star"});case"icon-and-text":return Tt(Bo,{...o,icon:"star",children:"Button"});default:return Tt(re,{...o,children:"Button"})}};Ne.options=Ti;Ne.states=Oi;Ne.variants=Ki;Ne.defaultOptions=Ri;Ne.modifiers=_i;Ne.className=L.className;import{Fragment as Xc,jsx as $c}from"react/jsx-runtime";import{jsx as Yc}from"react/jsx-runtime";import{jsx as Ot}from"react/jsx-runtime";var Hi=H.states,Pi=H.defaultOptions,wi=H.options,Di=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],zi=[],Le=e=>{let{modifiers:t,...o}=e,s={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":s.prefix=t?.[n]?Ot(x,{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(Do,{value:"Value",style:{width:300},...o,...s})};Le.options=wi;Le.states=Hi;Le.variants=zi;Le.defaultOptions=Pi;Le.modifiers=Di;Le.className=H.className;import{jsx as ne,jsxs as Rt}from"react/jsx-runtime";var Uo="k-actionsheet-titlebar",Bi={},G=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:n,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:f,titleId:b,children:N,...v}=e;return Rt("div",{...v,className:i(e.className,Uo),children:[Rt("div",{className:"k-actionsheet-titlebar-group",children:[s&&ne("div",{className:"k-actionsheet-actions",children:s}),!N&&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})]}),N&&ne("div",{className:"k-actionsheet-title",id:b,children:N}),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=Uo;G.defaultOptions=Bi;import{jsx as Kt,jsxs as Gi}from"react/jsx-runtime";var _t="k-actionsheet-view",Ui=[],Fi={},Vi={},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 Gi("div",{...c,className:i(e.className,_t,{[`${_t}-animated`]:o}),children:[m,Kt("div",{className:"k-actionsheet-content",children:s}),f]})};ve.states=Ui;ve.options=Fi;ve.className=_t;ve.defaultOptions=Vi;var Be="action-sheet",et=Be;var Ht="overlay",Fo=Ht;import{jsx as Ji}from"react/jsx-runtime";var Vo="k-overlay",$i=[],Xi={},qi={},ie=e=>{let{...t}=e;return Ji("div",{...t,className:i(e.className,Vo),children:e.children})};ie.states=$i;ie.options=Xi;ie.className=Vo;ie.defaultOptions=qi;ie.moduleName=Ht;ie.folderName=Fo;import{jsx as tt,jsxs as Qi}from"react/jsx-runtime";var Go="k-actionsheet",Wi=[],Yi={},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,N=f&&!r&&c?`${f}-title`:void 0;return Qi("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":N,className:i(e.className,Go,{[`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:N,...e,children:d})})})]})};M.states=Wi;M.options=Yi;M.className=Go;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 ta}from"react/jsx-runtime";var $o="k-actionsheet-container",Zi=[],ji={},ea={},Ae=e=>{let{children:t,...o}=e;return ta("div",{...o,className:$o,children:t})};Ae.states=Zi;Ae.options=ji;Ae.className=$o;Ae.defaultOptions=ea;Ae.moduleName=Be;Ae.folderName=et;import{jsx as oa}from"react/jsx-runtime";var Pt=e=>{let{...t}=e;return oa("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};import{Fragment as ia,jsx as Fe,jsxs as wt}from"react/jsx-runtime";var Dt="k-actionsheet-item",na=[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(ia,{children:wt("span",{className:"k-actionsheet-action",children:[t&&Fe("span",{className:"k-icon-wrap",children:Fe(x,{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=na;ae.className=Dt;import{jsx as Wd,jsxs as Yd}from"react/jsx-runtime";import{jsx as ep}from"react/jsx-runtime";import{jsx as ip}from"react/jsx-runtime";import{jsx as lp}from"react/jsx-runtime";import{jsx as T,jsxs as zt}from"react/jsx-runtime";var aa=M.options,sa=M.states,qo={...M.defaultOptions,variant:"normal"},ra=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],la=[{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}={...qo,...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(L,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?T(L,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?zt(xe,{alignment:"stretched",children:[T(L,{text:"Cancel",size:"large",themeColor:"base"}),T(L,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):T(M,{...s,fullscreen:n.fullScreen,header:T(G,{actionsStart:n.actionsStart?T(L,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?T(L,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?zt(xe,{alignment:"stretched",children:[T(L,{text:"Apply",themeColor:"primary"}),T(L,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};ge.options=aa;ge.states=sa;ge.variants=ra;ge.defaultOptions=qo;ge.modifiers=la;ge.className=M.className;import Ft from"react";import{jsx as Jo}from"react/jsx-runtime";var ca="k-list-group-sticky-header",Bt=e=>Jo("div",{className:i(ca,e.className),children:Jo("div",{className:"k-list-header-text",children:e.children})});import{jsx as pa}from"react/jsx-runtime";var da="k-no-data",Ut=e=>{let{live:t,...o}=e;return pa("span",{...o,className:i(da,e.className),"aria-live":t?"polite":void 0,children:e.children})};var le="list",Ie=le;import{jsx as Wo,jsxs as Yo}from"react/jsx-runtime";var Vt="k-list",ma=[],ua={size:[l.undefined,l.small,l.medium,l.large]},fa={},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 Yo("div",{...b,className:i(e.className,Vt,g(Vt,{size:t}),{"k-virtual-list":o}),children:[d,r,c,n&&Wo(Bt,{children:n}),s||(m!==void 0?m:Wo(Ut,{live:!0,children:"No data found."})),f&&s&&Yo(Ut,{className:"k-sr-only",live:!0,children:[y," items found."]})]})};P.states=ma;P.options=ua;P.className=Vt;P.defaultOptions=fa;P.moduleName=le;P.folderName=Ie;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 Na}from"react/jsx-runtime";var Qo="k-list-container",ba=[],ha={},xa={},ke=e=>{let{...t}=e;return Na("div",{...t,className:i(e.className,Qo),children:e.children})};ke.states=ba;ke.options=ha;ke.className=Qo;ke.defaultOptions=xa;ke.moduleName=le;ke.folderName=Ie;var ce="checkbox",Se=ce;import{jsx as Zo}from"react/jsx-runtime";var ot="k-checkbox",La=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],va={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},Aa={},z=e=>{let{id:t,checked:o,indeterminate:s,hover:n,focus:r,disabled:d,invalid:c,valid:m,required:f,size:b,rounded:N,wrapperRole:v,...y}=e;return Zo("span",{className:"k-checkbox-wrap",role:v,children:Zo("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:N}),S(ot,{hover:n,focus:r,disabled:d,invalid:c,valid:m,indeterminate:s,checked:o}))})})};z.states=La;z.options=va;z.className=ot;z.defaultOptions=Aa;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 jo="k-checkbox-list",ga=[],Ia={},en={layout:"vertical"},w=e=>{let{layout:t=en.layout,...o}=e;return ka("ul",{...o,className:i(e.className,jo,{[`k-list-${t}`]:t}),children:e.children})};w.states=ga;w.options=Ia;w.className=jo;w.defaultOptions=en;w.moduleName=ce;w.folderName=Se;import{jsx as ya}from"react/jsx-runtime";var tn="k-checkbox-list-item",Sa=[],Ca={},Ea={},D=e=>{let{...t}=e;return ya("li",{...t,className:i(e.className,tn),children:e.children})};D.states=Sa;D.options=Ca;D.className=tn;D.defaultOptions=Ea;D.moduleName=ce;D.folderName=Se;import{Fragment as Ma,jsx as on,jsxs as Ta}from"react/jsx-runtime";var Z=({children:e="Label",id:t="cb-label-after",...o})=>Ta(Ma,{children:[on($,{id:t,...o}),on("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as xm,jsx as hm,jsxs as Nm}from"react/jsx-runtime";import{Fragment as Im,jsx as gm,jsxs as km}from"react/jsx-runtime";import{Fragment as Mm,jsx as ym,jsxs as Tm}from"react/jsx-runtime";import{jsx as _m}from"react/jsx-runtime";import{jsx as Dm}from"react/jsx-runtime";import{jsx as Fm}from"react/jsx-runtime";import{jsx as B,jsxs as nn}from"react/jsx-runtime";var Oa=w.options,Ra=w.states,Ka={...w.defaultOptions,variant:"vertical"},_a=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Ha=[],Ce=e=>{let{variant:t,...o}=e;return t==="horizontal"?nn(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"})})]}):nn(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=Oa;Ce.states=Ra;Ce.variants=_a;Ce.defaultOptions=Ka;Ce.modifiers=Ha;Ce.className=w.className;import{jsx as Ua}from"react/jsx-runtime";var Pa=$.options,wa=$.states,Da=$.defaultOptions,za=[],Ba=[],Ee=e=>Ua(Z,{id:R("checkbox"),...e,defaultChecked:!0,children:"Label"});Ee.options=Pa;Ee.states=wa;Ee.variants=za;Ee.defaultOptions=Da;Ee.modifiers=Ba;Ee.className=$.className;import{jsx as de,jsxs as $a}from"react/jsx-runtime";var Gt="k-list-item",Fa=[a.hover,a.focus,a.selected,a.disabled],Va={},Ga={},K=e=>{let{text:t,groupLabel:o,group:s,iconName:n,iconClassName:r,showCheckbox:d,checked:c,hover:m,focus:f,selected:b,disabled:N,actions:v,description:y,id:O,...I}=e,A=t||e.children;return $a("li",{...I,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&&N?"true":void 0,className:i(e.className,s?"k-list-group-item":Gt,S(Gt,{hover:m,focus:f,disabled:N,selected:b})),children:[d&&de(z,{checked:c}),n&&de("span",{className:"k-list-item-icon-wrapper",children:de(x,{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=Fa;K.options=Va;K.className=Gt;K.defaultOptions=Ga;K.moduleName=le;K.folderName=Ie;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 qa}from"react/jsx-runtime";var Xa="k-list-ul",Ve=e=>{let{children:t,role:o,id:s,...n}=e;return qa("ul",{...n,id:s,role:o,className:i(Xa,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 Wa}from"react/jsx-runtime";var Ja="k-list-content",j=e=>{let{virtualization:t,grouping:o,"aria-label":s,"aria-labelledby":n,listboxId:r,...d}=e;return Wa("div",{...d,className:i(Ja,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 ja}from"react/jsx-runtime";var nt="k-list-sticky-header",Ya=[a.hover,a.focus,a.selected],Qa={},Za={},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:ja("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=Ya;it.options=Qa;it.className=nt;it.defaultOptions=Za;import{Fragment as Pu,jsx as Hu,jsxs as wu}from"react/jsx-runtime";import{jsx as qt,jsxs as ts}from"react/jsx-runtime";var es="k-list-group-item",Jt=e=>{let{groupIconName:t,...o}=e;return ts("li",{...o,role:"presentation",className:i(es,e.className),children:[t&&qt("span",{className:"k-list-item-icon-wrapper",children:qt(x,{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 as}from"react/jsx-runtime";var Wt="k-list-optionlabel",os=[a.hover,a.focus,a.selected,a.disabled],ns={},is={},at=e=>{let{text:t,hover:o,focus:s,selected:n,disabled:r,...d}=e;return as("div",{...d,className:i(Wt,S(Wt,{hover:o,focus:s,selected:n,disabled:r})),children:t})};at.states=os;at.options=ns;at.className=Wt;at.defaultOptions=is;import{jsx as cs}from"react/jsx-runtime";var Yt="k-list-custom-value",ss=[a.hover,a.focus,a.selected,a.disabled],rs={},ls={},ye=e=>{let{text:t,hover:o,focus:s,selected:n,disabled:r,...d}=e;return cs("div",{...d,className:i(Yt,S(Yt,{hover:o,focus:s,selected:n,disabled:r})),children:t})};ye.states=ss;ye.options=rs;ye.className=Yt;ye.defaultOptions=ls;import{Fragment as ju,jsx as Zu,jsxs as ef}from"react/jsx-runtime";import{Fragment as rf,jsx as sf,jsxs as lf}from"react/jsx-runtime";import{Fragment as bf,jsx as uf,jsxs as ff}from"react/jsx-runtime";import{Fragment as gf,jsx as vf,jsxs as Af}from"react/jsx-runtime";import{jsx as Cf}from"react/jsx-runtime";import{Fragment as Rf,jsx as Of,jsxs as Kf}from"react/jsx-runtime";var Qt="autocomplete",an=Qt;import{Fragment as Zt,jsx as E,jsxs as Ge}from"react/jsx-runtime";var sn="k-autocomplete",ds=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ps={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]},rn={separators:!0},se=e=>{let{size:t,rounded:o,fillMode:s,separators:n=rn.separators,prefix:r,suffix:d,value:c,placeholder:m,hover:f,focus:b,valid:N,invalid:v,required:y,loading:O,disabled:I,popup:A,opened:k,readonly:_,adaptive:pe,adaptiveSettings:Me,adaptiveTitle:Te,adaptiveSubtitle:Oe,adaptiveCustomValue:Re,id:eo,autocomplete:cn,activeDescendant:to,"aria-label":dn,...pn}=e,mn=eo?`${eo}-listbox`:void 0;return Ge(Zt,{children:[Ge(C,{...pn,size:t,rounded:o,fillMode:s,hover:f,focus:b,valid:N,invalid:v,required:y,loading:O,disabled:I,readonly:_,className:i(e.className,sn),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":k?"true":"false","aria-controls":k?mn:void 0,"aria-activedescendant":k&&to?to:void 0,"aria-autocomplete":cn,"aria-invalid":v?"true":void 0,"aria-busy":O?"true":void 0,"aria-label":dn,disabled:I,readOnly:_}),E(V,{valid:N,invalid:v,loading:O,disabled:I}),E(q,{loading:O,disabled:I}),E(U,{loading:O,disabled:I,readonly:_,value:c}),d&&Ge(Zt,{children:[n&&E(Y,{}),E(fe,{children:d})]})]}),k&&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(L,{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=ds;se.options=ps;se.className=sn;se.defaultOptions=rn;se.moduleName=Qt;se.folderName=an;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 ln=se;import{Fragment as ms,jsx as jt}from"react/jsx-runtime";var ub=e=>jt(ln,{id:R("ac"),"aria-label":"Search options",prefix:jt(ms,{children:jt(x,{icon:"search"})}),...e});export{ub as AutocompletePrefix};