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 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 I=(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"}),C=(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:M,highlighted:K,...g}=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":M,"k-highlighted":K},Object.keys(g).reduce((A,S)=>(S.startsWith("k-")?A[S]=g[S]:A[`k-${S}`]=g[S],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"},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"},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 rt={};function _(e){return rt[e]=(rt[e]||0)+1,`k-${e}-${rt[e]}`}var _e="input",Xe=_e;import{jsx as hn}from"react/jsx-runtime";var qe="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={},E=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 hn("span",{...x,className:i(e.className,qe,I(qe,{size:m,rounded:f,fillMode:b}),C(qe,{hover:t,focus:o,disabled:s,invalid:n,valid:r,loading:d,readonly:c}))})};E.states=un;E.options=fn;E.className=qe;E.defaultOptions=bn;E.moduleName=_e;E.folderName=Xe;import{jsx as vn}from"react/jsx-runtime";var Je="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={},ue=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 vn("span",{...x,className:i(e.className,Je,I(Je,{size:m,rounded:f,fillMode:b}),C(Je,{hover:t,focus:o,disabled:s,invalid:n,valid:r,loading:d,readonly:c})),children:e.children})};ue.states=xn;ue.options=Nn;ue.className=Je;ue.defaultOptions=Ln;ue.moduleName=_e;ue.folderName=Xe;import{Fragment as kn,jsx as no}from"react/jsx-runtime";var lt="k-font-icon",An=[],In={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},gn={},He=e=>{let{size:t,themeColor:o,icon:s,rotate:n,flip:r,...d}=e;return s?no("span",{...d,className:i(e.className,lt,I(lt,{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,{})};He.states=An;He.options=In;He.className=lt;He.defaultOptions=gn;var io=He;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},Pe=e=>{let{size:t,themeColor:o,rotate:s,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:i(e.className,ct,I("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:i(e.className,ct,I("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: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})})};Pe.states=Sn;Pe.options=Cn;Pe.className=ct;Pe.defaultOptions=dt;var pt=Pe;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 we}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:s,icon:n,type:r=t||Qe.type,rotate:d,flip:c,viewBox:m=Qe.viewBox,variant:f=Qe.variant,...b}=e;if(!n)return we(lo,{});if((t||r)==="svg"){if(n==="none")return we(pt,{...b,className:i(e.className,Ye),icon:n,size:o,variant:f});let v=mt[n]?n:Tn(`${n}-icon`);return mt[v]?we(pt,{...b,className:i(e.className,Ye),icon:mt[v],size:o,themeColor:s,rotate:d,flip:c,viewBox:m,variant:f}):we(lo,{})}return we(io,{...b,className:i(e.className,Ye),icon:n,size:o,themeColor:s,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=[a.disabled,a.loading,a.readonly],_n={},U=e=>{let{disabled:t,loading:o,readonly:s,value:n}=e;return t||s||o||!n?ut(Hn,{}):ut("span",{className:i(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:""},V=e=>{let{value:t=Ze.value,type:o=Ze.type,placeholder:s=Ze.placeholder,autocomplete:n=Ze.autocomplete,disabled:r,readOnly:d,...c}=e;return Dn("input",{...c,type:o,className:i(e.className,ft,I(ft,e)),placeholder:s,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};V.states=Pn;V.options=wn;V.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:s,valueIcon:n,valueIconName:r,...d}=e;return Un("span",{...d,className:i(e.className,bt,I(bt,e)),children:[n,!n&&r&&po(L,{className:"k-input-value-icon",icon:r}),s&&!t&&o,s&&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",Vn=[],Fn={},mo={value:"",placeholder:""},Nt=e=>{let{value:t=mo.value,placeholder:o=mo.placeholder,rows:s,disabled:n,...r}=e;return Gn("textarea",{...r,className:i(e.className,xt,I(xt,e)),placeholder:o,rows:s,defaultValue:t,disabled:n||void 0})};Nt.states=Vn;Nt.options=Fn;Nt.className=xt;import{Fragment as Xn,jsx as uo}from"react/jsx-runtime";var fo="k-input-loading-icon",$n=[a.disabled,a.loading],J=e=>{let{disabled:t,loading:o}=e;return t||!o?uo(Xn,{}):uo("span",{className:i(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=[a.valid,a.invalid,a.disabled,a.loading],Jn={},F=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(L,{className:i(ho),icon:r})};F.states=qn;F.options=Jn;F.className=ho;import{Fragment as Zn,jsx as xo}from"react/jsx-runtime";var Yn="k-input-prefix",Qn={direction:"horizontal"},fe=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"},be=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"},Q=e=>{let{direction:t=oi.direction,...o}=e;return ni("span",{...o,className:i(Lo,e.className,{[`${Lo}-${t}`]:t})})};var Lt="button",vo=Lt;import{Fragment as Ao,jsx as he,jsxs as Io}from"react/jsx-runtime";var De="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]},vt={showArrow:!1,arrowIconName:"chevron-down"},N=e=>{let{as:t="button",size:o,rounded:s,fillMode:n,themeColor:r,showArrow:d=vt.showArrow,arrowIconName:c=vt.arrowIconName,variant:m,hover:f,focus:b,active:x,selected:v,disabled:M,togglable:K,ariaDisabled:g,icon:A,iconSize:S,text:H,iconClassName:me,className:Te,...Oe}=e,Re=A!=null,Ke=e.children!==void 0;return Io(t,{className:i(Te,De,oo(De,m),I(De,{size:o,rounded:s,fillMode:n,themeColor:r}),C(De,{hover:f,focus:b,active:x,disabled:M||g,selected:v}),{"k-icon-button":!H&&!Ke&&Re}),"aria-pressed":K?v?"true":"false":void 0,...Oe,"aria-disabled":g?"true":void 0,disabled:M||void 0,children:[typeof A=="string"&&A&&he(L,{className:i(me,"k-button-icon"),icon:A,size:S}),A&&typeof A!="string"&&he(Ao,{children:A}),H?Io(Ao,{children:[H&&he("span",{className:"k-button-text",children:H}),e.children]}):e.children&&he("span",{className:"k-button-text",children:e.children}),d&&he("span",{className:"k-menu-button-arrow k-button-arrow",children:he(L,{icon:c})})]})};N.states=ai;N.options=si;N.variants=ii;N.className=De;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 le=e=>ri(N,{children:"Button",...e});import{Fragment as go,jsx as W,jsxs as At}from"react/jsx-runtime";var li=E.states,ci=E.defaultOptions,di=E.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=[],xe=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 At(E,{...c,valid:o,invalid:s,loading:n,disabled:r,readonly:d,style:{width:300},children:[m&&At(go,{children:[W(fe,{children:W(L,{icon:"lock"})}),v&&W(Q,{})]}),W(V,{placeholder:"Placeholder",value:"Value"}),x&&W(F,{valid:o,invalid:s,loading:n,disabled:r}),W(J,{loading:n,disabled:r}),b&&W(U,{loading:n,disabled:r,readonly:d,value:"Value"}),f&&At(go,{children:[v&&W(Q,{}),W(be,{children:W(le,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};xe.options=di;xe.states=li;xe.variants=mi;xe.defaultOptions=ci;xe.modifiers=pi;xe.className=E.className;var It="popup",ko=It;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: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})})};Y.states=ui;Y.options=fi;Y.className=Co;Y.defaultOptions=gt;Y.moduleName=It;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:s,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return yo(Y,{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})})};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,...s}=e;return Li("div",{...s,className:i(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 Ai}from"react/jsx-runtime";var vi="k-actionsheet-footer",Ro={alignment:"stretched",orientation:"horizontal"},Ne=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 Et="searchbox",Ko=Et;import{jsx as ze,jsxs as ki}from"react/jsx-runtime";var _o="k-searchbox",Ii=[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]},yt={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:M=yt.showIcon,icon:K=yt.icon,"aria-label":g,...A}=e;return ki(E,{...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,_o),children:[M&&ze(L,{className:"k-input-icon",icon:K}),ze(V,{placeholder:o,value:t,"aria-label":g}),ze(J,{...e}),ze(F,{...e}),ze(U,{...e})]})};te.states=Ii;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=[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]},et={showClearButton:!0,showValidationIcon:!0,separators:!0},P=e=>{let{size:t,rounded:o,fillMode:s,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:M,valid:K,invalid:g,required:A,loading:S,disabled:H,readonly:me,id:Te,"aria-label":Oe,"aria-describedby":Re,...Ke}=e;return Tt(E,{...Ke,size:t,rounded:o,fillMode:s,hover:v,focus:M,valid:K,invalid:g,required:A,loading:S,disabled:H,readonly:me,className:i(e.className,wo),children:[c&&Tt(Po,{children:[oe(fe,{children:c}),n&&oe(Q,{})]}),oe(V,{id:Te,placeholder:x,value:b,type:f,disabled:H,"aria-label":Oe,"aria-describedby":Re,"aria-invalid":g?"true":void 0}),d&&oe(F,{valid:K,invalid:g,loading:S,disabled:H}),oe(J,{loading:S,disabled:H}),r&&oe(U,{loading:S,disabled:H,readonly:me,value:b}),m&&Tt(Po,{children:[n&&oe(Q,{}),oe(be,{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 Be=P;import{jsx as Ei}from"react/jsx-runtime";var Do=e=>Ei(Be,{...e});import{Fragment as Ac,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=[],Le=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(le,{...o,children:"Button"})}};Le.options=Ti;Le.states=Oi;Le.variants=Ki;Le.defaultOptions=Ri;Le.modifiers=_i;Le.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=[],ve=e=>{let{modifiers:t,...o}=e,s={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":s.prefix=t?.[n]?Rt(L,{icon:"lock"}):void 0;break;case"suffix":s.suffix=t?.[n]?Rt(le,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":s.showClearButton=t?.[n];break;default:break}}),Rt(Do,{value:"Value",style:{width:300},...o,...s})};ve.options=wi;ve.states=Hi;ve.variants=zi;ve.defaultOptions=Pi;ve.modifiers=Di;ve.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:s,actionsEnd:n,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:f,titleId:b,children:x,...v}=e;return Kt("div",{...v,className:i(e.className,Uo),children:[Kt("div",{className:"k-actionsheet-titlebar-group",children:[s&&ne("div",{className:"k-actionsheet-actions",children:s}),!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=[],Vi={},Fi={},Ae=e=>{let{adaptive:t,animated:o,children:s,header:n,footer:r,titleId:d,...c}=e,m=n?.type===G&&_t(G,{adaptive:t,titleId:d,...n?.props}),f=r?.type===Ne&&_t(Ne,{...r?.props});return Gi("div",{...c,className:i(e.className,Ht,{[`${Ht}-animated`]:o}),children:[m,_t("div",{className:"k-actionsheet-content",children:s}),f]})};Ae.states=Ui;Ae.options=Vi;Ae.className=Ht;Ae.defaultOptions=Fi;var Ue="action-sheet",tt=Ue;var Pt="overlay",Vo=Pt;import{jsx as Ji}from"react/jsx-runtime";var Fo="k-overlay",$i=[],Xi={},qi={},ie=e=>{let{...t}=e;return Ji("div",{...t,className:i(e.className,Fo),children:e.children})};ie.states=$i;ie.options=Xi;ie.className=Fo;ie.defaultOptions=qi;ie.moduleName=Pt;ie.folderName=Vo;import{jsx as ot,jsxs as Qi}from"react/jsx-runtime";var Go="k-actionsheet",Wi=[],Yi={},Ve={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},T=e=>{let{side:t=Ve.side,fullscreen:o=Ve.fullscreen,adaptive:s=Ve.adaptive,overlay:n=Ve.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:i(e.className,Go,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:r||ot(Ae,{header:c,footer:m,adaptive:s,titleId:x,...e,children:d})})})]})};T.states=Wi;T.options=Yi;T.className=Go;T.defaultOptions=Ve;T.moduleName=Ue;T.folderName=tt;T.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=Ue;Ie.folderName=tt;import{jsx as oa}from"react/jsx-runtime";var wt=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 Dt}from"react/jsx-runtime";var zt="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 Dt("span",{...m,className:i(e.className,zt,C(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}),s&&Fe("span",{className:"k-actionsheet-item-description",children:s})]})]})}),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 O,jsxs as Bt}from"react/jsx-runtime";var aa=T.options,sa=T.states,qo={...T.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=Bt(wt,{children:[O(ae,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),O(ae,{text:"Add to Favorites",iconName:"heart"}),O(ae,{text:"Upload New",iconName:"upload",disabled:!0}),O("hr",{className:"k-hr"}),O(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"?O(T,{...s,adaptive:!0,fullscreen:n.fullScreen,header:O(G,{actionsStart:n.actionsStart?O(N,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?O(N,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?Bt(Ne,{alignment:"stretched",children:[O(N,{text:"Cancel",size:"large",themeColor:"base"}),O(N,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):O(T,{...s,fullscreen:n.fullScreen,header:O(G,{actionsStart:n.actionsStart?O(N,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?O(N,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Bt(Ne,{alignment:"stretched",children:[O(N,{text:"Apply",themeColor:"primary"}),O(N,{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=T.className;import Ft from"react";import{jsx as Jo}from"react/jsx-runtime";var ca="k-list-group-sticky-header",Ut=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",Vt=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 ce="list",ke=ce;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={},R=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],M=v?.props?.children?Ft.Children.count(v.props.children):Ft.Children.count(s);return Yo("div",{...b,className:i(e.className,Gt,I(Gt,{size:t}),{"k-virtual-list":o}),children:[d,r,c,n&&Wo(Ut,{children:n}),s||(m!==void 0?m:Wo(Vt,{live:!0,children:"No data found."})),f&&s&&Yo(Vt,{className:"k-sr-only",live:!0,children:[M," items found."]})]})};R.states=ma;R.options=ua;R.className=Gt;R.defaultOptions=fa;R.moduleName=ce;R.folderName=ke;R.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={},Se=e=>{let{...t}=e;return Na("div",{...t,className:i(e.className,Qo),children:e.children})};Se.states=ba;Se.options=ha;Se.className=Qo;Se.defaultOptions=xa;Se.moduleName=ce;Se.folderName=ke;var de="checkbox",Ce=de;import{jsx as Zo}from"react/jsx-runtime";var nt="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:x,wrapperRole:v,...M}=e;return Zo("span",{className:"k-checkbox-wrap",role:v,children:Zo("input",{...M,id:t,type:"checkbox",defaultChecked:o,required:f,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:i(e.className,nt,I(nt,{size:b,rounded:x}),C(nt,{hover:n,focus:r,disabled:d,invalid:c,valid:m,indeterminate:s,checked:o}))})})};z.states=La;z.options=va;z.className=nt;z.defaultOptions=Aa;z.moduleName=de;z.folderName=Ce;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",Ia=[],ga={},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=Ia;w.options=ga;w.className=jo;w.defaultOptions=en;w.moduleName=de;w.folderName=Ce;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=de;D.folderName=Ce;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 Im,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 Vm}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=[],Ee=e=>{let{variant:t,...o}=e;return t==="horizontal"?nn(w,{layout:"horizontal",...o,children:[B(D,{children:B(j,{id:_("cb"),defaultChecked:!0,children:"Label"})}),B(D,{children:B(j,{id:_("cb"),children:"Label"})}),B(D,{children:B(j,{id:_("cb"),children:"Label"})})]}):nn(w,{...o,children:[B(D,{children:B(j,{id:_("cb"),defaultChecked:!0,children:"Label"})}),B(D,{children:B(j,{id:_("cb"),children:"Label"})}),B(D,{children:B(j,{id:_("cb"),children:"Label"})})]})};Ee.options=Oa;Ee.states=Ra;Ee.variants=_a;Ee.defaultOptions=Ka;Ee.modifiers=Ha;Ee.className=w.className;import{jsx as Ua}from"react/jsx-runtime";var Pa=$.options,wa=$.states,Da=$.defaultOptions,za=[],Ba=[],ye=e=>Ua(j,{id:_("checkbox"),...e,defaultChecked:!0,children:"Label"});ye.options=Pa;ye.states=wa;ye.variants=za;ye.defaultOptions=Da;ye.modifiers=Ba;ye.className=$.className;import{jsx as pe,jsxs as $a}from"react/jsx-runtime";var $t="k-list-item",Va=[a.hover,a.focus,a.selected,a.disabled],Fa={},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:x,actions:v,description:M,id:K,...g}=e,A=t||e.children;return $a("li",{...g,id:K,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":$t,C($t,{hover:m,focus:f,disabled:x,selected:b})),children:[d&&pe(z,{checked:c}),n&&pe("span",{className:"k-list-item-icon-wrapper",children:pe(L,{icon:n,className:i("k-list-item-icon",r)})}),pe("span",{className:"k-list-item-text",children:A}),v&&pe("div",{className:"k-list-item-actions",children:v}),M&&pe("span",{className:"k-list-item-description",children:M}),o&&o!==""&&pe("div",{className:"k-list-item-group-label",children:o})]})};k.states=Va;k.options=Fa;k.className=$t;k.defaultOptions=Ga;k.moduleName=ce;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 qa}from"react/jsx-runtime";var Xa="k-list-ul",Ge=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})};Ge.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":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:Xt(Ge,{role:"listbox",id:r,"aria-label":s,"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=[a.hover,a.focus,a.selected],Qa={},Za={},at=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:s,indeterminate:n,hover:r,focus:d,selected:c,...m}=e;return qt("div",{...m,className:i(it,e.className),children:ja("div",{className:i(`${it}-item`,C(`${it}-item`,{hover:r,focus:d,selected:c})),children:[o&&qt(z,{checked:s,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:i(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=[a.hover,a.focus,a.selected,a.disabled],ns={},is={},st=e=>{let{text:t,hover:o,focus:s,selected:n,disabled:r,...d}=e;return as("div",{...d,className:i(Yt,C(Yt,{hover:o,focus:s,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=[a.hover,a.focus,a.selected,a.disabled],rs={},ls={},se=e=>{let{text:t,hover:o,focus:s,selected:n,disabled:r,...d}=e;return cs("div",{...d,className:i(Qt,C(Qt,{hover:o,focus:s,selected:n,disabled:r})),children:t})};se.states=ss;se.options=rs;se.className=Qt;se.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 If,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 Zt="autocomplete",an=Zt;import{Fragment as jt,jsx as y,jsxs as $e}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},re=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:x,invalid:v,required:M,loading:K,disabled:g,popup:A,opened:S,readonly:H,adaptive:me,adaptiveSettings:Te,adaptiveTitle:Oe,adaptiveSubtitle:Re,adaptiveCustomValue:Ke,id:eo,autocomplete:cn,activeDescendant:to,"aria-label":dn,...pn}=e,mn=eo?`${eo}-listbox`:void 0;return $e(jt,{children:[$e(E,{...pn,size:t,rounded:o,fillMode:s,hover:f,focus:b,valid:x,invalid:v,required:M,loading:K,disabled:g,readonly:H,className:i(e.className,sn),children:[r&&$e(jt,{children:[y(fe,{children:r}),n&&y(Q,{})]}),y(V,{placeholder:m,value:c,role:"combobox","aria-haspopup":"listbox","aria-expanded":S?"true":"false","aria-controls":S?mn:void 0,"aria-activedescendant":S&&to?to:void 0,"aria-autocomplete":cn,"aria-invalid":v?"true":void 0,"aria-busy":K?"true":void 0,"aria-label":dn,disabled:g,readOnly:H}),y(F,{valid:x,invalid:v,loading:K,disabled:g}),y(J,{loading:K,disabled:g}),y(U,{loading:K,disabled:g,readonly:H,value:c}),d&&$e(jt,{children:[n&&y(Q,{}),y(be,{children:d})]})]}),S&&A&&y(Z,{className:"k-list-container k-autocomplete-popup",containerRole:"region",containerAriaLabel:"Autocomplete suggestions",children:A}),me&&y(T,{adaptive:!0,...Te,header:y(G,{actionsEnd:y(N,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),input:!0,inputValue:c,inputPlaceholder:m,title:Oe,subtitle:Re}),children:y("div",{className:"k-list-container",children:y(R,{customValue:Ke?y(se,{text:`Use "${c}"`}):void 0,size:"large",children:$e(X,{"aria-label":"Options",children:[y(k,{text:"List item"}),y(k,{text:"List item"}),y(k,{text:"List item"})]})})})})]})};re.states=ds;re.options=ps;re.className=sn;re.defaultOptions=rn;re.moduleName=Zt;re.folderName=an;re.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=re;import{jsx as Me,jsxs as ms}from"react/jsx-runtime";var ub=({value:e="Custom value",...t})=>Me(ln,{value:e,id:_("ac"),"aria-label":"Search options",opened:!0,popup:Me(R,{customValue:Me(se,{text:`Use "${e}"`}),children:ms(X,{"aria-label":"Options",children:[Me(k,{children:"List item"}),Me(k,{children:"List item"}),Me(k,{children:"List item"})]})}),...t});export{ub as AutocompleteCustomValue};