@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 290 kB
JavaScript
var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>o({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),x=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},h={small:"small",medium:"medium",large:"large",full:"full"},b={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"},gt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{jsx as Pv}from"react/jsx-runtime";var yn="k-input",Ev=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Yv={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},wn={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=wn.size,rounded:k=wn.rounded,fillMode:v=wn.fillMode,...T}=e;return Pv("span",{...T,className:o(e.className,yn,C(yn,{size:m,rounded:k,fillMode:v}),x(yn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=Ev;M.options=Yv;M.className=yn;M.defaultOptions=wn;import{jsx as Dv}from"react/jsx-runtime";var Tn="k-picker",Gv=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Kv={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},An={size:n.medium,rounded:h.medium,fillMode:b.solid},xt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=An.size,rounded:k=An.rounded,fillMode:v=An.fillMode,...T}=e;return Dv("span",{...T,className:o(e.className,Tn,C(Tn,{size:m,rounded:k,fillMode:v}),x(Tn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};xt.states=Gv;xt.options=Kv;xt.className=Tn;xt.defaultOptions=An;import{Fragment as Hv,jsx as fk}from"react/jsx-runtime";var Rc="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={},ps=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?fk("span",{...d,className:o(e.className,Rc,C(Rc,{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"})}):fk(Hv,{})};ps.states=Fv;ps.options=Rv;ps.className=Rc;ps.defaultOptions=zv;var hk=ps;import{Fragment as Qv,jsx as Nn}from"react/jsx-runtime";var zc="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]},gk={viewBox:"0 0 24 24"},ms=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=gk.viewBox,icon:d,...p}=e;if(!d)return Nn(Qv,{});d==="none"&&{...p,className:o(e.className,zc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return Nn("span",{...p,className:o(e.className,zc,C("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${a}`]:a,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),children:Nn("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})})};ms.states=Ov;ms.options=Wv;ms.className=zc;ms.defaultOptions=gk;var Hc=ms;import*as xk from"@progress/kendo-svg-icons";import{Fragment as bk,jsx as us}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]},Oc={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:a,icon:r,type:s=Oc.type,rotate:i,flip:d,viewBox:p=Oc.viewBox,...m}=e;if(!r)return us(bk,{});if(s==="svg"){if(r==="none")return us(Hc,{...m,icon:r,size:t});let k=Vv(`${r}-icon`);return xk[k]?us(Hc,{...m,icon:xk[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):us(bk,{})}return us(hk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};y.states=Xv;y.options=Zv;y.defaultOptions=Oc;var Wc=y;import{Fragment as Uv,jsx as Qc}from"react/jsx-runtime";var vk="k-clear-value",Jv=[l.disabled,l.loading,l.readonly],jv={},te=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Qc(Uv,{}):Qc("span",{className:o(e.className,vk),children:Qc(y,{icon:"x"})})};te.states=Jv;te.options=jv;te.className=vk;import{jsx as $v}from"react/jsx-runtime";var Vc="k-input-inner",qv=[],_v={},Cn={type:"text",autocomplete:"off",value:"",placeholder:""},se=e=>{let{value:t=Cn.value,type:a=Cn.type,placeholder:r=Cn.placeholder,autocomplete:s=Cn.autocomplete,...i}=e;return $v("input",{...i,type:a,className:o(e.className,Vc,C(Vc,e)),placeholder:r,autoComplete:s,defaultValue:t})};se.states=qv;se.options=_v;se.className=Vc;import{jsx as yk,jsxs as oy}from"react/jsx-runtime";var Xc="k-input-inner",ey=[],ty={},bo=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return oy("span",{...d,className:o(e.className,Xc,C(Xc,e)),children:[s,!s&&i&&yk(y,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&yk("span",{className:"k-input-value-text",children:t})]})};bo.states=ey;bo.options=ty;bo.className=Xc;import{jsx as ry}from"react/jsx-runtime";var Zc="k-input-inner",ay=[],ly={},wk={value:"",placeholder:""},ks=e=>{let{value:t=wk.value,placeholder:a=wk.placeholder,rows:r,...s}=e;return ry("textarea",{...s,className:o(e.className,Zc,C(Zc,e)),placeholder:a,rows:r,defaultValue:t})};ks.states=ay;ks.options=ly;ks.className=Zc;import{Fragment as iy,jsx as Tk}from"react/jsx-runtime";var Ak="k-input-loading-icon",sy=[l.disabled,l.loading],J=e=>{let{disabled:t,loading:a}=e;return t||!a?Tk(iy,{}):Tk("span",{className:o(e.className,Ak,"k-icon k-i-loading")})};J.states=sy;J.className=Ak;import{Fragment as cy,jsx as Nk}from"react/jsx-runtime";var Ck="k-input-validation-icon",ny=[l.valid,l.invalid,l.disabled,l.loading],dy={},X=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Nk(cy,{}):Nk(y,{className:o(Ck),icon:i})};X.states=ny;X.options=dy;X.className=Ck;import{Fragment as uy,jsx as Sk}from"react/jsx-runtime";var py="k-input-prefix",my={direction:"horizontal"},$=e=>{let{direction:t=my.direction,...a}=e;return e.children?Sk("span",{...a,className:o(py,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Sk(uy,{})};import{Fragment as hy,jsx as Ik}from"react/jsx-runtime";var ky="k-input-suffix",fy={direction:"horizontal"},ee=e=>{let{direction:t=fy.direction,...a}=e;return e.children?Ik("span",{...a,className:o(ky,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ik(hy,{})};import{jsx as iK}from"react/jsx-runtime";import{jsx as pK}from"react/jsx-runtime";import{jsx as xy}from"react/jsx-runtime";var Bk="k-input-separator",gy={direction:"vertical"},ge=e=>{let{direction:t=gy.direction,...a}=e;return xy("span",{...a,className:o(Bk,e.className,{[`${Bk}-${t}`]:t})})};import{Fragment as yy,jsx as fs,jsxs as Mk}from"react/jsx-runtime";var Sn="k-button",by=[l.hover,l.focus,l.active,l.selected,l.disabled],vy={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]},Ta={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Ta.size,rounded:a=Ta.rounded,fillMode:r=Ta.fillMode,themeColor:s=Ta.themeColor,showArrow:i=Ta.showArrow,arrowIconName:d=Ta.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 Mk("button",{...S,className:o(e.className,Sn,C(Sn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Sn,{hover:p,focus:m,active:k,disabled:T,selected:v}),{"k-icon-button":!A&&!L&&B}),children:[g&&fs(y,{className:o(N,"k-button-icon"),icon:g}),A?Mk(yy,{children:[A&&fs("span",{className:"k-button-text",children:A}),e.children]}):e.children&&fs("span",{className:"k-button-text",children:e.children}),i&&fs("span",{className:"k-menu-button-arrow k-button-arrow",children:fs(y,{icon:d})})]})};c.states=by;c.options=vy;c.className=Sn;c.defaultOptions=Ta;import{jsx as wy}from"react/jsx-runtime";var Ze=e=>wy(c,{icon:"folder",...e,children:void 0});import{jsx as Ty}from"react/jsx-runtime";var Rt=e=>Ty(c,{icon:"folder",children:"Button",...e});import{jsx as OK}from"react/jsx-runtime";import{jsx as Lk}from"react/jsx-runtime";var Ek="k-animation-container",Ay=[],Ny={},Yk={positionMode:"absolute"},Go=e=>{let{positionMode:t=Yk.positionMode,animationStyle:a,offset:r,...s}=e;return Lk("div",{...s,style:{...r,...e.style},className:o(e.className,Ek,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Lk("div",{className:"k-child-animation-container",style:a,children:e.children})})};Go.states=Ay;Go.options=Ny;Go.className=Ek;Go.defaultOptions=Yk;import{jsx as Pk}from"react/jsx-runtime";var Gk="k-popup",Cy=[],Sy={},Kk={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:a=Kk.positionMode,animationStyle:r,...s}=e;return Pk(Go,{positionMode:a,offset:t,animationStyle:r,children:Pk("div",{...s,className:o(e.className,Gk),children:e.children})})};F.states=Cy;F.options=Sy;F.className=Gk;F.defaultOptions=Kk;import{jsx as Jc,jsxs as My}from"react/jsx-runtime";var jc="k-calendar",Iy=[],By={size:[n.small,n.medium,n.large]},Al={size:n.medium,showCalendarHeader:!0,orientation:"horizontal",calendarView:"month",calendarTitleText:"October 2021"},bt=e=>{let{size:t=Al.size,orientation:a=Al.orientation,calendarView:r=Al.calendarView,calendarTitleText:s=Al.calendarTitleText,showCalendarHeader:i=Al.showCalendarHeader,showWeek:d,showCalendarFooter:p,calendarFooterText:m,dir:k,...v}=e;return My("div",{...v,dir:k,className:o(e.className,jc,C(jc,{size:t}),{"k-week-number":d}),children:[i&&Jc(Aa,{calendarView:r,showToday:!p,calendarTitleText:s,orientation:a,size:t,dir:k}),Jc(In,{calendarView:r,orientation:a,children:e.children}),p&&Jc(hs,{calendarFooterText:m,size:t})]})};bt.states=Iy;bt.options=By;bt.className=jc;bt.defaultOptions=Al;import{Fragment as Ey,jsx as gs,jsxs as Yy}from"react/jsx-runtime";var Ly=[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?gs("th",{...L,className:o(H),children:t}):d?gs("td",{...L,className:o(H),children:t}):gs("td",{...L,className:o(H),children:T&&!i?gs(Ey,{children:"\xA0"}):Yy("span",{className:"k-link",children:[t,v&&gs("span",{className:"k-day-indicator"})]})})};w.states=Ly;import{jsx as xs,jsxs as Dk}from"react/jsx-runtime";var Fk="k-calendar-header",Py={size:[n.small,n.medium,n.large]},Nl={calendarTitleText:"October 2021",showToday:!0,showNavigationButtons:!0,orientation:"horizontal",size:n.medium},Aa=e=>{let{calendarTitleText:t=Nl.calendarTitleText,showToday:a=Nl.showToday,showNavigationButtons:r=Nl.showNavigationButtons,orientation:s=Nl.orientation,size:i=Nl.size,calendarView:d,dir:p,...m}=e,k=p==="rtl"?"chevron-right":"chevron-left",v=p==="rtl"?"chevron-left":"chevron-right";return Dk("div",{...m,className:o(e.className,Fk,{"k-vstack":s==="vertical"}),children:[xs(c,{disabled:d==="century",className:"k-calendar-title",text:t,size:i,fillMode:"flat",themeColor:"primary"}),xs("span",{className:"k-spacer"}),Dk("span",{className:"k-calendar-nav",children:[r&&xs(c,{className:"k-calendar-nav-prev",icon:k,size:i,fillMode:"flat"}),a&&xs(c,{size:i,fillMode:"flat",className:"k-calendar-nav-today",children:"Today"}),r&&xs(c,{className:"k-calendar-nav-next",icon:v,size:i,fillMode:"flat"})]})]})};Aa.options=Py;Aa.className=Fk;Aa.defaultOptions=Nl;import{jsx as Rk}from"react/jsx-runtime";var zk="k-calendar-footer",Gy={size:[n.small,n.medium,n.large]},Uc={size:n.medium,calendarFooterText:"Tuesday, October 12, 2021"},hs=e=>{let{size:t=Uc.size,calendarFooterText:a=Uc.calendarFooterText,...r}=e;return Rk("div",{...r,className:o(e.className,zk),children:Rk(c,{size:t,fillMode:"flat",themeColor:"primary",className:"k-calendar-nav-today",children:a})})};hs.options=Gy;hs.className=zk;hs.defaultOptions=Uc;import{jsx as Fy}from"react/jsx-runtime";var Ky=[],Dy={},Hk=e=>{let{type:t,...a}=e,r=t==="p"?"paragraph":t,s=t.includes("display")?"div":t;return Fy(s,{...a,className:o(e.className,{[`k-${r}`]:t}),children:e.children})};Hk.states=Ky;Hk.options=Dy;import{jsx as Hy}from"react/jsx-runtime";var Bn="k-actions",Ry=[],zy={},qc={alignment:"start",orientation:"horizontal"},W=e=>{let{alignment:t=qc.alignment,orientation:a=qc.orientation,...r}=e;return Hy("div",{...r,className:o(Bn,{[`${Bn}-${t}`]:t,[`${Bn}-${a}`]:a},e.className),children:e.children})};W.states=Ry;W.options=zy;W.className=Bn;W.defaultOptions=qc;var Ok=W;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 Cl,jsxs as Wk}from"react/jsx-runtime";var _c="k-list",Qy=[],Vy={size:[n.small,n.medium,n.large]},Qk={size:n.medium},Q=e=>{let{size:t=Qk.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(Cl(P,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):A.props.children.forEach((S,B)=>{let L="";B===0&&(L=A.props.label),g.push(Cl(P,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=Cl(xe,{label:m,virtualization:a,children:g})):A.type===P&&(g.push(Cl(P,{...A.props},`${A.type}-${N}`)),v=Cl(Sl,{virtualization:a,children:g}),d&&(T=Wk(bs,{className:"k-sr-only",children:[g.length," items found."]})))}):T=Cl(bs,{children:"No data found."}),Wk("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=Qk;import{jsx as Na,jsxs as Jy}from"react/jsx-runtime";var $c="k-list",Xy=[],Zy={size:[n.small,n.medium,n.large]},Vk={size:n.medium},Ca=e=>{let{size:t=Vk.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(Xk,{...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(Sl,{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=Vk;import{jsx as Zk}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 Zk("span",{className:"k-checkbox-wrap",children:Zk("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 Jk="k-checkbox-list",qy=[],_y={},jk={layout:"vertical"},Il=e=>{let{layout:t=jk.layout,...a}=e;return $y("ul",{...a,className:o(e.className,Jk,{[`k-list-${t}`]:t}),children:e.children})};Il.states=qy;Il.options=_y;Il.className=Jk;Il.defaultOptions=jk;import{jsx as aw}from"react/jsx-runtime";var Uk="k-checkbox-list-item",ew=[],tw={},ow={},Bl=e=>{let{...t}=e;return aw("li",{...t,className:o(e.className,Uk),children:e.children})};Bl.states=ew;Bl.options=tw;Bl.className=Uk;Bl.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",Sl=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 qk}from"react/jsx-runtime";var cw="k-list-group-sticky-header",_k=e=>qk("div",{className:o(cw,e.className),children:qk("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(_k,{children:a}),e.children&&$k(Sl,{virtualization:t,children:e.children})]})};import{jsx as ef}from"react/jsx-runtime";var uw="k-list-group-item",Xk=e=>ef("li",{className:o(uw,e.className),children:ef("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 tf="k-suggestion-group",ww=[],Tw={},of={scrollable:!0},Sa=e=>{let{scrollable:t=of.scrollable,...a}=e,r=sp("div",{...a,className:o(tf,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=tf;Sa.defaultOptions=of;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 af}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 af("div",{...p,className:o(e.className,vs,C(vs,{size:t,rounded:a,fillMode:r,themeColor:s}),{[`${vs}-bordered`]:d}),children:af("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},Ml=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})};Ml.states=Lw;Ml.options=Ew;Ml.className=ys;Ml.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 Ll,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]},El={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,avatarImage:"/packages/html/assets/avatar.jpg"},zt=e=>{let{size:t=El.size,rounded:a=El.rounded,fillMode:r=El.fillMode,themeColor:s=El.themeColor,text:i,icon:d,actions:p,showAvatar:m,avatarImage:k=El.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&&Ll(y,{className:"k-chip-icon",icon:d,size:"small"}),m&&Ll(eo,{className:"k-chip-avatar",type:"image",children:Ll("img",{src:k})}),Ll("span",{className:"k-chip-content",children:e.children?e.children:i&&Ll("span",{className:"k-chip-label",children:i})}),p&&Ll("span",{className:"k-chip-actions",children:p})]})};zt.states=Pw;zt.options=Gw;zt.className=Pn;zt.defaultOptions=El;import{jsx as Rw}from"react/jsx-runtime";var ip="k-chip-list",Dw=[],Fw={size:[n.small,n.medium,n.large]},rf={size:n.medium},Ht=e=>{let{size:t=rf.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=rf;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 sf,jsxs as Ow}from"react/jsx-runtime";var nf="k-color-preview",zw=[],Hw={},Ko=e=>{let{color:t,iconName:a,...r}=e;return Ow("span",{...r,className:o(e.className,nf,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&sf(y,{icon:a,className:"k-color-preview-icon"}),sf("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ko.states=zw;Ko.options=Hw;Ko.className=nf;import{Fragment as np,jsx as df,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"},Do=e=>{let{size:t=Dn.size,themeColor:a=Dn.themeColor,animation:r=Dn.animation,...s}=e,i=df("span",{className:"k-loader-segment"});return df("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]})]})})};Do.states=Qw;Do.options=Vw;Do.className=dp;Do.defaultOptions=Dn;var cf=Do;import{jsx as cp,jsxs as pf}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 pf("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}`}),pf("div",{className:o("k-loader-container-inner",{"k-loader-container-panel":d}),children:[cp(cf,{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 mf="k-skeleton",Jw=[],jw={},mp={shape:"text",animation:"pulse"},Fo=e=>{let{shape:t=mp.shape,animation:a=mp.animation,...r}=e;return Uw("span",{...r,className:o(e.className,mf,{[`k-skeleton-${t}`]:t,[`k-skeleton-${a}`]:a}),style:e.style})};Fo.states=Jw;Fo.options=jw;Fo.className=mf;Fo.defaultOptions=mp;import{jsx as XH}from"react/jsx-runtime";import{jsx as qw}from"react/jsx-runtime";var uf=e=>qw(Fo,{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 kf="k-form-fieldset",to=e=>{let{legend:t,layout:a,cols:r,gutters:s,colSpan:i}=e;return eT("fieldset",{className:o(kf,{[`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=kf;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",ff={alignment:"stretched",orientation:"horizontal"},Ot=e=>{let{alignment:t=ff.alignment,orientation:a=ff.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 hf="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,hf),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=hf;De.defaultOptions=gp;import{jsx as M8}from"react/jsx-runtime";import{Fragment as gf,jsx as Ro,jsxs as xp}from"react/jsx-runtime";var xf="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,xf),children:[p&&xp(gf,{children:[Ro($,{children:p}),s&&Ro(ge,{})]}),Ro(se,{placeholder:T,value:v,type:k}),d&&Ro(X,{valid:N,invalid:S,loading:L,disabled:E}),Ro(J,{loading:L,disabled:E}),i&&Ro(te,{loading:L,disabled:E,readonly:D,value:v}),m&&xp(gf,{children:[s&&Ro(ge,{}),Ro(ee,{children:m})]})]})};Z.states=cT;Z.options=pT;Z.className=xf;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 zo,jsxs as bp}from"react/jsx-runtime";var yf="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,yf),children:[bp("div",{className:"k-actionsheet-titlebar-group",children:[r&&zo("div",{className:"k-actionsheet-actions",children:r}),!v&&bp("div",{className:"k-actionsheet-title",children:[t&&zo("div",{className:"k-text-center",children:t}),a&&zo("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),v&&zo("div",{className:"k-actionsheet-title",children:v}),s&&zo("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&zo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?zo(Z,{value:p,placeholder:m,size:k?"large":"medium"}):zo(De,{placeholder:"Filter",size:k?"large":"medium"})})]})};ae.className=yf;ae.defaultOptions=mT;import{jsx as vp,jsxs as hT}from"react/jsx-runtime";var yp="k-actionsheet-view",uT=[],kT={},fT={},Yl=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]})};Yl.states=uT;Yl.options=kT;Yl.className=yp;Yl.defaultOptions=fT;import{jsx as zn,jsxs as bT}from"react/jsx-runtime";var wf="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(Go,{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,wf,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||zn(Yl,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};ie.states=gT;ie.options=xT;ie.className=wf;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 Af="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]},Pl={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:h.medium,fillMode:b.solid},le=e=>{let{size:t=Pl.size,rounded:a=Pl.rounded,fillMode:r=Pl.fillMode,arrowIconName:s=Pl.arrowIconName,showValue:i=Pl.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,...Tl}=e;return Np(AT,{children:[Np(xt,{...Tl,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,Af,{"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=Af;le.defaultOptions=Pl;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 Nf}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]},Cf={size:n.medium},yo=e=>{let{id:t,checked:a,hover:r,focus:s,disabled:i,invalid:d,valid:p,required:m,size:k=Cf.size,...v}=e;return Nf("span",{className:"k-radio-wrap",children:Nf("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=Cf;import{jsx as BT}from"react/jsx-runtime";var Sf="k-radio-list",ST=[],IT={},If={layout:"vertical"},Gl=e=>{let{layout:t=If.layout,...a}=e;return BT("ul",{...a,className:o(e.className,Sf,{[`k-list-${t}`]:t}),children:e.children})};Gl.states=ST;Gl.options=IT;Gl.className=Sf;Gl.defaultOptions=If;import{jsx as YT}from"react/jsx-runtime";var Bf="k-radio-list-item",MT=[],LT={},ET={},Kl=e=>{let{...t}=e;return YT("li",{...t,className:o(e.className,Bf),children:e.children})};Kl.states=MT;Kl.options=LT;Kl.className=Bf;Kl.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 Dl}from"react/jsx-runtime";var On=({size:e,...t})=>st(vo,{formButtons:Dl(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:Dl(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:Dl("ul",{className:"k-radio-list k-list-horizontal",children:[Dl("li",{className:"k-radio-list-item",children:[st(yo,{checked:!0,size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Dl("li",{className:"k-radio-list-item",children:[st(yo,{size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Dl("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]},Mf={fillMode:b.solid},Y=e=>{let{fillMode:t=Mf.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=Mf;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 Lf,jsxs as OT}from"react/jsx-runtime";var Ef="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:[Lf(c,{...B,className:o(e.className,Ef),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&&Lf(F,{className:"k-menu-popup",children:N})]})};U.states=RT;U.options=zT;U.className=Ef;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 Fl,jsxs as Yf}from"react/jsx-runtime";var Ip="k-menu-item",WT=[l.hover,l.focus,l.active,l.selected,l.disabled],QT={},Pf={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=Pf.iconPosition,dir:A,children:N,...S}=e,B=Fl(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"),Yf("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:[Yf("span",{className:o("k-link k-menu-link"),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:L})})]}),B]})};Qe.states=WT;Qe.options=QT;Qe.className=Ip;Qe.defaultOptions=Pf;import{Fragment as JT,jsx as Rl,jsxs as Gf}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=Rl(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"),Gf("li",{...B,className:o(e.className,Bp,"k-item",x(Bp,{focus:a,disabled:i}),{"k-first":m,"k-last":k}),children:[Gf("span",{className:o("k-link k-menu-link",x("k-menu-link",{hover:t,active:r,selected:s,disabled:i})),children:[d&&g==="before"&&Rl(y,{className:"k-menu-link-icon",icon:d}),Rl("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&Rl(y,{className:"k-menu-link-icon",icon:d}),v&&Rl("span",{className:"k-menu-expand-arrow",children:Rl(y,{icon:E})})]}),L,S]})};Wt.states=XT;Wt.options=ZT;Wt.className=Bp;Wt.defaultOptions=Mp;import{jsx as _T}from"react/jsx-runtime";var Kf="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,Kf,{"k-menu-scroll-wrapper-vertical":r==="vertical"}),children:a})};Ms.states=jT;Ms.options=UT;Ms.className=Kf;Ms.defaultOptions=qT;var Df=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(Df,{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",Ff={orientation:"horizontal"},Ls=e=>{let{orientation:t=Ff.orientation,...a}=e;return tA("li",{...a,className:o(e.className,"k-item",Yp,{[`${Yp}-${t}`]:t})})};Ls.className=Yp;Ls.defaultOptions=Ff;import{Fragment as g3,jsx as x3}from"react/jsx-runtime";import{jsx as Rf}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(Rf(Ls,{})):i.push(d)}),Rf("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 zf}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]},zl={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,arrowIconName:"caret-alt-down"},Ne=e=>{let{size:t=zl.size,rounded:a=zl.rounded,fillMode:r=zl.fillMode,themeColor:s=zl.themeColor,hover:i,focus:d,active:p,selected:m,disabled:k,icon:v,text:T,arrowIconName:g=zl.arrowIconName,popup:A,opened:N,...S}=e;return zf(iA,{children:[zf("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=zl;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