@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 286 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"}),b=(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});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},x={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"},gt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{Fragment as kv,jsx as lk}from"react/jsx-runtime";var Yc="k-icon k-font-icon",pv=[],mv={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]},uv={},is=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?lk("span",{...d,className:o(e.className,Yc,C(Yc,{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"})}):lk(kv,{})};is.states=pv;is.options=mv;is.className=Yc;is.defaultOptions=uv;var rk=is;import{Fragment as gv,jsx as hn}from"react/jsx-runtime";var Pc="k-icon k-svg-icon",hv=[],fv={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]},sk={viewBox:"0 0 24 24"},ns=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=sk.viewBox,icon:d,...p}=e;if(!d)return hn(gv,{});d==="none"&&{...p,className:o(e.className,Pc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return hn("span",{...p,className:o(e.className,Pc,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:hn("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})})};ns.states=hv;ns.options=fv;ns.className=Pc;ns.defaultOptions=sk;var Gc=ns;import*as ik from"@progress/kendo-svg-icons";import{Fragment as nk,jsx as ds}from"react/jsx-runtime";var xv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),bv=[],vv={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]},Kc={viewBox:"0 0 24 24",type:"svg"},v=e=>{let{size:t,themeColor:a,icon:r,type:s=Kc.type,rotate:i,flip:d,viewBox:p=Kc.viewBox,...m}=e;if(!r)return ds(nk,{});if(s==="svg"){if(r==="none")return ds(Gc,{...m,icon:r,size:t});let k=xv(`${r}-icon`);return ik[k]?ds(Gc,{...m,icon:ik[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):ds(nk,{})}return ds(rk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};v.states=bv;v.options=vv;v.defaultOptions=Kc;var Dc=v;import{Fragment as Av,jsx as cs,jsxs as dk}from"react/jsx-runtime";var fn="k-button",yv=[l.hover,l.focus,l.active,l.selected,l.disabled],wv={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},va={size:n.medium,rounded:f.medium,fillMode:x.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=va.size,rounded:a=va.rounded,fillMode:r=va.fillMode,themeColor:s=va.themeColor,showArrow:i=va.showArrow,arrowIconName:d=va.arrowIconName,hover:p,focus:m,active:k,selected:y,disabled:A,icon:g,text:T,iconClassName:N,...S}=e,B=g!==void 0,L=e.children!==void 0;return dk("button",{...S,className:o(e.className,fn,C(fn,{size:t,rounded:a,fillMode:r,themeColor:s}),b(fn,{hover:p,focus:m,active:k,disabled:A,selected:y}),{"k-icon-button":!T&&!L&&B}),children:[g&&cs(v,{className:o(N,"k-button-icon"),icon:g}),T?dk(Av,{children:[T&&cs("span",{className:"k-button-text",children:T}),e.children]}):e.children&&cs("span",{className:"k-button-text",children:e.children}),i&&cs("span",{className:"k-menu-button-arrow k-button-arrow",children:cs(v,{icon:d})})]})};c.states=yv;c.options=wv;c.className=fn;c.defaultOptions=va;import{jsx as Tv}from"react/jsx-runtime";var $e=e=>Tv(c,{icon:"folder",...e,children:void 0});import{jsx as Nv}from"react/jsx-runtime";var Dt=e=>Nv(c,{icon:"folder",children:"Button",...e});import{jsx as tG}from"react/jsx-runtime";import{jsx as Iv}from"react/jsx-runtime";var ps="k-button-group",Cv=[l.disabled],Sv={fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},ck={fillMode:x.solid},Y=e=>{let{fillMode:t=ck.fillMode,disabled:a,stretched:r,...s}=e;return Iv("div",{...s,className:o(e.className,ps,C(ps,{fillMode:t}),b(ps,{disabled:a}),{[`${ps}-stretched`]:r}),children:e.children})};Y.states=Cv;Y.options=Sv;Y.className=ps;Y.defaultOptions=ck;import{Fragment as hG,jsx as kG,jsxs as fG}from"react/jsx-runtime";import{Fragment as wG,jsx as yG,jsxs as AG}from"react/jsx-runtime";import{Fragment as BG,jsx as IG,jsxs as MG}from"react/jsx-runtime";import{Fragment as KG,jsx as GG,jsxs as DG}from"react/jsx-runtime";import{jsx as Lv}from"react/jsx-runtime";var gn="k-input",Bv=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Mv={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},xn={size:n.medium,rounded:n.medium,fillMode:x.solid},M=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=xn.size,rounded:k=xn.rounded,fillMode:y=xn.fillMode,...A}=e;return Lv("span",{...A,className:o(e.className,gn,C(gn,{size:m,rounded:k,fillMode:y}),b(gn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=Bv;M.options=Mv;M.className=gn;M.defaultOptions=xn;import{jsx as Pv}from"react/jsx-runtime";var bn="k-picker",Ev=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Yv={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},vn={size:n.medium,rounded:f.medium,fillMode:x.solid},xt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=vn.size,rounded:k=vn.rounded,fillMode:y=vn.fillMode,...A}=e;return Pv("span",{...A,className:o(e.className,bn,C(bn,{size:m,rounded:k,fillMode:y}),b(bn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};xt.states=Ev;xt.options=Yv;xt.className=bn;xt.defaultOptions=vn;import{Fragment as Dv,jsx as Fc}from"react/jsx-runtime";var pk="k-clear-value",Gv=[l.disabled,l.loading,l.readonly],Kv={},te=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Fc(Dv,{}):Fc("span",{className:o(e.className,pk),children:Fc(v,{icon:"x"})})};te.states=Gv;te.options=Kv;te.className=pk;import{jsx as Rv}from"react/jsx-runtime";var zc="k-input-inner",Fv=[],zv={},yn={type:"text",autocomplete:"off",value:"",placeholder:""},le=e=>{let{value:t=yn.value,type:a=yn.type,placeholder:r=yn.placeholder,autocomplete:s=yn.autocomplete,...i}=e;return Rv("input",{...i,type:a,className:o(e.className,zc,C(zc,e)),placeholder:r,autoComplete:s,defaultValue:t})};le.states=Fv;le.options=zv;le.className=zc;import{jsx as mk,jsxs as Ov}from"react/jsx-runtime";var Rc="k-input-inner",Hv=[],Wv={},fo=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return Ov("span",{...d,className:o(e.className,Rc,C(Rc,e)),children:[s,!s&&i&&mk(v,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&mk("span",{className:"k-input-value-text",children:t})]})};fo.states=Hv;fo.options=Wv;fo.className=Rc;import{jsx as Xv}from"react/jsx-runtime";var Hc="k-input-inner",Qv=[],Vv={},uk={value:"",placeholder:""},ms=e=>{let{value:t=uk.value,placeholder:a=uk.placeholder,rows:r,...s}=e;return Xv("textarea",{...s,className:o(e.className,Hc,C(Hc,e)),placeholder:a,rows:r,defaultValue:t})};ms.states=Qv;ms.options=Vv;ms.className=Hc;import{Fragment as Jv,jsx as kk}from"react/jsx-runtime";var hk="k-input-loading-icon",Zv=[l.disabled,l.loading],J=e=>{let{disabled:t,loading:a}=e;return t||!a?kk(Jv,{}):kk("span",{className:o(e.className,hk,"k-icon k-i-loading")})};J.states=Zv;J.className=hk;import{Fragment as qv,jsx as fk}from"react/jsx-runtime";var gk="k-input-validation-icon",jv=[l.valid,l.invalid,l.disabled,l.loading],Uv={},X=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?fk(qv,{}):fk(v,{className:o(gk),icon:i})};X.states=jv;X.options=Uv;X.className=gk;import{Fragment as ey,jsx as xk}from"react/jsx-runtime";var _v="k-input-prefix",$v={direction:"horizontal"},$=e=>{let{direction:t=$v.direction,...a}=e;return e.children?xk("span",{...a,className:o(_v,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):xk(ey,{})};import{Fragment as ay,jsx as bk}from"react/jsx-runtime";var ty="k-input-suffix",oy={direction:"horizontal"},ee=e=>{let{direction:t=oy.direction,...a}=e;return e.children?bk("span",{...a,className:o(ty,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):bk(ay,{})};import{jsx as CK}from"react/jsx-runtime";import{jsx as MK}from"react/jsx-runtime";import{jsx as ry}from"react/jsx-runtime";var vk="k-input-separator",ly={direction:"vertical"},fe=e=>{let{direction:t=ly.direction,...a}=e;return ry("span",{...a,className:o(vk,e.className,{[`${vk}-${t}`]:t})})};import{jsx as yk,jsxs as ny}from"react/jsx-runtime";var wk="k-color-preview",sy=[],iy={},Mo=e=>{let{color:t,iconName:a,...r}=e;return ny("span",{...r,className:o(e.className,wk,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&yk(v,{icon:a,className:"k-color-preview-icon"}),yk("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Mo.states=sy;Mo.options=iy;Mo.className=wk;import{jsx as Ak}from"react/jsx-runtime";var Tk="k-animation-container",dy=[],cy={},Nk={positionMode:"absolute"},Lo=e=>{let{positionMode:t=Nk.positionMode,animationStyle:a,offset:r,...s}=e;return Ak("div",{...s,style:{...r,...e.style},className:o(e.className,Tk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Ak("div",{className:"k-child-animation-container",style:a,children:e.children})})};Lo.states=dy;Lo.options=cy;Lo.className=Tk;Lo.defaultOptions=Nk;import{jsx as Ck}from"react/jsx-runtime";var Sk="k-popup",py=[],my={},Ik={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:a=Ik.positionMode,animationStyle:r,...s}=e;return Ck(Lo,{positionMode:a,offset:t,animationStyle:r,children:Ck("div",{...s,className:o(e.className,Sk),children:e.children})})};F.states=py;F.options=my;F.className=Sk;F.defaultOptions=Ik;import{jsx as hy}from"react/jsx-runtime";var wn="k-actions",uy=[],ky={},Wc={alignment:"start",orientation:"horizontal"},O=e=>{let{alignment:t=Wc.alignment,orientation:a=Wc.orientation,...r}=e;return hy("div",{...r,className:o(wn,{[`${wn}-${t}`]:t,[`${wn}-${a}`]:a},e.className),children:e.children})};O.states=uy;O.options=ky;O.className=wn;O.defaultOptions=Wc;var Bk=O;import{jsx as gy}from"react/jsx-runtime";var fy="k-actionsheet-footer",Mk={alignment:"stretched",orientation:"horizontal"},Ft=e=>{let{alignment:t=Mk.alignment,orientation:a=Mk.orientation,template:r,as:s=r?"div":O,...i}=e;return gy(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,fy),children:e.children})};import{jsx as us,jsxs as vy}from"react/jsx-runtime";var Lk="k-searchbox",xy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],by={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Oc={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:y,loading:A,disabled:g,showIcon:T=Oc.showIcon,icon:N=Oc.icon,...S}=e;return vy(M,{...S,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:y,loading:A,disabled:g,className:o(e.className,Lk),children:[T&&us(v,{className:"k-input-icon",icon:N}),us(le,{placeholder:a,value:t}),us(J,{...e}),us(X,{...e}),us(te,{...e})]})};De.states=xy;De.options=by;De.className=Lk;De.defaultOptions=Oc;import{jsx as BD}from"react/jsx-runtime";import{Fragment as Ek,jsx as Eo,jsxs as Qc}from"react/jsx-runtime";var Yk="k-textbox",yy=[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:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},ya={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},Z=e=>{let{size:t=ya.size,rounded:a=ya.rounded,fillMode:r=ya.fillMode,separators:s=ya.separators,showClearButton:i=ya.showClearButton,showValidationIcon:d=ya.showValidationIcon,prefix:p,suffix:m,type:k,value:y,placeholder:A,hover:g,focus:T,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,...W}=e;return Qc(M,{...W,size:t,rounded:a,fillMode:r,hover:g,focus:T,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,className:o(e.className,Yk),children:[p&&Qc(Ek,{children:[Eo($,{children:p}),s&&Eo(fe,{})]}),Eo(le,{placeholder:A,value:y,type:k}),d&&Eo(X,{valid:N,invalid:S,loading:L,disabled:E}),Eo(J,{loading:L,disabled:E}),i&&Eo(te,{loading:L,disabled:E,readonly:D,value:y}),m&&Qc(Ek,{children:[s&&Eo(fe,{}),Eo(ee,{children:m})]})]})};Z.states=yy;Z.options=wy;Z.className=Yk;Z.defaultOptions=ya;import{jsx as RD}from"react/jsx-runtime";import{Fragment as XD,jsx as VD}from"react/jsx-runtime";import{Fragment as _D,jsx as qD}from"react/jsx-runtime";import{jsx as Yo,jsxs as Vc}from"react/jsx-runtime";var Kk="k-actionsheet-titlebar",Ay={},ae=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:y,...A}=e;return Vc("div",{...A,className:o(e.className,Kk),children:[Vc("div",{className:"k-actionsheet-titlebar-group",children:[r&&Yo("div",{className:"k-actionsheet-actions",children:r}),!y&&Vc("div",{className:"k-actionsheet-title",children:[t&&Yo("div",{className:"k-text-center",children:t}),a&&Yo("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),y&&Yo("div",{className:"k-actionsheet-title",children:y}),s&&Yo("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Yo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Yo(Z,{value:p,placeholder:m,size:k?"large":"medium"}):Yo(De,{placeholder:"Filter",size:k?"large":"medium"})})]})};ae.className=Kk;ae.defaultOptions=Ay;import{jsx as Xc,jsxs as Sy}from"react/jsx-runtime";var Zc="k-actionsheet-view",Ty=[],Ny={},Cy={},gl=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===ae&&Xc(ae,{adaptive:t,...s?.props}),m=i?.type===Ft&&Xc(Ft,{...i?.props});return Sy("div",{...d,className:o(e.className,Zc,{[`${Zc}-animated`]:a}),children:[p,Xc("div",{className:"k-actionsheet-content",children:r}),m]})};gl.states=Ty;gl.options=Ny;gl.className=Zc;gl.defaultOptions=Cy;import{jsx as An,jsxs as My}from"react/jsx-runtime";var Dk="k-actionsheet",Iy=[],By={},ks={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},re=e=>{let{side:t=ks.side,fullscreen:a=ks.fullscreen,adaptive:r=ks.adaptive,overlay:s=ks.overlay,template:i,children:d,header:p,footer:m,...k}=e;return My("div",{className:"k-actionsheet-container",children:[s&&An("div",{className:"k-overlay"}),An(Lo,{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:An("div",{...k,className:o(e.className,Dk,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||An(gl,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};re.states=Iy;re.options=By;re.className=Dk;re.defaultOptions=ks;import{jsx as wF}from"react/jsx-runtime";import{Fragment as Ey,jsx as hs,jsxs as Jc}from"react/jsx-runtime";var jc="k-actionsheet-item",Ly=[l.hover,l.focus,l.selected,l.disabled],Uc=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return Jc("span",{...m,className:o(e.className,jc,b(jc,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&hs(Ey,{children:Jc("span",{className:"k-actionsheet-action",children:[t&&hs("span",{className:"k-icon-wrap",children:hs(v,{className:"k-actionsheet-item-icon",icon:t})}),Jc("span",{className:"k-actionsheet-item-text",children:[a&&hs("span",{className:"k-actionsheet-item-title",children:a}),r&&hs("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};Uc.states=Ly;Uc.className=jc;import{jsx as LF,jsxs as EF}from"react/jsx-runtime";import{jsx as KF}from"react/jsx-runtime";import{jsx as RF}from"react/jsx-runtime";import{jsx as QF}from"react/jsx-runtime";import{jsx as xl,jsxs as qc}from"react/jsx-runtime";var fs="k-slider",Yy=[l.hover,l.focus,l.active,l.disabled,l.readonly],Py={},Po={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},bt=e=>{let{type:t=Po.type,orientation:a=Po.orientation,readonly:r=Po.readonly,disabled:s=Po.disabled,handlePosition:i=Po.handlePosition,showButtons:d=Po.showButtons,showTicks:p=Po.showTicks,hover:m,focus:k,active:y,trackStyle:A,dir:g,...T}=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"),qc("div",{...T,className:o(fs,e.className,b(fs,{readonly:r,disabled:s}),{[`k-slider-${a}`]:a,"k-colorgradient-slider":t==="gradient"}),dir:g,children:[d&&xl(c,{className:"k-button-decrease",rounded:"full",icon:S}),qc("div",{className:"k-slider-track-wrap",children:[p&&xl("ul",{className:"k-reset k-slider-items",children:e.children}),qc("div",{className:"k-slider-track",style:A,children:[xl("div",{className:"k-slider-selection"}),t==="range"&&xl("span",{className:o("k-draghandle","k-draghandle-start",b(fs,{hover:m,focus:k,active:y}))}),xl("span",{className:o("k-draghandle",`k-draghandle-${i}`,b(fs,{hover:m,focus:k,active:y}))})]})]}),d&&xl(c,{className:"k-button-increase",rounded:"full",icon:N})]})};bt.states=Yy;bt.options=Py;bt.className=fs;bt.defaultOptions=Po;import{jsx as zk}from"react/jsx-runtime";var Rk="k-tick",Gy=[],Ky={},Hk={label:!1},Ee=e=>{let{style:t,label:a=Hk.label,orientation:r,large:s,text:i,...d}=e;return zk("li",{...d,className:o(e.className,Rk,{[`k-tick-${r}`]:r,"k-tick-large":s}),style:t,children:a&&zk("span",{className:"k-label",children:i})})};Ee.states=Gy;Ee.options=Ky;Ee.className=Rk;Ee.defaultOptions=Hk;import{Fragment as Dy,jsx as Ct,jsxs as Fy}from"react/jsx-runtime";var Tn=e=>Ct(bt,{children:Fy(Dy,{children:[Ct(Ee,{className:"k-first",label:!0,large:!0,text:"0"}),Ct(Ee,{}),Ct(Ee,{}),Ct(Ee,{}),Ct(Ee,{}),Ct(Ee,{label:!0,large:!0,text:"5"}),Ct(Ee,{}),Ct(Ee,{}),Ct(Ee,{}),Ct(Ee,{}),Ct(Ee,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as fz,jsx as hz,jsxs as gz}from"react/jsx-runtime";import{Fragment as wz,jsx as yz,jsxs as Az}from"react/jsx-runtime";import{Fragment as Iz,jsx as Sz,jsxs as Bz}from"react/jsx-runtime";import{jsx as zy}from"react/jsx-runtime";var _c=e=>zy(bt,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Ry}from"react/jsx-runtime";var $c=e=>Ry(bt,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Wk,jsxs as Oy}from"react/jsx-runtime";var Ok="k-spin-button",Hy=[],Wy={size:[n.small,n.medium,n.large],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},ep={size:n.medium,fillMode:x.solid},Go=e=>{let{size:t=ep.size,fillMode:a=ep.fillMode,...r}=e;return Oy("span",{...r,className:o(Ok,e.className),children:[Wk(c,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:a}),Wk(c,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]})};Go.states=Hy;Go.options=Wy;Go.className=Ok;Go.defaultOptions=ep;import{Fragment as Qk,jsx as go,jsxs as tp}from"react/jsx-runtime";var Vk="k-numerictextbox",Qy=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],Vy={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},wa={showSpinButton:!0,showClearButton:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},ce=e=>{let{size:t=wa.size,rounded:a=wa.rounded,fillMode:r=wa.fillMode,separators:s=wa.separators,showClearButton:i=wa.showClearButton,showSpinButton:d=wa.showSpinButton,prefix:p,suffix:m,value:k,placeholder:y,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:L,readonly:E,...D}=e;return tp(M,{...D,size:t,rounded:a,fillMode:r,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:L,readonly:E,className:o(e.className,Vk),children:[p&&tp(Qk,{children:[go($,{children:p}),s&&go(fe,{})]}),go(le,{placeholder:y,value:k}),go(X,{valid:T,invalid:N,loading:B,disabled:L}),go(J,{loading:B,disabled:L}),i&&go(te,{loading:B,disabled:L,readonly:E,value:k}),m&&tp(Qk,{children:[s&&go(fe,{}),go(ee,{children:m})]}),d&&go(Go,{className:"k-input-spinner",size:t,fillMode:r})]})};ce.states=Qy;ce.options=Vy;ce.className=Vk;ce.defaultOptions=wa;import{jsx as rR}from"react/jsx-runtime";import{jsx as Zy}from"react/jsx-runtime";var Xy="k-no-data",gs=e=>Zy("span",{className:o(Xy,e.className),children:e.children});import{jsx as bl,jsxs as Zk}from"react/jsx-runtime";var op="k-list",Jy=[],jy={size:[n.small,n.medium,n.large]},Jk={size:n.medium},Q=e=>{let{size:t=Jk.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:d,...p}=e,m,k,y,A,g=[];return r?r.map((T,N)=>{T.type===ge?(T.props.root===!0?(m=T.props.label,T.props.children.map((S,B)=>{g.push(bl(P,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):T.props.children.forEach((S,B)=>{let L="";B===0&&(L=T.props.label),g.push(bl(P,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=bl(ge,{label:m,virtualization:a,children:g})):T.type===P&&(g.push(bl(P,{...T.props},`${T.type}-${N}`)),y=bl(vl,{virtualization:a,children:g}),d&&(A=Zk(gs,{className:"k-sr-only",children:[g.length," items found."]})))}):A=bl(gs,{children:"No data found."}),Zk("div",{...p,className:o(e.className,op,C(op,{size:t}),{"k-virtual-list":a}),children:[s,i,k,y,A]})};Q.states=Jy;Q.options=jy;Q.className=op;Q.defaultOptions=Jk;import{jsx as Aa,jsxs as _y}from"react/jsx-runtime";var ap="k-list",Uy=[],qy={size:[n.small,n.medium,n.large]},jk={size:n.medium},Ta=e=>{let{size:t=jk.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,y)=>{k.type===ge?(k.props.root===!0?(i=k.props.label,k.props.children.map((A,g)=>{m.push(Aa(P,{...A.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Aa(Uk,{...k.props,children:k.props.label},`listChild-${y}`)),k.props.children.map((A,g)=>{m.push(Aa(P,{...A.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Aa(ge,{label:i,virtualization:a,children:m})):k.type===P&&(m.push(Aa(P,{...k.props},`${k.type}-${y}`)),p=Aa(vl,{virtualization:a,children:m}))}):p=Aa(gs,{children:"No data found."}),_y("div",{...s,className:o(e.className,ap,C(ap,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Ta.states=Uy;Ta.options=qy;Ta.className=ap;Ta.defaultOptions=jk;import{jsx as qk}from"react/jsx-runtime";var Nn="k-checkbox",$y=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],ew={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},lp={size:n.medium,rounded:f.medium},We=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:y=lp.size,rounded:A=lp.rounded,...g}=e;return qk("span",{className:"k-checkbox-wrap",children:qk("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Nn,C(Nn,{size:y,rounded:A}),b(Nn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};We.states=$y;We.options=ew;We.className=Nn;We.defaultOptions=lp;import{jsx as aw}from"react/jsx-runtime";var _k="k-checkbox-list",tw=[],ow={},$k={layout:"vertical"},yl=e=>{let{layout:t=$k.layout,...a}=e;return aw("ul",{...a,className:o(e.className,_k,{[`k-list-${t}`]:t}),children:e.children})};yl.states=tw;yl.options=ow;yl.className=_k;yl.defaultOptions=$k;import{jsx as iw}from"react/jsx-runtime";var eh="k-checkbox-list-item",lw=[],rw={},sw={},wl=e=>{let{...t}=e;return iw("li",{...t,className:o(e.className,eh),children:e.children})};wl.states=lw;wl.options=rw;wl.className=eh;wl.defaultOptions=sw;import{Fragment as PR,jsx as YR,jsxs as GR}from"react/jsx-runtime";import{Fragment as RR,jsx as zR,jsxs as HR}from"react/jsx-runtime";import{Fragment as XR,jsx as VR,jsxs as ZR}from"react/jsx-runtime";import{Fragment as _R,jsx as qR,jsxs as $R}from"react/jsx-runtime";import{jsx as a0}from"react/jsx-runtime";import{jsx as i0}from"react/jsx-runtime";import{jsx as Cn,jsxs as pw}from"react/jsx-runtime";var sp="k-list-item",nw=[l.hover,l.focus,l.selected,l.disabled],dw={},cw={},P=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:k,selected:y,disabled:A,...g}=e,T=t||e.children;return pw("li",{...g,className:o(e.className,r?"k-list-group-item":sp,b(sp,{hover:m,focus:k,disabled:A,selected:y})),children:[d&&Cn(We,{checked:p}),s&&Cn(v,{icon:i}),Cn("span",{className:"k-list-item-text",children:T}),a&&a!==""&&Cn("div",{className:"k-list-item-group-label",children:a})]})};P.states=nw;P.options=dw;P.className=sp;P.defaultOptions=cw;import{jsx as ip,jsxs as uw}from"react/jsx-runtime";var mw="k-list-content",vl=e=>{let{virtualization:t,...a}=e;return uw("div",{...a,className:o(mw,e.className),children:[ip("ul",{className:o("k-list-ul"),children:e.children}),t&&ip("div",{className:"k-height-container",children:ip("div",{})})]})};import{jsx as th}from"react/jsx-runtime";var kw="k-list-group-sticky-header",oh=e=>th("div",{className:o(kw,e.className),children:th("div",{className:"k-list-header-text",children:e.children})});import{Fragment as hw,jsx as ah,jsxs as fw}from"react/jsx-runtime";var ge=e=>{let{virtualization:t,label:a}=e;return fw(hw,{children:[a&&ah(oh,{children:a}),e.children&&ah(vl,{virtualization:t,children:e.children})]})};import{jsx as lh}from"react/jsx-runtime";var gw="k-list-group-item",Uk=e=>lh("li",{className:o(gw,e.className),children:lh("span",{className:"k-list-item-text",children:e.children})});import{jsx as yw}from"react/jsx-runtime";var np="k-list-optionlabel",xw=[l.hover,l.focus,l.selected,l.disabled],bw={},vw={},Sn=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return yw("div",{...d,className:o(np,b(np,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Sn.states=xw;Sn.options=bw;Sn.className=np;Sn.defaultOptions=vw;import{jsx as Nw}from"react/jsx-runtime";var dp="k-list-custom-value",ww=[l.hover,l.focus,l.selected,l.disabled],Aw={},Tw={},Xe=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Nw("div",{...d,className:o(dp,b(dp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Xe.states=ww;Xe.options=Aw;Xe.className=dp;Xe.defaultOptions=Tw;import{jsx as Q0}from"react/jsx-runtime";import{jsx as J0}from"react/jsx-runtime";import{jsx as _0,jsxs as $0}from"react/jsx-runtime";import{jsx as aH,jsxs as lH}from"react/jsx-runtime";import{jsx as nH}from"react/jsx-runtime";import{jsx as mH,jsxs as uH}from"react/jsx-runtime";import{jsx as gH,jsxs as xH}from"react/jsx-runtime";import{Fragment as Iw,jsx as rt,jsxs as cp}from"react/jsx-runtime";var rh="k-dropdownlist",Cw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Sw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Al={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:x.solid},se=e=>{let{size:t=Al.size,rounded:a=Al.rounded,fillMode:r=Al.fillMode,arrowIconName:s=Al.arrowIconName,showValue:i=Al.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:y,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:L,readonly:E,popup:D,opened:W,adaptive:he,adaptiveSettings:Le,adaptiveTitle:_e,adaptiveSubtitle:Kt,adaptiveFilter:ba,...fl}=e;return cp(Iw,{children:[cp(xt,{...fl,size:t,rounded:a,fillMode:r,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:L,readonly:E,className:o(e.className,rh,{"k-icon-picker":!i&&d}),children:[rt($,{children:p}),rt(fo,{placeholder:y,value:k,showValue:i,valueIconName:d}),rt(X,{valid:T,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})]}),W&&D&&rt(F,{className:"k-list-container k-dropdownlist-popup",children:D}),he&&rt(re,{adaptive:!0,...Le,header:rt(ae,{actionsEnd:rt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ba,inputValue:k,inputPlaceholder:y,title:_e,subtitle:Kt}),children:rt("div",{className:"k-list-container",children:cp(Q,{size:"large",children:[rt(P,{text:"List item"}),rt(P,{text:"List item"}),rt(P,{text:"List item"})]})})})]})};se.states=Cw;se.options=Sw;se.className=rh;se.defaultOptions=Al;import{jsx as JH}from"react/jsx-runtime";import{jsx as $H,jsxs as e8}from"react/jsx-runtime";import{Fragment as n8,jsx as s8,jsxs as i8}from"react/jsx-runtime";import{jsx as m8}from"react/jsx-runtime";import{jsx as g8,jsxs as x8}from"react/jsx-runtime";import{jsx as A8,jsxs as T8}from"react/jsx-runtime";import{Fragment as E8,jsx as M8,jsxs as L8}from"react/jsx-runtime";import{Fragment as R8,jsx as F8,jsxs as z8}from"react/jsx-runtime";import{Fragment as oW,jsx as tW}from"react/jsx-runtime";import{Fragment as dW,jsx as nW}from"react/jsx-runtime";import{Fragment as xs,jsx as U,jsxs as Ne}from"react/jsx-runtime";var sh="k-colorgradient-inputs",Bw=[],Mw={size:[n.small,n.medium,n.large]},ih={mode:"rgba",size:n.medium},Tl=e=>{let{mode:t=ih.mode,size:a,...r}=e;return Ne("div",{...r,className:o(sh,"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(xs,{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(xs,{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(xs,{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(xs,{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(xs,{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"})]})})]})};Tl.states=Bw;Tl.options=Mw;Tl.className=sh;Tl.defaultOptions=ih;import{jsx as Ca,jsxs as Sa}from"react/jsx-runtime";var nh="k-colorgradient-color-contrast",Lw=[],Ew={},Yw={},Nl=()=>Sa("div",{className:o(nh,"k-vbox"),children:[Sa("div",{className:"k-contrast-ratio",children:[Ca("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Sa("span",{className:"k-contrast-validation !k-text-success",children:[Ca(v,{icon:"check"}),Ca(v,{icon:"check"})]})]}),Sa("div",{children:[Ca("span",{children:"AA: 4.5"}),Sa("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ca(v,{icon:"check"})]})]}),Sa("div",{children:[Ca("span",{children:"AAA: 7.0"}),Sa("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ca(v,{icon:"x"})]})]})]});Nl.states=Lw;Nl.options=Ew;Nl.className=nh;Nl.defaultOptions=Yw;import{jsx as St,jsxs as bs}from"react/jsx-runtime";var In="k-colorgradient",Pw=[l.hover,l.focus,l.readonly,l.disabled],Gw={size:[n.small,n.medium,n.large]},zt={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"},Ko=e=>{let{size:t=zt.size,mode:a=zt.mode,readonly:r=zt.readonly,disabled:s=zt.disabled,gradientStyle:i=zt.gradientStyle,dragHandleStyle:d=zt.dragHandleStyle,alphaStyle:p=zt.alphaStyle,alphaStyleHorizontal:m=zt.alphaStyleHorizontal,contrast:k=zt.contrast,dir:y,hover:A,focus:g,hoverHandle:T,focusHandle:N,canvasOrientation:S=zt.canvasOrientation,...B}=e;return bs("div",{...B,className:o(e.className,In,C(In,{size:t}),b(In,{hover:A,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":T,"k-focus":N}),style:d})})}),bs("div",{className:"k-hsv-controls k-hstack",children:[St($c,{className:"k-hue-slider",hover:T,focus:N}),a!=="rgb"&&a!=="hsv"&&St($c,{className:"k-alpha-slider",hover:T,focus:N,trackStyle:p})]})]}),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":T,"k-focus":N}),style:d})})}),bs("div",{className:"k-hsv-controls k-vstack",children:[St(_c,{className:"k-hue-slider",hover:T,focus:N}),a!=="rgb"&&a!=="hsv"&&St(_c,{className:"k-alpha-slider",hover:T,focus:N,trackStyle:m})]})]}),St(Tl,{mode:e.mode,size:t}),k&&St(Nl,{})]})};Ko.states=Pw;Ko.options=Gw;Ko.className=In;Ko.defaultOptions=zt;import{jsx as PW}from"react/jsx-runtime";import{jsx as FW}from"react/jsx-runtime";import{jsx as Kw}from"react/jsx-runtime";var dh=e=>Kw("tr",{children:e.children});import{jsx as zw}from"react/jsx-runtime";var pp="k-colorpalette-tile",Dw=[l.hover,l.focus,l.selected],Fw={},vs=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 zw("td",{...d,className:o(e.className,pp,b(pp,{hover:r,focus:s,selected:i})),style:p})};vs.states=Dw;vs.options=Fw;vs.className=pp;import{jsx as ys}from"react/jsx-runtime";var Bn="k-colorpalette",Rw=[l.disabled],Hw={size:[n.small,n.medium,n.large]},mp={columns:10,size:n.medium},Cl=e=>{let{size:t=mp.size,palette:a,columns:r=mp.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)},(y,A)=>{let g=[];k.slice(A*m,(A+1)*m).map((N,S)=>{g.push(ys(vs,{color:N,tileSize:s},S))});let T=ys(dh,{children:g},A);p.push(T)})}return ys("div",{...d,className:o(e.className,Bn,b(Bn,{disabled:i}),C(Bn,{size:t})),children:ys("table",{className:"k-colorpalette-table",children:ys("tbody",{children:p.length>0?p:e.children})})})};Cl.states=Rw;Cl.options=Hw;Cl.className=Bn;Cl.defaultOptions=mp;var up={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 iO}from"react/jsx-runtime";import{jsx as It,jsxs as Sl}from"react/jsx-runtime";var Mn="k-coloreditor",Ww=[l.focus],Ow={size:[n.small,n.medium,n.large]},Il={size:n.medium,view:"gradient",palette:up.office,actionButtons:!0,canvasOrientation:"horizontal"},$t=e=>{let{size:t=Il.size,view:a=Il.view,palette:r=Il.palette,color:s,currentColor:i,focus:d,focusView:p,dir:m,group:k,actionButtons:y=Il.actionButtons,canvasOrientation:A=Il.canvasOrientation,...g}=e;return Sl("div",{...g,className:o(e.className,"k-flatcolorpicker",Mn,C(Mn,{size:t}),b(Mn,{focus:d})),dir:m,children:[Sl("div",{className:"k-coloreditor-header k-hstack",children:[It("div",{className:"k-coloreditor-header-actions k-hstack",children:k&&Sl(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"}),Sl("div",{className:"k-coloreditor-header-actions k-hstack",children:[It(c,{fillMode:"flat",icon:"droplet-slash",size:t}),Sl("div",{className:"k-coloreditor-preview k-vstack",children:[It(Mo,{className:"k-coloreditor-preview-color",color:s}),It(Mo,{className:"k-coloreditor-current-color",color:i})]})]})]}),It("div",{className:"k-coloreditor-views k-vstack",children:a==="gradient"?It(Ko,{focus:p,size:t,canvasOrientation:A}):It(Cl,{palette:r,size:t})}),y&&Sl(O,{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"})]})]})};$t.states=Ww;$t.options=Ow;$t.className=Mn;$t.defaultOptions=Il;import{jsx as CO}from"react/jsx-runtime";import{jsx as MO}from"react/jsx-runtime";import{jsx as PO}from"react/jsx-runtime";import{jsx as FO}from"react/jsx-runtime";import{Fragment as Xw,jsx as Bt,jsxs as hp}from"react/jsx-runtime";var ch="k-colorpicker",Qw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],Vw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},ws={arrowIconName:"caret-alt-down",size:xt.defaultOptions.size,rounded:xt.defaultOptions.rounded,fillMode:xt.defaultOptions.fillMode},Mt=e=>{let{size:t=ws.size,rounded:a=ws.rounded,fillMode:r=ws.fillMode,arrowIconName:s=ws.arrowIconName,prefix:i,suffix:d,value:p,placeholder:m,hover:k,focus:y,valid:A,invalid:g,required:T,disabled:N,valueIconName:S,popup:B,opened:L,adaptive:E,adaptiveSettings:D,adaptiveTitle:W,adaptiveSubtitle:he,...Le}=e;return hp(Xw,{children:[hp(xt,{...Le,size:t,rounded:a,fillMode:r,hover:k,focus:y,valid:A,invalid:g,required:T,disabled:N,className:o(e.className,ch,"k-icon-picker"),children:[Bt($,{children:i}),Bt(fo,{placeholder:m,value:p,showValue:!1,valueIcon:Bt(Mo,{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(re,{adaptive:!0,...D,header:Bt(ae,{actionsEnd:Bt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:W,subtitle:he}),footer:hp(Ft,{children:[Bt(c,{text:"Cancel",size:"large",themeColor:"base"}),Bt(c,{text:"Set",size:"large",themeColor:"primary"})]}),children:Bt($t,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};Mt.states=Qw;Mt.options=Vw;Mt.className=ch;Mt.defaultOptions=ws;import{jsx as lQ}from"react/jsx-runtime";import{jsx as dQ}from"react/jsx-runtime";import{jsx as kQ}from"react/jsx-runtime";import{jsx as xQ}from"react/jsx-runtime";import{jsx as wQ}from"react/jsx-runtime";import{jsx as CQ}from"react/jsx-runtime";import{Fragment as fp,jsx as Fe,jsxs as As}from"react/jsx-runtime";var ph="k-combobox",Jw=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],jw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Ts={size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},vt=e=>{let{size:t=Ts.size,rounded:a=Ts.rounded,fillMode:r=Ts.fillMode,separators:s=Ts.separators,prefix:i,suffix:d,value:p,placeholder:m,hover:k,focus:y,valid:A,invalid:g,required:T,loading:N,disabled:S,popup:B,opened:L,readonly:E,adaptive:D,adaptiveSettings:W,adaptiveTitle:he,adaptiveSubtitle:Le,adaptiveCustomValue:_e,...Kt}=e;return As(fp,{children:[As(M,{...Kt,size:t,rounded:a,fillMode:r,hover:k,focus:y,valid:A,invalid:g,required:T,loading:N,disabled:S,readonly:E,className:o(e.className,ph),children:[i&&As(fp,{