UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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