@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 72.5 kB
JavaScript
var r=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?r(...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 M=(e,t)=>r({[`${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"}),T=(e,t)=>{let{valid:o,invalid:a,hover:i,focus:s,checked:d,active:c,selected:m,disabled:u,indeterminate:b,loading:x,empty:h,readonly:I,highlighted:E,...y}=t;return r({"k-valid":o,"k-invalid":a,"k-hover":i,"k-focus":s,"k-checked":d,"k-active":c,"k-selected":m,"k-disabled":u,"k-indeterminate":b&&!d,"k-loading":x,"k-empty":h,"k-readonly":I,"k-highlighted":E},Object.keys(y).reduce((k,g)=>(g.startsWith("k-")?k[g]=y[g]:k[`k-${g}`]=y[g],k),{}))};function Ni(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"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},Ne={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},N={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 so={};function S(e){return so[e]=(so[e]||0)+1,`k-${e}-${so[e]}`}var Li="form",ki="forms";import{Fragment as vi,jsx as Ht,jsxs as Ln}from"react/jsx-runtime";var zt="k-form",hn=[],Nn={size:[l.undefined,l.small,l.medium,l.large]},lo={layout:"basic",tag:"form"},D=e=>{let{size:t,orientation:o,layout:a=lo.layout,formButtons:i,cols:s,gutters:d,tag:c=lo.tag,children:m}=e,u=c,b=r(e.className,zt,M(zt,{size:t}),{[`${zt}-${o}`]:o}),x=Ln(vi,{children:[a==="grid"?Ht("div",{className:r("k-form-layout","k-d-grid",{[`k-grid-cols-${s}`]:s}),style:{...typeof d=="string"&&{gap:d},...typeof d=="object"&&d.rows&&{rowGap:d.rows},...typeof d=="object"&&d.cols&&{columnGap:d.cols}},children:m}):Ht(vi,{children:m}),i&&Ht("div",{className:"k-form-buttons",children:i})]}),{role:h,"aria-labelledby":I,"aria-label":E,id:y}=e;return Ht(u,{className:b,role:h,"aria-labelledby":I,"aria-label":E,id:y,children:x})};D.states=hn;D.options=Nn;D.className=zt;D.defaultOptions=lo;D.moduleName=Li;D.folderName=ki;var gi="label",Ii="label";import{jsx as Si,jsxs as In}from"react/jsx-runtime";var po="k-label",kn=[n.disabled],vn={},gn={},Te=e=>{let{disabled:t,optional:o,info:a,text:i,children:s,...d}=e;return In("label",{...d,className:r(e.className,po,T(po,{disabled:t})),children:[i||s,o&&Si("span",{className:"k-label-optional",children:"(Optional)"}),a&&Si("span",{className:"k-field-info",children:a})]})};Te.states=kn;Te.options=vn;Te.className=po;Te.defaultOptions=gn;Te.moduleName=gi;Te.folderName=Ii;import{jsx as Tn}from"react/jsx-runtime";var yi="k-form-hint",Sn=[],yn={},Mn={},se=e=>{let{text:t,children:o,...a}=e;return Tn("div",{...a,className:r(e.className,yi),children:t||o})};se.states=Sn;se.options=yn;se.className=yi;se.defaultOptions=Mn;import{jsx as Cn}from"react/jsx-runtime";var Mi="k-form-error",An=[],En={},On={},le=e=>{let{text:t,children:o,...a}=e;return Cn("div",{...a,className:r(e.className,Mi),children:t||o})};le.states=An;le.options=En;le.className=Mi;le.defaultOptions=On;import{jsx as Bt,jsxs as Ti}from"react/jsx-runtime";var co="k-form-field",Rn=[n.disabled],re=e=>{let{editorId:t,label:o,orientation:a,optional:i,editor:s,hint:d,error:c,info:m,disabled:u,dir:b,colSpan:x,...h}=e;return Ti("div",{...h,className:r(co,e.className,T(co,{disabled:u}),{[`k-col-span-${x}`]:x}),dir:b,children:[o&&Bt(Te,{className:"k-form-label",id:t?`${t}-label`:void 0,htmlFor:t||void 0,optional:i,info:m?"(field info)":void 0,children:o}),a==="horizontal"&&!o&&Bt("span",{className:"k-label k-form-label k-label-empty"}),Ti("div",{className:"k-form-field-wrap",children:[s,d&&Bt(se,{id:t?`${t}-hint`:void 0,children:d}),c&&Bt(le,{id:t?`${t}-error`:void 0,children:c})]})]})};re.states=Rn;re.className=co;import{Fragment as wn,jsx as mo,jsxs as Kn}from"react/jsx-runtime";var Ai="k-form-fieldset",He=e=>{let{legend:t,layout:o,cols:a,gutters:i,colSpan:s}=e;return Kn("fieldset",{className:r(Ai,{[`k-col-span-${s}`]:s}),children:[t&&mo("legend",{className:"k-form-legend",children:t}),o==="grid"?mo("div",{className:r("k-form-layout","k-d-grid",{[`k-grid-cols-${a}`]:a}),style:{...typeof i=="string"&&{gap:i},...typeof i=="object"&&i.rows&&{rowGap:i.rows},...typeof i=="object"&&i.cols&&{columnGap:i.cols}},children:e.children}):mo(wn,{children:e.children})]})};He.className=Ai;import{Fragment as Hn,jsx as Ei}from"react/jsx-runtime";var uo="k-font-icon",Dn=[],_n={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info]},Pn={},gt=e=>{let{size:t,themeColor:o,icon:a,rotate:i,flip:s,...d}=e;return a?Ei("span",{...d,className:r(e.className,uo,M(uo,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):Ei(Hn,{})};gt.states=Dn;gt.options=_n;gt.className=uo;gt.defaultOptions=Pn;var Oi=gt;import{Fragment as Fn,jsx as Ft}from"react/jsx-runtime";var fo="k-svg-icon",zn=[],Bn={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info],variant:[Ne.outline,Ne.solid,Ne.duotone]},bo={viewBox:"0 0 24 24",variant:Ne.outline},It=e=>{let{size:t,themeColor:o,rotate:a,flip:i,viewBox:s=bo.viewBox,variant:d=bo.variant,icon:c,...m}=e;if(!c)return Ft(Fn,{});if(c==="none")return Ft("span",{...m,className:r(e.className,fo,M("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let u=typeof c=="object"&&c.name&&c.name,b=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return Ft("span",{...m,className:r(e.className,fo,M("k-icon",{size:t}),{[`k-svg-i-${u}`]:u,[`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:Ft("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:s,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:c?void 0:e.children})})};It.states=zn;It.options=Bn;It.className=fo;It.defaultOptions=bo;var xo=It;import*as ho from"@progress/kendo-svg-icons";var Ci="icon",Ri="icons";import{useContext as Vn}from"react";import{createContext as Un}from"react";var wi=Un({iconsType:"svg"});import{Fragment as Ki,jsx as St}from"react/jsx-runtime";var Ut="k-icon",Gn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Xn=[],$n={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info],variant:[Ne.outline,Ne.solid,Ne.duotone]},Vt={viewBox:"0 0 24 24",type:"svg",variant:Ne.outline},v=e=>{let{iconsType:t}=Vn(wi),{size:o,themeColor:a,icon:i,type:s=t||Vt.type,rotate:d,flip:c,viewBox:m=Vt.viewBox,variant:u=Vt.variant,...b}=e;if(!i)return St(Ki,{});if((t||s)==="svg"){if(i==="none")return St(xo,{...b,className:r(e.className,Ut),icon:i,size:o,variant:u});let h=ho[i]?i:Gn(`${i}-icon`);return ho[h]?St(xo,{...b,className:r(e.className,Ut),icon:ho[h],size:o,themeColor:a,rotate:d,flip:c,viewBox:m,variant:u}):St(Ki,{})}return St(Oi,{...b,className:r(e.className,Ut),icon:i,size:o,themeColor:a,rotate:d,flip:c})};v.states=Xn;v.options=$n;v.defaultOptions=Vt;v.className=Ut;v.moduleName=Ci;v.folderName=Ri;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 No="button",Di=No;import{Fragment as _i,jsx as Xe,jsxs as Pi}from"react/jsx-runtime";var yt="k-button",qn=["icon-button"],Wn=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Jn={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:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info,N.inverse]},Lo={showArrow:!1,arrowIconName:"chevron-down"},L=e=>{let{as:t="button",size:o,rounded:a,fillMode:i,themeColor:s,showArrow:d=Lo.showArrow,arrowIconName:c=Lo.arrowIconName,variant:m,hover:u,focus:b,active:x,selected:h,disabled:I,togglable:E,ariaDisabled:y,icon:k,iconSize:g,text:w,iconClassName:F,className:G,...be}=e,ge=k!=null,Pe=e.children!==void 0;return Pi(t,{className:r(G,yt,Ni(yt,m),M(yt,{size:o,rounded:a,fillMode:i,themeColor:s}),T(yt,{hover:u,focus:b,active:x,disabled:I||y,selected:h}),{"k-icon-button":!w&&!Pe&&ge}),"aria-pressed":E?h?"true":"false":void 0,...be,"aria-disabled":y?"true":void 0,disabled:I||void 0,children:[typeof k=="string"&&k&&Xe(v,{className:r(F,"k-button-icon"),icon:k,size:g}),k&&typeof k!="string"&&Xe(_i,{children:k}),w?Pi(_i,{children:[w&&Xe("span",{className:"k-button-text",children:w}),e.children]}):e.children&&Xe("span",{className:"k-button-text",children:e.children}),d&&Xe("span",{className:"k-menu-button-arrow k-button-arrow",children:Xe(v,{icon:c})})]})};L.states=Wn;L.options=Jn;L.variants=qn;L.className=yt;L.defaultOptions=Lo;L.moduleName=No;L.folderName=Di;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."}]};import{jsx as Yn}from"react/jsx-runtime";var ko=e=>Yn(L,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Qn}from"react/jsx-runtime";var Hi=e=>Qn(L,{icon:"folder",children:"Button",...e});import{jsx as Zn}from"react/jsx-runtime";var ze=e=>Zn(L,{children:"Button",...e});import{jsx as vo}from"react/jsx-runtime";var jn=L.options,er=L.states,tr={...L.defaultOptions,variant:"text"},or=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ir=[],$e=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return vo(ko,{...o,icon:"star"});case"icon-and-text":return vo(Hi,{...o,icon:"star",children:"Button"});default:return vo(ze,{...o,children:"Button"})}};$e.options=jn;$e.states=er;$e.variants=or;$e.defaultOptions=tr;$e.modifiers=ir;$e.className=L.className;var Mt="input",Gt=Mt;import{jsx as sr}from"react/jsx-runtime";var Xt="k-input",ar=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],nr={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},rr={},C=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c,size:m,rounded:u,fillMode:b,...x}=e;return sr("span",{...x,className:r(e.className,Xt,M(Xt,{size:m,rounded:u,fillMode:b}),T(Xt,{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c}))})};C.states=ar;C.options=nr;C.className=Xt;C.defaultOptions=rr;C.moduleName=Mt;C.folderName=Gt;import{jsx as cr}from"react/jsx-runtime";var $t="k-picker",lr=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],dr={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},pr={},Ae=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c,size:m,rounded:u,fillMode:b,...x}=e;return cr("span",{...x,className:r(e.className,$t,M($t,{size:m,rounded:u,fillMode:b}),T($t,{hover:t,focus:o,disabled:a,invalid:i,valid:s,loading:d,readonly:c})),children:e.children})};Ae.states=lr;Ae.options=dr;Ae.className=$t;Ae.defaultOptions=pr;Ae.moduleName=Mt;Ae.folderName=Gt;import{Fragment as fr,jsx as go}from"react/jsx-runtime";var zi="k-clear-value",mr=[n.disabled,n.loading,n.readonly],ur={},X=e=>{let{disabled:t,loading:o,readonly:a,value:i}=e;return t||a||o||!i?go(fr,{}):go("span",{className:r(e.className,zi),children:go(v,{icon:"x"})})};X.states=mr;X.options=ur;X.className=zi;import{jsx as hr}from"react/jsx-runtime";var Io="k-input-inner",br=[],xr={},qt={type:"text",autocomplete:"off",value:"",placeholder:""},$=e=>{let{value:t=qt.value,type:o=qt.type,placeholder:a=qt.placeholder,autocomplete:i=qt.autocomplete,disabled:s,readOnly:d,...c}=e;return hr("input",{...c,type:o,className:r(e.className,Io,M(Io,e)),placeholder:a,autoComplete:i,defaultValue:t,disabled:s||void 0,readOnly:d||void 0})};$.states=br;$.options=xr;$.className=Io;import{jsx as Bi,jsxs as kr}from"react/jsx-runtime";var So="k-input-inner",Nr=[],Lr={},Tt=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:i,valueIconName:s,...d}=e;return kr("span",{...d,className:r(e.className,So,M(So,e)),children:[i,!i&&s&&Bi(v,{className:"k-input-value-icon",icon:s}),a&&!t&&o,a&&t&&Bi("span",{className:"k-input-value-text",children:t})]})};Tt.states=Nr;Tt.options=Lr;Tt.className=So;import{jsx as Ir}from"react/jsx-runtime";var yo="k-input-inner",vr=[],gr={},Fi={value:"",placeholder:""},At=e=>{let{value:t=Fi.value,placeholder:o=Fi.placeholder,rows:a,disabled:i,...s}=e;return Ir("textarea",{...s,className:r(e.className,yo,M(yo,e)),placeholder:o,rows:a,defaultValue:t,disabled:i||void 0})};At.states=vr;At.options=gr;At.className=yo;import{Fragment as yr,jsx as Ui}from"react/jsx-runtime";var Vi="k-input-loading-icon",Sr=[n.disabled,n.loading],U=e=>{let{disabled:t,loading:o}=e;return t||!o?Ui(yr,{}):Ui("span",{className:r(e.className,Vi,"k-icon k-i-loading")})};U.states=Sr;U.className=Vi;import{Fragment as Ar,jsx as Gi}from"react/jsx-runtime";var Xi="k-input-validation-icon",Mr=[n.valid,n.invalid,n.disabled,n.loading],Tr={},_=e=>{let{valid:t,invalid:o,disabled:a,loading:i}=e,s=o?"warning-circle":"check-circle";return a||i||!!!(t||o)?Gi(Ar,{}):Gi(v,{className:r(Xi),icon:s})};_.states=Mr;_.options=Tr;_.className=Xi;import{Fragment as Cr,jsx as $i}from"react/jsx-runtime";var Er="k-input-prefix",Or={direction:"horizontal"},de=e=>{let{direction:t=Or.direction,...o}=e;return e.children?$i("span",{...o,className:r(Er,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):$i(Cr,{})};import{Fragment as Kr,jsx as qi}from"react/jsx-runtime";var Rr="k-input-suffix",wr={direction:"horizontal"},pe=e=>{let{direction:t=wr.direction,...o}=e;return e.children?qi("span",{...o,className:r(Rr,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):qi(Kr,{})};import{jsx as _m}from"react/jsx-runtime";import{jsx as _r}from"react/jsx-runtime";var Dr="k-input-suffix-text",Mo=e=>{let{children:t,...o}=e;return _r("span",{...o,className:r(Dr,e.className),children:t})};import{jsx as Hr}from"react/jsx-runtime";var Wi="k-input-separator",Pr={direction:"vertical"},q=e=>{let{direction:t=Pr.direction,...o}=e;return Hr("span",{...o,className:r(Wi,e.className,{[`${Wi}-${t}`]:t})})};import{Fragment as Ji,jsx as Le,jsxs as To}from"react/jsx-runtime";var zr=C.states,Br=C.defaultOptions,Fr=C.options,Ur=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Vr=[],qe=e=>{let{modifiers:t,valid:o,invalid:a,loading:i,disabled:s,readonly:d,...c}=e,m=t?.prefix,u=t?.suffix,b=t?.["clear-button"],x=t?.["validation-icon"],h=t?.separators;return To(C,{...c,valid:o,invalid:a,loading:i,disabled:s,readonly:d,style:{width:300},children:[m&&To(Ji,{children:[Le(de,{children:Le(v,{icon:"lock"})}),h&&Le(q,{})]}),Le($,{placeholder:"Placeholder",value:"Value"}),x&&Le(_,{valid:o,invalid:a,loading:i,disabled:s}),Le(U,{loading:i,disabled:s}),b&&Le(X,{loading:i,disabled:s,readonly:d,value:"Value"}),u&&To(Ji,{children:[h&&Le(q,{}),Le(pe,{children:Le(ze,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};qe.options=Fr;qe.states=zr;qe.variants=Vr;qe.defaultOptions=Br;qe.modifiers=Ur;qe.className=C.className;var Ao="popup",Yi=Ao;import{jsx as Qi}from"react/jsx-runtime";var Zi="k-animation-container",Gr=[],Xr={},Eo={positionMode:"absolute",shown:!0},ke=e=>{let{positionMode:t=Eo.positionMode,shown:o=Eo.shown,animationStyle:a,offset:i,...s}=e;return Qi("div",{...s,style:{...i,...e.style},className:r(e.className,Zi,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Qi("div",{className:"k-child-animation-container",style:a,children:e.children})})};ke.states=Gr;ke.options=Xr;ke.className=Zi;ke.defaultOptions=Eo;ke.moduleName=Ao;ke.folderName=Yi;var Oo="popup",ji=Oo;import{jsx as ea}from"react/jsx-runtime";var ta="k-popup",$r=[],qr={},oa={positionMode:"absolute"},Ie=e=>{let{offset:t,positionMode:o=oa.positionMode,animationStyle:a,containerClassName:i,containerRole:s,containerAriaLabel:d,...c}=e;return ea(ke,{positionMode:o,offset:t,animationStyle:a,className:i,role:s,"aria-label":d,children:ea("div",{...c,className:r(e.className,ta),children:e.children})})};Ie.states=$r;Ie.options=qr;Ie.className=ta;Ie.defaultOptions=oa;Ie.moduleName=Oo;Ie.folderName=ji;Ie.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 Co="action-buttons",ia=Co;import{jsx as Yr}from"react/jsx-runtime";var Wt="k-actions",Wr=[],Jr={},Ro={alignment:"start",orientation:"horizontal"},Ee=e=>{let{alignment:t=Ro.alignment,orientation:o=Ro.orientation,...a}=e;return Yr("div",{...a,className:r(Wt,{[`${Wt}-${t}`]:t,[`${Wt}-${o}`]:o},e.className),children:e.children})};Ee.states=Wr;Ee.options=Jr;Ee.className=Wt;Ee.defaultOptions=Ro;Ee.moduleName=Co;Ee.folderName=ia;import{jsx as Zr}from"react/jsx-runtime";var Qr="k-actionsheet-footer",aa={alignment:"stretched",orientation:"horizontal"},We=e=>{let{alignment:t=aa.alignment,orientation:o=aa.orientation,template:a,as:i=a?"div":Ee,...s}=e;return Zr(i,{...s,...!a&&{alignment:t,orientation:o},className:r(e.className,Qr),children:e.children})};var wo="searchbox",na=wo;import{jsx as Et,jsxs as ts}from"react/jsx-runtime";var ra="k-searchbox",jr=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],es={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Ko={showIcon:!0,icon:"search"},ce=e=>{let{value:t,placeholder:o,size:a,rounded:i,fillMode:s,hover:d,focus:c,valid:m,invalid:u,required:b,loading:x,disabled:h,showIcon:I=Ko.showIcon,icon:E=Ko.icon,"aria-label":y,...k}=e;return ts(C,{...k,size:a,rounded:i,fillMode:s,hover:d,focus:c,valid:m,invalid:u,required:b,loading:x,disabled:h,className:r(e.className,ra),children:[I&&Et(v,{className:"k-input-icon",icon:E}),Et($,{placeholder:o,value:t,"aria-label":y}),Et(U,{...e}),Et(_,{...e}),Et(X,{...e})]})};ce.states=jr;ce.options=es;ce.className=ra;ce.defaultOptions=Ko;ce.moduleName=wo;ce.folderName=na;import{jsx as tf}from"react/jsx-runtime";var Do="textbox",sa=Do;import{Fragment as la,jsx as Oe,jsxs as _o}from"react/jsx-runtime";var da="k-textbox",os=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],is={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},Jt={showClearButton:!0,showValidationIcon:!0,separators:!0},A=e=>{let{size:t,rounded:o,fillMode:a,separators:i=Jt.separators,showClearButton:s=Jt.showClearButton,showValidationIcon:d=Jt.showValidationIcon,prefix:c,suffix:m,type:u,value:b,placeholder:x,hover:h,focus:I,valid:E,invalid:y,required:k,loading:g,disabled:w,readonly:F,id:G,"aria-label":be,"aria-describedby":ge,...Pe}=e;return _o(C,{...Pe,size:t,rounded:o,fillMode:a,hover:h,focus:I,valid:E,invalid:y,required:k,loading:g,disabled:w,readonly:F,className:r(e.className,da),children:[c&&_o(la,{children:[Oe(de,{children:c}),i&&Oe(q,{})]}),Oe($,{id:G,placeholder:x,value:b,type:u,disabled:w,"aria-label":be,"aria-describedby":ge,"aria-invalid":y?"true":void 0}),d&&Oe(_,{valid:E,invalid:y,loading:g,disabled:w}),Oe(U,{loading:g,disabled:w}),s&&Oe(X,{loading:g,disabled:w,readonly:F,value:b}),m&&_o(la,{children:[i&&Oe(q,{}),Oe(pe,{children:m})]})]})};A.states=os;A.options=is;A.className=da;A.defaultOptions=Jt;A.moduleName=Do;A.folderName=sa;A.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=A;import{jsx as as}from"react/jsx-runtime";var pa=e=>as(Ot,{...e});import{Fragment as kf,jsx as Lf}from"react/jsx-runtime";import{Fragment as Mf,jsx as yf}from"react/jsx-runtime";import{jsx as Of}from"react/jsx-runtime";import{jsx as Po}from"react/jsx-runtime";var ns=A.states,rs=A.defaultOptions,ss=A.options,ls=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],ds=[],Je=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":a.prefix=t?.[i]?Po(v,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[i]?Po(ze,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[i];break;default:break}}),Po(pa,{value:"Value",style:{width:300},...o,...a})};Je.options=ss;Je.states=ns;Je.variants=ds;Je.defaultOptions=rs;Je.modifiers=ls;Je.className=A.className;import{jsx as Ce,jsxs as Ho}from"react/jsx-runtime";var ca="k-actionsheet-titlebar",ps={},xe=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:i,filter:s,input:d,inputValue:c,inputPlaceholder:m,adaptive:u,titleId:b,children:x,...h}=e;return Ho("div",{...h,className:r(e.className,ca),children:[Ho("div",{className:"k-actionsheet-titlebar-group",children:[a&&Ce("div",{className:"k-actionsheet-actions",children:a}),!x&&Ho("div",{className:"k-actionsheet-title",id:b,children:[t&&Ce("div",{className:"k-text-center",children:t}),o&&Ce("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&Ce("div",{className:"k-actionsheet-title",id:b,children:x}),i&&Ce("div",{className:"k-actionsheet-actions",children:i})]}),(d||s)&&Ce("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Ce(A,{value:c,placeholder:m,size:u?"large":"medium","aria-label":t||m||"Input"}):Ce(ce,{placeholder:"Filter",size:u?"large":"medium","aria-label":"Filter options"})})]})};xe.className=ca;xe.defaultOptions=ps;import{jsx as zo,jsxs as fs}from"react/jsx-runtime";var Bo="k-actionsheet-view",cs=[],ms={},us={},Ye=e=>{let{adaptive:t,animated:o,children:a,header:i,footer:s,titleId:d,...c}=e,m=i?.type===xe&&zo(xe,{adaptive:t,titleId:d,...i?.props}),u=s?.type===We&&zo(We,{...s?.props});return fs("div",{...c,className:r(e.className,Bo,{[`${Bo}-animated`]:o}),children:[m,zo("div",{className:"k-actionsheet-content",children:a}),u]})};Ye.states=cs;Ye.options=ms;Ye.className=Bo;Ye.defaultOptions=us;var Ct="action-sheet",Yt=Ct;var Fo="overlay",ma=Fo;import{jsx as Ns}from"react/jsx-runtime";var ua="k-overlay",bs=[],xs={},hs={},Re=e=>{let{...t}=e;return Ns("div",{...t,className:r(e.className,ua),children:e.children})};Re.states=bs;Re.options=xs;Re.className=ua;Re.defaultOptions=hs;Re.moduleName=Fo;Re.folderName=ma;import{jsx as Qt,jsxs as vs}from"react/jsx-runtime";var fa="k-actionsheet",Ls=[],ks={},Rt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},P=e=>{let{side:t=Rt.side,fullscreen:o=Rt.fullscreen,adaptive:a=Rt.adaptive,overlay:i=Rt.overlay,template:s,children:d,header:c,footer:m,id:u,...b}=e,x=u&&!s&&c?`${u}-title`:void 0;return vs("div",{className:"k-actionsheet-container",children:[i&&Qt(Re,{}),Qt(ke,{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:Qt("div",{...b,id:u,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":x,className:r(e.className,fa,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:s||Qt(Ye,{header:c,footer:m,adaptive:a,titleId:x,...e,children:d})})})]})};P.states=Ls;P.options=ks;P.className=fa;P.defaultOptions=Rt;P.moduleName=Ct;P.folderName=Yt;P.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."}]};import{jsx as ys}from"react/jsx-runtime";var ba="k-actionsheet-container",gs=[],Is={},Ss={},Qe=e=>{let{children:t,...o}=e;return ys("div",{...o,className:ba,children:t})};Qe.states=gs;Qe.options=Is;Qe.className=ba;Qe.defaultOptions=Ss;Qe.moduleName=Ct;Qe.folderName=Yt;import{jsx as Ms}from"react/jsx-runtime";var Uo=e=>{let{...t}=e;return Ms("div",{...t,className:r(e.className,"k-list-ul"),children:e.children})};import{Fragment as As,jsx as wt,jsxs as Vo}from"react/jsx-runtime";var Go="k-actionsheet-item",Ts=[n.hover,n.focus,n.selected,n.disabled],we=e=>{let{iconName:t,text:o,description:a,hover:i,focus:s,selected:d,disabled:c,...m}=e;return Vo("span",{...m,className:r(e.className,Go,T(Go,{hover:i,focus:s,selected:d,disabled:c})),children:[!e.children&&wt(As,{children:Vo("span",{className:"k-actionsheet-action",children:[t&&wt("span",{className:"k-icon-wrap",children:wt(v,{className:"k-actionsheet-item-icon",icon:t})}),Vo("span",{className:"k-actionsheet-item-text",children:[o&&wt("span",{className:"k-actionsheet-item-title",children:o}),a&&wt("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};we.states=Ts;we.className=Go;import{jsx as Eb,jsxs as Ob}from"react/jsx-runtime";import{jsx as Kb}from"react/jsx-runtime";import{jsx as Hb}from"react/jsx-runtime";import{jsx as Ub}from"react/jsx-runtime";import{jsx as H,jsxs as Xo}from"react/jsx-runtime";var Es=P.options,Os=P.states,ha={...P.defaultOptions,variant:"normal"},Cs=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Rs=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Ze=e=>{let{variant:t,modifiers:o,...a}={...ha,...e},i={},s=Xo(Uo,{children:[H(we,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),H(we,{text:"Add to Favorites",iconName:"heart"}),H(we,{text:"Upload New",iconName:"upload",disabled:!0}),H("hr",{className:"k-hr"}),H(we,{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?.[m],i.actionsEnd=!!o?.[m];break;case"subtitle":i.subtitle=o?.[m]?d:void 0;break;case"footer":i.footer=!!o?.[m];break;default:break}}),t==="adaptive"?H(P,{...a,adaptive:!0,fullscreen:i.fullScreen,header:H(xe,{actionsStart:i.actionsStart?H(L,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?H(L,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:i.subtitle}),footer:i.footer?Xo(We,{alignment:"stretched",children:[H(L,{text:"Cancel",size:"large",themeColor:"base"}),H(L,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):H(P,{...a,fullscreen:i.fullScreen,header:H(xe,{actionsStart:i.actionsStart?H(L,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?H(L,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:i.subtitle}),footer:i.footer?Xo(We,{alignment:"stretched",children:[H(L,{text:"Apply",themeColor:"primary"}),H(L,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Ze.options=Es;Ze.states=Os;Ze.variants=Cs;Ze.defaultOptions=ha;Ze.modifiers=Rs;Ze.className=P.className;import Wo from"react";import{jsx as Na}from"react/jsx-runtime";var ws="k-list-group-sticky-header",$o=e=>Na("div",{className:r(ws,e.className),children:Na("div",{className:"k-list-header-text",children:e.children})});import{jsx as Ds}from"react/jsx-runtime";var Ks="k-no-data",qo=e=>{let{live:t,...o}=e;return Ds("span",{...o,className:r(Ks,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Be="list",je=Be;import{jsx as La,jsxs as ka}from"react/jsx-runtime";var Jo="k-list",_s=[],Ps={size:[l.undefined,l.small,l.medium,l.large]},Hs={},K=e=>{let{size:t,virtualization:o,children:a,header:i,selectAll:s,optionLabel:d,customValue:c,noData:m,screenReaders:u,...b}=e,h=Wo.Children.toArray(a)[0],I=h?.props?.children?Wo.Children.count(h.props.children):Wo.Children.count(a);return ka("div",{...b,className:r(e.className,Jo,M(Jo,{size:t}),{"k-virtual-list":o}),children:[d,s,c,i&&La($o,{children:i}),a||(m!==void 0?m:La(qo,{live:!0,children:"No data found."})),u&&a&&ka(qo,{className:"k-sr-only",live:!0,children:[I," items found."]})]})};K.states=_s;K.options=Ps;K.className=Jo;K.defaultOptions=Hs;K.moduleName=Be;K.folderName=je;K.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};import{jsx as Us}from"react/jsx-runtime";var va="k-list-container",zs=[],Bs={},Fs={},et=e=>{let{...t}=e;return Us("div",{...t,className:r(e.className,va),children:e.children})};et.states=zs;et.options=Bs;et.className=va;et.defaultOptions=Fs;et.moduleName=Be;et.folderName=je;var Fe="checkbox",tt=Fe;import{jsx as ga}from"react/jsx-runtime";var Zt="k-checkbox",Vs=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],Gs={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full]},Xs={},W=e=>{let{id:t,checked:o,indeterminate:a,hover:i,focus:s,disabled:d,invalid:c,valid:m,required:u,size:b,rounded:x,wrapperRole:h,...I}=e;return ga("span",{className:"k-checkbox-wrap",role:h,children:ga("input",{...I,id:t,type:"checkbox",defaultChecked:o,required:u,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:r(e.className,Zt,M(Zt,{size:b,rounded:x}),T(Zt,{hover:i,focus:s,disabled:d,invalid:c,valid:m,indeterminate:a,checked:o}))})})};W.states=Vs;W.options=Gs;W.className=Zt;W.defaultOptions=Xs;W.moduleName=Fe;W.folderName=tt;W.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 he=W;import{jsx as Ws}from"react/jsx-runtime";var Ia="k-checkbox-list",$s=[],qs={},Sa={layout:"vertical"},J=e=>{let{layout:t=Sa.layout,...o}=e;return Ws("ul",{...o,className:r(e.className,Ia,{[`k-list-${t}`]:t}),children:e.children})};J.states=$s;J.options=qs;J.className=Ia;J.defaultOptions=Sa;J.moduleName=Fe;J.folderName=tt;import{jsx as Zs}from"react/jsx-runtime";var ya="k-checkbox-list-item",Js=[],Ys={},Qs={},Y=e=>{let{...t}=e;return Zs("li",{...t,className:r(e.className,ya),children:e.children})};Y.states=Js;Y.options=Ys;Y.className=ya;Y.defaultOptions=Qs;Y.moduleName=Fe;Y.folderName=tt;import{Fragment as js,jsx as Ma,jsxs as el}from"react/jsx-runtime";var Se=({children:e="Label",id:t="cb-label-after",...o})=>el(js,{children:[Ma(he,{id:t,...o}),Ma("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as Qx,jsx as Yx,jsxs as Zx}from"react/jsx-runtime";import{Fragment as ih,jsx as oh,jsxs as ah}from"react/jsx-runtime";import{Fragment as dh,jsx as lh,jsxs as ph}from"react/jsx-runtime";import{jsx as fh}from"react/jsx-runtime";import{jsx as Nh}from"react/jsx-runtime";import{jsx as gh}from"react/jsx-runtime";import{jsx as me,jsxs as Ta}from"react/jsx-runtime";var tl=J.options,ol=J.states,il={...J.defaultOptions,variant:"vertical"},al=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],nl=[],ot=e=>{let{variant:t,...o}=e;return t==="horizontal"?Ta(J,{layout:"horizontal",...o,children:[me(Y,{children:me(Se,{id:S("cb"),defaultChecked:!0,children:"Label"})}),me(Y,{children:me(Se,{id:S("cb"),children:"Label"})}),me(Y,{children:me(Se,{id:S("cb"),children:"Label"})})]}):Ta(J,{...o,children:[me(Y,{children:me(Se,{id:S("cb"),defaultChecked:!0,children:"Label"})}),me(Y,{children:me(Se,{id:S("cb"),children:"Label"})}),me(Y,{children:me(Se,{id:S("cb"),children:"Label"})})]})};ot.options=tl;ot.states=ol;ot.variants=al;ot.defaultOptions=il;ot.modifiers=nl;ot.className=J.className;import{jsx as cl}from"react/jsx-runtime";var rl=he.options,sl=he.states,ll=he.defaultOptions,dl=[],pl=[],it=e=>cl(Se,{id:S("checkbox"),...e,defaultChecked:!0,children:"Label"});it.options=rl;it.states=sl;it.variants=dl;it.defaultOptions=ll;it.modifiers=pl;it.className=he.className;import{jsx as Ue,jsxs as bl}from"react/jsx-runtime";var Yo="k-list-item",ml=[n.hover,n.focus,n.selected,n.disabled],ul={},fl={},R=e=>{let{text:t,groupLabel:o,group:a,iconName:i,iconClassName:s,showCheckbox:d,checked:c,hover:m,focus:u,selected:b,disabled:x,actions:h,description:I,id:E,...y}=e,k=t||e.children;return bl("li",{...y,id:E,role:a?"presentation":"option",tabIndex:a?void 0:u?0:-1,"aria-selected":!a&&b?"true":a?void 0:"false","aria-disabled":!a&&x?"true":void 0,className:r(e.className,a?"k-list-group-item":Yo,T(Yo,{hover:m,focus:u,disabled:x,selected:b})),children:[d&&Ue(W,{checked:c}),i&&Ue("span",{className:"k-list-item-icon-wrapper",children:Ue(v,{icon:i,className:r("k-list-item-icon",s)})}),Ue("span",{className:"k-list-item-text",children:k}),h&&Ue("div",{className:"k-list-item-actions",children:h}),I&&Ue("span",{className:"k-list-item-description",children:I}),o&&o!==""&&Ue("div",{className:"k-list-item-group-label",children:o})]})};R.states=ml;R.options=ul;R.className=Yo;R.defaultOptions=fl;R.moduleName=Be;R.folderName=je;R.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."}]};import{jsx as hl}from"react/jsx-runtime";var xl="k-list-ul",Ve=e=>{let{children:t,role:o,id:a,...i}=e;return hl("ul",{...i,id:a,role:o,className:r(xl,e.className),children:t})};Ve.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."}]};import{jsx as Qo,jsxs as Ll}from"react/jsx-runtime";var Nl="k-list-content",Q=e=>{let{virtualization:t,grouping:o,"aria-label":a,"aria-labelledby":i,listboxId:s,...d}=e;return Ll("div",{...d,className:r(Nl,e.className),role:o?"listbox":void 0,id:o?s:void 0,"aria-label":o?a:void 0,"aria-labelledby":o?i:void 0,children:[o?e.children:Qo(Ve,{role:"listbox",id:s,"aria-label":a,"aria-labelledby":i,children:e.children}),t&&Qo("div",{className:"k-height-container",children:Qo("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."}]};import{jsx as Zo,jsxs as Il}from"react/jsx-runtime";var jt="k-list-sticky-header",kl=[n.hover,n.focus,n.selected],vl={},gl={},eo=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:a,indeterminate:i,hover:s,focus:d,selected:c,...m}=e;return Zo("div",{...m,className:r(jt,e.className),children:Il("div",{className:r(`${jt}-item`,T(`${jt}-item`,{hover:s,focus:d,selected:c})),children:[o&&Zo(W,{checked:a,indeterminate:i,"aria-label":t}),Zo("span",{className:"k-list-item-text",children:t})]})})};eo.states=kl;eo.options=vl;eo.className=jt;eo.defaultOptions=gl;import{Fragment as xN,jsx as bN,jsxs as hN}from"react/jsx-runtime";import{jsx as jo,jsxs as yl}from"react/jsx-runtime";var Sl="k-list-group-item",Kt=e=>{let{groupIconName:t,...o}=e;return yl("li",{...o,role:"presentation",className:r(Sl,e.className),children:[t&&jo("span",{className:"k-list-item-icon-wrapper",children:jo(v,{icon:t,className:"k-list-item-icon"})}),jo("span",{className:"k-list-item-text",children:e.children})]})};Kt.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."}]};import{jsx as El}from"react/jsx-runtime";var ei="k-list-optionlabel",Ml=[n.hover,n.focus,n.selected,n.disabled],Tl={},Al={},to=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:s,...d}=e;return El("div",{...d,className:r(ei,T(ei,{hover:o,focus:a,selected:i,disabled:s})),children:t})};to.states=Ml;to.options=Tl;to.className=ei;to.defaultOptions=Al;import{jsx as wl}from"react/jsx-runtime";var ti="k-list-custom-value",Ol=[n.hover,n.focus,n.selected,n.disabled],Cl={},Rl={},oo=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:s,...d}=e;return wl("div",{...d,className:r(ti,T(ti,{hover:o,focus:a,selected:i,disabled:s})),children:t})};oo.states=Ol;oo.options=Cl;oo.className=ti;oo.defaultOptions=Rl;import{Fragment as wN,jsx as RN,jsxs as KN}from"react/jsx-runtime";import{Fragment as BN,jsx as zN,jsxs as FN}from"react/jsx-runtime";import{Fragment as WN,jsx as $N,jsxs as qN}from"react/jsx-runtime";import{Fragment as tL,jsx as jN,jsxs as eL}from"react/jsx-runtime";import{jsx as nL}from"react/jsx-runtime";import{Fragment as cL,jsx as pL,jsxs as mL}from"react/jsx-runtime";var Aa="dropdown-list",Ea="dropdownlist";import{Fragment as _l,jsx as Z,jsxs as oi}from"react/jsx-runtime";var Oa="k-dropdownlist",Kl=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Dl={size:[l.undefined,l.small,l.medium,l.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[f.undefined,f.solid,f.flat,f.outline]},ii={showValue:!0,arrowIconName:"chevron-down"},O=e=>{let{size:t,rounded:o,fillMode:a,arrowIconName:i=ii.arrowIconName,showValue:s=ii.showValue,valueIconName:d,prefix:c,suffix:m,value:u,placeholder:b,hover:x,focus:h,valid:I,invalid:E,required:y,loading:k,disabled:g,readonly:w,popup:F,opened:G,adaptive:be,adaptiveSettings:ge,adaptiveTitle:Pe,adaptiveSubtitle:mn,adaptiveFilter:un,id:vt,activeDescendant:xi,"aria-label":fn,...bn}=e,xn=vt?`${vt}-listbox`:void 0,hi=vt?`${vt}-value`:void 0;return oi(_l,{children:[oi(Ae,{...bn,id:vt,size:t,rounded:o,fillMode:a,hover:x,focus:h,valid:I,invalid:E,required:y,loading:k,disabled:g,readonly:w,className:r(e.className,Oa,{"k-icon-picker":!s&&d}),role:"combobox","aria-haspopup":"listbox","aria-expanded":G?"true":"false","aria-controls":G?xn:void 0,"aria-activedescendant":G&&xi?xi:void 0,"aria-describedby":G?hi:void 0,"aria-disabled":g?"true":void 0,"aria-label":fn,tabIndex:0,children:[Z(de,{children:c}),Z(Tt,{placeholder:b,value:u,showValue:s,valueIconName:d,id:hi}),Z(_,{valid:I,invalid:E,loading:k,disabled:g}),Z(U,{loading:k,disabled:g}),Z(pe,{children:m}),Z(L,{className:"k-input-button",icon:i,size:e.size,fillMode:e.fillMode,"aria-label":b||"Toggle dropdown",tabIndex:-1})]}),G&&F&&Z(Ie,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown suggestions",children:F}),be&&Z(P,{adaptive:!0,...ge,header:Z(xe,{actionsEnd:Z(L,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:un,inputValue:u,inputPlaceholder:b,title:Pe,subtitle:mn}),children:Z("div",{className:"k-list-container",children:Z(K,{size:"large",children:oi(Q,{"aria-label":"Options",children:[Z(R,{text:"List item"}),Z(R,{text:"List item"}),Z(R,{text:"List item"})]})})})})]})};O.states=Kl;O.options=Dl;O.className=Oa;O.defaultOptions=ii;O.moduleName=Aa;O.folderName=Ea;O.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."}]};import{jsx as $L}from"react/jsx-runtime";import{jsx as ZL,jsxs as jL}from"react/jsx-runtime";import{Fragment as lk,jsx as rk,jsxs as sk}from"react/jsx-runtime";import{jsx as uk}from"react/jsx-runtime";import{jsx as Lk,jsxs as kk}from"react/jsx-runtime";import{Fragment as Ek,jsx as Tk,jsxs as Ak}from"react/jsx-runtime";import{jsx as Kk}from"react/jsx-runtime";import{Fragment as Ul,jsx as Ke,jsxs as Ca}from"react/jsx-runtime";var Pl=O.states,Hl=O.defaultOptions,zl=O.options,Bl=[{name:"opened",title:"Opened"}],Fl=[],nt=e=>{let{modifiers:t,...o}=e,a={},i=Ca(Ul,{children:[Ke("div",{className:"k-list-filter",children:Ke(ce,{})}),Ke(K,{style:{width:300},size:o.size,children:Ca(Q,{children:[Ke(R,{children:"List item"}),Ke(R,{children:"List item"}),Ke(R,{children:"List item"})]})})]});return Object.keys(t||{}).forEach(s=>{s==="opened"&&(a.opened=!!t?.[s],a.popup=t?.[s]?i:void 0)}),Ke("div",{children:Ke(O,{placeholder:"Value",style:{width:300},...o,...a})})};nt.options=zl;nt.states=Pl;nt.variants=Fl;nt.defaultOptions=Hl;nt.modifiers=Bl;nt.className=O.className;var Ge="radio",rt=Ge;import{jsx as Ra}from"react/jsx-runtime";var io="k-radio",Vl=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked],Gl={size:[l.undefined,l.small,l.medium,l.large]},Xl={},z=e=>{let{id:t,checked:o,hover:a,focus:i,disabled:s,invalid:d,valid:c,required:m,size:u,...b}=e;return Ra("span",{className:"k-radio-wrap",children:Ra("input",{...b,id:t,type:"radio",checked:o,required:m,disabled:s||void 0,"aria-invalid":d?"true":void 0,className:r(e.className,io,M(io,{size:u}),T(io,{hover:a,focus:i,disabled:s,invalid:d,valid:c,checked:o}))})})};z.states=Vl;z.options=Gl;z.className=io;z.defaultOptions=Xl;z.moduleName=Ge;z.folderName=rt;z.ariaSpec={selector:".k-radio",rules:[{selector:".k-radio",attribute:"type=radio",usage:"Announces the radio type of the input."},{selector:".k-radio",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-radio",attribute:"checked (when checked)",usage:"Boolean attribute that announces the checked state of the radio button."},{selector:".k-radio",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the radio."},{selector:".k-radio",attribute:"disabled=disabled or aria-disabled=true (when disabled)",usage:"Rendered only when the radio input is disabled."},{selector:".k-invalid, .ng-invalid",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the radio button is in a form and announces the invalid state."}]};var ue=z;import{jsx as Wl}from"react/jsx-runtime";var wa="k-radio-list",$l=[],ql={},Ka={layout:"vertical"},B=e=>{let{layout:t=Ka.layout,...o}=e;return Wl("ul",{...o,className:r(e.className,wa,{[`k-list-${t}`]:t}),role:"radiogroup",children:e.children})};B.states=$l;B.options=ql;B.className=wa;B.defaultOptions=Ka;B.moduleName=Ge;B.folderName=rt;B.ariaSpec={selector:".k-radio-list",rules:[{selector:".k-radio-list",attribute:"role=radiogroup",usage:"Announces the radiogroup role of the element."},{selector:".k-radio-list-item",attribute:"role=none",usage:"Due to issues with nested items, forces a no-role state."},{selector:".k-radio",attribute:"readonly or aria-readonly (when readonly)",usage:"The attribute is rendered only when the radio button is read-only."},{selector:".k-radio",attribute:"aria-invalid=true (when invalid)",usage:"The attribute is rendered only when the radio button is in a form and announces the invalid state of the component."},{selector:".k-radio-list-item.k-disabled .k-radio",attribute:"disabled or aria-disabled (when disabled)",usage:"The attribute is rendered only when the radio button is disabled."}]};import{jsx as Zl}from"react/jsx-runtime";var Da="k-radio-list-item",Jl=[],Yl={},Ql={},V=e=>{let{...t}=e;return Zl("li",{...t,className:r(e.className,Da),role:"none",children:e.children})};V.states=Jl;V.options=Yl;V.className=Da;V.defaultOptions=Ql;V.moduleName=Ge;V.folderName=rt;import{jsx as uv}from"react/jsx-runtime";import{Fragment as jl,jsx as _a,jsxs as ed}from"react/jsx-runtime";var ye=({children:e,id:t,...o})=>ed(jl,{children:[_a(ue,{...o,id:t}),_a("label",{className:"k-radio-label",htmlFor:t,children:e})]});import{Fragment as vv,jsx as kv,jsxs as gv}from"react/jsx-runtime";import{Fragment as Av,jsx as Mv,jsxs as Tv}from"react/jsx-runtime";import{Fragment as wv,jsx as Rv,jsxs as Kv}from"react/jsx-runtime";import{Fragment as zv,jsx as Hv,jsxs as Bv}from"react/jsx-runtime";import{Fragment as qv,jsx as $v,jsxs as Wv}from"react/jsx-runtime";import{jsx as Zv}from"react/jsx-runtime";import{jsx as sd}from"react/jsx-runtime";var od=ue.options,id=ue.states,ad=ue.defaultOptions,nd=[],rd