@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 286 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"}),b=(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});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},x={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"},gt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{jsx as uv}from"react/jsx-runtime";var hn="k-input",pv=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],mv={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},fn={size:n.medium,rounded:n.medium,fillMode:x.solid},M=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=fn.size,rounded:k=fn.rounded,fillMode:y=fn.fillMode,...A}=e;return uv("span",{...A,className:o(e.className,hn,C(hn,{size:m,rounded:k,fillMode:y}),b(hn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=pv;M.options=mv;M.className=hn;M.defaultOptions=fn;import{jsx as fv}from"react/jsx-runtime";var gn="k-picker",kv=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],hv={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},xn={size:n.medium,rounded:f.medium,fillMode:x.solid},xt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=xn.size,rounded:k=xn.rounded,fillMode:y=xn.fillMode,...A}=e;return fv("span",{...A,className:o(e.className,gn,C(gn,{size:m,rounded:k,fillMode:y}),b(gn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};xt.states=kv;xt.options=hv;xt.className=gn;xt.defaultOptions=xn;import{Fragment as vv,jsx as rk}from"react/jsx-runtime";var Pc="k-icon k-font-icon",gv=[],xv={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]},bv={},ss=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?rk("span",{...d,className:o(e.className,Pc,C(Pc,{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"})}):rk(vv,{})};ss.states=gv;ss.options=xv;ss.className=Pc;ss.defaultOptions=bv;var sk=ss;import{Fragment as Av,jsx as bn}from"react/jsx-runtime";var Gc="k-icon k-svg-icon",yv=[],wv={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]},ik={viewBox:"0 0 24 24"},is=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=ik.viewBox,icon:d,...p}=e;if(!d)return bn(Av,{});d==="none"&&{...p,className:o(e.className,Gc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return bn("span",{...p,className:o(e.className,Gc,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:bn("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})})};is.states=yv;is.options=wv;is.className=Gc;is.defaultOptions=ik;var Kc=is;import*as nk from"@progress/kendo-svg-icons";import{Fragment as dk,jsx as ns}from"react/jsx-runtime";var Tv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Nv=[],Cv={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]},Dc={viewBox:"0 0 24 24",type:"svg"},v=e=>{let{size:t,themeColor:a,icon:r,type:s=Dc.type,rotate:i,flip:d,viewBox:p=Dc.viewBox,...m}=e;if(!r)return ns(dk,{});if(s==="svg"){if(r==="none")return ns(Kc,{...m,icon:r,size:t});let k=Tv(`${r}-icon`);return nk[k]?ns(Kc,{...m,icon:nk[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):ns(dk,{})}return ns(sk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};v.states=Nv;v.options=Cv;v.defaultOptions=Dc;var Fc=v;import{Fragment as Bv,jsx as zc}from"react/jsx-runtime";var ck="k-clear-value",Sv=[l.disabled,l.loading,l.readonly],Iv={},te=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?zc(Bv,{}):zc("span",{className:o(e.className,ck),children:zc(v,{icon:"x"})})};te.states=Sv;te.options=Iv;te.className=ck;import{jsx as Ev}from"react/jsx-runtime";var Rc="k-input-inner",Mv=[],Lv={},vn={type:"text",autocomplete:"off",value:"",placeholder:""},le=e=>{let{value:t=vn.value,type:a=vn.type,placeholder:r=vn.placeholder,autocomplete:s=vn.autocomplete,...i}=e;return Ev("input",{...i,type:a,className:o(e.className,Rc,C(Rc,e)),placeholder:r,autoComplete:s,defaultValue:t})};le.states=Mv;le.options=Lv;le.className=Rc;import{jsx as pk,jsxs as Gv}from"react/jsx-runtime";var Hc="k-input-inner",Yv=[],Pv={},fo=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return Gv("span",{...d,className:o(e.className,Hc,C(Hc,e)),children:[s,!s&&i&&pk(v,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&pk("span",{className:"k-input-value-text",children:t})]})};fo.states=Yv;fo.options=Pv;fo.className=Hc;import{jsx as Fv}from"react/jsx-runtime";var Wc="k-input-inner",Kv=[],Dv={},mk={value:"",placeholder:""},ds=e=>{let{value:t=mk.value,placeholder:a=mk.placeholder,rows:r,...s}=e;return Fv("textarea",{...s,className:o(e.className,Wc,C(Wc,e)),placeholder:a,rows:r,defaultValue:t})};ds.states=Kv;ds.options=Dv;ds.className=Wc;import{Fragment as Rv,jsx as uk}from"react/jsx-runtime";var kk="k-input-loading-icon",zv=[l.disabled,l.loading],J=e=>{let{disabled:t,loading:a}=e;return t||!a?uk(Rv,{}):uk("span",{className:o(e.className,kk,"k-icon k-i-loading")})};J.states=zv;J.className=kk;import{Fragment as Ov,jsx as hk}from"react/jsx-runtime";var fk="k-input-validation-icon",Hv=[l.valid,l.invalid,l.disabled,l.loading],Wv={},X=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?hk(Ov,{}):hk(v,{className:o(fk),icon:i})};X.states=Hv;X.options=Wv;X.className=fk;import{Fragment as Xv,jsx as gk}from"react/jsx-runtime";var Qv="k-input-prefix",Vv={direction:"horizontal"},$=e=>{let{direction:t=Vv.direction,...a}=e;return e.children?gk("span",{...a,className:o(Qv,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):gk(Xv,{})};import{Fragment as jv,jsx as xk}from"react/jsx-runtime";var Zv="k-input-suffix",Jv={direction:"horizontal"},ee=e=>{let{direction:t=Jv.direction,...a}=e;return e.children?xk("span",{...a,className:o(Zv,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):xk(jv,{})};import{jsx as NG}from"react/jsx-runtime";import{jsx as BG}from"react/jsx-runtime";import{jsx as qv}from"react/jsx-runtime";var bk="k-input-separator",Uv={direction:"vertical"},fe=e=>{let{direction:t=Uv.direction,...a}=e;return qv("span",{...a,className:o(bk,e.className,{[`${bk}-${t}`]:t})})};import{Fragment as ey,jsx as cs,jsxs as vk}from"react/jsx-runtime";var yn="k-button",_v=[l.hover,l.focus,l.active,l.selected,l.disabled],$v={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},va={size:n.medium,rounded:f.medium,fillMode:x.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=va.size,rounded:a=va.rounded,fillMode:r=va.fillMode,themeColor:s=va.themeColor,showArrow:i=va.showArrow,arrowIconName:d=va.arrowIconName,hover:p,focus:m,active:k,selected:y,disabled:A,icon:g,text:T,iconClassName:N,...S}=e,B=g!==void 0,L=e.children!==void 0;return vk("button",{...S,className:o(e.className,yn,C(yn,{size:t,rounded:a,fillMode:r,themeColor:s}),b(yn,{hover:p,focus:m,active:k,disabled:A,selected:y}),{"k-icon-button":!T&&!L&&B}),children:[g&&cs(v,{className:o(N,"k-button-icon"),icon:g}),T?vk(ey,{children:[T&&cs("span",{className:"k-button-text",children:T}),e.children]}):e.children&&cs("span",{className:"k-button-text",children:e.children}),i&&cs("span",{className:"k-menu-button-arrow k-button-arrow",children:cs(v,{icon:d})})]})};c.states=_v;c.options=$v;c.className=yn;c.defaultOptions=va;import{jsx as ty}from"react/jsx-runtime";var $e=e=>ty(c,{icon:"folder",...e,children:void 0});import{jsx as oy}from"react/jsx-runtime";var Dt=e=>oy(c,{icon:"folder",children:"Button",...e});import{jsx as sK}from"react/jsx-runtime";import{jsx as yk}from"react/jsx-runtime";var wk="k-animation-container",ay=[],ly={},Ak={positionMode:"absolute"},Mo=e=>{let{positionMode:t=Ak.positionMode,animationStyle:a,offset:r,...s}=e;return yk("div",{...s,style:{...r,...e.style},className:o(e.className,wk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:yk("div",{className:"k-child-animation-container",style:a,children:e.children})})};Mo.states=ay;Mo.options=ly;Mo.className=wk;Mo.defaultOptions=Ak;import{jsx as Tk}from"react/jsx-runtime";var Nk="k-popup",ry=[],sy={},Ck={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:a=Ck.positionMode,animationStyle:r,...s}=e;return Tk(Mo,{positionMode:a,offset:t,animationStyle:r,children:Tk("div",{...s,className:o(e.className,Nk),children:e.children})})};F.states=ry;F.options=sy;F.className=Nk;F.defaultOptions=Ck;import{jsx as Oc,jsxs as dy}from"react/jsx-runtime";var Qc="k-calendar",iy=[],ny={size:[n.small,n.medium,n.large]},xl={size:n.medium,showCalendarHeader:!0,orientation:"horizontal",calendarView:"month",calendarTitleText:"October 2021"},bt=e=>{let{size:t=xl.size,orientation:a=xl.orientation,calendarView:r=xl.calendarView,calendarTitleText:s=xl.calendarTitleText,showCalendarHeader:i=xl.showCalendarHeader,showWeek:d,showCalendarFooter:p,calendarFooterText:m,dir:k,...y}=e;return dy("div",{...y,dir:k,className:o(e.className,Qc,C(Qc,{size:t}),{"k-week-number":d}),children:[i&&Oc(ya,{calendarView:r,showToday:!p,calendarTitleText:s,orientation:a,size:t,dir:k}),Oc(wn,{calendarView:r,orientation:a,children:e.children}),p&&Oc(ps,{calendarFooterText:m,size:t})]})};bt.states=iy;bt.options=ny;bt.className=Qc;bt.defaultOptions=xl;import{Fragment as py,jsx as ms,jsxs as my}from"react/jsx-runtime";var cy=[l.hover,l.focus,l.active,l.selected,l.disabled],w=e=>{let{text:t,headerCell:a,today:r,weekend:s,showOtherMonth:i,weekCell:d,rangeStart:p,rangeMid:m,rangeEnd:k,dayIndicator:y,empty:A,hover:g,focus:T,active:N,selected:S,disabled:B,...L}=e,D=`k-calendar-${a?"th":"td"}`,W=[e.className,D,b(D,{hover:g,focus:T,active:N,selected:S,disabled:B}),{"k-today":r,"k-weekend":s,"k-other-month":i,"k-alt":d,"k-range-start":p,"k-range-mid":m,"k-range-end":k,"k-empty":A}];return a?ms("th",{...L,className:o(W),children:t}):d?ms("td",{...L,className:o(W),children:t}):ms("td",{...L,className:o(W),children:A&&!i?ms(py,{children:"\xA0"}):my("span",{className:"k-link",children:[t,y&&ms("span",{className:"k-day-indicator"})]})})};w.states=cy;import{jsx as us,jsxs as Sk}from"react/jsx-runtime";var Ik="k-calendar-header",uy={size:[n.small,n.medium,n.large]},bl={calendarTitleText:"October 2021",showToday:!0,showNavigationButtons:!0,orientation:"horizontal",size:n.medium},ya=e=>{let{calendarTitleText:t=bl.calendarTitleText,showToday:a=bl.showToday,showNavigationButtons:r=bl.showNavigationButtons,orientation:s=bl.orientation,size:i=bl.size,calendarView:d,dir:p,...m}=e,k=p==="rtl"?"chevron-right":"chevron-left",y=p==="rtl"?"chevron-left":"chevron-right";return Sk("div",{...m,className:o(e.className,Ik,{"k-vstack":s==="vertical"}),children:[us(c,{disabled:d==="century",className:"k-calendar-title",text:t,size:i,fillMode:"flat",themeColor:"primary"}),us("span",{className:"k-spacer"}),Sk("span",{className:"k-calendar-nav",children:[r&&us(c,{className:"k-calendar-nav-prev",icon:k,size:i,fillMode:"flat"}),a&&us(c,{size:i,fillMode:"flat",className:"k-calendar-nav-today",children:"Today"}),r&&us(c,{className:"k-calendar-nav-next",icon:y,size:i,fillMode:"flat"})]})]})};ya.options=uy;ya.className=Ik;ya.defaultOptions=bl;import{jsx as Bk}from"react/jsx-runtime";var Mk="k-calendar-footer",ky={size:[n.small,n.medium,n.large]},Vc={size:n.medium,calendarFooterText:"Tuesday, October 12, 2021"},ps=e=>{let{size:t=Vc.size,calendarFooterText:a=Vc.calendarFooterText,...r}=e;return Bk("div",{...r,className:o(e.className,Mk),children:Bk(c,{size:t,fillMode:"flat",themeColor:"primary",className:"k-calendar-nav-today",children:a})})};ps.options=ky;ps.className=Mk;ps.defaultOptions=Vc;import{jsx as gy}from"react/jsx-runtime";var hy=[],fy={},Lk=e=>{let{type:t,...a}=e,r=t==="p"?"paragraph":t,s=t.includes("display")?"div":t;return gy(s,{...a,className:o(e.className,{[`k-${r}`]:t}),children:e.children})};Lk.states=hy;Lk.options=fy;import{jsx as vy}from"react/jsx-runtime";var An="k-actions",xy=[],by={},Xc={alignment:"start",orientation:"horizontal"},O=e=>{let{alignment:t=Xc.alignment,orientation:a=Xc.orientation,...r}=e;return vy("div",{...r,className:o(An,{[`${An}-${t}`]:t,[`${An}-${a}`]:a},e.className),children:e.children})};O.states=xy;O.options=by;O.className=An;O.defaultOptions=Xc;var Ek=O;import{jsx as wy}from"react/jsx-runtime";var yy="k-no-data",ks=e=>wy("span",{className:o(yy,e.className),children:e.children});import{jsx as vl,jsxs as Yk}from"react/jsx-runtime";var Zc="k-list",Ay=[],Ty={size:[n.small,n.medium,n.large]},Pk={size:n.medium},Q=e=>{let{size:t=Pk.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:d,...p}=e,m,k,y,A,g=[];return r?r.map((T,N)=>{T.type===ge?(T.props.root===!0?(m=T.props.label,T.props.children.map((S,B)=>{g.push(vl(P,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):T.props.children.forEach((S,B)=>{let L="";B===0&&(L=T.props.label),g.push(vl(P,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=vl(ge,{label:m,virtualization:a,children:g})):T.type===P&&(g.push(vl(P,{...T.props},`${T.type}-${N}`)),y=vl(yl,{virtualization:a,children:g}),d&&(A=Yk(ks,{className:"k-sr-only",children:[g.length," items found."]})))}):A=vl(ks,{children:"No data found."}),Yk("div",{...p,className:o(e.className,Zc,C(Zc,{size:t}),{"k-virtual-list":a}),children:[s,i,k,y,A]})};Q.states=Ay;Q.options=Ty;Q.className=Zc;Q.defaultOptions=Pk;import{jsx as wa,jsxs as Sy}from"react/jsx-runtime";var Jc="k-list",Ny=[],Cy={size:[n.small,n.medium,n.large]},Gk={size:n.medium},Aa=e=>{let{size:t=Gk.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,y)=>{k.type===ge?(k.props.root===!0?(i=k.props.label,k.props.children.map((A,g)=>{m.push(wa(P,{...A.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(wa(Kk,{...k.props,children:k.props.label},`listChild-${y}`)),k.props.children.map((A,g)=>{m.push(wa(P,{...A.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=wa(ge,{label:i,virtualization:a,children:m})):k.type===P&&(m.push(wa(P,{...k.props},`${k.type}-${y}`)),p=wa(yl,{virtualization:a,children:m}))}):p=wa(ks,{children:"No data found."}),Sy("div",{...s,className:o(e.className,Jc,C(Jc,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Aa.states=Ny;Aa.options=Cy;Aa.className=Jc;Aa.defaultOptions=Gk;import{jsx as Dk}from"react/jsx-runtime";var Tn="k-checkbox",Iy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],By={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},jc={size:n.medium,rounded:f.medium},We=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:y=jc.size,rounded:A=jc.rounded,...g}=e;return Dk("span",{className:"k-checkbox-wrap",children:Dk("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Tn,C(Tn,{size:y,rounded:A}),b(Tn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};We.states=Iy;We.options=By;We.className=Tn;We.defaultOptions=jc;import{jsx as Ey}from"react/jsx-runtime";var Fk="k-checkbox-list",My=[],Ly={},zk={layout:"vertical"},wl=e=>{let{layout:t=zk.layout,...a}=e;return Ey("ul",{...a,className:o(e.className,Fk,{[`k-list-${t}`]:t}),children:e.children})};wl.states=My;wl.options=Ly;wl.className=Fk;wl.defaultOptions=zk;import{jsx as Ky}from"react/jsx-runtime";var Rk="k-checkbox-list-item",Yy=[],Py={},Gy={},Al=e=>{let{...t}=e;return Ky("li",{...t,className:o(e.className,Rk),children:e.children})};Al.states=Yy;Al.options=Py;Al.className=Rk;Al.defaultOptions=Gy;import{Fragment as wD,jsx as yD,jsxs as AD}from"react/jsx-runtime";import{Fragment as ID,jsx as SD,jsxs as BD}from"react/jsx-runtime";import{Fragment as PD,jsx as YD,jsxs as GD}from"react/jsx-runtime";import{Fragment as RD,jsx as zD,jsxs as HD}from"react/jsx-runtime";import{jsx as VD}from"react/jsx-runtime";import{jsx as jD}from"react/jsx-runtime";import{jsx as Nn,jsxs as Ry}from"react/jsx-runtime";var qc="k-list-item",Dy=[l.hover,l.focus,l.selected,l.disabled],Fy={},zy={},P=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:k,selected:y,disabled:A,...g}=e,T=t||e.children;return Ry("li",{...g,className:o(e.className,r?"k-list-group-item":qc,b(qc,{hover:m,focus:k,disabled:A,selected:y})),children:[d&&Nn(We,{checked:p}),s&&Nn(v,{icon:i}),Nn("span",{className:"k-list-item-text",children:T}),a&&a!==""&&Nn("div",{className:"k-list-item-group-label",children:a})]})};P.states=Dy;P.options=Fy;P.className=qc;P.defaultOptions=zy;import{jsx as _c,jsxs as Wy}from"react/jsx-runtime";var Hy="k-list-content",yl=e=>{let{virtualization:t,...a}=e;return Wy("div",{...a,className:o(Hy,e.className),children:[_c("ul",{className:o("k-list-ul"),children:e.children}),t&&_c("div",{className:"k-height-container",children:_c("div",{})})]})};import{jsx as Hk}from"react/jsx-runtime";var Oy="k-list-group-sticky-header",Wk=e=>Hk("div",{className:o(Oy,e.className),children:Hk("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Qy,jsx as Ok,jsxs as Vy}from"react/jsx-runtime";var ge=e=>{let{virtualization:t,label:a}=e;return Vy(Qy,{children:[a&&Ok(Wk,{children:a}),e.children&&Ok(yl,{virtualization:t,children:e.children})]})};import{jsx as Qk}from"react/jsx-runtime";var Xy="k-list-group-item",Kk=e=>Qk("li",{className:o(Xy,e.className),children:Qk("span",{className:"k-list-item-text",children:e.children})});import{jsx as Uy}from"react/jsx-runtime";var $c="k-list-optionlabel",Zy=[l.hover,l.focus,l.selected,l.disabled],Jy={},jy={},Cn=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Uy("div",{...d,className:o($c,b($c,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Cn.states=Zy;Cn.options=Jy;Cn.className=$c;Cn.defaultOptions=jy;import{jsx as ew}from"react/jsx-runtime";var ep="k-list-custom-value",qy=[l.hover,l.focus,l.selected,l.disabled],_y={},$y={},Xe=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return ew("div",{...d,className:o(ep,b(ep,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Xe.states=qy;Xe.options=_y;Xe.className=ep;Xe.defaultOptions=$y;import{jsx as EF}from"react/jsx-runtime";import{jsx as KF}from"react/jsx-runtime";import{jsx as RF,jsxs as HF}from"react/jsx-runtime";import{jsx as VF,jsxs as XF}from"react/jsx-runtime";import{jsx as UF}from"react/jsx-runtime";import{jsx as ez,jsxs as tz}from"react/jsx-runtime";import{jsx as rz,jsxs as sz}from"react/jsx-runtime";import{jsx as Vk}from"react/jsx-runtime";var hs="k-avatar";var tw=[l.hover,l.focus,l.active,l.selected,l.disabled],ow={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Ta={type:"text",size:n.medium,rounded:f.full,fillMode:x.solid,themeColor:u.primary,border:!1},$t=e=>{let{size:t=Ta.size,rounded:a=Ta.rounded,fillMode:r=Ta.fillMode,themeColor:s=Ta.themeColor,type:i=Ta.type,border:d=Ta.border,...p}=e;return Vk("div",{...p,className:o(e.className,hs,C(hs,{size:t,rounded:a,fillMode:r,themeColor:s}),{[`${hs}-bordered`]:d}),children:Vk("span",{className:`${hs}-${i}`,children:e.children})})};$t.states=tw;$t.options=ow;$t.className=hs;$t.defaultOptions=Ta;import{jsx as Mz}from"react/jsx-runtime";import{jsx as Pz}from"react/jsx-runtime";import{jsx as Fz}from"react/jsx-runtime";import{jsx as rw}from"react/jsx-runtime";var fs="k-badge",aw=[],lw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.outline],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},gs={size:n.medium,fillMode:x.solid,themeColor:u.primary,cutoutBorder:!1},Tl=e=>{let{size:t=gs.size,fillMode:a=gs.fillMode,themeColor:r=gs.themeColor,cutoutBorder:s=gs.cutoutBorder,rounded:i,position:d,align:p,...m}=e;return rw("span",{...m,className:o(e.className,fs,C(fs,{size:t,rounded:i,fillMode:a,themeColor:r}),{[`${fs}-${d}`]:d,[`k-${p}`]:p,[`${fs}-border-cutout`]:s}),children:e.children})};Tl.states=aw;Tl.options=lw;Tl.className=fs;Tl.defaultOptions=gs;import{jsx as Uz}from"react/jsx-runtime";import{jsx as tR}from"react/jsx-runtime";import{jsx as cR}from"react/jsx-runtime";import{jsx as Nl,jsxs as nw}from"react/jsx-runtime";var Sn="k-chip",sw=[l.hover,l.focus,l.active,l.selected,l.disabled],iw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.outline],themeColor:[u.base,u.success,u.warning,u.error,u.info]},Cl={size:n.medium,rounded:f.medium,fillMode:x.solid,themeColor:u.base,avatarImage:"/packages/html/assets/avatar.jpg"},Ft=e=>{let{size:t=Cl.size,rounded:a=Cl.rounded,fillMode:r=Cl.fillMode,themeColor:s=Cl.themeColor,text:i,icon:d,actions:p,showAvatar:m,avatarImage:k=Cl.avatarImage,hover:y,focus:A,active:g,selected:T,disabled:N,...S}=e;return nw("div",{...S,className:o(e.className,Sn,C(Sn,{size:t,rounded:a,fillMode:r,themeColor:s}),b(Sn,{hover:y,focus:A,active:g,disabled:N,selected:T})),children:[d&&Nl(v,{className:"k-chip-icon",icon:d,size:"small"}),m&&Nl($t,{className:"k-chip-avatar",type:"image",children:Nl("img",{src:k})}),Nl("span",{className:"k-chip-content",children:e.children?e.children:i&&Nl("span",{className:"k-chip-label",children:i})}),p&&Nl("span",{className:"k-chip-actions",children:p})]})};Ft.states=sw;Ft.options=iw;Ft.className=Sn;Ft.defaultOptions=Cl;import{jsx as pw}from"react/jsx-runtime";var tp="k-chip-list",dw=[],cw={size:[n.small,n.medium,n.large]},Zk={size:n.medium},zt=e=>{let{size:t=Zk.size,...a}=e;return pw("div",{...a,className:o(e.className,tp,C(tp,{size:t})),children:e.children})};zt.states=dw;zt.options=cw;zt.className=tp;zt.defaultOptions=Zk;import{jsx as wR}from"react/jsx-runtime";import{jsx as CR}from"react/jsx-runtime";import{jsx as MR}from"react/jsx-runtime";import{jsx as GR}from"react/jsx-runtime";import{Fragment as HR,jsx as RR,jsxs as WR}from"react/jsx-runtime";import{jsx as Jk,jsxs as kw}from"react/jsx-runtime";var jk="k-color-preview",mw=[],uw={},Lo=e=>{let{color:t,iconName:a,...r}=e;return kw("span",{...r,className:o(e.className,jk,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&Jk(v,{icon:a,className:"k-color-preview-icon"}),Jk("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Lo.states=mw;Lo.options=uw;Lo.className=jk;import{Fragment as op,jsx as Uk,jsxs as Bn}from"react/jsx-runtime";var ap="k-loader",hw={pulsing:"pulsing-2","infinite-spinner":"spinner-3","converging-spinner":"spinner-4"},fw=[],gw={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]},Mn={size:n.medium,themeColor:u.primary,animation:"pulsing"},Eo=e=>{let{size:t=Mn.size,themeColor:a=Mn.themeColor,animation:r=Mn.animation,...s}=e,i=Uk("span",{className:"k-loader-segment"});return Uk("div",{...s,className:o(e.className,ap,{[`k-loader-${hw[r]||r}`]:r},C(ap,{size:t,themeColor:a})),children:Bn("div",{className:"k-loader-canvas",children:[r==="pulsing"&&Bn(op,{children:[i,i]}),r==="infinite-spinner"&&Bn(op,{children:[i,i,i]}),r==="converging-spinner"&&Bn(op,{children:[i,i,i,i]})]})})};Eo.states=fw;Eo.options=gw;Eo.className=ap;Eo.defaultOptions=Mn;var qk=Eo;import{jsx as lp,jsxs as _k}from"react/jsx-runtime";var rp="k-loader-container",xw=[],bw={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]},Ca={size:n.medium,themeColor:u.primary,loaderType:"pulsing",position:"top",overlay:"dark",panel:!1},xs=e=>{let{size:t=Ca.size,themeColor:a=Ca.themeColor,loaderType:r=Ca.loaderType,position:s=Ca.position,overlay:i=Ca.overlay,panel:d=Ca.panel,...p}=e;return _k("div",{...p,className:o(e.className,rp,C(rp,{size:t}),{[`k-loader-${s}`]:s}),children:[lp("div",{className:`k-loader-container-overlay k-overlay-${i}`}),_k("div",{className:o("k-loader-container-inner",{"k-loader-container-panel":d}),children:[lp(qk,{size:t,themeColor:a,animation:r}),lp("div",{className:`k-loader-container-label !k-text-${a}`,children:"Loading..."})]})]})};xs.states=xw;xs.options=bw;xs.className=rp;xs.defaultOptions=Ca;import{jsx as k0}from"react/jsx-runtime";import{jsx as x0}from"react/jsx-runtime";import{jsx as w0}from"react/jsx-runtime";import{jsx as C0}from"react/jsx-runtime";import{jsx as ww}from"react/jsx-runtime";var $k="k-skeleton",vw=[],yw={},sp={shape:"text",animation:"pulse"},Yo=e=>{let{shape:t=sp.shape,animation:a=sp.animation,...r}=e;return ww("span",{...r,className:o(e.className,$k,{[`k-skeleton-${t}`]:t,[`k-skeleton-${a}`]:a}),style:e.style})};Yo.states=vw;Yo.options=yw;Yo.className=$k;Yo.defaultOptions=sp;import{jsx as R0}from"react/jsx-runtime";import{jsx as Aw}from"react/jsx-runtime";var eh=e=>Aw(Yo,{shape:"rect",...e});import{jsx as Z0}from"react/jsx-runtime";import{jsx as bs,jsxs as ip}from"react/jsx-runtime";var np="k-form-field",Tw=[l.disabled],Ze=e=>{let{label:t,orientation:a,optional:r,editor:s,hint:i,error:d,info:p,disabled:m,dir:k,colSpan:y}=e;return ip("div",{className:o(np,e.className,b(np,{disabled:m}),{[`k-col-span-${y}`]:y}),dir:k,children:[t&&ip("label",{className:o("k-label","k-form-label"),children:[t,r&&bs("span",{className:"k-label-optional",children:"(Optional)"}),p&&bs("span",{className:"k-field-info",children:"(field info)"})]}),a==="horizontal"&&!t&&bs("span",{className:"k-label k-form-label k-label-empty"}),ip("div",{className:"k-form-field-wrap",children:[s,i&&bs("div",{className:"k-form-hint",children:i}),d&&bs("div",{className:"k-form-error",children:d})]})]})};Ze.states=Tw;Ze.className=np;import{Fragment as Nw,jsx as dp,jsxs as Cw}from"react/jsx-runtime";var th="k-form-fieldset",go=e=>{let{legend:t,layout:a,cols:r,gapX:s,gapY:i}=e;return Cw("fieldset",{className:o(th),children:[t&&dp("legend",{className:"k-form-legend",children:t}),a==="grid"?dp("div",{className:o("k-form-layout","k-d-grid",{[`k-grid-cols-${r}`]:r,[`k-gap-x-${s}`]:s,[`k-gap-y-${i}`]:i}),children:e.children}):dp(Nw,{children:e.children})]})};go.className=th;import{Fragment as Bw,jsx as vs,jsxs as Mw}from"react/jsx-runtime";import{createElement as cp}from"react";var Ln="k-form",Sw=[],Iw={size:[n.small,n.medium,n.large]},En={size:n.medium,layout:"basic",tag:"form"},Po=e=>{let{size:t=En.size,orientation:a,layout:r=En.layout,formButtons:s,cols:i,gapX:d,gapY:p,tag:m=En.tag,children:k}=e,y=({tag:g,className:T,children:N})=>g==="form"?vs("form",{className:T,children:N}):vs("div",{className:T,children:N}),A=[];return k&&(Array.isArray(k)?k.map((g,T)=>{g.type===Ze?A.push(cp(Ze,{...g.props,orientation:a,key:T})):A.push(g)}):k.type===Ze?A.push(cp(Ze,{...k.props,orientation:a,key:`${new Date().getTime()}`})):k.type===go&&A.push(cp(go,{...k.props,key:`${new Date().getTime()}`}))),Mw(y,{tag:m,className:o(e.className,Ln,C(Ln,{size:t}),{[`${Ln}-${a}`]:a}),children:[r==="grid"?vs("div",{className:o("k-form-layout","k-d-grid",{[`k-grid-cols-${i}`]:i,[`k-gap-x-${d}`]:d,[`k-gap-y-${p}`]:p}),children:A}):vs(Bw,{children:A}),s&&vs("div",{className:"k-form-buttons",children:s})]})};Po.states=Sw;Po.options=Iw;Po.className=Ln;Po.defaultOptions=En;import{jsx as Ew}from"react/jsx-runtime";var Lw="k-actionsheet-footer",oh={alignment:"stretched",orientation:"horizontal"},Rt=e=>{let{alignment:t=oh.alignment,orientation:a=oh.orientation,template:r,as:s=r?"div":O,...i}=e;return Ew(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,Lw),children:e.children})};import{jsx as ys,jsxs as Gw}from"react/jsx-runtime";var ah="k-searchbox",Yw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],Pw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},pp={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:y,loading:A,disabled:g,showIcon:T=pp.showIcon,icon:N=pp.icon,...S}=e;return Gw(M,{...S,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:y,loading:A,disabled:g,className:o(e.className,ah),children:[T&&ys(v,{className:"k-input-icon",icon:N}),ys(le,{placeholder:a,value:t}),ys(J,{...e}),ys(X,{...e}),ys(te,{...e})]})};De.states=Yw;De.options=Pw;De.className=ah;De.defaultOptions=pp;import{jsx as TH}from"react/jsx-runtime";import{Fragment as lh,jsx as Go,jsxs as mp}from"react/jsx-runtime";var rh="k-textbox",Kw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Dw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Sa={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},Z=e=>{let{size:t=Sa.size,rounded:a=Sa.rounded,fillMode:r=Sa.fillMode,separators:s=Sa.separators,showClearButton:i=Sa.showClearButton,showValidationIcon:d=Sa.showValidationIcon,prefix:p,suffix:m,type:k,value:y,placeholder:A,hover:g,focus:T,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,...W}=e;return mp(M,{...W,size:t,rounded:a,fillMode:r,hover:g,focus:T,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,className:o(e.className,rh),children:[p&&mp(lh,{children:[Go($,{children:p}),s&&Go(fe,{})]}),Go(le,{placeholder:A,value:y,type:k}),d&&Go(X,{valid:N,invalid:S,loading:L,disabled:E}),Go(J,{loading:L,disabled:E}),i&&Go(te,{loading:L,disabled:E,readonly:D,value:y}),m&&mp(lh,{children:[s&&Go(fe,{}),Go(ee,{children:m})]})]})};Z.states=Kw;Z.options=Dw;Z.className=rh;Z.defaultOptions=Sa;import{jsx as GH}from"react/jsx-runtime";import{Fragment as HH,jsx as RH}from"react/jsx-runtime";import{Fragment as ZH,jsx as XH}from"react/jsx-runtime";import{jsx as Ko,jsxs as up}from"react/jsx-runtime";var nh="k-actionsheet-titlebar",Fw={},ae=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:y,...A}=e;return up("div",{...A,className:o(e.className,nh),children:[up("div",{className:"k-actionsheet-titlebar-group",children:[r&&Ko("div",{className:"k-actionsheet-actions",children:r}),!y&&up("div",{className:"k-actionsheet-title",children:[t&&Ko("div",{className:"k-text-center",children:t}),a&&Ko("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),y&&Ko("div",{className:"k-actionsheet-title",children:y}),s&&Ko("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Ko("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Ko(Z,{value:p,placeholder:m,size:k?"large":"medium"}):Ko(De,{placeholder:"Filter",size:k?"large":"medium"})})]})};ae.className=nh;ae.defaultOptions=Fw;import{jsx as kp,jsxs as Ww}from"react/jsx-runtime";var hp="k-actionsheet-view",zw=[],Rw={},Hw={},Sl=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===ae&&kp(ae,{adaptive:t,...s?.props}),m=i?.type===Rt&&kp(Rt,{...i?.props});return Ww("div",{...d,className:o(e.className,hp,{[`${hp}-animated`]:a}),children:[p,kp("div",{className:"k-actionsheet-content",children:r}),m]})};Sl.states=zw;Sl.options=Rw;Sl.className=hp;Sl.defaultOptions=Hw;import{jsx as Yn,jsxs as Vw}from"react/jsx-runtime";var dh="k-actionsheet",Ow=[],Qw={},ws={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},re=e=>{let{side:t=ws.side,fullscreen:a=ws.fullscreen,adaptive:r=ws.adaptive,overlay:s=ws.overlay,template:i,children:d,header:p,footer:m,...k}=e;return Vw("div",{className:"k-actionsheet-container",children:[s&&Yn("div",{className:"k-overlay"}),Yn(Mo,{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:Yn("div",{...k,className:o(e.className,dh,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Yn(Sl,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};re.states=Ow;re.options=Qw;re.className=dh;re.defaultOptions=ws;import{jsx as g8}from"react/jsx-runtime";import{Fragment as Zw,jsx as As,jsxs as fp}from"react/jsx-runtime";var gp="k-actionsheet-item",Xw=[l.hover,l.focus,l.selected,l.disabled],xp=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return fp("span",{...m,className:o(e.className,gp,b(gp,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&As(Zw,{children:fp("span",{className:"k-actionsheet-action",children:[t&&As("span",{className:"k-icon-wrap",children:As(v,{className:"k-actionsheet-item-icon",icon:t})}),fp("span",{className:"k-actionsheet-item-text",children:[a&&As("span",{className:"k-actionsheet-item-title",children:a}),r&&As("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};xp.states=Xw;xp.className=gp;import{jsx as C8,jsxs as S8}from"react/jsx-runtime";import{jsx as L8}from"react/jsx-runtime";import{jsx as G8}from"react/jsx-runtime";import{jsx as z8}from"react/jsx-runtime";import{Fragment as Uw,jsx as rt,jsxs as bp}from"react/jsx-runtime";var ph="k-dropdownlist",Jw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],jw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Il={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:x.solid},se=e=>{let{size:t=Il.size,rounded:a=Il.rounded,fillMode:r=Il.fillMode,arrowIconName:s=Il.arrowIconName,showValue:i=Il.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:y,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:L,readonly:E,popup:D,opened:W,adaptive:he,adaptiveSettings:Le,adaptiveTitle:_e,adaptiveSubtitle:Kt,adaptiveFilter:ba,...gl}=e;return bp(Uw,{children:[bp(xt,{...gl,size:t,rounded:a,fillMode:r,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:L,readonly:E,className:o(e.className,ph,{"k-icon-picker":!i&&d}),children:[rt($,{children:p}),rt(fo,{placeholder:y,value:k,showValue:i,valueIconName:d}),rt(X,{valid:T,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})]}),W&&D&&rt(F,{className:"k-list-container k-dropdownlist-popup",children:D}),he&&rt(re,{adaptive:!0,...Le,header:rt(ae,{actionsEnd:rt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ba,inputValue:k,inputPlaceholder:y,title:_e,subtitle:Kt}),children:rt("div",{className:"k-list-container",children:bp(Q,{size:"large",children:[rt(P,{text:"List item"}),rt(P,{text:"List item"}),rt(P,{text:"List item"})]})})})]})};se.states=Jw;se.options=jw;se.className=ph;se.defaultOptions=Il;import{jsx as dW}from"react/jsx-runtime";import{jsx as kW,jsxs as hW}from"react/jsx-runtime";import{Fragment as AW,jsx as yW,jsxs as wW}from"react/jsx-runtime";import{jsx as SW}from"react/jsx-runtime";import{jsx as EW,jsxs as YW}from"react/jsx-runtime";import{jsx as FW,jsxs as zW}from"react/jsx-runtime";import{Fragment as ZW,jsx as VW,jsxs as XW}from"react/jsx-runtime";import{Fragment as tO,jsx as $W,jsxs as eO}from"react/jsx-runtime";import{jsx as mh}from"react/jsx-runtime";var Pn="k-radio",qw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked],_w={size:[n.small,n.medium,n.large]},uh={size:n.medium},xo=e=>{let{id:t,checked:a,hover:r,focus:s,disabled:i,invalid:d,valid:p,required:m,size:k=uh.size,...y}=e;return mh("span",{className:"k-radio-wrap",children:mh("input",{...y,id:t,type:"radio",checked:a,required:m,className:o(e.className,Pn,C(Pn,{size:k}),b(Pn,{hover:r,focus:s,disabled:i,invalid:d,valid:p,checked:a}))})})};xo.states=qw;xo.options=_w;xo.className=Pn;xo.defaultOptions=uh;import{jsx as tA}from"react/jsx-runtime";var kh="k-radio-list",$w=[],eA={},hh={layout:"vertical"},Bl=e=>{let{layout:t=hh.layout,...a}=e;return tA("ul",{...a,className:o(e.className,kh,{[`k-list-${t}`]:t}),children:e.children})};Bl.states=$w;Bl.options=eA;Bl.className=kh;Bl.defaultOptions=hh;import{jsx as rA}from"react/jsx-runtime";var fh="k-radio-list-item",oA=[],aA={},lA={},Ml=e=>{let{...t}=e;return rA("li",{...t,className:o(e.className,fh),children:e.children})};Ml.states=oA;Ml.options=aA;Ml.className=fh;Ml.defaultOptions=lA;import{jsx as TO}from"react/jsx-runtime";import{Fragment as BO,jsx as IO,jsxs as MO}from"react/jsx-runtime";import{Fragment as GO,jsx as PO,jsxs as KO}from"react/jsx-runtime";import{Fragment as WO,jsx as RO,jsxs as HO}from"react/jsx-runtime";import{Fragment as ZO,jsx as XO,jsxs as JO}from"react/jsx-runtime";import{Fragment as $O,jsx as _O,jsxs as eQ}from"react/jsx-runtime";import{Fragment as iA,jsx as st,jsxs as Ll}from"react/jsx-runtime";var Gn=({size:e,...t})=>st(Po,{formButtons:Ll(iA,{children:[st(c,{className:"k-form-submit",themeColor:"primary",size:e,children:"Submit"}),st(c,{className:"k-form-clear",size:e,children:"Clear"})]}),children:Ll(go,{legend:"Form Legend",children:[st(Ze,{label:"Label",editor:st(Z,{size:e})}),st(Ze,{label:"Label",hint:"Hint text",editor:st(se,{value:"Dropdown List",size:e})}),st(Ze,{label:"City",editor:Ll("ul",{className:"k-radio-list k-list-horizontal",children:[Ll("li",{className:"k-radio-list-item",children:[st(xo,{checked:!0,size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Ll("li",{className:"k-radio-list-item",children:[st(xo,{size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Ll("li",{className:"k-radio-list-item",children:[st(xo,{size:e}),st("label",{className:"k-radio-label",children:"Label"})]})]})})]}),size:e,...t});import{Fragment as CQ,jsx as NQ,jsxs as SQ}from"react/jsx-runtime";import{jsx as cA}from"react/jsx-runtime";var Ts="k-button-group",nA=[l.disabled],dA={fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},gh={fillMode:x.solid},Y=e=>{let{fillMode:t=gh.fillMode,disabled:a,stretched:r,...s}=e;return cA("div",{...s,className:o(e.className,Ts,C(Ts,{fillMode:t}),b(Ts,{disabled:a}),{[`${Ts}-stretched`]:r}),children:e.children})};Y.states=nA;Y.options=dA;Y.className=Ts;Y.defaultOptions=gh;import{Fragment as WQ,jsx as HQ,jsxs as OQ}from"react/jsx-runtime";import{Fragment as jQ,jsx as JQ,jsxs as UQ}from"react/jsx-runtime";import{Fragment as oV,jsx as tV,jsxs as aV}from"react/jsx-runtime";import{Fragment as dV,jsx as nV,jsxs as cV}from"react/jsx-runtime";import{Fragment as uA,jsx as xh,jsxs as kA}from"react/jsx-runtime";var bh="k-menu-button",pA=[l.hover,l.focus,l.active,l.selected,l.disabled],mA={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Ba={size:n.medium,rounded:f.medium,fillMode:x.solid,themeColor:u.base,showArrow:!0,arrowIconName:"caret-alt-down"},U=e=>{let{size:t=Ba.size,rounded:a=Ba.rounded,fillMode:r=Ba.fillMode,themeColor:s=Ba.themeColor,hover:i,focus:d,active:p,selected:m,disabled:k,icon:y,text:A,showArrow:g=Ba.showArrow,arrowIconName:T=Ba.arrowIconName,popup:N,opened:S,...B}=e;return kA(uA,{children:[xh(c,{...B,className:o(e.className,bh),text:A,size:t,rounded:a,fillMode:r,themeColor:s,hover:i,focus:d,active:p,selected:m,disabled:k,icon:y,showArrow:g,arrowIconName:T}),S&&N&&xh(F,{className:"k-menu-popup",children:N})]})};U.states=pA;U.options=mA;U.className=bh;U.defaultOptions=Ba;import{jsx as NV}from"react/jsx-runtime";import{jsx as BV}from"react/jsx-runtime";import{jsx as YV}from"react/jsx-runtime";import{Fragment as gA,jsx as El,jsxs as vh}from"react/jsx-runtime";var wp="k-menu-item",hA=[l.hover,l.focus,l.active,l.selected,l.disabled],fA={},yh={iconPosition:"before"},Oe=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:d,text:p,first:m,last:k,showArrow:y,arrowIconName:A,iconPosition:g=yh.iconPosition,dir:T,children:N,...S}=e,B=El(gA,{});N&&N.forEach(E=>{if(E.type==="MenuItemContent"){B.props.children.push(E);return}});let L=A;return L||(L=T==="rtl"?"caret-alt-left":"caret-alt-right"),vh("li",{...S,className:o(e.className,wp,"k-item",b(wp,{focus:a,disabled:i,hover:t,active:r,selected:s}),{"k-first":m,"k-last":k}),children:[vh("span",{className:o("k-link k-menu-link"),children:[d&&g==="before"&&El(v,{className:"k-menu-link-icon",icon:d}),El("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&El(v,{className:"k-menu-link-icon",icon:d}),y&&El("span",{className:"k-menu-expand-arrow",children:El(v,{icon:L})})]}),B]})};Oe.states=hA;Oe.options=fA;Oe.className=wp;Oe.defaultOptions=yh;import{Fragment as vA,jsx as Yl,jsxs as wh}from"react/jsx-runtime";var Ap="k-menu-item",xA=[l.hover,l.focus,l.active,l.selected,l.disabled],bA={},Tp={dir:"ltr",iconPosition:"before"},Ht=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:d,text:p,first:m,last:k,showArrow:y,arrowIconName:A,iconPosition:g=Tp.iconPosition,dir:T=Tp.dir,children:N,popup:S,...B}=e,L=Yl(vA,{});N&&N.forEach(D=>{if(D.type==="MenuListItemContent"){L.props.children.push(D);return}});let E=A;return E||(E=T==="rtl"?"caret-alt-left":"caret-alt-right"),wh("li",{...B,className:o(e.className,Ap,"k-item",b(Ap,{focus:a,disabled:i}),{"k-first":m,"k-last":k}),children:[wh("span",{className:o("k-link k-menu-link",b("k-menu-link",{hover:t,active:r,selected:s,disabled:i})),children:[d&&g==="before"&&Yl(v,{className:"k-menu-link-icon",icon:d}),Yl("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&Yl(v,{className:"k-menu-link-icon",icon:d}),y&&Yl("span",{className:"k-menu-expand-arrow",children:Yl(v,{icon:E})})]}),L,S]})};Ht.states=xA;Ht.options=bA;Ht.className=Ap;Ht.defaultOptions=Tp;import{jsx as TA}from"react/jsx-runtime";var Ah="k-menu-scroll-wrapper",yA=[],wA={},AA={},Ns=e=>{let{className:t,children:a,orientation:r,...s}=e;return TA("div",{...s,className:o(t,Ah,{"k-menu-scroll-wrapper-vertical":r==="vertical"}),children:a})};Ns.states=yA;Ns.options=wA;Ns.className=Ah;Ns.defaultOptions=AA;var Th=Ns;import{Fragment as Np,jsx as Ma,jsxs as Kn}from"react/jsx-runtime";var Cp="k-menu",NA=[],CA={},Dn={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},Wt=e=>{let{children:t,orientation:a=Dn.orientation,header:r=Dn.header,scrollable:s,scrollButtonsPosition:i=Dn.scrollButtonsPosition,wrapperStyles:d,dir:p,popup:m,...k}=e,y={horizontal:{prev:p!=="rtl"?"left":"right",next:p!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},A=Ma("ul",{dir:p,...k,className:o(e.className,"k-reset",Cp,{[`${Cp}-${a}`]:a,"k-header":r}),children:t});return Kn(Np,{children:[s?Kn(Th,{orientation:a,style:d,dir:e.dir,children:[i==="start"&&Kn(Np,{children:[Ma(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Ma(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),i==="around"&&Ma(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),A,i==="end"&&Kn(Np,{children:[Ma(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Ma(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),i==="around"&&Ma(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}):A,m]})};Wt.states=NA;Wt.options=CA;Wt.className=Cp;Wt.defaultOptions=Dn;import{jsx as SA}from"react/jsx-runtime";var Sp="k-separator",Nh={orientation:"horizontal"},Cs=e=>{let{orientation:t=Nh.orientation,...a}=e;return SA("li",{...a,className:o(e.className,"k-item",Sp,{[`${Sp}-${t}`]:t})})};Cs.className=Sp;Cs.defaultOptions=Nh;import{Fragment as o6,jsx as a6}from"react/jsx-runtime";import{jsx as Ch}from"react/jsx-runtime";import{createElement as MA}from"react";var Ip="k-menu-group",IA=[],BA={size:[n.small,n.medium,n.large]},Bp={size:n.medium,dir:"ltr"},bo=e=>{let{children:t,size:a=Bp.size,dir:r=Bp.dir,...s}=e,i=[];return t&&Array.isArray(t)&&t.map((d,p)=>{d.type===Ht?i.push(MA(Ht,{...d.props,dir:r,key:p})):d.type===Cs?i.push(Ch(Cs,{})):i.push(d)}),Ch("ul",{...s,className:o(e.className,Ip,C(Ip,{size:a})),children:i})};bo.states=IA;bo.options=BA;bo.className=Ip;bo.defaultOptions=Bp;import{Fragment as u6,jsx as m6,jsxs as k6}from"react/jsx-runtime";import{Fragment as y6,jsx as b6,jsxs as v6}from"react/jsx-runtime";import{Fragment as C6,jsx as N6,jsxs as S6}from"react/jsx-runtime";import{Fragment as E6,jsx as L6,jsxs as Y6}from"react/jsx-runtime";import{Fragment as F6,jsx as D6,jsxs as z6}from"react/jsx-runtime";import{jsx as a3,jsxs as l3}from"react/jsx-runtime";import{Fragment as YA,jsx as Mp,jsxs as Sh}from"react/jsx-runtime";var Lp="k-split-button",LA=[l.hover,l.focus,l.active,l.selected,l.disabled],EA={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Pl={size:n.medium,rounded:f.medium,fillMode:x.solid,themeColor:u.base,arrowIconName:"caret-alt-down"},Ne=e=>{let{size:t=Pl.size,rounded:a=Pl.rounded,fillMode:r=Pl.fillMode,themeColor:s=Pl.themeColor,hover:i,focus:d,active:p,selected:m,disabled:k,icon:y,text:A,arrowIconName:g=Pl.arrowIconName,popup:T,opened:N,...S}=e;return Sh(YA,{children:[Sh("div",{...S,className:o(e.className,Lp,"k-button-group",C(Lp,{rounded:a})),children:[Mp(c,{text:A,icon:y,size:t,rounded:a,fillMode:r,themeColor:s,hover:i,focus:d,active:p,selected:m,disabled:k,children:e.children}),Mp(c,{className:"k-split-button-arrow",icon:g,size:t,rounded:a,fillMode:r,disabled:k})]}),N&&T&&Mp(F,{className:"k-menu-popup",children:T})]})};Ne.states=LA;Ne.options=EA;Ne.className=Lp;Ne.defaultOptions=Pl;var Ep=Ne;import{jsx as b3}from"react/jsx-runtime";import{jsx as A3}from"react/jsx-runtime";import{jsx as S3}from"react/jsx-runtime";import{jsx as E3,jsxs as Y3}from"react/jsx-runtime";import{Fragment as Ih,jsx as Ss,jsxs as Yp}from"react/jsx-runtime";var Bh="k-textarea",PA=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],GA={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Do={size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,flow:"vertical",affixesOrientation:"horizontal",resize:"both",separators:!0},Is=e=>{let{size:t=Do.size,rounded:a=Do.rounded,fillMode:r=Do.fillMode,separators:s=Do.separators,affixesOrientation:i=Do.affixesOrientation,flow:d=Do.flow,resize:p=Do.resize,prefix:m,suffix:k,rows:y,value:A,placeholder:g,hover:T,focus:N,valid:S,invalid:B,required:L,disabled:E,...D}=e;return Yp(M,{...D,size:t,rounded:a,fillMode:r,hover:T,focus:N,valid:S,invalid:B,required:L,disabled:E,className:o(e.className,Bh,{"!k-flex-col":d==="vertical","!k-flex-row":d==="horizontal"}),children:[m&&Yp(Ih,{children:[Ss($,{className:o({"!k-align-items-start":d===i}),direction:i,children:m}),s&&Ss(fe,{direction:d==="horizontal"?"vertical":"horizontal"})]}),Ss(ds,{className:o("!k-overflow-auto",{"!k-flex-none":d==="vertical","k-resize-x":p==="x","k-resize-y":p==="y","k-resize":p==="both","k-resize-none":p==="none"})