UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 291 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"},wt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{Fragment as xv,jsx as ik}from"react/jsx-runtime";var Kc="k-icon k-font-icon",hv=[],fv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},gv={},ds=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?ik("span",{...d,className:o(e.className,Kc,C(Kc,{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"})}):ik(xv,{})};ds.states=hv;ds.options=fv;ds.className=Kc;ds.defaultOptions=gv;var nk=ds;import{Fragment as yv,jsx as xn}from"react/jsx-runtime";var Dc="k-icon k-svg-icon",bv=[],vv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},dk={viewBox:"0 0 24 24"},cs=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=dk.viewBox,icon:d,...p}=e;if(!d)return xn(yv,{});d==="none"&&{...p,className:o(e.className,Dc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return xn("span",{...p,className:o(e.className,Dc,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:xn("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})})};cs.states=bv;cs.options=vv;cs.className=Dc;cs.defaultOptions=dk;var Fc=cs;import*as ck from"@progress/kendo-svg-icons";import{Fragment as pk,jsx as ps}from"react/jsx-runtime";var wv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Av=[],Tv={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]},zc={viewBox:"0 0 24 24",type:"svg"},v=e=>{let{size:t,themeColor:a,icon:r,type:s=zc.type,rotate:i,flip:d,viewBox:p=zc.viewBox,...m}=e;if(!r)return ps(pk,{});if(s==="svg"){if(r==="none")return ps(Fc,{...m,icon:r,size:t});let k=wv(`${r}-icon`);return ck[k]?ps(Fc,{...m,icon:ck[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):ps(pk,{})}return ps(nk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};v.states=Av;v.options=Tv;v.defaultOptions=zc;var Rc=v;import{Fragment as Sv,jsx as ms,jsxs as mk}from"react/jsx-runtime";var bn="k-button",Nv=[l.hover,l.focus,l.active,l.selected,l.disabled],Cv={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,E=e.children!==void 0;return mk("button",{...S,className:o(e.className,bn,C(bn,{size:t,rounded:a,fillMode:r,themeColor:s}),b(bn,{hover:p,focus:m,active:k,disabled:A,selected:y}),{"k-icon-button":!T&&!E&&B}),children:[g&&ms(v,{className:o(N,"k-button-icon"),icon:g}),T?mk(Sv,{children:[T&&ms("span",{className:"k-button-text",children:T}),e.children]}):e.children&&ms("span",{className:"k-button-text",children:e.children}),i&&ms("span",{className:"k-menu-button-arrow k-button-arrow",children:ms(v,{icon:d})})]})};c.states=Nv;c.options=Cv;c.className=bn;c.defaultOptions=Ta;import{jsx as Iv}from"react/jsx-runtime";var lt=e=>Iv(c,{icon:"folder",...e,children:void 0});import{jsx as Bv}from"react/jsx-runtime";var Ht=e=>Bv(c,{icon:"folder",children:"Button",...e});import{jsx as uG}from"react/jsx-runtime";import{jsx as Ev}from"react/jsx-runtime";var us="k-button-group",Mv=[l.disabled],Lv={fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},uk={fillMode:x.solid},P=e=>{let{fillMode:t=uk.fillMode,disabled:a,stretched:r,...s}=e;return Ev("div",{...s,className:o(e.className,us,C(us,{fillMode:t}),b(us,{disabled:a}),{[`${us}-stretched`]:r}),children:e.children})};P.states=Mv;P.options=Lv;P.className=us;P.defaultOptions=uk;import{Fragment as SG,jsx as CG,jsxs as IG}from"react/jsx-runtime";import{Fragment as PG,jsx as YG,jsxs as GG}from"react/jsx-runtime";import{Fragment as HG,jsx as RG,jsxs as WG}from"react/jsx-runtime";import{Fragment as JG,jsx as ZG,jsxs as jG}from"react/jsx-runtime";import{Fragment as nK,jsx as sK,jsxs as iK}from"react/jsx-runtime";import{jsx as Kv}from"react/jsx-runtime";var kk="k-scheduler-layout",Yv=[],Pv={},Gv={},ks=e=>{let{as:t="div",view:a,...r}=e;return Kv(t,{...r,className:o(e.className,kk,{[`k-scheduler-${a}view`]:a}),children:e.children})};ks.states=Yv;ks.options=Pv;ks.className=kk;ks.defaultOptions=Gv;var hk=ks;import{jsx as Rv,jsxs as Hv}from"react/jsx-runtime";var fk="k-scheduler",Dv=[],Fv={},zv={},Se=e=>{let{view:t,toolbar:a,footer:r,layout:s,...i}=e;return Hv("div",{...i,className:o(e.className,fk),children:[a,Rv(hk,{className:o({"k-scheduler-layout-flex":s==="flex"}),as:s==="table"?"table":"div",view:t,children:e.children}),r]})};Se.states=Dv;Se.options=Fv;Se.className=fk;Se.defaultOptions=zv;import{jsx as bK}from"react/jsx-runtime";import{jsx as AK}from"react/jsx-runtime";import{jsx as SK}from"react/jsx-runtime";import{jsx as LK}from"react/jsx-runtime";import{jsx as gk}from"react/jsx-runtime";var xk="k-scheduler-cell",Wv=[],Ov={},Qv={},Y=e=>{let{cellType:t,allDay:a,text:r,colspan:s,rowspan:i,as:d="div",...p}=e,m=r||e.children;return gk(d,{...p,colSpan:s,rowSpan:i,className:o(xk,e.className,{"k-scheduler-times-all-day":a},t?.map(k=>({[`k-${k}-cell`]:!0}))),children:!a&&r?gk("span",{className:"k-link k-nav-day",children:m}):m})};Y.states=Wv;Y.options=Ov;Y.defaultOptions=Qv;Y.className=xk;import{jsx as FK}from"react/jsx-runtime";import{jsx as Xv}from"react/jsx-runtime";var Vv="k-scheduler-row",Ue=e=>Xv("div",{...e,className:o(Vv,e.className),children:e.children});import{jsx as jv}from"react/jsx-runtime";var yn="k-input",Zv=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Jv={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:n.medium,fillMode:x.solid},M=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 jv("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}))})};M.states=Zv;M.options=Jv;M.className=yn;M.defaultOptions=wn;import{jsx as _v}from"react/jsx-runtime";var An="k-picker",Uv=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],qv={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Tn={size:n.medium,rounded:f.medium,fillMode:x.solid},At=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=Tn.size,rounded:k=Tn.rounded,fillMode:y=Tn.fillMode,...A}=e;return _v("span",{...A,className:o(e.className,An,C(An,{size:m,rounded:k,fillMode:y}),b(An,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};At.states=Uv;At.options=qv;At.className=An;At.defaultOptions=Tn;import{Fragment as ty,jsx as Hc}from"react/jsx-runtime";var bk="k-clear-value",$v=[l.disabled,l.loading,l.readonly],ey={},ae=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Hc(ty,{}):Hc("span",{className:o(e.className,bk),children:Hc(v,{icon:"x"})})};ae.states=$v;ae.options=ey;ae.className=bk;import{jsx as ly}from"react/jsx-runtime";var Wc="k-input-inner",oy=[],ay={},Nn={type:"text",autocomplete:"off",value:"",placeholder:""},se=e=>{let{value:t=Nn.value,type:a=Nn.type,placeholder:r=Nn.placeholder,autocomplete:s=Nn.autocomplete,...i}=e;return ly("input",{...i,type:a,className:o(e.className,Wc,C(Wc,e)),placeholder:r,autoComplete:s,defaultValue:t})};se.states=oy;se.options=ay;se.className=Wc;import{jsx as vk,jsxs as iy}from"react/jsx-runtime";var Oc="k-input-inner",ry=[],sy={},vo=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return iy("span",{...d,className:o(e.className,Oc,C(Oc,e)),children:[s,!s&&i&&vk(v,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&vk("span",{className:"k-input-value-text",children:t})]})};vo.states=ry;vo.options=sy;vo.className=Oc;import{jsx as cy}from"react/jsx-runtime";var Qc="k-input-inner",ny=[],dy={},yk={value:"",placeholder:""},hs=e=>{let{value:t=yk.value,placeholder:a=yk.placeholder,rows:r,...s}=e;return cy("textarea",{...s,className:o(e.className,Qc,C(Qc,e)),placeholder:a,rows:r,defaultValue:t})};hs.states=ny;hs.options=dy;hs.className=Qc;import{Fragment as my,jsx as wk}from"react/jsx-runtime";var Ak="k-input-loading-icon",py=[l.disabled,l.loading],U=e=>{let{disabled:t,loading:a}=e;return t||!a?wk(my,{}):wk("span",{className:o(e.className,Ak,"k-icon k-i-loading")})};U.states=py;U.className=Ak;import{Fragment as hy,jsx as Tk}from"react/jsx-runtime";var Nk="k-input-validation-icon",uy=[l.valid,l.invalid,l.disabled,l.loading],ky={},J=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Tk(hy,{}):Tk(v,{className:o(Nk),icon:i})};J.states=uy;J.options=ky;J.className=Nk;import{Fragment as xy,jsx as Ck}from"react/jsx-runtime";var fy="k-input-prefix",gy={direction:"horizontal"},te=e=>{let{direction:t=gy.direction,...a}=e;return e.children?Ck("span",{...a,className:o(fy,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ck(xy,{})};import{Fragment as yy,jsx as Sk}from"react/jsx-runtime";var by="k-input-suffix",vy={direction:"horizontal"},oe=e=>{let{direction:t=vy.direction,...a}=e;return e.children?Sk("span",{...a,className:o(by,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Sk(yy,{})};import{jsx as TD}from"react/jsx-runtime";import{jsx as ID}from"react/jsx-runtime";import{jsx as Ay}from"react/jsx-runtime";var Ik="k-input-separator",wy={direction:"vertical"},xe=e=>{let{direction:t=wy.direction,...a}=e;return Ay("span",{...a,className:o(Ik,e.className,{[`${Ik}-${t}`]:t})})};import{jsx as Bk,jsxs as Cy}from"react/jsx-runtime";var Mk="k-color-preview",Ty=[],Ny={},Po=e=>{let{color:t,iconName:a,...r}=e;return Cy("span",{...r,className:o(e.className,Mk,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&Bk(v,{icon:a,className:"k-color-preview-icon"}),Bk("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Po.states=Ty;Po.options=Ny;Po.className=Mk;import{jsx as Lk}from"react/jsx-runtime";var Ek="k-animation-container",Sy=[],Iy={},Yk={positionMode:"absolute"},Go=e=>{let{positionMode:t=Yk.positionMode,animationStyle:a,offset:r,...s}=e;return Lk("div",{...s,style:{...r,...e.style},className:o(e.className,Ek,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Lk("div",{className:"k-child-animation-container",style:a,children:e.children})})};Go.states=Sy;Go.options=Iy;Go.className=Ek;Go.defaultOptions=Yk;import{jsx as Pk}from"react/jsx-runtime";var Gk="k-popup",By=[],My={},Kk={positionMode:"absolute"},R=e=>{let{offset:t,positionMode:a=Kk.positionMode,animationStyle:r,...s}=e;return Pk(Go,{positionMode:a,offset:t,animationStyle:r,children:Pk("div",{...s,className:o(e.className,Gk),children:e.children})})};R.states=By;R.options=My;R.className=Gk;R.defaultOptions=Kk;import{jsx as Yy}from"react/jsx-runtime";var Cn="k-actions",Ly=[],Ey={},Vc={alignment:"start",orientation:"horizontal"},V=e=>{let{alignment:t=Vc.alignment,orientation:a=Vc.orientation,...r}=e;return Yy("div",{...r,className:o(Cn,{[`${Cn}-${t}`]:t,[`${Cn}-${a}`]:a},e.className),children:e.children})};V.states=Ly;V.options=Ey;V.className=Cn;V.defaultOptions=Vc;var Dk=V;import{jsx as Gy}from"react/jsx-runtime";var Py="k-actionsheet-footer",Fk={alignment:"stretched",orientation:"horizontal"},Wt=e=>{let{alignment:t=Fk.alignment,orientation:a=Fk.orientation,template:r,as:s=r?"div":V,...i}=e;return Gy(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,Py),children:e.children})};import{jsx as fs,jsxs as Fy}from"react/jsx-runtime";var zk="k-searchbox",Ky=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],Dy={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Xc={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=Xc.showIcon,icon:N=Xc.icon,...S}=e;return Fy(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,zk),children:[T&&fs(v,{className:"k-input-icon",icon:N}),fs(se,{placeholder:a,value:t}),fs(U,{...e}),fs(J,{...e}),fs(ae,{...e})]})};ze.states=Ky;ze.options=Dy;ze.className=zk;ze.defaultOptions=Xc;import{jsx as SF}from"react/jsx-runtime";import{Fragment as Rk,jsx as Ko,jsxs as Zc}from"react/jsx-runtime";var Hk="k-textbox",zy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Ry={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},j=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:E,disabled:G,readonly:z,...Q}=e;return Zc(M,{...Q,size:t,rounded:a,fillMode:r,hover:g,focus:T,valid:N,invalid:S,required:B,loading:E,disabled:G,readonly:z,className:o(e.className,Hk),children:[p&&Zc(Rk,{children:[Ko(te,{children:p}),s&&Ko(xe,{})]}),Ko(se,{placeholder:A,value:y,type:k}),d&&Ko(J,{valid:N,invalid:S,loading:E,disabled:G}),Ko(U,{loading:E,disabled:G}),i&&Ko(ae,{loading:E,disabled:G,readonly:z,value:y}),m&&Zc(Rk,{children:[s&&Ko(xe,{}),Ko(oe,{children:m})]})]})};j.states=zy;j.options=Ry;j.className=Hk;j.defaultOptions=Na;import{jsx as FF}from"react/jsx-runtime";import{Fragment as QF,jsx as OF}from"react/jsx-runtime";import{Fragment as UF,jsx as jF}from"react/jsx-runtime";import{jsx as Do,jsxs as Jc}from"react/jsx-runtime";var Qk="k-actionsheet-titlebar",Hy={},re=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 Jc("div",{...A,className:o(e.className,Qk),children:[Jc("div",{className:"k-actionsheet-titlebar-group",children:[r&&Do("div",{className:"k-actionsheet-actions",children:r}),!y&&Jc("div",{className:"k-actionsheet-title",children:[t&&Do("div",{className:"k-text-center",children:t}),a&&Do("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),y&&Do("div",{className:"k-actionsheet-title",children:y}),s&&Do("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Do("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Do(j,{value:p,placeholder:m,size:k?"large":"medium"}):Do(ze,{placeholder:"Filter",size:k?"large":"medium"})})]})};re.className=Qk;re.defaultOptions=Hy;import{jsx as jc,jsxs as Vy}from"react/jsx-runtime";var Uc="k-actionsheet-view",Wy=[],Oy={},Qy={},Tl=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===re&&jc(re,{adaptive:t,...s?.props}),m=i?.type===Wt&&jc(Wt,{...i?.props});return Vy("div",{...d,className:o(e.className,Uc,{[`${Uc}-animated`]:a}),children:[p,jc("div",{className:"k-actionsheet-content",children:r}),m]})};Tl.states=Wy;Tl.options=Oy;Tl.className=Uc;Tl.defaultOptions=Qy;import{jsx as Sn,jsxs as Jy}from"react/jsx-runtime";var Vk="k-actionsheet",Xy=[],Zy={},gs={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ie=e=>{let{side:t=gs.side,fullscreen:a=gs.fullscreen,adaptive:r=gs.adaptive,overlay:s=gs.overlay,template:i,children:d,header:p,footer:m,...k}=e;return Jy("div",{className:"k-actionsheet-container",children:[s&&Sn("div",{className:"k-overlay"}),Sn(Go,{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:Sn("div",{...k,className:o(e.className,Vk,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Sn(Tl,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};ie.states=Xy;ie.options=Zy;ie.className=Vk;ie.defaultOptions=gs;import{jsx as vz}from"react/jsx-runtime";import{Fragment as Uy,jsx as xs,jsxs as qc}from"react/jsx-runtime";var _c="k-actionsheet-item",jy=[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 qc("span",{...m,className:o(e.className,_c,b(_c,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&xs(Uy,{children:qc("span",{className:"k-actionsheet-action",children:[t&&xs("span",{className:"k-icon-wrap",children:xs(v,{className:"k-actionsheet-item-icon",icon:t})}),qc("span",{className:"k-actionsheet-item-text",children:[a&&xs("span",{className:"k-actionsheet-item-title",children:a}),r&&xs("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};$c.states=jy;$c.className=_c;import{jsx as Bz,jsxs as Mz}from"react/jsx-runtime";import{jsx as Pz}from"react/jsx-runtime";import{jsx as Fz}from"react/jsx-runtime";import{jsx as Wz}from"react/jsx-runtime";import{jsx as Nl,jsxs as ep}from"react/jsx-runtime";var bs="k-slider",qy=[l.hover,l.focus,l.active,l.disabled,l.readonly],_y={},Fo={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},Tt=e=>{let{type:t=Fo.type,orientation:a=Fo.orientation,readonly:r=Fo.readonly,disabled:s=Fo.disabled,handlePosition:i=Fo.handlePosition,showButtons:d=Fo.showButtons,showTicks:p=Fo.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"),ep("div",{...T,className:o(bs,e.className,b(bs,{readonly:r,disabled:s}),{[`k-slider-${a}`]:a,"k-colorgradient-slider":t==="gradient"}),dir:g,children:[d&&Nl(c,{className:"k-button-decrease",rounded:"full",icon:S}),ep("div",{className:"k-slider-track-wrap",children:[p&&Nl("ul",{className:"k-reset k-slider-items",children:e.children}),ep("div",{className:"k-slider-track",style:A,children:[Nl("div",{className:"k-slider-selection"}),t==="range"&&Nl("span",{className:o("k-draghandle","k-draghandle-start",b(bs,{hover:m,focus:k,active:y}))}),Nl("span",{className:o("k-draghandle",`k-draghandle-${i}`,b(bs,{hover:m,focus:k,active:y}))})]})]}),d&&Nl(c,{className:"k-button-increase",rounded:"full",icon:N})]})};Tt.states=qy;Tt.options=_y;Tt.className=bs;Tt.defaultOptions=Fo;import{jsx as Zk}from"react/jsx-runtime";var Jk="k-tick",$y=[],ew={},jk={label:!1},Ge=e=>{let{style:t,label:a=jk.label,orientation:r,large:s,text:i,...d}=e;return Zk("li",{...d,className:o(e.className,Jk,{[`k-tick-${r}`]:r,"k-tick-large":s}),style:t,children:a&&Zk("span",{className:"k-label",children:i})})};Ge.states=$y;Ge.options=ew;Ge.className=Jk;Ge.defaultOptions=jk;import{Fragment as tw,jsx as Lt,jsxs as ow}from"react/jsx-runtime";var In=e=>Lt(Tt,{children:ow(tw,{children:[Lt(Ge,{className:"k-first",label:!0,large:!0,text:"0"}),Lt(Ge,{}),Lt(Ge,{}),Lt(Ge,{}),Lt(Ge,{}),Lt(Ge,{label:!0,large:!0,text:"5"}),Lt(Ge,{}),Lt(Ge,{}),Lt(Ge,{}),Lt(Ge,{}),Lt(Ge,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as kR,jsx as uR,jsxs as hR}from"react/jsx-runtime";import{Fragment as vR,jsx as bR,jsxs as yR}from"react/jsx-runtime";import{Fragment as CR,jsx as NR,jsxs as SR}from"react/jsx-runtime";import{jsx as aw}from"react/jsx-runtime";var tp=e=>aw(Tt,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as lw}from"react/jsx-runtime";var op=e=>lw(Tt,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Uk,jsxs as iw}from"react/jsx-runtime";var qk="k-spin-button",rw=[],sw={size:[n.small,n.medium,n.large],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},ap={size:n.medium,fillMode:x.solid},zo=e=>{let{size:t=ap.size,fillMode:a=ap.fillMode,...r}=e;return iw("span",{...r,className:o(qk,e.className),children:[Uk(c,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:a}),Uk(c,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]})};zo.states=rw;zo.options=sw;zo.className=qk;zo.defaultOptions=ap;import{Fragment as _k,jsx as yo,jsxs as lp}from"react/jsx-runtime";var $k="k-numerictextbox",nw=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],dw={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},me=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:E,readonly:G,...z}=e;return lp(M,{...z,size:t,rounded:a,fillMode:r,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:E,readonly:G,className:o(e.className,$k),children:[p&&lp(_k,{children:[yo(te,{children:p}),s&&yo(xe,{})]}),yo(se,{placeholder:y,value:k}),yo(J,{valid:T,invalid:N,loading:B,disabled:E}),yo(U,{loading:B,disabled:E}),i&&yo(ae,{loading:B,disabled:E,readonly:G,value:k}),m&&lp(_k,{children:[s&&yo(xe,{}),yo(oe,{children:m})]}),d&&yo(zo,{className:"k-input-spinner",size:t,fillMode:r})]})};me.states=nw;me.options=dw;me.className=$k;me.defaultOptions=Ca;import{jsx as a0}from"react/jsx-runtime";import{jsx as pw}from"react/jsx-runtime";var cw="k-no-data",vs=e=>pw("span",{className:o(cw,e.className),children:e.children});import{jsx as Cl,jsxs as th}from"react/jsx-runtime";var rp="k-list",mw=[],uw={size:[n.small,n.medium,n.large]},oh={size:n.medium},X=e=>{let{size:t=oh.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===be?(T.props.root===!0?(m=T.props.label,T.props.children.map((S,B)=>{g.push(Cl(K,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):T.props.children.forEach((S,B)=>{let E="";B===0&&(E=T.props.label),g.push(Cl(K,{className:B===0?"k-first":"",...S.props,groupLabel:E},`groupLabel-${B}-${new Date().getTime()}`))}),k=Cl(be,{label:m,virtualization:a,children:g})):T.type===K&&(g.push(Cl(K,{...T.props},`${T.type}-${N}`)),y=Cl(Sl,{virtualization:a,children:g}),d&&(A=th(vs,{className:"k-sr-only",children:[g.length," items found."]})))}):A=Cl(vs,{children:"No data found."}),th("div",{...p,className:o(e.className,rp,C(rp,{size:t}),{"k-virtual-list":a}),children:[s,i,k,y,A]})};X.states=mw;X.options=uw;X.className=rp;X.defaultOptions=oh;import{jsx as Sa,jsxs as fw}from"react/jsx-runtime";var sp="k-list",kw=[],hw={size:[n.small,n.medium,n.large]},ah={size:n.medium},Ia=e=>{let{size:t=ah.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,y)=>{k.type===be?(k.props.root===!0?(i=k.props.label,k.props.children.map((A,g)=>{m.push(Sa(K,{...A.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Sa(lh,{...k.props,children:k.props.label},`listChild-${y}`)),k.props.children.map((A,g)=>{m.push(Sa(K,{...A.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Sa(be,{label:i,virtualization:a,children:m})):k.type===K&&(m.push(Sa(K,{...k.props},`${k.type}-${y}`)),p=Sa(Sl,{virtualization:a,children:m}))}):p=Sa(vs,{children:"No data found."}),fw("div",{...s,className:o(e.className,sp,C(sp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Ia.states=kw;Ia.options=hw;Ia.className=sp;Ia.defaultOptions=ah;import{jsx as rh}from"react/jsx-runtime";var Bn="k-checkbox",gw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],xw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},ip={size:n.medium,rounded:f.medium},Oe=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:y=ip.size,rounded:A=ip.rounded,...g}=e;return rh("span",{className:"k-checkbox-wrap",children:rh("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Bn,C(Bn,{size:y,rounded:A}),b(Bn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};Oe.states=gw;Oe.options=xw;Oe.className=Bn;Oe.defaultOptions=ip;import{jsx as yw}from"react/jsx-runtime";var sh="k-checkbox-list",bw=[],vw={},ih={layout:"vertical"},Il=e=>{let{layout:t=ih.layout,...a}=e;return yw("ul",{...a,className:o(e.className,sh,{[`k-list-${t}`]:t}),children:e.children})};Il.states=bw;Il.options=vw;Il.className=sh;Il.defaultOptions=ih;import{jsx as Nw}from"react/jsx-runtime";var nh="k-checkbox-list-item",ww=[],Aw={},Tw={},Bl=e=>{let{...t}=e;return Nw("li",{...t,className:o(e.className,nh),children:e.children})};Bl.states=ww;Bl.options=Aw;Bl.className=nh;Bl.defaultOptions=Tw;import{Fragment as E0,jsx as L0,jsxs as Y0}from"react/jsx-runtime";import{Fragment as F0,jsx as D0,jsxs as z0}from"react/jsx-runtime";import{Fragment as Q0,jsx as O0,jsxs as V0}from"react/jsx-runtime";import{Fragment as U0,jsx as j0,jsxs as q0}from"react/jsx-runtime";import{jsx as tH}from"react/jsx-runtime";import{jsx as rH}from"react/jsx-runtime";import{jsx as Mn,jsxs as Bw}from"react/jsx-runtime";var dp="k-list-item",Cw=[l.hover,l.focus,l.selected,l.disabled],Sw={},Iw={},K=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 Bw("li",{...g,className:o(e.className,r?"k-list-group-item":dp,b(dp,{hover:m,focus:k,disabled:A,selected:y})),children:[d&&Mn(Oe,{checked:p}),s&&Mn(v,{icon:i}),Mn("span",{className:"k-list-item-text",children:T}),a&&a!==""&&Mn("div",{className:"k-list-item-group-label",children:a})]})};K.states=Cw;K.options=Sw;K.className=dp;K.defaultOptions=Iw;import{jsx as cp,jsxs as Lw}from"react/jsx-runtime";var Mw="k-list-content",Sl=e=>{let{virtualization:t,...a}=e;return Lw("div",{...a,className:o(Mw,e.className),children:[cp("ul",{className:o("k-list-ul"),children:e.children}),t&&cp("div",{className:"k-height-container",children:cp("div",{})})]})};import{jsx as dh}from"react/jsx-runtime";var Ew="k-list-group-sticky-header",ch=e=>dh("div",{className:o(Ew,e.className),children:dh("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Yw,jsx as ph,jsxs as Pw}from"react/jsx-runtime";var be=e=>{let{virtualization:t,label:a}=e;return Pw(Yw,{children:[a&&ph(ch,{children:a}),e.children&&ph(Sl,{virtualization:t,children:e.children})]})};import{jsx as mh}from"react/jsx-runtime";var Gw="k-list-group-item",lh=e=>mh("li",{className:o(Gw,e.className),children:mh("span",{className:"k-list-item-text",children:e.children})});import{jsx as zw}from"react/jsx-runtime";var pp="k-list-optionlabel",Kw=[l.hover,l.focus,l.selected,l.disabled],Dw={},Fw={},Ln=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return zw("div",{...d,className:o(pp,b(pp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Ln.states=Kw;Ln.options=Dw;Ln.className=pp;Ln.defaultOptions=Fw;import{jsx as Ow}from"react/jsx-runtime";var mp="k-list-custom-value",Rw=[l.hover,l.focus,l.selected,l.disabled],Hw={},Ww={},qe=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Ow("div",{...d,className:o(mp,b(mp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};qe.states=Rw;qe.options=Hw;qe.className=mp;qe.defaultOptions=Ww;import{jsx as WH}from"react/jsx-runtime";import{jsx as XH}from"react/jsx-runtime";import{jsx as UH,jsxs as qH}from"react/jsx-runtime";import{jsx as t8,jsxs as o8}from"react/jsx-runtime";import{jsx as s8}from"react/jsx-runtime";import{jsx as c8,jsxs as p8}from"react/jsx-runtime";import{jsx as h8,jsxs as f8}from"react/jsx-runtime";import{Fragment as Xw,jsx as pt,jsxs as up}from"react/jsx-runtime";var uh="k-dropdownlist",Qw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Vw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Ml={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:x.solid},ne=e=>{let{size:t=Ml.size,rounded:a=Ml.rounded,fillMode:r=Ml.fillMode,arrowIconName:s=Ml.arrowIconName,showValue:i=Ml.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:y,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:E,readonly:G,popup:z,opened:Q,adaptive:ge,adaptiveSettings:Pe,adaptiveTitle:at,adaptiveSubtitle:Rt,adaptiveFilter:Aa,...vl}=e;return up(Xw,{children:[up(At,{...vl,size:t,rounded:a,fillMode:r,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:E,readonly:G,className:o(e.className,uh,{"k-icon-picker":!i&&d}),children:[pt(te,{children:p}),pt(vo,{placeholder:y,value:k,showValue:i,valueIconName:d}),pt(J,{valid:T,invalid:N,loading:B,disabled:E}),pt(U,{loading:B,disabled:E}),pt(oe,{children:m}),pt(c,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),Q&&z&&pt(R,{className:"k-list-container k-dropdownlist-popup",children:z}),ge&&pt(ie,{adaptive:!0,...Pe,header:pt(re,{actionsEnd:pt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Aa,inputValue:k,inputPlaceholder:y,title:at,subtitle:Rt}),children:pt("div",{className:"k-list-container",children:up(X,{size:"large",children:[pt(K,{text:"List item"}),pt(K,{text:"List item"}),pt(K,{text:"List item"})]})})})]})};ne.states=Qw;ne.options=Vw;ne.className=uh;ne.defaultOptions=Ml;import{jsx as X8}from"react/jsx-runtime";import{jsx as q8,jsxs as _8}from"react/jsx-runtime";import{Fragment as sW,jsx as lW,jsxs as rW}from"react/jsx-runtime";import{jsx as cW}from"react/jsx-runtime";import{jsx as hW,jsxs as fW}from"react/jsx-runtime";import{jsx as yW,jsxs as wW}from"react/jsx-runtime";import{Fragment as MW,jsx as IW,jsxs as BW}from"react/jsx-runtime";import{Fragment as FW,jsx as KW,jsxs as DW}from"react/jsx-runtime";import{Fragment as eO,jsx as $W}from"react/jsx-runtime";import{Fragment as iO,jsx as sO}from"react/jsx-runtime";import{Fragment as ys,jsx as _,jsxs as Ie}from"react/jsx-runtime";var kh="k-colorgradient-inputs",Zw=[],Jw={size:[n.small,n.medium,n.large]},hh={mode:"rgba",size:n.medium},Ll=e=>{let{mode:t=hh.mode,size:a,...r}=e;return Ie("div",{...r,className:o(kh,"k-hstack"),children:[_("div",{className:"k-vstack",children:_(c,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:a})}),t==="rgba"&&Ie(ys,{children:[Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),_("label",{className:"k-colorgradient-input-label",children:"R"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),_("label",{className:"k-colorgradient-input-label",children:"G"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),_("label",{className:"k-colorgradient-input-label",children:"B"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:a}),_("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&Ie(ys,{children:[Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"R"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"G"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&Ie(ys,{children:[Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"H"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"S"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"V"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),_("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&Ie(ys,{children:[Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"H"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"S"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&_(ys,{children:Ie("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"})]})})]})};Ll.states=Zw;Ll.options=Jw;Ll.className=kh;Ll.defaultOptions=hh;import{jsx as Ma,jsxs as La}from"react/jsx-runtime";var fh="k-colorgradient-color-contrast",jw=[],Uw={},qw={},El=()=>La("div",{className:o(fh,"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"})]})]})]});El.states=jw;El.options=Uw;El.className=fh;El.defaultOptions=qw;import{jsx as Et,jsxs as ws}from"react/jsx-runtime";var En="k-colorgradient",_w=[l.hover,l.focus,l.readonly,l.disabled],$w={size:[n.small,n.medium,n.large]},Ot={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"},Ro=e=>{let{size:t=Ot.size,mode:a=Ot.mode,readonly:r=Ot.readonly,disabled:s=Ot.disabled,gradientStyle:i=Ot.gradientStyle,dragHandleStyle:d=Ot.dragHandleStyle,alphaStyle:p=Ot.alphaStyle,alphaStyleHorizontal:m=Ot.alphaStyleHorizontal,contrast:k=Ot.contrast,dir:y,hover:A,focus:g,hoverHandle:T,focusHandle:N,canvasOrientation:S=Ot.canvasOrientation,...B}=e;return ws("div",{...B,className:o(e.className,En,C(En,{size:t}),b(En,{hover:A,focus:g,readonly:r,disabled:s})),dir:y,children:[!S||S==="horizontal"&&ws("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":T,"k-focus":N}),style:d})})}),ws("div",{className:"k-hsv-controls k-hstack",children:[Et(op,{className:"k-hue-slider",hover:T,focus:N}),a!=="rgb"&&a!=="hsv"&&Et(op,{className:"k-alpha-slider",hover:T,focus:N,trackStyle:p})]})]}),S==="vertical"&&ws("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":T,"k-focus":N}),style:d})})}),ws("div",{className:"k-hsv-controls k-vstack",children:[Et(tp,{className:"k-hue-slider",hover:T,focus:N}),a!=="rgb"&&a!=="hsv"&&Et(tp,{className:"k-alpha-slider",hover:T,focus:N,trackStyle:m})]})]}),Et(Ll,{mode:e.mode,size:t}),k&&Et(El,{})]})};Ro.states=_w;Ro.options=$w;Ro.className=En;Ro.defaultOptions=Ot;import{jsx as EO}from"react/jsx-runtime";import{jsx as KO}from"react/jsx-runtime";import{jsx as eA}from"react/jsx-runtime";var gh=e=>eA("tr",{children:e.children});import{jsx as aA}from"react/jsx-runtime";var kp="k-colorpalette-tile",tA=[l.hover,l.focus,l.selected],oA={},As=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 aA("td",{...d,className:o(e.className,kp,b(kp,{hover:r,focus:s,selected:i})),style:p})};As.states=tA;As.options=oA;As.className=kp;import{jsx as Ts}from"react/jsx-runtime";var Yn="k-colorpalette",lA=[l.disabled],rA={size:[n.small,n.medium,n.large]},hp={columns:10,size:n.medium},Yl=e=>{let{size:t=hp.size,palette:a,columns:r=hp.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(Ts(As,{color:N,tileSize:s},S))});let T=Ts(gh,{children:g},A);p.push(T)})}return Ts("div",{...d,className:o(e.className,Yn,b(Yn,{disabled:i}),C(Yn,{size:t})),children:Ts("table",{className:"k-colorpalette-table",children:Ts("tbody",{children:p.length>0?p:e.children})})})};Yl.states=lA;Yl.options=rA;Yl.className=Yn;Yl.defaultOptions=hp;var fp={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 rQ}from"react/jsx-runtime";import{jsx as Yt,jsxs as Pl}from"react/jsx-runtime";var Pn="k-coloreditor",sA=[l.focus],iA={size:[n.small,n.medium,n.large]},Gl={size:n.medium,view:"gradient",palette:fp.office,actionButtons:!0,canvasOrientation:"horizontal"},ao=e=>{let{size:t=Gl.size,view:a=Gl.view,palette:r=Gl.palette,color:s,currentColor:i,focus:d,focusView:p,dir:m,group:k,actionButtons:y=Gl.actionButtons,canvasOrientation:A=Gl.canvasOrientation,...g}=e;return Pl("div",{...g,className:o(e.className,"k-flatcolorpicker",Pn,C(Pn,{size:t}),b(Pn,{focus:d})),dir:m,children:[Pl("div",{className:"k-coloreditor-header k-hstack",children:[Yt("div",{className:"k-coloreditor-header-actions k-hstack",children:k&&Pl(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"}),Pl("div",{className:"k-coloreditor-header-actions k-hstack",children:[Yt(c,{fillMode:"flat",icon:"droplet-slash",size:t}),Pl("div",{className:"k-coloreditor-preview k-vstack",children:[Yt(Po,{className:"k-coloreditor-preview-color",color:s}),Yt(Po,{className:"k-coloreditor-current-color",color:i})]})]})]}),Yt("div",{className:"k-coloreditor-views k-vstack",children:a==="gradient"?Yt(Ro,{focus:p,size:t,canvasOrientation:A}):Yt(Yl,{palette:r,size:t})}),y&&Pl(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"})]})]})};ao.states=sA;ao.options=iA;ao.className=Pn;ao.defaultOptions=Gl;import{jsx as TQ}from"react/jsx-runtime";import{jsx as IQ}from"react/jsx-runtime";import{jsx as EQ}from"react/jsx-runtime";import{jsx as KQ}from"react/jsx-runtime";import{Fragment as cA,jsx as Pt,jsxs as xp}from"react/jsx-runtime";var xh="k-colorpicker",nA=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],dA={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Ns={arrowIconName:"caret-alt-down",size:At.defaultOptions.size,rounded:At.defaultOptions.rounded,fillMode:At.defaultOptions.fillMode},Gt=e=>{let{size:t=Ns.size,rounded:a=Ns.rounded,fillMode:r=Ns.fillMode,arrowIconName:s=Ns.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:E,adaptive:G,adaptiveSettings:z,adaptiveTitle:Q,adaptiveSubtitle:ge,...Pe}=e;return xp(cA,{children:[xp(At,{...Pe,size:t,rounded:a,fillMode:r,hover:k,focus:y,valid:A,invalid:g,required:T,disabled:N,className:o(e.className,xh,"k-icon-picker"),children:[Pt(te,{children:i}),Pt(vo,{placeholder:m,value:p,showValue:!1,valueIcon:Pt(Po,{className:"k-value-icon",color:p,iconName:S}),valueIconName:S}),Pt(oe,{children:d}),Pt(c,{className:"k-input-button",icon:s,rounded:null,size:t,fillMode:r})]}),E&&B&&Pt(R,{className:"k-colorpicker-popup",children:B}),G&&Pt(ie,{adaptive:!0,...z,header:Pt(re,{actionsEnd