@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 89.4 kB
JavaScript
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var L=(e,t)=>a({[`${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"}),g=(e,t)=>a({"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 l={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},T={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"},r={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"};import{Fragment as Vs,jsx as Er}from"react/jsx-runtime";var ua="k-icon k-font-icon",Ds=[],Fs={size:[l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},$s={},so=e=>{let{size:t,themeColor:o,icon:s,rotate:i,flip:n,...d}=e;return s?Er("span",{...d,className:a(e.className,ua,L(ua,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"})}):Er(Vs,{})};so.states=Ds;so.options=Fs;so.className=ua;so.defaultOptions=$s;var zr=so;import{Fragment as Js,jsx as Po}from"react/jsx-runtime";var fa="k-icon k-svg-icon",_s=[],Xs={size:[l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Kr={viewBox:"0 0 24 24"},io=e=>{let{size:t,themeColor:o,rotate:s,flip:i,viewBox:n=Kr.viewBox,icon:d,...c}=e;if(!d)return Po(Js,{});d==="none"&&{...c,className:a(e.className,fa,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return Po("span",{...c,className:a(e.className,fa,L("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:Po("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:n,dangerouslySetInnerHTML:typeof d=="object"?{__html:d.content}:void 0,children:d?void 0:e.children})})};io.states=_s;io.options=Xs;io.className=fa;io.defaultOptions=Kr;var ba=io;import*as Or from"@progress/kendo-svg-icons";import{Fragment as Dr,jsx as no}from"react/jsx-runtime";var Ws=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Us=[],qs={size:[l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Ta={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{size:t,themeColor:o,icon:s,type:i=Ta.type,rotate:n,flip:d,viewBox:c=Ta.viewBox,...m}=e;if(!s)return no(Dr,{});if(i==="svg"){if(s==="none")return no(ba,{...m,icon:s,size:t});let b=Ws(`${s}-icon`);return Or[b]?no(ba,{...m,icon:Or[b],size:t,themeColor:o,rotate:n,flip:d,viewBox:c}):no(Dr,{})}return no(zr,{...m,icon:s,size:t,themeColor:o,rotate:n,flip:d})};k.states=Us;k.options=qs;k.defaultOptions=Ta;import{Fragment as Zs,jsx as co,jsxs as Fr}from"react/jsx-runtime";var Ho="k-button",Qs=[r.hover,r.focus,r.active,r.selected,r.disabled],Ys={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline,T.clear,T.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},it={size:l.medium,rounded:f.medium,fillMode:T.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},x=e=>{let{size:t=it.size,rounded:o=it.rounded,fillMode:s=it.fillMode,themeColor:i=it.themeColor,showArrow:n=it.showArrow,arrowIconName:d=it.arrowIconName,hover:c,focus:m,active:b,selected:h,disabled:w,icon:p,text:N,iconClassName:v,...S}=e,y=p!==void 0,M=e.children!==void 0;return Fr("button",{...S,className:a(e.className,Ho,L(Ho,{size:t,rounded:o,fillMode:s,themeColor:i}),g(Ho,{hover:c,focus:m,active:b,disabled:w,selected:h}),{"k-icon-button":!N&&!M&&y}),children:[p&&co(k,{className:a(v,"k-button-icon"),icon:p}),N?Fr(Zs,{children:[N&&co("span",{className:"k-button-text",children:N}),e.children]}):e.children&&co("span",{className:"k-button-text",children:e.children}),n&&co("span",{className:"k-menu-button-arrow k-button-arrow",children:co(k,{icon:d})})]})};x.states=Qs;x.options=Ys;x.className=Ho;x.defaultOptions=it;import{jsx as js}from"react/jsx-runtime";var Eo=e=>js(x,{icon:"folder",...e,children:void 0});import{jsx as ei}from"react/jsx-runtime";var xa=e=>ei(x,{icon:"folder",children:"Button",...e});import{jsx as Om}from"react/jsx-runtime";import{jsx as ai}from"react/jsx-runtime";var po="k-button-group",ti=[r.disabled],oi={fillMode:[T.solid,T.flat,T.outline,T.clear,T.link]},$r={fillMode:T.solid},B=e=>{let{fillMode:t=$r.fillMode,disabled:o,stretched:s,...i}=e;return ai("div",{...i,className:a(e.className,po,L(po,{fillMode:t}),g(po,{disabled:o}),{[`${po}-stretched`]:s}),children:e.children})};B.states=ti;B.options=oi;B.className=po;B.defaultOptions=$r;import{Fragment as jm,jsx as Zm,jsxs as eu}from"react/jsx-runtime";import{Fragment as su,jsx as lu,jsxs as iu}from"react/jsx-runtime";import{Fragment as uu,jsx as mu,jsxs as fu}from"react/jsx-runtime";import{Fragment as gu,jsx as Nu,jsxs as ku}from"react/jsx-runtime";import{jsx as si}from"react/jsx-runtime";var zo="k-input",ri=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],li={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},Ko={size:l.medium,rounded:l.medium,fillMode:T.solid},G=e=>{let{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c,size:m=Ko.size,rounded:b=Ko.rounded,fillMode:h=Ko.fillMode,...w}=e;return si("span",{...w,className:a(e.className,zo,L(zo,{size:m,rounded:b,fillMode:h}),g(zo,{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c}))})};G.states=ri;G.options=li;G.className=zo;G.defaultOptions=Ko;import{jsx as di}from"react/jsx-runtime";var Oo="k-picker",ii=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ni={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},Do={size:l.medium,rounded:f.medium,fillMode:T.solid},he=e=>{let{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c,size:m=Do.size,rounded:b=Do.rounded,fillMode:h=Do.fillMode,...w}=e;return di("span",{...w,className:a(e.className,Oo,L(Oo,{size:m,rounded:b,fillMode:h}),g(Oo,{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c})),children:e.children})};he.states=ii;he.options=ni;he.className=Oo;he.defaultOptions=Do;import{Fragment as mi,jsx as ha}from"react/jsx-runtime";var Vr="k-clear-value",ci=[r.disabled,r.loading,r.readonly],pi={},Ne=e=>{let{disabled:t,loading:o,readonly:s,value:i}=e;return t||s||o||!i?ha(mi,{}):ha("span",{className:a(e.className,Vr),children:ha(k,{icon:"x"})})};Ne.states=ci;Ne.options=pi;Ne.className=Vr;import{jsx as bi}from"react/jsx-runtime";var Na="k-input-inner",ui=[],fi={},Fo={type:"text",autocomplete:"off",value:"",placeholder:""},ge=e=>{let{value:t=Fo.value,type:o=Fo.type,placeholder:s=Fo.placeholder,autocomplete:i=Fo.autocomplete,...n}=e;return bi("input",{...n,type:o,className:a(e.className,Na,L(Na,e)),placeholder:s,autoComplete:i,defaultValue:t})};ge.states=ui;ge.options=fi;ge.className=Na;import{jsx as _r,jsxs as hi}from"react/jsx-runtime";var ga="k-input-inner",Ti=[],xi={},nt=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:i,valueIconName:n,...d}=e;return hi("span",{...d,className:a(e.className,ga,L(ga,e)),children:[i,!i&&n&&_r(k,{className:"k-input-value-icon",icon:n}),s&&!t&&o,s&&t&&_r("span",{className:"k-input-value-text",children:t})]})};nt.states=Ti;nt.options=xi;nt.className=ga;import{jsx as ki}from"react/jsx-runtime";var ka="k-input-inner",Ni=[],gi={},Xr={value:"",placeholder:""},va=e=>{let{value:t=Xr.value,placeholder:o=Xr.placeholder,rows:s,...i}=e;return ki("textarea",{...i,className:a(e.className,ka,L(ka,e)),placeholder:o,rows:s,defaultValue:t})};va.states=Ni;va.options=gi;va.className=ka;import{Fragment as Li,jsx as Jr}from"react/jsx-runtime";var Wr="k-input-loading-icon",vi=[r.disabled,r.loading],ce=e=>{let{disabled:t,loading:o}=e;return t||!o?Jr(Li,{}):Jr("span",{className:a(e.className,Wr,"k-icon k-i-loading")})};ce.states=vi;ce.className=Wr;import{Fragment as yi,jsx as Ur}from"react/jsx-runtime";var qr="k-input-validation-icon",wi=[r.valid,r.invalid,r.disabled,r.loading],Si={},se=e=>{let{valid:t,invalid:o,disabled:s,loading:i}=e,n=o?"warning-circle":"check-circle";return s||i||!!!(t||o)?Ur(yi,{}):Ur(k,{className:a(qr),icon:n})};se.states=wi;se.options=Si;se.className=qr;import{Fragment as Ii,jsx as Qr}from"react/jsx-runtime";var Ci="k-input-prefix",Mi={direction:"horizontal"},ye=e=>{let{direction:t=Mi.direction,...o}=e;return e.children?Qr("span",{...o,className:a(Ci,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Qr(Ii,{})};import{Fragment as Bi,jsx as Yr}from"react/jsx-runtime";var Ai="k-input-suffix",Ri={direction:"horizontal"},Ce=e=>{let{direction:t=Ri.direction,...o}=e;return e.children?Yr("span",{...o,className:a(Ai,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Yr(Bi,{})};import{jsx as pf}from"react/jsx-runtime";import{jsx as bf}from"react/jsx-runtime";import{jsx as Pi}from"react/jsx-runtime";var Zr="k-input-separator",Gi={direction:"vertical"},He=e=>{let{direction:t=Gi.direction,...o}=e;return Pi("span",{...o,className:a(Zr,e.className,{[`${Zr}-${t}`]:t})})};import{jsx as jr,jsxs as zi}from"react/jsx-runtime";var el="k-color-preview",Hi=[],Ei={},_e=e=>{let{color:t,iconName:o,...s}=e;return zi("span",{...s,className:a(e.className,el,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&jr(k,{icon:o,className:"k-color-preview-icon"}),jr("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};_e.states=Hi;_e.options=Ei;_e.className=el;import{jsx as tl}from"react/jsx-runtime";var ol="k-animation-container",Ki=[],Oi={},al={positionMode:"absolute"},Xe=e=>{let{positionMode:t=al.positionMode,animationStyle:o,offset:s,...i}=e;return tl("div",{...i,style:{...s,...e.style},className:a(e.className,ol,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:tl("div",{className:"k-child-animation-container",style:o,children:e.children})})};Xe.states=Ki;Xe.options=Oi;Xe.className=ol;Xe.defaultOptions=al;import{jsx as rl}from"react/jsx-runtime";var ll="k-popup",Di=[],Fi={},sl={positionMode:"absolute"},X=e=>{let{offset:t,positionMode:o=sl.positionMode,animationStyle:s,...i}=e;return rl(Xe,{positionMode:o,offset:t,animationStyle:s,children:rl("div",{...i,className:a(e.className,ll),children:e.children})})};X.states=Di;X.options=Fi;X.className=ll;X.defaultOptions=sl;import{jsx as _i}from"react/jsx-runtime";var $o="k-actions",$i=[],Vi={},La={alignment:"start",orientation:"horizontal"},Je=e=>{let{alignment:t=La.alignment,orientation:o=La.orientation,...s}=e;return _i("div",{...s,className:a($o,{[`${$o}-${t}`]:t,[`${$o}-${o}`]:o},e.className),children:e.children})};Je.states=$i;Je.options=Vi;Je.className=$o;Je.defaultOptions=La;import{jsx as Ji}from"react/jsx-runtime";var Xi="k-actionsheet-footer",il={alignment:"stretched",orientation:"horizontal"},mo=e=>{let{alignment:t=il.alignment,orientation:o=il.orientation,template:s,as:i=s?"div":Je,...n}=e;return Ji(i,{...n,...!s&&{alignment:t,orientation:o},className:a(e.className,Xi),children:e.children})};import{jsx as uo,jsxs as qi}from"react/jsx-runtime";var nl="k-searchbox",Wi=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],Ui={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},wa={showIcon:!0,icon:"search",size:G.defaultOptions.size,rounded:G.defaultOptions.rounded,fillMode:G.defaultOptions.fillMode},Q=e=>{let{value:t,placeholder:o,size:s,rounded:i,fillMode:n,hover:d,focus:c,valid:m,invalid:b,required:h,loading:w,disabled:p,showIcon:N=wa.showIcon,icon:v=wa.icon,...S}=e;return qi(G,{...S,size:s,rounded:i,fillMode:n,hover:d,focus:c,valid:m,invalid:b,required:h,loading:w,disabled:p,className:a(e.className,nl),children:[N&&uo(k,{className:"k-input-icon",icon:v}),uo(ge,{placeholder:o,value:t}),uo(ce,{...e}),uo(se,{...e}),uo(Ne,{...e})]})};Q.states=Wi;Q.options=Ui;Q.className=nl;Q.defaultOptions=wa;import{jsx as fb}from"react/jsx-runtime";import{Fragment as dl,jsx as We,jsxs as Sa}from"react/jsx-runtime";var cl="k-textbox",Qi=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Yi={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},dt={showClearButton:!0,showValidationIcon:!0,size:G.defaultOptions.size,rounded:G.defaultOptions.rounded,fillMode:G.defaultOptions.fillMode,separators:!0},Me=e=>{let{size:t=dt.size,rounded:o=dt.rounded,fillMode:s=dt.fillMode,separators:i=dt.separators,showClearButton:n=dt.showClearButton,showValidationIcon:d=dt.showValidationIcon,prefix:c,suffix:m,type:b,value:h,placeholder:w,hover:p,focus:N,valid:v,invalid:S,required:y,loading:M,disabled:R,readonly:E,...D}=e;return Sa(G,{...D,size:t,rounded:o,fillMode:s,hover:p,focus:N,valid:v,invalid:S,required:y,loading:M,disabled:R,readonly:E,className:a(e.className,cl),children:[c&&Sa(dl,{children:[We(ye,{children:c}),i&&We(He,{})]}),We(ge,{placeholder:w,value:h,type:b}),d&&We(se,{valid:v,invalid:S,loading:M,disabled:R}),We(ce,{loading:M,disabled:R}),n&&We(Ne,{loading:M,disabled:R,readonly:E,value:h}),m&&Sa(dl,{children:[i&&We(He,{}),We(Ce,{children:m})]})]})};Me.states=Qi;Me.options=Yi;Me.className=cl;Me.defaultOptions=dt;import{jsx as Sb}from"react/jsx-runtime";import{Fragment as Rb,jsx as Ab}from"react/jsx-runtime";import{Fragment as Kb,jsx as zb}from"react/jsx-runtime";import{jsx as Ue,jsxs as ya}from"react/jsx-runtime";var ml="k-actionsheet-titlebar",Zi={},pe=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:i,filter:n,input:d,inputValue:c,inputPlaceholder:m,adaptive:b,children:h,...w}=e;return ya("div",{...w,className:a(e.className,ml),children:[ya("div",{className:"k-actionsheet-titlebar-group",children:[s&&Ue("div",{className:"k-actionsheet-actions",children:s}),!h&&ya("div",{className:"k-actionsheet-title",children:[t&&Ue("div",{className:"k-text-center",children:t}),o&&Ue("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&Ue("div",{className:"k-actionsheet-title",children:h}),i&&Ue("div",{className:"k-actionsheet-actions",children:i})]}),(d||n)&&Ue("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Ue(Me,{value:c,placeholder:m,size:b?"large":"medium"}):Ue(Q,{placeholder:"Filter",size:b?"large":"medium"})})]})};pe.className=ml;pe.defaultOptions=Zi;import{jsx as Ca,jsxs as on}from"react/jsx-runtime";var Ma="k-actionsheet-view",ji=[],en={},tn={},It=e=>{let{adaptive:t,animated:o,children:s,header:i,footer:n,...d}=e,c=i?.type===pe&&Ca(pe,{adaptive:t,...i?.props}),m=n?.type===mo&&Ca(mo,{...n?.props});return on("div",{...d,className:a(e.className,Ma,{[`${Ma}-animated`]:o}),children:[c,Ca("div",{className:"k-actionsheet-content",children:s}),m]})};It.states=ji;It.options=en;It.className=Ma;It.defaultOptions=tn;import{jsx as Vo,jsxs as ln}from"react/jsx-runtime";var ul="k-actionsheet",an=[],rn={},fo={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ke=e=>{let{side:t=fo.side,fullscreen:o=fo.fullscreen,adaptive:s=fo.adaptive,overlay:i=fo.overlay,template:n,children:d,header:c,footer:m,...b}=e;return ln("div",{className:"k-actionsheet-container",children:[i&&Vo("div",{className:"k-overlay"}),Vo(Xe,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:Vo("div",{...b,className:a(e.className,ul,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:n||Vo(It,{header:c,footer:m,adaptive:s,...e,children:d})})})]})};ke.states=an;ke.options=rn;ke.className=ul;ke.defaultOptions=fo;import{jsx as nT}from"react/jsx-runtime";import{Fragment as nn,jsx as bo,jsxs as Ia}from"react/jsx-runtime";var Aa="k-actionsheet-item",sn=[r.hover,r.focus,r.selected,r.disabled],Ra=e=>{let{iconName:t,text:o,description:s,hover:i,focus:n,selected:d,disabled:c,...m}=e;return Ia("span",{...m,className:a(e.className,Aa,g(Aa,{hover:i,focus:n,selected:d,disabled:c})),children:[!e.children&&bo(nn,{children:Ia("span",{className:"k-actionsheet-action",children:[t&&bo("span",{className:"k-icon-wrap",children:bo(k,{className:"k-actionsheet-item-icon",icon:t})}),Ia("span",{className:"k-actionsheet-item-text",children:[o&&bo("span",{className:"k-actionsheet-item-title",children:o}),s&&bo("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};Ra.states=sn;Ra.className=Aa;import{jsx as xT,jsxs as hT}from"react/jsx-runtime";import{jsx as vT}from"react/jsx-runtime";import{jsx as yT}from"react/jsx-runtime";import{jsx as AT}from"react/jsx-runtime";import{jsx as At,jsxs as Ba}from"react/jsx-runtime";var To="k-slider",dn=[r.hover,r.focus,r.active,r.disabled,r.readonly],cn={},qe={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},me=e=>{let{type:t=qe.type,orientation:o=qe.orientation,readonly:s=qe.readonly,disabled:i=qe.disabled,handlePosition:n=qe.handlePosition,showButtons:d=qe.showButtons,showTicks:c=qe.showTicks,hover:m,focus:b,active:h,trackStyle:w,dir:p,...N}=e,v,S;return o==="horizontal"?(v=p==="rtl"?"caret-alt-left":"caret-alt-right",S=p==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(v="caret-alt-up",S="caret-alt-down"),Ba("div",{...N,className:a(To,e.className,g(To,{readonly:s,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:p,children:[d&&At(x,{className:"k-button-decrease",rounded:"full",icon:S}),Ba("div",{className:"k-slider-track-wrap",children:[c&&At("ul",{className:"k-reset k-slider-items",children:e.children}),Ba("div",{className:"k-slider-track",style:w,children:[At("div",{className:"k-slider-selection"}),t==="range"&&At("span",{className:a("k-draghandle","k-draghandle-start",g(To,{hover:m,focus:b,active:h}))}),At("span",{className:a("k-draghandle",`k-draghandle-${n}`,g(To,{hover:m,focus:b,active:h}))})]})]}),d&&At(x,{className:"k-button-increase",rounded:"full",icon:v})]})};me.states=dn;me.options=cn;me.className=To;me.defaultOptions=qe;import{jsx as bl}from"react/jsx-runtime";var Tl="k-tick",pn=[],mn={},xl={label:!1},Qe=e=>{let{style:t,label:o=xl.label,orientation:s,large:i,text:n,...d}=e;return bl("li",{...d,className:a(e.className,Tl,{[`k-tick-${s}`]:s,"k-tick-large":i}),style:t,children:o&&bl("span",{className:"k-label",children:n})})};Qe.states=pn;Qe.options=mn;Qe.className=Tl;Qe.defaultOptions=xl;import{Fragment as jT,jsx as ZT,jsxs as ex}from"react/jsx-runtime";import{Fragment as lx,jsx as rx,jsxs as sx}from"react/jsx-runtime";import{Fragment as px,jsx as cx,jsxs as mx}from"react/jsx-runtime";import{Fragment as xx,jsx as Tx,jsxs as hx}from"react/jsx-runtime";import{jsx as un}from"react/jsx-runtime";var Ga=e=>un(me,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as fn}from"react/jsx-runtime";var Pa=e=>fn(me,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as hl,jsxs as xn}from"react/jsx-runtime";var Nl="k-spin-button",bn=[],Tn={size:[l.small,l.medium,l.large],fillMode:[T.solid,T.flat,T.outline,T.clear,T.link]},Ha={size:l.medium,fillMode:T.solid},Rt=e=>{let{size:t=Ha.size,fillMode:o=Ha.fillMode,...s}=e;return xn("span",{...s,className:a(Nl,e.className),children:[hl(x,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),hl(x,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Rt.states=bn;Rt.options=Tn;Rt.className=Nl;Rt.defaultOptions=Ha;import{Fragment as gl,jsx as Ee,jsxs as Ea}from"react/jsx-runtime";var kl="k-numerictextbox",hn=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],Nn={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},ct={showSpinButton:!0,showClearButton:!0,size:G.defaultOptions.size,rounded:G.defaultOptions.rounded,fillMode:G.defaultOptions.fillMode,separators:!0},P=e=>{let{size:t=ct.size,rounded:o=ct.rounded,fillMode:s=ct.fillMode,separators:i=ct.separators,showClearButton:n=ct.showClearButton,showSpinButton:d=ct.showSpinButton,prefix:c,suffix:m,value:b,placeholder:h,hover:w,focus:p,valid:N,invalid:v,required:S,loading:y,disabled:M,readonly:R,...E}=e;return Ea(G,{...E,size:t,rounded:o,fillMode:s,hover:w,focus:p,valid:N,invalid:v,required:S,loading:y,disabled:M,readonly:R,className:a(e.className,kl),children:[c&&Ea(gl,{children:[Ee(ye,{children:c}),i&&Ee(He,{})]}),Ee(ge,{placeholder:h,value:b}),Ee(se,{valid:N,invalid:v,loading:y,disabled:M}),Ee(ce,{loading:y,disabled:M}),n&&Ee(Ne,{loading:y,disabled:M,readonly:R,value:b}),m&&Ea(gl,{children:[i&&Ee(He,{}),Ee(Ce,{children:m})]}),d&&Ee(Rt,{className:"k-input-spinner",size:t,fillMode:s})]})};P.states=hn;P.options=Nn;P.className=kl;P.defaultOptions=ct;import{jsx as Ux}from"react/jsx-runtime";import{jsx as kn}from"react/jsx-runtime";var gn="k-no-data",xo=e=>kn("span",{className:a(gn,e.className),children:e.children});import{jsx as Bt,jsxs as Ll}from"react/jsx-runtime";var za="k-list",vn=[],Ln={size:[l.small,l.medium,l.large]},wl={size:l.medium},H=e=>{let{size:t=wl.size,virtualization:o,children:s,optionLabel:i,customValue:n,screenReaders:d,...c}=e,m,b,h,w,p=[];return s?s.map((N,v)=>{N.type===J?(N.props.root===!0?(m=N.props.label,N.props.children.map((S,y)=>{p.push(Bt(C,{...S.props},`optChild-${y}-${new Date().getTime()}`))})):N.props.children.forEach((S,y)=>{let M="";y===0&&(M=N.props.label),p.push(Bt(C,{className:y===0?"k-first":"",...S.props,groupLabel:M},`groupLabel-${y}-${new Date().getTime()}`))}),b=Bt(J,{label:m,virtualization:o,children:p})):N.type===C&&(p.push(Bt(C,{...N.props},`${N.type}-${v}`)),h=Bt(Gt,{virtualization:o,children:p}),d&&(w=Ll(xo,{className:"k-sr-only",children:[p.length," items found."]})))}):w=Bt(xo,{children:"No data found."}),Ll("div",{...c,className:a(e.className,za,L(za,{size:t}),{"k-virtual-list":o}),children:[i,n,b,h,w]})};H.states=vn;H.options=Ln;H.className=za;H.defaultOptions=wl;import{jsx as pt,jsxs as yn}from"react/jsx-runtime";var Ka="k-list",wn=[],Sn={size:[l.small,l.medium,l.large]},Sl={size:l.medium},mt=e=>{let{size:t=Sl.size,virtualization:o,children:s,...i}=e,n,d,c,m=[];return s?s.map((b,h)=>{b.type===J?(b.props.root===!0?(n=b.props.label,b.props.children.map((w,p)=>{m.push(pt(C,{...w.props},`optChild-${p}-${new Date().getTime()}`))})):(m.push(pt(yl,{...b.props,children:b.props.label},`listChild-${h}`)),b.props.children.map((w,p)=>{m.push(pt(C,{...w.props},`fwOptChild-${p}-${new Date().getTime()}`))})),d=pt(J,{label:n,virtualization:o,children:m})):b.type===C&&(m.push(pt(C,{...b.props},`${b.type}-${h}`)),c=pt(Gt,{virtualization:o,children:m}))}):c=pt(xo,{children:"No data found."}),yn("div",{...i,className:a(e.className,Ka,L(Ka,{size:t}),{"k-virtual-list":o}),children:[d,c]})};mt.states=wn;mt.options=Sn;mt.className=Ka;mt.defaultOptions=Sl;import{jsx as Cl}from"react/jsx-runtime";var _o="k-checkbox",Cn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],Mn={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full]},Oa={size:l.medium,rounded:f.medium},ve=e=>{let{id:t,checked:o,indeterminate:s,hover:i,focus:n,disabled:d,invalid:c,valid:m,required:b,size:h=Oa.size,rounded:w=Oa.rounded,...p}=e;return Cl("span",{className:"k-checkbox-wrap",children:Cl("input",{...p,id:t,type:"checkbox",defaultChecked:o,required:b,className:a(e.className,_o,L(_o,{size:h,rounded:w}),g(_o,{hover:i,focus:n,disabled:d,invalid:c,valid:m,indeterminate:s,checked:o}))})})};ve.states=Cn;ve.options=Mn;ve.className=_o;ve.defaultOptions=Oa;import{jsx as Rn}from"react/jsx-runtime";var Ml="k-checkbox-list",In=[],An={},Il={layout:"vertical"},Pt=e=>{let{layout:t=Il.layout,...o}=e;return Rn("ul",{...o,className:a(e.className,Ml,{[`k-list-${t}`]:t}),children:e.children})};Pt.states=In;Pt.options=An;Pt.className=Ml;Pt.defaultOptions=Il;import{jsx as Hn}from"react/jsx-runtime";var Al="k-checkbox-list-item",Bn=[],Gn={},Pn={},Ht=e=>{let{...t}=e;return Hn("li",{...t,className:a(e.className,Al),children:e.children})};Ht.states=Bn;Ht.options=Gn;Ht.className=Al;Ht.defaultOptions=Pn;import{Fragment as Lh,jsx as vh,jsxs as wh}from"react/jsx-runtime";import{Fragment as Ih,jsx as Mh,jsxs as Ah}from"react/jsx-runtime";import{Fragment as Hh,jsx as Ph,jsxs as Eh}from"react/jsx-runtime";import{Fragment as Fh,jsx as Dh,jsxs as $h}from"react/jsx-runtime";import{jsx as Jh}from"react/jsx-runtime";import{jsx as Qh}from"react/jsx-runtime";import{jsx as Xo,jsxs as On}from"react/jsx-runtime";var Fa="k-list-item",En=[r.hover,r.focus,r.selected,r.disabled],zn={},Kn={},C=e=>{let{text:t,groupLabel:o,group:s,showIcon:i,iconName:n,showCheckbox:d,checked:c,hover:m,focus:b,selected:h,disabled:w,...p}=e,N=t||e.children;return On("li",{...p,className:a(e.className,s?"k-list-group-item":Fa,g(Fa,{hover:m,focus:b,disabled:w,selected:h})),children:[d&&Xo(ve,{checked:c}),i&&Xo(k,{icon:n}),Xo("span",{className:"k-list-item-text",children:N}),o&&o!==""&&Xo("div",{className:"k-list-item-group-label",children:o})]})};C.states=En;C.options=zn;C.className=Fa;C.defaultOptions=Kn;import{jsx as $a,jsxs as Fn}from"react/jsx-runtime";var Dn="k-list-content",Gt=e=>{let{virtualization:t,...o}=e;return Fn("div",{...o,className:a(Dn,e.className),children:[$a("ul",{className:a("k-list-ul"),children:e.children}),t&&$a("div",{className:"k-height-container",children:$a("div",{})})]})};import{jsx as Rl}from"react/jsx-runtime";var $n="k-list-group-sticky-header",Bl=e=>Rl("div",{className:a($n,e.className),children:Rl("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Vn,jsx as Gl,jsxs as _n}from"react/jsx-runtime";var J=e=>{let{virtualization:t,label:o}=e;return _n(Vn,{children:[o&&Gl(Bl,{children:o}),e.children&&Gl(Gt,{virtualization:t,children:e.children})]})};import{jsx as Pl}from"react/jsx-runtime";var Xn="k-list-group-item",yl=e=>Pl("li",{className:a(Xn,e.className),children:Pl("span",{className:"k-list-item-text",children:e.children})});import{jsx as qn}from"react/jsx-runtime";var Va="k-list-optionlabel",Jn=[r.hover,r.focus,r.selected,r.disabled],Wn={},Un={},Jo=e=>{let{text:t,hover:o,focus:s,selected:i,disabled:n,...d}=e;return qn("div",{...d,className:a(Va,g(Va,{hover:o,focus:s,selected:i,disabled:n})),children:t})};Jo.states=Jn;Jo.options=Wn;Jo.className=Va;Jo.defaultOptions=Un;import{jsx as jn}from"react/jsx-runtime";var _a="k-list-custom-value",Qn=[r.hover,r.focus,r.selected,r.disabled],Yn={},Zn={},Ye=e=>{let{text:t,hover:o,focus:s,selected:i,disabled:n,...d}=e;return jn("div",{...d,className:a(_a,g(_a,{hover:o,focus:s,selected:i,disabled:n})),children:t})};Ye.states=Qn;Ye.options=Yn;Ye.className=_a;Ye.defaultOptions=Zn;import{jsx as GN}from"react/jsx-runtime";import{jsx as zN}from"react/jsx-runtime";import{jsx as FN,jsxs as $N}from"react/jsx-runtime";import{jsx as JN,jsxs as WN}from"react/jsx-runtime";import{jsx as YN}from"react/jsx-runtime";import{jsx as tg,jsxs as og}from"react/jsx-runtime";import{jsx as sg,jsxs as ig}from"react/jsx-runtime";import{Fragment as od,jsx as Z,jsxs as Xa}from"react/jsx-runtime";var Hl="k-dropdownlist",ed=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],td={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},Et={showValue:!0,arrowIconName:"caret-alt-down",size:l.medium,rounded:f.medium,fillMode:T.solid},Le=e=>{let{size:t=Et.size,rounded:o=Et.rounded,fillMode:s=Et.fillMode,arrowIconName:i=Et.arrowIconName,showValue:n=Et.showValue,valueIconName:d,prefix:c,suffix:m,value:b,placeholder:h,hover:w,focus:p,valid:N,invalid:v,required:S,loading:y,disabled:M,readonly:R,popup:E,opened:D,adaptive:st,adaptiveSettings:lo,adaptiveTitle:pa,adaptiveSubtitle:ma,adaptiveFilter:Ks,...Os}=e;return Xa(od,{children:[Xa(he,{...Os,size:t,rounded:o,fillMode:s,hover:w,focus:p,valid:N,invalid:v,required:S,loading:y,disabled:M,readonly:R,className:a(e.className,Hl,{"k-icon-picker":!n&&d}),children:[Z(ye,{children:c}),Z(nt,{placeholder:h,value:b,showValue:n,valueIconName:d}),Z(se,{valid:N,invalid:v,loading:y,disabled:M}),Z(ce,{loading:y,disabled:M}),Z(Ce,{children:m}),Z(x,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),D&&E&&Z(X,{className:"k-list-container k-dropdownlist-popup",children:E}),st&&Z(ke,{adaptive:!0,...lo,header:Z(pe,{actionsEnd:Z(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ks,inputValue:b,inputPlaceholder:h,title:pa,subtitle:ma}),children:Z("div",{className:"k-list-container",children:Xa(H,{size:"large",children:[Z(C,{text:"List item"}),Z(C,{text:"List item"}),Z(C,{text:"List item"})]})})})]})};Le.states=ed;Le.options=td;Le.className=Hl;Le.defaultOptions=Et;import{jsx as zg}from"react/jsx-runtime";import{jsx as $g,jsxs as Vg}from"react/jsx-runtime";import{Fragment as Yg,jsx as qg,jsxs as Qg}from"react/jsx-runtime";import{jsx as tk}from"react/jsx-runtime";import{jsx as sk,jsxs as ik}from"react/jsx-runtime";import{jsx as mk,jsxs as uk}from"react/jsx-runtime";import{Fragment as kk,jsx as Nk,jsxs as gk}from"react/jsx-runtime";import{Fragment as Ik,jsx as Ck,jsxs as Mk}from"react/jsx-runtime";import{Fragment as Xk,jsx as _k}from"react/jsx-runtime";import{Fragment as Zk,jsx as Yk}from"react/jsx-runtime";import{Fragment as ho,jsx as I,jsxs as K}from"react/jsx-runtime";var El="k-colorgradient-inputs",ad=[],rd={size:[l.small,l.medium,l.large]},zl={mode:"rgba",size:l.medium},zt=e=>{let{mode:t=zl.mode,size:o,...s}=e;return K("div",{...s,className:a(El,"k-hstack"),children:[I("div",{className:"k-vstack",children:I(x,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&K(ho,{children:[K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),I("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),I("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),I("label",{className:"k-colorgradient-input-label",children:"B"})]}),K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),I("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&K(ho,{children:[K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&K(ho,{children:[K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"V"})]}),K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),I("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&K(ho,{children:[K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&I(ho,{children:K("div",{className:"k-vstack k-flex-1",children:[I(Me,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),I("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};zt.states=ad;zt.options=rd;zt.className=El;zt.defaultOptions=zl;import{jsx as ft,jsxs as bt}from"react/jsx-runtime";var Kl="k-colorgradient-color-contrast",ld=[],sd={},id={},Kt=()=>bt("div",{className:a(Kl,"k-vbox"),children:[bt("div",{className:"k-contrast-ratio",children:[ft("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),bt("span",{className:"k-contrast-validation !k-text-success",children:[ft(k,{icon:"check"}),ft(k,{icon:"check"})]})]}),bt("div",{children:[ft("span",{children:"AA: 4.5"}),bt("span",{className:"k-contrast-validation !k-text-success",children:["Pass",ft(k,{icon:"check"})]})]}),bt("div",{children:[ft("span",{children:"AAA: 7.0"}),bt("span",{className:"k-contrast-validation !k-text-error",children:["Fail",ft(k,{icon:"x"})]})]})]});Kt.states=ld;Kt.options=sd;Kt.className=Kl;Kt.defaultOptions=id;import{jsx as ue,jsxs as No}from"react/jsx-runtime";var Wo="k-colorgradient",nd=[r.hover,r.focus,r.readonly,r.disabled],dd={size:[l.small,l.medium,l.large]},we={size:l.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"},Ze=e=>{let{size:t=we.size,mode:o=we.mode,readonly:s=we.readonly,disabled:i=we.disabled,gradientStyle:n=we.gradientStyle,dragHandleStyle:d=we.dragHandleStyle,alphaStyle:c=we.alphaStyle,alphaStyleHorizontal:m=we.alphaStyleHorizontal,contrast:b=we.contrast,dir:h,hover:w,focus:p,hoverHandle:N,focusHandle:v,canvasOrientation:S=we.canvasOrientation,...y}=e;return No("div",{...y,className:a(e.className,Wo,L(Wo,{size:t}),g(Wo,{hover:w,focus:p,readonly:s,disabled:i})),dir:h,children:[!S||S==="horizontal"&&No("div",{className:"k-colorgradient-canvas k-hstack",children:[ue("div",{className:"k-hsv-rectangle",style:n,children:ue("div",{className:"k-hsv-gradient",children:ue("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":v}),style:d})})}),No("div",{className:"k-hsv-controls k-hstack",children:[ue(Pa,{className:"k-hue-slider",hover:N,focus:v}),o!=="rgb"&&o!=="hsv"&&ue(Pa,{className:"k-alpha-slider",hover:N,focus:v,trackStyle:c})]})]}),S==="vertical"&&No("div",{className:"k-colorgradient-canvas k-vstack",children:[ue("div",{className:"k-hsv-rectangle",style:n,children:ue("div",{className:"k-hsv-gradient",children:ue("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":v}),style:d})})}),No("div",{className:"k-hsv-controls k-vstack",children:[ue(Ga,{className:"k-hue-slider",hover:N,focus:v}),o!=="rgb"&&o!=="hsv"&&ue(Ga,{className:"k-alpha-slider",hover:N,focus:v,trackStyle:m})]})]}),ue(zt,{mode:e.mode,size:t}),b&&ue(Kt,{})]})};Ze.states=nd;Ze.options=dd;Ze.className=Wo;Ze.defaultOptions=we;import{jsx as Lv}from"react/jsx-runtime";import{jsx as Cv}from"react/jsx-runtime";import{jsx as cd}from"react/jsx-runtime";var Ol=e=>cd("tr",{children:e.children});import{jsx as ud}from"react/jsx-runtime";var Ja="k-colorpalette-tile",pd=[r.hover,r.focus,r.selected],md={},go=e=>{let{color:t,tileSize:o,hover:s,focus:i,selected:n,...d}=e,c={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return ud("td",{...d,className:a(e.className,Ja,g(Ja,{hover:s,focus:i,selected:n})),style:c})};go.states=pd;go.options=md;go.className=Ja;import{jsx as ko}from"react/jsx-runtime";var Uo="k-colorpalette",fd=[r.disabled],bd={size:[l.small,l.medium,l.large]},Wa={columns:10,size:l.medium},Ot=e=>{let{size:t=Wa.size,palette:o,columns:s=Wa.columns,tileSize:i,disabled:n,...d}=e,c=[];if(o){let m=s||o.columns,b=o.colors?o.colors:o;Array.isArray(b)&&Array.from({length:Math.ceil(b.length/m)},(h,w)=>{let p=[];b.slice(w*m,(w+1)*m).map((v,S)=>{p.push(ko(go,{color:v,tileSize:i},S))});let N=ko(Ol,{children:p},w);c.push(N)})}return ko("div",{...d,className:a(e.className,Uo,g(Uo,{disabled:n}),L(Uo,{size:t})),children:ko("table",{className:"k-colorpalette-table",children:ko("tbody",{children:c.length>0?c:e.children})})})};Ot.states=fd;Ot.options=bd;Ot.className=Uo;Ot.defaultOptions=Wa;var Ua={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 Qv}from"react/jsx-runtime";import{jsx as fe,jsxs as Dt}from"react/jsx-runtime";var qo="k-coloreditor",Td=[r.focus],xd={size:[l.small,l.medium,l.large]},Ft={size:l.medium,view:"gradient",palette:Ua.office,actionButtons:!0,canvasOrientation:"horizontal"},Ie=e=>{let{size:t=Ft.size,view:o=Ft.view,palette:s=Ft.palette,color:i,currentColor:n,focus:d,focusView:c,dir:m,group:b,actionButtons:h=Ft.actionButtons,canvasOrientation:w=Ft.canvasOrientation,...p}=e;return Dt("div",{...p,className:a(e.className,"k-flatcolorpicker",qo,L(qo,{size:t}),g(qo,{focus:d})),dir:m,children:[Dt("div",{className:"k-coloreditor-header k-hstack",children:[fe("div",{className:"k-coloreditor-header-actions k-hstack",children:b&&Dt(B,{fillMode:"flat",children:[fe(x,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),fe(x,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),fe("div",{className:"k-spacer"}),Dt("div",{className:"k-coloreditor-header-actions k-hstack",children:[fe(x,{fillMode:"flat",icon:"droplet-slash",size:t}),Dt("div",{className:"k-coloreditor-preview k-vstack",children:[fe(_e,{className:"k-coloreditor-preview-color",color:i}),fe(_e,{className:"k-coloreditor-current-color",color:n})]})]})]}),fe("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?fe(Ze,{focus:c,size:t,canvasOrientation:w}):fe(Ot,{palette:s,size:t})}),h&&Dt(Je,{className:"k-coloreditor-footer",alignment:"start",children:[fe(x,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),fe(x,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};Ie.states=Td;Ie.options=xd;Ie.className=qo;Ie.defaultOptions=Ft;import{jsx as bL}from"react/jsx-runtime";import{jsx as NL}from"react/jsx-runtime";import{jsx as LL}from"react/jsx-runtime";import{jsx as CL}from"react/jsx-runtime";import{Fragment as gd,jsx as be,jsxs as Qa}from"react/jsx-runtime";var Dl="k-colorpicker",hd=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled],Nd={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},vo={arrowIconName:"caret-alt-down",size:he.defaultOptions.size,rounded:he.defaultOptions.rounded,fillMode:he.defaultOptions.fillMode},ze=e=>{let{size:t=vo.size,rounded:o=vo.rounded,fillMode:s=vo.fillMode,arrowIconName:i=vo.arrowIconName,prefix:n,suffix:d,value:c,placeholder:m,hover:b,focus:h,valid:w,invalid:p,required:N,disabled:v,valueIconName:S,popup:y,opened:M,adaptive:R,adaptiveSettings:E,adaptiveTitle:D,adaptiveSubtitle:st,...lo}=e;return Qa(gd,{children:[Qa(he,{...lo,size:t,rounded:o,fillMode:s,hover:b,focus:h,valid:w,invalid:p,required:N,disabled:v,className:a(e.className,Dl,"k-icon-picker"),children:[be(ye,{children:n}),be(nt,{placeholder:m,value:c,showValue:!1,valueIcon:be(_e,{className:"k-value-icon",color:c,iconName:S}),valueIconName:S}),be(Ce,{children:d}),be(x,{className:"k-input-button",icon:i,rounded:null,size:t,fillMode:s})]}),M&&y&&be(X,{className:"k-colorpicker-popup",children:y}),R&&be(ke,{adaptive:!0,...E,header:be(pe,{actionsEnd:be(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:D,subtitle:st}),footer:Qa(mo,{children:[be(x,{text:"Cancel",size:"large",themeColor:"base"}),be(x,{text:"Set",size:"large",themeColor:"primary"})]}),children:be(Ie,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};ze.states=hd;ze.options=Nd;ze.className=Dl;ze.defaultOptions=vo;import{jsx as WL}from"react/jsx-runtime";import{jsx as ZL}from"react/jsx-runtime";import{jsx as aw}from"react/jsx-runtime";import{jsx as iw}from"react/jsx-runtime";import{jsx as pw}from"react/jsx-runtime";import{jsx as bw}from"react/jsx-runtime";import{Fragment as Ya,jsx as _,jsxs as Lo}from"react/jsx-runtime";var Fl="k-combobox",vd=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],Ld={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},wo={size:G.defaultOptions.size,rounded:G.defaultOptions.rounded,fillMode:G.defaultOptions.fillMode,separators:!0},Tt=e=>{let{size:t=wo.size,rounded:o=wo.rounded,fillMode:s=wo.fillMode,separators:i=wo.separators,prefix:n,suffix:d,value:c,placeholder:m,hover:b,focus:h,valid:w,invalid:p,required:N,loading:v,disabled:S,popup:y,opened:M,readonly:R,adaptive:E,adaptiveSettings:D,adaptiveTitle:st,adaptiveSubtitle:lo,adaptiveCustomValue:pa,...ma}=e;return Lo(Ya,{children:[Lo(G,{...ma,size:t,rounded:o,fillMode:s,hover:b,focus:h,valid:w,invalid:p,required:N,loading:v,disabled:S,readonly:R,className:a(e.className,Fl),children:[n&&Lo(Ya,{children:[_(ye,{children:n}),i&&_(He,{})]}),_(ge,{placeholder:m,value:c}),_(se,{valid:w,invalid:p,loading:v,disabled:S}),_(ce,{loading:v,disabled:S}),_(Ne,{loading:v,disabled:S,readonly:R,value:c}),d&&Lo(Ya,{children:[i&&_(He,{}),_(Ce,{children:d})]}),_(x,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:s})]}),M&&y&&_(X,{className:"k-list-container k-comb