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