UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 287 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"}),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"},yt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{Fragment as fv,jsx as sk}from"react/jsx-runtime";var Gc="k-icon k-font-icon",uv=[],kv={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]},hv={},ps=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?sk("span",{...d,className:o(e.className,Gc,C(Gc,{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"})}):sk(fv,{})};ps.states=uv;ps.options=kv;ps.className=Gc;ps.defaultOptions=hv;var ik=ps;import{Fragment as bv,jsx as gn}from"react/jsx-runtime";var Kc="k-icon k-svg-icon",gv=[],xv={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]},nk={viewBox:"0 0 24 24"},ms=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=nk.viewBox,icon:d,...p}=e;if(!d)return gn(bv,{});d==="none"&&{...p,className:o(e.className,Kc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return gn("span",{...p,className:o(e.className,Kc,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:gn("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})})};ms.states=gv;ms.options=xv;ms.className=Kc;ms.defaultOptions=nk;var Dc=ms;import*as dk from"@progress/kendo-svg-icons";import{Fragment as ck,jsx as us}from"react/jsx-runtime";var vv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),yv=[],wv={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]},Fc={viewBox:"0 0 24 24",type:"svg"},v=e=>{let{size:t,themeColor:a,icon:r,type:s=Fc.type,rotate:i,flip:d,viewBox:p=Fc.viewBox,...m}=e;if(!r)return us(ck,{});if(s==="svg"){if(r==="none")return us(Dc,{...m,icon:r,size:t});let k=vv(`${r}-icon`);return dk[k]?us(Dc,{...m,icon:dk[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):us(ck,{})}return us(ik,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};v.states=yv;v.options=wv;v.defaultOptions=Fc;var zc=v;import{Fragment as Nv,jsx as ks,jsxs as pk}from"react/jsx-runtime";var xn="k-button",Av=[l.hover,l.focus,l.active,l.selected,l.disabled],Tv={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]},Ta={size:n.medium,rounded:f.medium,fillMode:x.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Ta.size,rounded:a=Ta.rounded,fillMode:r=Ta.fillMode,themeColor:s=Ta.themeColor,showArrow:i=Ta.showArrow,arrowIconName:d=Ta.arrowIconName,hover:p,focus:m,active:k,selected:y,disabled:A,icon:g,text:T,iconClassName:N,...S}=e,B=g!==void 0,L=e.children!==void 0;return pk("button",{...S,className:o(e.className,xn,C(xn,{size:t,rounded:a,fillMode:r,themeColor:s}),b(xn,{hover:p,focus:m,active:k,disabled:A,selected:y}),{"k-icon-button":!T&&!L&&B}),children:[g&&ks(v,{className:o(N,"k-button-icon"),icon:g}),T?pk(Nv,{children:[T&&ks("span",{className:"k-button-text",children:T}),e.children]}):e.children&&ks("span",{className:"k-button-text",children:e.children}),i&&ks("span",{className:"k-menu-button-arrow k-button-arrow",children:ks(v,{icon:d})})]})};c.states=Av;c.options=Tv;c.className=xn;c.defaultOptions=Ta;import{jsx as Cv}from"react/jsx-runtime";var ot=e=>Cv(c,{icon:"folder",...e,children:void 0});import{jsx as Sv}from"react/jsx-runtime";var Rt=e=>Sv(c,{icon:"folder",children:"Button",...e});import{jsx as lG}from"react/jsx-runtime";import{jsx as Mv}from"react/jsx-runtime";var hs="k-button-group",Iv=[l.disabled],Bv={fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},mk={fillMode:x.solid},Y=e=>{let{fillMode:t=mk.fillMode,disabled:a,stretched:r,...s}=e;return Mv("div",{...s,className:o(e.className,hs,C(hs,{fillMode:t}),b(hs,{disabled:a}),{[`${hs}-stretched`]:r}),children:e.children})};Y.states=Iv;Y.options=Bv;Y.className=hs;Y.defaultOptions=mk;import{Fragment as xG,jsx as gG,jsxs as bG}from"react/jsx-runtime";import{Fragment as NG,jsx as TG,jsxs as CG}from"react/jsx-runtime";import{Fragment as EG,jsx as LG,jsxs as YG}from"react/jsx-runtime";import{Fragment as zG,jsx as FG,jsxs as RG}from"react/jsx-runtime";import{jsx as Yv}from"react/jsx-runtime";var bn="k-input",Lv=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Ev={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:n.medium,fillMode:x.solid},M=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 Yv("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}))})};M.states=Lv;M.options=Ev;M.className=bn;M.defaultOptions=vn;import{jsx as Kv}from"react/jsx-runtime";var yn="k-picker",Pv=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Gv={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},wn={size:n.medium,rounded:f.medium,fillMode:x.solid},wt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=wn.size,rounded:k=wn.rounded,fillMode:y=wn.fillMode,...A}=e;return Kv("span",{...A,className:o(e.className,yn,C(yn,{size:m,rounded:k,fillMode:y}),b(yn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};wt.states=Pv;wt.options=Gv;wt.className=yn;wt.defaultOptions=wn;import{Fragment as zv,jsx as Rc}from"react/jsx-runtime";var uk="k-clear-value",Dv=[l.disabled,l.loading,l.readonly],Fv={},te=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Rc(zv,{}):Rc("span",{className:o(e.className,uk),children:Rc(v,{icon:"x"})})};te.states=Dv;te.options=Fv;te.className=uk;import{jsx as Wv}from"react/jsx-runtime";var Hc="k-input-inner",Rv=[],Hv={},An={type:"text",autocomplete:"off",value:"",placeholder:""},le=e=>{let{value:t=An.value,type:a=An.type,placeholder:r=An.placeholder,autocomplete:s=An.autocomplete,...i}=e;return Wv("input",{...i,type:a,className:o(e.className,Hc,C(Hc,e)),placeholder:r,autoComplete:s,defaultValue:t})};le.states=Rv;le.options=Hv;le.className=Hc;import{jsx as kk,jsxs as Vv}from"react/jsx-runtime";var Wc="k-input-inner",Ov=[],Qv={},bo=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return Vv("span",{...d,className:o(e.className,Wc,C(Wc,e)),children:[s,!s&&i&&kk(v,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&kk("span",{className:"k-input-value-text",children:t})]})};bo.states=Ov;bo.options=Qv;bo.className=Wc;import{jsx as Jv}from"react/jsx-runtime";var Oc="k-input-inner",Xv=[],Zv={},hk={value:"",placeholder:""},fs=e=>{let{value:t=hk.value,placeholder:a=hk.placeholder,rows:r,...s}=e;return Jv("textarea",{...s,className:o(e.className,Oc,C(Oc,e)),placeholder:a,rows:r,defaultValue:t})};fs.states=Xv;fs.options=Zv;fs.className=Oc;import{Fragment as Uv,jsx as fk}from"react/jsx-runtime";var gk="k-input-loading-icon",jv=[l.disabled,l.loading],J=e=>{let{disabled:t,loading:a}=e;return t||!a?fk(Uv,{}):fk("span",{className:o(e.className,gk,"k-icon k-i-loading")})};J.states=jv;J.className=gk;import{Fragment as $v,jsx as xk}from"react/jsx-runtime";var bk="k-input-validation-icon",qv=[l.valid,l.invalid,l.disabled,l.loading],_v={},X=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?xk($v,{}):xk(v,{className:o(bk),icon:i})};X.states=qv;X.options=_v;X.className=bk;import{Fragment as oy,jsx as vk}from"react/jsx-runtime";var ey="k-input-prefix",ty={direction:"horizontal"},$=e=>{let{direction:t=ty.direction,...a}=e;return e.children?vk("span",{...a,className:o(ey,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):vk(oy,{})};import{Fragment as ry,jsx as yk}from"react/jsx-runtime";var ay="k-input-suffix",ly={direction:"horizontal"},ee=e=>{let{direction:t=ly.direction,...a}=e;return e.children?yk("span",{...a,className:o(ay,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):yk(ry,{})};import{jsx as BK}from"react/jsx-runtime";import{jsx as YK}from"react/jsx-runtime";import{jsx as iy}from"react/jsx-runtime";var wk="k-input-separator",sy={direction:"vertical"},ge=e=>{let{direction:t=sy.direction,...a}=e;return iy("span",{...a,className:o(wk,e.className,{[`${wk}-${t}`]:t})})};import{jsx as Ak,jsxs as cy}from"react/jsx-runtime";var Tk="k-color-preview",ny=[],dy={},Yo=e=>{let{color:t,iconName:a,...r}=e;return cy("span",{...r,className:o(e.className,Tk,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&Ak(v,{icon:a,className:"k-color-preview-icon"}),Ak("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Yo.states=ny;Yo.options=dy;Yo.className=Tk;import{jsx as Nk}from"react/jsx-runtime";var Ck="k-animation-container",py=[],my={},Sk={positionMode:"absolute"},Po=e=>{let{positionMode:t=Sk.positionMode,animationStyle:a,offset:r,...s}=e;return Nk("div",{...s,style:{...r,...e.style},className:o(e.className,Ck,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Nk("div",{className:"k-child-animation-container",style:a,children:e.children})})};Po.states=py;Po.options=my;Po.className=Ck;Po.defaultOptions=Sk;import{jsx as Ik}from"react/jsx-runtime";var Bk="k-popup",uy=[],ky={},Mk={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:a=Mk.positionMode,animationStyle:r,...s}=e;return Ik(Po,{positionMode:a,offset:t,animationStyle:r,children:Ik("div",{...s,className:o(e.className,Bk),children:e.children})})};F.states=uy;F.options=ky;F.className=Bk;F.defaultOptions=Mk;import{jsx as gy}from"react/jsx-runtime";var Tn="k-actions",hy=[],fy={},Qc={alignment:"start",orientation:"horizontal"},O=e=>{let{alignment:t=Qc.alignment,orientation:a=Qc.orientation,...r}=e;return gy("div",{...r,className:o(Tn,{[`${Tn}-${t}`]:t,[`${Tn}-${a}`]:a},e.className),children:e.children})};O.states=hy;O.options=fy;O.className=Tn;O.defaultOptions=Qc;var Lk=O;import{jsx as by}from"react/jsx-runtime";var xy="k-actionsheet-footer",Ek={alignment:"stretched",orientation:"horizontal"},Ht=e=>{let{alignment:t=Ek.alignment,orientation:a=Ek.orientation,template:r,as:s=r?"div":O,...i}=e;return by(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,xy),children:e.children})};import{jsx as gs,jsxs as wy}from"react/jsx-runtime";var Yk="k-searchbox",vy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],yy={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Vc={showIcon:!0,icon:"search",size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},ze=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=Vc.showIcon,icon:N=Vc.icon,...S}=e;return wy(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,Yk),children:[T&&gs(v,{className:"k-input-icon",icon:N}),gs(le,{placeholder:a,value:t}),gs(J,{...e}),gs(X,{...e}),gs(te,{...e})]})};ze.states=vy;ze.options=yy;ze.className=Yk;ze.defaultOptions=Vc;import{jsx as ED}from"react/jsx-runtime";import{Fragment as Pk,jsx as Go,jsxs as Xc}from"react/jsx-runtime";var Gk="k-textbox",Ay=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Ty={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Na={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},Z=e=>{let{size:t=Na.size,rounded:a=Na.rounded,fillMode:r=Na.fillMode,separators:s=Na.separators,showClearButton:i=Na.showClearButton,showValidationIcon:d=Na.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 Xc(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,Gk),children:[p&&Xc(Pk,{children:[Go($,{children:p}),s&&Go(ge,{})]}),Go(le,{placeholder:A,value:y,type:k}),d&&Go(X,{valid:N,invalid:S,loading:L,disabled:E}),Go(J,{loading:L,disabled:E}),i&&Go(te,{loading:L,disabled:E,readonly:D,value:y}),m&&Xc(Pk,{children:[s&&Go(ge,{}),Go(ee,{children:m})]})]})};Z.states=Ay;Z.options=Ty;Z.className=Gk;Z.defaultOptions=Na;import{jsx as OD}from"react/jsx-runtime";import{Fragment as jD,jsx as JD}from"react/jsx-runtime";import{Fragment as tF,jsx as eF}from"react/jsx-runtime";import{jsx as Ko,jsxs as Zc}from"react/jsx-runtime";var Fk="k-actionsheet-titlebar",Ny={},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 Zc("div",{...A,className:o(e.className,Fk),children:[Zc("div",{className:"k-actionsheet-titlebar-group",children:[r&&Ko("div",{className:"k-actionsheet-actions",children:r}),!y&&Zc("div",{className:"k-actionsheet-title",children:[t&&Ko("div",{className:"k-text-center",children:t}),a&&Ko("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),y&&Ko("div",{className:"k-actionsheet-title",children:y}),s&&Ko("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Ko("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Ko(Z,{value:p,placeholder:m,size:k?"large":"medium"}):Ko(ze,{placeholder:"Filter",size:k?"large":"medium"})})]})};ae.className=Fk;ae.defaultOptions=Ny;import{jsx as Jc,jsxs as By}from"react/jsx-runtime";var jc="k-actionsheet-view",Cy=[],Sy={},Iy={},yl=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===ae&&Jc(ae,{adaptive:t,...s?.props}),m=i?.type===Ht&&Jc(Ht,{...i?.props});return By("div",{...d,className:o(e.className,jc,{[`${jc}-animated`]:a}),children:[p,Jc("div",{className:"k-actionsheet-content",children:r}),m]})};yl.states=Cy;yl.options=Sy;yl.className=jc;yl.defaultOptions=Iy;import{jsx as Nn,jsxs as Ey}from"react/jsx-runtime";var zk="k-actionsheet",My=[],Ly={},xs={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},re=e=>{let{side:t=xs.side,fullscreen:a=xs.fullscreen,adaptive:r=xs.adaptive,overlay:s=xs.overlay,template:i,children:d,header:p,footer:m,...k}=e;return Ey("div",{className:"k-actionsheet-container",children:[s&&Nn("div",{className:"k-overlay"}),Nn(Po,{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:Nn("div",{...k,className:o(e.className,zk,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Nn(yl,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};re.states=My;re.options=Ly;re.className=zk;re.defaultOptions=xs;import{jsx as NF}from"react/jsx-runtime";import{Fragment as Py,jsx as bs,jsxs as Uc}from"react/jsx-runtime";var qc="k-actionsheet-item",Yy=[l.hover,l.focus,l.selected,l.disabled],_c=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return Uc("span",{...m,className:o(e.className,qc,b(qc,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&bs(Py,{children:Uc("span",{className:"k-actionsheet-action",children:[t&&bs("span",{className:"k-icon-wrap",children:bs(v,{className:"k-actionsheet-item-icon",icon:t})}),Uc("span",{className:"k-actionsheet-item-text",children:[a&&bs("span",{className:"k-actionsheet-item-title",children:a}),r&&bs("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};_c.states=Yy;_c.className=qc;import{jsx as PF,jsxs as GF}from"react/jsx-runtime";import{jsx as zF}from"react/jsx-runtime";import{jsx as OF}from"react/jsx-runtime";import{jsx as ZF}from"react/jsx-runtime";import{jsx as wl,jsxs as $c}from"react/jsx-runtime";var vs="k-slider",Gy=[l.hover,l.focus,l.active,l.disabled,l.readonly],Ky={},Do={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},At=e=>{let{type:t=Do.type,orientation:a=Do.orientation,readonly:r=Do.readonly,disabled:s=Do.disabled,handlePosition:i=Do.handlePosition,showButtons:d=Do.showButtons,showTicks:p=Do.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"),$c("div",{...T,className:o(vs,e.className,b(vs,{readonly:r,disabled:s}),{[`k-slider-${a}`]:a,"k-colorgradient-slider":t==="gradient"}),dir:g,children:[d&&wl(c,{className:"k-button-decrease",rounded:"full",icon:S}),$c("div",{className:"k-slider-track-wrap",children:[p&&wl("ul",{className:"k-reset k-slider-items",children:e.children}),$c("div",{className:"k-slider-track",style:A,children:[wl("div",{className:"k-slider-selection"}),t==="range"&&wl("span",{className:o("k-draghandle","k-draghandle-start",b(vs,{hover:m,focus:k,active:y}))}),wl("span",{className:o("k-draghandle",`k-draghandle-${i}`,b(vs,{hover:m,focus:k,active:y}))})]})]}),d&&wl(c,{className:"k-button-increase",rounded:"full",icon:N})]})};At.states=Gy;At.options=Ky;At.className=vs;At.defaultOptions=Do;import{jsx as Hk}from"react/jsx-runtime";var Wk="k-tick",Dy=[],Fy={},Ok={label:!1},Ye=e=>{let{style:t,label:a=Ok.label,orientation:r,large:s,text:i,...d}=e;return Hk("li",{...d,className:o(e.className,Wk,{[`k-tick-${r}`]:r,"k-tick-large":s}),style:t,children:a&&Hk("span",{className:"k-label",children:i})})};Ye.states=Dy;Ye.options=Fy;Ye.className=Wk;Ye.defaultOptions=Ok;import{Fragment as zy,jsx as Bt,jsxs as Ry}from"react/jsx-runtime";var Cn=e=>Bt(At,{children:Ry(zy,{children:[Bt(Ye,{className:"k-first",label:!0,large:!0,text:"0"}),Bt(Ye,{}),Bt(Ye,{}),Bt(Ye,{}),Bt(Ye,{}),Bt(Ye,{label:!0,large:!0,text:"5"}),Bt(Ye,{}),Bt(Ye,{}),Bt(Ye,{}),Bt(Ye,{}),Bt(Ye,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as bz,jsx as xz,jsxs as vz}from"react/jsx-runtime";import{Fragment as Nz,jsx as Tz,jsxs as Cz}from"react/jsx-runtime";import{Fragment as Lz,jsx as Mz,jsxs as Ez}from"react/jsx-runtime";import{jsx as Hy}from"react/jsx-runtime";var ep=e=>Hy(At,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Wy}from"react/jsx-runtime";var tp=e=>Wy(At,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Qk,jsxs as Vy}from"react/jsx-runtime";var Vk="k-spin-button",Oy=[],Qy={size:[n.small,n.medium,n.large],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},op={size:n.medium,fillMode:x.solid},Fo=e=>{let{size:t=op.size,fillMode:a=op.fillMode,...r}=e;return Vy("span",{...r,className:o(Vk,e.className),children:[Qk(c,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:a}),Qk(c,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]})};Fo.states=Oy;Fo.options=Qy;Fo.className=Vk;Fo.defaultOptions=op;import{Fragment as Xk,jsx as vo,jsxs as ap}from"react/jsx-runtime";var Zk="k-numerictextbox",Xy=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],Zy={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Ca={showSpinButton:!0,showClearButton:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},ce=e=>{let{size:t=Ca.size,rounded:a=Ca.rounded,fillMode:r=Ca.fillMode,separators:s=Ca.separators,showClearButton:i=Ca.showClearButton,showSpinButton:d=Ca.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 ap(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,Zk),children:[p&&ap(Xk,{children:[vo($,{children:p}),s&&vo(ge,{})]}),vo(le,{placeholder:y,value:k}),vo(X,{valid:T,invalid:N,loading:B,disabled:L}),vo(J,{loading:B,disabled:L}),i&&vo(te,{loading:B,disabled:L,readonly:E,value:k}),m&&ap(Xk,{children:[s&&vo(ge,{}),vo(ee,{children:m})]}),d&&vo(Fo,{className:"k-input-spinner",size:t,fillMode:r})]})};ce.states=Xy;ce.options=Zy;ce.className=Zk;ce.defaultOptions=Ca;import{jsx as nR}from"react/jsx-runtime";import{jsx as jy}from"react/jsx-runtime";var Jy="k-no-data",ys=e=>jy("span",{className:o(Jy,e.className),children:e.children});import{jsx as Al,jsxs as jk}from"react/jsx-runtime";var lp="k-list",Uy=[],qy={size:[n.small,n.medium,n.large]},Uk={size:n.medium},Q=e=>{let{size:t=Uk.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===xe?(T.props.root===!0?(m=T.props.label,T.props.children.map((S,B)=>{g.push(Al(P,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):T.props.children.forEach((S,B)=>{let L="";B===0&&(L=T.props.label),g.push(Al(P,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=Al(xe,{label:m,virtualization:a,children:g})):T.type===P&&(g.push(Al(P,{...T.props},`${T.type}-${N}`)),y=Al(Tl,{virtualization:a,children:g}),d&&(A=jk(ys,{className:"k-sr-only",children:[g.length," items found."]})))}):A=Al(ys,{children:"No data found."}),jk("div",{...p,className:o(e.className,lp,C(lp,{size:t}),{"k-virtual-list":a}),children:[s,i,k,y,A]})};Q.states=Uy;Q.options=qy;Q.className=lp;Q.defaultOptions=Uk;import{jsx as Sa,jsxs as ew}from"react/jsx-runtime";var rp="k-list",_y=[],$y={size:[n.small,n.medium,n.large]},qk={size:n.medium},Ia=e=>{let{size:t=qk.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,y)=>{k.type===xe?(k.props.root===!0?(i=k.props.label,k.props.children.map((A,g)=>{m.push(Sa(P,{...A.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Sa(_k,{...k.props,children:k.props.label},`listChild-${y}`)),k.props.children.map((A,g)=>{m.push(Sa(P,{...A.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Sa(xe,{label:i,virtualization:a,children:m})):k.type===P&&(m.push(Sa(P,{...k.props},`${k.type}-${y}`)),p=Sa(Tl,{virtualization:a,children:m}))}):p=Sa(ys,{children:"No data found."}),ew("div",{...s,className:o(e.className,rp,C(rp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Ia.states=_y;Ia.options=$y;Ia.className=rp;Ia.defaultOptions=qk;import{jsx as $k}from"react/jsx-runtime";var Sn="k-checkbox",tw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],ow={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},sp={size:n.medium,rounded:f.medium},Qe=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:y=sp.size,rounded:A=sp.rounded,...g}=e;return $k("span",{className:"k-checkbox-wrap",children:$k("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Sn,C(Sn,{size:y,rounded:A}),b(Sn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};Qe.states=tw;Qe.options=ow;Qe.className=Sn;Qe.defaultOptions=sp;import{jsx as rw}from"react/jsx-runtime";var eh="k-checkbox-list",aw=[],lw={},th={layout:"vertical"},Nl=e=>{let{layout:t=th.layout,...a}=e;return rw("ul",{...a,className:o(e.className,eh,{[`k-list-${t}`]:t}),children:e.children})};Nl.states=aw;Nl.options=lw;Nl.className=eh;Nl.defaultOptions=th;import{jsx as dw}from"react/jsx-runtime";var oh="k-checkbox-list-item",sw=[],iw={},nw={},Cl=e=>{let{...t}=e;return dw("li",{...t,className:o(e.className,oh),children:e.children})};Cl.states=sw;Cl.options=iw;Cl.className=oh;Cl.defaultOptions=nw;import{Fragment as DR,jsx as KR,jsxs as FR}from"react/jsx-runtime";import{Fragment as OR,jsx as WR,jsxs as QR}from"react/jsx-runtime";import{Fragment as jR,jsx as JR,jsxs as UR}from"react/jsx-runtime";import{Fragment as t0,jsx as e0,jsxs as o0}from"react/jsx-runtime";import{jsx as s0}from"react/jsx-runtime";import{jsx as c0}from"react/jsx-runtime";import{jsx as In,jsxs as uw}from"react/jsx-runtime";var np="k-list-item",cw=[l.hover,l.focus,l.selected,l.disabled],pw={},mw={},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 uw("li",{...g,className:o(e.className,r?"k-list-group-item":np,b(np,{hover:m,focus:k,disabled:A,selected:y})),children:[d&&In(Qe,{checked:p}),s&&In(v,{icon:i}),In("span",{className:"k-list-item-text",children:T}),a&&a!==""&&In("div",{className:"k-list-item-group-label",children:a})]})};P.states=cw;P.options=pw;P.className=np;P.defaultOptions=mw;import{jsx as dp,jsxs as hw}from"react/jsx-runtime";var kw="k-list-content",Tl=e=>{let{virtualization:t,...a}=e;return hw("div",{...a,className:o(kw,e.className),children:[dp("ul",{className:o("k-list-ul"),children:e.children}),t&&dp("div",{className:"k-height-container",children:dp("div",{})})]})};import{jsx as ah}from"react/jsx-runtime";var fw="k-list-group-sticky-header",lh=e=>ah("div",{className:o(fw,e.className),children:ah("div",{className:"k-list-header-text",children:e.children})});import{Fragment as gw,jsx as rh,jsxs as xw}from"react/jsx-runtime";var xe=e=>{let{virtualization:t,label:a}=e;return xw(gw,{children:[a&&rh(lh,{children:a}),e.children&&rh(Tl,{virtualization:t,children:e.children})]})};import{jsx as sh}from"react/jsx-runtime";var bw="k-list-group-item",_k=e=>sh("li",{className:o(bw,e.className),children:sh("span",{className:"k-list-item-text",children:e.children})});import{jsx as Aw}from"react/jsx-runtime";var cp="k-list-optionlabel",vw=[l.hover,l.focus,l.selected,l.disabled],yw={},ww={},Bn=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Aw("div",{...d,className:o(cp,b(cp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Bn.states=vw;Bn.options=yw;Bn.className=cp;Bn.defaultOptions=ww;import{jsx as Sw}from"react/jsx-runtime";var pp="k-list-custom-value",Tw=[l.hover,l.focus,l.selected,l.disabled],Nw={},Cw={},Je=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Sw("div",{...d,className:o(pp,b(pp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Je.states=Tw;Je.options=Nw;Je.className=pp;Je.defaultOptions=Cw;import{jsx as Z0}from"react/jsx-runtime";import{jsx as q0}from"react/jsx-runtime";import{jsx as tH,jsxs as oH}from"react/jsx-runtime";import{jsx as sH,jsxs as iH}from"react/jsx-runtime";import{jsx as pH}from"react/jsx-runtime";import{jsx as hH,jsxs as fH}from"react/jsx-runtime";import{jsx as vH,jsxs as yH}from"react/jsx-runtime";import{Fragment as Mw,jsx as dt,jsxs as mp}from"react/jsx-runtime";var ih="k-dropdownlist",Iw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Bw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Sl={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:x.solid},se=e=>{let{size:t=Sl.size,rounded:a=Sl.rounded,fillMode:r=Sl.fillMode,arrowIconName:s=Sl.arrowIconName,showValue:i=Sl.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:fe,adaptiveSettings:Ee,adaptiveTitle:tt,adaptiveSubtitle:zt,adaptiveFilter:Aa,...vl}=e;return mp(Mw,{children:[mp(wt,{...vl,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,ih,{"k-icon-picker":!i&&d}),children:[dt($,{children:p}),dt(bo,{placeholder:y,value:k,showValue:i,valueIconName:d}),dt(X,{valid:T,invalid:N,loading:B,disabled:L}),dt(J,{loading:B,disabled:L}),dt(ee,{children:m}),dt(c,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),W&&D&&dt(F,{className:"k-list-container k-dropdownlist-popup",children:D}),fe&&dt(re,{adaptive:!0,...Ee,header:dt(ae,{actionsEnd:dt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Aa,inputValue:k,inputPlaceholder:y,title:tt,subtitle:zt}),children:dt("div",{className:"k-list-container",children:mp(Q,{size:"large",children:[dt(P,{text:"List item"}),dt(P,{text:"List item"}),dt(P,{text:"List item"})]})})})]})};se.states=Iw;se.options=Bw;se.className=ih;se.defaultOptions=Sl;import{jsx as qH}from"react/jsx-runtime";import{jsx as o8,jsxs as a8}from"react/jsx-runtime";import{Fragment as p8,jsx as d8,jsxs as c8}from"react/jsx-runtime";import{jsx as h8}from"react/jsx-runtime";import{jsx as v8,jsxs as y8}from"react/jsx-runtime";import{jsx as C8,jsxs as S8}from"react/jsx-runtime";import{Fragment as G8,jsx as Y8,jsxs as P8}from"react/jsx-runtime";import{Fragment as O8,jsx as H8,jsxs as W8}from"react/jsx-runtime";import{Fragment as rW,jsx as lW}from"react/jsx-runtime";import{Fragment as mW,jsx as pW}from"react/jsx-runtime";import{Fragment as ws,jsx as U,jsxs as Ce}from"react/jsx-runtime";var nh="k-colorgradient-inputs",Lw=[],Ew={size:[n.small,n.medium,n.large]},dh={mode:"rgba",size:n.medium},Il=e=>{let{mode:t=dh.mode,size:a,...r}=e;return Ce("div",{...r,className:o(nh,"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"&&Ce(ws,{children:[Ce("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),U("label",{className:"k-colorgradient-input-label",children:"R"})]}),Ce("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),U("label",{className:"k-colorgradient-input-label",children:"G"})]}),Ce("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),U("label",{className:"k-colorgradient-input-label",children:"B"})]}),Ce("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"&&Ce(ws,{children:[Ce("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"R"})]}),Ce("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"G"})]}),Ce("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&Ce(ws,{children:[Ce("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"H"})]}),Ce("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"S"})]}),Ce("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"V"})]}),Ce("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"&&Ce(ws,{children:[Ce("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"H"})]}),Ce("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"S"})]}),Ce("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(ws,{children:Ce("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"})]})})]})};Il.states=Lw;Il.options=Ew;Il.className=nh;Il.defaultOptions=dh;import{jsx as Ma,jsxs as La}from"react/jsx-runtime";var ch="k-colorgradient-color-contrast",Yw=[],Pw={},Gw={},Bl=()=>La("div",{className:o(ch,"k-vbox"),children:[La("div",{className:"k-contrast-ratio",children:[Ma("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),La("span",{className:"k-contrast-validation !k-text-success",children:[Ma(v,{icon:"check"}),Ma(v,{icon:"check"})]})]}),La("div",{children:[Ma("span",{children:"AA: 4.5"}),La("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ma(v,{icon:"check"})]})]}),La("div",{children:[Ma("span",{children:"AAA: 7.0"}),La("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ma(v,{icon:"x"})]})]})]});Bl.states=Yw;Bl.options=Pw;Bl.className=ch;Bl.defaultOptions=Gw;import{jsx as Mt,jsxs as As}from"react/jsx-runtime";var Mn="k-colorgradient",Kw=[l.hover,l.focus,l.readonly,l.disabled],Dw={size:[n.small,n.medium,n.large]},Wt={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"},zo=e=>{let{size:t=Wt.size,mode:a=Wt.mode,readonly:r=Wt.readonly,disabled:s=Wt.disabled,gradientStyle:i=Wt.gradientStyle,dragHandleStyle:d=Wt.dragHandleStyle,alphaStyle:p=Wt.alphaStyle,alphaStyleHorizontal:m=Wt.alphaStyleHorizontal,contrast:k=Wt.contrast,dir:y,hover:A,focus:g,hoverHandle:T,focusHandle:N,canvasOrientation:S=Wt.canvasOrientation,...B}=e;return As("div",{...B,className:o(e.className,Mn,C(Mn,{size:t}),b(Mn,{hover:A,focus:g,readonly:r,disabled:s})),dir:y,children:[!S||S==="horizontal"&&As("div",{className:"k-colorgradient-canvas k-hstack",children:[Mt("div",{className:"k-hsv-rectangle",style:i,children:Mt("div",{className:"k-hsv-gradient",children:Mt("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":T,"k-focus":N}),style:d})})}),As("div",{className:"k-hsv-controls k-hstack",children:[Mt(tp,{className:"k-hue-slider",hover:T,focus:N}),a!=="rgb"&&a!=="hsv"&&Mt(tp,{className:"k-alpha-slider",hover:T,focus:N,trackStyle:p})]})]}),S==="vertical"&&As("div",{className:"k-colorgradient-canvas k-vstack",children:[Mt("div",{className:"k-hsv-rectangle",style:i,children:Mt("div",{className:"k-hsv-gradient",children:Mt("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":T,"k-focus":N}),style:d})})}),As("div",{className:"k-hsv-controls k-vstack",children:[Mt(ep,{className:"k-hue-slider",hover:T,focus:N}),a!=="rgb"&&a!=="hsv"&&Mt(ep,{className:"k-alpha-slider",hover:T,focus:N,trackStyle:m})]})]}),Mt(Il,{mode:e.mode,size:t}),k&&Mt(Bl,{})]})};zo.states=Kw;zo.options=Dw;zo.className=Mn;zo.defaultOptions=Wt;import{jsx as DW}from"react/jsx-runtime";import{jsx as HW}from"react/jsx-runtime";import{jsx as Fw}from"react/jsx-runtime";var ph=e=>Fw("tr",{children:e.children});import{jsx as Hw}from"react/jsx-runtime";var up="k-colorpalette-tile",zw=[l.hover,l.focus,l.selected],Rw={},Ts=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 Hw("td",{...d,className:o(e.className,up,b(up,{hover:r,focus:s,selected:i})),style:p})};Ts.states=zw;Ts.options=Rw;Ts.className=up;import{jsx as Ns}from"react/jsx-runtime";var Ln="k-colorpalette",Ww=[l.disabled],Ow={size:[n.small,n.medium,n.large]},kp={columns:10,size:n.medium},Ml=e=>{let{size:t=kp.size,palette:a,columns:r=kp.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(Ns(Ts,{color:N,tileSize:s},S))});let T=Ns(ph,{children:g},A);p.push(T)})}return Ns("div",{...d,className:o(e.className,Ln,b(Ln,{disabled:i}),C(Ln,{size:t})),children:Ns("table",{className:"k-colorpalette-table",children:Ns("tbody",{children:p.length>0?p:e.children})})})};Ml.states=Ww;Ml.options=Ow;Ml.className=Ln;Ml.defaultOptions=kp;var hp={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 cO}from"react/jsx-runtime";import{jsx as Lt,jsxs as Ll}from"react/jsx-runtime";var En="k-coloreditor",Qw=[l.focus],Vw={size:[n.small,n.medium,n.large]},El={size:n.medium,view:"gradient",palette:hp.office,actionButtons:!0,canvasOrientation:"horizontal"},ao=e=>{let{size:t=El.size,view:a=El.view,palette:r=El.palette,color:s,currentColor:i,focus:d,focusView:p,dir:m,group:k,actionButtons:y=El.actionButtons,canvasOrientation:A=El.canvasOrientation,...g}=e;return Ll("div",{...g,className:o(e.className,"k-flatcolorpicker",En,C(En,{size:t}),b(En,{focus:d})),dir:m,children:[Ll("div",{className:"k-coloreditor-header k-hstack",children:[Lt("div",{className:"k-coloreditor-header-actions k-hstack",children:k&&Ll(Y,{fillMode:"flat",children:[Lt(c,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:a==="gradient"}),Lt(c,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:a==="palette"})]})}),Lt("div",{className:"k-spacer"}),Ll("div",{className:"k-coloreditor-header-actions k-hstack",children:[Lt(c,{fillMode:"flat",icon:"droplet-slash",size:t}),Ll("div",{className:"k-coloreditor-preview k-vstack",children:[Lt(Yo,{className:"k-coloreditor-preview-color",color:s}),Lt(Yo,{className:"k-coloreditor-current-color",color:i})]})]})]}),Lt("div",{className:"k-coloreditor-views k-vstack",children:a==="gradient"?Lt(zo,{focus:p,size:t,canvasOrientation:A}):Lt(Ml,{palette:r,size:t})}),y&&Ll(O,{className:"k-coloreditor-footer",alignment:"start",children:[Lt(c,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Lt(c,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ao.states=Qw;ao.options=Vw;ao.className=En;ao.defaultOptions=El;import{jsx as BO}from"react/jsx-runtime";import{jsx as YO}from"react/jsx-runtime";import{jsx as DO}from"react/jsx-runtime";import{jsx as HO}from"react/jsx-runtime";import{Fragment as Jw,jsx as Et,jsxs as gp}from"react/jsx-runtime";var mh="k-colorpicker",Xw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],Zw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Cs={arrowIconName:"caret-alt-down",size:wt.defaultOptions.size,rounded:wt.defaultOptions.rounded,fillMode:wt.defaultOptions.fillMode},Yt=e=>{let{size:t=Cs.size,rounded:a=Cs.rounded,fillMode:r=Cs.fillMode,arrowIconName:s=Cs.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:fe,...Ee}=e;return gp(Jw,{children:[gp(wt,{...Ee,size:t,rounded:a,fillMode:r,hover:k,focus:y,valid:A,invalid:g,required:T,disabled:N,className:o(e.className,mh,"k-icon-picker"),children:[Et($,{children:i}),Et(bo,{placeholder:m,value:p,showValue:!1,valueIcon:Et(Yo,{className:"k-value-icon",color:p,iconName:S}),valueIconName:S}),Et(ee,{children:d}),Et(c,{className:"k-input-button",icon:s,rounded:null,size:t,fillMode:r})]}),L&&B&&Et(F,{className:"k-colorpicker-popup",children:B}),E&&Et(re,{adaptive:!0,...D,header:Et(ae,{actionsEnd:Et(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:W,subtitle:fe}),footer:gp(Ht,{children:[Et(c,{text:"Cancel",size:"large",themeColor:"base"}),Et(c,{text:"Set",size:"large",themeColor:"primary"})]}),children:Et(ao,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};Yt.states=Xw;Yt.options=Zw;Yt.className=mh;Yt.defaultOptions=Cs;import{jsx as iQ}from"react/jsx-runtime";import{jsx as mQ}from"react/jsx-runtime";import{jsx as gQ}from"react/jsx-runtime";import{jsx as yQ}from"react/jsx-runtime";import{jsx as NQ}from"react/jsx-runtime";import{jsx as BQ}from"react/jsx-runtime";import{Fragment as xp,jsx as Re,jsxs as Ss}from"react/jsx-runtime";var uh="k-combobox",Uw=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],qw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Is={size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},Tt=e=>{let{size:t=Is.size,rounded:a=Is.rounded,fillMode:r=Is.fillMode,separators:s=Is.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:fe,adaptiveSubtitle:Ee,adaptiveCustomValue:tt,...zt}=e;return Ss(xp,{children:[Ss(M,{...zt,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,uh),children:[i&&Ss(xp,{