@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 290 kB
JavaScript
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 zc="k-column-menu",Gv=[],Kv={size:[n.small,n.medium,n.large]},Hc={view:"list",size:n.medium},Cl=e=>{let{view:t=Hc.view,size:a=Hc.size,...r}=e;return Dv("div",{...r,className:o(e.className,zc,C(zc,{size:a}),{"k-column-menu-tabbed":t==="tabbed"}),children:e.children})};Cl.states=Gv;Cl.options=Kv;Cl.className=zc;Cl.defaultOptions=Hc;import{jsx as hk}from"react/jsx-runtime";var Oc="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,Oc,C(Oc,{size:t})),children:e.children})})};Tn.states=Fv;Tn.options=Rv;Tn.className=Oc;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]},Wc={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=Wc.size,rounded:T=Wc.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=Wc;import{jsx as Qv}from"react/jsx-runtime";var bk="k-checkbox-list",Ov=[],Wv={},vk={layout:"vertical"},Sl=e=>{let{layout:t=vk.layout,...a}=e;return Qv("ul",{...a,className:o(e.className,bk,{[`k-list-${t}`]:t}),children:e.children})};Sl.states=Ov;Sl.options=Wv;Sl.className=bk;Sl.defaultOptions=vk;import{jsx as Jv}from"react/jsx-runtime";var yk="k-checkbox-list-item",Vv=[],Xv={},Zv={},Il=e=>{let{...t}=e;return Jv("li",{...t,className:o(e.className,yk),children:e.children})};Il.states=Vv;Il.options=Xv;Il.className=yk;Il.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 Vc="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,Vc,x(Vc,{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=Vc;Nn.defaultOptions=qv;import{Fragment as oy,jsx as Tk}from"react/jsx-runtime";var Xc="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,Xc,C(Xc,{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=Xc;us.defaultOptions=ty;var Ak=us;import{Fragment as ry,jsx as Cn}from"react/jsx-runtime";var Zc="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,Zc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return Cn("span",{...p,className:o(e.className,Zc,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=Zc;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]},jc={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:a,icon:r,type:s=jc.type,rotate:i,flip:d,viewBox:p=jc.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=jc;var Uc=y;import{jsx as qc,jsxs as Ik}from"react/jsx-runtime";var _c="k-columnmenu-item",dy=[l.focus,l.selected],cy={},py={},Na=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&&qc(y,{icon:s}),r,i&&Ik("span",{className:"k-columnmenu-indicators",children:[qc(y,{icon:i}),d&&qc("span",{className:"k-sort-index",children:d})]}),e.children]})};Na.states=dy;Na.options=cy;Na.className=_c;Na.defaultOptions=py;import{jsx as VK}from"react/jsx-runtime";import{jsx as uy}from"react/jsx-runtime";var my="k-columnmenu-item-content",Bk=e=>uy("div",{...e,className:o(e.className,my,"k-columns-item"),children:e.children});import{jsx as Mk}from"react/jsx-runtime";var Lk="k-filter-menu",ky=[],fy={},hy={},Ca=e=>{let{...t}=e;return Mk("form",{...t,className:o(e.className,Lk),children:Mk("div",{className:"k-filter-menu-container",children:e.children})})};Ca.states=ky;Ca.options=fy;Ca.className=Lk;Ca.defaultOptions=hy;import{jsx as xy}from"react/jsx-runtime";var gy="k-multicheck-wrap",Ek=e=>xy("ul",{...e,className:o(e.className,gy),children:e.children});import{jsx as $c,jsxs as Ty}from"react/jsx-runtime";var by="k-item",vy={size:[n.small,n.medium,n.large]},yy=[],wy={size:n.medium},vo=e=>{let{text:t,size:a,...r}=e;return $c("li",{...r,className:o(e.className,by),children:Ty("label",{className:"k-label k-checkbox-label",children:[$c(Oe,{size:a}),$c("span",{children:t})]})})};vo.states=yy;vo.options=vy;vo.defaultOptions=wy;import{Fragment as Sy,jsx as Sa,jsxs as Yk}from"react/jsx-runtime";var Pk="k-expander",Ay=[],Ny={},Cy={},hs=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}),Yk("div",{...m,className:o(e.className,Pk),children:[Yk(Na,{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]})};hs.states=Ay;hs.options=Ny;hs.className=Pk;hs.defaultOptions=Cy;import{jsx as My}from"react/jsx-runtime";var ep="k-group-menu",Iy=[],By={size:[n.small,n.medium,n.large]},Gk={size:n.medium},Sn=e=>{let{size:t=Gk.size,...a}=e;return My("div",{...a,className:o(e.className,ep,C(ep,{size:t})),children:e.children})};Sn.states=Iy;Sn.options=By;Sn.className=ep;Sn.defaultOptions=Gk;import{Fragment as Py,jsx as In,jsxs as Kk}from"react/jsx-runtime";var tp="k-group-menu-item",Ly=[l.hover,l.selected],Ey={},Yy={},Bn=e=>{let{hover:t,selected:a,text:r,actionsStart:s,actionsEnd:i,...d}=e;return Kk("div",{...d,className:o(e.className,tp,x(tp,{hover:t,selected:a})),children:[s&&In("span",{className:"k-group-menu-item-actions",children:s}),In("span",{className:"k-group-item-text",children:r}),i&&Kk(Py,{children:[In("span",{className:"k-spacer"}),In("span",{className:"k-group-menu-item-actions",children:i})]}),e.children]})};Bn.states=Ly;Bn.options=Ey;Bn.className=tp;Bn.defaultOptions=Yy;import{jsx as Ia}from"react/jsx-runtime";var op="k-group-menu-item-action",Gy=[l.hover,l.disabled,l.selected],Ky={size:[n.small,n.medium,n.large]},Dk={size:n.medium};var Mn=e=>{let{hover:t,disabled:a,selected:r,size:s=Dk.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,op,x(op,{selected:r,hover:t,disabled:a}),`k-group-menu-item-${i}-action`),children:p})};Mn.options=Gy;Mn.options=Ky;Mn.className=op;Mn.defaultOptions=Dk;import{jsx as TD}from"react/jsx-runtime";import{Fragment as MD,jsx as ID,jsxs as BD}from"react/jsx-runtime";import{jsx as zy}from"react/jsx-runtime";var Fk="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,Fk,"k-reset",`k-tabstrip-items-${a}`),children:t})};gs.states=Dy;gs.options=Fy;gs.className=Fk;gs.defaultOptions=Ry;var Rk=gs;import{jsx as Wy}from"react/jsx-runtime";var zk="k-tabstrip-items-wrapper",Hy=[],Oy={},Hk={orientation:"horizontal"},xs=e=>{let{children:t,orientation:a=Hk.orientation,...r}=e;return Wy("div",{...r,className:o(e.className,zk,{"k-hstack":a==="horizontal","k-vstack":a==="vertical"}),children:t})};xs.states=Hy;xs.options=Oy;xs.className=zk;xs.defaultOptions=Hk;var Ok=xs;import{jsx as yo,jsxs as Wk}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"},wo=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 Wk("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,Wk(Ok,{orientation:g[i],children:[a&&(p==="around"||p==="start")&&yo("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:yo(y,{className:"k-button-icon",icon:`caret-alt-${T[i].prev}`})}),a&&p==="start"&&yo("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:yo(y,{className:"k-button-icon",icon:`caret-alt-${T[i].next}`})}),yo(Rk,{className:o({"k-tabstrip-items-scroll":a&&p==="hidden"}),tabAlignment:A[d],children:s}),a&&p==="end"&&yo("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:yo(y,{className:"k-button-icon",icon:`caret-alt-${T[i].prev}`})}),a&&(p==="around"||p==="end")&&yo("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:yo(y,{className:"k-button-icon",icon:`caret-alt-${T[i].next}`})})]}),i!=="bottom"&&r]})};wo.states=Qy;wo.options=Vy;wo.className=Ba;wo.defaultOptions=bs;import{jsx as Jy}from"react/jsx-runtime";var Xy=[],Zy={},Qk=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})};Qk.states=Xy;Qk.options=Zy;import{jsx as qy}from"react/jsx-runtime";var Ln="k-actions",jy=[],Uy={},ap={alignment:"start",orientation:"horizontal"},O=e=>{let{alignment:t=ap.alignment,orientation:a=ap.orientation,...r}=e;return qy("div",{...r,className:o(Ln,{[`${Ln}-${t}`]:t,[`${Ln}-${a}`]:a},e.className),children:e.children})};O.states=jy;O.options=Uy;O.className=Ln;O.defaultOptions=ap;var Vk=O;import{jsx as ew}from"react/jsx-runtime";var En="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]},Yn={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=Yn.size,rounded:k=Yn.rounded,fillMode:v=Yn.fillMode,...T}=e;return ew("span",{...T,className:o(e.className,En,C(En,{size:m,rounded:k,fillMode:v}),x(En,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=_y;M.options=$y;M.className=En;M.defaultOptions=Yn;import{jsx as aw}from"react/jsx-runtime";var Pn="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]},Gn={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=Gn.size,rounded:k=Gn.rounded,fillMode:v=Gn.fillMode,...T}=e;return aw("span",{...T,className:o(e.className,Pn,C(Pn,{size:m,rounded:k,fillMode:v}),x(Pn,{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=Pn;xt.defaultOptions=Gn;import{Fragment as sw,jsx as lp}from"react/jsx-runtime";var Xk="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?lp(sw,{}):lp("span",{className:o(e.className,Xk),children:lp(y,{icon:"x"})})};te.states=lw;te.options=rw;te.className=Xk;import{jsx as dw}from"react/jsx-runtime";var rp="k-input-inner",iw=[],nw={},Kn={type:"text",autocomplete:"off",value:"",placeholder:""},se=e=>{let{value:t=Kn.value,type:a=Kn.type,placeholder:r=Kn.placeholder,autocomplete:s=Kn.autocomplete,...i}=e;return dw("input",{...i,type:a,className:o(e.className,rp,C(rp,e)),placeholder:r,autoComplete:s,defaultValue:t})};se.states=iw;se.options=nw;se.className=rp;import{jsx as Zk,jsxs as mw}from"react/jsx-runtime";var sp="k-input-inner",cw=[],pw={},To=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return mw("span",{...d,className:o(e.className,sp,C(sp,e)),children:[s,!s&&i&&Zk(y,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&Zk("span",{className:"k-input-value-text",children:t})]})};To.states=cw;To.options=pw;To.className=sp;import{jsx as fw}from"react/jsx-runtime";var ip="k-input-inner",uw=[],kw={},Jk={value:"",placeholder:""},vs=e=>{let{value:t=Jk.value,placeholder:a=Jk.placeholder,rows:r,...s}=e;return fw("textarea",{...s,className:o(e.className,ip,C(ip,e)),placeholder:a,rows:r,defaultValue:t})};vs.states=uw;vs.options=kw;vs.className=ip;import{Fragment as gw,jsx as jk}from"react/jsx-runtime";var Uk="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,Uk,"k-icon k-i-loading")})};J.states=hw;J.className=Uk;import{Fragment as vw,jsx as qk}from"react/jsx-runtime";var _k="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)?qk(vw,{}):qk(y,{className:o(_k),icon:i})};X.states=xw;X.options=bw;X.className=_k;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 ef}from"react/jsx-runtime";var Aw="k-input-suffix",Nw={direction:"horizontal"},ee=e=>{let{direction:t=Nw.direction,...a}=e;return e.children?ef("span",{...a,className:o(Aw,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ef(Cw,{})};import{jsx as GF}from"react/jsx-runtime";import{jsx as RF}from"react/jsx-runtime";import{jsx as Iw}from"react/jsx-runtime";var tf="k-input-separator",Sw={direction:"vertical"},ge=e=>{let{direction:t=Sw.direction,...a}=e;return Iw("span",{...a,className:o(tf,e.className,{[`${tf}-${t}`]:t})})};import{jsx as of}from"react/jsx-runtime";var af="k-animation-container",Bw=[],Mw={},lf={positionMode:"absolute"},Do=e=>{let{positionMode:t=lf.positionMode,animationStyle:a,offset:r,...s}=e;return of("div",{...s,style:{...r,...e.style},className:o(e.className,af,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:of("div",{className:"k-child-animation-container",style:a,children:e.children})})};Do.states=Bw;Do.options=Mw;Do.className=af;Do.defaultOptions=lf;import{jsx as rf}from"react/jsx-runtime";var sf="k-popup",Lw=[],Ew={},nf={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:a=nf.positionMode,animationStyle:r,...s}=e;return rf(Do,{positionMode:a,offset:t,animationStyle:r,children:rf("div",{...s,className:o(e.className,sf),children:e.children})})};F.states=Lw;F.options=Ew;F.className=sf;F.defaultOptions=nf;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 df}from"react/jsx-runtime";var np="k-list",Gw=[],Kw={size:[n.small,n.medium,n.large]},cf={size:n.medium},Q=e=>{let{size:t=cf.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=df(ys,{className:"k-sr-only",children:[g.length," items found."]})))}):T=Bl(ys,{children:"No data found."}),df("div",{...p,className:o(e.className,np,C(np,{size:t}),{"k-virtual-list":a}),children:[s,i,k,v,T]})};Q.states=Gw;Q.options=Kw;Q.className=np;Q.defaultOptions=cf;import{jsx as Ma,jsxs as Rw}from"react/jsx-runtime";var dp="k-list",Dw=[],Fw={size:[n.small,n.medium,n.large]},pf={size:n.medium},La=e=>{let{size:t=pf.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(mf,{...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,dp,C(dp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};La.states=Dw;La.options=Fw;La.className=dp;La.defaultOptions=pf;import{jsx as Dn,jsxs as Ww}from"react/jsx-runtime";var cp="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":cp,x(cp,{hover:m,focus:k,disabled:T,selected:v})),children:[d&&Dn(Oe,{checked:p}),s&&Dn(y,{icon:i}),Dn("span",{className:"k-list-item-text",children:A}),a&&a!==""&&Dn("div",{className:"k-list-item-group-label",children:a})]})};P.states=zw;P.options=Hw;P.className=cp;P.defaultOptions=Ow;import{jsx as pp,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:[pp("ul",{className:o("k-list-ul"),children:e.children}),t&&pp("div",{className:"k-height-container",children:pp("div",{})})]})};import{jsx as uf}from"react/jsx-runtime";var Xw="k-list-group-sticky-header",kf=e=>uf("div",{className:o(Xw,e.className),children:uf("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Zw,jsx as ff,jsxs as Jw}from"react/jsx-runtime";var xe=e=>{let{virtualization:t,label:a}=e;return Jw(Zw,{children:[a&&ff(kf,{children:a}),e.children&&ff(Ml,{virtualization:t,children:e.children})]})};import{jsx as hf}from"react/jsx-runtime";var jw="k-list-group-item",mf=e=>hf("li",{className:o(jw,e.className),children:hf("span",{className:"k-list-item-text",children:e.children})});import{jsx as $w}from"react/jsx-runtime";var mp="k-list-optionlabel",Uw=[l.hover,l.focus,l.selected,l.disabled],qw={},_w={},Fn=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return $w("div",{...d,className:o(mp,x(mp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Fn.states=Uw;Fn.options=qw;Fn.className=mp;Fn.defaultOptions=_w;import{jsx as aT}from"react/jsx-runtime";var up="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(up,x(up,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Ze.states=eT;Ze.options=tT;Ze.className=up;Ze.defaultOptions=oT;import{jsx as tz}from"react/jsx-runtime";import{jsx as rz}from"react/jsx-runtime";import{jsx as dz,jsxs as cz}from"react/jsx-runtime";import{jsx as kz,jsxs as fz}from"react/jsx-runtime";import{jsx as bz}from"react/jsx-runtime";import{jsx as Tz,jsxs as Az}from"react/jsx-runtime";import{jsx as Iz,jsxs as Bz}from"react/jsx-runtime";import{Fragment as sT,jsx as ws,jsxs as gf}from"react/jsx-runtime";var Rn="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 gf("button",{...S,className:o(e.className,Rn,C(Rn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Rn,{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?gf(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=Rn;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 s0}from"react/jsx-runtime";import{jsx as kp,jsxs as pT}from"react/jsx-runtime";var xf="k-suggestion-group",dT=[],cT={},bf={scrollable:!0},Ya=e=>{let{scrollable:t=bf.scrollable,...a}=e,r=kp("div",{...a,className:o(xf,e.className),children:e.children});return t?pT("div",{className:"k-suggestion-scrollwrap",children:[kp(c,{icon:"chevron-left"}),r,kp(c,{icon:"chevron-right"})]}):r};Ya.states=dT;Ya.options=cT;Ya.className=xf;Ya.defaultOptions=bf;import{jsx as fT}from"react/jsx-runtime";var zn="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,zn,x(zn,{hover:r,active:a,focus:s}),C(zn,{themeColor:t})),children:i})};Pa.states=mT;Pa.options=uT;Pa.className=zn;Pa.item=kT;import{Fragment as T0,jsx as w0,jsxs as A0}from"react/jsx-runtime";import{Fragment as B0,jsx as I0,jsxs as M0}from"react/jsx-runtime";import{jsx as vf}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 vf("div",{...p,className:o(e.className,Ts,C(Ts,{size:t,rounded:a,fillMode:r,themeColor:s}),{[`${Ts}-bordered`]:d}),children:vf("span",{className:`${Ts}-${i}`,children:e.children})})};eo.states=hT;eo.options=gT;eo.className=Ts;eo.defaultOptions=Ga;import{jsx as O0}from"react/jsx-runtime";import{jsx as X0}from"react/jsx-runtime";import{jsx as U0}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 nH}from"react/jsx-runtime";import{jsx as uH}from"react/jsx-runtime";import{jsx as wH}from"react/jsx-runtime";import{jsx as El,jsxs as TT}from"react/jsx-runtime";var Hn="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,Hn,C(Hn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Hn,{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=Hn;zt.defaultOptions=Yl;import{jsx as CT}from"react/jsx-runtime";var fp="k-chip-list",AT=[],NT={size:[n.small,n.medium,n.large]},wf={size:n.medium},Ht=e=>{let{size:t=wf.size,...a}=e;return CT("div",{...a,className:o(e.className,fp,C(fp,{size:t})),children:e.children})};Ht.states=AT;Ht.options=NT;Ht.className=fp;Ht.defaultOptions=wf;import{jsx as PH}from"react/jsx-runtime";import{jsx as FH}from"react/jsx-runtime";import{jsx as OH}from"react/jsx-runtime";import{jsx as ZH}from"react/jsx-runtime";import{Fragment as $H,jsx as _H,jsxs as e8}from"react/jsx-runtime";import{jsx as Tf,jsxs as BT}from"react/jsx-runtime";var Af="k-color-preview",ST=[],IT={},Fo=e=>{let{color:t,iconName:a,...r}=e;return BT("span",{...r,className:o(e.className,Af,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&Tf(y,{icon:a,className:"k-color-preview-icon"}),Tf("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Fo.states=ST;Fo.options=IT;Fo.className=Af;import{Fragment as hp,jsx as Nf,jsxs as Wn}from"react/jsx-runtime";var gp="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]},Qn={size:n.medium,themeColor:u.primary,animation:"pulsing"},Ro=e=>{let{size:t=Qn.size,themeColor:a=Qn.themeColor,animation:r=Qn.animation,...s}=e,i=Nf("span",{className:"k-loader-segment"});return Nf("div",{...s,className:o(e.className,gp,{[`k-loader-${MT[r]||r}`]:r},C(gp,{size:t,themeColor:a})),children:Wn("div",{className:"k-loader-canvas",children:[r==="pulsing"&&Wn(hp,{children:[i,i]}),r==="infinite-spinner"&&Wn(hp,{children:[i,i,i]}),r==="converging-spinner"&&Wn(hp,{children:[i,i,i,i]})]})})};Ro.states=LT;Ro.options=ET;Ro.className=gp;Ro.defaultOptions=Qn;var Cf=Ro;import{jsx as xp,jsxs as Sf}from"react/jsx-runtime";var bp="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 Sf("div",{...p,className:o(e.className,bp,C(bp,{size:t}),{[`k-loader-${s}`]:s}),children:[xp("div",{className:`k-loader-container-overlay k-overlay-${i}`}),Sf("div",{className:o("k-loader-container-inner",{"k-loader-container-panel":d}),children:[xp(Cf,{size:t,themeColor:a,animation:r}),xp("div",{className:`k-loader-container-label !k-text-${a}`,children:"Loading..."})]})]})};Cs.states=YT;Cs.options=PT;Cs.className=bp;Cs.defaultOptions=Da;import{jsx as C8}from"react/jsx-runtime";import{jsx as M8}from"react/jsx-runtime";import{jsx as P8}from"react/jsx-runtime";import{jsx as F8}from"react/jsx-runtime";import{jsx as DT}from"react/jsx-runtime";var If="k-skeleton",GT=[],KT={},vp={shape:"text",animation:"pulse"},zo=e=>{let{shape:t=vp.shape,animation:a=vp.animation,...r}=e;return DT("span",{...r,className:o(e.className,If,{[`k-skeleton-${t}`]:t,[`k-skeleton-${a}`]:a}),style:e.style})};zo.states=GT;zo.options=KT;zo.className=If;zo.defaultOptions=vp;import{jsx as _8}from"react/jsx-runtime";import{jsx as FT}from"react/jsx-runtime";var Bf=e=>FT(zo,{shape:"rect",...e});import{jsx as rO}from"react/jsx-runtime";import{jsx as Ss,jsxs as yp}from"react/jsx-runtime";var wp="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 yp("div",{className:o(wp,e.className,x(wp,{disabled:m}),{[`k-col-span-${v}`]:v}),dir:k,children:[t&&yp("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"}),yp("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=wp;import{Fragment as zT,jsx as Tp,jsxs as HT}from"react/jsx-runtime";var Mf="k-form-fieldset",to=e=>{let{legend:t,layout:a,cols:r,gutters:s,colSpan:i}=e;return HT("fieldset",{className:o(Mf,{[`k-col-span-${i}`]:i}),children:[t&&Tp("legend",{className:"k-form-legend",children:t}),a==="grid"?Tp("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}):Tp(zT,{children:e.children})]})};to.className=Mf;import{Fragment as QT,jsx as Is,jsxs as VT}from"react/jsx-runtime";import{createElement as Ap}from"react";var Vn="k-form",OT=[],WT={size:[n.small,n.medium,n.large]},Xn={size:n.medium,layout:"basic",tag:"form"},Ao=e=>{let{size:t=Xn.size,orientation:a,layout:r=Xn.layout,formButtons:s,cols:i,gutters:d,tag:p=Xn.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(Ap(We,{...T.props,orientation:a,key:g})):v.push(T)}):m.type===We?v.push(Ap(We,{...m.props,orientation:a,key:`${new Date().getTime()}`})):m.type===to&&v.push(Ap(to,{...m.props,key:`${new Date().getTime()}`}))),VT(k,{tag:p,className:o(e.className,Vn,C(Vn,{size:t}),{[`${Vn}-${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})]})};Ao.states=OT;Ao.options=WT;Ao.className=Vn;Ao.defaultOptions=Xn;import{jsx as ZT}from"react/jsx-runtime";var XT="k-actionsheet-footer",Lf={alignment:"stretched",orientation:"horizontal"},Ot=e=>{let{alignment:t=Lf.alignment,orientation:a=Lf.orientation,template:r,as:s=r?"div":O,...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 Ef="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]},Np={showIcon:!0,icon:"search",size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},Ge=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=Np.showIcon,icon:N=Np.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,Ef),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})]})};Ge.states=JT;Ge.options=jT;Ge.className=Ef;Ge.defaultOptions=Np;import{jsx as KO}from"react/jsx-runtime";import{Fragment as Yf,jsx as Ho,jsxs as Cp}from"react/jsx-runtime";var Pf="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 Cp(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,Pf),children:[p&&Cp(Yf,{children:[Ho($,{children:p}),s&&Ho(ge,{})]}),Ho(se,{placeholder:T,value:v,type:k}),d&&Ho(X,{valid:N,invalid:S,loading:L,disabled:E}),Ho(J,{loading:L,disabled:E}),i&&Ho(te,{loading:L,disabled:E,readonly:D,value:v}),m&&Cp(Yf,{children:[s&&Ho(ge,{}),Ho(ee,{children:m})]})]})};Z.states=qT;Z.options=_T;Z.className=Pf;Z.defaultOptions=Fa;import{jsx as ZO}from"react/jsx-runtime";import{Fragment as $O,jsx as _O}from"react/jsx-runtime";import{Fragment as rW,jsx as lW}from"react/jsx-runtime";import{jsx as Oo,jsxs as Sp}from"react/jsx-runtime";var Df="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 Sp("div",{...T,className:o(e.className,Df),children:[Sp("div",{className:"k-actionsheet-titlebar-group",children:[r&&Oo("div",{className:"k-actionsheet-actions",children:r}),!v&&Sp("div",{className:"k-actionsheet-title",children:[t&&Oo("div",{className:"k-text-center",children:t}),a&&Oo("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),v&&Oo("div",{className:"k-actionsheet-title",children:v}),s&&Oo("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Oo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Oo(Z,{value:p,placeholder:m,size:k?"large":"medium"}):Oo(Ge,{placeholder:"Filter",size:k?"large":"medium"})})]})};ae.className=Df;ae.defaultOptions=$T;import{jsx as Ip,jsxs as aA}from"react/jsx-runtime";var Bp="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&&Ip(ae,{adaptive:t,...s?.props}),m=i?.type===Ot&&Ip(Ot,{...i?.props});return aA("div",{...d,className:o(e.className,Bp,{[`${Bp}-animated`]:a}),children:[p,Ip("div",{className:"k-actionsheet-content",children:r}),m]})};Pl.states=eA;Pl.options=tA;Pl.className=Bp;Pl.defaultOptions=oA;import{jsx as Zn,jsxs as sA}from"react/jsx-runtime";var Ff="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&&Zn("div",{className:"k-overlay"}),Zn(Do,{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:Zn("div",{...k,className:o(e.className,Ff,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Zn(Pl,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};ie.states=lA;ie.options=rA;ie.className=Ff;ie.defaultOptions=Ms;import{jsx as BW}from"react/jsx-runtime";import{Fragment as nA,jsx as Ls,jsxs as Mp}from"react/jsx-runtime";var Lp="k-actionsheet-item",iA=[l.hover,l.focus,l.selected,l.disabled],Ep=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return Mp("span",{...m,className:o(e.className,Lp,x(Lp,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&Ls(nA,{children:Mp("span",{className:"k-actionsheet-action",children:[t&&Ls("span",{className:"k-icon-wrap",children:Ls(y,{className:"k-actionsheet-item-icon",icon:t})}),Mp("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]})};Ep.states=iA;Ep.className=Lp;import{jsx as FW,jsxs as RW}from"react/jsx-runtime";import{jsx as WW}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 Yp}from"react/jsx-runtime";var zf="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:Aa,...Nl}=e;return Yp(pA,{children:[Yp(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,zf,{"k-icon-picker":!i&&d}),children:[rt($,{children:p}),rt(To,{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:Aa,inputValue:k,inputPlaceholder:v,title:$e,subtitle:Ft}),children:rt("div",{className:"k-list-container",children:Yp(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=zf;le.defaultOptions=Gl;import{jsx as yQ}from"react/jsx-runtime";import{jsx as CQ,jsxs as SQ}from"react/jsx-runtime";import{Fragment as GQ,jsx as YQ,jsxs as PQ}from"react/jsx-runtime";import{jsx as RQ}from"react/jsx-runtime";import{jsx as QQ,jsxs as VQ}from"react/jsx-runtime";import{jsx as UQ,jsxs as qQ}from"react/jsx-runtime";import{Fragment as rV,jsx as aV,jsxs as lV}from"react/jsx-runtime";import{Fragment as uV,jsx as pV,jsxs as mV}from"react/jsx-runtime";import{jsx as Hf}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]},Of={size:n.medium},No=e=>{let{id:t,checked:a,hover:r,focus:s,disabled:i,invalid:d,valid:p,required:m,size:k=Of.size,...v}=e;return Hf("span",{className:"k-radio-wrap",children:Hf("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}))})})};No.states=mA;No.options=uA;No.className=Jn;No.defaultOptions=Of;import{jsx as hA}from"react/jsx-runtime";var Wf="k-radio-list",kA=[],fA={},Qf={layout:"vertical"},Kl=e=>{let{layout:t=Qf.layout,...a}=e;return hA("ul",{...a,className:o(e.className,Wf,{[`k-list-${t}`]:t}),children:e.children})};Kl.states=kA;Kl.options=fA;Kl.className=Wf;Kl.defaultOptions=Qf;import{jsx as vA}from"react/jsx-runtime";var Vf="k-radio-list-item",gA=[],xA={},bA={},Dl=e=>{let{...t}=e;return vA("li",{...t,className:o(e.className,Vf),children:e.children})};Dl.states=gA;Dl.options=xA;Dl.className=Vf;Dl.defaultOptions=bA;import{jsx as KV}from"react/jsx-runtime";import{Fragment as HV,jsx as zV,jsxs as OV}from"react/jsx-runtime";import{Fragment as ZV,jsx as XV,jsxs as JV}from"react/jsx-runtime";import{Fragment as e6,jsx as _V,jsxs as $V}from"react/jsx-runtime";import{Fragment as r6,jsx as l6,jsxs as s6}from"react/jsx-runtime";import{Fragment as p6,jsx as c6,jsxs as m6}from"react/jsx-runtime";import{Fragment as wA,jsx as st,jsxs as Fl}from"react/jsx-runtime";var jn=({size:e,...t})=>st(Ao,{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(No,{checked:!0,size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Fl("li",{className:"k-radio-list-item",children:[st(No,{size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Fl("li",{className:"k-radio-list-item",children:[st(No,{size:e}),st("label",{className:"k-radio-label",children:"Label"})]})]})})]}),size:e,...t});import{Fragment as F6,jsx as D6,jsxs as R6}from"react/jsx-runtime";import{Fragment as X6,jsx as V6,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]},Xf={fillMode:b.solid},Y=e=>{let{fillMode:t=Xf.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=Xf;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 M3,jsx as B3,jsxs as L3}from"react/jsx-runtime";import{Fragment as IA,jsx as Zf,jsxs as BA}from"react/jsx-runtime";var Jf="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:[Zf(c,{...B,className:o(e.className,Jf),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&&Zf(F,{className:"k-menu-popup",children:N})]})};U.states=CA;U.options=SA;U.className=Jf;U.defaultOptions=za;import{jsx as X3}from"react/jsx-runtime";import{jsx as U3}from"react/jsx-runtime";import{jsx as eX}from"react/jsx-runtime";import{Fragment as EA,jsx as Rl,jsxs as jf}from"react/jsx-runtime";var Kp="k-menu-item",MA=[l.hover,l.focus,l.active,l.selected,l.disabled],LA={},Uf={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=Uf.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,Kp,"k-item",x(Kp,{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=Kp;Qe.defaultOptions=Uf;import{Fragment as GA,jsx as zl,jsxs as qf}from"react/jsx-runtime";var Dp="k-menu-item",YA=[l.hover,l.focus,l.active,l.selected,l.disabled],PA={},Fp={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=Fp.iconPosition,dir:A=Fp.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"),qf("li",{...B,className:o(e.className,Dp,"k-item",x(Dp,{focus:a,disabled:i}),{"k-first":m,"k-last":k}),children:[qf("span",{className:o("k-link k-menu-link",x("k-menu-link",{hover:t,active:r,selected:s,disabled:i})),children:[d&&g=