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