@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 65.2 kB
JavaScript
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,r)=>t[r]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var g=(e,t)=>a({[`${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"}),M=(e,t)=>a({"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"},f={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{Fragment as Sa,jsx as Zo}from"react/jsx-runtime";var Qt="k-icon k-font-icon",ka=[],va={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]},La={},lt=e=>{let{size:t,themeColor:o,icon:r,rotate:p,flip:c,...i}=e;return r?Zo("span",{...i,className:a(e.className,Qt,g(Qt,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${p}`]:p,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"})}):Zo(Sa,{})};lt.states=ka;lt.options=va;lt.className=Qt;lt.defaultOptions=La;var jo=lt;import{Fragment as Ma,jsx as Tt}from"react/jsx-runtime";var Yt="k-icon k-svg-icon",ga=[],Ia={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]},es={viewBox:"0 0 24 24"},pt=e=>{let{size:t,themeColor:o,rotate:r,flip:p,viewBox:c=es.viewBox,icon:i,...u}=e;if(!i)return Tt(Ma,{});i==="none"&&{...u,className:a(e.className,Yt,"k-none")};let b=typeof i=="object"&&i.name&&i.name;return Tt("span",{...u,className:a(e.className,Yt,g("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"}),children:Tt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:c,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:e.children})})};pt.states=ga;pt.options=Ia;pt.className=Yt;pt.defaultOptions=es;var Zt=pt;import*as ts from"@progress/kendo-svg-icons";import{Fragment as os,jsx as ct}from"react/jsx-runtime";var ya=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ca=[],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]},jt={viewBox:"0 0 24 24",type:"svg"},I=e=>{let{size:t,themeColor:o,icon:r,type:p=jt.type,rotate:c,flip:i,viewBox:u=jt.viewBox,...b}=e;if(!r)return ct(os,{});if(p==="svg"){if(r==="none")return ct(Zt,{...b,icon:r,size:t});let h=ya(`${r}-icon`);return ts[h]?ct(Zt,{...b,icon:ts[h],size:t,themeColor:o,rotate:c,flip:i,viewBox:u}):ct(os,{})}return ct(jo,{...b,icon:r,size:t,themeColor:o,rotate:c,flip:i})};I.states=Ca;I.options=Ta;I.defaultOptions=jt;import{Fragment as wa,jsx as dt,jsxs as ss}from"react/jsx-runtime";var At="k-button",Aa=[s.hover,s.focus,s.active,s.selected,s.disabled],Ba={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.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]},Ae={size:n.medium,rounded:f.medium,fillMode:d.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},x=e=>{let{size:t=Ae.size,rounded:o=Ae.rounded,fillMode:r=Ae.fillMode,themeColor:p=Ae.themeColor,showArrow:c=Ae.showArrow,arrowIconName:i=Ae.arrowIconName,hover:u,focus:b,active:h,selected:N,disabled:L,icon:l,text:k,iconClassName:v,...S}=e,C=l!==void 0,T=e.children!==void 0;return ss("button",{...S,className:a(e.className,At,g(At,{size:t,rounded:o,fillMode:r,themeColor:p}),M(At,{hover:u,focus:b,active:h,disabled:L,selected:N}),{"k-icon-button":!k&&!T&&C}),children:[l&&dt(I,{className:a(v,"k-button-icon"),icon:l}),k?ss(wa,{children:[k&&dt("span",{className:"k-button-text",children:k}),e.children]}):e.children&&dt("span",{className:"k-button-text",children:e.children}),c&&dt("span",{className:"k-menu-button-arrow k-button-arrow",children:dt(I,{icon:i})})]})};x.states=Aa;x.options=Ba;x.className=At;x.defaultOptions=Ae;import{jsx as za}from"react/jsx-runtime";var Bt=e=>za(x,{icon:"folder",...e,children:void 0});import{jsx as Pa}from"react/jsx-runtime";var eo=e=>Pa(x,{icon:"folder",children:"Button",...e});import{jsx as Nl}from"react/jsx-runtime";import{jsx as Ka}from"react/jsx-runtime";var mt="k-button-group",Ea=[s.disabled],Oa={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},as={fillMode:d.solid},P=e=>{let{fillMode:t=as.fillMode,disabled:o,stretched:r,...p}=e;return Ka("div",{...p,className:a(e.className,mt,g(mt,{fillMode:t}),M(mt,{disabled:o}),{[`${mt}-stretched`]:r}),children:e.children})};P.states=Ea;P.options=Oa;P.className=mt;P.defaultOptions=as;import{Fragment as zl,jsx as wl,jsxs as Pl}from"react/jsx-runtime";import{Fragment as Gl,jsx as Hl,jsxs as $l}from"react/jsx-runtime";import{Fragment as Fl,jsx as Jl,jsxs as Ul}from"react/jsx-runtime";import{Fragment as jl,jsx as Zl,jsxs as ep}from"react/jsx-runtime";import{jsx as Ga}from"react/jsx-runtime";var wt="k-input",Ra=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ha={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},zt={size:n.medium,rounded:n.medium,fillMode:d.solid},w=e=>{let{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:u,size:b=zt.size,rounded:h=zt.rounded,fillMode:N=zt.fillMode,...L}=e;return Ga("span",{...L,className:a(e.className,wt,g(wt,{size:b,rounded:h,fillMode:N}),M(wt,{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:u}))})};w.states=Ra;w.options=Ha;w.className=wt;w.defaultOptions=zt;import{jsx as Va}from"react/jsx-runtime";var Pt="k-picker",$a=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Da={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Et={size:n.medium,rounded:f.medium,fillMode:d.solid},Y=e=>{let{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:u,size:b=Et.size,rounded:h=Et.rounded,fillMode:N=Et.fillMode,...L}=e;return Va("span",{...L,className:a(e.className,Pt,g(Pt,{size:b,rounded:h,fillMode:N}),M(Pt,{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:u})),children:e.children})};Y.states=$a;Y.options=Da;Y.className=Pt;Y.defaultOptions=Et;import{Fragment as Ja,jsx as to}from"react/jsx-runtime";var ns="k-clear-value",_a=[s.disabled,s.loading,s.readonly],Xa={},Z=e=>{let{disabled:t,loading:o,readonly:r,value:p}=e;return t||r||o||!p?to(Ja,{}):to("span",{className:a(e.className,ns),children:to(I,{icon:"x"})})};Z.states=_a;Z.options=Xa;Z.className=ns;import{jsx as qa}from"react/jsx-runtime";var oo="k-input-inner",Fa=[],Ua={},Ot={type:"text",autocomplete:"off",value:"",placeholder:""},j=e=>{let{value:t=Ot.value,type:o=Ot.type,placeholder:r=Ot.placeholder,autocomplete:p=Ot.autocomplete,...c}=e;return qa("input",{...c,type:o,className:a(e.className,oo,g(oo,e)),placeholder:r,autoComplete:p,defaultValue:t})};j.states=Fa;j.options=Ua;j.className=oo;import{jsx as rs,jsxs as Ya}from"react/jsx-runtime";var so="k-input-inner",Wa=[],Qa={},Be=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:p,valueIconName:c,...i}=e;return Ya("span",{...i,className:a(e.className,so,g(so,e)),children:[p,!p&&c&&rs(I,{className:"k-input-value-icon",icon:c}),r&&!t&&o,r&&t&&rs("span",{className:"k-input-value-text",children:t})]})};Be.states=Wa;Be.options=Qa;Be.className=so;import{jsx as en}from"react/jsx-runtime";var ao="k-input-inner",Za=[],ja={},is={value:"",placeholder:""},no=e=>{let{value:t=is.value,placeholder:o=is.placeholder,rows:r,...p}=e;return en("textarea",{...p,className:a(e.className,ao,g(ao,e)),placeholder:o,rows:r,defaultValue:t})};no.states=Za;no.options=ja;no.className=ao;import{Fragment as on,jsx as ls}from"react/jsx-runtime";var ps="k-input-loading-icon",tn=[s.disabled,s.loading],X=e=>{let{disabled:t,loading:o}=e;return t||!o?ls(on,{}):ls("span",{className:a(e.className,ps,"k-icon k-i-loading")})};X.states=tn;X.className=ps;import{Fragment as nn,jsx as cs}from"react/jsx-runtime";var ds="k-input-validation-icon",sn=[s.valid,s.invalid,s.disabled,s.loading],an={},_=e=>{let{valid:t,invalid:o,disabled:r,loading:p}=e,c=o?"warning-circle":"check-circle";return r||p||!!!(t||o)?cs(nn,{}):cs(I,{className:a(ds),icon:c})};_.states=sn;_.options=an;_.className=ds;import{Fragment as pn,jsx as ms}from"react/jsx-runtime";var rn="k-input-prefix",ln={direction:"horizontal"},ae=e=>{let{direction:t=ln.direction,...o}=e;return e.children?ms("span",{...o,className:a(rn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ms(pn,{})};import{Fragment as mn,jsx as us}from"react/jsx-runtime";var cn="k-input-suffix",dn={direction:"horizontal"},ne=e=>{let{direction:t=dn.direction,...o}=e;return e.children?us("span",{...o,className:a(cn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):us(mn,{})};import{jsx as _p}from"react/jsx-runtime";import{jsx as Up}from"react/jsx-runtime";import{jsx as fn}from"react/jsx-runtime";var fs="k-input-separator",un={direction:"vertical"},le=e=>{let{direction:t=un.direction,...o}=e;return fn("span",{...o,className:a(fs,e.className,{[`${fs}-${t}`]:t})})};import{jsx as bs,jsxs as hn}from"react/jsx-runtime";var xs="k-color-preview",bn=[],xn={},xe=e=>{let{color:t,iconName:o,...r}=e;return hn("span",{...r,className:a(e.className,xs,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&bs(I,{icon:o,className:"k-color-preview-icon"}),bs("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};xe.states=bn;xe.options=xn;xe.className=xs;import{jsx as hs}from"react/jsx-runtime";var Ns="k-animation-container",Nn=[],kn={},ks={positionMode:"absolute"},he=e=>{let{positionMode:t=ks.positionMode,animationStyle:o,offset:r,...p}=e;return hs("div",{...p,style:{...r,...e.style},className:a(e.className,Ns,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:hs("div",{className:"k-child-animation-container",style:o,children:e.children})})};he.states=Nn;he.options=kn;he.className=Ns;he.defaultOptions=ks;import{jsx as vs}from"react/jsx-runtime";var Ls="k-popup",vn=[],Ln={},Ss={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:o=Ss.positionMode,animationStyle:r,...p}=e;return vs(he,{positionMode:o,offset:t,animationStyle:r,children:vs("div",{...p,className:a(e.className,Ls),children:e.children})})};H.states=vn;H.options=Ln;H.className=Ls;H.defaultOptions=Ss;import{jsx as In}from"react/jsx-runtime";var Kt="k-actions",Sn=[],gn={},ro={alignment:"start",orientation:"horizontal"},Ne=e=>{let{alignment:t=ro.alignment,orientation:o=ro.orientation,...r}=e;return In("div",{...r,className:a(Kt,{[`${Kt}-${t}`]:t,[`${Kt}-${o}`]:o},e.className),children:e.children})};Ne.states=Sn;Ne.options=gn;Ne.className=Kt;Ne.defaultOptions=ro;import{jsx as yn}from"react/jsx-runtime";var Mn="k-actionsheet-footer",gs={alignment:"stretched",orientation:"horizontal"},ut=e=>{let{alignment:t=gs.alignment,orientation:o=gs.orientation,template:r,as:p=r?"div":Ne,...c}=e;return yn(p,{...c,...!r&&{alignment:t,orientation:o},className:a(e.className,Mn),children:e.children})};import{jsx as ft,jsxs as An}from"react/jsx-runtime";var Is="k-searchbox",Cn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Tn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},io={showIcon:!0,icon:"search",size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode},pe=e=>{let{value:t,placeholder:o,size:r,rounded:p,fillMode:c,hover:i,focus:u,valid:b,invalid:h,required:N,loading:L,disabled:l,showIcon:k=io.showIcon,icon:v=io.icon,...S}=e;return An(w,{...S,size:r,rounded:p,fillMode:c,hover:i,focus:u,valid:b,invalid:h,required:N,loading:L,disabled:l,className:a(e.className,Is),children:[k&&ft(I,{className:"k-input-icon",icon:v}),ft(j,{placeholder:o,value:t}),ft(X,{...e}),ft(_,{...e}),ft(Z,{...e})]})};pe.states=Cn;pe.options=Tn;pe.className=Is;pe.defaultOptions=io;import{jsx as Fc}from"react/jsx-runtime";import{Fragment as Ms,jsx as ke,jsxs as lo}from"react/jsx-runtime";var ys="k-textbox",Bn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],wn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},we={showClearButton:!0,showValidationIcon:!0,size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},ve=e=>{let{size:t=we.size,rounded:o=we.rounded,fillMode:r=we.fillMode,separators:p=we.separators,showClearButton:c=we.showClearButton,showValidationIcon:i=we.showValidationIcon,prefix:u,suffix:b,type:h,value:N,placeholder:L,hover:l,focus:k,valid:v,invalid:S,required:C,loading:T,disabled:z,readonly:$,...be}=e;return lo(w,{...be,size:t,rounded:o,fillMode:r,hover:l,focus:k,valid:v,invalid:S,required:C,loading:T,disabled:z,readonly:$,className:a(e.className,ys),children:[u&&lo(Ms,{children:[ke(ae,{children:u}),p&&ke(le,{})]}),ke(j,{placeholder:L,value:N,type:h}),i&&ke(_,{valid:v,invalid:S,loading:T,disabled:z}),ke(X,{loading:T,disabled:z}),c&&ke(Z,{loading:T,disabled:z,readonly:$,value:N}),b&&lo(Ms,{children:[p&&ke(le,{}),ke(ne,{children:b})]})]})};ve.states=Bn;ve.options=wn;ve.className=ys;ve.defaultOptions=we;import{jsx as sd}from"react/jsx-runtime";import{Fragment as pd,jsx as ld}from"react/jsx-runtime";import{Fragment as xd,jsx as bd}from"react/jsx-runtime";import{jsx as Le,jsxs as po}from"react/jsx-runtime";var Ts="k-actionsheet-titlebar",zn={},J=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:p,filter:c,input:i,inputValue:u,inputPlaceholder:b,adaptive:h,children:N,...L}=e;return po("div",{...L,className:a(e.className,Ts),children:[po("div",{className:"k-actionsheet-titlebar-group",children:[r&&Le("div",{className:"k-actionsheet-actions",children:r}),!N&&po("div",{className:"k-actionsheet-title",children:[t&&Le("div",{className:"k-text-center",children:t}),o&&Le("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&Le("div",{className:"k-actionsheet-title",children:N}),p&&Le("div",{className:"k-actionsheet-actions",children:p})]}),(i||c)&&Le("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?Le(ve,{value:u,placeholder:b,size:h?"large":"medium"}):Le(pe,{placeholder:"Filter",size:h?"large":"medium"})})]})};J.className=Ts;J.defaultOptions=zn;import{jsx as co,jsxs as Kn}from"react/jsx-runtime";var mo="k-actionsheet-view",Pn=[],En={},On={},_e=e=>{let{adaptive:t,animated:o,children:r,header:p,footer:c,...i}=e,u=p?.type===J&&co(J,{adaptive:t,...p?.props}),b=c?.type===ut&&co(ut,{...c?.props});return Kn("div",{...i,className:a(e.className,mo,{[`${mo}-animated`]:o}),children:[u,co("div",{className:"k-actionsheet-content",children:r}),b]})};_e.states=Pn;_e.options=En;_e.className=mo;_e.defaultOptions=On;import{jsx as Rt,jsxs as Gn}from"react/jsx-runtime";var As="k-actionsheet",Rn=[],Hn={},bt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ee=e=>{let{side:t=bt.side,fullscreen:o=bt.fullscreen,adaptive:r=bt.adaptive,overlay:p=bt.overlay,template:c,children:i,header:u,footer:b,...h}=e;return Gn("div",{className:"k-actionsheet-container",children:[p&&Rt("div",{className:"k-overlay"}),Rt(he,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:Rt("div",{...h,className:a(e.className,As,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:c||Rt(_e,{header:u,footer:b,adaptive:r,...e,children:i})})})]})};ee.states=Rn;ee.options=Hn;ee.className=As;ee.defaultOptions=bt;import{jsx as $d}from"react/jsx-runtime";import{Fragment as Dn,jsx as xt,jsxs as uo}from"react/jsx-runtime";var fo="k-actionsheet-item",$n=[s.hover,s.focus,s.selected,s.disabled],bo=e=>{let{iconName:t,text:o,description:r,hover:p,focus:c,selected:i,disabled:u,...b}=e;return uo("span",{...b,className:a(e.className,fo,M(fo,{hover:p,focus:c,selected:i,disabled:u})),children:[!e.children&&xt(Dn,{children:uo("span",{className:"k-actionsheet-action",children:[t&&xt("span",{className:"k-icon-wrap",children:xt(I,{className:"k-actionsheet-item-icon",icon:t})}),uo("span",{className:"k-actionsheet-item-text",children:[o&&xt("span",{className:"k-actionsheet-item-title",children:o}),r&&xt("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};bo.states=$n;bo.className=fo;import{jsx as Wd,jsxs as Qd}from"react/jsx-runtime";import{jsx as em}from"react/jsx-runtime";import{jsx as am}from"react/jsx-runtime";import{jsx as lm}from"react/jsx-runtime";import{jsx as Xe,jsxs as xo}from"react/jsx-runtime";var ht="k-slider",Vn=[s.hover,s.focus,s.active,s.disabled,s.readonly],_n={},Se={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},F=e=>{let{type:t=Se.type,orientation:o=Se.orientation,readonly:r=Se.readonly,disabled:p=Se.disabled,handlePosition:c=Se.handlePosition,showButtons:i=Se.showButtons,showTicks:u=Se.showTicks,hover:b,focus:h,active:N,trackStyle:L,dir:l,...k}=e,v,S;return o==="horizontal"?(v=l==="rtl"?"caret-alt-left":"caret-alt-right",S=l==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(v="caret-alt-up",S="caret-alt-down"),xo("div",{...k,className:a(ht,e.className,M(ht,{readonly:r,disabled:p}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:l,children:[i&&Xe(x,{className:"k-button-decrease",rounded:"full",icon:S}),xo("div",{className:"k-slider-track-wrap",children:[u&&Xe("ul",{className:"k-reset k-slider-items",children:e.children}),xo("div",{className:"k-slider-track",style:L,children:[Xe("div",{className:"k-slider-selection"}),t==="range"&&Xe("span",{className:a("k-draghandle","k-draghandle-start",M(ht,{hover:b,focus:h,active:N}))}),Xe("span",{className:a("k-draghandle",`k-draghandle-${c}`,M(ht,{hover:b,focus:h,active:N}))})]})]}),i&&Xe(x,{className:"k-button-increase",rounded:"full",icon:v})]})};F.states=Vn;F.options=_n;F.className=ht;F.defaultOptions=Se;import{jsx as ws}from"react/jsx-runtime";var zs="k-tick",Xn=[],Jn={},Ps={label:!1},ge=e=>{let{style:t,label:o=Ps.label,orientation:r,large:p,text:c,...i}=e;return ws("li",{...i,className:a(e.className,zs,{[`k-tick-${r}`]:r,"k-tick-large":p}),style:t,children:o&&ws("span",{className:"k-label",children:c})})};ge.states=Xn;ge.options=Jn;ge.className=zs;ge.defaultOptions=Ps;import{Fragment as wm,jsx as Bm,jsxs as zm}from"react/jsx-runtime";import{Fragment as Rm,jsx as Km,jsxs as Hm}from"react/jsx-runtime";import{Fragment as _m,jsx as Vm,jsxs as Xm}from"react/jsx-runtime";import{Fragment as Wm,jsx as qm,jsxs as Qm}from"react/jsx-runtime";import{jsx as Fn}from"react/jsx-runtime";var ho=e=>Fn(F,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Un}from"react/jsx-runtime";var No=e=>Un(F,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Es,jsxs as Qn}from"react/jsx-runtime";var Os="k-spin-button",qn=[],Wn={size:[n.small,n.medium,n.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},ko={size:n.medium,fillMode:d.solid},Je=e=>{let{size:t=ko.size,fillMode:o=ko.fillMode,...r}=e;return Qn("span",{...r,className:a(Os,e.className),children:[Es(x,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Es(x,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Je.states=qn;Je.options=Wn;Je.className=Os;Je.defaultOptions=ko;import{Fragment as Ks,jsx as ce,jsxs as vo}from"react/jsx-runtime";var Rs="k-numerictextbox",Yn=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Zn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},ze={showSpinButton:!0,showClearButton:!0,size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},K=e=>{let{size:t=ze.size,rounded:o=ze.rounded,fillMode:r=ze.fillMode,separators:p=ze.separators,showClearButton:c=ze.showClearButton,showSpinButton:i=ze.showSpinButton,prefix:u,suffix:b,value:h,placeholder:N,hover:L,focus:l,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:z,...$}=e;return vo(w,{...$,size:t,rounded:o,fillMode:r,hover:L,focus:l,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:z,className:a(e.className,Rs),children:[u&&vo(Ks,{children:[ce(ae,{children:u}),p&&ce(le,{})]}),ce(j,{placeholder:N,value:h}),ce(_,{valid:k,invalid:v,loading:C,disabled:T}),ce(X,{loading:C,disabled:T}),c&&ce(Z,{loading:C,disabled:T,readonly:z,value:h}),b&&vo(Ks,{children:[p&&ce(le,{}),ce(ne,{children:b})]}),i&&ce(Je,{className:"k-input-spinner",size:t,fillMode:r})]})};K.states=Yn;K.options=Zn;K.className=Rs;K.defaultOptions=ze;import{jsx as yu}from"react/jsx-runtime";import{jsx as er}from"react/jsx-runtime";var jn="k-no-data",Nt=e=>er("span",{className:a(jn,e.className),children:e.children});import{jsx as Fe,jsxs as Gs}from"react/jsx-runtime";var Lo="k-list",tr=[],or={size:[n.small,n.medium,n.large]},$s={size:n.medium},E=e=>{let{size:t=$s.size,virtualization:o,children:r,optionLabel:p,customValue:c,screenReaders:i,...u}=e,b,h,N,L,l=[];return r?r.map((k,v)=>{k.type===G?(k.props.root===!0?(b=k.props.label,k.props.children.map((S,C)=>{l.push(Fe(y,{...S.props},`optChild-${C}-${new Date().getTime()}`))})):k.props.children.forEach((S,C)=>{let T="";C===0&&(T=k.props.label),l.push(Fe(y,{className:C===0?"k-first":"",...S.props,groupLabel:T},`groupLabel-${C}-${new Date().getTime()}`))}),h=Fe(G,{label:b,virtualization:o,children:l})):k.type===y&&(l.push(Fe(y,{...k.props},`${k.type}-${v}`)),N=Fe(Ue,{virtualization:o,children:l}),i&&(L=Gs(Nt,{className:"k-sr-only",children:[l.length," items found."]})))}):L=Fe(Nt,{children:"No data found."}),Gs("div",{...u,className:a(e.className,Lo,g(Lo,{size:t}),{"k-virtual-list":o}),children:[p,c,h,N,L]})};E.states=tr;E.options=or;E.className=Lo;E.defaultOptions=$s;import{jsx as Pe,jsxs as nr}from"react/jsx-runtime";var So="k-list",sr=[],ar={size:[n.small,n.medium,n.large]},Ds={size:n.medium},Ee=e=>{let{size:t=Ds.size,virtualization:o,children:r,...p}=e,c,i,u,b=[];return r?r.map((h,N)=>{h.type===G?(h.props.root===!0?(c=h.props.label,h.props.children.map((L,l)=>{b.push(Pe(y,{...L.props},`optChild-${l}-${new Date().getTime()}`))})):(b.push(Pe(Vs,{...h.props,children:h.props.label},`listChild-${N}`)),h.props.children.map((L,l)=>{b.push(Pe(y,{...L.props},`fwOptChild-${l}-${new Date().getTime()}`))})),i=Pe(G,{label:c,virtualization:o,children:b})):h.type===y&&(b.push(Pe(y,{...h.props},`${h.type}-${N}`)),u=Pe(Ue,{virtualization:o,children:b}))}):u=Pe(Nt,{children:"No data found."}),nr("div",{...p,className:a(e.className,So,g(So,{size:t}),{"k-virtual-list":o}),children:[i,u]})};Ee.states=sr;Ee.options=ar;Ee.className=So;Ee.defaultOptions=Ds;import{jsx as _s}from"react/jsx-runtime";var Ht="k-checkbox",rr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],ir={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},go={size:n.medium,rounded:f.medium},Ie=e=>{let{id:t,checked:o,indeterminate:r,hover:p,focus:c,disabled:i,invalid:u,valid:b,required:h,size:N=go.size,rounded:L=go.rounded,...l}=e;return _s("span",{className:"k-checkbox-wrap",children:_s("input",{...l,id:t,type:"checkbox",defaultChecked:o,required:h,className:a(e.className,Ht,g(Ht,{size:N,rounded:L}),M(Ht,{hover:p,focus:c,disabled:i,invalid:u,valid:b,indeterminate:r,checked:o}))})})};Ie.states=rr;Ie.options=ir;Ie.className=Ht;Ie.defaultOptions=go;import{jsx as cr}from"react/jsx-runtime";var Xs="k-checkbox-list",lr=[],pr={},Js={layout:"vertical"},qe=e=>{let{layout:t=Js.layout,...o}=e;return cr("ul",{...o,className:a(e.className,Xs,{[`k-list-${t}`]:t}),children:e.children})};qe.states=lr;qe.options=pr;qe.className=Xs;qe.defaultOptions=Js;import{jsx as fr}from"react/jsx-runtime";var Fs="k-checkbox-list-item",dr=[],mr={},ur={},We=e=>{let{...t}=e;return fr("li",{...t,className:a(e.className,Fs),children:e.children})};We.states=dr;We.options=mr;We.className=Fs;We.defaultOptions=ur;import{Fragment as tf,jsx as ef,jsxs as of}from"react/jsx-runtime";import{Fragment as lf,jsx as rf,jsxs as pf}from"react/jsx-runtime";import{Fragment as ff,jsx as uf,jsxs as bf}from"react/jsx-runtime";import{Fragment as vf,jsx as kf,jsxs as Lf}from"react/jsx-runtime";import{jsx as Mf}from"react/jsx-runtime";import{jsx as Af}from"react/jsx-runtime";import{jsx as Gt,jsxs as Nr}from"react/jsx-runtime";var Mo="k-list-item",br=[s.hover,s.focus,s.selected,s.disabled],xr={},hr={},y=e=>{let{text:t,groupLabel:o,group:r,showIcon:p,iconName:c,showCheckbox:i,checked:u,hover:b,focus:h,selected:N,disabled:L,...l}=e,k=t||e.children;return Nr("li",{...l,className:a(e.className,r?"k-list-group-item":Mo,M(Mo,{hover:b,focus:h,disabled:L,selected:N})),children:[i&&Gt(Ie,{checked:u}),p&&Gt(I,{icon:c}),Gt("span",{className:"k-list-item-text",children:k}),o&&o!==""&&Gt("div",{className:"k-list-item-group-label",children:o})]})};y.states=br;y.options=xr;y.className=Mo;y.defaultOptions=hr;import{jsx as yo,jsxs as vr}from"react/jsx-runtime";var kr="k-list-content",Ue=e=>{let{virtualization:t,...o}=e;return vr("div",{...o,className:a(kr,e.className),children:[yo("ul",{className:a("k-list-ul"),children:e.children}),t&&yo("div",{className:"k-height-container",children:yo("div",{})})]})};import{jsx as Us}from"react/jsx-runtime";var Lr="k-list-group-sticky-header",qs=e=>Us("div",{className:a(Lr,e.className),children:Us("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Sr,jsx as Ws,jsxs as gr}from"react/jsx-runtime";var G=e=>{let{virtualization:t,label:o}=e;return gr(Sr,{children:[o&&Ws(qs,{children:o}),e.children&&Ws(Ue,{virtualization:t,children:e.children})]})};import{jsx as Qs}from"react/jsx-runtime";var Ir="k-list-group-item",Vs=e=>Qs("li",{className:a(Ir,e.className),children:Qs("span",{className:"k-list-item-text",children:e.children})});import{jsx as Tr}from"react/jsx-runtime";var Co="k-list-optionlabel",Mr=[s.hover,s.focus,s.selected,s.disabled],yr={},Cr={},$t=e=>{let{text:t,hover:o,focus:r,selected:p,disabled:c,...i}=e;return Tr("div",{...i,className:a(Co,M(Co,{hover:o,focus:r,selected:p,disabled:c})),children:t})};$t.states=Mr;$t.options=yr;$t.className=Co;$t.defaultOptions=Cr;import{jsx as zr}from"react/jsx-runtime";var To="k-list-custom-value",Ar=[s.hover,s.focus,s.selected,s.disabled],Br={},wr={},Me=e=>{let{text:t,hover:o,focus:r,selected:p,disabled:c,...i}=e;return zr("div",{...i,className:a(To,M(To,{hover:o,focus:r,selected:p,disabled:c})),children:t})};Me.states=Ar;Me.options=Br;Me.className=To;Me.defaultOptions=wr;import{jsx as mb}from"react/jsx-runtime";import{jsx as xb}from"react/jsx-runtime";import{jsx as vb,jsxs as Lb}from"react/jsx-runtime";import{jsx as Mb,jsxs as yb}from"react/jsx-runtime";import{jsx as Bb}from"react/jsx-runtime";import{jsx as Eb,jsxs as Ob}from"react/jsx-runtime";import{jsx as Gb,jsxs as $b}from"react/jsx-runtime";import{Fragment as Or,jsx as D,jsxs as Ao}from"react/jsx-runtime";var Ys="k-dropdownlist",Pr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Er={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Qe={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:d.solid},ye=e=>{let{size:t=Qe.size,rounded:o=Qe.rounded,fillMode:r=Qe.fillMode,arrowIconName:p=Qe.arrowIconName,showValue:c=Qe.showValue,valueIconName:i,prefix:u,suffix:b,value:h,placeholder:N,hover:L,focus:l,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:z,popup:$,opened:be,adaptive:rt,adaptiveSettings:it,adaptiveTitle:qt,adaptiveSubtitle:Wt,adaptiveFilter:ha,...Na}=e;return Ao(Or,{children:[Ao(Y,{...Na,size:t,rounded:o,fillMode:r,hover:L,focus:l,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:z,className:a(e.className,Ys,{"k-icon-picker":!c&&i}),children:[D(ae,{children:u}),D(Be,{placeholder:N,value:h,showValue:c,valueIconName:i}),D(_,{valid:k,invalid:v,loading:C,disabled:T}),D(X,{loading:C,disabled:T}),D(ne,{children:b}),D(x,{className:"k-input-button",icon:p,rounded:null,size:e.size,fillMode:e.fillMode})]}),be&&$&&D(H,{className:"k-list-container k-dropdownlist-popup",children:$}),rt&&D(ee,{adaptive:!0,...it,header:D(J,{actionsEnd:D(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ha,inputValue:h,inputPlaceholder:N,title:qt,subtitle:Wt}),children:D("div",{className:"k-list-container",children:Ao(E,{size:"large",children:[D(y,{text:"List item"}),D(y,{text:"List item"}),D(y,{text:"List item"})]})})})]})};ye.states=Pr;ye.options=Er;ye.className=Ys;ye.defaultOptions=Qe;import{jsx as xx}from"react/jsx-runtime";import{jsx as Lx,jsxs as Sx}from"react/jsx-runtime";import{Fragment as Bx,jsx as Tx,jsxs as Ax}from"react/jsx-runtime";import{jsx as Ex}from"react/jsx-runtime";import{jsx as Gx,jsxs as $x}from"react/jsx-runtime";import{jsx as Jx,jsxs as Fx}from"react/jsx-runtime";import{Fragment as eh,jsx as Zx,jsxs as jx}from"react/jsx-runtime";import{Fragment as lh,jsx as rh,jsxs as ih}from"react/jsx-runtime";import{Fragment as Ih,jsx as gh}from"react/jsx-runtime";import{Fragment as wh,jsx as Bh}from"react/jsx-runtime";import{Fragment as kt,jsx as A,jsxs as O}from"react/jsx-runtime";var Zs="k-colorgradient-inputs",Kr=[],Rr={size:[n.small,n.medium,n.large]},js={mode:"rgba",size:n.medium},Ye=e=>{let{mode:t=js.mode,size:o,...r}=e;return O("div",{...r,className:a(Zs,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(x,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&O(kt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&O(kt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&O(kt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&O(kt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(kt,{children:O("div",{className:"k-vstack k-flex-1",children:[A(ve,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Ye.states=Kr;Ye.options=Rr;Ye.className=Zs;Ye.defaultOptions=js;import{jsx as Ke,jsxs as Re}from"react/jsx-runtime";var ea="k-colorgradient-color-contrast",Hr=[],Gr={},$r={},Ze=()=>Re("div",{className:a(ea,"k-vbox"),children:[Re("div",{className:"k-contrast-ratio",children:[Ke("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Re("span",{className:"k-contrast-validation !k-text-success",children:[Ke(I,{icon:"check"}),Ke(I,{icon:"check"})]})]}),Re("div",{children:[Ke("span",{children:"AA: 4.5"}),Re("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ke(I,{icon:"check"})]})]}),Re("div",{children:[Ke("span",{children:"AAA: 7.0"}),Re("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ke(I,{icon:"x"})]})]})]});Ze.states=Hr;Ze.options=Gr;Ze.className=ea;Ze.defaultOptions=$r;import{jsx as U,jsxs as vt}from"react/jsx-runtime";var Dt="k-colorgradient",Dr=[s.hover,s.focus,s.readonly,s.disabled],Vr={size:[n.small,n.medium,n.large]},te={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"},Ce=e=>{let{size:t=te.size,mode:o=te.mode,readonly:r=te.readonly,disabled:p=te.disabled,gradientStyle:c=te.gradientStyle,dragHandleStyle:i=te.dragHandleStyle,alphaStyle:u=te.alphaStyle,alphaStyleHorizontal:b=te.alphaStyleHorizontal,contrast:h=te.contrast,dir:N,hover:L,focus:l,hoverHandle:k,focusHandle:v,canvasOrientation:S=te.canvasOrientation,...C}=e;return vt("div",{...C,className:a(e.className,Dt,g(Dt,{size:t}),M(Dt,{hover:L,focus:l,readonly:r,disabled:p})),dir:N,children:[!S||S==="horizontal"&&vt("div",{className:"k-colorgradient-canvas k-hstack",children:[U("div",{className:"k-hsv-rectangle",style:c,children:U("div",{className:"k-hsv-gradient",children:U("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":v}),style:i})})}),vt("div",{className:"k-hsv-controls k-hstack",children:[U(No,{className:"k-hue-slider",hover:k,focus:v}),o!=="rgb"&&o!=="hsv"&&U(No,{className:"k-alpha-slider",hover:k,focus:v,trackStyle:u})]})]}),S==="vertical"&&vt("div",{className:"k-colorgradient-canvas k-vstack",children:[U("div",{className:"k-hsv-rectangle",style:c,children:U("div",{className:"k-hsv-gradient",children:U("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":v}),style:i})})}),vt("div",{className:"k-hsv-controls k-vstack",children:[U(ho,{className:"k-hue-slider",hover:k,focus:v}),o!=="rgb"&&o!=="hsv"&&U(ho,{className:"k-alpha-slider",hover:k,focus:v,trackStyle:b})]})]}),U(Ye,{mode:e.mode,size:t}),h&&U(Ze,{})]})};Ce.states=Dr;Ce.options=Vr;Ce.className=Dt;Ce.defaultOptions=te;import{jsx as oN}from"react/jsx-runtime";import{jsx as rN}from"react/jsx-runtime";import{jsx as _r}from"react/jsx-runtime";var ta=e=>_r("tr",{children:e.children});import{jsx as Fr}from"react/jsx-runtime";var Bo="k-colorpalette-tile",Xr=[s.hover,s.focus,s.selected],Jr={},Lt=e=>{let{color:t,tileSize:o,hover:r,focus:p,selected:c,...i}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Fr("td",{...i,className:a(e.className,Bo,M(Bo,{hover:r,focus:p,selected:c})),style:u})};Lt.states=Xr;Lt.options=Jr;Lt.className=Bo;import{jsx as St}from"react/jsx-runtime";var Vt="k-colorpalette",Ur=[s.disabled],qr={size:[n.small,n.medium,n.large]},wo={columns:10,size:n.medium},je=e=>{let{size:t=wo.size,palette:o,columns:r=wo.columns,tileSize:p,disabled:c,...i}=e,u=[];if(o){let b=r||o.columns,h=o.colors?o.colors:o;Array.isArray(h)&&Array.from({length:Math.ceil(h.length/b)},(N,L)=>{let l=[];h.slice(L*b,(L+1)*b).map((v,S)=>{l.push(St(Lt,{color:v,tileSize:p},S))});let k=St(ta,{children:l},L);u.push(k)})}return St("div",{...i,className:a(e.className,Vt,M(Vt,{disabled:c}),g(Vt,{size:t})),children:St("table",{className:"k-colorpalette-table",children:St("tbody",{children:u.length>0?u:e.children})})})};je.states=Ur;je.options=qr;je.className=Vt;je.defaultOptions=wo;var zo={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 AN}from"react/jsx-runtime";import{jsx as q,jsxs as et}from"react/jsx-runtime";var _t="k-coloreditor",Wr=[s.focus],Qr={size:[n.small,n.medium,n.large]},tt={size:n.medium,view:"gradient",palette:zo.office,actionButtons:!0,canvasOrientation:"horizontal"},re=e=>{let{size:t=tt.size,view:o=tt.view,palette:r=tt.palette,color:p,currentColor:c,focus:i,focusView:u,dir:b,group:h,actionButtons:N=tt.actionButtons,canvasOrientation:L=tt.canvasOrientation,...l}=e;return et("div",{...l,className:a(e.className,"k-flatcolorpicker",_t,g(_t,{size:t}),M(_t,{focus:i})),dir:b,children:[et("div",{className:"k-coloreditor-header k-hstack",children:[q("div",{className:"k-coloreditor-header-actions k-hstack",children:h&&et(P,{fillMode:"flat",children:[q(x,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),q(x,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),q("div",{className:"k-spacer"}),et("div",{className:"k-coloreditor-header-actions k-hstack",children:[q(x,{fillMode:"flat",icon:"droplet-slash",size:t}),et("div",{className:"k-coloreditor-preview k-vstack",children:[q(xe,{className:"k-coloreditor-preview-color",color:p}),q(xe,{className:"k-coloreditor-current-color",color:c})]})]})]}),q("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?q(Ce,{focus:u,size:t,canvasOrientation:L}):q(je,{palette:r,size:t})}),N&&et(Ne,{className:"k-coloreditor-footer",alignment:"start",children:[q(x,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),q(x,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};re.states=Wr;re.options=Qr;re.className=_t;re.defaultOptions=tt;import{jsx as qN}from"react/jsx-runtime";import{jsx as ZN}from"react/jsx-runtime";import{jsx as ok}from"react/jsx-runtime";import{jsx as rk}from"react/jsx-runtime";import{Fragment as jr,jsx as W,jsxs as Eo}from"react/jsx-runtime";var oa="k-colorpicker",Yr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled],Zr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},gt={arrowIconName:"caret-alt-down",size:Y.defaultOptions.size,rounded:Y.defaultOptions.rounded,fillMode:Y.defaultOptions.fillMode},de=e=>{let{size:t=gt.size,rounded:o=gt.rounded,fillMode:r=gt.fillMode,arrowIconName:p=gt.arrowIconName,prefix:c,suffix:i,value:u,placeholder:b,hover:h,focus:N,valid:L,invalid:l,required:k,disabled:v,valueIconName:S,popup:C,opened:T,adaptive:z,adaptiveSettings:$,adaptiveTitle:be,adaptiveSubtitle:rt,...it}=e;return Eo(jr,{children:[Eo(Y,{...it,size:t,rounded:o,fillMode:r,hover:h,focus:N,valid:L,invalid:l,required:k,disabled:v,className:a(e.className,oa,"k-icon-picker"),children:[W(ae,{children:c}),W(Be,{placeholder:b,value:u,showValue:!1,valueIcon:W(xe,{className:"k-value-icon",color:u,iconName:S}),valueIconName:S}),W(ne,{children:i}),W(x,{className:"k-input-button",icon:p,rounded:null,size:t,fillMode:r})]}),T&&C&&W(H,{className:"k-colorpicker-popup",children:C}),z&&W(ee,{adaptive:!0,...$,header:W(J,{actionsEnd:W(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:be,subtitle:rt}),footer:Eo(ut,{children:[W(x,{text:"Cancel",size:"large",themeColor:"base"}),W(x,{text:"Set",size:"large",themeColor:"primary"})]}),children:W(re,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};de.states=Yr;de.options=Zr;de.className=oa;de.defaultOptions=gt;import{jsx as yk}from"react/jsx-runtime";import{jsx as wk}from"react/jsx-runtime";import{jsx as Kk}from"react/jsx-runtime";import{jsx as $k}from"react/jsx-runtime";import{jsx as Xk}from"react/jsx-runtime";import{jsx as qk}from"react/jsx-runtime";import{Fragment as Oo,jsx as R,jsxs as It}from"react/jsx-runtime";var sa="k-combobox",ti=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],oi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Mt={size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},He=e=>{let{size:t=Mt.size,rounded:o=Mt.rounded,fillMode:r=Mt.fillMode,separators:p=Mt.separators,prefix:c,suffix:i,value:u,placeholder:b,hover:h,focus:N,valid:L,invalid:l,required:k,loading:v,disabled:S,popup:C,opened:T,readonly:z,adaptive:$,adaptiveSettings:be,adaptiveTitle:rt,adaptiveSubtitle:it,adaptiveCustomValue:qt,...Wt}=e;return It(Oo,{children:[It(w,{...Wt,size:t,rounded:o,fillMode:r,hover:h,focus:N,valid:L,invalid:l,required:k,loading:v,disabled:S,readonly:z,className:a(e.className,sa),children:[c&&It(Oo,{children:[R(ae,{children:c}),p&&R(le,{})]}),R(j,{placeholder:b,value:u}),R(_,{valid:L,invalid:l,loading:v,disabled:S}),R(X,{loading:v,disabled:S}),R(Z,{loading:v,disabled:S,readonly:z,value:u}),i&&It(Oo,{children:[p&&R(le,{}),R(ne,{children:i})]}),R(x,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:r})]}),T&&C&&R(H,{className:"k-list-container k-combobox-popup",children:C}),$&&R(ee,{adaptive:!0,...be,header:R(J,{actionsEnd:R(x,{ico