UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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