@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 290 kB
JavaScript
var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>o({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),x=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},h={small:"small",medium:"medium",large:"large",full:"full"},b={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"},gt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{Fragment as Gv,jsx as kk}from"react/jsx-runtime";var Rc="k-icon k-font-icon",Ev=[],Yv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Pv={},ms=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?kk("span",{...d,className:o(e.className,Rc,C(Rc,{size:t}),{[`k-i-${r}`]:r,[`k-color-${a}`]:a,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"})}):kk(Gv,{})};ms.states=Ev;ms.options=Yv;ms.className=Rc;ms.defaultOptions=Pv;var fk=ms;import{Fragment as Fv,jsx as yn}from"react/jsx-runtime";var zc="k-icon k-svg-icon",Kv=[],Dv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},hk={viewBox:"0 0 24 24"},us=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=hk.viewBox,icon:d,...p}=e;if(!d)return yn(Fv,{});d==="none"&&{...p,className:o(e.className,zc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return yn("span",{...p,className:o(e.className,zc,C("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${a}`]:a,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),children:yn("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:i,dangerouslySetInnerHTML:typeof d=="object"?{__html:d.content}:void 0,children:d?void 0:e.children})})};us.states=Kv;us.options=Dv;us.className=zc;us.defaultOptions=hk;var Hc=us;import*as gk from"@progress/kendo-svg-icons";import{Fragment as xk,jsx as ks}from"react/jsx-runtime";var Rv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),zv=[],Hv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Oc={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:a,icon:r,type:s=Oc.type,rotate:i,flip:d,viewBox:p=Oc.viewBox,...m}=e;if(!r)return ks(xk,{});if(s==="svg"){if(r==="none")return ks(Hc,{...m,icon:r,size:t});let k=Rv(`${r}-icon`);return gk[k]?ks(Hc,{...m,icon:gk[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):ks(xk,{})}return ks(fk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};y.states=zv;y.options=Hv;y.defaultOptions=Oc;var Wc=y;import{Fragment as Qv,jsx as fs,jsxs as bk}from"react/jsx-runtime";var wn="k-button",Ov=[l.hover,l.focus,l.active,l.selected,l.disabled],Wv={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Ta={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Ta.size,rounded:a=Ta.rounded,fillMode:r=Ta.fillMode,themeColor:s=Ta.themeColor,showArrow:i=Ta.showArrow,arrowIconName:d=Ta.arrowIconName,hover:p,focus:m,active:k,selected:v,disabled:T,icon:g,text:A,iconClassName:N,...S}=e,B=g!==void 0,L=e.children!==void 0;return bk("button",{...S,className:o(e.className,wn,C(wn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(wn,{hover:p,focus:m,active:k,disabled:T,selected:v}),{"k-icon-button":!A&&!L&&B}),children:[g&&fs(y,{className:o(N,"k-button-icon"),icon:g}),A?bk(Qv,{children:[A&&fs("span",{className:"k-button-text",children:A}),e.children]}):e.children&&fs("span",{className:"k-button-text",children:e.children}),i&&fs("span",{className:"k-menu-button-arrow k-button-arrow",children:fs(y,{icon:d})})]})};c.states=Ov;c.options=Wv;c.className=wn;c.defaultOptions=Ta;import{jsx as Vv}from"react/jsx-runtime";var Ze=e=>Vv(c,{icon:"folder",...e,children:void 0});import{jsx as Xv}from"react/jsx-runtime";var Rt=e=>Xv(c,{icon:"folder",children:"Button",...e});import{jsx as FG}from"react/jsx-runtime";import{jsx as jv}from"react/jsx-runtime";var hs="k-button-group",Zv=[l.disabled],Jv={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},vk={fillMode:b.solid},Y=e=>{let{fillMode:t=vk.fillMode,disabled:a,stretched:r,...s}=e;return jv("div",{...s,className:o(e.className,hs,C(hs,{fillMode:t}),x(hs,{disabled:a}),{[`${hs}-stretched`]:r}),children:e.children})};Y.states=Zv;Y.options=Jv;Y.className=hs;Y.defaultOptions=vk;import{Fragment as _G,jsx as qG,jsxs as $G}from"react/jsx-runtime";import{Fragment as rK,jsx as lK,jsxs as sK}from"react/jsx-runtime";import{Fragment as mK,jsx as pK,jsxs as uK}from"react/jsx-runtime";import{Fragment as bK,jsx as xK,jsxs as vK}from"react/jsx-runtime";import{jsx as _v}from"react/jsx-runtime";var Tn="k-input",Uv=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],qv={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},An={size:n.medium,rounded:n.medium,fillMode:b.solid},M=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=An.size,rounded:k=An.rounded,fillMode:v=An.fillMode,...T}=e;return _v("span",{...T,className:o(e.className,Tn,C(Tn,{size:m,rounded:k,fillMode:v}),x(Tn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=Uv;M.options=qv;M.className=Tn;M.defaultOptions=An;import{jsx as ty}from"react/jsx-runtime";var Nn="k-picker",$v=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],ey={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Cn={size:n.medium,rounded:h.medium,fillMode:b.solid},xt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=Cn.size,rounded:k=Cn.rounded,fillMode:v=Cn.fillMode,...T}=e;return ty("span",{...T,className:o(e.className,Nn,C(Nn,{size:m,rounded:k,fillMode:v}),x(Nn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};xt.states=$v;xt.options=ey;xt.className=Nn;xt.defaultOptions=Cn;import{Fragment as ly,jsx as Qc}from"react/jsx-runtime";var yk="k-clear-value",oy=[l.disabled,l.loading,l.readonly],ay={},te=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Qc(ly,{}):Qc("span",{className:o(e.className,yk),children:Qc(y,{icon:"x"})})};te.states=oy;te.options=ay;te.className=yk;import{jsx as iy}from"react/jsx-runtime";var Vc="k-input-inner",ry=[],sy={},Sn={type:"text",autocomplete:"off",value:"",placeholder:""},se=e=>{let{value:t=Sn.value,type:a=Sn.type,placeholder:r=Sn.placeholder,autocomplete:s=Sn.autocomplete,...i}=e;return iy("input",{...i,type:a,className:o(e.className,Vc,C(Vc,e)),placeholder:r,autoComplete:s,defaultValue:t})};se.states=ry;se.options=sy;se.className=Vc;import{jsx as wk,jsxs as cy}from"react/jsx-runtime";var Xc="k-input-inner",ny=[],dy={},bo=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return cy("span",{...d,className:o(e.className,Xc,C(Xc,e)),children:[s,!s&&i&&wk(y,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&wk("span",{className:"k-input-value-text",children:t})]})};bo.states=ny;bo.options=dy;bo.className=Xc;import{jsx as uy}from"react/jsx-runtime";var Zc="k-input-inner",py=[],my={},Tk={value:"",placeholder:""},gs=e=>{let{value:t=Tk.value,placeholder:a=Tk.placeholder,rows:r,...s}=e;return uy("textarea",{...s,className:o(e.className,Zc,C(Zc,e)),placeholder:a,rows:r,defaultValue:t})};gs.states=py;gs.options=my;gs.className=Zc;import{Fragment as fy,jsx as Ak}from"react/jsx-runtime";var Nk="k-input-loading-icon",ky=[l.disabled,l.loading],J=e=>{let{disabled:t,loading:a}=e;return t||!a?Ak(fy,{}):Ak("span",{className:o(e.className,Nk,"k-icon k-i-loading")})};J.states=ky;J.className=Nk;import{Fragment as xy,jsx as Ck}from"react/jsx-runtime";var Sk="k-input-validation-icon",hy=[l.valid,l.invalid,l.disabled,l.loading],gy={},X=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Ck(xy,{}):Ck(y,{className:o(Sk),icon:i})};X.states=hy;X.options=gy;X.className=Sk;import{Fragment as yy,jsx as Ik}from"react/jsx-runtime";var by="k-input-prefix",vy={direction:"horizontal"},$=e=>{let{direction:t=vy.direction,...a}=e;return e.children?Ik("span",{...a,className:o(by,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ik(yy,{})};import{Fragment as Ay,jsx as Bk}from"react/jsx-runtime";var wy="k-input-suffix",Ty={direction:"horizontal"},ee=e=>{let{direction:t=Ty.direction,...a}=e;return e.children?Bk("span",{...a,className:o(wy,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Bk(Ay,{})};import{jsx as dD}from"react/jsx-runtime";import{jsx as uD}from"react/jsx-runtime";import{jsx as Cy}from"react/jsx-runtime";var Mk="k-input-separator",Ny={direction:"vertical"},ge=e=>{let{direction:t=Ny.direction,...a}=e;return Cy("span",{...a,className:o(Mk,e.className,{[`${Mk}-${t}`]:t})})};import{jsx as Lk,jsxs as By}from"react/jsx-runtime";var Ek="k-color-preview",Sy=[],Iy={},Go=e=>{let{color:t,iconName:a,...r}=e;return By("span",{...r,className:o(e.className,Ek,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&Lk(y,{icon:a,className:"k-color-preview-icon"}),Lk("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Go.states=Sy;Go.options=Iy;Go.className=Ek;import{jsx as Yk}from"react/jsx-runtime";var Pk="k-animation-container",My=[],Ly={},Gk={positionMode:"absolute"},Ko=e=>{let{positionMode:t=Gk.positionMode,animationStyle:a,offset:r,...s}=e;return Yk("div",{...s,style:{...r,...e.style},className:o(e.className,Pk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Yk("div",{className:"k-child-animation-container",style:a,children:e.children})})};Ko.states=My;Ko.options=Ly;Ko.className=Pk;Ko.defaultOptions=Gk;import{jsx as Kk}from"react/jsx-runtime";var Dk="k-popup",Ey=[],Yy={},Fk={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:a=Fk.positionMode,animationStyle:r,...s}=e;return Kk(Ko,{positionMode:a,offset:t,animationStyle:r,children:Kk("div",{...s,className:o(e.className,Dk),children:e.children})})};F.states=Ey;F.options=Yy;F.className=Dk;F.defaultOptions=Fk;import{jsx as Ky}from"react/jsx-runtime";var In="k-actions",Py=[],Gy={},Jc={alignment:"start",orientation:"horizontal"},W=e=>{let{alignment:t=Jc.alignment,orientation:a=Jc.orientation,...r}=e;return Ky("div",{...r,className:o(In,{[`${In}-${t}`]:t,[`${In}-${a}`]:a},e.className),children:e.children})};W.states=Py;W.options=Gy;W.className=In;W.defaultOptions=Jc;var Rk=W;import{jsx as Fy}from"react/jsx-runtime";var Dy="k-actionsheet-footer",zk={alignment:"stretched",orientation:"horizontal"},zt=e=>{let{alignment:t=zk.alignment,orientation:a=zk.orientation,template:r,as:s=r?"div":W,...i}=e;return Fy(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,Dy),children:e.children})};import{jsx as xs,jsxs as Hy}from"react/jsx-runtime";var Hk="k-searchbox",Ry=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],zy={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},jc={showIcon:!0,icon:"search",size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},De=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:T,disabled:g,showIcon:A=jc.showIcon,icon:N=jc.icon,...S}=e;return Hy(M,{...S,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:T,disabled:g,className:o(e.className,Hk),children:[A&&xs(y,{className:"k-input-icon",icon:N}),xs(se,{placeholder:a,value:t}),xs(J,{...e}),xs(X,{...e}),xs(te,{...e})]})};De.states=Ry;De.options=zy;De.className=Hk;De.defaultOptions=jc;import{jsx as mF}from"react/jsx-runtime";import{Fragment as Ok,jsx as Do,jsxs as Uc}from"react/jsx-runtime";var Wk="k-textbox",Oy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Wy={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Aa={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},Z=e=>{let{size:t=Aa.size,rounded:a=Aa.rounded,fillMode:r=Aa.fillMode,separators:s=Aa.separators,showClearButton:i=Aa.showClearButton,showValidationIcon:d=Aa.showValidationIcon,prefix:p,suffix:m,type:k,value:v,placeholder:T,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,...H}=e;return Uc(M,{...H,size:t,rounded:a,fillMode:r,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,className:o(e.className,Wk),children:[p&&Uc(Ok,{children:[Do($,{children:p}),s&&Do(ge,{})]}),Do(se,{placeholder:T,value:v,type:k}),d&&Do(X,{valid:N,invalid:S,loading:L,disabled:E}),Do(J,{loading:L,disabled:E}),i&&Do(te,{loading:L,disabled:E,readonly:D,value:v}),m&&Uc(Ok,{children:[s&&Do(ge,{}),Do(ee,{children:m})]})]})};Z.states=Oy;Z.options=Wy;Z.className=Wk;Z.defaultOptions=Aa;import{jsx as TF}from"react/jsx-runtime";import{Fragment as BF,jsx as IF}from"react/jsx-runtime";import{Fragment as GF,jsx as PF}from"react/jsx-runtime";import{jsx as Fo,jsxs as qc}from"react/jsx-runtime";var Xk="k-actionsheet-titlebar",Qy={},ae=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:v,...T}=e;return qc("div",{...T,className:o(e.className,Xk),children:[qc("div",{className:"k-actionsheet-titlebar-group",children:[r&&Fo("div",{className:"k-actionsheet-actions",children:r}),!v&&qc("div",{className:"k-actionsheet-title",children:[t&&Fo("div",{className:"k-text-center",children:t}),a&&Fo("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),v&&Fo("div",{className:"k-actionsheet-title",children:v}),s&&Fo("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Fo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Fo(Z,{value:p,placeholder:m,size:k?"large":"medium"}):Fo(De,{placeholder:"Filter",size:k?"large":"medium"})})]})};ae.className=Xk;ae.defaultOptions=Qy;import{jsx as _c,jsxs as Jy}from"react/jsx-runtime";var $c="k-actionsheet-view",Vy=[],Xy={},Zy={},Tl=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===ae&&_c(ae,{adaptive:t,...s?.props}),m=i?.type===zt&&_c(zt,{...i?.props});return Jy("div",{...d,className:o(e.className,$c,{[`${$c}-animated`]:a}),children:[p,_c("div",{className:"k-actionsheet-content",children:r}),m]})};Tl.states=Vy;Tl.options=Xy;Tl.className=$c;Tl.defaultOptions=Zy;import{jsx as Bn,jsxs as qy}from"react/jsx-runtime";var Zk="k-actionsheet",jy=[],Uy={},bs={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ie=e=>{let{side:t=bs.side,fullscreen:a=bs.fullscreen,adaptive:r=bs.adaptive,overlay:s=bs.overlay,template:i,children:d,header:p,footer:m,...k}=e;return qy("div",{className:"k-actionsheet-container",children:[s&&Bn("div",{className:"k-overlay"}),Bn(Ko,{animationStyle:{[`${a===!0?"top":t}`]:0,[`${a===!0?"width":null}`]:"100%",[`${a===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:Bn("div",{...k,className:o(e.className,Zk,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Bn(Tl,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};ie.states=jy;ie.options=Uy;ie.className=Zk;ie.defaultOptions=bs;import{jsx as rR}from"react/jsx-runtime";import{Fragment as $y,jsx as vs,jsxs as ep}from"react/jsx-runtime";var tp="k-actionsheet-item",_y=[l.hover,l.focus,l.selected,l.disabled],op=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return ep("span",{...m,className:o(e.className,tp,x(tp,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&vs($y,{children:ep("span",{className:"k-actionsheet-action",children:[t&&vs("span",{className:"k-icon-wrap",children:vs(y,{className:"k-actionsheet-item-icon",icon:t})}),ep("span",{className:"k-actionsheet-item-text",children:[a&&vs("span",{className:"k-actionsheet-item-title",children:a}),r&&vs("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};op.states=_y;op.className=tp;import{jsx as kR,jsxs as fR}from"react/jsx-runtime";import{jsx as bR}from"react/jsx-runtime";import{jsx as TR}from"react/jsx-runtime";import{jsx as SR}from"react/jsx-runtime";import{jsx as Al,jsxs as ap}from"react/jsx-runtime";var ys="k-slider",ew=[l.hover,l.focus,l.active,l.disabled,l.readonly],tw={},Ro={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},bt=e=>{let{type:t=Ro.type,orientation:a=Ro.orientation,readonly:r=Ro.readonly,disabled:s=Ro.disabled,handlePosition:i=Ro.handlePosition,showButtons:d=Ro.showButtons,showTicks:p=Ro.showTicks,hover:m,focus:k,active:v,trackStyle:T,dir:g,...A}=e,N,S;return a==="horizontal"?(N=g==="rtl"?"caret-alt-left":"caret-alt-right",S=g==="rtl"?"caret-alt-right":"caret-alt-left"):a==="vertical"&&(N="caret-alt-up",S="caret-alt-down"),ap("div",{...A,className:o(ys,e.className,x(ys,{readonly:r,disabled:s}),{[`k-slider-${a}`]:a,"k-colorgradient-slider":t==="gradient"}),dir:g,children:[d&&Al(c,{className:"k-button-decrease",rounded:"full",icon:S}),ap("div",{className:"k-slider-track-wrap",children:[p&&Al("ul",{className:"k-reset k-slider-items",children:e.children}),ap("div",{className:"k-slider-track",style:T,children:[Al("div",{className:"k-slider-selection"}),t==="range"&&Al("span",{className:o("k-draghandle","k-draghandle-start",x(ys,{hover:m,focus:k,active:v}))}),Al("span",{className:o("k-draghandle",`k-draghandle-${i}`,x(ys,{hover:m,focus:k,active:v}))})]})]}),d&&Al(c,{className:"k-button-increase",rounded:"full",icon:N})]})};bt.states=ew;bt.options=tw;bt.className=ys;bt.defaultOptions=Ro;import{jsx as jk}from"react/jsx-runtime";var Uk="k-tick",ow=[],aw={},qk={label:!1},Ge=e=>{let{style:t,label:a=qk.label,orientation:r,large:s,text:i,...d}=e;return jk("li",{...d,className:o(e.className,Uk,{[`k-tick-${r}`]:r,"k-tick-large":s}),style:t,children:a&&jk("span",{className:"k-label",children:i})})};Ge.states=ow;Ge.options=aw;Ge.className=Uk;Ge.defaultOptions=qk;import{Fragment as lw,jsx as Ct,jsxs as rw}from"react/jsx-runtime";var Mn=e=>Ct(bt,{children:rw(lw,{children:[Ct(Ge,{className:"k-first",label:!0,large:!0,text:"0"}),Ct(Ge,{}),Ct(Ge,{}),Ct(Ge,{}),Ct(Ge,{}),Ct(Ge,{label:!0,large:!0,text:"5"}),Ct(Ge,{}),Ct(Ge,{}),Ct(Ge,{}),Ct(Ge,{}),Ct(Ge,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as $R,jsx as _R,jsxs as ez}from"react/jsx-runtime";import{Fragment as rz,jsx as lz,jsxs as sz}from"react/jsx-runtime";import{Fragment as pz,jsx as cz,jsxs as mz}from"react/jsx-runtime";import{jsx as sw}from"react/jsx-runtime";var lp=e=>sw(bt,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as iw}from"react/jsx-runtime";var rp=e=>iw(bt,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as _k,jsxs as cw}from"react/jsx-runtime";var $k="k-spin-button",nw=[],dw={size:[n.small,n.medium,n.large],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},sp={size:n.medium,fillMode:b.solid},zo=e=>{let{size:t=sp.size,fillMode:a=sp.fillMode,...r}=e;return cw("span",{...r,className:o($k,e.className),children:[_k(c,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:a}),_k(c,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]})};zo.states=nw;zo.options=dw;zo.className=$k;zo.defaultOptions=sp;import{Fragment as ef,jsx as vo,jsxs as ip}from"react/jsx-runtime";var tf="k-numerictextbox",pw=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],mw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Na={showSpinButton:!0,showClearButton:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},ce=e=>{let{size:t=Na.size,rounded:a=Na.rounded,fillMode:r=Na.fillMode,separators:s=Na.separators,showClearButton:i=Na.showClearButton,showSpinButton:d=Na.showSpinButton,prefix:p,suffix:m,value:k,placeholder:v,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:E,...D}=e;return ip(M,{...D,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:E,className:o(e.className,tf),children:[p&&ip(ef,{children:[vo($,{children:p}),s&&vo(ge,{})]}),vo(se,{placeholder:v,value:k}),vo(X,{valid:A,invalid:N,loading:B,disabled:L}),vo(J,{loading:B,disabled:L}),i&&vo(te,{loading:B,disabled:L,readonly:E,value:k}),m&&ip(ef,{children:[s&&vo(ge,{}),vo(ee,{children:m})]}),d&&vo(zo,{className:"k-input-spinner",size:t,fillMode:r})]})};ce.states=pw;ce.options=mw;ce.className=tf;ce.defaultOptions=Na;import{jsx as Oz}from"react/jsx-runtime";import{jsx as kw}from"react/jsx-runtime";var uw="k-no-data",ws=e=>kw("span",{className:o(uw,e.className),children:e.children});import{jsx as Nl,jsxs as af}from"react/jsx-runtime";var np="k-list",fw=[],hw={size:[n.small,n.medium,n.large]},lf={size:n.medium},Q=e=>{let{size:t=lf.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:d,...p}=e,m,k,v,T,g=[];return r?r.map((A,N)=>{A.type===xe?(A.props.root===!0?(m=A.props.label,A.props.children.map((S,B)=>{g.push(Nl(P,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):A.props.children.forEach((S,B)=>{let L="";B===0&&(L=A.props.label),g.push(Nl(P,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=Nl(xe,{label:m,virtualization:a,children:g})):A.type===P&&(g.push(Nl(P,{...A.props},`${A.type}-${N}`)),v=Nl(Cl,{virtualization:a,children:g}),d&&(T=af(ws,{className:"k-sr-only",children:[g.length," items found."]})))}):T=Nl(ws,{children:"No data found."}),af("div",{...p,className:o(e.className,np,C(np,{size:t}),{"k-virtual-list":a}),children:[s,i,k,v,T]})};Q.states=fw;Q.options=hw;Q.className=np;Q.defaultOptions=lf;import{jsx as Ca,jsxs as bw}from"react/jsx-runtime";var dp="k-list",gw=[],xw={size:[n.small,n.medium,n.large]},rf={size:n.medium},Sa=e=>{let{size:t=rf.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,v)=>{k.type===xe?(k.props.root===!0?(i=k.props.label,k.props.children.map((T,g)=>{m.push(Ca(P,{...T.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Ca(sf,{...k.props,children:k.props.label},`listChild-${v}`)),k.props.children.map((T,g)=>{m.push(Ca(P,{...T.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Ca(xe,{label:i,virtualization:a,children:m})):k.type===P&&(m.push(Ca(P,{...k.props},`${k.type}-${v}`)),p=Ca(Cl,{virtualization:a,children:m}))}):p=Ca(ws,{children:"No data found."}),bw("div",{...s,className:o(e.className,dp,C(dp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Sa.states=gw;Sa.options=xw;Sa.className=dp;Sa.defaultOptions=rf;import{jsx as nf}from"react/jsx-runtime";var Ln="k-checkbox",vw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],yw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full]},cp={size:n.medium,rounded:h.medium},Oe=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:v=cp.size,rounded:T=cp.rounded,...g}=e;return nf("span",{className:"k-checkbox-wrap",children:nf("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Ln,C(Ln,{size:v,rounded:T}),x(Ln,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};Oe.states=vw;Oe.options=yw;Oe.className=Ln;Oe.defaultOptions=cp;import{jsx as Aw}from"react/jsx-runtime";var df="k-checkbox-list",ww=[],Tw={},cf={layout:"vertical"},Sl=e=>{let{layout:t=cf.layout,...a}=e;return Aw("ul",{...a,className:o(e.className,df,{[`k-list-${t}`]:t}),children:e.children})};Sl.states=ww;Sl.options=Tw;Sl.className=df;Sl.defaultOptions=cf;import{jsx as Iw}from"react/jsx-runtime";var pf="k-checkbox-list-item",Nw=[],Cw={},Sw={},Il=e=>{let{...t}=e;return Iw("li",{...t,className:o(e.className,pf),children:e.children})};Il.states=Nw;Il.options=Cw;Il.className=pf;Il.defaultOptions=Sw;import{Fragment as g0,jsx as h0,jsxs as x0}from"react/jsx-runtime";import{Fragment as T0,jsx as w0,jsxs as A0}from"react/jsx-runtime";import{Fragment as B0,jsx as I0,jsxs as M0}from"react/jsx-runtime";import{Fragment as G0,jsx as P0,jsxs as K0}from"react/jsx-runtime";import{jsx as z0}from"react/jsx-runtime";import{jsx as Q0}from"react/jsx-runtime";import{jsx as En,jsxs as Ew}from"react/jsx-runtime";var mp="k-list-item",Bw=[l.hover,l.focus,l.selected,l.disabled],Mw={},Lw={},P=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:k,selected:v,disabled:T,...g}=e,A=t||e.children;return Ew("li",{...g,className:o(e.className,r?"k-list-group-item":mp,x(mp,{hover:m,focus:k,disabled:T,selected:v})),children:[d&&En(Oe,{checked:p}),s&&En(y,{icon:i}),En("span",{className:"k-list-item-text",children:A}),a&&a!==""&&En("div",{className:"k-list-item-group-label",children:a})]})};P.states=Bw;P.options=Mw;P.className=mp;P.defaultOptions=Lw;import{jsx as up,jsxs as Pw}from"react/jsx-runtime";var Yw="k-list-content",Cl=e=>{let{virtualization:t,...a}=e;return Pw("div",{...a,className:o(Yw,e.className),children:[up("ul",{className:o("k-list-ul"),children:e.children}),t&&up("div",{className:"k-height-container",children:up("div",{})})]})};import{jsx as mf}from"react/jsx-runtime";var Gw="k-list-group-sticky-header",uf=e=>mf("div",{className:o(Gw,e.className),children:mf("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Kw,jsx as kf,jsxs as Dw}from"react/jsx-runtime";var xe=e=>{let{virtualization:t,label:a}=e;return Dw(Kw,{children:[a&&kf(uf,{children:a}),e.children&&kf(Cl,{virtualization:t,children:e.children})]})};import{jsx as ff}from"react/jsx-runtime";var Fw="k-list-group-item",sf=e=>ff("li",{className:o(Fw,e.className),children:ff("span",{className:"k-list-item-text",children:e.children})});import{jsx as Ow}from"react/jsx-runtime";var kp="k-list-optionlabel",Rw=[l.hover,l.focus,l.selected,l.disabled],zw={},Hw={},Yn=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Ow("div",{...d,className:o(kp,x(kp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Yn.states=Rw;Yn.options=zw;Yn.className=kp;Yn.defaultOptions=Hw;import{jsx as Xw}from"react/jsx-runtime";var fp="k-list-custom-value",Ww=[l.hover,l.focus,l.selected,l.disabled],Qw={},Vw={},Je=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Xw("div",{...d,className:o(fp,x(fp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Je.states=Ww;Je.options=Qw;Je.className=fp;Je.defaultOptions=Vw;import{jsx as SH}from"react/jsx-runtime";import{jsx as LH}from"react/jsx-runtime";import{jsx as GH,jsxs as KH}from"react/jsx-runtime";import{jsx as zH,jsxs as HH}from"react/jsx-runtime";import{jsx as VH}from"react/jsx-runtime";import{jsx as jH,jsxs as UH}from"react/jsx-runtime";import{jsx as e8,jsxs as t8}from"react/jsx-runtime";import{Fragment as jw,jsx as rt,jsxs as hp}from"react/jsx-runtime";var hf="k-dropdownlist",Zw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Jw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Bl={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:h.medium,fillMode:b.solid},le=e=>{let{size:t=Bl.size,rounded:a=Bl.rounded,fillMode:r=Bl.fillMode,arrowIconName:s=Bl.arrowIconName,showValue:i=Bl.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:v,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:E,popup:D,opened:H,adaptive:he,adaptiveSettings:Pe,adaptiveTitle:$e,adaptiveSubtitle:Ft,adaptiveFilter:wa,...wl}=e;return hp(jw,{children:[hp(xt,{...wl,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:E,className:o(e.className,hf,{"k-icon-picker":!i&&d}),children:[rt($,{children:p}),rt(bo,{placeholder:v,value:k,showValue:i,valueIconName:d}),rt(X,{valid:A,invalid:N,loading:B,disabled:L}),rt(J,{loading:B,disabled:L}),rt(ee,{children:m}),rt(c,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),H&&D&&rt(F,{className:"k-list-container k-dropdownlist-popup",children:D}),he&&rt(ie,{adaptive:!0,...Pe,header:rt(ae,{actionsEnd:rt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:wa,inputValue:k,inputPlaceholder:v,title:$e,subtitle:Ft}),children:rt("div",{className:"k-list-container",children:hp(Q,{size:"large",children:[rt(P,{text:"List item"}),rt(P,{text:"List item"}),rt(P,{text:"List item"})]})})})]})};le.states=Zw;le.options=Jw;le.className=hf;le.defaultOptions=Bl;import{jsx as L8}from"react/jsx-runtime";import{jsx as K8,jsxs as D8}from"react/jsx-runtime";import{Fragment as V8,jsx as W8,jsxs as Q8}from"react/jsx-runtime";import{jsx as j8}from"react/jsx-runtime";import{jsx as eO,jsxs as tO}from"react/jsx-runtime";import{jsx as sO,jsxs as iO}from"react/jsx-runtime";import{Fragment as fO,jsx as uO,jsxs as kO}from"react/jsx-runtime";import{Fragment as TO,jsx as yO,jsxs as wO}from"react/jsx-runtime";import{Fragment as RO,jsx as FO}from"react/jsx-runtime";import{Fragment as XO,jsx as VO}from"react/jsx-runtime";import{Fragment as Ts,jsx as U,jsxs as Ne}from"react/jsx-runtime";var gf="k-colorgradient-inputs",Uw=[],qw={size:[n.small,n.medium,n.large]},xf={mode:"rgba",size:n.medium},Ml=e=>{let{mode:t=xf.mode,size:a,...r}=e;return Ne("div",{...r,className:o(gf,"k-hstack"),children:[U("div",{className:"k-vstack",children:U(c,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:a})}),t==="rgba"&&Ne(Ts,{children:[Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),U("label",{className:"k-colorgradient-input-label",children:"R"})]}),Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),U("label",{className:"k-colorgradient-input-label",children:"G"})]}),Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),U("label",{className:"k-colorgradient-input-label",children:"B"})]}),Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:a}),U("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&Ne(Ts,{children:[Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"R"})]}),Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"G"})]}),Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&Ne(Ts,{children:[Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"H"})]}),Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"S"})]}),Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"V"})]}),Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),U("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&Ne(Ts,{children:[Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"H"})]}),Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"S"})]}),Ne("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&U(Ts,{children:Ne("div",{className:"k-vstack k-flex-1",children:[U(Z,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),U("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Ml.states=Uw;Ml.options=qw;Ml.className=gf;Ml.defaultOptions=xf;import{jsx as Ba,jsxs as Ma}from"react/jsx-runtime";var bf="k-colorgradient-color-contrast",_w=[],$w={},eT={},Ll=()=>Ma("div",{className:o(bf,"k-vbox"),children:[Ma("div",{className:"k-contrast-ratio",children:[Ba("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Ma("span",{className:"k-contrast-validation !k-text-success",children:[Ba(y,{icon:"check"}),Ba(y,{icon:"check"})]})]}),Ma("div",{children:[Ba("span",{children:"AA: 4.5"}),Ma("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ba(y,{icon:"check"})]})]}),Ma("div",{children:[Ba("span",{children:"AAA: 7.0"}),Ma("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ba(y,{icon:"x"})]})]})]});Ll.states=_w;Ll.options=$w;Ll.className=bf;Ll.defaultOptions=eT;import{jsx as St,jsxs as As}from"react/jsx-runtime";var Pn="k-colorgradient",tT=[l.hover,l.focus,l.readonly,l.disabled],oT={size:[n.small,n.medium,n.large]},Ht={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"},Ho=e=>{let{size:t=Ht.size,mode:a=Ht.mode,readonly:r=Ht.readonly,disabled:s=Ht.disabled,gradientStyle:i=Ht.gradientStyle,dragHandleStyle:d=Ht.dragHandleStyle,alphaStyle:p=Ht.alphaStyle,alphaStyleHorizontal:m=Ht.alphaStyleHorizontal,contrast:k=Ht.contrast,dir:v,hover:T,focus:g,hoverHandle:A,focusHandle:N,canvasOrientation:S=Ht.canvasOrientation,...B}=e;return As("div",{...B,className:o(e.className,Pn,C(Pn,{size:t}),x(Pn,{hover:T,focus:g,readonly:r,disabled:s})),dir:v,children:[!S||S==="horizontal"&&As("div",{className:"k-colorgradient-canvas k-hstack",children:[St("div",{className:"k-hsv-rectangle",style:i,children:St("div",{className:"k-hsv-gradient",children:St("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":A,"k-focus":N}),style:d})})}),As("div",{className:"k-hsv-controls k-hstack",children:[St(rp,{className:"k-hue-slider",hover:A,focus:N}),a!=="rgb"&&a!=="hsv"&&St(rp,{className:"k-alpha-slider",hover:A,focus:N,trackStyle:p})]})]}),S==="vertical"&&As("div",{className:"k-colorgradient-canvas k-vstack",children:[St("div",{className:"k-hsv-rectangle",style:i,children:St("div",{className:"k-hsv-gradient",children:St("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":A,"k-focus":N}),style:d})})}),As("div",{className:"k-hsv-controls k-vstack",children:[St(lp,{className:"k-hue-slider",hover:A,focus:N}),a!=="rgb"&&a!=="hsv"&&St(lp,{className:"k-alpha-slider",hover:A,focus:N,trackStyle:m})]})]}),St(Ml,{mode:e.mode,size:t}),k&&St(Ll,{})]})};Ho.states=tT;Ho.options=oT;Ho.className=Pn;Ho.defaultOptions=Ht;import{jsx as gW}from"react/jsx-runtime";import{jsx as yW}from"react/jsx-runtime";import{jsx as aT}from"react/jsx-runtime";var vf=e=>aT("tr",{children:e.children});import{jsx as sT}from"react/jsx-runtime";var gp="k-colorpalette-tile",lT=[l.hover,l.focus,l.selected],rT={},Ns=e=>{let{color:t,tileSize:a,hover:r,focus:s,selected:i,...d}=e,p={backgroundColor:t,width:a?a+"px":"",height:a?a+"px":""};return sT("td",{...d,className:o(e.className,gp,x(gp,{hover:r,focus:s,selected:i})),style:p})};Ns.states=lT;Ns.options=rT;Ns.className=gp;import{jsx as Cs}from"react/jsx-runtime";var Gn="k-colorpalette",iT=[l.disabled],nT={size:[n.small,n.medium,n.large]},xp={columns:10,size:n.medium},El=e=>{let{size:t=xp.size,palette:a,columns:r=xp.columns,tileSize:s,disabled:i,...d}=e,p=[];if(a){let m=r||a.columns,k=a.colors?a.colors:a;Array.isArray(k)&&Array.from({length:Math.ceil(k.length/m)},(v,T)=>{let g=[];k.slice(T*m,(T+1)*m).map((N,S)=>{g.push(Cs(Ns,{color:N,tileSize:s},S))});let A=Cs(vf,{children:g},T);p.push(A)})}return Cs("div",{...d,className:o(e.className,Gn,x(Gn,{disabled:i}),C(Gn,{size:t})),children:Cs("table",{className:"k-colorpalette-table",children:Cs("tbody",{children:p.length>0?p:e.children})})})};El.states=iT;El.options=nT;El.className=Gn;El.defaultOptions=xp;var bp={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 QW}from"react/jsx-runtime";import{jsx as It,jsxs as Yl}from"react/jsx-runtime";var Kn="k-coloreditor",dT=[l.focus],cT={size:[n.small,n.medium,n.large]},Pl={size:n.medium,view:"gradient",palette:bp.office,actionButtons:!0,canvasOrientation:"horizontal"},eo=e=>{let{size:t=Pl.size,view:a=Pl.view,palette:r=Pl.palette,color:s,currentColor:i,focus:d,focusView:p,dir:m,group:k,actionButtons:v=Pl.actionButtons,canvasOrientation:T=Pl.canvasOrientation,...g}=e;return Yl("div",{...g,className:o(e.className,"k-flatcolorpicker",Kn,C(Kn,{size:t}),x(Kn,{focus:d})),dir:m,children:[Yl("div",{className:"k-coloreditor-header k-hstack",children:[It("div",{className:"k-coloreditor-header-actions k-hstack",children:k&&Yl(Y,{fillMode:"flat",children:[It(c,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:a==="gradient"}),It(c,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:a==="palette"})]})}),It("div",{className:"k-spacer"}),Yl("div",{className:"k-coloreditor-header-actions k-hstack",children:[It(c,{fillMode:"flat",icon:"droplet-slash",size:t}),Yl("div",{className:"k-coloreditor-preview k-vstack",children:[It(Go,{className:"k-coloreditor-preview-color",color:s}),It(Go,{className:"k-coloreditor-current-color",color:i})]})]})]}),It("div",{className:"k-coloreditor-views k-vstack",children:a==="gradient"?It(Ho,{focus:p,size:t,canvasOrientation:T}):It(El,{palette:r,size:t})}),v&&Yl(W,{className:"k-coloreditor-footer",alignment:"start",children:[It(c,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),It(c,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};eo.states=dT;eo.options=cT;eo.className=Kn;eo.defaultOptions=Pl;import{jsx as dQ}from"react/jsx-runtime";import{jsx as uQ}from"react/jsx-runtime";import{jsx as gQ}from"react/jsx-runtime";import{jsx as yQ}from"react/jsx-runtime";import{Fragment as uT,jsx as Bt,jsxs as yp}from"react/jsx-runtime";var yf="k-colorpicker",pT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],mT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ss={arrowIconName:"caret-alt-down",size:xt.defaultOptions.size,rounded:xt.defaultOptions.rounded,fillMode:xt.defaultOptions.fillMode},Mt=e=>{let{size:t=Ss.size,rounded:a=Ss.rounded,fillMode:r=Ss.fillMode,arrowIconName:s=Ss.arrowIconName,prefix:i,suffix:d,value:p,placeholder:m,hover:k,focus:v,valid:T,invalid:g,required:A,disabled:N,valueIconName:S,popup:B,opened:L,adaptive:E,adaptiveSettings:D,adaptiveTitle:H,adaptiveSubtitle:he,...Pe}=e;return yp(uT,{children:[yp(xt,{...Pe,size:t,rounded:a,fillMode:r,hover:k,focus:v,valid:T,invalid:g,required:A,disabled:N,className:o(e.className,yf,"k-icon-picker"),children:[Bt($,{children:i}),Bt(bo,{placeholder:m,value:p,showValue:!1,valueIcon:Bt(Go,{className:"k-value-icon",color:p,iconName:S}),valueIconName:S}),Bt(ee,{children:d}),Bt(c,{className:"k-input-button",icon:s,rounded:null,size:t,fillMode:r})]}),L&&B&&Bt(F,{className:"k-colorpicker-popup",children:B}),E&&Bt(ie,{adaptive:!0,...D,header:Bt(ae,{actionsEnd:Bt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:H,subtitle:he}),footer:yp(zt,{children:[Bt(c,{text:"Cancel",size:"large",themeColor:"base"}),Bt(c,{text:"Set",size:"large",themeColor:"primary"})]}),children:Bt(eo,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};Mt.states=pT;Mt.options=mT;Mt.className=yf;Mt.defaultOptions=Ss;import{jsx as HQ}from"react/jsx-runtime";import{jsx as XQ}from"react/jsx-runtime";import{jsx as qQ}from"react/jsx-runtime";import{jsx as tV}from"react/jsx-runtime";import{jsx as rV}from"react/jsx-runtime";import{jsx as dV}from"react/jsx-runtime";import{Fragment as wp,jsx as Fe,jsxs as Is}from"react/jsx-runtime";var wf="k-combobox",fT=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],hT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Bs={size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},vt=e=>{let{size:t=Bs.size,rounded:a=Bs.rounded,fillMode:r=Bs.fillMode,separators:s=Bs.separators,prefix:i,suffix:d,value:p,placeholder:m,hover:k,focus:v,valid:T,invalid:g,required:A,loading:N,disabled:S,popup:B,opened:L,readonly:E,adaptive:D,adaptiveSettings:H,adaptiveTitle:he,adaptiveSubtitle:Pe,adaptiveCustomValue:$e,...Ft}=e;return Is(wp,{children:[Is(M,{...Ft,size:t,rounded:a,fillMode:r,hover:k,focus:v,valid:T,invalid:g,required:A,loading:N,disabled:S,rea