UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 303 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,s)=>t[s]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var S=(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"}),v=(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 c={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},x={small:"small",medium:"medium",large:"large",full:"full"},y={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},f={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},r={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"},vt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{Fragment as Rv,jsx as gk}from"react/jsx-runtime";var Oc="k-icon k-font-icon",Kv=[],Dv={size:[c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark]},Fv={},ks=e=>{let{size:t,themeColor:a,icon:s,rotate:n,flip:d,...p}=e;return s?gk("span",{...p,className:o(e.className,Oc,S(Oc,{size:t}),{[`k-i-${s}`]:s,[`k-color-${a}`]:a,[`k-rotate-${n}`]:n,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"})}):gk(Rv,{})};ks.states=Kv;ks.options=Dv;ks.className=Oc;ks.defaultOptions=Fv;var xk=ks;import{Fragment as Ov,jsx as An}from"react/jsx-runtime";var Wc="k-icon k-svg-icon",zv=[],Hv={size:[c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark]},bk={viewBox:"0 0 24 24"},fs=e=>{let{size:t,themeColor:a,rotate:s,flip:n,viewBox:d=bk.viewBox,icon:p,...u}=e;if(!p)return An(Ov,{});p==="none"&&{...u,className:o(e.className,Wc,"k-none")};let k=typeof p=="object"&&p.name&&p.name;return An("span",{...u,className:o(e.className,Wc,S("k-icon",{size:t}),{[`k-svg-i-${k}`]:k,[`k-color-${a}`]:a,[`k-rotate-${s}`]:s,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),children:An("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:d,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:e.children})})};fs.states=zv;fs.options=Hv;fs.className=Wc;fs.defaultOptions=bk;var Qc=fs;import*as vk from"@progress/kendo-svg-icons";import{Fragment as yk,jsx as hs}from"react/jsx-runtime";var Wv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Qv=[],Vv={size:[c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark]},Vc={viewBox:"0 0 24 24",type:"svg"},T=e=>{let{size:t,themeColor:a,icon:s,type:n=Vc.type,rotate:d,flip:p,viewBox:u=Vc.viewBox,...k}=e;if(!s)return hs(yk,{});if(n==="svg"){if(s==="none")return hs(Qc,{...k,icon:s,size:t});let h=Wv(`${s}-icon`);return vk[h]?hs(Qc,{...k,icon:vk[h],size:t,themeColor:a,rotate:d,flip:p,viewBox:u}):hs(yk,{})}return hs(xk,{...k,icon:s,size:t,themeColor:a,rotate:d,flip:p})};T.states=Qv;T.options=Vv;T.defaultOptions=Vc;var Xc=T;import{Fragment as Jv,jsx as gs,jsxs as wk}from"react/jsx-runtime";var Nn="k-button",Xv=[r.hover,r.focus,r.active,r.selected,r.disabled],Zv={size:[c.small,c.medium,c.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[y.solid,y.flat,y.outline,y.clear,y.link],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark,f.inverse]},Ca={size:c.medium,rounded:x.medium,fillMode:y.solid,themeColor:f.base,showArrow:!1,arrowIconName:"caret-alt-down"},m=e=>{let{size:t=Ca.size,rounded:a=Ca.rounded,fillMode:s=Ca.fillMode,themeColor:n=Ca.themeColor,showArrow:d=Ca.showArrow,arrowIconName:p=Ca.arrowIconName,hover:u,focus:k,active:h,selected:w,disabled:A,icon:b,text:N,iconClassName:C,...B}=e,E=b!==void 0,P=e.children!==void 0;return wk("button",{...B,className:o(e.className,Nn,S(Nn,{size:t,rounded:a,fillMode:s,themeColor:n}),v(Nn,{hover:u,focus:k,active:h,disabled:A,selected:w}),{"k-icon-button":!N&&!P&&E}),children:[b&&gs(T,{className:o(C,"k-button-icon"),icon:b}),N?wk(Jv,{children:[N&&gs("span",{className:"k-button-text",children:N}),e.children]}):e.children&&gs("span",{className:"k-button-text",children:e.children}),d&&gs("span",{className:"k-menu-button-arrow k-button-arrow",children:gs(T,{icon:p})})]})};m.states=Xv;m.options=Zv;m.className=Nn;m.defaultOptions=Ca;import{jsx as jv}from"react/jsx-runtime";var Ue=e=>jv(m,{icon:"folder",...e,children:void 0});import{jsx as Uv}from"react/jsx-runtime";var Ht=e=>Uv(m,{icon:"folder",children:"Button",...e});import{jsx as VG}from"react/jsx-runtime";import{jsx as $v}from"react/jsx-runtime";var xs="k-button-group",qv=[r.disabled],_v={fillMode:[y.solid,y.flat,y.outline,y.clear,y.link]},Tk={fillMode:y.solid},G=e=>{let{fillMode:t=Tk.fillMode,disabled:a,stretched:s,...n}=e;return $v("div",{...n,className:o(e.className,xs,S(xs,{fillMode:t}),v(xs,{disabled:a}),{[`${xs}-stretched`]:s}),children:e.children})};G.states=qv;G.options=_v;G.className=xs;G.defaultOptions=Tk;import{Fragment as rK,jsx as lK,jsxs as sK}from"react/jsx-runtime";import{Fragment as mK,jsx as pK,jsxs as uK}from"react/jsx-runtime";import{Fragment as bK,jsx as xK,jsxs as vK}from"react/jsx-runtime";import{Fragment as CK,jsx as NK,jsxs as SK}from"react/jsx-runtime";import{jsx as Zc,jsxs as oy}from"react/jsx-runtime";var Jc="k-calendar",ey=[],ty={size:[c.small,c.medium,c.large]},Cl={size:c.medium,showCalendarHeader:!0,orientation:"horizontal",calendarView:"month",calendarTitleText:"October 2021"},ct=e=>{let{size:t=Cl.size,orientation:a=Cl.orientation,calendarView:s=Cl.calendarView,calendarTitleText:n=Cl.calendarTitleText,showCalendarHeader:d=Cl.showCalendarHeader,showWeek:p,showCalendarFooter:u,calendarFooterText:k,dir:h,...w}=e;return oy("div",{...w,dir:h,className:o(e.className,Jc,S(Jc,{size:t}),{"k-week-number":p}),children:[d&&Zc(Sa,{calendarView:s,showToday:!u,calendarTitleText:n,orientation:a,size:t,dir:h}),Zc(Cn,{calendarView:s,orientation:a,children:e.children}),u&&Zc(bs,{calendarFooterText:k,size:t})]})};ct.states=ey;ct.options=ty;ct.className=Jc;ct.defaultOptions=Cl;import{Fragment as ly,jsx as vs,jsxs as ry}from"react/jsx-runtime";var ay=[r.hover,r.focus,r.active,r.selected,r.disabled],l=e=>{let{text:t,headerCell:a,today:s,weekend:n,showOtherMonth:d,weekCell:p,rangeStart:u,rangeMid:k,rangeEnd:h,dayIndicator:w,empty:A,hover:b,focus:N,active:C,selected:B,disabled:E,...P}=e,z=`k-calendar-${a?"th":"td"}`,Q=[e.className,z,v(z,{hover:b,focus:N,active:C,selected:B,disabled:E}),{"k-today":s,"k-weekend":n,"k-other-month":d,"k-alt":p,"k-range-start":u,"k-range-mid":k,"k-range-end":h,"k-empty":A}];return a?vs("th",{...P,className:o(Q),children:t}):p?vs("td",{...P,className:o(Q),children:t}):vs("td",{...P,className:o(Q),children:A&&!d?vs(ly,{children:"\xA0"}):ry("span",{className:"k-link",children:[t,w&&vs("span",{className:"k-day-indicator"})]})})};l.states=ay;import{jsx as ys,jsxs as Ak}from"react/jsx-runtime";var Nk="k-calendar-header",sy={size:[c.small,c.medium,c.large]},Sl={calendarTitleText:"October 2021",showToday:!0,showNavigationButtons:!0,orientation:"horizontal",size:c.medium},Sa=e=>{let{calendarTitleText:t=Sl.calendarTitleText,showToday:a=Sl.showToday,showNavigationButtons:s=Sl.showNavigationButtons,orientation:n=Sl.orientation,size:d=Sl.size,calendarView:p,dir:u,...k}=e,h=u==="rtl"?"chevron-right":"chevron-left",w=u==="rtl"?"chevron-left":"chevron-right";return Ak("div",{...k,className:o(e.className,Nk,{"k-vstack":n==="vertical"}),children:[ys(m,{disabled:p==="century",className:"k-calendar-title",text:t,size:d,fillMode:"flat",themeColor:"primary"}),ys("span",{className:"k-spacer"}),Ak("span",{className:"k-calendar-nav",children:[s&&ys(m,{className:"k-calendar-nav-prev",icon:h,size:d,fillMode:"flat"}),a&&ys(m,{size:d,fillMode:"flat",className:"k-calendar-nav-today",children:"Today"}),s&&ys(m,{className:"k-calendar-nav-next",icon:w,size:d,fillMode:"flat"})]})]})};Sa.options=sy;Sa.className=Nk;Sa.defaultOptions=Sl;import{jsx as Ck}from"react/jsx-runtime";var Sk="k-calendar-footer",iy={size:[c.small,c.medium,c.large]},jc={size:c.medium,calendarFooterText:"Tuesday, October 12, 2021"},bs=e=>{let{size:t=jc.size,calendarFooterText:a=jc.calendarFooterText,...s}=e;return Ck("div",{...s,className:o(e.className,Sk),children:Ck(m,{size:t,fillMode:"flat",themeColor:"primary",className:"k-calendar-nav-today",children:a})})};bs.options=iy;bs.className=Sk;bs.defaultOptions=jc;import{jsx as cy}from"react/jsx-runtime";var ny=[],dy={},Ik=e=>{let{type:t,...a}=e,s=t==="p"?"paragraph":t,n=t.includes("display")?"div":t;return cy(n,{...a,className:o(e.className,{[`k-${s}`]:t}),children:e.children})};Ik.states=ny;Ik.options=dy;import{jsx as uy}from"react/jsx-runtime";var Sn="k-actions",py=[],my={},Uc={alignment:"start",orientation:"horizontal"},X=e=>{let{alignment:t=Uc.alignment,orientation:a=Uc.orientation,...s}=e;return uy("div",{...s,className:o(Sn,{[`${Sn}-${t}`]:t,[`${Sn}-${a}`]:a},e.className),children:e.children})};X.states=py;X.options=my;X.className=Sn;X.defaultOptions=Uc;var Bk=X;import{jsx as hy}from"react/jsx-runtime";var In="k-input",ky=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],fy={size:[c.small,c.medium,c.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[y.solid,y.flat,y.outline]},Bn={size:c.medium,rounded:c.medium,fillMode:y.solid},Y=e=>{let{hover:t,focus:a,disabled:s,invalid:n,valid:d,loading:p,readonly:u,size:k=Bn.size,rounded:h=Bn.rounded,fillMode:w=Bn.fillMode,...A}=e;return hy("span",{...A,className:o(e.className,In,S(In,{size:k,rounded:h,fillMode:w}),v(In,{hover:t,focus:a,disabled:s,invalid:n,valid:d,loading:p,readonly:u}))})};Y.states=ky;Y.options=fy;Y.className=In;Y.defaultOptions=Bn;import{jsx as by}from"react/jsx-runtime";var Mn="k-picker",gy=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],xy={size:[c.small,c.medium,c.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[y.solid,y.flat,y.outline]},Ln={size:c.medium,rounded:x.medium,fillMode:y.solid},yt=e=>{let{hover:t,focus:a,disabled:s,invalid:n,valid:d,loading:p,readonly:u,size:k=Ln.size,rounded:h=Ln.rounded,fillMode:w=Ln.fillMode,...A}=e;return by("span",{...A,className:o(e.className,Mn,S(Mn,{size:k,rounded:h,fillMode:w}),v(Mn,{hover:t,focus:a,disabled:s,invalid:n,valid:d,loading:p,readonly:u})),children:e.children})};yt.states=gy;yt.options=xy;yt.className=Mn;yt.defaultOptions=Ln;import{Fragment as wy,jsx as qc}from"react/jsx-runtime";var Mk="k-clear-value",vy=[r.disabled,r.loading,r.readonly],yy={},ae=e=>{let{disabled:t,loading:a,readonly:s,value:n}=e;return t||s||a||!n?qc(wy,{}):qc("span",{className:o(e.className,Mk),children:qc(T,{icon:"x"})})};ae.states=vy;ae.options=yy;ae.className=Mk;import{jsx as Ny}from"react/jsx-runtime";var _c="k-input-inner",Ty=[],Ay={},En={type:"text",autocomplete:"off",value:"",placeholder:""},ne=e=>{let{value:t=En.value,type:a=En.type,placeholder:s=En.placeholder,autocomplete:n=En.autocomplete,...d}=e;return Ny("input",{...d,type:a,className:o(e.className,_c,S(_c,e)),placeholder:s,autoComplete:n,defaultValue:t})};ne.states=Ty;ne.options=Ay;ne.className=_c;import{jsx as Lk,jsxs as Iy}from"react/jsx-runtime";var $c="k-input-inner",Cy=[],Sy={},wo=e=>{let{value:t,placeholder:a,showValue:s,valueIcon:n,valueIconName:d,...p}=e;return Iy("span",{...p,className:o(e.className,$c,S($c,e)),children:[n,!n&&d&&Lk(T,{className:"k-input-value-icon",icon:d}),s&&!t&&a,s&&t&&Lk("span",{className:"k-input-value-text",children:t})]})};wo.states=Cy;wo.options=Sy;wo.className=$c;import{jsx as Ly}from"react/jsx-runtime";var ep="k-input-inner",By=[],My={},Ek={value:"",placeholder:""},ws=e=>{let{value:t=Ek.value,placeholder:a=Ek.placeholder,rows:s,...n}=e;return Ly("textarea",{...n,className:o(e.className,ep,S(ep,e)),placeholder:a,rows:s,defaultValue:t})};ws.states=By;ws.options=My;ws.className=ep;import{Fragment as Yy,jsx as Yk}from"react/jsx-runtime";var Pk="k-input-loading-icon",Ey=[r.disabled,r.loading],q=e=>{let{disabled:t,loading:a}=e;return t||!a?Yk(Yy,{}):Yk("span",{className:o(e.className,Pk,"k-icon k-i-loading")})};q.states=Ey;q.className=Pk;import{Fragment as Ky,jsx as Gk}from"react/jsx-runtime";var Kk="k-input-validation-icon",Py=[r.valid,r.invalid,r.disabled,r.loading],Gy={},j=e=>{let{valid:t,invalid:a,disabled:s,loading:n}=e,d=a?"warning-circle":"check-circle";return s||n||!!!(t||a)?Gk(Ky,{}):Gk(T,{className:o(Kk),icon:d})};j.states=Py;j.options=Gy;j.className=Kk;import{Fragment as Ry,jsx as Dk}from"react/jsx-runtime";var Dy="k-input-prefix",Fy={direction:"horizontal"},te=e=>{let{direction:t=Fy.direction,...a}=e;return e.children?Dk("span",{...a,className:o(Dy,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Dk(Ry,{})};import{Fragment as Oy,jsx as Fk}from"react/jsx-runtime";var zy="k-input-suffix",Hy={direction:"horizontal"},oe=e=>{let{direction:t=Hy.direction,...a}=e;return e.children?Fk("span",{...a,className:o(zy,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Fk(Oy,{})};import{jsx as HD}from"react/jsx-runtime";import{jsx as VD}from"react/jsx-runtime";import{jsx as Qy}from"react/jsx-runtime";var Rk="k-input-separator",Wy={direction:"vertical"},ve=e=>{let{direction:t=Wy.direction,...a}=e;return Qy("span",{...a,className:o(Rk,e.className,{[`${Rk}-${t}`]:t})})};import{jsx as zk}from"react/jsx-runtime";var Hk="k-animation-container",Vy=[],Xy={},Ok={positionMode:"absolute"},Fo=e=>{let{positionMode:t=Ok.positionMode,animationStyle:a,offset:s,...n}=e;return zk("div",{...n,style:{...s,...e.style},className:o(e.className,Hk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:zk("div",{className:"k-child-animation-container",style:a,children:e.children})})};Fo.states=Vy;Fo.options=Xy;Fo.className=Hk;Fo.defaultOptions=Ok;import{jsx as Wk}from"react/jsx-runtime";var Qk="k-popup",Zy=[],Jy={},Vk={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:a=Vk.positionMode,animationStyle:s,...n}=e;return Wk(Fo,{positionMode:a,offset:t,animationStyle:s,children:Wk("div",{...n,className:o(e.className,Qk),children:e.children})})};H.states=Zy;H.options=Jy;H.className=Qk;H.defaultOptions=Vk;import{jsx as Uy}from"react/jsx-runtime";var jy="k-no-data",Ts=e=>Uy("span",{className:o(jy,e.className),children:e.children});import{jsx as Il,jsxs as Xk}from"react/jsx-runtime";var tp="k-list",qy=[],_y={size:[c.small,c.medium,c.large]},Zk={size:c.medium},Z=e=>{let{size:t=Zk.size,virtualization:a,children:s,optionLabel:n,customValue:d,screenReaders:p,...u}=e,k,h,w,A,b=[];return s?s.map((N,C)=>{N.type===ye?(N.props.root===!0?(k=N.props.label,N.props.children.map((B,E)=>{b.push(Il(D,{...B.props},`optChild-${E}-${new Date().getTime()}`))})):N.props.children.forEach((B,E)=>{let P="";E===0&&(P=N.props.label),b.push(Il(D,{className:E===0?"k-first":"",...B.props,groupLabel:P},`groupLabel-${E}-${new Date().getTime()}`))}),h=Il(ye,{label:k,virtualization:a,children:b})):N.type===D&&(b.push(Il(D,{...N.props},`${N.type}-${C}`)),w=Il(Bl,{virtualization:a,children:b}),p&&(A=Xk(Ts,{className:"k-sr-only",children:[b.length," items found."]})))}):A=Il(Ts,{children:"No data found."}),Xk("div",{...u,className:o(e.className,tp,S(tp,{size:t}),{"k-virtual-list":a}),children:[n,d,h,w,A]})};Z.states=qy;Z.options=_y;Z.className=tp;Z.defaultOptions=Zk;import{jsx as Ia,jsxs as tw}from"react/jsx-runtime";var op="k-list",$y=[],ew={size:[c.small,c.medium,c.large]},Jk={size:c.medium},Ba=e=>{let{size:t=Jk.size,virtualization:a,children:s,...n}=e,d,p,u,k=[];return s?s.map((h,w)=>{h.type===ye?(h.props.root===!0?(d=h.props.label,h.props.children.map((A,b)=>{k.push(Ia(D,{...A.props},`optChild-${b}-${new Date().getTime()}`))})):(k.push(Ia(jk,{...h.props,children:h.props.label},`listChild-${w}`)),h.props.children.map((A,b)=>{k.push(Ia(D,{...A.props},`fwOptChild-${b}-${new Date().getTime()}`))})),p=Ia(ye,{label:d,virtualization:a,children:k})):h.type===D&&(k.push(Ia(D,{...h.props},`${h.type}-${w}`)),u=Ia(Bl,{virtualization:a,children:k}))}):u=Ia(Ts,{children:"No data found."}),tw("div",{...n,className:o(e.className,op,S(op,{size:t}),{"k-virtual-list":a}),children:[p,u]})};Ba.states=$y;Ba.options=ew;Ba.className=op;Ba.defaultOptions=Jk;import{jsx as Uk}from"react/jsx-runtime";var Yn="k-checkbox",ow=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],aw={size:[c.small,c.medium,c.large],rounded:[x.small,x.medium,x.large,x.full]},ap={size:c.medium,rounded:x.medium},Ve=e=>{let{id:t,checked:a,indeterminate:s,hover:n,focus:d,disabled:p,invalid:u,valid:k,required:h,size:w=ap.size,rounded:A=ap.rounded,...b}=e;return Uk("span",{className:"k-checkbox-wrap",children:Uk("input",{...b,id:t,type:"checkbox",defaultChecked:a,required:h,className:o(e.className,Yn,S(Yn,{size:w,rounded:A}),v(Yn,{hover:n,focus:d,disabled:p,invalid:u,valid:k,indeterminate:s,checked:a}))})})};Ve.states=ow;Ve.options=aw;Ve.className=Yn;Ve.defaultOptions=ap;import{jsx as sw}from"react/jsx-runtime";var qk="k-checkbox-list",lw=[],rw={},_k={layout:"vertical"},Ml=e=>{let{layout:t=_k.layout,...a}=e;return sw("ul",{...a,className:o(e.className,qk,{[`k-list-${t}`]:t}),children:e.children})};Ml.states=lw;Ml.options=rw;Ml.className=qk;Ml.defaultOptions=_k;import{jsx as cw}from"react/jsx-runtime";var $k="k-checkbox-list-item",iw=[],nw={},dw={},Ll=e=>{let{...t}=e;return cw("li",{...t,className:o(e.className,$k),children:e.children})};Ll.states=iw;Ll.options=nw;Ll.className=$k;Ll.defaultOptions=dw;import{Fragment as JF,jsx as ZF,jsxs as jF}from"react/jsx-runtime";import{Fragment as eR,jsx as $F,jsxs as tR}from"react/jsx-runtime";import{Fragment as sR,jsx as rR,jsxs as iR}from"react/jsx-runtime";import{Fragment as mR,jsx as pR,jsxs as uR}from"react/jsx-runtime";import{jsx as gR}from"react/jsx-runtime";import{jsx as yR}from"react/jsx-runtime";import{jsx as Pn,jsxs as kw}from"react/jsx-runtime";var rp="k-list-item",pw=[r.hover,r.focus,r.selected,r.disabled],mw={},uw={},D=e=>{let{text:t,groupLabel:a,group:s,showIcon:n,iconName:d,showCheckbox:p,checked:u,hover:k,focus:h,selected:w,disabled:A,...b}=e,N=t||e.children;return kw("li",{...b,className:o(e.className,s?"k-list-group-item":rp,v(rp,{hover:k,focus:h,disabled:A,selected:w})),children:[p&&Pn(Ve,{checked:u}),n&&Pn(T,{icon:d}),Pn("span",{className:"k-list-item-text",children:N}),a&&a!==""&&Pn("div",{className:"k-list-item-group-label",children:a})]})};D.states=pw;D.options=mw;D.className=rp;D.defaultOptions=uw;import{jsx as sp,jsxs as hw}from"react/jsx-runtime";var fw="k-list-content",Bl=e=>{let{virtualization:t,...a}=e;return hw("div",{...a,className:o(fw,e.className),children:[sp("ul",{className:o("k-list-ul"),children:e.children}),t&&sp("div",{className:"k-height-container",children:sp("div",{})})]})};import{jsx as ef}from"react/jsx-runtime";var gw="k-list-group-sticky-header",tf=e=>ef("div",{className:o(gw,e.className),children:ef("div",{className:"k-list-header-text",children:e.children})});import{Fragment as xw,jsx as of,jsxs as bw}from"react/jsx-runtime";var ye=e=>{let{virtualization:t,label:a}=e;return bw(xw,{children:[a&&of(tf,{children:a}),e.children&&of(Bl,{virtualization:t,children:e.children})]})};import{jsx as af}from"react/jsx-runtime";var vw="k-list-group-item",jk=e=>af("li",{className:o(vw,e.className),children:af("span",{className:"k-list-item-text",children:e.children})});import{jsx as Aw}from"react/jsx-runtime";var ip="k-list-optionlabel",yw=[r.hover,r.focus,r.selected,r.disabled],ww={},Tw={},Gn=e=>{let{text:t,hover:a,focus:s,selected:n,disabled:d,...p}=e;return Aw("div",{...p,className:o(ip,v(ip,{hover:a,focus:s,selected:n,disabled:d})),children:t})};Gn.states=yw;Gn.options=ww;Gn.className=ip;Gn.defaultOptions=Tw;import{jsx as Iw}from"react/jsx-runtime";var np="k-list-custom-value",Nw=[r.hover,r.focus,r.selected,r.disabled],Cw={},Sw={},qe=e=>{let{text:t,hover:a,focus:s,selected:n,disabled:d,...p}=e;return Iw("div",{...p,className:o(np,v(np,{hover:a,focus:s,selected:n,disabled:d})),children:t})};qe.states=Nw;qe.options=Cw;qe.className=np;qe.defaultOptions=Sw;import{jsx as lz}from"react/jsx-runtime";import{jsx as nz}from"react/jsx-runtime";import{jsx as mz,jsxs as uz}from"react/jsx-runtime";import{jsx as gz,jsxs as xz}from"react/jsx-runtime";import{jsx as wz}from"react/jsx-runtime";import{jsx as Cz,jsxs as Sz}from"react/jsx-runtime";import{jsx as Lz,jsxs as Ez}from"react/jsx-runtime";import{jsx as dp,jsxs as Lw}from"react/jsx-runtime";var lf="k-suggestion-group",Bw=[],Mw={},rf={scrollable:!0},Ma=e=>{let{scrollable:t=rf.scrollable,...a}=e,s=dp("div",{...a,className:o(lf,e.className),children:e.children});return t?Lw("div",{className:"k-suggestion-scrollwrap",children:[dp(m,{icon:"chevron-left"}),s,dp(m,{icon:"chevron-right"})]}):s};Ma.states=Bw;Ma.options=Mw;Ma.className=lf;Ma.defaultOptions=rf;import{jsx as Gw}from"react/jsx-runtime";var Kn="k-suggestion",Ew=[r.active,r.hover,r.focus],Yw={themeColor:[f.base,f.primary,f.secondary]},Pw={text:"Suggestion"},La=e=>{let{themeColor:t,active:a,hover:s,focus:n,text:d,...p}=e;return Gw("span",{...p,className:o(e.className,Kn,v(Kn,{hover:s,active:a,focus:n}),S(Kn,{themeColor:t})),children:d})};La.states=Ew;La.options=Yw;La.className=Kn;La.item=Pw;import{Fragment as i0,jsx as s0,jsxs as n0}from"react/jsx-runtime";import{Fragment as u0,jsx as m0,jsxs as k0}from"react/jsx-runtime";import{jsx as sf}from"react/jsx-runtime";var As="k-avatar";var Kw=[r.hover,r.focus,r.active,r.selected,r.disabled],Dw={size:[c.small,c.medium,c.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[y.solid,y.flat,y.outline],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark,f.inverse]},Ea={type:"text",size:c.medium,rounded:x.full,fillMode:y.solid,themeColor:f.primary,border:!1},ao=e=>{let{size:t=Ea.size,rounded:a=Ea.rounded,fillMode:s=Ea.fillMode,themeColor:n=Ea.themeColor,type:d=Ea.type,border:p=Ea.border,...u}=e;return sf("div",{...u,className:o(e.className,As,S(As,{size:t,rounded:a,fillMode:s,themeColor:n}),{[`${As}-bordered`]:p}),children:sf("span",{className:`${As}-${d}`,children:e.children})})};ao.states=Kw;ao.options=Dw;ao.className=As;ao.defaultOptions=Ea;import{jsx as C0}from"react/jsx-runtime";import{jsx as M0}from"react/jsx-runtime";import{jsx as P0}from"react/jsx-runtime";import{jsx as zw}from"react/jsx-runtime";var Ns="k-badge",Fw=[],Rw={size:[c.small,c.medium,c.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[y.solid,y.outline],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark,f.inverse]},Cs={size:c.medium,fillMode:y.solid,themeColor:f.primary,cutoutBorder:!1},El=e=>{let{size:t=Cs.size,fillMode:a=Cs.fillMode,themeColor:s=Cs.themeColor,cutoutBorder:n=Cs.cutoutBorder,rounded:d,position:p,align:u,...k}=e;return zw("span",{...k,className:o(e.className,Ns,S(Ns,{size:t,rounded:d,fillMode:a,themeColor:s}),{[`${Ns}-${p}`]:p,[`k-${u}`]:u,[`${Ns}-border-cutout`]:n}),children:e.children})};El.states=Fw;El.options=Rw;El.className=Ns;El.defaultOptions=Cs;import{jsx as X0}from"react/jsx-runtime";import{jsx as q0}from"react/jsx-runtime";import{jsx as sH}from"react/jsx-runtime";import{jsx as Yl,jsxs as Ww}from"react/jsx-runtime";var Dn="k-chip",Hw=[r.hover,r.focus,r.active,r.selected,r.disabled],Ow={size:[c.small,c.medium,c.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[y.solid,y.outline],themeColor:[f.base,f.success,f.warning,f.error,f.info]},Pl={size:c.medium,rounded:x.medium,fillMode:y.solid,themeColor:f.base,avatarImage:"/packages/html/assets/avatar.jpg"},Ot=e=>{let{size:t=Pl.size,rounded:a=Pl.rounded,fillMode:s=Pl.fillMode,themeColor:n=Pl.themeColor,text:d,icon:p,actions:u,showAvatar:k,avatarImage:h=Pl.avatarImage,hover:w,focus:A,active:b,selected:N,disabled:C,...B}=e;return Ww("div",{...B,className:o(e.className,Dn,S(Dn,{size:t,rounded:a,fillMode:s,themeColor:n}),v(Dn,{hover:w,focus:A,active:b,disabled:C,selected:N})),children:[p&&Yl(T,{className:"k-chip-icon",icon:p,size:"small"}),k&&Yl(ao,{className:"k-chip-avatar",type:"image",children:Yl("img",{src:h})}),Yl("span",{className:"k-chip-content",children:e.children?e.children:d&&Yl("span",{className:"k-chip-label",children:d})}),u&&Yl("span",{className:"k-chip-actions",children:u})]})};Ot.states=Hw;Ot.options=Ow;Ot.className=Dn;Ot.defaultOptions=Pl;import{jsx as Xw}from"react/jsx-runtime";var cp="k-chip-list",Qw=[],Vw={size:[c.small,c.medium,c.large]},df={size:c.medium},Wt=e=>{let{size:t=df.size,...a}=e;return Xw("div",{...a,className:o(e.className,cp,S(cp,{size:t})),children:e.children})};Wt.states=Qw;Wt.options=Vw;Wt.className=cp;Wt.defaultOptions=df;import{jsx as xH}from"react/jsx-runtime";import{jsx as wH}from"react/jsx-runtime";import{jsx as CH}from"react/jsx-runtime";import{jsx as LH}from"react/jsx-runtime";import{Fragment as DH,jsx as KH,jsxs as FH}from"react/jsx-runtime";import{jsx as cf,jsxs as jw}from"react/jsx-runtime";var pf="k-color-preview",Zw=[],Jw={},Ro=e=>{let{color:t,iconName:a,...s}=e;return jw("span",{...s,className:o(e.className,pf,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&cf(T,{icon:a,className:"k-color-preview-icon"}),cf("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ro.states=Zw;Ro.options=Jw;Ro.className=pf;import{Fragment as pp,jsx as mf,jsxs as Rn}from"react/jsx-runtime";var mp="k-loader",Uw={pulsing:"pulsing-2","infinite-spinner":"spinner-3","converging-spinner":"spinner-4"},qw=[],_w={size:[c.small,c.medium,c.large],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark,f.inverse]},zn={size:c.medium,themeColor:f.primary,animation:"pulsing"},zo=e=>{let{size:t=zn.size,themeColor:a=zn.themeColor,animation:s=zn.animation,...n}=e,d=mf("span",{className:"k-loader-segment"});return mf("div",{...n,className:o(e.className,mp,{[`k-loader-${Uw[s]||s}`]:s},S(mp,{size:t,themeColor:a})),children:Rn("div",{className:"k-loader-canvas",children:[s==="pulsing"&&Rn(pp,{children:[d,d]}),s==="infinite-spinner"&&Rn(pp,{children:[d,d,d]}),s==="converging-spinner"&&Rn(pp,{children:[d,d,d,d]})]})})};zo.states=qw;zo.options=_w;zo.className=mp;zo.defaultOptions=zn;var uf=zo;import{jsx as up,jsxs as kf}from"react/jsx-runtime";var kp="k-loader-container",$w=[],eT={size:[c.small,c.medium,c.large],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark,f.inverse]},Pa={size:c.medium,themeColor:f.primary,loaderType:"pulsing",position:"top",overlay:"dark",panel:!1},Ss=e=>{let{size:t=Pa.size,themeColor:a=Pa.themeColor,loaderType:s=Pa.loaderType,position:n=Pa.position,overlay:d=Pa.overlay,panel:p=Pa.panel,...u}=e;return kf("div",{...u,className:o(e.className,kp,S(kp,{size:t}),{[`k-loader-${n}`]:n}),children:[up("div",{className:`k-loader-container-overlay k-overlay-${d}`}),kf("div",{className:o("k-loader-container-inner",{"k-loader-container-panel":p}),children:[up(uf,{size:t,themeColor:a,animation:s}),up("div",{className:`k-loader-container-label !k-text-${a}`,children:"Loading..."})]})]})};Ss.states=$w;Ss.options=eT;Ss.className=kp;Ss.defaultOptions=Pa;import{jsx as c8}from"react/jsx-runtime";import{jsx as k8}from"react/jsx-runtime";import{jsx as x8}from"react/jsx-runtime";import{jsx as w8}from"react/jsx-runtime";import{jsx as aT}from"react/jsx-runtime";var ff="k-skeleton",tT=[],oT={},fp={shape:"text",animation:"pulse"},Ho=e=>{let{shape:t=fp.shape,animation:a=fp.animation,...s}=e;return aT("span",{...s,className:o(e.className,ff,{[`k-skeleton-${t}`]:t,[`k-skeleton-${a}`]:a}),style:e.style})};Ho.states=tT;Ho.options=oT;Ho.className=ff;Ho.defaultOptions=fp;import{jsx as K8}from"react/jsx-runtime";import{jsx as lT}from"react/jsx-runtime";var hf=e=>lT(Ho,{shape:"rect",...e});import{jsx as W8}from"react/jsx-runtime";import{jsx as Is,jsxs as hp}from"react/jsx-runtime";var gp="k-form-field",rT=[r.disabled],Xe=e=>{let{label:t,orientation:a,optional:s,editor:n,hint:d,error:p,info:u,disabled:k,dir:h,colSpan:w}=e;return hp("div",{className:o(gp,e.className,v(gp,{disabled:k}),{[`k-col-span-${w}`]:w}),dir:h,children:[t&&hp("label",{className:o("k-label","k-form-label"),children:[t,s&&Is("span",{className:"k-label-optional",children:"(Optional)"}),u&&Is("span",{className:"k-field-info",children:"(field info)"})]}),a==="horizontal"&&!t&&Is("span",{className:"k-label k-form-label k-label-empty"}),hp("div",{className:"k-form-field-wrap",children:[n,d&&Is("div",{className:"k-form-hint",children:d}),p&&Is("div",{className:"k-form-error",children:p})]})]})};Xe.states=rT;Xe.className=gp;import{Fragment as sT,jsx as xp,jsxs as iT}from"react/jsx-runtime";var gf="k-form-fieldset",lo=e=>{let{legend:t,layout:a,cols:s,gutters:n,colSpan:d}=e;return iT("fieldset",{className:o(gf,{[`k-col-span-${d}`]:d}),children:[t&&xp("legend",{className:"k-form-legend",children:t}),a==="grid"?xp("div",{className:o("k-form-layout","k-d-grid",{[`k-grid-cols-${s}`]:s}),style:{...typeof n=="string"&&{gap:n},...typeof n=="object"&&n.rows&&{rowGap:n.rows},...typeof n=="object"&&n.cols&&{columnGap:n.cols}},children:e.children}):xp(sT,{children:e.children})]})};lo.className=gf;import{Fragment as cT,jsx as Bs,jsxs as pT}from"react/jsx-runtime";import{createElement as bp}from"react";var Hn="k-form",nT=[],dT={size:[c.small,c.medium,c.large]},On={size:c.medium,layout:"basic",tag:"form"},To=e=>{let{size:t=On.size,orientation:a,layout:s=On.layout,formButtons:n,cols:d,gutters:p,tag:u=On.tag,children:k}=e,h=({tag:A,className:b,children:N})=>A==="form"?Bs("form",{className:b,children:N}):Bs("div",{className:b,children:N}),w=[];return k&&(Array.isArray(k)?k.map((A,b)=>{A.type===Xe?w.push(bp(Xe,{...A.props,orientation:a,key:b})):w.push(A)}):k.type===Xe?w.push(bp(Xe,{...k.props,orientation:a,key:`${new Date().getTime()}`})):k.type===lo&&w.push(bp(lo,{...k.props,key:`${new Date().getTime()}`}))),pT(h,{tag:u,className:o(e.className,Hn,S(Hn,{size:t}),{[`${Hn}-${a}`]:a}),children:[s==="grid"?Bs("div",{className:o("k-form-layout","k-d-grid",{[`k-grid-cols-${d}`]:d}),style:{...typeof p=="string"&&{gap:p},...typeof p=="object"&&p.rows&&{rowGap:p.rows},...typeof p=="object"&&p.cols&&{columnGap:p.cols}},children:w}):Bs(cT,{children:w}),n&&Bs("div",{className:"k-form-buttons",children:n})]})};To.states=nT;To.options=dT;To.className=Hn;To.defaultOptions=On;import{jsx as uT}from"react/jsx-runtime";var mT="k-actionsheet-footer",xf={alignment:"stretched",orientation:"horizontal"},Qt=e=>{let{alignment:t=xf.alignment,orientation:a=xf.orientation,template:s,as:n=s?"div":X,...d}=e;return uT(n,{...d,...!s&&{alignment:t,orientation:a},className:o(e.className,mT),children:e.children})};import{jsx as Ms,jsxs as hT}from"react/jsx-runtime";var bf="k-searchbox",kT=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],fT={size:[c.small,c.medium,c.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[y.solid,y.flat,y.outline]},vp={showIcon:!0,icon:"search",size:Y.defaultOptions.size,rounded:Y.defaultOptions.rounded,fillMode:Y.defaultOptions.fillMode},ze=e=>{let{value:t,placeholder:a,size:s,rounded:n,fillMode:d,hover:p,focus:u,valid:k,invalid:h,required:w,loading:A,disabled:b,showIcon:N=vp.showIcon,icon:C=vp.icon,...B}=e;return hT(Y,{...B,size:s,rounded:n,fillMode:d,hover:p,focus:u,valid:k,invalid:h,required:w,loading:A,disabled:b,className:o(e.className,bf),children:[N&&Ms(T,{className:"k-input-icon",icon:C}),Ms(ne,{placeholder:a,value:t}),Ms(q,{...e}),Ms(j,{...e}),Ms(ae,{...e})]})};ze.states=kT;ze.options=fT;ze.className=bf;ze.defaultOptions=vp;import{jsx as vO}from"react/jsx-runtime";import{Fragment as vf,jsx as Oo,jsxs as yp}from"react/jsx-runtime";var yf="k-textbox",gT=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],xT={size:[c.small,c.medium,c.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[y.solid,y.flat,y.outline]},Ga={showClearButton:!0,showValidationIcon:!0,size:Y.defaultOptions.size,rounded:Y.defaultOptions.rounded,fillMode:Y.defaultOptions.fillMode,separators:!0},U=e=>{let{size:t=Ga.size,rounded:a=Ga.rounded,fillMode:s=Ga.fillMode,separators:n=Ga.separators,showClearButton:d=Ga.showClearButton,showValidationIcon:p=Ga.showValidationIcon,prefix:u,suffix:k,type:h,value:w,placeholder:A,hover:b,focus:N,valid:C,invalid:B,required:E,loading:P,disabled:K,readonly:z,...Q}=e;return yp(Y,{...Q,size:t,rounded:a,fillMode:s,hover:b,focus:N,valid:C,invalid:B,required:E,loading:P,disabled:K,readonly:z,className:o(e.className,yf),children:[u&&yp(vf,{children:[Oo(te,{children:u}),n&&Oo(ve,{})]}),Oo(ne,{placeholder:A,value:w,type:h}),p&&Oo(j,{valid:C,invalid:B,loading:P,disabled:K}),Oo(q,{loading:P,disabled:K}),d&&Oo(ae,{loading:P,disabled:K,readonly:z,value:w}),k&&yp(vf,{children:[n&&Oo(ve,{}),Oo(oe,{children:k})]})]})};U.states=gT;U.options=xT;U.className=yf;U.defaultOptions=Ga;import{jsx as LO}from"react/jsx-runtime";import{Fragment as DO,jsx as KO}from"react/jsx-runtime";import{Fragment as WO,jsx as OO}from"react/jsx-runtime";import{jsx as Wo,jsxs as wp}from"react/jsx-runtime";var Af="k-actionsheet-titlebar",bT={},re=e=>{let{title:t,subtitle:a,actionsStart:s,actionsEnd:n,filter:d,input:p,inputValue:u,inputPlaceholder:k,adaptive:h,children:w,...A}=e;return wp("div",{...A,className:o(e.className,Af),children:[wp("div",{className:"k-actionsheet-titlebar-group",children:[s&&Wo("div",{className:"k-actionsheet-actions",children:s}),!w&&wp("div",{className:"k-actionsheet-title",children:[t&&Wo("div",{className:"k-text-center",children:t}),a&&Wo("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),w&&Wo("div",{className:"k-actionsheet-title",children:w}),n&&Wo("div",{className:"k-actionsheet-actions",children:n})]}),(p||d)&&Wo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?Wo(U,{value:u,placeholder:k,size:h?"large":"medium"}):Wo(ze,{placeholder:"Filter",size:h?"large":"medium"})})]})};re.className=Af;re.defaultOptions=bT;import{jsx as Tp,jsxs as TT}from"react/jsx-runtime";var Ap="k-actionsheet-view",vT=[],yT={},wT={},Gl=e=>{let{adaptive:t,animated:a,children:s,header:n,footer:d,...p}=e,u=n?.type===re&&Tp(re,{adaptive:t,...n?.props}),k=d?.type===Qt&&Tp(Qt,{...d?.props});return TT("div",{...p,className:o(e.className,Ap,{[`${Ap}-animated`]:a}),children:[u,Tp("div",{className:"k-actionsheet-content",children:s}),k]})};Gl.states=vT;Gl.options=yT;Gl.className=Ap;Gl.defaultOptions=wT;import{jsx as Wn,jsxs as CT}from"react/jsx-runtime";var Nf="k-actionsheet",AT=[],NT={},Ls={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},de=e=>{let{side:t=Ls.side,fullscreen:a=Ls.fullscreen,adaptive:s=Ls.adaptive,overlay:n=Ls.overlay,template:d,children:p,header:u,footer:k,...h}=e;return CT("div",{className:"k-actionsheet-container",children:[n&&Wn("div",{className:"k-overlay"}),Wn(Fo,{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:Wn("div",{...h,className:o(e.className,Nf,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":s}),children:d||Wn(Gl,{header:u,footer:k,adaptive:s,...e,children:p})})})]})};de.states=AT;de.options=NT;de.className=Nf;de.defaultOptions=Ls;import{jsx as uW}from"react/jsx-runtime";import{Fragment as IT,jsx as Es,jsxs as Np}from"react/jsx-runtime";var Cp="k-actionsheet-item",ST=[r.hover,r.focus,r.selected,r.disabled],Sp=e=>{let{iconName:t,text:a,description:s,hover:n,focus:d,selected:p,disabled:u,...k}=e;return Np("span",{...k,className:o(e.className,Cp,v(Cp,{hover:n,focus:d,selected:p,disabled:u})),children:[!e.children&&Es(IT,{children:Np("span",{className:"k-actionsheet-action",children:[t&&Es("span",{className:"k-icon-wrap",children:Es(T,{className:"k-actionsheet-item-icon",icon:t})}),Np("span",{className:"k-actionsheet-item-text",children:[a&&Es("span",{className:"k-actionsheet-item-title",children:a}),s&&Es("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};Sp.states=ST;Sp.className=Cp;import{jsx as wW,jsxs as TW}from"react/jsx-runtime";import{jsx as SW}from"react/jsx-runtime";import{jsx as LW}from"react/jsx-runtime";import{jsx as GW}from"react/jsx-runtime";import{Fragment as LT,jsx as pt,jsxs as Ip}from"react/jsx-runtime";var Sf="k-dropdownlist",BT=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],MT={size:[c.small,c.medium,c.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[y.solid,y.flat,y.outline]},Kl={showValue:!0,arrowIconName:"caret-alt-down",size:c.medium,rounded:x.medium,fillMode:y.solid},se=e=>{let{size:t=Kl.size,rounded:a=Kl.rounded,fillMode:s=Kl.fillMode,arrowIconName:n=Kl.arrowIconName,showValue:d=Kl.showValue,valueIconName:p,prefix:u,suffix:k,value:h,placeholder:w,hover:A,focus:b,valid:N,invalid:C,required:B,loading:E,disabled:P,readonly:K,popup:z,opened:Q,adaptive:be,adaptiveSettings:Fe,adaptiveTitle:lt,adaptiveSubtitle:zt,adaptiveFilter:Na,...Nl}=e;return Ip(LT,{children:[Ip(yt,{...Nl,size:t,rounded:a,fillMode:s,hover:A,focus:b,valid:N,invalid:C,required:B,loading:E,disabled:P,readonly:K,className:o(e.className,Sf,{"k-icon-picker":!d&&p}),children:[pt(te,{children:u}),pt(wo,{placeholder:w,value:h,showValue:d,valueIconName:p}),pt(j,{valid:N,invalid:C,loading:E,disabled:P}),pt(q,{loading:E,disabled:P}),pt(oe,{children:k}),pt(m,{className:"k-input-button",icon:n,rounded:null,size:e.size,fillMode:e.fillMode})]}),Q&&z&&pt(H,{className:"k-list-container k-dropdownlist-popup",children:z}),be&&pt(de,{adaptive:!0,...Fe,header:pt(re,{actionsEnd:pt(m,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Na,inputValue:h,inputPlaceholder:w,title:lt,subtitle:zt}),children:pt("div",{className:"k-list-container",children:Ip(Z,{size:"large",children:[pt(D,{text:"List item"}),pt(D,{text:"List item"}),pt(D,{text:"List item"})]})})})]})};se.states=BT;se.options=MT;se.className=Sf;se.defaultOptions=Kl;import{jsx as rQ}from"react/jsx-runtime";import{jsx as cQ,jsxs as pQ}from"react/jsx-runtime";import{Fragment as bQ,jsx as gQ,jsxs as xQ}from"react/jsx-runtime";import{jsx as TQ}from"react/jsx-runtime";import{jsx as IQ,jsxs as BQ}from"react/jsx-runtime";import{jsx as PQ,jsxs as GQ}from"react/jsx-runtime";import{Fragment as WQ,jsx as HQ,jsxs as OQ}from"react/jsx-runtime";import{Fragment as qQ,jsx as jQ,jsxs as UQ}from"react/jsx-runtime";import{jsx as If}from"react/jsx-runtime";var Qn="k-radio",ET=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked],YT={size:[c.small,c.medium,c.large]},Bf={size:c.medium},Ao=e=>{let{id:t,checked:a,hover:s,focus:n,disabled:d,invalid:p,valid:u,required:k,size:h=Bf.size,...w}=e;return If("span",{className:"k-radio-wrap",children:If("input",{...w,id:t,type:"radio",checked:a,required:k,className:o(e.className,Qn,S(Qn,{size:h}),v(Qn,{hover:s,focus:n,disabled:d,invalid:p,valid:u,checked:a}))})})};Ao.states=ET;Ao.options=YT;Ao.className=Qn;Ao.defaultOptions=Bf;import{jsx as KT}from"react/jsx-runtime";var Mf="k-radio-list",PT=[],GT={},Lf={layout:"vertical"},Dl=e=>{let{layout:t=Lf.layout,...a}=e;return KT("ul",{...a,className:o(e.className,Mf,{[`k-list-${t}`]:t}),children:e.children})};Dl.states=PT;Dl.options=GT;Dl.className=Mf;Dl.defaultOptions=Lf;import{jsx as zT}from"react/jsx-runtime";var Ef="k-radio-list-item",DT=[],FT={},RT={},Fl=e=>{let{...t}=e;return zT("li",{...t,className:o(e.className,Ef),children:e.children})};Fl.states=DT;Fl.options=FT;Fl.className=Ef;Fl.defaultOptions=RT;import{jsx as vV}from"react/jsx-runtime";import{Fragment as NV,jsx as AV,jsxs as CV}from"react/jsx-runtime";import{Fragment as LV,jsx as MV,jsxs as EV}from"react/jsx-runtime";import{Fragment as FV,jsx as KV,jsxs as DV}from"react/jsx-runtime";import{Fragment as WV,jsx as OV,jsxs as QV}from"react/jsx-runtime";import{Fragment as jV,jsx as JV,jsxs as UV}from"react/jsx-runtime";import{Fragment as OT,jsx as mt,jsxs as Rl}from"react/jsx-runtime";var Vn=({size:e,...t})=>mt(To,{formButtons:Rl(OT,{children:[mt(m,{className:"k-form-submit",themeColor:"primary",size:e,children:"Submit"}),mt(m,{className:"k-form-clear",size:e,children:"Clear"})]}),children:Rl(lo,{legend:"Form Legend",children:[mt(Xe,{label:"Label",editor:mt(U,{size:e})}),mt(Xe,{label:"Label",hint:"Hint text",editor:mt(se,{value:"Dropdown List",size:e})}),mt(Xe,{label:"City",editor:Rl("ul",{className:"k-radio-list k-list-horizontal",children:[Rl("li",{className:"k-radio-list-item",children:[mt(Ao,{checked:!0,size:e}),mt("label",{className:"k-radio-label",children:"Label"})]}),Rl("li",{className:"k-radio-list-item",children:[mt(Ao,{size:e}),mt("label",{className:"k-radio-label",children:"Label"})]}),Rl("li",{className:"k-radio-list-item",children:[mt(Ao,{size:e}),mt("label",{className:"k-radio-label",children:"Label"})]})]})})]}),size:e,...t});import{Fragment as w6,jsx as y6,jsxs as T6}from"react/jsx-runtime";import{Fragment as M6,jsx as B6,jsxs as L6}from"react/jsx-runtime";import{Fragment as VT,jsx as Yf,jsxs as XT}from"react/jsx-runtime";var Pf="k-menu-button",WT=[r.hover,r.focus,r.active,r.selected,r.disabled],QT={size:[c.small,c.medium,c.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[y.solid,y.flat,y.outline,y.clear,y.link],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark,f.inverse]},Da={size:c.medium,rounded:x.medium,fillMode:y.solid,themeColor:f.base,showArrow:!0,arrowIconName:"caret-alt-down"},_=e=>{let{size:t=Da.size,rounded:a=Da.rounded,fillMode:s=Da.fillMode,themeColor:n=Da.themeColor,hover:d,focus:p,active:u,selected:k,disabled:h,icon:w,text:A,showArrow:b=Da.showArrow,arrowIconName:N=Da.arrowIconName,popup:C,opened:B,...E}=e;return XT(VT,{children:[Yf(m,{...E,className:o(e.className,Pf),text:A,size:t,rounded:a,fillMode:s,themeColor:n,hover:d,focus:p,active:u,selected:k,disabled:h,icon:w,showArrow:b,arrowIconName:N}),B&&C&&Yf(H,{className:"k-menu-popup",children:C})]})};_.states=WT;_.options=QT;_.className=Pf;_.defaultOptions=Da;import{jsx as Z6}from"react/jsx-runtime";import{jsx as q6}from"react/jsx-runtime";import{jsx as t3}from"react/jsx-runtime";import{Fragment as jT,jsx as zl,jsxs as Gf}from"react/jsx-runtime";var Lp="k-menu-item",ZT=[r.hover,r.focus,r.active,r.selected,r.disabled],JT={},Kf={iconPosition:"before"},Ze=e=>{let{hover:t,focus:a,active:s,selected:n,disabled:d,icon:p,text:u,first:k,last:h,showArrow:w,arrowIconName:A,iconPosition:b=Kf.iconPosition,dir:N,children:C,...B}=e,E=zl(jT,{});C&&C.forEach(K=>{if(K.type==="MenuItemContent"){E.props.children.push(K);return}});let P=A;return P||(P=N==="rtl"?"caret-alt-left":"caret-alt-right"),Gf("li",{...B,className:o(e.className,Lp,"k-item",v(Lp,{focus:a,disabled:d,hover:t,active:s,selected:n}),{"k-first":k,"k-last":h}),children:[Gf("span",{className:o("k-link k-menu-link"),children:[p&&b==="before"&&zl(T,{className:"k-menu-link-icon",icon:p}),zl("span",{className:"k-menu-link-text",children:u}),p&&b==="after"&&zl(T,{className:"k-menu-link-icon",icon:p}),w&&zl("span",{className:"k-menu-expand-arrow",children:zl(T,{icon:P})})]}),E]})};Ze.states=ZT;Ze.options=JT;Ze.className=Lp;Ze.defaultOptions=Kf;import{Fragment as _T,jsx as Hl,jsxs as Df}from"react/jsx-runtime";var Ep="k-menu-item",UT=[r.hover,r.focus,r.active,r.selected,r.disabled],qT={},Yp={dir:"ltr",iconPosition:"before"},Vt=e=>{let{hover:t,focus:a,active:s,selected:n,disabled:d,icon:p,text:u,first:k,last:h,showArrow:w,arrowIconName:A,iconPosition:b=Yp.iconPosition,dir:N=Yp.dir,children:C,popup:B,...E}=e,P=Hl(_T,{});C&&C.forEach(z=>{if(z.type==="MenuListItemContent"){P.props.children.push(z);return}});let K=A;return K||(K=N==="rtl"?"caret-alt-left":"caret-alt-right"),Df("li",{...E,className:o(e.className,Ep,"k-item",v(Ep,{focus:a,disabled:d}),{"k-first":k,"k-last":h}),children:[Df("span",{className:o("k-link k-menu-link",v("k-menu-link",{hover:t,active:s,selected:n,disabled:d})),children:[p&&b==="before"&&Hl(T,{className:"k-menu-link-icon",icon:p}),Hl("span",{className:"k-menu-link-text",children:u}),p&&b==="after"&&Hl(T,{className:"k-menu-link-icon",icon:p}),w&&Hl("span",{className:"k-menu-expand-arrow",children:Hl(T,{icon:K})})]}),P,B]})};Vt.states=UT;Vt.options=qT;Vt.className=Ep;Vt.defaultOptions=Yp;import{jsx as oA}from"react/jsx-runtime";var Ff="k-menu-scroll-wrapper",$T=[],eA={},tA={},Ys=e=>{let{className:t,children:a,orientation:s,...n}=e;return oA("div",{...n,className:o(t,Ff,{"k-menu-scroll-wrapper-vertical":s==="vertical"}),children:a})};Ys.states=$T;Ys.options=eA;Ys.className=Ff;Ys.defaultOptions=tA;var Rf=Ys;import{Fragment as Pp,jsx as Fa,jsxs as Xn}from"react/jsx-runtime";var Gp="k-menu",aA=[],lA={},Zn={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},Xt=e=>{let{children:t,orientation:a=Zn.orientation,header:s=Zn.header,scrollable:n,scrollButtonsPosition:d=Zn.scrollButtonsPosition,wrapperStyles:p,dir:u,popup:k,...h}=e,w={horizontal:{prev:u!=="rtl"?"left":"right",next:u!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},A=Fa("ul",{dir:u,...h,className:o(e.className,"k-reset",Gp,{[`${Gp}-${a}`]:a,"k-header":s}),children:t});return Xn(Pp,{children:[n?Xn(Rf,{orientation:a,style:p,dir:e.dir,children:[d==="start"&&Xn(Pp,{children:[Fa(m,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${w[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Fa(m,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${w[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),d==="around"&&Fa(m,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${w[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),A,d==="end"&&Xn(Pp,{children:[Fa(m,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${w[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Fa(m,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${w[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),d==="around"&&Fa(m,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${w[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}):A,k]})};Xt.states=aA;Xt.options=lA;Xt.className=Gp;Xt.defaultOptions=Zn;import{jsx as rA}from"react/jsx-runtime";var Kp="k-separator",zf={orientation:"horizontal"},Ps=e=>{let{orientation:t=zf.orientation,...a}=e;return rA("li",{...a,className:o(e.className,"k-item",Kp,{[`${Kp}-${t}`]:t})})};Ps.className=Kp;Ps.defaultOptions=zf;import{Fragment as A3,jsx as N3}from"react/jsx-runtime";import{jsx as Hf}from"react/jsx-runtime";import{createElement as nA}from"react";var Dp="k-menu-group",sA=[],iA={size:[c.small,c.medium,c.large]},Fp={size:c.medium,dir:"ltr"},No=e=>{let{children:t,size:a=Fp.size,dir:s=Fp.dir,...n}=e,d=[];return t&&Array.isArray(t)&&t.map((p,u)=>{p.type===Vt?d.push(nA(Vt,{...p.props,dir:s,key:u})):p.type===Ps?d.push(Hf(Ps,{})):d.push(p)}),Hf("ul",{...n,className:o(e.className,Dp,S(Dp,{size:a})),children:d})};No.states=sA;No.options=iA;No.className=Dp;No.defaultOptions=Fp;import{Fragment as G3,jsx as P3,jsxs as K3}from"react/jsx-runtime";import{Fragment as W3,jsx as H3,jsxs as O3}from"react/jsx-runtime";import{Fragment as J3,jsx as Z3,jsxs as j3}from"react/jsx-runtime";import{Fragment as eX,jsx as $3,jsxs as tX}from"react/jsx-runtime";import{Fragment as sX,jsx as rX,jsxs as iX}from"react/jsx-runtime";import{jsx as NX,jsxs as CX}from"react/jsx-runtime";import{Fragment as pA,jsx as Rp,jsxs as Of}from"react/jsx-runtime";var zp="k-split-button",dA=[r.hover,r.focus,r.active,r.selected,r.disabled],cA={size:[c.small,c.medium,c.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[y.solid,y.flat,y.outline,y.clear,y.link],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark,f.inverse]},Ol={size:c.medium,rounded:x.medium,fillMode:y.solid,themeColor:f.base,arrowIconName:"caret-alt-down"},Ie=e=>{let{size:t=Ol.size,rounded:a=Ol.rounded,fillMode:s=Ol.fillMode,themeColor:n=Ol.themeColor,hover:d,focus:p,active:u,selected:k,disabled:h,icon:w,text:A,arrowIconName:b=Ol.arrowIconName,popup:N,opened:C,...B}=e;return Of(pA,{children:[Of("div",{...B,className:o(e.className,zp,"k-button-group",S(zp,{rounded:a})),children:[Rp(m,{text:A,icon:w,size:t,rounded:a,fillMode:s,themeColor:n,hover:d,focus:p,active:u,selected:k,disabled:h,children:e.children}),Rp(m,{className:"k-split-button-arrow",icon:b,size:t,rounded:a,fillMode:s,disabled:h})]}),C&&N&&Rp(H,{className:"k-menu-popup",children:N})]})};Ie.states=dA;Ie.options=cA;Ie.className=zp;Ie.defaultOptions=Ol;var Hp=Ie;import{jsx as HX}from"react/jsx-runtime";import{jsx as VX}from"react/jsx-runtime";import{jsx as jX}from"react/jsx-runtime";