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