UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 294 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 S=(e,t)=>o({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),b=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},x={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly"},yt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{Fragment as bv,jsx as ik}from"react/jsx-runtime";var Kc="k-icon k-font-icon",fv=[],gv={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]},xv={},cs=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?ik("span",{...d,className:o(e.className,Kc,S(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(bv,{})};cs.states=fv;cs.options=gv;cs.className=Kc;cs.defaultOptions=xv;var nk=cs;import{Fragment as wv,jsx as bn}from"react/jsx-runtime";var Dc="k-icon k-svg-icon",vv=[],yv={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"},ps=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=dk.viewBox,icon:d,...p}=e;if(!d)return bn(wv,{});d==="none"&&{...p,className:o(e.className,Dc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return bn("span",{...p,className:o(e.className,Dc,S("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:bn("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})})};ps.states=vv;ps.options=yv;ps.className=Dc;ps.defaultOptions=dk;var Fc=ps;import*as ck from"@progress/kendo-svg-icons";import{Fragment as pk,jsx as ms}from"react/jsx-runtime";var Av=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Tv=[],Nv={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 ms(pk,{});if(s==="svg"){if(r==="none")return ms(Fc,{...m,icon:r,size:t});let k=Av(`${r}-icon`);return ck[k]?ms(Fc,{...m,icon:ck[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):ms(pk,{})}return ms(nk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};v.states=Tv;v.options=Nv;v.defaultOptions=zc;var Rc=v;import{Fragment as Iv,jsx as us,jsxs as mk}from"react/jsx-runtime";var vn="k-button",Cv=[l.hover,l.focus,l.active,l.selected,l.disabled],Sv={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]},Ca={size:n.medium,rounded:f.medium,fillMode:x.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Ca.size,rounded:a=Ca.rounded,fillMode:r=Ca.fillMode,themeColor:s=Ca.themeColor,showArrow:i=Ca.showArrow,arrowIconName:d=Ca.arrowIconName,hover:p,focus:m,active:k,selected:y,disabled:T,icon:g,text:N,iconClassName:C,...I}=e,L=g!==void 0,Y=e.children!==void 0;return mk("button",{...I,className:o(e.className,vn,S(vn,{size:t,rounded:a,fillMode:r,themeColor:s}),b(vn,{hover:p,focus:m,active:k,disabled:T,selected:y}),{"k-icon-button":!N&&!Y&&L}),children:[g&&us(v,{className:o(C,"k-button-icon"),icon:g}),N?mk(Iv,{children:[N&&us("span",{className:"k-button-text",children:N}),e.children]}):e.children&&us("span",{className:"k-button-text",children:e.children}),i&&us("span",{className:"k-menu-button-arrow k-button-arrow",children:us(v,{icon:d})})]})};c.states=Cv;c.options=Sv;c.className=vn;c.defaultOptions=Ca;import{jsx as Bv}from"react/jsx-runtime";var at=e=>Bv(c,{icon:"folder",...e,children:void 0});import{jsx as Mv}from"react/jsx-runtime";var Rt=e=>Mv(c,{icon:"folder",children:"Button",...e});import{jsx as bG}from"react/jsx-runtime";import{jsx as Yv}from"react/jsx-runtime";var ks="k-button-group",Lv=[l.disabled],Ev={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 Yv("div",{...s,className:o(e.className,ks,S(ks,{fillMode:t}),b(ks,{disabled:a}),{[`${ks}-stretched`]:r}),children:e.children})};P.states=Lv;P.options=Ev;P.className=ks;P.defaultOptions=uk;import{Fragment as YG,jsx as EG,jsxs as PG}from"react/jsx-runtime";import{Fragment as RG,jsx as zG,jsxs as HG}from"react/jsx-runtime";import{Fragment as ZG,jsx as XG,jsxs as JG}from"react/jsx-runtime";import{Fragment as eK,jsx as $G,jsxs as tK}from"react/jsx-runtime";import{Fragment as kK,jsx as mK,jsxs as uK}from"react/jsx-runtime";import{jsx as Dv}from"react/jsx-runtime";var kk="k-scheduler-layout",Pv=[],Gv={},Kv={},hs=e=>{let{as:t="div",view:a,...r}=e;return Dv(t,{...r,className:o(e.className,kk,{[`k-scheduler-${a}view`]:a}),children:e.children})};hs.states=Pv;hs.options=Gv;hs.className=kk;hs.defaultOptions=Kv;var hk=hs;import{jsx as Hv,jsxs as Wv}from"react/jsx-runtime";var fk="k-scheduler",Fv=[],zv={},Rv={},Ie=e=>{let{view:t,toolbar:a,footer:r,layout:s,...i}=e;return Wv("div",{...i,className:o(e.className,fk),children:[a,Hv(hk,{className:o({"k-scheduler-layout-flex":s==="flex"}),as:s==="table"?"table":"div",view:t,children:e.children}),r]})};Ie.states=Fv;Ie.options=zv;Ie.className=fk;Ie.defaultOptions=Rv;import{jsx as gk}from"react/jsx-runtime";var Ov="k-scheduler-header",Po=e=>gk("div",{...e,className:o(Ov,e.className),children:gk("div",{className:"k-scheduler-header-wrap",children:e.children})});import{jsx as Vv}from"react/jsx-runtime";var Qv="k-scheduler-content",Go=e=>Vv("div",{...e,className:o(Qv,e.className),children:e.children});import{jsx as Zv}from"react/jsx-runtime";var Xv="k-scheduler-times",Sa=e=>Zv("div",{...e,className:o(Xv,e.className),children:e.children});import{jsx as jv}from"react/jsx-runtime";var Jv="k-scheduler-table",Bt=e=>jv("table",{...e,className:o(Jv,e.className),children:e.children});import{jsx as xk}from"react/jsx-runtime";var bk="k-scheduler-cell",Uv=[],qv={},_v={},B=e=>{let{cellType:t,allDay:a,text:r,colspan:s,rowspan:i,as:d="div",...p}=e,m=r||e.children;return xk(d,{...p,colSpan:s,rowSpan:i,className:o(bk,e.className,{"k-scheduler-times-all-day":a},t?.map(k=>({[`k-${k}-cell`]:!0}))),children:!a&&r?xk("span",{className:"k-link k-nav-day",children:m}):m})};B.states=Uv;B.options=qv;B.defaultOptions=_v;B.className=bk;import{jsx as RK}from"react/jsx-runtime";import{jsx as QK}from"react/jsx-runtime";import{jsx as ty}from"react/jsx-runtime";var yn="k-input",$v=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],ey={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},E=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,...T}=e;return ty("span",{...T,className:o(e.className,yn,S(yn,{size:m,rounded:k,fillMode:y}),b(yn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};E.states=$v;E.options=ey;E.className=yn;E.defaultOptions=wn;import{jsx as ly}from"react/jsx-runtime";var An="k-picker",oy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],ay={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},wt=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,...T}=e;return ly("span",{...T,className:o(e.className,An,S(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})};wt.states=oy;wt.options=ay;wt.className=An;wt.defaultOptions=Tn;import{Fragment as iy,jsx as Hc}from"react/jsx-runtime";var vk="k-clear-value",ry=[l.disabled,l.loading,l.readonly],sy={},ae=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Hc(iy,{}):Hc("span",{className:o(e.className,vk),children:Hc(v,{icon:"x"})})};ae.states=ry;ae.options=sy;ae.className=vk;import{jsx as cy}from"react/jsx-runtime";var Wc="k-input-inner",ny=[],dy={},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 cy("input",{...i,type:a,className:o(e.className,Wc,S(Wc,e)),placeholder:r,autoComplete:s,defaultValue:t})};se.states=ny;se.options=dy;se.className=Wc;import{jsx as yk,jsxs as uy}from"react/jsx-runtime";var Oc="k-input-inner",py=[],my={},vo=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return uy("span",{...d,className:o(e.className,Oc,S(Oc,e)),children:[s,!s&&i&&yk(v,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&yk("span",{className:"k-input-value-text",children:t})]})};vo.states=py;vo.options=my;vo.className=Oc;import{jsx as fy}from"react/jsx-runtime";var Qc="k-input-inner",ky=[],hy={},wk={value:"",placeholder:""},fs=e=>{let{value:t=wk.value,placeholder:a=wk.placeholder,rows:r,...s}=e;return fy("textarea",{...s,className:o(e.className,Qc,S(Qc,e)),placeholder:a,rows:r,defaultValue:t})};fs.states=ky;fs.options=hy;fs.className=Qc;import{Fragment as xy,jsx as Ak}from"react/jsx-runtime";var Tk="k-input-loading-icon",gy=[l.disabled,l.loading],U=e=>{let{disabled:t,loading:a}=e;return t||!a?Ak(xy,{}):Ak("span",{className:o(e.className,Tk,"k-icon k-i-loading")})};U.states=gy;U.className=Tk;import{Fragment as yy,jsx as Nk}from"react/jsx-runtime";var Ck="k-input-validation-icon",by=[l.valid,l.invalid,l.disabled,l.loading],vy={},J=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Nk(yy,{}):Nk(v,{className:o(Ck),icon:i})};J.states=by;J.options=vy;J.className=Ck;import{Fragment as Ty,jsx as Sk}from"react/jsx-runtime";var wy="k-input-prefix",Ay={direction:"horizontal"},te=e=>{let{direction:t=Ay.direction,...a}=e;return e.children?Sk("span",{...a,className:o(wy,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Sk(Ty,{})};import{Fragment as Sy,jsx as Ik}from"react/jsx-runtime";var Ny="k-input-suffix",Cy={direction:"horizontal"},oe=e=>{let{direction:t=Cy.direction,...a}=e;return e.children?Ik("span",{...a,className:o(Ny,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ik(Sy,{})};import{jsx as SD}from"react/jsx-runtime";import{jsx as LD}from"react/jsx-runtime";import{jsx as By}from"react/jsx-runtime";var Bk="k-input-separator",Iy={direction:"vertical"},xe=e=>{let{direction:t=Iy.direction,...a}=e;return By("span",{...a,className:o(Bk,e.className,{[`${Bk}-${t}`]:t})})};import{jsx as Mk,jsxs as Ey}from"react/jsx-runtime";var Lk="k-color-preview",My=[],Ly={},Ko=e=>{let{color:t,iconName:a,...r}=e;return Ey("span",{...r,className:o(e.className,Lk,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&Mk(v,{icon:a,className:"k-color-preview-icon"}),Mk("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ko.states=My;Ko.options=Ly;Ko.className=Lk;import{jsx as Ek}from"react/jsx-runtime";var Yk="k-animation-container",Yy=[],Py={},Pk={positionMode:"absolute"},Do=e=>{let{positionMode:t=Pk.positionMode,animationStyle:a,offset:r,...s}=e;return Ek("div",{...s,style:{...r,...e.style},className:o(e.className,Yk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Ek("div",{className:"k-child-animation-container",style:a,children:e.children})})};Do.states=Yy;Do.options=Py;Do.className=Yk;Do.defaultOptions=Pk;import{jsx as Gk}from"react/jsx-runtime";var Kk="k-popup",Gy=[],Ky={},Dk={positionMode:"absolute"},R=e=>{let{offset:t,positionMode:a=Dk.positionMode,animationStyle:r,...s}=e;return Gk(Do,{positionMode:a,offset:t,animationStyle:r,children:Gk("div",{...s,className:o(e.className,Kk),children:e.children})})};R.states=Gy;R.options=Ky;R.className=Kk;R.defaultOptions=Dk;import{jsx as zy}from"react/jsx-runtime";var Cn="k-actions",Dy=[],Fy={},Vc={alignment:"start",orientation:"horizontal"},V=e=>{let{alignment:t=Vc.alignment,orientation:a=Vc.orientation,...r}=e;return zy("div",{...r,className:o(Cn,{[`${Cn}-${t}`]:t,[`${Cn}-${a}`]:a},e.className),children:e.children})};V.states=Dy;V.options=Fy;V.className=Cn;V.defaultOptions=Vc;var Fk=V;import{jsx as Hy}from"react/jsx-runtime";var Ry="k-actionsheet-footer",zk={alignment:"stretched",orientation:"horizontal"},Ht=e=>{let{alignment:t=zk.alignment,orientation:a=zk.orientation,template:r,as:s=r?"div":V,...i}=e;return Hy(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,Ry),children:e.children})};import{jsx as gs,jsxs as Qy}from"react/jsx-runtime";var Rk="k-searchbox",Wy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],Oy={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:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},Re=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:y,loading:T,disabled:g,showIcon:N=Xc.showIcon,icon:C=Xc.icon,...I}=e;return Qy(E,{...I,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:y,loading:T,disabled:g,className:o(e.className,Rk),children:[N&&gs(v,{className:"k-input-icon",icon:C}),gs(se,{placeholder:a,value:t}),gs(U,{...e}),gs(J,{...e}),gs(ae,{...e})]})};Re.states=Wy;Re.options=Oy;Re.className=Rk;Re.defaultOptions=Xc;import{jsx as MF}from"react/jsx-runtime";import{Fragment as Hk,jsx as Fo,jsxs as Zc}from"react/jsx-runtime";var Wk="k-textbox",Vy=[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:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.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:y,placeholder:T,hover:g,focus:N,valid:C,invalid:I,required:L,loading:Y,disabled:G,readonly:z,...Q}=e;return Zc(E,{...Q,size:t,rounded:a,fillMode:r,hover:g,focus:N,valid:C,invalid:I,required:L,loading:Y,disabled:G,readonly:z,className:o(e.className,Wk),children:[p&&Zc(Hk,{children:[Fo(te,{children:p}),s&&Fo(xe,{})]}),Fo(se,{placeholder:T,value:y,type:k}),d&&Fo(J,{valid:C,invalid:I,loading:Y,disabled:G}),Fo(U,{loading:Y,disabled:G}),i&&Fo(ae,{loading:Y,disabled:G,readonly:z,value:y}),m&&Zc(Hk,{children:[s&&Fo(xe,{}),Fo(oe,{children:m})]})]})};j.states=Vy;j.options=Xy;j.className=Wk;j.defaultOptions=Ia;import{jsx as HF}from"react/jsx-runtime";import{Fragment as ZF,jsx as XF}from"react/jsx-runtime";import{Fragment as $F,jsx as _F}from"react/jsx-runtime";import{jsx as zo,jsxs as Jc}from"react/jsx-runtime";var Vk="k-actionsheet-titlebar",Zy={},re=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:y,...T}=e;return Jc("div",{...T,className:o(e.className,Vk),children:[Jc("div",{className:"k-actionsheet-titlebar-group",children:[r&&zo("div",{className:"k-actionsheet-actions",children:r}),!y&&Jc("div",{className:"k-actionsheet-title",children:[t&&zo("div",{className:"k-text-center",children:t}),a&&zo("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),y&&zo("div",{className:"k-actionsheet-title",children:y}),s&&zo("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&zo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?zo(j,{value:p,placeholder:m,size:k?"large":"medium"}):zo(Re,{placeholder:"Filter",size:k?"large":"medium"})})]})};re.className=Vk;re.defaultOptions=Zy;import{jsx as jc,jsxs as qy}from"react/jsx-runtime";var Uc="k-actionsheet-view",Jy=[],jy={},Uy={},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===Ht&&jc(Ht,{...i?.props});return qy("div",{...d,className:o(e.className,Uc,{[`${Uc}-animated`]:a}),children:[p,jc("div",{className:"k-actionsheet-content",children:r}),m]})};Tl.states=Jy;Tl.options=jy;Tl.className=Uc;Tl.defaultOptions=Uy;import{jsx as Sn,jsxs as ew}from"react/jsx-runtime";var Xk="k-actionsheet",_y=[],$y={},xs={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ie=e=>{let{side:t=xs.side,fullscreen:a=xs.fullscreen,adaptive:r=xs.adaptive,overlay:s=xs.overlay,template:i,children:d,header:p,footer:m,...k}=e;return ew("div",{className:"k-actionsheet-container",children:[s&&Sn("div",{className:"k-overlay"}),Sn(Do,{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,Xk,{[`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=_y;ie.options=$y;ie.className=Xk;ie.defaultOptions=xs;import{jsx as Az}from"react/jsx-runtime";import{Fragment as ow,jsx as bs,jsxs as qc}from"react/jsx-runtime";var _c="k-actionsheet-item",tw=[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&&bs(ow,{children:qc("span",{className:"k-actionsheet-action",children:[t&&bs("span",{className:"k-icon-wrap",children:bs(v,{className:"k-actionsheet-item-icon",icon:t})}),qc("span",{className:"k-actionsheet-item-text",children:[a&&bs("span",{className:"k-actionsheet-item-title",children:a}),r&&bs("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};$c.states=tw;$c.className=_c;import{jsx as Ez,jsxs as Yz}from"react/jsx-runtime";import{jsx as Dz}from"react/jsx-runtime";import{jsx as Hz}from"react/jsx-runtime";import{jsx as Vz}from"react/jsx-runtime";import{jsx as Nl,jsxs as ep}from"react/jsx-runtime";var vs="k-slider",aw=[l.hover,l.focus,l.active,l.disabled,l.readonly],lw={},Ro={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},At=e=>{let{type:t=Ro.type,orientation:a=Ro.orientation,readonly:r=Ro.readonly,disabled:s=Ro.disabled,handlePosition:i=Ro.handlePosition,showButtons:d=Ro.showButtons,showTicks:p=Ro.showTicks,hover:m,focus:k,active:y,trackStyle:T,dir:g,...N}=e,C,I;return a==="horizontal"?(C=g==="rtl"?"caret-alt-left":"caret-alt-right",I=g==="rtl"?"caret-alt-right":"caret-alt-left"):a==="vertical"&&(C="caret-alt-up",I="caret-alt-down"),ep("div",{...N,className:o(vs,e.className,b(vs,{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:I}),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:T,children:[Nl("div",{className:"k-slider-selection"}),t==="range"&&Nl("span",{className:o("k-draghandle","k-draghandle-start",b(vs,{hover:m,focus:k,active:y}))}),Nl("span",{className:o("k-draghandle",`k-draghandle-${i}`,b(vs,{hover:m,focus:k,active:y}))})]})]}),d&&Nl(c,{className:"k-button-increase",rounded:"full",icon:C})]})};At.states=aw;At.options=lw;At.className=vs;At.defaultOptions=Ro;import{jsx as Jk}from"react/jsx-runtime";var jk="k-tick",rw=[],sw={},Uk={label:!1},Ke=e=>{let{style:t,label:a=Uk.label,orientation:r,large:s,text:i,...d}=e;return Jk("li",{...d,className:o(e.className,jk,{[`k-tick-${r}`]:r,"k-tick-large":s}),style:t,children:a&&Jk("span",{className:"k-label",children:i})})};Ke.states=rw;Ke.options=sw;Ke.className=jk;Ke.defaultOptions=Uk;import{Fragment as iw,jsx as Mt,jsxs as nw}from"react/jsx-runtime";var In=e=>Mt(At,{children:nw(iw,{children:[Mt(Ke,{className:"k-first",label:!0,large:!0,text:"0"}),Mt(Ke,{}),Mt(Ke,{}),Mt(Ke,{}),Mt(Ke,{}),Mt(Ke,{label:!0,large:!0,text:"5"}),Mt(Ke,{}),Mt(Ke,{}),Mt(Ke,{}),Mt(Ke,{}),Mt(Ke,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as gR,jsx as fR,jsxs as xR}from"react/jsx-runtime";import{Fragment as AR,jsx as wR,jsxs as TR}from"react/jsx-runtime";import{Fragment as BR,jsx as IR,jsxs as MR}from"react/jsx-runtime";import{jsx as dw}from"react/jsx-runtime";var tp=e=>dw(At,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as cw}from"react/jsx-runtime";var op=e=>cw(At,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as qk,jsxs as uw}from"react/jsx-runtime";var _k="k-spin-button",pw=[],mw={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},Ho=e=>{let{size:t=ap.size,fillMode:a=ap.fillMode,...r}=e;return uw("span",{...r,className:o(_k,e.className),children:[qk(c,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:a}),qk(c,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]})};Ho.states=pw;Ho.options=mw;Ho.className=_k;Ho.defaultOptions=ap;import{Fragment as $k,jsx as yo,jsxs as lp}from"react/jsx-runtime";var eh="k-numerictextbox",kw=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],hw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Ba={showSpinButton:!0,showClearButton:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},me=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:y,hover:T,focus:g,valid:N,invalid:C,required:I,loading:L,disabled:Y,readonly:G,...z}=e;return lp(E,{...z,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:N,invalid:C,required:I,loading:L,disabled:Y,readonly:G,className:o(e.className,eh),children:[p&&lp($k,{children:[yo(te,{children:p}),s&&yo(xe,{})]}),yo(se,{placeholder:y,value:k}),yo(J,{valid:N,invalid:C,loading:L,disabled:Y}),yo(U,{loading:L,disabled:Y}),i&&yo(ae,{loading:L,disabled:Y,readonly:G,value:k}),m&&lp($k,{children:[s&&yo(xe,{}),yo(oe,{children:m})]}),d&&yo(Ho,{className:"k-input-spinner",size:t,fillMode:r})]})};me.states=kw;me.options=hw;me.className=eh;me.defaultOptions=Ba;import{jsx as s0}from"react/jsx-runtime";import{jsx as gw}from"react/jsx-runtime";var fw="k-no-data",ys=e=>gw("span",{className:o(fw,e.className),children:e.children});import{jsx as Cl,jsxs as oh}from"react/jsx-runtime";var rp="k-list",xw=[],bw={size:[n.small,n.medium,n.large]},ah={size:n.medium},X=e=>{let{size:t=ah.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:d,...p}=e,m,k,y,T,g=[];return r?r.map((N,C)=>{N.type===be?(N.props.root===!0?(m=N.props.label,N.props.children.map((I,L)=>{g.push(Cl(K,{...I.props},`optChild-${L}-${new Date().getTime()}`))})):N.props.children.forEach((I,L)=>{let Y="";L===0&&(Y=N.props.label),g.push(Cl(K,{className:L===0?"k-first":"",...I.props,groupLabel:Y},`groupLabel-${L}-${new Date().getTime()}`))}),k=Cl(be,{label:m,virtualization:a,children:g})):N.type===K&&(g.push(Cl(K,{...N.props},`${N.type}-${C}`)),y=Cl(Sl,{virtualization:a,children:g}),d&&(T=oh(ys,{className:"k-sr-only",children:[g.length," items found."]})))}):T=Cl(ys,{children:"No data found."}),oh("div",{...p,className:o(e.className,rp,S(rp,{size:t}),{"k-virtual-list":a}),children:[s,i,k,y,T]})};X.states=xw;X.options=bw;X.className=rp;X.defaultOptions=ah;import{jsx as Ma,jsxs as ww}from"react/jsx-runtime";var sp="k-list",vw=[],yw={size:[n.small,n.medium,n.large]},lh={size:n.medium},La=e=>{let{size:t=lh.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((T,g)=>{m.push(Ma(K,{...T.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Ma(rh,{...k.props,children:k.props.label},`listChild-${y}`)),k.props.children.map((T,g)=>{m.push(Ma(K,{...T.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Ma(be,{label:i,virtualization:a,children:m})):k.type===K&&(m.push(Ma(K,{...k.props},`${k.type}-${y}`)),p=Ma(Sl,{virtualization:a,children:m}))}):p=Ma(ys,{children:"No data found."}),ww("div",{...s,className:o(e.className,sp,S(sp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};La.states=vw;La.options=yw;La.className=sp;La.defaultOptions=lh;import{jsx as sh}from"react/jsx-runtime";var Bn="k-checkbox",Aw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],Tw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},ip={size:n.medium,rounded:f.medium},Ve=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:T=ip.rounded,...g}=e;return sh("span",{className:"k-checkbox-wrap",children:sh("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Bn,S(Bn,{size:y,rounded:T}),b(Bn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};Ve.states=Aw;Ve.options=Tw;Ve.className=Bn;Ve.defaultOptions=ip;import{jsx as Sw}from"react/jsx-runtime";var ih="k-checkbox-list",Nw=[],Cw={},nh={layout:"vertical"},Il=e=>{let{layout:t=nh.layout,...a}=e;return Sw("ul",{...a,className:o(e.className,ih,{[`k-list-${t}`]:t}),children:e.children})};Il.states=Nw;Il.options=Cw;Il.className=ih;Il.defaultOptions=nh;import{jsx as Lw}from"react/jsx-runtime";var dh="k-checkbox-list-item",Iw=[],Bw={},Mw={},Bl=e=>{let{...t}=e;return Lw("li",{...t,className:o(e.className,dh),children:e.children})};Bl.states=Iw;Bl.options=Bw;Bl.className=dh;Bl.defaultOptions=Mw;import{Fragment as G0,jsx as P0,jsxs as K0}from"react/jsx-runtime";import{Fragment as H0,jsx as R0,jsxs as W0}from"react/jsx-runtime";import{Fragment as Z0,jsx as X0,jsxs as J0}from"react/jsx-runtime";import{Fragment as $0,jsx as _0,jsxs as eH}from"react/jsx-runtime";import{jsx as lH}from"react/jsx-runtime";import{jsx as nH}from"react/jsx-runtime";import{jsx as Mn,jsxs as Gw}from"react/jsx-runtime";var dp="k-list-item",Ew=[l.hover,l.focus,l.selected,l.disabled],Yw={},Pw={},K=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:k,selected:y,disabled:T,...g}=e,N=t||e.children;return Gw("li",{...g,className:o(e.className,r?"k-list-group-item":dp,b(dp,{hover:m,focus:k,disabled:T,selected:y})),children:[d&&Mn(Ve,{checked:p}),s&&Mn(v,{icon:i}),Mn("span",{className:"k-list-item-text",children:N}),a&&a!==""&&Mn("div",{className:"k-list-item-group-label",children:a})]})};K.states=Ew;K.options=Yw;K.className=dp;K.defaultOptions=Pw;import{jsx as cp,jsxs as Dw}from"react/jsx-runtime";var Kw="k-list-content",Sl=e=>{let{virtualization:t,...a}=e;return Dw("div",{...a,className:o(Kw,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 ch}from"react/jsx-runtime";var Fw="k-list-group-sticky-header",ph=e=>ch("div",{className:o(Fw,e.className),children:ch("div",{className:"k-list-header-text",children:e.children})});import{Fragment as zw,jsx as mh,jsxs as Rw}from"react/jsx-runtime";var be=e=>{let{virtualization:t,label:a}=e;return Rw(zw,{children:[a&&mh(ph,{children:a}),e.children&&mh(Sl,{virtualization:t,children:e.children})]})};import{jsx as uh}from"react/jsx-runtime";var Hw="k-list-group-item",rh=e=>uh("li",{className:o(Hw,e.className),children:uh("span",{className:"k-list-item-text",children:e.children})});import{jsx as Vw}from"react/jsx-runtime";var pp="k-list-optionlabel",Ww=[l.hover,l.focus,l.selected,l.disabled],Ow={},Qw={},Ln=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Vw("div",{...d,className:o(pp,b(pp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Ln.states=Ww;Ln.options=Ow;Ln.className=pp;Ln.defaultOptions=Qw;import{jsx as jw}from"react/jsx-runtime";var mp="k-list-custom-value",Xw=[l.hover,l.focus,l.selected,l.disabled],Zw={},Jw={},Ue=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return jw("div",{...d,className:o(mp,b(mp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Ue.states=Xw;Ue.options=Zw;Ue.className=mp;Ue.defaultOptions=Jw;import{jsx as VH}from"react/jsx-runtime";import{jsx as jH}from"react/jsx-runtime";import{jsx as $H,jsxs as e8}from"react/jsx-runtime";import{jsx as l8,jsxs as r8}from"react/jsx-runtime";import{jsx as d8}from"react/jsx-runtime";import{jsx as u8,jsxs as k8}from"react/jsx-runtime";import{jsx as x8,jsxs as b8}from"react/jsx-runtime";import{Fragment as _w,jsx as pt,jsxs as up}from"react/jsx-runtime";var kh="k-dropdownlist",Uw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],qw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},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:T,focus:g,valid:N,invalid:C,required:I,loading:L,disabled:Y,readonly:G,popup:z,opened:Q,adaptive:ge,adaptiveSettings:Ge,adaptiveTitle:ot,adaptiveSubtitle:zt,adaptiveFilter:Na,...Al}=e;return up(_w,{children:[up(wt,{...Al,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:N,invalid:C,required:I,loading:L,disabled:Y,readonly:G,className:o(e.className,kh,{"k-icon-picker":!i&&d}),children:[pt(te,{children:p}),pt(vo,{placeholder:y,value:k,showValue:i,valueIconName:d}),pt(J,{valid:N,invalid:C,loading:L,disabled:Y}),pt(U,{loading:L,disabled:Y}),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,...Ge,header:pt(re,{actionsEnd:pt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Na,inputValue:k,inputPlaceholder:y,title:ot,subtitle:zt}),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=Uw;ne.options=qw;ne.className=kh;ne.defaultOptions=Ml;import{jsx as j8}from"react/jsx-runtime";import{jsx as eW,jsxs as tW}from"react/jsx-runtime";import{Fragment as dW,jsx as iW,jsxs as nW}from"react/jsx-runtime";import{jsx as uW}from"react/jsx-runtime";import{jsx as xW,jsxs as bW}from"react/jsx-runtime";import{jsx as TW,jsxs as NW}from"react/jsx-runtime";import{Fragment as YW,jsx as LW,jsxs as EW}from"react/jsx-runtime";import{Fragment as HW,jsx as zW,jsxs as RW}from"react/jsx-runtime";import{Fragment as aO,jsx as oO}from"react/jsx-runtime";import{Fragment as cO,jsx as dO}from"react/jsx-runtime";import{Fragment as ws,jsx as _,jsxs as Be}from"react/jsx-runtime";var hh="k-colorgradient-inputs",$w=[],eA={size:[n.small,n.medium,n.large]},fh={mode:"rgba",size:n.medium},Ll=e=>{let{mode:t=fh.mode,size:a,...r}=e;return Be("div",{...r,className:o(hh,"k-hstack"),children:[_("div",{className:"k-vstack",children:_(c,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:a})}),t==="rgba"&&Be(ws,{children:[Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),_("label",{className:"k-colorgradient-input-label",children:"R"})]}),Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),_("label",{className:"k-colorgradient-input-label",children:"G"})]}),Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),_("label",{className:"k-colorgradient-input-label",children:"B"})]}),Be("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"&&Be(ws,{children:[Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"R"})]}),Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"G"})]}),Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&Be(ws,{children:[Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"H"})]}),Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"S"})]}),Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"V"})]}),Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),_("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&Be(ws,{children:[Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"H"})]}),Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"S"})]}),Be("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&_(ws,{children:Be("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=$w;Ll.options=eA;Ll.className=hh;Ll.defaultOptions=fh;import{jsx as Ya,jsxs as Pa}from"react/jsx-runtime";var gh="k-colorgradient-color-contrast",tA=[],oA={},aA={},El=()=>Pa("div",{className:o(gh,"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(v,{icon:"check"}),Ya(v,{icon:"check"})]})]}),Pa("div",{children:[Ya("span",{children:"AA: 4.5"}),Pa("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ya(v,{icon:"check"})]})]}),Pa("div",{children:[Ya("span",{children:"AAA: 7.0"}),Pa("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ya(v,{icon:"x"})]})]})]});El.states=tA;El.options=oA;El.className=gh;El.defaultOptions=aA;import{jsx as Lt,jsxs as As}from"react/jsx-runtime";var En="k-colorgradient",lA=[l.hover,l.focus,l.readonly,l.disabled],rA={size:[n.small,n.medium,n.large]},Wt={size:n.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},Wo=e=>{let{size:t=Wt.size,mode:a=Wt.mode,readonly:r=Wt.readonly,disabled:s=Wt.disabled,gradientStyle:i=Wt.gradientStyle,dragHandleStyle:d=Wt.dragHandleStyle,alphaStyle:p=Wt.alphaStyle,alphaStyleHorizontal:m=Wt.alphaStyleHorizontal,contrast:k=Wt.contrast,dir:y,hover:T,focus:g,hoverHandle:N,focusHandle:C,canvasOrientation:I=Wt.canvasOrientation,...L}=e;return As("div",{...L,className:o(e.className,En,S(En,{size:t}),b(En,{hover:T,focus:g,readonly:r,disabled:s})),dir:y,children:[!I||I==="horizontal"&&As("div",{className:"k-colorgradient-canvas k-hstack",children:[Lt("div",{className:"k-hsv-rectangle",style:i,children:Lt("div",{className:"k-hsv-gradient",children:Lt("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":C}),style:d})})}),As("div",{className:"k-hsv-controls k-hstack",children:[Lt(op,{className:"k-hue-slider",hover:N,focus:C}),a!=="rgb"&&a!=="hsv"&&Lt(op,{className:"k-alpha-slider",hover:N,focus:C,trackStyle:p})]})]}),I==="vertical"&&As("div",{className:"k-colorgradient-canvas k-vstack",children:[Lt("div",{className:"k-hsv-rectangle",style:i,children:Lt("div",{className:"k-hsv-gradient",children:Lt("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":C}),style:d})})}),As("div",{className:"k-hsv-controls k-vstack",children:[Lt(tp,{className:"k-hue-slider",hover:N,focus:C}),a!=="rgb"&&a!=="hsv"&&Lt(tp,{className:"k-alpha-slider",hover:N,focus:C,trackStyle:m})]})]}),Lt(Ll,{mode:e.mode,size:t}),k&&Lt(El,{})]})};Wo.states=lA;Wo.options=rA;Wo.className=En;Wo.defaultOptions=Wt;import{jsx as GO}from"react/jsx-runtime";import{jsx as zO}from"react/jsx-runtime";import{jsx as sA}from"react/jsx-runtime";var xh=e=>sA("tr",{children:e.children});import{jsx as dA}from"react/jsx-runtime";var kp="k-colorpalette-tile",iA=[l.hover,l.focus,l.selected],nA={},Ts=e=>{let{color:t,tileSize:a,hover:r,focus:s,selected:i,...d}=e,p={backgroundColor:t,width:a?a+"px":"",height:a?a+"px":""};return dA("td",{...d,className:o(e.className,kp,b(kp,{hover:r,focus:s,selected:i})),style:p})};Ts.states=iA;Ts.options=nA;Ts.className=kp;import{jsx as Ns}from"react/jsx-runtime";var Yn="k-colorpalette",cA=[l.disabled],pA={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,T)=>{let g=[];k.slice(T*m,(T+1)*m).map((C,I)=>{g.push(Ns(Ts,{color:C,tileSize:s},I))});let N=Ns(xh,{children:g},T);p.push(N)})}return Ns("div",{...d,className:o(e.className,Yn,b(Yn,{disabled:i}),S(Yn,{size:t})),children:Ns("table",{className:"k-colorpalette-table",children:Ns("tbody",{children:p.length>0?p:e.children})})})};Yl.states=cA;Yl.options=pA;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 nQ}from"react/jsx-runtime";import{jsx as Et,jsxs as Pl}from"react/jsx-runtime";var Pn="k-coloreditor",mA=[l.focus],uA={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:T=Gl.canvasOrientation,...g}=e;return Pl("div",{...g,className:o(e.className,"k-flatcolorpicker",Pn,S(Pn,{size:t}),b(Pn,{focus:d})),dir:m,children:[Pl("div",{className:"k-coloreditor-header k-hstack",children:[Et("div",{className:"k-coloreditor-header-actions k-hstack",children:k&&Pl(P,{fillMode:"flat",children:[Et(c,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:a==="gradient"}),Et(c,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:a==="palette"})]})}),Et("div",{className:"k-spacer"}),Pl("div",{className:"k-coloreditor-header-actions k-hstack",children:[Et(c,{fillMode:"flat",icon:"droplet-slash",size:t}),Pl("div",{className:"k-coloreditor-preview k-vstack",children:[Et(Ko,{className:"k-coloreditor-preview-color",color:s}),Et(Ko,{className:"k-coloreditor-current-color",color:i})]})]})]}),Et("div",{className:"k-coloreditor-views k-vstack",children:a==="gradient"?Et(Wo,{focus:p,size:t,canvasOrientation:T}):Et(Yl,{palette:r,size:t})}),y&&Pl(V,{className:"k-coloreditor-footer",alignment:"start",children:[Et(c,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Et(c,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ao.states=mA;ao.options=uA;ao.className=Pn;ao.defaultOptions=Gl;import{jsx as SQ}from"react/jsx-runtime";import{jsx as LQ}from"react/jsx-runtime";import{jsx as GQ}from"react/jsx-runtime";import{jsx as zQ}from"react/jsx-runtime";import{Fragment as fA,jsx as Yt,jsxs as xp}from"react/jsx-runtime";var bh="k-colorpicker",kA=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],hA={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Cs={arrowIconName:"caret-alt-down",size:wt.defaultOptions.size,rounded:wt.defaultOptions.rounded,fillMode:wt.defaultOptions.fillMode},Pt=e=>{let{size:t=Cs.size,rounded:a=Cs.rounded,fillMode:r=Cs.fillMode,arrowIconName:s=Cs.arrowIconName,prefix:i,suffix:d,value:p,placeholder:m,hover:k,focus:y,valid:T,invalid:g,required:N,disabled:C,valueIconName:I,popup:L,opened:Y,adaptive:G,adaptiveSettings:z,adaptiveTitle:Q,adaptiveSubtitle:ge,...Ge}=e;return xp(fA,{children:[xp(wt,{...Ge,size:t,rounded:a,fillMode:r,hover:k,focus:y,valid:T,invalid:g,required:N,disabled:C,className:o(e.className,bh,"k-icon-picker")