UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 43.1 kB
var Dn=Object.create;var at=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)at(e,o,{get:t[o],enumerable:!0})},xo=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Bn(t))!Fn.call(e,n)&&n!==o&&at(e,n,{get:()=>t[n],enumerable:!(i=zn(t,n))||i.enumerable});return e};var No=(e,t,o)=>(o=e!=null?Dn(Un(e)):{},xo(t||!e||!e.__esModule?at(o,"default",{value:e,enumerable:!0}):o,e)),Gn=e=>xo(at({},"__esModule",{value:!0}),e);var fs={};Vn(fs,{AutocompleteDisabled:()=>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 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: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((k,E)=>(E.startsWith("k-")?k[E]=S[E]:k[`k-${E}`]=S[E],k),{}))};function Lo(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 gt={};function K(e){return gt[e]=(gt[e]||0)+1,`k-${e}-${gt[e]}`}var $e="input",st=$e;var vo=require("react/jsx-runtime"),rt="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,vo.jsx)("span",{...h,className:a(e.className,rt,I(rt,{size:m,rounded:f,fillMode:b}),y(rt,{hover:t,focus:o,disabled:i,invalid:n,valid:r,loading:d,readonly:c}))})};M.states=$n;M.options=Xn;M.className=rt;M.defaultOptions=qn;M.moduleName=$e;M.folderName=st;var Ao=require("react/jsx-runtime"),lt="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,Ao.jsx)("span",{...h,className:a(e.className,lt,I(lt,{size:m,rounded:f,fillMode:b}),y(lt,{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=lt;Le.defaultOptions=Yn;Le.moduleName=$e;Le.folderName=st;var Xe=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={},qe=e=>{let{size:t,themeColor:o,icon:i,rotate:n,flip:r,...d}=e;return i?(0,Xe.jsx)("span",{...d,className:a(e.className,kt,I(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,Xe.jsx)(Xe.Fragment,{})};qe.states=Qn;qe.options=Zn;qe.className=kt;qe.defaultOptions=jn;var go=qe;var me=require("react/jsx-runtime"),It="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]},St={viewBox:"0 0 24 24",variant:Q.outline},Je=e=>{var h,x;let{size:t,themeColor:o,rotate:i,flip:n,viewBox:r=St.viewBox,variant:d=St.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,It,I("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,It,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:(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})})};Je.states=ei;Je.options=ti;Je.className=It;Je.defaultOptions=St;var Ct=Je;var Et=No(require("@progress/kendo-svg-icons"));var ko="icon",Io="icons";var Eo=require("react");var So=require("react"),Co=(0,So.createContext)({iconsType:"svg"});var te=require("react/jsx-runtime"),ct="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]},dt={viewBox:"0 0 24 24",type:"svg",variant:Q.outline},v=e=>{let{iconsType:t}=(0,Eo.useContext)(Co),{size:o,themeColor:i,icon:n,type:r=t||dt.type,rotate:d,flip:c,viewBox:m=dt.viewBox,variant:f=dt.variant,...b}=e;if(!n)return(0,te.jsx)(te.Fragment,{});if((t||r)==="svg"){if(n==="none")return(0,te.jsx)(Ct,{...b,className:a(e.className,ct),icon:n,size:o,variant:f});let x=Et[n]?n:oi(`${n}-icon`);return Et[x]?(0,te.jsx)(Ct,{...b,className:a(e.className,ct),icon:Et[x],size:o,themeColor:i,rotate:d,flip:c,viewBox:m,variant:f}):(0,te.jsx)(te.Fragment,{})}return(0,te.jsx)(go,{...b,className:a(e.className,ct),icon:n,size:o,themeColor:i,rotate:d,flip:c})};v.states=ni;v.options=ii;v.defaultOptions=dt;v.className=ct;v.moduleName=ko;v.folderName=Io;v.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"),yo="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,yo),children:(0,ve.jsx)(v,{icon:"x"})})};X.states=ai;X.options=si;X.className=yo;var Mo=require("react/jsx-runtime"),yt="k-input-inner",ri=[],li={},pt={type:"text",autocomplete:"off",value:"",placeholder:""},q=e=>{let{value:t=pt.value,type:o=pt.type,placeholder:i=pt.placeholder,autocomplete:n=pt.autocomplete,disabled:r,readOnly:d,...c}=e;return(0,Mo.jsx)("input",{...c,type:o,className:a(e.className,yt,I(yt,e)),placeholder:i,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};q.states=ri;q.options=li;q.className=yt;var We=require("react/jsx-runtime"),Mt="k-input-inner",ci=[],di={},Tt=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:n,valueIconName:r,...d}=e;return(0,We.jsxs)("span",{...d,className:a(e.className,Mt,I(Mt,e)),children:[n,!n&&r&&(0,We.jsx)(v,{className:"k-input-value-icon",icon:r}),i&&!t&&o,i&&t&&(0,We.jsx)("span",{className:"k-input-value-text",children:t})]})};Tt.states=ci;Tt.options=di;Tt.className=Mt;var Oo=require("react/jsx-runtime"),Ot="k-input-inner",pi=[],mi={},To={value:"",placeholder:""},Rt=e=>{let{value:t=To.value,placeholder:o=To.placeholder,rows:i,disabled:n,...r}=e;return(0,Oo.jsx)("textarea",{...r,className:a(e.className,Ot,I(Ot,e)),placeholder:o,rows:i,defaultValue:t,disabled:n||void 0})};Rt.states=pi;Rt.options=mi;Rt.className=Ot;var Ye=require("react/jsx-runtime"),Ro="k-input-loading-icon",ui=[s.disabled,s.loading],Z=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Ye.jsx)(Ye.Fragment,{}):(0,Ye.jsx)("span",{className:a(e.className,Ro,"k-icon k-i-loading")})};Z.states=ui;Z.className=Ro;var Qe=require("react/jsx-runtime"),Ko="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,Qe.jsx)(Qe.Fragment,{}):(0,Qe.jsx)(v,{className:a(Ko),icon:r})};J.states=fi;J.options=bi;J.className=Ko;var Ze=require("react/jsx-runtime"),hi="k-input-prefix",xi={direction:"horizontal"},Ae=e=>{let{direction:t=xi.direction,...o}=e;return e.children?(0,Ze.jsx)("span",{...o,className:a(hi,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Ze.jsx)(Ze.Fragment,{})};var je=require("react/jsx-runtime"),Ni="k-input-suffix",Li={direction:"horizontal"},ge=e=>{let{direction:t=Li.direction,...o}=e;return e.children?(0,je.jsx)("span",{...o,className:a(Ni,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,je.jsx)(je.Fragment,{})};var vi=require("react/jsx-runtime");var Ai=require("react/jsx-runtime");var Ho=require("react/jsx-runtime"),_o="k-input-separator",gi={direction:"vertical"},oe=e=>{let{direction:t=gi.direction,...o}=e;return(0,Ho.jsx)("span",{...o,className:a(_o,e.className,{[`${_o}-${t}`]:t})})};var Kt="button",Po=Kt;var V=require("react/jsx-runtime"),et="k-button",ki=["icon-button"],Ii=[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]},_t={showArrow:!1,arrowIconName:"chevron-down"},L=e=>{let{as:t="button",size:o,rounded:i,fillMode:n,themeColor:r,showArrow:d=_t.showArrow,arrowIconName:c=_t.arrowIconName,variant:m,hover:f,focus:b,active:h,selected:x,disabled:O,togglable:C,ariaDisabled:S,icon:k,iconSize:E,text:w,iconClassName:Ne,className:Ue,...Fe}=e,Ve=k!=null,Ge=e.children!==void 0;return(0,V.jsxs)(t,{className:a(Ue,et,Lo(et,m),I(et,{size:o,rounded:i,fillMode:n,themeColor:r}),y(et,{hover:f,focus:b,active:h,disabled:O||S,selected:x}),{"k-icon-button":!w&&!Ge&&Ve}),"aria-pressed":C?x?"true":"false":void 0,...Fe,"aria-disabled":S?"true":void 0,disabled:O||void 0,children:[typeof k=="string"&&k&&(0,V.jsx)(v,{className:a(Ne,"k-button-icon"),icon:k,size:E}),k&&typeof k!="string"&&(0,V.jsx)(V.Fragment,{children:k}),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)(v,{icon:c})})]})};L.states=Ii;L.options=Si;L.variants=ki;L.className=et;L.defaultOptions=_t;L.moduleName=Kt;L.folderName=Po;L.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 wo=require("react/jsx-runtime"),ue=e=>(0,wo.jsx)(L,{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=[],ke=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)(v,{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"})})]})]})};ke.options=yi;ke.states=Ci;ke.variants=Ti;ke.defaultOptions=Ei;ke.modifiers=Mi;ke.className=M.className;var Ht="popup",Do=Ht;var wt=require("react/jsx-runtime"),zo="k-animation-container",Oi=[],Ri={},Pt={positionMode:"absolute",shown:!0},j=e=>{let{positionMode:t=Pt.positionMode,shown:o=Pt.shown,animationStyle:i,offset:n,...r}=e;return(0,wt.jsx)("div",{...r,style:{...n,...e.style},className:a(e.className,zo,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,wt.jsx)("div",{className:"k-child-animation-container",style:i,children:e.children})})};j.states=Oi;j.options=Ri;j.className=zo;j.defaultOptions=Pt;j.moduleName=Ht;j.folderName=Do;var Dt="popup",Bo=Dt;var zt=require("react/jsx-runtime"),Uo="k-popup",Ki=[],_i={},Fo={positionMode:"absolute"},ne=e=>{let{offset:t,positionMode:o=Fo.positionMode,animationStyle:i,containerClassName:n,containerRole:r,containerAriaLabel:d,...c}=e;return(0,zt.jsx)(j,{positionMode:o,offset:t,animationStyle:i,className:n,role:r,"aria-label":d,children:(0,zt.jsx)("div",{...c,className:a(e.className,Uo),children:e.children})})};ne.states=Ki;ne.options=_i;ne.className=Uo;ne.defaultOptions=Fo;ne.moduleName=Dt;ne.folderName=Bo;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 Bt="action-buttons",Vo=Bt;var Go=require("react/jsx-runtime"),mt="k-actions",Hi=[],Pi={},Ut={alignment:"start",orientation:"horizontal"},se=e=>{let{alignment:t=Ut.alignment,orientation:o=Ut.orientation,...i}=e;return(0,Go.jsx)("div",{...i,className:a(mt,{[`${mt}-${t}`]:t,[`${mt}-${o}`]:o},e.className),children:e.children})};se.states=Hi;se.options=Pi;se.className=mt;se.defaultOptions=Ut;se.moduleName=Bt;se.folderName=Vo;var Xo=require("react/jsx-runtime"),wi="k-actionsheet-footer",$o={alignment:"stretched",orientation:"horizontal"},Ie=e=>{let{alignment:t=$o.alignment,orientation:o=$o.orientation,template:i,as:n=i?"div":se,...r}=e;return(0,Xo.jsx)(n,{...r,...!i&&{alignment:t,orientation:o},className:a(e.className,wi),children:e.children})};var Ft="searchbox",qo=Ft;var re=require("react/jsx-runtime"),Jo="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]},Vt={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=Vt.showIcon,icon:C=Vt.icon,"aria-label":S,...k}=e;return(0,re.jsxs)(M,{...k,size:i,rounded:n,fillMode:r,hover:d,focus:c,valid:m,invalid:f,required:b,loading:h,disabled:x,className:a(e.className,Jo),children:[O&&(0,re.jsx)(v,{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=Jo;le.defaultOptions=Vt;le.moduleName=Ft;le.folderName=qo;var Bi=require("react/jsx-runtime");var Gt="textbox",Wo=Gt;var _=require("react/jsx-runtime"),Yo="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]},ut={showClearButton:!0,showValidationIcon:!0,separators:!0},D=e=>{let{size:t,rounded:o,fillMode:i,separators:n=ut.separators,showClearButton:r=ut.showClearButton,showValidationIcon:d=ut.showValidationIcon,prefix:c,suffix:m,type:f,value:b,placeholder:h,hover:x,focus:O,valid:C,invalid:S,required:k,loading:E,disabled:w,readonly:Ne,id:Ue,"aria-label":Fe,"aria-describedby":Ve,...Ge}=e;return(0,_.jsxs)(M,{...Ge,size:t,rounded:o,fillMode:i,hover:x,focus:O,valid:C,invalid:S,required:k,loading:E,disabled:w,readonly:Ne,className:a(e.className,Yo),children:[c&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Ae,{children:c}),n&&(0,_.jsx)(oe,{})]}),(0,_.jsx)(q,{id:Ue,placeholder:h,value:b,type:f,disabled:w,"aria-label":Fe,"aria-describedby":Ve,"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=Yo;D.defaultOptions=ut;D.moduleName=Gt;D.folderName=Wo;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 tt=D;var Zo=require("react/jsx-runtime"),Qo=e=>(0,Zo.jsx)(tt,{...e});var jo=require("react/jsx-runtime");var tn=require("react/jsx-runtime"),en=e=>(0,tn.jsx)(L,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var nn=require("react/jsx-runtime"),on=e=>(0,nn.jsx)(L,{icon:"folder",children:"Button",...e});var ft=require("react/jsx-runtime"),Vi=L.options,Gi=L.states,$i={...L.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,ft.jsx)(en,{...o,icon:"star"});case"icon-and-text":return(0,ft.jsx)(on,{...o,icon:"star",children:"Button"});default:return(0,ft.jsx)(ue,{...o,children:"Button"})}};Se.options=Vi;Se.states=Gi;Se.variants=Xi;Se.defaultOptions=$i;Se.modifiers=qi;Se.className=L.className;var an=require("react/jsx-runtime");var Ji=require("react/jsx-runtime");var bt=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,bt.jsx)(v,{icon:"lock"}):void 0;break;case"suffix":i.suffix=t!=null&&t[n]?(0,bt.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,bt.jsx)(Qo,{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"),sn="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,sn),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=sn;W.defaultOptions=ea;var Ee=require("react/jsx-runtime"),$t="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)===Ie&&(0,Ee.jsx)(Ie,{...r==null?void 0:r.props});return(0,Ee.jsxs)("div",{...c,className:a(e.className,$t,{[`${$t}-animated`]:o}),children:[m,(0,Ee.jsx)("div",{className:"k-actionsheet-content",children:i}),f]})};ye.states=ta;ye.options=oa;ye.className=$t;ye.defaultOptions=na;var ot="action-sheet",ht=ot;var Xt="overlay",rn=Xt;var cn=require("react/jsx-runtime"),ln="k-overlay",ia=[],aa={},sa={},ce=e=>{let{...t}=e;return(0,cn.jsx)("div",{...t,className:a(e.className,ln),children:e.children})};ce.states=ia;ce.options=aa;ce.className=ln;ce.defaultOptions=sa;ce.moduleName=Xt;ce.folderName=rn;var fe=require("react/jsx-runtime"),dn="k-actionsheet",ra=[],la={},nt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},R=e=>{let{side:t=nt.side,fullscreen:o=nt.fullscreen,adaptive:i=nt.adaptive,overlay:n=nt.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,dn,{[`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=dn;R.defaultOptions=nt;R.moduleName=ot;R.folderName=ht;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 mn=require("react/jsx-runtime"),pn="k-actionsheet-container",ca=[],da={},pa={},Me=e=>{let{children:t,...o}=e;return(0,mn.jsx)("div",{...o,className:pn,children:t})};Me.states=ca;Me.options=da;Me.className=pn;Me.defaultOptions=pa;Me.moduleName=ot;Me.folderName=ht;var un=require("react/jsx-runtime"),qt=e=>{let{...t}=e;return(0,un.jsx)("div",{...t,className:a(e.className,"k-list-ul"),children:e.children})};var $=require("react/jsx-runtime"),Jt="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,Jt,y(Jt,{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)(v,{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=Jt;var fn=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,hn={...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}={...hn,...e},n={},r=(0,g.jsxs)(qt,{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)(L,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,g.jsx)(L,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?(0,g.jsxs)(Ie,{alignment:"stretched",children:[(0,g.jsx)(L,{text:"Cancel",size:"large",themeColor:"base"}),(0,g.jsx)(L,{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)(L,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,g.jsx)(L,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?(0,g.jsxs)(Ie,{alignment:"stretched",children:[(0,g.jsx)(L,{text:"Apply",themeColor:"primary"}),(0,g.jsx)(L,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};Te.options=ha;Te.states=xa;Te.variants=Na;Te.defaultOptions=hn;Te.modifiers=La;Te.className=R.className;var xt=No(require("react"));var Wt=require("react/jsx-runtime"),va="k-list-group-sticky-header",Yt=e=>(0,Wt.jsx)("div",{className:a(va,e.className),children:(0,Wt.jsx)("div",{className:"k-list-header-text",children:e.children})});var xn=require("react/jsx-runtime"),Aa="k-no-data",Qt=e=>{let{live:t,...o}=e;return(0,xn.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"),Zt="k-list",ga=[],ka={size:[l.undefined,l.small,l.medium,l.large]},Ia={},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=xt.default.Children.toArray(i)[0],O=(C=x==null?void 0:x.props)!=null&&C.children?xt.default.Children.count(x.props.children):xt.default.Children.count(i);return(0,Re.jsxs)("div",{...b,className:a(e.className,Zt,I(Zt,{size:t}),{"k-virtual-list":o}),children:[d,r,c,n&&(0,Re.jsx)(Yt,{children:n}),i||(m!==void 0?m:(0,Re.jsx)(Qt,{live:!0,children:"No data found."})),f&&i&&(0,Re.jsxs)(Qt,{className:"k-sr-only",live:!0,children:[O," items found."]})]})};z.states=ga;z.options=ka;z.className=Zt;z.defaultOptions=Ia;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 Ln=require("react/jsx-runtime"),Nn="k-list-container",Sa=[],Ca={},Ea={},Ke=e=>{let{...t}=e;return(0,Ln.jsx)("div",{...t,className:a(e.className,Nn),children:e.children})};Ke.states=Sa;Ke.options=Ca;Ke.className=Nn;Ke.defaultOptions=Ea;Ke.moduleName=be;Ke.folderName=Oe;var he="checkbox",_e=he;var jt=require("react/jsx-runtime"),Nt="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,jt.jsx)("span",{className:"k-checkbox-wrap",role:x,children:(0,jt.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,Nt,I(Nt,{size:b,rounded:h}),y(Nt,{hover:n,focus:r,disabled:d,invalid:c,valid:m,indeterminate:i,checked:o}))})})};F.states=ya;F.options=Ma;F.className=Nt;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 gn=require("react/jsx-runtime"),vn="k-checkbox-list",Oa=[],Ra={},An={layout:"vertical"},B=e=>{let{layout:t=An.layout,...o}=e;return(0,gn.jsx)("ul",{...o,className:a(e.className,vn,{[`k-list-${t}`]:t}),children:e.children})};B.states=Oa;B.options=Ra;B.className=vn;B.defaultOptions=An;B.moduleName=he;B.folderName=_e;var In=require("react/jsx-runtime"),kn="k-checkbox-list-item",Ka=[],_a={},Ha={},U=e=>{let{...t}=e;return(0,In.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 eo=require("react/jsx-runtime");var to=require("react/jsx-runtime");var oo=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 Sn=require("react/jsx-runtime"),Ga=Y.options,$a=Y.states,Xa=Y.defaultOptions,qa=[],Ja=[],Pe=e=>(0,Sn.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"),no="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,k=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":no,y(no,{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)(v,{icon:n,className:a("k-list-item-icon",r)})}),(0,ee.jsx)("span",{className:"k-list-item-text",children:k}),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=no;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 Cn=require("react/jsx-runtime"),Za="k-list-ul",it=e=>{let{children:t,role:o,id:i,...n}=e;return(0,Cn.jsx)("ul",{...n,id:i,role:o,className:a(Za,e.className),children:t})};it.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)(it,{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"),Lt="k-list-sticky-header",es=[s.hover,s.focus,s.selected],ts={},os={},vt=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(Lt,e.className),children:(0,De.jsxs)("div",{className:a(`${Lt}-item`,y(`${Lt}-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})]})})};vt.states=es;vt.options=ts;vt.className=Lt;vt.defaultOptions=os;var io=require("react/jsx-runtime");var ze=require("react/jsx-runtime"),ns="k-list-group-item",ao=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)(v,{icon:t,className:"k-list-item-icon"})}),(0,ze.jsx)("span",{className:"k-list-item-text",children:e.children})]})};ao.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 En=require("react/jsx-runtime"),so="k-list-optionlabel",is=[s.hover,s.focus,s.selected,s.disabled],as={},ss={},At=e=>{let{text:t,hover:o,focus:i,selected:n,disabled:r,...d}=e;return(0,En.jsx)("div",{...d,className:a(so,y(so,{hover:o,focus:i,selected:n,disabled:r})),children:t})};At.states=is;At.options=as;At.className=so;At.defaultOptions=ss;var yn=require("react/jsx-runtime"),ro="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,yn.jsx)("div",{...d,className:a(ro,y(ro,{hover:o,focus:i,selected:n,disabled:r})),children:t})};Be.states=rs;Be.options=ls;Be.className=ro;Be.defaultOptions=cs;var lo=require("react/jsx-runtime");var co=require("react/jsx-runtime");var po=require("react/jsx-runtime");var mo=require("react/jsx-runtime");var ds=require("react/jsx-runtime");var uo=require("react/jsx-runtime");var fo="autocomplete",Mn=fo;var A=require("react/jsx-runtime"),Tn="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]},On={separators:!0},pe=e=>{let{size:t,rounded:o,fillMode:i,separators:n=On.separators,prefix:r,suffix:d,value:c,placeholder:m,hover:f,focus:b,valid:h,invalid:x,required:O,loading:C,disabled:S,popup:k,opened:E,readonly:w,adaptive:Ne,adaptiveSettings:Ue,adaptiveTitle:Fe,adaptiveSubtitle:Ve,adaptiveCustomValue:Ge,id:bo,autocomplete:_n,activeDescendant:ho,"aria-label":Hn,...Pn}=e,wn=bo?`${bo}-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,Tn),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&&ho?ho: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&&k&&(0,A.jsx)(ne,{className:"k-list-container k-autocomplete-popup",containerRole:"region",containerAriaLabel:"Autocomplete suggestions",children:k}),Ne&&(0,A.jsx)(R,{adaptive:!0,...Ue,header:(0,A.jsx)(W,{actionsEnd:(0,A.jsx)(L,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),input:!0,inputValue:c,inputPlaceholder:m,title:Fe,subtitle:Ve}),children:(0,A.jsx)("div",{className:"k-list-container",children:(0,A.jsx)(z,{customValue:Ge?(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=Tn;pe.defaultOptions=On;pe.moduleName=fo;pe.folderName=Mn;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 Rn=pe;var Kn=require("react/jsx-runtime"),us=e=>(0,Kn.jsx)(Rn,{id:K("ac"),"aria-label":"Disabled autocomplete",disabled:!0,value:"Disabled value",...e});