UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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