@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 52.3 kB
JavaScript
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...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 I=(e,t)=>n({[`${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"}),k=(e,t)=>{let{valid:o,invalid:a,hover:i,focus:r,checked:d,active:c,selected:p,disabled:u,indeterminate:f,loading:h,empty:N,readonly:E,highlighted:H,...C}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":i,"k-focus":r,"k-checked":d,"k-active":c,"k-selected":p,"k-disabled":u,"k-indeterminate":f&&!d,"k-loading":h,"k-empty":N,"k-readonly":E,"k-highlighted":H},Object.keys(C).reduce((S,M)=>(M.startsWith("k-")?S[M]=C[M]:S[`k-${M}`]=C[M],S),{}))};function Ro(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"},m={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},L={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},ee={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},b={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},s={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var Kt={};function v(e){return Kt[e]=(Kt[e]||0)+1,`k-${e}-${Kt[e]}`}var Ko="form",wo="forms";import{Fragment as _o,jsx as ut,jsxs as sa}from"react/jsx-runtime";var ft="k-form",aa=[],na={size:[l.undefined,l.small,l.medium,l.large]},wt={layout:"basic",tag:"form"},$=e=>{let{size:t,orientation:o,layout:a=wt.layout,formButtons:i,cols:r,gutters:d,tag:c=wt.tag,children:p}=e,u=c,f=n(e.className,ft,I(ft,{size:t}),{[`${ft}-${o}`]:o}),h=sa(_o,{children:[a==="grid"?ut("div",{className:n("k-form-layout","k-d-grid",{[`k-grid-cols-${r}`]:r}),style:{...typeof d=="string"&&{gap:d},...typeof d=="object"&&d.rows&&{rowGap:d.rows},...typeof d=="object"&&d.cols&&{columnGap:d.cols}},children:p}):ut(_o,{children:p}),i&&ut("div",{className:"k-form-buttons",children:i})]}),{role:N,"aria-labelledby":E,"aria-label":H,id:C}=e;return ut(u,{className:f,role:N,"aria-labelledby":E,"aria-label":H,id:C,children:h})};$.states=aa;$.options=na;$.className=ft;$.defaultOptions=wt;$.moduleName=Ko;$.folderName=wo;import{Fragment as ra,jsx as _t,jsxs as la}from"react/jsx-runtime";var Ho="k-form-fieldset",Ht=e=>{let{legend:t,layout:o,cols:a,gutters:i,colSpan:r}=e;return la("fieldset",{className:n(Ho,{[`k-col-span-${r}`]:r}),children:[t&&_t("legend",{className:"k-form-legend",children:t}),o==="grid"?_t("div",{className:n("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}):_t(ra,{children:e.children})]})};Ht.className=Ho;var Po="label",Do="label";import{jsx as Bo,jsxs as ma}from"react/jsx-runtime";var Pt="k-label",da=[s.disabled],ca={},pa={},ce=e=>{let{disabled:t,optional:o,info:a,text:i,children:r,...d}=e;return ma("label",{...d,className:n(e.className,Pt,k(Pt,{disabled:t})),children:[i||r,o&&Bo("span",{className:"k-label-optional",children:"(Optional)"}),a&&Bo("span",{className:"k-field-info",children:a})]})};ce.states=da;ce.options=ca;ce.className=Pt;ce.defaultOptions=pa;ce.moduleName=Po;ce.folderName=Do;import{jsx as ha}from"react/jsx-runtime";var zo="k-form-hint",ua=[],fa={},ba={},ye=e=>{let{text:t,children:o,...a}=e;return ha("div",{...a,className:n(e.className,zo),children:t||o})};ye.states=ua;ye.options=fa;ye.className=zo;ye.defaultOptions=ba;import{jsx as va}from"react/jsx-runtime";var Fo="k-form-error",xa=[],La={},Na={},Ee=e=>{let{text:t,children:o,...a}=e;return va("div",{...a,className:n(e.className,Fo),children:t||o})};Ee.states=xa;Ee.options=La;Ee.className=Fo;Ee.defaultOptions=Na;import{jsx as bt,jsxs as Uo}from"react/jsx-runtime";var Dt="k-form-field",ga=[s.disabled],Ce=e=>{let{editorId:t,label:o,orientation:a,optional:i,editor:r,hint:d,error:c,info:p,disabled:u,dir:f,colSpan:h,...N}=e;return Uo("div",{...N,className:n(Dt,e.className,k(Dt,{disabled:u}),{[`k-col-span-${h}`]:h}),dir:f,children:[o&&bt(ce,{className:"k-form-label",id:t?`${t}-label`:void 0,htmlFor:t||void 0,optional:i,info:p?"(field info)":void 0,children:o}),a==="horizontal"&&!o&&bt("span",{className:"k-label k-form-label k-label-empty"}),Uo("div",{className:"k-form-field-wrap",children:[r,d&&bt(ye,{id:t?`${t}-hint`:void 0,children:d}),c&&bt(Ee,{id:t?`${t}-error`:void 0,children:c})]})]})};Ce.states=ga;Ce.className=Dt;import{Fragment as Sa,jsx as Go}from"react/jsx-runtime";var Bt="k-font-icon",Ia=[],ka={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[b.undefined,b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info]},Aa={},tt=e=>{let{size:t,themeColor:o,icon:a,rotate:i,flip:r,...d}=e;return a?Go("span",{...d,className:n(e.className,Bt,I(Bt,{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"}):Go(Sa,{})};tt.states=Ia;tt.options=ka;tt.className=Bt;tt.defaultOptions=Aa;var Vo=tt;import{Fragment as Ca,jsx as ht}from"react/jsx-runtime";var zt="k-svg-icon",ya=[],Ea={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[b.undefined,b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info],variant:[ee.outline,ee.solid,ee.duotone]},Ft={viewBox:"0 0 24 24",variant:ee.outline},ot=e=>{let{size:t,themeColor:o,rotate:a,flip:i,viewBox:r=Ft.viewBox,variant:d=Ft.variant,icon:c,...p}=e;if(!c)return ht(Ca,{});if(c==="none")return ht("span",{...p,className:n(e.className,zt,I("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let u=typeof c=="object"&&c.name&&c.name,f=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return ht("span",{...p,className:n(e.className,zt,I("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:ht("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:r,dangerouslySetInnerHTML:f!==void 0?{__html:f}:void 0,children:c?void 0:e.children})})};ot.states=ya;ot.options=Ea;ot.className=zt;ot.defaultOptions=Ft;var Ut=ot;import*as Gt from"@progress/kendo-svg-icons";var $o="icon",Xo="icons";import{useContext as Oa}from"react";import{createContext as Ma}from"react";var Wo=Ma({iconsType:"svg"});import{Fragment as qo,jsx as it}from"react/jsx-runtime";var xt="k-icon",Ta=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ra=[],Ka={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[b.undefined,b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info],variant:[ee.outline,ee.solid,ee.duotone]},Lt={viewBox:"0 0 24 24",type:"svg",variant:ee.outline},g=e=>{let{iconsType:t}=Oa(Wo),{size:o,themeColor:a,icon:i,type:r=t||Lt.type,rotate:d,flip:c,viewBox:p=Lt.viewBox,variant:u=Lt.variant,...f}=e;if(!i)return it(qo,{});if((t||r)==="svg"){if(i==="none")return it(Ut,{...f,className:n(e.className,xt),icon:i,size:o,variant:u});let N=Gt[i]?i:Ta(`${i}-icon`);return Gt[N]?it(Ut,{...f,className:n(e.className,xt),icon:Gt[N],size:o,themeColor:a,rotate:d,flip:c,viewBox:p,variant:u}):it(qo,{})}return it(Vo,{...f,className:n(e.className,xt),icon:i,size:o,themeColor:a,rotate:d,flip:c})};g.states=Ra;g.options=Ka;g.defaultOptions=Lt;g.className=xt;g.moduleName=$o;g.folderName=Xo;g.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 Vt="button",Jo=Vt;import{Fragment as Yo,jsx as Me,jsxs as Qo}from"react/jsx-runtime";var at="k-button",wa=["icon-button"],_a=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],Ha={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[L.undefined,L.solid,L.flat,L.outline,L.clear,L.link],themeColor:[b.undefined,b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.inverse]},$t={showArrow:!1,arrowIconName:"chevron-down"},x=e=>{let{as:t="button",size:o,rounded:a,fillMode:i,themeColor:r,showArrow:d=$t.showArrow,arrowIconName:c=$t.arrowIconName,variant:p,hover:u,focus:f,active:h,selected:N,disabled:E,togglable:H,ariaDisabled:C,icon:S,iconSize:M,text:V,iconClassName:Le,className:ae,...Qe}=e,Ze=S!=null,je=e.children!==void 0;return Qo(t,{className:n(ae,at,Ro(at,p),I(at,{size:o,rounded:a,fillMode:i,themeColor:r}),k(at,{hover:u,focus:f,active:h,disabled:E||C,selected:N}),{"k-icon-button":!V&&!je&&Ze}),"aria-pressed":H?N?"true":"false":void 0,...Qe,"aria-disabled":C?"true":void 0,disabled:E||void 0,children:[typeof S=="string"&&S&&Me(g,{className:n(Le,"k-button-icon"),icon:S,size:M}),S&&typeof S!="string"&&Me(Yo,{children:S}),V?Qo(Yo,{children:[V&&Me("span",{className:"k-button-text",children:V}),e.children]}):e.children&&Me("span",{className:"k-button-text",children:e.children}),d&&Me("span",{className:"k-menu-button-arrow k-button-arrow",children:Me(g,{icon:c})})]})};x.states=_a;x.options=Ha;x.variants=wa;x.className=at;x.defaultOptions=$t;x.moduleName=Vt;x.folderName=Jo;x.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 Pa}from"react/jsx-runtime";var Zo=e=>Pa(x,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Da}from"react/jsx-runtime";var jo=e=>Da(x,{icon:"folder",children:"Button",...e});import{jsx as Ba}from"react/jsx-runtime";var Ne=e=>Ba(x,{children:"Button",...e});import{jsx as Xt}from"react/jsx-runtime";var za=x.options,Fa=x.states,Ua={...x.defaultOptions,variant:"text"},Ga=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Va=[],Oe=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Xt(Zo,{...o,icon:"star"});case"icon-and-text":return Xt(jo,{...o,icon:"star",children:"Button"});default:return Xt(Ne,{...o,children:"Button"})}};Oe.options=za;Oe.states=Fa;Oe.variants=Ga;Oe.defaultOptions=Ua;Oe.modifiers=Va;Oe.className=x.className;var nt="input",Nt=nt;import{jsx as qa}from"react/jsx-runtime";var vt="k-input",$a=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Xa={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},Wa={},w=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:r,loading:d,readonly:c,size:p,rounded:u,fillMode:f,...h}=e;return qa("span",{...h,className:n(e.className,vt,I(vt,{size:p,rounded:u,fillMode:f}),k(vt,{hover:t,focus:o,disabled:a,invalid:i,valid:r,loading:d,readonly:c}))})};w.states=$a;w.options=Xa;w.className=vt;w.defaultOptions=Wa;w.moduleName=nt;w.folderName=Nt;import{jsx as Za}from"react/jsx-runtime";var gt="k-picker",Ja=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ya={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},Qa={},pe=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:r,loading:d,readonly:c,size:p,rounded:u,fillMode:f,...h}=e;return Za("span",{...h,className:n(e.className,gt,I(gt,{size:p,rounded:u,fillMode:f}),k(gt,{hover:t,focus:o,disabled:a,invalid:i,valid:r,loading:d,readonly:c})),children:e.children})};pe.states=Ja;pe.options=Ya;pe.className=gt;pe.defaultOptions=Qa;pe.moduleName=nt;pe.folderName=Nt;import{Fragment as tn,jsx as Wt}from"react/jsx-runtime";var ei="k-clear-value",ja=[s.disabled,s.loading,s.readonly],en={},ne=e=>{let{disabled:t,loading:o,readonly:a,value:i}=e;return t||a||o||!i?Wt(tn,{}):Wt("span",{className:n(e.className,ei),children:Wt(g,{icon:"x"})})};ne.states=ja;ne.options=en;ne.className=ei;import{jsx as nn}from"react/jsx-runtime";var qt="k-input-inner",on=[],an={},It={type:"text",autocomplete:"off",value:"",placeholder:""},se=e=>{let{value:t=It.value,type:o=It.type,placeholder:a=It.placeholder,autocomplete:i=It.autocomplete,disabled:r,readOnly:d,...c}=e;return nn("input",{...c,type:o,className:n(e.className,qt,I(qt,e)),placeholder:a,autoComplete:i,defaultValue:t,disabled:r||void 0,readOnly:d||void 0})};se.states=on;se.options=an;se.className=qt;import{jsx as ti,jsxs as ln}from"react/jsx-runtime";var Jt="k-input-inner",sn=[],rn={},st=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:i,valueIconName:r,...d}=e;return ln("span",{...d,className:n(e.className,Jt,I(Jt,e)),children:[i,!i&&r&&ti(g,{className:"k-input-value-icon",icon:r}),a&&!t&&o,a&&t&&ti("span",{className:"k-input-value-text",children:t})]})};st.states=sn;st.options=rn;st.className=Jt;import{jsx as pn}from"react/jsx-runtime";var Yt="k-input-inner",dn=[],cn={},oi={value:"",placeholder:""},Qt=e=>{let{value:t=oi.value,placeholder:o=oi.placeholder,rows:a,disabled:i,...r}=e;return pn("textarea",{...r,className:n(e.className,Yt,I(Yt,e)),placeholder:o,rows:a,defaultValue:t,disabled:i||void 0})};Qt.states=dn;Qt.options=cn;Qt.className=Yt;import{Fragment as un,jsx as ii}from"react/jsx-runtime";var ai="k-input-loading-icon",mn=[s.disabled,s.loading],te=e=>{let{disabled:t,loading:o}=e;return t||!o?ii(un,{}):ii("span",{className:n(e.className,ai,"k-icon k-i-loading")})};te.states=mn;te.className=ai;import{Fragment as hn,jsx as ni}from"react/jsx-runtime";var si="k-input-validation-icon",fn=[s.valid,s.invalid,s.disabled,s.loading],bn={},Q=e=>{let{valid:t,invalid:o,disabled:a,loading:i}=e,r=o?"warning-circle":"check-circle";return a||i||!!!(t||o)?ni(hn,{}):ni(g,{className:n(si),icon:r})};Q.states=fn;Q.options=bn;Q.className=si;import{Fragment as Nn,jsx as ri}from"react/jsx-runtime";var xn="k-input-prefix",Ln={direction:"horizontal"},Te=e=>{let{direction:t=Ln.direction,...o}=e;return e.children?ri("span",{...o,className:n(xn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ri(Nn,{})};import{Fragment as In,jsx as li}from"react/jsx-runtime";var vn="k-input-suffix",gn={direction:"horizontal"},Re=e=>{let{direction:t=gn.direction,...o}=e;return e.children?li("span",{...o,className:n(vn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):li(In,{})};import{jsx as Nc}from"react/jsx-runtime";import{jsx as kc}from"react/jsx-runtime";import{jsx as An}from"react/jsx-runtime";var di="k-input-separator",kn={direction:"vertical"},Ke=e=>{let{direction:t=kn.direction,...o}=e;return An("span",{...o,className:n(di,e.className,{[`${di}-${t}`]:t})})};import{Fragment as ci,jsx as oe,jsxs as Zt}from"react/jsx-runtime";var Sn=w.states,yn=w.defaultOptions,En=w.options,Cn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Mn=[],we=e=>{let{modifiers:t,valid:o,invalid:a,loading:i,disabled:r,readonly:d,...c}=e,p=t?.prefix,u=t?.suffix,f=t?.["clear-button"],h=t?.["validation-icon"],N=t?.separators;return Zt(w,{...c,valid:o,invalid:a,loading:i,disabled:r,readonly:d,style:{width:300},children:[p&&Zt(ci,{children:[oe(Te,{children:oe(g,{icon:"lock"})}),N&&oe(Ke,{})]}),oe(se,{placeholder:"Placeholder",value:"Value"}),h&&oe(Q,{valid:o,invalid:a,loading:i,disabled:r}),oe(te,{loading:i,disabled:r}),f&&oe(ne,{loading:i,disabled:r,readonly:d,value:"Value"}),u&&Zt(ci,{children:[N&&oe(Ke,{}),oe(Re,{children:oe(Ne,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};we.options=En;we.states=Sn;we.variants=Mn;we.defaultOptions=yn;we.modifiers=Cn;we.className=w.className;var jt="popup",pi=jt;import{jsx as mi}from"react/jsx-runtime";var ui="k-animation-container",On=[],Tn={},eo={positionMode:"absolute",shown:!0},ie=e=>{let{positionMode:t=eo.positionMode,shown:o=eo.shown,animationStyle:a,offset:i,...r}=e;return mi("div",{...r,style:{...i,...e.style},className:n(e.className,ui,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:mi("div",{className:"k-child-animation-container",style:a,children:e.children})})};ie.states=On;ie.options=Tn;ie.className=ui;ie.defaultOptions=eo;ie.moduleName=jt;ie.folderName=pi;var to="popup",fi=to;import{jsx as bi}from"react/jsx-runtime";var hi="k-popup",Rn=[],Kn={},xi={positionMode:"absolute"},re=e=>{let{offset:t,positionMode:o=xi.positionMode,animationStyle:a,containerClassName:i,containerRole:r,containerAriaLabel:d,...c}=e;return bi(ie,{positionMode:o,offset:t,animationStyle:a,className:i,role:r,"aria-label":d,children:bi("div",{...c,className:n(e.className,hi),children:e.children})})};re.states=Rn;re.options=Kn;re.className=hi;re.defaultOptions=xi;re.moduleName=to;re.folderName=fi;re.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var oo="action-buttons",Li=oo;import{jsx as Hn}from"react/jsx-runtime";var kt="k-actions",wn=[],_n={},io={alignment:"start",orientation:"horizontal"},me=e=>{let{alignment:t=io.alignment,orientation:o=io.orientation,...a}=e;return Hn("div",{...a,className:n(kt,{[`${kt}-${t}`]:t,[`${kt}-${o}`]:o},e.className),children:e.children})};me.states=wn;me.options=_n;me.className=kt;me.defaultOptions=io;me.moduleName=oo;me.folderName=Li;import{jsx as Dn}from"react/jsx-runtime";var Pn="k-actionsheet-footer",Ni={alignment:"stretched",orientation:"horizontal"},_e=e=>{let{alignment:t=Ni.alignment,orientation:o=Ni.orientation,template:a,as:i=a?"div":me,...r}=e;return Dn(i,{...r,...!a&&{alignment:t,orientation:o},className:n(e.className,Pn),children:e.children})};var ao="searchbox",vi=ao;import{jsx as rt,jsxs as Fn}from"react/jsx-runtime";var gi="k-searchbox",Bn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],zn={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},no={showIcon:!0,icon:"search"},X=e=>{let{value:t,placeholder:o,size:a,rounded:i,fillMode:r,hover:d,focus:c,valid:p,invalid:u,required:f,loading:h,disabled:N,showIcon:E=no.showIcon,icon:H=no.icon,"aria-label":C,...S}=e;return Fn(w,{...S,size:a,rounded:i,fillMode:r,hover:d,focus:c,valid:p,invalid:u,required:f,loading:h,disabled:N,className:n(e.className,gi),children:[E&&rt(g,{className:"k-input-icon",icon:H}),rt(se,{placeholder:o,value:t,"aria-label":C}),rt(te,{...e}),rt(Q,{...e}),rt(ne,{...e})]})};X.states=Bn;X.options=zn;X.className=gi;X.defaultOptions=no;X.moduleName=ao;X.folderName=vi;import{jsx as Bp}from"react/jsx-runtime";var so="textbox",Ii=so;import{Fragment as ki,jsx as ue,jsxs as ro}from"react/jsx-runtime";var Ai="k-textbox",Un=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Gn={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},At={showClearButton:!0,showValidationIcon:!0,separators:!0},O=e=>{let{size:t,rounded:o,fillMode:a,separators:i=At.separators,showClearButton:r=At.showClearButton,showValidationIcon:d=At.showValidationIcon,prefix:c,suffix:p,type:u,value:f,placeholder:h,hover:N,focus:E,valid:H,invalid:C,required:S,loading:M,disabled:V,readonly:Le,id:ae,"aria-label":Qe,"aria-describedby":Ze,...je}=e;return ro(w,{...je,size:t,rounded:o,fillMode:a,hover:N,focus:E,valid:H,invalid:C,required:S,loading:M,disabled:V,readonly:Le,className:n(e.className,Ai),children:[c&&ro(ki,{children:[ue(Te,{children:c}),i&&ue(Ke,{})]}),ue(se,{id:ae,placeholder:h,value:f,type:u,disabled:V,"aria-label":Qe,"aria-describedby":Ze,"aria-invalid":C?"true":void 0}),d&&ue(Q,{valid:H,invalid:C,loading:M,disabled:V}),ue(te,{loading:M,disabled:V}),r&&ue(ne,{loading:M,disabled:V,readonly:Le,value:f}),p&&ro(ki,{children:[i&&ue(Ke,{}),ue(Re,{children:p})]})]})};O.states=Un;O.options=Gn;O.className=Ai;O.defaultOptions=At;O.moduleName=so;O.folderName=Ii;O.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 lt=O;import{jsx as Vn}from"react/jsx-runtime";var Si=e=>Vn(lt,{...e});import{Fragment as im,jsx as om}from"react/jsx-runtime";import{Fragment as dm,jsx as lm}from"react/jsx-runtime";import{jsx as um}from"react/jsx-runtime";import{jsx as lo}from"react/jsx-runtime";var $n=O.states,Xn=O.defaultOptions,Wn=O.options,qn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Jn=[],He=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":a.prefix=t?.[i]?lo(g,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[i]?lo(Ne,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[i];break;default:break}}),lo(Si,{value:"Value",style:{width:300},...o,...a})};He.options=Wn;He.states=$n;He.variants=Jn;He.defaultOptions=Xn;He.modifiers=qn;He.className=O.className;import{jsx as fe,jsxs as co}from"react/jsx-runtime";var yi="k-actionsheet-titlebar",Yn={},Z=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:i,filter:r,input:d,inputValue:c,inputPlaceholder:p,adaptive:u,titleId:f,children:h,...N}=e;return co("div",{...N,className:n(e.className,yi),children:[co("div",{className:"k-actionsheet-titlebar-group",children:[a&&fe("div",{className:"k-actionsheet-actions",children:a}),!h&&co("div",{className:"k-actionsheet-title",id:f,children:[t&&fe("div",{className:"k-text-center",children:t}),o&&fe("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&fe("div",{className:"k-actionsheet-title",id:f,children:h}),i&&fe("div",{className:"k-actionsheet-actions",children:i})]}),(d||r)&&fe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?fe(O,{value:c,placeholder:p,size:u?"large":"medium","aria-label":t||p||"Input"}):fe(X,{placeholder:"Filter",size:u?"large":"medium","aria-label":"Filter options"})})]})};Z.className=yi;Z.defaultOptions=Yn;import{jsx as po,jsxs as es}from"react/jsx-runtime";var mo="k-actionsheet-view",Qn=[],Zn={},jn={},Pe=e=>{let{adaptive:t,animated:o,children:a,header:i,footer:r,titleId:d,...c}=e,p=i?.type===Z&&po(Z,{adaptive:t,titleId:d,...i?.props}),u=r?.type===_e&&po(_e,{...r?.props});return es("div",{...c,className:n(e.className,mo,{[`${mo}-animated`]:o}),children:[p,po("div",{className:"k-actionsheet-content",children:a}),u]})};Pe.states=Qn;Pe.options=Zn;Pe.className=mo;Pe.defaultOptions=jn;var dt="action-sheet",St=dt;var uo="overlay",Ei=uo;import{jsx as as}from"react/jsx-runtime";var Ci="k-overlay",ts=[],os={},is={},be=e=>{let{...t}=e;return as("div",{...t,className:n(e.className,Ci),children:e.children})};be.states=ts;be.options=os;be.className=Ci;be.defaultOptions=is;be.moduleName=uo;be.folderName=Ei;import{jsx as yt,jsxs as rs}from"react/jsx-runtime";var Mi="k-actionsheet",ns=[],ss={},ct={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},T=e=>{let{side:t=ct.side,fullscreen:o=ct.fullscreen,adaptive:a=ct.adaptive,overlay:i=ct.overlay,template:r,children:d,header:c,footer:p,id:u,...f}=e,h=u&&!r&&c?`${u}-title`:void 0;return rs("div",{className:"k-actionsheet-container",children:[i&&yt(be,{}),yt(ie,{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:yt("div",{...f,id:u,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":h,className:n(e.className,Mi,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:r||yt(Pe,{header:c,footer:p,adaptive:a,titleId:h,...e,children:d})})})]})};T.states=ns;T.options=ss;T.className=Mi;T.defaultOptions=ct;T.moduleName=dt;T.folderName=St;T.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};import{jsx as ps}from"react/jsx-runtime";var Oi="k-actionsheet-container",ls=[],ds={},cs={},De=e=>{let{children:t,...o}=e;return ps("div",{...o,className:Oi,children:t})};De.states=ls;De.options=ds;De.className=Oi;De.defaultOptions=cs;De.moduleName=dt;De.folderName=St;import{jsx as ms}from"react/jsx-runtime";var fo=e=>{let{...t}=e;return ms("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as fs,jsx as pt,jsxs as bo}from"react/jsx-runtime";var ho="k-actionsheet-item",us=[s.hover,s.focus,s.selected,s.disabled],he=e=>{let{iconName:t,text:o,description:a,hover:i,focus:r,selected:d,disabled:c,...p}=e;return bo("span",{...p,className:n(e.className,ho,k(ho,{hover:i,focus:r,selected:d,disabled:c})),children:[!e.children&&pt(fs,{children:bo("span",{className:"k-actionsheet-action",children:[t&&pt("span",{className:"k-icon-wrap",children:pt(g,{className:"k-actionsheet-item-icon",icon:t})}),bo("span",{className:"k-actionsheet-item-text",children:[o&&pt("span",{className:"k-actionsheet-item-title",children:o}),a&&pt("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};he.states=us;he.className=ho;import{jsx as mu,jsxs as uu}from"react/jsx-runtime";import{jsx as xu}from"react/jsx-runtime";import{jsx as gu}from"react/jsx-runtime";import{jsx as Su}from"react/jsx-runtime";import{jsx as R,jsxs as xo}from"react/jsx-runtime";var bs=T.options,hs=T.states,Ri={...T.defaultOptions,variant:"normal"},xs=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Ls=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Be=e=>{let{variant:t,modifiers:o,...a}={...Ri,...e},i={},r=xo(fo,{children:[R(he,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),R(he,{text:"Add to Favorites",iconName:"heart"}),R(he,{text:"Upload New",iconName:"upload",disabled:!0}),R("hr",{className:"k-hr"}),R(he,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(i.fullScreen=!0),Object.keys(o||{}).forEach(p=>{switch(p){case"actions":i.actionsStart=!!o?.[p],i.actionsEnd=!!o?.[p];break;case"subtitle":i.subtitle=o?.[p]?d:void 0;break;case"footer":i.footer=!!o?.[p];break;default:break}}),t==="adaptive"?R(T,{...a,adaptive:!0,fullscreen:i.fullScreen,header:R(Z,{actionsStart:i.actionsStart?R(x,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?R(x,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:i.subtitle}),footer:i.footer?xo(_e,{alignment:"stretched",children:[R(x,{text:"Cancel",size:"large",themeColor:"base"}),R(x,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):R(T,{...a,fullscreen:i.fullScreen,header:R(Z,{actionsStart:i.actionsStart?R(x,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?R(x,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:i.subtitle}),footer:i.footer?xo(_e,{alignment:"stretched",children:[R(x,{text:"Apply",themeColor:"primary"}),R(x,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};Be.options=bs;Be.states=hs;Be.variants=xs;Be.defaultOptions=Ri;Be.modifiers=Ls;Be.className=T.className;import vo from"react";import{jsx as Ki}from"react/jsx-runtime";var Ns="k-list-group-sticky-header",Lo=e=>Ki("div",{className:n(Ns,e.className),children:Ki("div",{className:"k-list-header-text",children:e.children})});import{jsx as gs}from"react/jsx-runtime";var vs="k-no-data",No=e=>{let{live:t,...o}=e;return gs("span",{...o,className:n(vs,e.className),"aria-live":t?"polite":void 0,children:e.children})};var ve="list",ze=ve;import{jsx as wi,jsxs as _i}from"react/jsx-runtime";var go="k-list",Is=[],ks={size:[l.undefined,l.small,l.medium,l.large]},As={},y=e=>{let{size:t,virtualization:o,children:a,header:i,selectAll:r,optionLabel:d,customValue:c,noData:p,screenReaders:u,...f}=e,N=vo.Children.toArray(a)[0],E=N?.props?.children?vo.Children.count(N.props.children):vo.Children.count(a);return _i("div",{...f,className:n(e.className,go,I(go,{size:t}),{"k-virtual-list":o}),children:[d,r,c,i&&wi(Lo,{children:i}),a||(p!==void 0?p:wi(No,{live:!0,children:"No data found."})),u&&a&&_i(No,{className:"k-sr-only",live:!0,children:[E," items found."]})]})};y.states=Is;y.options=ks;y.className=go;y.defaultOptions=As;y.moduleName=ve;y.folderName=ze;y.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 Cs}from"react/jsx-runtime";var Hi="k-list-container",Ss=[],ys={},Es={},Fe=e=>{let{...t}=e;return Cs("div",{...t,className:n(e.className,Hi),children:e.children})};Fe.states=Ss;Fe.options=ys;Fe.className=Hi;Fe.defaultOptions=Es;Fe.moduleName=ve;Fe.folderName=ze;var ge="checkbox",Ue=ge;import{jsx as Pi}from"react/jsx-runtime";var Et="k-checkbox",Ms=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],Os={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full]},Ts={},G=e=>{let{id:t,checked:o,indeterminate:a,hover:i,focus:r,disabled:d,invalid:c,valid:p,required:u,size:f,rounded:h,wrapperRole:N,...E}=e;return Pi("span",{className:"k-checkbox-wrap",role:N,children:Pi("input",{...E,id:t,type:"checkbox",defaultChecked:o,required:u,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:n(e.className,Et,I(Et,{size:f,rounded:h}),k(Et,{hover:i,focus:r,disabled:d,invalid:c,valid:p,indeterminate:a,checked:o}))})})};G.states=Ms;G.options=Os;G.className=Et;G.defaultOptions=Ts;G.moduleName=ge;G.folderName=Ue;G.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 j=G;import{jsx as ws}from"react/jsx-runtime";var Di="k-checkbox-list",Rs=[],Ks={},Bi={layout:"vertical"},P=e=>{let{layout:t=Bi.layout,...o}=e;return ws("ul",{...o,className:n(e.className,Di,{[`k-list-${t}`]:t}),children:e.children})};P.states=Rs;P.options=Ks;P.className=Di;P.defaultOptions=Bi;P.moduleName=ge;P.folderName=Ue;import{jsx as Ds}from"react/jsx-runtime";var zi="k-checkbox-list-item",_s=[],Hs={},Ps={},D=e=>{let{...t}=e;return Ds("li",{...t,className:n(e.className,zi),children:e.children})};D.states=_s;D.options=Hs;D.className=zi;D.defaultOptions=Ps;D.moduleName=ge;D.folderName=Ue;import{Fragment as Bs,jsx as Fi,jsxs as zs}from"react/jsx-runtime";var le=({children:e="Label",id:t="cb-label-after",...o})=>zs(Bs,{children:[Fi(j,{id:t,...o}),Fi("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as _f,jsx as wf,jsxs as Hf}from"react/jsx-runtime";import{Fragment as Ff,jsx as zf,jsxs as Uf}from"react/jsx-runtime";import{Fragment as Wf,jsx as Xf,jsxs as qf}from"react/jsx-runtime";import{jsx as Zf}from"react/jsx-runtime";import{jsx as ob}from"react/jsx-runtime";import{jsx as sb}from"react/jsx-runtime";import{jsx as W,jsxs as Ui}from"react/jsx-runtime";var Fs=P.options,Us=P.states,Gs={...P.defaultOptions,variant:"vertical"},Vs=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],$s=[],Ge=e=>{let{variant:t,...o}=e;return t==="horizontal"?Ui(P,{layout:"horizontal",...o,children:[W(D,{children:W(le,{id:v("cb"),defaultChecked:!0,children:"Label"})}),W(D,{children:W(le,{id:v("cb"),children:"Label"})}),W(D,{children:W(le,{id:v("cb"),children:"Label"})})]}):Ui(P,{...o,children:[W(D,{children:W(le,{id:v("cb"),defaultChecked:!0,children:"Label"})}),W(D,{children:W(le,{id:v("cb"),children:"Label"})}),W(D,{children:W(le,{id:v("cb"),children:"Label"})})]})};Ge.options=Fs;Ge.states=Us;Ge.variants=Vs;Ge.defaultOptions=Gs;Ge.modifiers=$s;Ge.className=P.className;import{jsx as Qs}from"react/jsx-runtime";var Xs=j.options,Ws=j.states,qs=j.defaultOptions,Js=[],Ys=[],Ve=e=>Qs(le,{id:v("checkbox"),...e,defaultChecked:!0,children:"Label"});Ve.options=Xs;Ve.states=Ws;Ve.variants=Js;Ve.defaultOptions=qs;Ve.modifiers=Ys;Ve.className=j.className;import{jsx as Ie,jsxs as tr}from"react/jsx-runtime";var Io="k-list-item",Zs=[s.hover,s.focus,s.selected,s.disabled],js={},er={},A=e=>{let{text:t,groupLabel:o,group:a,iconName:i,iconClassName:r,showCheckbox:d,checked:c,hover:p,focus:u,selected:f,disabled:h,actions:N,description:E,id:H,...C}=e,S=t||e.children;return tr("li",{...C,id:H,role:a?"presentation":"option",tabIndex:a?void 0:u?0:-1,"aria-selected":!a&&f?"true":a?void 0:"false","aria-disabled":!a&&h?"true":void 0,className:n(e.className,a?"k-list-group-item":Io,k(Io,{hover:p,focus:u,disabled:h,selected:f})),children:[d&&Ie(G,{checked:c}),i&&Ie("span",{className:"k-list-item-icon-wrapper",children:Ie(g,{icon:i,className:n("k-list-item-icon",r)})}),Ie("span",{className:"k-list-item-text",children:S}),N&&Ie("div",{className:"k-list-item-actions",children:N}),E&&Ie("span",{className:"k-list-item-description",children:E}),o&&o!==""&&Ie("div",{className:"k-list-item-group-label",children:o})]})};A.states=Zs;A.options=js;A.className=Io;A.defaultOptions=er;A.moduleName=ve;A.folderName=ze;A.ariaSpec={selector:".k-list-item",rules:[{selector:".k-list-item",attribute:"role=option",usage:"Each list item is an option in the listbox."},{selector:".k-list-item",attribute:"id",usage:"ID for aria-activedescendant reference."},{selector:".k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state of the option."},{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-item-icon",attribute:"aria-hidden=true",usage:"Decorative icons are hidden from assistive technology."}]};import{jsx as ir}from"react/jsx-runtime";var or="k-list-ul",ke=e=>{let{children:t,role:o,id:a,...i}=e;return ir("ul",{...i,id:a,role:o,className:n(or,e.className),children:t})};ke.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 ko,jsxs as nr}from"react/jsx-runtime";var ar="k-list-content",B=e=>{let{virtualization:t,grouping:o,"aria-label":a,"aria-labelledby":i,listboxId:r,...d}=e;return nr("div",{...d,className:n(ar,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:ko(ke,{role:"listbox",id:r,"aria-label":a,"aria-labelledby":i,children:e.children}),t&&ko("div",{className:"k-height-container",children:ko("div",{})})]})};B.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 Ao,jsxs as dr}from"react/jsx-runtime";var Ct="k-list-sticky-header",sr=[s.hover,s.focus,s.selected],rr={},lr={},Mt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:a,indeterminate:i,hover:r,focus:d,selected:c,...p}=e;return Ao("div",{...p,className:n(Ct,e.className),children:dr("div",{className:n(`${Ct}-item`,k(`${Ct}-item`,{hover:r,focus:d,selected:c})),children:[o&&Ao(G,{checked:a,indeterminate:i,"aria-label":t}),Ao("span",{className:"k-list-item-text",children:t})]})})};Mt.states=sr;Mt.options=rr;Mt.className=Ct;Mt.defaultOptions=lr;import{Fragment as eh,jsx as jb,jsxs as th}from"react/jsx-runtime";import{jsx as So,jsxs as pr}from"react/jsx-runtime";var cr="k-list-group-item",mt=e=>{let{groupIconName:t,...o}=e;return pr("li",{...o,role:"presentation",className:n(cr,e.className),children:[t&&So("span",{className:"k-list-item-icon-wrapper",children:So(g,{icon:t,className:"k-list-item-icon"})}),So("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."}]};import{jsx as br}from"react/jsx-runtime";var yo="k-list-optionlabel",mr=[s.hover,s.focus,s.selected,s.disabled],ur={},fr={},Ot=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:r,...d}=e;return br("div",{...d,className:n(yo,k(yo,{hover:o,focus:a,selected:i,disabled:r})),children:t})};Ot.states=mr;Ot.options=ur;Ot.className=yo;Ot.defaultOptions=fr;import{jsx as Nr}from"react/jsx-runtime";var Eo="k-list-custom-value",hr=[s.hover,s.focus,s.selected,s.disabled],xr={},Lr={},Tt=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:r,...d}=e;return Nr("div",{...d,className:n(Eo,k(Eo,{hover:o,focus:a,selected:i,disabled:r})),children:t})};Tt.states=hr;Tt.options=xr;Tt.className=Eo;Tt.defaultOptions=Lr;import{Fragment as xh,jsx as hh,jsxs as Lh}from"react/jsx-runtime";import{Fragment as Ah,jsx as kh,jsxs as Sh}from"react/jsx-runtime";import{Fragment as Rh,jsx as Oh,jsxs as Th}from"react/jsx-runtime";import{Fragment as Bh,jsx as Ph,jsxs as Dh}from"react/jsx-runtime";import{jsx as Gh}from"react/jsx-runtime";import{Fragment as Jh,jsx as qh,jsxs as Yh}from"react/jsx-runtime";var Gi="dropdown-list",Vi="dropdownlist";import{Fragment as Ir,jsx as z,jsxs as Co}from"react/jsx-runtime";var $i="k-dropdownlist",vr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],gr={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},Mo={showValue:!0,arrowIconName:"chevron-down"},F=e=>{let{size:t,rounded:o,fillMode:a,arrowIconName:i=Mo.arrowIconName,showValue:r=Mo.showValue,valueIconName:d,prefix:c,suffix:p,value:u,placeholder:f,hover:h,focus:N,valid:E,invalid:H,required:C,loading:S,disabled:M,readonly:V,popup:Le,opened:ae,adaptive:Qe,adaptiveSettings:Ze,adaptiveTitle:je,adaptiveSubtitle:ji,adaptiveFilter:ea,id:et,activeDescendant:Oo,"aria-label":ta,...oa}=e,ia=et?`${et}-listbox`:void 0,To=et?`${et}-value`:void 0;return Co(Ir,{children:[Co(pe,{...oa,id:et,size:t,rounded:o,fillMode:a,hover:h,focus:N,valid:E,invalid:H,required:C,loading:S,disabled:M,readonly:V,className:n(e.className,$i,{"k-icon-picker":!r&&d}),role:"combobox","aria-haspopup":"listbox","aria-expanded":ae?"true":"false","aria-controls":ae?ia:void 0,"aria-activedescendant":ae&&Oo?Oo:void 0,"aria-describedby":ae?To:void 0,"aria-disabled":M?"true":void 0,"aria-label":ta,tabIndex:0,children:[z(Te,{children:c}),z(st,{placeholder:f,value:u,showValue:r,valueIconName:d,id:To}),z(Q,{valid:E,invalid:H,loading:S,disabled:M}),z(te,{loading:S,disabled:M}),z(Re,{children:p}),z(x,{className:"k-input-button",icon:i,size:e.size,fillMode:e.fillMode,"aria-label":f||"Toggle dropdown",tabIndex:-1})]}),ae&&Le&&z(re,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown suggestions",children:Le}),Qe&&z(T,{adaptive:!0,...Ze,header:z(Z,{actionsEnd:z(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:ea,inputValue:u,inputPlaceholder:f,title:je,subtitle:ji}),children:z("div",{className:"k-list-container",children:z(y,{size:"large",children:Co(B,{"aria-label":"Options",children:[z(A,{text:"List item"}),z(A,{text:"List item"}),z(A,{text:"List item"})]})})})})]})};F.states=vr;F.options=gr;F.className=$i;F.defaultOptions=Mo;F.moduleName=Gi;F.folderName=Vi;F.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 Ox}from"react/jsx-runtime";import{jsx as Hx,jsxs as Px}from"react/jsx-runtime";import{Fragment as Xx,jsx as Vx,jsxs as $x}from"react/jsx-runtime";import{jsx as Qx}from"react/jsx-runtime";import{jsx as iL,jsxs as aL}from"react/jsx-runtime";import{Fragment as uL,jsx as pL,jsxs as mL}from"react/jsx-runtime";import{jsx as LL}from"react/jsx-runtime";import{Fragment as Cr,jsx as xe,jsxs as Xi}from"react/jsx-runtime";var kr=F.states,Ar=F.defaultOptions,Sr=F.options,yr=[{name:"opened",title:"Opened"}],Er=[],Xe=e=>{let{modifiers:t,...o}=e,a={},i=Xi(Cr,{children:[xe("div",{className:"k-list-filter",children:xe(X,{})}),xe(y,{style:{width:300},size:o.size,children:Xi(B,{children:[xe(A,{children:"List item"}),xe(A,{children:"List item"}),xe(A,{children:"List item"})]})})]});return Object.keys(t||{}).forEach(r=>{r==="opened"&&(a.opened=!!t?.[r],a.popup=t?.[r]?i:void 0)}),xe("div",{children:xe(F,{placeholder:"Value",style:{width:300},...o,...a})})};Xe.options=Sr;Xe.states=kr;Xe.variants=Er;Xe.defaultOptions=Ar;Xe.modifiers=yr;Xe.className=F.className;var Ae="radio",We=Ae;import{jsx as Wi}from"react/jsx-runtime";var Rt="k-radio",Mr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked],Or={size:[l.undefined,l.small,l.medium,l.large]},Tr={},q=e=>{let{id:t,checked:o,hover:a,focus:i,disabled:r,invalid:d,valid:c,required:p,size:u,...f}=e;return Wi("span",{className:"k-radio-wrap",children:Wi("input",{...f,id:t,type:"radio",checked:o,required:p,disabled:r||void 0,"aria-invalid":d?"true":void 0,className:n(e.className,Rt,I(Rt,{size:u}),k(Rt,{hover:a,focus:i,disabled:r,invalid:d,valid:c,checked:o}))})})};q.states=Mr;q.options=Or;q.className=Rt;q.defaultOptions=Tr;q.moduleName=Ae;q.folderName=We;q.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 J=q;import{jsx as wr}from"react/jsx-runtime";var qi="k-radio-list",Rr=[],Kr={},Ji={layout:"vertical"},K=e=>{let{layout:t=Ji.layout,...o}=e;return wr("ul",{...o,className:n(e.className,qi,{[`k-list-${t}`]:t}),role:"radiogroup",children:e.children})};K.states=Rr;K.options=Kr;K.className=qi;K.defaultOptions=Ji;K.moduleName=Ae;K.folderName=We;K.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 Dr}from"react/jsx-runtime";var Yi="k-radio-list-item",_r=[],Hr={},Pr={},_=e=>{let{...t}=e;return Dr("li",{...t,className:n(e.className,Yi),role:"none",children:e.children})};_.states=_r;_.options=Hr;_.className=Yi;_.defaultOptions=Pr;_.moduleName=Ae;_.folderName=We;import{jsx as QL}from"react/jsx-runtime";import{Fragment as Br,jsx as Qi,jsxs as zr}from"react/jsx-runtime";var de=({children:e,id:t,...o})=>zr(Br,{children:[Qi(J,{...o,id:t}),Qi("label",{className:"k-radio-label",htmlFor:t,children:e})]});import{Fragment as nN,jsx as aN,jsxs as sN}from"react/jsx-runtime";import{Fragment as mN,jsx as cN,jsxs as pN}from"react/jsx-runtime";import{Fragment as xN,jsx as hN,jsxs as LN}from"react/jsx-runtime";import{Fragment as kN,jsx as IN,jsxs as AN}from"react/jsx-runtime";import{Fragment as TN,jsx as ON,jsxs as RN}from"react/jsx-runtime";import{jsx as HN}from"react/jsx-runtime";import{jsx as Wr}from"react/jsx-runtime";var Ur=J.options,Gr=J.states,Vr=J.defaultOptions,$r=[],Xr=[],qe=e=>Wr(de,{id:v("radio"),name:"value",...e,children:"Label"});qe.options=Ur;qe.states=Gr;qe.variants=$r;qe.defaultO