UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 66.3 kB
var a=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?a(...e):typeof e=="object"?Object.keys(e).map((o,r)=>e[r]||e[o]&&o||null).filter(o=>o!==null).join(" "):e).filter(e=>!!e).join(" ");var S=(t,e)=>a({[`${t}-xs`]:e.size==="xsmall",[`${t}-sm`]:e.size==="small",[`${t}-md`]:e.size==="medium",[`${t}-lg`]:e.size==="large",[`${t}-xl`]:e.size==="xlarge",[`${t}-xxl`]:e.size==="xxlarge",[`${t}-xxxl`]:e.size==="xxxlarge"},{[`${t}-${e.fillMode}`]:e.fillMode},{[`${t}-${e.fillMode}-${e.themeColor}`]:e.fillMode&&e.themeColor},{[`${t}-${e.themeColor}`]:e.themeColor&&e.fillMode===void 0},{"k-rounded-sm":e.rounded==="small","k-rounded-md":e.rounded==="medium","k-rounded-lg":e.rounded==="large","k-rounded-full":e.rounded==="full"}),I=(t,e)=>a({"k-valid":e.valid,"k-invalid":e.invalid,"k-hover":e.hover,"k-focus":e.focus,"k-checked":e.checked,"k-active":e.active,"k-selected":e.selected,"k-disabled":e.disabled,"k-indeterminate":e.indeterminate&&!e.checked,"k-loading":e.loading,"k-empty":e.empty,"k-readonly":e.readonly,"k-highlighted":e.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},b={small:"small",medium:"medium",large:"large",full:"full"},d={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},m={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},s={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"};import{jsx as Ca}from"react/jsx-runtime";var to="k-editor-content",ya=[s.focus],ze=t=>{let{focus:e,...o}=t;return Ca("div",{...o,className:a(t.className,to,I(to,{focus:e})),children:t.children})};ze.states=ya;ze.className=to;import{Fragment as za,jsx as ss}from"react/jsx-runtime";var eo="k-icon k-font-icon",Ba=[],Ta={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Aa={},pe=t=>{let{size:e,themeColor:o,icon:r,rotate:l,flip:p,...i}=t;return r?ss("span",{...i,className:a(t.className,eo,S(eo,{size:e}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${l}`]:l,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):ss(za,{})};pe.states=Ba;pe.options=Ta;pe.className=eo;pe.defaultOptions=Aa;var as=pe;import{Fragment as Pa,jsx as Ee}from"react/jsx-runtime";var oo="k-icon k-svg-icon",Ea=[],wa={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},ns={viewBox:"0 0 24 24"},ce=t=>{let{size:e,themeColor:o,rotate:r,flip:l,viewBox:p=ns.viewBox,icon:i,...u}=t;if(!i)return Ee(Pa,{});i==="none"&&{...u,className:a(t.className,oo,"k-none")};let x=typeof i=="object"&&i.name&&i.name;return Ee("span",{...u,className:a(t.className,oo,S("k-icon",{size:e}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),children:Ee("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:p,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:t.children})})};ce.states=Ea;ce.options=wa;ce.className=oo;ce.defaultOptions=ns;var so=ce;import*as rs from"@progress/kendo-svg-icons";import{Fragment as is,jsx as de}from"react/jsx-runtime";var Oa=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),Ka=[],Ra={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},ao={viewBox:"0 0 24 24",type:"svg"},M=t=>{let{size:e,themeColor:o,icon:r,type:l=ao.type,rotate:p,flip:i,viewBox:u=ao.viewBox,...x}=t;if(!r)return de(is,{});if(l==="svg"){if(r==="none")return de(so,{...x,icon:r,size:e});let h=Oa(`${r}-icon`);return rs[h]?de(so,{...x,icon:rs[h],size:e,themeColor:o,rotate:p,flip:i,viewBox:u}):de(is,{})}return de(as,{...x,icon:r,size:e,themeColor:o,rotate:p,flip:i})};M.states=Ka;M.options=Ra;M.defaultOptions=ao;import{Fragment as $a,jsx as me,jsxs as ls}from"react/jsx-runtime";var we="k-button",Ha=[s.hover,s.focus,s.active,s.selected,s.disabled],Ga={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark,m.inverse]},zt={size:n.medium,rounded:b.medium,fillMode:d.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},f=t=>{let{size:e=zt.size,rounded:o=zt.rounded,fillMode:r=zt.fillMode,themeColor:l=zt.themeColor,showArrow:p=zt.showArrow,arrowIconName:i=zt.arrowIconName,hover:u,focus:x,active:h,selected:N,disabled:L,icon:c,text:k,iconClassName:v,...g}=t,C=c!==void 0,B=t.children!==void 0;return ls("button",{...g,className:a(t.className,we,S(we,{size:e,rounded:o,fillMode:r,themeColor:l}),I(we,{hover:u,focus:x,active:h,disabled:L,selected:N}),{"k-icon-button":!k&&!B&&C}),children:[c&&me(M,{className:a(v,"k-button-icon"),icon:c}),k?ls($a,{children:[k&&me("span",{className:"k-button-text",children:k}),t.children]}):t.children&&me("span",{className:"k-button-text",children:t.children}),p&&me("span",{className:"k-menu-button-arrow k-button-arrow",children:me(M,{icon:i})})]})};f.states=Ha;f.options=Ga;f.className=we;f.defaultOptions=zt;import{jsx as Da}from"react/jsx-runtime";var Pe=t=>Da(f,{icon:"folder",...t,children:void 0});import{jsx as Va}from"react/jsx-runtime";var no=t=>Va(f,{icon:"folder",children:"Button",...t});import{jsx as Ol}from"react/jsx-runtime";import{jsx as Ja}from"react/jsx-runtime";var ue="k-button-group",_a=[s.disabled],Xa={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},ps={fillMode:d.solid},z=t=>{let{fillMode:e=ps.fillMode,disabled:o,stretched:r,...l}=t;return Ja("div",{...l,className:a(t.className,ue,S(ue,{fillMode:e}),I(ue,{disabled:o}),{[`${ue}-stretched`]:r}),children:t.children})};z.states=_a;z.options=Xa;z.className=ue;z.defaultOptions=ps;import{Fragment as Wl,jsx as ql,jsxs as Ql}from"react/jsx-runtime";import{Fragment as op,jsx as ep,jsxs as sp}from"react/jsx-runtime";import{Fragment as pp,jsx as lp,jsxs as cp}from"react/jsx-runtime";import{Fragment as xp,jsx as bp,jsxs as hp}from"react/jsx-runtime";import{jsx as qa}from"react/jsx-runtime";var Oe="k-input",Fa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ua={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},Ke={size:n.medium,rounded:n.medium,fillMode:d.solid},E=t=>{let{hover:e,focus:o,disabled:r,invalid:l,valid:p,loading:i,readonly:u,size:x=Ke.size,rounded:h=Ke.rounded,fillMode:N=Ke.fillMode,...L}=t;return qa("span",{...L,className:a(t.className,Oe,S(Oe,{size:x,rounded:h,fillMode:N}),I(Oe,{hover:e,focus:o,disabled:r,invalid:l,valid:p,loading:i,readonly:u}))})};E.states=Fa;E.options=Ua;E.className=Oe;E.defaultOptions=Ke;import{jsx as Ya}from"react/jsx-runtime";var Re="k-picker",Wa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Qa={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},He={size:n.medium,rounded:b.medium,fillMode:d.solid},Z=t=>{let{hover:e,focus:o,disabled:r,invalid:l,valid:p,loading:i,readonly:u,size:x=He.size,rounded:h=He.rounded,fillMode:N=He.fillMode,...L}=t;return Ya("span",{...L,className:a(t.className,Re,S(Re,{size:x,rounded:h,fillMode:N}),I(Re,{hover:e,focus:o,disabled:r,invalid:l,valid:p,loading:i,readonly:u})),children:t.children})};Z.states=Wa;Z.options=Qa;Z.className=Re;Z.defaultOptions=He;import{Fragment as tn,jsx as ro}from"react/jsx-runtime";var cs="k-clear-value",Za=[s.disabled,s.loading,s.readonly],ja={},j=t=>{let{disabled:e,loading:o,readonly:r,value:l}=t;return e||r||o||!l?ro(tn,{}):ro("span",{className:a(t.className,cs),children:ro(M,{icon:"x"})})};j.states=Za;j.options=ja;j.className=cs;import{jsx as sn}from"react/jsx-runtime";var io="k-input-inner",en=[],on={},Ge={type:"text",autocomplete:"off",value:"",placeholder:""},tt=t=>{let{value:e=Ge.value,type:o=Ge.type,placeholder:r=Ge.placeholder,autocomplete:l=Ge.autocomplete,...p}=t;return sn("input",{...p,type:o,className:a(t.className,io,S(io,t)),placeholder:r,autoComplete:l,defaultValue:e})};tt.states=en;tt.options=on;tt.className=io;import{jsx as ds,jsxs as rn}from"react/jsx-runtime";var lo="k-input-inner",an=[],nn={},Et=t=>{let{value:e,placeholder:o,showValue:r,valueIcon:l,valueIconName:p,...i}=t;return rn("span",{...i,className:a(t.className,lo,S(lo,t)),children:[l,!l&&p&&ds(M,{className:"k-input-value-icon",icon:p}),r&&!e&&o,r&&e&&ds("span",{className:"k-input-value-text",children:e})]})};Et.states=an;Et.options=nn;Et.className=lo;import{jsx as cn}from"react/jsx-runtime";var po="k-input-inner",ln=[],pn={},ms={value:"",placeholder:""},co=t=>{let{value:e=ms.value,placeholder:o=ms.placeholder,rows:r,...l}=t;return cn("textarea",{...l,className:a(t.className,po,S(po,t)),placeholder:o,rows:r,defaultValue:e})};co.states=ln;co.options=pn;co.className=po;import{Fragment as mn,jsx as us}from"react/jsx-runtime";var fs="k-input-loading-icon",dn=[s.disabled,s.loading],J=t=>{let{disabled:e,loading:o}=t;return e||!o?us(mn,{}):us("span",{className:a(t.className,fs,"k-icon k-i-loading")})};J.states=dn;J.className=fs;import{Fragment as bn,jsx as bs}from"react/jsx-runtime";var xs="k-input-validation-icon",un=[s.valid,s.invalid,s.disabled,s.loading],fn={},X=t=>{let{valid:e,invalid:o,disabled:r,loading:l}=t,p=o?"warning-circle":"check-circle";return r||l||!!!(e||o)?bs(bn,{}):bs(M,{className:a(xs),icon:p})};X.states=un;X.options=fn;X.className=xs;import{Fragment as Nn,jsx as hs}from"react/jsx-runtime";var xn="k-input-prefix",hn={direction:"horizontal"},at=t=>{let{direction:e=hn.direction,...o}=t;return t.children?hs("span",{...o,className:a(xn,t.className,{[`k-input-prefix-${e}`]:e}),children:t.children}):hs(Nn,{})};import{Fragment as Ln,jsx as Ns}from"react/jsx-runtime";var kn="k-input-suffix",vn={direction:"horizontal"},nt=t=>{let{direction:e=vn.direction,...o}=t;return t.children?Ns("span",{...o,className:a(kn,t.className,{[`k-input-suffix-${e}`]:e}),children:t.children}):Ns(Ln,{})};import{jsx as rc}from"react/jsx-runtime";import{jsx as cc}from"react/jsx-runtime";import{jsx as Sn}from"react/jsx-runtime";var ks="k-input-separator",gn={direction:"vertical"},lt=t=>{let{direction:e=gn.direction,...o}=t;return Sn("span",{...o,className:a(ks,t.className,{[`${ks}-${e}`]:e})})};import{jsx as vs,jsxs as yn}from"react/jsx-runtime";var Ls="k-color-preview",In=[],Mn={},xt=t=>{let{color:e,iconName:o,...r}=t;return yn("span",{...r,className:a(t.className,Ls,{"k-icon-color-preview":o,"k-no-color":!e}),children:[o&&vs(M,{icon:o,className:"k-color-preview-icon"}),vs("span",{className:"k-color-preview-mask",style:{backgroundColor:e}})]})};xt.states=In;xt.options=Mn;xt.className=Ls;import{jsx as gs}from"react/jsx-runtime";var Ss="k-animation-container",Cn=[],Bn={},Is={positionMode:"absolute"},ht=t=>{let{positionMode:e=Is.positionMode,animationStyle:o,offset:r,...l}=t;return gs("div",{...l,style:{...r,...t.style},className:a(t.className,Ss,"k-animation-container-shown",{"k-animation-container-fixed":e==="fixed"}),children:gs("div",{className:"k-child-animation-container",style:o,children:t.children})})};ht.states=Cn;ht.options=Bn;ht.className=Ss;ht.defaultOptions=Is;import{jsx as Ms}from"react/jsx-runtime";var ys="k-popup",Tn=[],An={},Cs={positionMode:"absolute"},H=t=>{let{offset:e,positionMode:o=Cs.positionMode,animationStyle:r,...l}=t;return Ms(ht,{positionMode:o,offset:e,animationStyle:r,children:Ms("div",{...l,className:a(t.className,ys),children:t.children})})};H.states=Tn;H.options=An;H.className=ys;H.defaultOptions=Cs;import{jsx as wn}from"react/jsx-runtime";var $e="k-actions",zn=[],En={},mo={alignment:"start",orientation:"horizontal"},Nt=t=>{let{alignment:e=mo.alignment,orientation:o=mo.orientation,...r}=t;return wn("div",{...r,className:a($e,{[`${$e}-${e}`]:e,[`${$e}-${o}`]:o},t.className),children:t.children})};Nt.states=zn;Nt.options=En;Nt.className=$e;Nt.defaultOptions=mo;import{jsx as On}from"react/jsx-runtime";var Pn="k-actionsheet-footer",Bs={alignment:"stretched",orientation:"horizontal"},fe=t=>{let{alignment:e=Bs.alignment,orientation:o=Bs.orientation,template:r,as:l=r?"div":Nt,...p}=t;return On(l,{...p,...!r&&{alignment:e,orientation:o},className:a(t.className,Pn),children:t.children})};import{jsx as be,jsxs as Hn}from"react/jsx-runtime";var Ts="k-searchbox",Kn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Rn={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},uo={showIcon:!0,icon:"search",size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},pt=t=>{let{value:e,placeholder:o,size:r,rounded:l,fillMode:p,hover:i,focus:u,valid:x,invalid:h,required:N,loading:L,disabled:c,showIcon:k=uo.showIcon,icon:v=uo.icon,...g}=t;return Hn(E,{...g,size:r,rounded:l,fillMode:p,hover:i,focus:u,valid:x,invalid:h,required:N,loading:L,disabled:c,className:a(t.className,Ts),children:[k&&be(M,{className:"k-input-icon",icon:v}),be(tt,{placeholder:o,value:e}),be(J,{...t}),be(X,{...t}),be(j,{...t})]})};pt.states=Kn;pt.options=Rn;pt.className=Ts;pt.defaultOptions=uo;import{jsx as pd}from"react/jsx-runtime";import{Fragment as As,jsx as kt,jsxs as fo}from"react/jsx-runtime";var zs="k-textbox",Gn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],$n={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},wt={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},vt=t=>{let{size:e=wt.size,rounded:o=wt.rounded,fillMode:r=wt.fillMode,separators:l=wt.separators,showClearButton:p=wt.showClearButton,showValidationIcon:i=wt.showValidationIcon,prefix:u,suffix:x,type:h,value:N,placeholder:L,hover:c,focus:k,valid:v,invalid:g,required:C,loading:B,disabled:w,readonly:D,...bt}=t;return fo(E,{...bt,size:e,rounded:o,fillMode:r,hover:c,focus:k,valid:v,invalid:g,required:C,loading:B,disabled:w,readonly:D,className:a(t.className,zs),children:[u&&fo(As,{children:[kt(at,{children:u}),l&&kt(lt,{})]}),kt(tt,{placeholder:L,value:N,type:h}),i&&kt(X,{valid:v,invalid:g,loading:B,disabled:w}),kt(J,{loading:B,disabled:w}),p&&kt(j,{loading:B,disabled:w,readonly:D,value:N}),x&&fo(As,{children:[l&&kt(lt,{}),kt(nt,{children:x})]})]})};vt.states=Gn;vt.options=$n;vt.className=zs;vt.defaultOptions=wt;import{jsx as vd}from"react/jsx-runtime";import{Fragment as yd,jsx as Md}from"react/jsx-runtime";import{Fragment as wd,jsx as Ed}from"react/jsx-runtime";import{jsx as Lt,jsxs as bo}from"react/jsx-runtime";var ws="k-actionsheet-titlebar",Dn={},F=t=>{let{title:e,subtitle:o,actionsStart:r,actionsEnd:l,filter:p,input:i,inputValue:u,inputPlaceholder:x,adaptive:h,children:N,...L}=t;return bo("div",{...L,className:a(t.className,ws),children:[bo("div",{className:"k-actionsheet-titlebar-group",children:[r&&Lt("div",{className:"k-actionsheet-actions",children:r}),!N&&bo("div",{className:"k-actionsheet-title",children:[e&&Lt("div",{className:"k-text-center",children:e}),o&&Lt("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&Lt("div",{className:"k-actionsheet-title",children:N}),l&&Lt("div",{className:"k-actionsheet-actions",children:l})]}),(i||p)&&Lt("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?Lt(vt,{value:u,placeholder:x,size:h?"large":"medium"}):Lt(pt,{placeholder:"Filter",size:h?"large":"medium"})})]})};F.className=ws;F.defaultOptions=Dn;import{jsx as xo,jsxs as Jn}from"react/jsx-runtime";var ho="k-actionsheet-view",Vn=[],_n={},Xn={},Xt=t=>{let{adaptive:e,animated:o,children:r,header:l,footer:p,...i}=t,u=l?.type===F&&xo(F,{adaptive:e,...l?.props}),x=p?.type===fe&&xo(fe,{...p?.props});return Jn("div",{...i,className:a(t.className,ho,{[`${ho}-animated`]:o}),children:[u,xo("div",{className:"k-actionsheet-content",children:r}),x]})};Xt.states=Vn;Xt.options=_n;Xt.className=ho;Xt.defaultOptions=Xn;import{jsx as De,jsxs as qn}from"react/jsx-runtime";var Ps="k-actionsheet",Fn=[],Un={},xe={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},et=t=>{let{side:e=xe.side,fullscreen:o=xe.fullscreen,adaptive:r=xe.adaptive,overlay:l=xe.overlay,template:p,children:i,header:u,footer:x,...h}=t;return qn("div",{className:"k-actionsheet-container",children:[l&&De("div",{className:"k-overlay"}),De(ht,{animationStyle:{[`${o===!0?"top":e}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${e==="top"||e==="bottom"?"width":null}`]:"100%",[`${e==="left"||e==="right"?"height":null}`]:"100%"},children:De("div",{...h,className:a(t.className,Ps,{[`k-actionsheet-${e}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:p||De(Xt,{header:u,footer:x,adaptive:r,...t,children:i})})})]})};et.states=Fn;et.options=Un;et.className=Ps;et.defaultOptions=xe;import{jsx as sm}from"react/jsx-runtime";import{Fragment as Qn,jsx as he,jsxs as No}from"react/jsx-runtime";var ko="k-actionsheet-item",Wn=[s.hover,s.focus,s.selected,s.disabled],vo=t=>{let{iconName:e,text:o,description:r,hover:l,focus:p,selected:i,disabled:u,...x}=t;return No("span",{...x,className:a(t.className,ko,I(ko,{hover:l,focus:p,selected:i,disabled:u})),children:[!t.children&&he(Qn,{children:No("span",{className:"k-actionsheet-action",children:[e&&he("span",{className:"k-icon-wrap",children:he(M,{className:"k-actionsheet-item-icon",icon:e})}),No("span",{className:"k-actionsheet-item-text",children:[o&&he("span",{className:"k-actionsheet-item-title",children:o}),r&&he("span",{className:"k-actionsheet-item-description",children:r})]})]})}),t.children]})};vo.states=Wn;vo.className=ko;import{jsx as mm,jsxs as um}from"react/jsx-runtime";import{jsx as hm}from"react/jsx-runtime";import{jsx as Lm}from"react/jsx-runtime";import{jsx as Mm}from"react/jsx-runtime";import{jsx as Jt,jsxs as Lo}from"react/jsx-runtime";var Ne="k-slider",Yn=[s.hover,s.focus,s.active,s.disabled,s.readonly],Zn={},gt={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},U=t=>{let{type:e=gt.type,orientation:o=gt.orientation,readonly:r=gt.readonly,disabled:l=gt.disabled,handlePosition:p=gt.handlePosition,showButtons:i=gt.showButtons,showTicks:u=gt.showTicks,hover:x,focus:h,active:N,trackStyle:L,dir:c,...k}=t,v,g;return o==="horizontal"?(v=c==="rtl"?"caret-alt-left":"caret-alt-right",g=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(v="caret-alt-up",g="caret-alt-down"),Lo("div",{...k,className:a(Ne,t.className,I(Ne,{readonly:r,disabled:l}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":e==="gradient"}),dir:c,children:[i&&Jt(f,{className:"k-button-decrease",rounded:"full",icon:g}),Lo("div",{className:"k-slider-track-wrap",children:[u&&Jt("ul",{className:"k-reset k-slider-items",children:t.children}),Lo("div",{className:"k-slider-track",style:L,children:[Jt("div",{className:"k-slider-selection"}),e==="range"&&Jt("span",{className:a("k-draghandle","k-draghandle-start",I(Ne,{hover:x,focus:h,active:N}))}),Jt("span",{className:a("k-draghandle",`k-draghandle-${p}`,I(Ne,{hover:x,focus:h,active:N}))})]})]}),i&&Jt(f,{className:"k-button-increase",rounded:"full",icon:v})]})};U.states=Yn;U.options=Zn;U.className=Ne;U.defaultOptions=gt;import{jsx as Ks}from"react/jsx-runtime";var Rs="k-tick",jn=[],tr={},Hs={label:!1},St=t=>{let{style:e,label:o=Hs.label,orientation:r,large:l,text:p,...i}=t;return Ks("li",{...i,className:a(t.className,Rs,{[`k-tick-${r}`]:r,"k-tick-large":l}),style:e,children:o&&Ks("span",{className:"k-label",children:p})})};St.states=jn;St.options=tr;St.className=Rs;St.defaultOptions=Hs;import{Fragment as qm,jsx as Um,jsxs as Wm}from"react/jsx-runtime";import{Fragment as tu,jsx as jm,jsxs as eu}from"react/jsx-runtime";import{Fragment as ru,jsx as nu,jsxs as iu}from"react/jsx-runtime";import{Fragment as mu,jsx as du,jsxs as uu}from"react/jsx-runtime";import{jsx as er}from"react/jsx-runtime";var go=t=>er(U,{type:"gradient",showButtons:!1,showTicks:!1,...t});import{jsx as or}from"react/jsx-runtime";var So=t=>or(U,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...t});import{jsx as Gs,jsxs as nr}from"react/jsx-runtime";var $s="k-spin-button",sr=[],ar={size:[n.small,n.medium,n.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Io={size:n.medium,fillMode:d.solid},Ft=t=>{let{size:e=Io.size,fillMode:o=Io.fillMode,...r}=t;return nr("span",{...r,className:a($s,t.className),children:[Gs(f,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:e,fillMode:o}),Gs(f,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:e,fillMode:o})]})};Ft.states=sr;Ft.options=ar;Ft.className=$s;Ft.defaultOptions=Io;import{Fragment as Ds,jsx as ct,jsxs as Mo}from"react/jsx-runtime";var Vs="k-numerictextbox",rr=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],ir={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},Pt={showSpinButton:!0,showClearButton:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},K=t=>{let{size:e=Pt.size,rounded:o=Pt.rounded,fillMode:r=Pt.fillMode,separators:l=Pt.separators,showClearButton:p=Pt.showClearButton,showSpinButton:i=Pt.showSpinButton,prefix:u,suffix:x,value:h,placeholder:N,hover:L,focus:c,valid:k,invalid:v,required:g,loading:C,disabled:B,readonly:w,...D}=t;return Mo(E,{...D,size:e,rounded:o,fillMode:r,hover:L,focus:c,valid:k,invalid:v,required:g,loading:C,disabled:B,readonly:w,className:a(t.className,Vs),children:[u&&Mo(Ds,{children:[ct(at,{children:u}),l&&ct(lt,{})]}),ct(tt,{placeholder:N,value:h}),ct(X,{valid:k,invalid:v,loading:C,disabled:B}),ct(J,{loading:C,disabled:B}),p&&ct(j,{loading:C,disabled:B,readonly:w,value:h}),x&&Mo(Ds,{children:[l&&ct(lt,{}),ct(nt,{children:x})]}),i&&ct(Ft,{className:"k-input-spinner",size:e,fillMode:r})]})};K.states=rr;K.options=ir;K.className=Vs;K.defaultOptions=Pt;import{jsx as _u}from"react/jsx-runtime";import{jsx as pr}from"react/jsx-runtime";var lr="k-no-data",ke=t=>pr("span",{className:a(lr,t.className),children:t.children});import{jsx as Ut,jsxs as Xs}from"react/jsx-runtime";var yo="k-list",cr=[],dr={size:[n.small,n.medium,n.large]},Js={size:n.medium},P=t=>{let{size:e=Js.size,virtualization:o,children:r,optionLabel:l,customValue:p,screenReaders:i,...u}=t,x,h,N,L,c=[];return r?r.map((k,v)=>{k.type===G?(k.props.root===!0?(x=k.props.label,k.props.children.map((g,C)=>{c.push(Ut(y,{...g.props},`optChild-${C}-${new Date().getTime()}`))})):k.props.children.forEach((g,C)=>{let B="";C===0&&(B=k.props.label),c.push(Ut(y,{className:C===0?"k-first":"",...g.props,groupLabel:B},`groupLabel-${C}-${new Date().getTime()}`))}),h=Ut(G,{label:x,virtualization:o,children:c})):k.type===y&&(c.push(Ut(y,{...k.props},`${k.type}-${v}`)),N=Ut(qt,{virtualization:o,children:c}),i&&(L=Xs(ke,{className:"k-sr-only",children:[c.length," items found."]})))}):L=Ut(ke,{children:"No data found."}),Xs("div",{...u,className:a(t.className,yo,S(yo,{size:e}),{"k-virtual-list":o}),children:[l,p,h,N,L]})};P.states=cr;P.options=dr;P.className=yo;P.defaultOptions=Js;import{jsx as Ot,jsxs as fr}from"react/jsx-runtime";var Co="k-list",mr=[],ur={size:[n.small,n.medium,n.large]},Fs={size:n.medium},Kt=t=>{let{size:e=Fs.size,virtualization:o,children:r,...l}=t,p,i,u,x=[];return r?r.map((h,N)=>{h.type===G?(h.props.root===!0?(p=h.props.label,h.props.children.map((L,c)=>{x.push(Ot(y,{...L.props},`optChild-${c}-${new Date().getTime()}`))})):(x.push(Ot(Us,{...h.props,children:h.props.label},`listChild-${N}`)),h.props.children.map((L,c)=>{x.push(Ot(y,{...L.props},`fwOptChild-${c}-${new Date().getTime()}`))})),i=Ot(G,{label:p,virtualization:o,children:x})):h.type===y&&(x.push(Ot(y,{...h.props},`${h.type}-${N}`)),u=Ot(qt,{virtualization:o,children:x}))}):u=Ot(ke,{children:"No data found."}),fr("div",{...l,className:a(t.className,Co,S(Co,{size:e}),{"k-virtual-list":o}),children:[i,u]})};Kt.states=mr;Kt.options=ur;Kt.className=Co;Kt.defaultOptions=Fs;import{jsx as qs}from"react/jsx-runtime";var Ve="k-checkbox",br=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],xr={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full]},Bo={size:n.medium,rounded:b.medium},It=t=>{let{id:e,checked:o,indeterminate:r,hover:l,focus:p,disabled:i,invalid:u,valid:x,required:h,size:N=Bo.size,rounded:L=Bo.rounded,...c}=t;return qs("span",{className:"k-checkbox-wrap",children:qs("input",{...c,id:e,type:"checkbox",defaultChecked:o,required:h,className:a(t.className,Ve,S(Ve,{size:N,rounded:L}),I(Ve,{hover:l,focus:p,disabled:i,invalid:u,valid:x,indeterminate:r,checked:o}))})})};It.states=br;It.options=xr;It.className=Ve;It.defaultOptions=Bo;import{jsx as kr}from"react/jsx-runtime";var Ws="k-checkbox-list",hr=[],Nr={},Qs={layout:"vertical"},Wt=t=>{let{layout:e=Qs.layout,...o}=t;return kr("ul",{...o,className:a(t.className,Ws,{[`k-list-${e}`]:e}),children:t.children})};Wt.states=hr;Wt.options=Nr;Wt.className=Ws;Wt.defaultOptions=Qs;import{jsx as Sr}from"react/jsx-runtime";var Ys="k-checkbox-list-item",vr=[],Lr={},gr={},Qt=t=>{let{...e}=t;return Sr("li",{...e,className:a(t.className,Ys),children:t.children})};Qt.states=vr;Qt.options=Lr;Qt.className=Ys;Qt.defaultOptions=gr;import{Fragment as kf,jsx as Nf,jsxs as vf}from"react/jsx-runtime";import{Fragment as Mf,jsx as If,jsxs as yf}from"react/jsx-runtime";import{Fragment as zf,jsx as Af,jsxs as Ef}from"react/jsx-runtime";import{Fragment as Rf,jsx as Kf,jsxs as Hf}from"react/jsx-runtime";import{jsx as Vf}from"react/jsx-runtime";import{jsx as Ff}from"react/jsx-runtime";import{jsx as _e,jsxs as Cr}from"react/jsx-runtime";var Ao="k-list-item",Ir=[s.hover,s.focus,s.selected,s.disabled],Mr={},yr={},y=t=>{let{text:e,groupLabel:o,group:r,showIcon:l,iconName:p,showCheckbox:i,checked:u,hover:x,focus:h,selected:N,disabled:L,...c}=t,k=e||t.children;return Cr("li",{...c,className:a(t.className,r?"k-list-group-item":Ao,I(Ao,{hover:x,focus:h,disabled:L,selected:N})),children:[i&&_e(It,{checked:u}),l&&_e(M,{icon:p}),_e("span",{className:"k-list-item-text",children:k}),o&&o!==""&&_e("div",{className:"k-list-item-group-label",children:o})]})};y.states=Ir;y.options=Mr;y.className=Ao;y.defaultOptions=yr;import{jsx as zo,jsxs as Tr}from"react/jsx-runtime";var Br="k-list-content",qt=t=>{let{virtualization:e,...o}=t;return Tr("div",{...o,className:a(Br,t.className),children:[zo("ul",{className:a("k-list-ul"),children:t.children}),e&&zo("div",{className:"k-height-container",children:zo("div",{})})]})};import{jsx as Zs}from"react/jsx-runtime";var Ar="k-list-group-sticky-header",js=t=>Zs("div",{className:a(Ar,t.className),children:Zs("div",{className:"k-list-header-text",children:t.children})});import{Fragment as zr,jsx as ta,jsxs as Er}from"react/jsx-runtime";var G=t=>{let{virtualization:e,label:o}=t;return Er(zr,{children:[o&&ta(js,{children:o}),t.children&&ta(qt,{virtualization:e,children:t.children})]})};import{jsx as ea}from"react/jsx-runtime";var wr="k-list-group-item",Us=t=>ea("li",{className:a(wr,t.className),children:ea("span",{className:"k-list-item-text",children:t.children})});import{jsx as Rr}from"react/jsx-runtime";var Eo="k-list-optionlabel",Pr=[s.hover,s.focus,s.selected,s.disabled],Or={},Kr={},Xe=t=>{let{text:e,hover:o,focus:r,selected:l,disabled:p,...i}=t;return Rr("div",{...i,className:a(Eo,I(Eo,{hover:o,focus:r,selected:l,disabled:p})),children:e})};Xe.states=Pr;Xe.options=Or;Xe.className=Eo;Xe.defaultOptions=Kr;import{jsx as Dr}from"react/jsx-runtime";var wo="k-list-custom-value",Hr=[s.hover,s.focus,s.selected,s.disabled],Gr={},$r={},Mt=t=>{let{text:e,hover:o,focus:r,selected:l,disabled:p,...i}=t;return Dr("div",{...i,className:a(wo,I(wo,{hover:o,focus:r,selected:l,disabled:p})),children:e})};Mt.states=Hr;Mt.options=Gr;Mt.className=wo;Mt.defaultOptions=$r;import{jsx as Tb}from"react/jsx-runtime";import{jsx as wb}from"react/jsx-runtime";import{jsx as Rb,jsxs as Hb}from"react/jsx-runtime";import{jsx as Vb,jsxs as _b}from"react/jsx-runtime";import{jsx as Ub}from"react/jsx-runtime";import{jsx as Yb,jsxs as Zb}from"react/jsx-runtime";import{jsx as ox,jsxs as sx}from"react/jsx-runtime";import{Fragment as Xr,jsx as V,jsxs as Po}from"react/jsx-runtime";var oa="k-dropdownlist",Vr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],_r={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},Yt={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:b.medium,fillMode:d.solid},yt=t=>{let{size:e=Yt.size,rounded:o=Yt.rounded,fillMode:r=Yt.fillMode,arrowIconName:l=Yt.arrowIconName,showValue:p=Yt.showValue,valueIconName:i,prefix:u,suffix:x,value:h,placeholder:N,hover:L,focus:c,valid:k,invalid:v,required:g,loading:C,disabled:B,readonly:w,popup:D,opened:bt,adaptive:ie,adaptiveSettings:le,adaptiveTitle:Ze,adaptiveSubtitle:je,adaptiveFilter:Ia,...Ma}=t;return Po(Xr,{children:[Po(Z,{...Ma,size:e,rounded:o,fillMode:r,hover:L,focus:c,valid:k,invalid:v,required:g,loading:C,disabled:B,readonly:w,className:a(t.className,oa,{"k-icon-picker":!p&&i}),children:[V(at,{children:u}),V(Et,{placeholder:N,value:h,showValue:p,valueIconName:i}),V(X,{valid:k,invalid:v,loading:C,disabled:B}),V(J,{loading:C,disabled:B}),V(nt,{children:x}),V(f,{className:"k-input-button",icon:l,rounded:null,size:t.size,fillMode:t.fillMode})]}),bt&&D&&V(H,{className:"k-list-container k-dropdownlist-popup",children:D}),ie&&V(et,{adaptive:!0,...le,header:V(F,{actionsEnd:V(f,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ia,inputValue:h,inputPlaceholder:N,title:Ze,subtitle:je}),children:V("div",{className:"k-list-container",children:Po(P,{size:"large",children:[V(y,{text:"List item"}),V(y,{text:"List item"}),V(y,{text:"List item"})]})})})]})};yt.states=Vr;yt.options=_r;yt.className=oa;yt.defaultOptions=Yt;import{jsx as wx}from"react/jsx-runtime";import{jsx as Hx,jsxs as Gx}from"react/jsx-runtime";import{Fragment as Ux,jsx as Jx,jsxs as Fx}from"react/jsx-runtime";import{jsx as Yx}from"react/jsx-runtime";import{jsx as oh,jsxs as sh}from"react/jsx-runtime";import{jsx as lh,jsxs as ph}from"react/jsx-runtime";import{Fragment as hh,jsx as bh,jsxs as xh}from"react/jsx-runtime";import{Fragment as Mh,jsx as Sh,jsxs as Ih}from"react/jsx-runtime";import{Fragment as Dh,jsx as $h}from"react/jsx-runtime";import{Fragment as qh,jsx as Uh}from"react/jsx-runtime";import{Fragment as ve,jsx as T,jsxs as O}from"react/jsx-runtime";var sa="k-colorgradient-inputs",Jr=[],Fr={size:[n.small,n.medium,n.large]},aa={mode:"rgba",size:n.medium},Zt=t=>{let{mode:e=aa.mode,size:o,...r}=t;return O("div",{...r,className:a(sa,"k-hstack"),children:[T("div",{className:"k-vstack",children:T(f,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),e==="rgba"&&O(ve,{children:[O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"B"})]}),O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),T("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),e==="rgb"&&O(ve,{children:[O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),e==="hsva"&&O(ve,{children:[O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"V"})]}),O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),T("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),e==="hsv"&&O(ve,{children:[O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[T(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),e==="hex"&&T(ve,{children:O("div",{className:"k-vstack k-flex-1",children:[T(vt,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),T("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Zt.states=Jr;Zt.options=Fr;Zt.className=sa;Zt.defaultOptions=aa;import{jsx as Ht,jsxs as Gt}from"react/jsx-runtime";var na="k-colorgradient-color-contrast",Ur=[],qr={},Wr={},jt=()=>Gt("div",{className:a(na,"k-vbox"),children:[Gt("div",{className:"k-contrast-ratio",children:[Ht("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Gt("span",{className:"k-contrast-validation !k-text-success",children:[Ht(M,{icon:"check"}),Ht(M,{icon:"check"})]})]}),Gt("div",{children:[Ht("span",{children:"AA: 4.5"}),Gt("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ht(M,{icon:"check"})]})]}),Gt("div",{children:[Ht("span",{children:"AAA: 7.0"}),Gt("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ht(M,{icon:"x"})]})]})]});jt.states=Ur;jt.options=qr;jt.className=na;jt.defaultOptions=Wr;import{jsx as q,jsxs as Le}from"react/jsx-runtime";var Je="k-colorgradient",Qr=[s.hover,s.focus,s.readonly,s.disabled],Yr={size:[n.small,n.medium,n.large]},ot={size:n.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},Ct=t=>{let{size:e=ot.size,mode:o=ot.mode,readonly:r=ot.readonly,disabled:l=ot.disabled,gradientStyle:p=ot.gradientStyle,dragHandleStyle:i=ot.dragHandleStyle,alphaStyle:u=ot.alphaStyle,alphaStyleHorizontal:x=ot.alphaStyleHorizontal,contrast:h=ot.contrast,dir:N,hover:L,focus:c,hoverHandle:k,focusHandle:v,canvasOrientation:g=ot.canvasOrientation,...C}=t;return Le("div",{...C,className:a(t.className,Je,S(Je,{size:e}),I(Je,{hover:L,focus:c,readonly:r,disabled:l})),dir:N,children:[!g||g==="horizontal"&&Le("div",{className:"k-colorgradient-canvas k-hstack",children:[q("div",{className:"k-hsv-rectangle",style:p,children:q("div",{className:"k-hsv-gradient",children:q("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":v}),style:i})})}),Le("div",{className:"k-hsv-controls k-hstack",children:[q(So,{className:"k-hue-slider",hover:k,focus:v}),o!=="rgb"&&o!=="hsv"&&q(So,{className:"k-alpha-slider",hover:k,focus:v,trackStyle:u})]})]}),g==="vertical"&&Le("div",{className:"k-colorgradient-canvas k-vstack",children:[q("div",{className:"k-hsv-rectangle",style:p,children:q("div",{className:"k-hsv-gradient",children:q("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":v}),style:i})})}),Le("div",{className:"k-hsv-controls k-vstack",children:[q(go,{className:"k-hue-slider",hover:k,focus:v}),o!=="rgb"&&o!=="hsv"&&q(go,{className:"k-alpha-slider",hover:k,focus:v,trackStyle:x})]})]}),q(Zt,{mode:t.mode,size:e}),h&&q(jt,{})]})};Ct.states=Qr;Ct.options=Yr;Ct.className=Je;Ct.defaultOptions=ot;import{jsx as kN}from"react/jsx-runtime";import{jsx as SN}from"react/jsx-runtime";import{jsx as Zr}from"react/jsx-runtime";var ra=t=>Zr("tr",{children:t.children});import{jsx as ei}from"react/jsx-runtime";var Oo="k-colorpalette-tile",jr=[s.hover,s.focus,s.selected],ti={},ge=t=>{let{color:e,tileSize:o,hover:r,focus:l,selected:p,...i}=t,u={backgroundColor:e,width:o?o+"px":"",height:o?o+"px":""};return ei("td",{...i,className:a(t.className,Oo,I(Oo,{hover:r,focus:l,selected:p})),style:u})};ge.states=jr;ge.options=ti;ge.className=Oo;import{jsx as Se}from"react/jsx-runtime";var Fe="k-colorpalette",oi=[s.disabled],si={size:[n.small,n.medium,n.large]},Ko={columns:10,size:n.medium},te=t=>{let{size:e=Ko.size,palette:o,columns:r=Ko.columns,tileSize:l,disabled:p,...i}=t,u=[];if(o){let x=r||o.columns,h=o.colors?o.colors:o;Array.isArray(h)&&Array.from({length:Math.ceil(h.length/x)},(N,L)=>{let c=[];h.slice(L*x,(L+1)*x).map((v,g)=>{c.push(Se(ge,{color:v,tileSize:l},g))});let k=Se(ra,{children:c},L);u.push(k)})}return Se("div",{...i,className:a(t.className,Fe,I(Fe,{disabled:p}),S(Fe,{size:e})),children:Se("table",{className:"k-colorpalette-table",children:Se("tbody",{children:u.length>0?u:t.children})})})};te.states=oi;te.options=si;te.className=Fe;te.defaultOptions=Ko;var Ro={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4","#ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}};import{jsx as FN}from"react/jsx-runtime";import{jsx as W,jsxs as ee}from"react/jsx-runtime";var Ue="k-coloreditor",ai=[s.focus],ni={size:[n.small,n.medium,n.large]},oe={size:n.medium,view:"gradient",palette:Ro.office,actionButtons:!0,canvasOrientation:"horizontal"},rt=t=>{let{size:e=oe.size,view:o=oe.view,palette:r=oe.palette,color:l,currentColor:p,focus:i,focusView:u,dir:x,group:h,actionButtons:N=oe.actionButtons,canvasOrientation:L=oe.canvasOrientation,...c}=t;return ee("div",{...c,className:a(t.className,"k-flatcolorpicker",Ue,S(Ue,{size:e}),I(Ue,{focus:i})),dir:x,children:[ee("div",{className:"k-coloreditor-header k-hstack",children:[W("div",{className:"k-coloreditor-header-actions k-hstack",children:h&&ee(z,{fillMode:"flat",children:[W(f,{className:"k-group-start",size:e,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),W(f,{className:"k-group-end",size:e,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),W("div",{className:"k-spacer"}),ee("div",{className:"k-coloreditor-header-actions k-hstack",children:[W(f,{fillMode:"flat",icon:"droplet-slash",size:e}),ee("div",{className:"k-coloreditor-preview k-vstack",children:[W(xt,{className:"k-coloreditor-preview-color",color:l}),W(xt,{className:"k-coloreditor-current-color",color:p})]})]})]}),W("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?W(Ct,{focus:u,size:e,canvasOrientation:L}):W(te,{palette:r,size:e})}),N&&ee(Nt,{className:"k-coloreditor-footer",alignment:"start",children:[W(f,{themeColor:"primary",size:e,className:"k-coloreditor-apply",children:"Apply"}),W(f,{className:"k-coloreditor-cancel",size:e,children:"Cancel"})]})]})};rt.states=ai;rt.options=ni;rt.className=Ue;rt.defaultOptions=oe;import{jsx as dk}from"react/jsx-runtime";import{jsx as bk}from"react/jsx-runtime";import{jsx as kk}from"react/jsx-runtime";import{jsx as Sk}from"react/jsx-runtime";import{Fragment as li,jsx as Q,jsxs as Go}from"react/jsx-runtime";var ia="k-colorpicker",ri=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled],ii={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},Ie={arrowIconName:"caret-alt-down",size:Z.defaultOptions.size,rounded:Z.defaultOptions.rounded,fillMode:Z.defaultOptions.fillMode},dt=t=>{let{size:e=Ie.size,rounded:o=Ie.rounded,fillMode:r=Ie.fillMode,arrowIconName:l=Ie.arrowIconName,prefix:p,suffix:i,value:u,placeholder:x,hover:h,focus:N,valid:L,invalid:c,required:k,disabled:v,valueIconName:g,popup:C,opened:B,adaptive:w,adaptiveSettings:D,adaptiveTitle:bt,adaptiveSubtitle:ie,...le}=t;return Go(li,{children:[Go(Z,{...le,size:e,rounded:o,fillMode:r,hover:h,focus:N,valid:L,invalid:c,required:k,disabled:v,className:a(t.className,ia,"k-icon-picker"),children:[Q(at,{children:p}),Q(Et,{placeholder:x,value:u,showValue:!1,valueIcon:Q(xt,{className:"k-value-icon",color:u,iconName:g}),valueIconName:g}),Q(nt,{children:i}),Q(f,{className:"k-input-button",icon:l,rounded:null,size:e,fillMode:r})]}),B&&C&&Q(H,{className:"k-colorpicker-popup",children:C}),w&&Q(et,{adaptive:!0,...D,header:Q(F,{actionsEnd:Q(f,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:bt,subtitle:ie}),footer:Go(fe,{children:[Q(f,{text:"Cancel",size:"large",themeColor:"base"}),Q(f,{text:"Set",size:"large",themeColor:"primary"})]}),children:Q(rt,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};dt.states=ri;dt.options=ii;dt.className=ia;dt.defaultOptions=Ie;import{jsx as _k}from"react/jsx-runtime";import{jsx as qk}from"react/jsx-runtime";import{jsx as jk}from"react/jsx-runtime";import{jsx as sv}from"react/jsx-runtime";import{jsx as iv}from"react/jsx-runtime";import{jsx as dv}from"react/jsx-runtime";import{Fragment as $o,jsx as R,jsxs as Me}from"react/jsx-runtime";var la="k-combobox",ci=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],di={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},ye={size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},$t=t=>{let{size:e=ye.size,rounded:o=ye.rounded,fillMode:r=ye.fillMode,separators:l=ye.separators,prefix:p,suffix:i,value:u,placeholder:x,hover:h,focus:N,valid:L,invalid:c,required:k,loading:v,disabled:g,popup:C,opened:B,readonly:w,adaptive:D,adaptiveSettings:bt,adaptiveTitle:ie,adaptiveSubtitle:le,adaptiveCustomValue:Ze,...je}=t;return Me($o,{children:[Me(E,{...je,size:e,rounded:o,fillMode:r,hover:h,focus:N,valid:L,invalid:c,required:k,loading:v,disabled:g,readonly:w,className:a(t.className,la),children:[p&&Me($o,{children:[R(at,{children:p}),l&&R(lt,{})]}),R(tt,{placeholder:x,value:u}),R(X,{valid:L,invalid:c,loading:v,disabled:g}),R(J,{loading:v,disabled:g}),R(j,{loading:v,disabled:g,readonly:w,value:u}),i&&Me($o,{children:[l&&R(lt,{}),R(nt,{c