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