UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 297 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"}),x=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},h={small:"small",medium:"medium",large:"large",full:"full"},b={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"},yt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{Fragment as zv,jsx as gk}from"react/jsx-runtime";var Oc="k-icon k-font-icon",Dv=[],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]},Rv={},fs=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?gk("span",{...d,className:o(e.className,Oc,S(Oc,{size:t}),{[`k-i-${r}`]:r,[`k-color-${a}`]:a,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"})}):gk(zv,{})};fs.states=Dv;fs.options=Fv;fs.className=Oc;fs.defaultOptions=Rv;var xk=fs;import{Fragment as Wv,jsx as Nn}from"react/jsx-runtime";var Wc="k-icon k-svg-icon",Hv=[],Ov={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},bk={viewBox:"0 0 24 24"},hs=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=bk.viewBox,icon:d,...p}=e;if(!d)return Nn(Wv,{});d==="none"&&{...p,className:o(e.className,Wc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return Nn("span",{...p,className:o(e.className,Wc,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:Nn("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})})};hs.states=Hv;hs.options=Ov;hs.className=Wc;hs.defaultOptions=bk;var Qc=hs;import*as vk from"@progress/kendo-svg-icons";import{Fragment as yk,jsx as gs}from"react/jsx-runtime";var Qv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Vv=[],Xv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Vc={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:a,icon:r,type:s=Vc.type,rotate:i,flip:d,viewBox:p=Vc.viewBox,...m}=e;if(!r)return gs(yk,{});if(s==="svg"){if(r==="none")return gs(Qc,{...m,icon:r,size:t});let k=Qv(`${r}-icon`);return vk[k]?gs(Qc,{...m,icon:vk[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):gs(yk,{})}return gs(xk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};y.states=Vv;y.options=Xv;y.defaultOptions=Vc;var Xc=y;import{Fragment as jv,jsx as xs,jsxs as wk}from"react/jsx-runtime";var Cn="k-button",Zv=[l.hover,l.focus,l.active,l.selected,l.disabled],Jv={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Ba={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Ba.size,rounded:a=Ba.rounded,fillMode:r=Ba.fillMode,themeColor:s=Ba.themeColor,showArrow:i=Ba.showArrow,arrowIconName:d=Ba.arrowIconName,hover:p,focus:m,active:k,selected:v,disabled:A,icon:g,text:N,iconClassName:C,...I}=e,L=g!==void 0,Y=e.children!==void 0;return wk("button",{...I,className:o(e.className,Cn,S(Cn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Cn,{hover:p,focus:m,active:k,disabled:A,selected:v}),{"k-icon-button":!N&&!Y&&L}),children:[g&&xs(y,{className:o(C,"k-button-icon"),icon:g}),N?wk(jv,{children:[N&&xs("span",{className:"k-button-text",children:N}),e.children]}):e.children&&xs("span",{className:"k-button-text",children:e.children}),i&&xs("span",{className:"k-menu-button-arrow k-button-arrow",children:xs(y,{icon:d})})]})};c.states=Zv;c.options=Jv;c.className=Cn;c.defaultOptions=Ba;import{jsx as Uv}from"react/jsx-runtime";var Ue=e=>Uv(c,{icon:"folder",...e,children:void 0});import{jsx as qv}from"react/jsx-runtime";var Ot=e=>qv(c,{icon:"folder",children:"Button",...e});import{jsx as oK}from"react/jsx-runtime";import{jsx as ey}from"react/jsx-runtime";var bs="k-button-group",_v=[l.disabled],$v={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},Tk={fillMode:b.solid},P=e=>{let{fillMode:t=Tk.fillMode,disabled:a,stretched:r,...s}=e;return ey("div",{...s,className:o(e.className,bs,S(bs,{fillMode:t}),x(bs,{disabled:a}),{[`${bs}-stretched`]:r}),children:e.children})};P.states=_v;P.options=$v;P.className=bs;P.defaultOptions=Tk;import{Fragment as hK,jsx as fK,jsxs as gK}from"react/jsx-runtime";import{Fragment as TK,jsx as wK,jsxs as AK}from"react/jsx-runtime";import{Fragment as MK,jsx as BK,jsxs as LK}from"react/jsx-runtime";import{Fragment as DK,jsx as KK,jsxs as FK}from"react/jsx-runtime";import{Fragment as qK,jsx as jK,jsxs as UK}from"react/jsx-runtime";import{jsx as ly}from"react/jsx-runtime";var Ak="k-scheduler-layout",ty=[],oy={},ay={},vs=e=>{let{as:t="div",view:a,...r}=e;return ly(t,{...r,className:o(e.className,Ak,{[`k-scheduler-${a}view`]:a}),children:e.children})};vs.states=ty;vs.options=oy;vs.className=Ak;vs.defaultOptions=ay;var Nk=vs;import{jsx as ny,jsxs as dy}from"react/jsx-runtime";var Ck="k-scheduler",ry=[],sy={},iy={},Ie=e=>{let{view:t,toolbar:a,footer:r,layout:s,...i}=e;return dy("div",{...i,className:o(e.className,Ck),children:[a,ny(Nk,{className:o({"k-scheduler-layout-flex":s==="flex"}),as:s==="table"?"table":"div",view:t,children:e.children}),r]})};Ie.states=ry;Ie.options=sy;Ie.className=Ck;Ie.defaultOptions=iy;import{jsx as Sk}from"react/jsx-runtime";var cy="k-scheduler-header",Ro=e=>Sk("div",{...e,className:o(cy,e.className),children:Sk("div",{className:"k-scheduler-header-wrap",children:e.children})});import{jsx as my}from"react/jsx-runtime";var py="k-scheduler-content",zo=e=>my("div",{...e,className:o(py,e.className),children:e.children});import{jsx as ky}from"react/jsx-runtime";var uy="k-scheduler-times",Ma=e=>ky("div",{...e,className:o(uy,e.className),children:e.children});import{jsx as hy}from"react/jsx-runtime";var fy="k-scheduler-table",Bt=e=>hy("table",{...e,className:o(fy,e.className),children:e.children});import{jsx as Ik}from"react/jsx-runtime";var Bk="k-scheduler-cell",gy=[],xy={},by={},B=e=>{let{cellType:t,allDay:a,text:r,colspan:s,rowspan:i,as:d="div",...p}=e,m=r||e.children;return Ik(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?Ik("span",{className:"k-link k-nav-day",children:m}):m})};B.states=gy;B.options=xy;B.defaultOptions=by;B.className=Bk;import{jsx as TD}from"react/jsx-runtime";import{jsx as SD}from"react/jsx-runtime";import{jsx as wy}from"react/jsx-runtime";var Sn="k-input",vy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],yy={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},In={size:n.medium,rounded:n.medium,fillMode:b.solid},E=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=In.size,rounded:k=In.rounded,fillMode:v=In.fillMode,...A}=e;return wy("span",{...A,className:o(e.className,Sn,S(Sn,{size:m,rounded:k,fillMode:v}),x(Sn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};E.states=vy;E.options=yy;E.className=Sn;E.defaultOptions=In;import{jsx as Ny}from"react/jsx-runtime";var Bn="k-picker",Ty=[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:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Mn={size:n.medium,rounded:h.medium,fillMode:b.solid},wt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=Mn.size,rounded:k=Mn.rounded,fillMode:v=Mn.fillMode,...A}=e;return Ny("span",{...A,className:o(e.className,Bn,S(Bn,{size:m,rounded:k,fillMode:v}),x(Bn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};wt.states=Ty;wt.options=Ay;wt.className=Bn;wt.defaultOptions=Mn;import{Fragment as Iy,jsx as Zc}from"react/jsx-runtime";var Mk="k-clear-value",Cy=[l.disabled,l.loading,l.readonly],Sy={},ae=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Zc(Iy,{}):Zc("span",{className:o(e.className,Mk),children:Zc(y,{icon:"x"})})};ae.states=Cy;ae.options=Sy;ae.className=Mk;import{jsx as Ly}from"react/jsx-runtime";var Jc="k-input-inner",By=[],My={},Ln={type:"text",autocomplete:"off",value:"",placeholder:""},ne=e=>{let{value:t=Ln.value,type:a=Ln.type,placeholder:r=Ln.placeholder,autocomplete:s=Ln.autocomplete,...i}=e;return Ly("input",{...i,type:a,className:o(e.className,Jc,S(Jc,e)),placeholder:r,autoComplete:s,defaultValue:t})};ne.states=By;ne.options=My;ne.className=Jc;import{jsx as Lk,jsxs as Py}from"react/jsx-runtime";var jc="k-input-inner",Ey=[],Yy={},To=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return Py("span",{...d,className:o(e.className,jc,S(jc,e)),children:[s,!s&&i&&Lk(y,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&Lk("span",{className:"k-input-value-text",children:t})]})};To.states=Ey;To.options=Yy;To.className=jc;import{jsx as Dy}from"react/jsx-runtime";var Uc="k-input-inner",Gy=[],Ky={},Ek={value:"",placeholder:""},ys=e=>{let{value:t=Ek.value,placeholder:a=Ek.placeholder,rows:r,...s}=e;return Dy("textarea",{...s,className:o(e.className,Uc,S(Uc,e)),placeholder:a,rows:r,defaultValue:t})};ys.states=Gy;ys.options=Ky;ys.className=Uc;import{Fragment as Ry,jsx as Yk}from"react/jsx-runtime";var Pk="k-input-loading-icon",Fy=[l.disabled,l.loading],U=e=>{let{disabled:t,loading:a}=e;return t||!a?Yk(Ry,{}):Yk("span",{className:o(e.className,Pk,"k-icon k-i-loading")})};U.states=Fy;U.className=Pk;import{Fragment as Oy,jsx as Gk}from"react/jsx-runtime";var Kk="k-input-validation-icon",zy=[l.valid,l.invalid,l.disabled,l.loading],Hy={},J=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Gk(Oy,{}):Gk(y,{className:o(Kk),icon:i})};J.states=zy;J.options=Hy;J.className=Kk;import{Fragment as Vy,jsx as Dk}from"react/jsx-runtime";var Wy="k-input-prefix",Qy={direction:"horizontal"},te=e=>{let{direction:t=Qy.direction,...a}=e;return e.children?Dk("span",{...a,className:o(Wy,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Dk(Vy,{})};import{Fragment as Jy,jsx as Fk}from"react/jsx-runtime";var Xy="k-input-suffix",Zy={direction:"horizontal"},oe=e=>{let{direction:t=Zy.direction,...a}=e;return e.children?Fk("span",{...a,className:o(Xy,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Fk(Jy,{})};import{jsx as cF}from"react/jsx-runtime";import{jsx as kF}from"react/jsx-runtime";import{jsx as Uy}from"react/jsx-runtime";var Rk="k-input-separator",jy={direction:"vertical"},be=e=>{let{direction:t=jy.direction,...a}=e;return Uy("span",{...a,className:o(Rk,e.className,{[`${Rk}-${t}`]:t})})};import{jsx as zk,jsxs as $y}from"react/jsx-runtime";var Hk="k-color-preview",qy=[],_y={},Ho=e=>{let{color:t,iconName:a,...r}=e;return $y("span",{...r,className:o(e.className,Hk,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&zk(y,{icon:a,className:"k-color-preview-icon"}),zk("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ho.states=qy;Ho.options=_y;Ho.className=Hk;import{jsx as Ok}from"react/jsx-runtime";var Wk="k-animation-container",ew=[],tw={},Qk={positionMode:"absolute"},Oo=e=>{let{positionMode:t=Qk.positionMode,animationStyle:a,offset:r,...s}=e;return Ok("div",{...s,style:{...r,...e.style},className:o(e.className,Wk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Ok("div",{className:"k-child-animation-container",style:a,children:e.children})})};Oo.states=ew;Oo.options=tw;Oo.className=Wk;Oo.defaultOptions=Qk;import{jsx as Vk}from"react/jsx-runtime";var Xk="k-popup",ow=[],aw={},Zk={positionMode:"absolute"},z=e=>{let{offset:t,positionMode:a=Zk.positionMode,animationStyle:r,...s}=e;return Vk(Oo,{positionMode:a,offset:t,animationStyle:r,children:Vk("div",{...s,className:o(e.className,Xk),children:e.children})})};z.states=ow;z.options=aw;z.className=Xk;z.defaultOptions=Zk;import{jsx as sw}from"react/jsx-runtime";var En="k-actions",lw=[],rw={},qc={alignment:"start",orientation:"horizontal"},V=e=>{let{alignment:t=qc.alignment,orientation:a=qc.orientation,...r}=e;return sw("div",{...r,className:o(En,{[`${En}-${t}`]:t,[`${En}-${a}`]:a},e.className),children:e.children})};V.states=lw;V.options=rw;V.className=En;V.defaultOptions=qc;var Jk=V;import{jsx as nw}from"react/jsx-runtime";var iw="k-actionsheet-footer",jk={alignment:"stretched",orientation:"horizontal"},Wt=e=>{let{alignment:t=jk.alignment,orientation:a=jk.orientation,template:r,as:s=r?"div":V,...i}=e;return nw(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,iw),children:e.children})};import{jsx as ws,jsxs as pw}from"react/jsx-runtime";var Uk="k-searchbox",dw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],cw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},_c={showIcon:!0,icon:"search",size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},ze=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:A,disabled:g,showIcon:N=_c.showIcon,icon:C=_c.icon,...I}=e;return pw(E,{...I,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:A,disabled:g,className:o(e.className,Uk),children:[N&&ws(y,{className:"k-input-icon",icon:C}),ws(ne,{placeholder:a,value:t}),ws(U,{...e}),ws(J,{...e}),ws(ae,{...e})]})};ze.states=dw;ze.options=cw;ze.className=Uk;ze.defaultOptions=_c;import{jsx as uR}from"react/jsx-runtime";import{Fragment as qk,jsx as Wo,jsxs as $c}from"react/jsx-runtime";var _k="k-textbox",mw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],uw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},La={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},j=e=>{let{size:t=La.size,rounded:a=La.rounded,fillMode:r=La.fillMode,separators:s=La.separators,showClearButton:i=La.showClearButton,showValidationIcon:d=La.showValidationIcon,prefix:p,suffix:m,type:k,value:v,placeholder:A,hover:g,focus:N,valid:C,invalid:I,required:L,loading:Y,disabled:G,readonly:R,...W}=e;return $c(E,{...W,size:t,rounded:a,fillMode:r,hover:g,focus:N,valid:C,invalid:I,required:L,loading:Y,disabled:G,readonly:R,className:o(e.className,_k),children:[p&&$c(qk,{children:[Wo(te,{children:p}),s&&Wo(be,{})]}),Wo(ne,{placeholder:A,value:v,type:k}),d&&Wo(J,{valid:C,invalid:I,loading:Y,disabled:G}),Wo(U,{loading:Y,disabled:G}),i&&Wo(ae,{loading:Y,disabled:G,readonly:R,value:v}),m&&$c(qk,{children:[s&&Wo(be,{}),Wo(oe,{children:m})]})]})};j.states=mw;j.options=uw;j.className=_k;j.defaultOptions=La;import{jsx as AR}from"react/jsx-runtime";import{Fragment as MR,jsx as BR}from"react/jsx-runtime";import{Fragment as KR,jsx as GR}from"react/jsx-runtime";import{jsx as Qo,jsxs as ep}from"react/jsx-runtime";var tf="k-actionsheet-titlebar",kw={},re=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:v,...A}=e;return ep("div",{...A,className:o(e.className,tf),children:[ep("div",{className:"k-actionsheet-titlebar-group",children:[r&&Qo("div",{className:"k-actionsheet-actions",children:r}),!v&&ep("div",{className:"k-actionsheet-title",children:[t&&Qo("div",{className:"k-text-center",children:t}),a&&Qo("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),v&&Qo("div",{className:"k-actionsheet-title",children:v}),s&&Qo("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Qo("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Qo(j,{value:p,placeholder:m,size:k?"large":"medium"}):Qo(ze,{placeholder:"Filter",size:k?"large":"medium"})})]})};re.className=tf;re.defaultOptions=kw;import{jsx as tp,jsxs as xw}from"react/jsx-runtime";var op="k-actionsheet-view",fw=[],hw={},gw={},Ml=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===re&&tp(re,{adaptive:t,...s?.props}),m=i?.type===Wt&&tp(Wt,{...i?.props});return xw("div",{...d,className:o(e.className,op,{[`${op}-animated`]:a}),children:[p,tp("div",{className:"k-actionsheet-content",children:r}),m]})};Ml.states=fw;Ml.options=hw;Ml.className=op;Ml.defaultOptions=gw;import{jsx as Yn,jsxs as yw}from"react/jsx-runtime";var of="k-actionsheet",bw=[],vw={},Ts={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},de=e=>{let{side:t=Ts.side,fullscreen:a=Ts.fullscreen,adaptive:r=Ts.adaptive,overlay:s=Ts.overlay,template:i,children:d,header:p,footer:m,...k}=e;return yw("div",{className:"k-actionsheet-container",children:[s&&Yn("div",{className:"k-overlay"}),Yn(Oo,{animationStyle:{[`${a===!0?"top":t}`]:0,[`${a===!0?"width":null}`]:"100%",[`${a===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:Yn("div",{...k,className:o(e.className,of,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Yn(Ml,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};de.states=bw;de.options=vw;de.className=of;de.defaultOptions=Ts;import{jsx as sz}from"react/jsx-runtime";import{Fragment as Tw,jsx as As,jsxs as ap}from"react/jsx-runtime";var lp="k-actionsheet-item",ww=[l.hover,l.focus,l.selected,l.disabled],rp=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return ap("span",{...m,className:o(e.className,lp,x(lp,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&As(Tw,{children:ap("span",{className:"k-actionsheet-action",children:[t&&As("span",{className:"k-icon-wrap",children:As(y,{className:"k-actionsheet-item-icon",icon:t})}),ap("span",{className:"k-actionsheet-item-text",children:[a&&As("span",{className:"k-actionsheet-item-title",children:a}),r&&As("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};rp.states=ww;rp.className=lp;import{jsx as fz,jsxs as hz}from"react/jsx-runtime";import{jsx as vz}from"react/jsx-runtime";import{jsx as Az}from"react/jsx-runtime";import{jsx as Iz}from"react/jsx-runtime";import{jsx as Ll,jsxs as sp}from"react/jsx-runtime";var Ns="k-slider",Aw=[l.hover,l.focus,l.active,l.disabled,l.readonly],Nw={},Vo={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},Tt=e=>{let{type:t=Vo.type,orientation:a=Vo.orientation,readonly:r=Vo.readonly,disabled:s=Vo.disabled,handlePosition:i=Vo.handlePosition,showButtons:d=Vo.showButtons,showTicks:p=Vo.showTicks,hover:m,focus:k,active:v,trackStyle:A,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"),sp("div",{...N,className:o(Ns,e.className,x(Ns,{readonly:r,disabled:s}),{[`k-slider-${a}`]:a,"k-colorgradient-slider":t==="gradient"}),dir:g,children:[d&&Ll(c,{className:"k-button-decrease",rounded:"full",icon:I}),sp("div",{className:"k-slider-track-wrap",children:[p&&Ll("ul",{className:"k-reset k-slider-items",children:e.children}),sp("div",{className:"k-slider-track",style:A,children:[Ll("div",{className:"k-slider-selection"}),t==="range"&&Ll("span",{className:o("k-draghandle","k-draghandle-start",x(Ns,{hover:m,focus:k,active:v}))}),Ll("span",{className:o("k-draghandle",`k-draghandle-${i}`,x(Ns,{hover:m,focus:k,active:v}))})]})]}),d&&Ll(c,{className:"k-button-increase",rounded:"full",icon:C})]})};Tt.states=Aw;Tt.options=Nw;Tt.className=Ns;Tt.defaultOptions=Vo;import{jsx as lf}from"react/jsx-runtime";var rf="k-tick",Cw=[],Sw={},sf={label:!1},Re=e=>{let{style:t,label:a=sf.label,orientation:r,large:s,text:i,...d}=e;return lf("li",{...d,className:o(e.className,rf,{[`k-tick-${r}`]:r,"k-tick-large":s}),style:t,children:a&&lf("span",{className:"k-label",children:i})})};Re.states=Cw;Re.options=Sw;Re.className=rf;Re.defaultOptions=sf;import{Fragment as Iw,jsx as Mt,jsxs as Bw}from"react/jsx-runtime";var Pn=e=>Mt(Tt,{children:Bw(Iw,{children:[Mt(Re,{className:"k-first",label:!0,large:!0,text:"0"}),Mt(Re,{}),Mt(Re,{}),Mt(Re,{}),Mt(Re,{}),Mt(Re,{label:!0,large:!0,text:"5"}),Mt(Re,{}),Mt(Re,{}),Mt(Re,{}),Mt(Re,{}),Mt(Re,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as e0,jsx as $z,jsxs as t0}from"react/jsx-runtime";import{Fragment as s0,jsx as r0,jsxs as i0}from"react/jsx-runtime";import{Fragment as m0,jsx as p0,jsxs as u0}from"react/jsx-runtime";import{jsx as Mw}from"react/jsx-runtime";var ip=e=>Mw(Tt,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Lw}from"react/jsx-runtime";var np=e=>Lw(Tt,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as nf,jsxs as Pw}from"react/jsx-runtime";var df="k-spin-button",Ew=[],Yw={size:[n.small,n.medium,n.large],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},dp={size:n.medium,fillMode:b.solid},Xo=e=>{let{size:t=dp.size,fillMode:a=dp.fillMode,...r}=e;return Pw("span",{...r,className:o(df,e.className),children:[nf(c,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:a}),nf(c,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]})};Xo.states=Ew;Xo.options=Yw;Xo.className=df;Xo.defaultOptions=dp;import{Fragment as cf,jsx as Ao,jsxs as cp}from"react/jsx-runtime";var pf="k-numerictextbox",Gw=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],Kw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ea={showSpinButton:!0,showClearButton:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},me=e=>{let{size:t=Ea.size,rounded:a=Ea.rounded,fillMode:r=Ea.fillMode,separators:s=Ea.separators,showClearButton:i=Ea.showClearButton,showSpinButton:d=Ea.showSpinButton,prefix:p,suffix:m,value:k,placeholder:v,hover:A,focus:g,valid:N,invalid:C,required:I,loading:L,disabled:Y,readonly:G,...R}=e;return cp(E,{...R,size:t,rounded:a,fillMode:r,hover:A,focus:g,valid:N,invalid:C,required:I,loading:L,disabled:Y,readonly:G,className:o(e.className,pf),children:[p&&cp(cf,{children:[Ao(te,{children:p}),s&&Ao(be,{})]}),Ao(ne,{placeholder:v,value:k}),Ao(J,{valid:N,invalid:C,loading:L,disabled:Y}),Ao(U,{loading:L,disabled:Y}),i&&Ao(ae,{loading:L,disabled:Y,readonly:G,value:k}),m&&cp(cf,{children:[s&&Ao(be,{}),Ao(oe,{children:m})]}),d&&Ao(Xo,{className:"k-input-spinner",size:t,fillMode:r})]})};me.states=Gw;me.options=Kw;me.className=pf;me.defaultOptions=Ea;import{jsx as W0}from"react/jsx-runtime";import{jsx as Fw}from"react/jsx-runtime";var Dw="k-no-data",Cs=e=>Fw("span",{className:o(Dw,e.className),children:e.children});import{jsx as El,jsxs as uf}from"react/jsx-runtime";var pp="k-list",Rw=[],zw={size:[n.small,n.medium,n.large]},kf={size:n.medium},X=e=>{let{size:t=kf.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:d,...p}=e,m,k,v,A,g=[];return r?r.map((N,C)=>{N.type===ve?(N.props.root===!0?(m=N.props.label,N.props.children.map((I,L)=>{g.push(El(K,{...I.props},`optChild-${L}-${new Date().getTime()}`))})):N.props.children.forEach((I,L)=>{let Y="";L===0&&(Y=N.props.label),g.push(El(K,{className:L===0?"k-first":"",...I.props,groupLabel:Y},`groupLabel-${L}-${new Date().getTime()}`))}),k=El(ve,{label:m,virtualization:a,children:g})):N.type===K&&(g.push(El(K,{...N.props},`${N.type}-${C}`)),v=El(Yl,{virtualization:a,children:g}),d&&(A=uf(Cs,{className:"k-sr-only",children:[g.length," items found."]})))}):A=El(Cs,{children:"No data found."}),uf("div",{...p,className:o(e.className,pp,S(pp,{size:t}),{"k-virtual-list":a}),children:[s,i,k,v,A]})};X.states=Rw;X.options=zw;X.className=pp;X.defaultOptions=kf;import{jsx as Ya,jsxs as Ww}from"react/jsx-runtime";var mp="k-list",Hw=[],Ow={size:[n.small,n.medium,n.large]},ff={size:n.medium},Pa=e=>{let{size:t=ff.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,v)=>{k.type===ve?(k.props.root===!0?(i=k.props.label,k.props.children.map((A,g)=>{m.push(Ya(K,{...A.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Ya(hf,{...k.props,children:k.props.label},`listChild-${v}`)),k.props.children.map((A,g)=>{m.push(Ya(K,{...A.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Ya(ve,{label:i,virtualization:a,children:m})):k.type===K&&(m.push(Ya(K,{...k.props},`${k.type}-${v}`)),p=Ya(Yl,{virtualization:a,children:m}))}):p=Ya(Cs,{children:"No data found."}),Ww("div",{...s,className:o(e.className,mp,S(mp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Pa.states=Hw;Pa.options=Ow;Pa.className=mp;Pa.defaultOptions=ff;import{jsx as gf}from"react/jsx-runtime";var Gn="k-checkbox",Qw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],Vw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full]},up={size:n.medium,rounded:h.medium},Ve=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:v=up.size,rounded:A=up.rounded,...g}=e;return gf("span",{className:"k-checkbox-wrap",children:gf("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Gn,S(Gn,{size:v,rounded:A}),x(Gn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};Ve.states=Qw;Ve.options=Vw;Ve.className=Gn;Ve.defaultOptions=up;import{jsx as Jw}from"react/jsx-runtime";var xf="k-checkbox-list",Xw=[],Zw={},bf={layout:"vertical"},Pl=e=>{let{layout:t=bf.layout,...a}=e;return Jw("ul",{...a,className:o(e.className,xf,{[`k-list-${t}`]:t}),children:e.children})};Pl.states=Xw;Pl.options=Zw;Pl.className=xf;Pl.defaultOptions=bf;import{jsx as _w}from"react/jsx-runtime";var vf="k-checkbox-list-item",jw=[],Uw={},qw={},Gl=e=>{let{...t}=e;return _w("li",{...t,className:o(e.className,vf),children:e.children})};Gl.states=jw;Gl.options=Uw;Gl.className=vf;Gl.defaultOptions=qw;import{Fragment as xH,jsx as gH,jsxs as bH}from"react/jsx-runtime";import{Fragment as AH,jsx as TH,jsxs as NH}from"react/jsx-runtime";import{Fragment as MH,jsx as BH,jsxs as LH}from"react/jsx-runtime";import{Fragment as KH,jsx as GH,jsxs as DH}from"react/jsx-runtime";import{jsx as HH}from"react/jsx-runtime";import{jsx as VH}from"react/jsx-runtime";import{jsx as Kn,jsxs as oT}from"react/jsx-runtime";var fp="k-list-item",$w=[l.hover,l.focus,l.selected,l.disabled],eT={},tT={},K=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:k,selected:v,disabled:A,...g}=e,N=t||e.children;return oT("li",{...g,className:o(e.className,r?"k-list-group-item":fp,x(fp,{hover:m,focus:k,disabled:A,selected:v})),children:[d&&Kn(Ve,{checked:p}),s&&Kn(y,{icon:i}),Kn("span",{className:"k-list-item-text",children:N}),a&&a!==""&&Kn("div",{className:"k-list-item-group-label",children:a})]})};K.states=$w;K.options=eT;K.className=fp;K.defaultOptions=tT;import{jsx as hp,jsxs as lT}from"react/jsx-runtime";var aT="k-list-content",Yl=e=>{let{virtualization:t,...a}=e;return lT("div",{...a,className:o(aT,e.className),children:[hp("ul",{className:o("k-list-ul"),children:e.children}),t&&hp("div",{className:"k-height-container",children:hp("div",{})})]})};import{jsx as yf}from"react/jsx-runtime";var rT="k-list-group-sticky-header",wf=e=>yf("div",{className:o(rT,e.className),children:yf("div",{className:"k-list-header-text",children:e.children})});import{Fragment as sT,jsx as Tf,jsxs as iT}from"react/jsx-runtime";var ve=e=>{let{virtualization:t,label:a}=e;return iT(sT,{children:[a&&Tf(wf,{children:a}),e.children&&Tf(Yl,{virtualization:t,children:e.children})]})};import{jsx as Af}from"react/jsx-runtime";var nT="k-list-group-item",hf=e=>Af("li",{className:o(nT,e.className),children:Af("span",{className:"k-list-item-text",children:e.children})});import{jsx as mT}from"react/jsx-runtime";var gp="k-list-optionlabel",dT=[l.hover,l.focus,l.selected,l.disabled],cT={},pT={},Dn=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return mT("div",{...d,className:o(gp,x(gp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Dn.states=dT;Dn.options=cT;Dn.className=gp;Dn.defaultOptions=pT;import{jsx as hT}from"react/jsx-runtime";var xp="k-list-custom-value",uT=[l.hover,l.focus,l.selected,l.disabled],kT={},fT={},_e=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return hT("div",{...d,className:o(xp,x(xp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};_e.states=uT;_e.options=kT;_e.className=xp;_e.defaultOptions=fT;import{jsx as I8}from"react/jsx-runtime";import{jsx as E8}from"react/jsx-runtime";import{jsx as K8,jsxs as D8}from"react/jsx-runtime";import{jsx as H8,jsxs as O8}from"react/jsx-runtime";import{jsx as X8}from"react/jsx-runtime";import{jsx as U8,jsxs as q8}from"react/jsx-runtime";import{jsx as tO,jsxs as oO}from"react/jsx-runtime";import{Fragment as bT,jsx as pt,jsxs as bp}from"react/jsx-runtime";var Nf="k-dropdownlist",gT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],xT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Kl={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:h.medium,fillMode:b.solid},se=e=>{let{size:t=Kl.size,rounded:a=Kl.rounded,fillMode:r=Kl.fillMode,arrowIconName:s=Kl.arrowIconName,showValue:i=Kl.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:v,hover:A,focus:g,valid:N,invalid:C,required:I,loading:L,disabled:Y,readonly:G,popup:R,opened:W,adaptive:xe,adaptiveSettings:Fe,adaptiveTitle:at,adaptiveSubtitle:Ht,adaptiveFilter:Ia,...Bl}=e;return bp(bT,{children:[bp(wt,{...Bl,size:t,rounded:a,fillMode:r,hover:A,focus:g,valid:N,invalid:C,required:I,loading:L,disabled:Y,readonly:G,className:o(e.className,Nf,{"k-icon-picker":!i&&d}),children:[pt(te,{children:p}),pt(To,{placeholder:v,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})]}),W&&R&&pt(z,{className:"k-list-container k-dropdownlist-popup",children:R}),xe&&pt(de,{adaptive:!0,...Fe,header:pt(re,{actionsEnd:pt(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ia,inputValue:k,inputPlaceholder:v,title:at,subtitle:Ht}),children:pt("div",{className:"k-list-container",children:bp(X,{size:"large",children:[pt(K,{text:"List item"}),pt(K,{text:"List item"}),pt(K,{text:"List item"})]})})})]})};se.states=gT;se.options=xT;se.className=Nf;se.defaultOptions=Kl;import{jsx as EO}from"react/jsx-runtime";import{jsx as DO,jsxs as FO}from"react/jsx-runtime";import{Fragment as XO,jsx as QO,jsxs as VO}from"react/jsx-runtime";import{jsx as UO}from"react/jsx-runtime";import{jsx as tW,jsxs as oW}from"react/jsx-runtime";import{jsx as iW,jsxs as nW}from"react/jsx-runtime";import{Fragment as hW,jsx as kW,jsxs as fW}from"react/jsx-runtime";import{Fragment as AW,jsx as wW,jsxs as TW}from"react/jsx-runtime";import{Fragment as zW,jsx as RW}from"react/jsx-runtime";import{Fragment as ZW,jsx as XW}from"react/jsx-runtime";import{Fragment as Ss,jsx as _,jsxs as Be}from"react/jsx-runtime";var Cf="k-colorgradient-inputs",vT=[],yT={size:[n.small,n.medium,n.large]},Sf={mode:"rgba",size:n.medium},Dl=e=>{let{mode:t=Sf.mode,size:a,...r}=e;return Be("div",{...r,className:o(Cf,"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(Ss,{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(Ss,{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(Ss,{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(Ss,{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"&&_(Ss,{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"})]})})]})};Dl.states=vT;Dl.options=yT;Dl.className=Cf;Dl.defaultOptions=Sf;import{jsx as Ka,jsxs as Da}from"react/jsx-runtime";var If="k-colorgradient-color-contrast",wT=[],TT={},AT={},Fl=()=>Da("div",{className:o(If,"k-vbox"),children:[Da("div",{className:"k-contrast-ratio",children:[Ka("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Da("span",{className:"k-contrast-validation !k-text-success",children:[Ka(y,{icon:"check"}),Ka(y,{icon:"check"})]})]}),Da("div",{children:[Ka("span",{children:"AA: 4.5"}),Da("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ka(y,{icon:"check"})]})]}),Da("div",{children:[Ka("span",{children:"AAA: 7.0"}),Da("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ka(y,{icon:"x"})]})]})]});Fl.states=wT;Fl.options=TT;Fl.className=If;Fl.defaultOptions=AT;import{jsx as Lt,jsxs as Is}from"react/jsx-runtime";var Fn="k-colorgradient",NT=[l.hover,l.focus,l.readonly,l.disabled],CT={size:[n.small,n.medium,n.large]},Qt={size:n.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},Zo=e=>{let{size:t=Qt.size,mode:a=Qt.mode,readonly:r=Qt.readonly,disabled:s=Qt.disabled,gradientStyle:i=Qt.gradientStyle,dragHandleStyle:d=Qt.dragHandleStyle,alphaStyle:p=Qt.alphaStyle,alphaStyleHorizontal:m=Qt.alphaStyleHorizontal,contrast:k=Qt.contrast,dir:v,hover:A,focus:g,hoverHandle:N,focusHandle:C,canvasOrientation:I=Qt.canvasOrientation,...L}=e;return Is("div",{...L,className:o(e.className,Fn,S(Fn,{size:t}),x(Fn,{hover:A,focus:g,readonly:r,disabled:s})),dir:v,children:[!I||I==="horizontal"&&Is("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})})}),Is("div",{className:"k-hsv-controls k-hstack",children:[Lt(np,{className:"k-hue-slider",hover:N,focus:C}),a!=="rgb"&&a!=="hsv"&&Lt(np,{className:"k-alpha-slider",hover:N,focus:C,trackStyle:p})]})]}),I==="vertical"&&Is("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})})}),Is("div",{className:"k-hsv-controls k-vstack",children:[Lt(ip,{className:"k-hue-slider",hover:N,focus:C}),a!=="rgb"&&a!=="hsv"&&Lt(ip,{className:"k-alpha-slider",hover:N,focus:C,trackStyle:m})]})]}),Lt(Dl,{mode:e.mode,size:t}),k&&Lt(Fl,{})]})};Zo.states=NT;Zo.options=CT;Zo.className=Fn;Zo.defaultOptions=Qt;import{jsx as xQ}from"react/jsx-runtime";import{jsx as wQ}from"react/jsx-runtime";import{jsx as ST}from"react/jsx-runtime";var Bf=e=>ST("tr",{children:e.children});import{jsx as MT}from"react/jsx-runtime";var vp="k-colorpalette-tile",IT=[l.hover,l.focus,l.selected],BT={},Bs=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 MT("td",{...d,className:o(e.className,vp,x(vp,{hover:r,focus:s,selected:i})),style:p})};Bs.states=IT;Bs.options=BT;Bs.className=vp;import{jsx as Ms}from"react/jsx-runtime";var Rn="k-colorpalette",LT=[l.disabled],ET={size:[n.small,n.medium,n.large]},yp={columns:10,size:n.medium},Rl=e=>{let{size:t=yp.size,palette:a,columns:r=yp.columns,tileSize:s,disabled:i,...d}=e,p=[];if(a){let m=r||a.columns,k=a.colors?a.colors:a;Array.isArray(k)&&Array.from({length:Math.ceil(k.length/m)},(v,A)=>{let g=[];k.slice(A*m,(A+1)*m).map((C,I)=>{g.push(Ms(Bs,{color:C,tileSize:s},I))});let N=Ms(Bf,{children:g},A);p.push(N)})}return Ms("div",{...d,className:o(e.className,Rn,x(Rn,{disabled:i}),S(Rn,{size:t})),children:Ms("table",{className:"k-colorpalette-table",children:Ms("tbody",{children:p.length>0?p:e.children})})})};Rl.states=LT;Rl.options=ET;Rl.className=Rn;Rl.defaultOptions=yp;var wp={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4","#ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}};import{jsx as VQ}from"react/jsx-runtime";import{jsx as Et,jsxs as zl}from"react/jsx-runtime";var zn="k-coloreditor",YT=[l.focus],PT={size:[n.small,n.medium,n.large]},Hl={size:n.medium,view:"gradient",palette:wp.office,actionButtons:!0,canvasOrientation:"horizontal"},lo=e=>{let{size:t=Hl.size,view:a=Hl.view,palette:r=Hl.palette,color:s,currentColor:i,focus:d,focusView:p,dir:m,group:k,actionButtons:v=Hl.actionButtons,canvasOrientation:A=Hl.canvasOrientation,...g}=e;return zl("div",{...g,className:o(e.className,"k-flatcolorpicker",zn,S(zn,{size:t}),x(zn,{focus:d})),dir:m,children:[zl("div",{className:"k-coloreditor-header k-hstack",children:[Et("div",{className:"k-coloreditor-header-actions k-hstack",children:k&&zl(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"}),zl("div",{className:"k-coloreditor-header-actions k-hstack",children:[Et(c,{fillMode:"flat",icon:"droplet-slash",size:t}),zl("div",{className:"k-coloreditor-preview k-vstack",children:[Et(Ho,{className:"k-coloreditor-preview-color",color:s}),Et(Ho,{className:"k-coloreditor-current-color",color:i})]})]})]}),Et("div",{className:"k-coloreditor-views k-vstack",children:a==="gradient"?Et(Zo,{focus:p,size:t,canvasOrientation:A}):Et(Rl,{palette:r,size:t})}),v&&zl(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"})]})]})};lo.states=YT;lo.options=PT;lo.className=zn;lo.defaultOptions=Hl;import{jsx as cV}from"react/jsx-runtime";import{jsx as kV}from"react/jsx-runtime";import{jsx as xV}from"react/jsx-runtime";import{jsx as wV}from"react/jsx-runtime";import{Fragment as DT,jsx as Yt,jsxs as Ap}from"react/jsx-runtime";var Mf="k-colorpicker",GT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],KT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ls={arrowIconName:"caret-alt-down",size:wt.defaultOptions.size,rounded:wt.defaultOptions.rounded,fillMode:wt.defaultOptions.fillMode},Pt=e=>{let{size:t=Ls.size,rounded:a=Ls.rounded,fillMode:r=Ls.fillMode,arrowIconName:s=Ls.arrowIconName,prefix:i,suffix:d,value:p,placeholder:m,hover:k,focus:v,valid:A,invalid:g,required:N,disabled:C,valueIconName:I,popup:L,opened:Y,adaptive:G,adaptiveSettings:R,adaptiveTitle:W,adaptiveSubtitle:xe,...Fe}=e;return Ap(DT,{children:[Ap(wt,{...Fe,size:t,rounded:a,fillMode:r,hover:k,focus:v,valid:A,invalid:g,required: