UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 290 kB
var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>o({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),x=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},h={small:"small",medium:"medium",large:"large",full:"full"},b={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"},gt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{Fragment as Kv,jsx as fk}from"react/jsx-runtime";var zc="k-icon k-font-icon",Yv=[],Pv={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]},Gv={},ms=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?fk("span",{...d,className:o(e.className,zc,C(zc,{size:t}),{[`k-i-${r}`]:r,[`k-color-${a}`]:a,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"})}):fk(Kv,{})};ms.states=Yv;ms.options=Pv;ms.className=zc;ms.defaultOptions=Gv;var hk=ms;import{Fragment as Rv,jsx as wn}from"react/jsx-runtime";var Hc="k-icon k-svg-icon",Dv=[],Fv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},gk={viewBox:"0 0 24 24"},us=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=gk.viewBox,icon:d,...p}=e;if(!d)return wn(Rv,{});d==="none"&&{...p,className:o(e.className,Hc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return wn("span",{...p,className:o(e.className,Hc,C("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${a}`]:a,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),children:wn("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:i,dangerouslySetInnerHTML:typeof d=="object"?{__html:d.content}:void 0,children:d?void 0:e.children})})};us.states=Dv;us.options=Fv;us.className=Hc;us.defaultOptions=gk;var Oc=us;import*as xk from"@progress/kendo-svg-icons";import{Fragment as bk,jsx as ks}from"react/jsx-runtime";var zv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Hv=[],Ov={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]},Wc={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:a,icon:r,type:s=Wc.type,rotate:i,flip:d,viewBox:p=Wc.viewBox,...m}=e;if(!r)return ks(bk,{});if(s==="svg"){if(r==="none")return ks(Oc,{...m,icon:r,size:t});let k=zv(`${r}-icon`);return xk[k]?ks(Oc,{...m,icon:xk[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):ks(bk,{})}return ks(hk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};y.states=Hv;y.options=Ov;y.defaultOptions=Wc;var Qc=y;import{jsx as Xv}from"react/jsx-runtime";var vk="k-tabstrip-items",Wv=[],Qv={},Vv={tabAlignment:"start"},fs=e=>{let{children:t,tabAlignment:a,...r}=e;return Xv("ul",{...r,className:o(e.className,vk,"k-reset",`k-tabstrip-items-${a}`),children:t})};fs.states=Wv;fs.options=Qv;fs.className=vk;fs.defaultOptions=Vv;var yk=fs;import{jsx as jv}from"react/jsx-runtime";var wk="k-tabstrip-items-wrapper",Zv=[],Jv={},Tk={orientation:"horizontal"},hs=e=>{let{children:t,orientation:a=Tk.orientation,...r}=e;return jv("div",{...r,className:o(e.className,wk,{"k-hstack":a==="horizontal","k-vstack":a==="vertical"}),children:t})};hs.states=Zv;hs.options=Jv;hs.className=wk;hs.defaultOptions=Tk;var Ak=hs;import{jsx as vo,jsxs as Nk}from"react/jsx-runtime";var Na="k-tabstrip",Uv=[],qv={size:[n.small,n.medium,n.large]},gs={size:n.medium,position:"top",tabAlignment:"start",scrollButtons:"around"},to=e=>{let{size:t=gs.size,scrollable:a,children:r,tabStripItems:s,position:i=gs.position,tabAlignment:d=gs.tabAlignment,scrollButtons:p=gs.scrollButtons,dir:m,scrollingPosition:k,...v}=e,T={top:{prev:m!=="rtl"?"left":"right",next:m!=="rtl"?"right":"left"},bottom:{prev:m!=="rtl"?"left":"right",next:m!=="rtl"?"right":"left"},right:{prev:"up",next:"down"},left:{prev:"up",next:"down"}},g={top:"horizontal",bottom:"horizontal",left:"vertical",right:"vertical"},A={start:"start",center:"center",end:"end",justify:"justify",stretched:"stretched"};return Nk("div",{dir:m,...v,className:o(Na,e.className,{[`${Na}-${i}`]:i,[`${Na}-scrollable`]:a,[`${Na}-scrollable-overlay`]:a&&(p==="hidden"||!p),[`${Na}-scrollable-${k}`]:k&&k!=="both"},C(Na,{size:t})),children:[i==="bottom"&&r,Nk(Ak,{orientation:g[i],children:[a&&(p==="around"||p==="start")&&vo("span",{className:o("k-tabstrip-prev","k-button",C("k-button",{size:t,fillMode:b.flat,themeColor:u.base,rounded:null}),"k-icon-button"),children:vo(y,{className:"k-button-icon",icon:`caret-alt-${T[i].prev}`})}),a&&p==="start"&&vo("span",{className:o("k-tabstrip-next","k-button",C("k-button",{size:t,fillMode:b.flat,themeColor:u.base,rounded:null}),"k-icon-button"),children:vo(y,{className:"k-button-icon",icon:`caret-alt-${T[i].next}`})}),vo(yk,{className:o({"k-tabstrip-items-scroll":a&&p==="hidden"}),tabAlignment:A[d],children:s}),a&&p==="end"&&vo("span",{className:o("k-tabstrip-prev","k-button",C("k-button",{size:t,fillMode:b.flat,themeColor:u.base,rounded:null}),"k-icon-button"),children:vo(y,{className:"k-button-icon",icon:`caret-alt-${T[i].prev}`})}),a&&(p==="around"||p==="end")&&vo("span",{className:o("k-tabstrip-next","k-button",C("k-button",{size:t,fillMode:b.flat,themeColor:u.base,rounded:null}),"k-icon-button"),children:vo(y,{className:"k-button-icon",icon:`caret-alt-${T[i].next}`})})]}),i!=="bottom"&&r]})};to.states=Uv;to.options=qv;to.className=Na;to.defaultOptions=gs;import{jsx as ey}from"react/jsx-runtime";var _v=[],$v={},Ck=e=>{let{type:t,...a}=e,r=t==="p"?"paragraph":t,s=t.includes("display")?"div":t;return ey(s,{...a,className:o(e.className,{[`k-${r}`]:t}),children:e.children})};Ck.states=_v;Ck.options=$v;import{jsx as ay}from"react/jsx-runtime";var Tn="k-actions",ty=[],oy={},Vc={alignment:"start",orientation:"horizontal"},W=e=>{let{alignment:t=Vc.alignment,orientation:a=Vc.orientation,...r}=e;return ay("div",{...r,className:o(Tn,{[`${Tn}-${t}`]:t,[`${Tn}-${a}`]:a},e.className),children:e.children})};W.states=ty;W.options=oy;W.className=Tn;W.defaultOptions=Vc;var Sk=W;import{jsx as sy}from"react/jsx-runtime";var An="k-input",ly=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],ry={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Nn={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=Nn.size,rounded:k=Nn.rounded,fillMode:v=Nn.fillMode,...T}=e;return sy("span",{...T,className:o(e.className,An,C(An,{size:m,rounded:k,fillMode:v}),x(An,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=ly;M.options=ry;M.className=An;M.defaultOptions=Nn;import{jsx as dy}from"react/jsx-runtime";var Cn="k-picker",iy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],ny={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Sn={size:n.medium,rounded:h.medium,fillMode:b.solid},xt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=Sn.size,rounded:k=Sn.rounded,fillMode:v=Sn.fillMode,...T}=e;return dy("span",{...T,className:o(e.className,Cn,C(Cn,{size:m,rounded:k,fillMode:v}),x(Cn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};xt.states=iy;xt.options=ny;xt.className=Cn;xt.defaultOptions=Sn;import{Fragment as my,jsx as Xc}from"react/jsx-runtime";var Ik="k-clear-value",cy=[l.disabled,l.loading,l.readonly],py={},te=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Xc(my,{}):Xc("span",{className:o(e.className,Ik),children:Xc(y,{icon:"x"})})};te.states=cy;te.options=py;te.className=Ik;import{jsx as fy}from"react/jsx-runtime";var Zc="k-input-inner",uy=[],ky={},In={type:"text",autocomplete:"off",value:"",placeholder:""},se=e=>{let{value:t=In.value,type:a=In.type,placeholder:r=In.placeholder,autocomplete:s=In.autocomplete,...i}=e;return fy("input",{...i,type:a,className:o(e.className,Zc,C(Zc,e)),placeholder:r,autoComplete:s,defaultValue:t})};se.states=uy;se.options=ky;se.className=Zc;import{jsx as Bk,jsxs as xy}from"react/jsx-runtime";var Jc="k-input-inner",hy=[],gy={},yo=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return xy("span",{...d,className:o(e.className,Jc,C(Jc,e)),children:[s,!s&&i&&Bk(y,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&Bk("span",{className:"k-input-value-text",children:t})]})};yo.states=hy;yo.options=gy;yo.className=Jc;import{jsx as yy}from"react/jsx-runtime";var jc="k-input-inner",by=[],vy={},Mk={value:"",placeholder:""},xs=e=>{let{value:t=Mk.value,placeholder:a=Mk.placeholder,rows:r,...s}=e;return yy("textarea",{...s,className:o(e.className,jc,C(jc,e)),placeholder:a,rows:r,defaultValue:t})};xs.states=by;xs.options=vy;xs.className=jc;import{Fragment as Ty,jsx as Lk}from"react/jsx-runtime";var Ek="k-input-loading-icon",wy=[l.disabled,l.loading],J=e=>{let{disabled:t,loading:a}=e;return t||!a?Lk(Ty,{}):Lk("span",{className:o(e.className,Ek,"k-icon k-i-loading")})};J.states=wy;J.className=Ek;import{Fragment as Cy,jsx as Yk}from"react/jsx-runtime";var Pk="k-input-validation-icon",Ay=[l.valid,l.invalid,l.disabled,l.loading],Ny={},X=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Yk(Cy,{}):Yk(y,{className:o(Pk),icon:i})};X.states=Ay;X.options=Ny;X.className=Pk;import{Fragment as By,jsx as Gk}from"react/jsx-runtime";var Sy="k-input-prefix",Iy={direction:"horizontal"},$=e=>{let{direction:t=Iy.direction,...a}=e;return e.children?Gk("span",{...a,className:o(Sy,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Gk(By,{})};import{Fragment as Ey,jsx as Kk}from"react/jsx-runtime";var My="k-input-suffix",Ly={direction:"horizontal"},ee=e=>{let{direction:t=Ly.direction,...a}=e;return e.children?Kk("span",{...a,className:o(My,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Kk(Ey,{})};import{jsx as YK}from"react/jsx-runtime";import{jsx as DK}from"react/jsx-runtime";import{jsx as Py}from"react/jsx-runtime";var Dk="k-input-separator",Yy={direction:"vertical"},ge=e=>{let{direction:t=Yy.direction,...a}=e;return Py("span",{...a,className:o(Dk,e.className,{[`${Dk}-${t}`]:t})})};import{jsx as Fk}from"react/jsx-runtime";var Rk="k-animation-container",Gy=[],Ky={},zk={positionMode:"absolute"},Ko=e=>{let{positionMode:t=zk.positionMode,animationStyle:a,offset:r,...s}=e;return Fk("div",{...s,style:{...r,...e.style},className:o(e.className,Rk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Fk("div",{className:"k-child-animation-container",style:a,children:e.children})})};Ko.states=Gy;Ko.options=Ky;Ko.className=Rk;Ko.defaultOptions=zk;import{jsx as Hk}from"react/jsx-runtime";var Ok="k-popup",Dy=[],Fy={},Wk={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:a=Wk.positionMode,animationStyle:r,...s}=e;return Hk(Ko,{positionMode:a,offset:t,animationStyle:r,children:Hk("div",{...s,className:o(e.className,Ok),children:e.children})})};F.states=Dy;F.options=Fy;F.className=Ok;F.defaultOptions=Wk;import{jsx as zy}from"react/jsx-runtime";var Ry="k-no-data",bs=e=>zy("span",{className:o(Ry,e.className),children:e.children});import{jsx as Al,jsxs as Qk}from"react/jsx-runtime";var Uc="k-list",Hy=[],Oy={size:[n.small,n.medium,n.large]},Vk={size:n.medium},Q=e=>{let{size:t=Vk.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:d,...p}=e,m,k,v,T,g=[];return r?r.map((A,N)=>{A.type===xe?(A.props.root===!0?(m=A.props.label,A.props.children.map((S,B)=>{g.push(Al(P,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):A.props.children.forEach((S,B)=>{let L="";B===0&&(L=A.props.label),g.push(Al(P,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=Al(xe,{label:m,virtualization:a,children:g})):A.type===P&&(g.push(Al(P,{...A.props},`${A.type}-${N}`)),v=Al(Nl,{virtualization:a,children:g}),d&&(T=Qk(bs,{className:"k-sr-only",children:[g.length," items found."]})))}):T=Al(bs,{children:"No data found."}),Qk("div",{...p,className:o(e.className,Uc,C(Uc,{size:t}),{"k-virtual-list":a}),children:[s,i,k,v,T]})};Q.states=Hy;Q.options=Oy;Q.className=Uc;Q.defaultOptions=Vk;import{jsx as Ca,jsxs as Vy}from"react/jsx-runtime";var qc="k-list",Wy=[],Qy={size:[n.small,n.medium,n.large]},Xk={size:n.medium},Sa=e=>{let{size:t=Xk.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,v)=>{k.type===xe?(k.props.root===!0?(i=k.props.label,k.props.children.map((T,g)=>{m.push(Ca(P,{...T.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Ca(Zk,{...k.props,children:k.props.label},`listChild-${v}`)),k.props.children.map((T,g)=>{m.push(Ca(P,{...T.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Ca(xe,{label:i,virtualization:a,children:m})):k.type===P&&(m.push(Ca(P,{...k.props},`${k.type}-${v}`)),p=Ca(Nl,{virtualization:a,children:m}))}):p=Ca(bs,{children:"No data found."}),Vy("div",{...s,className:o(e.className,qc,C(qc,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Sa.states=Wy;Sa.options=Qy;Sa.className=qc;Sa.defaultOptions=Xk;import{jsx as Jk}from"react/jsx-runtime";var Bn="k-checkbox",Xy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],Zy={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full]},_c={size:n.medium,rounded:h.medium},We=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:v=_c.size,rounded:T=_c.rounded,...g}=e;return Jk("span",{className:"k-checkbox-wrap",children:Jk("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Bn,C(Bn,{size:v,rounded:T}),x(Bn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};We.states=Xy;We.options=Zy;We.className=Bn;We.defaultOptions=_c;import{jsx as Uy}from"react/jsx-runtime";var jk="k-checkbox-list",Jy=[],jy={},Uk={layout:"vertical"},Cl=e=>{let{layout:t=Uk.layout,...a}=e;return Uy("ul",{...a,className:o(e.className,jk,{[`k-list-${t}`]:t}),children:e.children})};Cl.states=Jy;Cl.options=jy;Cl.className=jk;Cl.defaultOptions=Uk;import{jsx as ew}from"react/jsx-runtime";var qk="k-checkbox-list-item",qy=[],_y={},$y={},Sl=e=>{let{...t}=e;return ew("li",{...t,className:o(e.className,qk),children:e.children})};Sl.states=qy;Sl.options=_y;Sl.className=qk;Sl.defaultOptions=$y;import{Fragment as zD,jsx as RD,jsxs as HD}from"react/jsx-runtime";import{Fragment as XD,jsx as VD,jsxs as ZD}from"react/jsx-runtime";import{Fragment as _D,jsx as qD,jsxs as $D}from"react/jsx-runtime";import{Fragment as lF,jsx as aF,jsxs as rF}from"react/jsx-runtime";import{jsx as dF}from"react/jsx-runtime";import{jsx as uF}from"react/jsx-runtime";import{jsx as Mn,jsxs as lw}from"react/jsx-runtime";var ep="k-list-item",tw=[l.hover,l.focus,l.selected,l.disabled],ow={},aw={},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 lw("li",{...g,className:o(e.className,r?"k-list-group-item":ep,x(ep,{hover:m,focus:k,disabled:T,selected:v})),children:[d&&Mn(We,{checked:p}),s&&Mn(y,{icon:i}),Mn("span",{className:"k-list-item-text",children:A}),a&&a!==""&&Mn("div",{className:"k-list-item-group-label",children:a})]})};P.states=tw;P.options=ow;P.className=ep;P.defaultOptions=aw;import{jsx as tp,jsxs as sw}from"react/jsx-runtime";var rw="k-list-content",Nl=e=>{let{virtualization:t,...a}=e;return sw("div",{...a,className:o(rw,e.className),children:[tp("ul",{className:o("k-list-ul"),children:e.children}),t&&tp("div",{className:"k-height-container",children:tp("div",{})})]})};import{jsx as _k}from"react/jsx-runtime";var iw="k-list-group-sticky-header",$k=e=>_k("div",{className:o(iw,e.className),children:_k("div",{className:"k-list-header-text",children:e.children})});import{Fragment as nw,jsx as ef,jsxs as dw}from"react/jsx-runtime";var xe=e=>{let{virtualization:t,label:a}=e;return dw(nw,{children:[a&&ef($k,{children:a}),e.children&&ef(Nl,{virtualization:t,children:e.children})]})};import{jsx as tf}from"react/jsx-runtime";var cw="k-list-group-item",Zk=e=>tf("li",{className:o(cw,e.className),children:tf("span",{className:"k-list-item-text",children:e.children})});import{jsx as kw}from"react/jsx-runtime";var op="k-list-optionlabel",pw=[l.hover,l.focus,l.selected,l.disabled],mw={},uw={},Ln=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return kw("div",{...d,className:o(op,x(op,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Ln.states=pw;Ln.options=mw;Ln.className=op;Ln.defaultOptions=uw;import{jsx as xw}from"react/jsx-runtime";var ap="k-list-custom-value",fw=[l.hover,l.focus,l.selected,l.disabled],hw={},gw={},Ze=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return xw("div",{...d,className:o(ap,x(ap,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Ze.states=fw;Ze.options=hw;Ze.className=ap;Ze.defaultOptions=gw;import{jsx as UF}from"react/jsx-runtime";import{jsx as eR}from"react/jsx-runtime";import{jsx as lR,jsxs as rR}from"react/jsx-runtime";import{jsx as dR,jsxs as cR}from"react/jsx-runtime";import{jsx as kR}from"react/jsx-runtime";import{jsx as xR,jsxs as bR}from"react/jsx-runtime";import{jsx as TR,jsxs as AR}from"react/jsx-runtime";import{Fragment as yw,jsx as vs,jsxs as of}from"react/jsx-runtime";var En="k-button",bw=[l.hover,l.focus,l.active,l.selected,l.disabled],vw={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]},Ia={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Ia.size,rounded:a=Ia.rounded,fillMode:r=Ia.fillMode,themeColor:s=Ia.themeColor,showArrow:i=Ia.showArrow,arrowIconName:d=Ia.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 of("button",{...S,className:o(e.className,En,C(En,{size:t,rounded:a,fillMode:r,themeColor:s}),x(En,{hover:p,focus:m,active:k,disabled:T,selected:v}),{"k-icon-button":!A&&!L&&B}),children:[g&&vs(y,{className:o(N,"k-button-icon"),icon:g}),A?of(yw,{children:[A&&vs("span",{className:"k-button-text",children:A}),e.children]}):e.children&&vs("span",{className:"k-button-text",children:e.children}),i&&vs("span",{className:"k-menu-button-arrow k-button-arrow",children:vs(y,{icon:d})})]})};c.states=bw;c.options=vw;c.className=En;c.defaultOptions=Ia;import{jsx as ww}from"react/jsx-runtime";var Je=e=>ww(c,{icon:"folder",...e,children:void 0});import{jsx as Tw}from"react/jsx-runtime";var Rt=e=>Tw(c,{icon:"folder",children:"Button",...e});import{jsx as tz}from"react/jsx-runtime";import{jsx as lp,jsxs as Cw}from"react/jsx-runtime";var af="k-suggestion-group",Aw=[],Nw={},lf={scrollable:!0},Ba=e=>{let{scrollable:t=lf.scrollable,...a}=e,r=lp("div",{...a,className:o(af,e.className),children:e.children});return t?Cw("div",{className:"k-suggestion-scrollwrap",children:[lp(c,{icon:"chevron-left"}),r,lp(c,{icon:"chevron-right"})]}):r};Ba.states=Aw;Ba.options=Nw;Ba.className=af;Ba.defaultOptions=lf;import{jsx as Mw}from"react/jsx-runtime";var Yn="k-suggestion",Sw=[l.active,l.hover,l.focus],Iw={themeColor:[u.base,u.primary,u.secondary]},Bw={text:"Suggestion"},Ma=e=>{let{themeColor:t,active:a,hover:r,focus:s,text:i,...d}=e;return Mw("span",{...d,className:o(e.className,Yn,x(Yn,{hover:r,active:a,focus:s}),C(Yn,{themeColor:t})),children:i})};Ma.states=Sw;Ma.options=Iw;Ma.className=Yn;Ma.item=Bw;import{Fragment as xz,jsx as gz,jsxs as bz}from"react/jsx-runtime";import{Fragment as Az,jsx as Tz,jsxs as Nz}from"react/jsx-runtime";import{jsx as rf}from"react/jsx-runtime";var ys="k-avatar";var Lw=[l.hover,l.focus,l.active,l.selected,l.disabled],Ew={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]},La={type:"text",size:n.medium,rounded:h.full,fillMode:b.solid,themeColor:u.primary,border:!1},oo=e=>{let{size:t=La.size,rounded:a=La.rounded,fillMode:r=La.fillMode,themeColor:s=La.themeColor,type:i=La.type,border:d=La.border,...p}=e;return rf("div",{...p,className:o(e.className,ys,C(ys,{size:t,rounded:a,fillMode:r,themeColor:s}),{[`${ys}-bordered`]:d}),children:rf("span",{className:`${ys}-${i}`,children:e.children})})};oo.states=Lw;oo.options=Ew;oo.className=ys;oo.defaultOptions=La;import{jsx as Dz}from"react/jsx-runtime";import{jsx as Hz}from"react/jsx-runtime";import{jsx as Vz}from"react/jsx-runtime";import{jsx as Gw}from"react/jsx-runtime";var ws="k-badge",Yw=[],Pw={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]},Ts={size:n.medium,fillMode:b.solid,themeColor:u.primary,cutoutBorder:!1},Il=e=>{let{size:t=Ts.size,fillMode:a=Ts.fillMode,themeColor:r=Ts.themeColor,cutoutBorder:s=Ts.cutoutBorder,rounded:i,position:d,align:p,...m}=e;return Gw("span",{...m,className:o(e.className,ws,C(ws,{size:t,rounded:i,fillMode:a,themeColor:r}),{[`${ws}-${d}`]:d,[`k-${p}`]:p,[`${ws}-border-cutout`]:s}),children:e.children})};Il.states=Yw;Il.options=Pw;Il.className=ws;Il.defaultOptions=Ts;import{jsx as a0}from"react/jsx-runtime";import{jsx as n0}from"react/jsx-runtime";import{jsx as g0}from"react/jsx-runtime";import{jsx as Bl,jsxs as Fw}from"react/jsx-runtime";var Pn="k-chip",Kw=[l.hover,l.focus,l.active,l.selected,l.disabled],Dw={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]},Ml={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,avatarImage:"/packages/html/assets/avatar.jpg"},zt=e=>{let{size:t=Ml.size,rounded:a=Ml.rounded,fillMode:r=Ml.fillMode,themeColor:s=Ml.themeColor,text:i,icon:d,actions:p,showAvatar:m,avatarImage:k=Ml.avatarImage,hover:v,focus:T,active:g,selected:A,disabled:N,...S}=e;return Fw("div",{...S,className:o(e.className,Pn,C(Pn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Pn,{hover:v,focus:T,active:g,disabled:N,selected:A})),children:[d&&Bl(y,{className:"k-chip-icon",icon:d,size:"small"}),m&&Bl(oo,{className:"k-chip-avatar",type:"image",children:Bl("img",{src:k})}),Bl("span",{className:"k-chip-content",children:e.children?e.children:i&&Bl("span",{className:"k-chip-label",children:i})}),p&&Bl("span",{className:"k-chip-actions",children:p})]})};zt.states=Kw;zt.options=Dw;zt.className=Pn;zt.defaultOptions=Ml;import{jsx as Hw}from"react/jsx-runtime";var rp="k-chip-list",Rw=[],zw={size:[n.small,n.medium,n.large]},nf={size:n.medium},Ht=e=>{let{size:t=nf.size,...a}=e;return Hw("div",{...a,className:o(e.className,rp,C(rp,{size:t})),children:e.children})};Ht.states=Rw;Ht.options=zw;Ht.className=rp;Ht.defaultOptions=nf;import{jsx as B0}from"react/jsx-runtime";import{jsx as Y0}from"react/jsx-runtime";import{jsx as D0}from"react/jsx-runtime";import{jsx as O0}from"react/jsx-runtime";import{Fragment as J0,jsx as Z0,jsxs as j0}from"react/jsx-runtime";import{jsx as df,jsxs as Qw}from"react/jsx-runtime";var cf="k-color-preview",Ow=[],Ww={},Do=e=>{let{color:t,iconName:a,...r}=e;return Qw("span",{...r,className:o(e.className,cf,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&df(y,{icon:a,className:"k-color-preview-icon"}),df("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Do.states=Ow;Do.options=Ww;Do.className=cf;import{Fragment as sp,jsx as pf,jsxs as Kn}from"react/jsx-runtime";var ip="k-loader",Vw={pulsing:"pulsing-2","infinite-spinner":"spinner-3","converging-spinner":"spinner-4"},Xw=[],Zw={size:[n.small,n.medium,n.large],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Dn={size:n.medium,themeColor:u.primary,animation:"pulsing"},Fo=e=>{let{size:t=Dn.size,themeColor:a=Dn.themeColor,animation:r=Dn.animation,...s}=e,i=pf("span",{className:"k-loader-segment"});return pf("div",{...s,className:o(e.className,ip,{[`k-loader-${Vw[r]||r}`]:r},C(ip,{size:t,themeColor:a})),children:Kn("div",{className:"k-loader-canvas",children:[r==="pulsing"&&Kn(sp,{children:[i,i]}),r==="infinite-spinner"&&Kn(sp,{children:[i,i,i]}),r==="converging-spinner"&&Kn(sp,{children:[i,i,i,i]})]})})};Fo.states=Xw;Fo.options=Zw;Fo.className=ip;Fo.defaultOptions=Dn;var mf=Fo;import{jsx as np,jsxs as uf}from"react/jsx-runtime";var dp="k-loader-container",Jw=[],jw={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]},Ya={size:n.medium,themeColor:u.primary,loaderType:"pulsing",position:"top",overlay:"dark",panel:!1},As=e=>{let{size:t=Ya.size,themeColor:a=Ya.themeColor,loaderType:r=Ya.loaderType,position:s=Ya.position,overlay:i=Ya.overlay,panel:d=Ya.panel,...p}=e;return uf("div",{...p,className:o(e.className,dp,C(dp,{size:t}),{[`k-loader-${s}`]:s}),children:[np("div",{className:`k-loader-container-overlay k-overlay-${i}`}),uf("div",{className:o("k-loader-container-inner",{"k-loader-container-panel":d}),children:[np(mf,{size:t,themeColor:a,animation:r}),np("div",{className:`k-loader-container-label !k-text-${a}`,children:"Loading..."})]})]})};As.states=Jw;As.options=jw;As.className=dp;As.defaultOptions=Ya;import{jsx as yH}from"react/jsx-runtime";import{jsx as NH}from"react/jsx-runtime";import{jsx as BH}from"react/jsx-runtime";import{jsx as YH}from"react/jsx-runtime";import{jsx as _w}from"react/jsx-runtime";var kf="k-skeleton",Uw=[],qw={},cp={shape:"text",animation:"pulse"},Ro=e=>{let{shape:t=cp.shape,animation:a=cp.animation,...r}=e;return _w("span",{...r,className:o(e.className,kf,{[`k-skeleton-${t}`]:t,[`k-skeleton-${a}`]:a}),style:e.style})};Ro.states=Uw;Ro.options=qw;Ro.className=kf;Ro.defaultOptions=cp;import{jsx as ZH}from"react/jsx-runtime";import{jsx as $w}from"react/jsx-runtime";var ff=e=>$w(Ro,{shape:"rect",...e});import{jsx as e8}from"react/jsx-runtime";import{jsx as Ns,jsxs as pp}from"react/jsx-runtime";var mp="k-form-field",eT=[l.disabled],Qe=e=>{let{label:t,orientation:a,optional:r,editor:s,hint:i,error:d,info:p,disabled:m,dir:k,colSpan:v}=e;return pp("div",{className:o(mp,e.className,x(mp,{disabled:m}),{[`k-col-span-${v}`]:v}),dir:k,children:[t&&pp("label",{className:o("k-label","k-form-label"),children:[t,r&&Ns("span",{className:"k-label-optional",children:"(Optional)"}),p&&Ns("span",{className:"k-field-info",children:"(field info)"})]}),a==="horizontal"&&!t&&Ns("span",{className:"k-label k-form-label k-label-empty"}),pp("div",{className:"k-form-field-wrap",children:[s,i&&Ns("div",{className:"k-form-hint",children:i}),d&&Ns("div",{className:"k-form-error",children:d})]})]})};Qe.states=eT;Qe.className=mp;import{Fragment as tT,jsx as up,jsxs as oT}from"react/jsx-runtime";var hf="k-form-fieldset",ao=e=>{let{legend:t,layout:a,cols:r,gutters:s,colSpan:i}=e;return oT("fieldset",{className:o(hf,{[`k-col-span-${i}`]:i}),children:[t&&up("legend",{className:"k-form-legend",children:t}),a==="grid"?up("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}):up(tT,{children:e.children})]})};ao.className=hf;import{Fragment as rT,jsx as Cs,jsxs as sT}from"react/jsx-runtime";import{createElement as kp}from"react";var Fn="k-form",aT=[],lT={size:[n.small,n.medium,n.large]},Rn={size:n.medium,layout:"basic",tag:"form"},wo=e=>{let{size:t=Rn.size,orientation:a,layout:r=Rn.layout,formButtons:s,cols:i,gutters:d,tag:p=Rn.tag,children:m}=e,k=({tag:T,className:g,children:A})=>T==="form"?Cs("form",{className:g,children:A}):Cs("div",{className:g,children:A}),v=[];return m&&(Array.isArray(m)?m.map((T,g)=>{T.type===Qe?v.push(kp(Qe,{...T.props,orientation:a,key:g})):v.push(T)}):m.type===Qe?v.push(kp(Qe,{...m.props,orientation:a,key:`${new Date().getTime()}`})):m.type===ao&&v.push(kp(ao,{...m.props,key:`${new Date().getTime()}`}))),sT(k,{tag:p,className:o(e.className,Fn,C(Fn,{size:t}),{[`${Fn}-${a}`]:a}),children:[r==="grid"?Cs("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}):Cs(rT,{children:v}),s&&Cs("div",{className:"k-form-buttons",children:s})]})};wo.states=aT;wo.options=lT;wo.className=Fn;wo.defaultOptions=Rn;import{jsx as nT}from"react/jsx-runtime";var iT="k-actionsheet-footer",gf={alignment:"stretched",orientation:"horizontal"},Ot=e=>{let{alignment:t=gf.alignment,orientation:a=gf.orientation,template:r,as:s=r?"div":W,...i}=e;return nT(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,iT),children:e.children})};import{jsx as Ss,jsxs as pT}from"react/jsx-runtime";var xf="k-searchbox",dT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],cT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},fp={showIcon:!0,icon:"search",size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},Fe=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=fp.showIcon,icon:N=fp.icon,...S}=e;return pT(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,xf),children:[A&&Ss(y,{className:"k-input-icon",icon:N}),Ss(se,{placeholder:a,value:t}),Ss(J,{...e}),Ss(X,{...e}),Ss(te,{...e})]})};Fe.states=dT;Fe.options=cT;Fe.className=xf;Fe.defaultOptions=fp;import{jsx as L8}from"react/jsx-runtime";import{Fragment as bf,jsx as zo,jsxs as hp}from"react/jsx-runtime";var vf="k-textbox",mT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],uT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Pa={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},Z=e=>{let{size:t=Pa.size,rounded:a=Pa.rounded,fillMode:r=Pa.fillMode,separators:s=Pa.separators,showClearButton:i=Pa.showClearButton,showValidationIcon:d=Pa.showValidationIcon,prefix:p,suffix:m,type:k,value:v,placeholder:T,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,...H}=e;return hp(M,{...H,size:t,rounded:a,fillMode:r,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,className:o(e.className,vf),children:[p&&hp(bf,{children:[zo($,{children:p}),s&&zo(ge,{})]}),zo(se,{placeholder:T,value:v,type:k}),d&&zo(X,{valid:N,invalid:S,loading:L,disabled:E}),zo(J,{loading:L,disabled:E}),i&&zo(te,{loading:L,disabled:E,readonly:D,value:v}),m&&hp(bf,{children:[s&&zo(ge,{}),zo(ee,{children:m})]})]})};Z.states=mT;Z.options=uT;Z.className=vf;Z.defaultOptions=Pa;import{jsx as O8}from"react/jsx-runtime";import{Fragment as J8,jsx as Z8}from"react/jsx-runtime";import{Fragment as eO,jsx as $8}from"react/jsx-runtime";import{jsx as Ho,jsxs as gp}from"react/jsx-runtime";var Tf="k-actionsheet-titlebar",kT={},ae=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:v,...T}=e;return gp("div",{...T,className:o(e.className,Tf),children:[gp("div",{className:"k-actionsheet-titlebar-group",children:[r&&Ho("div",{className:"k-actionsheet-actions",children:r}),!v&&gp("div",{className:"k-actionsheet-title",children:[t&&Ho("div",{className:"k-text-center",children:t}),a&&Ho("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),v&&Ho("div",{className:"k-actionsheet-title",children:v}),s&&Ho("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Ho("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Ho(Z,{value:p,placeholder:m,size:k?"large":"medium"}):Ho(Fe,{placeholder:"Filter",size:k?"large":"medium"})})]})};ae.className=Tf;ae.defaultOptions=kT;import{jsx as xp,jsxs as xT}from"react/jsx-runtime";var bp="k-actionsheet-view",fT=[],hT={},gT={},Ll=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===ae&&xp(ae,{adaptive:t,...s?.props}),m=i?.type===Ot&&xp(Ot,{...i?.props});return xT("div",{...d,className:o(e.className,bp,{[`${bp}-animated`]:a}),children:[p,xp("div",{className:"k-actionsheet-content",children:r}),m]})};Ll.states=fT;Ll.options=hT;Ll.className=bp;Ll.defaultOptions=gT;import{jsx as zn,jsxs as yT}from"react/jsx-runtime";var Af="k-actionsheet",bT=[],vT={},Is={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ie=e=>{let{side:t=Is.side,fullscreen:a=Is.fullscreen,adaptive:r=Is.adaptive,overlay:s=Is.overlay,template:i,children:d,header:p,footer:m,...k}=e;return yT("div",{className:"k-actionsheet-container",children:[s&&zn("div",{className:"k-overlay"}),zn(Ko,{animationStyle:{[`${a===!0?"top":t}`]:0,[`${a===!0?"width":null}`]:"100%",[`${a===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:zn("div",{...k,className:o(e.className,Af,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||zn(Ll,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};ie.states=bT;ie.options=vT;ie.className=Af;ie.defaultOptions=Is;import{jsx as AO}from"react/jsx-runtime";import{Fragment as TT,jsx as Bs,jsxs as vp}from"react/jsx-runtime";var yp="k-actionsheet-item",wT=[l.hover,l.focus,l.selected,l.disabled],wp=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return vp("span",{...m,className:o(e.className,yp,x(yp,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&Bs(TT,{children:vp("span",{className:"k-actionsheet-action",children:[t&&Bs("span",{className:"k-icon-wrap",children:Bs(y,{className:"k-actionsheet-item-icon",icon:t})}),vp("span",{className:"k-actionsheet-item-text",children:[a&&Bs("span",{className:"k-actionsheet-item-title",children:a}),r&&Bs("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};wp.states=wT;wp.className=yp;import{jsx as YO,jsxs as PO}from"react/jsx-runtime";import{jsx as FO}from"react/jsx-runtime";import{jsx as OO}from"react/jsx-runtime";import{jsx as XO}from"react/jsx-runtime";import{Fragment as CT,jsx as rt,jsxs as Tp}from"react/jsx-runtime";var Cf="k-dropdownlist",AT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],NT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},El={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:h.medium,fillMode:b.solid},le=e=>{let{size:t=El.size,rounded:a=El.rounded,fillMode:r=El.fillMode,arrowIconName:s=El.arrowIconName,showValue:i=El.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:v,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:E,popup:D,opened:H,adaptive:he,adaptiveSettings:Ge,adaptiveTitle:$e,adaptiveSubtitle:Ft,adaptiveFilter:Aa,...Tl}=e;return Tp(CT,{children:[Tp(xt,{...Tl,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:E,className:o(e.className,Cf,{"k-icon-picker":!i&&d}),children:[rt($,{children:p}),rt(yo,{placeholder:v,value:k,showValue:i,valueIconName:d}),rt(X,{valid:A,invalid:N,loading:B,disabled:L}),rt(J,{loading:B,disabled:L}),rt(ee,{children:m}),rt(c,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),H&&D&&rt(F,{className:"k-list-container k-dropdownlist-popup",children:D}),he&&rt(ie,{adaptive:!0,...Ge,header:rt(ae,{actionsEnd:rt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Aa,inputValue:k,inputPlaceholder:v,title:$e,subtitle:Ft}),children:rt("div",{className:"k-list-container",children:Tp(Q,{size:"large",children:[rt(P,{text:"List item"}),rt(P,{text:"List item"}),rt(P,{text:"List item"})]})})})]})};le.states=AT;le.options=NT;le.className=Cf;le.defaultOptions=El;import{jsx as hW}from"react/jsx-runtime";import{jsx as yW,jsxs as wW}from"react/jsx-runtime";import{Fragment as MW,jsx as IW,jsxs as BW}from"react/jsx-runtime";import{jsx as PW}from"react/jsx-runtime";import{jsx as RW,jsxs as zW}from"react/jsx-runtime";import{jsx as VW,jsxs as XW}from"react/jsx-runtime";import{Fragment as eQ,jsx as _W,jsxs as $W}from"react/jsx-runtime";import{Fragment as nQ,jsx as sQ,jsxs as iQ}from"react/jsx-runtime";import{jsx as Sf}from"react/jsx-runtime";var Hn="k-radio",ST=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked],IT={size:[n.small,n.medium,n.large]},If={size:n.medium},To=e=>{let{id:t,checked:a,hover:r,focus:s,disabled:i,invalid:d,valid:p,required:m,size:k=If.size,...v}=e;return Sf("span",{className:"k-radio-wrap",children:Sf("input",{...v,id:t,type:"radio",checked:a,required:m,className:o(e.className,Hn,C(Hn,{size:k}),x(Hn,{hover:r,focus:s,disabled:i,invalid:d,valid:p,checked:a}))})})};To.states=ST;To.options=IT;To.className=Hn;To.defaultOptions=If;import{jsx as LT}from"react/jsx-runtime";var Bf="k-radio-list",BT=[],MT={},Mf={layout:"vertical"},Yl=e=>{let{layout:t=Mf.layout,...a}=e;return LT("ul",{...a,className:o(e.className,Bf,{[`k-list-${t}`]:t}),children:e.children})};Yl.states=BT;Yl.options=MT;Yl.className=Bf;Yl.defaultOptions=Mf;import{jsx as GT}from"react/jsx-runtime";var Lf="k-radio-list-item",ET=[],YT={},PT={},Pl=e=>{let{...t}=e;return GT("li",{...t,className:o(e.className,Lf),children:e.children})};Pl.states=ET;Pl.options=YT;Pl.className=Lf;Pl.defaultOptions=PT;import{jsx as LQ}from"react/jsx-runtime";import{Fragment as KQ,jsx as GQ,jsxs as DQ}from"react/jsx-runtime";import{Fragment as OQ,jsx as HQ,jsxs 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 sV,jsx as rV,jsxs as iV}from"react/jsx-runtime";import{Fragment as DT,jsx as st,jsxs as Gl}from"react/jsx-runtime";var On=({size:e,...t})=>st(wo,{formButtons:Gl(DT,{children:[st(c,{className:"k-form-submit",themeColor:"primary",size:e,children:"Submit"}),st(c,{className:"k-form-clear",size:e,children:"Clear"})]}),children:Gl(ao,{legend:"Form Legend",children:[st(Qe,{label:"Label",editor:st(Z,{size:e})}),st(Qe,{label:"Label",hint:"Hint text",editor:st(le,{value:"Dropdown List",size:e})}),st(Qe,{label:"City",editor:Gl("ul",{className:"k-radio-list k-list-horizontal",children:[Gl("li",{className:"k-radio-list-item",children:[st(To,{checked:!0,size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Gl("li",{className:"k-radio-list-item",children:[st(To,{size:e}),st("label",{className:"k-radio-label",children:"Label"})]}),Gl("li",{className:"k-radio-list-item",children:[st(To,{size:e}),st("label",{className:"k-radio-label",children:"Label"})]})]})})]}),size:e,...t});import{Fragment as YV,jsx as EV,jsxs as PV}from"react/jsx-runtime";import{Fragment as HV,jsx as zV,jsxs as OV}from"react/jsx-runtime";import{jsx as zT}from"react/jsx-runtime";var Ms="k-button-group",FT=[l.disabled],RT={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},Ef={fillMode:b.solid},Y=e=>{let{fillMode:t=Ef.fillMode,disabled:a,stretched:r,...s}=e;return zT("div",{...s,className:o(e.className,Ms,C(Ms,{fillMode:t}),x(Ms,{disabled:a}),{[`${Ms}-stretched`]:r}),children:e.children})};Y.states=FT;Y.options=RT;Y.className=Ms;Y.defaultOptions=Ef;import{Fragment as l6,jsx as a6,jsxs as r6}from"react/jsx-runtime";import{Fragment as p6,jsx as c6,jsxs as m6}from"react/jsx-runtime";import{Fragment as x6,jsx as g6,jsxs as b6}from"react/jsx-runtime";import{Fragment as N6,jsx as A6,jsxs as C6}from"react/jsx-runtime";import{Fragment as WT,jsx as Yf,jsxs as QT}from"react/jsx-runtime";var Pf="k-menu-button",HT=[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.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]},Ka={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!0,arrowIconName:"caret-alt-down"},U=e=>{let{size:t=Ka.size,rounded:a=Ka.rounded,fillMode:r=Ka.fillMode,themeColor:s=Ka.themeColor,hover:i,focus:d,active:p,selected:m,disabled:k,icon:v,text:T,showArrow:g=Ka.showArrow,arrowIconName:A=Ka.arrowIconName,popup:N,opened:S,...B}=e;return QT(WT,{children:[Yf(c,{...B,className:o(e.className,Pf),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&&Yf(F,{className:"k-menu-popup",children:N})]})};U.states=HT;U.options=OT;U.className=Pf;U.defaultOptions=Ka;import{jsx as H6}from"react/jsx-runtime";import{jsx as V6}from"react/jsx-runtime";import{jsx as j6}from"react/jsx-runtime";import{Fragment as ZT,jsx as Kl,jsxs as Gf}from"react/jsx-runtime";var Cp="k-menu-item",VT=[l.hover,l.focus,l.active,l.selected,l.disabled],XT={},Kf={iconPosition:"before"},Ve=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=Kf.iconPosition,dir:A,children:N,...S}=e,B=Kl(ZT,{});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"),Gf("li",{...S,className:o(e.className,Cp,"k-item",x(Cp,{focus:a,disabled:i,hover:t,active:r,selected:s}),{"k-first":m,"k-last":k}),children:[Gf("span",{className:o("k-link k-menu-link"),children:[d&&g==="before"&&Kl(y,{className:"k-menu-link-icon",icon:d}),Kl("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&Kl(y,{className:"k-menu-link-icon",icon:d}),v&&Kl("span",{className:"k-menu-expand-arrow",children:Kl(y,{icon:L})})]}),B]})};Ve.states=VT;Ve.options=XT;Ve.className=Cp;Ve.defaultOptions=Kf;import{Fragment as UT,jsx as Dl,jsxs as Df}from"react/jsx-runtime";var Sp="k-menu-item",JT=[l.hover,l.focus,l.active,l.selected,l.disabled],jT={},Ip={dir:"ltr",iconPosition:"before"},Wt=e=>{let{hover:t,focus:a,active:r,selected:s,disabled:i,icon:d,text:p,first:m,last:k,showArrow:v,arrowIconName:T,iconPosition:g=Ip.iconPosition,dir:A=Ip.dir,children:N,popup:S,...B}=e,L=Dl(UT,{});N&&N.forEach(D=>{if(D.type==="MenuListItemContent"){L.props.children.push(D);return}});let E=T;return E||(E=A==="rtl"?"caret-alt-left":"caret-alt-right"),Df("li",{...B,className:o(e.className,Sp,"k-item",x(Sp,{focus:a,disabled:i}),{"k-first":m,"k-last":k}),children:[Df("span",{className:o("k-link k-menu-link",x("k-menu-link",{hover:t,active:r,selected:s,disabled:i})),children:[d&&g==="before"&&Dl(y,{className:"k-menu-link-icon",icon:d}),Dl("span",{className:"k-menu-link-text",children:p}),d&&g==="after"&&Dl(y,{className:"k-menu-link-icon",icon:d}),v&&Dl("span",{className:"k-menu-expand-arrow",children:Dl(y,{icon:E})})]}),L,S]})};Wt.states=JT;Wt.options=jT;Wt.className=Sp;Wt.defaultOptions=Ip;import{jsx as eA}from"react/jsx-runtime";var Ff="k-menu-scroll-wrapper",qT=[],_T={},$T={},Ls=e=>{let{className:t,children:a,orientation:r,...s}=e;return eA("div",{...s,className:o(t,Ff,{"k-menu-scroll-wrapper-vertical":r==="vertical"}),children:a})};Ls.states=qT;Ls.options=_T;Ls.className=Ff;Ls.defaultOptions=$T;var Rf=Ls;import{Fragment as Bp,jsx as Da,jsxs as Wn}from"react/jsx-runtime";var Mp="k-menu",tA=[],oA={},Qn={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},Qt=e=>{let{children:t,orientation:a=Qn.orientation,header:r=Qn.header,scrollable:s,scrollButtonsPosition:i=Qn.scrollButtonsPosition,wrapperStyles:d,dir:p,popup:m,...k}=e,v={horizontal:{prev:p!=="rtl"?"left":"right",next:p!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},T=Da("ul",{dir:p,...k,className:o(e.className,"k-reset",Mp,{[`${Mp}-${a}`]:a,"k-header":r}),children:t});return Wn(Bp,{children:[s?Wn(Rf,{orientation:a,style:d,dir:e.dir,children:[i==="start"&&Wn(Bp,{children:[Da(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Da(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"&&Da(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),T,i==="end"&&Wn(Bp,{children:[Da(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev"}),Da(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"&&Da(c,{fillMode:"flat",rounded:null,size:"medium",icon:`caret-alt-${v[a].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next"})]}):T,m]})};Qt.states=tA;Qt.options=oA;Qt.className=Mp;Qt.defaultOptions=Qn;import{jsx as aA}from"react/jsx-runtime";var Lp="k-separator",zf={orientation:"horizontal"},Es=e=>{let{orientation:t=zf.orientation,...a}=e;return aA("li",{...a,className:o(e.className,"k-item",Lp,{[`${Lp}-${t}`]:t})})};Es.className=Lp;Es.defaultOptions=zf;import{Fragment as x3,jsx as b3}from"react/jsx-runtime";import{jsx as Hf}from"react/jsx-runtime";import{createElement as sA}from"react";var Ep="k-menu-group",lA=[],rA={size:[n.small,n.medium,n.large]},Yp={size:n.medium,dir:"ltr"},Ao=e=>{let{children:t,size:a=Yp.size,dir:r=Yp.dir,...s}=e,i=[];return t&&Array.isArray(t)&&t.map((d,p)=>{d.type===Wt?i.push(sA(Wt,{...d.props,dir:r,key:p})):d.type===Es?i.push(Hf(Es,{})):i.push(d)}),Hf("ul",{...s,className:o(e.className,Ep,C(Ep,{size:a})),children:i})};Ao.states=lA;Ao.options=rA;Ao.className=Ep;Ao.defaultOptions=Yp;import{Fragment as B3,jsx as I3,jsxs as M3}from"react/jsx-runtime";import{Fragment as D3,jsx as G3,jsxs as K3}from"react/jsx-runtime";import{Fragment as O3,jsx as H3,jsxs as W3}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{jsx as bX,jsxs as vX}from"react/jsx-runtime";import{Fragment as dA,jsx as Pp,jsxs as Of}from"react/jsx-runtime";var Gp="k-split-button",iA=[l.hover,l.focus,l.active,l.selected,l.disabled],nA={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]},Fl={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,arrowIconName:"caret-alt-down"},Ce=e=>{let{size:t=Fl.size,rounded:a=Fl.rounded,fillMode:r=Fl.fillMode,themeColor:s=Fl.themeColor,hover:i,focus:d,active:p,selected:m,disabled:k,icon:v,text:T,arrowIconName:g=Fl.arrowIconName,popup:A,opened:N,...S}=e;return Of(dA,{children:[Of("div",{...S,className:o(e.className,Gp,"k-button-group",C(Gp,{rounded:a})),children:[Pp(c,{text:T,icon:v,size:t,rounded:a,fillMode:r,themeColor:s,hover:i,focus:d,active:p,selected:m,disabled:k,children:e.children}),Pp(c,{className:"k-split-button-arrow",icon:g,size:t,rounded:a,fillMode:r,disabled:k})]}),N&&A&&Pp(F,{className:"k-menu-popup",children:A})]})};Ce.states=iA;Ce.options=nA;Ce.className=Gp;Ce.defaultOptions=Fl;var Kp=Ce;import{jsx as GX}from"react/jsx-runtime";import{jsx as RX}from"react/jsx-runtime";import{jsx as WX}from"react/jsx-runtime";import{jsx as JX,jsxs as jX}from"react/jsx-runtime";import{jsx as cA}from"react/jsx-runtime";var Wf="k-speech-to-text-button",Qf={icon:"microphone-outline"},Ct=e=>{let{listening:t=!1,icon:a=Qf.icon,...r}=e;return cA(c,{...r,icon:t?"stop-sm":a,className:o(e.className,Wf,{"k-listening":t})})};Ct.states=c.states;Ct.options=c.options;Ct.className=Wf;Ct