UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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