@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 145 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 E=(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"}),M=(e,t)=>{let{valid:o,invalid:a,hover:r,focus:l,checked:d,active:c,selected:u,disabled:x,indeterminate:f,loading:g,empty:m,readonly:L,highlighted:k,...S}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":r,"k-focus":l,"k-checked":d,"k-active":c,"k-selected":u,"k-disabled":x,"k-indeterminate":f&&!d,"k-loading":g,"k-empty":m,"k-readonly":L,"k-highlighted":k},Object.keys(S).reduce((I,y)=>(y.startsWith("k-")?I[y]=S[y]:I[`k-${y}`]=S[y],I),{}))};function Vn(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var p={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},h={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},b={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},Ye={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"},i={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 or={};function H(e){return or[e]=(or[e]||0)+1,`k-${e}-${or[e]}`}import{Fragment as Il,jsx as $n}from"react/jsx-runtime";var ar="k-font-icon",Ll=[],Ml={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info]},Sl={},_o=e=>{let{size:t,themeColor:o,icon:a,rotate:r,flip:l,...d}=e;return a?$n("span",{...d,className:n(e.className,ar,E(ar,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true"}):$n(Il,{})};_o.states=Ll;_o.options=Ml;_o.className=ar;_o.defaultOptions=Sl;var Xn=_o;import{Fragment as El,jsx as ma}from"react/jsx-runtime";var rr="k-svg-icon",yl=[],Cl={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info],variant:[Ye.outline,Ye.solid,Ye.duotone]},nr={viewBox:"0 0 24 24",variant:Ye.outline},zo=e=>{let{size:t,themeColor:o,rotate:a,flip:r,viewBox:l=nr.viewBox,variant:d=nr.variant,icon:c,...u}=e;if(!c)return ma(El,{});if(c==="none")return ma("span",{...u,className:n(e.className,rr,E("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof c=="object"&&c.name&&c.name,f=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return ma("span",{...u,className:n(e.className,rr,E("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true",children:ma("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:l,dangerouslySetInnerHTML:f!==void 0?{__html:f}:void 0,children:c?void 0:e.children})})};zo.states=yl;zo.options=Cl;zo.className=rr;zo.defaultOptions=nr;var ir=zo;import*as sr from"@progress/kendo-svg-icons";var qn="icon",Wn="icons";import{useContext as Al}from"react";import{createContext as Tl}from"react";var Jn=Tl({iconsType:"svg"});import{Fragment as Zn,jsx as Ho}from"react/jsx-runtime";var ua="k-icon",Ol=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Pl=[],wl={size:[p.undefined,p.xsmall,p.small,p.medium,p.large,p.xlarge,p.xxlarge,p.xxxlarge],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info],variant:[Ye.outline,Ye.solid,Ye.duotone]},fa={viewBox:"0 0 24 24",type:"svg",variant:Ye.outline},v=e=>{let{iconsType:t}=Al(Jn),{size:o,themeColor:a,icon:r,type:l=t||fa.type,rotate:d,flip:c,viewBox:u=fa.viewBox,variant:x=fa.variant,...f}=e;if(!r)return Ho(Zn,{});if((t||l)==="svg"){if(r==="none")return Ho(ir,{...f,className:n(e.className,ua),icon:r,size:o,variant:x});let m=sr[r]?r:Ol(`${r}-icon`);return sr[m]?Ho(ir,{...f,className:n(e.className,ua),icon:sr[m],size:o,themeColor:a,rotate:d,flip:c,viewBox:u,variant:x}):Ho(Zn,{})}return Ho(Xn,{...f,className:n(e.className,ua),icon:r,size:o,themeColor:a,rotate:d,flip:c})};v.states=Pl;v.options=wl;v.defaultOptions=fa;v.className=ua;v.moduleName=qn;v.folderName=Wn;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 lr="button",Yn=lr;import{Fragment as Qn,jsx as Wt,jsxs as jn}from"react/jsx-runtime";var Uo="k-button",Bl=["icon-button"],Rl=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Kl={size:[p.undefined,p.xsmall,p.small,p.medium,p.large],rounded:[h.undefined,h.none,h.small,h.medium,h.large,h.full],fillMode:[b.undefined,b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info,N.inverse]},dr={showArrow:!1,arrowIconName:"chevron-down"},s=e=>{let{as:t="button",size:o,rounded:a,fillMode:r,themeColor:l,showArrow:d=dr.showArrow,arrowIconName:c=dr.arrowIconName,variant:u,hover:x,focus:f,active:g,selected:m,disabled:L,togglable:k,ariaDisabled:S,icon:I,iconSize:y,text:O,iconClassName:$,className:U,...ce}=e,me=I!=null,ue=e.children!==void 0;return jn(t,{className:n(U,Uo,Vn(Uo,u),E(Uo,{size:o,rounded:a,fillMode:r,themeColor:l}),M(Uo,{hover:x,focus:f,active:g,disabled:L||S,selected:m}),{"k-icon-button":!O&&!ue&&me}),"aria-pressed":k?m?"true":"false":void 0,...ce,"aria-disabled":S?"true":void 0,disabled:L||void 0,children:[typeof I=="string"&&I&&Wt(v,{className:n($,"k-button-icon"),icon:I,size:y}),I&&typeof I!="string"&&Wt(Qn,{children:I}),O?jn(Qn,{children:[O&&Wt("span",{className:"k-button-text",children:O}),e.children]}):e.children&&Wt("span",{className:"k-button-text",children:e.children}),d&&Wt("span",{className:"k-menu-button-arrow k-button-arrow",children:Wt(v,{icon:c})})]})};s.states=Rl;s.options=Kl;s.variants=Bl;s.className=Uo;s.defaultOptions=dr;s.moduleName=lr;s.folderName=Yn;s.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 Dl}from"react/jsx-runtime";var ht=e=>Dl(s,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as _l}from"react/jsx-runtime";var Fo=e=>_l(s,{icon:"folder",children:"Button",...e});import{jsx as zl}from"react/jsx-runtime";var Pt=e=>zl(s,{children:"Button",...e});import{jsx as pr}from"react/jsx-runtime";var Hl=s.options,Ul=s.states,Fl={...s.defaultOptions,variant:"text"},Gl=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Vl=[],Jt=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return pr(ht,{...o,icon:"star"});case"icon-and-text":return pr(Fo,{...o,icon:"star",children:"Button"});default:return pr(Pt,{...o,children:"Button"})}};Jt.options=Hl;Jt.states=Ul;Jt.variants=Gl;Jt.defaultOptions=Fl;Jt.modifiers=Vl;Jt.className=s.className;var cr="button",ei=cr;import{jsx as Wl}from"react/jsx-runtime";var Go="k-button-group",$l=[i.disabled],Xl={fillMode:[b.undefined,b.solid,b.flat,b.outline,b.clear,b.link]},ql={},C=e=>{let{fillMode:t,disabled:o,stretched:a,...r}=e;return Wl("div",{role:"group",...r,className:n(e.className,Go,E(Go,{fillMode:t}),M(Go,{disabled:o}),{[`${Go}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};C.states=$l;C.options=Xl;C.className=Go;C.defaultOptions=ql;C.moduleName=cr;C.folderName=ei;C.ariaSpec={selector:".k-button-group",rules:[{selector:".k-button-group:not(.k-split-button)",attribute:"role=group",usage:"Sets the proper role for the group of buttons."},{selector:".k-button-group.k-disabled",attribute:"aria-disabled=true",usage:"The attribute is rendered only when the entire button group is disabled."},{selector:".k-button-group:not(.k-split-button):not(.k-scheduler-navigation):not(.k-zoom-control) .k-button",attribute:"aria-pressed (when selected)",usage:"Specifies the current state of the ButtonGroup. Only the selected button within the group will have this attribute set to true."}]};import{Fragment as Dh,jsx as Kh,jsxs as _h}from"react/jsx-runtime";import{Fragment as Vh,jsx as Gh,jsxs as $h}from"react/jsx-runtime";import{Fragment as Yh,jsx as Zh,jsxs as Qh}from"react/jsx-runtime";import{Fragment as rx,jsx as ax,jsxs as nx}from"react/jsx-runtime";import{Fragment as cx,jsx as px,jsxs as mx}from"react/jsx-runtime";import{Fragment as gx,jsx as xx,jsxs as kx}from"react/jsx-runtime";import{jsx as nt,jsxs as mr}from"react/jsx-runtime";var Jl={...s.options,...C.options},Zl=s.states,Yl={...s.defaultOptions,...C.defaultOptions,variant:"text-button"},Ql=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],jl=[],Zt=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?mr(C,{fillMode:a.fillMode,className:o,children:[nt(s,{...a,icon:"star"}),nt(s,{...a,icon:"star"}),nt(s,{...a,icon:"star"})]}):t==="icon-text-button"?mr(C,{fillMode:a.fillMode,className:o,children:[nt(s,{...a,icon:"star",children:"First"}),nt(s,{...a,icon:"star",children:"Middle"}),nt(s,{...a,icon:"star",children:"Last"})]}):mr(C,{fillMode:a.fillMode,className:o,children:[nt(s,{...a,children:"First"}),nt(s,{...a,children:"Middle"}),nt(s,{...a,children:"Last"})]})};Zt.options=Jl;Zt.states=Zl;Zt.variants=Ql;Zt.defaultOptions=Yl;Zt.modifiers=jl;Zt.className=C.className;var Vo="input",ba=Vo;import{jsx as ad}from"react/jsx-runtime";var ha="k-input",ed=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],td={size:[p.undefined,p.small,p.medium,p.large],rounded:[h.undefined,h.none,h.small,h.medium,h.large,h.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},od={},Q=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:d,readonly:c,size:u,rounded:x,fillMode:f,...g}=e;return ad("span",{...g,className:n(e.className,ha,E(ha,{size:u,rounded:x,fillMode:f}),M(ha,{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:d,readonly:c}))})};Q.states=ed;Q.options=td;Q.className=ha;Q.defaultOptions=od;Q.moduleName=Vo;Q.folderName=ba;import{jsx as sd}from"react/jsx-runtime";var xa="k-picker",rd=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],nd={size:[p.undefined,p.small,p.medium,p.large],rounded:[h.undefined,h.none,h.small,h.medium,h.large,h.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},id={},Qe=e=>{let{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:d,readonly:c,size:u,rounded:x,fillMode:f,...g}=e;return sd("span",{...g,className:n(e.className,xa,E(xa,{size:u,rounded:x,fillMode:f}),M(xa,{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:d,readonly:c})),children:e.children})};Qe.states=rd;Qe.options=nd;Qe.className=xa;Qe.defaultOptions=id;Qe.moduleName=Vo;Qe.folderName=ba;import{Fragment as pd,jsx as ur}from"react/jsx-runtime";var ti="k-clear-value",ld=[i.disabled,i.loading,i.readonly],dd={},Ce=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?ur(pd,{}):ur("span",{className:n(e.className,ti),children:ur(v,{icon:"x"})})};Ce.states=ld;Ce.options=dd;Ce.className=ti;import{jsx as ud}from"react/jsx-runtime";var fr="k-input-inner",cd=[],md={},ga={type:"text",autocomplete:"off",value:"",placeholder:""},Ee=e=>{let{value:t=ga.value,type:o=ga.type,placeholder:a=ga.placeholder,autocomplete:r=ga.autocomplete,disabled:l,readOnly:d,...c}=e;return ud("input",{...c,type:o,className:n(e.className,fr,E(fr,e)),placeholder:a,autoComplete:r,defaultValue:t,disabled:l||void 0,readOnly:d||void 0})};Ee.states=cd;Ee.options=md;Ee.className=fr;import{jsx as oi,jsxs as hd}from"react/jsx-runtime";var br="k-input-inner",fd=[],bd={},wt=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:l,...d}=e;return hd("span",{...d,className:n(e.className,br,E(br,e)),children:[r,!r&&l&&oi(v,{className:"k-input-value-icon",icon:l}),a&&!t&&o,a&&t&&oi("span",{className:"k-input-value-text",children:t})]})};wt.states=fd;wt.options=bd;wt.className=br;import{jsx as kd}from"react/jsx-runtime";var hr="k-input-inner",xd=[],gd={},ai={value:"",placeholder:""},xr=e=>{let{value:t=ai.value,placeholder:o=ai.placeholder,rows:a,disabled:r,...l}=e;return kd("textarea",{...l,className:n(e.className,hr,E(hr,e)),placeholder:o,rows:a,defaultValue:t,disabled:r||void 0})};xr.states=xd;xr.options=gd;xr.className=hr;import{Fragment as vd,jsx as ri}from"react/jsx-runtime";var ni="k-input-loading-icon",Nd=[i.disabled,i.loading],ve=e=>{let{disabled:t,loading:o}=e;return t||!o?ri(vd,{}):ri("span",{className:n(e.className,ni,"k-icon k-i-loading")})};ve.states=Nd;ve.className=ni;import{Fragment as Sd,jsx as ii}from"react/jsx-runtime";var si="k-input-validation-icon",Ld=[i.valid,i.invalid,i.disabled,i.loading],Md={},fe=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,l=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?ii(Sd,{}):ii(v,{className:n(si),icon:l})};fe.states=Ld;fe.options=Md;fe.className=si;import{Fragment as Cd,jsx as li}from"react/jsx-runtime";var Id="k-input-prefix",yd={direction:"horizontal"},Ke=e=>{let{direction:t=yd.direction,...o}=e;return e.children?li("span",{...o,className:n(Id,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):li(Cd,{})};import{Fragment as Ad,jsx as di}from"react/jsx-runtime";var Ed="k-input-suffix",Td={direction:"horizontal"},De=e=>{let{direction:t=Td.direction,...o}=e;return e.children?di("span",{...o,className:n(Ed,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):di(Ad,{})};import{jsx as kg}from"react/jsx-runtime";import{jsx as Pd}from"react/jsx-runtime";var Od="k-input-suffix-text",gr=e=>{let{children:t,...o}=e;return Pd("span",{...o,className:n(Od,e.className),children:t})};import{jsx as Bd}from"react/jsx-runtime";var pi="k-input-separator",wd={direction:"vertical"},_e=e=>{let{direction:t=wd.direction,...o}=e;return Bd("span",{...o,className:n(pi,e.className,{[`${pi}-${t}`]:t})})};import{Fragment as ci,jsx as je,jsxs as kr}from"react/jsx-runtime";var Rd=Q.states,Kd=Q.defaultOptions,Dd=Q.options,_d=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],zd=[],Yt=e=>{let{modifiers:t,valid:o,invalid:a,loading:r,disabled:l,readonly:d,...c}=e,u=t?.prefix,x=t?.suffix,f=t?.["clear-button"],g=t?.["validation-icon"],m=t?.separators;return kr(Q,{...c,valid:o,invalid:a,loading:r,disabled:l,readonly:d,style:{width:300},children:[u&&kr(ci,{children:[je(Ke,{children:je(v,{icon:"lock"})}),m&&je(_e,{})]}),je(Ee,{placeholder:"Placeholder",value:"Value"}),g&&je(fe,{valid:o,invalid:a,loading:r,disabled:l}),je(ve,{loading:r,disabled:l}),f&&je(Ce,{loading:r,disabled:l,readonly:d,value:"Value"}),x&&kr(ci,{children:[m&&je(_e,{}),je(De,{children:je(Pt,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Yt.options=Dd;Yt.states=Rd;Yt.variants=zd;Yt.defaultOptions=Kd;Yt.modifiers=_d;Yt.className=Q.className;var Nr="popup",mi=Nr;import{jsx as ui}from"react/jsx-runtime";var fi="k-animation-container",Hd=[],Ud={},vr={positionMode:"absolute",shown:!0},et=e=>{let{positionMode:t=vr.positionMode,shown:o=vr.shown,animationStyle:a,offset:r,...l}=e;return ui("div",{...l,style:{...r,...e.style},className:n(e.className,fi,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:ui("div",{className:"k-child-animation-container",style:a,children:e.children})})};et.states=Hd;et.options=Ud;et.className=fi;et.defaultOptions=vr;et.moduleName=Nr;et.folderName=mi;var Lr="popup",bi=Lr;import{jsx as hi}from"react/jsx-runtime";var xi="k-popup",Fd=[],Gd={},gi={positionMode:"absolute"},V=e=>{let{offset:t,positionMode:o=gi.positionMode,animationStyle:a,containerClassName:r,containerRole:l,containerAriaLabel:d,...c}=e;return hi(et,{positionMode:o,offset:t,animationStyle:a,className:r,role:l,"aria-label":d,children:hi("div",{...c,className:n(e.className,xi),children:e.children})})};V.states=Fd;V.options=Gd;V.className=xi;V.defaultOptions=gi;V.moduleName=Lr;V.folderName=bi;V.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 Mr="action-buttons",ki=Mr;import{jsx as Xd}from"react/jsx-runtime";var ka="k-actions",Vd=[],$d={},Sr={alignment:"start",orientation:"horizontal"},Je=e=>{let{alignment:t=Sr.alignment,orientation:o=Sr.orientation,...a}=e;return Xd("div",{...a,className:n(ka,{[`${ka}-${t}`]:t,[`${ka}-${o}`]:o},e.className),children:e.children})};Je.states=Vd;Je.options=$d;Je.className=ka;Je.defaultOptions=Sr;Je.moduleName=Mr;Je.folderName=ki;var Ni=Je;import{jsx as Wd}from"react/jsx-runtime";var qd="k-actionsheet-footer",vi={alignment:"stretched",orientation:"horizontal"},xt=e=>{let{alignment:t=vi.alignment,orientation:o=vi.orientation,template:a,as:r=a?"div":Je,...l}=e;return Wd(r,{...l,...!a&&{alignment:t,orientation:o},className:n(e.className,qd),children:e.children})};var Ir="searchbox",Li=Ir;import{jsx as $o,jsxs as Yd}from"react/jsx-runtime";var Mi="k-searchbox",Jd=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],Zd={size:[p.undefined,p.small,p.medium,p.large],rounded:[h.undefined,h.none,h.small,h.medium,h.large,h.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},yr={showIcon:!0,icon:"search"},ze=e=>{let{value:t,placeholder:o,size:a,rounded:r,fillMode:l,hover:d,focus:c,valid:u,invalid:x,required:f,loading:g,disabled:m,showIcon:L=yr.showIcon,icon:k=yr.icon,"aria-label":S,...I}=e;return Yd(Q,{...I,size:a,rounded:r,fillMode:l,hover:d,focus:c,valid:u,invalid:x,required:f,loading:g,disabled:m,className:n(e.className,Mi),children:[L&&$o(v,{className:"k-input-icon",icon:k}),$o(Ee,{placeholder:o,value:t,"aria-label":S}),$o(ve,{...e}),$o(fe,{...e}),$o(Ce,{...e})]})};ze.states=Jd;ze.options=Zd;ze.className=Mi;ze.defaultOptions=yr;ze.moduleName=Ir;ze.folderName=Li;import{jsx as _k}from"react/jsx-runtime";var Cr="textbox",Si=Cr;import{Fragment as Ii,jsx as gt,jsxs as Er}from"react/jsx-runtime";var yi="k-textbox",Qd=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],jd={size:[p.undefined,p.small,p.medium,p.large],rounded:[h.undefined,h.none,h.small,h.medium,h.large,h.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},Na={showClearButton:!0,showValidationIcon:!0,separators:!0},te=e=>{let{size:t,rounded:o,fillMode:a,separators:r=Na.separators,showClearButton:l=Na.showClearButton,showValidationIcon:d=Na.showValidationIcon,prefix:c,suffix:u,type:x,value:f,placeholder:g,hover:m,focus:L,valid:k,invalid:S,required:I,loading:y,disabled:O,readonly:$,id:U,"aria-label":ce,"aria-describedby":me,...ue}=e;return Er(Q,{...ue,size:t,rounded:o,fillMode:a,hover:m,focus:L,valid:k,invalid:S,required:I,loading:y,disabled:O,readonly:$,className:n(e.className,yi),children:[c&&Er(Ii,{children:[gt(Ke,{children:c}),r&>(_e,{})]}),gt(Ee,{id:U,placeholder:g,value:f,type:x,disabled:O,"aria-label":ce,"aria-describedby":me,"aria-invalid":S?"true":void 0}),d&>(fe,{valid:k,invalid:S,loading:y,disabled:O}),gt(ve,{loading:y,disabled:O}),l&>(Ce,{loading:y,disabled:O,readonly:$,value:f}),u&&Er(Ii,{children:[r&>(_e,{}),gt(De,{children:u})]})]})};te.states=Qd;te.options=jd;te.className=yi;te.defaultOptions=Na;te.moduleName=Cr;te.folderName=Si;te.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 Xo=te;import{jsx as ep}from"react/jsx-runtime";var Ci=e=>ep(Xo,{...e});import{Fragment as oN,jsx as tN}from"react/jsx-runtime";import{Fragment as lN,jsx as sN}from"react/jsx-runtime";import{jsx as mN}from"react/jsx-runtime";import{jsx as Tr}from"react/jsx-runtime";var tp=te.states,op=te.defaultOptions,ap=te.options,rp=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],np=[],Qt=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{switch(r){case"prefix":a.prefix=t?.[r]?Tr(v,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[r]?Tr(Pt,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[r];break;default:break}}),Tr(Ci,{value:"Value",style:{width:300},...o,...a})};Qt.options=ap;Qt.states=tp;Qt.variants=np;Qt.defaultOptions=op;Qt.modifiers=rp;Qt.className=te.className;import{jsx as kt,jsxs as Ar}from"react/jsx-runtime";var Ei="k-actionsheet-titlebar",ip={},be=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:r,filter:l,input:d,inputValue:c,inputPlaceholder:u,adaptive:x,titleId:f,children:g,...m}=e;return Ar("div",{...m,className:n(e.className,Ei),children:[Ar("div",{className:"k-actionsheet-titlebar-group",children:[a&&kt("div",{className:"k-actionsheet-actions",children:a}),!g&&Ar("div",{className:"k-actionsheet-title",id:f,children:[t&&kt("div",{className:"k-text-center",children:t}),o&&kt("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),g&&kt("div",{className:"k-actionsheet-title",id:f,children:g}),r&&kt("div",{className:"k-actionsheet-actions",children:r})]}),(d||l)&&kt("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?kt(te,{value:c,placeholder:u,size:x?"large":"medium","aria-label":t||u||"Input"}):kt(ze,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};be.className=Ei;be.defaultOptions=ip;import{jsx as Or,jsxs as pp}from"react/jsx-runtime";var Pr="k-actionsheet-view",sp=[],lp={},dp={},jt=e=>{let{adaptive:t,animated:o,children:a,header:r,footer:l,titleId:d,...c}=e,u=r?.type===be&&Or(be,{adaptive:t,titleId:d,...r?.props}),x=l?.type===xt&&Or(xt,{...l?.props});return pp("div",{...c,className:n(e.className,Pr,{[`${Pr}-animated`]:o}),children:[u,Or("div",{className:"k-actionsheet-content",children:a}),x]})};jt.states=sp;jt.options=lp;jt.className=Pr;jt.defaultOptions=dp;var qo="action-sheet",va=qo;var wr="overlay",Ti=wr;import{jsx as fp}from"react/jsx-runtime";var Ai="k-overlay",cp=[],mp={},up={},Nt=e=>{let{...t}=e;return fp("div",{...t,className:n(e.className,Ai),children:e.children})};Nt.states=cp;Nt.options=mp;Nt.className=Ai;Nt.defaultOptions=up;Nt.moduleName=wr;Nt.folderName=Ti;import{jsx as La,jsxs as xp}from"react/jsx-runtime";var Oi="k-actionsheet",bp=[],hp={},Wo={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},J=e=>{let{side:t=Wo.side,fullscreen:o=Wo.fullscreen,adaptive:a=Wo.adaptive,overlay:r=Wo.overlay,template:l,children:d,header:c,footer:u,id:x,...f}=e,g=x&&!l&&c?`${x}-title`:void 0;return xp("div",{className:"k-actionsheet-container",children:[r&&La(Nt,{}),La(et,{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:La("div",{...f,id:x,role:"dialog","aria-modal":r?"true":void 0,"aria-labelledby":g,className:n(e.className,Oi,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:l||La(jt,{header:c,footer:u,adaptive:a,titleId:g,...e,children:d})})})]})};J.states=bp;J.options=hp;J.className=Oi;J.defaultOptions=Wo;J.moduleName=qo;J.folderName=va;J.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 vp}from"react/jsx-runtime";var Pi="k-actionsheet-container",gp=[],kp={},Np={},eo=e=>{let{children:t,...o}=e;return vp("div",{...o,className:Pi,children:t})};eo.states=gp;eo.options=kp;eo.className=Pi;eo.defaultOptions=Np;eo.moduleName=qo;eo.folderName=va;import{jsx as Lp}from"react/jsx-runtime";var Br=e=>{let{...t}=e;return Lp("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as Sp,jsx as Jo,jsxs as Rr}from"react/jsx-runtime";var Kr="k-actionsheet-item",Mp=[i.hover,i.focus,i.selected,i.disabled],vt=e=>{let{iconName:t,text:o,description:a,hover:r,focus:l,selected:d,disabled:c,...u}=e;return Rr("span",{...u,className:n(e.className,Kr,M(Kr,{hover:r,focus:l,selected:d,disabled:c})),children:[!e.children&&Jo(Sp,{children:Rr("span",{className:"k-actionsheet-action",children:[t&&Jo("span",{className:"k-icon-wrap",children:Jo(v,{className:"k-actionsheet-item-icon",icon:t})}),Rr("span",{className:"k-actionsheet-item-text",children:[o&&Jo("span",{className:"k-actionsheet-item-title",children:o}),a&&Jo("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};vt.states=Mp;vt.className=Kr;import{jsx as cv,jsxs as mv}from"react/jsx-runtime";import{jsx as hv}from"react/jsx-runtime";import{jsx as Nv}from"react/jsx-runtime";import{jsx as Sv}from"react/jsx-runtime";import{jsx as se,jsxs as Dr}from"react/jsx-runtime";var Ip=J.options,yp=J.states,Bi={...J.defaultOptions,variant:"normal"},Cp=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Ep=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],to=e=>{let{variant:t,modifiers:o,...a}={...Bi,...e},r={},l=Dr(Br,{children:[se(vt,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),se(vt,{text:"Add to Favorites",iconName:"heart"}),se(vt,{text:"Upload New",iconName:"upload",disabled:!0}),se("hr",{className:"k-hr"}),se(vt,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(r.fullScreen=!0),Object.keys(o||{}).forEach(u=>{switch(u){case"actions":r.actionsStart=!!o?.[u],r.actionsEnd=!!o?.[u];break;case"subtitle":r.subtitle=o?.[u]?d:void 0;break;case"footer":r.footer=!!o?.[u];break;default:break}}),t==="adaptive"?se(J,{...a,adaptive:!0,fullscreen:r.fullScreen,header:se(be,{actionsStart:r.actionsStart?se(s,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?se(s,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:r.subtitle}),footer:r.footer?Dr(xt,{alignment:"stretched",children:[se(s,{text:"Cancel",size:"large",themeColor:"base"}),se(s,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:l}):se(J,{...a,fullscreen:r.fullScreen,header:se(be,{actionsStart:r.actionsStart?se(s,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?se(s,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:r.subtitle}),footer:r.footer?Dr(xt,{alignment:"stretched",children:[se(s,{text:"Apply",themeColor:"primary"}),se(s,{text:"Cancel",themeColor:"base"})]}):void 0,children:l})};to.options=Ip;to.states=yp;to.variants=Cp;to.defaultOptions=Bi;to.modifiers=Ep;to.className=J.className;import zr from"react";import{jsx as Ri}from"react/jsx-runtime";var Tp="k-list-group-sticky-header",_r=e=>Ri("div",{className:n(Tp,e.className),children:Ri("div",{className:"k-list-header-text",children:e.children})});import{jsx as Op}from"react/jsx-runtime";var Ap="k-no-data",Ma=e=>{let{live:t,...o}=e;return Op("span",{...o,className:n(Ap,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Bt="list",oo=Bt;import{jsx as Ki,jsxs as Di}from"react/jsx-runtime";var Hr="k-list",Pp=[],wp={size:[p.undefined,p.small,p.medium,p.large]},Bp={},R=e=>{let{size:t,virtualization:o,children:a,header:r,selectAll:l,optionLabel:d,customValue:c,noData:u,screenReaders:x,...f}=e,m=zr.Children.toArray(a)[0],L=m?.props?.children?zr.Children.count(m.props.children):zr.Children.count(a);return Di("div",{...f,className:n(e.className,Hr,E(Hr,{size:t}),{"k-virtual-list":o}),children:[d,l,c,r&&Ki(_r,{children:r}),a||(u!==void 0?u:Ki(Ma,{live:!0,children:"No data found."})),x&&a&&Di(Ma,{className:"k-sr-only",live:!0,children:[L," items found."]})]})};R.states=Pp;R.options=wp;R.className=Hr;R.defaultOptions=Bp;R.moduleName=Bt;R.folderName=oo;R.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 _p}from"react/jsx-runtime";var _i="k-list-container",Rp=[],Kp={},Dp={},ao=e=>{let{...t}=e;return _p("div",{...t,className:n(e.className,_i),children:e.children})};ao.states=Rp;ao.options=Kp;ao.className=_i;ao.defaultOptions=Dp;ao.moduleName=Bt;ao.folderName=oo;var Rt="checkbox",ro=Rt;import{jsx as zi}from"react/jsx-runtime";var Sa="k-checkbox",zp=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.checked,i.indeterminate],Hp={size:[p.undefined,p.small,p.medium,p.large],rounded:[h.undefined,h.none,h.small,h.medium,h.large,h.full]},Up={},Le=e=>{let{id:t,checked:o,indeterminate:a,hover:r,focus:l,disabled:d,invalid:c,valid:u,required:x,size:f,rounded:g,wrapperRole:m,...L}=e;return zi("span",{className:"k-checkbox-wrap",role:m,children:zi("input",{...L,id:t,type:"checkbox",defaultChecked:o,required:x,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:n(e.className,Sa,E(Sa,{size:f,rounded:g}),M(Sa,{hover:r,focus:l,disabled:d,invalid:c,valid:u,indeterminate:a,checked:o}))})})};Le.states=zp;Le.options=Hp;Le.className=Sa;Le.defaultOptions=Up;Le.moduleName=Rt;Le.folderName=ro;Le.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 Ze=Le;import{jsx as Vp}from"react/jsx-runtime";var Hi="k-checkbox-list",Fp=[],Gp={},Ui={layout:"vertical"},he=e=>{let{layout:t=Ui.layout,...o}=e;return Vp("ul",{...o,className:n(e.className,Hi,{[`k-list-${t}`]:t}),children:e.children})};he.states=Fp;he.options=Gp;he.className=Hi;he.defaultOptions=Ui;he.moduleName=Rt;he.folderName=ro;import{jsx as Wp}from"react/jsx-runtime";var Fi="k-checkbox-list-item",$p=[],Xp={},qp={},xe=e=>{let{...t}=e;return Wp("li",{...t,className:n(e.className,Fi),children:e.children})};xe.states=$p;xe.options=Xp;xe.className=Fi;xe.defaultOptions=qp;xe.moduleName=Rt;xe.folderName=ro;import{Fragment as Jp,jsx as Gi,jsxs as Zp}from"react/jsx-runtime";var it=({children:e="Label",id:t="cb-label-after",...o})=>Zp(Jp,{children:[Gi(Ze,{id:t,...o}),Gi("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as wL,jsx as PL,jsxs as BL}from"react/jsx-runtime";import{Fragment as zL,jsx as _L,jsxs as HL}from"react/jsx-runtime";import{Fragment as $L,jsx as VL,jsxs as XL}from"react/jsx-runtime";import{jsx as ZL}from"react/jsx-runtime";import{jsx as eM}from"react/jsx-runtime";import{jsx as rM}from"react/jsx-runtime";import{jsx as He,jsxs as Vi}from"react/jsx-runtime";var Yp=he.options,Qp=he.states,jp={...he.defaultOptions,variant:"vertical"},ec=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],tc=[],no=e=>{let{variant:t,...o}=e;return t==="horizontal"?Vi(he,{layout:"horizontal",...o,children:[He(xe,{children:He(it,{id:H("cb"),defaultChecked:!0,children:"Label"})}),He(xe,{children:He(it,{id:H("cb"),children:"Label"})}),He(xe,{children:He(it,{id:H("cb"),children:"Label"})})]}):Vi(he,{...o,children:[He(xe,{children:He(it,{id:H("cb"),defaultChecked:!0,children:"Label"})}),He(xe,{children:He(it,{id:H("cb"),children:"Label"})}),He(xe,{children:He(it,{id:H("cb"),children:"Label"})})]})};no.options=Yp;no.states=Qp;no.variants=ec;no.defaultOptions=jp;no.modifiers=tc;no.className=he.className;import{jsx as sc}from"react/jsx-runtime";var oc=Ze.options,ac=Ze.states,rc=Ze.defaultOptions,nc=[],ic=[],io=e=>sc(it,{id:H("checkbox"),...e,defaultChecked:!0,children:"Label"});io.options=oc;io.states=ac;io.variants=nc;io.defaultOptions=rc;io.modifiers=ic;io.className=Ze.className;import{jsx as Kt,jsxs as cc}from"react/jsx-runtime";var Ur="k-list-item",lc=[i.hover,i.focus,i.selected,i.disabled],dc={},pc={},P=e=>{let{text:t,groupLabel:o,group:a,iconName:r,iconClassName:l,showCheckbox:d,checked:c,hover:u,focus:x,selected:f,disabled:g,actions:m,description:L,id:k,...S}=e,I=t||e.children;return cc("li",{...S,id:k,role:a?"presentation":"option",tabIndex:a?void 0:x?0:-1,"aria-selected":!a&&f?"true":a?void 0:"false","aria-disabled":!a&&g?"true":void 0,className:n(e.className,a?"k-list-group-item":Ur,M(Ur,{hover:u,focus:x,disabled:g,selected:f})),children:[d&&Kt(Le,{checked:c}),r&&Kt("span",{className:"k-list-item-icon-wrapper",children:Kt(v,{icon:r,className:n("k-list-item-icon",l)})}),Kt("span",{className:"k-list-item-text",children:I}),m&&Kt("div",{className:"k-list-item-actions",children:m}),L&&Kt("span",{className:"k-list-item-description",children:L}),o&&o!==""&&Kt("div",{className:"k-list-item-group-label",children:o})]})};P.states=lc;P.options=dc;P.className=Ur;P.defaultOptions=pc;P.moduleName=Bt;P.folderName=oo;P.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 uc}from"react/jsx-runtime";var mc="k-list-ul",st=e=>{let{children:t,role:o,id:a,...r}=e;return uc("ul",{...r,id:a,role:o,className:n(mc,e.className),children:t})};st.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 Fr,jsxs as bc}from"react/jsx-runtime";var fc="k-list-content",F=e=>{let{virtualization:t,grouping:o,"aria-label":a,"aria-labelledby":r,listboxId:l,...d}=e;return bc("div",{...d,className:n(fc,e.className),role:o?"listbox":void 0,id:o?l:void 0,"aria-label":o?a:void 0,"aria-labelledby":o?r:void 0,children:[o?e.children:Fr(st,{role:"listbox",id:l,"aria-label":a,"aria-labelledby":r,children:e.children}),t&&Fr("div",{className:"k-height-container",children:Fr("div",{})})]})};F.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 Gr,jsxs as kc}from"react/jsx-runtime";var Ia="k-list-sticky-header",hc=[i.hover,i.focus,i.selected],xc={},gc={},ya=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:a,indeterminate:r,hover:l,focus:d,selected:c,...u}=e;return Gr("div",{...u,className:n(Ia,e.className),children:kc("div",{className:n(`${Ia}-item`,M(`${Ia}-item`,{hover:l,focus:d,selected:c})),children:[o&&Gr(Le,{checked:a,indeterminate:r,"aria-label":t}),Gr("span",{className:"k-list-item-text",children:t})]})})};ya.states=hc;ya.options=xc;ya.className=Ia;ya.defaultOptions=gc;import{Fragment as QM,jsx as YM,jsxs as jM}from"react/jsx-runtime";import{jsx as Vr,jsxs as vc}from"react/jsx-runtime";var Nc="k-list-group-item",Dt=e=>{let{groupIconName:t,...o}=e;return vc("li",{...o,role:"presentation",className:n(Nc,e.className),children:[t&&Vr("span",{className:"k-list-item-icon-wrapper",children:Vr(v,{icon:t,className:"k-list-item-icon"})}),Vr("span",{className:"k-list-item-text",children:e.children})]})};Dt.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 Ic}from"react/jsx-runtime";var $r="k-list-optionlabel",Lc=[i.hover,i.focus,i.selected,i.disabled],Mc={},Sc={},Ca=e=>{let{text:t,hover:o,focus:a,selected:r,disabled:l,...d}=e;return Ic("div",{...d,className:n($r,M($r,{hover:o,focus:a,selected:r,disabled:l})),children:t})};Ca.states=Lc;Ca.options=Mc;Ca.className=$r;Ca.defaultOptions=Sc;import{jsx as Tc}from"react/jsx-runtime";var Xr="k-list-custom-value",yc=[i.hover,i.focus,i.selected,i.disabled],Cc={},Ec={},Lt=e=>{let{text:t,hover:o,focus:a,selected:r,disabled:l,...d}=e;return Tc("div",{...d,className:n(Xr,M(Xr,{hover:o,focus:a,selected:r,disabled:l})),children:t})};Lt.states=yc;Lt.options=Cc;Lt.className=Xr;Lt.defaultOptions=Ec;import{Fragment as bS,jsx as fS,jsxs as hS}from"react/jsx-runtime";import{Fragment as LS,jsx as vS,jsxs as MS}from"react/jsx-runtime";import{Fragment as AS,jsx as ES,jsxs as TS}from"react/jsx-runtime";import{Fragment as DS,jsx as RS,jsxs as KS}from"react/jsx-runtime";import{jsx as US}from"react/jsx-runtime";import{Fragment as qS,jsx as XS,jsxs as WS}from"react/jsx-runtime";var qr="combobox",$i=qr;import{Fragment as Wr,jsx as oe,jsxs as Zo}from"react/jsx-runtime";var Xi="k-combobox",Ac=[i.hover,i.focus,i.valid,i.invalid,i.loading,i.required,i.disabled,i.readonly],Oc={size:[p.undefined,p.small,p.medium,p.large],rounded:[h.undefined,h.none,h.small,h.medium,h.large,h.full],fillMode:[b.undefined,b.solid,b.flat,b.outline]},qi={separators:!0},X=e=>{let{size:t,rounded:o,fillMode:a,separators:r=qi.separators,prefix:l,suffix:d,value:c,placeholder:u,hover:x,focus:f,valid:g,invalid:m,required:L,loading:k,disabled:S,popup:I,opened:y,readonly:O,adaptive:$,adaptiveSettings:U,adaptiveTitle:ce,adaptiveSubtitle:me,adaptiveCustomValue:ue,id:Ot,autocomplete:ja,activeDescendant:bt,"aria-label":ca,...er}=e,tr=Ot?`${Ot}-listbox`:void 0;return Zo(Wr,{children:[Zo(Q,{...er,size:t,rounded:o,fillMode:a,hover:x,focus:f,valid:g,invalid:m,required:L,loading:k,disabled:S,readonly:O,className:n(e.className,Xi),children:[l&&Zo(Wr,{children:[oe(Ke,{children:l}),r&&oe(_e,{})]}),oe(Ee,{id:Ot,placeholder:u,value:c,role:"combobox","aria-haspopup":"listbox","aria-expanded":y?"true":"false","aria-controls":y?tr:void 0,"aria-activedescendant":y&&bt?bt:void 0,"aria-autocomplete":ja,"aria-invalid":m?"true":void 0,"aria-busy":k?"true":void 0,"aria-label":ca,disabled:S,readOnly:O}),oe(fe,{valid:g,invalid:m,loading:k,disabled:S}),oe(ve,{loading:k,disabled:S}),oe(Ce,{loading:k,disabled:S,readonly:O,value:c}),d&&Zo(Wr,{children:[r&&oe(_e,{}),oe(De,{children:d})]}),oe(s,{className:"k-input-button",icon:"chevron-down",size:t,fillMode:a,"aria-label":"Open popup",tabIndex:-1,disabled:S})]}),y&&I&&oe(V,{className:"k-list-container k-combobox-popup",containerRole:"region",containerAriaLabel:"Combobox suggestions",children:I}),$&&oe(J,{adaptive:!0,id:Ot?`${Ot}-adaptive`:void 0,...U,header:oe(be,{actionsEnd:oe(s,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),input:!0,inputValue:c,inputPlaceholder:u,title:ce,subtitle:me}),children:oe("div",{className:"k-list-container",children:oe(R,{customValue:ue?oe(Lt,{text:`Use "${c}"`}):void 0,size:"large",children:Zo(F,{"aria-label":ce||"Options",children:[oe(P,{text:"List item"}),oe(P,{text:"List item"}),oe(P,{text:"List item"})]})})})})]})};X.states=Ac;X.options=Oc;X.className=Xi;X.defaultOptions=qi;X.moduleName=qr;X.folderName=$i;X.ariaSpec={selector:".k-combobox",rules:[{selector:".k-combobox > .k-input-inner",attribute:"role=combobox",usage:"Identifies the input as a combobox."},{selector:".k-combobox > .k-input-inner",attribute:"aria-haspopup=listbox",usage:"Indicates the combobox has a listbox popup."},{selector:".k-combobox > .k-input-inner",attribute:"aria-expanded",usage:"Indicates whether the popup is open."},{selector:".k-combobox > .k-input-inner",attribute:"aria-controls=${id}-listbox (when open)",usage:"Points to the listbox element when popup is open."},{selector:".k-combobox > .k-input-inner",attribute:"aria-activedescendant (when open)",usage:"Points to the focused item in the listbox."},{selector:".k-combobox > .k-input-inner",attribute:"aria-autocomplete=list|both|inline (when has autocomplete)",usage:"Indicates the autocomplete behavior."},{selector:".k-combobox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the combobox is in an invalid state."},{selector:".k-combobox > .k-input-inner",attribute:"aria-busy=true (when loading)",usage:"Rendered when the combobox is loading data."},{selector:".k-combobox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name provided by consuming app."},{selector:".k-combobox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the combobox is disabled."},{selector:".k-combobox .k-input-button",attribute:"role=button or nodeName=button",usage:"The dropdown toggle button."},{selector:".k-combobox .k-input-button",attribute:"aria-label",usage:"Accessible name for the dropdown button."},{selector:".k-combobox .k-input-button",attribute:"tabindex=-1",usage:"Dropdown button is not in the tab order."},{selector:".k-combobox-popup .k-list-content, .k-combobox-popup .k-list-ul",attribute:"role=listbox",usage:"The popup list container has the listbox role."},{selector:'.k-combobox-popup .k-list-ul[role="listbox"], .k-combobox-popup .k-list-content[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-combobox-popup .k-list-item",attribute:"role=option",usage:"Each list item is an option."},{selector:".k-combobox-popup .k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state."},{selector:".k-combobox-popup .k-no-data",attribute:"aria-live=polite",usage:"Announces no-data state to screen readers."}]};var Te=X;import{jsx as Pc}from"react/jsx-runtime";var Wi=e=>Pc(Te,{...e});import{jsx as PI,jsxs as wI}from"react/jsx-runtime";import{jsx as zI,jsxs as HI}from"react/jsx-runtime";import{jsx as XI,jsxs as qI}from"react/jsx-runtime";import{Fragment as jI,jsx as QI}from"react/jsx-runtime";import{Fragment as ny,jsx as ry}from"react/jsx-runtime";import{jsx as cy,jsxs as my}from"react/jsx-runtime";import{Fragment as Ny,jsx as gy,jsxs as ky}from"react/jsx-runtime";import{jsx as Sy}from"react/jsx-runtime";import{jsx as Ey}from"react/jsx-runtime";import{jsx as By,jsxs as Ry}from"react/jsx-runtime";import{jsx as Uy,jsxs as Fy}from"react/jsx-runtime";import{jsx as Mt,jsxs as _c}from"react/jsx-runtime";var wc=X.states,Bc=X.defaultOptions,Rc=X.options,Kc=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"opened",title:"Opened"}],Dc=[],so=e=>{let{modifiers:t,...o}=e,a={},r=Mt(R,{style:{width:300},size:o.size,children:_c(F,{children:[Mt(P,{children:"List item"}),Mt(P,{children:"List item"}),Mt(P,{children:"List item"})]})});return Object.keys(t||{}).forEach(l=>{switch(l){case"prefix":a.prefix=t?.[l]?Mt(v,{icon:"map-marker-target"}):void 0;break;case"suffix":a.suffix=t?.[l]?Mt(ht,{size:o.size,icon:"copy",fillMode:"clear"}):void 0;break;case"opened":a.opened=!!t?.[l],a.popup=t?.[l]?r:void 0;break;default:break}}),Mt("div",{children:Mt(Wi,{value:"Value",style:{width:300},...o,...a})})};so.options=Rc;so.states=wc;so.variants=Dc;so.defaultOptions=Bc;so.modifiers=Kc;so.className=X.className;var Jr="dropzone",Ji=Jr;import{jsx as Ea,jsxs as Uc}from"react/jsx-runtime";var Zr="k-external-dropzone",zc=[i.disabled,i.hover],Hc={},Yr={icon:"upload",hint:"Drag and drop files here to upload"},Me=e=>{let{hover:t,disabled:o,icon:a=Yr.icon,hint:r=Yr.hint,note:l,...d}=e;return Ea("div",{...d,className:n(e.className,Zr,M(Zr,{disabled:o}),{"k-external-dropzone-hover":t}),children:Uc("div",{className:"k-dropzone-inner",children:[a&&Ea(v,{icon:a,className:"k-dropzone-icon",size:"xxxlarge"}),r&&Ea("span",{className:"k-dropzone-hint",children:r}),l&&Ea("span",{className:"k-dropzone-note",children:l})]})})};Me.states=zc;Me.options=Hc;Me.className=Zr;Me.defaultOptions=Yr;Me.moduleName=Jr;Me.folderName=Ji;import{jsx as Fc}from"react/jsx-runtime";var Ta=e=>Fc(Me,{...e});import{jsx as SC}from"react/jsx-runtime";import{jsx as Wc}from"react/jsx-runtime";var Gc=Me.options,Vc=Me.states,$c=Me.defaultOptions,Xc=[{name:"note",title:"Note"}],qc=[],lo=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{r==="note"&&(a.note=t?.[r]?"Only JPEG, PNG and SVG files are allowed.":void 0)}),Wc(Ta,{style:{width:"500px"},...o,...a})};lo.options=Gc;lo.states=Vc;lo.variants=qc;lo.defaultOptions=$c;lo.modifiers=Xc;lo.className=Me.className;var Qr="menu-button",Zi=Qr;import{jsx as Yc}from"react/jsx-runtime";var Yi="k-menu-button",Jc=[i.hover,i.focus,i.active,i.selected,i.disabled],Zc={size:[p.undefined,p.xsmall,p.small,p.medium,p.large],rounded:[h.undefined,h.none,h.small,h.medium,h.large,h.full],fillMode:[b.undefined,b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[N.undefined,N.base,N.primary,N.secondary,N.tertiary,N.success,N.warning,N.error,N.info,N.inverse]},jr={showArrow:!0,arrowIconName:"chevron-down"},K=e=>{let{size:t,rounded:o,fillMode:a,themeColor:r,hover:l,focus:d,active:c,selected:u,disabled:x,icon:f,text:g,showArrow:m=jr.showArrow,arrowIconName:L=jr.arrowIconName,expanded:k,...S}=e;return Yc(s,{...S,className:n(e.className,Yi),text:g,size:t,rounded:o,fillMode:a,themeColor:r,hover:l,focus:d,active:c,selected:u,disabled:x,ariaDisabled:x||void 0,icon:f,showArrow:m,arrowIconName:L,"aria-expanded":k?"true":"false",...!g&&f&&!e["aria-label"]&&{"aria-label":"Menu"}})};K.states=Jc;K.options=Zc;K.className=Yi;K.defaultOptions=jr;K.moduleName=Qr;K.folderName=Zi;K.ariaSpec={selector:".k-menu-button",rules:[{selector:".k-menu-button",attribute:"role=button or nodeName=button",usage:"Omitted if the button DOM element is used."},{selector:".k-menu-button",attribute:"aria-label (when icon-only)",usage:"Required when no text is visible in the button."},{selector:".k-menu-button",attribute:"aria-expanded=true/false",usage:"Announces the state of the popup visibility."},{s