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