UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 295 kB
var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>o({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),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{jsx as Rv}from"react/jsx-runtime";var ks="k-button-group",Dv=[l.disabled],Fv={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},gk={fillMode:b.solid},P=e=>{let{fillMode:t=gk.fillMode,disabled:a,stretched:r,...s}=e;return Rv("div",{...s,className:o(e.className,ks,C(ks,{fillMode:t}),x(ks,{disabled:a}),{[`${ks}-stretched`]:r}),children:e.children})};P.states=Dv;P.options=Fv;P.className=ks;P.defaultOptions=gk;import{Fragment as Wv,jsx as xk}from"react/jsx-runtime";var Oc="k-icon k-font-icon",zv=[],Hv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Ov={},fs=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?xk("span",{...d,className:o(e.className,Oc,C(Oc,{size:t}),{[`k-i-${r}`]:r,[`k-color-${a}`]:a,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"})}):xk(Wv,{})};fs.states=zv;fs.options=Hv;fs.className=Oc;fs.defaultOptions=Ov;var bk=fs;import{Fragment as Xv,jsx as An}from"react/jsx-runtime";var Wc="k-icon k-svg-icon",Qv=[],Vv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},vk={viewBox:"0 0 24 24"},hs=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=vk.viewBox,icon:d,...p}=e;if(!d)return An(Xv,{});d==="none"&&{...p,className:o(e.className,Wc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return An("span",{...p,className:o(e.className,Wc,C("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${a}`]:a,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),children:An("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:i,dangerouslySetInnerHTML:typeof d=="object"?{__html:d.content}:void 0,children:d?void 0:e.children})})};hs.states=Qv;hs.options=Vv;hs.className=Wc;hs.defaultOptions=vk;var Qc=hs;import*as yk from"@progress/kendo-svg-icons";import{Fragment as wk,jsx as gs}from"react/jsx-runtime";var Zv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Jv=[],jv={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(wk,{});if(s==="svg"){if(r==="none")return gs(Qc,{...m,icon:r,size:t});let k=Zv(`${r}-icon`);return yk[k]?gs(Qc,{...m,icon:yk[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):gs(wk,{})}return gs(bk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};y.states=Jv;y.options=jv;y.defaultOptions=Vc;var Xc=y;import{Fragment as _v,jsx as xs,jsxs as Tk}from"react/jsx-runtime";var Nn="k-button",Uv=[l.hover,l.focus,l.active,l.selected,l.disabled],qv={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:T,icon:g,text:A,iconClassName:N,...S}=e,M=g!==void 0,Y=e.children!==void 0;return Tk("button",{...S,className:o(e.className,Nn,C(Nn,{size:t,rounded:a,fillMode:r,themeColor:s}),x(Nn,{hover:p,focus:m,active:k,disabled:T,selected:v}),{"k-icon-button":!A&&!Y&&M}),children:[g&&xs(y,{className:o(N,"k-button-icon"),icon:g}),A?Tk(_v,{children:[A&&xs("span",{className:"k-button-text",children:A}),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=Uv;c.options=qv;c.className=Nn;c.defaultOptions=Ba;import{jsx as $v}from"react/jsx-runtime";var Je=e=>$v(c,{icon:"folder",...e,children:void 0});import{jsx as ey}from"react/jsx-runtime";var Ht=e=>ey(c,{icon:"folder",children:"Button",...e});import{jsx as aK}from"react/jsx-runtime";import{Fragment as kK,jsx as uK,jsxs as fK}from"react/jsx-runtime";import{Fragment as yK,jsx as vK,jsxs as wK}from"react/jsx-runtime";import{Fragment as IK,jsx as SK,jsxs as BK}from"react/jsx-runtime";import{Fragment as GK,jsx as PK,jsxs as KK}from"react/jsx-runtime";import{Fragment as jK,jsx as ZK,jsxs as JK}from"react/jsx-runtime";import{jsx as ly}from"react/jsx-runtime";var Ak="k-scheduler-layout",ty=[],oy={},ay={},bs=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})};bs.states=ty;bs.options=oy;bs.className=Ak;bs.defaultOptions=ay;var Nk=bs;import{jsx as ny,jsxs as dy}from"react/jsx-runtime";var Ck="k-scheduler",ry=[],sy={},iy={},Se=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]})};Se.states=ry;Se.options=sy;Se.className=Ck;Se.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 mD}from"react/jsx-runtime";import{jsx as ky}from"react/jsx-runtime";var uy="k-scheduler-table",wo=e=>ky("table",{...e,className:o(uy,e.className),children:e.children});import{jsx as Ik}from"react/jsx-runtime";var Bk="k-scheduler-cell",fy=[],hy={},gy={},E=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})};E.states=fy;E.options=hy;E.defaultOptions=gy;E.className=Bk;import{jsx as wD}from"react/jsx-runtime";import{jsx as CD}from"react/jsx-runtime";import{jsx as vy}from"react/jsx-runtime";var Sn="k-input",xy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],by={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},L=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=In.size,rounded:k=In.rounded,fillMode:v=In.fillMode,...T}=e;return vy("span",{...T,className:o(e.className,Sn,C(Sn,{size:m,rounded:k,fillMode:v}),x(Sn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};L.states=xy;L.options=by;L.className=Sn;L.defaultOptions=In;import{jsx as Ty}from"react/jsx-runtime";var Bn="k-picker",yy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],wy={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,...T}=e;return Ty("span",{...T,className:o(e.className,Bn,C(Bn,{size:m,rounded:k,fillMode:v}),x(Bn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};wt.states=yy;wt.options=wy;wt.className=Bn;wt.defaultOptions=Mn;import{Fragment as Cy,jsx as Zc}from"react/jsx-runtime";var Mk="k-clear-value",Ay=[l.disabled,l.loading,l.readonly],Ny={},ae=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Zc(Cy,{}):Zc("span",{className:o(e.className,Mk),children:Zc(y,{icon:"x"})})};ae.states=Ay;ae.options=Ny;ae.className=Mk;import{jsx as By}from"react/jsx-runtime";var Jc="k-input-inner",Sy=[],Iy={},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 By("input",{...i,type:a,className:o(e.className,Jc,C(Jc,e)),placeholder:r,autoComplete:s,defaultValue:t})};ne.states=Sy;ne.options=Iy;ne.className=Jc;import{jsx as Lk,jsxs as Ey}from"react/jsx-runtime";var jc="k-input-inner",My=[],Ly={},To=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return Ey("span",{...d,className:o(e.className,jc,C(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=My;To.options=Ly;To.className=jc;import{jsx as Gy}from"react/jsx-runtime";var Uc="k-input-inner",Yy=[],Py={},Ek={value:"",placeholder:""},vs=e=>{let{value:t=Ek.value,placeholder:a=Ek.placeholder,rows:r,...s}=e;return Gy("textarea",{...s,className:o(e.className,Uc,C(Uc,e)),placeholder:a,rows:r,defaultValue:t})};vs.states=Yy;vs.options=Py;vs.className=Uc;import{Fragment as Dy,jsx as Yk}from"react/jsx-runtime";var Pk="k-input-loading-icon",Ky=[l.disabled,l.loading],U=e=>{let{disabled:t,loading:a}=e;return t||!a?Yk(Dy,{}):Yk("span",{className:o(e.className,Pk,"k-icon k-i-loading")})};U.states=Ky;U.className=Pk;import{Fragment as zy,jsx as Gk}from"react/jsx-runtime";var Kk="k-input-validation-icon",Fy=[l.valid,l.invalid,l.disabled,l.loading],Ry={},J=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Gk(zy,{}):Gk(y,{className:o(Kk),icon:i})};J.states=Fy;J.options=Ry;J.className=Kk;import{Fragment as Wy,jsx as Dk}from"react/jsx-runtime";var Hy="k-input-prefix",Oy={direction:"horizontal"},te=e=>{let{direction:t=Oy.direction,...a}=e;return e.children?Dk("span",{...a,className:o(Hy,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Dk(Wy,{})};import{Fragment as Xy,jsx as Fk}from"react/jsx-runtime";var Qy="k-input-suffix",Vy={direction:"horizontal"},oe=e=>{let{direction:t=Vy.direction,...a}=e;return e.children?Fk("span",{...a,className:o(Qy,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Fk(Xy,{})};import{jsx as dF}from"react/jsx-runtime";import{jsx as uF}from"react/jsx-runtime";import{jsx as Jy}from"react/jsx-runtime";var Rk="k-input-separator",Zy={direction:"vertical"},be=e=>{let{direction:t=Zy.direction,...a}=e;return Jy("span",{...a,className:o(Rk,e.className,{[`${Rk}-${t}`]:t})})};import{jsx as zk,jsxs as qy}from"react/jsx-runtime";var Hk="k-color-preview",jy=[],Uy={},Ho=e=>{let{color:t,iconName:a,...r}=e;return qy("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=jy;Ho.options=Uy;Ho.className=Hk;import{jsx as Ok}from"react/jsx-runtime";var Wk="k-animation-container",_y=[],$y={},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=_y;Oo.options=$y;Oo.className=Wk;Oo.defaultOptions=Qk;import{jsx as Vk}from"react/jsx-runtime";var Xk="k-popup",ew=[],tw={},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=ew;z.options=tw;z.className=Xk;z.defaultOptions=Zk;import{jsx as lw}from"react/jsx-runtime";var En="k-actions",ow=[],aw={},qc={alignment:"start",orientation:"horizontal"},V=e=>{let{alignment:t=qc.alignment,orientation:a=qc.orientation,...r}=e;return lw("div",{...r,className:o(En,{[`${En}-${t}`]:t,[`${En}-${a}`]:a},e.className),children:e.children})};V.states=ow;V.options=aw;V.className=En;V.defaultOptions=qc;var Jk=V;import{jsx as sw}from"react/jsx-runtime";var rw="k-actionsheet-footer",jk={alignment:"stretched",orientation:"horizontal"},Ot=e=>{let{alignment:t=jk.alignment,orientation:a=jk.orientation,template:r,as:s=r?"div":V,...i}=e;return sw(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,rw),children:e.children})};import{jsx as ys,jsxs as dw}from"react/jsx-runtime";var Uk="k-searchbox",iw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],nw={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:L.defaultOptions.size,rounded:L.defaultOptions.rounded,fillMode:L.defaultOptions.fillMode},Re=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:T,disabled:g,showIcon:A=_c.showIcon,icon:N=_c.icon,...S}=e;return dw(L,{...S,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:v,loading:T,disabled:g,className:o(e.className,Uk),children:[A&&ys(y,{className:"k-input-icon",icon:N}),ys(ne,{placeholder:a,value:t}),ys(U,{...e}),ys(J,{...e}),ys(ae,{...e})]})};Re.states=iw;Re.options=nw;Re.className=Uk;Re.defaultOptions=_c;import{jsx as mR}from"react/jsx-runtime";import{Fragment as qk,jsx as Wo,jsxs as $c}from"react/jsx-runtime";var _k="k-textbox",cw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],pw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ma={showClearButton:!0,showValidationIcon:!0,size:L.defaultOptions.size,rounded:L.defaultOptions.rounded,fillMode:L.defaultOptions.fillMode,separators:!0},j=e=>{let{size:t=Ma.size,rounded:a=Ma.rounded,fillMode:r=Ma.fillMode,separators:s=Ma.separators,showClearButton:i=Ma.showClearButton,showValidationIcon:d=Ma.showValidationIcon,prefix:p,suffix:m,type:k,value:v,placeholder:T,hover:g,focus:A,valid:N,invalid:S,required:M,loading:Y,disabled:G,readonly:R,...W}=e;return $c(L,{...W,size:t,rounded:a,fillMode:r,hover:g,focus:A,valid:N,invalid:S,required:M,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:T,value:v,type:k}),d&&Wo(J,{valid:N,invalid:S,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=cw;j.options=pw;j.className=_k;j.defaultOptions=Ma;import{jsx as TR}from"react/jsx-runtime";import{Fragment as BR,jsx as IR}from"react/jsx-runtime";import{Fragment as GR,jsx as PR}from"react/jsx-runtime";import{jsx as Qo,jsxs as ep}from"react/jsx-runtime";var tf="k-actionsheet-titlebar",mw={},re=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:v,...T}=e;return ep("div",{...T,className:o(e.className,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(Re,{placeholder:"Filter",size:k?"large":"medium"})})]})};re.className=tf;re.defaultOptions=mw;import{jsx as tp,jsxs as hw}from"react/jsx-runtime";var op="k-actionsheet-view",uw=[],kw={},fw={},Bl=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===Ot&&tp(Ot,{...i?.props});return hw("div",{...d,className:o(e.className,op,{[`${op}-animated`]:a}),children:[p,tp("div",{className:"k-actionsheet-content",children:r}),m]})};Bl.states=uw;Bl.options=kw;Bl.className=op;Bl.defaultOptions=fw;import{jsx as Yn,jsxs as bw}from"react/jsx-runtime";var of="k-actionsheet",gw=[],xw={},ws={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},de=e=>{let{side:t=ws.side,fullscreen:a=ws.fullscreen,adaptive:r=ws.adaptive,overlay:s=ws.overlay,template:i,children:d,header:p,footer:m,...k}=e;return bw("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(Bl,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};de.states=gw;de.options=xw;de.className=of;de.defaultOptions=ws;import{jsx as rz}from"react/jsx-runtime";import{Fragment as yw,jsx as Ts,jsxs as ap}from"react/jsx-runtime";var lp="k-actionsheet-item",vw=[l.hover,l.focus,l.selected,l.disabled],rp=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return ap("span",{...m,className:o(e.className,lp,x(lp,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&Ts(yw,{children:ap("span",{className:"k-actionsheet-action",children:[t&&Ts("span",{className:"k-icon-wrap",children:Ts(y,{className:"k-actionsheet-item-icon",icon:t})}),ap("span",{className:"k-actionsheet-item-text",children:[a&&Ts("span",{className:"k-actionsheet-item-title",children:a}),r&&Ts("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};rp.states=vw;rp.className=lp;import{jsx as kz,jsxs as fz}from"react/jsx-runtime";import{jsx as bz}from"react/jsx-runtime";import{jsx as Tz}from"react/jsx-runtime";import{jsx as Sz}from"react/jsx-runtime";import{jsx as Ml,jsxs as sp}from"react/jsx-runtime";var As="k-slider",ww=[l.hover,l.focus,l.active,l.disabled,l.readonly],Tw={},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:T,dir:g,...A}=e,N,S;return a==="horizontal"?(N=g==="rtl"?"caret-alt-left":"caret-alt-right",S=g==="rtl"?"caret-alt-right":"caret-alt-left"):a==="vertical"&&(N="caret-alt-up",S="caret-alt-down"),sp("div",{...A,className:o(As,e.className,x(As,{readonly:r,disabled:s}),{[`k-slider-${a}`]:a,"k-colorgradient-slider":t==="gradient"}),dir:g,children:[d&&Ml(c,{className:"k-button-decrease",rounded:"full",icon:S}),sp("div",{className:"k-slider-track-wrap",children:[p&&Ml("ul",{className:"k-reset k-slider-items",children:e.children}),sp("div",{className:"k-slider-track",style:T,children:[Ml("div",{className:"k-slider-selection"}),t==="range"&&Ml("span",{className:o("k-draghandle","k-draghandle-start",x(As,{hover:m,focus:k,active:v}))}),Ml("span",{className:o("k-draghandle",`k-draghandle-${i}`,x(As,{hover:m,focus:k,active:v}))})]})]}),d&&Ml(c,{className:"k-button-increase",rounded:"full",icon:N})]})};Tt.states=ww;Tt.options=Tw;Tt.className=As;Tt.defaultOptions=Vo;import{jsx as lf}from"react/jsx-runtime";var rf="k-tick",Aw=[],Nw={},sf={label:!1},Fe=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})})};Fe.states=Aw;Fe.options=Nw;Fe.className=rf;Fe.defaultOptions=sf;import{Fragment as Cw,jsx as Bt,jsxs as Sw}from"react/jsx-runtime";var Pn=e=>Bt(Tt,{children:Sw(Cw,{children:[Bt(Fe,{className:"k-first",label:!0,large:!0,text:"0"}),Bt(Fe,{}),Bt(Fe,{}),Bt(Fe,{}),Bt(Fe,{}),Bt(Fe,{label:!0,large:!0,text:"5"}),Bt(Fe,{}),Bt(Fe,{}),Bt(Fe,{}),Bt(Fe,{}),Bt(Fe,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as $z,jsx as _z,jsxs as e0}from"react/jsx-runtime";import{Fragment as r0,jsx as l0,jsxs as s0}from"react/jsx-runtime";import{Fragment as p0,jsx as c0,jsxs as m0}from"react/jsx-runtime";import{jsx as Iw}from"react/jsx-runtime";var ip=e=>Iw(Tt,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Bw}from"react/jsx-runtime";var np=e=>Bw(Tt,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as nf,jsxs as Ew}from"react/jsx-runtime";var df="k-spin-button",Mw=[],Lw={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 Ew("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=Mw;Xo.options=Lw;Xo.className=df;Xo.defaultOptions=dp;import{Fragment as cf,jsx as Ao,jsxs as cp}from"react/jsx-runtime";var pf="k-numerictextbox",Yw=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],Pw={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},La={showSpinButton:!0,showClearButton:!0,size:L.defaultOptions.size,rounded:L.defaultOptions.rounded,fillMode:L.defaultOptions.fillMode,separators:!0},me=e=>{let{size:t=La.size,rounded:a=La.rounded,fillMode:r=La.fillMode,separators:s=La.separators,showClearButton:i=La.showClearButton,showSpinButton:d=La.showSpinButton,prefix:p,suffix:m,value:k,placeholder:v,hover:T,focus:g,valid:A,invalid:N,required:S,loading:M,disabled:Y,readonly:G,...R}=e;return cp(L,{...R,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:S,loading:M,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:A,invalid:N,loading:M,disabled:Y}),Ao(U,{loading:M,disabled:Y}),i&&Ao(ae,{loading:M,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=Yw;me.options=Pw;me.className=pf;me.defaultOptions=La;import{jsx as O0}from"react/jsx-runtime";import{jsx as Kw}from"react/jsx-runtime";var Gw="k-no-data",Ns=e=>Kw("span",{className:o(Gw,e.className),children:e.children});import{jsx as Ll,jsxs as uf}from"react/jsx-runtime";var pp="k-list",Dw=[],Fw={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,T,g=[];return r?r.map((A,N)=>{A.type===ve?(A.props.root===!0?(m=A.props.label,A.props.children.map((S,M)=>{g.push(Ll(K,{...S.props},`optChild-${M}-${new Date().getTime()}`))})):A.props.children.forEach((S,M)=>{let Y="";M===0&&(Y=A.props.label),g.push(Ll(K,{className:M===0?"k-first":"",...S.props,groupLabel:Y},`groupLabel-${M}-${new Date().getTime()}`))}),k=Ll(ve,{label:m,virtualization:a,children:g})):A.type===K&&(g.push(Ll(K,{...A.props},`${A.type}-${N}`)),v=Ll(El,{virtualization:a,children:g}),d&&(T=uf(Ns,{className:"k-sr-only",children:[g.length," items found."]})))}):T=Ll(Ns,{children:"No data found."}),uf("div",{...p,className:o(e.className,pp,C(pp,{size:t}),{"k-virtual-list":a}),children:[s,i,k,v,T]})};X.states=Dw;X.options=Fw;X.className=pp;X.defaultOptions=kf;import{jsx as Ea,jsxs as Hw}from"react/jsx-runtime";var mp="k-list",Rw=[],zw={size:[n.small,n.medium,n.large]},ff={size:n.medium},Ya=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((T,g)=>{m.push(Ea(K,{...T.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Ea(hf,{...k.props,children:k.props.label},`listChild-${v}`)),k.props.children.map((T,g)=>{m.push(Ea(K,{...T.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Ea(ve,{label:i,virtualization:a,children:m})):k.type===K&&(m.push(Ea(K,{...k.props},`${k.type}-${v}`)),p=Ea(El,{virtualization:a,children:m}))}):p=Ea(Ns,{children:"No data found."}),Hw("div",{...s,className:o(e.className,mp,C(mp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Ya.states=Rw;Ya.options=zw;Ya.className=mp;Ya.defaultOptions=ff;import{jsx as gf}from"react/jsx-runtime";var Gn="k-checkbox",Ow=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],Ww={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full]},up={size:n.medium,rounded:h.medium},We=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:v=up.size,rounded:T=up.rounded,...g}=e;return gf("span",{className:"k-checkbox-wrap",children:gf("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Gn,C(Gn,{size:v,rounded:T}),x(Gn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};We.states=Ow;We.options=Ww;We.className=Gn;We.defaultOptions=up;import{jsx as Xw}from"react/jsx-runtime";var xf="k-checkbox-list",Qw=[],Vw={},bf={layout:"vertical"},Yl=e=>{let{layout:t=bf.layout,...a}=e;return Xw("ul",{...a,className:o(e.className,xf,{[`k-list-${t}`]:t}),children:e.children})};Yl.states=Qw;Yl.options=Vw;Yl.className=xf;Yl.defaultOptions=bf;import{jsx as Uw}from"react/jsx-runtime";var vf="k-checkbox-list-item",Zw=[],Jw={},jw={},Pl=e=>{let{...t}=e;return Uw("li",{...t,className:o(e.className,vf),children:e.children})};Pl.states=Zw;Pl.options=Jw;Pl.className=vf;Pl.defaultOptions=jw;import{Fragment as gH,jsx as hH,jsxs as xH}from"react/jsx-runtime";import{Fragment as TH,jsx as wH,jsxs as AH}from"react/jsx-runtime";import{Fragment as BH,jsx as IH,jsxs as MH}from"react/jsx-runtime";import{Fragment as GH,jsx as PH,jsxs as KH}from"react/jsx-runtime";import{jsx as zH}from"react/jsx-runtime";import{jsx as QH}from"react/jsx-runtime";import{jsx as Kn,jsxs as eT}from"react/jsx-runtime";var fp="k-list-item",qw=[l.hover,l.focus,l.selected,l.disabled],_w={},$w={},K=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:k,selected:v,disabled:T,...g}=e,A=t||e.children;return eT("li",{...g,className:o(e.className,r?"k-list-group-item":fp,x(fp,{hover:m,focus:k,disabled:T,selected:v})),children:[d&&Kn(We,{checked:p}),s&&Kn(y,{icon:i}),Kn("span",{className:"k-list-item-text",children:A}),a&&a!==""&&Kn("div",{className:"k-list-item-group-label",children:a})]})};K.states=qw;K.options=_w;K.className=fp;K.defaultOptions=$w;import{jsx as hp,jsxs as oT}from"react/jsx-runtime";var tT="k-list-content",El=e=>{let{virtualization:t,...a}=e;return oT("div",{...a,className:o(tT,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 aT="k-list-group-sticky-header",wf=e=>yf("div",{className:o(aT,e.className),children:yf("div",{className:"k-list-header-text",children:e.children})});import{Fragment as lT,jsx as Tf,jsxs as rT}from"react/jsx-runtime";var ve=e=>{let{virtualization:t,label:a}=e;return rT(lT,{children:[a&&Tf(wf,{children:a}),e.children&&Tf(El,{virtualization:t,children:e.children})]})};import{jsx as Af}from"react/jsx-runtime";var sT="k-list-group-item",hf=e=>Af("li",{className:o(sT,e.className),children:Af("span",{className:"k-list-item-text",children:e.children})});import{jsx as cT}from"react/jsx-runtime";var gp="k-list-optionlabel",iT=[l.hover,l.focus,l.selected,l.disabled],nT={},dT={},Dn=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return cT("div",{...d,className:o(gp,x(gp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Dn.states=iT;Dn.options=nT;Dn.className=gp;Dn.defaultOptions=dT;import{jsx as kT}from"react/jsx-runtime";var xp="k-list-custom-value",pT=[l.hover,l.focus,l.selected,l.disabled],mT={},uT={},_e=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return kT("div",{...d,className:o(xp,x(xp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};_e.states=pT;_e.options=mT;_e.className=xp;_e.defaultOptions=uT;import{jsx as S8}from"react/jsx-runtime";import{jsx as L8}from"react/jsx-runtime";import{jsx as G8,jsxs as K8}from"react/jsx-runtime";import{jsx as z8,jsxs as H8}from"react/jsx-runtime";import{jsx as V8}from"react/jsx-runtime";import{jsx as j8,jsxs as U8}from"react/jsx-runtime";import{jsx as eO,jsxs as tO}from"react/jsx-runtime";import{Fragment as gT,jsx as ct,jsxs as bp}from"react/jsx-runtime";var Nf="k-dropdownlist",fT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],hT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Gl={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:h.medium,fillMode:b.solid},se=e=>{let{size:t=Gl.size,rounded:a=Gl.rounded,fillMode:r=Gl.fillMode,arrowIconName:s=Gl.arrowIconName,showValue:i=Gl.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:v,hover:T,focus:g,valid:A,invalid:N,required:S,loading:M,disabled:Y,readonly:G,popup:R,opened:W,adaptive:xe,adaptiveSettings:De,adaptiveTitle:at,adaptiveSubtitle:zt,adaptiveFilter:Ia,...Il}=e;return bp(gT,{children:[bp(wt,{...Il,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:S,loading:M,disabled:Y,readonly:G,className:o(e.className,Nf,{"k-icon-picker":!i&&d}),children:[ct(te,{children:p}),ct(To,{placeholder:v,value:k,showValue:i,valueIconName:d}),ct(J,{valid:A,invalid:N,loading:M,disabled:Y}),ct(U,{loading:M,disabled:Y}),ct(oe,{children:m}),ct(c,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),W&&R&&ct(z,{className:"k-list-container k-dropdownlist-popup",children:R}),xe&&ct(de,{adaptive:!0,...De,header:ct(re,{actionsEnd:ct(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ia,inputValue:k,inputPlaceholder:v,title:at,subtitle:zt}),children:ct("div",{className:"k-list-container",children:bp(X,{size:"large",children:[ct(K,{text:"List item"}),ct(K,{text:"List item"}),ct(K,{text:"List item"})]})})})]})};se.states=fT;se.options=hT;se.className=Nf;se.defaultOptions=Gl;import{jsx as LO}from"react/jsx-runtime";import{jsx as KO,jsxs as DO}from"react/jsx-runtime";import{Fragment as VO,jsx as WO,jsxs as QO}from"react/jsx-runtime";import{jsx as jO}from"react/jsx-runtime";import{jsx as eW,jsxs as tW}from"react/jsx-runtime";import{jsx as sW,jsxs as iW}from"react/jsx-runtime";import{Fragment as fW,jsx as uW,jsxs as kW}from"react/jsx-runtime";import{Fragment as TW,jsx as yW,jsxs as wW}from"react/jsx-runtime";import{Fragment as RW,jsx as FW}from"react/jsx-runtime";import{Fragment as XW,jsx as VW}from"react/jsx-runtime";import{Fragment as Cs,jsx as _,jsxs as Ie}from"react/jsx-runtime";var Cf="k-colorgradient-inputs",xT=[],bT={size:[n.small,n.medium,n.large]},Sf={mode:"rgba",size:n.medium},Kl=e=>{let{mode:t=Sf.mode,size:a,...r}=e;return Ie("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"&&Ie(Cs,{children:[Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),_("label",{className:"k-colorgradient-input-label",children:"R"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),_("label",{className:"k-colorgradient-input-label",children:"G"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),_("label",{className:"k-colorgradient-input-label",children:"B"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:a}),_("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&Ie(Cs,{children:[Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"R"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"G"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&Ie(Cs,{children:[Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"H"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"S"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"V"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),_("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&Ie(Cs,{children:[Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"H"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"S"})]}),Ie("div",{className:"k-vstack",children:[_(me,{showSpinButton:!1,showClearButton:!1,value:"132"}),_("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&_(Cs,{children:Ie("div",{className:"k-vstack k-flex-1",children:[_(j,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),_("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Kl.states=xT;Kl.options=bT;Kl.className=Cf;Kl.defaultOptions=Sf;import{jsx as Ga,jsxs as Ka}from"react/jsx-runtime";var If="k-colorgradient-color-contrast",vT=[],yT={},wT={},Dl=()=>Ka("div",{className:o(If,"k-vbox"),children:[Ka("div",{className:"k-contrast-ratio",children:[Ga("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Ka("span",{className:"k-contrast-validation !k-text-success",children:[Ga(y,{icon:"check"}),Ga(y,{icon:"check"})]})]}),Ka("div",{children:[Ga("span",{children:"AA: 4.5"}),Ka("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ga(y,{icon:"check"})]})]}),Ka("div",{children:[Ga("span",{children:"AAA: 7.0"}),Ka("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ga(y,{icon:"x"})]})]})]});Dl.states=vT;Dl.options=yT;Dl.className=If;Dl.defaultOptions=wT;import{jsx as Mt,jsxs as Ss}from"react/jsx-runtime";var Fn="k-colorgradient",TT=[l.hover,l.focus,l.readonly,l.disabled],AT={size:[n.small,n.medium,n.large]},Wt={size:n.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},Zo=e=>{let{size:t=Wt.size,mode:a=Wt.mode,readonly:r=Wt.readonly,disabled:s=Wt.disabled,gradientStyle:i=Wt.gradientStyle,dragHandleStyle:d=Wt.dragHandleStyle,alphaStyle:p=Wt.alphaStyle,alphaStyleHorizontal:m=Wt.alphaStyleHorizontal,contrast:k=Wt.contrast,dir:v,hover:T,focus:g,hoverHandle:A,focusHandle:N,canvasOrientation:S=Wt.canvasOrientation,...M}=e;return Ss("div",{...M,className:o(e.className,Fn,C(Fn,{size:t}),x(Fn,{hover:T,focus:g,readonly:r,disabled:s})),dir:v,children:[!S||S==="horizontal"&&Ss("div",{className:"k-colorgradient-canvas k-hstack",children:[Mt("div",{className:"k-hsv-rectangle",style:i,children:Mt("div",{className:"k-hsv-gradient",children:Mt("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":A,"k-focus":N}),style:d})})}),Ss("div",{className:"k-hsv-controls k-hstack",children:[Mt(np,{className:"k-hue-slider",hover:A,focus:N}),a!=="rgb"&&a!=="hsv"&&Mt(np,{className:"k-alpha-slider",hover:A,focus:N,trackStyle:p})]})]}),S==="vertical"&&Ss("div",{className:"k-colorgradient-canvas k-vstack",children:[Mt("div",{className:"k-hsv-rectangle",style:i,children:Mt("div",{className:"k-hsv-gradient",children:Mt("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":A,"k-focus":N}),style:d})})}),Ss("div",{className:"k-hsv-controls k-vstack",children:[Mt(ip,{className:"k-hue-slider",hover:A,focus:N}),a!=="rgb"&&a!=="hsv"&&Mt(ip,{className:"k-alpha-slider",hover:A,focus:N,trackStyle:m})]})]}),Mt(Kl,{mode:e.mode,size:t}),k&&Mt(Dl,{})]})};Zo.states=TT;Zo.options=AT;Zo.className=Fn;Zo.defaultOptions=Wt;import{jsx as gQ}from"react/jsx-runtime";import{jsx as yQ}from"react/jsx-runtime";import{jsx as NT}from"react/jsx-runtime";var Bf=e=>NT("tr",{children:e.children});import{jsx as IT}from"react/jsx-runtime";var vp="k-colorpalette-tile",CT=[l.hover,l.focus,l.selected],ST={},Is=e=>{let{color:t,tileSize:a,hover:r,focus:s,selected:i,...d}=e,p={backgroundColor:t,width:a?a+"px":"",height:a?a+"px":""};return IT("td",{...d,className:o(e.className,vp,x(vp,{hover:r,focus:s,selected:i})),style:p})};Is.states=CT;Is.options=ST;Is.className=vp;import{jsx as Bs}from"react/jsx-runtime";var Rn="k-colorpalette",BT=[l.disabled],MT={size:[n.small,n.medium,n.large]},yp={columns:10,size:n.medium},Fl=e=>{let{size:t=yp.size,palette:a,columns:r=yp.columns,tileSize:s,disabled:i,...d}=e,p=[];if(a){let m=r||a.columns,k=a.colors?a.colors:a;Array.isArray(k)&&Array.from({length:Math.ceil(k.length/m)},(v,T)=>{let g=[];k.slice(T*m,(T+1)*m).map((N,S)=>{g.push(Bs(Is,{color:N,tileSize:s},S))});let A=Bs(Bf,{children:g},T);p.push(A)})}return Bs("div",{...d,className:o(e.className,Rn,x(Rn,{disabled:i}),C(Rn,{size:t})),children:Bs("table",{className:"k-colorpalette-table",children:Bs("tbody",{children:p.length>0?p:e.children})})})};Fl.states=BT;Fl.options=MT;Fl.className=Rn;Fl.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 QQ}from"react/jsx-runtime";import{jsx as Lt,jsxs as Rl}from"react/jsx-runtime";var zn="k-coloreditor",LT=[l.focus],ET={size:[n.small,n.medium,n.large]},zl={size:n.medium,view:"gradient",palette:wp.office,actionButtons:!0,canvasOrientation:"horizontal"},ao=e=>{let{size:t=zl.size,view:a=zl.view,palette:r=zl.palette,color:s,currentColor:i,focus:d,focusView:p,dir:m,group:k,actionButtons:v=zl.actionButtons,canvasOrientation:T=zl.canvasOrientation,...g}=e;return Rl("div",{...g,className:o(e.className,"k-flatcolorpicker",zn,C(zn,{size:t}),x(zn,{focus:d})),dir:m,children:[Rl("div",{className:"k-coloreditor-header k-hstack",children:[Lt("div",{className:"k-coloreditor-header-actions k-hstack",children:k&&Rl(P,{fillMode:"flat",children:[Lt(c,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:a==="gradient"}),Lt(c,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:a==="palette"})]})}),Lt("div",{className:"k-spacer"}),Rl("div",{className:"k-coloreditor-header-actions k-hstack",children:[Lt(c,{fillMode:"flat",icon:"droplet-slash",size:t}),Rl("div",{className:"k-coloreditor-preview k-vstack",children:[Lt(Ho,{className:"k-coloreditor-preview-color",color:s}),Lt(Ho,{className:"k-coloreditor-current-color",color:i})]})]})]}),Lt("div",{className:"k-coloreditor-views k-vstack",children:a==="gradient"?Lt(Zo,{focus:p,size:t,canvasOrientation:T}):Lt(Fl,{palette:r,size:t})}),v&&Rl(V,{className:"k-coloreditor-footer",alignment:"start",children:[Lt(c,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Lt(c,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ao.states=LT;ao.options=ET;ao.className=zn;ao.defaultOptions=zl;import{jsx as dV}from"react/jsx-runtime";import{jsx as uV}from"react/jsx-runtime";import{jsx as gV}from"react/jsx-runtime";import{jsx as yV}from"react/jsx-runtime";import{Fragment as GT,jsx as Et,jsxs as Ap}from"react/jsx-runtime";var Mf="k-colorpicker",YT=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],PT={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ms={arrowIconName:"caret-alt-down",size:wt.defaultOptions.size,rounded:wt.defaultOptions.rounded,fillMode:wt.defaultOptions.fillMode},Yt=e=>{let{size:t=Ms.size,rounded:a=Ms.rounded,fillMode:r=Ms.fillMode,arrowIconName:s=Ms.arrowIconName,prefix:i,suffix:d,value:p,placeholder:m,hover:k,focus:v,valid:T,invalid:g,required:A,disabled:N,valueIconName:S,popup:M,opened:Y,adaptive:G,adaptiveSettings:R,adaptiveTitle:W,adaptiveSubtitle:xe,...De}=e;return Ap(GT,{children:[Ap(wt,{...De,size:t,rounded:a,fillMode:r,hover:k,focus:v,valid:T,invalid:g,required:A,disabled:N,className:o(e.className,Mf,"k-icon-picker"),children:[Et(te,{children:i}),Et(To,{plac