UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 290 kB
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"}),x=(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 n={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"},gt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{jsx as Dv}from"react/jsx-runtime";var Hc="k-column-menu",Gv=[],Kv={size:[n.small,n.medium,n.large]},Oc={view:"list",size:n.medium},Ca=e=>{let{view:t=Oc.view,size:a=Oc.size,...r}=e;return Dv("div",{...r,className:o(e.className,Hc,C(Hc,{size:a}),{"k-column-menu-tabbed":t==="tabbed"}),children:e.children})};Ca.states=Gv;Ca.options=Kv;Ca.className=Hc;Ca.defaultOptions=Oc;import{jsx as hk}from"react/jsx-runtime";var Wc="k-column-list",Fv=[],Rv={size:[n.small,n.medium,n.large]},gk={size:n.medium},Tn=e=>{let{size:t=gk.size,...a}=e;return hk("div",{className:"k-column-list-wrapper",children:hk("div",{...a,className:o(e.className,Wc,C(Wc,{size:t})),children:e.children})})};Tn.states=Fv;Tn.options=Rv;Tn.className=Wc;Tn.defaultOptions=gk;import{jsx as xk}from"react/jsx-runtime";var An="k-checkbox",zv=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],Hv={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full]},Qc={size:n.medium,rounded:h.medium},Oe=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:v=Qc.size,rounded:T=Qc.rounded,...g}=e;return xk("span",{className:"k-checkbox-wrap",children:xk("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,An,C(An,{size:v,rounded:T}),x(An,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};Oe.states=zv;Oe.options=Hv;Oe.className=An;Oe.defaultOptions=Qc;import{jsx as Qv}from"react/jsx-runtime";var bk="k-checkbox-list",Ov=[],Wv={},vk={layout:"vertical"},Cl=e=>{let{layout:t=vk.layout,...a}=e;return Qv("ul",{...a,className:o(e.className,bk,{[`k-list-${t}`]:t}),children:e.children})};Cl.states=Ov;Cl.options=Wv;Cl.className=bk;Cl.defaultOptions=vk;import{jsx as Jv}from"react/jsx-runtime";var yk="k-checkbox-list-item",Vv=[],Xv={},Zv={},Sl=e=>{let{...t}=e;return Jv("li",{...t,className:o(e.className,yk),children:e.children})};Sl.states=Vv;Sl.options=Xv;Sl.className=yk;Sl.defaultOptions=Zv;import{Fragment as GG,jsx as PG,jsxs as KG}from"react/jsx-runtime";import{Fragment as HG,jsx as zG,jsxs as OG}from"react/jsx-runtime";import{Fragment as ZG,jsx as XG,jsxs as JG}from"react/jsx-runtime";import{Fragment as $G,jsx as _G,jsxs as eK}from"react/jsx-runtime";import{jsx as lK}from"react/jsx-runtime";import{jsx as nK}from"react/jsx-runtime";import{jsx as wk,jsxs as _v}from"react/jsx-runtime";var Xc="k-column-list-item",jv=[l.focus,l.disabled,l.hover],Uv={},qv={},Nn=e=>{let{label:t,checked:a,focus:r,hover:s,disabled:i,...d}=e;return _v("label",{...d,className:o(e.className,Xc,x(Xc,{focus:r,hover:s,disabled:i})),children:[wk(Oe,{disabled:i,checked:a}),wk("span",{className:"k-checkbox-label",children:t})]})};Nn.states=jv;Nn.options=Uv;Nn.className=Xc;Nn.defaultOptions=qv;import{Fragment as oy,jsx as Tk}from"react/jsx-runtime";var Zc="k-icon k-font-icon",$v=[],ey={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},ty={},us=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?Tk("span",{...d,className:o(e.className,Zc,C(Zc,{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"})}):Tk(oy,{})};us.states=$v;us.options=ey;us.className=Zc;us.defaultOptions=ty;var Ak=us;import{Fragment as ry,jsx as Cn}from"react/jsx-runtime";var Jc="k-icon k-svg-icon",ay=[],ly={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Nk={viewBox:"0 0 24 24"},ks=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=Nk.viewBox,icon:d,...p}=e;if(!d)return Cn(ry,{});d==="none"&&{...p,className:o(e.className,Jc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return Cn("span",{...p,className:o(e.className,Jc,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:Cn("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:i,dangerouslySetInnerHTML:typeof d=="object"?{__html:d.content}:void 0,children:d?void 0:e.children})})};ks.states=ay;ks.options=ly;ks.className=Jc;ks.defaultOptions=Nk;var jc=ks;import*as Ck from"@progress/kendo-svg-icons";import{Fragment as Sk,jsx as fs}from"react/jsx-runtime";var sy=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),iy=[],ny={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Uc={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:a,icon:r,type:s=Uc.type,rotate:i,flip:d,viewBox:p=Uc.viewBox,...m}=e;if(!r)return fs(Sk,{});if(s==="svg"){if(r==="none")return fs(jc,{...m,icon:r,size:t});let k=sy(`${r}-icon`);return Ck[k]?fs(jc,{...m,icon:Ck[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):fs(Sk,{})}return fs(Ak,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};y.states=iy;y.options=ny;y.defaultOptions=Uc;var qc=y;import{jsx as _c,jsxs as Ik}from"react/jsx-runtime";var $c="k-columnmenu-item",dy=[l.focus,l.selected],cy={},py={},bo=e=>{let{focus:t,selected:a,text:r,startIcon:s,endIcon:i,sortIndex:d,...p}=e;return Ik("div",{...p,className:o(e.className,$c,x($c,{focus:t,selected:a})),children:[s&&_c(y,{icon:s}),r,i&&Ik("span",{className:"k-columnmenu-indicators",children:[_c(y,{icon:i}),d&&_c("span",{className:"k-sort-index",children:d})]}),e.children]})};bo.states=dy;bo.options=cy;bo.className=$c;bo.defaultOptions=py;import{jsx as uy}from"react/jsx-runtime";var my="k-columnmenu-item-wrapper",hs=e=>uy("div",{...e,className:o(e.className,my),children:e.children});import{jsx as fy}from"react/jsx-runtime";var ky="k-columnmenu-item-content",Bk=e=>fy("div",{...e,className:o(e.className,ky,"k-columns-item"),children:e.children});import{jsx as Mk}from"react/jsx-runtime";var Lk="k-filter-menu",hy=[],gy={},xy={},Il=e=>{let{...t}=e;return Mk("form",{...t,className:o(e.className,Lk),children:Mk("div",{className:"k-filter-menu-container",children:e.children})})};Il.states=hy;Il.options=gy;Il.className=Lk;Il.defaultOptions=xy;import{jsx as eD}from"react/jsx-runtime";import{jsx as ep,jsxs as Ty}from"react/jsx-runtime";var by="k-item",vy={size:[n.small,n.medium,n.large]},yy=[],wy={size:n.medium},Sn=e=>{let{text:t,size:a,...r}=e;return ep("li",{...r,className:o(e.className,by),children:Ty("label",{className:"k-label k-checkbox-label",children:[ep(Oe,{size:a}),ep("span",{children:t})]})})};Sn.states=yy;Sn.options=vy;Sn.defaultOptions=wy;import{Fragment as Sy,jsx as Sa,jsxs as Ek}from"react/jsx-runtime";var Yk="k-expander",Ay=[],Ny={},Cy={},Do=e=>{let{itemText:t,itemStartIcon:a,itemEndIcon:r,itemSortIndex:s,expanded:i,itemContent:d,expanderIcon:p,...m}=e,k=Sa(Sy,{});return!i&&!p?k=Sa(y,{icon:"chevron-down"}):i&&!p?k=Sa(y,{icon:"chevron-up"}):k=Sa(y,{icon:p}),Ek("div",{...m,className:o(e.className,Yk),children:[Ek(bo,{text:t,startIcon:a,endIcon:r,sortIndex:s,children:[Sa("span",{className:"k-spacer"}),Sa("span",{className:"k-expander-indicator",children:k})]}),i&&Sa(Bk,{children:d}),e.children]})};Do.states=Ay;Do.options=Ny;Do.className=Yk;Do.defaultOptions=Cy;import{jsx as My}from"react/jsx-runtime";var tp="k-group-menu",Iy=[],By={size:[n.small,n.medium,n.large]},Pk={size:n.medium},In=e=>{let{size:t=Pk.size,...a}=e;return My("div",{...a,className:o(e.className,tp,C(tp,{size:t})),children:e.children})};In.states=Iy;In.options=By;In.className=tp;In.defaultOptions=Pk;import{Fragment as Py,jsx as Bn,jsxs as Gk}from"react/jsx-runtime";var op="k-group-menu-item",Ly=[l.hover,l.selected],Ey={},Yy={},Mn=e=>{let{hover:t,selected:a,text:r,actionsStart:s,actionsEnd:i,...d}=e;return Gk("div",{...d,className:o(e.className,op,x(op,{hover:t,selected:a})),children:[s&&Bn("span",{className:"k-group-menu-item-actions",children:s}),Bn("span",{className:"k-group-item-text",children:r}),i&&Gk(Py,{children:[Bn("span",{className:"k-spacer"}),Bn("span",{className:"k-group-menu-item-actions",children:i})]}),e.children]})};Mn.states=Ly;Mn.options=Ey;Mn.className=op;Mn.defaultOptions=Yy;import{jsx as Ia}from"react/jsx-runtime";var ap="k-group-menu-item-action",Gy=[l.hover,l.disabled,l.selected],Ky={size:[n.small,n.medium,n.large]},Kk={size:n.medium};var Ln=e=>{let{hover:t,disabled:a,selected:r,size:s=Kk.size,type:i,...d}=e,p;switch(i){case"remove":p=Ia(y,{icon:"x-circle",size:s});break;case"add":p=Ia(y,{icon:"plus-circle",size:s});break;case"drag":p=Ia(y,{icon:"handle-drag-dots",size:s});break;case"up":p=Ia(y,{icon:"chevron-up",size:s});break;case"down":p=Ia(y,{icon:"chevron-down",size:s});break;default:p=Ia(y,{icon:i,size:s});break}return Ia("span",{...d,className:o(e.className,ap,x(ap,{selected:r,hover:t,disabled:a}),`k-group-menu-item-${i}-action`),children:p})};Ln.options=Gy;Ln.options=Ky;Ln.className=ap;Ln.defaultOptions=Kk;import{jsx as TD}from"react/jsx-runtime";import{jsx as zy}from"react/jsx-runtime";var Dk="k-tabstrip-items",Dy=[],Fy={},Ry={tabAlignment:"start"},gs=e=>{let{children:t,tabAlignment:a,...r}=e;return zy("ul",{...r,className:o(e.className,Dk,"k-reset",`k-tabstrip-items-${a}`),children:t})};gs.states=Dy;gs.options=Fy;gs.className=Dk;gs.defaultOptions=Ry;var Fk=gs;import{jsx as Wy}from"react/jsx-runtime";var Rk="k-tabstrip-items-wrapper",Hy=[],Oy={},zk={orientation:"horizontal"},xs=e=>{let{children:t,orientation:a=zk.orientation,...r}=e;return Wy("div",{...r,className:o(e.className,Rk,{"k-hstack":a==="horizontal","k-vstack":a==="vertical"}),children:t})};xs.states=Hy;xs.options=Oy;xs.className=Rk;xs.defaultOptions=zk;var Hk=xs;import{jsx as vo,jsxs as Ok}from"react/jsx-runtime";var Ba="k-tabstrip",Qy=[],Vy={size:[n.small,n.medium,n.large]},bs={size:n.medium,position:"top",tabAlignment:"start",scrollButtons:"around"},yo=e=>{let{size:t=bs.size,scrollable:a,children:r,tabStripItems:s,position:i=bs.position,tabAlignment:d=bs.tabAlignment,scrollButtons:p=bs.scrollButtons,dir:m,scrollingPosition:k,...v}=e,T={top:{prev:m!=="rtl"?"left":"right",next:m!=="rtl"?"right":"left"},bottom:{prev:m!=="rtl"?"left":"right",next:m!=="rtl"?"right":"left"},right:{prev:"up",next:"down"},left:{prev:"up",next:"down"}},g={top:"horizontal",bottom:"horizontal",left:"vertical",right:"vertical"},A={start:"start",center:"center",end:"end",justify:"justify",stretched:"stretched"};return Ok("div",{dir:m,...v,className:o(Ba,e.className,{[`${Ba}-${i}`]:i,[`${Ba}-scrollable`]:a,[`${Ba}-scrollable-overlay`]:a&&(p==="hidden"||!p),[`${Ba}-scrollable-${k}`]:k&&k!=="both"},C(Ba,{size:t})),children:[i==="bottom"&&r,Ok(Hk,{orientation:g[i],children:[a&&(p==="around"||p==="start")&&vo("span",{className:o("k-tabstrip-prev","k-button",C("k-button",{size:t,fillMode:b.flat,themeColor:u.base,rounded:null}),"k-icon-button"),children:vo(y,{className:"k-button-icon",icon:`caret-alt-${T[i].prev}`})}),a&&p==="start"&&vo("span",{className:o("k-tabstrip-next","k-button",C("k-button",{size:t,fillMode:b.flat,themeColor:u.base,rounded:null}),"k-icon-button"),children:vo(y,{className:"k-button-icon",icon:`caret-alt-${T[i].next}`})}),vo(Fk,{className:o({"k-tabstrip-items-scroll":a&&p==="hidden"}),tabAlignment:A[d],children:s}),a&&p==="end"&&vo("span",{className:o("k-tabstrip-prev","k-button",C("k-button",{size:t,fillMode:b.flat,themeColor:u.base,rounded:null}),"k-icon-button"),children:vo(y,{className:"k-button-icon",icon:`caret-alt-${T[i].prev}`})}),a&&(p==="around"||p==="end")&&vo("span",{className:o("k-tabstrip-next","k-button",C("k-button",{size:t,fillMode:b.flat,themeColor:u.base,rounded:null}),"k-icon-button"),children:vo(y,{className:"k-button-icon",icon:`caret-alt-${T[i].next}`})})]}),i!=="bottom"&&r]})};yo.states=Qy;yo.options=Vy;yo.className=Ba;yo.defaultOptions=bs;import{jsx as Jy}from"react/jsx-runtime";var Xy=[],Zy={},Wk=e=>{let{type:t,...a}=e,r=t==="p"?"paragraph":t,s=t.includes("display")?"div":t;return Jy(s,{...a,className:o(e.className,{[`k-${r}`]:t}),children:e.children})};Wk.states=Xy;Wk.options=Zy;import{jsx as qy}from"react/jsx-runtime";var En="k-actions",jy=[],Uy={},lp={alignment:"start",orientation:"horizontal"},W=e=>{let{alignment:t=lp.alignment,orientation:a=lp.orientation,...r}=e;return qy("div",{...r,className:o(En,{[`${En}-${t}`]:t,[`${En}-${a}`]:a},e.className),children:e.children})};W.states=jy;W.options=Uy;W.className=En;W.defaultOptions=lp;var Qk=W;import{jsx as ew}from"react/jsx-runtime";var Yn="k-input",_y=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],$y={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Pn={size:n.medium,rounded:n.medium,fillMode:b.solid},M=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=Pn.size,rounded:k=Pn.rounded,fillMode:v=Pn.fillMode,...T}=e;return ew("span",{...T,className:o(e.className,Yn,C(Yn,{size:m,rounded:k,fillMode:v}),x(Yn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=_y;M.options=$y;M.className=Yn;M.defaultOptions=Pn;import{jsx as aw}from"react/jsx-runtime";var Gn="k-picker",tw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],ow={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Kn={size:n.medium,rounded:h.medium,fillMode:b.solid},xt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=Kn.size,rounded:k=Kn.rounded,fillMode:v=Kn.fillMode,...T}=e;return aw("span",{...T,className:o(e.className,Gn,C(Gn,{size:m,rounded:k,fillMode:v}),x(Gn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};xt.states=tw;xt.options=ow;xt.className=Gn;xt.defaultOptions=Kn;import{Fragment as sw,jsx as rp}from"react/jsx-runtime";var Vk="k-clear-value",lw=[l.disabled,l.loading,l.readonly],rw={},te=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?rp(sw,{}):rp("span",{className:o(e.className,Vk),children:rp(y,{icon:"x"})})};te.states=lw;te.options=rw;te.className=Vk;import{jsx as dw}from"react/jsx-runtime";var sp="k-input-inner",iw=[],nw={},Dn={type:"text",autocomplete:"off",value:"",placeholder:""},se=e=>{let{value:t=Dn.value,type:a=Dn.type,placeholder:r=Dn.placeholder,autocomplete:s=Dn.autocomplete,...i}=e;return dw("input",{...i,type:a,className:o(e.className,sp,C(sp,e)),placeholder:r,autoComplete:s,defaultValue:t})};se.states=iw;se.options=nw;se.className=sp;import{jsx as Xk,jsxs as mw}from"react/jsx-runtime";var ip="k-input-inner",cw=[],pw={},wo=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return mw("span",{...d,className:o(e.className,ip,C(ip,e)),children:[s,!s&&i&&Xk(y,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&Xk("span",{className:"k-input-value-text",children:t})]})};wo.states=cw;wo.options=pw;wo.className=ip;import{jsx as fw}from"react/jsx-runtime";var np="k-input-inner",uw=[],kw={},Zk={value:"",placeholder:""},vs=e=>{let{value:t=Zk.value,placeholder:a=Zk.placeholder,rows:r,...s}=e;return fw("textarea",{...s,className:o(e.className,np,C(np,e)),placeholder:a,rows:r,defaultValue:t})};vs.states=uw;vs.options=kw;vs.className=np;import{Fragment as gw,jsx as Jk}from"react/jsx-runtime";var jk="k-input-loading-icon",hw=[l.disabled,l.loading],J=e=>{let{disabled:t,loading:a}=e;return t||!a?Jk(gw,{}):Jk("span",{className:o(e.className,jk,"k-icon k-i-loading")})};J.states=hw;J.className=jk;import{Fragment as vw,jsx as Uk}from"react/jsx-runtime";var qk="k-input-validation-icon",xw=[l.valid,l.invalid,l.disabled,l.loading],bw={},X=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Uk(vw,{}):Uk(y,{className:o(qk),icon:i})};X.states=xw;X.options=bw;X.className=qk;import{Fragment as Tw,jsx as _k}from"react/jsx-runtime";var yw="k-input-prefix",ww={direction:"horizontal"},$=e=>{let{direction:t=ww.direction,...a}=e;return e.children?_k("span",{...a,className:o(yw,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):_k(Tw,{})};import{Fragment as Cw,jsx as $k}from"react/jsx-runtime";var Aw="k-input-suffix",Nw={direction:"horizontal"},ee=e=>{let{direction:t=Nw.direction,...a}=e;return e.children?$k("span",{...a,className:o(Aw,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):$k(Cw,{})};import{jsx as IF}from"react/jsx-runtime";import{jsx as EF}from"react/jsx-runtime";import{jsx as Iw}from"react/jsx-runtime";var ef="k-input-separator",Sw={direction:"vertical"},ge=e=>{let{direction:t=Sw.direction,...a}=e;return Iw("span",{...a,className:o(ef,e.className,{[`${ef}-${t}`]:t})})};import{jsx as tf}from"react/jsx-runtime";var of="k-animation-container",Bw=[],Mw={},af={positionMode:"absolute"},Fo=e=>{let{positionMode:t=af.positionMode,animationStyle:a,offset:r,...s}=e;return tf("div",{...s,style:{...r,...e.style},className:o(e.className,of,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:tf("div",{className:"k-child-animation-container",style:a,children:e.children})})};Fo.states=Bw;Fo.options=Mw;Fo.className=of;Fo.defaultOptions=af;import{jsx as lf}from"react/jsx-runtime";var rf="k-popup",Lw=[],Ew={},sf={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:a=sf.positionMode,animationStyle:r,...s}=e;return lf(Fo,{positionMode:a,offset:t,animationStyle:r,children:lf("div",{...s,className:o(e.className,rf),children:e.children})})};F.states=Lw;F.options=Ew;F.className=rf;F.defaultOptions=sf;import{jsx as Pw}from"react/jsx-runtime";var Yw="k-no-data",ys=e=>Pw("span",{className:o(Yw,e.className),children:e.children});import{jsx as Bl,jsxs as nf}from"react/jsx-runtime";var dp="k-list",Gw=[],Kw={size:[n.small,n.medium,n.large]},df={size:n.medium},Q=e=>{let{size:t=df.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:d,...p}=e,m,k,v,T,g=[];return r?r.map((A,N)=>{A.type===xe?(A.props.root===!0?(m=A.props.label,A.props.children.map((S,B)=>{g.push(Bl(P,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):A.props.children.forEach((S,B)=>{let L="";B===0&&(L=A.props.label),g.push(Bl(P,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=Bl(xe,{label:m,virtualization:a,children:g})):A.type===P&&(g.push(Bl(P,{...A.props},`${A.type}-${N}`)),v=Bl(Ml,{virtualization:a,children:g}),d&&(T=nf(ys,{className:"k-sr-only",children:[g.length," items found."]})))}):T=Bl(ys,{children:"No data found."}),nf("div",{...p,className:o(e.className,dp,C(dp,{size:t}),{"k-virtual-list":a}),children:[s,i,k,v,T]})};Q.states=Gw;Q.options=Kw;Q.className=dp;Q.defaultOptions=df;import{jsx as Ma,jsxs as Rw}from"react/jsx-runtime";var cp="k-list",Dw=[],Fw={size:[n.small,n.medium,n.large]},cf={size:n.medium},La=e=>{let{size:t=cf.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,v)=>{k.type===xe?(k.props.root===!0?(i=k.props.label,k.props.children.map((T,g)=>{m.push(Ma(P,{...T.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Ma(pf,{...k.props,children:k.props.label},`listChild-${v}`)),k.props.children.map((T,g)=>{m.push(Ma(P,{...T.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Ma(xe,{label:i,virtualization:a,children:m})):k.type===P&&(m.push(Ma(P,{...k.props},`${k.type}-${v}`)),p=Ma(Ml,{virtualization:a,children:m}))}):p=Ma(ys,{children:"No data found."}),Rw("div",{...s,className:o(e.className,cp,C(cp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};La.states=Dw;La.options=Fw;La.className=cp;La.defaultOptions=cf;import{jsx as Fn,jsxs as Ww}from"react/jsx-runtime";var pp="k-list-item",zw=[l.hover,l.focus,l.selected,l.disabled],Hw={},Ow={},P=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:k,selected:v,disabled:T,...g}=e,A=t||e.children;return Ww("li",{...g,className:o(e.className,r?"k-list-group-item":pp,x(pp,{hover:m,focus:k,disabled:T,selected:v})),children:[d&&Fn(Oe,{checked:p}),s&&Fn(y,{icon:i}),Fn("span",{className:"k-list-item-text",children:A}),a&&a!==""&&Fn("div",{className:"k-list-item-group-label",children:a})]})};P.states=zw;P.options=Hw;P.className=pp;P.defaultOptions=Ow;import{jsx as mp,jsxs as Vw}from"react/jsx-runtime";var Qw="k-list-content",Ml=e=>{let{virtualization:t,...a}=e;return Vw("div",{...a,className:o(Qw,e.className),children:[mp("ul",{className:o("k-list-ul"),children:e.children}),t&&mp("div",{className:"k-height-container",children:mp("div",{})})]})};import{jsx as mf}from"react/jsx-runtime";var Xw="k-list-group-sticky-header",uf=e=>mf("div",{className:o(Xw,e.className),children:mf("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Zw,jsx as kf,jsxs as Jw}from"react/jsx-runtime";var xe=e=>{let{virtualization:t,label:a}=e;return Jw(Zw,{children:[a&&kf(uf,{children:a}),e.children&&kf(Ml,{virtualization:t,children:e.children})]})};import{jsx as ff}from"react/jsx-runtime";var jw="k-list-group-item",pf=e=>ff("li",{className:o(jw,e.className),children:ff("span",{className:"k-list-item-text",children:e.children})});import{jsx as $w}from"react/jsx-runtime";var up="k-list-optionlabel",Uw=[l.hover,l.focus,l.selected,l.disabled],qw={},_w={},Rn=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return $w("div",{...d,className:o(up,x(up,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Rn.states=Uw;Rn.options=qw;Rn.className=up;Rn.defaultOptions=_w;import{jsx as aT}from"react/jsx-runtime";var kp="k-list-custom-value",eT=[l.hover,l.focus,l.selected,l.disabled],tT={},oT={},Ze=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return aT("div",{...d,className:o(kp,x(kp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Ze.states=eT;Ze.options=tT;Ze.className=kp;Ze.defaultOptions=oT;import{jsx as JR}from"react/jsx-runtime";import{jsx as _R}from"react/jsx-runtime";import{jsx as oz,jsxs as az}from"react/jsx-runtime";import{jsx as iz,jsxs as nz}from"react/jsx-runtime";import{jsx as mz}from"react/jsx-runtime";import{jsx as hz,jsxs as gz}from"react/jsx-runtime";import{jsx as yz,jsxs as wz}from"react/jsx-runtime";import{Fragment as sT,jsx as ws,jsxs as hf}from"react/jsx-runtime";var zn="k-button",lT=[l.hover,l.focus,l.active,l.selected,l.disabled],rT={size:[n.small,n.medium,n.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]},Ea={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Ea.size,rounded:a=Ea.rounded,fillMode:r=Ea.fillMode,themeColor:s=Ea.themeColor,showArrow:i=Ea.showArrow,arrowIconName:d=Ea.arrowIconName,hover:p,focus:m,active:k,selected:v,disabled:T,icon:g,text:A,iconClassName:N,...S}=e,B=g!==void 0,L=e.children!==void 0;return hf("button",{...S,className:o(e.className,zn,C(zn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(zn,{hover:p,focus:m,active:k,disabled:T,selected:v}),{"k-icon-button":!A&&!L&&B}),children:[g&&ws(y,{className:o(N,"k-button-icon"),icon:g}),A?hf(sT,{children:[A&&ws("span",{className:"k-button-text",children:A}),e.children]}):e.children&&ws("span",{className:"k-button-text",children:e.children}),i&&ws("span",{className:"k-menu-button-arrow k-button-arrow",children:ws(y,{icon:d})})]})};c.states=lT;c.options=rT;c.className=zn;c.defaultOptions=Ea;import{jsx as iT}from"react/jsx-runtime";var Je=e=>iT(c,{icon:"folder",...e,children:void 0});import{jsx as nT}from"react/jsx-runtime";var Rt=e=>nT(c,{icon:"folder",children:"Button",...e});import{jsx as $z}from"react/jsx-runtime";import{jsx as fp,jsxs as pT}from"react/jsx-runtime";var gf="k-suggestion-group",dT=[],cT={},xf={scrollable:!0},Ya=e=>{let{scrollable:t=xf.scrollable,...a}=e,r=fp("div",{...a,className:o(gf,e.className),children:e.children});return t?pT("div",{className:"k-suggestion-scrollwrap",children:[fp(c,{icon:"chevron-left"}),r,fp(c,{icon:"chevron-right"})]}):r};Ya.states=dT;Ya.options=cT;Ya.className=gf;Ya.defaultOptions=xf;import{jsx as fT}from"react/jsx-runtime";var Hn="k-suggestion",mT=[l.active,l.hover,l.focus],uT={themeColor:[u.base,u.primary,u.secondary]},kT={text:"Suggestion"},Pa=e=>{let{themeColor:t,active:a,hover:r,focus:s,text:i,...d}=e;return fT("span",{...d,className:o(e.className,Hn,x(Hn,{hover:r,active:a,focus:s}),C(Hn,{themeColor:t})),children:i})};Pa.states=mT;Pa.options=uT;Pa.className=Hn;Pa.item=kT;import{Fragment as h0,jsx as f0,jsxs as g0}from"react/jsx-runtime";import{Fragment as w0,jsx as y0,jsxs as T0}from"react/jsx-runtime";import{jsx as bf}from"react/jsx-runtime";var Ts="k-avatar";var hT=[l.hover,l.focus,l.active,l.selected,l.disabled],gT={size:[n.small,n.medium,n.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]},Ga={type:"text",size:n.medium,rounded:h.full,fillMode:b.solid,themeColor:u.primary,border:!1},eo=e=>{let{size:t=Ga.size,rounded:a=Ga.rounded,fillMode:r=Ga.fillMode,themeColor:s=Ga.themeColor,type:i=Ga.type,border:d=Ga.border,...p}=e;return bf("div",{...p,className:o(e.className,Ts,C(Ts,{size:t,rounded:a,fillMode:r,themeColor:s}),{[`${Ts}-bordered`]:d}),children:bf("span",{className:`${Ts}-${i}`,children:e.children})})};eo.states=hT;eo.options=gT;eo.className=Ts;eo.defaultOptions=Ga;import{jsx as G0}from"react/jsx-runtime";import{jsx as R0}from"react/jsx-runtime";import{jsx as W0}from"react/jsx-runtime";import{jsx as vT}from"react/jsx-runtime";var As="k-badge",xT=[],bT={size:[n.small,n.medium,n.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]},Ns={size:n.medium,fillMode:b.solid,themeColor:u.primary,cutoutBorder:!1},Ll=e=>{let{size:t=Ns.size,fillMode:a=Ns.fillMode,themeColor:r=Ns.themeColor,cutoutBorder:s=Ns.cutoutBorder,rounded:i,position:d,align:p,...m}=e;return vT("span",{...m,className:o(e.className,As,C(As,{size:t,rounded:i,fillMode:a,themeColor:r}),{[`${As}-${d}`]:d,[`k-${p}`]:p,[`${As}-border-cutout`]:s}),children:e.children})};Ll.states=xT;Ll.options=bT;Ll.className=As;Ll.defaultOptions=Ns;import{jsx as tH}from"react/jsx-runtime";import{jsx as sH}from"react/jsx-runtime";import{jsx as fH}from"react/jsx-runtime";import{jsx as El,jsxs as TT}from"react/jsx-runtime";var On="k-chip",yT=[l.hover,l.focus,l.active,l.selected,l.disabled],wT={size:[n.small,n.medium,n.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]},Yl={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,avatarImage:"/packages/html/assets/avatar.jpg"},zt=e=>{let{size:t=Yl.size,rounded:a=Yl.rounded,fillMode:r=Yl.fillMode,themeColor:s=Yl.themeColor,text:i,icon:d,actions:p,showAvatar:m,avatarImage:k=Yl.avatarImage,hover:v,focus:T,active:g,selected:A,disabled:N,...S}=e;return TT("div",{...S,className:o(e.className,On,C(On,{size:t,rounded:a,fillMode:r,themeColor:s}),x(On,{hover:v,focus:T,active:g,disabled:N,selected:A})),children:[d&&El(y,{className:"k-chip-icon",icon:d,size:"small"}),m&&El(eo,{className:"k-chip-avatar",type:"image",children:El("img",{src:k})}),El("span",{className:"k-chip-content",children:e.children?e.children:i&&El("span",{className:"k-chip-label",children:i})}),p&&El("span",{className:"k-chip-actions",children:p})]})};zt.states=yT;zt.options=wT;zt.className=On;zt.defaultOptions=Yl;import{jsx as CT}from"react/jsx-runtime";var hp="k-chip-list",AT=[],NT={size:[n.small,n.medium,n.large]},yf={size:n.medium},Ht=e=>{let{size:t=yf.size,...a}=e;return CT("div",{...a,className:o(e.className,hp,C(hp,{size:t})),children:e.children})};Ht.states=AT;Ht.options=NT;Ht.className=hp;Ht.defaultOptions=yf;import{jsx as SH}from"react/jsx-runtime";import{jsx as LH}from"react/jsx-runtime";import{jsx as GH}from"react/jsx-runtime";import{jsx as zH}from"react/jsx-runtime";import{Fragment as XH,jsx as VH,jsxs as ZH}from"react/jsx-runtime";import{jsx as wf,jsxs as BT}from"react/jsx-runtime";var Tf="k-color-preview",ST=[],IT={},Ro=e=>{let{color:t,iconName:a,...r}=e;return BT("span",{...r,className:o(e.className,Tf,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&wf(y,{icon:a,className:"k-color-preview-icon"}),wf("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ro.states=ST;Ro.options=IT;Ro.className=Tf;import{Fragment as gp,jsx as Af,jsxs as Qn}from"react/jsx-runtime";var xp="k-loader",MT={pulsing:"pulsing-2","infinite-spinner":"spinner-3","converging-spinner":"spinner-4"},LT=[],ET={size:[n.small,n.medium,n.large],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Vn={size:n.medium,themeColor:u.primary,animation:"pulsing"},zo=e=>{let{size:t=Vn.size,themeColor:a=Vn.themeColor,animation:r=Vn.animation,...s}=e,i=Af("span",{className:"k-loader-segment"});return Af("div",{...s,className:o(e.className,xp,{[`k-loader-${MT[r]||r}`]:r},C(xp,{size:t,themeColor:a})),children:Qn("div",{className:"k-loader-canvas",children:[r==="pulsing"&&Qn(gp,{children:[i,i]}),r==="infinite-spinner"&&Qn(gp,{children:[i,i,i]}),r==="converging-spinner"&&Qn(gp,{children:[i,i,i,i]})]})})};zo.states=LT;zo.options=ET;zo.className=xp;zo.defaultOptions=Vn;var Nf=zo;import{jsx as bp,jsxs as Cf}from"react/jsx-runtime";var vp="k-loader-container",YT=[],PT={size:[n.small,n.medium,n.large],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Da={size:n.medium,themeColor:u.primary,loaderType:"pulsing",position:"top",overlay:"dark",panel:!1},Cs=e=>{let{size:t=Da.size,themeColor:a=Da.themeColor,loaderType:r=Da.loaderType,position:s=Da.position,overlay:i=Da.overlay,panel:d=Da.panel,...p}=e;return Cf("div",{...p,className:o(e.className,vp,C(vp,{size:t}),{[`k-loader-${s}`]:s}),children:[bp("div",{className:`k-loader-container-overlay k-overlay-${i}`}),Cf("div",{className:o("k-loader-container-inner",{"k-loader-container-panel":d}),children:[bp(Nf,{size:t,themeColor:a,animation:r}),bp("div",{className:`k-loader-container-label !k-text-${a}`,children:"Loading..."})]})]})};Cs.states=YT;Cs.options=PT;Cs.className=vp;Cs.defaultOptions=Da;import{jsx as b8}from"react/jsx-runtime";import{jsx as T8}from"react/jsx-runtime";import{jsx as S8}from"react/jsx-runtime";import{jsx as L8}from"react/jsx-runtime";import{jsx as DT}from"react/jsx-runtime";var Sf="k-skeleton",GT=[],KT={},yp={shape:"text",animation:"pulse"},Ho=e=>{let{shape:t=yp.shape,animation:a=yp.animation,...r}=e;return DT("span",{...r,className:o(e.className,Sf,{[`k-skeleton-${t}`]:t,[`k-skeleton-${a}`]:a}),style:e.style})};Ho.states=GT;Ho.options=KT;Ho.className=Sf;Ho.defaultOptions=yp;import{jsx as V8}from"react/jsx-runtime";import{jsx as FT}from"react/jsx-runtime";var If=e=>FT(Ho,{shape:"rect",...e});import{jsx as _8}from"react/jsx-runtime";import{jsx as Ss,jsxs as wp}from"react/jsx-runtime";var Tp="k-form-field",RT=[l.disabled],We=e=>{let{label:t,orientation:a,optional:r,editor:s,hint:i,error:d,info:p,disabled:m,dir:k,colSpan:v}=e;return wp("div",{className:o(Tp,e.className,x(Tp,{disabled:m}),{[`k-col-span-${v}`]:v}),dir:k,children:[t&&wp("label",{className:o("k-label","k-form-label"),children:[t,r&&Ss("span",{className:"k-label-optional",children:"(Optional)"}),p&&Ss("span",{className:"k-field-info",children:"(field info)"})]}),a==="horizontal"&&!t&&Ss("span",{className:"k-label k-form-label k-label-empty"}),wp("div",{className:"k-form-field-wrap",children:[s,i&&Ss("div",{className:"k-form-hint",children:i}),d&&Ss("div",{className:"k-form-error",children:d})]})]})};We.states=RT;We.className=Tp;import{Fragment as zT,jsx as Ap,jsxs as HT}from"react/jsx-runtime";var Bf="k-form-fieldset",to=e=>{let{legend:t,layout:a,cols:r,gutters:s,colSpan:i}=e;return HT("fieldset",{className:o(Bf,{[`k-col-span-${i}`]:i}),children:[t&&Ap("legend",{className:"k-form-legend",children:t}),a==="grid"?Ap("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}):Ap(zT,{children:e.children})]})};to.className=Bf;import{Fragment as QT,jsx as Is,jsxs as VT}from"react/jsx-runtime";import{createElement as Np}from"react";var Xn="k-form",OT=[],WT={size:[n.small,n.medium,n.large]},Zn={size:n.medium,layout:"basic",tag:"form"},To=e=>{let{size:t=Zn.size,orientation:a,layout:r=Zn.layout,formButtons:s,cols:i,gutters:d,tag:p=Zn.tag,children:m}=e,k=({tag:T,className:g,children:A})=>T==="form"?Is("form",{className:g,children:A}):Is("div",{className:g,children:A}),v=[];return m&&(Array.isArray(m)?m.map((T,g)=>{T.type===We?v.push(Np(We,{...T.props,orientation:a,key:g})):v.push(T)}):m.type===We?v.push(Np(We,{...m.props,orientation:a,key:`${new Date().getTime()}`})):m.type===to&&v.push(Np(to,{...m.props,key:`${new Date().getTime()}`}))),VT(k,{tag:p,className:o(e.className,Xn,C(Xn,{size:t}),{[`${Xn}-${a}`]:a}),children:[r==="grid"?Is("div",{className:o("k-form-layout","k-d-grid",{[`k-grid-cols-${i}`]:i}),style:{...typeof d=="string"&&{gap:d},...typeof d=="object"&&d.rows&&{rowGap:d.rows},...typeof d=="object"&&d.cols&&{columnGap:d.cols}},children:v}):Is(QT,{children:v}),s&&Is("div",{className:"k-form-buttons",children:s})]})};To.states=OT;To.options=WT;To.className=Xn;To.defaultOptions=Zn;import{jsx as ZT}from"react/jsx-runtime";var XT="k-actionsheet-footer",Mf={alignment:"stretched",orientation:"horizontal"},Ot=e=>{let{alignment:t=Mf.alignment,orientation:a=Mf.orientation,template:r,as:s=r?"div":W,...i}=e;return ZT(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,XT),children:e.children})};import{jsx as Bs,jsxs as UT}from"react/jsx-runtime";var Lf="k-searchbox",JT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],jT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Cp={showIcon:!0,icon:"search",size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},De=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:T,disabled:g,showIcon:A=Cp.showIcon,icon:N=Cp.icon,...S}=e;return UT(M,{...S,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:T,disabled:g,className:o(e.className,Lf),children:[A&&Bs(y,{className:"k-input-icon",icon:N}),Bs(se,{placeholder:a,value:t}),Bs(J,{...e}),Bs(X,{...e}),Bs(te,{...e})]})};De.states=JT;De.options=jT;De.className=Lf;De.defaultOptions=Cp;import{jsx as BO}from"react/jsx-runtime";import{Fragment as Ef,jsx as Oo,jsxs as Sp}from"react/jsx-runtime";var Yf="k-textbox",qT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],_T={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Fa={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},Z=e=>{let{size:t=Fa.size,rounded:a=Fa.rounded,fillMode:r=Fa.fillMode,separators:s=Fa.separators,showClearButton:i=Fa.showClearButton,showValidationIcon:d=Fa.showValidationIcon,prefix:p,suffix:m,type:k,value:v,placeholder:T,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,...H}=e;return Sp(M,{...H,size:t,rounded:a,fillMode:r,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,className:o(e.className,Yf),children:[p&&Sp(Ef,{children:[Oo($,{children:p}),s&&Oo(ge,{})]}),Oo(se,{placeholder:T,value:v,type:k}),d&&Oo(X,{valid:N,invalid:S,loading:L,disabled:E}),Oo(J,{loading:L,disabled:E}),i&&Oo(te,{loading:L,disabled:E,readonly:D,value:v}),m&&Sp(Ef,{children:[s&&Oo(ge,{}),Oo(ee,{children:m})]})]})};Z.states=qT;Z.options=_T;Z.className=Yf;Z.defaultOptions=Fa;import{jsx as zO}from"react/jsx-runtime";import{Fragment as XO,jsx as VO}from"react/jsx-runtime";import{Fragment as _O,jsx as qO}from"react/jsx-runtime";import{jsx as Wo,jsxs as Ip}from"react/jsx-runtime";var Kf="k-actionsheet-titlebar",$T={},ae=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:v,...T}=e;return Ip("div",{...T,className:o(e.className,Kf),children:[Ip("div",{className:"k-actionsheet-titlebar-group",children:[r&&Wo("div",{className:"k-actionsheet-actions",children:r}),!v&&Ip("div",{className:"k-actionsheet-title",children:[t&&Wo("div",{className:"k-text-center",children:t}),a&&Wo("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),v&&Wo("div",{className:"k-actionsheet-title",children:v}),s&&Wo("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Wo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Wo(Z,{value:p,placeholder:m,size:k?"large":"medium"}):Wo(De,{placeholder:"Filter",size:k?"large":"medium"})})]})};ae.className=Kf;ae.defaultOptions=$T;import{jsx as Bp,jsxs as aA}from"react/jsx-runtime";var Mp="k-actionsheet-view",eA=[],tA={},oA={},Pl=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===ae&&Bp(ae,{adaptive:t,...s?.props}),m=i?.type===Ot&&Bp(Ot,{...i?.props});return aA("div",{...d,className:o(e.className,Mp,{[`${Mp}-animated`]:a}),children:[p,Bp("div",{className:"k-actionsheet-content",children:r}),m]})};Pl.states=eA;Pl.options=tA;Pl.className=Mp;Pl.defaultOptions=oA;import{jsx as Jn,jsxs as sA}from"react/jsx-runtime";var Df="k-actionsheet",lA=[],rA={},Ms={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ie=e=>{let{side:t=Ms.side,fullscreen:a=Ms.fullscreen,adaptive:r=Ms.adaptive,overlay:s=Ms.overlay,template:i,children:d,header:p,footer:m,...k}=e;return sA("div",{className:"k-actionsheet-container",children:[s&&Jn("div",{className:"k-overlay"}),Jn(Fo,{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:Jn("div",{...k,className:o(e.className,Df,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Jn(Pl,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};ie.states=lA;ie.options=rA;ie.className=Df;ie.defaultOptions=Ms;import{jsx as wW}from"react/jsx-runtime";import{Fragment as nA,jsx as Ls,jsxs as Lp}from"react/jsx-runtime";var Ep="k-actionsheet-item",iA=[l.hover,l.focus,l.selected,l.disabled],Yp=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return Lp("span",{...m,className:o(e.className,Ep,x(Ep,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&Ls(nA,{children:Lp("span",{className:"k-actionsheet-action",children:[t&&Ls("span",{className:"k-icon-wrap",children:Ls(y,{className:"k-actionsheet-item-icon",icon:t})}),Lp("span",{className:"k-actionsheet-item-text",children:[a&&Ls("span",{className:"k-actionsheet-item-title",children:a}),r&&Ls("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};Yp.states=iA;Yp.className=Ep;import{jsx as LW,jsxs as EW}from"react/jsx-runtime";import{jsx as KW}from"react/jsx-runtime";import{jsx as zW}from"react/jsx-runtime";import{jsx as QW}from"react/jsx-runtime";import{Fragment as pA,jsx as rt,jsxs as Pp}from"react/jsx-runtime";var Rf="k-dropdownlist",dA=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],cA={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Gl={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:h.medium,fillMode:b.solid},le=e=>{let{size:t=Gl.size,rounded:a=Gl.rounded,fillMode:r=Gl.fillMode,arrowIconName:s=Gl.arrowIconName,showValue:i=Gl.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:v,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:E,popup:D,opened:H,adaptive:he,adaptiveSettings:Pe,adaptiveTitle:$e,adaptiveSubtitle:Ft,adaptiveFilter:Na,...Nl}=e;return Pp(pA,{children:[Pp(xt,{...Nl,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:E,className:o(e.className,Rf,{"k-icon-picker":!i&&d}),children:[rt($,{children:p}),rt(wo,{placeholder:v,value:k,showValue:i,valueIconName:d}),rt(X,{valid:A,invalid:N,loading:B,disabled:L}),rt(J,{loading:B,disabled:L}),rt(ee,{children:m}),rt(c,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),H&&D&&rt(F,{className:"k-list-container k-dropdownlist-popup",children:D}),he&&rt(ie,{adaptive:!0,...Pe,header:rt(ae,{actionsEnd:rt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Na,inputValue:k,inputPlaceholder:v,title:$e,subtitle:Ft}),children:rt("div",{className:"k-list-container",children:Pp(Q,{size:"large",children:[rt(P,{text:"List item"}),rt(P,{text:"List item"}),rt(P,{text:"List item"})]})})})]})};le.states=dA;le.options=cA;le.className=Rf;le.defaultOptions=Gl;import{jsx as kQ}from"react/jsx-runtime";import{jsx as bQ,jsxs as vQ}from"react/jsx-runtime";import{Fragment as IQ,jsx as CQ,jsxs as SQ}from"react/jsx-runtime";import{jsx as EQ}from"react/jsx-runtime";import{jsx as DQ,jsxs as FQ}from"react/jsx-runtime";import{jsx as WQ,jsxs as QQ}from"react/jsx-runtime";import{Fragment as _Q,jsx as UQ,jsxs as qQ}from"react/jsx-runtime";import{Fragment as sV,jsx as lV,jsxs as rV}from"react/jsx-runtime";import{jsx as zf}from"react/jsx-runtime";var jn="k-radio",mA=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked],uA={size:[n.small,n.medium,n.large]},Hf={size:n.medium},Ao=e=>{let{id:t,checked:a,hover:r,focus:s,disabled:i,invalid:d,valid:p,required:m,size:k=Hf.size,...v}=e;return zf("span",{className:"k-radio-wrap",children:zf("input",{...v,id:t,type:"radio",checked:a,required:m,className:o(e.className,jn,C(jn,{size:k}),x(jn,{hover:r,focus:s,disabled:i,invalid:d,valid:p,checked:a}))})})};Ao.states=mA;Ao.options=uA;Ao.className=jn;Ao.defaultOptions=Hf;import{jsx as hA}from"react/jsx-runtime";var Of="k-radio-list",kA=[],fA={},Wf={layout:"vertical"},Kl=e=>{let{layout:t=Wf.layout,...a}=e;return hA("ul",{...a,className:o(e.className,Of,{[`k-list-${t}`]:t}),children:e.children})};Kl.states=kA;Kl.options=fA;Kl.className=Of;Kl.defaultOptions=Wf;import{jsx as vA}from"react/jsx-runtime";var Qf="k-radio-list-item",gA=[],xA={},bA={},Dl=e=>{let{...t}=e;return vA("li",{...t,className:o(e.className,Qf),children:e.children})};Dl.states=gA;Dl.options=xA;Dl.className=Qf;Dl.defaultOptions=bA;import{jsx as BV}from"react/jsx-runtime";import{Fragment as PV,jsx as YV,jsxs as GV}from"react/jsx-runtime";import{Fragment as zV,jsx as RV,jsxs as HV}from"react/jsx-runtime";import{Fragment as ZV,jsx as VV,jsxs as XV}from"react/jsx-runtime";import{Fragment as _V,jsx as qV,jsxs as $V}from"react/jsx-runtime";import{Fragment as l6,jsx as a6,jsxs as r6}from"react/jsx-runtime";import{Fragment as wA,jsx as st,jsxs as Fl}from"react/jsx-runtime";var Un=({size:e,...t})=>st(To,{formButtons:Fl(wA,{children:[st(c,{className:"k-form-submit",themeColor:"primary",size:e,children:"Submit"}),st(c,{className:"k-form-clear",size:e,children:"Clear"})]}),children:Fl(to,{legend:"Form Legend",children:[st(We,{label:"Label",editor:st(Z,{size:e})}),st(We,{label:"Label",hint:"Hint text",editor:st(le,{value:"Dropdown List",size:e})}),st(We,{label:"City",editor:Fl("ul",{className:"k-radio-list k-list-horizontal",children:[Fl("li",{className:"k-radio-list-item",children:[st(Ao,{checked:!0,size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Fl("li",{className:"k-radio-list-item",children:[st(Ao,{size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Fl("li",{className:"k-radio-list-item",children:[st(Ao,{size:e}),st("label",{className:"k-radio-label",children:"Label"})]})]})})]}),size:e,...t});import{Fragment as L6,jsx as M6,jsxs as E6}from"react/jsx-runtime";import{Fragment as R6,jsx as F6,jsxs as z6}from"react/jsx-runtime";import{jsx as NA}from"react/jsx-runtime";var Es="k-button-group",TA=[l.disabled],AA={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},Vf={fillMode:b.solid},Y=e=>{let{fillMode:t=Vf.fillMode,disabled:a,stretched:r,...s}=e;return NA("div",{...s,className:o(e.className,Es,C(Es,{fillMode:t}),x(Es,{disabled:a}),{[`${Es}-stretched`]:r}),children:e.children})};Y.states=TA;Y.options=AA;Y.className=Es;Y.defaultOptions=Vf;import{Fragment as o3,jsx as t3,jsxs as a3}from"react/jsx-runtime";import{Fragment as d3,jsx as n3,jsxs as c3}from"react/jsx-runtime";import{Fragment as h3,jsx as f3,jsxs as g3}from"react/jsx-runtime";import{Fragment as T3,jsx as w3,jsxs as A3}from"react/jsx-runtime";import{Fragment as IA,jsx as Xf,jsxs as BA}from"react/jsx-runtime";var Zf="k-menu-button",CA=[l.hover,l.focus,l.active,l.selected,l.disabled],SA={size:[n.small,n.medium,n.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]},za={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!0,arrowIconName:"caret-alt-down"},U=e=>{let{size:t=za.size,rounded:a=za.rounded,fillMode:r=za.fillMode,themeColor:s=za.themeColor,hover:i,focus:d,active:p,selected:m,disabled:k,icon:v,text:T,showArrow:g=za.showArrow,arrowIconName:A=za.arrowIconName,popup:N,opened:S,...B}=e;return BA(IA,{children:[Xf(c,{...B,className:o(e.className,Zf),text:T,size:t,rounded:a,fillMode:r,themeColor:s,hover:i,focus:d,active:p,selected:m,disabled:k,icon:v,showArrow:g,arrowIconName:A}),S&&N&&Xf(F,{className:"k-menu-popup",children:N})]})};U.states=CA;U.options=SA;U.className=Zf;U.defaultOptions=za;import{jsx as R3}from"react/jsx-runtime";import{jsx as W3}from"react/jsx-runtime";import{jsx as Z3}from"react/jsx-runtime";import{Fragment as EA,jsx as Rl,jsxs as Jf}from"react/jsx-runtime";var Dp="k-menu-item",MA=[l.hover,l.focus,l.active,l.selected,l.disabled],LA={},jf={iconPosition:"before"},Qe=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:d,text:p,first:m,last:k,showArrow:v,arrowIconName:T,iconPosition:g=jf.iconPosition,dir:A,children:N,...S}=e,B=Rl(EA,{});N&&N.forEach(E=>{if(E.type==="MenuItemContent"){B.props.children.push(E);return}});let L=T;return L||(L=A==="rtl"?"caret-alt-left":"caret-alt-right"),Jf("li",{...S,className:o(e.className,Dp,"k-item",x(Dp,{focus:a,disabled:i,hover:t,active:r,selected:s}),{"k-first":m,"k-last":k}),children:[Jf("span",{className:o("k-link k-menu-link"),children:[d&&g==="before"&&Rl(y,{className:"k-menu-link-icon",icon:d}),Rl("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&Rl(y,{className:"k-menu-link-icon",icon:d}),v&&Rl("span",{className:"k-menu-expand-arrow",children:Rl(y,{icon:L})})]}),B]})};Qe.states=MA;Qe.options=LA;Qe.className=Dp;Qe.defaultOptions=jf;import{Fragment as GA,jsx as zl,jsxs as Uf}from"react/jsx-runtime";var Fp="k-menu-item",YA=[l.hover,l.focus,l.active,l.selected,l.disabled],PA={},Rp={dir:"ltr",iconPosition:"before"},Wt=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:d,text:p,first:m,last:k,showArrow:v,arrowIconName:T,iconPosition:g=Rp.iconPosition,dir:A=Rp.dir,children:N,popup:S,...B}=e,L=zl(GA,{});N&&N.forEach(D=>{if(D.type==="MenuListItemContent"){L.props.children.push(D);return}});let E=T;return E||(E=A==="rtl"?"caret-alt-left":"caret-alt-right"),Uf("li",{...B,className:o(e.className,Fp,"k-item",x(Fp,{focus:a,disabled:i}),{"k-first":m,"k-last":k}),children:[Uf("span",{className:o("k-link k-menu-link",x("k-menu-link",{hover:t,active:r,selected:s,disabled:i})),children:[d&&g==="before"&&zl(y,{className:"k-menu-link-icon",icon:d}),zl