UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 293 kB
var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>o({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),v=(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 d={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 ty,jsx as Ak}from"react/jsx-runtime";var Zc="k-icon k-font-icon",_v=[],$v={size:[d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},ey={},gs=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...n}=e;return r?Ak("span",{...n,className:o(e.className,Zc,C(Zc,{size:t}),{[`k-i-${r}`]:r,[`k-color-${a}`]:a,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"})}):Ak(ty,{})};gs.states=_v;gs.options=$v;gs.className=Zc;gs.defaultOptions=ey;var Nk=gs;import{Fragment as ly,jsx as Mn}from"react/jsx-runtime";var Jc="k-icon k-svg-icon",oy=[],ay={size:[d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Ck={viewBox:"0 0 24 24"},xs=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=Ck.viewBox,icon:n,...c}=e;if(!n)return Mn(ly,{});n==="none"&&{...c,className:o(e.className,Jc,"k-none")};let m=typeof n=="object"&&n.name&&n.name;return Mn("span",{...c,className:o(e.className,Jc,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:Mn("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof n=="object"?n.viewBox:i,dangerouslySetInnerHTML:typeof n=="object"?{__html:n.content}:void 0,children:n?void 0:e.children})})};xs.states=oy;xs.options=ay;xs.className=Jc;xs.defaultOptions=Ck;var jc=xs;import*as Sk from"@progress/kendo-svg-icons";import{Fragment as Ik,jsx as bs}from"react/jsx-runtime";var ry=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),sy=[],iy={size:[d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Uc={viewBox:"0 0 24 24",type:"svg"},x=e=>{let{size:t,themeColor:a,icon:r,type:s=Uc.type,rotate:i,flip:n,viewBox:c=Uc.viewBox,...m}=e;if(!r)return bs(Ik,{});if(s==="svg"){if(r==="none")return bs(jc,{...m,icon:r,size:t});let k=ry(`${r}-icon`);return Sk[k]?bs(jc,{...m,icon:Sk[k],size:t,themeColor:a,rotate:i,flip:n,viewBox:c}):bs(Ik,{})}return bs(Nk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:n})};x.states=sy;x.options=iy;x.defaultOptions=Uc;var qc=x;import{Fragment as cy,jsx as vs,jsxs as Bk}from"react/jsx-runtime";var Ln="k-button",ny=[l.hover,l.focus,l.active,l.selected,l.disabled],dy={size:[d.small,d.medium,d.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]},Ca={size:d.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},p=e=>{let{size:t=Ca.size,rounded:a=Ca.rounded,fillMode:r=Ca.fillMode,themeColor:s=Ca.themeColor,showArrow:i=Ca.showArrow,arrowIconName:n=Ca.arrowIconName,hover:c,focus:m,active:k,selected:y,disabled:T,icon:g,text:A,iconClassName:N,...S}=e,I=g!==void 0,L=e.children!==void 0;return Bk("button",{...S,className:o(e.className,Ln,C(Ln,{size:t,rounded:a,fillMode:r,themeColor:s}),v(Ln,{hover:c,focus:m,active:k,disabled:T,selected:y}),{"k-icon-button":!A&&!L&&I}),children:[g&&vs(x,{className:o(N,"k-button-icon"),icon:g}),A?Bk(cy,{children:[A&&vs("span",{className:"k-button-text",children:A}),e.children]}):e.children&&vs("span",{className:"k-button-text",children:e.children}),i&&vs("span",{className:"k-menu-button-arrow k-button-arrow",children:vs(x,{icon:n})})]})};p.states=ny;p.options=dy;p.className=Ln;p.defaultOptions=Ca;import{jsx as py}from"react/jsx-runtime";var Ne=e=>py(p,{icon:"folder",...e,children:void 0});import{jsx as my}from"react/jsx-runtime";var Rt=e=>my(p,{icon:"folder",children:"Button",...e});import{jsx as aK}from"react/jsx-runtime";import{jsx as fy}from"react/jsx-runtime";var ys="k-button-group",uy=[l.disabled],ky={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},Mk={fillMode:b.solid},Y=e=>{let{fillMode:t=Mk.fillMode,disabled:a,stretched:r,...s}=e;return fy("div",{...s,className:o(e.className,ys,C(ys,{fillMode:t}),v(ys,{disabled:a}),{[`${ys}-stretched`]:r}),children:e.children})};Y.states=uy;Y.options=ky;Y.className=ys;Y.defaultOptions=Mk;import{Fragment as gK,jsx as hK,jsxs as xK}from"react/jsx-runtime";import{Fragment as AK,jsx as TK,jsxs as NK}from"react/jsx-runtime";import{Fragment as LK,jsx as MK,jsxs as EK}from"react/jsx-runtime";import{Fragment as FK,jsx as DK,jsxs as RK}from"react/jsx-runtime";import{jsx as xy}from"react/jsx-runtime";var En="k-input",hy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],gy={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Yn={size:d.medium,rounded:d.medium,fillMode:b.solid},M=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:n,readonly:c,size:m=Yn.size,rounded:k=Yn.rounded,fillMode:y=Yn.fillMode,...T}=e;return xy("span",{...T,className:o(e.className,En,C(En,{size:m,rounded:k,fillMode:y}),v(En,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:n,readonly:c}))})};M.states=hy;M.options=gy;M.className=En;M.defaultOptions=Yn;import{jsx as yy}from"react/jsx-runtime";var Pn="k-picker",by=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],vy={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Gn={size:d.medium,rounded:h.medium,fillMode:b.solid},xt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:n,readonly:c,size:m=Gn.size,rounded:k=Gn.rounded,fillMode:y=Gn.fillMode,...T}=e;return yy("span",{...T,className:o(e.className,Pn,C(Pn,{size:m,rounded:k,fillMode:y}),v(Pn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:n,readonly:c})),children:e.children})};xt.states=by;xt.options=vy;xt.className=Pn;xt.defaultOptions=Gn;import{Fragment as Ay,jsx as _c}from"react/jsx-runtime";var Lk="k-clear-value",wy=[l.disabled,l.loading,l.readonly],Ty={},te=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?_c(Ay,{}):_c("span",{className:o(e.className,Lk),children:_c(x,{icon:"x"})})};te.states=wy;te.options=Ty;te.className=Lk;import{jsx as Sy}from"react/jsx-runtime";var $c="k-input-inner",Ny=[],Cy={},Kn={type:"text",autocomplete:"off",value:"",placeholder:""},se=e=>{let{value:t=Kn.value,type:a=Kn.type,placeholder:r=Kn.placeholder,autocomplete:s=Kn.autocomplete,...i}=e;return Sy("input",{...i,type:a,className:o(e.className,$c,C($c,e)),placeholder:r,autoComplete:s,defaultValue:t})};se.states=Ny;se.options=Cy;se.className=$c;import{jsx as Ek,jsxs as My}from"react/jsx-runtime";var ep="k-input-inner",Iy=[],By={},wo=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...n}=e;return My("span",{...n,className:o(e.className,ep,C(ep,e)),children:[s,!s&&i&&Ek(x,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&Ek("span",{className:"k-input-value-text",children:t})]})};wo.states=Iy;wo.options=By;wo.className=ep;import{jsx as Yy}from"react/jsx-runtime";var tp="k-input-inner",Ly=[],Ey={},Yk={value:"",placeholder:""},ws=e=>{let{value:t=Yk.value,placeholder:a=Yk.placeholder,rows:r,...s}=e;return Yy("textarea",{...s,className:o(e.className,tp,C(tp,e)),placeholder:a,rows:r,defaultValue:t})};ws.states=Ly;ws.options=Ey;ws.className=tp;import{Fragment as Gy,jsx as Pk}from"react/jsx-runtime";var Gk="k-input-loading-icon",Py=[l.disabled,l.loading],J=e=>{let{disabled:t,loading:a}=e;return t||!a?Pk(Gy,{}):Pk("span",{className:o(e.className,Gk,"k-icon k-i-loading")})};J.states=Py;J.className=Gk;import{Fragment as Fy,jsx as Kk}from"react/jsx-runtime";var Dk="k-input-validation-icon",Ky=[l.valid,l.invalid,l.disabled,l.loading],Dy={},X=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Kk(Fy,{}):Kk(x,{className:o(Dk),icon:i})};X.states=Ky;X.options=Dy;X.className=Dk;import{Fragment as Hy,jsx as Fk}from"react/jsx-runtime";var Ry="k-input-prefix",zy={direction:"horizontal"},$=e=>{let{direction:t=zy.direction,...a}=e;return e.children?Fk("span",{...a,className:o(Ry,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Fk(Hy,{})};import{Fragment as Qy,jsx as Rk}from"react/jsx-runtime";var Oy="k-input-suffix",Wy={direction:"horizontal"},ee=e=>{let{direction:t=Wy.direction,...a}=e;return e.children?Rk("span",{...a,className:o(Oy,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Rk(Qy,{})};import{jsx as ID}from"react/jsx-runtime";import{jsx as ED}from"react/jsx-runtime";import{jsx as Xy}from"react/jsx-runtime";var zk="k-input-separator",Vy={direction:"vertical"},ge=e=>{let{direction:t=Vy.direction,...a}=e;return Xy("span",{...a,className:o(zk,e.className,{[`${zk}-${t}`]:t})})};import{jsx as Hk,jsxs as jy}from"react/jsx-runtime";var Ok="k-color-preview",Zy=[],Jy={},Do=e=>{let{color:t,iconName:a,...r}=e;return jy("span",{...r,className:o(e.className,Ok,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&Hk(x,{icon:a,className:"k-color-preview-icon"}),Hk("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Do.states=Zy;Do.options=Jy;Do.className=Ok;import{jsx as Wk}from"react/jsx-runtime";var Qk="k-animation-container",Uy=[],qy={},Vk={positionMode:"absolute"},Fo=e=>{let{positionMode:t=Vk.positionMode,animationStyle:a,offset:r,...s}=e;return Wk("div",{...s,style:{...r,...e.style},className:o(e.className,Qk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Wk("div",{className:"k-child-animation-container",style:a,children:e.children})})};Fo.states=Uy;Fo.options=qy;Fo.className=Qk;Fo.defaultOptions=Vk;import{jsx as Xk}from"react/jsx-runtime";var Zk="k-popup",_y=[],$y={},Jk={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:a=Jk.positionMode,animationStyle:r,...s}=e;return Xk(Fo,{positionMode:a,offset:t,animationStyle:r,children:Xk("div",{...s,className:o(e.className,Zk),children:e.children})})};F.states=_y;F.options=$y;F.className=Zk;F.defaultOptions=Jk;import{jsx as ow}from"react/jsx-runtime";var Dn="k-actions",ew=[],tw={},op={alignment:"start",orientation:"horizontal"},W=e=>{let{alignment:t=op.alignment,orientation:a=op.orientation,...r}=e;return ow("div",{...r,className:o(Dn,{[`${Dn}-${t}`]:t,[`${Dn}-${a}`]:a},e.className),children:e.children})};W.states=ew;W.options=tw;W.className=Dn;W.defaultOptions=op;var jk=W;import{jsx as lw}from"react/jsx-runtime";var aw="k-actionsheet-footer",Uk={alignment:"stretched",orientation:"horizontal"},zt=e=>{let{alignment:t=Uk.alignment,orientation:a=Uk.orientation,template:r,as:s=r?"div":W,...i}=e;return lw(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,aw),children:e.children})};import{jsx as Ts,jsxs as iw}from"react/jsx-runtime";var qk="k-searchbox",rw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],sw={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},ap={showIcon:!0,icon:"search",size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},Fe=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:n,focus:c,valid:m,invalid:k,required:y,loading:T,disabled:g,showIcon:A=ap.showIcon,icon:N=ap.icon,...S}=e;return iw(M,{...S,size:r,rounded:s,fillMode:i,hover:n,focus:c,valid:m,invalid:k,required:y,loading:T,disabled:g,className:o(e.className,qk),children:[A&&Ts(x,{className:"k-input-icon",icon:N}),Ts(se,{placeholder:a,value:t}),Ts(J,{...e}),Ts(X,{...e}),Ts(te,{...e})]})};Fe.states=rw;Fe.options=sw;Fe.className=qk;Fe.defaultOptions=ap;import{jsx as LF}from"react/jsx-runtime";import{Fragment as _k,jsx as Ro,jsxs as lp}from"react/jsx-runtime";var $k="k-textbox",nw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],dw={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Sa={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},U=e=>{let{size:t=Sa.size,rounded:a=Sa.rounded,fillMode:r=Sa.fillMode,separators:s=Sa.separators,showClearButton:i=Sa.showClearButton,showValidationIcon:n=Sa.showValidationIcon,prefix:c,suffix:m,type:k,value:y,placeholder:T,hover:g,focus:A,valid:N,invalid:S,required:I,loading:L,disabled:E,readonly:D,...O}=e;return lp(M,{...O,size:t,rounded:a,fillMode:r,hover:g,focus:A,valid:N,invalid:S,required:I,loading:L,disabled:E,readonly:D,className:o(e.className,$k),children:[c&&lp(_k,{children:[Ro($,{children:c}),s&&Ro(ge,{})]}),Ro(se,{placeholder:T,value:y,type:k}),n&&Ro(X,{valid:N,invalid:S,loading:L,disabled:E}),Ro(J,{loading:L,disabled:E}),i&&Ro(te,{loading:L,disabled:E,readonly:D,value:y}),m&&lp(_k,{children:[s&&Ro(ge,{}),Ro(ee,{children:m})]})]})};U.states=nw;U.options=dw;U.className=$k;U.defaultOptions=Sa;import{jsx as OF}from"react/jsx-runtime";import{Fragment as JF,jsx as ZF}from"react/jsx-runtime";import{Fragment as eR,jsx as $F}from"react/jsx-runtime";import{jsx as zo,jsxs as rp}from"react/jsx-runtime";var of="k-actionsheet-titlebar",cw={},ae=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:n,inputValue:c,inputPlaceholder:m,adaptive:k,children:y,...T}=e;return rp("div",{...T,className:o(e.className,of),children:[rp("div",{className:"k-actionsheet-titlebar-group",children:[r&&zo("div",{className:"k-actionsheet-actions",children:r}),!y&&rp("div",{className:"k-actionsheet-title",children:[t&&zo("div",{className:"k-text-center",children:t}),a&&zo("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),y&&zo("div",{className:"k-actionsheet-title",children:y}),s&&zo("div",{className:"k-actionsheet-actions",children:s})]}),(n||i)&&zo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:n?zo(U,{value:c,placeholder:m,size:k?"large":"medium"}):zo(Fe,{placeholder:"Filter",size:k?"large":"medium"})})]})};ae.className=of;ae.defaultOptions=cw;import{jsx as sp,jsxs as kw}from"react/jsx-runtime";var ip="k-actionsheet-view",pw=[],mw={},uw={},Al=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...n}=e,c=s?.type===ae&&sp(ae,{adaptive:t,...s?.props}),m=i?.type===zt&&sp(zt,{...i?.props});return kw("div",{...n,className:o(e.className,ip,{[`${ip}-animated`]:a}),children:[c,sp("div",{className:"k-actionsheet-content",children:r}),m]})};Al.states=pw;Al.options=mw;Al.className=ip;Al.defaultOptions=uw;import{jsx as Fn,jsxs as gw}from"react/jsx-runtime";var af="k-actionsheet",fw=[],hw={},As={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ie=e=>{let{side:t=As.side,fullscreen:a=As.fullscreen,adaptive:r=As.adaptive,overlay:s=As.overlay,template:i,children:n,header:c,footer:m,...k}=e;return gw("div",{className:"k-actionsheet-container",children:[s&&Fn("div",{className:"k-overlay"}),Fn(Fo,{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:Fn("div",{...k,className:o(e.className,af,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Fn(Al,{header:c,footer:m,adaptive:r,...e,children:n})})})]})};ie.states=fw;ie.options=hw;ie.className=af;ie.defaultOptions=As;import{jsx as AR}from"react/jsx-runtime";import{Fragment as bw,jsx as Ns,jsxs as np}from"react/jsx-runtime";var dp="k-actionsheet-item",xw=[l.hover,l.focus,l.selected,l.disabled],cp=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:n,disabled:c,...m}=e;return np("span",{...m,className:o(e.className,dp,v(dp,{hover:s,focus:i,selected:n,disabled:c})),children:[!e.children&&Ns(bw,{children:np("span",{className:"k-actionsheet-action",children:[t&&Ns("span",{className:"k-icon-wrap",children:Ns(x,{className:"k-actionsheet-item-icon",icon:t})}),np("span",{className:"k-actionsheet-item-text",children:[a&&Ns("span",{className:"k-actionsheet-item-title",children:a}),r&&Ns("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};cp.states=xw;cp.className=dp;import{jsx as YR,jsxs as PR}from"react/jsx-runtime";import{jsx as FR}from"react/jsx-runtime";import{jsx as OR}from"react/jsx-runtime";import{jsx as XR}from"react/jsx-runtime";import{jsx as Nl,jsxs as pp}from"react/jsx-runtime";var Cs="k-slider",vw=[l.hover,l.focus,l.active,l.disabled,l.readonly],yw={},Ho={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},bt=e=>{let{type:t=Ho.type,orientation:a=Ho.orientation,readonly:r=Ho.readonly,disabled:s=Ho.disabled,handlePosition:i=Ho.handlePosition,showButtons:n=Ho.showButtons,showTicks:c=Ho.showTicks,hover:m,focus:k,active:y,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"),pp("div",{...A,className:o(Cs,e.className,v(Cs,{readonly:r,disabled:s}),{[`k-slider-${a}`]:a,"k-colorgradient-slider":t==="gradient"}),dir:g,children:[n&&Nl(p,{className:"k-button-decrease",rounded:"full",icon:S}),pp("div",{className:"k-slider-track-wrap",children:[c&&Nl("ul",{className:"k-reset k-slider-items",children:e.children}),pp("div",{className:"k-slider-track",style:T,children:[Nl("div",{className:"k-slider-selection"}),t==="range"&&Nl("span",{className:o("k-draghandle","k-draghandle-start",v(Cs,{hover:m,focus:k,active:y}))}),Nl("span",{className:o("k-draghandle",`k-draghandle-${i}`,v(Cs,{hover:m,focus:k,active:y}))})]})]}),n&&Nl(p,{className:"k-button-increase",rounded:"full",icon:N})]})};bt.states=vw;bt.options=yw;bt.className=Cs;bt.defaultOptions=Ho;import{jsx as rf}from"react/jsx-runtime";var sf="k-tick",ww=[],Tw={},nf={label:!1},Ke=e=>{let{style:t,label:a=nf.label,orientation:r,large:s,text:i,...n}=e;return rf("li",{...n,className:o(e.className,sf,{[`k-tick-${r}`]:r,"k-tick-large":s}),style:t,children:a&&rf("span",{className:"k-label",children:i})})};Ke.states=ww;Ke.options=Tw;Ke.className=sf;Ke.defaultOptions=nf;import{Fragment as Aw,jsx as Ct,jsxs as Nw}from"react/jsx-runtime";var Rn=e=>Ct(bt,{children:Nw(Aw,{children:[Ct(Ke,{className:"k-first",label:!0,large:!0,text:"0"}),Ct(Ke,{}),Ct(Ke,{}),Ct(Ke,{}),Ct(Ke,{}),Ct(Ke,{label:!0,large:!0,text:"5"}),Ct(Ke,{}),Ct(Ke,{}),Ct(Ke,{}),Ct(Ke,{}),Ct(Ke,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as xz,jsx as gz,jsxs as bz}from"react/jsx-runtime";import{Fragment as Az,jsx as Tz,jsxs as Nz}from"react/jsx-runtime";import{Fragment as Mz,jsx as Bz,jsxs as Lz}from"react/jsx-runtime";import{jsx as Cw}from"react/jsx-runtime";var mp=e=>Cw(bt,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Sw}from"react/jsx-runtime";var up=e=>Sw(bt,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as df,jsxs as Mw}from"react/jsx-runtime";var cf="k-spin-button",Iw=[],Bw={size:[d.small,d.medium,d.large],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},kp={size:d.medium,fillMode:b.solid},Oo=e=>{let{size:t=kp.size,fillMode:a=kp.fillMode,...r}=e;return Mw("span",{...r,className:o(cf,e.className),children:[df(p,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:a}),df(p,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]})};Oo.states=Iw;Oo.options=Bw;Oo.className=cf;Oo.defaultOptions=kp;import{Fragment as pf,jsx as To,jsxs as fp}from"react/jsx-runtime";var mf="k-numerictextbox",Lw=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],Ew={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ia={showSpinButton:!0,showClearButton:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},ce=e=>{let{size:t=Ia.size,rounded:a=Ia.rounded,fillMode:r=Ia.fillMode,separators:s=Ia.separators,showClearButton:i=Ia.showClearButton,showSpinButton:n=Ia.showSpinButton,prefix:c,suffix:m,value:k,placeholder:y,hover:T,focus:g,valid:A,invalid:N,required:S,loading:I,disabled:L,readonly:E,...D}=e;return fp(M,{...D,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:S,loading:I,disabled:L,readonly:E,className:o(e.className,mf),children:[c&&fp(pf,{children:[To($,{children:c}),s&&To(ge,{})]}),To(se,{placeholder:y,value:k}),To(X,{valid:A,invalid:N,loading:I,disabled:L}),To(J,{loading:I,disabled:L}),i&&To(te,{loading:I,disabled:L,readonly:E,value:k}),m&&fp(pf,{children:[s&&To(ge,{}),To(ee,{children:m})]}),n&&To(Oo,{className:"k-input-spinner",size:t,fillMode:r})]})};ce.states=Lw;ce.options=Ew;ce.className=mf;ce.defaultOptions=Ia;import{jsx as i0}from"react/jsx-runtime";import{jsx as Pw}from"react/jsx-runtime";var Yw="k-no-data",Ss=e=>Pw("span",{className:o(Yw,e.className),children:e.children});import{jsx as Cl,jsxs as kf}from"react/jsx-runtime";var hp="k-list",Gw=[],Kw={size:[d.small,d.medium,d.large]},ff={size:d.medium},Q=e=>{let{size:t=ff.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:n,...c}=e,m,k,y,T,g=[];return r?r.map((A,N)=>{A.type===xe?(A.props.root===!0?(m=A.props.label,A.props.children.map((S,I)=>{g.push(Cl(P,{...S.props},`optChild-${I}-${new Date().getTime()}`))})):A.props.children.forEach((S,I)=>{let L="";I===0&&(L=A.props.label),g.push(Cl(P,{className:I===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${I}-${new Date().getTime()}`))}),k=Cl(xe,{label:m,virtualization:a,children:g})):A.type===P&&(g.push(Cl(P,{...A.props},`${A.type}-${N}`)),y=Cl(Sl,{virtualization:a,children:g}),n&&(T=kf(Ss,{className:"k-sr-only",children:[g.length," items found."]})))}):T=Cl(Ss,{children:"No data found."}),kf("div",{...c,className:o(e.className,hp,C(hp,{size:t}),{"k-virtual-list":a}),children:[s,i,k,y,T]})};Q.states=Gw;Q.options=Kw;Q.className=hp;Q.defaultOptions=ff;import{jsx as Ba,jsxs as Rw}from"react/jsx-runtime";var gp="k-list",Dw=[],Fw={size:[d.small,d.medium,d.large]},hf={size:d.medium},Ma=e=>{let{size:t=hf.size,virtualization:a,children:r,...s}=e,i,n,c,m=[];return r?r.map((k,y)=>{k.type===xe?(k.props.root===!0?(i=k.props.label,k.props.children.map((T,g)=>{m.push(Ba(P,{...T.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Ba(gf,{...k.props,children:k.props.label},`listChild-${y}`)),k.props.children.map((T,g)=>{m.push(Ba(P,{...T.props},`fwOptChild-${g}-${new Date().getTime()}`))})),n=Ba(xe,{label:i,virtualization:a,children:m})):k.type===P&&(m.push(Ba(P,{...k.props},`${k.type}-${y}`)),c=Ba(Sl,{virtualization:a,children:m}))}):c=Ba(Ss,{children:"No data found."}),Rw("div",{...s,className:o(e.className,gp,C(gp,{size:t}),{"k-virtual-list":a}),children:[n,c]})};Ma.states=Dw;Ma.options=Fw;Ma.className=gp;Ma.defaultOptions=hf;import{jsx as xf}from"react/jsx-runtime";var zn="k-checkbox",zw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],Hw={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full]},xp={size:d.medium,rounded:h.medium},We=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:n,invalid:c,valid:m,required:k,size:y=xp.size,rounded:T=xp.rounded,...g}=e;return xf("span",{className:"k-checkbox-wrap",children:xf("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,zn,C(zn,{size:y,rounded:T}),v(zn,{hover:s,focus:i,disabled:n,invalid:c,valid:m,indeterminate:r,checked:a}))})})};We.states=zw;We.options=Hw;We.className=zn;We.defaultOptions=xp;import{jsx as Qw}from"react/jsx-runtime";var bf="k-checkbox-list",Ow=[],Ww={},vf={layout:"vertical"},Il=e=>{let{layout:t=vf.layout,...a}=e;return Qw("ul",{...a,className:o(e.className,bf,{[`k-list-${t}`]:t}),children:e.children})};Il.states=Ow;Il.options=Ww;Il.className=bf;Il.defaultOptions=vf;import{jsx as Jw}from"react/jsx-runtime";var yf="k-checkbox-list-item",Vw=[],Xw={},Zw={},Bl=e=>{let{...t}=e;return Jw("li",{...t,className:o(e.className,yf),children:e.children})};Bl.states=Vw;Bl.options=Xw;Bl.className=yf;Bl.defaultOptions=Zw;import{Fragment as K0,jsx as G0,jsxs as D0}from"react/jsx-runtime";import{Fragment as O0,jsx as H0,jsxs as W0}from"react/jsx-runtime";import{Fragment as J0,jsx as Z0,jsxs as j0}from"react/jsx-runtime";import{Fragment as eH,jsx as $0,jsxs as tH}from"react/jsx-runtime";import{jsx as rH}from"react/jsx-runtime";import{jsx as dH}from"react/jsx-runtime";import{jsx as Hn,jsxs as _w}from"react/jsx-runtime";var vp="k-list-item",jw=[l.hover,l.focus,l.selected,l.disabled],Uw={},qw={},P=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:n,checked:c,hover:m,focus:k,selected:y,disabled:T,...g}=e,A=t||e.children;return _w("li",{...g,className:o(e.className,r?"k-list-group-item":vp,v(vp,{hover:m,focus:k,disabled:T,selected:y})),children:[n&&Hn(We,{checked:c}),s&&Hn(x,{icon:i}),Hn("span",{className:"k-list-item-text",children:A}),a&&a!==""&&Hn("div",{className:"k-list-item-group-label",children:a})]})};P.states=jw;P.options=Uw;P.className=vp;P.defaultOptions=qw;import{jsx as yp,jsxs as eT}from"react/jsx-runtime";var $w="k-list-content",Sl=e=>{let{virtualization:t,...a}=e;return eT("div",{...a,className:o($w,e.className),children:[yp("ul",{className:o("k-list-ul"),children:e.children}),t&&yp("div",{className:"k-height-container",children:yp("div",{})})]})};import{jsx as wf}from"react/jsx-runtime";var tT="k-list-group-sticky-header",Tf=e=>wf("div",{className:o(tT,e.className),children:wf("div",{className:"k-list-header-text",children:e.children})});import{Fragment as oT,jsx as Af,jsxs as aT}from"react/jsx-runtime";var xe=e=>{let{virtualization:t,label:a}=e;return aT(oT,{children:[a&&Af(Tf,{children:a}),e.children&&Af(Sl,{virtualization:t,children:e.children})]})};import{jsx as Nf}from"react/jsx-runtime";var lT="k-list-group-item",gf=e=>Nf("li",{className:o(lT,e.className),children:Nf("span",{className:"k-list-item-text",children:e.children})});import{jsx as nT}from"react/jsx-runtime";var wp="k-list-optionlabel",rT=[l.hover,l.focus,l.selected,l.disabled],sT={},iT={},On=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...n}=e;return nT("div",{...n,className:o(wp,v(wp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};On.states=rT;On.options=sT;On.className=wp;On.defaultOptions=iT;import{jsx as mT}from"react/jsx-runtime";var Tp="k-list-custom-value",dT=[l.hover,l.focus,l.selected,l.disabled],cT={},pT={},Je=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...n}=e;return mT("div",{...n,className:o(Tp,v(Tp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Je.states=dT;Je.options=cT;Je.className=Tp;Je.defaultOptions=pT;import{jsx as XH}from"react/jsx-runtime";import{jsx as UH}from"react/jsx-runtime";import{jsx as e8,jsxs as t8}from"react/jsx-runtime";import{jsx as r8,jsxs as s8}from"react/jsx-runtime";import{jsx as c8}from"react/jsx-runtime";import{jsx as k8,jsxs as f8}from"react/jsx-runtime";import{jsx as b8,jsxs as v8}from"react/jsx-runtime";import{Fragment as fT,jsx as lt,jsxs as Ap}from"react/jsx-runtime";var Cf="k-dropdownlist",uT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],kT={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ml={showValue:!0,arrowIconName:"caret-alt-down",size:d.medium,rounded:h.medium,fillMode:b.solid},le=e=>{let{size:t=Ml.size,rounded:a=Ml.rounded,fillMode:r=Ml.fillMode,arrowIconName:s=Ml.arrowIconName,showValue:i=Ml.showValue,valueIconName:n,prefix:c,suffix:m,value:k,placeholder:y,hover:T,focus:g,valid:A,invalid:N,required:S,loading:I,disabled:L,readonly:E,popup:D,opened:O,adaptive:he,adaptiveSettings:Ge,adaptiveTitle:_e,adaptiveSubtitle:Ft,adaptiveFilter:Na,...Tl}=e;return Ap(fT,{children:[Ap(xt,{...Tl,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:S,loading:I,disabled:L,readonly:E,className:o(e.className,Cf,{"k-icon-picker":!i&&n}),children:[lt($,{children:c}),lt(wo,{placeholder:y,value:k,showValue:i,valueIconName:n}),lt(X,{valid:A,invalid:N,loading:I,disabled:L}),lt(J,{loading:I,disabled:L}),lt(ee,{children:m}),lt(p,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),O&&D&&lt(F,{className:"k-list-container k-dropdownlist-popup",children:D}),he&&lt(ie,{adaptive:!0,...Ge,header:lt(ae,{actionsEnd:lt(p,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Na,inputValue:k,inputPlaceholder:y,title:_e,subtitle:Ft}),children:lt("div",{className:"k-list-container",children:Ap(Q,{size:"large",children:[lt(P,{text:"List item"}),lt(P,{text:"List item"}),lt(P,{text:"List item"})]})})})]})};le.states=uT;le.options=kT;le.className=Cf;le.defaultOptions=Ml;import{jsx as U8}from"react/jsx-runtime";import{jsx as tO,jsxs as oO}from"react/jsx-runtime";import{Fragment as cO,jsx as nO,jsxs as dO}from"react/jsx-runtime";import{jsx as kO}from"react/jsx-runtime";import{jsx as bO,jsxs as vO}from"react/jsx-runtime";import{jsx as NO,jsxs as CO}from"react/jsx-runtime";import{Fragment as PO,jsx as EO,jsxs as YO}from"react/jsx-runtime";import{Fragment as OO,jsx as zO,jsxs as HO}from"react/jsx-runtime";import{Fragment as lW,jsx as aW}from"react/jsx-runtime";import{Fragment as pW,jsx as cW}from"react/jsx-runtime";import{Fragment as Is,jsx as q,jsxs as Ce}from"react/jsx-runtime";var Sf="k-colorgradient-inputs",hT=[],gT={size:[d.small,d.medium,d.large]},If={mode:"rgba",size:d.medium},Ll=e=>{let{mode:t=If.mode,size:a,...r}=e;return Ce("div",{...r,className:o(Sf,"k-hstack"),children:[q("div",{className:"k-vstack",children:q(p,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:a})}),t==="rgba"&&Ce(Is,{children:[Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),q("label",{className:"k-colorgradient-input-label",children:"R"})]}),Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),q("label",{className:"k-colorgradient-input-label",children:"G"})]}),Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),q("label",{className:"k-colorgradient-input-label",children:"B"})]}),Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:a}),q("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&Ce(Is,{children:[Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),q("label",{className:"k-colorgradient-input-label",children:"R"})]}),Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),q("label",{className:"k-colorgradient-input-label",children:"G"})]}),Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),q("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&Ce(Is,{children:[Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),q("label",{className:"k-colorgradient-input-label",children:"H"})]}),Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),q("label",{className:"k-colorgradient-input-label",children:"S"})]}),Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),q("label",{className:"k-colorgradient-input-label",children:"V"})]}),Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),q("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&Ce(Is,{children:[Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),q("label",{className:"k-colorgradient-input-label",children:"H"})]}),Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),q("label",{className:"k-colorgradient-input-label",children:"S"})]}),Ce("div",{className:"k-vstack",children:[q(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),q("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&q(Is,{children:Ce("div",{className:"k-vstack k-flex-1",children:[q(U,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),q("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Ll.states=hT;Ll.options=gT;Ll.className=Sf;Ll.defaultOptions=If;import{jsx as Ea,jsxs as Ya}from"react/jsx-runtime";var Bf="k-colorgradient-color-contrast",xT=[],bT={},vT={},El=()=>Ya("div",{className:o(Bf,"k-vbox"),children:[Ya("div",{className:"k-contrast-ratio",children:[Ea("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Ya("span",{className:"k-contrast-validation !k-text-success",children:[Ea(x,{icon:"check"}),Ea(x,{icon:"check"})]})]}),Ya("div",{children:[Ea("span",{children:"AA: 4.5"}),Ya("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ea(x,{icon:"check"})]})]}),Ya("div",{children:[Ea("span",{children:"AAA: 7.0"}),Ya("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ea(x,{icon:"x"})]})]})]});El.states=xT;El.options=bT;El.className=Bf;El.defaultOptions=vT;import{jsx as St,jsxs as Bs}from"react/jsx-runtime";var Wn="k-colorgradient",yT=[l.hover,l.focus,l.readonly,l.disabled],wT={size:[d.small,d.medium,d.large]},Ht={size:d.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"},Wo=e=>{let{size:t=Ht.size,mode:a=Ht.mode,readonly:r=Ht.readonly,disabled:s=Ht.disabled,gradientStyle:i=Ht.gradientStyle,dragHandleStyle:n=Ht.dragHandleStyle,alphaStyle:c=Ht.alphaStyle,alphaStyleHorizontal:m=Ht.alphaStyleHorizontal,contrast:k=Ht.contrast,dir:y,hover:T,focus:g,hoverHandle:A,focusHandle:N,canvasOrientation:S=Ht.canvasOrientation,...I}=e;return Bs("div",{...I,className:o(e.className,Wn,C(Wn,{size:t}),v(Wn,{hover:T,focus:g,readonly:r,disabled:s})),dir:y,children:[!S||S==="horizontal"&&Bs("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:n})})}),Bs("div",{className:"k-hsv-controls k-hstack",children:[St(up,{className:"k-hue-slider",hover:A,focus:N}),a!=="rgb"&&a!=="hsv"&&St(up,{className:"k-alpha-slider",hover:A,focus:N,trackStyle:c})]})]}),S==="vertical"&&Bs("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:n})})}),Bs("div",{className:"k-hsv-controls k-vstack",children:[St(mp,{className:"k-hue-slider",hover:A,focus:N}),a!=="rgb"&&a!=="hsv"&&St(mp,{className:"k-alpha-slider",hover:A,focus:N,trackStyle:m})]})]}),St(Ll,{mode:e.mode,size:t}),k&&St(El,{})]})};Wo.states=yT;Wo.options=wT;Wo.className=Wn;Wo.defaultOptions=Ht;import{jsx as KW}from"react/jsx-runtime";import{jsx as zW}from"react/jsx-runtime";import{jsx as TT}from"react/jsx-runtime";var Mf=e=>TT("tr",{children:e.children});import{jsx as CT}from"react/jsx-runtime";var Np="k-colorpalette-tile",AT=[l.hover,l.focus,l.selected],NT={},Ms=e=>{let{color:t,tileSize:a,hover:r,focus:s,selected:i,...n}=e,c={backgroundColor:t,width:a?a+"px":"",height:a?a+"px":""};return CT("td",{...n,className:o(e.className,Np,v(Np,{hover:r,focus:s,selected:i})),style:c})};Ms.states=AT;Ms.options=NT;Ms.className=Np;import{jsx as Ls}from"react/jsx-runtime";var Qn="k-colorpalette",ST=[l.disabled],IT={size:[d.small,d.medium,d.large]},Cp={columns:10,size:d.medium},Yl=e=>{let{size:t=Cp.size,palette:a,columns:r=Cp.columns,tileSize:s,disabled:i,...n}=e,c=[];if(a){let m=r||a.columns,k=a.colors?a.colors:a;Array.isArray(k)&&Array.from({length:Math.ceil(k.length/m)},(y,T)=>{let g=[];k.slice(T*m,(T+1)*m).map((N,S)=>{g.push(Ls(Ms,{color:N,tileSize:s},S))});let A=Ls(Mf,{children:g},T);c.push(A)})}return Ls("div",{...n,className:o(e.className,Qn,v(Qn,{disabled:i}),C(Qn,{size:t})),children:Ls("table",{className:"k-colorpalette-table",children:Ls("tbody",{children:c.length>0?c:e.children})})})};Yl.states=ST;Yl.options=IT;Yl.className=Qn;Yl.defaultOptions=Cp;var Sp={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 dQ}from"react/jsx-runtime";import{jsx as It,jsxs as Pl}from"react/jsx-runtime";var Vn="k-coloreditor",BT=[l.focus],MT={size:[d.small,d.medium,d.large]},Gl={size:d.medium,view:"gradient",palette:Sp.office,actionButtons:!0,canvasOrientation:"horizontal"},eo=e=>{let{size:t=Gl.size,view:a=Gl.view,palette:r=Gl.palette,color:s,currentColor:i,focus:n,focusView:c,dir:m,group:k,actionButtons:y=Gl.actionButtons,canvasOrientation:T=Gl.canvasOrientation,...g}=e;return Pl("div",{...g,className:o(e.className,"k-flatcolorpicker",Vn,C(Vn,{size:t}),v(Vn,{focus:n})),dir:m,children:[Pl("div",{className:"k-coloreditor-header k-hstack",children:[It("div",{className:"k-coloreditor-header-actions k-hstack",children:k&&Pl(Y,{fillMode:"flat",children:[It(p,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:a==="gradient"}),It(p,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:a==="palette"})]})}),It("div",{className:"k-spacer"}),Pl("div",{className:"k-coloreditor-header-actions k-hstack",children:[It(p,{fillMode:"flat",icon:"droplet-slash",size:t}),Pl("div",{className:"k-coloreditor-preview k-vstack",children:[It(Do,{className:"k-coloreditor-preview-color",color:s}),It(Do,{className:"k-coloreditor-current-color",color:i})]})]})]}),It("div",{className:"k-coloreditor-views k-vstack",children:a==="gradient"?It(Wo,{focus:c,size:t,canvasOrientation:T}):It(Yl,{palette:r,size:t})}),y&&Pl(W,{className:"k-coloreditor-footer",alignment:"start",children:[It(p,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),It(p,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};eo.states=BT;eo.options=MT;eo.className=Vn;eo.defaultOptions=Gl;import{jsx as IQ}from"react/jsx-runtime";import{jsx as EQ}from"react/jsx-runtime";import{jsx as KQ}from"react/jsx-runtime";import{jsx as zQ}from"react/jsx-runtime";import{Fragment as YT,jsx as Bt,jsxs as Bp}from"react/jsx-runtime";var Lf="k-colorpicker",LT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],ET={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Es={arrowIconName:"caret-alt-down",size:xt.defaultOptions.size,rounded:xt.defaultOptions.rounded,fillMode:xt.defaultOptions.fillMode},Mt=e=>{let{size:t=Es.size,rounded:a=Es.rounded,fillMode:r=Es.fillMode,arrowIconName:s=Es.arrowIconName,prefix:i,suffix:n,value:c,placeholder:m,hover:k,focus:y,valid:T,invalid:g,required:A,disabled:N,valueIconName:S,popup:I,opened:L,adaptive:E,adaptiveSettings:D,adaptiveTitle:O,adaptiveSubtitle:he,...Ge}=e;return Bp(YT,{children:[Bp(xt,{...Ge,size:t,rounded:a,fillMode:r,hover:k,focus:y,valid:T,invalid:g,required:A,disabled:N,className:o(e.className,Lf,"k-icon-picker"),children:[Bt($,{children:i}),Bt(wo,{placeholder:m,value:c,showValue:!1,valueIcon:Bt(Do,{className:"k-value-icon",color:c,iconName:S}),valueIconName:S}),Bt(ee,{children:n}),Bt(p,{className:"k-input-button",icon:s,rounded:null,size:t,fillMode:r})]}),L&&I&&Bt(F,{className:"k-colorpicker-popup",children:I}),E&&Bt(ie,{adaptive:!0,...D,header:Bt(ae,{actionsEnd:Bt(p,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:O,subtitle:he}),footer:Bp(zt,{children:[Bt(p,{text:"Cancel",size:"large",themeColor:"base"}),Bt(p,{text:"Set",size:"large",themeColor:"primary"})]}),children:Bt(eo,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};Mt.states=LT;Mt.options=ET;Mt.className=Lf;Mt.defaultOptions=Es;import{jsx as sV}from"react/jsx-runtime";import{jsx as pV}from"react/jsx-runtime";import{jsx as hV}from"react/jsx-runtime";import{jsx as vV}from"react/jsx-runtime";import{jsx as AV}from"react/jsx-runtime";import{jsx as IV}from"react/jsx-runtime";import{Fragment as Mp,jsx as Re,jsxs as Ys}from"react/jsx-runtime";var Ef="k-combobox",GT=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],KT={size:[d.small,d.medium,d.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ps={size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},vt=e=>{let{size:t=Ps.size,rounded:a=Ps.rounded,fillMode:r=Ps.fillMode,separators:s=Ps.separators,prefix:i,suffix:n,value:c,placeholder:m,hover:k,focus:y,valid:T,invalid:g,required:A,loading:N,disabled:S,popup:I,opened:L,readonly:E,adaptive:D,adaptiveSettings:O,adaptiveTitle:he,adaptiveSubtitle:Ge,adaptiveCustomValue:_e,...Ft}=e;return Ys(Mp,{children:[Ys(M,{...Ft,size:t,rounded:a,fillMode:r,hover:k,focus:y,valid:T,invalid:g,required:A,loading:N,disabled:S,rea