UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 290 kB
var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>o({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),x=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},h={small:"small",medium:"medium",large:"large",full:"full"},b={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"},gt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{jsx as Rc,jsxs as Pv}from"react/jsx-runtime";var zc="k-calendar",Ev=[],Yv={size:[n.small,n.medium,n.large]},Tl={size:n.medium,showCalendarHeader:!0,orientation:"horizontal",calendarView:"month",calendarTitleText:"October 2021"},xt=e=>{let{size:t=Tl.size,orientation:a=Tl.orientation,calendarView:r=Tl.calendarView,calendarTitleText:s=Tl.calendarTitleText,showCalendarHeader:i=Tl.showCalendarHeader,showWeek:d,showCalendarFooter:p,calendarFooterText:m,dir:k,...v}=e;return Pv("div",{...v,dir:k,className:o(e.className,zc,C(zc,{size:t}),{"k-week-number":d}),children:[i&&Rc(Ta,{calendarView:r,showToday:!p,calendarTitleText:s,orientation:a,size:t,dir:k}),Rc(yn,{calendarView:r,orientation:a,children:e.children}),p&&Rc(ps,{calendarFooterText:m,size:t})]})};xt.states=Ev;xt.options=Yv;xt.className=zc;xt.defaultOptions=Tl;import{Fragment as Kv,jsx as ms,jsxs as Dv}from"react/jsx-runtime";var Gv=[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:v,empty:T,hover:g,focus:A,active:N,selected:S,disabled:B,...L}=e,D=`k-calendar-${a?"th":"td"}`,H=[e.className,D,x(D,{hover:g,focus:A,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":T}];return a?ms("th",{...L,className:o(H),children:t}):d?ms("td",{...L,className:o(H),children:t}):ms("td",{...L,className:o(H),children:T&&!i?ms(Kv,{children:"\xA0"}):Dv("span",{className:"k-link",children:[t,v&&ms("span",{className:"k-day-indicator"})]})})};w.states=Gv;import{Fragment as Hv,jsx as kk}from"react/jsx-runtime";var Hc="k-icon k-font-icon",Fv=[],Rv={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]},zv={},us=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?kk("span",{...d,className:o(e.className,Hc,C(Hc,{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"})}):kk(Hv,{})};us.states=Fv;us.options=Rv;us.className=Hc;us.defaultOptions=zv;var fk=us;import{Fragment as Qv,jsx as wn}from"react/jsx-runtime";var Oc="k-icon k-svg-icon",Ov=[],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]},hk={viewBox:"0 0 24 24"},ks=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=hk.viewBox,icon:d,...p}=e;if(!d)return wn(Qv,{});d==="none"&&{...p,className:o(e.className,Oc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return wn("span",{...p,className:o(e.className,Oc,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:wn("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:i,dangerouslySetInnerHTML:typeof d=="object"?{__html:d.content}:void 0,children:d?void 0:e.children})})};ks.states=Ov;ks.options=Wv;ks.className=Oc;ks.defaultOptions=hk;var Wc=ks;import*as gk from"@progress/kendo-svg-icons";import{Fragment as xk,jsx as fs}from"react/jsx-runtime";var Vv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Xv=[],Zv={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]},Qc={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:a,icon:r,type:s=Qc.type,rotate:i,flip:d,viewBox:p=Qc.viewBox,...m}=e;if(!r)return fs(xk,{});if(s==="svg"){if(r==="none")return fs(Wc,{...m,icon:r,size:t});let k=Vv(`${r}-icon`);return gk[k]?fs(Wc,{...m,icon:gk[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):fs(xk,{})}return fs(fk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};y.states=Xv;y.options=Zv;y.defaultOptions=Qc;var Vc=y;import{Fragment as Uv,jsx as hs,jsxs as bk}from"react/jsx-runtime";var Tn="k-button",Jv=[l.hover,l.focus,l.active,l.selected,l.disabled],jv={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Aa={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Aa.size,rounded:a=Aa.rounded,fillMode:r=Aa.fillMode,themeColor:s=Aa.themeColor,showArrow:i=Aa.showArrow,arrowIconName:d=Aa.arrowIconName,hover:p,focus:m,active:k,selected:v,disabled:T,icon:g,text:A,iconClassName:N,...S}=e,B=g!==void 0,L=e.children!==void 0;return bk("button",{...S,className:o(e.className,Tn,C(Tn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Tn,{hover:p,focus:m,active:k,disabled:T,selected:v}),{"k-icon-button":!A&&!L&&B}),children:[g&&hs(y,{className:o(N,"k-button-icon"),icon:g}),A?bk(Uv,{children:[A&&hs("span",{className:"k-button-text",children:A}),e.children]}):e.children&&hs("span",{className:"k-button-text",children:e.children}),i&&hs("span",{className:"k-menu-button-arrow k-button-arrow",children:hs(y,{icon:d})})]})};c.states=Jv;c.options=jv;c.className=Tn;c.defaultOptions=Aa;import{jsx as qv}from"react/jsx-runtime";var Ze=e=>qv(c,{icon:"folder",...e,children:void 0});import{jsx as _v}from"react/jsx-runtime";var Rt=e=>_v(c,{icon:"folder",children:"Button",...e});import{jsx as VG}from"react/jsx-runtime";import{jsx as gs,jsxs as vk}from"react/jsx-runtime";var yk="k-calendar-header",$v={size:[n.small,n.medium,n.large]},Al={calendarTitleText:"October 2021",showToday:!0,showNavigationButtons:!0,orientation:"horizontal",size:n.medium},Ta=e=>{let{calendarTitleText:t=Al.calendarTitleText,showToday:a=Al.showToday,showNavigationButtons:r=Al.showNavigationButtons,orientation:s=Al.orientation,size:i=Al.size,calendarView:d,dir:p,...m}=e,k=p==="rtl"?"chevron-right":"chevron-left",v=p==="rtl"?"chevron-left":"chevron-right";return vk("div",{...m,className:o(e.className,yk,{"k-vstack":s==="vertical"}),children:[gs(c,{disabled:d==="century",className:"k-calendar-title",text:t,size:i,fillMode:"flat",themeColor:"primary"}),gs("span",{className:"k-spacer"}),vk("span",{className:"k-calendar-nav",children:[r&&gs(c,{className:"k-calendar-nav-prev",icon:k,size:i,fillMode:"flat"}),a&&gs(c,{size:i,fillMode:"flat",className:"k-calendar-nav-today",children:"Today"}),r&&gs(c,{className:"k-calendar-nav-next",icon:v,size:i,fillMode:"flat"})]})]})};Ta.options=$v;Ta.className=yk;Ta.defaultOptions=Al;import{jsx as wk}from"react/jsx-runtime";var Tk="k-calendar-footer",ey={size:[n.small,n.medium,n.large]},Xc={size:n.medium,calendarFooterText:"Tuesday, October 12, 2021"},ps=e=>{let{size:t=Xc.size,calendarFooterText:a=Xc.calendarFooterText,...r}=e;return wk("div",{...r,className:o(e.className,Tk),children:wk(c,{size:t,fillMode:"flat",themeColor:"primary",className:"k-calendar-nav-today",children:a})})};ps.options=ey;ps.className=Tk;ps.defaultOptions=Xc;import{jsx as ay}from"react/jsx-runtime";var ty=[],oy={},Ak=e=>{let{type:t,...a}=e,r=t==="p"?"paragraph":t,s=t.includes("display")?"div":t;return ay(s,{...a,className:o(e.className,{[`k-${r}`]:t}),children:e.children})};Ak.states=ty;Ak.options=oy;import{jsx as sy}from"react/jsx-runtime";var An="k-actions",ly=[],ry={},Zc={alignment:"start",orientation:"horizontal"},W=e=>{let{alignment:t=Zc.alignment,orientation:a=Zc.orientation,...r}=e;return sy("div",{...r,className:o(An,{[`${An}-${t}`]:t,[`${An}-${a}`]:a},e.className),children:e.children})};W.states=ly;W.options=ry;W.className=An;W.defaultOptions=Zc;var Nk=W;import{jsx as dy}from"react/jsx-runtime";var Nn="k-input",iy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],ny={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Cn={size:n.medium,rounded:n.medium,fillMode:b.solid},M=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=Cn.size,rounded:k=Cn.rounded,fillMode:v=Cn.fillMode,...T}=e;return dy("span",{...T,className:o(e.className,Nn,C(Nn,{size:m,rounded:k,fillMode:v}),x(Nn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=iy;M.options=ny;M.className=Nn;M.defaultOptions=Cn;import{jsx as my}from"react/jsx-runtime";var Sn="k-picker",cy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],py={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},In={size:n.medium,rounded:h.medium,fillMode:b.solid},bt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=In.size,rounded:k=In.rounded,fillMode:v=In.fillMode,...T}=e;return my("span",{...T,className:o(e.className,Sn,C(Sn,{size:m,rounded:k,fillMode:v}),x(Sn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};bt.states=cy;bt.options=py;bt.className=Sn;bt.defaultOptions=In;import{Fragment as fy,jsx as Jc}from"react/jsx-runtime";var Ck="k-clear-value",uy=[l.disabled,l.loading,l.readonly],ky={},te=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Jc(fy,{}):Jc("span",{className:o(e.className,Ck),children:Jc(y,{icon:"x"})})};te.states=uy;te.options=ky;te.className=Ck;import{jsx as xy}from"react/jsx-runtime";var jc="k-input-inner",hy=[],gy={},Bn={type:"text",autocomplete:"off",value:"",placeholder:""},se=e=>{let{value:t=Bn.value,type:a=Bn.type,placeholder:r=Bn.placeholder,autocomplete:s=Bn.autocomplete,...i}=e;return xy("input",{...i,type:a,className:o(e.className,jc,C(jc,e)),placeholder:r,autoComplete:s,defaultValue:t})};se.states=hy;se.options=gy;se.className=jc;import{jsx as Sk,jsxs as yy}from"react/jsx-runtime";var Uc="k-input-inner",by=[],vy={},bo=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return yy("span",{...d,className:o(e.className,Uc,C(Uc,e)),children:[s,!s&&i&&Sk(y,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&Sk("span",{className:"k-input-value-text",children:t})]})};bo.states=by;bo.options=vy;bo.className=Uc;import{jsx as Ay}from"react/jsx-runtime";var qc="k-input-inner",wy=[],Ty={},Ik={value:"",placeholder:""},xs=e=>{let{value:t=Ik.value,placeholder:a=Ik.placeholder,rows:r,...s}=e;return Ay("textarea",{...s,className:o(e.className,qc,C(qc,e)),placeholder:a,rows:r,defaultValue:t})};xs.states=wy;xs.options=Ty;xs.className=qc;import{Fragment as Cy,jsx as Bk}from"react/jsx-runtime";var Mk="k-input-loading-icon",Ny=[l.disabled,l.loading],J=e=>{let{disabled:t,loading:a}=e;return t||!a?Bk(Cy,{}):Bk("span",{className:o(e.className,Mk,"k-icon k-i-loading")})};J.states=Ny;J.className=Mk;import{Fragment as By,jsx as Lk}from"react/jsx-runtime";var Ek="k-input-validation-icon",Sy=[l.valid,l.invalid,l.disabled,l.loading],Iy={},X=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Lk(By,{}):Lk(y,{className:o(Ek),icon:i})};X.states=Sy;X.options=Iy;X.className=Ek;import{Fragment as Ey,jsx as Yk}from"react/jsx-runtime";var My="k-input-prefix",Ly={direction:"horizontal"},$=e=>{let{direction:t=Ly.direction,...a}=e;return e.children?Yk("span",{...a,className:o(My,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Yk(Ey,{})};import{Fragment as Gy,jsx as Pk}from"react/jsx-runtime";var Yy="k-input-suffix",Py={direction:"horizontal"},ee=e=>{let{direction:t=Py.direction,...a}=e;return e.children?Pk("span",{...a,className:o(Yy,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Pk(Gy,{})};import{jsx as qK}from"react/jsx-runtime";import{jsx as tD}from"react/jsx-runtime";import{jsx as Dy}from"react/jsx-runtime";var Gk="k-input-separator",Ky={direction:"vertical"},ge=e=>{let{direction:t=Ky.direction,...a}=e;return Dy("span",{...a,className:o(Gk,e.className,{[`${Gk}-${t}`]:t})})};import{jsx as Kk}from"react/jsx-runtime";var Dk="k-animation-container",Fy=[],Ry={},Fk={positionMode:"absolute"},Ko=e=>{let{positionMode:t=Fk.positionMode,animationStyle:a,offset:r,...s}=e;return Kk("div",{...s,style:{...r,...e.style},className:o(e.className,Dk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Kk("div",{className:"k-child-animation-container",style:a,children:e.children})})};Ko.states=Fy;Ko.options=Ry;Ko.className=Dk;Ko.defaultOptions=Fk;import{jsx as Rk}from"react/jsx-runtime";var zk="k-popup",zy=[],Hy={},Hk={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:a=Hk.positionMode,animationStyle:r,...s}=e;return Rk(Ko,{positionMode:a,offset:t,animationStyle:r,children:Rk("div",{...s,className:o(e.className,zk),children:e.children})})};F.states=zy;F.options=Hy;F.className=zk;F.defaultOptions=Hk;import{jsx as Wy}from"react/jsx-runtime";var Oy="k-no-data",bs=e=>Wy("span",{className:o(Oy,e.className),children:e.children});import{jsx as Nl,jsxs as Ok}from"react/jsx-runtime";var _c="k-list",Qy=[],Vy={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,v,T,g=[];return r?r.map((A,N)=>{A.type===xe?(A.props.root===!0?(m=A.props.label,A.props.children.map((S,B)=>{g.push(Nl(P,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):A.props.children.forEach((S,B)=>{let L="";B===0&&(L=A.props.label),g.push(Nl(P,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=Nl(xe,{label:m,virtualization:a,children:g})):A.type===P&&(g.push(Nl(P,{...A.props},`${A.type}-${N}`)),v=Nl(Cl,{virtualization:a,children:g}),d&&(T=Ok(bs,{className:"k-sr-only",children:[g.length," items found."]})))}):T=Nl(bs,{children:"No data found."}),Ok("div",{...p,className:o(e.className,_c,C(_c,{size:t}),{"k-virtual-list":a}),children:[s,i,k,v,T]})};Q.states=Qy;Q.options=Vy;Q.className=_c;Q.defaultOptions=Wk;import{jsx as Na,jsxs as Jy}from"react/jsx-runtime";var $c="k-list",Xy=[],Zy={size:[n.small,n.medium,n.large]},Qk={size:n.medium},Ca=e=>{let{size:t=Qk.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,v)=>{k.type===xe?(k.props.root===!0?(i=k.props.label,k.props.children.map((T,g)=>{m.push(Na(P,{...T.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Na(Vk,{...k.props,children:k.props.label},`listChild-${v}`)),k.props.children.map((T,g)=>{m.push(Na(P,{...T.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Na(xe,{label:i,virtualization:a,children:m})):k.type===P&&(m.push(Na(P,{...k.props},`${k.type}-${v}`)),p=Na(Cl,{virtualization:a,children:m}))}):p=Na(bs,{children:"No data found."}),Jy("div",{...s,className:o(e.className,$c,C($c,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Ca.states=Xy;Ca.options=Zy;Ca.className=$c;Ca.defaultOptions=Qk;import{jsx as Xk}from"react/jsx-runtime";var Mn="k-checkbox",jy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],Uy={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full]},ep={size:n.medium,rounded:h.medium},Oe=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:v=ep.size,rounded:T=ep.rounded,...g}=e;return Xk("span",{className:"k-checkbox-wrap",children:Xk("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Mn,C(Mn,{size:v,rounded:T}),x(Mn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};Oe.states=jy;Oe.options=Uy;Oe.className=Mn;Oe.defaultOptions=ep;import{jsx as $y}from"react/jsx-runtime";var Zk="k-checkbox-list",qy=[],_y={},Jk={layout:"vertical"},Sl=e=>{let{layout:t=Jk.layout,...a}=e;return $y("ul",{...a,className:o(e.className,Zk,{[`k-list-${t}`]:t}),children:e.children})};Sl.states=qy;Sl.options=_y;Sl.className=Zk;Sl.defaultOptions=Jk;import{jsx as aw}from"react/jsx-runtime";var jk="k-checkbox-list-item",ew=[],tw={},ow={},Il=e=>{let{...t}=e;return aw("li",{...t,className:o(e.className,jk),children:e.children})};Il.states=ew;Il.options=tw;Il.className=jk;Il.defaultOptions=ow;import{Fragment as lF,jsx as aF,jsxs as rF}from"react/jsx-runtime";import{Fragment as cF,jsx as dF,jsxs as pF}from"react/jsx-runtime";import{Fragment as hF,jsx as fF,jsxs as gF}from"react/jsx-runtime";import{Fragment as wF,jsx as yF,jsxs as TF}from"react/jsx-runtime";import{jsx as SF}from"react/jsx-runtime";import{jsx as LF}from"react/jsx-runtime";import{jsx as Ln,jsxs as iw}from"react/jsx-runtime";var op="k-list-item",lw=[l.hover,l.focus,l.selected,l.disabled],rw={},sw={},P=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:k,selected:v,disabled:T,...g}=e,A=t||e.children;return iw("li",{...g,className:o(e.className,r?"k-list-group-item":op,x(op,{hover:m,focus:k,disabled:T,selected:v})),children:[d&&Ln(Oe,{checked:p}),s&&Ln(y,{icon:i}),Ln("span",{className:"k-list-item-text",children:A}),a&&a!==""&&Ln("div",{className:"k-list-item-group-label",children:a})]})};P.states=lw;P.options=rw;P.className=op;P.defaultOptions=sw;import{jsx as ap,jsxs as dw}from"react/jsx-runtime";var nw="k-list-content",Cl=e=>{let{virtualization:t,...a}=e;return dw("div",{...a,className:o(nw,e.className),children:[ap("ul",{className:o("k-list-ul"),children:e.children}),t&&ap("div",{className:"k-height-container",children:ap("div",{})})]})};import{jsx as Uk}from"react/jsx-runtime";var cw="k-list-group-sticky-header",qk=e=>Uk("div",{className:o(cw,e.className),children:Uk("div",{className:"k-list-header-text",children:e.children})});import{Fragment as pw,jsx as _k,jsxs as mw}from"react/jsx-runtime";var xe=e=>{let{virtualization:t,label:a}=e;return mw(pw,{children:[a&&_k(qk,{children:a}),e.children&&_k(Cl,{virtualization:t,children:e.children})]})};import{jsx as $k}from"react/jsx-runtime";var uw="k-list-group-item",Vk=e=>$k("li",{className:o(uw,e.className),children:$k("span",{className:"k-list-item-text",children:e.children})});import{jsx as gw}from"react/jsx-runtime";var lp="k-list-optionlabel",kw=[l.hover,l.focus,l.selected,l.disabled],fw={},hw={},En=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return gw("div",{...d,className:o(lp,x(lp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};En.states=kw;En.options=fw;En.className=lp;En.defaultOptions=hw;import{jsx as yw}from"react/jsx-runtime";var rp="k-list-custom-value",xw=[l.hover,l.focus,l.selected,l.disabled],bw={},vw={},Je=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return yw("div",{...d,className:o(rp,x(rp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Je.states=xw;Je.options=bw;Je.className=rp;Je.defaultOptions=vw;import{jsx as kR}from"react/jsx-runtime";import{jsx as xR}from"react/jsx-runtime";import{jsx as wR,jsxs as TR}from"react/jsx-runtime";import{jsx as SR,jsxs as IR}from"react/jsx-runtime";import{jsx as ER}from"react/jsx-runtime";import{jsx as KR,jsxs as DR}from"react/jsx-runtime";import{jsx as HR,jsxs as OR}from"react/jsx-runtime";import{jsx as sp,jsxs as Aw}from"react/jsx-runtime";var ef="k-suggestion-group",ww=[],Tw={},tf={scrollable:!0},Sa=e=>{let{scrollable:t=tf.scrollable,...a}=e,r=sp("div",{...a,className:o(ef,e.className),children:e.children});return t?Aw("div",{className:"k-suggestion-scrollwrap",children:[sp(c,{icon:"chevron-left"}),r,sp(c,{icon:"chevron-right"})]}):r};Sa.states=ww;Sa.options=Tw;Sa.className=ef;Sa.defaultOptions=tf;import{jsx as Iw}from"react/jsx-runtime";var Yn="k-suggestion",Nw=[l.active,l.hover,l.focus],Cw={themeColor:[u.base,u.primary,u.secondary]},Sw={text:"Suggestion"},Ia=e=>{let{themeColor:t,active:a,hover:r,focus:s,text:i,...d}=e;return Iw("span",{...d,className:o(e.className,Yn,x(Yn,{hover:r,active:a,focus:s}),C(Yn,{themeColor:t})),children:i})};Ia.states=Nw;Ia.options=Cw;Ia.className=Yn;Ia.item=Sw;import{Fragment as gz,jsx as hz,jsxs as xz}from"react/jsx-runtime";import{Fragment as Tz,jsx as wz,jsxs as Az}from"react/jsx-runtime";import{jsx as of}from"react/jsx-runtime";var vs="k-avatar";var Bw=[l.hover,l.focus,l.active,l.selected,l.disabled],Mw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Ba={type:"text",size:n.medium,rounded:h.full,fillMode:b.solid,themeColor:u.primary,border:!1},eo=e=>{let{size:t=Ba.size,rounded:a=Ba.rounded,fillMode:r=Ba.fillMode,themeColor:s=Ba.themeColor,type:i=Ba.type,border:d=Ba.border,...p}=e;return of("div",{...p,className:o(e.className,vs,C(vs,{size:t,rounded:a,fillMode:r,themeColor:s}),{[`${vs}-bordered`]:d}),children:of("span",{className:`${vs}-${i}`,children:e.children})})};eo.states=Bw;eo.options=Mw;eo.className=vs;eo.defaultOptions=Ba;import{jsx as Kz}from"react/jsx-runtime";import{jsx as zz}from"react/jsx-runtime";import{jsx as Qz}from"react/jsx-runtime";import{jsx as Yw}from"react/jsx-runtime";var ys="k-badge",Lw=[],Ew={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.outline],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},ws={size:n.medium,fillMode:b.solid,themeColor:u.primary,cutoutBorder:!1},Bl=e=>{let{size:t=ws.size,fillMode:a=ws.fillMode,themeColor:r=ws.themeColor,cutoutBorder:s=ws.cutoutBorder,rounded:i,position:d,align:p,...m}=e;return Yw("span",{...m,className:o(e.className,ys,C(ys,{size:t,rounded:i,fillMode:a,themeColor:r}),{[`${ys}-${d}`]:d,[`k-${p}`]:p,[`${ys}-border-cutout`]:s}),children:e.children})};Bl.states=Lw;Bl.options=Ew;Bl.className=ys;Bl.defaultOptions=ws;import{jsx as o0}from"react/jsx-runtime";import{jsx as i0}from"react/jsx-runtime";import{jsx as h0}from"react/jsx-runtime";import{jsx as Ml,jsxs as Kw}from"react/jsx-runtime";var Pn="k-chip",Pw=[l.hover,l.focus,l.active,l.selected,l.disabled],Gw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.outline],themeColor:[u.base,u.success,u.warning,u.error,u.info]},Ll={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,avatarImage:"/packages/html/assets/avatar.jpg"},zt=e=>{let{size:t=Ll.size,rounded:a=Ll.rounded,fillMode:r=Ll.fillMode,themeColor:s=Ll.themeColor,text:i,icon:d,actions:p,showAvatar:m,avatarImage:k=Ll.avatarImage,hover:v,focus:T,active:g,selected:A,disabled:N,...S}=e;return Kw("div",{...S,className:o(e.className,Pn,C(Pn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Pn,{hover:v,focus:T,active:g,disabled:N,selected:A})),children:[d&&Ml(y,{className:"k-chip-icon",icon:d,size:"small"}),m&&Ml(eo,{className:"k-chip-avatar",type:"image",children:Ml("img",{src:k})}),Ml("span",{className:"k-chip-content",children:e.children?e.children:i&&Ml("span",{className:"k-chip-label",children:i})}),p&&Ml("span",{className:"k-chip-actions",children:p})]})};zt.states=Pw;zt.options=Gw;zt.className=Pn;zt.defaultOptions=Ll;import{jsx as Rw}from"react/jsx-runtime";var ip="k-chip-list",Dw=[],Fw={size:[n.small,n.medium,n.large]},lf={size:n.medium},Ht=e=>{let{size:t=lf.size,...a}=e;return Rw("div",{...a,className:o(e.className,ip,C(ip,{size:t})),children:e.children})};Ht.states=Dw;Ht.options=Fw;Ht.className=ip;Ht.defaultOptions=lf;import{jsx as I0}from"react/jsx-runtime";import{jsx as E0}from"react/jsx-runtime";import{jsx as K0}from"react/jsx-runtime";import{jsx as H0}from"react/jsx-runtime";import{Fragment as Z0,jsx as X0,jsxs as J0}from"react/jsx-runtime";import{jsx as rf,jsxs as Ow}from"react/jsx-runtime";var sf="k-color-preview",zw=[],Hw={},Do=e=>{let{color:t,iconName:a,...r}=e;return Ow("span",{...r,className:o(e.className,sf,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&rf(y,{icon:a,className:"k-color-preview-icon"}),rf("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Do.states=zw;Do.options=Hw;Do.className=sf;import{Fragment as np,jsx as nf,jsxs as Kn}from"react/jsx-runtime";var dp="k-loader",Ww={pulsing:"pulsing-2","infinite-spinner":"spinner-3","converging-spinner":"spinner-4"},Qw=[],Vw={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]},Dn={size:n.medium,themeColor:u.primary,animation:"pulsing"},Fo=e=>{let{size:t=Dn.size,themeColor:a=Dn.themeColor,animation:r=Dn.animation,...s}=e,i=nf("span",{className:"k-loader-segment"});return nf("div",{...s,className:o(e.className,dp,{[`k-loader-${Ww[r]||r}`]:r},C(dp,{size:t,themeColor:a})),children:Kn("div",{className:"k-loader-canvas",children:[r==="pulsing"&&Kn(np,{children:[i,i]}),r==="infinite-spinner"&&Kn(np,{children:[i,i,i]}),r==="converging-spinner"&&Kn(np,{children:[i,i,i,i]})]})})};Fo.states=Qw;Fo.options=Vw;Fo.className=dp;Fo.defaultOptions=Dn;var df=Fo;import{jsx as cp,jsxs as cf}from"react/jsx-runtime";var pp="k-loader-container",Xw=[],Zw={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]},La={size:n.medium,themeColor:u.primary,loaderType:"pulsing",position:"top",overlay:"dark",panel:!1},Ts=e=>{let{size:t=La.size,themeColor:a=La.themeColor,loaderType:r=La.loaderType,position:s=La.position,overlay:i=La.overlay,panel:d=La.panel,...p}=e;return cf("div",{...p,className:o(e.className,pp,C(pp,{size:t}),{[`k-loader-${s}`]:s}),children:[cp("div",{className:`k-loader-container-overlay k-overlay-${i}`}),cf("div",{className:o("k-loader-container-inner",{"k-loader-container-panel":d}),children:[cp(df,{size:t,themeColor:a,animation:r}),cp("div",{className:`k-loader-container-label !k-text-${a}`,children:"Loading..."})]})]})};Ts.states=Xw;Ts.options=Zw;Ts.className=pp;Ts.defaultOptions=La;import{jsx as vH}from"react/jsx-runtime";import{jsx as AH}from"react/jsx-runtime";import{jsx as IH}from"react/jsx-runtime";import{jsx as EH}from"react/jsx-runtime";import{jsx as Uw}from"react/jsx-runtime";var pf="k-skeleton",Jw=[],jw={},mp={shape:"text",animation:"pulse"},Ro=e=>{let{shape:t=mp.shape,animation:a=mp.animation,...r}=e;return Uw("span",{...r,className:o(e.className,pf,{[`k-skeleton-${t}`]:t,[`k-skeleton-${a}`]:a}),style:e.style})};Ro.states=Jw;Ro.options=jw;Ro.className=pf;Ro.defaultOptions=mp;import{jsx as XH}from"react/jsx-runtime";import{jsx as qw}from"react/jsx-runtime";var mf=e=>qw(Ro,{shape:"rect",...e});import{jsx as $H}from"react/jsx-runtime";import{jsx as As,jsxs as up}from"react/jsx-runtime";var kp="k-form-field",_w=[l.disabled],We=e=>{let{label:t,orientation:a,optional:r,editor:s,hint:i,error:d,info:p,disabled:m,dir:k,colSpan:v}=e;return up("div",{className:o(kp,e.className,x(kp,{disabled:m}),{[`k-col-span-${v}`]:v}),dir:k,children:[t&&up("label",{className:o("k-label","k-form-label"),children:[t,r&&As("span",{className:"k-label-optional",children:"(Optional)"}),p&&As("span",{className:"k-field-info",children:"(field info)"})]}),a==="horizontal"&&!t&&As("span",{className:"k-label k-form-label k-label-empty"}),up("div",{className:"k-form-field-wrap",children:[s,i&&As("div",{className:"k-form-hint",children:i}),d&&As("div",{className:"k-form-error",children:d})]})]})};We.states=_w;We.className=kp;import{Fragment as $w,jsx as fp,jsxs as eT}from"react/jsx-runtime";var uf="k-form-fieldset",to=e=>{let{legend:t,layout:a,cols:r,gutters:s,colSpan:i}=e;return eT("fieldset",{className:o(uf,{[`k-col-span-${i}`]:i}),children:[t&&fp("legend",{className:"k-form-legend",children:t}),a==="grid"?fp("div",{className:o("k-form-layout","k-d-grid",{[`k-grid-cols-${r}`]:r}),style:{...typeof s=="string"&&{gap:s},...typeof s=="object"&&s.rows&&{rowGap:s.rows},...typeof s=="object"&&s.cols&&{columnGap:s.cols}},children:e.children}):fp($w,{children:e.children})]})};to.className=uf;import{Fragment as aT,jsx as Ns,jsxs as lT}from"react/jsx-runtime";import{createElement as hp}from"react";var Fn="k-form",tT=[],oT={size:[n.small,n.medium,n.large]},Rn={size:n.medium,layout:"basic",tag:"form"},vo=e=>{let{size:t=Rn.size,orientation:a,layout:r=Rn.layout,formButtons:s,cols:i,gutters:d,tag:p=Rn.tag,children:m}=e,k=({tag:T,className:g,children:A})=>T==="form"?Ns("form",{className:g,children:A}):Ns("div",{className:g,children:A}),v=[];return m&&(Array.isArray(m)?m.map((T,g)=>{T.type===We?v.push(hp(We,{...T.props,orientation:a,key:g})):v.push(T)}):m.type===We?v.push(hp(We,{...m.props,orientation:a,key:`${new Date().getTime()}`})):m.type===to&&v.push(hp(to,{...m.props,key:`${new Date().getTime()}`}))),lT(k,{tag:p,className:o(e.className,Fn,C(Fn,{size:t}),{[`${Fn}-${a}`]:a}),children:[r==="grid"?Ns("div",{className:o("k-form-layout","k-d-grid",{[`k-grid-cols-${i}`]:i}),style:{...typeof d=="string"&&{gap:d},...typeof d=="object"&&d.rows&&{rowGap:d.rows},...typeof d=="object"&&d.cols&&{columnGap:d.cols}},children:v}):Ns(aT,{children:v}),s&&Ns("div",{className:"k-form-buttons",children:s})]})};vo.states=tT;vo.options=oT;vo.className=Fn;vo.defaultOptions=Rn;import{jsx as sT}from"react/jsx-runtime";var rT="k-actionsheet-footer",kf={alignment:"stretched",orientation:"horizontal"},Ot=e=>{let{alignment:t=kf.alignment,orientation:a=kf.orientation,template:r,as:s=r?"div":W,...i}=e;return sT(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,rT),children:e.children})};import{jsx as Cs,jsxs as dT}from"react/jsx-runtime";var ff="k-searchbox",iT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],nT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},gp={showIcon:!0,icon:"search",size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},De=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:T,disabled:g,showIcon:A=gp.showIcon,icon:N=gp.icon,...S}=e;return dT(M,{...S,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:T,disabled:g,className:o(e.className,ff),children:[A&&Cs(y,{className:"k-input-icon",icon:N}),Cs(se,{placeholder:a,value:t}),Cs(J,{...e}),Cs(X,{...e}),Cs(te,{...e})]})};De.states=iT;De.options=nT;De.className=ff;De.defaultOptions=gp;import{jsx as M8}from"react/jsx-runtime";import{Fragment as hf,jsx as zo,jsxs as xp}from"react/jsx-runtime";var gf="k-textbox",cT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],pT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ea={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},Z=e=>{let{size:t=Ea.size,rounded:a=Ea.rounded,fillMode:r=Ea.fillMode,separators:s=Ea.separators,showClearButton:i=Ea.showClearButton,showValidationIcon:d=Ea.showValidationIcon,prefix:p,suffix:m,type:k,value:v,placeholder:T,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,...H}=e;return xp(M,{...H,size:t,rounded:a,fillMode:r,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,className:o(e.className,gf),children:[p&&xp(hf,{children:[zo($,{children:p}),s&&zo(ge,{})]}),zo(se,{placeholder:T,value:v,type:k}),d&&zo(X,{valid:N,invalid:S,loading:L,disabled:E}),zo(J,{loading:L,disabled:E}),i&&zo(te,{loading:L,disabled:E,readonly:D,value:v}),m&&xp(hf,{children:[s&&zo(ge,{}),zo(ee,{children:m})]})]})};Z.states=cT;Z.options=pT;Z.className=gf;Z.defaultOptions=Ea;import{jsx as H8}from"react/jsx-runtime";import{Fragment as Z8,jsx as X8}from"react/jsx-runtime";import{Fragment as $8,jsx as _8}from"react/jsx-runtime";import{jsx as Ho,jsxs as bp}from"react/jsx-runtime";var vf="k-actionsheet-titlebar",mT={},ae=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:v,...T}=e;return bp("div",{...T,className:o(e.className,vf),children:[bp("div",{className:"k-actionsheet-titlebar-group",children:[r&&Ho("div",{className:"k-actionsheet-actions",children:r}),!v&&bp("div",{className:"k-actionsheet-title",children:[t&&Ho("div",{className:"k-text-center",children:t}),a&&Ho("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),v&&Ho("div",{className:"k-actionsheet-title",children:v}),s&&Ho("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Ho("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Ho(Z,{value:p,placeholder:m,size:k?"large":"medium"}):Ho(De,{placeholder:"Filter",size:k?"large":"medium"})})]})};ae.className=vf;ae.defaultOptions=mT;import{jsx as vp,jsxs as hT}from"react/jsx-runtime";var yp="k-actionsheet-view",uT=[],kT={},fT={},El=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===ae&&vp(ae,{adaptive:t,...s?.props}),m=i?.type===Ot&&vp(Ot,{...i?.props});return hT("div",{...d,className:o(e.className,yp,{[`${yp}-animated`]:a}),children:[p,vp("div",{className:"k-actionsheet-content",children:r}),m]})};El.states=uT;El.options=kT;El.className=yp;El.defaultOptions=fT;import{jsx as zn,jsxs as bT}from"react/jsx-runtime";var yf="k-actionsheet",gT=[],xT={},Ss={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ie=e=>{let{side:t=Ss.side,fullscreen:a=Ss.fullscreen,adaptive:r=Ss.adaptive,overlay:s=Ss.overlay,template:i,children:d,header:p,footer:m,...k}=e;return bT("div",{className:"k-actionsheet-container",children:[s&&zn("div",{className:"k-overlay"}),zn(Ko,{animationStyle:{[`${a===!0?"top":t}`]:0,[`${a===!0?"width":null}`]:"100%",[`${a===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:zn("div",{...k,className:o(e.className,yf,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||zn(El,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};ie.states=gT;ie.options=xT;ie.className=yf;ie.defaultOptions=Ss;import{jsx as TO}from"react/jsx-runtime";import{Fragment as yT,jsx as Is,jsxs as wp}from"react/jsx-runtime";var Tp="k-actionsheet-item",vT=[l.hover,l.focus,l.selected,l.disabled],Ap=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return wp("span",{...m,className:o(e.className,Tp,x(Tp,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&Is(yT,{children:wp("span",{className:"k-actionsheet-action",children:[t&&Is("span",{className:"k-icon-wrap",children:Is(y,{className:"k-actionsheet-item-icon",icon:t})}),wp("span",{className:"k-actionsheet-item-text",children:[a&&Is("span",{className:"k-actionsheet-item-title",children:a}),r&&Is("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};Ap.states=vT;Ap.className=Tp;import{jsx as EO,jsxs as YO}from"react/jsx-runtime";import{jsx as DO}from"react/jsx-runtime";import{jsx as HO}from"react/jsx-runtime";import{jsx as VO}from"react/jsx-runtime";import{Fragment as AT,jsx as rt,jsxs as Np}from"react/jsx-runtime";var Tf="k-dropdownlist",wT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],TT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Yl={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:h.medium,fillMode:b.solid},le=e=>{let{size:t=Yl.size,rounded:a=Yl.rounded,fillMode:r=Yl.fillMode,arrowIconName:s=Yl.arrowIconName,showValue:i=Yl.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:v,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:E,popup:D,opened:H,adaptive:he,adaptiveSettings:Pe,adaptiveTitle:$e,adaptiveSubtitle:Ft,adaptiveFilter:wa,...wl}=e;return Np(AT,{children:[Np(bt,{...wl,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:E,className:o(e.className,Tf,{"k-icon-picker":!i&&d}),children:[rt($,{children:p}),rt(bo,{placeholder:v,value:k,showValue:i,valueIconName:d}),rt(X,{valid:A,invalid:N,loading:B,disabled:L}),rt(J,{loading:B,disabled:L}),rt(ee,{children:m}),rt(c,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),H&&D&&rt(F,{className:"k-list-container k-dropdownlist-popup",children:D}),he&&rt(ie,{adaptive:!0,...Pe,header:rt(ae,{actionsEnd:rt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:wa,inputValue:k,inputPlaceholder:v,title:$e,subtitle:Ft}),children:rt("div",{className:"k-list-container",children:Np(Q,{size:"large",children:[rt(P,{text:"List item"}),rt(P,{text:"List item"}),rt(P,{text:"List item"})]})})})]})};le.states=wT;le.options=TT;le.className=Tf;le.defaultOptions=Yl;import{jsx as fW}from"react/jsx-runtime";import{jsx as vW,jsxs as yW}from"react/jsx-runtime";import{Fragment as BW,jsx as SW,jsxs as IW}from"react/jsx-runtime";import{jsx as YW}from"react/jsx-runtime";import{jsx as FW,jsxs as RW}from"react/jsx-runtime";import{jsx as QW,jsxs as VW}from"react/jsx-runtime";import{Fragment as $W,jsx as qW,jsxs as _W}from"react/jsx-runtime";import{Fragment as iQ,jsx as rQ,jsxs as sQ}from"react/jsx-runtime";import{jsx as Af}from"react/jsx-runtime";var Hn="k-radio",NT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked],CT={size:[n.small,n.medium,n.large]},Nf={size:n.medium},yo=e=>{let{id:t,checked:a,hover:r,focus:s,disabled:i,invalid:d,valid:p,required:m,size:k=Nf.size,...v}=e;return Af("span",{className:"k-radio-wrap",children:Af("input",{...v,id:t,type:"radio",checked:a,required:m,className:o(e.className,Hn,C(Hn,{size:k}),x(Hn,{hover:r,focus:s,disabled:i,invalid:d,valid:p,checked:a}))})})};yo.states=NT;yo.options=CT;yo.className=Hn;yo.defaultOptions=Nf;import{jsx as BT}from"react/jsx-runtime";var Cf="k-radio-list",ST=[],IT={},Sf={layout:"vertical"},Pl=e=>{let{layout:t=Sf.layout,...a}=e;return BT("ul",{...a,className:o(e.className,Cf,{[`k-list-${t}`]:t}),children:e.children})};Pl.states=ST;Pl.options=IT;Pl.className=Cf;Pl.defaultOptions=Sf;import{jsx as YT}from"react/jsx-runtime";var If="k-radio-list-item",MT=[],LT={},ET={},Gl=e=>{let{...t}=e;return YT("li",{...t,className:o(e.className,If),children:e.children})};Gl.states=MT;Gl.options=LT;Gl.className=If;Gl.defaultOptions=ET;import{jsx as MQ}from"react/jsx-runtime";import{Fragment as GQ,jsx as PQ,jsxs as KQ}from"react/jsx-runtime";import{Fragment as HQ,jsx as zQ,jsxs as OQ}from"react/jsx-runtime";import{Fragment as JQ,jsx as XQ,jsxs as ZQ}from"react/jsx-runtime";import{Fragment as $Q,jsx as _Q,jsxs as eV}from"react/jsx-runtime";import{Fragment as rV,jsx as lV,jsxs as sV}from"react/jsx-runtime";import{Fragment as GT,jsx as st,jsxs as Kl}from"react/jsx-runtime";var On=({size:e,...t})=>st(vo,{formButtons:Kl(GT,{children:[st(c,{className:"k-form-submit",themeColor:"primary",size:e,children:"Submit"}),st(c,{className:"k-form-clear",size:e,children:"Clear"})]}),children:Kl(to,{legend:"Form Legend",children:[st(We,{label:"Label",editor:st(Z,{size:e})}),st(We,{label:"Label",hint:"Hint text",editor:st(le,{value:"Dropdown List",size:e})}),st(We,{label:"City",editor:Kl("ul",{className:"k-radio-list k-list-horizontal",children:[Kl("li",{className:"k-radio-list-item",children:[st(yo,{checked:!0,size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Kl("li",{className:"k-radio-list-item",children:[st(yo,{size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Kl("li",{className:"k-radio-list-item",children:[st(yo,{size:e}),st("label",{className:"k-radio-label",children:"Label"})]})]})})]}),size:e,...t});import{Fragment as EV,jsx as LV,jsxs as YV}from"react/jsx-runtime";import{Fragment as zV,jsx as RV,jsxs as HV}from"react/jsx-runtime";import{jsx as FT}from"react/jsx-runtime";var Bs="k-button-group",KT=[l.disabled],DT={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},Bf={fillMode:b.solid},Y=e=>{let{fillMode:t=Bf.fillMode,disabled:a,stretched:r,...s}=e;return FT("div",{...s,className:o(e.className,Bs,C(Bs,{fillMode:t}),x(Bs,{disabled:a}),{[`${Bs}-stretched`]:r}),children:e.children})};Y.states=KT;Y.options=DT;Y.className=Bs;Y.defaultOptions=Bf;import{Fragment as a6,jsx as o6,jsxs as l6}from"react/jsx-runtime";import{Fragment as c6,jsx as d6,jsxs as p6}from"react/jsx-runtime";import{Fragment as g6,jsx as h6,jsxs as x6}from"react/jsx-runtime";import{Fragment as A6,jsx as T6,jsxs as N6}from"react/jsx-runtime";import{Fragment as HT,jsx as Mf,jsxs as OT}from"react/jsx-runtime";var Lf="k-menu-button",RT=[l.hover,l.focus,l.active,l.selected,l.disabled],zT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Pa={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!0,arrowIconName:"caret-alt-down"},U=e=>{let{size:t=Pa.size,rounded:a=Pa.rounded,fillMode:r=Pa.fillMode,themeColor:s=Pa.themeColor,hover:i,focus:d,active:p,selected:m,disabled:k,icon:v,text:T,showArrow:g=Pa.showArrow,arrowIconName:A=Pa.arrowIconName,popup:N,opened:S,...B}=e;return OT(HT,{children:[Mf(c,{...B,className:o(e.className,Lf),text:T,size:t,rounded:a,fillMode:r,themeColor:s,hover:i,focus:d,active:p,selected:m,disabled:k,icon:v,showArrow:g,arrowIconName:A}),S&&N&&Mf(F,{className:"k-menu-popup",children:N})]})};U.states=RT;U.options=zT;U.className=Lf;U.defaultOptions=Pa;import{jsx as z6}from"react/jsx-runtime";import{jsx as Q6}from"react/jsx-runtime";import{jsx as J6}from"react/jsx-runtime";import{Fragment as VT,jsx as Dl,jsxs as Ef}from"react/jsx-runtime";var Ip="k-menu-item",WT=[l.hover,l.focus,l.active,l.selected,l.disabled],QT={},Yf={iconPosition:"before"},Qe=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:d,text:p,first:m,last:k,showArrow:v,arrowIconName:T,iconPosition:g=Yf.iconPosition,dir:A,children:N,...S}=e,B=Dl(VT,{});N&&N.forEach(E=>{if(E.type==="MenuItemContent"){B.props.children.push(E);return}});let L=T;return L||(L=A==="rtl"?"caret-alt-left":"caret-alt-right"),Ef("li",{...S,className:o(e.className,Ip,"k-item",x(Ip,{focus:a,disabled:i,hover:t,active:r,selected:s}),{"k-first":m,"k-last":k}),children:[Ef("span",{className:o("k-link k-menu-link"),children:[d&&g==="before"&&Dl(y,{className:"k-menu-link-icon",icon:d}),Dl("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&Dl(y,{className:"k-menu-link-icon",icon:d}),v&&Dl("span",{className:"k-menu-expand-arrow",children:Dl(y,{icon:L})})]}),B]})};Qe.states=WT;Qe.options=QT;Qe.className=Ip;Qe.defaultOptions=Yf;import{Fragment as JT,jsx as Fl,jsxs as Pf}from"react/jsx-runtime";var Bp="k-menu-item",XT=[l.hover,l.focus,l.active,l.selected,l.disabled],ZT={},Mp={dir:"ltr",iconPosition:"before"},Wt=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:d,text:p,first:m,last:k,showArrow:v,arrowIconName:T,iconPosition:g=Mp.iconPosition,dir:A=Mp.dir,children:N,popup:S,...B}=e,L=Fl(JT,{});N&&N.forEach(D=>{if(D.type==="MenuListItemContent"){L.props.children.push(D);return}});let E=T;return E||(E=A==="rtl"?"caret-alt-left":"caret-alt-right"),Pf("li",{...B,className:o(e.className,Bp,"k-item",x(Bp,{focus:a,disabled:i}),{"k-first":m,"k-last":k}),children:[Pf("span",{className:o("k-link k-menu-link",x("k-menu-link",{hover:t,active:r,selected:s,disabled:i})),children:[d&&g==="before"&&Fl(y,{className:"k-menu-link-icon",icon:d}),Fl("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&Fl(y,{className:"k-menu-link-icon",icon:d}),v&&Fl("span",{className:"k-menu-expand-arrow",children:Fl(y,{icon:E})})]}),L,S]})};Wt.states=XT;Wt.options=ZT;Wt.className=Bp;Wt.defaultOptions=Mp;import{jsx as _T}from"react/jsx-runtime";var Gf="k-menu-scroll-wrapper",jT=[],UT={},qT={},Ms=e=>{let{className:t,children:a,orientation:r,...s}=e;return _T("div",{...s,className:o(t,Gf,{"k-menu-scroll-wrapper-vertical":r==="vertical"}),children:a})};Ms.states=jT;Ms.options=UT;Ms.className=Gf;Ms.defaultOptions=qT;var Kf=Ms;import{Fragment as Lp,jsx as Ga,jsxs as Wn}from"react/jsx-runtime";var Ep="k-menu",$T=[],eA={},Qn={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},Qt=e=>{let{children:t,orientation:a=Qn.orientation,header:r=Qn.header,scrollable:s,scrollButtonsPosition:i=Qn.scrollButtonsPosition,wrapperStyles:d,dir:p,popup:m,...k}=e,v={horizontal:{prev:p!=="rtl"?"left":"right",next:p!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},T=Ga("ul",{dir:p,...k,className:o(e.className,"k-reset",Ep,{[`${Ep}-${a}`]:a,"k-header":r}),children:t});return Wn(Lp,{children:[s?Wn(Kf,{orientation:a,style:d,dir:e.dir,children:[i==="start"&&Wn(Lp,{children:[Ga(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Ga(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),i==="around"&&Ga(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),T,i==="end"&&Wn(Lp,{children:[Ga(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Ga(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),i==="around"&&Ga(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}):T,m]})};Qt.states=$T;Qt.options=eA;Qt.className=Ep;Qt.defaultOptions=Qn;import{jsx as tA}from"react/jsx-runtime";var Yp="k-separator",Df={orientation:"horizontal"},Ls=e=>{let{orientation:t=Df.orientation,...a}=e;return tA("li",{...a,className:o(e.className,"k-item",Yp,{[`${Yp}-${t}`]:t})})};Ls.className=Yp;Ls.defaultOptions=Df;import{Fragment as g3,jsx as x3}from"react/jsx-runtime";import{jsx as Ff}from"react/jsx-runtime";import{createElement as lA}from"react";var Pp="k-menu-group",oA=[],aA={size:[n.small,n.medium,n.large]},Gp={size:n.medium,dir:"ltr"},wo=e=>{let{children:t,size:a=Gp.size,dir:r=Gp.dir,...s}=e,i=[];return t&&Array.isArray(t)&&t.map((d,p)=>{d.type===Wt?i.push(lA(Wt,{...d.props,dir:r,key:p})):d.type===Ls?i.push(Ff(Ls,{})):i.push(d)}),Ff("ul",{...s,className:o(e.className,Pp,C(Pp,{size:a})),children:i})};wo.states=oA;wo.options=aA;wo.className=Pp;wo.defaultOptions=Gp;import{Fragment as I3,jsx as S3,jsxs as B3}from"react/jsx-runtime";import{Fragment as K3,jsx as P3,jsxs as G3}from"react/jsx-runtime";import{Fragment as H3,jsx as z3,jsxs as O3}from"react/jsx-runtime";import{Fragment as Z3,jsx as X3,jsxs as J3}from"react/jsx-runtime";import{Fragment as $3,jsx as _3,jsxs as eX}from"react/jsx-runtime";import{jsx as xX,jsxs as bX}from"react/jsx-runtime";import{Fragment as iA,jsx as Kp,jsxs as Rf}from"react/jsx-runtime";var Dp="k-split-button",rA=[l.hover,l.focus,l.active,l.selected,l.disabled],sA={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Rl={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,arrowIconName:"caret-alt-down"},Ne=e=>{let{size:t=Rl.size,rounded:a=Rl.rounded,fillMode:r=Rl.fillMode,themeColor:s=Rl.themeColor,hover:i,focus:d,active:p,selected:m,disabled:k,icon:v,text:T,arrowIconName:g=Rl.arrowIconName,popup:A,opened:N,...S}=e;return Rf(iA,{children:[Rf("div",{...S,className:o(e.className,Dp,"k-button-group",C(Dp,{rounded:a})),children:[Kp(c,{text:T,icon:v,size:t,rounded:a,fillMode:r,themeColor:s,hover:i,focus:d,active:p,selected:m,disabled:k,children:e.children}),Kp(c,{className:"k-split-button-arrow",icon:g,size:t,rounded:a,fillMode:r,disabled:k})]}),N&&A&&Kp(F,{className:"k-menu-popup",children:A})]})};Ne.states=rA;Ne.options=sA;Ne.className=Dp;Ne.defaultOptions=Rl;var Fp=Ne;import{jsx as PX}from"react/jsx-runtime";import{jsx as FX}from"react/jsx-runtime";import{jsx as OX}from"react/jsx-runtime";imp