@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 296 kB
JavaScript
var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>o({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),x=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},h={small:"small",medium:"medium",large:"large",full:"full"},b={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"},wt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{Fragment as Rv,jsx as gk}from"react/jsx-runtime";var Oc="k-icon k-font-icon",Kv=[],Dv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Fv={},ks=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?gk("span",{...d,className:o(e.className,Oc,C(Oc,{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"})}):gk(Rv,{})};ks.states=Kv;ks.options=Dv;ks.className=Oc;ks.defaultOptions=Fv;var xk=ks;import{Fragment as Ov,jsx as An}from"react/jsx-runtime";var Wc="k-icon k-svg-icon",zv=[],Hv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},bk={viewBox:"0 0 24 24"},fs=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=bk.viewBox,icon:d,...p}=e;if(!d)return An(Ov,{});d==="none"&&{...p,className:o(e.className,Wc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return An("span",{...p,className:o(e.className,Wc,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:An("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})})};fs.states=zv;fs.options=Hv;fs.className=Wc;fs.defaultOptions=bk;var Qc=fs;import*as vk from"@progress/kendo-svg-icons";import{Fragment as yk,jsx as hs}from"react/jsx-runtime";var Wv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Qv=[],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]},Vc={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:a,icon:r,type:s=Vc.type,rotate:i,flip:d,viewBox:p=Vc.viewBox,...m}=e;if(!r)return hs(yk,{});if(s==="svg"){if(r==="none")return hs(Qc,{...m,icon:r,size:t});let k=Wv(`${r}-icon`);return vk[k]?hs(Qc,{...m,icon:vk[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):hs(yk,{})}return hs(xk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};y.states=Qv;y.options=Vv;y.defaultOptions=Vc;var Xc=y;import{Fragment as Jv,jsx as gs,jsxs as wk}from"react/jsx-runtime";var Nn="k-button",Xv=[l.hover,l.focus,l.active,l.selected,l.disabled],Zv={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Sa={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Sa.size,rounded:a=Sa.rounded,fillMode:r=Sa.fillMode,themeColor:s=Sa.themeColor,showArrow:i=Sa.showArrow,arrowIconName:d=Sa.arrowIconName,hover:p,focus:m,active:k,selected:v,disabled:T,icon:g,text:A,iconClassName:N,...B}=e,L=g!==void 0,Y=e.children!==void 0;return wk("button",{...B,className:o(e.className,Nn,C(Nn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Nn,{hover:p,focus:m,active:k,disabled:T,selected:v}),{"k-icon-button":!A&&!Y&&L}),children:[g&&gs(y,{className:o(N,"k-button-icon"),icon:g}),A?wk(Jv,{children:[A&&gs("span",{className:"k-button-text",children:A}),e.children]}):e.children&&gs("span",{className:"k-button-text",children:e.children}),i&&gs("span",{className:"k-menu-button-arrow k-button-arrow",children:gs(y,{icon:d})})]})};c.states=Xv;c.options=Zv;c.className=Nn;c.defaultOptions=Sa;import{jsx as jv}from"react/jsx-runtime";var _e=e=>jv(c,{icon:"folder",...e,children:void 0});import{jsx as Uv}from"react/jsx-runtime";var Wt=e=>Uv(c,{icon:"folder",children:"Button",...e});import{jsx as UG}from"react/jsx-runtime";import{jsx as $v}from"react/jsx-runtime";var xs="k-button-group",qv=[l.disabled],_v={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},Tk={fillMode:b.solid},P=e=>{let{fillMode:t=Tk.fillMode,disabled:a,stretched:r,...s}=e;return $v("div",{...s,className:o(e.className,xs,C(xs,{fillMode:t}),x(xs,{disabled:a}),{[`${xs}-stretched`]:r}),children:e.children})};P.states=qv;P.options=_v;P.className=xs;P.defaultOptions=Tk;import{Fragment as cK,jsx as dK,jsxs as pK}from"react/jsx-runtime";import{Fragment as gK,jsx as hK,jsxs as xK}from"react/jsx-runtime";import{Fragment as AK,jsx as TK,jsxs as NK}from"react/jsx-runtime";import{Fragment as LK,jsx as MK,jsxs as EK}from"react/jsx-runtime";import{Fragment as VK,jsx as WK,jsxs as QK}from"react/jsx-runtime";import{jsx as ay}from"react/jsx-runtime";var Ak="k-scheduler-layout",ey=[],ty={},oy={},bs=e=>{let{as:t="div",view:a,...r}=e;return ay(t,{...r,className:o(e.className,Ak,{[`k-scheduler-${a}view`]:a}),children:e.children})};bs.states=ey;bs.options=ty;bs.className=Ak;bs.defaultOptions=oy;var Nk=bs;import{jsx as iy,jsxs as ny}from"react/jsx-runtime";var Ck="k-scheduler",ly=[],ry={},sy={},Me=e=>{let{view:t,toolbar:a,footer:r,layout:s,...i}=e;return ny("div",{...i,className:o(e.className,Ck),children:[a,iy(Nk,{className:o({"k-scheduler-layout-flex":s==="flex"}),as:s==="table"?"table":"div",view:t,children:e.children}),r]})};Me.states=ly;Me.options=ry;Me.className=Ck;Me.defaultOptions=sy;import{jsx as oD}from"react/jsx-runtime";import{jsx as sD}from"react/jsx-runtime";import{jsx as cD}from"react/jsx-runtime";import{jsx as kD}from"react/jsx-runtime";import{jsx as Sk}from"react/jsx-runtime";var Ik="k-scheduler-cell",dy=[],cy={},py={},I=e=>{let{cellType:t,allDay:a,text:r,colspan:s,rowspan:i,as:d="div",...p}=e,m=r||e.children;return Sk(d,{...p,colSpan:s,rowSpan:i,className:o(Ik,e.className,{"k-scheduler-times-all-day":a},t?.map(k=>({[`k-${k}-cell`]:!0}))),children:!a&&r?Sk("span",{className:"k-link k-nav-day",children:m}):m})};I.states=dy;I.options=cy;I.defaultOptions=py;I.className=Ik;import{jsx as yD}from"react/jsx-runtime";import{jsx as uy}from"react/jsx-runtime";var my="k-scheduler-row",me=e=>uy("div",{...e,className:o(my,e.className),children:e.children});import{jsx as hy}from"react/jsx-runtime";var Sn="k-input",ky=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],fy={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},In={size:n.medium,rounded:n.medium,fillMode:b.solid},E=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=In.size,rounded:k=In.rounded,fillMode:v=In.fillMode,...T}=e;return hy("span",{...T,className:o(e.className,Sn,C(Sn,{size:m,rounded:k,fillMode:v}),x(Sn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};E.states=ky;E.options=fy;E.className=Sn;E.defaultOptions=In;import{jsx as by}from"react/jsx-runtime";var Bn="k-picker",gy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],xy={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Mn={size:n.medium,rounded:h.medium,fillMode:b.solid},Tt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=Mn.size,rounded:k=Mn.rounded,fillMode:v=Mn.fillMode,...T}=e;return by("span",{...T,className:o(e.className,Bn,C(Bn,{size:m,rounded:k,fillMode:v}),x(Bn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};Tt.states=gy;Tt.options=xy;Tt.className=Bn;Tt.defaultOptions=Mn;import{Fragment as wy,jsx as Zc}from"react/jsx-runtime";var Bk="k-clear-value",vy=[l.disabled,l.loading,l.readonly],yy={},ae=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Zc(wy,{}):Zc("span",{className:o(e.className,Bk),children:Zc(y,{icon:"x"})})};ae.states=vy;ae.options=yy;ae.className=Bk;import{jsx as Ny}from"react/jsx-runtime";var Jc="k-input-inner",Ty=[],Ay={},Ln={type:"text",autocomplete:"off",value:"",placeholder:""},ne=e=>{let{value:t=Ln.value,type:a=Ln.type,placeholder:r=Ln.placeholder,autocomplete:s=Ln.autocomplete,...i}=e;return Ny("input",{...i,type:a,className:o(e.className,Jc,C(Jc,e)),placeholder:r,autoComplete:s,defaultValue:t})};ne.states=Ty;ne.options=Ay;ne.className=Jc;import{jsx as Mk,jsxs as Iy}from"react/jsx-runtime";var jc="k-input-inner",Cy=[],Sy={},To=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return Iy("span",{...d,className:o(e.className,jc,C(jc,e)),children:[s,!s&&i&&Mk(y,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&Mk("span",{className:"k-input-value-text",children:t})]})};To.states=Cy;To.options=Sy;To.className=jc;import{jsx as Ly}from"react/jsx-runtime";var Uc="k-input-inner",By=[],My={},Lk={value:"",placeholder:""},vs=e=>{let{value:t=Lk.value,placeholder:a=Lk.placeholder,rows:r,...s}=e;return Ly("textarea",{...s,className:o(e.className,Uc,C(Uc,e)),placeholder:a,rows:r,defaultValue:t})};vs.states=By;vs.options=My;vs.className=Uc;import{Fragment as Yy,jsx as Ek}from"react/jsx-runtime";var Yk="k-input-loading-icon",Ey=[l.disabled,l.loading],U=e=>{let{disabled:t,loading:a}=e;return t||!a?Ek(Yy,{}):Ek("span",{className:o(e.className,Yk,"k-icon k-i-loading")})};U.states=Ey;U.className=Yk;import{Fragment as Ky,jsx as Pk}from"react/jsx-runtime";var Gk="k-input-validation-icon",Py=[l.valid,l.invalid,l.disabled,l.loading],Gy={},J=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Pk(Ky,{}):Pk(y,{className:o(Gk),icon:i})};J.states=Py;J.options=Gy;J.className=Gk;import{Fragment as Ry,jsx as Kk}from"react/jsx-runtime";var Dy="k-input-prefix",Fy={direction:"horizontal"},te=e=>{let{direction:t=Fy.direction,...a}=e;return e.children?Kk("span",{...a,className:o(Dy,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Kk(Ry,{})};import{Fragment as Oy,jsx as Dk}from"react/jsx-runtime";var zy="k-input-suffix",Hy={direction:"horizontal"},oe=e=>{let{direction:t=Hy.direction,...a}=e;return e.children?Dk("span",{...a,className:o(zy,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Dk(Oy,{})};import{jsx as iF}from"react/jsx-runtime";import{jsx as pF}from"react/jsx-runtime";import{jsx as Qy}from"react/jsx-runtime";var Fk="k-input-separator",Wy={direction:"vertical"},ye=e=>{let{direction:t=Wy.direction,...a}=e;return Qy("span",{...a,className:o(Fk,e.className,{[`${Fk}-${t}`]:t})})};import{jsx as Rk,jsxs as Zy}from"react/jsx-runtime";var zk="k-color-preview",Vy=[],Xy={},Ro=e=>{let{color:t,iconName:a,...r}=e;return Zy("span",{...r,className:o(e.className,zk,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&Rk(y,{icon:a,className:"k-color-preview-icon"}),Rk("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ro.states=Vy;Ro.options=Xy;Ro.className=zk;import{jsx as Hk}from"react/jsx-runtime";var Ok="k-animation-container",Jy=[],jy={},Wk={positionMode:"absolute"},zo=e=>{let{positionMode:t=Wk.positionMode,animationStyle:a,offset:r,...s}=e;return Hk("div",{...s,style:{...r,...e.style},className:o(e.className,Ok,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Hk("div",{className:"k-child-animation-container",style:a,children:e.children})})};zo.states=Jy;zo.options=jy;zo.className=Ok;zo.defaultOptions=Wk;import{jsx as Qk}from"react/jsx-runtime";var Vk="k-popup",Uy=[],qy={},Xk={positionMode:"absolute"},z=e=>{let{offset:t,positionMode:a=Xk.positionMode,animationStyle:r,...s}=e;return Qk(zo,{positionMode:a,offset:t,animationStyle:r,children:Qk("div",{...s,className:o(e.className,Vk),children:e.children})})};z.states=Uy;z.options=qy;z.className=Vk;z.defaultOptions=Xk;import{jsx as ew}from"react/jsx-runtime";var En="k-actions",_y=[],$y={},qc={alignment:"start",orientation:"horizontal"},V=e=>{let{alignment:t=qc.alignment,orientation:a=qc.orientation,...r}=e;return ew("div",{...r,className:o(En,{[`${En}-${t}`]:t,[`${En}-${a}`]:a},e.className),children:e.children})};V.states=_y;V.options=$y;V.className=En;V.defaultOptions=qc;var Zk=V;import{jsx as ow}from"react/jsx-runtime";var tw="k-actionsheet-footer",Jk={alignment:"stretched",orientation:"horizontal"},Qt=e=>{let{alignment:t=Jk.alignment,orientation:a=Jk.orientation,template:r,as:s=r?"div":V,...i}=e;return ow(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,tw),children:e.children})};import{jsx as ys,jsxs as rw}from"react/jsx-runtime";var jk="k-searchbox",aw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],lw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},_c={showIcon:!0,icon:"search",size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},Oe=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:T,disabled:g,showIcon:A=_c.showIcon,icon:N=_c.icon,...B}=e;return rw(E,{...B,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:T,disabled:g,className:o(e.className,jk),children:[A&&ys(y,{className:"k-input-icon",icon:N}),ys(ne,{placeholder:a,value:t}),ys(U,{...e}),ys(J,{...e}),ys(ae,{...e})]})};Oe.states=aw;Oe.options=lw;Oe.className=jk;Oe.defaultOptions=_c;import{jsx as cR}from"react/jsx-runtime";import{Fragment as Uk,jsx as Ho,jsxs as $c}from"react/jsx-runtime";var qk="k-textbox",sw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],iw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ia={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},j=e=>{let{size:t=Ia.size,rounded:a=Ia.rounded,fillMode:r=Ia.fillMode,separators:s=Ia.separators,showClearButton:i=Ia.showClearButton,showValidationIcon:d=Ia.showValidationIcon,prefix:p,suffix:m,type:k,value:v,placeholder:T,hover:g,focus:A,valid:N,invalid:B,required:L,loading:Y,disabled:G,readonly:R,...W}=e;return $c(E,{...W,size:t,rounded:a,fillMode:r,hover:g,focus:A,valid:N,invalid:B,required:L,loading:Y,disabled:G,readonly:R,className:o(e.className,qk),children:[p&&$c(Uk,{children:[Ho(te,{children:p}),s&&Ho(ye,{})]}),Ho(ne,{placeholder:T,value:v,type:k}),d&&Ho(J,{valid:N,invalid:B,loading:Y,disabled:G}),Ho(U,{loading:Y,disabled:G}),i&&Ho(ae,{loading:Y,disabled:G,readonly:R,value:v}),m&&$c(Uk,{children:[s&&Ho(ye,{}),Ho(oe,{children:m})]})]})};j.states=sw;j.options=iw;j.className=qk;j.defaultOptions=Ia;import{jsx as yR}from"react/jsx-runtime";import{Fragment as SR,jsx as CR}from"react/jsx-runtime";import{Fragment as YR,jsx as ER}from"react/jsx-runtime";import{jsx as Oo,jsxs as ep}from"react/jsx-runtime";var ef="k-actionsheet-titlebar",nw={},re=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:v,...T}=e;return ep("div",{...T,className:o(e.className,ef),children:[ep("div",{className:"k-actionsheet-titlebar-group",children:[r&&Oo("div",{className:"k-actionsheet-actions",children:r}),!v&&ep("div",{className:"k-actionsheet-title",children:[t&&Oo("div",{className:"k-text-center",children:t}),a&&Oo("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),v&&Oo("div",{className:"k-actionsheet-title",children:v}),s&&Oo("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Oo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Oo(j,{value:p,placeholder:m,size:k?"large":"medium"}):Oo(Oe,{placeholder:"Filter",size:k?"large":"medium"})})]})};re.className=ef;re.defaultOptions=nw;import{jsx as tp,jsxs as mw}from"react/jsx-runtime";var op="k-actionsheet-view",dw=[],cw={},pw={},Ml=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===re&&tp(re,{adaptive:t,...s?.props}),m=i?.type===Qt&&tp(Qt,{...i?.props});return mw("div",{...d,className:o(e.className,op,{[`${op}-animated`]:a}),children:[p,tp("div",{className:"k-actionsheet-content",children:r}),m]})};Ml.states=dw;Ml.options=cw;Ml.className=op;Ml.defaultOptions=pw;import{jsx as Yn,jsxs as fw}from"react/jsx-runtime";var tf="k-actionsheet",uw=[],kw={},ws={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},de=e=>{let{side:t=ws.side,fullscreen:a=ws.fullscreen,adaptive:r=ws.adaptive,overlay:s=ws.overlay,template:i,children:d,header:p,footer:m,...k}=e;return fw("div",{className:"k-actionsheet-container",children:[s&&Yn("div",{className:"k-overlay"}),Yn(zo,{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:Yn("div",{...k,className:o(e.className,tf,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Yn(Ml,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};de.states=uw;de.options=kw;de.className=tf;de.defaultOptions=ws;import{jsx as az}from"react/jsx-runtime";import{Fragment as gw,jsx as Ts,jsxs as ap}from"react/jsx-runtime";var lp="k-actionsheet-item",hw=[l.hover,l.focus,l.selected,l.disabled],rp=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return ap("span",{...m,className:o(e.className,lp,x(lp,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&Ts(gw,{children:ap("span",{className:"k-actionsheet-action",children:[t&&Ts("span",{className:"k-icon-wrap",children:Ts(y,{className:"k-actionsheet-item-icon",icon:t})}),ap("span",{className:"k-actionsheet-item-text",children:[a&&Ts("span",{className:"k-actionsheet-item-title",children:a}),r&&Ts("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};rp.states=hw;rp.className=lp;import{jsx as mz,jsxs as uz}from"react/jsx-runtime";import{jsx as gz}from"react/jsx-runtime";import{jsx as yz}from"react/jsx-runtime";import{jsx as Nz}from"react/jsx-runtime";import{jsx as Ll,jsxs as sp}from"react/jsx-runtime";var As="k-slider",xw=[l.hover,l.focus,l.active,l.disabled,l.readonly],bw={},Wo={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},At=e=>{let{type:t=Wo.type,orientation:a=Wo.orientation,readonly:r=Wo.readonly,disabled:s=Wo.disabled,handlePosition:i=Wo.handlePosition,showButtons:d=Wo.showButtons,showTicks:p=Wo.showTicks,hover:m,focus:k,active:v,trackStyle:T,dir:g,...A}=e,N,B;return a==="horizontal"?(N=g==="rtl"?"caret-alt-left":"caret-alt-right",B=g==="rtl"?"caret-alt-right":"caret-alt-left"):a==="vertical"&&(N="caret-alt-up",B="caret-alt-down"),sp("div",{...A,className:o(As,e.className,x(As,{readonly:r,disabled:s}),{[`k-slider-${a}`]:a,"k-colorgradient-slider":t==="gradient"}),dir:g,children:[d&&Ll(c,{className:"k-button-decrease",rounded:"full",icon:B}),sp("div",{className:"k-slider-track-wrap",children:[p&&Ll("ul",{className:"k-reset k-slider-items",children:e.children}),sp("div",{className:"k-slider-track",style:T,children:[Ll("div",{className:"k-slider-selection"}),t==="range"&&Ll("span",{className:o("k-draghandle","k-draghandle-start",x(As,{hover:m,focus:k,active:v}))}),Ll("span",{className:o("k-draghandle",`k-draghandle-${i}`,x(As,{hover:m,focus:k,active:v}))})]})]}),d&&Ll(c,{className:"k-button-increase",rounded:"full",icon:N})]})};At.states=xw;At.options=bw;At.className=As;At.defaultOptions=Wo;import{jsx as af}from"react/jsx-runtime";var lf="k-tick",vw=[],yw={},rf={label:!1},He=e=>{let{style:t,label:a=rf.label,orientation:r,large:s,text:i,...d}=e;return af("li",{...d,className:o(e.className,lf,{[`k-tick-${r}`]:r,"k-tick-large":s}),style:t,children:a&&af("span",{className:"k-label",children:i})})};He.states=vw;He.options=yw;He.className=lf;He.defaultOptions=rf;import{Fragment as ww,jsx as Lt,jsxs as Tw}from"react/jsx-runtime";var Pn=e=>Lt(At,{children:Tw(ww,{children:[Lt(He,{className:"k-first",label:!0,large:!0,text:"0"}),Lt(He,{}),Lt(He,{}),Lt(He,{}),Lt(He,{}),Lt(He,{label:!0,large:!0,text:"5"}),Lt(He,{}),Lt(He,{}),Lt(He,{}),Lt(He,{}),Lt(He,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as qz,jsx as Uz,jsxs as _z}from"react/jsx-runtime";import{Fragment as a0,jsx as o0,jsxs as l0}from"react/jsx-runtime";import{Fragment as d0,jsx as n0,jsxs as c0}from"react/jsx-runtime";import{jsx as Aw}from"react/jsx-runtime";var ip=e=>Aw(At,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Nw}from"react/jsx-runtime";var np=e=>Nw(At,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as sf,jsxs as Iw}from"react/jsx-runtime";var nf="k-spin-button",Cw=[],Sw={size:[n.small,n.medium,n.large],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},dp={size:n.medium,fillMode:b.solid},Qo=e=>{let{size:t=dp.size,fillMode:a=dp.fillMode,...r}=e;return Iw("span",{...r,className:o(nf,e.className),children:[sf(c,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:a}),sf(c,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]})};Qo.states=Cw;Qo.options=Sw;Qo.className=nf;Qo.defaultOptions=dp;import{Fragment as df,jsx as Ao,jsxs as cp}from"react/jsx-runtime";var cf="k-numerictextbox",Bw=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],Mw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ba={showSpinButton:!0,showClearButton:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},ue=e=>{let{size:t=Ba.size,rounded:a=Ba.rounded,fillMode:r=Ba.fillMode,separators:s=Ba.separators,showClearButton:i=Ba.showClearButton,showSpinButton:d=Ba.showSpinButton,prefix:p,suffix:m,value:k,placeholder:v,hover:T,focus:g,valid:A,invalid:N,required:B,loading:L,disabled:Y,readonly:G,...R}=e;return cp(E,{...R,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:B,loading:L,disabled:Y,readonly:G,className:o(e.className,cf),children:[p&&cp(df,{children:[Ao(te,{children:p}),s&&Ao(ye,{})]}),Ao(ne,{placeholder:v,value:k}),Ao(J,{valid:A,invalid:N,loading:L,disabled:Y}),Ao(U,{loading:L,disabled:Y}),i&&Ao(ae,{loading:L,disabled:Y,readonly:G,value:k}),m&&cp(df,{children:[s&&Ao(ye,{}),Ao(oe,{children:m})]}),d&&Ao(Qo,{className:"k-input-spinner",size:t,fillMode:r})]})};ue.states=Bw;ue.options=Mw;ue.className=cf;ue.defaultOptions=Ba;import{jsx as z0}from"react/jsx-runtime";import{jsx as Ew}from"react/jsx-runtime";var Lw="k-no-data",Ns=e=>Ew("span",{className:o(Lw,e.className),children:e.children});import{jsx as El,jsxs as mf}from"react/jsx-runtime";var pp="k-list",Yw=[],Pw={size:[n.small,n.medium,n.large]},uf={size:n.medium},X=e=>{let{size:t=uf.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:d,...p}=e,m,k,v,T,g=[];return r?r.map((A,N)=>{A.type===we?(A.props.root===!0?(m=A.props.label,A.props.children.map((B,L)=>{g.push(El(K,{...B.props},`optChild-${L}-${new Date().getTime()}`))})):A.props.children.forEach((B,L)=>{let Y="";L===0&&(Y=A.props.label),g.push(El(K,{className:L===0?"k-first":"",...B.props,groupLabel:Y},`groupLabel-${L}-${new Date().getTime()}`))}),k=El(we,{label:m,virtualization:a,children:g})):A.type===K&&(g.push(El(K,{...A.props},`${A.type}-${N}`)),v=El(Yl,{virtualization:a,children:g}),d&&(T=mf(Ns,{className:"k-sr-only",children:[g.length," items found."]})))}):T=El(Ns,{children:"No data found."}),mf("div",{...p,className:o(e.className,pp,C(pp,{size:t}),{"k-virtual-list":a}),children:[s,i,k,v,T]})};X.states=Yw;X.options=Pw;X.className=pp;X.defaultOptions=uf;import{jsx as Ma,jsxs as Dw}from"react/jsx-runtime";var mp="k-list",Gw=[],Kw={size:[n.small,n.medium,n.large]},kf={size:n.medium},La=e=>{let{size:t=kf.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,v)=>{k.type===we?(k.props.root===!0?(i=k.props.label,k.props.children.map((T,g)=>{m.push(Ma(K,{...T.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Ma(ff,{...k.props,children:k.props.label},`listChild-${v}`)),k.props.children.map((T,g)=>{m.push(Ma(K,{...T.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Ma(we,{label:i,virtualization:a,children:m})):k.type===K&&(m.push(Ma(K,{...k.props},`${k.type}-${v}`)),p=Ma(Yl,{virtualization:a,children:m}))}):p=Ma(Ns,{children:"No data found."}),Dw("div",{...s,className:o(e.className,mp,C(mp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};La.states=Gw;La.options=Kw;La.className=mp;La.defaultOptions=kf;import{jsx as hf}from"react/jsx-runtime";var Gn="k-checkbox",Fw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],Rw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full]},up={size:n.medium,rounded:h.medium},Ze=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:v=up.size,rounded:T=up.rounded,...g}=e;return hf("span",{className:"k-checkbox-wrap",children:hf("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Gn,C(Gn,{size:v,rounded:T}),x(Gn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};Ze.states=Fw;Ze.options=Rw;Ze.className=Gn;Ze.defaultOptions=up;import{jsx as Ow}from"react/jsx-runtime";var gf="k-checkbox-list",zw=[],Hw={},xf={layout:"vertical"},Pl=e=>{let{layout:t=xf.layout,...a}=e;return Ow("ul",{...a,className:o(e.className,gf,{[`k-list-${t}`]:t}),children:e.children})};Pl.states=zw;Pl.options=Hw;Pl.className=gf;Pl.defaultOptions=xf;import{jsx as Xw}from"react/jsx-runtime";var bf="k-checkbox-list-item",Ww=[],Qw={},Vw={},Gl=e=>{let{...t}=e;return Xw("li",{...t,className:o(e.className,bf),children:e.children})};Gl.states=Ww;Gl.options=Qw;Gl.className=bf;Gl.defaultOptions=Vw;import{Fragment as fH,jsx as kH,jsxs as hH}from"react/jsx-runtime";import{Fragment as yH,jsx as vH,jsxs as wH}from"react/jsx-runtime";import{Fragment as SH,jsx as CH,jsxs as IH}from"react/jsx-runtime";import{Fragment as YH,jsx as EH,jsxs as PH}from"react/jsx-runtime";import{jsx as FH}from"react/jsx-runtime";import{jsx as OH}from"react/jsx-runtime";import{jsx as Kn,jsxs as Uw}from"react/jsx-runtime";var fp="k-list-item",Zw=[l.hover,l.focus,l.selected,l.disabled],Jw={},jw={},K=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:k,selected:v,disabled:T,...g}=e,A=t||e.children;return Uw("li",{...g,className:o(e.className,r?"k-list-group-item":fp,x(fp,{hover:m,focus:k,disabled:T,selected:v})),children:[d&&Kn(Ze,{checked:p}),s&&Kn(y,{icon:i}),Kn("span",{className:"k-list-item-text",children:A}),a&&a!==""&&Kn("div",{className:"k-list-item-group-label",children:a})]})};K.states=Zw;K.options=Jw;K.className=fp;K.defaultOptions=jw;import{jsx as hp,jsxs as _w}from"react/jsx-runtime";var qw="k-list-content",Yl=e=>{let{virtualization:t,...a}=e;return _w("div",{...a,className:o(qw,e.className),children:[hp("ul",{className:o("k-list-ul"),children:e.children}),t&&hp("div",{className:"k-height-container",children:hp("div",{})})]})};import{jsx as vf}from"react/jsx-runtime";var $w="k-list-group-sticky-header",yf=e=>vf("div",{className:o($w,e.className),children:vf("div",{className:"k-list-header-text",children:e.children})});import{Fragment as eT,jsx as wf,jsxs as tT}from"react/jsx-runtime";var we=e=>{let{virtualization:t,label:a}=e;return tT(eT,{children:[a&&wf(yf,{children:a}),e.children&&wf(Yl,{virtualization:t,children:e.children})]})};import{jsx as Tf}from"react/jsx-runtime";var oT="k-list-group-item",ff=e=>Tf("li",{className:o(oT,e.className),children:Tf("span",{className:"k-list-item-text",children:e.children})});import{jsx as sT}from"react/jsx-runtime";var gp="k-list-optionlabel",aT=[l.hover,l.focus,l.selected,l.disabled],lT={},rT={},Dn=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return sT("div",{...d,className:o(gp,x(gp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Dn.states=aT;Dn.options=lT;Dn.className=gp;Dn.defaultOptions=rT;import{jsx as cT}from"react/jsx-runtime";var xp="k-list-custom-value",iT=[l.hover,l.focus,l.selected,l.disabled],nT={},dT={},et=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return cT("div",{...d,className:o(xp,x(xp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};et.states=iT;et.options=nT;et.className=xp;et.defaultOptions=dT;import{jsx as N8}from"react/jsx-runtime";import{jsx as B8}from"react/jsx-runtime";import{jsx as Y8,jsxs as P8}from"react/jsx-runtime";import{jsx as F8,jsxs as R8}from"react/jsx-runtime";import{jsx as W8}from"react/jsx-runtime";import{jsx as Z8,jsxs as J8}from"react/jsx-runtime";import{jsx as _8,jsxs as $8}from"react/jsx-runtime";import{Fragment as uT,jsx as mt,jsxs as bp}from"react/jsx-runtime";var Af="k-dropdownlist",pT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],mT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Kl={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:h.medium,fillMode:b.solid},se=e=>{let{size:t=Kl.size,rounded:a=Kl.rounded,fillMode:r=Kl.fillMode,arrowIconName:s=Kl.arrowIconName,showValue:i=Kl.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:v,hover:T,focus:g,valid:A,invalid:N,required:B,loading:L,disabled:Y,readonly:G,popup:R,opened:W,adaptive:ve,adaptiveSettings:ze,adaptiveTitle:rt,adaptiveSubtitle:Ot,adaptiveFilter:Ca,...Cl}=e;return bp(uT,{children:[bp(Tt,{...Cl,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:B,loading:L,disabled:Y,readonly:G,className:o(e.className,Af,{"k-icon-picker":!i&&d}),children:[mt(te,{children:p}),mt(To,{placeholder:v,value:k,showValue:i,valueIconName:d}),mt(J,{valid:A,invalid:N,loading:L,disabled:Y}),mt(U,{loading:L,disabled:Y}),mt(oe,{children:m}),mt(c,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),W&&R&&mt(z,{className:"k-list-container k-dropdownlist-popup",children:R}),ve&&mt(de,{adaptive:!0,...ze,header:mt(re,{actionsEnd:mt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ca,inputValue:k,inputPlaceholder:v,title:rt,subtitle:Ot}),children:mt("div",{className:"k-list-container",children:bp(X,{size:"large",children:[mt(K,{text:"List item"}),mt(K,{text:"List item"}),mt(K,{text:"List item"})]})})})]})};se.states=pT;se.options=mT;se.className=Af;se.defaultOptions=Kl;import{jsx as BO}from"react/jsx-runtime";import{jsx as PO,jsxs as GO}from"react/jsx-runtime";import{Fragment as WO,jsx as HO,jsxs as OO}from"react/jsx-runtime";import{jsx as ZO}from"react/jsx-runtime";import{jsx as _O,jsxs as $O}from"react/jsx-runtime";import{jsx as lW,jsxs as rW}from"react/jsx-runtime";import{Fragment as uW,jsx as pW,jsxs as mW}from"react/jsx-runtime";import{Fragment as yW,jsx as bW,jsxs as vW}from"react/jsx-runtime";import{Fragment as DW,jsx as KW}from"react/jsx-runtime";import{Fragment as QW,jsx as WW}from"react/jsx-runtime";import{Fragment as Cs,jsx as _,jsxs as Le}from"react/jsx-runtime";var Nf="k-colorgradient-inputs",kT=[],fT={size:[n.small,n.medium,n.large]},Cf={mode:"rgba",size:n.medium},Dl=e=>{let{mode:t=Cf.mode,size:a,...r}=e;return Le("div",{...r,className:o(Nf,"k-hstack"),children:[_("div",{className:"k-vstack",children:_(c,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:a})}),t==="rgba"&&Le(Cs,{children:[Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),_("label",{className:"k-colorgradient-input-label",children:"R"})]}),Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),_("label",{className:"k-colorgradient-input-label",children:"G"})]}),Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),_("label",{className:"k-colorgradient-input-label",children:"B"})]}),Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:a}),_("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&Le(Cs,{children:[Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"R"})]}),Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"G"})]}),Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&Le(Cs,{children:[Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"H"})]}),Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"S"})]}),Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"V"})]}),Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),_("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&Le(Cs,{children:[Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"H"})]}),Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"S"})]}),Le("div",{className:"k-vstack",children:[_(ue,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&_(Cs,{children:Le("div",{className:"k-vstack k-flex-1",children:[_(j,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),_("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Dl.states=kT;Dl.options=fT;Dl.className=Nf;Dl.defaultOptions=Cf;import{jsx as Ya,jsxs as Pa}from"react/jsx-runtime";var Sf="k-colorgradient-color-contrast",hT=[],gT={},xT={},Fl=()=>Pa("div",{className:o(Sf,"k-vbox"),children:[Pa("div",{className:"k-contrast-ratio",children:[Ya("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Pa("span",{className:"k-contrast-validation !k-text-success",children:[Ya(y,{icon:"check"}),Ya(y,{icon:"check"})]})]}),Pa("div",{children:[Ya("span",{children:"AA: 4.5"}),Pa("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ya(y,{icon:"check"})]})]}),Pa("div",{children:[Ya("span",{children:"AAA: 7.0"}),Pa("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ya(y,{icon:"x"})]})]})]});Fl.states=hT;Fl.options=gT;Fl.className=Sf;Fl.defaultOptions=xT;import{jsx as Et,jsxs as Ss}from"react/jsx-runtime";var Fn="k-colorgradient",bT=[l.hover,l.focus,l.readonly,l.disabled],vT={size:[n.small,n.medium,n.large]},Vt={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"},Vo=e=>{let{size:t=Vt.size,mode:a=Vt.mode,readonly:r=Vt.readonly,disabled:s=Vt.disabled,gradientStyle:i=Vt.gradientStyle,dragHandleStyle:d=Vt.dragHandleStyle,alphaStyle:p=Vt.alphaStyle,alphaStyleHorizontal:m=Vt.alphaStyleHorizontal,contrast:k=Vt.contrast,dir:v,hover:T,focus:g,hoverHandle:A,focusHandle:N,canvasOrientation:B=Vt.canvasOrientation,...L}=e;return Ss("div",{...L,className:o(e.className,Fn,C(Fn,{size:t}),x(Fn,{hover:T,focus:g,readonly:r,disabled:s})),dir:v,children:[!B||B==="horizontal"&&Ss("div",{className:"k-colorgradient-canvas k-hstack",children:[Et("div",{className:"k-hsv-rectangle",style:i,children:Et("div",{className:"k-hsv-gradient",children:Et("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":A,"k-focus":N}),style:d})})}),Ss("div",{className:"k-hsv-controls k-hstack",children:[Et(np,{className:"k-hue-slider",hover:A,focus:N}),a!=="rgb"&&a!=="hsv"&&Et(np,{className:"k-alpha-slider",hover:A,focus:N,trackStyle:p})]})]}),B==="vertical"&&Ss("div",{className:"k-colorgradient-canvas k-vstack",children:[Et("div",{className:"k-hsv-rectangle",style:i,children:Et("div",{className:"k-hsv-gradient",children:Et("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":A,"k-focus":N}),style:d})})}),Ss("div",{className:"k-hsv-controls k-vstack",children:[Et(ip,{className:"k-hue-slider",hover:A,focus:N}),a!=="rgb"&&a!=="hsv"&&Et(ip,{className:"k-alpha-slider",hover:A,focus:N,trackStyle:m})]})]}),Et(Dl,{mode:e.mode,size:t}),k&&Et(Fl,{})]})};Vo.states=bT;Vo.options=vT;Vo.className=Fn;Vo.defaultOptions=Vt;import{jsx as fQ}from"react/jsx-runtime";import{jsx as bQ}from"react/jsx-runtime";import{jsx as yT}from"react/jsx-runtime";var If=e=>yT("tr",{children:e.children});import{jsx as AT}from"react/jsx-runtime";var vp="k-colorpalette-tile",wT=[l.hover,l.focus,l.selected],TT={},Is=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 AT("td",{...d,className:o(e.className,vp,x(vp,{hover:r,focus:s,selected:i})),style:p})};Is.states=wT;Is.options=TT;Is.className=vp;import{jsx as Bs}from"react/jsx-runtime";var Rn="k-colorpalette",NT=[l.disabled],CT={size:[n.small,n.medium,n.large]},yp={columns:10,size:n.medium},Rl=e=>{let{size:t=yp.size,palette:a,columns:r=yp.columns,tileSize:s,disabled:i,...d}=e,p=[];if(a){let m=r||a.columns,k=a.colors?a.colors:a;Array.isArray(k)&&Array.from({length:Math.ceil(k.length/m)},(v,T)=>{let g=[];k.slice(T*m,(T+1)*m).map((N,B)=>{g.push(Bs(Is,{color:N,tileSize:s},B))});let A=Bs(If,{children:g},T);p.push(A)})}return Bs("div",{...d,className:o(e.className,Rn,x(Rn,{disabled:i}),C(Rn,{size:t})),children:Bs("table",{className:"k-colorpalette-table",children:Bs("tbody",{children:p.length>0?p:e.children})})})};Rl.states=NT;Rl.options=CT;Rl.className=Rn;Rl.defaultOptions=yp;var wp={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 OQ}from"react/jsx-runtime";import{jsx as Yt,jsxs as zl}from"react/jsx-runtime";var zn="k-coloreditor",ST=[l.focus],IT={size:[n.small,n.medium,n.large]},Hl={size:n.medium,view:"gradient",palette:wp.office,actionButtons:!0,canvasOrientation:"horizontal"},lo=e=>{let{size:t=Hl.size,view:a=Hl.view,palette:r=Hl.palette,color:s,currentColor:i,focus:d,focusView:p,dir:m,group:k,actionButtons:v=Hl.actionButtons,canvasOrientation:T=Hl.canvasOrientation,...g}=e;return zl("div",{...g,className:o(e.className,"k-flatcolorpicker",zn,C(zn,{size:t}),x(zn,{focus:d})),dir:m,children:[zl("div",{className:"k-coloreditor-header k-hstack",children:[Yt("div",{className:"k-coloreditor-header-actions k-hstack",children:k&&zl(P,{fillMode:"flat",children:[Yt(c,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:a==="gradient"}),Yt(c,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:a==="palette"})]})}),Yt("div",{className:"k-spacer"}),zl("div",{className:"k-coloreditor-header-actions k-hstack",children:[Yt(c,{fillMode:"flat",icon:"droplet-slash",size:t}),zl("div",{className:"k-coloreditor-preview k-vstack",children:[Yt(Ro,{className:"k-coloreditor-preview-color",color:s}),Yt(Ro,{className:"k-coloreditor-current-color",color:i})]})]})]}),Yt("div",{className:"k-coloreditor-views k-vstack",children:a==="gradient"?Yt(Vo,{focus:p,size:t,canvasOrientation:T}):Yt(Rl,{palette:r,size:t})}),v&&zl(V,{className:"k-coloreditor-footer",alignment:"start",children:[Yt(c,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Yt(c,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};lo.states=ST;lo.options=IT;lo.className=zn;lo.defaultOptions=Hl;import{jsx as iV}from"react/jsx-runtime";import{jsx as pV}from"react/jsx-runtime";import{jsx as fV}from"react/jsx-runtime";import{jsx as bV}from"react/jsx-runtime";import{Fragment as LT,jsx as Pt,jsxs as Ap}from"react/jsx-runtime";var Bf="k-colorpicker",BT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],MT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ms={arrowIconName:"caret-alt-down",size:Tt.defaultOptions.size,rounded:Tt.defaultOptions.rounded,fillMode:Tt.defaultOptions.fillMode},Gt=e=>{let{size:t=Ms.size,rounded:a=Ms.rounded,fillMode:r=Ms.fillMode,arrowIconName:s=Ms.arrowIconName,prefix:i,suffix:d,value:p,placeholder:m,hover:k,focus:v,valid:T,invalid:g,required:A,disabled:N,valueIconName:B,popup:L,opened:Y,adaptive:G,adaptiveSettings:R,adaptiveTitle:W,adaptiveSubtitle:ve,...ze}=e;return Ap(LT,{children:[Ap(Tt,{...ze,size:t,rounded:a,fillMode:r,hover:k,focus:v,valid:T,invalid:g,required:A,disabled:N,className:o(e.className,Bf,"k-icon-picker"),children:[Pt(te,{children:i}),Pt(To,{placeholder:m,value:p,showValue:!1,valueIcon:Pt(Ro,{className:"k-value-icon",color:p,iconName:B}),valueIconName:B}),Pt(oe,{children:d}),Pt(c,{className:"k-input-button",icon:s,rounded:null,size:t,fillMode:r})]}),Y&&L&&Pt(z,{className:"k-colorpicker-popup",children