UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 295 kB
var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>o({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),x=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},h={small:"small",medium:"medium",large:"large",full:"full"},b={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"},Nt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{Fragment as Ov,jsx as yk}from"react/jsx-runtime";var Vc="k-icon k-font-icon",Rv=[],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]},Hv={},ys=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?yk("span",{...d,className:o(e.className,Vc,C(Vc,{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"})}):yk(Ov,{})};ys.states=Rv;ys.options=zv;ys.className=Vc;ys.defaultOptions=Hv;var wk=ys;import{Fragment as Vv,jsx as Cn}from"react/jsx-runtime";var Xc="k-icon k-svg-icon",Wv=[],Qv={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]},Tk={viewBox:"0 0 24 24"},ws=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=Tk.viewBox,icon:d,...p}=e;if(!d)return Cn(Vv,{});d==="none"&&{...p,className:o(e.className,Xc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return Cn("span",{...p,className:o(e.className,Xc,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:Cn("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})})};ws.states=Wv;ws.options=Qv;ws.className=Xc;ws.defaultOptions=Tk;var Zc=ws;import*as Ak from"@progress/kendo-svg-icons";import{Fragment as Nk,jsx as Ts}from"react/jsx-runtime";var Xv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Zv=[],Jv={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]},Jc={viewBox:"0 0 24 24",type:"svg"},v=e=>{let{size:t,themeColor:a,icon:r,type:s=Jc.type,rotate:i,flip:d,viewBox:p=Jc.viewBox,...m}=e;if(!r)return Ts(Nk,{});if(s==="svg"){if(r==="none")return Ts(Zc,{...m,icon:r,size:t});let k=Xv(`${r}-icon`);return Ak[k]?Ts(Zc,{...m,icon:Ak[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):Ts(Nk,{})}return Ts(wk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};v.states=Zv;v.options=Jv;v.defaultOptions=Jc;var jc=v;import{jsx as Ck,jsxs as _v}from"react/jsx-runtime";var Sk="k-pivotgrid-configurator-button",jv=[],Uv={},qv={},As=e=>{let{...t}=e;return Ck("div",{...t,className:o(e.className,Sk),children:_v("span",{children:["Change settings",Ck(v,{icon:"gear"})]})})};As.states=jv;As.options=Uv;As.className=Sk;As.defaultOptions=qv;var Ik=As;import{jsx as Ll,jsxs as Bk}from"react/jsx-runtime";var Mk="k-pivotgrid",$v=[],ey={},Sn={emptyCell:Ll("span",{className:"k-pivotgrid-empty-cell",children:Ll("span",{className:"k-sr-only",children:"PivotGrid component. Use the arrow keys to navigate."})}),configuratorDisplay:"none",configuratorPosition:"right"},El=e=>{let{emptyCell:t=Sn.emptyCell,configuratorDisplay:a=Sn.configuratorDisplay,configuratorPosition:r=Sn.configuratorPosition,configurator:s,columnHeaders:i,rowHeaders:d,children:p,...m}=e;return Bk("div",{className:{left:"k-d-flex k-flex-row-reverse k-pos-relative",bottom:"k-d-flex k-flex-col k-pos-relative",top:"k-d-flex k-flex-col-reverse k-pos-relative",right:"k-d-flex k-flex-row k-pos-relative"}[r],children:[Bk("div",{...m,className:o(e.className,Mk),children:[t,Ll("div",{className:"k-pivotgrid-column-headers",children:i}),Ll("div",{className:"k-pivotgrid-row-headers",children:d}),Ll("div",{className:"k-pivotgrid-values",children:p})]}),s&&a==="opened"&&s,a!=="none"&&Ll(Ik,{})]})};El.states=$v;El.options=ey;El.className=Mk;El.defaultOptions=Sn;import{jsx as ly}from"react/jsx-runtime";var Lk="k-pivotgrid-table",ty=[],oy={},ay={},Oo=e=>{let{children:t,...a}=e;return ly("table",{...a,className:o(e.className,Lk),children:t})};Oo.states=ty;Oo.options=oy;Oo.className=Lk;Oo.defaultOptions=ay;import{jsx as ny}from"react/jsx-runtime";var Ek="k-pivotgrid-tbody",ry=[],sy={},iy={},Wo=e=>{let{children:t,...a}=e;return ny("tbody",{...a,className:o(e.className,Ek),children:t})};Wo.states=ry;Wo.options=sy;Wo.className=Ek;Wo.defaultOptions=iy;import{jsx as my}from"react/jsx-runtime";var Uc="k-pivotgrid-row",dy=[l.hover,l.selected],cy={},py={},Me=e=>{let{columnTotal:t,children:a,hover:r,selected:s,...i}=e;return my("tr",{...i,className:o(e.className,Uc,{"k-pivotgrid-column-total":t},x(Uc,{hover:r,selected:s})),children:a})};Me.states=dy;Me.options=cy;Me.className=Uc;Me.defaultOptions=py;import{jsx as qc,jsxs as hy}from"react/jsx-runtime";var _c="k-pivotgrid-cell",uy=[l.focus,l.selected],ky={},fy={},R=e=>{let{as:t="td",toggle:a,headerTitle:r,content:s,headerRootCell:i,totalCell:d,headerTotalCell:p,rowTotalCell:m,focus:k,selected:y,...T}=e,g={up:"up",down:"down"};return hy(t,{...T,className:o(e.className,_c,{"k-pivotgrid-expanded":a==="up","k-pivotgrid-header-root":i,"k-pivotgrid-total":d,"k-pivotgrid-header-total":p,"k-pivotgrid-row-total":m},x(_c,{focus:k,selected:y})),children:[a&&qc(v,{className:"k-pivotgrid-toggle",icon:`chevron-${g[a]}`}),r&&qc("span",{className:"k-pivotgrid-header-title",children:r}),(s||s==="")&&qc("span",{className:"k-pivotgrid-content",children:s})]})};R.states=uy;R.options=ky;R.className=_c;R.defaultOptions=fy;import{jsx as by}from"react/jsx-runtime";var In="k-actions",gy=[],xy={},$c={alignment:"start",orientation:"horizontal"},V=e=>{let{alignment:t=$c.alignment,orientation:a=$c.orientation,...r}=e;return by("div",{...r,className:o(In,{[`${In}-${t}`]:t,[`${In}-${a}`]:a},e.className),children:e.children})};V.states=gy;V.options=xy;V.className=In;V.defaultOptions=$c;var Yk=V;import{Fragment as wy,jsx as Ns,jsxs as Pk}from"react/jsx-runtime";var Bn="k-button",vy=[l.hover,l.focus,l.active,l.selected,l.disabled],yy={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]},Ea={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Ea.size,rounded:a=Ea.rounded,fillMode:r=Ea.fillMode,themeColor:s=Ea.themeColor,showArrow:i=Ea.showArrow,arrowIconName:d=Ea.arrowIconName,hover:p,focus:m,active:k,selected:y,disabled:T,icon:g,text:A,iconClassName:N,...S}=e,B=g!==void 0,L=e.children!==void 0;return Pk("button",{...S,className:o(e.className,Bn,C(Bn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Bn,{hover:p,focus:m,active:k,disabled:T,selected:y}),{"k-icon-button":!A&&!L&&B}),children:[g&&Ns(v,{className:o(N,"k-button-icon"),icon:g}),A?Pk(wy,{children:[A&&Ns("span",{className:"k-button-text",children:A}),e.children]}):e.children&&Ns("span",{className:"k-button-text",children:e.children}),i&&Ns("span",{className:"k-menu-button-arrow k-button-arrow",children:Ns(v,{icon:d})})]})};c.states=vy;c.options=yy;c.className=Bn;c.defaultOptions=Ea;import{jsx as Ty}from"react/jsx-runtime";var $e=e=>Ty(c,{icon:"folder",...e,children:void 0});import{jsx as Ay}from"react/jsx-runtime";var Zt=e=>Ay(c,{icon:"folder",children:"Button",...e});import{jsx as gK}from"react/jsx-runtime";import{Fragment as Iy,jsx as Ya,jsxs as Gk}from"react/jsx-runtime";var Mn="k-pivotgrid-configurator",Ny=[],Cy={},Sy=Gk(Iy,{children:[Ya(c,{children:"Cancel"}),Ya(c,{themeColor:"primary",children:"Apply"})]}),Cs={orientation:"vertical",mode:"push",actionButtons:Sy,header:"Settings"},Yl=e=>{let{orientation:t=Cs.orientation,mode:a=Cs.mode,actionButtons:r=Cs.actionButtons,header:s=Cs.header,children:i,...d}=e;return Ya("div",{...d,className:o(e.className,Mn),children:Gk("div",{className:o("k-pivotgrid-configurator-panel",{[`${Mn}-${t}`]:t,[`${Mn}-${a}`]:a}),children:[Ya("div",{className:"k-pivotgrid-configurator-header",children:Ya("div",{className:"k-pivotgrid-configurator-header-text",children:s})}),Ya("div",{className:"k-pivotgrid-configurator-content",children:i}),Ya(V,{alignment:"end",className:"k-pivotgrid-configurator-actions",children:r})]})})};Yl.states=Ny;Yl.options=Cy;Yl.className=Mn;Yl.defaultOptions=Cs;import{jsx as Ly}from"react/jsx-runtime";var By=[],My={},Kk=e=>{let{type:t,...a}=e,r=t==="p"?"paragraph":t,s=t.includes("display")?"div":t;return Ly(s,{...a,className:o(e.className,{[`k-${r}`]:t}),children:e.children})};Kk.states=By;Kk.options=My;import{jsx as Py}from"react/jsx-runtime";var Ln="k-input",Ey=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Yy={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},En={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=En.size,rounded:k=En.rounded,fillMode:y=En.fillMode,...T}=e;return Py("span",{...T,className:o(e.className,Ln,C(Ln,{size:m,rounded:k,fillMode:y}),x(Ln,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=Ey;M.options=Yy;M.className=Ln;M.defaultOptions=En;import{jsx as Dy}from"react/jsx-runtime";var Yn="k-picker",Gy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Ky={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Pn={size:n.medium,rounded:h.medium,fillMode:b.solid},Ct=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=Pn.size,rounded:k=Pn.rounded,fillMode:y=Pn.fillMode,...T}=e;return Dy("span",{...T,className:o(e.className,Yn,C(Yn,{size:m,rounded:k,fillMode:y}),x(Yn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};Ct.states=Gy;Ct.options=Ky;Ct.className=Yn;Ct.defaultOptions=Pn;import{Fragment as zy,jsx as ep}from"react/jsx-runtime";var Dk="k-clear-value",Fy=[l.disabled,l.loading,l.readonly],Ry={},le=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?ep(zy,{}):ep("span",{className:o(e.className,Dk),children:ep(v,{icon:"x"})})};le.states=Fy;le.options=Ry;le.className=Dk;import{jsx as Wy}from"react/jsx-runtime";var tp="k-input-inner",Hy=[],Oy={},Gn={type:"text",autocomplete:"off",value:"",placeholder:""},de=e=>{let{value:t=Gn.value,type:a=Gn.type,placeholder:r=Gn.placeholder,autocomplete:s=Gn.autocomplete,...i}=e;return Wy("input",{...i,type:a,className:o(e.className,tp,C(tp,e)),placeholder:r,autoComplete:s,defaultValue:t})};de.states=Hy;de.options=Oy;de.className=tp;import{jsx as Fk,jsxs as Xy}from"react/jsx-runtime";var op="k-input-inner",Qy=[],Vy={},Co=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return Xy("span",{...d,className:o(e.className,op,C(op,e)),children:[s,!s&&i&&Fk(v,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&Fk("span",{className:"k-input-value-text",children:t})]})};Co.states=Qy;Co.options=Vy;Co.className=op;import{jsx as jy}from"react/jsx-runtime";var ap="k-input-inner",Zy=[],Jy={},Rk={value:"",placeholder:""},Ss=e=>{let{value:t=Rk.value,placeholder:a=Rk.placeholder,rows:r,...s}=e;return jy("textarea",{...s,className:o(e.className,ap,C(ap,e)),placeholder:a,rows:r,defaultValue:t})};Ss.states=Zy;Ss.options=Jy;Ss.className=ap;import{Fragment as qy,jsx as zk}from"react/jsx-runtime";var Hk="k-input-loading-icon",Uy=[l.disabled,l.loading],U=e=>{let{disabled:t,loading:a}=e;return t||!a?zk(qy,{}):zk("span",{className:o(e.className,Hk,"k-icon k-i-loading")})};U.states=Uy;U.className=Hk;import{Fragment as ew,jsx as Ok}from"react/jsx-runtime";var Wk="k-input-validation-icon",_y=[l.valid,l.invalid,l.disabled,l.loading],$y={},J=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Ok(ew,{}):Ok(v,{className:o(Wk),icon:i})};J.states=_y;J.options=$y;J.className=Wk;import{Fragment as aw,jsx as Qk}from"react/jsx-runtime";var tw="k-input-prefix",ow={direction:"horizontal"},oe=e=>{let{direction:t=ow.direction,...a}=e;return e.children?Qk("span",{...a,className:o(tw,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Qk(aw,{})};import{Fragment as sw,jsx as Vk}from"react/jsx-runtime";var lw="k-input-suffix",rw={direction:"horizontal"},ae=e=>{let{direction:t=rw.direction,...a}=e;return e.children?Vk("span",{...a,className:o(lw,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Vk(sw,{})};import{jsx as fD}from"react/jsx-runtime";import{jsx as bD}from"react/jsx-runtime";import{jsx as nw}from"react/jsx-runtime";var Xk="k-input-separator",iw={direction:"vertical"},ve=e=>{let{direction:t=iw.direction,...a}=e;return nw("span",{...a,className:o(Xk,e.className,{[`${Xk}-${t}`]:t})})};import{jsx as Zk}from"react/jsx-runtime";var Jk="k-animation-container",dw=[],cw={},jk={positionMode:"absolute"},Qo=e=>{let{positionMode:t=jk.positionMode,animationStyle:a,offset:r,...s}=e;return Zk("div",{...s,style:{...r,...e.style},className:o(e.className,Jk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Zk("div",{className:"k-child-animation-container",style:a,children:e.children})})};Qo.states=dw;Qo.options=cw;Qo.className=Jk;Qo.defaultOptions=jk;import{jsx as Uk}from"react/jsx-runtime";var qk="k-popup",pw=[],mw={},_k={positionMode:"absolute"},z=e=>{let{offset:t,positionMode:a=_k.positionMode,animationStyle:r,...s}=e;return Uk(Qo,{positionMode:a,offset:t,animationStyle:r,children:Uk("div",{...s,className:o(e.className,qk),children:e.children})})};z.states=pw;z.options=mw;z.className=qk;z.defaultOptions=_k;import{jsx as kw}from"react/jsx-runtime";var uw="k-no-data",Is=e=>kw("span",{className:o(uw,e.className),children:e.children});import{jsx as Pl,jsxs as $k}from"react/jsx-runtime";var lp="k-list",fw=[],hw={size:[n.small,n.medium,n.large]},ef={size:n.medium},X=e=>{let{size:t=ef.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:d,...p}=e,m,k,y,T,g=[];return r?r.map((A,N)=>{A.type===we?(A.props.root===!0?(m=A.props.label,A.props.children.map((S,B)=>{g.push(Pl(P,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):A.props.children.forEach((S,B)=>{let L="";B===0&&(L=A.props.label),g.push(Pl(P,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=Pl(we,{label:m,virtualization:a,children:g})):A.type===P&&(g.push(Pl(P,{...A.props},`${A.type}-${N}`)),y=Pl(Gl,{virtualization:a,children:g}),d&&(T=$k(Is,{className:"k-sr-only",children:[g.length," items found."]})))}):T=Pl(Is,{children:"No data found."}),$k("div",{...p,className:o(e.className,lp,C(lp,{size:t}),{"k-virtual-list":a}),children:[s,i,k,y,T]})};X.states=fw;X.options=hw;X.className=lp;X.defaultOptions=ef;import{jsx as Pa,jsxs as bw}from"react/jsx-runtime";var rp="k-list",gw=[],xw={size:[n.small,n.medium,n.large]},tf={size:n.medium},Ga=e=>{let{size:t=tf.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,y)=>{k.type===we?(k.props.root===!0?(i=k.props.label,k.props.children.map((T,g)=>{m.push(Pa(P,{...T.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Pa(of,{...k.props,children:k.props.label},`listChild-${y}`)),k.props.children.map((T,g)=>{m.push(Pa(P,{...T.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Pa(we,{label:i,virtualization:a,children:m})):k.type===P&&(m.push(Pa(P,{...k.props},`${k.type}-${y}`)),p=Pa(Gl,{virtualization:a,children:m}))}):p=Pa(Is,{children:"No data found."}),bw("div",{...s,className:o(e.className,rp,C(rp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Ga.states=gw;Ga.options=xw;Ga.className=rp;Ga.defaultOptions=tf;import{jsx as af}from"react/jsx-runtime";var Kn="k-checkbox",vw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],yw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full]},sp={size:n.medium,rounded:h.medium},Je=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:y=sp.size,rounded:T=sp.rounded,...g}=e;return af("span",{className:"k-checkbox-wrap",children:af("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Kn,C(Kn,{size:y,rounded:T}),x(Kn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};Je.states=vw;Je.options=yw;Je.className=Kn;Je.defaultOptions=sp;import{jsx as Aw}from"react/jsx-runtime";var lf="k-checkbox-list",ww=[],Tw={},rf={layout:"vertical"},Kl=e=>{let{layout:t=rf.layout,...a}=e;return Aw("ul",{...a,className:o(e.className,lf,{[`k-list-${t}`]:t}),children:e.children})};Kl.states=ww;Kl.options=Tw;Kl.className=lf;Kl.defaultOptions=rf;import{jsx as Iw}from"react/jsx-runtime";var sf="k-checkbox-list-item",Nw=[],Cw={},Sw={},Dl=e=>{let{...t}=e;return Iw("li",{...t,className:o(e.className,sf),children:e.children})};Dl.states=Nw;Dl.options=Cw;Dl.className=sf;Dl.defaultOptions=Sw;import{Fragment as wF,jsx as yF,jsxs as TF}from"react/jsx-runtime";import{Fragment as IF,jsx as SF,jsxs as BF}from"react/jsx-runtime";import{Fragment as PF,jsx as YF,jsxs as GF}from"react/jsx-runtime";import{Fragment as zF,jsx as RF,jsxs as HF}from"react/jsx-runtime";import{jsx as VF}from"react/jsx-runtime";import{jsx as jF}from"react/jsx-runtime";import{jsx as Dn,jsxs as Ew}from"react/jsx-runtime";var np="k-list-item",Bw=[l.hover,l.focus,l.selected,l.disabled],Mw={},Lw={},P=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:k,selected:y,disabled:T,...g}=e,A=t||e.children;return Ew("li",{...g,className:o(e.className,r?"k-list-group-item":np,x(np,{hover:m,focus:k,disabled:T,selected:y})),children:[d&&Dn(Je,{checked:p}),s&&Dn(v,{icon:i}),Dn("span",{className:"k-list-item-text",children:A}),a&&a!==""&&Dn("div",{className:"k-list-item-group-label",children:a})]})};P.states=Bw;P.options=Mw;P.className=np;P.defaultOptions=Lw;import{jsx as dp,jsxs as Pw}from"react/jsx-runtime";var Yw="k-list-content",Gl=e=>{let{virtualization:t,...a}=e;return Pw("div",{...a,className:o(Yw,e.className),children:[dp("ul",{className:o("k-list-ul"),children:e.children}),t&&dp("div",{className:"k-height-container",children:dp("div",{})})]})};import{jsx as nf}from"react/jsx-runtime";var Gw="k-list-group-sticky-header",df=e=>nf("div",{className:o(Gw,e.className),children:nf("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Kw,jsx as cf,jsxs as Dw}from"react/jsx-runtime";var we=e=>{let{virtualization:t,label:a}=e;return Dw(Kw,{children:[a&&cf(df,{children:a}),e.children&&cf(Gl,{virtualization:t,children:e.children})]})};import{jsx as pf}from"react/jsx-runtime";var Fw="k-list-group-item",of=e=>pf("li",{className:o(Fw,e.className),children:pf("span",{className:"k-list-item-text",children:e.children})});import{jsx as Ow}from"react/jsx-runtime";var cp="k-list-optionlabel",Rw=[l.hover,l.focus,l.selected,l.disabled],zw={},Hw={},Fn=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Ow("div",{...d,className:o(cp,x(cp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Fn.states=Rw;Fn.options=zw;Fn.className=cp;Fn.defaultOptions=Hw;import{jsx as Xw}from"react/jsx-runtime";var pp="k-list-custom-value",Ww=[l.hover,l.focus,l.selected,l.disabled],Qw={},Vw={},et=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Xw("div",{...d,className:o(pp,x(pp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};et.states=Ww;et.options=Qw;et.className=pp;et.defaultOptions=Vw;import{jsx as ER}from"react/jsx-runtime";import{jsx as KR}from"react/jsx-runtime";import{jsx as zR,jsxs as HR}from"react/jsx-runtime";import{jsx as VR,jsxs as XR}from"react/jsx-runtime";import{jsx as UR}from"react/jsx-runtime";import{jsx as ez,jsxs as tz}from"react/jsx-runtime";import{jsx as rz,jsxs as sz}from"react/jsx-runtime";import{jsx as mp,jsxs as jw}from"react/jsx-runtime";var mf="k-suggestion-group",Zw=[],Jw={},uf={scrollable:!0},Ka=e=>{let{scrollable:t=uf.scrollable,...a}=e,r=mp("div",{...a,className:o(mf,e.className),children:e.children});return t?jw("div",{className:"k-suggestion-scrollwrap",children:[mp(c,{icon:"chevron-left"}),r,mp(c,{icon:"chevron-right"})]}):r};Ka.states=Zw;Ka.options=Jw;Ka.className=mf;Ka.defaultOptions=uf;import{jsx as $w}from"react/jsx-runtime";var Rn="k-suggestion",Uw=[l.active,l.hover,l.focus],qw={themeColor:[u.base,u.primary,u.secondary]},_w={text:"Suggestion"},Da=e=>{let{themeColor:t,active:a,hover:r,focus:s,text:i,...d}=e;return $w("span",{...d,className:o(e.className,Rn,x(Rn,{hover:r,active:a,focus:s}),C(Rn,{themeColor:t})),children:i})};Da.states=Uw;Da.options=qw;Da.className=Rn;Da.item=_w;import{Fragment as Gz,jsx as Pz,jsxs as Kz}from"react/jsx-runtime";import{Fragment as Hz,jsx as zz,jsxs as Oz}from"react/jsx-runtime";import{jsx as kf}from"react/jsx-runtime";var Bs="k-avatar";var eT=[l.hover,l.focus,l.active,l.selected,l.disabled],tT={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]},Fa={type:"text",size:n.medium,rounded:h.full,fillMode:b.solid,themeColor:u.primary,border:!1},so=e=>{let{size:t=Fa.size,rounded:a=Fa.rounded,fillMode:r=Fa.fillMode,themeColor:s=Fa.themeColor,type:i=Fa.type,border:d=Fa.border,...p}=e;return kf("div",{...p,className:o(e.className,Bs,C(Bs,{size:t,rounded:a,fillMode:r,themeColor:s}),{[`${Bs}-bordered`]:d}),children:kf("span",{className:`${Bs}-${i}`,children:e.children})})};so.states=eT;so.options=tT;so.className=Bs;so.defaultOptions=Fa;import{jsx as e0}from"react/jsx-runtime";import{jsx as l0}from"react/jsx-runtime";import{jsx as n0}from"react/jsx-runtime";import{jsx as lT}from"react/jsx-runtime";var Ms="k-badge",oT=[],aT={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]},Ls={size:n.medium,fillMode:b.solid,themeColor:u.primary,cutoutBorder:!1},Fl=e=>{let{size:t=Ls.size,fillMode:a=Ls.fillMode,themeColor:r=Ls.themeColor,cutoutBorder:s=Ls.cutoutBorder,rounded:i,position:d,align:p,...m}=e;return lT("span",{...m,className:o(e.className,Ms,C(Ms,{size:t,rounded:i,fillMode:a,themeColor:r}),{[`${Ms}-${d}`]:d,[`k-${p}`]:p,[`${Ms}-border-cutout`]:s}),children:e.children})};Fl.states=oT;Fl.options=aT;Fl.className=Ms;Fl.defaultOptions=Ls;import{jsx as v0}from"react/jsx-runtime";import{jsx as N0}from"react/jsx-runtime";import{jsx as zn}from"react/jsx-runtime";var rT="k-chip-action";var Oe=e=>{let{type:t,...a}=e,r;switch(t){case"remove":r=zn(v,{icon:"x-circle",size:"small"});break;case"more":r=zn(v,{icon:"more-vertical",size:"small"});break;default:return zn(v,{icon:t,size:"small"})}return zn("span",{...a,className:o(e.className,rT,`k-chip-${t}-action`),children:r})};import{jsx as Rl,jsxs as nT}from"react/jsx-runtime";var Hn="k-chip",sT=[l.hover,l.focus,l.active,l.selected,l.disabled],iT={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]},zl={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,avatarImage:"/packages/html/assets/avatar.jpg"},tt=e=>{let{size:t=zl.size,rounded:a=zl.rounded,fillMode:r=zl.fillMode,themeColor:s=zl.themeColor,text:i,icon:d,actions:p,showAvatar:m,avatarImage:k=zl.avatarImage,hover:y,focus:T,active:g,selected:A,disabled:N,...S}=e;return nT("div",{...S,className:o(e.className,Hn,C(Hn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Hn,{hover:y,focus:T,active:g,disabled:N,selected:A})),children:[d&&Rl(v,{className:"k-chip-icon",icon:d,size:"small"}),m&&Rl(so,{className:"k-chip-avatar",type:"image",children:Rl("img",{src:k})}),Rl("span",{className:"k-chip-content",children:e.children?e.children:i&&Rl("span",{className:"k-chip-label",children:i})}),p&&Rl("span",{className:"k-chip-actions",children:p})]})};tt.states=sT;tt.options=iT;tt.className=Hn;tt.defaultOptions=zl;import{jsx as pT}from"react/jsx-runtime";var up="k-chip-list",dT=[],cT={size:[n.small,n.medium,n.large]},hf={size:n.medium},mt=e=>{let{size:t=hf.size,...a}=e;return pT("div",{...a,className:o(e.className,up,C(up,{size:t})),children:e.children})};mt.states=dT;mt.options=cT;mt.className=up;mt.defaultOptions=hf;import{jsx as V0}from"react/jsx-runtime";import{jsx as j0}from"react/jsx-runtime";import{jsx as $0}from"react/jsx-runtime";import{jsx as lH}from"react/jsx-runtime";import{Fragment as cH,jsx as dH,jsxs as pH}from"react/jsx-runtime";import{jsx as gf,jsxs as kT}from"react/jsx-runtime";var xf="k-color-preview",mT=[],uT={},Vo=e=>{let{color:t,iconName:a,...r}=e;return kT("span",{...r,className:o(e.className,xf,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&gf(v,{icon:a,className:"k-color-preview-icon"}),gf("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Vo.states=mT;Vo.options=uT;Vo.className=xf;import{Fragment as kp,jsx as bf,jsxs as Wn}from"react/jsx-runtime";var fp="k-loader",fT={pulsing:"pulsing-2","infinite-spinner":"spinner-3","converging-spinner":"spinner-4"},hT=[],gT={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]},Qn={size:n.medium,themeColor:u.primary,animation:"pulsing"},Xo=e=>{let{size:t=Qn.size,themeColor:a=Qn.themeColor,animation:r=Qn.animation,...s}=e,i=bf("span",{className:"k-loader-segment"});return bf("div",{...s,className:o(e.className,fp,{[`k-loader-${fT[r]||r}`]:r},C(fp,{size:t,themeColor:a})),children:Wn("div",{className:"k-loader-canvas",children:[r==="pulsing"&&Wn(kp,{children:[i,i]}),r==="infinite-spinner"&&Wn(kp,{children:[i,i,i]}),r==="converging-spinner"&&Wn(kp,{children:[i,i,i,i]})]})})};Xo.states=hT;Xo.options=gT;Xo.className=fp;Xo.defaultOptions=Qn;var vf=Xo;import{jsx as hp,jsxs as yf}from"react/jsx-runtime";var gp="k-loader-container",xT=[],bT={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]},Ra={size:n.medium,themeColor:u.primary,loaderType:"pulsing",position:"top",overlay:"dark",panel:!1},Es=e=>{let{size:t=Ra.size,themeColor:a=Ra.themeColor,loaderType:r=Ra.loaderType,position:s=Ra.position,overlay:i=Ra.overlay,panel:d=Ra.panel,...p}=e;return yf("div",{...p,className:o(e.className,gp,C(gp,{size:t}),{[`k-loader-${s}`]:s}),children:[hp("div",{className:`k-loader-container-overlay k-overlay-${i}`}),yf("div",{className:o("k-loader-container-inner",{"k-loader-container-panel":d}),children:[hp(vf,{size:t,themeColor:a,animation:r}),hp("div",{className:`k-loader-container-label !k-text-${a}`,children:"Loading..."})]})]})};Es.states=xT;Es.options=bT;Es.className=gp;Es.defaultOptions=Ra;import{jsx as DH}from"react/jsx-runtime";import{jsx as HH}from"react/jsx-runtime";import{jsx as VH}from"react/jsx-runtime";import{jsx as jH}from"react/jsx-runtime";import{jsx as wT}from"react/jsx-runtime";var wf="k-skeleton",vT=[],yT={},xp={shape:"text",animation:"pulse"},Zo=e=>{let{shape:t=xp.shape,animation:a=xp.animation,...r}=e;return wT("span",{...r,className:o(e.className,wf,{[`k-skeleton-${t}`]:t,[`k-skeleton-${a}`]:a}),style:e.style})};Zo.states=vT;Zo.options=yT;Zo.className=wf;Zo.defaultOptions=xp;import{jsx as d8}from"react/jsx-runtime";import{jsx as TT}from"react/jsx-runtime";var Tf=e=>TT(Zo,{shape:"rect",...e});import{jsx as h8}from"react/jsx-runtime";import{jsx as Ys,jsxs as bp}from"react/jsx-runtime";var vp="k-form-field",AT=[l.disabled],je=e=>{let{label:t,orientation:a,optional:r,editor:s,hint:i,error:d,info:p,disabled:m,dir:k,colSpan:y}=e;return bp("div",{className:o(vp,e.className,x(vp,{disabled:m}),{[`k-col-span-${y}`]:y}),dir:k,children:[t&&bp("label",{className:o("k-label","k-form-label"),children:[t,r&&Ys("span",{className:"k-label-optional",children:"(Optional)"}),p&&Ys("span",{className:"k-field-info",children:"(field info)"})]}),a==="horizontal"&&!t&&Ys("span",{className:"k-label k-form-label k-label-empty"}),bp("div",{className:"k-form-field-wrap",children:[s,i&&Ys("div",{className:"k-form-hint",children:i}),d&&Ys("div",{className:"k-form-error",children:d})]})]})};je.states=AT;je.className=vp;import{Fragment as NT,jsx as yp,jsxs as CT}from"react/jsx-runtime";var Af="k-form-fieldset",io=e=>{let{legend:t,layout:a,cols:r,gutters:s,colSpan:i}=e;return CT("fieldset",{className:o(Af,{[`k-col-span-${i}`]:i}),children:[t&&yp("legend",{className:"k-form-legend",children:t}),a==="grid"?yp("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}):yp(NT,{children:e.children})]})};io.className=Af;import{Fragment as BT,jsx as Ps,jsxs as MT}from"react/jsx-runtime";import{createElement as wp}from"react";var Vn="k-form",ST=[],IT={size:[n.small,n.medium,n.large]},Xn={size:n.medium,layout:"basic",tag:"form"},no=e=>{let{size:t=Xn.size,orientation:a,layout:r=Xn.layout,formButtons:s,cols:i,gutters:d,tag:p=Xn.tag,children:m}=e,k=({tag:T,className:g,children:A})=>T==="form"?Ps("form",{className:g,children:A}):Ps("div",{className:g,children:A}),y=[];return m&&(Array.isArray(m)?m.map((T,g)=>{T.type===je?y.push(wp(je,{...T.props,orientation:a,key:g})):y.push(T)}):m.type===je?y.push(wp(je,{...m.props,orientation:a,key:`${new Date().getTime()}`})):m.type===io&&y.push(wp(io,{...m.props,key:`${new Date().getTime()}`}))),MT(k,{tag:p,className:o(e.className,Vn,C(Vn,{size:t}),{[`${Vn}-${a}`]:a}),children:[r==="grid"?Ps("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:y}):Ps(BT,{children:y}),s&&Ps("div",{className:"k-form-buttons",children:s})]})};no.states=ST;no.options=IT;no.className=Vn;no.defaultOptions=Xn;import{jsx as ET}from"react/jsx-runtime";var LT="k-actionsheet-footer",Nf={alignment:"stretched",orientation:"horizontal"},Jt=e=>{let{alignment:t=Nf.alignment,orientation:a=Nf.orientation,template:r,as:s=r?"div":V,...i}=e;return ET(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,LT),children:e.children})};import{jsx as Gs,jsxs as GT}from"react/jsx-runtime";var Cf="k-searchbox",YT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],PT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Tp={showIcon:!0,icon:"search",size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},We=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:y,loading:T,disabled:g,showIcon:A=Tp.showIcon,icon:N=Tp.icon,...S}=e;return GT(M,{...S,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:y,loading:T,disabled:g,className:o(e.className,Cf),children:[A&&Gs(v,{className:"k-input-icon",icon:N}),Gs(de,{placeholder:a,value:t}),Gs(U,{...e}),Gs(J,{...e}),Gs(le,{...e})]})};We.states=YT;We.options=PT;We.className=Cf;We.defaultOptions=Tp;import{jsx as Z8}from"react/jsx-runtime";import{Fragment as Sf,jsx as Jo,jsxs as Ap}from"react/jsx-runtime";var If="k-textbox",KT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],DT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},za={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},j=e=>{let{size:t=za.size,rounded:a=za.rounded,fillMode:r=za.fillMode,separators:s=za.separators,showClearButton:i=za.showClearButton,showValidationIcon:d=za.showValidationIcon,prefix:p,suffix:m,type:k,value:y,placeholder:T,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:F,...W}=e;return Ap(M,{...W,size:t,rounded:a,fillMode:r,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:F,className:o(e.className,If),children:[p&&Ap(Sf,{children:[Jo(oe,{children:p}),s&&Jo(ve,{})]}),Jo(de,{placeholder:T,value:y,type:k}),d&&Jo(J,{valid:N,invalid:S,loading:L,disabled:E}),Jo(U,{loading:L,disabled:E}),i&&Jo(le,{loading:L,disabled:E,readonly:F,value:y}),m&&Ap(Sf,{children:[s&&Jo(ve,{}),Jo(ae,{children:m})]})]})};j.states=KT;j.options=DT;j.className=If;j.defaultOptions=za;import{jsx as lO}from"react/jsx-runtime";import{Fragment as cO,jsx as dO}from"react/jsx-runtime";import{Fragment as hO,jsx as fO}from"react/jsx-runtime";import{jsx as jo,jsxs as Np}from"react/jsx-runtime";var Lf="k-actionsheet-titlebar",FT={},se=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:y,...T}=e;return Np("div",{...T,className:o(e.className,Lf),children:[Np("div",{className:"k-actionsheet-titlebar-group",children:[r&&jo("div",{className:"k-actionsheet-actions",children:r}),!y&&Np("div",{className:"k-actionsheet-title",children:[t&&jo("div",{className:"k-text-center",children:t}),a&&jo("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),y&&jo("div",{className:"k-actionsheet-title",children:y}),s&&jo("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&jo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?jo(j,{value:p,placeholder:m,size:k?"large":"medium"}):jo(We,{placeholder:"Filter",size:k?"large":"medium"})})]})};se.className=Lf;se.defaultOptions=FT;import{jsx as Cp,jsxs as OT}from"react/jsx-runtime";var Sp="k-actionsheet-view",RT=[],zT={},HT={},Hl=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===se&&Cp(se,{adaptive:t,...s?.props}),m=i?.type===Jt&&Cp(Jt,{...i?.props});return OT("div",{...d,className:o(e.className,Sp,{[`${Sp}-animated`]:a}),children:[p,Cp("div",{className:"k-actionsheet-content",children:r}),m]})};Hl.states=RT;Hl.options=zT;Hl.className=Sp;Hl.defaultOptions=HT;import{jsx as Zn,jsxs as VT}from"react/jsx-runtime";var Ef="k-actionsheet",WT=[],QT={},Ks={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ce=e=>{let{side:t=Ks.side,fullscreen:a=Ks.fullscreen,adaptive:r=Ks.adaptive,overlay:s=Ks.overlay,template:i,children:d,header:p,footer:m,...k}=e;return VT("div",{className:"k-actionsheet-container",children:[s&&Zn("div",{className:"k-overlay"}),Zn(Qo,{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,Ef,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Zn(Hl,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};ce.states=WT;ce.options=QT;ce.className=Ef;ce.defaultOptions=Ks;import{jsx as zO}from"react/jsx-runtime";import{Fragment as ZT,jsx as Ds,jsxs as Ip}from"react/jsx-runtime";var Bp="k-actionsheet-item",XT=[l.hover,l.focus,l.selected,l.disabled],Mp=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return Ip("span",{...m,className:o(e.className,Bp,x(Bp,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&Ds(ZT,{children:Ip("span",{className:"k-actionsheet-action",children:[t&&Ds("span",{className:"k-icon-wrap",children:Ds(v,{className:"k-actionsheet-item-icon",icon:t})}),Ip("span",{className:"k-actionsheet-item-text",children:[a&&Ds("span",{className:"k-actionsheet-item-title",children:a}),r&&Ds("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};Mp.states=XT;Mp.className=Bp;import{jsx as jO,jsxs as UO}from"react/jsx-runtime";import{jsx as eW}from"react/jsx-runtime";import{jsx as lW}from"react/jsx-runtime";import{jsx as nW}from"react/jsx-runtime";import{Fragment as UT,jsx as ut,jsxs as Lp}from"react/jsx-runtime";var Pf="k-dropdownlist",JT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],jT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ol={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:h.medium,fillMode:b.solid},ie=e=>{let{size:t=Ol.size,rounded:a=Ol.rounded,fillMode:r=Ol.fillMode,arrowIconName:s=Ol.arrowIconName,showValue:i=Ol.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:y,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:E,popup:F,opened:W,adaptive:be,adaptiveSettings:Re,adaptiveTitle:st,adaptiveSubtitle:Xt,adaptiveFilter:La,...Ml}=e;return Lp(UT,{children:[Lp(Ct,{...Ml,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,Pf,{"k-icon-picker":!i&&d}),children:[ut(oe,{children:p}),ut(Co,{placeholder:y,value:k,showValue:i,valueIconName:d}),ut(J,{valid:A,invalid:N,loading:B,disabled:L}),ut(U,{loading:B,disabled:L}),ut(ae,{children:m}),ut(c,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),W&&F&&ut(z,{className:"k-list-container k-dropdownlist-popup",children:F}),be&&ut(ce,{adaptive:!0,...Re,header:ut(se,{actionsEnd:ut(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:La,inputValue:k,inputPlaceholder:y,title:st,subtitle:Xt}),children:ut("div",{className:"k-list-container",children:Lp(X,{size:"large",children:[ut(P,{text:"List item"}),ut(P,{text:"List item"}),ut(P,{text:"List item"})]})})})]})};ie.states=JT;ie.options=jT;ie.className=Pf;ie.defaultOptions=Ol;import{jsx as EW}from"react/jsx-runtime";import{jsx as DW,jsxs as FW}from"react/jsx-runtime";import{Fragment as XW,jsx as QW,jsxs as VW}from"react/jsx-runtime";import{jsx as UW}from"react/jsx-runtime";import{jsx as tQ,jsxs as oQ}from"react/jsx-runtime";import{jsx as iQ,jsxs as nQ}from"react/jsx-runtime";import{Fragment as hQ,jsx as kQ,jsxs as fQ}from"react/jsx-runtime";import{Fragment as AQ,jsx as wQ,jsxs as TQ}from"react/jsx-runtime";import{jsx as Gf}from"react/jsx-runtime";var Jn="k-radio",qT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked],_T={size:[n.small,n.medium,n.large]},Kf={size:n.medium},So=e=>{let{id:t,checked:a,hover:r,focus:s,disabled:i,invalid:d,valid:p,required:m,size:k=Kf.size,...y}=e;return Gf("span",{className:"k-radio-wrap",children:Gf("input",{...y,id:t,type:"radio",checked:a,required:m,className:o(e.className,Jn,C(Jn,{size:k}),x(Jn,{hover:r,focus:s,disabled:i,invalid:d,valid:p,checked:a}))})})};So.states=qT;So.options=_T;So.className=Jn;So.defaultOptions=Kf;import{jsx as tA}from"react/jsx-runtime";var Df="k-radio-list",$T=[],eA={},Ff={layout:"vertical"},Wl=e=>{let{layout:t=Ff.layout,...a}=e;return tA("ul",{...a,className:o(e.className,Df,{[`k-list-${t}`]:t}),children:e.children})};Wl.states=$T;Wl.options=eA;Wl.className=Df;Wl.defaultOptions=Ff;import{jsx as rA}from"react/jsx-runtime";var Rf="k-radio-list-item",oA=[],aA={},lA={},Ql=e=>{let{...t}=e;return rA("li",{...t,className:o(e.className,Rf),children:e.children})};Ql.states=oA;Ql.options=aA;Ql.className=Rf;Ql.defaultOptions=lA;import{jsx as ZQ}from"react/jsx-runtime";import{Fragment as _Q,jsx as qQ,jsxs as $Q}from"react/jsx-runtime";import{Fragment as lV,jsx as aV,jsxs as rV}from"react/jsx-runtime";import{Fragment as pV,jsx as dV,jsxs as cV}from"react/jsx-runtime";import{Fragment as hV,jsx as fV,jsxs as gV}from"react/jsx-runtime";import{Fragment as wV,jsx as yV,jsxs as TV}from"react/jsx-runtime";import{Fragment as iA,jsx as kt,jsxs as Vl}from"react/jsx-runtime";var jn=({size:e,...t})=>kt(no,{formButtons:Vl(iA,{children:[kt(c,{className:"k-form-submit",themeColor:"primary",size:e,children:"Submit"}),kt(c,{className:"k-form-clear",size:e,children:"Clear"})]}),children:Vl(io,{legend:"Form Legend",children:[kt(je,{label:"Label",editor:kt(j,{size:e})}),kt(je,{label:"Label",hint:"Hint text",editor:kt(ie,{value:"Dropdown List",size:e})}),kt(je,{label:"City",editor:Vl("ul",{className:"k-radio-list k-list-horizontal",children:[Vl("li",{className:"k-radio-list-item",children:[kt(So,{checked:!0,size:e}),kt("label",{className:"k-radio-label",children:"Label"})]}),Vl("li",{className:"k-radio-list-item",children:[kt(So,{size:e}),kt("label",{className:"k-radio-label",children:"Label"})]}),Vl("li",{className:"k-radio-list-item",children:[kt(So,{size:e}),kt("label",{className:"k-radio-label",children:"Label"})]})]})})]}),size:e,...t});import{Fragment as jV,jsx as JV,jsxs as UV}from"react/jsx-runtime";import{Fragment as a6,jsx as o6,jsxs as l6}from"react/jsx-runtime";import{jsx as cA}from"react/jsx-runtime";var Fs="k-button-group",nA=[l.disabled],dA={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},zf={fillMode:b.solid},Y=e=>{let{fillMode:t=zf.fillMode,disabled:a,stretched:r,...s}=e;return cA("div",{...s,className:o(e.className,Fs,C(Fs,{fillMode:t}),x(Fs,{disabled:a}),{[`${Fs}-stretched`]:r}),children:e.children})};Y.states=nA;Y.options=dA;Y.className=Fs;Y.defaultOptions=zf;import{Fragment as v6,jsx as b6,jsxs as y6}from"react/jsx-runtime";import{Fragment as S6,jsx as C6,jsxs as I6}from"react/jsx-runtime";import{Fragment as P6,jsx as Y6,jsxs as G6}from"react/jsx-runtime";import{Fragment as H6,jsx as z6,jsxs as O6}from"react/jsx-runtime";import{Fragment as uA,jsx as Hf,jsxs as kA}from"react/jsx-runtime";var Of="k-menu-button",pA=[l.hover,l.focus,l.active,l.selected,l.disabled],mA={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]},Oa={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!0,arrowIconName:"caret-alt-down"},_=e=>{let{size:t=Oa.size,rounded:a=Oa.rounded,fillMode:r=Oa.fillMode,themeColor:s=Oa.themeColor,hover:i,focus:d,active:p,selected:m,disabled:k,icon:y,text:T,showArrow:g=Oa.showArrow,arrowIconName:A=Oa.arrowIconName,popup:N,opened:S,...B}=e;return kA(uA,{children:[Hf(c,{...B,className:o(e.className,Of),text:T,size:t,rounded:a,fillMode:r,themeColor:s,hover:i,focus:d,active:p,selected:m,disabled:k,icon:y,showArrow:g,arrowIconName:A}),S&&N&&Hf(z,{className:"k-menu-popup",children:N})]})};_.states=pA;_.options=mA;_.className=Of;_.defaultOptions=Oa;import{jsx as a3}from"react/jsx-runtime";import{jsx as i3}from"react/jsx-runtime";import{jsx as p3}from"react/jsx-runtime";import{Fragment as gA,jsx as Xl,jsxs as Wf}from"react/jsx-runtime";var Pp="k-menu-item",fA=[l.hover,l.focus,l.active,l.selected,l.disabled],hA={},Qf={iconPosition:"before"},Ue=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:d,text:p,first:m,last:k,showArrow:y,arrowIconName:T,iconPosition:g=Qf.iconPosition,dir:A,children:N,...S}=e,B=Xl(gA,{});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"),Wf("li",{...S,className:o(e.className,Pp,"k-item",x(Pp,{focus:a,disabled:i,hover:t,active:r,selected:s}),{"k-first":m,"k-last":k}),children:[Wf("span",{className:o("k-link k-menu-link"),children:[d&&g==="before"&&Xl(v,{className:"k-menu-link-icon",icon:d}),Xl("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&Xl(v,{className:"k-menu-link-icon",icon:d}),y&&Xl("span",{className:"k-menu-expand-arrow",children:Xl(v,{icon:L})})]}),B]})};Ue.states=fA;Ue.options=hA;Ue.className=Pp;Ue.defaultOptions=Qf;import{Fragment as vA,jsx as Zl,jsxs as Vf}from"react/jsx-runtime";var Gp="k-menu-item",xA=[l.hover,l.focus,l.active,l.selected,l.disabled],bA={},Kp={dir:"ltr",iconPosition:"before"},jt=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:d,text:p,first:m,last:k,showArrow:y,arrowIconName:T,iconPosition:g=Kp.iconPosition,dir:A=Kp.dir,children:N,popup:S,...B}=e,L=Zl(vA,{});N&&N.forEach(F=>{if(F.type==="MenuListItemContent"){L.props.children.push(F);return}});let E=T;return E||(E=A==="rtl"?"caret-alt-left":"caret-alt-right"),Vf("li",{...B,className:o(e.className,Gp,"k-item",x(Gp,{focus:a,disabled:i}),{"k-first":m,"k-last":k}),children:[Vf("span",{className:o("k-link k-menu-link",x("k-menu-link",{hover:t,active:r,selected:s,disabled:i})),children:[d&&g==="before"&&Zl(v,{className:"k-menu-link-icon",icon:d}),Zl("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&Zl(v,{className:"k-menu-link-icon",icon:d}),y&&Zl("span",{className:"k-menu-expand-arrow",children:Zl(v,{icon:E})})]}),L,S]})};jt.states=xA;jt.options=bA;jt.className=Gp;jt.defaultOptions=Kp;import{jsx as AA}from"react/jsx-runtime";var Xf="k-menu-scroll-wrapper",yA=[],wA={},TA={},Rs=e=>{let{className:t,children:a,orientation:r,...s}=e;return AA("div",{...s,className:o(t,Xf,{"k-menu-scroll-wrapper-vertical":r==="vertical"}),children:a})};Rs.states=yA;Rs.options=wA;Rs.className=Xf;Rs.defaultOptions=TA;var Zf=Rs;import{Fragment as Dp,jsx as Wa,jsxs as Un}from"react/jsx-runtime";var Fp="k-menu",NA=[],CA={},qn={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},Ut=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,y={horizontal:{prev:p!=="rtl"?"left":"right",next:p!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},T=Wa("ul",{dir:p,...k,className:o(e.className,"k-reset",Fp,{[`${Fp}-${a}`]:a,"k-header":r}),children:t});return Un(Dp,{children:[s?Un(Zf,{orientation:a,style:d,dir:e.dir,children:[i==="start"&&Un(Dp,{children:[Wa(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Wa(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),i==="around"&&Wa(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),T,i==="end"&&Un(Dp,{children:[Wa(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Wa(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),i==="around"&&Wa(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${y[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}):T,m]})};Ut.states=NA;Ut.options=CA;Ut.className=Fp;Ut.defaultOptions=qn;import{jsx as SA}from"react/jsx-runtime";var Rp="k-separator",Jf={orientation:"horizontal"},zs=e=>{let{orientation:t=Jf.orientation,...a}=e;return SA("li",{...a,className:o(e.className,"k-item",Rp,{[`${Rp}-${t}`]:t})})};zs.className=Rp;zs.defaultOptions=Jf;import{Fragment as P3,jsx as G3}from"react/jsx-runtime";import{jsx as jf}from"react/jsx-runtime";import{createElement as MA}from"react";var zp="k-menu-group",IA=[],BA={size:[n.small,n.medium,n.large]},Hp={size:n.medium,dir:"ltr"},Io=e=>{let{children:t,size:a=Hp.size,dir:r=Hp.dir,...s}=e,i=[];return t&&Array.isArray(t)&&t.map((d,p)=>{d.type===jt?i.push(MA(jt,{...d.props,dir:r,key:p})):d.type===zs?i.push(jf(zs,{})):i.push(d)}),jf("ul",{...s,className:o(e.className,zp,C(zp,{size:a})),children:i})};Io.states=IA;Io.options=BA;Io.className=zp;Io.defaultOptions=Hp;import{Fragment as V3,jsx as Q3,jsxs as X3}from"react/jsx-runtime";import{Fragment as $3,jsx as q3,jsxs as _3}from"react/jsx-runtime";import{Fragment as lX,jsx as aX,jsxs as rX}from"react/jsx-runtime";import{Fragment as cX,jsx as dX,jsxs as pX}from"react/jsx-runtime";import{Fragment as hX,jsx as fX,jsxs as gX}from"react/jsx-runtime";import{jsx as GX,jsxs as KX}from"react/jsx-runtime";import{Fragment as YA,jsx as Op,jsxs as Uf}from"react/jsx-runtime";var Wp="k-split-button",LA=[l.hover,l.focus,l.active,l.selected,l.disabled],EA={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.lar