UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 146 kB
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,C)=>(C.startsWith("k-")?I[C]=S[C]:I[`k-${C}`]=S[C],I),{}))};function $n(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"},Qe={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 ar={};function H(e){return ar[e]=(ar[e]||0)+1,`k-${e}-${ar[e]}`}import{Fragment as yl,jsx as Xn}from"react/jsx-runtime";var rr="k-font-icon",Ml=[],Sl={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]},Il={},zo=e=>{let{size:t,themeColor:o,icon:a,rotate:r,flip:l,...d}=e;return a?Xn("span",{...d,className:n(e.className,rr,E(rr,{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"}):Xn(yl,{})};zo.states=Ml;zo.options=Sl;zo.className=rr;zo.defaultOptions=Il;var qn=zo;import{Fragment as Tl,jsx as fa}from"react/jsx-runtime";var nr="k-svg-icon",Cl=[],El={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:[Qe.outline,Qe.solid,Qe.duotone]},ir={viewBox:"0 0 24 24",variant:Qe.outline},Ho=e=>{let{size:t,themeColor:o,rotate:a,flip:r,viewBox:l=ir.viewBox,variant:d=ir.variant,icon:c,...u}=e;if(!c)return fa(Tl,{});if(c==="none")return fa("span",{...u,className:n(e.className,nr,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 fa("span",{...u,className:n(e.className,nr,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:fa("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})})};Ho.states=Cl;Ho.options=El;Ho.className=nr;Ho.defaultOptions=ir;var sr=Ho;import*as lr from"@progress/kendo-svg-icons";var Wn="icon",Jn="icons";import{useContext as Ol}from"react";import{createContext as Al}from"react";var Zn=Al({iconsType:"svg"});import{Fragment as Yn,jsx as Uo}from"react/jsx-runtime";var ba="k-icon",Pl=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),wl=[],Bl={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:[Qe.outline,Qe.solid,Qe.duotone]},ha={viewBox:"0 0 24 24",type:"svg",variant:Qe.outline},v=e=>{let{iconsType:t}=Ol(Zn),{size:o,themeColor:a,icon:r,type:l=t||ha.type,rotate:d,flip:c,viewBox:u=ha.viewBox,variant:x=ha.variant,...f}=e;if(!r)return Uo(Yn,{});if((t||l)==="svg"){if(r==="none")return Uo(sr,{...f,className:n(e.className,ba),icon:r,size:o,variant:x});let m=lr[r]?r:Pl(`${r}-icon`);return lr[m]?Uo(sr,{...f,className:n(e.className,ba),icon:lr[m],size:o,themeColor:a,rotate:d,flip:c,viewBox:u,variant:x}):Uo(Yn,{})}return Uo(qn,{...f,className:n(e.className,ba),icon:r,size:o,themeColor:a,rotate:d,flip:c})};v.states=wl;v.options=Bl;v.defaultOptions=ha;v.className=ba;v.moduleName=Wn;v.folderName=Jn;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 dr="button",Qn=dr;import{Fragment as jn,jsx as Jt,jsxs as ei}from"react/jsx-runtime";var Fo="k-button",Rl=["icon-button"],Kl=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Dl={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]},pr={showArrow:!1,arrowIconName:"chevron-down"},s=e=>{let{as:t="button",size:o,rounded:a,fillMode:r,themeColor:l,showArrow:d=pr.showArrow,arrowIconName:c=pr.arrowIconName,variant:u,hover:x,focus:f,active:g,selected:m,disabled:L,togglable:k,ariaDisabled:S,icon:I,iconSize:C,text:O,iconClassName:q,className:U,...ce}=e,me=I!=null,ue=e.children!==void 0;return ei(t,{className:n(U,Fo,$n(Fo,u),E(Fo,{size:o,rounded:a,fillMode:r,themeColor:l}),M(Fo,{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&&Jt(v,{className:n(q,"k-button-icon"),icon:I,size:C}),I&&typeof I!="string"&&Jt(jn,{children:I}),O?ei(jn,{children:[O&&Jt("span",{className:"k-button-text",children:O}),e.children]}):e.children&&Jt("span",{className:"k-button-text",children:e.children}),d&&Jt("span",{className:"k-menu-button-arrow k-button-arrow",children:Jt(v,{icon:c})})]})};s.states=Kl;s.options=Dl;s.variants=Rl;s.className=Fo;s.defaultOptions=pr;s.moduleName=dr;s.folderName=Qn;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 _l}from"react/jsx-runtime";var xt=e=>_l(s,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as zl}from"react/jsx-runtime";var Go=e=>zl(s,{icon:"folder",children:"Button",...e});import{jsx as Hl}from"react/jsx-runtime";var wt=e=>Hl(s,{children:"Button",...e});import{jsx as cr}from"react/jsx-runtime";var Ul=s.options,Fl=s.states,Gl={...s.defaultOptions,variant:"text"},Vl=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],$l=[],Zt=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return cr(xt,{...o,icon:"star"});case"icon-and-text":return cr(Go,{...o,icon:"star",children:"Button"});default:return cr(wt,{...o,children:"Button"})}};Zt.options=Ul;Zt.states=Fl;Zt.variants=Vl;Zt.defaultOptions=Gl;Zt.modifiers=$l;Zt.className=s.className;var mr="button",ti=mr;import{jsx as Jl}from"react/jsx-runtime";var Vo="k-button-group",Xl=[i.disabled],ql={fillMode:[b.undefined,b.solid,b.flat,b.outline,b.clear,b.link]},Wl={},y=e=>{let{fillMode:t,disabled:o,stretched:a,...r}=e;return Jl("div",{role:"group",...r,className:n(e.className,Vo,E(Vo,{fillMode:t}),M(Vo,{disabled:o}),{[`${Vo}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};y.states=Xl;y.options=ql;y.className=Vo;y.defaultOptions=Wl;y.moduleName=mr;y.folderName=ti;y.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 Kh,jsx as Rh,jsxs as Dh}from"react/jsx-runtime";import{Fragment as Gh,jsx as Fh,jsxs as Vh}from"react/jsx-runtime";import{Fragment as Zh,jsx as Jh,jsxs as Yh}from"react/jsx-runtime";import{Fragment as ax,jsx as ox,jsxs as rx}from"react/jsx-runtime";import{Fragment as px,jsx as dx,jsxs as cx}from"react/jsx-runtime";import{Fragment as xx,jsx as hx,jsxs as gx}from"react/jsx-runtime";import{jsx as it,jsxs as ur}from"react/jsx-runtime";var Zl={...s.options,...y.options},Yl=s.states,Ql={...s.defaultOptions,...y.defaultOptions,variant:"text-button"},jl=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],ed=[],Yt=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?ur(y,{fillMode:a.fillMode,className:o,children:[it(s,{...a,icon:"star"}),it(s,{...a,icon:"star"}),it(s,{...a,icon:"star"})]}):t==="icon-text-button"?ur(y,{fillMode:a.fillMode,className:o,children:[it(s,{...a,icon:"star",children:"First"}),it(s,{...a,icon:"star",children:"Middle"}),it(s,{...a,icon:"star",children:"Last"})]}):ur(y,{fillMode:a.fillMode,className:o,children:[it(s,{...a,children:"First"}),it(s,{...a,children:"Middle"}),it(s,{...a,children:"Last"})]})};Yt.options=Zl;Yt.states=Yl;Yt.variants=jl;Yt.defaultOptions=Ql;Yt.modifiers=ed;Yt.className=y.className;var $o="input",xa=$o;import{jsx as rd}from"react/jsx-runtime";var ga="k-input",td=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],od={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]},ad={},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 rd("span",{...g,className:n(e.className,ga,E(ga,{size:u,rounded:x,fillMode:f}),M(ga,{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:d,readonly:c}))})};Q.states=td;Q.options=od;Q.className=ga;Q.defaultOptions=ad;Q.moduleName=$o;Q.folderName=xa;import{jsx as ld}from"react/jsx-runtime";var ka="k-picker",nd=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],id={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]},sd={},je=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 ld("span",{...g,className:n(e.className,ka,E(ka,{size:u,rounded:x,fillMode:f}),M(ka,{hover:t,focus:o,disabled:a,invalid:r,valid:l,loading:d,readonly:c})),children:e.children})};je.states=nd;je.options=id;je.className=ka;je.defaultOptions=sd;je.moduleName=$o;je.folderName=xa;import{Fragment as cd,jsx as fr}from"react/jsx-runtime";var oi="k-clear-value",dd=[i.disabled,i.loading,i.readonly],pd={},Ee=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?fr(cd,{}):fr("span",{className:n(e.className,oi),children:fr(v,{icon:"x"})})};Ee.states=dd;Ee.options=pd;Ee.className=oi;import{jsx as fd}from"react/jsx-runtime";var br="k-input-inner",md=[],ud={},Na={type:"text",autocomplete:"off",value:"",placeholder:""},Te=e=>{let{value:t=Na.value,type:o=Na.type,placeholder:a=Na.placeholder,autocomplete:r=Na.autocomplete,disabled:l,readOnly:d,...c}=e;return fd("input",{...c,type:o,className:n(e.className,br,E(br,e)),placeholder:a,autoComplete:r,defaultValue:t,disabled:l||void 0,readOnly:d||void 0})};Te.states=md;Te.options=ud;Te.className=br;import{jsx as ai,jsxs as xd}from"react/jsx-runtime";var hr="k-input-inner",bd=[],hd={},Bt=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:l,...d}=e;return xd("span",{...d,className:n(e.className,hr,E(hr,e)),children:[r,!r&&l&&ai(v,{className:"k-input-value-icon",icon:l}),a&&!t&&o,a&&t&&ai("span",{className:"k-input-value-text",children:t})]})};Bt.states=bd;Bt.options=hd;Bt.className=hr;import{jsx as Nd}from"react/jsx-runtime";var xr="k-input-inner",gd=[],kd={},ri={value:"",placeholder:""},gr=e=>{let{value:t=ri.value,placeholder:o=ri.placeholder,rows:a,disabled:r,...l}=e;return Nd("textarea",{...l,className:n(e.className,xr,E(xr,e)),placeholder:o,rows:a,defaultValue:t,disabled:r||void 0})};gr.states=gd;gr.options=kd;gr.className=xr;import{Fragment as Ld,jsx as ni}from"react/jsx-runtime";var ii="k-input-loading-icon",vd=[i.disabled,i.loading],ve=e=>{let{disabled:t,loading:o}=e;return t||!o?ni(Ld,{}):ni("span",{className:n(e.className,ii,"k-icon k-i-loading")})};ve.states=vd;ve.className=ii;import{Fragment as Id,jsx as si}from"react/jsx-runtime";var li="k-input-validation-icon",Md=[i.valid,i.invalid,i.disabled,i.loading],Sd={},fe=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,l=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?si(Id,{}):si(v,{className:n(li),icon:l})};fe.states=Md;fe.options=Sd;fe.className=li;import{Fragment as Ed,jsx as di}from"react/jsx-runtime";var yd="k-input-prefix",Cd={direction:"horizontal"},Ke=e=>{let{direction:t=Cd.direction,...o}=e;return e.children?di("span",{...o,className:n(yd,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):di(Ed,{})};import{Fragment as Od,jsx as pi}from"react/jsx-runtime";var Td="k-input-suffix",Ad={direction:"horizontal"},De=e=>{let{direction:t=Ad.direction,...o}=e;return e.children?pi("span",{...o,className:n(Td,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):pi(Od,{})};import{jsx as gg}from"react/jsx-runtime";import{jsx as wd}from"react/jsx-runtime";var Pd="k-input-suffix-text",kr=e=>{let{children:t,...o}=e;return wd("span",{...o,className:n(Pd,e.className),children:t})};import{jsx as Rd}from"react/jsx-runtime";var ci="k-input-separator",Bd={direction:"vertical"},_e=e=>{let{direction:t=Bd.direction,...o}=e;return Rd("span",{...o,className:n(ci,e.className,{[`${ci}-${t}`]:t})})};import{Fragment as mi,jsx as et,jsxs as Nr}from"react/jsx-runtime";var Kd=Q.states,Dd=Q.defaultOptions,_d=Q.options,zd=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Hd=[],Qt=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 Nr(Q,{...c,valid:o,invalid:a,loading:r,disabled:l,readonly:d,style:{width:300},children:[u&&Nr(mi,{children:[et(Ke,{children:et(v,{icon:"lock"})}),m&&et(_e,{})]}),et(Te,{placeholder:"Placeholder",value:"Value"}),g&&et(fe,{valid:o,invalid:a,loading:r,disabled:l}),et(ve,{loading:r,disabled:l}),f&&et(Ee,{loading:r,disabled:l,readonly:d,value:"Value"}),x&&Nr(mi,{children:[m&&et(_e,{}),et(De,{children:et(wt,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Qt.options=_d;Qt.states=Kd;Qt.variants=Hd;Qt.defaultOptions=Dd;Qt.modifiers=zd;Qt.className=Q.className;var vr="popup",ui=vr;import{jsx as fi}from"react/jsx-runtime";var bi="k-animation-container",Ud=[],Fd={},Lr={positionMode:"absolute",shown:!0},tt=e=>{let{positionMode:t=Lr.positionMode,shown:o=Lr.shown,animationStyle:a,offset:r,...l}=e;return fi("div",{...l,style:{...r,...e.style},className:n(e.className,bi,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:fi("div",{className:"k-child-animation-container",style:a,children:e.children})})};tt.states=Ud;tt.options=Fd;tt.className=bi;tt.defaultOptions=Lr;tt.moduleName=vr;tt.folderName=ui;var Mr="popup",hi=Mr;import{jsx as xi}from"react/jsx-runtime";var gi="k-popup",Gd=[],Vd={},ki={positionMode:"absolute"},V=e=>{let{offset:t,positionMode:o=ki.positionMode,animationStyle:a,containerClassName:r,containerRole:l,containerAriaLabel:d,...c}=e;return xi(tt,{positionMode:o,offset:t,animationStyle:a,className:r,role:l,"aria-label":d,children:xi("div",{...c,className:n(e.className,gi),children:e.children})})};V.states=Gd;V.options=Vd;V.className=gi;V.defaultOptions=ki;V.moduleName=Mr;V.folderName=hi;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 Sr="action-buttons",Ni=Sr;import{jsx as qd}from"react/jsx-runtime";var va="k-actions",$d=[],Xd={},Ir={alignment:"start",orientation:"horizontal"},Je=e=>{let{alignment:t=Ir.alignment,orientation:o=Ir.orientation,...a}=e;return qd("div",{...a,className:n(va,{[`${va}-${t}`]:t,[`${va}-${o}`]:o},e.className),children:e.children})};Je.states=$d;Je.options=Xd;Je.className=va;Je.defaultOptions=Ir;Je.moduleName=Sr;Je.folderName=Ni;var vi=Je;import{jsx as Jd}from"react/jsx-runtime";var Wd="k-actionsheet-footer",Li={alignment:"stretched",orientation:"horizontal"},gt=e=>{let{alignment:t=Li.alignment,orientation:o=Li.orientation,template:a,as:r=a?"div":Je,...l}=e;return Jd(r,{...l,...!a&&{alignment:t,orientation:o},className:n(e.className,Wd),children:e.children})};var yr="searchbox",Mi=yr;import{jsx as Xo,jsxs as Qd}from"react/jsx-runtime";var Si="k-searchbox",Zd=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],Yd={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]},Cr={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=Cr.showIcon,icon:k=Cr.icon,"aria-label":S,...I}=e;return Qd(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,Si),children:[L&&Xo(v,{className:"k-input-icon",icon:k}),Xo(Te,{placeholder:o,value:t,"aria-label":S}),Xo(ve,{...e}),Xo(fe,{...e}),Xo(Ee,{...e})]})};ze.states=Zd;ze.options=Yd;ze.className=Si;ze.defaultOptions=Cr;ze.moduleName=yr;ze.folderName=Mi;import{jsx as Dk}from"react/jsx-runtime";var Er="textbox",Ii=Er;import{Fragment as yi,jsx as kt,jsxs as Tr}from"react/jsx-runtime";var Ci="k-textbox",jd=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],ep={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]},La={showClearButton:!0,showValidationIcon:!0,separators:!0},te=e=>{let{size:t,rounded:o,fillMode:a,separators:r=La.separators,showClearButton:l=La.showClearButton,showValidationIcon:d=La.showValidationIcon,prefix:c,suffix:u,type:x,value:f,placeholder:g,hover:m,focus:L,valid:k,invalid:S,required:I,loading:C,disabled:O,readonly:q,id:U,"aria-label":ce,"aria-describedby":me,...ue}=e;return Tr(Q,{...ue,size:t,rounded:o,fillMode:a,hover:m,focus:L,valid:k,invalid:S,required:I,loading:C,disabled:O,readonly:q,className:n(e.className,Ci),children:[c&&Tr(yi,{children:[kt(Ke,{children:c}),r&&kt(_e,{})]}),kt(Te,{id:U,placeholder:g,value:f,type:x,disabled:O,"aria-label":ce,"aria-describedby":me,"aria-invalid":S?"true":void 0}),d&&kt(fe,{valid:k,invalid:S,loading:C,disabled:O}),kt(ve,{loading:C,disabled:O}),l&&kt(Ee,{loading:C,disabled:O,readonly:q,value:f}),u&&Tr(yi,{children:[r&&kt(_e,{}),kt(De,{children:u})]})]})};te.states=jd;te.options=ep;te.className=Ci;te.defaultOptions=La;te.moduleName=Er;te.folderName=Ii;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 qo=te;import{jsx as tp}from"react/jsx-runtime";var Ei=e=>tp(qo,{...e});import{Fragment as tN,jsx as eN}from"react/jsx-runtime";import{Fragment as sN,jsx as iN}from"react/jsx-runtime";import{jsx as cN}from"react/jsx-runtime";import{jsx as Ar}from"react/jsx-runtime";var op=te.states,ap=te.defaultOptions,rp=te.options,np=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],ip=[],jt=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(r=>{switch(r){case"prefix":a.prefix=t?.[r]?Ar(v,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[r]?Ar(wt,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[r];break;default:break}}),Ar(Ei,{value:"Value",style:{width:300},...o,...a})};jt.options=rp;jt.states=op;jt.variants=ip;jt.defaultOptions=ap;jt.modifiers=np;jt.className=te.className;import{jsx as Nt,jsxs as Or}from"react/jsx-runtime";var Ti="k-actionsheet-titlebar",sp={},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 Or("div",{...m,className:n(e.className,Ti),children:[Or("div",{className:"k-actionsheet-titlebar-group",children:[a&&Nt("div",{className:"k-actionsheet-actions",children:a}),!g&&Or("div",{className:"k-actionsheet-title",id:f,children:[t&&Nt("div",{className:"k-text-center",children:t}),o&&Nt("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),g&&Nt("div",{className:"k-actionsheet-title",id:f,children:g}),r&&Nt("div",{className:"k-actionsheet-actions",children:r})]}),(d||l)&&Nt("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Nt(te,{value:c,placeholder:u,size:x?"large":"medium","aria-label":t||u||"Input"}):Nt(ze,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};be.className=Ti;be.defaultOptions=sp;import{jsx as Pr,jsxs as cp}from"react/jsx-runtime";var wr="k-actionsheet-view",lp=[],dp={},pp={},eo=e=>{let{adaptive:t,animated:o,children:a,header:r,footer:l,titleId:d,...c}=e,u=r?.type===be&&Pr(be,{adaptive:t,titleId:d,...r?.props}),x=l?.type===gt&&Pr(gt,{...l?.props});return cp("div",{...c,className:n(e.className,wr,{[`${wr}-animated`]:o}),children:[u,Pr("div",{className:"k-actionsheet-content",children:a}),x]})};eo.states=lp;eo.options=dp;eo.className=wr;eo.defaultOptions=pp;var Wo="action-sheet",Ma=Wo;var Br="overlay",Ai=Br;import{jsx as bp}from"react/jsx-runtime";var Oi="k-overlay",mp=[],up={},fp={},vt=e=>{let{...t}=e;return bp("div",{...t,className:n(e.className,Oi),children:e.children})};vt.states=mp;vt.options=up;vt.className=Oi;vt.defaultOptions=fp;vt.moduleName=Br;vt.folderName=Ai;import{jsx as Sa,jsxs as gp}from"react/jsx-runtime";var Pi="k-actionsheet",hp=[],xp={},Jo={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},J=e=>{let{side:t=Jo.side,fullscreen:o=Jo.fullscreen,adaptive:a=Jo.adaptive,overlay:r=Jo.overlay,template:l,children:d,header:c,footer:u,id:x,...f}=e,g=x&&!l&&c?`${x}-title`:void 0;return gp("div",{className:"k-actionsheet-container",children:[r&&Sa(vt,{}),Sa(tt,{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:Sa("div",{...f,id:x,role:"dialog","aria-modal":r?"true":void 0,"aria-labelledby":g,className:n(e.className,Pi,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:l||Sa(eo,{header:c,footer:u,adaptive:a,titleId:g,...e,children:d})})})]})};J.states=hp;J.options=xp;J.className=Pi;J.defaultOptions=Jo;J.moduleName=Wo;J.folderName=Ma;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 Lp}from"react/jsx-runtime";var wi="k-actionsheet-container",kp=[],Np={},vp={},to=e=>{let{children:t,...o}=e;return Lp("div",{...o,className:wi,children:t})};to.states=kp;to.options=Np;to.className=wi;to.defaultOptions=vp;to.moduleName=Wo;to.folderName=Ma;import{jsx as Mp}from"react/jsx-runtime";var Rr=e=>{let{...t}=e;return Mp("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as Ip,jsx as Zo,jsxs as Kr}from"react/jsx-runtime";var Dr="k-actionsheet-item",Sp=[i.hover,i.focus,i.selected,i.disabled],Lt=e=>{let{iconName:t,text:o,description:a,hover:r,focus:l,selected:d,disabled:c,...u}=e;return Kr("span",{...u,className:n(e.className,Dr,M(Dr,{hover:r,focus:l,selected:d,disabled:c})),children:[!e.children&&Zo(Ip,{children:Kr("span",{className:"k-actionsheet-action",children:[t&&Zo("span",{className:"k-icon-wrap",children:Zo(v,{className:"k-actionsheet-item-icon",icon:t})}),Kr("span",{className:"k-actionsheet-item-text",children:[o&&Zo("span",{className:"k-actionsheet-item-title",children:o}),a&&Zo("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Lt.states=Sp;Lt.className=Dr;import{jsx as pv,jsxs as cv}from"react/jsx-runtime";import{jsx as bv}from"react/jsx-runtime";import{jsx as kv}from"react/jsx-runtime";import{jsx as Mv}from"react/jsx-runtime";import{jsx as se,jsxs as _r}from"react/jsx-runtime";var yp=J.options,Cp=J.states,Ri={...J.defaultOptions,variant:"normal"},Ep=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Tp=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],oo=e=>{let{variant:t,modifiers:o,...a}={...Ri,...e},r={},l=_r(Rr,{children:[se(Lt,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),se(Lt,{text:"Add to Favorites",iconName:"heart"}),se(Lt,{text:"Upload New",iconName:"upload",disabled:!0}),se("hr",{className:"k-hr"}),se(Lt,{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?_r(gt,{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?_r(gt,{alignment:"stretched",children:[se(s,{text:"Apply",themeColor:"primary"}),se(s,{text:"Cancel",themeColor:"base"})]}):void 0,children:l})};oo.options=yp;oo.states=Cp;oo.variants=Ep;oo.defaultOptions=Ri;oo.modifiers=Tp;oo.className=J.className;import Hr from"react";import{jsx as Ki}from"react/jsx-runtime";var Ap="k-list-group-sticky-header",zr=e=>Ki("div",{className:n(Ap,e.className),children:Ki("div",{className:"k-list-header-text",children:e.children})});import{jsx as Pp}from"react/jsx-runtime";var Op="k-no-data",Ia=e=>{let{live:t,...o}=e;return Pp("span",{...o,className:n(Op,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Rt="list",ao=Rt;import{jsx as Di,jsxs as _i}from"react/jsx-runtime";var Ur="k-list",wp=[],Bp={size:[p.undefined,p.small,p.medium,p.large]},Rp={},K=e=>{let{size:t,virtualization:o,children:a,header:r,selectAll:l,optionLabel:d,customValue:c,noData:u,screenReaders:x,...f}=e,m=Hr.Children.toArray(a)[0],L=m?.props?.children?Hr.Children.count(m.props.children):Hr.Children.count(a);return _i("div",{...f,className:n(e.className,Ur,E(Ur,{size:t}),{"k-virtual-list":o}),children:[d,l,c,r&&Di(zr,{children:r}),a||(u!==void 0?u:Di(Ia,{live:!0,children:"No data found."})),x&&a&&_i(Ia,{className:"k-sr-only",live:!0,children:[L," items found."]})]})};K.states=wp;K.options=Bp;K.className=Ur;K.defaultOptions=Rp;K.moduleName=Rt;K.folderName=ao;K.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};import{jsx as zp}from"react/jsx-runtime";var zi="k-list-container",Kp=[],Dp={},_p={},ro=e=>{let{...t}=e;return zp("div",{...t,className:n(e.className,zi),children:e.children})};ro.states=Kp;ro.options=Dp;ro.className=zi;ro.defaultOptions=_p;ro.moduleName=Rt;ro.folderName=ao;var Kt="checkbox",no=Kt;import{jsx as Hi}from"react/jsx-runtime";var ya="k-checkbox",Hp=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.checked,i.indeterminate],Up={size:[p.undefined,p.small,p.medium,p.large],rounded:[h.undefined,h.none,h.small,h.medium,h.large,h.full]},Fp={},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 Hi("span",{className:"k-checkbox-wrap",role:m,children:Hi("input",{...L,id:t,type:"checkbox",defaultChecked:o,required:x,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:n(e.className,ya,E(ya,{size:f,rounded:g}),M(ya,{hover:r,focus:l,disabled:d,invalid:c,valid:u,indeterminate:a,checked:o}))})})};Le.states=Hp;Le.options=Up;Le.className=ya;Le.defaultOptions=Fp;Le.moduleName=Kt;Le.folderName=no;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 $p}from"react/jsx-runtime";var Ui="k-checkbox-list",Gp=[],Vp={},Fi={layout:"vertical"},he=e=>{let{layout:t=Fi.layout,...o}=e;return $p("ul",{...o,className:n(e.className,Ui,{[`k-list-${t}`]:t}),children:e.children})};he.states=Gp;he.options=Vp;he.className=Ui;he.defaultOptions=Fi;he.moduleName=Kt;he.folderName=no;import{jsx as Jp}from"react/jsx-runtime";var Gi="k-checkbox-list-item",Xp=[],qp={},Wp={},xe=e=>{let{...t}=e;return Jp("li",{...t,className:n(e.className,Gi),children:e.children})};xe.states=Xp;xe.options=qp;xe.className=Gi;xe.defaultOptions=Wp;xe.moduleName=Kt;xe.folderName=no;import{Fragment as Zp,jsx as Vi,jsxs as Yp}from"react/jsx-runtime";var st=({children:e="Label",id:t="cb-label-after",...o})=>Yp(Zp,{children:[Vi(Ze,{id:t,...o}),Vi("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as PL,jsx as OL,jsxs as wL}from"react/jsx-runtime";import{Fragment as _L,jsx as DL,jsxs as zL}from"react/jsx-runtime";import{Fragment as VL,jsx as GL,jsxs as $L}from"react/jsx-runtime";import{jsx as JL}from"react/jsx-runtime";import{jsx as jL}from"react/jsx-runtime";import{jsx as aM}from"react/jsx-runtime";import{jsx as He,jsxs as $i}from"react/jsx-runtime";var Qp=he.options,jp=he.states,ec={...he.defaultOptions,variant:"vertical"},tc=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],oc=[],io=e=>{let{variant:t,...o}=e;return t==="horizontal"?$i(he,{layout:"horizontal",...o,children:[He(xe,{children:He(st,{id:H("cb"),defaultChecked:!0,children:"Label"})}),He(xe,{children:He(st,{id:H("cb"),children:"Label"})}),He(xe,{children:He(st,{id:H("cb"),children:"Label"})})]}):$i(he,{...o,children:[He(xe,{children:He(st,{id:H("cb"),defaultChecked:!0,children:"Label"})}),He(xe,{children:He(st,{id:H("cb"),children:"Label"})}),He(xe,{children:He(st,{id:H("cb"),children:"Label"})})]})};io.options=Qp;io.states=jp;io.variants=tc;io.defaultOptions=ec;io.modifiers=oc;io.className=he.className;import{jsx as lc}from"react/jsx-runtime";var ac=Ze.options,rc=Ze.states,nc=Ze.defaultOptions,ic=[],sc=[],so=e=>lc(st,{id:H("checkbox"),...e,defaultChecked:!0,children:"Label"});so.options=ac;so.states=rc;so.variants=ic;so.defaultOptions=nc;so.modifiers=sc;so.className=Ze.className;import{jsx as Dt,jsxs as mc}from"react/jsx-runtime";var Fr="k-list-item",dc=[i.hover,i.focus,i.selected,i.disabled],pc={},cc={},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 mc("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":Fr,M(Fr,{hover:u,focus:x,disabled:g,selected:f})),children:[d&&Dt(Le,{checked:c}),r&&Dt("span",{className:"k-list-item-icon-wrapper",children:Dt(v,{icon:r,className:n("k-list-item-icon",l)})}),Dt("span",{className:"k-list-item-text",children:I}),m&&Dt("div",{className:"k-list-item-actions",children:m}),L&&Dt("span",{className:"k-list-item-description",children:L}),o&&o!==""&&Dt("div",{className:"k-list-item-group-label",children:o})]})};P.states=dc;P.options=pc;P.className=Fr;P.defaultOptions=cc;P.moduleName=Rt;P.folderName=ao;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 fc}from"react/jsx-runtime";var uc="k-list-ul",lt=e=>{let{children:t,role:o,id:a,...r}=e;return fc("ul",{...r,id:a,role:o,className:n(uc,e.className),children:t})};lt.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 Gr,jsxs as hc}from"react/jsx-runtime";var bc="k-list-content",F=e=>{let{virtualization:t,grouping:o,"aria-label":a,"aria-labelledby":r,listboxId:l,...d}=e;return hc("div",{...d,className:n(bc,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:Gr(lt,{role:"listbox",id:l,"aria-label":a,"aria-labelledby":r,children:e.children}),t&&Gr("div",{className:"k-height-container",children:Gr("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 Vr,jsxs as Nc}from"react/jsx-runtime";var Ca="k-list-sticky-header",xc=[i.hover,i.focus,i.selected],gc={},kc={},Ea=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:a,indeterminate:r,hover:l,focus:d,selected:c,...u}=e;return Vr("div",{...u,className:n(Ca,e.className),children:Nc("div",{className:n(`${Ca}-item`,M(`${Ca}-item`,{hover:l,focus:d,selected:c})),children:[o&&Vr(Le,{checked:a,indeterminate:r,"aria-label":t}),Vr("span",{className:"k-list-item-text",children:t})]})})};Ea.states=xc;Ea.options=gc;Ea.className=Ca;Ea.defaultOptions=kc;import{Fragment as YM,jsx as ZM,jsxs as QM}from"react/jsx-runtime";import{jsx as $r,jsxs as Lc}from"react/jsx-runtime";var vc="k-list-group-item",_t=e=>{let{groupIconName:t,...o}=e;return Lc("li",{...o,role:"presentation",className:n(vc,e.className),children:[t&&$r("span",{className:"k-list-item-icon-wrapper",children:$r(v,{icon:t,className:"k-list-item-icon"})}),$r("span",{className:"k-list-item-text",children:e.children})]})};_t.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 yc}from"react/jsx-runtime";var Xr="k-list-optionlabel",Mc=[i.hover,i.focus,i.selected,i.disabled],Sc={},Ic={},Ta=e=>{let{text:t,hover:o,focus:a,selected:r,disabled:l,...d}=e;return yc("div",{...d,className:n(Xr,M(Xr,{hover:o,focus:a,selected:r,disabled:l})),children:t})};Ta.states=Mc;Ta.options=Sc;Ta.className=Xr;Ta.defaultOptions=Ic;import{jsx as Ac}from"react/jsx-runtime";var qr="k-list-custom-value",Cc=[i.hover,i.focus,i.selected,i.disabled],Ec={},Tc={},Mt=e=>{let{text:t,hover:o,focus:a,selected:r,disabled:l,...d}=e;return Ac("div",{...d,className:n(qr,M(qr,{hover:o,focus:a,selected:r,disabled:l})),children:t})};Mt.states=Cc;Mt.options=Ec;Mt.className=qr;Mt.defaultOptions=Tc;import{Fragment as fS,jsx as uS,jsxs as bS}from"react/jsx-runtime";import{Fragment as vS,jsx as NS,jsxs as LS}from"react/jsx-runtime";import{Fragment as TS,jsx as CS,jsxs as ES}from"react/jsx-runtime";import{Fragment as KS,jsx as BS,jsxs as RS}from"react/jsx-runtime";import{jsx as HS}from"react/jsx-runtime";import{Fragment as XS,jsx as $S,jsxs as qS}from"react/jsx-runtime";var Wr="combobox",Xi=Wr;import{Fragment as Jr,jsx as oe,jsxs as Yo}from"react/jsx-runtime";var qi="k-combobox",Oc=[i.hover,i.focus,i.valid,i.invalid,i.loading,i.required,i.disabled,i.readonly],Pc={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]},Wi={separators:!0},$=e=>{let{size:t,rounded:o,fillMode:a,separators:r=Wi.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:C,readonly:O,adaptive:q,adaptiveSettings:U,adaptiveTitle:ce,adaptiveSubtitle:me,adaptiveCustomValue:ue,id:Pt,autocomplete:er,activeDescendant:ht,"aria-label":ua,...tr}=e,or=Pt?`${Pt}-listbox`:void 0;return Yo(Jr,{children:[Yo(Q,{...tr,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,qi),children:[l&&Yo(Jr,{children:[oe(Ke,{children:l}),r&&oe(_e,{})]}),oe(Te,{id:Pt,placeholder:u,value:c,role:"combobox","aria-haspopup":"listbox","aria-expanded":C?"true":"false","aria-controls":C?or:void 0,"aria-activedescendant":C&&ht?ht:void 0,"aria-autocomplete":er,"aria-invalid":m?"true":void 0,"aria-busy":k?"true":void 0,"aria-label":ua,disabled:S,readOnly:O}),oe(fe,{valid:g,invalid:m,loading:k,disabled:S}),oe(ve,{loading:k,disabled:S}),oe(Ee,{loading:k,disabled:S,readonly:O,value:c}),d&&Yo(Jr,{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})]}),C&&I&&oe(V,{className:"k-list-container k-combobox-popup",containerRole:"region",containerAriaLabel:"Combobox suggestions",children:I}),q&&oe(J,{adaptive:!0,id:Pt?`${Pt}-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(K,{customValue:ue?oe(Mt,{text:`Use "${c}"`}):void 0,size:"large",children:Yo(F,{"aria-label":ce||"Options",children:[oe(P,{text:"List item"}),oe(P,{text:"List item"}),oe(P,{text:"List item"})]})})})})]})};$.states=Oc;$.options=Pc;$.className=qi;$.defaultOptions=Wi;$.moduleName=Wr;$.folderName=Xi;$.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 Ae=$;import{jsx as wc}from"react/jsx-runtime";var Ji=e=>wc(Ae,{...e});import{jsx as OI,jsxs as PI}from"react/jsx-runtime";import{jsx as _I,jsxs as zI}from"react/jsx-runtime";import{jsx as $I,jsxs as XI}from"react/jsx-runtime";import{Fragment as QI,jsx as YI}from"react/jsx-runtime";import{Fragment as ry,jsx as ay}from"react/jsx-runtime";import{jsx as py,jsxs as cy}from"react/jsx-runtime";import{Fragment as ky,jsx as xy,jsxs as gy}from"react/jsx-runtime";import{jsx as My}from"react/jsx-runtime";import{jsx as Cy}from"react/jsx-runtime";import{jsx as wy,jsxs as By}from"react/jsx-runtime";import{jsx as Hy,jsxs as Uy}from"react/jsx-runtime";import{jsx as St,jsxs as zc}from"react/jsx-runtime";var Bc=$.states,Rc=$.defaultOptions,Kc=$.options,Dc=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"opened",title:"Opened"}],_c=[],lo=e=>{let{modifiers:t,...o}=e,a={},r=St(K,{style:{width:300},size:o.size,children:zc(F,{children:[St(P,{children:"List item"}),St(P,{children:"List item"}),St(P,{children:"List item"})]})});return Object.keys(t||{}).forEach(l=>{switch(l){case"prefix":a.prefix=t?.[l]?St(v,{icon:"map-marker-target"}):void 0;break;case"suffix":a.suffix=t?.[l]?St(xt,{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}}),St("div",{children:St(Ji,{value:"Value",style:{width:300},...o,...a})})};lo.options=Kc;lo.states=Bc;lo.variants=_c;lo.defaultOptions=Rc;lo.modifiers=Dc;lo.className=$.className;var Zr="dropzone",Zi=Zr;import{jsx as Aa,jsxs as Fc}from"react/jsx-runtime";var Yr="k-external-dropzone",Hc=[i.disabled,i.hover],Uc={},Qr={icon:"upload",hint:"Drag and drop files here to upload"},Me=e=>{let{hover:t,disabled:o,icon:a=Qr.icon,hint:r=Qr.hint,note:l,...d}=e;return Aa("div",{...d,className:n(e.className,Yr,M(Yr,{disabled:o}),{"k-external-dropzone-hover":t}),children:Fc("div",{className:"k-dropzone-inner",children:[a&&Aa(v,{icon:a,className:"k-dropzone-icon",size:"xxxlarge"}),r&&Aa("span",{className:"k-dropzone-hint",children:r}),l&&Aa("span",{className:"k-dropzone-note",children:l})]})})};Me.states=Hc;Me.options=Uc;Me.className=Yr;Me.defaultOptions=Qr;Me.moduleName=Zr;Me.folderName=Zi;import{jsx as Gc}from"react/jsx-runtime";var Oa=e=>Gc(Me,{...e});import{jsx as MC}from"react/jsx-runtime";import{jsx as Jc}from"react/jsx-runtime";var Vc=Me.options,$c=Me.states,Xc=Me.defaultOptions,qc=[{name:"note",title:"Note"}],Wc=[],po=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)}),Jc(Oa,{style:{width:"500px"},...o,...a})};po.options=Vc;po.states=$c;po.variants=Wc;po.defaultOptions=Xc;po.modifiers=qc;po.className=Me.className;var jr="menu-button",Yi=jr;import{jsx as Qc}from"react/jsx-runtime";var Qi="k-menu-button",Zc=[i.hover,i.focus,i.active,i.selected,i.disabled],Yc={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]},en={showArrow:!0,arrowIconName:"chevron-down"},w=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=en.showArrow,arrowIconName:L=en.arrowIconName,expanded:k,...S}=e;return Qc(s,{...S,className:n(e.className,Qi),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"}})};w.states=Zc;w.options=Yc;w.className=Qi;w.defaultOptions=en;w.moduleName=jr;w.folderName=Yi;w.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