@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 293 kB
JavaScript
var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>o({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),x=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},h={small:"small",medium:"medium",large:"large",full:"full"},b={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"},yt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{Fragment as Fv,jsx as hk}from"react/jsx-runtime";var Hc="k-icon k-font-icon",Gv=[],Kv={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]},Dv={},xs=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?hk("span",{...d,className:o(e.className,Hc,C(Hc,{size:t}),{[`k-i-${r}`]:r,[`k-color-${a}`]:a,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"})}):hk(Fv,{})};xs.states=Gv;xs.options=Kv;xs.className=Hc;xs.defaultOptions=Dv;var gk=xs;import{Fragment as Hv,jsx as Tn}from"react/jsx-runtime";var Oc="k-icon k-svg-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]},xk={viewBox:"0 0 24 24"},bs=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=xk.viewBox,icon:d,...p}=e;if(!d)return Tn(Hv,{});d==="none"&&{...p,className:o(e.className,Oc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return Tn("span",{...p,className:o(e.className,Oc,C("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${a}`]:a,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),children:Tn("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})})};bs.states=Rv;bs.options=zv;bs.className=Oc;bs.defaultOptions=xk;var Wc=bs;import*as bk from"@progress/kendo-svg-icons";import{Fragment as vk,jsx as vs}from"react/jsx-runtime";var Ov=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),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]},Qc={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:a,icon:r,type:s=Qc.type,rotate:i,flip:d,viewBox:p=Qc.viewBox,...m}=e;if(!r)return vs(vk,{});if(s==="svg"){if(r==="none")return vs(Wc,{...m,icon:r,size:t});let k=Ov(`${r}-icon`);return bk[k]?vs(Wc,{...m,icon:bk[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):vs(vk,{})}return vs(gk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};y.states=Wv;y.options=Qv;y.defaultOptions=Qc;var Vc=y;import{jsx as yk,jsxs as Jv}from"react/jsx-runtime";var wk="k-pivotgrid-configurator-button",Vv=[],Xv={},Zv={},ys=e=>{let{...t}=e;return yk("div",{...t,className:o(e.className,wk),children:Jv("span",{children:["Change settings",yk(y,{icon:"gear"})]})})};ys.states=Vv;ys.options=Xv;ys.className=wk;ys.defaultOptions=Zv;var Tk=ys;import{jsx as Bl,jsxs as Ak}from"react/jsx-runtime";var Nk="k-pivotgrid",jv=[],Uv={},An={emptyCell:Bl("span",{className:"k-pivotgrid-empty-cell",children:Bl("span",{className:"k-sr-only",children:"PivotGrid component. Use the arrow keys to navigate."})}),configuratorDisplay:"none",configuratorPosition:"right"},Ml=e=>{let{emptyCell:t=An.emptyCell,configuratorDisplay:a=An.configuratorDisplay,configuratorPosition:r=An.configuratorPosition,configurator:s,columnHeaders:i,rowHeaders:d,children:p,...m}=e;return Ak("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:[Ak("div",{...m,className:o(e.className,Nk),children:[t,Bl("div",{className:"k-pivotgrid-column-headers",children:i}),Bl("div",{className:"k-pivotgrid-row-headers",children:d}),Bl("div",{className:"k-pivotgrid-values",children:p})]}),s&&a==="opened"&&s,a!=="none"&&Bl(Tk,{})]})};Ml.states=jv;Ml.options=Uv;Ml.className=Nk;Ml.defaultOptions=An;import{jsx as ey}from"react/jsx-runtime";var Ck="k-pivotgrid-table",qv=[],_v={},$v={},Ro=e=>{let{children:t,...a}=e;return ey("table",{...a,className:o(e.className,Ck),children:t})};Ro.states=qv;Ro.options=_v;Ro.className=Ck;Ro.defaultOptions=$v;import{jsx as ly}from"react/jsx-runtime";var Sk="k-pivotgrid-tbody",ty=[],oy={},ay={},zo=e=>{let{children:t,...a}=e;return ly("tbody",{...a,className:o(e.className,Sk),children:t})};zo.states=ty;zo.options=oy;zo.className=Sk;zo.defaultOptions=ay;import{jsx as ny}from"react/jsx-runtime";var Xc="k-pivotgrid-row",ry=[l.hover,l.selected],sy={},iy={},Ie=e=>{let{columnTotal:t,children:a,hover:r,selected:s,...i}=e;return ny("tr",{...i,className:o(e.className,Xc,{"k-pivotgrid-column-total":t},x(Xc,{hover:r,selected:s})),children:a})};Ie.states=ry;Ie.options=sy;Ie.className=Xc;Ie.defaultOptions=iy;import{jsx as Zc,jsxs as my}from"react/jsx-runtime";var Jc="k-pivotgrid-cell",dy=[l.focus,l.selected],cy={},py={},R=e=>{let{as:t="td",toggle:a,headerTitle:r,content:s,headerRootCell:i,totalCell:d,headerTotalCell:p,rowTotalCell:m,focus:k,selected:v,...T}=e,g={up:"up",down:"down"};return my(t,{...T,className:o(e.className,Jc,{"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(Jc,{focus:k,selected:v})),children:[a&&Zc(y,{className:"k-pivotgrid-toggle",icon:`chevron-${g[a]}`}),r&&Zc("span",{className:"k-pivotgrid-header-title",children:r}),(s||s==="")&&Zc("span",{className:"k-pivotgrid-content",children:s})]})};R.states=dy;R.options=cy;R.className=Jc;R.defaultOptions=py;import{jsx as fy}from"react/jsx-runtime";var Nn="k-actions",uy=[],ky={},jc={alignment:"start",orientation:"horizontal"},V=e=>{let{alignment:t=jc.alignment,orientation:a=jc.orientation,...r}=e;return fy("div",{...r,className:o(Nn,{[`${Nn}-${t}`]:t,[`${Nn}-${a}`]:a},e.className),children:e.children})};V.states=uy;V.options=ky;V.className=Nn;V.defaultOptions=jc;var Ik=V;import{Fragment as xy,jsx as ws,jsxs as Bk}from"react/jsx-runtime";var Cn="k-button",hy=[l.hover,l.focus,l.active,l.selected,l.disabled],gy={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]},Ba={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Ba.size,rounded:a=Ba.rounded,fillMode:r=Ba.fillMode,themeColor:s=Ba.themeColor,showArrow:i=Ba.showArrow,arrowIconName:d=Ba.arrowIconName,hover:p,focus:m,active:k,selected:v,disabled:T,icon:g,text:A,iconClassName:N,...S}=e,B=g!==void 0,L=e.children!==void 0;return Bk("button",{...S,className:o(e.className,Cn,C(Cn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Cn,{hover:p,focus:m,active:k,disabled:T,selected:v}),{"k-icon-button":!A&&!L&&B}),children:[g&&ws(y,{className:o(N,"k-button-icon"),icon:g}),A?Bk(xy,{children:[A&&ws("span",{className:"k-button-text",children:A}),e.children]}):e.children&&ws("span",{className:"k-button-text",children:e.children}),i&&ws("span",{className:"k-menu-button-arrow k-button-arrow",children:ws(y,{icon:d})})]})};c.states=hy;c.options=gy;c.className=Cn;c.defaultOptions=Ba;import{jsx as by}from"react/jsx-runtime";var qe=e=>by(c,{icon:"folder",...e,children:void 0});import{jsx as vy}from"react/jsx-runtime";var Wt=e=>vy(c,{icon:"folder",children:"Button",...e});import{jsx as mK}from"react/jsx-runtime";import{Fragment as Ay,jsx as Ma,jsxs as Mk}from"react/jsx-runtime";var Sn="k-pivotgrid-configurator",yy=[],wy={},Ty=Mk(Ay,{children:[Ma(c,{children:"Cancel"}),Ma(c,{themeColor:"primary",children:"Apply"})]}),Ts={orientation:"vertical",mode:"push",actionButtons:Ty,header:"Settings"},As=e=>{let{orientation:t=Ts.orientation,mode:a=Ts.mode,actionButtons:r=Ts.actionButtons,header:s=Ts.header,children:i,...d}=e;return Ma("div",{...d,className:o(e.className,Sn),children:Mk("div",{className:o("k-pivotgrid-configurator-panel",{[`${Sn}-${t}`]:t,[`${Sn}-${a}`]:a}),children:[Ma("div",{className:"k-pivotgrid-configurator-header",children:Ma("div",{className:"k-pivotgrid-configurator-header-text",children:s})}),Ma("div",{className:"k-pivotgrid-configurator-content",children:i}),Ma(V,{alignment:"end",className:"k-pivotgrid-configurator-actions",children:r})]})})};As.states=yy;As.options=wy;As.className=Sn;As.defaultOptions=Ts;import{jsx as Sy}from"react/jsx-runtime";var Ny=[],Cy={},Lk=e=>{let{type:t,...a}=e,r=t==="p"?"paragraph":t,s=t.includes("display")?"div":t;return Sy(s,{...a,className:o(e.className,{[`k-${r}`]:t}),children:e.children})};Lk.states=Ny;Lk.options=Cy;import{jsx as My}from"react/jsx-runtime";var In="k-input",Iy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],By={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Bn={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=Bn.size,rounded:k=Bn.rounded,fillMode:v=Bn.fillMode,...T}=e;return My("span",{...T,className:o(e.className,In,C(In,{size:m,rounded:k,fillMode:v}),x(In,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=Iy;M.options=By;M.className=In;M.defaultOptions=Bn;import{jsx as Yy}from"react/jsx-runtime";var Mn="k-picker",Ly=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Ey={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ln={size:n.medium,rounded:h.medium,fillMode:b.solid},wt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=Ln.size,rounded:k=Ln.rounded,fillMode:v=Ln.fillMode,...T}=e;return Yy("span",{...T,className:o(e.className,Mn,C(Mn,{size:m,rounded:k,fillMode:v}),x(Mn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};wt.states=Ly;wt.options=Ey;wt.className=Mn;wt.defaultOptions=Ln;import{Fragment as Ky,jsx as Uc}from"react/jsx-runtime";var Ek="k-clear-value",Py=[l.disabled,l.loading,l.readonly],Gy={},ae=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Uc(Ky,{}):Uc("span",{className:o(e.className,Ek),children:Uc(y,{icon:"x"})})};ae.states=Py;ae.options=Gy;ae.className=Ek;import{jsx as Ry}from"react/jsx-runtime";var qc="k-input-inner",Dy=[],Fy={},En={type:"text",autocomplete:"off",value:"",placeholder:""},ne=e=>{let{value:t=En.value,type:a=En.type,placeholder:r=En.placeholder,autocomplete:s=En.autocomplete,...i}=e;return Ry("input",{...i,type:a,className:o(e.className,qc,C(qc,e)),placeholder:r,autoComplete:s,defaultValue:t})};ne.states=Dy;ne.options=Fy;ne.className=qc;import{jsx as Yk,jsxs as Oy}from"react/jsx-runtime";var _c="k-input-inner",zy=[],Hy={},To=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return Oy("span",{...d,className:o(e.className,_c,C(_c,e)),children:[s,!s&&i&&Yk(y,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&Yk("span",{className:"k-input-value-text",children:t})]})};To.states=zy;To.options=Hy;To.className=_c;import{jsx as Vy}from"react/jsx-runtime";var $c="k-input-inner",Wy=[],Qy={},Pk={value:"",placeholder:""},Ns=e=>{let{value:t=Pk.value,placeholder:a=Pk.placeholder,rows:r,...s}=e;return Vy("textarea",{...s,className:o(e.className,$c,C($c,e)),placeholder:a,rows:r,defaultValue:t})};Ns.states=Wy;Ns.options=Qy;Ns.className=$c;import{Fragment as Zy,jsx as Gk}from"react/jsx-runtime";var Kk="k-input-loading-icon",Xy=[l.disabled,l.loading],U=e=>{let{disabled:t,loading:a}=e;return t||!a?Gk(Zy,{}):Gk("span",{className:o(e.className,Kk,"k-icon k-i-loading")})};U.states=Xy;U.className=Kk;import{Fragment as Uy,jsx as Dk}from"react/jsx-runtime";var Fk="k-input-validation-icon",Jy=[l.valid,l.invalid,l.disabled,l.loading],jy={},J=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Dk(Uy,{}):Dk(y,{className:o(Fk),icon:i})};J.states=Jy;J.options=jy;J.className=Fk;import{Fragment as $y,jsx as Rk}from"react/jsx-runtime";var qy="k-input-prefix",_y={direction:"horizontal"},te=e=>{let{direction:t=_y.direction,...a}=e;return e.children?Rk("span",{...a,className:o(qy,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Rk($y,{})};import{Fragment as ow,jsx as zk}from"react/jsx-runtime";var ew="k-input-suffix",tw={direction:"horizontal"},oe=e=>{let{direction:t=tw.direction,...a}=e;return e.children?zk("span",{...a,className:o(ew,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):zk(ow,{})};import{jsx as cD}from"react/jsx-runtime";import{jsx as kD}from"react/jsx-runtime";import{jsx as lw}from"react/jsx-runtime";var Hk="k-input-separator",aw={direction:"vertical"},be=e=>{let{direction:t=aw.direction,...a}=e;return lw("span",{...a,className:o(Hk,e.className,{[`${Hk}-${t}`]:t})})};import{jsx as Ok}from"react/jsx-runtime";var Wk="k-animation-container",rw=[],sw={},Qk={positionMode:"absolute"},Ho=e=>{let{positionMode:t=Qk.positionMode,animationStyle:a,offset:r,...s}=e;return Ok("div",{...s,style:{...r,...e.style},className:o(e.className,Wk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Ok("div",{className:"k-child-animation-container",style:a,children:e.children})})};Ho.states=rw;Ho.options=sw;Ho.className=Wk;Ho.defaultOptions=Qk;import{jsx as Vk}from"react/jsx-runtime";var Xk="k-popup",iw=[],nw={},Zk={positionMode:"absolute"},z=e=>{let{offset:t,positionMode:a=Zk.positionMode,animationStyle:r,...s}=e;return Vk(Ho,{positionMode:a,offset:t,animationStyle:r,children:Vk("div",{...s,className:o(e.className,Xk),children:e.children})})};z.states=iw;z.options=nw;z.className=Xk;z.defaultOptions=Zk;import{jsx as cw}from"react/jsx-runtime";var dw="k-no-data",Cs=e=>cw("span",{className:o(dw,e.className),children:e.children});import{jsx as Ll,jsxs as Jk}from"react/jsx-runtime";var ep="k-list",pw=[],mw={size:[n.small,n.medium,n.large]},jk={size:n.medium},X=e=>{let{size:t=jk.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:d,...p}=e,m,k,v,T,g=[];return r?r.map((A,N)=>{A.type===ye?(A.props.root===!0?(m=A.props.label,A.props.children.map((S,B)=>{g.push(Ll(P,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):A.props.children.forEach((S,B)=>{let L="";B===0&&(L=A.props.label),g.push(Ll(P,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=Ll(ye,{label:m,virtualization:a,children:g})):A.type===P&&(g.push(Ll(P,{...A.props},`${A.type}-${N}`)),v=Ll(El,{virtualization:a,children:g}),d&&(T=Jk(Cs,{className:"k-sr-only",children:[g.length," items found."]})))}):T=Ll(Cs,{children:"No data found."}),Jk("div",{...p,className:o(e.className,ep,C(ep,{size:t}),{"k-virtual-list":a}),children:[s,i,k,v,T]})};X.states=pw;X.options=mw;X.className=ep;X.defaultOptions=jk;import{jsx as La,jsxs as fw}from"react/jsx-runtime";var tp="k-list",uw=[],kw={size:[n.small,n.medium,n.large]},Uk={size:n.medium},Ea=e=>{let{size:t=Uk.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,v)=>{k.type===ye?(k.props.root===!0?(i=k.props.label,k.props.children.map((T,g)=>{m.push(La(P,{...T.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(La(qk,{...k.props,children:k.props.label},`listChild-${v}`)),k.props.children.map((T,g)=>{m.push(La(P,{...T.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=La(ye,{label:i,virtualization:a,children:m})):k.type===P&&(m.push(La(P,{...k.props},`${k.type}-${v}`)),p=La(El,{virtualization:a,children:m}))}):p=La(Cs,{children:"No data found."}),fw("div",{...s,className:o(e.className,tp,C(tp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Ea.states=uw;Ea.options=kw;Ea.className=tp;Ea.defaultOptions=Uk;import{jsx as _k}from"react/jsx-runtime";var Yn="k-checkbox",hw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],gw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full]},op={size:n.medium,rounded:h.medium},Xe=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:v=op.size,rounded:T=op.rounded,...g}=e;return _k("span",{className:"k-checkbox-wrap",children:_k("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Yn,C(Yn,{size:v,rounded:T}),x(Yn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};Xe.states=hw;Xe.options=gw;Xe.className=Yn;Xe.defaultOptions=op;import{jsx as vw}from"react/jsx-runtime";var $k="k-checkbox-list",xw=[],bw={},ef={layout:"vertical"},Yl=e=>{let{layout:t=ef.layout,...a}=e;return vw("ul",{...a,className:o(e.className,$k,{[`k-list-${t}`]:t}),children:e.children})};Yl.states=xw;Yl.options=bw;Yl.className=$k;Yl.defaultOptions=ef;import{jsx as Aw}from"react/jsx-runtime";var tf="k-checkbox-list-item",yw=[],ww={},Tw={},Pl=e=>{let{...t}=e;return Aw("li",{...t,className:o(e.className,tf),children:e.children})};Pl.states=yw;Pl.options=ww;Pl.className=tf;Pl.defaultOptions=Tw;import{Fragment as gF,jsx as hF,jsxs as xF}from"react/jsx-runtime";import{Fragment as TF,jsx as wF,jsxs as AF}from"react/jsx-runtime";import{Fragment as BF,jsx as IF,jsxs as MF}from"react/jsx-runtime";import{Fragment as GF,jsx as PF,jsxs as KF}from"react/jsx-runtime";import{jsx as zF}from"react/jsx-runtime";import{jsx as QF}from"react/jsx-runtime";import{jsx as Pn,jsxs as Iw}from"react/jsx-runtime";var lp="k-list-item",Nw=[l.hover,l.focus,l.selected,l.disabled],Cw={},Sw={},P=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:k,selected:v,disabled:T,...g}=e,A=t||e.children;return Iw("li",{...g,className:o(e.className,r?"k-list-group-item":lp,x(lp,{hover:m,focus:k,disabled:T,selected:v})),children:[d&&Pn(Xe,{checked:p}),s&&Pn(y,{icon:i}),Pn("span",{className:"k-list-item-text",children:A}),a&&a!==""&&Pn("div",{className:"k-list-item-group-label",children:a})]})};P.states=Nw;P.options=Cw;P.className=lp;P.defaultOptions=Sw;import{jsx as rp,jsxs as Mw}from"react/jsx-runtime";var Bw="k-list-content",El=e=>{let{virtualization:t,...a}=e;return Mw("div",{...a,className:o(Bw,e.className),children:[rp("ul",{className:o("k-list-ul"),children:e.children}),t&&rp("div",{className:"k-height-container",children:rp("div",{})})]})};import{jsx as of}from"react/jsx-runtime";var Lw="k-list-group-sticky-header",af=e=>of("div",{className:o(Lw,e.className),children:of("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Ew,jsx as lf,jsxs as Yw}from"react/jsx-runtime";var ye=e=>{let{virtualization:t,label:a}=e;return Yw(Ew,{children:[a&&lf(af,{children:a}),e.children&&lf(El,{virtualization:t,children:e.children})]})};import{jsx as rf}from"react/jsx-runtime";var Pw="k-list-group-item",qk=e=>rf("li",{className:o(Pw,e.className),children:rf("span",{className:"k-list-item-text",children:e.children})});import{jsx as Fw}from"react/jsx-runtime";var sp="k-list-optionlabel",Gw=[l.hover,l.focus,l.selected,l.disabled],Kw={},Dw={},Gn=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Fw("div",{...d,className:o(sp,x(sp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Gn.states=Gw;Gn.options=Kw;Gn.className=sp;Gn.defaultOptions=Dw;import{jsx as Ow}from"react/jsx-runtime";var ip="k-list-custom-value",Rw=[l.hover,l.focus,l.selected,l.disabled],zw={},Hw={},_e=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Ow("div",{...d,className:o(ip,x(ip,{hover:a,focus:r,selected:s,disabled:i})),children:t})};_e.states=Rw;_e.options=zw;_e.className=ip;_e.defaultOptions=Hw;import{jsx as SR}from"react/jsx-runtime";import{jsx as LR}from"react/jsx-runtime";import{jsx as GR,jsxs as KR}from"react/jsx-runtime";import{jsx as zR,jsxs as HR}from"react/jsx-runtime";import{jsx as VR}from"react/jsx-runtime";import{jsx as jR,jsxs as UR}from"react/jsx-runtime";import{jsx as ez,jsxs as tz}from"react/jsx-runtime";import{jsx as np,jsxs as Vw}from"react/jsx-runtime";var sf="k-suggestion-group",Ww=[],Qw={},nf={scrollable:!0},Ya=e=>{let{scrollable:t=nf.scrollable,...a}=e,r=np("div",{...a,className:o(sf,e.className),children:e.children});return t?Vw("div",{className:"k-suggestion-scrollwrap",children:[np(c,{icon:"chevron-left"}),r,np(c,{icon:"chevron-right"})]}):r};Ya.states=Ww;Ya.options=Qw;Ya.className=sf;Ya.defaultOptions=nf;import{jsx as jw}from"react/jsx-runtime";var Kn="k-suggestion",Xw=[l.active,l.hover,l.focus],Zw={themeColor:[u.base,u.primary,u.secondary]},Jw={text:"Suggestion"},Pa=e=>{let{themeColor:t,active:a,hover:r,focus:s,text:i,...d}=e;return jw("span",{...d,className:o(e.className,Kn,x(Kn,{hover:r,active:a,focus:s}),C(Kn,{themeColor:t})),children:i})};Pa.states=Xw;Pa.options=Zw;Pa.className=Kn;Pa.item=Jw;import{Fragment as Mz,jsx as Bz,jsxs as Lz}from"react/jsx-runtime";import{Fragment as Kz,jsx as Gz,jsxs as Dz}from"react/jsx-runtime";import{jsx as df}from"react/jsx-runtime";var Ss="k-avatar";var Uw=[l.hover,l.focus,l.active,l.selected,l.disabled],qw={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]},Ga={type:"text",size:n.medium,rounded:h.full,fillMode:b.solid,themeColor:u.primary,border:!1},lo=e=>{let{size:t=Ga.size,rounded:a=Ga.rounded,fillMode:r=Ga.fillMode,themeColor:s=Ga.themeColor,type:i=Ga.type,border:d=Ga.border,...p}=e;return df("div",{...p,className:o(e.className,Ss,C(Ss,{size:t,rounded:a,fillMode:r,themeColor:s}),{[`${Ss}-bordered`]:d}),children:df("span",{className:`${Ss}-${i}`,children:e.children})})};lo.states=Uw;lo.options=qw;lo.className=Ss;lo.defaultOptions=Ga;import{jsx as jz}from"react/jsx-runtime";import{jsx as $z}from"react/jsx-runtime";import{jsx as a0}from"react/jsx-runtime";import{jsx as eT}from"react/jsx-runtime";var Is="k-badge",_w=[],$w={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]},Bs={size:n.medium,fillMode:b.solid,themeColor:u.primary,cutoutBorder:!1},Gl=e=>{let{size:t=Bs.size,fillMode:a=Bs.fillMode,themeColor:r=Bs.themeColor,cutoutBorder:s=Bs.cutoutBorder,rounded:i,position:d,align:p,...m}=e;return eT("span",{...m,className:o(e.className,Is,C(Is,{size:t,rounded:i,fillMode:a,themeColor:r}),{[`${Is}-${d}`]:d,[`k-${p}`]:p,[`${Is}-border-cutout`]:s}),children:e.children})};Gl.states=_w;Gl.options=$w;Gl.className=Is;Gl.defaultOptions=Bs;import{jsx as f0}from"react/jsx-runtime";import{jsx as v0}from"react/jsx-runtime";import{jsx as B0}from"react/jsx-runtime";import{jsx as Kl,jsxs as aT}from"react/jsx-runtime";var Dn="k-chip",tT=[l.hover,l.focus,l.active,l.selected,l.disabled],oT={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]},Dl={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,avatarImage:"/packages/html/assets/avatar.jpg"},Qt=e=>{let{size:t=Dl.size,rounded:a=Dl.rounded,fillMode:r=Dl.fillMode,themeColor:s=Dl.themeColor,text:i,icon:d,actions:p,showAvatar:m,avatarImage:k=Dl.avatarImage,hover:v,focus:T,active:g,selected:A,disabled:N,...S}=e;return aT("div",{...S,className:o(e.className,Dn,C(Dn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Dn,{hover:v,focus:T,active:g,disabled:N,selected:A})),children:[d&&Kl(y,{className:"k-chip-icon",icon:d,size:"small"}),m&&Kl(lo,{className:"k-chip-avatar",type:"image",children:Kl("img",{src:k})}),Kl("span",{className:"k-chip-content",children:e.children?e.children:i&&Kl("span",{className:"k-chip-label",children:i})}),p&&Kl("span",{className:"k-chip-actions",children:p})]})};Qt.states=tT;Qt.options=oT;Qt.className=Dn;Qt.defaultOptions=Dl;import{jsx as sT}from"react/jsx-runtime";var dp="k-chip-list",lT=[],rT={size:[n.small,n.medium,n.large]},pf={size:n.medium},Vt=e=>{let{size:t=pf.size,...a}=e;return sT("div",{...a,className:o(e.className,dp,C(dp,{size:t})),children:e.children})};Vt.states=lT;Vt.options=rT;Vt.className=dp;Vt.defaultOptions=pf;import{jsx as H0}from"react/jsx-runtime";import{jsx as V0}from"react/jsx-runtime";import{jsx as j0}from"react/jsx-runtime";import{jsx as eH}from"react/jsx-runtime";import{Fragment as sH,jsx as rH,jsxs as iH}from"react/jsx-runtime";import{jsx as mf,jsxs as dT}from"react/jsx-runtime";var uf="k-color-preview",iT=[],nT={},Oo=e=>{let{color:t,iconName:a,...r}=e;return dT("span",{...r,className:o(e.className,uf,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&mf(y,{icon:a,className:"k-color-preview-icon"}),mf("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Oo.states=iT;Oo.options=nT;Oo.className=uf;import{Fragment as cp,jsx as kf,jsxs as Rn}from"react/jsx-runtime";var pp="k-loader",cT={pulsing:"pulsing-2","infinite-spinner":"spinner-3","converging-spinner":"spinner-4"},pT=[],mT={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]},zn={size:n.medium,themeColor:u.primary,animation:"pulsing"},Wo=e=>{let{size:t=zn.size,themeColor:a=zn.themeColor,animation:r=zn.animation,...s}=e,i=kf("span",{className:"k-loader-segment"});return kf("div",{...s,className:o(e.className,pp,{[`k-loader-${cT[r]||r}`]:r},C(pp,{size:t,themeColor:a})),children:Rn("div",{className:"k-loader-canvas",children:[r==="pulsing"&&Rn(cp,{children:[i,i]}),r==="infinite-spinner"&&Rn(cp,{children:[i,i,i]}),r==="converging-spinner"&&Rn(cp,{children:[i,i,i,i]})]})})};Wo.states=pT;Wo.options=mT;Wo.className=pp;Wo.defaultOptions=zn;var ff=Wo;import{jsx as mp,jsxs as hf}from"react/jsx-runtime";var up="k-loader-container",uT=[],kT={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]},Da={size:n.medium,themeColor:u.primary,loaderType:"pulsing",position:"top",overlay:"dark",panel:!1},Ms=e=>{let{size:t=Da.size,themeColor:a=Da.themeColor,loaderType:r=Da.loaderType,position:s=Da.position,overlay:i=Da.overlay,panel:d=Da.panel,...p}=e;return hf("div",{...p,className:o(e.className,up,C(up,{size:t}),{[`k-loader-${s}`]:s}),children:[mp("div",{className:`k-loader-container-overlay k-overlay-${i}`}),hf("div",{className:o("k-loader-container-inner",{"k-loader-container-panel":d}),children:[mp(ff,{size:t,themeColor:a,animation:r}),mp("div",{className:`k-loader-container-label !k-text-${a}`,children:"Loading..."})]})]})};Ms.states=uT;Ms.options=kT;Ms.className=up;Ms.defaultOptions=Da;import{jsx as YH}from"react/jsx-runtime";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 gT}from"react/jsx-runtime";var gf="k-skeleton",fT=[],hT={},kp={shape:"text",animation:"pulse"},Qo=e=>{let{shape:t=kp.shape,animation:a=kp.animation,...r}=e;return gT("span",{...r,className:o(e.className,gf,{[`k-skeleton-${t}`]:t,[`k-skeleton-${a}`]:a}),style:e.style})};Qo.states=fT;Qo.options=hT;Qo.className=gf;Qo.defaultOptions=kp;import{jsx as r8}from"react/jsx-runtime";import{jsx as xT}from"react/jsx-runtime";var xf=e=>xT(Qo,{shape:"rect",...e});import{jsx as m8}from"react/jsx-runtime";import{jsx as Ls,jsxs as fp}from"react/jsx-runtime";var hp="k-form-field",bT=[l.disabled],Ze=e=>{let{label:t,orientation:a,optional:r,editor:s,hint:i,error:d,info:p,disabled:m,dir:k,colSpan:v}=e;return fp("div",{className:o(hp,e.className,x(hp,{disabled:m}),{[`k-col-span-${v}`]:v}),dir:k,children:[t&&fp("label",{className:o("k-label","k-form-label"),children:[t,r&&Ls("span",{className:"k-label-optional",children:"(Optional)"}),p&&Ls("span",{className:"k-field-info",children:"(field info)"})]}),a==="horizontal"&&!t&&Ls("span",{className:"k-label k-form-label k-label-empty"}),fp("div",{className:"k-form-field-wrap",children:[s,i&&Ls("div",{className:"k-form-hint",children:i}),d&&Ls("div",{className:"k-form-error",children:d})]})]})};Ze.states=bT;Ze.className=hp;import{Fragment as vT,jsx as gp,jsxs as yT}from"react/jsx-runtime";var bf="k-form-fieldset",ro=e=>{let{legend:t,layout:a,cols:r,gutters:s,colSpan:i}=e;return yT("fieldset",{className:o(bf,{[`k-col-span-${i}`]:i}),children:[t&&gp("legend",{className:"k-form-legend",children:t}),a==="grid"?gp("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}):gp(vT,{children:e.children})]})};ro.className=bf;import{Fragment as AT,jsx as Es,jsxs as NT}from"react/jsx-runtime";import{createElement as xp}from"react";var Hn="k-form",wT=[],TT={size:[n.small,n.medium,n.large]},On={size:n.medium,layout:"basic",tag:"form"},Ao=e=>{let{size:t=On.size,orientation:a,layout:r=On.layout,formButtons:s,cols:i,gutters:d,tag:p=On.tag,children:m}=e,k=({tag:T,className:g,children:A})=>T==="form"?Es("form",{className:g,children:A}):Es("div",{className:g,children:A}),v=[];return m&&(Array.isArray(m)?m.map((T,g)=>{T.type===Ze?v.push(xp(Ze,{...T.props,orientation:a,key:g})):v.push(T)}):m.type===Ze?v.push(xp(Ze,{...m.props,orientation:a,key:`${new Date().getTime()}`})):m.type===ro&&v.push(xp(ro,{...m.props,key:`${new Date().getTime()}`}))),NT(k,{tag:p,className:o(e.className,Hn,C(Hn,{size:t}),{[`${Hn}-${a}`]:a}),children:[r==="grid"?Es("div",{className:o("k-form-layout","k-d-grid",{[`k-grid-cols-${i}`]:i}),style:{...typeof d=="string"&&{gap:d},...typeof d=="object"&&d.rows&&{rowGap:d.rows},...typeof d=="object"&&d.cols&&{columnGap:d.cols}},children:v}):Es(AT,{children:v}),s&&Es("div",{className:"k-form-buttons",children:s})]})};Ao.states=wT;Ao.options=TT;Ao.className=Hn;Ao.defaultOptions=On;import{jsx as ST}from"react/jsx-runtime";var CT="k-actionsheet-footer",vf={alignment:"stretched",orientation:"horizontal"},Xt=e=>{let{alignment:t=vf.alignment,orientation:a=vf.orientation,template:r,as:s=r?"div":V,...i}=e;return ST(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,CT),children:e.children})};import{jsx as Ys,jsxs as MT}from"react/jsx-runtime";var yf="k-searchbox",IT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],BT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},bp={showIcon:!0,icon:"search",size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},He=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:T,disabled:g,showIcon:A=bp.showIcon,icon:N=bp.icon,...S}=e;return MT(M,{...S,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:T,disabled:g,className:o(e.className,yf),children:[A&&Ys(y,{className:"k-input-icon",icon:N}),Ys(ne,{placeholder:a,value:t}),Ys(U,{...e}),Ys(J,{...e}),Ys(ae,{...e})]})};He.states=IT;He.options=BT;He.className=yf;He.defaultOptions=bp;import{jsx as W8}from"react/jsx-runtime";import{Fragment as wf,jsx as Vo,jsxs as vp}from"react/jsx-runtime";var Tf="k-textbox",LT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],ET={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Fa={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},j=e=>{let{size:t=Fa.size,rounded:a=Fa.rounded,fillMode:r=Fa.fillMode,separators:s=Fa.separators,showClearButton:i=Fa.showClearButton,showValidationIcon:d=Fa.showValidationIcon,prefix:p,suffix:m,type:k,value:v,placeholder:T,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:F,...W}=e;return vp(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,Tf),children:[p&&vp(wf,{children:[Vo(te,{children:p}),s&&Vo(be,{})]}),Vo(ne,{placeholder:T,value:v,type:k}),d&&Vo(J,{valid:N,invalid:S,loading:L,disabled:E}),Vo(U,{loading:L,disabled:E}),i&&Vo(ae,{loading:L,disabled:E,readonly:F,value:v}),m&&vp(wf,{children:[s&&Vo(be,{}),Vo(oe,{children:m})]})]})};j.states=LT;j.options=ET;j.className=Tf;j.defaultOptions=Fa;import{jsx as eO}from"react/jsx-runtime";import{Fragment as sO,jsx as rO}from"react/jsx-runtime";import{Fragment as mO,jsx as pO}from"react/jsx-runtime";import{jsx as Xo,jsxs as yp}from"react/jsx-runtime";var Cf="k-actionsheet-titlebar",YT={},re=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:v,...T}=e;return yp("div",{...T,className:o(e.className,Cf),children:[yp("div",{className:"k-actionsheet-titlebar-group",children:[r&&Xo("div",{className:"k-actionsheet-actions",children:r}),!v&&yp("div",{className:"k-actionsheet-title",children:[t&&Xo("div",{className:"k-text-center",children:t}),a&&Xo("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),v&&Xo("div",{className:"k-actionsheet-title",children:v}),s&&Xo("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Xo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Xo(j,{value:p,placeholder:m,size:k?"large":"medium"}):Xo(He,{placeholder:"Filter",size:k?"large":"medium"})})]})};re.className=Cf;re.defaultOptions=YT;import{jsx as wp,jsxs as DT}from"react/jsx-runtime";var Tp="k-actionsheet-view",PT=[],GT={},KT={},Fl=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===re&&wp(re,{adaptive:t,...s?.props}),m=i?.type===Xt&&wp(Xt,{...i?.props});return DT("div",{...d,className:o(e.className,Tp,{[`${Tp}-animated`]:a}),children:[p,wp("div",{className:"k-actionsheet-content",children:r}),m]})};Fl.states=PT;Fl.options=GT;Fl.className=Tp;Fl.defaultOptions=KT;import{jsx as Wn,jsxs as zT}from"react/jsx-runtime";var Sf="k-actionsheet",FT=[],RT={},Ps={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},de=e=>{let{side:t=Ps.side,fullscreen:a=Ps.fullscreen,adaptive:r=Ps.adaptive,overlay:s=Ps.overlay,template:i,children:d,header:p,footer:m,...k}=e;return zT("div",{className:"k-actionsheet-container",children:[s&&Wn("div",{className:"k-overlay"}),Wn(Ho,{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",{...k,className:o(e.className,Sf,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Wn(Fl,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};de.states=FT;de.options=RT;de.className=Sf;de.defaultOptions=Ps;import{jsx as KO}from"react/jsx-runtime";import{Fragment as OT,jsx as Gs,jsxs as Ap}from"react/jsx-runtime";var Np="k-actionsheet-item",HT=[l.hover,l.focus,l.selected,l.disabled],Cp=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return Ap("span",{...m,className:o(e.className,Np,x(Np,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&Gs(OT,{children:Ap("span",{className:"k-actionsheet-action",children:[t&&Gs("span",{className:"k-icon-wrap",children:Gs(y,{className:"k-actionsheet-item-icon",icon:t})}),Ap("span",{className:"k-actionsheet-item-text",children:[a&&Gs("span",{className:"k-actionsheet-item-title",children:a}),r&&Gs("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};Cp.states=HT;Cp.className=Np;import{jsx as VO,jsxs as XO}from"react/jsx-runtime";import{jsx as UO}from"react/jsx-runtime";import{jsx as eW}from"react/jsx-runtime";import{jsx as lW}from"react/jsx-runtime";import{Fragment as VT,jsx as dt,jsxs as Sp}from"react/jsx-runtime";var Bf="k-dropdownlist",WT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],QT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Rl={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:h.medium,fillMode:b.solid},se=e=>{let{size:t=Rl.size,rounded:a=Rl.rounded,fillMode:r=Rl.fillMode,arrowIconName:s=Rl.arrowIconName,showValue:i=Rl.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:v,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:E,popup:F,opened:W,adaptive:xe,adaptiveSettings:Fe,adaptiveTitle:at,adaptiveSubtitle:Ot,adaptiveFilter:Ia,...Il}=e;return Sp(VT,{children:[Sp(wt,{...Il,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,Bf,{"k-icon-picker":!i&&d}),children:[dt(te,{children:p}),dt(To,{placeholder:v,value:k,showValue:i,valueIconName:d}),dt(J,{valid:A,invalid:N,loading:B,disabled:L}),dt(U,{loading:B,disabled:L}),dt(oe,{children:m}),dt(c,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),W&&F&&dt(z,{className:"k-list-container k-dropdownlist-popup",children:F}),xe&&dt(de,{adaptive:!0,...Fe,header:dt(re,{actionsEnd:dt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ia,inputValue:k,inputPlaceholder:v,title:at,subtitle:Ot}),children:dt("div",{className:"k-list-container",children:Sp(X,{size:"large",children:[dt(P,{text:"List item"}),dt(P,{text:"List item"}),dt(P,{text:"List item"})]})})})]})};se.states=WT;se.options=QT;se.className=Bf;se.defaultOptions=Rl;import{jsx as IW}from"react/jsx-runtime";import{jsx as YW,jsxs as PW}from"react/jsx-runtime";import{Fragment as OW,jsx as zW,jsxs as HW}from"react/jsx-runtime";import{jsx as XW}from"react/jsx-runtime";import{jsx as qW,jsxs as _W}from"react/jsx-runtime";import{jsx as aQ,jsxs as lQ}from"react/jsx-runtime";import{Fragment as mQ,jsx as cQ,jsxs as pQ}from"react/jsx-runtime";import{Fragment as vQ,jsx as xQ,jsxs as bQ}from"react/jsx-runtime";import{jsx as Mf}from"react/jsx-runtime";var Qn="k-radio",XT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked],ZT={size:[n.small,n.medium,n.large]},Lf={size:n.medium},No=e=>{let{id:t,checked:a,hover:r,focus:s,disabled:i,invalid:d,valid:p,required:m,size:k=Lf.size,...v}=e;return Mf("span",{className:"k-radio-wrap",children:Mf("input",{...v,id:t,type:"radio",checked:a,required:m,className:o(e.className,Qn,C(Qn,{size:k}),x(Qn,{hover:r,focus:s,disabled:i,invalid:d,valid:p,checked:a}))})})};No.states=XT;No.options=ZT;No.className=Qn;No.defaultOptions=Lf;import{jsx as UT}from"react/jsx-runtime";var Ef="k-radio-list",JT=[],jT={},Yf={layout:"vertical"},zl=e=>{let{layout:t=Yf.layout,...a}=e;return UT("ul",{...a,className:o(e.className,Ef,{[`k-list-${t}`]:t}),children:e.children})};zl.states=JT;zl.options=jT;zl.className=Ef;zl.defaultOptions=Yf;import{jsx as eA}from"react/jsx-runtime";var Pf="k-radio-list-item",qT=[],_T={},$T={},Hl=e=>{let{...t}=e;return eA("li",{...t,className:o(e.className,Pf),children:e.children})};Hl.states=qT;Hl.options=_T;Hl.className=Pf;Hl.defaultOptions=$T;import{jsx as WQ}from"react/jsx-runtime";import{Fragment as JQ,jsx as ZQ,jsxs as jQ}from"react/jsx-runtime";import{Fragment as eV,jsx as $Q,jsxs as tV}from"react/jsx-runtime";import{Fragment as iV,jsx as rV,jsxs as sV}from"react/jsx-runtime";import{Fragment as mV,jsx as pV,jsxs as uV}from"react/jsx-runtime";import{Fragment as xV,jsx as gV,jsxs as bV}from"react/jsx-runtime";import{Fragment as oA,jsx as ct,jsxs as Ol}from"react/jsx-runtime";var Vn=({size:e,...t})=>ct(Ao,{formButtons:Ol(oA,{children:[ct(c,{className:"k-form-submit",themeColor:"primary",size:e,children:"Submit"}),ct(c,{className:"k-form-clear",size:e,children:"Clear"})]}),children:Ol(ro,{legend:"Form Legend",children:[ct(Ze,{label:"Label",editor:ct(j,{size:e})}),ct(Ze,{label:"Label",hint:"Hint text",editor:ct(se,{value:"Dropdown List",size:e})}),ct(Ze,{label:"City",editor:Ol("ul",{className:"k-radio-list k-list-horizontal",children:[Ol("li",{className:"k-radio-list-item",children:[ct(No,{checked:!0,size:e}),ct("label",{className:"k-radio-label",children:"Label"})]}),Ol("li",{className:"k-radio-list-item",children:[ct(No,{size:e}),ct("label",{className:"k-radio-label",children:"Label"})]}),Ol("li",{className:"k-radio-list-item",children:[ct(No,{size:e}),ct("label",{className:"k-radio-label",children:"Label"})]})]})})]}),size:e,...t});import{Fragment as VV,jsx as QV,jsxs as XV}from"react/jsx-runtime";import{Fragment as $V,jsx as _V,jsxs as e6}from"react/jsx-runtime";import{jsx as rA}from"react/jsx-runtime";var Ks="k-button-group",aA=[l.disabled],lA={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},Gf={fillMode:b.solid},Y=e=>{let{fillMode:t=Gf.fillMode,disabled:a,stretched:r,...s}=e;return rA("div",{...s,className:o(e.className,Ks,C(Ks,{fillMode:t}),x(Ks,{disabled:a}),{[`${Ks}-stretched`]:r}),children:e.children})};Y.states=aA;Y.options=lA;Y.className=Ks;Y.defaultOptions=Gf;import{Fragment as h6,jsx as f6,jsxs as g6}from"react/jsx-runtime";import{Fragment as T6,jsx as w6,jsxs as A6}from"react/jsx-runtime";import{Fragment as M6,jsx as B6,jsxs as L6}from"react/jsx-runtime";import{Fragment as D6,jsx as K6,jsxs as F6}from"react/jsx-runtime";import{Fragment as nA,jsx as Kf,jsxs as dA}from"react/jsx-runtime";var Df="k-menu-button",sA=[l.hover,l.focus,l.active,l.selected,l.disabled],iA={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]},za={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!0,arrowIconName:"caret-alt-down"},_=e=>{let{size:t=za.size,rounded:a=za.rounded,fillMode:r=za.fillMode,themeColor:s=za.themeColor,hover:i,focus:d,active:p,selected:m,disabled:k,icon:v,text:T,showArrow:g=za.showArrow,arrowIconName:A=za.arrowIconName,popup:N,opened:S,...B}=e;return dA(nA,{children:[Kf(c,{...B,className:o(e.className,Df),text:T,size:t,rounded:a,fillMode:r,themeColor:s,hover:i,focus:d,active:p,selected:m,disabled:k,icon:v,showArrow:g,arrowIconName:A}),S&&N&&Kf(z,{className:"k-menu-popup",children:N})]})};_.states=sA;_.options=iA;_.className=Df;_.defaultOptions=za;import{jsx as $6}from"react/jsx-runtime";import{jsx as a3}from"react/jsx-runtime";import{jsx as i3}from"react/jsx-runtime";import{Fragment as mA,jsx as Wl,jsxs as Ff}from"react/jsx-runtime";var Mp="k-menu-item",cA=[l.hover,l.focus,l.active,l.selected,l.disabled],pA={},Rf={iconPosition:"before"},Je=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:d,text:p,first:m,last:k,showArrow:v,arrowIconName:T,iconPosition:g=Rf.iconPosition,dir:A,children:N,...S}=e,B=Wl(mA,{});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"),Ff("li",{...S,className:o(e.className,Mp,"k-item",x(Mp,{focus:a,disabled:i,hover:t,active:r,selected:s}),{"k-first":m,"k-last":k}),children:[Ff("span",{className:o("k-link k-menu-link"),children:[d&&g==="before"&&Wl(y,{className:"k-menu-link-icon",icon:d}),Wl("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&Wl(y,{className:"k-menu-link-icon",icon:d}),v&&Wl("span",{className:"k-menu-expand-arrow",children:Wl(y,{icon:L})})]}),B]})};Je.states=cA;Je.options=pA;Je.className=Mp;Je.defaultOptions=Rf;import{Fragment as fA,jsx as Ql,jsxs as zf}from"react/jsx-runtime";var Lp="k-menu-item",uA=[l.hover,l.focus,l.active,l.selected,l.disabled],kA={},Ep={dir:"ltr",iconPosition:"before"},Zt=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:d,text:p,first:m,last:k,showArrow:v,arrowIconName:T,iconPosition:g=Ep.iconPosition,dir:A=Ep.dir,children:N,popup:S,...B}=e,L=Ql(fA,{});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"),zf("li",{...B,className:o(e.className,Lp,"k-item",x(Lp,{focus:a,disabled:i}),{"k-first":m,"k-last":k}),children:[zf("span",{className:o("k-link k-menu-link",x("k-menu-link",{hover:t,active:r,selected:s,disabled:i})),children:[d&&g==="before"&&Ql(y,{className:"k-menu-link-icon",icon:d}),Ql("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&Ql(y,{className:"k-menu-link-icon",icon:d}),v&&Ql("span",{className:"k-menu-expand-arrow",children:Ql(y,{icon:E})})]}),L,S]})};Zt.states=uA;Zt.options=kA;Zt.className=Lp;Zt.defaultOptions=Ep;import{jsx as bA}from"react/jsx-runtime";var Hf="k-menu-scroll-wrapper",hA=[],gA={},xA={},Ds=e=>{let{className:t,children:a,orientation:r,...s}=e;return bA("div",{...s,className:o(t,Hf,{"k-menu-scroll-wrapper-vertical":r==="vertical"}),children:a})};Ds.states=hA;Ds.options=gA;Ds.className=Hf;Ds.defaultOptions=xA;var Of=Ds;import{Fragment as Yp,jsx as Ha,jsxs as Xn}from"react/jsx-runtime";var Pp="k-menu",vA=[],yA={},Zn={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},Jt=e=>{let{children:t,orientation:a=Zn.orientation,header:r=Zn.header,scrollable:s,scrollButtonsPosition:i=Zn.scrollButtonsPosition,wrapperStyles:d,dir:p,popup:m,...k}=e,v={horizontal:{prev:p!=="rtl"?"left":"right",next:p!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},T=Ha("ul",{dir:p,...k,className:o(e.className,"k-reset",Pp,{[`${Pp}-${a}`]:a,"k-header":r}),children:t});return Xn(Yp,{children:[s?Xn(Of,{orientation:a,style:d,dir:e.dir,children:[i==="start"&&Xn(Yp,{children:[Ha(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Ha(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),i==="around"&&Ha(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),T,i==="end"&&Xn(Yp,{children:[Ha(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Ha(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}),i==="around"&&Ha(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}):T,m]})};Jt.states=vA;Jt.options=yA;Jt.className=Pp;Jt.defaultOptions=Zn;import{jsx as wA}from"react/jsx-runtime";var Gp="k-separator",Wf={orientation:"horizontal"},Fs=e=>{let{orientation:t=Wf.orientation,...a}=e;return wA("li",{...a,className:o(e.className,"k-item",Gp,{[`${Gp}-${t}`]:t})})};Fs.className=Gp;Fs.defaultOptions=Wf;import{Fragment as M3,jsx as L3}from"react/jsx-runtime";import{jsx as Qf}from"react/jsx-runtime";import{createElement as NA}from"react";var Kp="k-menu-group",TA=[],AA={size:[n.small,n.medium,n.large]},Dp={size:n.medium,dir:"ltr"},Co=e=>{let{children:t,size:a=Dp.size,dir:r=Dp.dir,...s}=e,i=[];return t&&Array.isArray(t)&&t.map((d,p)=>{d.type===Zt?i.push(NA(Zt,{...d.props,dir:r,key:p})):d.type===Fs?i.push(Qf(Fs,{})):i.push(d)}),Qf("ul",{...s,className:o(e.className,Kp,C(Kp,{size:a})),children:i})};Co.states=TA;Co.options=AA;Co.className=Kp;Co.defaultOptions=Dp;import{Fragment as H3,jsx as z3,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{Fragment as mX,jsx as pX,jsxs as uX}from"react/jsx-runtime";import{jsx as LX,jsxs as EX}from"react/jsx-runtime";import{Fragment as IA,jsx as Fp,jsxs as Vf}from"react/jsx-runtime";var Rp="k-split-button",CA=[l.hover,l.focus,l.active,l.selected,l.disabled],SA={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Vl={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,arrowIconName:"caret-alt-down"},Be=e=>{let{size:t=Vl.size,rounded:a