UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 145 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,y)=>(y.startsWith("k-")?I[y]=S[y]:I[`k-${y}`]=S[y],I),{}))};function Gn(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 Sl,jsx as Vn}from"react/jsx-runtime";var ar="k-font-icon",vl=[],Ll={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]},Ml={},_o=e=>{let{size:t,themeColor:o,icon:a,rotate:r,flip:l,...d}=e;return a?Vn("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"}):Vn(Sl,{})};_o.states=vl;_o.options=Ll;_o.className=ar;_o.defaultOptions=Ml;var $n=_o;import{Fragment as Cl,jsx as ma}from"react/jsx-runtime";var rr="k-svg-icon",Il=[],yl={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(Cl,{});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=Il;zo.options=yl;zo.className=rr;zo.defaultOptions=nr;var ir=zo;import*as sr from"@progress/kendo-svg-icons";var Xn="icon",qn="icons";import{useContext as Tl}from"react";import{createContext as El}from"react";var Wn=El({iconsType:"svg"});import{Fragment as Jn,jsx as Ho}from"react/jsx-runtime";var ua="k-icon",Al=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ol=[],Pl={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}=Tl(Wn),{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(Jn,{});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:Al(`${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(Jn,{})}return Ho($n,{...f,className:n(e.className,ua),icon:r,size:o,themeColor:a,rotate:d,flip:c})};v.states=Ol;v.options=Pl;v.defaultOptions=fa;v.className=ua;v.moduleName=Xn;v.folderName=qn;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",Zn=lr;import{Fragment as Yn,jsx as Jt,jsxs as Qn}from"react/jsx-runtime";var Uo="k-button",wl=["icon-button"],Bl=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Rl={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 Qn(t,{className:n(U,Uo,Gn(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&&Jt(v,{className:n($,"k-button-icon"),icon:I,size:y}),I&&typeof I!="string"&&Jt(Yn,{children:I}),O?Qn(Yn,{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=Bl;s.options=Rl;s.variants=wl;s.className=Uo;s.defaultOptions=dr;s.moduleName=lr;s.folderName=Zn;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 Kl}from"react/jsx-runtime";var ht=e=>Kl(s,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Dl}from"react/jsx-runtime";var Fo=e=>Dl(s,{icon:"folder",children:"Button",...e});import{jsx as _l}from"react/jsx-runtime";var Pt=e=>_l(s,{children:"Button",...e});import{jsx as pr}from"react/jsx-runtime";var zl=s.options,Hl=s.states,Ul={...s.defaultOptions,variant:"text"},Fl=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Gl=[],Zt=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"})}};Zt.options=zl;Zt.states=Hl;Zt.variants=Fl;Zt.defaultOptions=Ul;Zt.modifiers=Gl;Zt.className=s.className;var cr="button",jn=cr;import{jsx as ql}from"react/jsx-runtime";var Go="k-button-group",Vl=[i.disabled],$l={fillMode:[b.undefined,b.solid,b.flat,b.outline,b.clear,b.link]},Xl={},C=e=>{let{fillMode:t,disabled:o,stretched:a,...r}=e;return ql("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=Vl;C.options=$l;C.className=Go;C.defaultOptions=Xl;C.moduleName=cr;C.folderName=jn;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 Bh,jsx as wh,jsxs as Rh}from"react/jsx-runtime";import{Fragment as Uh,jsx as Hh,jsxs as Fh}from"react/jsx-runtime";import{Fragment as Wh,jsx as qh,jsxs as Jh}from"react/jsx-runtime";import{Fragment as tx,jsx as ex,jsxs as ox}from"react/jsx-runtime";import{Fragment as lx,jsx as sx,jsxs as dx}from"react/jsx-runtime";import{Fragment as bx,jsx as fx,jsxs as hx}from"react/jsx-runtime";import{jsx as nt,jsxs as mr}from"react/jsx-runtime";var Wl={...s.options,...C.options},Jl=s.states,Zl={...s.defaultOptions,...C.defaultOptions,variant:"text-button"},Yl=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Ql=[],Yt=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"})]})};Yt.options=Wl;Yt.states=Jl;Yt.variants=Yl;Yt.defaultOptions=Zl;Yt.modifiers=Ql;Yt.className=C.className;var Vo="input",ba=Vo;import{jsx as od}from"react/jsx-runtime";var ha="k-input",jl=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],ed={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]},td={},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 od("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=jl;Q.options=ed;Q.className=ha;Q.defaultOptions=td;Q.moduleName=Vo;Q.folderName=ba;import{jsx as id}from"react/jsx-runtime";var xa="k-picker",ad=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],rd={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]},nd={},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 id("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=ad;Qe.options=rd;Qe.className=xa;Qe.defaultOptions=nd;Qe.moduleName=Vo;Qe.folderName=ba;import{Fragment as dd,jsx as ur}from"react/jsx-runtime";var ei="k-clear-value",sd=[i.disabled,i.loading,i.readonly],ld={},Ce=e=>{let{disabled:t,loading:o,readonly:a,value:r}=e;return t||a||o||!r?ur(dd,{}):ur("span",{className:n(e.className,ei),children:ur(v,{icon:"x"})})};Ce.states=sd;Ce.options=ld;Ce.className=ei;import{jsx as md}from"react/jsx-runtime";var fr="k-input-inner",pd=[],cd={},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 md("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=pd;Ee.options=cd;Ee.className=fr;import{jsx as ti,jsxs as bd}from"react/jsx-runtime";var br="k-input-inner",ud=[],fd={},wt=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:r,valueIconName:l,...d}=e;return bd("span",{...d,className:n(e.className,br,E(br,e)),children:[r,!r&&l&&ti(v,{className:"k-input-value-icon",icon:l}),a&&!t&&o,a&&t&&ti("span",{className:"k-input-value-text",children:t})]})};wt.states=ud;wt.options=fd;wt.className=br;import{jsx as gd}from"react/jsx-runtime";var hr="k-input-inner",hd=[],xd={},oi={value:"",placeholder:""},xr=e=>{let{value:t=oi.value,placeholder:o=oi.placeholder,rows:a,disabled:r,...l}=e;return gd("textarea",{...l,className:n(e.className,hr,E(hr,e)),placeholder:o,rows:a,defaultValue:t,disabled:r||void 0})};xr.states=hd;xr.options=xd;xr.className=hr;import{Fragment as Nd,jsx as ai}from"react/jsx-runtime";var ri="k-input-loading-icon",kd=[i.disabled,i.loading],ve=e=>{let{disabled:t,loading:o}=e;return t||!o?ai(Nd,{}):ai("span",{className:n(e.className,ri,"k-icon k-i-loading")})};ve.states=kd;ve.className=ri;import{Fragment as Md,jsx as ni}from"react/jsx-runtime";var ii="k-input-validation-icon",vd=[i.valid,i.invalid,i.disabled,i.loading],Ld={},fe=e=>{let{valid:t,invalid:o,disabled:a,loading:r}=e,l=o?"warning-circle":"check-circle";return a||r||!!!(t||o)?ni(Md,{}):ni(v,{className:n(ii),icon:l})};fe.states=vd;fe.options=Ld;fe.className=ii;import{Fragment as yd,jsx as si}from"react/jsx-runtime";var Sd="k-input-prefix",Id={direction:"horizontal"},Re=e=>{let{direction:t=Id.direction,...o}=e;return e.children?si("span",{...o,className:n(Sd,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):si(yd,{})};import{Fragment as Td,jsx as li}from"react/jsx-runtime";var Cd="k-input-suffix",Ed={direction:"horizontal"},Ke=e=>{let{direction:t=Ed.direction,...o}=e;return e.children?li("span",{...o,className:n(Cd,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):li(Td,{})};import{jsx as hg}from"react/jsx-runtime";import{jsx as Od}from"react/jsx-runtime";var Ad="k-input-suffix-text",gr=e=>{let{children:t,...o}=e;return Od("span",{...o,className:n(Ad,e.className),children:t})};import{jsx as wd}from"react/jsx-runtime";var di="k-input-separator",Pd={direction:"vertical"},De=e=>{let{direction:t=Pd.direction,...o}=e;return wd("span",{...o,className:n(di,e.className,{[`${di}-${t}`]:t})})};import{Fragment as pi,jsx as je,jsxs as kr}from"react/jsx-runtime";var Bd=Q.states,Rd=Q.defaultOptions,Kd=Q.options,Dd=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],_d=[],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 kr(Q,{...c,valid:o,invalid:a,loading:r,disabled:l,readonly:d,style:{width:300},children:[u&&kr(pi,{children:[je(Re,{children:je(v,{icon:"lock"})}),m&&je(De,{})]}),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(pi,{children:[m&&je(De,{}),je(Ke,{children:je(Pt,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};Qt.options=Kd;Qt.states=Bd;Qt.variants=_d;Qt.defaultOptions=Rd;Qt.modifiers=Dd;Qt.className=Q.className;var Nr="popup",ci=Nr;import{jsx as mi}from"react/jsx-runtime";var ui="k-animation-container",zd=[],Hd={},vr={positionMode:"absolute",shown:!0},et=e=>{let{positionMode:t=vr.positionMode,shown:o=vr.shown,animationStyle:a,offset:r,...l}=e;return mi("div",{...l,style:{...r,...e.style},className:n(e.className,ui,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:mi("div",{className:"k-child-animation-container",style:a,children:e.children})})};et.states=zd;et.options=Hd;et.className=ui;et.defaultOptions=vr;et.moduleName=Nr;et.folderName=ci;var Lr="popup",fi=Lr;import{jsx as bi}from"react/jsx-runtime";var hi="k-popup",Ud=[],Fd={},xi={positionMode:"absolute"},V=e=>{let{offset:t,positionMode:o=xi.positionMode,animationStyle:a,containerClassName:r,containerRole:l,containerAriaLabel:d,...c}=e;return bi(et,{positionMode:o,offset:t,animationStyle:a,className:r,role:l,"aria-label":d,children:bi("div",{...c,className:n(e.className,hi),children:e.children})})};V.states=Ud;V.options=Fd;V.className=hi;V.defaultOptions=xi;V.moduleName=Lr;V.folderName=fi;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",gi=Mr;import{jsx as $d}from"react/jsx-runtime";var ka="k-actions",Gd=[],Vd={},Sr={alignment:"start",orientation:"horizontal"},We=e=>{let{alignment:t=Sr.alignment,orientation:o=Sr.orientation,...a}=e;return $d("div",{...a,className:n(ka,{[`${ka}-${t}`]:t,[`${ka}-${o}`]:o},e.className),children:e.children})};We.states=Gd;We.options=Vd;We.className=ka;We.defaultOptions=Sr;We.moduleName=Mr;We.folderName=gi;var ki=We;import{jsx as qd}from"react/jsx-runtime";var Xd="k-actionsheet-footer",Ni={alignment:"stretched",orientation:"horizontal"},xt=e=>{let{alignment:t=Ni.alignment,orientation:o=Ni.orientation,template:a,as:r=a?"div":We,...l}=e;return qd(r,{...l,...!a&&{alignment:t,orientation:o},className:n(e.className,Xd),children:e.children})};var Ir="searchbox",vi=Ir;import{jsx as $o,jsxs as Zd}from"react/jsx-runtime";var Li="k-searchbox",Wd=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],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]},yr={showIcon:!0,icon:"search"},_e=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 Zd(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,Li),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})]})};_e.states=Wd;_e.options=Jd;_e.className=Li;_e.defaultOptions=yr;_e.moduleName=Ir;_e.folderName=vi;import{jsx as Rk}from"react/jsx-runtime";var Cr="textbox",Mi=Cr;import{Fragment as Si,jsx as gt,jsxs as Er}from"react/jsx-runtime";var Ii="k-textbox",Yd=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Qd={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,Ii),children:[c&&Er(Si,{children:[gt(Re,{children:c}),r&&gt(De,{})]}),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&&gt(fe,{valid:k,invalid:S,loading:y,disabled:O}),gt(ve,{loading:y,disabled:O}),l&&gt(Ce,{loading:y,disabled:O,readonly:$,value:f}),u&&Er(Si,{children:[r&&gt(De,{}),gt(Ke,{children:u})]})]})};te.states=Yd;te.options=Qd;te.className=Ii;te.defaultOptions=Na;te.moduleName=Cr;te.folderName=Mi;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 jd}from"react/jsx-runtime";var yi=e=>jd(Xo,{...e});import{Fragment as jk,jsx as Qk}from"react/jsx-runtime";import{Fragment as nN,jsx as rN}from"react/jsx-runtime";import{jsx as dN}from"react/jsx-runtime";import{jsx as Tr}from"react/jsx-runtime";var ep=te.states,tp=te.defaultOptions,op=te.options,ap=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],rp=[],jt=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(yi,{value:"Value",style:{width:300},...o,...a})};jt.options=op;jt.states=ep;jt.variants=rp;jt.defaultOptions=tp;jt.modifiers=ap;jt.className=te.className;import{jsx as kt,jsxs as Ar}from"react/jsx-runtime";var Ci="k-actionsheet-titlebar",np={},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,Ci),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(_e,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};be.className=Ci;be.defaultOptions=np;import{jsx as Or,jsxs as dp}from"react/jsx-runtime";var Pr="k-actionsheet-view",ip=[],sp={},lp={},eo=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 dp("div",{...c,className:n(e.className,Pr,{[`${Pr}-animated`]:o}),children:[u,Or("div",{className:"k-actionsheet-content",children:a}),x]})};eo.states=ip;eo.options=sp;eo.className=Pr;eo.defaultOptions=lp;var qo="action-sheet",va=qo;var wr="overlay",Ei=wr;import{jsx as up}from"react/jsx-runtime";var Ti="k-overlay",pp=[],cp={},mp={},Nt=e=>{let{...t}=e;return up("div",{...t,className:n(e.className,Ti),children:e.children})};Nt.states=pp;Nt.options=cp;Nt.className=Ti;Nt.defaultOptions=mp;Nt.moduleName=wr;Nt.folderName=Ei;import{jsx as La,jsxs as hp}from"react/jsx-runtime";var Ai="k-actionsheet",fp=[],bp={},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 hp("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,Ai,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:l||La(eo,{header:c,footer:u,adaptive:a,titleId:g,...e,children:d})})})]})};J.states=fp;J.options=bp;J.className=Ai;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 Np}from"react/jsx-runtime";var Oi="k-actionsheet-container",xp=[],gp={},kp={},to=e=>{let{children:t,...o}=e;return Np("div",{...o,className:Oi,children:t})};to.states=xp;to.options=gp;to.className=Oi;to.defaultOptions=kp;to.moduleName=qo;to.folderName=va;import{jsx as vp}from"react/jsx-runtime";var Br=e=>{let{...t}=e;return vp("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as Mp,jsx as Jo,jsxs as Rr}from"react/jsx-runtime";var Kr="k-actionsheet-item",Lp=[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(Mp,{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=Lp;vt.className=Kr;import{jsx as lv,jsxs as dv}from"react/jsx-runtime";import{jsx as uv}from"react/jsx-runtime";import{jsx as xv}from"react/jsx-runtime";import{jsx as vv}from"react/jsx-runtime";import{jsx as ie,jsxs as Dr}from"react/jsx-runtime";var Sp=J.options,Ip=J.states,wi={...J.defaultOptions,variant:"normal"},yp=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Cp=[{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}={...wi,...e},r={},l=Dr(Br,{children:[ie(vt,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),ie(vt,{text:"Add to Favorites",iconName:"heart"}),ie(vt,{text:"Upload New",iconName:"upload",disabled:!0}),ie("hr",{className:"k-hr"}),ie(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"?ie(J,{...a,adaptive:!0,fullscreen:r.fullScreen,header:ie(be,{actionsStart:r.actionsStart?ie(s,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?ie(s,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:r.subtitle}),footer:r.footer?Dr(xt,{alignment:"stretched",children:[ie(s,{text:"Cancel",size:"large",themeColor:"base"}),ie(s,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:l}):ie(J,{...a,fullscreen:r.fullScreen,header:ie(be,{actionsStart:r.actionsStart?ie(s,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:r.actionsEnd?ie(s,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:r.subtitle}),footer:r.footer?Dr(xt,{alignment:"stretched",children:[ie(s,{text:"Apply",themeColor:"primary"}),ie(s,{text:"Cancel",themeColor:"base"})]}):void 0,children:l})};oo.options=Sp;oo.states=Ip;oo.variants=yp;oo.defaultOptions=wi;oo.modifiers=Cp;oo.className=J.className;import zr from"react";import{jsx as Bi}from"react/jsx-runtime";var Ep="k-list-group-sticky-header",_r=e=>Bi("div",{className:n(Ep,e.className),children:Bi("div",{className:"k-list-header-text",children:e.children})});import{jsx as Ap}from"react/jsx-runtime";var Tp="k-no-data",Ma=e=>{let{live:t,...o}=e;return Ap("span",{...o,className:n(Tp,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Bt="list",ao=Bt;import{jsx as Ri,jsxs as Ki}from"react/jsx-runtime";var Hr="k-list",Op=[],Pp={size:[p.undefined,p.small,p.medium,p.large]},wp={},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 Ki("div",{...f,className:n(e.className,Hr,E(Hr,{size:t}),{"k-virtual-list":o}),children:[d,l,c,r&&Ri(_r,{children:r}),a||(u!==void 0?u:Ri(Ma,{live:!0,children:"No data found."})),x&&a&&Ki(Ma,{className:"k-sr-only",live:!0,children:[L," items found."]})]})};R.states=Op;R.options=Pp;R.className=Hr;R.defaultOptions=wp;R.moduleName=Bt;R.folderName=ao;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 Dp}from"react/jsx-runtime";var Di="k-list-container",Bp=[],Rp={},Kp={},ro=e=>{let{...t}=e;return Dp("div",{...t,className:n(e.className,Di),children:e.children})};ro.states=Bp;ro.options=Rp;ro.className=Di;ro.defaultOptions=Kp;ro.moduleName=Bt;ro.folderName=ao;var Rt="checkbox",no=Rt;import{jsx as _i}from"react/jsx-runtime";var Sa="k-checkbox",_p=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.checked,i.indeterminate],zp={size:[p.undefined,p.small,p.medium,p.large],rounded:[h.undefined,h.none,h.small,h.medium,h.large,h.full]},Hp={},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 _i("span",{className:"k-checkbox-wrap",role:m,children:_i("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=_p;Le.options=zp;Le.className=Sa;Le.defaultOptions=Hp;Le.moduleName=Rt;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 Je=Le;import{jsx as Gp}from"react/jsx-runtime";var zi="k-checkbox-list",Up=[],Fp={},Hi={layout:"vertical"},he=e=>{let{layout:t=Hi.layout,...o}=e;return Gp("ul",{...o,className:n(e.className,zi,{[`k-list-${t}`]:t}),children:e.children})};he.states=Up;he.options=Fp;he.className=zi;he.defaultOptions=Hi;he.moduleName=Rt;he.folderName=no;import{jsx as qp}from"react/jsx-runtime";var Ui="k-checkbox-list-item",Vp=[],$p={},Xp={},xe=e=>{let{...t}=e;return qp("li",{...t,className:n(e.className,Ui),children:e.children})};xe.states=Vp;xe.options=$p;xe.className=Ui;xe.defaultOptions=Xp;xe.moduleName=Rt;xe.folderName=no;import{Fragment as Wp,jsx as Fi,jsxs as Jp}from"react/jsx-runtime";var it=({children:e="Label",id:t="cb-label-after",...o})=>Jp(Wp,{children:[Fi(Je,{id:t,...o}),Fi("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as AL,jsx as TL,jsxs as OL}from"react/jsx-runtime";import{Fragment as KL,jsx as RL,jsxs as DL}from"react/jsx-runtime";import{Fragment as FL,jsx as UL,jsxs as GL}from"react/jsx-runtime";import{jsx as qL}from"react/jsx-runtime";import{jsx as YL}from"react/jsx-runtime";import{jsx as tM}from"react/jsx-runtime";import{jsx as ze,jsxs as Gi}from"react/jsx-runtime";var Zp=he.options,Yp=he.states,Qp={...he.defaultOptions,variant:"vertical"},jp=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],ec=[],io=e=>{let{variant:t,...o}=e;return t==="horizontal"?Gi(he,{layout:"horizontal",...o,children:[ze(xe,{children:ze(it,{id:H("cb"),defaultChecked:!0,children:"Label"})}),ze(xe,{children:ze(it,{id:H("cb"),children:"Label"})}),ze(xe,{children:ze(it,{id:H("cb"),children:"Label"})})]}):Gi(he,{...o,children:[ze(xe,{children:ze(it,{id:H("cb"),defaultChecked:!0,children:"Label"})}),ze(xe,{children:ze(it,{id:H("cb"),children:"Label"})}),ze(xe,{children:ze(it,{id:H("cb"),children:"Label"})})]})};io.options=Zp;io.states=Yp;io.variants=jp;io.defaultOptions=Qp;io.modifiers=ec;io.className=he.className;import{jsx as ic}from"react/jsx-runtime";var tc=Je.options,oc=Je.states,ac=Je.defaultOptions,rc=[],nc=[],so=e=>ic(it,{id:H("checkbox"),...e,defaultChecked:!0,children:"Label"});so.options=tc;so.states=oc;so.variants=rc;so.defaultOptions=ac;so.modifiers=nc;so.className=Je.className;import{jsx as Kt,jsxs as pc}from"react/jsx-runtime";var Ur="k-list-item",sc=[i.hover,i.focus,i.selected,i.disabled],lc={},dc={},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 pc("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=sc;P.options=lc;P.className=Ur;P.defaultOptions=dc;P.moduleName=Bt;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 mc}from"react/jsx-runtime";var cc="k-list-ul",st=e=>{let{children:t,role:o,id:a,...r}=e;return mc("ul",{...r,id:a,role:o,className:n(cc,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 fc}from"react/jsx-runtime";var uc="k-list-content",F=e=>{let{virtualization:t,grouping:o,"aria-label":a,"aria-labelledby":r,listboxId:l,...d}=e;return fc("div",{...d,className:n(uc,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 gc}from"react/jsx-runtime";var Ia="k-list-sticky-header",bc=[i.hover,i.focus,i.selected],hc={},xc={},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:gc("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=bc;ya.options=hc;ya.className=Ia;ya.defaultOptions=xc;import{Fragment as JM,jsx as WM,jsxs as ZM}from"react/jsx-runtime";import{jsx as Vr,jsxs as Nc}from"react/jsx-runtime";var kc="k-list-group-item",Dt=e=>{let{groupIconName:t,...o}=e;return Nc("li",{...o,role:"presentation",className:n(kc,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 Sc}from"react/jsx-runtime";var $r="k-list-optionlabel",vc=[i.hover,i.focus,i.selected,i.disabled],Lc={},Mc={},Ca=e=>{let{text:t,hover:o,focus:a,selected:r,disabled:l,...d}=e;return Sc("div",{...d,className:n($r,M($r,{hover:o,focus:a,selected:r,disabled:l})),children:t})};Ca.states=vc;Ca.options=Lc;Ca.className=$r;Ca.defaultOptions=Mc;import{jsx as Ec}from"react/jsx-runtime";var Xr="k-list-custom-value",Ic=[i.hover,i.focus,i.selected,i.disabled],yc={},Cc={},Lt=e=>{let{text:t,hover:o,focus:a,selected:r,disabled:l,...d}=e;return Ec("div",{...d,className:n(Xr,M(Xr,{hover:o,focus:a,selected:r,disabled:l})),children:t})};Lt.states=Ic;Lt.options=yc;Lt.className=Xr;Lt.defaultOptions=Cc;import{Fragment as mS,jsx as cS,jsxs as uS}from"react/jsx-runtime";import{Fragment as kS,jsx as gS,jsxs as NS}from"react/jsx-runtime";import{Fragment as CS,jsx as IS,jsxs as yS}from"react/jsx-runtime";import{Fragment as BS,jsx as PS,jsxs as wS}from"react/jsx-runtime";import{jsx as _S}from"react/jsx-runtime";import{Fragment as VS,jsx as GS,jsxs as $S}from"react/jsx-runtime";var qr="combobox",Vi=qr;import{Fragment as Wr,jsx as oe,jsxs as Zo}from"react/jsx-runtime";var $i="k-combobox",Tc=[i.hover,i.focus,i.valid,i.invalid,i.loading,i.required,i.disabled,i.readonly],Ac={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]},Xi={separators:!0},X=e=>{let{size:t,rounded:o,fillMode:a,separators:r=Xi.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,$i),children:[l&&Zo(Wr,{children:[oe(Re,{children:l}),r&&oe(De,{})]}),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(De,{}),oe(Ke,{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=Tc;X.options=Ac;X.className=$i;X.defaultOptions=Xi;X.moduleName=qr;X.folderName=Vi;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 Oc}from"react/jsx-runtime";var qi=e=>Oc(Te,{...e});import{jsx as TI,jsxs as AI}from"react/jsx-runtime";import{jsx as KI,jsxs as DI}from"react/jsx-runtime";import{jsx as GI,jsxs as VI}from"react/jsx-runtime";import{Fragment as ZI,jsx as JI}from"react/jsx-runtime";import{Fragment as oy,jsx as ty}from"react/jsx-runtime";import{jsx as ly,jsxs as dy}from"react/jsx-runtime";import{Fragment as xy,jsx as by,jsxs as hy}from"react/jsx-runtime";import{jsx as vy}from"react/jsx-runtime";import{jsx as Iy}from"react/jsx-runtime";import{jsx as Oy,jsxs as Py}from"react/jsx-runtime";import{jsx as _y,jsxs as zy}from"react/jsx-runtime";import{jsx as Mt,jsxs as Dc}from"react/jsx-runtime";var Pc=X.states,wc=X.defaultOptions,Bc=X.options,Rc=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"opened",title:"Opened"}],Kc=[],lo=e=>{let{modifiers:t,...o}=e,a={},r=Mt(R,{style:{width:300},size:o.size,children:Dc(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(qi,{value:"Value",style:{width:300},...o,...a})})};lo.options=Bc;lo.states=Pc;lo.variants=Kc;lo.defaultOptions=wc;lo.modifiers=Rc;lo.className=X.className;var Jr="dropzone",Wi=Jr;import{jsx as Ea,jsxs as Hc}from"react/jsx-runtime";var Zr="k-external-dropzone",_c=[i.disabled,i.hover],zc={},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:Hc("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=_c;Me.options=zc;Me.className=Zr;Me.defaultOptions=Yr;Me.moduleName=Jr;Me.folderName=Wi;import{jsx as Uc}from"react/jsx-runtime";var Ta=e=>Uc(Me,{...e});import{jsx as vC}from"react/jsx-runtime";import{jsx as qc}from"react/jsx-runtime";var Fc=Me.options,Gc=Me.states,Vc=Me.defaultOptions,$c=[{name:"note",title:"Note"}],Xc=[],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)}),qc(Ta,{style:{width:"500px"},...o,...a})};po.options=Fc;po.states=Gc;po.variants=Xc;po.defaultOptions=Vc;po.modifiers=$c;po.className=Me.className;var Qr="menu-button",Ji=Qr;import{jsx as Zc}from"react/jsx-runtime";var Zi="k-menu-button",Wc=[i.hover,i.focus,i.active,i.selected,i.disabled],Jc={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 Zc(s,{...S,className:n(e.className,Zi),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=Wc;K.options=Jc;K.className=Zi;K.defaultOptions=jr;K.moduleName=Qr;K.folderName=Ji;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