UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 296 kB
var LI=Object.create;var gd=Object.defineProperty;var EI=Object.getOwnPropertyDescriptor;var YI=Object.getOwnPropertyNames;var PI=Object.getPrototypeOf,GI=Object.prototype.hasOwnProperty;var KI=(e,t)=>{for(var a in t)gd(e,a,{get:t[a],enumerable:!0})},tg=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of YI(t))!GI.call(e,s)&&s!==a&&gd(e,s,{get:()=>t[s],enumerable:!(r=EI(t,s))||r.enumerable});return e};var og=(e,t,a)=>(a=e!=null?LI(PI(e)):{},tg(t||!e||!e.__esModule?gd(a,"default",{value:e,enumerable:!0}):a,e)),DI=e=>tg(gd({},"__esModule",{value:!0}),e);var UH={};KI(UH,{SPREADSHEETSHEETSBAR_CLASSNAME:()=>eg,SpreadsheetSheetsBar:()=>xr,default:()=>jH});module.exports=DI(UH);var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>o({[`${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.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),v=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var d={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},h={small:"small",medium:"medium",large:"large",full:"full"},b={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={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"},Ot={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var lg=require("react/jsx-runtime"),FI=[],RI={},ag=e=>{let{type:t,...a}=e,r=t==="p"?"paragraph":t,s=t.includes("display")?"div":t;return(0,lg.jsx)(s,{...a,className:o(e.className,{[`k-${r}`]:t}),children:e.children})};ag.states=FI;ag.options=RI;var bi=require("react/jsx-runtime"),pp="k-icon k-font-icon",zI=[],HI={size:[d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},OI={},vi=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...n}=e;return r?(0,bi.jsx)("span",{...n,className:o(e.className,pp,C(pp,{size:t}),{[`k-i-${r}`]:r,[`k-color-${a}`]:a,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"})}):(0,bi.jsx)(bi.Fragment,{})};vi.states=zI;vi.options=HI;vi.className=pp;vi.defaultOptions=OI;var rg=vi;var El=require("react/jsx-runtime"),mp="k-icon k-svg-icon",WI=[],QI={size:[d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},sg={viewBox:"0 0 24 24"},yi=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=sg.viewBox,icon:n,...c}=e;if(!n)return(0,El.jsx)(El.Fragment,{});n==="none"&&{...c,className:o(e.className,mp,"k-none")};let m=typeof n=="object"&&n.name&&n.name;return(0,El.jsx)("span",{...c,className:o(e.className,mp,C("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${a}`]:a,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),children:(0,El.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof n=="object"?n.viewBox:i,dangerouslySetInnerHTML:typeof n=="object"?{__html:n.content}:void 0,children:n?void 0:e.children})})};yi.states=WI;yi.options=QI;yi.className=mp;yi.defaultOptions=sg;var up=yi;var ig=og(require("@progress/kendo-svg-icons")),xa=require("react/jsx-runtime"),VI=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),XI=[],ZI={size:[d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},kp={viewBox:"0 0 24 24",type:"svg"},x=e=>{let{size:t,themeColor:a,icon:r,type:s=kp.type,rotate:i,flip:n,viewBox:c=kp.viewBox,...m}=e;if(!r)return(0,xa.jsx)(xa.Fragment,{});if(s==="svg"){if(r==="none")return(0,xa.jsx)(up,{...m,icon:r,size:t});let k=VI(`${r}-icon`);return ig[k]?(0,xa.jsx)(up,{...m,icon:ig[k],size:t,themeColor:a,rotate:i,flip:n,viewBox:c}):(0,xa.jsx)(xa.Fragment,{})}return(0,xa.jsx)(rg,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:n})};x.states=XI;x.options=ZI;x.defaultOptions=kp;var fp=x;var dg=require("react/jsx-runtime"),xd="k-actions",JI=[],jI={},hp={alignment:"start",orientation:"horizontal"},Z=e=>{let{alignment:t=hp.alignment,orientation:a=hp.orientation,...r}=e;return(0,dg.jsx)("div",{...r,className:o(xd,{[`${xd}-${t}`]:t,[`${xd}-${a}`]:a},e.className),children:e.children})};Z.states=JI;Z.options=jI;Z.className=xd;Z.defaultOptions=hp;var ng=Z;var cg=require("react/jsx-runtime"),bd="k-input",UI=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],qI={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},vd={size:d.medium,rounded:d.medium,fillMode:b.solid},M=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:n,readonly:c,size:m=vd.size,rounded:k=vd.rounded,fillMode:y=vd.fillMode,...T}=e;return(0,cg.jsx)("span",{...T,className:o(e.className,bd,C(bd,{size:m,rounded:k,fillMode:y}),v(bd,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:n,readonly:c}))})};M.states=UI;M.options=qI;M.className=bd;M.defaultOptions=vd;var pg=require("react/jsx-runtime"),yd="k-picker",_I=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],$I={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},wd={size:d.medium,rounded:h.medium,fillMode:b.solid},Wt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:n,readonly:c,size:m=wd.size,rounded:k=wd.rounded,fillMode:y=wd.fillMode,...T}=e;return(0,pg.jsx)("span",{...T,className:o(e.className,yd,C(yd,{size:m,rounded:k,fillMode:y}),v(yd,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:n,readonly:c})),children:e.children})};Wt.states=_I;Wt.options=$I;Wt.className=yd;Wt.defaultOptions=wd;var Yr=require("react/jsx-runtime"),mg="k-clear-value",eB=[l.disabled,l.loading,l.readonly],tB={},re=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?(0,Yr.jsx)(Yr.Fragment,{}):(0,Yr.jsx)("span",{className:o(e.className,mg),children:(0,Yr.jsx)(x,{icon:"x"})})};re.states=eB;re.options=tB;re.className=mg;var ug=require("react/jsx-runtime"),gp="k-input-inner",oB=[],aB={},Td={type:"text",autocomplete:"off",value:"",placeholder:""},ce=e=>{let{value:t=Td.value,type:a=Td.type,placeholder:r=Td.placeholder,autocomplete:s=Td.autocomplete,...i}=e;return(0,ug.jsx)("input",{...i,type:a,className:o(e.className,gp,C(gp,e)),placeholder:r,autoComplete:s,defaultValue:t})};ce.states=oB;ce.options=aB;ce.className=gp;var wi=require("react/jsx-runtime"),xp="k-input-inner",lB=[],rB={},ba=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...n}=e;return(0,wi.jsxs)("span",{...n,className:o(e.className,xp,C(xp,e)),children:[s,!s&&i&&(0,wi.jsx)(x,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&(0,wi.jsx)("span",{className:"k-input-value-text",children:t})]})};ba.states=lB;ba.options=rB;ba.className=xp;var fg=require("react/jsx-runtime"),bp="k-input-inner",sB=[],iB={},kg={value:"",placeholder:""},Ti=e=>{let{value:t=kg.value,placeholder:a=kg.placeholder,rows:r,...s}=e;return(0,fg.jsx)("textarea",{...s,className:o(e.className,bp,C(bp,e)),placeholder:a,rows:r,defaultValue:t})};Ti.states=sB;Ti.options=iB;Ti.className=bp;var Ai=require("react/jsx-runtime"),hg="k-input-loading-icon",nB=[l.disabled,l.loading],_=e=>{let{disabled:t,loading:a}=e;return t||!a?(0,Ai.jsx)(Ai.Fragment,{}):(0,Ai.jsx)("span",{className:o(e.className,hg,"k-icon k-i-loading")})};_.states=nB;_.className=hg;var Ni=require("react/jsx-runtime"),gg="k-input-validation-icon",dB=[l.valid,l.invalid,l.disabled,l.loading],cB={},U=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?(0,Ni.jsx)(Ni.Fragment,{}):(0,Ni.jsx)(x,{className:o(gg),icon:i})};U.states=dB;U.options=cB;U.className=gg;var Ci=require("react/jsx-runtime"),pB="k-input-prefix",mB={direction:"horizontal"},ae=e=>{let{direction:t=mB.direction,...a}=e;return e.children?(0,Ci.jsx)("span",{...a,className:o(pB,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Ci.jsx)(Ci.Fragment,{})};var Si=require("react/jsx-runtime"),uB="k-input-suffix",kB={direction:"horizontal"},le=e=>{let{direction:t=kB.direction,...a}=e;return e.children?(0,Si.jsx)("span",{...a,className:o(uB,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Si.jsx)(Si.Fragment,{})};var fB=require("react/jsx-runtime");var hB=require("react/jsx-runtime");var bg=require("react/jsx-runtime"),xg="k-input-separator",gB={direction:"vertical"},Ce=e=>{let{direction:t=gB.direction,...a}=e;return(0,bg.jsx)("span",{...a,className:o(xg,e.className,{[`${xg}-${t}`]:t})})};var vp=require("react/jsx-runtime"),vg="k-animation-container",xB=[],bB={},yg={positionMode:"absolute"},Fa=e=>{let{positionMode:t=yg.positionMode,animationStyle:a,offset:r,...s}=e;return(0,vp.jsx)("div",{...s,style:{...r,...e.style},className:o(e.className,vg,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:(0,vp.jsx)("div",{className:"k-child-animation-container",style:a,children:e.children})})};Fa.states=xB;Fa.options=bB;Fa.className=vg;Fa.defaultOptions=yg;var yp=require("react/jsx-runtime"),wg="k-popup",vB=[],yB={},Tg={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:a=Tg.positionMode,animationStyle:r,...s}=e;return(0,yp.jsx)(Fa,{positionMode:a,offset:t,animationStyle:r,children:(0,yp.jsx)("div",{...s,className:o(e.className,wg),children:e.children})})};H.states=vB;H.options=yB;H.className=wg;H.defaultOptions=Tg;var Ag=require("react/jsx-runtime"),wB="k-no-data",Ii=e=>(0,Ag.jsx)("span",{className:o(wB,e.className),children:e.children});var Fo=require("react/jsx-runtime"),wp="k-list",TB=[],AB={size:[d.small,d.medium,d.large]},Ng={size:d.medium},J=e=>{let{size:t=Ng.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:n,...c}=e,m,k,y,T,g=[];return r?r.map((A,N)=>{A.type===Be?(A.props.root===!0?(m=A.props.label,A.props.children.map((S,B)=>{g.push((0,Fo.jsx)(K,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):A.props.children.forEach((S,B)=>{let L="";B===0&&(L=A.props.label),g.push((0,Fo.jsx)(K,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=(0,Fo.jsx)(Be,{label:m,virtualization:a,children:g})):A.type===K&&(g.push((0,Fo.jsx)(K,{...A.props},`${A.type}-${N}`)),y=(0,Fo.jsx)(Pr,{virtualization:a,children:g}),n&&(T=(0,Fo.jsxs)(Ii,{className:"k-sr-only",children:[g.length," items found."]})))}):T=(0,Fo.jsx)(Ii,{children:"No data found."}),(0,Fo.jsxs)("div",{...c,className:o(e.className,wp,C(wp,{size:t}),{"k-virtual-list":a}),children:[s,i,k,y,T]})};J.states=TB;J.options=AB;J.className=wp;J.defaultOptions=Ng;var Ro=require("react/jsx-runtime"),Tp="k-list",NB=[],CB={size:[d.small,d.medium,d.large]},Cg={size:d.medium},Yl=e=>{let{size:t=Cg.size,virtualization:a,children:r,...s}=e,i,n,c,m=[];return r?r.map((k,y)=>{k.type===Be?(k.props.root===!0?(i=k.props.label,k.props.children.map((T,g)=>{m.push((0,Ro.jsx)(K,{...T.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push((0,Ro.jsx)(Sg,{...k.props,children:k.props.label},`listChild-${y}`)),k.props.children.map((T,g)=>{m.push((0,Ro.jsx)(K,{...T.props},`fwOptChild-${g}-${new Date().getTime()}`))})),n=(0,Ro.jsx)(Be,{label:i,virtualization:a,children:m})):k.type===K&&(m.push((0,Ro.jsx)(K,{...k.props},`${k.type}-${y}`)),c=(0,Ro.jsx)(Pr,{virtualization:a,children:m}))}):c=(0,Ro.jsx)(Ii,{children:"No data found."}),(0,Ro.jsxs)("div",{...s,className:o(e.className,Tp,C(Tp,{size:t}),{"k-virtual-list":a}),children:[n,c]})};Yl.states=NB;Yl.options=CB;Yl.className=Tp;Yl.defaultOptions=Cg;var Np=require("react/jsx-runtime"),Ad="k-checkbox",SB=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],IB={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full]},Ap={size:d.medium,rounded:h.medium},ct=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:n,invalid:c,valid:m,required:k,size:y=Ap.size,rounded:T=Ap.rounded,...g}=e;return(0,Np.jsx)("span",{className:"k-checkbox-wrap",children:(0,Np.jsx)("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Ad,C(Ad,{size:y,rounded:T}),v(Ad,{hover:s,focus:i,disabled:n,invalid:c,valid:m,indeterminate:r,checked:a}))})})};ct.states=SB;ct.options=IB;ct.className=Ad;ct.defaultOptions=Ap;var Mg=require("react/jsx-runtime"),Ig="k-checkbox-list",BB=[],MB={},Bg={layout:"vertical"},Gr=e=>{let{layout:t=Bg.layout,...a}=e;return(0,Mg.jsx)("ul",{...a,className:o(e.className,Ig,{[`k-list-${t}`]:t}),children:e.children})};Gr.states=BB;Gr.options=MB;Gr.className=Ig;Gr.defaultOptions=Bg;var Eg=require("react/jsx-runtime"),Lg="k-checkbox-list-item",LB=[],EB={},YB={},Kr=e=>{let{...t}=e;return(0,Eg.jsx)("li",{...t,className:o(e.className,Lg),children:e.children})};Kr.states=LB;Kr.options=EB;Kr.className=Lg;Kr.defaultOptions=YB;var Sp=require("react/jsx-runtime");var Ip=require("react/jsx-runtime");var Bp=require("react/jsx-runtime");var Mp=require("react/jsx-runtime");var PB=require("react/jsx-runtime");var GB=require("react/jsx-runtime");var Pl=require("react/jsx-runtime"),Lp="k-list-item",KB=[l.hover,l.focus,l.selected,l.disabled],DB={},FB={},K=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:n,checked:c,hover:m,focus:k,selected:y,disabled:T,...g}=e,A=t||e.children;return(0,Pl.jsxs)("li",{...g,className:o(e.className,r?"k-list-group-item":Lp,v(Lp,{hover:m,focus:k,disabled:T,selected:y})),children:[n&&(0,Pl.jsx)(ct,{checked:c}),s&&(0,Pl.jsx)(x,{icon:i}),(0,Pl.jsx)("span",{className:"k-list-item-text",children:A}),a&&a!==""&&(0,Pl.jsx)("div",{className:"k-list-item-group-label",children:a})]})};K.states=KB;K.options=DB;K.className=Lp;K.defaultOptions=FB;var Dr=require("react/jsx-runtime"),RB="k-list-content",Pr=e=>{let{virtualization:t,...a}=e;return(0,Dr.jsxs)("div",{...a,className:o(RB,e.className),children:[(0,Dr.jsx)("ul",{className:o("k-list-ul"),children:e.children}),t&&(0,Dr.jsx)("div",{className:"k-height-container",children:(0,Dr.jsx)("div",{})})]})};var Ep=require("react/jsx-runtime"),zB="k-list-group-sticky-header",Yg=e=>(0,Ep.jsx)("div",{className:o(zB,e.className),children:(0,Ep.jsx)("div",{className:"k-list-header-text",children:e.children})});var Gl=require("react/jsx-runtime"),Be=e=>{let{virtualization:t,label:a}=e;return(0,Gl.jsxs)(Gl.Fragment,{children:[a&&(0,Gl.jsx)(Yg,{children:a}),e.children&&(0,Gl.jsx)(Pr,{virtualization:t,children:e.children})]})};var Yp=require("react/jsx-runtime"),HB="k-list-group-item",Sg=e=>(0,Yp.jsx)("li",{className:o(HB,e.className),children:(0,Yp.jsx)("span",{className:"k-list-item-text",children:e.children})});var Pg=require("react/jsx-runtime"),Pp="k-list-optionlabel",OB=[l.hover,l.focus,l.selected,l.disabled],WB={},QB={},Nd=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...n}=e;return(0,Pg.jsx)("div",{...n,className:o(Pp,v(Pp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Nd.states=OB;Nd.options=WB;Nd.className=Pp;Nd.defaultOptions=QB;var Gg=require("react/jsx-runtime"),Gp="k-list-custom-value",VB=[l.hover,l.focus,l.selected,l.disabled],XB={},ZB={},xt=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...n}=e;return(0,Gg.jsx)("div",{...n,className:o(Gp,v(Gp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};xt.states=VB;xt.options=XB;xt.className=Gp;xt.defaultOptions=ZB;var JB=require("react/jsx-runtime");var jB=require("react/jsx-runtime");var Kg=require("react/jsx-runtime");var Dg=require("react/jsx-runtime");var UB=require("react/jsx-runtime");var Fg=require("react/jsx-runtime");var Rg=require("react/jsx-runtime");var wo=require("react/jsx-runtime"),Cd="k-button",qB=[l.hover,l.focus,l.active,l.selected,l.disabled],_B={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Kl={size:d.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},p=e=>{let{size:t=Kl.size,rounded:a=Kl.rounded,fillMode:r=Kl.fillMode,themeColor:s=Kl.themeColor,showArrow:i=Kl.showArrow,arrowIconName:n=Kl.arrowIconName,hover:c,focus:m,active:k,selected:y,disabled:T,icon:g,text:A,iconClassName:N,...S}=e,B=g!==void 0,L=e.children!==void 0;return(0,wo.jsxs)("button",{...S,className:o(e.className,Cd,C(Cd,{size:t,rounded:a,fillMode:r,themeColor:s}),v(Cd,{hover:c,focus:m,active:k,disabled:T,selected:y}),{"k-icon-button":!A&&!L&&B}),children:[g&&(0,wo.jsx)(x,{className:o(N,"k-button-icon"),icon:g}),A?(0,wo.jsxs)(wo.Fragment,{children:[A&&(0,wo.jsx)("span",{className:"k-button-text",children:A}),e.children]}):e.children&&(0,wo.jsx)("span",{className:"k-button-text",children:e.children}),i&&(0,wo.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,wo.jsx)(x,{icon:n})})]})};p.states=qB;p.options=_B;p.className=Cd;p.defaultOptions=Kl;var zg=require("react/jsx-runtime"),He=e=>(0,zg.jsx)(p,{icon:"folder",...e,children:void 0});var Hg=require("react/jsx-runtime"),To=e=>(0,Hg.jsx)(p,{icon:"folder",children:"Button",...e});var $B=require("react/jsx-runtime");var Fr=require("react/jsx-runtime"),Og="k-suggestion-group",eM=[],tM={},Wg={scrollable:!0},Dl=e=>{let{scrollable:t=Wg.scrollable,...a}=e,r=(0,Fr.jsx)("div",{...a,className:o(Og,e.className),children:e.children});return t?(0,Fr.jsxs)("div",{className:"k-suggestion-scrollwrap",children:[(0,Fr.jsx)(p,{icon:"chevron-left"}),r,(0,Fr.jsx)(p,{icon:"chevron-right"})]}):r};Dl.states=eM;Dl.options=tM;Dl.className=Og;Dl.defaultOptions=Wg;var Qg=require("react/jsx-runtime"),Sd="k-suggestion",oM=[l.active,l.hover,l.focus],aM={themeColor:[u.base,u.primary,u.secondary]},lM={text:"Suggestion"},Fl=e=>{let{themeColor:t,active:a,hover:r,focus:s,text:i,...n}=e;return(0,Qg.jsx)("span",{...n,className:o(e.className,Sd,v(Sd,{hover:r,active:a,focus:s}),C(Sd,{themeColor:t})),children:i})};Fl.states=oM;Fl.options=aM;Fl.className=Sd;Fl.item=lM;var Kp=require("react/jsx-runtime");var Dp=require("react/jsx-runtime");var Fp=require("react/jsx-runtime"),Bi="k-avatar";var rM=[l.hover,l.focus,l.active,l.selected,l.disabled],sM={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Rl={type:"text",size:d.medium,rounded:h.full,fillMode:b.solid,themeColor:u.primary,border:!1},zo=e=>{let{size:t=Rl.size,rounded:a=Rl.rounded,fillMode:r=Rl.fillMode,themeColor:s=Rl.themeColor,type:i=Rl.type,border:n=Rl.border,...c}=e;return(0,Fp.jsx)("div",{...c,className:o(e.className,Bi,C(Bi,{size:t,rounded:a,fillMode:r,themeColor:s}),{[`${Bi}-bordered`]:n}),children:(0,Fp.jsx)("span",{className:`${Bi}-${i}`,children:e.children})})};zo.states=rM;zo.options=sM;zo.className=Bi;zo.defaultOptions=Rl;var iM=require("react/jsx-runtime");var nM=require("react/jsx-runtime");var dM=require("react/jsx-runtime");var Xg=require("react/jsx-runtime"),Mi="k-badge",cM=[],pM={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.outline],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Li={size:d.medium,fillMode:b.solid,themeColor:u.primary,cutoutBorder:!1},Rr=e=>{let{size:t=Li.size,fillMode:a=Li.fillMode,themeColor:r=Li.themeColor,cutoutBorder:s=Li.cutoutBorder,rounded:i,position:n,align:c,...m}=e;return(0,Xg.jsx)("span",{...m,className:o(e.className,Mi,C(Mi,{size:t,rounded:i,fillMode:a,themeColor:r}),{[`${Mi}-${n}`]:n,[`k-${c}`]:c,[`${Mi}-border-cutout`]:s}),children:e.children})};Rr.states=cM;Rr.options=pM;Rr.className=Mi;Rr.defaultOptions=Li;var mM=require("react/jsx-runtime");var uM=require("react/jsx-runtime");var kM=require("react/jsx-runtime");var va=require("react/jsx-runtime"),Id="k-chip",fM=[l.hover,l.focus,l.active,l.selected,l.disabled],hM={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.outline],themeColor:[u.base,u.success,u.warning,u.error,u.info]},zr={size:d.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,avatarImage:"/packages/html/assets/avatar.jpg"},Ao=e=>{let{size:t=zr.size,rounded:a=zr.rounded,fillMode:r=zr.fillMode,themeColor:s=zr.themeColor,text:i,icon:n,actions:c,showAvatar:m,avatarImage:k=zr.avatarImage,hover:y,focus:T,active:g,selected:A,disabled:N,...S}=e;return(0,va.jsxs)("div",{...S,className:o(e.className,Id,C(Id,{size:t,rounded:a,fillMode:r,themeColor:s}),v(Id,{hover:y,focus:T,active:g,disabled:N,selected:A})),children:[n&&(0,va.jsx)(x,{className:"k-chip-icon",icon:n,size:"small"}),m&&(0,va.jsx)(zo,{className:"k-chip-avatar",type:"image",children:(0,va.jsx)("img",{src:k})}),(0,va.jsx)("span",{className:"k-chip-content",children:e.children?e.children:i&&(0,va.jsx)("span",{className:"k-chip-label",children:i})}),c&&(0,va.jsx)("span",{className:"k-chip-actions",children:c})]})};Ao.states=fM;Ao.options=hM;Ao.className=Id;Ao.defaultOptions=zr;var Jg=require("react/jsx-runtime"),Rp="k-chip-list",gM=[],xM={size:[d.small,d.medium,d.large]},Zg={size:d.medium},No=e=>{let{size:t=Zg.size,...a}=e;return(0,Jg.jsx)("div",{...a,className:o(e.className,Rp,C(Rp,{size:t})),children:e.children})};No.states=gM;No.options=xM;No.className=Rp;No.defaultOptions=Zg;var bM=require("react/jsx-runtime");var vM=require("react/jsx-runtime");var yM=require("react/jsx-runtime");var wM=require("react/jsx-runtime");var zp=require("react/jsx-runtime");var Ei=require("react/jsx-runtime"),jg="k-color-preview",TM=[],AM={},Ra=e=>{let{color:t,iconName:a,...r}=e;return(0,Ei.jsxs)("span",{...r,className:o(e.className,jg,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&(0,Ei.jsx)(x,{icon:a,className:"k-color-preview-icon"}),(0,Ei.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ra.states=TM;Ra.options=AM;Ra.className=jg;var ro=require("react/jsx-runtime"),Hp="k-loader",NM={pulsing:"pulsing-2","infinite-spinner":"spinner-3","converging-spinner":"spinner-4"},CM=[],SM={size:[d.small,d.medium,d.large],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Md={size:d.medium,themeColor:u.primary,animation:"pulsing"},za=e=>{let{size:t=Md.size,themeColor:a=Md.themeColor,animation:r=Md.animation,...s}=e,i=(0,ro.jsx)("span",{className:"k-loader-segment"});return(0,ro.jsx)("div",{...s,className:o(e.className,Hp,{[`k-loader-${NM[r]||r}`]:r},C(Hp,{size:t,themeColor:a})),children:(0,ro.jsxs)("div",{className:"k-loader-canvas",children:[r==="pulsing"&&(0,ro.jsxs)(ro.Fragment,{children:[i,i]}),r==="infinite-spinner"&&(0,ro.jsxs)(ro.Fragment,{children:[i,i,i]}),r==="converging-spinner"&&(0,ro.jsxs)(ro.Fragment,{children:[i,i,i,i]})]})})};za.states=CM;za.options=SM;za.className=Hp;za.defaultOptions=Md;var Ug=za;var Ol=require("react/jsx-runtime"),Op="k-loader-container",IM=[],BM={size:[d.small,d.medium,d.large],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Hl={size:d.medium,themeColor:u.primary,loaderType:"pulsing",position:"top",overlay:"dark",panel:!1},Yi=e=>{let{size:t=Hl.size,themeColor:a=Hl.themeColor,loaderType:r=Hl.loaderType,position:s=Hl.position,overlay:i=Hl.overlay,panel:n=Hl.panel,...c}=e;return(0,Ol.jsxs)("div",{...c,className:o(e.className,Op,C(Op,{size:t}),{[`k-loader-${s}`]:s}),children:[(0,Ol.jsx)("div",{className:`k-loader-container-overlay k-overlay-${i}`}),(0,Ol.jsxs)("div",{className:o("k-loader-container-inner",{"k-loader-container-panel":n}),children:[(0,Ol.jsx)(Ug,{size:t,themeColor:a,animation:r}),(0,Ol.jsx)("div",{className:`k-loader-container-label !k-text-${a}`,children:"Loading..."})]})]})};Yi.states=IM;Yi.options=BM;Yi.className=Op;Yi.defaultOptions=Hl;var MM=require("react/jsx-runtime");var LM=require("react/jsx-runtime");var EM=require("react/jsx-runtime");var YM=require("react/jsx-runtime");var _g=require("react/jsx-runtime"),qg="k-skeleton",PM=[],GM={},Wp={shape:"text",animation:"pulse"},Ha=e=>{let{shape:t=Wp.shape,animation:a=Wp.animation,...r}=e;return(0,_g.jsx)("span",{...r,className:o(e.className,qg,{[`k-skeleton-${t}`]:t,[`k-skeleton-${a}`]:a}),style:e.style})};Ha.states=PM;Ha.options=GM;Ha.className=qg;Ha.defaultOptions=Wp;var KM=require("react/jsx-runtime");var $g=require("react/jsx-runtime"),Qp=e=>(0,$g.jsx)(Ha,{shape:"rect",...e});var DM=require("react/jsx-runtime");var Ho=require("react/jsx-runtime"),Vp="k-form-field",FM=[l.disabled],pt=e=>{let{label:t,orientation:a,optional:r,editor:s,hint:i,error:n,info:c,disabled:m,dir:k,colSpan:y}=e;return(0,Ho.jsxs)("div",{className:o(Vp,e.className,v(Vp,{disabled:m}),{[`k-col-span-${y}`]:y}),dir:k,children:[t&&(0,Ho.jsxs)("label",{className:o("k-label","k-form-label"),children:[t,r&&(0,Ho.jsx)("span",{className:"k-label-optional",children:"(Optional)"}),c&&(0,Ho.jsx)("span",{className:"k-field-info",children:"(field info)"})]}),a==="horizontal"&&!t&&(0,Ho.jsx)("span",{className:"k-label k-form-label k-label-empty"}),(0,Ho.jsxs)("div",{className:"k-form-field-wrap",children:[s,i&&(0,Ho.jsx)("div",{className:"k-form-hint",children:i}),n&&(0,Ho.jsx)("div",{className:"k-form-error",children:n})]})]})};pt.states=FM;pt.className=Vp;var Oa=require("react/jsx-runtime"),ex="k-form-fieldset",Oo=e=>{let{legend:t,layout:a,cols:r,gutters:s,colSpan:i}=e;return(0,Oa.jsxs)("fieldset",{className:o(ex,{[`k-col-span-${i}`]:i}),children:[t&&(0,Oa.jsx)("legend",{className:"k-form-legend",children:t}),a==="grid"?(0,Oa.jsx)("div",{className:o("k-form-layout","k-d-grid",{[`k-grid-cols-${r}`]:r}),style:{...typeof s=="string"&&{gap:s},...typeof s=="object"&&s.rows&&{rowGap:s.rows},...typeof s=="object"&&s.cols&&{columnGap:s.cols}},children:e.children}):(0,Oa.jsx)(Oa.Fragment,{children:e.children})]})};Oo.className=ex;var Wo=require("react/jsx-runtime"),Yd=require("react"),Ld="k-form",RM=[],zM={size:[d.small,d.medium,d.large]},Ed={size:d.medium,layout:"basic",tag:"form"},ya=e=>{let{size:t=Ed.size,orientation:a,layout:r=Ed.layout,formButtons:s,cols:i,gutters:n,tag:c=Ed.tag,children:m}=e,k=({tag:T,className:g,children:A})=>T==="form"?(0,Wo.jsx)("form",{className:g,children:A}):(0,Wo.jsx)("div",{className:g,children:A}),y=[];return m&&(Array.isArray(m)?m.map((T,g)=>{T.type===pt?y.push((0,Yd.createElement)(pt,{...T.props,orientation:a,key:g})):y.push(T)}):m.type===pt?y.push((0,Yd.createElement)(pt,{...m.props,orientation:a,key:`${new Date().getTime()}`})):m.type===Oo&&y.push((0,Yd.createElement)(Oo,{...m.props,key:`${new Date().getTime()}`}))),(0,Wo.jsxs)(k,{tag:c,className:o(e.className,Ld,C(Ld,{size:t}),{[`${Ld}-${a}`]:a}),children:[r==="grid"?(0,Wo.jsx)("div",{className:o("k-form-layout","k-d-grid",{[`k-grid-cols-${i}`]:i}),style:{...typeof n=="string"&&{gap:n},...typeof n=="object"&&n.rows&&{rowGap:n.rows},...typeof n=="object"&&n.cols&&{columnGap:n.cols}},children:y}):(0,Wo.jsx)(Wo.Fragment,{children:y}),s&&(0,Wo.jsx)("div",{className:"k-form-buttons",children:s})]})};ya.states=RM;ya.options=zM;ya.className=Ld;ya.defaultOptions=Ed;var ox=require("react/jsx-runtime"),HM="k-actionsheet-footer",tx={alignment:"stretched",orientation:"horizontal"},Co=e=>{let{alignment:t=tx.alignment,orientation:a=tx.orientation,template:r,as:s=r?"div":Z,...i}=e;return(0,ox.jsx)(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,HM),children:e.children})};var Wa=require("react/jsx-runtime"),ax="k-searchbox",OM=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],WM={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Xp={showIcon:!0,icon:"search",size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},rt=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:n,focus:c,valid:m,invalid:k,required:y,loading:T,disabled:g,showIcon:A=Xp.showIcon,icon:N=Xp.icon,...S}=e;return(0,Wa.jsxs)(M,{...S,size:r,rounded:s,fillMode:i,hover:n,focus:c,valid:m,invalid:k,required:y,loading:T,disabled:g,className:o(e.className,ax),children:[A&&(0,Wa.jsx)(x,{className:"k-input-icon",icon:N}),(0,Wa.jsx)(ce,{placeholder:a,value:t}),(0,Wa.jsx)(_,{...e}),(0,Wa.jsx)(U,{...e}),(0,Wa.jsx)(re,{...e})]})};rt.states=OM;rt.options=WM;rt.className=ax;rt.defaultOptions=Xp;var QM=require("react/jsx-runtime");var bt=require("react/jsx-runtime"),lx="k-textbox",VM=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],XM={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Wl={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},ee=e=>{let{size:t=Wl.size,rounded:a=Wl.rounded,fillMode:r=Wl.fillMode,separators:s=Wl.separators,showClearButton:i=Wl.showClearButton,showValidationIcon:n=Wl.showValidationIcon,prefix:c,suffix:m,type:k,value:y,placeholder:T,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:P,readonly:z,...X}=e;return(0,bt.jsxs)(M,{...X,size:t,rounded:a,fillMode:r,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:P,readonly:z,className:o(e.className,lx),children:[c&&(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(ae,{children:c}),s&&(0,bt.jsx)(Ce,{})]}),(0,bt.jsx)(ce,{placeholder:T,value:y,type:k}),n&&(0,bt.jsx)(U,{valid:N,invalid:S,loading:L,disabled:P}),(0,bt.jsx)(_,{loading:L,disabled:P}),i&&(0,bt.jsx)(re,{loading:L,disabled:P,readonly:z,value:y}),m&&(0,bt.jsxs)(bt.Fragment,{children:[s&&(0,bt.jsx)(Ce,{}),(0,bt.jsx)(le,{children:m})]})]})};ee.states=VM;ee.options=XM;ee.className=lx;ee.defaultOptions=Wl;var ZM=require("react/jsx-runtime");var sx=require("react/jsx-runtime");var nx=require("react/jsx-runtime");var Qt=require("react/jsx-runtime"),dx="k-actionsheet-titlebar",JM={},se=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:n,inputValue:c,inputPlaceholder:m,adaptive:k,children:y,...T}=e;return(0,Qt.jsxs)("div",{...T,className:o(e.className,dx),children:[(0,Qt.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[r&&(0,Qt.jsx)("div",{className:"k-actionsheet-actions",children:r}),!y&&(0,Qt.jsxs)("div",{className:"k-actionsheet-title",children:[t&&(0,Qt.jsx)("div",{className:"k-text-center",children:t}),a&&(0,Qt.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),y&&(0,Qt.jsx)("div",{className:"k-actionsheet-title",children:y}),s&&(0,Qt.jsx)("div",{className:"k-actionsheet-actions",children:s})]}),(n||i)&&(0,Qt.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:n?(0,Qt.jsx)(ee,{value:c,placeholder:m,size:k?"large":"medium"}):(0,Qt.jsx)(rt,{placeholder:"Filter",size:k?"large":"medium"})})]})};se.className=dx;se.defaultOptions=JM;var Hr=require("react/jsx-runtime"),Zp="k-actionsheet-view",jM=[],UM={},qM={},Or=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...n}=e,c=(s==null?void 0:s.type)===se&&(0,Hr.jsx)(se,{adaptive:t,...s==null?void 0:s.props}),m=(i==null?void 0:i.type)===Co&&(0,Hr.jsx)(Co,{...i==null?void 0:i.props});return(0,Hr.jsxs)("div",{...n,className:o(e.className,Zp,{[`${Zp}-animated`]:a}),children:[c,(0,Hr.jsx)("div",{className:"k-actionsheet-content",children:r}),m]})};Or.states=jM;Or.options=UM;Or.className=Zp;Or.defaultOptions=qM;var Ql=require("react/jsx-runtime"),cx="k-actionsheet",_M=[],$M={},Pi={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},pe=e=>{let{side:t=Pi.side,fullscreen:a=Pi.fullscreen,adaptive:r=Pi.adaptive,overlay:s=Pi.overlay,template:i,children:n,header:c,footer:m,...k}=e;return(0,Ql.jsxs)("div",{className:"k-actionsheet-container",children:[s&&(0,Ql.jsx)("div",{className:"k-overlay"}),(0,Ql.jsx)(Fa,{animationStyle:{[`${a===!0?"top":t}`]:0,[`${a===!0?"width":null}`]:"100%",[`${a===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:(0,Ql.jsx)("div",{...k,className:o(e.className,cx,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||(0,Ql.jsx)(Or,{header:c,footer:m,adaptive:r,...e,children:n})})})]})};pe.states=_M;pe.options=$M;pe.className=cx;pe.defaultOptions=Pi;var eL=require("react/jsx-runtime");var so=require("react/jsx-runtime"),Jp="k-actionsheet-item",tL=[l.hover,l.focus,l.selected,l.disabled],jp=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:n,disabled:c,...m}=e;return(0,so.jsxs)("span",{...m,className:o(e.className,Jp,v(Jp,{hover:s,focus:i,selected:n,disabled:c})),children:[!e.children&&(0,so.jsx)(so.Fragment,{children:(0,so.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,so.jsx)("span",{className:"k-icon-wrap",children:(0,so.jsx)(x,{className:"k-actionsheet-item-icon",icon:t})}),(0,so.jsxs)("span",{className:"k-actionsheet-item-text",children:[a&&(0,so.jsx)("span",{className:"k-actionsheet-item-title",children:a}),r&&(0,so.jsx)("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};jp.states=tL;jp.className=Jp;var px=require("react/jsx-runtime");var oL=require("react/jsx-runtime");var aL=require("react/jsx-runtime");var lL=require("react/jsx-runtime");var De=require("react/jsx-runtime"),ux="k-dropdownlist",rL=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],sL={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Wr={showValue:!0,arrowIconName:"caret-alt-down",size:d.medium,rounded:h.medium,fillMode:b.solid},ie=e=>{let{size:t=Wr.size,rounded:a=Wr.rounded,fillMode:r=Wr.fillMode,arrowIconName:s=Wr.arrowIconName,showValue:i=Wr.showValue,valueIconName:n,prefix:c,suffix:m,value:k,placeholder:y,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:P,popup:z,opened:X,adaptive:Ne,adaptiveSettings:Ue,adaptiveTitle:Ct,adaptiveSubtitle:yo,adaptiveFilter:Ll,...Er}=e;return(0,De.jsxs)(De.Fragment,{children:[(0,De.jsxs)(Wt,{...Er,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:P,className:o(e.className,ux,{"k-icon-picker":!i&&n}),children:[(0,De.jsx)(ae,{children:c}),(0,De.jsx)(ba,{placeholder:y,value:k,showValue:i,valueIconName:n}),(0,De.jsx)(U,{valid:A,invalid:N,loading:B,disabled:L}),(0,De.jsx)(_,{loading:B,disabled:L}),(0,De.jsx)(le,{children:m}),(0,De.jsx)(p,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),X&&z&&(0,De.jsx)(H,{className:"k-list-container k-dropdownlist-popup",children:z}),Ne&&(0,De.jsx)(pe,{adaptive:!0,...Ue,header:(0,De.jsx)(se,{actionsEnd:(0,De.jsx)(p,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ll,inputValue:k,inputPlaceholder:y,title:Ct,subtitle:yo}),children:(0,De.jsx)("div",{className:"k-list-container",children:(0,De.jsxs)(J,{size:"large",children:[(0,De.jsx)(K,{text:"List item"}),(0,De.jsx)(K,{text:"List item"}),(0,De.jsx)(K,{text:"List item"})]})})})]})};ie.states=rL;ie.options=sL;ie.className=ux;ie.defaultOptions=Wr;var iL=require("react/jsx-runtime");var kx=require("react/jsx-runtime");var Up=require("react/jsx-runtime");var nL=require("react/jsx-runtime");var fx=require("react/jsx-runtime");var hx=require("react/jsx-runtime");var qp=require("react/jsx-runtime");var _p=require("react/jsx-runtime");var $p=require("react/jsx-runtime"),Pd="k-radio",dL=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked],cL={size:[d.small,d.medium,d.large]},gx={size:d.medium},wa=e=>{let{id:t,checked:a,hover:r,focus:s,disabled:i,invalid:n,valid:c,required:m,size:k=gx.size,...y}=e;return(0,$p.jsx)("span",{className:"k-radio-wrap",children:(0,$p.jsx)("input",{...y,id:t,type:"radio",checked:a,required:m,className:o(e.className,Pd,C(Pd,{size:k}),v(Pd,{hover:r,focus:s,disabled:i,invalid:n,valid:c,checked:a}))})})};wa.states=dL;wa.options=cL;wa.className=Pd;wa.defaultOptions=gx;var vx=require("react/jsx-runtime"),xx="k-radio-list",pL=[],mL={},bx={layout:"vertical"},Qr=e=>{let{layout:t=bx.layout,...a}=e;return(0,vx.jsx)("ul",{...a,className:o(e.className,xx,{[`k-list-${t}`]:t}),children:e.children})};Qr.states=pL;Qr.options=mL;Qr.className=xx;Qr.defaultOptions=bx;var wx=require("react/jsx-runtime"),yx="k-radio-list-item",uL=[],kL={},fL={},Vr=e=>{let{...t}=e;return(0,wx.jsx)("li",{...t,className:o(e.className,yx),children:e.children})};Vr.states=uL;Vr.options=kL;Vr.className=yx;Vr.defaultOptions=fL;var hL=require("react/jsx-runtime");var tm=require("react/jsx-runtime");var om=require("react/jsx-runtime");var am=require("react/jsx-runtime");var lm=require("react/jsx-runtime");var rm=require("react/jsx-runtime");var Se=require("react/jsx-runtime"),Gd=({size:e,...t})=>(0,Se.jsx)(ya,{formButtons:(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(p,{className:"k-form-submit",themeColor:"primary",size:e,children:"Submit"}),(0,Se.jsx)(p,{className:"k-form-clear",size:e,children:"Clear"})]}),children:(0,Se.jsxs)(Oo,{legend:"Form Legend",children:[(0,Se.jsx)(pt,{label:"Label",editor:(0,Se.jsx)(ee,{size:e})}),(0,Se.jsx)(pt,{label:"Label",hint:"Hint text",editor:(0,Se.jsx)(ie,{value:"Dropdown List",size:e})}),(0,Se.jsx)(pt,{label:"City",editor:(0,Se.jsxs)("ul",{className:"k-radio-list k-list-horizontal",children:[(0,Se.jsxs)("li",{className:"k-radio-list-item",children:[(0,Se.jsx)(wa,{checked:!0,size:e}),(0,Se.jsx)("label",{className:"k-radio-label",children:"Label"})]}),(0,Se.jsxs)("li",{className:"k-radio-list-item",children:[(0,Se.jsx)(wa,{size:e}),(0,Se.jsx)("label",{className:"k-radio-label",children:"Label"})]}),(0,Se.jsxs)("li",{className:"k-radio-list-item",children:[(0,Se.jsx)(wa,{size:e}),(0,Se.jsx)("label",{className:"k-radio-label",children:"Label"})]})]})})]}),size:e,...t});var sm=require("react/jsx-runtime");var im=require("react/jsx-runtime");var Ax=require("react/jsx-runtime"),Gi="k-button-group",xL=[l.disabled],bL={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},Tx={fillMode:b.solid},G=e=>{let{fillMode:t=Tx.fillMode,disabled:a,stretched:r,...s}=e;return(0,Ax.jsx)("div",{...s,className:o(e.className,Gi,C(Gi,{fillMode:t}),v(Gi,{disabled:a}),{[`${Gi}-stretched`]:r}),children:e.children})};G.states=xL;G.options=bL;G.className=Gi;G.defaultOptions=Tx;var nm=require("react/jsx-runtime");var dm=require("react/jsx-runtime");var cm=require("react/jsx-runtime");var pm=require("react/jsx-runtime");var Zl=require("react/jsx-runtime"),Nx="k-menu-button",vL=[l.hover,l.focus,l.active,l.selected,l.disabled],yL={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Xl={size:d.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!0,arrowIconName:"caret-alt-down"},q=e=>{let{size:t=Xl.size,rounded:a=Xl.rounded,fillMode:r=Xl.fillMode,themeColor:s=Xl.themeColor,hover:i,focus:n,active:c,selected:m,disabled:k,icon:y,text:T,showArrow:g=Xl.showArrow,arrowIconName:A=Xl.arrowIconName,popup:N,opened:S,...B}=e;return(0,Zl.jsxs)(Zl.Fragment,{children:[(0,Zl.jsx)(p,{...B,className:o(e.className,Nx),text:T,size:t,rounded:a,fillMode:r,themeColor:s,hover:i,focus:n,active:c,selected:m,disabled:k,icon:y,showArrow:g,arrowIconName:A}),S&&N&&(0,Zl.jsx)(H,{className:"k-menu-popup",children:N})]})};q.states=vL;q.options=yL;q.className=Nx;q.defaultOptions=Xl;var wL=require("react/jsx-runtime");var TL=require("react/jsx-runtime");var AL=require("react/jsx-runtime");var io=require("react/jsx-runtime"),um="k-menu-item",NL=[l.hover,l.focus,l.active,l.selected,l.disabled],CL={},Cx={iconPosition:"before"},mt=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:n,text:c,first:m,last:k,showArrow:y,arrowIconName:T,iconPosition:g=Cx.iconPosition,dir:A,children:N,...S}=e,B=(0,io.jsx)(io.Fragment,{});N&&N.forEach(P=>{if(P.type==="MenuItemContent"){B.props.children.push(P);return}});let L=T;return L||(L=A==="rtl"?"caret-alt-left":"caret-alt-right"),(0,io.jsxs)("li",{...S,className:o(e.className,um,"k-item",v(um,{focus:a,disabled:i,hover:t,active:r,selected:s}),{"k-first":m,"k-last":k}),children:[(0,io.jsxs)("span",{className:o("k-link k-menu-link"),children:[n&&g==="before"&&(0,io.jsx)(x,{className:"k-menu-link-icon",icon:n}),(0,io.jsx)("span",{className:"k-menu-link-text",children:c}),n&&g==="after"&&(0,io.jsx)(x,{className:"k-menu-link-icon",icon:n}),y&&(0,io.jsx)("span",{className:"k-menu-expand-arrow",children:(0,io.jsx)(x,{icon:L})})]}),B]})};mt.states=NL;mt.options=CL;mt.className=um;mt.defaultOptions=Cx;var no=require("react/jsx-runtime"),km="k-menu-item",SL=[l.hover,l.focus,l.active,l.selected,l.disabled],IL={},fm={dir:"ltr",iconPosition:"before"},So=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:n,text:c,first:m,last:k,showArrow:y,arrowIconName:T,iconPosition:g=fm.iconPosition,dir:A=fm.dir,children:N,popup:S,...B}=e,L=(0,no.jsx)(no.Fragment,{});N&&N.forEach(z=>{if(z.type==="MenuListItemContent"){L.props.children.push(z);return}});let P=T;return P||(P=A==="rtl"?"caret-alt-left":"caret-alt-right"),(0,no.jsxs)("li",{...B,className:o(e.className,km,"k-item",v(km,{focus:a,disabled:i}),{"k-first":m,"k-last":k}),children:[(0,no.jsxs)("span",{className:o("k-link k-menu-link",v("k-menu-link",{hover:t,active:r,selected:s,disabled:i})),children:[n&&g==="before"&&(0,no.jsx)(x,{className:"k-menu-link-icon",icon:n}),(0,no.jsx)("span",{className:"k-menu-link-text",children:c}),n&&g==="after"&&(0,no.jsx)(x,{className:"k-menu-link-icon",icon:n}),y&&(0,no.jsx)("span",{className:"k-menu-expand-arrow",children:(0,no.jsx)(x,{icon:P})})]}),L,S]})};So.states=SL;So.options=IL;So.className=km;So.defaultOptions=fm;var Bx=require("react/jsx-runtime"),Sx="k-menu-scroll-wrapper",BL=[],ML={},LL={},Ki=e=>{let{className:t,children:a,orientation:r,...s}=e;return(0,Bx.jsx)("div",{...s,className:o(t,Sx,{"k-menu-scroll-wrapper-vertical":r==="vertical"}),children:a})};Ki.states=BL;Ki.options=ML;Ki.className=Sx;Ki.defaultOptions=LL;var Ix=Ki;var ut=require("react/jsx-runtime"),hm="k-menu",EL=[],YL={},Kd={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},Io=e=>{let{children:t,orientation:a=Kd.orientation,header:r=Kd.header,scrollable:s,scrollButtonsPosition:i=Kd.scrollButtonsPosition,wrapperStyles:n,dir:c,popup:m,...k}=e,y={horizontal:{prev:c!=="rtl"?"left":"right",next:c!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},T=(0,ut.jsx)("ul",{dir:c,...k,className:o(e.className,"k-reset",hm,{[`${hm}-${a}`]:a,"k-header":r}),children:t});return(0,ut.jsxs)(ut.Fragment,{children:[s?(0,ut.jsxs)(Ix,{orientation:a,style:n,dir:e.dir,children:[i==="start"&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(p,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),(0,ut.jsx)(p,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),i==="around"&&(0,ut.jsx)(p,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),T,i==="end"&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(p,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),(0,ut.jsx)(p,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),i==="around"&&(0,ut.jsx)(p,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}):T,m]})};Io.states=EL;Io.options=YL;Io.className=hm;Io.defaultOptions=Kd;var Lx=require("react/jsx-runtime"),gm="k-separator",Mx={orientation:"horizontal"},Di=e=>{let{orientation:t=Mx.orientation,...a}=e;return(0,Lx.jsx)("li",{...a,className:o(e.className,"k-item",gm,{[`${gm}-${t}`]:t})})};Di.className=gm;Di.defaultOptions=Mx;var Ex=require("react/jsx-runtime");var vm=require("react/jsx-runtime"),Yx=require("react"),xm="k-menu-group",PL=[],GL={size:[d.small,d.medium,d.large]},bm={size:d.medium,dir:"ltr"},Ta=e=>{let{children:t,size:a=bm.size,dir:r=bm.dir,...s}=e,i=[];return t&&Array.isArray(t)&&t.map((n,c)=>{n.type===So?i.push((0,Yx.createElement)(So,{...n.props,dir:r,key:c})):n.type===Di?i.push((0,vm.jsx)(Di,{})):i.push(n)}),(0,vm.jsx)("ul",{...s,className:o(e.className,xm,C(xm,{size:a})),children:i})};Ta.states=PL;Ta.options=GL;Ta.className=xm;Ta.defaultOptions=bm;var ym=require("react/jsx-runtime");var wm=require("react/jsx-runtime");var Tm=require("react/jsx-runtime");var Am=require("react/jsx-runtime");var Nm=require("react/jsx-runtime");var Px=require("react/jsx-runtime");var Aa=require("react/jsx-runtime"),Cm="k-split-button",KL=[l.hover,l.focus,l.active,l.selected,l.disabled],DL={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Xr={size:d.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,arrowIconName:"caret-alt-down"},Oe=e=>{let{size:t=Xr.size,rounded:a=Xr.rounded,fillMode:r=Xr.fillMode,themeColor:s=Xr.themeColor,hover:i,focus:n,active:c,selected:m,disabled:k,icon:y,text:T,arrowIconName:g=Xr.arrowIconName,popup:A,opened:N,...S}=e;return(0,Aa.jsxs)(Aa.Fragment,{children:[(0,Aa.jsxs)("div",{...S,className:o(e.className,Cm,"k-button-group",C(Cm,{rounded:a})),children:[(0,Aa.jsx)(p,{text:T,icon:y,size:t,rounded:a,fillMode:r,themeColor:s,hover:i,focus:n,active:c,selected:m,disabled:k,children:e.children}),(0,Aa.jsx)(p,{className:"k-split-button-arrow",icon:g,size:t,rounded:a,fillMode:r,disabled:k})]}),N&&A&&(0,Aa.jsx)(H,{className:"k-menu-popup",children:A})]})};Oe.states=KL;Oe.options=DL;Oe.className=Cm;Oe.defaultOptions=Xr;var Sm=Oe;var FL=require("react/jsx-runtime");var RL=require("react/jsx-runtime");var zL=require("react/jsx-runtime");var Gx=require("react/jsx-runtime");var Fx=require("react/jsx-runtime"),Kx="k-speech-to-text-button",Dx={icon:"microphone-outline"},Et=e=>{let{listening:t=!1,icon:a=Dx.icon,...r}=e;return(0,Fx.jsx)(p,{...r,icon:t?"stop-sm":a,className:o(e.className,Kx,{"k-listening":t})})};Et.states=p.states;Et.options=p.options;Et.className=Kx;Et.defaultOptions=Dx;var HL=require("react/jsx-runtime");var OL=require("react/jsx-runtime");var Vt=require("react/jsx-runtime"),Rx="k-textarea",WL=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],QL={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Na={size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,flow:"vertical",affixesOrientation:"horizontal",resize:"both",prefixSeparator:!0,suffixSeparator:!0},co=e=>{let{size:t=Na.size,rounded:a=Na.rounded,fillMode:r=Na.fillMode,prefixSeparator:s=Na.prefixSeparator,suffixSeparator:i=Na.prefixSeparator,affixesOrientation:n=Na.affixesOrientation,flow:c=Na.flow,resize:m=Na.resize,prefix:k,suffix:y,rows:T,value:g,placeholder:A,hover:N,focus:S,valid:B,invalid:L,required:P,disabled:z,...X}=e;return(0,Vt.jsxs)(M,{...X,size:t,rounded:a,fillMode:r,hover:N,focus:S,valid:B,invalid:L,required:P,disabled:z,className:o(e.className,Rx,{"!k-flex-col":c==="vertical","!k-flex-row":c==="horizontal"}),children:[k&&(0,Vt.jsxs)(Vt.Fragment,{children:[(0,Vt.jsx)(ae,{className:o({"!k-align-items-start":c===n}),direction:n,children:k}),s&&(0,Vt.jsx)(Ce,{direction:c==="horizontal"?"vertical":"horizontal"})]}),(0,Vt.jsx)(Ti,{className:o("!k-overflow-auto",{"!k-flex-none":c==="vertical","k-resize-x":m==="x","k-resize-y":m==="y","k-resize":m==="both","k-resize-none":m==="none"}),value:g,placeholder:A,rows:T}),y&&(0,Vt.jsxs)(Vt.Fragment,{children:[i&&(0,Vt.jsx)(Ce,{direction:c==="horizontal"?"vertical":"horizontal"}),(0,Vt.jsx)(le,{className:o({"!k-align-items-start":c===n}),direction:n,children:y})]})]})};co.states=WL;co.options=QL;co.className=Rx;co.defaultOptions=Na;var VL=require("react/jsx-runtime");var Hx=require("react/jsx-runtime");var Ox=require("react/jsx-runtime");var Jl=require("react/jsx-runtime"),Dd="k-listbox",XL=[l.disabled],ZL={size:[d.small,d.medium,d.large]},Im={size:d.medium,actionsPosition:"left"},Fi=e=>{let{size:t=Im.size,disabled:a,children:r,actionsPosition:s=Im.actionsPosition,actions:i,dir:n,...c}=e;return(0,Jl.jsxs)("div",{...c,dir:n,className:o(e.className,Dd,C(Dd,{size:t}),v(