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