UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 41.9 kB
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,i)=>t[i]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var A=(e,t)=>a({[`${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"}),E=(e,t)=>{let{valid:o,invalid:i,hover:n,focus:r,checked:d,active:c,selected:m,disabled:f,indeterminate:b,loading:x,empty:v,readonly:T,highlighted:_,...g}=t;return a({"k-valid":o,"k-invalid":i,"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":T,"k-highlighted":_},Object.keys(g).reduce((I,C)=>(C.startsWith("k-")?I[C]=g[C]:I[`k-${C}`]=g[C],I),{}))};function oo(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(i=>[`k-${i}`,!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"},q={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"},s={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 rt={};function S(e){return rt[e]=(rt[e]||0)+1,`k-${e}-${rt[e]}`}var Ke="input",Xe=Ke;import{jsx as hn}from"react/jsx-runtime";var qe="k-input",un=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.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={},y=e=>{let{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:f,fillMode:b,...x}=e;return hn("span",{...x,className:a(e.className,qe,A(qe,{size:m,rounded:f,fillMode:b}),E(qe,{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c}))})};y.states=un;y.options=fn;y.className=qe;y.defaultOptions=bn;y.moduleName=Ke;y.folderName=Xe;import{jsx as vn}from"react/jsx-runtime";var Je="k-picker",xn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.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:i,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:f,fillMode:b,...x}=e;return vn("span",{...x,className:a(e.className,Je,A(Je,{size:m,rounded:f,fillMode:b}),E(Je,{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c})),children:e.children})};me.states=xn;me.options=Nn;me.className=Je;me.defaultOptions=Ln;me.moduleName=Ke;me.folderName=Xe;import{Fragment as kn,jsx as no}from"react/jsx-runtime";var lt="k-font-icon",In=[],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:i,rotate:n,flip:r,...d}=e;return i?no("span",{...d,className:a(e.className,lt,A(lt,{size:t}),{[`k-i-${i}`]:i,[`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=In;_e.options=An;_e.className=lt;_e.defaultOptions=gn;var io=_e;import{Fragment as En,jsx as We}from"react/jsx-runtime";var ct="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:[q.outline,q.solid,q.duotone]},dt={viewBox:"0 0 24 24",variant:q.outline},He=e=>{let{size:t,themeColor:o,rotate:i,flip:n,viewBox:r=dt.viewBox,variant:d=dt.variant,icon:c,...m}=e;if(!c)return We(En,{});if(c==="none")return We("span",{...m,className:a(e.className,ct,A("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 We("span",{...m,className:a(e.className,ct,A("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:We("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=ct;He.defaultOptions=dt;var pt=He;import*as mt 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 Ye="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:[q.outline,q.solid,q.duotone]},Qe={viewBox:"0 0 24 24",type:"svg",variant:q.outline},L=e=>{let{iconsType:t}=Mn(ro),{size:o,themeColor:i,icon:n,type:r=t||Qe.type,rotate:d,flip:c,viewBox:m=Qe.viewBox,variant:f=Qe.variant,...b}=e;if(!n)return Pe(lo,{});if((t||r)==="svg"){if(n==="none")return Pe(pt,{...b,className:a(e.className,Ye),icon:n,size:o,variant:f});let v=mt[n]?n:Tn(`${n}-icon`);return mt[v]?Pe(pt,{...b,className:a(e.className,Ye),icon:mt[v],size:o,themeColor:i,rotate:d,flip:c,viewBox:m,variant:f}):Pe(lo,{})}return Pe(io,{...b,className:a(e.className,Ye),icon:n,size:o,themeColor:i,rotate:d,flip:c})};L.states=On;L.options=Rn;L.defaultOptions=Qe;L.className=Ye;L.moduleName=ao;L.folderName=so;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 Hn,jsx as ut}from"react/jsx-runtime";var co="k-clear-value",Kn=[s.disabled,s.loading,s.readonly],_n={},U=e=>{let{disabled:t,loading:o,readonly:i,value:n}=e;return t||i||o||!n?ut(Hn,{}):ut("span",{className:a(e.className,co),children:ut(L,{icon:"x"})})};U.states=Kn;U.options=_n;U.className=co;import{jsx as Dn}from"react/jsx-runtime";var ft="k-input-inner",Pn=[],wn={},Ze={type:"text",autocomplete:"off",value:"",placeholder:""},F=e=>{let{value:t=Ze.value,type:o=Ze.type,placeholder:i=Ze.placeholder,autocomplete:n=Ze.autocomplete,disabled:r,readOnly:d,...c}=e;return Dn("input",{...c,type:o,className:a(e.className,ft,A(ft,e)),placeholder:i,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};F.states=Pn;F.options=wn;F.className=ft;import{jsx as po,jsxs as Un}from"react/jsx-runtime";var bt="k-input-inner",zn=[],Bn={},ht=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:n,valueIconName:r,...d}=e;return Un("span",{...d,className:a(e.className,bt,A(bt,e)),children:[n,!n&&r&&po(L,{className:"k-input-value-icon",icon:r}),i&&!t&&o,i&&t&&po("span",{className:"k-input-value-text",children:t})]})};ht.states=zn;ht.options=Bn;ht.className=bt;import{jsx as Gn}from"react/jsx-runtime";var xt="k-input-inner",Fn=[],Vn={},mo={value:"",placeholder:""},Nt=e=>{let{value:t=mo.value,placeholder:o=mo.placeholder,rows:i,disabled:n,...r}=e;return Gn("textarea",{...r,className:a(e.className,xt,A(xt,e)),placeholder:o,rows:i,defaultValue:t,disabled:n||void 0})};Nt.states=Fn;Nt.options=Vn;Nt.className=xt;import{Fragment as Xn,jsx as uo}from"react/jsx-runtime";var fo="k-input-loading-icon",$n=[s.disabled,s.loading],J=e=>{let{disabled:t,loading:o}=e;return t||!o?uo(Xn,{}):uo("span",{className:a(e.className,fo,"k-icon k-i-loading")})};J.states=$n;J.className=fo;import{Fragment as Wn,jsx as bo}from"react/jsx-runtime";var ho="k-input-validation-icon",qn=[s.valid,s.invalid,s.disabled,s.loading],Jn={},V=e=>{let{valid:t,invalid:o,disabled:i,loading:n}=e,r=o?"warning-circle":"check-circle";return i||n||!!!(t||o)?bo(Wn,{}):bo(L,{className:a(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:a(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:a(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"},Q=e=>{let{direction:t=oi.direction,...o}=e;return ni("span",{...o,className:a(Lo,e.className,{[`${Lo}-${t}`]:t})})};var Lt="button",vo=Lt;import{Fragment as Io,jsx as be,jsxs as Ao}from"react/jsx-runtime";var we="k-button",ii=["icon-button"],ai=[s.hover,s.focus,s.active,s.selected,s.disabled,s.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]},vt={showArrow:!1,arrowIconName:"chevron-down"},N=e=>{let{as:t="button",size:o,rounded:i,fillMode:n,themeColor:r,showArrow:d=vt.showArrow,arrowIconName:c=vt.arrowIconName,variant:m,hover:f,focus:b,active:x,selected:v,disabled:T,togglable:_,ariaDisabled:g,icon:I,iconSize:C,text:H,iconClassName:pe,className:Me,...Te}=e,Oe=I!=null,Re=e.children!==void 0;return Ao(t,{className:a(Me,we,oo(we,m),A(we,{size:o,rounded:i,fillMode:n,themeColor:r}),E(we,{hover:f,focus:b,active:x,disabled:T||g,selected:v}),{"k-icon-button":!H&&!Re&&Oe}),"aria-pressed":_?v?"true":"false":void 0,...Te,"aria-disabled":g?"true":void 0,disabled:T||void 0,children:[typeof I=="string"&&I&&be(L,{className:a(pe,"k-button-icon"),icon:I,size:C}),I&&typeof I!="string"&&be(Io,{children:I}),H?Ao(Io,{children:[H&&be("span",{className:"k-button-text",children:H}),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=ai;N.options=si;N.variants=ii;N.className=we;N.defaultOptions=vt;N.moduleName=Lt;N.folderName=vo;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 ri}from"react/jsx-runtime";var re=e=>ri(N,{children:"Button",...e});import{Fragment as go,jsx as W,jsxs as It}from"react/jsx-runtime";var li=y.states,ci=y.defaultOptions,di=y.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:i,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 It(y,{...c,valid:o,invalid:i,loading:n,disabled:r,readonly:d,style:{width:300},children:[m&&It(go,{children:[W(ue,{children:W(L,{icon:"lock"})}),v&&W(Q,{})]}),W(F,{placeholder:"Placeholder",value:"Value"}),x&&W(V,{valid:o,invalid:i,loading:n,disabled:r}),W(J,{loading:n,disabled:r}),b&&W(U,{loading:n,disabled:r,readonly:d,value:"Value"}),f&&It(go,{children:[v&&W(Q,{}),W(fe,{children:W(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=y.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},Y=e=>{let{positionMode:t=gt.positionMode,shown:o=gt.shown,animationStyle:i,offset:n,...r}=e;return So("div",{...r,style:{...n,...e.style},className:a(e.className,Co,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:So("div",{className:"k-child-animation-container",style:i,children:e.children})})};Y.states=ui;Y.options=fi;Y.className=Co;Y.defaultOptions=gt;Y.moduleName=At;Y.folderName=ko;var kt="popup",Eo=kt;import{jsx as yo}from"react/jsx-runtime";var Mo="k-popup",bi=[],hi={},To={positionMode:"absolute"},Z=e=>{let{offset:t,positionMode:o=To.positionMode,animationStyle:i,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return yo(Y,{positionMode:o,offset:t,animationStyle:i,className:n,role:r,"aria-label":d,children:yo("div",{...c,className:a(e.className,Mo),children:e.children})})};Z.states=bi;Z.options=hi;Z.className=Mo;Z.defaultOptions=To;Z.moduleName=kt;Z.folderName=Eo;Z.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 St="action-buttons",Oo=St;import{jsx as Li}from"react/jsx-runtime";var je="k-actions",xi=[],Ni={},Ct={alignment:"start",orientation:"horizontal"},ee=e=>{let{alignment:t=Ct.alignment,orientation:o=Ct.orientation,...i}=e;return Li("div",{...i,className:a(je,{[`${je}-${t}`]:t,[`${je}-${o}`]:o},e.className),children:e.children})};ee.states=xi;ee.options=Ni;ee.className=je;ee.defaultOptions=Ct;ee.moduleName=St;ee.folderName=Oo;import{jsx as Ii}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:i,as:n=i?"div":ee,...r}=e;return Ii(n,{...r,...!i&&{alignment:t,orientation:o},className:a(e.className,vi),children:e.children})};var Et="searchbox",Ko=Et;import{jsx as De,jsxs as ki}from"react/jsx-runtime";var _o="k-searchbox",Ai=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.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]},yt={showIcon:!0,icon:"search"},te=e=>{let{value:t,placeholder:o,size:i,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:f,required:b,loading:x,disabled:v,showIcon:T=yt.showIcon,icon:_=yt.icon,"aria-label":g,...I}=e;return ki(y,{...I,size:i,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:f,required:b,loading:x,disabled:v,className:a(e.className,_o),children:[T&&De(L,{className:"k-input-icon",icon:_}),De(F,{placeholder:o,value:t,"aria-label":g}),De(J,{...e}),De(V,{...e}),De(U,{...e})]})};te.states=Ai;te.options=gi;te.className=_o;te.defaultOptions=yt;te.moduleName=Et;te.folderName=Ko;import{jsx as nc}from"react/jsx-runtime";var Mt="textbox",Ho=Mt;import{Fragment as Po,jsx as oe,jsxs as Tt}from"react/jsx-runtime";var wo="k-textbox",Si=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.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]},et={showClearButton:!0,showValidationIcon:!0,separators:!0},P=e=>{let{size:t,rounded:o,fillMode:i,separators:n=et.separators,showClearButton:r=et.showClearButton,showValidationIcon:d=et.showValidationIcon,prefix:c,suffix:m,type:f,value:b,placeholder:x,hover:v,focus:T,valid:_,invalid:g,required:I,loading:C,disabled:H,readonly:pe,id:Me,"aria-label":Te,"aria-describedby":Oe,...Re}=e;return Tt(y,{...Re,size:t,rounded:o,fillMode:i,hover:v,focus:T,valid:_,invalid:g,required:I,loading:C,disabled:H,readonly:pe,className:a(e.className,wo),children:[c&&Tt(Po,{children:[oe(ue,{children:c}),n&&oe(Q,{})]}),oe(F,{id:Me,placeholder:x,value:b,type:f,disabled:H,"aria-label":Te,"aria-describedby":Oe,"aria-invalid":g?"true":void 0}),d&&oe(V,{valid:_,invalid:g,loading:C,disabled:H}),oe(J,{loading:C,disabled:H}),r&&oe(U,{loading:C,disabled:H,readonly:pe,value:b}),m&&Tt(Po,{children:[n&&oe(Q,{}),oe(fe,{children:m})]})]})};P.states=Si;P.options=Ci;P.className=wo;P.defaultOptions=et;P.moduleName=Mt;P.folderName=Ho;P.ariaSpec={selector:".k-textbox",rules:[{selector:".k-textbox > .k-input-inner",attribute:"role=textbox or nodeName=input",usage:"Describes the role of the component."},{selector:".k-textbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-textbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the TextBox is in an invalid state."},{selector:".k-textbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the input."},{selector:".k-textbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the TextBox is disabled."}]};var ze=P;import{jsx as Ei}from"react/jsx-runtime";var Do=e=>Ei(ze,{...e});import{Fragment as Ic,jsx as vc}from"react/jsx-runtime";import{jsx as yi}from"react/jsx-runtime";var zo=e=>yi(N,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Mi}from"react/jsx-runtime";var Bo=e=>Mi(N,{icon:"folder",children:"Button",...e});import{jsx as Ot}from"react/jsx-runtime";var Ti=N.options,Oi=N.states,Ri={...N.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 Ot(zo,{...o,icon:"star"});case"icon-and-text":return Ot(Bo,{...o,icon:"star",children:"Button"});default:return Ot(re,{...o,children:"Button"})}};Ne.options=Ti;Ne.states=Oi;Ne.variants=Ki;Ne.defaultOptions=Ri;Ne.modifiers=_i;Ne.className=N.className;import{Fragment as Xc,jsx as $c}from"react/jsx-runtime";import{jsx as Yc}from"react/jsx-runtime";import{jsx as Rt}from"react/jsx-runtime";var Hi=P.states,Pi=P.defaultOptions,wi=P.options,Di=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],zi=[],Le=e=>{let{modifiers:t,...o}=e,i={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":i.prefix=t?.[n]?Rt(L,{icon:"lock"}):void 0;break;case"suffix":i.suffix=t?.[n]?Rt(re,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":i.showClearButton=t?.[n];break;default:break}}),Rt(Do,{value:"Value",style:{width:300},...o,...i})};Le.options=wi;Le.states=Hi;Le.variants=zi;Le.defaultOptions=Pi;Le.modifiers=Di;Le.className=P.className;import{jsx as ne,jsxs as Kt}from"react/jsx-runtime";var Uo="k-actionsheet-titlebar",Bi={},G=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:n,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:f,titleId:b,children:x,...v}=e;return Kt("div",{...v,className:a(e.className,Uo),children:[Kt("div",{className:"k-actionsheet-titlebar-group",children:[i&&ne("div",{className:"k-actionsheet-actions",children:i}),!x&&Kt("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(P,{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 _t,jsxs as Gi}from"react/jsx-runtime";var Ht="k-actionsheet-view",Ui=[],Fi={},Vi={},ve=e=>{let{adaptive:t,animated:o,children:i,header:n,footer:r,titleId:d,...c}=e,m=n?.type===G&&_t(G,{adaptive:t,titleId:d,...n?.props}),f=r?.type===xe&&_t(xe,{...r?.props});return Gi("div",{...c,className:a(e.className,Ht,{[`${Ht}-animated`]:o}),children:[m,_t("div",{className:"k-actionsheet-content",children:i}),f]})};ve.states=Ui;ve.options=Fi;ve.className=Ht;ve.defaultOptions=Vi;var Be="action-sheet",tt=Be;var Pt="overlay",Fo=Pt;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:a(e.className,Vo),children:e.children})};ie.states=$i;ie.options=Xi;ie.className=Vo;ie.defaultOptions=qi;ie.moduleName=Pt;ie.folderName=Fo;import{jsx as ot,jsxs as Qi}from"react/jsx-runtime";var Go="k-actionsheet",Wi=[],Yi={},Ue={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},O=e=>{let{side:t=Ue.side,fullscreen:o=Ue.fullscreen,adaptive:i=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 Qi("div",{className:"k-actionsheet-container",children:[n&&ot(ie,{}),ot(Y,{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:ot("div",{...b,id:f,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":x,className:a(e.className,Go,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:r||ot(ve,{header:c,footer:m,adaptive:i,titleId:x,...e,children:d})})})]})};O.states=Wi;O.options=Yi;O.className=Go;O.defaultOptions=Ue;O.moduleName=Be;O.folderName=tt;O.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};import{jsx as ta}from"react/jsx-runtime";var $o="k-actionsheet-container",Zi=[],ji={},ea={},Ie=e=>{let{children:t,...o}=e;return ta("div",{...o,className:$o,children:t})};Ie.states=Zi;Ie.options=ji;Ie.className=$o;Ie.defaultOptions=ea;Ie.moduleName=Be;Ie.folderName=tt;import{jsx as oa}from"react/jsx-runtime";var wt=e=>{let{...t}=e;return oa("div",{...t,className:a(e.className,"k-list-ul"),children:e.children})};import{Fragment as ia,jsx as Fe,jsxs as Dt}from"react/jsx-runtime";var zt="k-actionsheet-item",na=[s.hover,s.focus,s.selected,s.disabled],ae=e=>{let{iconName:t,text:o,description:i,hover:n,focus:r,selected:d,disabled:c,...m}=e;return Dt("span",{...m,className:a(e.className,zt,E(zt,{hover:n,focus:r,selected:d,disabled:c})),children:[!e.children&&Fe(ia,{children:Dt("span",{className:"k-actionsheet-action",children:[t&&Fe("span",{className:"k-icon-wrap",children:Fe(L,{className:"k-actionsheet-item-icon",icon:t})}),Dt("span",{className:"k-actionsheet-item-text",children:[o&&Fe("span",{className:"k-actionsheet-item-title",children:o}),i&&Fe("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};ae.states=na;ae.className=zt;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 R,jsxs as Bt}from"react/jsx-runtime";var aa=O.options,sa=O.states,qo={...O.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"}],Ae=e=>{let{variant:t,modifiers:o,...i}={...qo,...e},n={},r=Bt(wt,{children:[R(ae,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),R(ae,{text:"Add to Favorites",iconName:"heart"}),R(ae,{text:"Upload New",iconName:"upload",disabled:!0}),R("hr",{className:"k-hr"}),R(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"?R(O,{...i,adaptive:!0,fullscreen:n.fullScreen,header:R(G,{actionsStart:n.actionsStart?R(N,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?R(N,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?Bt(xe,{alignment:"stretched",children:[R(N,{text:"Cancel",size:"large",themeColor:"base"}),R(N,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):R(O,{...i,fullscreen:n.fullScreen,header:R(G,{actionsStart:n.actionsStart?R(N,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?R(N,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Bt(xe,{alignment:"stretched",children:[R(N,{text:"Apply",themeColor:"primary"}),R(N,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};Ae.options=aa;Ae.states=sa;Ae.variants=ra;Ae.defaultOptions=qo;Ae.modifiers=la;Ae.className=O.className;import Vt from"react";import{jsx as Jo}from"react/jsx-runtime";var ca="k-list-group-sticky-header",Ut=e=>Jo("div",{className:a(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",Ft=e=>{let{live:t,...o}=e;return pa("span",{...o,className:a(da,e.className),"aria-live":t?"polite":void 0,children:e.children})};var le="list",ge=le;import{jsx as Wo,jsxs as Yo}from"react/jsx-runtime";var Gt="k-list",ma=[],ua={size:[l.undefined,l.small,l.medium,l.large]},fa={},K=e=>{let{size:t,virtualization:o,children:i,header:n,selectAll:r,optionLabel:d,customValue:c,noData:m,screenReaders:f,...b}=e,v=Vt.Children.toArray(i)[0],T=v?.props?.children?Vt.Children.count(v.props.children):Vt.Children.count(i);return Yo("div",{...b,className:a(e.className,Gt,A(Gt,{size:t}),{"k-virtual-list":o}),children:[d,r,c,n&&Wo(Ut,{children:n}),i||(m!==void 0?m:Wo(Ft,{live:!0,children:"No data found."})),f&&i&&Yo(Ft,{className:"k-sr-only",live:!0,children:[T," items found."]})]})};K.states=ma;K.options=ua;K.className=Gt;K.defaultOptions=fa;K.moduleName=le;K.folderName=ge;K.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:a(e.className,Qo),children:e.children})};ke.states=ba;ke.options=ha;ke.className=Qo;ke.defaultOptions=xa;ke.moduleName=le;ke.folderName=ge;var ce="checkbox",Se=ce;import{jsx as Zo}from"react/jsx-runtime";var nt="k-checkbox",La=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],va={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},Ia={},z=e=>{let{id:t,checked:o,indeterminate:i,hover:n,focus:r,disabled:d,invalid:c,valid:m,required:f,size:b,rounded:x,wrapperRole:v,...T}=e;return Zo("span",{className:"k-checkbox-wrap",role:v,children:Zo("input",{...T,id:t,type:"checkbox",defaultChecked:o,required:f,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:a(e.className,nt,A(nt,{size:b,rounded:x}),E(nt,{hover:n,focus:r,disabled:d,invalid:c,valid:m,indeterminate:i,checked:o}))})})};z.states=La;z.options=va;z.className=nt;z.defaultOptions=Ia;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",Aa=[],ga={},en={layout:"vertical"},w=e=>{let{layout:t=en.layout,...o}=e;return ka("ul",{...o,className:a(e.className,jo,{[`k-list-${t}`]:t}),children:e.children})};w.states=Aa;w.options=ga;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:a(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 j=({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 gm,jsx as Am,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(j,{id:S("cb"),defaultChecked:!0,children:"Label"})}),B(D,{children:B(j,{id:S("cb"),children:"Label"})}),B(D,{children:B(j,{id:S("cb"),children:"Label"})})]}):nn(w,{...o,children:[B(D,{children:B(j,{id:S("cb"),defaultChecked:!0,children:"Label"})}),B(D,{children:B(j,{id:S("cb"),children:"Label"})}),B(D,{children:B(j,{id:S("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(j,{id:S("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 $t="k-list-item",Fa=[s.hover,s.focus,s.selected,s.disabled],Va={},Ga={},k=e=>{let{text:t,groupLabel:o,group:i,iconName:n,iconClassName:r,showCheckbox:d,checked:c,hover:m,focus:f,selected:b,disabled:x,actions:v,description:T,id:_,...g}=e,I=t||e.children;return $a("li",{...g,id:_,role:i?"presentation":"option",tabIndex:i?void 0:f?0:-1,"aria-selected":!i&&b?"true":i?void 0:"false","aria-disabled":!i&&x?"true":void 0,className:a(e.className,i?"k-list-group-item":$t,E($t,{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:a("k-list-item-icon",r)})}),de("span",{className:"k-list-item-text",children:I}),v&&de("div",{className:"k-list-item-actions",children:v}),T&&de("span",{className:"k-list-item-description",children:T}),o&&o!==""&&de("div",{className:"k-list-item-group-label",children:o})]})};k.states=Fa;k.options=Va;k.className=$t;k.defaultOptions=Ga;k.moduleName=le;k.folderName=ge;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:i,...n}=e;return qa("ul",{...n,id:i,role:o,className:a(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 Xt,jsxs as Wa}from"react/jsx-runtime";var Ja="k-list-content",X=e=>{let{virtualization:t,grouping:o,"aria-label":i,"aria-labelledby":n,listboxId:r,...d}=e;return Wa("div",{...d,className:a(Ja,e.className),role:o?"listbox":void 0,id:o?r:void 0,"aria-label":o?i:void 0,"aria-labelledby":o?n:void 0,children:[o?e.children:Xt(Ve,{role:"listbox",id:r,"aria-label":i,"aria-labelledby":n,children:e.children}),t&&Xt("div",{className:"k-height-container",children:Xt("div",{})})]})};X.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 qt,jsxs as ja}from"react/jsx-runtime";var it="k-list-sticky-header",Ya=[s.hover,s.focus,s.selected],Qa={},Za={},at=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:i,indeterminate:n,hover:r,focus:d,selected:c,...m}=e;return qt("div",{...m,className:a(it,e.className),children:ja("div",{className:a(`${it}-item`,E(`${it}-item`,{hover:r,focus:d,selected:c})),children:[o&&qt(z,{checked:i,indeterminate:n,"aria-label":t}),qt("span",{className:"k-list-item-text",children:t})]})})};at.states=Ya;at.options=Qa;at.className=it;at.defaultOptions=Za;import{Fragment as Pu,jsx as Hu,jsxs as wu}from"react/jsx-runtime";import{jsx as Jt,jsxs as ts}from"react/jsx-runtime";var es="k-list-group-item",Wt=e=>{let{groupIconName:t,...o}=e;return ts("li",{...o,role:"presentation",className:a(es,e.className),children:[t&&Jt("span",{className:"k-list-item-icon-wrapper",children:Jt(L,{icon:t,className:"k-list-item-icon"})}),Jt("span",{className:"k-list-item-text",children:e.children})]})};Wt.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 Yt="k-list-optionlabel",os=[s.hover,s.focus,s.selected,s.disabled],ns={},is={},st=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:r,...d}=e;return as("div",{...d,className:a(Yt,E(Yt,{hover:o,focus:i,selected:n,disabled:r})),children:t})};st.states=os;st.options=ns;st.className=Yt;st.defaultOptions=is;import{jsx as cs}from"react/jsx-runtime";var Qt="k-list-custom-value",ss=[s.hover,s.focus,s.selected,s.disabled],rs={},ls={},ye=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:r,...d}=e;return cs("div",{...d,className:a(Qt,E(Qt,{hover:o,focus:i,selected:n,disabled:r})),children:t})};ye.states=ss;ye.options=rs;ye.className=Qt;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 Af,jsx as vf,jsxs as If}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 Zt="autocomplete",an=Zt;import{Fragment as jt,jsx as M,jsxs as Ge}from"react/jsx-runtime";var sn="k-autocomplete",ds=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.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:i,separators:n=rn.separators,prefix:r,suffix:d,value:c,placeholder:m,hover:f,focus:b,valid:x,invalid:v,required:T,loading:_,disabled:g,popup:I,opened:C,readonly:H,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(jt,{children:[Ge(y,{...pn,size:t,rounded:o,fillMode:i,hover:f,focus:b,valid:x,invalid:v,required:T,loading:_,disabled:g,readonly:H,className:a(e.className,sn),children:[r&&Ge(jt,{children:[M(ue,{children:r}),n&&M(Q,{})]}),M(F,{placeholder:m,value:c,role:"combobox","aria-haspopup":"listbox","aria-expanded":C?"true":"false","aria-controls":C?mn:void 0,"aria-activedescendant":C&&to?to:void 0,"aria-autocomplete":cn,"aria-invalid":v?"true":void 0,"aria-busy":_?"true":void 0,"aria-label":dn,disabled:g,readOnly:H}),M(V,{valid:x,invalid:v,loading:_,disabled:g}),M(J,{loading:_,disabled:g}),M(U,{loading:_,disabled:g,readonly:H,value:c}),d&&Ge(jt,{children:[n&&M(Q,{}),M(fe,{children:d})]})]}),C&&I&&M(Z,{className:"k-list-container k-autocomplete-popup",containerRole:"region",containerAriaLabel:"Autocomplete suggestions",children:I}),pe&&M(O,{adaptive:!0,...Me,header:M(G,{actionsEnd:M(N,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),input:!0,inputValue:c,inputPlaceholder:m,title:Te,subtitle:Oe}),children:M("div",{className:"k-list-container",children:M(K,{customValue:Re?M(ye,{text:`Use "${c}"`}):void 0,size:"large",children:Ge(X,{"aria-label":"Options",children:[M(k,{text:"List item"}),M(k,{text:"List item"}),M(k,{text:"List item"})]})})})})]})};se.states=ds;se.options=ps;se.className=sn;se.defaultOptions=rn;se.moduleName=Zt;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{jsx as $e,jsxs as ms}from"react/jsx-runtime";var ub=e=>{let t=S("ac"),o=S("ac-item"),i=S("ac-item"),n=S("ac-item");return $e(ln,{id:t,"aria-label":"Search",opened:!0,activeDescendant:i,popup:$e(K,{children:ms(X,{listboxId:`${t}-listbox`,"aria-label":"Suggestions",children:[$e(k,{id:o,selected:!0,children:"Selected item"}),$e(k,{id:i,focus:!0,children:"Focused item"}),$e(k,{id:n,children:"List item"})]})}),...e})};export{ub as AutocompletePopup};