@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 fn="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]},gn={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=gn.size,rounded:k=gn.rounded,fillMode:y=gn.fillMode,...A}=e;return uv("span",{...A,className:o(e.className,fn,C(fn,{size:m,rounded:k,fillMode:y}),b(fn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=pv;M.options=mv;M.className=fn;M.defaultOptions=gn;import{jsx as fv}from"react/jsx-runtime";var xn="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]},bn={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=bn.size,rounded:k=bn.rounded,fillMode:y=bn.fillMode,...A}=e;return fv("span",{...A,className:o(e.className,xn,C(xn,{size:m,rounded:k,fillMode:y}),b(xn,{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=xn;xt.defaultOptions=bn;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 vn}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 vn(Av,{});d==="none"&&{...p,className:o(e.className,Gc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return vn("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:vn("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={},yn={type:"text",autocomplete:"off",value:"",placeholder:""},le=e=>{let{value:t=yn.value,type:a=yn.type,placeholder:r=yn.placeholder,autocomplete:s=yn.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 wn="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,wn,C(wn,{size:t,rounded:a,fillMode:r,themeColor:s}),b(wn,{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=wn;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,jsxs as ry}from"react/jsx-runtime";var wk="k-spin-button",ay=[],ly={size:[n.small,n.medium,n.large],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},Oc={size:n.medium,fillMode:x.solid},Mo=e=>{let{size:t=Oc.size,fillMode:a=Oc.fillMode,...r}=e;return ry("span",{...r,className:o(wk,e.className),children:[yk(c,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:a}),yk(c,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]})};Mo.states=ay;Mo.options=ly;Mo.className=wk;Mo.defaultOptions=Oc;import{jsx as ps,jsxs as ny}from"react/jsx-runtime";var Ak="k-dateinput",sy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],iy={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},An={size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},ya=e=>{let{size:t=An.size,rounded:a=An.rounded,fillMode:r=An.fillMode,value:s,placeholder:i,hover:d,focus:p,valid:m,invalid:k,required:y,loading:A,disabled:g,readonly:T,showClearButton:N,showSpinButton:S,...B}=e;return ny(M,{...B,size:t,rounded:a,fillMode:r,hover:d,focus:p,valid:m,invalid:k,required:y,loading:A,disabled:g,readonly:T,className:o(e.className,Ak),children:[ps(le,{placeholder:i,value:s}),ps(X,{valid:m,invalid:k,loading:A,disabled:g}),ps(J,{loading:A,disabled:g}),N&&ps(te,{loading:A,disabled:g,readonly:T,value:s}),S&&ps(Mo,{className:"k-input-spinner",size:t,fillMode:r})]})};ya.states=sy;ya.options=iy;ya.className=Ak;ya.defaultOptions=An;import{jsx as SK}from"react/jsx-runtime";import{jsx as my,jsxs as Tk}from"react/jsx-runtime";var Qc="k-floating-label-container",dy=[l.hover,l.focus,l.valid,l.invalid,l.empty,l.disabled],cy={},py={},wa=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,empty:d,label:p,optional:m,...k}=e;return Tk("span",{...k,className:o(e.className,Qc,b(Qc,{hover:t,focus:a,disabled:r,empty:d,valid:i,invalid:s})),children:[e.children,p&&Tk("label",{className:"k-floating-label",children:[p,m&&my("span",{className:"k-label-optional",children:"(Optional)"})]})]})};wa.states=dy;wa.options=cy;wa.className=Qc;wa.defaultOptions=py;import{Fragment as Nk,jsx as Lo,jsxs as Vc}from"react/jsx-runtime";var Ck="k-textbox",uy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],ky={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Aa={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},Z=e=>{let{size:t=Aa.size,rounded:a=Aa.rounded,fillMode:r=Aa.fillMode,separators:s=Aa.separators,showClearButton:i=Aa.showClearButton,showValidationIcon:d=Aa.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 Vc(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,Ck),children:[p&&Vc(Nk,{children:[Lo($,{children:p}),s&&Lo(fe,{})]}),Lo(le,{placeholder:A,value:y,type:k}),d&&Lo(X,{valid:N,invalid:S,loading:L,disabled:E}),Lo(J,{loading:L,disabled:E}),i&&Lo(te,{loading:L,disabled:E,readonly:D,value:y}),m&&Vc(Nk,{children:[s&&Lo(fe,{}),Lo(ee,{children:m})]})]})};Z.states=uy;Z.options=ky;Z.className=Ck;Z.defaultOptions=Aa;import{jsx as HK}from"react/jsx-runtime";import{Fragment as ZK,jsx as XK}from"react/jsx-runtime";import{Fragment as $K,jsx as _K}from"react/jsx-runtime";import{jsx as dD}from"react/jsx-runtime";import{jsx as kD}from"react/jsx-runtime";import{jsx as Xc,jsxs as xy}from"react/jsx-runtime";var Zc="k-calendar",fy=[],gy={size:[n.small,n.medium,n.large]},gl={size:n.medium,showCalendarHeader:!0,orientation:"horizontal",calendarView:"month",calendarTitleText:"October 2021"},bt=e=>{let{size:t=gl.size,orientation:a=gl.orientation,calendarView:r=gl.calendarView,calendarTitleText:s=gl.calendarTitleText,showCalendarHeader:i=gl.showCalendarHeader,showWeek:d,showCalendarFooter:p,calendarFooterText:m,dir:k,...y}=e;return xy("div",{...y,dir:k,className:o(e.className,Zc,C(Zc,{size:t}),{"k-week-number":d}),children:[i&&Xc(Ta,{calendarView:r,showToday:!p,calendarTitleText:s,orientation:a,size:t,dir:k}),Xc(Tn,{calendarView:r,orientation:a,children:e.children}),p&&Xc(ms,{calendarFooterText:m,size:t})]})};bt.states=fy;bt.options=gy;bt.className=Zc;bt.defaultOptions=gl;import{Fragment as vy,jsx as us,jsxs as yy}from"react/jsx-runtime";var by=[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?us("th",{...L,className:o(W),children:t}):d?us("td",{...L,className:o(W),children:t}):us("td",{...L,className:o(W),children:A&&!i?us(vy,{children:"\xA0"}):yy("span",{className:"k-link",children:[t,y&&us("span",{className:"k-day-indicator"})]})})};w.states=by;import{jsx as ks,jsxs as Bk}from"react/jsx-runtime";var Mk="k-calendar-header",wy={size:[n.small,n.medium,n.large]},xl={calendarTitleText:"October 2021",showToday:!0,showNavigationButtons:!0,orientation:"horizontal",size:n.medium},Ta=e=>{let{calendarTitleText:t=xl.calendarTitleText,showToday:a=xl.showToday,showNavigationButtons:r=xl.showNavigationButtons,orientation:s=xl.orientation,size:i=xl.size,calendarView:d,dir:p,...m}=e,k=p==="rtl"?"chevron-right":"chevron-left",y=p==="rtl"?"chevron-left":"chevron-right";return Bk("div",{...m,className:o(e.className,Mk,{"k-vstack":s==="vertical"}),children:[ks(c,{disabled:d==="century",className:"k-calendar-title",text:t,size:i,fillMode:"flat",themeColor:"primary"}),ks("span",{className:"k-spacer"}),Bk("span",{className:"k-calendar-nav",children:[r&&ks(c,{className:"k-calendar-nav-prev",icon:k,size:i,fillMode:"flat"}),a&&ks(c,{size:i,fillMode:"flat",className:"k-calendar-nav-today",children:"Today"}),r&&ks(c,{className:"k-calendar-nav-next",icon:y,size:i,fillMode:"flat"})]})]})};Ta.options=wy;Ta.className=Mk;Ta.defaultOptions=xl;import{jsx as Lk}from"react/jsx-runtime";var Ek="k-calendar-footer",Ay={size:[n.small,n.medium,n.large]},Jc={size:n.medium,calendarFooterText:"Tuesday, October 12, 2021"},ms=e=>{let{size:t=Jc.size,calendarFooterText:a=Jc.calendarFooterText,...r}=e;return Lk("div",{...r,className:o(e.className,Ek),children:Lk(c,{size:t,fillMode:"flat",themeColor:"primary",className:"k-calendar-nav-today",children:a})})};ms.options=Ay;ms.className=Ek;ms.defaultOptions=Jc;import{jsx as Cy}from"react/jsx-runtime";var Ty=[],Ny={},Yk=e=>{let{type:t,...a}=e,r=t==="p"?"paragraph":t,s=t.includes("display")?"div":t;return Cy(s,{...a,className:o(e.className,{[`k-${r}`]:t}),children:e.children})};Yk.states=Ty;Yk.options=Ny;import{jsx as By}from"react/jsx-runtime";var Nn="k-actions",Sy=[],Iy={},jc={alignment:"start",orientation:"horizontal"},O=e=>{let{alignment:t=jc.alignment,orientation:a=jc.orientation,...r}=e;return By("div",{...r,className:o(Nn,{[`${Nn}-${t}`]:t,[`${Nn}-${a}`]:a},e.className),children:e.children})};O.states=Sy;O.options=Iy;O.className=Nn;O.defaultOptions=jc;var Pk=O;import{jsx as Gk}from"react/jsx-runtime";var Kk="k-animation-container",My=[],Ly={},Dk={positionMode:"absolute"},Eo=e=>{let{positionMode:t=Dk.positionMode,animationStyle:a,offset:r,...s}=e;return Gk("div",{...s,style:{...r,...e.style},className:o(e.className,Kk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Gk("div",{className:"k-child-animation-container",style:a,children:e.children})})};Eo.states=My;Eo.options=Ly;Eo.className=Kk;Eo.defaultOptions=Dk;import{jsx as Fk}from"react/jsx-runtime";var zk="k-popup",Ey=[],Yy={},Rk={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:a=Rk.positionMode,animationStyle:r,...s}=e;return Fk(Eo,{positionMode:a,offset:t,animationStyle:r,children:Fk("div",{...s,className:o(e.className,zk),children:e.children})})};F.states=Ey;F.options=Yy;F.className=zk;F.defaultOptions=Rk;import{jsx as Gy}from"react/jsx-runtime";var Py="k-no-data",hs=e=>Gy("span",{className:o(Py,e.className),children:e.children});import{jsx as bl,jsxs as Hk}from"react/jsx-runtime";var Uc="k-list",Ky=[],Dy={size:[n.small,n.medium,n.large]},Wk={size:n.medium},Q=e=>{let{size:t=Wk.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(bl(P,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):T.props.children.forEach((S,B)=>{let L="";B===0&&(L=T.props.label),g.push(bl(P,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=bl(ge,{label:m,virtualization:a,children:g})):T.type===P&&(g.push(bl(P,{...T.props},`${T.type}-${N}`)),y=bl(vl,{virtualization:a,children:g}),d&&(A=Hk(hs,{className:"k-sr-only",children:[g.length," items found."]})))}):A=bl(hs,{children:"No data found."}),Hk("div",{...p,className:o(e.className,Uc,C(Uc,{size:t}),{"k-virtual-list":a}),children:[s,i,k,y,A]})};Q.states=Ky;Q.options=Dy;Q.className=Uc;Q.defaultOptions=Wk;import{jsx as Na,jsxs as Ry}from"react/jsx-runtime";var qc="k-list",Fy=[],zy={size:[n.small,n.medium,n.large]},Ok={size:n.medium},Ca=e=>{let{size:t=Ok.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(Na(P,{...A.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Na(Qk,{...k.props,children:k.props.label},`listChild-${y}`)),k.props.children.map((A,g)=>{m.push(Na(P,{...A.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Na(ge,{label:i,virtualization:a,children:m})):k.type===P&&(m.push(Na(P,{...k.props},`${k.type}-${y}`)),p=Na(vl,{virtualization:a,children:m}))}):p=Na(hs,{children:"No data found."}),Ry("div",{...s,className:o(e.className,qc,C(qc,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Ca.states=Fy;Ca.options=zy;Ca.className=qc;Ca.defaultOptions=Ok;import{jsx as Vk}from"react/jsx-runtime";var Cn="k-checkbox",Hy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],Wy={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},_c={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=_c.size,rounded:A=_c.rounded,...g}=e;return Vk("span",{className:"k-checkbox-wrap",children:Vk("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Cn,C(Cn,{size:y,rounded:A}),b(Cn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};We.states=Hy;We.options=Wy;We.className=Cn;We.defaultOptions=_c;import{jsx as Vy}from"react/jsx-runtime";var Xk="k-checkbox-list",Oy=[],Qy={},Zk={layout:"vertical"},yl=e=>{let{layout:t=Zk.layout,...a}=e;return Vy("ul",{...a,className:o(e.className,Xk,{[`k-list-${t}`]:t}),children:e.children})};yl.states=Oy;yl.options=Qy;yl.className=Xk;yl.defaultOptions=Zk;import{jsx as jy}from"react/jsx-runtime";var Jk="k-checkbox-list-item",Xy=[],Zy={},Jy={},wl=e=>{let{...t}=e;return jy("li",{...t,className:o(e.className,Jk),children:e.children})};wl.states=Xy;wl.options=Zy;wl.className=Jk;wl.defaultOptions=Jy;import{Fragment as BF,jsx as IF,jsxs as MF}from"react/jsx-runtime";import{Fragment as GF,jsx as PF,jsxs as KF}from"react/jsx-runtime";import{Fragment as HF,jsx as RF,jsxs as WF}from"react/jsx-runtime";import{Fragment as ZF,jsx as XF,jsxs as JF}from"react/jsx-runtime";import{jsx as _F}from"react/jsx-runtime";import{jsx as oz}from"react/jsx-runtime";import{jsx as Sn,jsxs as $y}from"react/jsx-runtime";var ep="k-list-item",Uy=[l.hover,l.focus,l.selected,l.disabled],qy={},_y={},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 $y("li",{...g,className:o(e.className,r?"k-list-group-item":ep,b(ep,{hover:m,focus:k,disabled:A,selected:y})),children:[d&&Sn(We,{checked:p}),s&&Sn(v,{icon:i}),Sn("span",{className:"k-list-item-text",children:T}),a&&a!==""&&Sn("div",{className:"k-list-item-group-label",children:a})]})};P.states=Uy;P.options=qy;P.className=ep;P.defaultOptions=_y;import{jsx as tp,jsxs as tw}from"react/jsx-runtime";var ew="k-list-content",vl=e=>{let{virtualization:t,...a}=e;return tw("div",{...a,className:o(ew,e.className),children:[tp("ul",{className:o("k-list-ul"),children:e.children}),t&&tp("div",{className:"k-height-container",children:tp("div",{})})]})};import{jsx as jk}from"react/jsx-runtime";var ow="k-list-group-sticky-header",Uk=e=>jk("div",{className:o(ow,e.className),children:jk("div",{className:"k-list-header-text",children:e.children})});import{Fragment as aw,jsx as qk,jsxs as lw}from"react/jsx-runtime";var ge=e=>{let{virtualization:t,label:a}=e;return lw(aw,{children:[a&&qk(Uk,{children:a}),e.children&&qk(vl,{virtualization:t,children:e.children})]})};import{jsx as _k}from"react/jsx-runtime";var rw="k-list-group-item",Qk=e=>_k("li",{className:o(rw,e.className),children:_k("span",{className:"k-list-item-text",children:e.children})});import{jsx as dw}from"react/jsx-runtime";var op="k-list-optionlabel",sw=[l.hover,l.focus,l.selected,l.disabled],iw={},nw={},In=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return dw("div",{...d,className:o(op,b(op,{hover:a,focus:r,selected:s,disabled:i})),children:t})};In.states=sw;In.options=iw;In.className=op;In.defaultOptions=nw;import{jsx as uw}from"react/jsx-runtime";var ap="k-list-custom-value",cw=[l.hover,l.focus,l.selected,l.disabled],pw={},mw={},Xe=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return uw("div",{...d,className:o(ap,b(ap,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Xe.states=cw;Xe.options=pw;Xe.className=ap;Xe.defaultOptions=mw;import{jsx as zz}from"react/jsx-runtime";import{jsx as Oz}from"react/jsx-runtime";import{jsx as Zz,jsxs as Jz}from"react/jsx-runtime";import{jsx as _z,jsxs as $z}from"react/jsx-runtime";import{jsx as aR}from"react/jsx-runtime";import{jsx as iR,jsxs as nR}from"react/jsx-runtime";import{jsx as mR,jsxs as uR}from"react/jsx-runtime";import{jsx as $k}from"react/jsx-runtime";var fs="k-avatar";var kw=[l.hover,l.focus,l.active,l.selected,l.disabled],hw={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]},Sa={type:"text",size:n.medium,rounded:f.full,fillMode:x.solid,themeColor:u.primary,border:!1},$t=e=>{let{size:t=Sa.size,rounded:a=Sa.rounded,fillMode:r=Sa.fillMode,themeColor:s=Sa.themeColor,type:i=Sa.type,border:d=Sa.border,...p}=e;return $k("div",{...p,className:o(e.className,fs,C(fs,{size:t,rounded:a,fillMode:r,themeColor:s}),{[`${fs}-bordered`]:d}),children:$k("span",{className:`${fs}-${i}`,children:e.children})})};$t.states=kw;$t.options=hw;$t.className=fs;$t.defaultOptions=Sa;import{jsx as DR}from"react/jsx-runtime";import{jsx as HR}from"react/jsx-runtime";import{jsx as VR}from"react/jsx-runtime";import{jsx as xw}from"react/jsx-runtime";var gs="k-badge",fw=[],gw={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]},xs={size:n.medium,fillMode:x.solid,themeColor:u.primary,cutoutBorder:!1},Al=e=>{let{size:t=xs.size,fillMode:a=xs.fillMode,themeColor:r=xs.themeColor,cutoutBorder:s=xs.cutoutBorder,rounded:i,position:d,align:p,...m}=e;return xw("span",{...m,className:o(e.className,gs,C(gs,{size:t,rounded:i,fillMode:a,themeColor:r}),{[`${gs}-${d}`]:d,[`k-${p}`]:p,[`${gs}-border-cutout`]:s}),children:e.children})};Al.states=fw;Al.options=gw;Al.className=gs;Al.defaultOptions=xs;import{jsx as a0}from"react/jsx-runtime";import{jsx as n0}from"react/jsx-runtime";import{jsx as g0}from"react/jsx-runtime";import{jsx as Tl,jsxs as yw}from"react/jsx-runtime";var Bn="k-chip",bw=[l.hover,l.focus,l.active,l.selected,l.disabled],vw={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]},Nl={size:n.medium,rounded:f.medium,fillMode:x.solid,themeColor:u.base,avatarImage:"/packages/html/assets/avatar.jpg"},Ft=e=>{let{size:t=Nl.size,rounded:a=Nl.rounded,fillMode:r=Nl.fillMode,themeColor:s=Nl.themeColor,text:i,icon:d,actions:p,showAvatar:m,avatarImage:k=Nl.avatarImage,hover:y,focus:A,active:g,selected:T,disabled:N,...S}=e;return yw("div",{...S,className:o(e.className,Bn,C(Bn,{size:t,rounded:a,fillMode:r,themeColor:s}),b(Bn,{hover:y,focus:A,active:g,disabled:N,selected:T})),children:[d&&Tl(v,{className:"k-chip-icon",icon:d,size:"small"}),m&&Tl($t,{className:"k-chip-avatar",type:"image",children:Tl("img",{src:k})}),Tl("span",{className:"k-chip-content",children:e.children?e.children:i&&Tl("span",{className:"k-chip-label",children:i})}),p&&Tl("span",{className:"k-chip-actions",children:p})]})};Ft.states=bw;Ft.options=vw;Ft.className=Bn;Ft.defaultOptions=Nl;import{jsx as Tw}from"react/jsx-runtime";var lp="k-chip-list",ww=[],Aw={size:[n.small,n.medium,n.large]},th={size:n.medium},zt=e=>{let{size:t=th.size,...a}=e;return Tw("div",{...a,className:o(e.className,lp,C(lp,{size:t})),children:e.children})};zt.states=ww;zt.options=Aw;zt.className=lp;zt.defaultOptions=th;import{jsx as B0}from"react/jsx-runtime";import{jsx as Y0}from"react/jsx-runtime";import{jsx as D0}from"react/jsx-runtime";import{jsx as W0}from"react/jsx-runtime";import{Fragment as J0,jsx as Z0,jsxs as j0}from"react/jsx-runtime";import{jsx as oh,jsxs as Sw}from"react/jsx-runtime";var ah="k-color-preview",Nw=[],Cw={},Yo=e=>{let{color:t,iconName:a,...r}=e;return Sw("span",{...r,className:o(e.className,ah,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&oh(v,{icon:a,className:"k-color-preview-icon"}),oh("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Yo.states=Nw;Yo.options=Cw;Yo.className=ah;import{Fragment as rp,jsx as lh,jsxs as Ln}from"react/jsx-runtime";var sp="k-loader",Iw={pulsing:"pulsing-2","infinite-spinner":"spinner-3","converging-spinner":"spinner-4"},Bw=[],Mw={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]},En={size:n.medium,themeColor:u.primary,animation:"pulsing"},Po=e=>{let{size:t=En.size,themeColor:a=En.themeColor,animation:r=En.animation,...s}=e,i=lh("span",{className:"k-loader-segment"});return lh("div",{...s,className:o(e.className,sp,{[`k-loader-${Iw[r]||r}`]:r},C(sp,{size:t,themeColor:a})),children:Ln("div",{className:"k-loader-canvas",children:[r==="pulsing"&&Ln(rp,{children:[i,i]}),r==="infinite-spinner"&&Ln(rp,{children:[i,i,i]}),r==="converging-spinner"&&Ln(rp,{children:[i,i,i,i]})]})})};Po.states=Bw;Po.options=Mw;Po.className=sp;Po.defaultOptions=En;var rh=Po;import{jsx as ip,jsxs as sh}from"react/jsx-runtime";var np="k-loader-container",Lw=[],Ew={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]},Ba={size:n.medium,themeColor:u.primary,loaderType:"pulsing",position:"top",overlay:"dark",panel:!1},bs=e=>{let{size:t=Ba.size,themeColor:a=Ba.themeColor,loaderType:r=Ba.loaderType,position:s=Ba.position,overlay:i=Ba.overlay,panel:d=Ba.panel,...p}=e;return sh("div",{...p,className:o(e.className,np,C(np,{size:t}),{[`k-loader-${s}`]:s}),children:[ip("div",{className:`k-loader-container-overlay k-overlay-${i}`}),sh("div",{className:o("k-loader-container-inner",{"k-loader-container-panel":d}),children:[ip(rh,{size:t,themeColor:a,animation:r}),ip("div",{className:`k-loader-container-label !k-text-${a}`,children:"Loading..."})]})]})};bs.states=Lw;bs.options=Ew;bs.className=np;bs.defaultOptions=Ba;import{jsx as yH}from"react/jsx-runtime";import{jsx as NH}from"react/jsx-runtime";import{jsx as BH}from"react/jsx-runtime";import{jsx as YH}from"react/jsx-runtime";import{jsx as Gw}from"react/jsx-runtime";var ih="k-skeleton",Yw=[],Pw={},dp={shape:"text",animation:"pulse"},Go=e=>{let{shape:t=dp.shape,animation:a=dp.animation,...r}=e;return Gw("span",{...r,className:o(e.className,ih,{[`k-skeleton-${t}`]:t,[`k-skeleton-${a}`]:a}),style:e.style})};Go.states=Yw;Go.options=Pw;Go.className=ih;Go.defaultOptions=dp;import{jsx as ZH}from"react/jsx-runtime";import{jsx as Kw}from"react/jsx-runtime";var nh=e=>Kw(Go,{shape:"rect",...e});import{jsx as e8}from"react/jsx-runtime";import{jsx as vs,jsxs as cp}from"react/jsx-runtime";var pp="k-form-field",Dw=[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 cp("div",{className:o(pp,e.className,b(pp,{disabled:m}),{[`k-col-span-${y}`]:y}),dir:k,children:[t&&cp("label",{className:o("k-label","k-form-label"),children:[t,r&&vs("span",{className:"k-label-optional",children:"(Optional)"}),p&&vs("span",{className:"k-field-info",children:"(field info)"})]}),a==="horizontal"&&!t&&vs("span",{className:"k-label k-form-label k-label-empty"}),cp("div",{className:"k-form-field-wrap",children:[s,i&&vs("div",{className:"k-form-hint",children:i}),d&&vs("div",{className:"k-form-error",children:d})]})]})};Ze.states=Dw;Ze.className=pp;import{Fragment as Fw,jsx as mp,jsxs as zw}from"react/jsx-runtime";var dh="k-form-fieldset",go=e=>{let{legend:t,layout:a,cols:r,gapX:s,gapY:i}=e;return zw("fieldset",{className:o(dh),children:[t&&mp("legend",{className:"k-form-legend",children:t}),a==="grid"?mp("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}):mp(Fw,{children:e.children})]})};go.className=dh;import{Fragment as Ww,jsx as ys,jsxs as Ow}from"react/jsx-runtime";import{createElement as up}from"react";var Yn="k-form",Rw=[],Hw={size:[n.small,n.medium,n.large]},Pn={size:n.medium,layout:"basic",tag:"form"},Ko=e=>{let{size:t=Pn.size,orientation:a,layout:r=Pn.layout,formButtons:s,cols:i,gapX:d,gapY:p,tag:m=Pn.tag,children:k}=e,y=({tag:g,className:T,children:N})=>g==="form"?ys("form",{className:T,children:N}):ys("div",{className:T,children:N}),A=[];return k&&(Array.isArray(k)?k.map((g,T)=>{g.type===Ze?A.push(up(Ze,{...g.props,orientation:a,key:T})):A.push(g)}):k.type===Ze?A.push(up(Ze,{...k.props,orientation:a,key:`${new Date().getTime()}`})):k.type===go&&A.push(up(go,{...k.props,key:`${new Date().getTime()}`}))),Ow(y,{tag:m,className:o(e.className,Yn,C(Yn,{size:t}),{[`${Yn}-${a}`]:a}),children:[r==="grid"?ys("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}):ys(Ww,{children:A}),s&&ys("div",{className:"k-form-buttons",children:s})]})};Ko.states=Rw;Ko.options=Hw;Ko.className=Yn;Ko.defaultOptions=Pn;import{jsx as Vw}from"react/jsx-runtime";var Qw="k-actionsheet-footer",ch={alignment:"stretched",orientation:"horizontal"},Rt=e=>{let{alignment:t=ch.alignment,orientation:a=ch.orientation,template:r,as:s=r?"div":O,...i}=e;return Vw(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,Qw),children:e.children})};import{jsx as ws,jsxs as Jw}from"react/jsx-runtime";var ph="k-searchbox",Xw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],Zw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},kp={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=kp.showIcon,icon:N=kp.icon,...S}=e;return Jw(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,ph),children:[T&&ws(v,{className:"k-input-icon",icon:N}),ws(le,{placeholder:a,value:t}),ws(J,{...e}),ws(X,{...e}),ws(te,{...e})]})};De.states=Xw;De.options=Zw;De.className=ph;De.defaultOptions=kp;import{jsx as L8}from"react/jsx-runtime";import{jsx as Do,jsxs as hp}from"react/jsx-runtime";var mh="k-actionsheet-titlebar",jw={},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 hp("div",{...A,className:o(e.className,mh),children:[hp("div",{className:"k-actionsheet-titlebar-group",children:[r&&Do("div",{className:"k-actionsheet-actions",children:r}),!y&&hp("div",{className:"k-actionsheet-title",children:[t&&Do("div",{className:"k-text-center",children:t}),a&&Do("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),y&&Do("div",{className:"k-actionsheet-title",children:y}),s&&Do("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Do("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Do(Z,{value:p,placeholder:m,size:k?"large":"medium"}):Do(De,{placeholder:"Filter",size:k?"large":"medium"})})]})};ae.className=mh;ae.defaultOptions=jw;import{jsx as fp,jsxs as $w}from"react/jsx-runtime";var gp="k-actionsheet-view",Uw=[],qw={},_w={},Cl=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===ae&&fp(ae,{adaptive:t,...s?.props}),m=i?.type===Rt&&fp(Rt,{...i?.props});return $w("div",{...d,className:o(e.className,gp,{[`${gp}-animated`]:a}),children:[p,fp("div",{className:"k-actionsheet-content",children:r}),m]})};Cl.states=Uw;Cl.options=qw;Cl.className=gp;Cl.defaultOptions=_w;import{jsx as Gn,jsxs as oA}from"react/jsx-runtime";var uh="k-actionsheet",eA=[],tA={},As={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},re=e=>{let{side:t=As.side,fullscreen:a=As.fullscreen,adaptive:r=As.adaptive,overlay:s=As.overlay,template:i,children:d,header:p,footer:m,...k}=e;return oA("div",{className:"k-actionsheet-container",children:[s&&Gn("div",{className:"k-overlay"}),Gn(Eo,{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:Gn("div",{...k,className:o(e.className,uh,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Gn(Cl,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};re.states=eA;re.options=tA;re.className=uh;re.defaultOptions=As;import{jsx as $8}from"react/jsx-runtime";import{Fragment as lA,jsx as Ts,jsxs as xp}from"react/jsx-runtime";var bp="k-actionsheet-item",aA=[l.hover,l.focus,l.selected,l.disabled],vp=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return xp("span",{...m,className:o(e.className,bp,b(bp,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&Ts(lA,{children:xp("span",{className:"k-actionsheet-action",children:[t&&Ts("span",{className:"k-icon-wrap",children:Ts(v,{className:"k-actionsheet-item-icon",icon:t})}),xp("span",{className:"k-actionsheet-item-text",children:[a&&Ts("span",{className:"k-actionsheet-item-title",children:a}),r&&Ts("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};vp.states=aA;vp.className=bp;import{jsx as nW,jsxs as dW}from"react/jsx-runtime";import{jsx as uW}from"react/jsx-runtime";import{jsx as gW}from"react/jsx-runtime";import{jsx as yW}from"react/jsx-runtime";import{Fragment as iA,jsx as rt,jsxs as yp}from"react/jsx-runtime";var hh="k-dropdownlist",rA=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],sA={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Sl={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:x.solid},se=e=>{let{size:t=Sl.size,rounded:a=Sl.rounded,fillMode:r=Sl.fillMode,arrowIconName:s=Sl.arrowIconName,showValue:i=Sl.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,...fl}=e;return yp(iA,{children:[yp(xt,{...fl,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,hh,{"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:yp(Q,{size:"large",children:[rt(P,{text:"List item"}),rt(P,{text:"List item"}),rt(P,{text:"List item"})]})})})]})};se.states=rA;se.options=sA;se.className=hh;se.defaultOptions=Sl;import{jsx as VW}from"react/jsx-runtime";import{jsx as UW,jsxs as qW}from"react/jsx-runtime";import{Fragment as rO,jsx as aO,jsxs as lO}from"react/jsx-runtime";import{jsx as dO}from"react/jsx-runtime";import{jsx as kO,jsxs as hO}from"react/jsx-runtime";import{jsx as vO,jsxs as yO}from"react/jsx-runtime";import{Fragment as BO,jsx as SO,jsxs as IO}from"react/jsx-runtime";import{Fragment as DO,jsx as GO,jsxs as KO}from"react/jsx-runtime";import{jsx as fh}from"react/jsx-runtime";var Kn="k-radio",nA=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked],dA={size:[n.small,n.medium,n.large]},gh={size:n.medium},xo=e=>{let{id:t,checked:a,hover:r,focus:s,disabled:i,invalid:d,valid:p,required:m,size:k=gh.size,...y}=e;return fh("span",{className:"k-radio-wrap",children:fh("input",{...y,id:t,type:"radio",checked:a,required:m,className:o(e.className,Kn,C(Kn,{size:k}),b(Kn,{hover:r,focus:s,disabled:i,invalid:d,valid:p,checked:a}))})})};xo.states=nA;xo.options=dA;xo.className=Kn;xo.defaultOptions=gh;import{jsx as mA}from"react/jsx-runtime";var xh="k-radio-list",cA=[],pA={},bh={layout:"vertical"},Il=e=>{let{layout:t=bh.layout,...a}=e;return mA("ul",{...a,className:o(e.className,xh,{[`k-list-${t}`]:t}),children:e.children})};Il.states=cA;Il.options=pA;Il.className=xh;Il.defaultOptions=bh;import{jsx as fA}from"react/jsx-runtime";var vh="k-radio-list-item",uA=[],kA={},hA={},Bl=e=>{let{...t}=e;return fA("li",{...t,className:o(e.className,vh),children:e.children})};Bl.states=uA;Bl.options=kA;Bl.className=vh;Bl.defaultOptions=hA;import{jsx as sQ}from"react/jsx-runtime";import{Fragment as pQ,jsx as cQ,jsxs as mQ}from"react/jsx-runtime";import{Fragment as gQ,jsx as fQ,jsxs as xQ}from"react/jsx-runtime";import{Fragment as TQ,jsx as wQ,jsxs as AQ}from"react/jsx-runtime";import{Fragment as BQ,jsx as IQ,jsxs as MQ}from"react/jsx-runtime";import{Fragment as GQ,jsx as PQ,jsxs as KQ}from"react/jsx-runtime";import{Fragment as xA,jsx as st,jsxs as Ml}from"react/jsx-runtime";var Dn=({size:e,...t})=>st(Ko,{formButtons:Ml(xA,{children:[st(c,{className:"k-form-submit",themeColor:"primary",size:e,children:"Submit"}),st(c,{className:"k-form-clear",size:e,children:"Clear"})]}),children:Ml(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:Ml("ul",{className:"k-radio-list k-list-horizontal",children:[Ml("li",{className:"k-radio-list-item",children:[st(xo,{checked:!0,size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Ml("li",{className:"k-radio-list-item",children:[st(xo,{size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Ml("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 nV,jsx as iV,jsxs as dV}from"react/jsx-runtime";import{jsx as yA}from"react/jsx-runtime";var Ns="k-button-group",bA=[l.disabled],vA={fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},yh={fillMode:x.solid},Y=e=>{let{fillMode:t=yh.fillMode,disabled:a,stretched:r,...s}=e;return yA("div",{...s,className:o(e.className,Ns,C(Ns,{fillMode:t}),b(Ns,{disabled:a}),{[`${Ns}-stretched`]:r}),children:e.children})};Y.states=bA;Y.options=vA;Y.className=Ns;Y.defaultOptions=yh;import{Fragment as TV,jsx as AV,jsxs as NV}from"react/jsx-runtime";import{Fragment as LV,jsx as MV,jsxs as EV}from"react/jsx-runtime";import{Fragment as FV,jsx as DV,jsxs as zV}from"react/jsx-runtime";import{Fragment as VV,jsx as QV,jsxs as XV}from"react/jsx-runtime";import{Fragment as TA,jsx as wh,jsxs as NA}from"react/jsx-runtime";var Ah="k-menu-button",wA=[l.hover,l.focus,l.active,l.selected,l.disabled],AA={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]},La={size:n.medium,rounded:f.medium,fillMode:x.solid,themeColor:u.base,showArrow:!0,arrowIconName:"caret-alt-down"},U=e=>{let{size:t=La.size,rounded:a=La.rounded,fillMode:r=La.fillMode,themeColor:s=La.themeColor,hover:i,focus:d,active:p,selected:m,disabled:k,icon:y,text:A,showArrow:g=La.showArrow,arrowIconName:T=La.arrowIconName,popup:N,opened:S,...B}=e;return NA(TA,{children:[wh(c,{...B,className:o(e.className,Ah),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&&wh(F,{className:"k-menu-popup",children:N})]})};U.states=wA;U.options=AA;U.className=Ah;U.defaultOptions=La;import{jsx as i6}from"react/jsx-runtime";import{jsx as p6}from"react/jsx-runtime";import{jsx as h6}from"react/jsx-runtime";import{Fragment as IA,jsx as Ll,jsxs as Th}from"react/jsx-runtime";var Tp="k-menu-item",CA=[l.hover,l.focus,l.active,l.selected,l.disabled],SA={},Nh={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=Nh.iconPosition,dir:T,children:N,...S}=e,B=Ll(IA,{});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"),Th("li",{...S,className:o(e.className,Tp,"k-item",b(Tp,{focus:a,disabled:i,hover:t,active:r,selected:s}),{"k-first":m,"k-last":k}),children:[Th("span",{className:o("k-link k-menu-link"),children:[d&&g==="before"&&Ll(v,{className:"k-menu-link-icon",icon:d}),Ll("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&Ll(v,{className:"k-menu-link-icon",icon:d}),y&&Ll("span",{className:"k-menu-expand-arrow",children:Ll(v,{icon:L})})]}),B]})};Oe.states=CA;Oe.options=SA;Oe.className=Tp;Oe.defaultOptions=Nh;import{Fragment as LA,jsx as El,jsxs as Ch}from"react/jsx-runtime";var Np="k-menu-item",BA=[l.hover,l.focus,l.active,l.selected,l.disabled],MA={},Cp={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=Cp.iconPosition,dir:T=Cp.dir,children:N,popup:S,...B}=e,L=El(LA,{});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"),Ch("li",{...B,className:o(e.className,Np,"k-item",b(Np,{focus:a,disabled:i}),{"k-first":m,"k-last":k}),children:[Ch("span",{className:o("k-link k-menu-link",b("k-menu-link",{hover:t,active:r,selected:s,disabled:i})),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:E})})]}),L,S]})};Ht.states=BA;Ht.options=MA;Ht.className=Np;Ht.defaultOptions=Cp;import{jsx as GA}from"react/jsx-runtime";var Sh="k-menu-scroll-wrapper",EA=[],YA={},PA={},Cs=e=>{let{className:t,children:a,orientation:r,...s}=e;return GA("div",{...s,className:o(t,Sh,{"k-menu-scroll-wrapper-vertical":r==="vertical"}),children:a})};Cs.states=EA;Cs.options=YA;Cs.className=Sh;Cs.defaultOptions=PA;var Ih=Cs;import{Fragment as Sp,jsx as Ea,jsxs as Fn}from"react/jsx-runtime";var Ip="k-menu",KA=[],DA={},zn={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},Wt=e=>{let{children:t,orientation:a=zn.orientation,header:r=zn.header,scrollable:s,scrollButtonsPosition:i=zn.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=Ea("ul",{dir:p,...k,className:o(e.className,"k-reset",Ip,{[`${Ip}-${a}`]:a,"k-header":r}),children:t});return Fn(Sp,{children:[s?Fn(Ih,{orientation:a,style:d,dir:e.dir,children:[i==="start"&&Fn(Sp,{children:[Ea(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Ea(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"&&Ea(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"&&Fn(Sp,{children:[Ea(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Ea(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"&&Ea(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=KA;Wt.options=DA;Wt.className=Ip;Wt.defaultOptions=zn;import{jsx as FA}from"react/jsx-runtime";var Bp="k-separator",Bh={orientation:"horizontal"},Ss=e=>{let{orientation:t=Bh.orientation,...a}=e;return FA("li",{...a,className:o(e.className,"k-item",Bp,{[`${Bp}-${t}`]:t})})};Ss.className=Bp;Ss.defaultOptions=Bh;import{Fragment as F6,jsx as z6}from"react/jsx-runtime";import{jsx as Mh}from"react/jsx-runtime";import{createElement as HA}from"react";var Mp="k-menu-group",zA=[],RA={size:[n.small,n.medium,n.large]},Lp={size:n.medium,dir:"ltr"},bo=e=>{let{children:t,size:a=Lp.size,dir:r=Lp.dir,...s}=e,i=[];return t&&Array.isArray(t)&&t.map((d,p)=>{d.type===Ht?i.push(HA(Ht,{...d.props,dir:r,key:p})):d.type===Ss?i.push(Mh(Ss,{})):i.push(d)}),Mh("ul",{...s,className:o(e.className,Mp,C(Mp,{size:a})),children:i})};bo.states=zA;bo.options=RA;bo.className=Mp;bo.defaultOptions=Lp;import{Fragment as j6,jsx as J6,jsxs as U6}from"react/jsx-runtime";import{Fragment as a3,jsx as t3,jsxs as o3}from"react/jsx-runtime";import{Fragment as n3,jsx as i3,jsxs as d3}from"react/jsx-runtime";import{Fragment as k3,jsx as u3,jsxs as h3}from"react/jsx-runtime";import{Fragment as v3,jsx as b3,jsxs as y3}from"react/jsx-runtime";import{jsx as z3,jsxs as R3}from"react/jsx-runtime";import{Fragment as QA,jsx as Ep,jsxs as Lh}from"react/jsx-runtime";var Yp="k-split-button",WA=[l.hover,l.focus,l.active,l.selected,l.disabled],OA={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.b