UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 43.2 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 I=(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"}),C=(e,t)=>{let{valid:o,invalid:i,hover:n,focus:r,checked:d,active:c,selected:m,disabled:f,indeterminate:b,loading:N,empty:v,readonly:E,highlighted:T,...k}=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":N,"k-empty":v,"k-readonly":E,"k-highlighted":T},Object.keys(k).reduce((g,A)=>(A.startsWith("k-")?g[A]=k[A]:g[`k-${A}`]=k[A],g),{}))};function to(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"},$={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 D(e){return rt[e]=(rt[e]||0)+1,`k-${e}-${rt[e]}`}var _e="input",$e=_e;import{jsx as bn}from"react/jsx-runtime";var qe="k-input",mn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],un={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},fn={},y=e=>{let{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:f,fillMode:b,...N}=e;return bn("span",{...N,className:a(e.className,qe,I(qe,{size:m,rounded:f,fillMode:b}),C(qe,{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c}))})};y.states=mn;y.options=un;y.className=qe;y.defaultOptions=fn;y.moduleName=_e;y.folderName=$e;import{jsx as Ln}from"react/jsx-runtime";var Je="k-picker",hn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],xn={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Nn={},ue=e=>{let{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c,size:m,rounded:f,fillMode:b,...N}=e;return Ln("span",{...N,className:a(e.className,Je,I(Je,{size:m,rounded:f,fillMode:b}),C(Je,{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c})),children:e.children})};ue.states=hn;ue.options=xn;ue.className=Je;ue.defaultOptions=Nn;ue.moduleName=_e;ue.folderName=$e;import{Fragment as In,jsx as oo}from"react/jsx-runtime";var lt="k-font-icon",vn=[],kn={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:i,rotate:n,flip:r,...d}=e;return i?oo("span",{...d,className:a(e.className,lt,I(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"}):oo(In,{})};He.states=vn;He.options=kn;He.className=lt;He.defaultOptions=gn;var no=He;import{Fragment as Cn,jsx as We}from"react/jsx-runtime";var ct="k-svg-icon",Sn=[],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],variant:[$.outline,$.solid,$.duotone]},dt={viewBox:"0 0 24 24",variant:$.outline},Pe=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(Cn,{});if(c==="none")return We("span",{...m,className:a(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:a(e.className,ct,I("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})})};Pe.states=Sn;Pe.options=An;Pe.className=ct;Pe.defaultOptions=dt;var pt=Pe;import*as mt from"@progress/kendo-svg-icons";var io="icon",ao="icons";import{useContext as En}from"react";import{createContext as yn}from"react";var so=yn({iconsType:"svg"});import{Fragment as ro,jsx as we}from"react/jsx-runtime";var Ye="k-icon",Mn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),On=[],Tn={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[$.outline,$.solid,$.duotone]},Qe={viewBox:"0 0 24 24",type:"svg",variant:$.outline},L=e=>{let{iconsType:t}=En(so),{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 we(ro,{});if((t||r)==="svg"){if(n==="none")return we(pt,{...b,className:a(e.className,Ye),icon:n,size:o,variant:f});let v=mt[n]?n:Mn(`${n}-icon`);return mt[v]?we(pt,{...b,className:a(e.className,Ye),icon:mt[v],size:o,themeColor:i,rotate:d,flip:c,viewBox:m,variant:f}):we(ro,{})}return we(no,{...b,className:a(e.className,Ye),icon:n,size:o,themeColor:i,rotate:d,flip:c})};L.states=On;L.options=Tn;L.defaultOptions=Qe;L.className=Ye;L.moduleName=io;L.folderName=ao;L.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};import{Fragment as _n,jsx as ut}from"react/jsx-runtime";var lo="k-clear-value",Rn=[s.disabled,s.loading,s.readonly],Kn={},U=e=>{let{disabled:t,loading:o,readonly:i,value:n}=e;return t||i||o||!n?ut(_n,{}):ut("span",{className:a(e.className,lo),children:ut(L,{icon:"x"})})};U.states=Rn;U.options=Kn;U.className=lo;import{jsx as wn}from"react/jsx-runtime";var ft="k-input-inner",Hn=[],Pn={},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 wn("input",{...c,type:o,className:a(e.className,ft,I(ft,e)),placeholder:i,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};F.states=Hn;F.options=Pn;F.className=ft;import{jsx as co,jsxs as Bn}from"react/jsx-runtime";var bt="k-input-inner",Dn=[],zn={},ht=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:n,valueIconName:r,...d}=e;return Bn("span",{...d,className:a(e.className,bt,I(bt,e)),children:[n,!n&&r&&co(L,{className:"k-input-value-icon",icon:r}),i&&!t&&o,i&&t&&co("span",{className:"k-input-value-text",children:t})]})};ht.states=Dn;ht.options=zn;ht.className=bt;import{jsx as Vn}from"react/jsx-runtime";var xt="k-input-inner",Un=[],Fn={},po={value:"",placeholder:""},Nt=e=>{let{value:t=po.value,placeholder:o=po.placeholder,rows:i,disabled:n,...r}=e;return Vn("textarea",{...r,className:a(e.className,xt,I(xt,e)),placeholder:o,rows:i,defaultValue:t,disabled:n||void 0})};Nt.states=Un;Nt.options=Fn;Nt.className=xt;import{Fragment as Gn,jsx as mo}from"react/jsx-runtime";var uo="k-input-loading-icon",Xn=[s.disabled,s.loading],q=e=>{let{disabled:t,loading:o}=e;return t||!o?mo(Gn,{}):mo("span",{className:a(e.className,uo,"k-icon k-i-loading")})};q.states=Xn;q.className=uo;import{Fragment as Jn,jsx as fo}from"react/jsx-runtime";var bo="k-input-validation-icon",$n=[s.valid,s.invalid,s.disabled,s.loading],qn={},V=e=>{let{valid:t,invalid:o,disabled:i,loading:n}=e,r=o?"warning-circle":"check-circle";return i||n||!!!(t||o)?fo(Jn,{}):fo(L,{className:a(bo),icon:r})};V.states=$n;V.options=qn;V.className=bo;import{Fragment as Qn,jsx as ho}from"react/jsx-runtime";var Wn="k-input-prefix",Yn={direction:"horizontal"},fe=e=>{let{direction:t=Yn.direction,...o}=e;return e.children?ho("span",{...o,className:a(Wn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ho(Qn,{})};import{Fragment as ei,jsx as xo}from"react/jsx-runtime";var Zn="k-input-suffix",jn={direction:"horizontal"},be=e=>{let{direction:t=jn.direction,...o}=e;return e.children?xo("span",{...o,className:a(Zn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):xo(ei,{})};import{jsx as yr}from"react/jsx-runtime";import{jsx as Tr}from"react/jsx-runtime";import{jsx as oi}from"react/jsx-runtime";var No="k-input-separator",ti={direction:"vertical"},Y=e=>{let{direction:t=ti.direction,...o}=e;return oi("span",{...o,className:a(No,e.className,{[`${No}-${t}`]:t})})};var Lt="button",Lo=Lt;import{Fragment as vo,jsx as he,jsxs as ko}from"react/jsx-runtime";var De="k-button",ni=["icon-button"],ii=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],ai={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},vt={showArrow:!1,arrowIconName:"chevron-down"},x=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:N,selected:v,disabled:E,togglable:T,ariaDisabled:k,icon:g,iconSize:A,text:K,iconClassName:pe,className:Oe,...me}=e,Te=g!=null,Re=e.children!==void 0;return ko(t,{className:a(Oe,De,to(De,m),I(De,{size:o,rounded:i,fillMode:n,themeColor:r}),C(De,{hover:f,focus:b,active:N,disabled:E||k,selected:v}),{"k-icon-button":!K&&!Re&&Te}),"aria-pressed":T?v?"true":"false":void 0,...me,"aria-disabled":k?"true":void 0,disabled:E||void 0,children:[typeof g=="string"&&g&&he(L,{className:a(pe,"k-button-icon"),icon:g,size:A}),g&&typeof g!="string"&&he(vo,{children:g}),K?ko(vo,{children:[K&&he("span",{className:"k-button-text",children:K}),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})})]})};x.states=ii;x.options=ai;x.variants=ni;x.className=De;x.defaultOptions=vt;x.moduleName=Lt;x.folderName=Lo;x.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as si}from"react/jsx-runtime";var re=e=>si(x,{children:"Button",...e});import{Fragment as go,jsx as J,jsxs as kt}from"react/jsx-runtime";var ri=y.states,li=y.defaultOptions,ci=y.options,di=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],pi=[],xe=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"],N=t?.["validation-icon"],v=t?.separators;return kt(y,{...c,valid:o,invalid:i,loading:n,disabled:r,readonly:d,style:{width:300},children:[m&&kt(go,{children:[J(fe,{children:J(L,{icon:"lock"})}),v&&J(Y,{})]}),J(F,{placeholder:"Placeholder",value:"Value"}),N&&J(V,{valid:o,invalid:i,loading:n,disabled:r}),J(q,{loading:n,disabled:r}),b&&J(U,{loading:n,disabled:r,readonly:d,value:"Value"}),f&&kt(go,{children:[v&&J(Y,{}),J(be,{children:J(re,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};xe.options=ci;xe.states=ri;xe.variants=pi;xe.defaultOptions=li;xe.modifiers=di;xe.className=y.className;import{jsx as mi}from"react/jsx-runtime";var Io=e=>mi(x,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as ui}from"react/jsx-runtime";var So=e=>ui(x,{icon:"folder",children:"Button",...e});import{jsx as gt}from"react/jsx-runtime";var fi=x.options,bi=x.states,hi={...x.defaultOptions,variant:"text"},xi=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ni=[],Ne=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return gt(Io,{...o,icon:"star"});case"icon-and-text":return gt(So,{...o,icon:"star",children:"Button"});default:return gt(re,{...o,children:"Button"})}};Ne.options=fi;Ne.states=bi;Ne.variants=xi;Ne.defaultOptions=hi;Ne.modifiers=Ni;Ne.className=x.className;var It="popup",Ao=It;import{jsx as Co}from"react/jsx-runtime";var yo="k-animation-container",Li=[],vi={},St={positionMode:"absolute",shown:!0},W=e=>{let{positionMode:t=St.positionMode,shown:o=St.shown,animationStyle:i,offset:n,...r}=e;return Co("div",{...r,style:{...n,...e.style},className:a(e.className,yo,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Co("div",{className:"k-child-animation-container",style:i,children:e.children})})};W.states=Li;W.options=vi;W.className=yo;W.defaultOptions=St;W.moduleName=It;W.folderName=Ao;var At="popup",Eo=At;import{jsx as Mo}from"react/jsx-runtime";var Oo="k-popup",ki=[],gi={},To={positionMode:"absolute"},Q=e=>{let{offset:t,positionMode:o=To.positionMode,animationStyle:i,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return Mo(W,{positionMode:o,offset:t,animationStyle:i,className:n,role:r,"aria-label":d,children:Mo("div",{...c,className:a(e.className,Oo),children:e.children})})};Q.states=ki;Q.options=gi;Q.className=Oo;Q.defaultOptions=To;Q.moduleName=At;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 Ct="action-buttons",Ro=Ct;import{jsx as Ai}from"react/jsx-runtime";var je="k-actions",Ii=[],Si={},yt={alignment:"start",orientation:"horizontal"},ee=e=>{let{alignment:t=yt.alignment,orientation:o=yt.orientation,...i}=e;return Ai("div",{...i,className:a(je,{[`${je}-${t}`]:t,[`${je}-${o}`]:o},e.className),children:e.children})};ee.states=Ii;ee.options=Si;ee.className=je;ee.defaultOptions=yt;ee.moduleName=Ct;ee.folderName=Ro;import{jsx as yi}from"react/jsx-runtime";var Ci="k-actionsheet-footer",Ko={alignment:"stretched",orientation:"horizontal"},Le=e=>{let{alignment:t=Ko.alignment,orientation:o=Ko.orientation,template:i,as:n=i?"div":ee,...r}=e;return yi(n,{...r,...!i&&{alignment:t,orientation:o},className:a(e.className,Ci),children:e.children})};var Et="searchbox",_o=Et;import{jsx as ze,jsxs as Oi}from"react/jsx-runtime";var Ho="k-searchbox",Ei=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Mi={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]},Mt={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:N,disabled:v,showIcon:E=Mt.showIcon,icon:T=Mt.icon,"aria-label":k,...g}=e;return Oi(y,{...g,size:i,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:f,required:b,loading:N,disabled:v,className:a(e.className,Ho),children:[E&&ze(L,{className:"k-input-icon",icon:T}),ze(F,{placeholder:o,value:t,"aria-label":k}),ze(q,{...e}),ze(V,{...e}),ze(U,{...e})]})};te.states=Ei;te.options=Mi;te.className=Ho;te.defaultOptions=Mt;te.moduleName=Et;te.folderName=_o;import{jsx as kc}from"react/jsx-runtime";var Ot="textbox",Po=Ot;import{Fragment as wo,jsx as oe,jsxs as Tt}from"react/jsx-runtime";var Do="k-textbox",Ti=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ri={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},_=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:N,hover:v,focus:E,valid:T,invalid:k,required:g,loading:A,disabled:K,readonly:pe,id:Oe,"aria-label":me,"aria-describedby":Te,...Re}=e;return Tt(y,{...Re,size:t,rounded:o,fillMode:i,hover:v,focus:E,valid:T,invalid:k,required:g,loading:A,disabled:K,readonly:pe,className:a(e.className,Do),children:[c&&Tt(wo,{children:[oe(fe,{children:c}),n&&oe(Y,{})]}),oe(F,{id:Oe,placeholder:N,value:b,type:f,disabled:K,"aria-label":me,"aria-describedby":Te,"aria-invalid":k?"true":void 0}),d&&oe(V,{valid:T,invalid:k,loading:A,disabled:K}),oe(q,{loading:A,disabled:K}),r&&oe(U,{loading:A,disabled:K,readonly:pe,value:b}),m&&Tt(wo,{children:[n&&oe(Y,{}),oe(be,{children:m})]})]})};_.states=Ti;_.options=Ri;_.className=Do;_.defaultOptions=et;_.moduleName=Ot;_.folderName=Po;_.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=_;import{jsx as Ki}from"react/jsx-runtime";var zo=e=>Ki(Be,{...e});import{Fragment as zc,jsx as Dc}from"react/jsx-runtime";import{Fragment as Gc,jsx as Xc}from"react/jsx-runtime";import{jsx as Wc}from"react/jsx-runtime";import{jsx as Rt}from"react/jsx-runtime";var _i=_.states,Hi=_.defaultOptions,Pi=_.options,wi=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Di=[],ve=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(zo,{value:"Value",style:{width:300},...o,...i})};ve.options=Pi;ve.states=_i;ve.variants=Di;ve.defaultOptions=Hi;ve.modifiers=wi;ve.className=_.className;import{jsx as ne,jsxs as Kt}from"react/jsx-runtime";var Bo="k-actionsheet-titlebar",zi={},X=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:n,filter:r,input:d,inputValue:c,inputPlaceholder:m,adaptive:f,titleId:b,children:N,...v}=e;return Kt("div",{...v,className:a(e.className,Bo),children:[Kt("div",{className:"k-actionsheet-titlebar-group",children:[i&&ne("div",{className:"k-actionsheet-actions",children:i}),!N&&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})]}),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(_,{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"})})]})};X.className=Bo;X.defaultOptions=zi;import{jsx as _t,jsxs as Vi}from"react/jsx-runtime";var Ht="k-actionsheet-view",Bi=[],Ui={},Fi={},ke=e=>{let{adaptive:t,animated:o,children:i,header:n,footer:r,titleId:d,...c}=e,m=n?.type===X&&_t(X,{adaptive:t,titleId:d,...n?.props}),f=r?.type===Le&&_t(Le,{...r?.props});return Vi("div",{...c,className:a(e.className,Ht,{[`${Ht}-animated`]:o}),children:[m,_t("div",{className:"k-actionsheet-content",children:i}),f]})};ke.states=Bi;ke.options=Ui;ke.className=Ht;ke.defaultOptions=Fi;var Ue="action-sheet",tt=Ue;var Pt="overlay",Uo=Pt;import{jsx as qi}from"react/jsx-runtime";var Fo="k-overlay",Xi=[],Gi={},$i={},ie=e=>{let{...t}=e;return qi("div",{...t,className:a(e.className,Fo),children:e.children})};ie.states=Xi;ie.options=Gi;ie.className=Fo;ie.defaultOptions=$i;ie.moduleName=Pt;ie.folderName=Uo;import{jsx as ot,jsxs as Yi}from"react/jsx-runtime";var Vo="k-actionsheet",Ji=[],Wi={},Fe={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},M=e=>{let{side:t=Fe.side,fullscreen:o=Fe.fullscreen,adaptive:i=Fe.adaptive,overlay:n=Fe.overlay,template:r,children:d,header:c,footer:m,id:f,...b}=e,N=f&&!r&&c?`${f}-title`:void 0;return Yi("div",{className:"k-actionsheet-container",children:[n&&ot(ie,{}),ot(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:ot("div",{...b,id:f,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":N,className:a(e.className,Vo,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:r||ot(ke,{header:c,footer:m,adaptive:i,titleId:N,...e,children:d})})})]})};M.states=Ji;M.options=Wi;M.className=Vo;M.defaultOptions=Fe;M.moduleName=Ue;M.folderName=tt;M.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};import{jsx as ea}from"react/jsx-runtime";var Xo="k-actionsheet-container",Qi=[],Zi={},ji={},ge=e=>{let{children:t,...o}=e;return ea("div",{...o,className:Xo,children:t})};ge.states=Qi;ge.options=Zi;ge.className=Xo;ge.defaultOptions=ji;ge.moduleName=Ue;ge.folderName=tt;import{jsx as ta}from"react/jsx-runtime";var wt=e=>{let{...t}=e;return ta("div",{...t,className:a(e.className,"k-list-ul"),children:e.children})};import{Fragment as na,jsx as Ve,jsxs as Dt}from"react/jsx-runtime";var zt="k-actionsheet-item",oa=[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,C(zt,{hover:n,focus:r,selected:d,disabled:c})),children:[!e.children&&Ve(na,{children:Dt("span",{className:"k-actionsheet-action",children:[t&&Ve("span",{className:"k-icon-wrap",children:Ve(L,{className:"k-actionsheet-item-icon",icon:t})}),Dt("span",{className:"k-actionsheet-item-text",children:[o&&Ve("span",{className:"k-actionsheet-item-title",children:o}),i&&Ve("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};ae.states=oa;ae.className=zt;import{jsx as Jd,jsxs as Wd}from"react/jsx-runtime";import{jsx as jd}from"react/jsx-runtime";import{jsx as np}from"react/jsx-runtime";import{jsx as rp}from"react/jsx-runtime";import{jsx as O,jsxs as Bt}from"react/jsx-runtime";var ia=M.options,aa=M.states,$o={...M.defaultOptions,variant:"normal"},sa=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],ra=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Ie=e=>{let{variant:t,modifiers:o,...i}={...$o,...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(M,{...i,adaptive:!0,fullscreen:n.fullScreen,header:O(X,{actionsStart:n.actionsStart?O(x,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?O(x,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?Bt(Le,{alignment:"stretched",children:[O(x,{text:"Cancel",size:"large",themeColor:"base"}),O(x,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):O(M,{...i,fullscreen:n.fullScreen,header:O(X,{actionsStart:n.actionsStart?O(x,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?O(x,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Bt(Le,{alignment:"stretched",children:[O(x,{text:"Apply",themeColor:"primary"}),O(x,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};Ie.options=ia;Ie.states=aa;Ie.variants=sa;Ie.defaultOptions=$o;Ie.modifiers=ra;Ie.className=M.className;import Vt from"react";import{jsx as qo}from"react/jsx-runtime";var la="k-list-group-sticky-header",Ut=e=>qo("div",{className:a(la,e.className),children:qo("div",{className:"k-list-header-text",children:e.children})});import{jsx as da}from"react/jsx-runtime";var ca="k-no-data",Ft=e=>{let{live:t,...o}=e;return da("span",{...o,className:a(ca,e.className),"aria-live":t?"polite":void 0,children:e.children})};var le="list",Se=le;import{jsx as Jo,jsxs as Wo}from"react/jsx-runtime";var Xt="k-list",pa=[],ma={size:[l.undefined,l.small,l.medium,l.large]},ua={},H=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],E=v?.props?.children?Vt.Children.count(v.props.children):Vt.Children.count(i);return Wo("div",{...b,className:a(e.className,Xt,I(Xt,{size:t}),{"k-virtual-list":o}),children:[d,r,c,n&&Jo(Ut,{children:n}),i||(m!==void 0?m:Jo(Ft,{live:!0,children:"No data found."})),f&&i&&Wo(Ft,{className:"k-sr-only",live:!0,children:[E," items found."]})]})};H.states=pa;H.options=ma;H.className=Xt;H.defaultOptions=ua;H.moduleName=le;H.folderName=Se;H.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};import{jsx as xa}from"react/jsx-runtime";var Yo="k-list-container",fa=[],ba={},ha={},Ae=e=>{let{...t}=e;return xa("div",{...t,className:a(e.className,Yo),children:e.children})};Ae.states=fa;Ae.options=ba;Ae.className=Yo;Ae.defaultOptions=ha;Ae.moduleName=le;Ae.folderName=Se;var ce="checkbox",Ce=ce;import{jsx as Qo}from"react/jsx-runtime";var nt="k-checkbox",Na=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],La={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},va={},z=e=>{let{id:t,checked:o,indeterminate:i,hover:n,focus:r,disabled:d,invalid:c,valid:m,required:f,size:b,rounded:N,wrapperRole:v,...E}=e;return Qo("span",{className:"k-checkbox-wrap",role:v,children:Qo("input",{...E,id:t,type:"checkbox",defaultChecked:o,required:f,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:a(e.className,nt,I(nt,{size:b,rounded:N}),C(nt,{hover:n,focus:r,disabled:d,invalid:c,valid:m,indeterminate:i,checked:o}))})})};z.states=Na;z.options=La;z.className=nt;z.defaultOptions=va;z.moduleName=ce;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 G=z;import{jsx as Ia}from"react/jsx-runtime";var Zo="k-checkbox-list",ka=[],ga={},jo={layout:"vertical"},P=e=>{let{layout:t=jo.layout,...o}=e;return Ia("ul",{...o,className:a(e.className,Zo,{[`k-list-${t}`]:t}),children:e.children})};P.states=ka;P.options=ga;P.className=Zo;P.defaultOptions=jo;P.moduleName=ce;P.folderName=Ce;import{jsx as ya}from"react/jsx-runtime";var en="k-checkbox-list-item",Sa=[],Aa={},Ca={},w=e=>{let{...t}=e;return ya("li",{...t,className:a(e.className,en),children:e.children})};w.states=Sa;w.options=Aa;w.className=en;w.defaultOptions=Ca;w.moduleName=ce;w.folderName=Ce;import{Fragment as Ea,jsx as tn,jsxs as Ma}from"react/jsx-runtime";var Z=({children:e="Label",id:t="cb-label-after",...o})=>Ma(Ea,{children:[tn(G,{id:t,...o}),tn("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as hm,jsx as bm,jsxs as xm}from"react/jsx-runtime";import{Fragment as gm,jsx as km,jsxs as Im}from"react/jsx-runtime";import{Fragment as Em,jsx as ym,jsxs as Mm}from"react/jsx-runtime";import{jsx as Km}from"react/jsx-runtime";import{jsx as wm}from"react/jsx-runtime";import{jsx as Um}from"react/jsx-runtime";import{jsx as B,jsxs as on}from"react/jsx-runtime";var Oa=P.options,Ta=P.states,Ra={...P.defaultOptions,variant:"vertical"},Ka=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],_a=[],ye=e=>{let{variant:t,...o}=e;return t==="horizontal"?on(P,{layout:"horizontal",...o,children:[B(w,{children:B(Z,{id:D("cb"),defaultChecked:!0,children:"Label"})}),B(w,{children:B(Z,{id:D("cb"),children:"Label"})}),B(w,{children:B(Z,{id:D("cb"),children:"Label"})})]}):on(P,{...o,children:[B(w,{children:B(Z,{id:D("cb"),defaultChecked:!0,children:"Label"})}),B(w,{children:B(Z,{id:D("cb"),children:"Label"})}),B(w,{children:B(Z,{id:D("cb"),children:"Label"})})]})};ye.options=Oa;ye.states=Ta;ye.variants=Ka;ye.defaultOptions=Ra;ye.modifiers=_a;ye.className=P.className;import{jsx as Ba}from"react/jsx-runtime";var Ha=G.options,Pa=G.states,wa=G.defaultOptions,Da=[],za=[],Ee=e=>Ba(Z,{id:D("checkbox"),...e,defaultChecked:!0,children:"Label"});Ee.options=Ha;Ee.states=Pa;Ee.variants=Da;Ee.defaultOptions=wa;Ee.modifiers=za;Ee.className=G.className;import{jsx as de,jsxs as Xa}from"react/jsx-runtime";var Gt="k-list-item",Ua=[s.hover,s.focus,s.selected,s.disabled],Fa={},Va={},R=e=>{let{text:t,groupLabel:o,group:i,iconName:n,iconClassName:r,showCheckbox:d,checked:c,hover:m,focus:f,selected:b,disabled:N,actions:v,description:E,id:T,...k}=e,g=t||e.children;return Xa("li",{...k,id:T,role:i?"presentation":"option",tabIndex:i?void 0:f?0:-1,"aria-selected":!i&&b?"true":i?void 0:"false","aria-disabled":!i&&N?"true":void 0,className:a(e.className,i?"k-list-group-item":Gt,C(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(L,{icon:n,className:a("k-list-item-icon",r)})}),de("span",{className:"k-list-item-text",children:g}),v&&de("div",{className:"k-list-item-actions",children:v}),E&&de("span",{className:"k-list-item-description",children:E}),o&&o!==""&&de("div",{className:"k-list-item-group-label",children:o})]})};R.states=Ua;R.options=Fa;R.className=Gt;R.defaultOptions=Va;R.moduleName=le;R.folderName=Se;R.ariaSpec={selector:".k-list-item",rules:[{selector:".k-list-item",attribute:"role=option",usage:"Each list item is an option in the listbox."},{selector:".k-list-item",attribute:"id",usage:"ID for aria-activedescendant reference."},{selector:".k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state of the option."},{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-item-icon",attribute:"aria-hidden=true",usage:"Decorative icons are hidden from assistive technology."}]};import{jsx as $a}from"react/jsx-runtime";var Ga="k-list-ul",Xe=e=>{let{children:t,role:o,id:i,...n}=e;return $a("ul",{...n,id:i,role:o,className:a(Ga,e.className),children:t})};Xe.ariaSpec={selector:".k-list-ul",rules:[{selector:'.k-list-ul[role="listbox"]',attribute:"role=listbox",usage:"For ungrouped lists, the UL has the listbox role."},{selector:'.k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."},{selector:'.k-list-ul[role="group"]',attribute:"role=group",usage:"For grouped sublists under a group header."},{selector:'.k-list-ul[role="group"]',attribute:"aria-labelledby (when grouped)",usage:"References the group header ID."}]};import{jsx as $t,jsxs as Ja}from"react/jsx-runtime";var qa="k-list-content",j=e=>{let{virtualization:t,grouping:o,"aria-label":i,"aria-labelledby":n,listboxId:r,...d}=e;return Ja("div",{...d,className:a(qa,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:$t(Xe,{role:"listbox",id:r,"aria-label":i,"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 qt,jsxs as Za}from"react/jsx-runtime";var it="k-list-sticky-header",Wa=[s.hover,s.focus,s.selected],Ya={},Qa={},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:Za("div",{className:a(`${it}-item`,C(`${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=Wa;at.options=Ya;at.className=it;at.defaultOptions=Qa;import{Fragment as Hu,jsx as _u,jsxs as Pu}from"react/jsx-runtime";import{jsx as Jt,jsxs as es}from"react/jsx-runtime";var ja="k-list-group-item",Wt=e=>{let{groupIconName:t,...o}=e;return es("li",{...o,role:"presentation",className:a(ja,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 is}from"react/jsx-runtime";var Yt="k-list-optionlabel",ts=[s.hover,s.focus,s.selected,s.disabled],os={},ns={},st=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:r,...d}=e;return is("div",{...d,className:a(Yt,C(Yt,{hover:o,focus:i,selected:n,disabled:r})),children:t})};st.states=ts;st.options=os;st.className=Yt;st.defaultOptions=ns;import{jsx as ls}from"react/jsx-runtime";var Qt="k-list-custom-value",as=[s.hover,s.focus,s.selected,s.disabled],ss={},rs={},Me=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:r,...d}=e;return ls("div",{...d,className:a(Qt,C(Qt,{hover:o,focus:i,selected:n,disabled:r})),children:t})};Me.states=as;Me.options=ss;Me.className=Qt;Me.defaultOptions=rs;import{Fragment as Zu,jsx as Qu,jsxs as ju}from"react/jsx-runtime";import{Fragment as sf,jsx as af,jsxs as rf}from"react/jsx-runtime";import{Fragment as ff,jsx as mf,jsxs as uf}from"react/jsx-runtime";import{Fragment as kf,jsx as Lf,jsxs as vf}from"react/jsx-runtime";import{jsx as Af}from"react/jsx-runtime";import{Fragment as Tf,jsx as Of,jsxs as Rf}from"react/jsx-runtime";var Zt="combobox",nn=Zt;import{Fragment as jt,jsx as S,jsxs as Ge}from"react/jsx-runtime";var an="k-combobox",cs=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],ds={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},sn={separators:!0},se=e=>{let{size:t,rounded:o,fillMode:i,separators:n=sn.separators,prefix:r,suffix:d,value:c,placeholder:m,hover:f,focus:b,valid:N,invalid:v,required:E,loading:T,disabled:k,popup:g,opened:A,readonly:K,adaptive:pe,adaptiveSettings:Oe,adaptiveTitle:me,adaptiveSubtitle:Te,adaptiveCustomValue:Re,id:Ke,autocomplete:ln,activeDescendant:eo,"aria-label":cn,...dn}=e,pn=Ke?`${Ke}-listbox`:void 0;return Ge(jt,{children:[Ge(y,{...dn,size:t,rounded:o,fillMode:i,hover:f,focus:b,valid:N,invalid:v,required:E,loading:T,disabled:k,readonly:K,className:a(e.className,an),children:[r&&Ge(jt,{children:[S(fe,{children:r}),n&&S(Y,{})]}),S(F,{id:Ke,placeholder:m,value:c,role:"combobox","aria-haspopup":"listbox","aria-expanded":A?"true":"false","aria-controls":A?pn:void 0,"aria-activedescendant":A&&eo?eo:void 0,"aria-autocomplete":ln,"aria-invalid":v?"true":void 0,"aria-busy":T?"true":void 0,"aria-label":cn,disabled:k,readOnly:K}),S(V,{valid:N,invalid:v,loading:T,disabled:k}),S(q,{loading:T,disabled:k}),S(U,{loading:T,disabled:k,readonly:K,value:c}),d&&Ge(jt,{children:[n&&S(Y,{}),S(be,{children:d})]}),S(x,{className:"k-input-button",icon:"chevron-down",size:t,fillMode:i,"aria-label":"Open popup",tabIndex:-1,disabled:k})]}),A&&g&&S(Q,{className:"k-list-container k-combobox-popup",containerRole:"region",containerAriaLabel:"Combobox suggestions",children:g}),pe&&S(M,{adaptive:!0,id:Ke?`${Ke}-adaptive`:void 0,...Oe,header:S(X,{actionsEnd:S(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),input:!0,inputValue:c,inputPlaceholder:m,title:me,subtitle:Te}),children:S("div",{className:"k-list-container",children:S(H,{customValue:Re?S(Me,{text:`Use "${c}"`}):void 0,size:"large",children:Ge(j,{"aria-label":me||"Options",children:[S(R,{text:"List item"}),S(R,{text:"List item"}),S(R,{text:"List item"})]})})})})]})};se.states=cs;se.options=ds;se.className=an;se.defaultOptions=sn;se.moduleName=Zt;se.folderName=nn;se.ariaSpec={selector:".k-combobox",rules:[{selector:".k-combobox > .k-input-inner",attribute:"role=combobox",usage:"Identifies the input as a combobox."},{selector:".k-combobox > .k-input-inner",attribute:"aria-haspopup=listbox",usage:"Indicates the combobox has a listbox popup."},{selector:".k-combobox > .k-input-inner",attribute:"aria-expanded",usage:"Indicates whether the popup is open."},{selector:".k-combobox > .k-input-inner",attribute:"aria-controls=${id}-listbox (when open)",usage:"Points to the listbox element when popup is open."},{selector:".k-combobox > .k-input-inner",attribute:"aria-activedescendant (when open)",usage:"Points to the focused item in the listbox."},{selector:".k-combobox > .k-input-inner",attribute:"aria-autocomplete=list|both|inline (when has autocomplete)",usage:"Indicates the autocomplete behavior."},{selector:".k-combobox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the combobox is in an invalid state."},{selector:".k-combobox > .k-input-inner",attribute:"aria-busy=true (when loading)",usage:"Rendered when the combobox is loading data."},{selector:".k-combobox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name provided by consuming app."},{selector:".k-combobox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the combobox is disabled."},{selector:".k-combobox .k-input-button",attribute:"role=button or nodeName=button",usage:"The dropdown toggle button."},{selector:".k-combobox .k-input-button",attribute:"aria-label",usage:"Accessible name for the dropdown button."},{selector:".k-combobox .k-input-button",attribute:"tabindex=-1",usage:"Dropdown button is not in the tab order."},{selector:".k-combobox-popup .k-list-content, .k-combobox-popup .k-list-ul",attribute:"role=listbox",usage:"The popup list container has the listbox role."},{selector:'.k-combobox-popup .k-list-ul[role="listbox"], .k-combobox-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-combobox-popup .k-list-item",attribute:"role=option",usage:"Each list item is an option."},{selector:".k-combobox-popup .k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state."},{selector:".k-combobox-popup .k-no-data",attribute:"aria-live=polite",usage:"Announces no-data state to screen readers."}]};var rn=se;import{jsx as ps}from"react/jsx-runtime";var db=e=>ps(rn,{id:"combobox-invalid","aria-label":e["aria-label"]||"Invalid combobox",invalid:!0,value:"Invalid value",...e});export{db as ComboboxInvalid};