@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 65.4 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"}),I=(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{jsx as Ma}from"react/jsx-runtime";var Zt="k-editor-content",Ia=[s.focus],At=e=>{let{focus:t,...o}=e;return Ma("div",{...o,className:a(e.className,Zt,I(Zt,{focus:t})),children:e.children})};At.states=Ia;At.className=Zt;import{Fragment as Aa,jsx as ts}from"react/jsx-runtime";var jt="k-icon k-font-icon",ya=[],Ca={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]},Ta={},it=e=>{let{size:t,themeColor:o,icon:r,rotate:l,flip:p,...i}=e;return r?ts("span",{...i,className:a(e.className,jt,g(jt,{size:t}),{[`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"})}):ts(Aa,{})};it.states=ya;it.options=Ca;it.className=jt;it.defaultOptions=Ta;var os=it;import{Fragment as Ea,jsx as Bt}from"react/jsx-runtime";var eo="k-icon k-svg-icon",Ba=[],za={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]},ss={viewBox:"0 0 24 24"},lt=e=>{let{size:t,themeColor:o,rotate:r,flip:l,viewBox:p=ss.viewBox,icon:i,...u}=e;if(!i)return Bt(Ea,{});i==="none"&&{...u,className:a(e.className,eo,"k-none")};let b=typeof i=="object"&&i.name&&i.name;return Bt("span",{...u,className:a(e.className,eo,g("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),children:Bt("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:e.children})})};lt.states=Ba;lt.options=za;lt.className=eo;lt.defaultOptions=ss;var to=lt;import*as as from"@progress/kendo-svg-icons";import{Fragment as ns,jsx as pt}from"react/jsx-runtime";var wa=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Pa=[],Oa={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]},oo={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:r,type:l=oo.type,rotate:p,flip:i,viewBox:u=oo.viewBox,...b}=e;if(!r)return pt(ns,{});if(l==="svg"){if(r==="none")return pt(to,{...b,icon:r,size:t});let x=wa(`${r}-icon`);return as[x]?pt(to,{...b,icon:as[x],size:t,themeColor:o,rotate:p,flip:i,viewBox:u}):pt(ns,{})}return pt(os,{...b,icon:r,size:t,themeColor:o,rotate:p,flip:i})};M.states=Pa;M.options=Oa;M.defaultOptions=oo;import{Fragment as Ha,jsx as ct,jsxs as rs}from"react/jsx-runtime";var zt="k-button",Ka=[s.hover,s.focus,s.active,s.selected,s.disabled],Ra={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]},Te={size:n.medium,rounded:f.medium,fillMode:d.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},v=e=>{let{size:t=Te.size,rounded:o=Te.rounded,fillMode:r=Te.fillMode,themeColor:l=Te.themeColor,showArrow:p=Te.showArrow,arrowIconName:i=Te.arrowIconName,hover:u,focus:b,active:x,selected:h,disabled:L,icon:c,text:N,iconClassName:k,...S}=e,C=c!==void 0,T=e.children!==void 0;return rs("button",{...S,className:a(e.className,zt,g(zt,{size:t,rounded:o,fillMode:r,themeColor:l}),I(zt,{hover:u,focus:b,active:x,disabled:L,selected:h}),{"k-icon-button":!N&&!T&&C}),children:[c&&ct(M,{className:a(k,"k-button-icon"),icon:c}),N?rs(Ha,{children:[N&&ct("span",{className:"k-button-text",children:N}),e.children]}):e.children&&ct("span",{className:"k-button-text",children:e.children}),p&&ct("span",{className:"k-menu-button-arrow k-button-arrow",children:ct(M,{icon:i})})]})};v.states=Ka;v.options=Ra;v.className=zt;v.defaultOptions=Te;import{jsx as Ga}from"react/jsx-runtime";var Et=e=>Ga(v,{icon:"folder",...e,children:void 0});import{jsx as $a}from"react/jsx-runtime";var so=e=>$a(v,{icon:"folder",children:"Button",...e});import{jsx as El}from"react/jsx-runtime";import{jsx as _a}from"react/jsx-runtime";var dt="k-button-group",Da=[s.disabled],Va={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},is={fillMode:d.solid},P=e=>{let{fillMode:t=is.fillMode,disabled:o,stretched:r,...l}=e;return _a("div",{...l,className:a(e.className,dt,g(dt,{fillMode:t}),I(dt,{disabled:o}),{[`${dt}-stretched`]:r}),children:e.children})};P.states=Da;P.options=Va;P.className=dt;P.defaultOptions=is;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{Fragment as rp,jsx as np,jsxs as ip}from"react/jsx-runtime";import{Fragment as up,jsx as mp,jsxs as fp}from"react/jsx-runtime";import{jsx as Fa}from"react/jsx-runtime";var wt="k-input",Xa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ja={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Pt={size:n.medium,rounded:n.medium,fillMode:d.solid},z=e=>{let{hover:t,focus:o,disabled:r,invalid:l,valid:p,loading:i,readonly:u,size:b=Pt.size,rounded:x=Pt.rounded,fillMode:h=Pt.fillMode,...L}=e;return Fa("span",{...L,className:a(e.className,wt,g(wt,{size:b,rounded:x,fillMode:h}),I(wt,{hover:t,focus:o,disabled:r,invalid:l,valid:p,loading:i,readonly:u}))})};z.states=Xa;z.options=Ja;z.className=wt;z.defaultOptions=Pt;import{jsx as Wa}from"react/jsx-runtime";var Ot="k-picker",Ua=[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:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Kt={size:n.medium,rounded:f.medium,fillMode:d.solid},Y=e=>{let{hover:t,focus:o,disabled:r,invalid:l,valid:p,loading:i,readonly:u,size:b=Kt.size,rounded:x=Kt.rounded,fillMode:h=Kt.fillMode,...L}=e;return Wa("span",{...L,className:a(e.className,Ot,g(Ot,{size:b,rounded:x,fillMode:h}),I(Ot,{hover:t,focus:o,disabled:r,invalid:l,valid:p,loading:i,readonly:u})),children:e.children})};Y.states=Ua;Y.options=qa;Y.className=Ot;Y.defaultOptions=Kt;import{Fragment as Za,jsx as ao}from"react/jsx-runtime";var ls="k-clear-value",Qa=[s.disabled,s.loading,s.readonly],Ya={},Z=e=>{let{disabled:t,loading:o,readonly:r,value:l}=e;return t||r||o||!l?ao(Za,{}):ao("span",{className:a(e.className,ls),children:ao(M,{icon:"x"})})};Z.states=Qa;Z.options=Ya;Z.className=ls;import{jsx as tn}from"react/jsx-runtime";var no="k-input-inner",ja=[],en={},Rt={type:"text",autocomplete:"off",value:"",placeholder:""},j=e=>{let{value:t=Rt.value,type:o=Rt.type,placeholder:r=Rt.placeholder,autocomplete:l=Rt.autocomplete,...p}=e;return tn("input",{...p,type:o,className:a(e.className,no,g(no,e)),placeholder:r,autoComplete:l,defaultValue:t})};j.states=ja;j.options=en;j.className=no;import{jsx as ps,jsxs as an}from"react/jsx-runtime";var ro="k-input-inner",on=[],sn={},Ae=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:l,valueIconName:p,...i}=e;return an("span",{...i,className:a(e.className,ro,g(ro,e)),children:[l,!l&&p&&ps(M,{className:"k-input-value-icon",icon:p}),r&&!t&&o,r&&t&&ps("span",{className:"k-input-value-text",children:t})]})};Ae.states=on;Ae.options=sn;Ae.className=ro;import{jsx as ln}from"react/jsx-runtime";var io="k-input-inner",nn=[],rn={},cs={value:"",placeholder:""},lo=e=>{let{value:t=cs.value,placeholder:o=cs.placeholder,rows:r,...l}=e;return ln("textarea",{...l,className:a(e.className,io,g(io,e)),placeholder:o,rows:r,defaultValue:t})};lo.states=nn;lo.options=rn;lo.className=io;import{Fragment as cn,jsx as ds}from"react/jsx-runtime";var ms="k-input-loading-icon",pn=[s.disabled,s.loading],X=e=>{let{disabled:t,loading:o}=e;return t||!o?ds(cn,{}):ds("span",{className:a(e.className,ms,"k-icon k-i-loading")})};X.states=pn;X.className=ms;import{Fragment as un,jsx as us}from"react/jsx-runtime";var fs="k-input-validation-icon",dn=[s.valid,s.invalid,s.disabled,s.loading],mn={},_=e=>{let{valid:t,invalid:o,disabled:r,loading:l}=e,p=o?"warning-circle":"check-circle";return r||l||!!!(t||o)?us(un,{}):us(M,{className:a(fs),icon:p})};_.states=dn;_.options=mn;_.className=fs;import{Fragment as xn,jsx as bs}from"react/jsx-runtime";var fn="k-input-prefix",bn={direction:"horizontal"},se=e=>{let{direction:t=bn.direction,...o}=e;return e.children?bs("span",{...o,className:a(fn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):bs(xn,{})};import{Fragment as vn,jsx as xs}from"react/jsx-runtime";var hn="k-input-suffix",Nn={direction:"horizontal"},ae=e=>{let{direction:t=Nn.direction,...o}=e;return e.children?xs("span",{...o,className:a(hn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):xs(vn,{})};import{jsx as sc}from"react/jsx-runtime";import{jsx as ic}from"react/jsx-runtime";import{jsx as Ln}from"react/jsx-runtime";var hs="k-input-separator",kn={direction:"vertical"},ie=e=>{let{direction:t=kn.direction,...o}=e;return Ln("span",{...o,className:a(hs,e.className,{[`${hs}-${t}`]:t})})};import{jsx as Ns,jsxs as In}from"react/jsx-runtime";var vs="k-color-preview",Sn=[],gn={},be=e=>{let{color:t,iconName:o,...r}=e;return In("span",{...r,className:a(e.className,vs,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Ns(M,{icon:o,className:"k-color-preview-icon"}),Ns("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};be.states=Sn;be.options=gn;be.className=vs;import{jsx as ks}from"react/jsx-runtime";var Ls="k-animation-container",Mn=[],yn={},Ss={positionMode:"absolute"},xe=e=>{let{positionMode:t=Ss.positionMode,animationStyle:o,offset:r,...l}=e;return ks("div",{...l,style:{...r,...e.style},className:a(e.className,Ls,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:ks("div",{className:"k-child-animation-container",style:o,children:e.children})})};xe.states=Mn;xe.options=yn;xe.className=Ls;xe.defaultOptions=Ss;import{jsx as gs}from"react/jsx-runtime";var Is="k-popup",Cn=[],Tn={},Ms={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:o=Ms.positionMode,animationStyle:r,...l}=e;return gs(xe,{positionMode:o,offset:t,animationStyle:r,children:gs("div",{...l,className:a(e.className,Is),children:e.children})})};H.states=Cn;H.options=Tn;H.className=Is;H.defaultOptions=Ms;import{jsx as zn}from"react/jsx-runtime";var Ht="k-actions",An=[],Bn={},po={alignment:"start",orientation:"horizontal"},he=e=>{let{alignment:t=po.alignment,orientation:o=po.orientation,...r}=e;return zn("div",{...r,className:a(Ht,{[`${Ht}-${t}`]:t,[`${Ht}-${o}`]:o},e.className),children:e.children})};he.states=An;he.options=Bn;he.className=Ht;he.defaultOptions=po;import{jsx as wn}from"react/jsx-runtime";var En="k-actionsheet-footer",ys={alignment:"stretched",orientation:"horizontal"},mt=e=>{let{alignment:t=ys.alignment,orientation:o=ys.orientation,template:r,as:l=r?"div":he,...p}=e;return wn(l,{...p,...!r&&{alignment:t,orientation:o},className:a(e.className,En),children:e.children})};import{jsx as ut,jsxs as Kn}from"react/jsx-runtime";var Cs="k-searchbox",Pn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],On={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},co={showIcon:!0,icon:"search",size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode},le=e=>{let{value:t,placeholder:o,size:r,rounded:l,fillMode:p,hover:i,focus:u,valid:b,invalid:x,required:h,loading:L,disabled:c,showIcon:N=co.showIcon,icon:k=co.icon,...S}=e;return Kn(z,{...S,size:r,rounded:l,fillMode:p,hover:i,focus:u,valid:b,invalid:x,required:h,loading:L,disabled:c,className:a(e.className,Cs),children:[N&&ut(M,{className:"k-input-icon",icon:k}),ut(j,{placeholder:o,value:t}),ut(X,{...e}),ut(_,{...e}),ut(Z,{...e})]})};le.states=Pn;le.options=On;le.className=Cs;le.defaultOptions=co;import{jsx as rd}from"react/jsx-runtime";import{Fragment as Ts,jsx as Ne,jsxs as mo}from"react/jsx-runtime";var As="k-textbox",Rn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Hn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Be={showClearButton:!0,showValidationIcon:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},ve=e=>{let{size:t=Be.size,rounded:o=Be.rounded,fillMode:r=Be.fillMode,separators:l=Be.separators,showClearButton:p=Be.showClearButton,showValidationIcon:i=Be.showValidationIcon,prefix:u,suffix:b,type:x,value:h,placeholder:L,hover:c,focus:N,valid:k,invalid:S,required:C,loading:T,disabled:E,readonly:$,...fe}=e;return mo(z,{...fe,size:t,rounded:o,fillMode:r,hover:c,focus:N,valid:k,invalid:S,required:C,loading:T,disabled:E,readonly:$,className:a(e.className,As),children:[u&&mo(Ts,{children:[Ne(se,{children:u}),l&&Ne(ie,{})]}),Ne(j,{placeholder:L,value:h,type:x}),i&&Ne(_,{valid:k,invalid:S,loading:T,disabled:E}),Ne(X,{loading:T,disabled:E}),p&&Ne(Z,{loading:T,disabled:E,readonly:$,value:h}),b&&mo(Ts,{children:[l&&Ne(ie,{}),Ne(ae,{children:b})]})]})};ve.states=Rn;ve.options=Hn;ve.className=As;ve.defaultOptions=Be;import{jsx as hd}from"react/jsx-runtime";import{Fragment as gd,jsx as Sd}from"react/jsx-runtime";import{Fragment as Bd,jsx as Ad}from"react/jsx-runtime";import{jsx as ke,jsxs as uo}from"react/jsx-runtime";var zs="k-actionsheet-titlebar",Gn={},J=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:l,filter:p,input:i,inputValue:u,inputPlaceholder:b,adaptive:x,children:h,...L}=e;return uo("div",{...L,className:a(e.className,zs),children:[uo("div",{className:"k-actionsheet-titlebar-group",children:[r&&ke("div",{className:"k-actionsheet-actions",children:r}),!h&&uo("div",{className:"k-actionsheet-title",children:[t&&ke("div",{className:"k-text-center",children:t}),o&&ke("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&ke("div",{className:"k-actionsheet-title",children:h}),l&&ke("div",{className:"k-actionsheet-actions",children:l})]}),(i||p)&&ke("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?ke(ve,{value:u,placeholder:b,size:x?"large":"medium"}):ke(le,{placeholder:"Filter",size:x?"large":"medium"})})]})};J.className=zs;J.defaultOptions=Gn;import{jsx as fo,jsxs as _n}from"react/jsx-runtime";var bo="k-actionsheet-view",$n=[],Dn={},Vn={},Ve=e=>{let{adaptive:t,animated:o,children:r,header:l,footer:p,...i}=e,u=l?.type===J&&fo(J,{adaptive:t,...l?.props}),b=p?.type===mt&&fo(mt,{...p?.props});return _n("div",{...i,className:a(e.className,bo,{[`${bo}-animated`]:o}),children:[u,fo("div",{className:"k-actionsheet-content",children:r}),b]})};Ve.states=$n;Ve.options=Dn;Ve.className=bo;Ve.defaultOptions=Vn;import{jsx as Gt,jsxs as Fn}from"react/jsx-runtime";var Es="k-actionsheet",Xn=[],Jn={},ft={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ee=e=>{let{side:t=ft.side,fullscreen:o=ft.fullscreen,adaptive:r=ft.adaptive,overlay:l=ft.overlay,template:p,children:i,header:u,footer:b,...x}=e;return Fn("div",{className:"k-actionsheet-container",children:[l&&Gt("div",{className:"k-overlay"}),Gt(xe,{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:Gt("div",{...x,className:a(e.className,Es,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:p||Gt(Ve,{header:u,footer:b,adaptive:r,...e,children:i})})})]})};ee.states=Xn;ee.options=Jn;ee.className=Es;ee.defaultOptions=ft;import{jsx as em}from"react/jsx-runtime";import{Fragment as qn,jsx as bt,jsxs as xo}from"react/jsx-runtime";var ho="k-actionsheet-item",Un=[s.hover,s.focus,s.selected,s.disabled],No=e=>{let{iconName:t,text:o,description:r,hover:l,focus:p,selected:i,disabled:u,...b}=e;return xo("span",{...b,className:a(e.className,ho,I(ho,{hover:l,focus:p,selected:i,disabled:u})),children:[!e.children&&bt(qn,{children:xo("span",{className:"k-actionsheet-action",children:[t&&bt("span",{className:"k-icon-wrap",children:bt(M,{className:"k-actionsheet-item-icon",icon:t})}),xo("span",{className:"k-actionsheet-item-text",children:[o&&bt("span",{className:"k-actionsheet-item-title",children:o}),r&&bt("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};No.states=Un;No.className=ho;import{jsx as pm,jsxs as cm}from"react/jsx-runtime";import{jsx as fm}from"react/jsx-runtime";import{jsx as Nm}from"react/jsx-runtime";import{jsx as Sm}from"react/jsx-runtime";import{jsx as _e,jsxs as vo}from"react/jsx-runtime";var xt="k-slider",Wn=[s.hover,s.focus,s.active,s.disabled,s.readonly],Qn={},Le={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},F=e=>{let{type:t=Le.type,orientation:o=Le.orientation,readonly:r=Le.readonly,disabled:l=Le.disabled,handlePosition:p=Le.handlePosition,showButtons:i=Le.showButtons,showTicks:u=Le.showTicks,hover:b,focus:x,active:h,trackStyle:L,dir:c,...N}=e,k,S;return o==="horizontal"?(k=c==="rtl"?"caret-alt-left":"caret-alt-right",S=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(k="caret-alt-up",S="caret-alt-down"),vo("div",{...N,className:a(xt,e.className,I(xt,{readonly:r,disabled:l}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[i&&_e(v,{className:"k-button-decrease",rounded:"full",icon:S}),vo("div",{className:"k-slider-track-wrap",children:[u&&_e("ul",{className:"k-reset k-slider-items",children:e.children}),vo("div",{className:"k-slider-track",style:L,children:[_e("div",{className:"k-slider-selection"}),t==="range"&&_e("span",{className:a("k-draghandle","k-draghandle-start",I(xt,{hover:b,focus:x,active:h}))}),_e("span",{className:a("k-draghandle",`k-draghandle-${p}`,I(xt,{hover:b,focus:x,active:h}))})]})]}),i&&_e(v,{className:"k-button-increase",rounded:"full",icon:k})]})};F.states=Wn;F.options=Qn;F.className=xt;F.defaultOptions=Le;import{jsx as Ps}from"react/jsx-runtime";var Os="k-tick",Yn=[],Zn={},Ks={label:!1},Se=e=>{let{style:t,label:o=Ks.label,orientation:r,large:l,text:p,...i}=e;return Ps("li",{...i,className:a(e.className,Os,{[`k-tick-${r}`]:r,"k-tick-large":l}),style:t,children:o&&Ps("span",{className:"k-label",children:p})})};Se.states=Yn;Se.options=Zn;Se.className=Os;Se.defaultOptions=Ks;import{Fragment as Jm,jsx as Xm,jsxs as Fm}from"react/jsx-runtime";import{Fragment as Ym,jsx as Qm,jsxs as Zm}from"react/jsx-runtime";import{Fragment as su,jsx as ou,jsxs as au}from"react/jsx-runtime";import{Fragment as pu,jsx as lu,jsxs as cu}from"react/jsx-runtime";import{jsx as jn}from"react/jsx-runtime";var ko=e=>jn(F,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as er}from"react/jsx-runtime";var Lo=e=>er(F,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Rs,jsxs as sr}from"react/jsx-runtime";var Hs="k-spin-button",tr=[],or={size:[n.small,n.medium,n.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},So={size:n.medium,fillMode:d.solid},Xe=e=>{let{size:t=So.size,fillMode:o=So.fillMode,...r}=e;return sr("span",{...r,className:a(Hs,e.className),children:[Rs(v,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Rs(v,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Xe.states=tr;Xe.options=or;Xe.className=Hs;Xe.defaultOptions=So;import{Fragment as Gs,jsx as pe,jsxs as go}from"react/jsx-runtime";var $s="k-numerictextbox",ar=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],nr={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:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},K=e=>{let{size:t=ze.size,rounded:o=ze.rounded,fillMode:r=ze.fillMode,separators:l=ze.separators,showClearButton:p=ze.showClearButton,showSpinButton:i=ze.showSpinButton,prefix:u,suffix:b,value:x,placeholder:h,hover:L,focus:c,valid:N,invalid:k,required:S,loading:C,disabled:T,readonly:E,...$}=e;return go(z,{...$,size:t,rounded:o,fillMode:r,hover:L,focus:c,valid:N,invalid:k,required:S,loading:C,disabled:T,readonly:E,className:a(e.className,$s),children:[u&&go(Gs,{children:[pe(se,{children:u}),l&&pe(ie,{})]}),pe(j,{placeholder:h,value:x}),pe(_,{valid:N,invalid:k,loading:C,disabled:T}),pe(X,{loading:C,disabled:T}),p&&pe(Z,{loading:C,disabled:T,readonly:E,value:x}),b&&go(Gs,{children:[l&&pe(ie,{}),pe(ae,{children:b})]}),i&&pe(Xe,{className:"k-input-spinner",size:t,fillMode:r})]})};K.states=ar;K.options=nr;K.className=$s;K.defaultOptions=ze;import{jsx as $u}from"react/jsx-runtime";import{jsx as ir}from"react/jsx-runtime";var rr="k-no-data",ht=e=>ir("span",{className:a(rr,e.className),children:e.children});import{jsx as Je,jsxs as Vs}from"react/jsx-runtime";var Io="k-list",lr=[],pr={size:[n.small,n.medium,n.large]},_s={size:n.medium},w=e=>{let{size:t=_s.size,virtualization:o,children:r,optionLabel:l,customValue:p,screenReaders:i,...u}=e,b,x,h,L,c=[];return r?r.map((N,k)=>{N.type===G?(N.props.root===!0?(b=N.props.label,N.props.children.map((S,C)=>{c.push(Je(y,{...S.props},`optChild-${C}-${new Date().getTime()}`))})):N.props.children.forEach((S,C)=>{let T="";C===0&&(T=N.props.label),c.push(Je(y,{className:C===0?"k-first":"",...S.props,groupLabel:T},`groupLabel-${C}-${new Date().getTime()}`))}),x=Je(G,{label:b,virtualization:o,children:c})):N.type===y&&(c.push(Je(y,{...N.props},`${N.type}-${k}`)),h=Je(Fe,{virtualization:o,children:c}),i&&(L=Vs(ht,{className:"k-sr-only",children:[c.length," items found."]})))}):L=Je(ht,{children:"No data found."}),Vs("div",{...u,className:a(e.className,Io,g(Io,{size:t}),{"k-virtual-list":o}),children:[l,p,x,h,L]})};w.states=lr;w.options=pr;w.className=Io;w.defaultOptions=_s;import{jsx as Ee,jsxs as mr}from"react/jsx-runtime";var Mo="k-list",cr=[],dr={size:[n.small,n.medium,n.large]},Xs={size:n.medium},we=e=>{let{size:t=Xs.size,virtualization:o,children:r,...l}=e,p,i,u,b=[];return r?r.map((x,h)=>{x.type===G?(x.props.root===!0?(p=x.props.label,x.props.children.map((L,c)=>{b.push(Ee(y,{...L.props},`optChild-${c}-${new Date().getTime()}`))})):(b.push(Ee(Js,{...x.props,children:x.props.label},`listChild-${h}`)),x.props.children.map((L,c)=>{b.push(Ee(y,{...L.props},`fwOptChild-${c}-${new Date().getTime()}`))})),i=Ee(G,{label:p,virtualization:o,children:b})):x.type===y&&(b.push(Ee(y,{...x.props},`${x.type}-${h}`)),u=Ee(Fe,{virtualization:o,children:b}))}):u=Ee(ht,{children:"No data found."}),mr("div",{...l,className:a(e.className,Mo,g(Mo,{size:t}),{"k-virtual-list":o}),children:[i,u]})};we.states=cr;we.options=dr;we.className=Mo;we.defaultOptions=Xs;import{jsx as Fs}from"react/jsx-runtime";var $t="k-checkbox",ur=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],fr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},yo={size:n.medium,rounded:f.medium},ge=e=>{let{id:t,checked:o,indeterminate:r,hover:l,focus:p,disabled:i,invalid:u,valid:b,required:x,size:h=yo.size,rounded:L=yo.rounded,...c}=e;return Fs("span",{className:"k-checkbox-wrap",children:Fs("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:x,className:a(e.className,$t,g($t,{size:h,rounded:L}),I($t,{hover:l,focus:p,disabled:i,invalid:u,valid:b,indeterminate:r,checked:o}))})})};ge.states=ur;ge.options=fr;ge.className=$t;ge.defaultOptions=yo;import{jsx as hr}from"react/jsx-runtime";var Us="k-checkbox-list",br=[],xr={},qs={layout:"vertical"},Ue=e=>{let{layout:t=qs.layout,...o}=e;return hr("ul",{...o,className:a(e.className,Us,{[`k-list-${t}`]:t}),children:e.children})};Ue.states=br;Ue.options=xr;Ue.className=Us;Ue.defaultOptions=qs;import{jsx as Lr}from"react/jsx-runtime";var Ws="k-checkbox-list-item",Nr=[],vr={},kr={},qe=e=>{let{...t}=e;return Lr("li",{...t,className:a(e.className,Ws),children:e.children})};qe.states=Nr;qe.options=vr;qe.className=Ws;qe.defaultOptions=kr;import{Fragment as xf,jsx as bf,jsxs as hf}from"react/jsx-runtime";import{Fragment as Sf,jsx as Lf,jsxs as gf}from"react/jsx-runtime";import{Fragment as Tf,jsx as Cf,jsxs as Af}from"react/jsx-runtime";import{Fragment as Pf,jsx as wf,jsxs as Of}from"react/jsx-runtime";import{jsx as Gf}from"react/jsx-runtime";import{jsx as _f}from"react/jsx-runtime";import{jsx as Dt,jsxs as Mr}from"react/jsx-runtime";var To="k-list-item",Sr=[s.hover,s.focus,s.selected,s.disabled],gr={},Ir={},y=e=>{let{text:t,groupLabel:o,group:r,showIcon:l,iconName:p,showCheckbox:i,checked:u,hover:b,focus:x,selected:h,disabled:L,...c}=e,N=t||e.children;return Mr("li",{...c,className:a(e.className,r?"k-list-group-item":To,I(To,{hover:b,focus:x,disabled:L,selected:h})),children:[i&&Dt(ge,{checked:u}),l&&Dt(M,{icon:p}),Dt("span",{className:"k-list-item-text",children:N}),o&&o!==""&&Dt("div",{className:"k-list-item-group-label",children:o})]})};y.states=Sr;y.options=gr;y.className=To;y.defaultOptions=Ir;import{jsx as Ao,jsxs as Cr}from"react/jsx-runtime";var yr="k-list-content",Fe=e=>{let{virtualization:t,...o}=e;return Cr("div",{...o,className:a(yr,e.className),children:[Ao("ul",{className:a("k-list-ul"),children:e.children}),t&&Ao("div",{className:"k-height-container",children:Ao("div",{})})]})};import{jsx as Qs}from"react/jsx-runtime";var Tr="k-list-group-sticky-header",Ys=e=>Qs("div",{className:a(Tr,e.className),children:Qs("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Ar,jsx as Zs,jsxs as Br}from"react/jsx-runtime";var G=e=>{let{virtualization:t,label:o}=e;return Br(Ar,{children:[o&&Zs(Ys,{children:o}),e.children&&Zs(Fe,{virtualization:t,children:e.children})]})};import{jsx as js}from"react/jsx-runtime";var zr="k-list-group-item",Js=e=>js("li",{className:a(zr,e.className),children:js("span",{className:"k-list-item-text",children:e.children})});import{jsx as Or}from"react/jsx-runtime";var Bo="k-list-optionlabel",Er=[s.hover,s.focus,s.selected,s.disabled],wr={},Pr={},Vt=e=>{let{text:t,hover:o,focus:r,selected:l,disabled:p,...i}=e;return Or("div",{...i,className:a(Bo,I(Bo,{hover:o,focus:r,selected:l,disabled:p})),children:t})};Vt.states=Er;Vt.options=wr;Vt.className=Bo;Vt.defaultOptions=Pr;import{jsx as Gr}from"react/jsx-runtime";var zo="k-list-custom-value",Kr=[s.hover,s.focus,s.selected,s.disabled],Rr={},Hr={},Ie=e=>{let{text:t,hover:o,focus:r,selected:l,disabled:p,...i}=e;return Gr("div",{...i,className:a(zo,I(zo,{hover:o,focus:r,selected:l,disabled:p})),children:t})};Ie.states=Kr;Ie.options=Rr;Ie.className=zo;Ie.defaultOptions=Hr;import{jsx as yb}from"react/jsx-runtime";import{jsx as Bb}from"react/jsx-runtime";import{jsx as Pb,jsxs as Ob}from"react/jsx-runtime";import{jsx as Gb,jsxs as $b}from"react/jsx-runtime";import{jsx as Xb}from"react/jsx-runtime";import{jsx as qb,jsxs as Wb}from"react/jsx-runtime";import{jsx as jb,jsxs as ex}from"react/jsx-runtime";import{Fragment as Vr,jsx as D,jsxs as Eo}from"react/jsx-runtime";var ea="k-dropdownlist",$r=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Dr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},We={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:d.solid},Me=e=>{let{size:t=We.size,rounded:o=We.rounded,fillMode:r=We.fillMode,arrowIconName:l=We.arrowIconName,showValue:p=We.showValue,valueIconName:i,prefix:u,suffix:b,value:x,placeholder:h,hover:L,focus:c,valid:N,invalid:k,required:S,loading:C,disabled:T,readonly:E,popup:$,opened:fe,adaptive:nt,adaptiveSettings:rt,adaptiveTitle:Qt,adaptiveSubtitle:Yt,adaptiveFilter:Sa,...ga}=e;return Eo(Vr,{children:[Eo(Y,{...ga,size:t,rounded:o,fillMode:r,hover:L,focus:c,valid:N,invalid:k,required:S,loading:C,disabled:T,readonly:E,className:a(e.className,ea,{"k-icon-picker":!p&&i}),children:[D(se,{children:u}),D(Ae,{placeholder:h,value:x,showValue:p,valueIconName:i}),D(_,{valid:N,invalid:k,loading:C,disabled:T}),D(X,{loading:C,disabled:T}),D(ae,{children:b}),D(v,{className:"k-input-button",icon:l,rounded:null,size:e.size,fillMode:e.fillMode})]}),fe&&$&&D(H,{className:"k-list-container k-dropdownlist-popup",children:$}),nt&&D(ee,{adaptive:!0,...rt,header:D(J,{actionsEnd:D(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Sa,inputValue:x,inputPlaceholder:h,title:Qt,subtitle:Yt}),children:D("div",{className:"k-list-container",children:Eo(w,{size:"large",children:[D(y,{text:"List item"}),D(y,{text:"List item"}),D(y,{text:"List item"})]})})})]})};Me.states=$r;Me.options=Dr;Me.className=ea;Me.defaultOptions=We;import{jsx as Bx}from"react/jsx-runtime";import{jsx as Ox,jsxs as Kx}from"react/jsx-runtime";import{Fragment as Xx,jsx as Vx,jsxs as _x}from"react/jsx-runtime";import{jsx as qx}from"react/jsx-runtime";import{jsx as jx,jsxs as eh}from"react/jsx-runtime";import{jsx as nh,jsxs as rh}from"react/jsx-runtime";import{Fragment as fh,jsx as mh,jsxs as uh}from"react/jsx-runtime";import{Fragment as Sh,jsx as kh,jsxs as Lh}from"react/jsx-runtime";import{Fragment as Hh,jsx as Rh}from"react/jsx-runtime";import{Fragment as Jh,jsx as Xh}from"react/jsx-runtime";import{Fragment as Nt,jsx as A,jsxs as O}from"react/jsx-runtime";var ta="k-colorgradient-inputs",_r=[],Xr={size:[n.small,n.medium,n.large]},oa={mode:"rgba",size:n.medium},Qe=e=>{let{mode:t=oa.mode,size:o,...r}=e;return O("div",{...r,className:a(ta,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(v,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&O(Nt,{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(Nt,{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(Nt,{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(Nt,{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(Nt,{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"})]})})]})};Qe.states=_r;Qe.options=Xr;Qe.className=ta;Qe.defaultOptions=oa;import{jsx as Oe,jsxs as Ke}from"react/jsx-runtime";var sa="k-colorgradient-color-contrast",Jr=[],Fr={},Ur={},Ye=()=>Ke("div",{className:a(sa,"k-vbox"),children:[Ke("div",{className:"k-contrast-ratio",children:[Oe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Ke("span",{className:"k-contrast-validation !k-text-success",children:[Oe(M,{icon:"check"}),Oe(M,{icon:"check"})]})]}),Ke("div",{children:[Oe("span",{children:"AA: 4.5"}),Ke("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Oe(M,{icon:"check"})]})]}),Ke("div",{children:[Oe("span",{children:"AAA: 7.0"}),Ke("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Oe(M,{icon:"x"})]})]})]});Ye.states=Jr;Ye.options=Fr;Ye.className=sa;Ye.defaultOptions=Ur;import{jsx as U,jsxs as vt}from"react/jsx-runtime";var _t="k-colorgradient",qr=[s.hover,s.focus,s.readonly,s.disabled],Wr={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"},ye=e=>{let{size:t=te.size,mode:o=te.mode,readonly:r=te.readonly,disabled:l=te.disabled,gradientStyle:p=te.gradientStyle,dragHandleStyle:i=te.dragHandleStyle,alphaStyle:u=te.alphaStyle,alphaStyleHorizontal:b=te.alphaStyleHorizontal,contrast:x=te.contrast,dir:h,hover:L,focus:c,hoverHandle:N,focusHandle:k,canvasOrientation:S=te.canvasOrientation,...C}=e;return vt("div",{...C,className:a(e.className,_t,g(_t,{size:t}),I(_t,{hover:L,focus:c,readonly:r,disabled:l})),dir:h,children:[!S||S==="horizontal"&&vt("div",{className:"k-colorgradient-canvas k-hstack",children:[U("div",{className:"k-hsv-rectangle",style:p,children:U("div",{className:"k-hsv-gradient",children:U("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:i})})}),vt("div",{className:"k-hsv-controls k-hstack",children:[U(Lo,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&U(Lo,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:u})]})]}),S==="vertical"&&vt("div",{className:"k-colorgradient-canvas k-vstack",children:[U("div",{className:"k-hsv-rectangle",style:p,children:U("div",{className:"k-hsv-gradient",children:U("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:i})})}),vt("div",{className:"k-hsv-controls k-vstack",children:[U(ko,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&U(ko,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:b})]})]}),U(Qe,{mode:e.mode,size:t}),x&&U(Ye,{})]})};ye.states=qr;ye.options=Wr;ye.className=_t;ye.defaultOptions=te;import{jsx as xN}from"react/jsx-runtime";import{jsx as kN}from"react/jsx-runtime";import{jsx as Qr}from"react/jsx-runtime";var aa=e=>Qr("tr",{children:e.children});import{jsx as jr}from"react/jsx-runtime";var wo="k-colorpalette-tile",Yr=[s.hover,s.focus,s.selected],Zr={},kt=e=>{let{color:t,tileSize:o,hover:r,focus:l,selected:p,...i}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return jr("td",{...i,className:a(e.className,wo,I(wo,{hover:r,focus:l,selected:p})),style:u})};kt.states=Yr;kt.options=Zr;kt.className=wo;import{jsx as Lt}from"react/jsx-runtime";var Xt="k-colorpalette",ei=[s.disabled],ti={size:[n.small,n.medium,n.large]},Po={columns:10,size:n.medium},Ze=e=>{let{size:t=Po.size,palette:o,columns:r=Po.columns,tileSize:l,disabled:p,...i}=e,u=[];if(o){let b=r||o.columns,x=o.colors?o.colors:o;Array.isArray(x)&&Array.from({length:Math.ceil(x.length/b)},(h,L)=>{let c=[];x.slice(L*b,(L+1)*b).map((k,S)=>{c.push(Lt(kt,{color:k,tileSize:l},S))});let N=Lt(aa,{children:c},L);u.push(N)})}return Lt("div",{...i,className:a(e.className,Xt,I(Xt,{disabled:p}),g(Xt,{size:t})),children:Lt("table",{className:"k-colorpalette-table",children:Lt("tbody",{children:u.length>0?u:e.children})})})};Ze.states=ei;Ze.options=ti;Ze.className=Xt;Ze.defaultOptions=Po;var Oo={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 _N}from"react/jsx-runtime";import{jsx as q,jsxs as je}from"react/jsx-runtime";var Jt="k-coloreditor",oi=[s.focus],si={size:[n.small,n.medium,n.large]},et={size:n.medium,view:"gradient",palette:Oo.office,actionButtons:!0,canvasOrientation:"horizontal"},ne=e=>{let{size:t=et.size,view:o=et.view,palette:r=et.palette,color:l,currentColor:p,focus:i,focusView:u,dir:b,group:x,actionButtons:h=et.actionButtons,canvasOrientation:L=et.canvasOrientation,...c}=e;return je("div",{...c,className:a(e.className,"k-flatcolorpicker",Jt,g(Jt,{size:t}),I(Jt,{focus:i})),dir:b,children:[je("div",{className:"k-coloreditor-header k-hstack",children:[q("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&je(P,{fillMode:"flat",children:[q(v,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),q(v,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),q("div",{className:"k-spacer"}),je("div",{className:"k-coloreditor-header-actions k-hstack",children:[q(v,{fillMode:"flat",icon:"droplet-slash",size:t}),je("div",{className:"k-coloreditor-preview k-vstack",children:[q(be,{className:"k-coloreditor-preview-color",color:l}),q(be,{className:"k-coloreditor-current-color",color:p})]})]})]}),q("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?q(ye,{focus:u,size:t,canvasOrientation:L}):q(Ze,{palette:r,size:t})}),h&&je(he,{className:"k-coloreditor-footer",alignment:"start",children:[q(v,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),q(v,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ne.states=oi;ne.options=si;ne.className=Jt;ne.defaultOptions=et;import{jsx as lv}from"react/jsx-runtime";import{jsx as mv}from"react/jsx-runtime";import{jsx as xv}from"react/jsx-runtime";import{jsx as kv}from"react/jsx-runtime";import{Fragment as ri,jsx as W,jsxs as Ro}from"react/jsx-runtime";var na="k-colorpicker",ai=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled],ni={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},St={arrowIconName:"caret-alt-down",size:Y.defaultOptions.size,rounded:Y.defaultOptions.rounded,fillMode:Y.defaultOptions.fillMode},ce=e=>{let{size:t=St.size,rounded:o=St.rounded,fillMode:r=St.fillMode,arrowIconName:l=St.arrowIconName,prefix:p,suffix:i,value:u,placeholder:b,hover:x,focus:h,valid:L,invalid:c,required:N,disabled:k,valueIconName:S,popup:C,opened:T,adaptive:E,adaptiveSettings:$,adaptiveTitle:fe,adaptiveSubtitle:nt,...rt}=e;return Ro(ri,{children:[Ro(Y,{...rt,size:t,rounded:o,fillMode:r,hover:x,focus:h,valid:L,invalid:c,required:N,disabled:k,className:a(e.className,na,"k-icon-picker"),children:[W(se,{children:p}),W(Ae,{placeholder:b,value:u,showValue:!1,valueIcon:W(be,{className:"k-value-icon",color:u,iconName:S}),valueIconName:S}),W(ae,{children:i}),W(v,{className:"k-input-button",icon:l,rounded:null,size:t,fillMode:r})]}),T&&C&&W(H,{className:"k-colorpicker-popup",children:C}),E&&W(ee,{adaptive:!0,...$,header:W(J,{actionsEnd:W(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:fe,subtitle:nt}),footer:Ro(mt,{children:[W(v,{text:"Cancel",size:"large",themeColor:"base"}),W(v,{text:"Set",size:"large",themeColor:"primary"})]}),children:W(ne,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};ce.states=ai;ce.options=ni;ce.className=na;ce.defaultOptions=St;import{jsx as $v}from"react/jsx-runtime";import{jsx as Jv}from"react/jsx-runtime";import{jsx as Qv}from"react/jsx-runtime";import{jsx as ek}from"react/jsx-runtime";import{jsx as ak}from"react/jsx-runtime";import{jsx as lk}from"react/jsx-runtime";import{Fragment as Ho,jsx as R,jsxs as gt}from"react/jsx-runtime";var ra="k-combobox",li=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],pi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},It={size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},Re=e=>{let{size:t=It.size,rounded:o=It.rounded,fillMode:r=It.fillMode,separators:l=It.separators,prefix:p,suffix:i,value:u,placeholder:b,hover:x,focus:h,valid:L,invalid:c,required:N,loading:k,disabled:S,popup:C,opened:T,readonly:E,adaptive:$,adaptiveSettings:fe,adaptiveTitle:nt,adaptiveSubtitle:rt,adaptiveCustomValue:Qt,...Yt}=e;return gt(Ho,{children:[gt(z,{...Yt,size:t,rounded:o,fillMode:r,hover:x,focus:h,valid:L,invalid:c,required:N,loading:k,disabled:S,readonly:E,className:a(e.className,ra),children:[p&>(Ho,{children:[R(se,{children:p}),l&&R(ie,{})]}),R(j,{placeholder:b,value:u}),R(_,{valid:L,invalid:c,loading:k,disabled:S}),R(X,{loading:k,disabled:S}),R(Z,{loading:k,disabled:S,readonly:E,value:u}),i&>(Ho,{children:[l&&R(ie,{}),R(ae,{children: