UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 73.2 kB
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var g=(e,t)=>s({[`${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"}),y=(e,t)=>s({"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 r={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},N={small:"small",medium:"medium",large:"large",full:"full"},f={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},b={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},a={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 sr,jsx as Sa}from"react/jsx-runtime";var xo="k-icon k-font-icon",tr=[],or={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},ar={},vt=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:p,...l}=e;return n?Sa("span",{...l,className:s(e.className,xo,g(xo,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):Sa(sr,{})};vt.states=tr;vt.options=or;vt.className=xo;vt.defaultOptions=ar;var ya=vt;import{Fragment as ir,jsx as Xt}from"react/jsx-runtime";var ho="k-icon k-svg-icon",rr=[],nr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},Ia={viewBox:"0 0 24 24"},Lt=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:p=Ia.viewBox,icon:l,...u}=e;if(!l)return Xt(ir,{});l==="none"&&{...u,className:s(e.className,ho,"k-none")};let d=typeof l=="object"&&l.name&&l.name;return Xt("span",{...u,className:s(e.className,ho,g("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:Xt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:p,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};Lt.states=rr;Lt.options=nr;Lt.className=ho;Lt.defaultOptions=Ia;var No=Lt;import*as Ma from"@progress/kendo-svg-icons";import{Fragment as Ca,jsx as gt}from"react/jsx-runtime";var lr=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),pr=[],cr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},ko={viewBox:"0 0 24 24",type:"svg"},I=e=>{let{size:t,themeColor:o,icon:n,type:i=ko.type,rotate:p,flip:l,viewBox:u=ko.viewBox,...d}=e;if(!n)return gt(Ca,{});if(i==="svg"){if(n==="none")return gt(No,{...d,icon:n,size:t});let x=lr(`${n}-icon`);return Ma[x]?gt(No,{...d,icon:Ma[x],size:t,themeColor:o,rotate:p,flip:l,viewBox:u}):gt(Ca,{})}return gt(ya,{...d,icon:n,size:t,themeColor:o,rotate:p,flip:l})};I.states=pr;I.options=cr;I.defaultOptions=ko;import{Fragment as ur,jsx as St,jsxs as Ta}from"react/jsx-runtime";var Jt="k-button",mr=[a.hover,a.focus,a.active,a.selected,a.disabled],dr={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark,b.inverse]},He={size:r.medium,rounded:N.medium,fillMode:f.solid,themeColor:b.base,showArrow:!1,arrowIconName:"caret-alt-down"},m=e=>{let{size:t=He.size,rounded:o=He.rounded,fillMode:n=He.fillMode,themeColor:i=He.themeColor,showArrow:p=He.showArrow,arrowIconName:l=He.arrowIconName,hover:u,focus:d,active:x,selected:h,disabled:v,icon:c,text:k,iconClassName:L,...S}=e,T=c!==void 0,B=e.children!==void 0;return Ta("button",{...S,className:s(e.className,Jt,g(Jt,{size:t,rounded:o,fillMode:n,themeColor:i}),y(Jt,{hover:u,focus:d,active:x,disabled:v,selected:h}),{"k-icon-button":!k&&!B&&T}),children:[c&&St(I,{className:s(L,"k-button-icon"),icon:c}),k?Ta(ur,{children:[k&&St("span",{className:"k-button-text",children:k}),e.children]}):e.children&&St("span",{className:"k-button-text",children:e.children}),p&&St("span",{className:"k-menu-button-arrow k-button-arrow",children:St(I,{icon:l})})]})};m.states=mr;m.options=dr;m.className=Jt;m.defaultOptions=He;import{jsx as fr}from"react/jsx-runtime";var Ut=e=>fr(m,{icon:"folder",...e,children:void 0});import{jsx as br}from"react/jsx-runtime";var vo=e=>br(m,{icon:"folder",children:"Button",...e});import{jsx as Ip}from"react/jsx-runtime";import{jsx as Nr}from"react/jsx-runtime";var yt="k-button-group",xr=[a.disabled],hr={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Ba={fillMode:f.solid},R=e=>{let{fillMode:t=Ba.fillMode,disabled:o,stretched:n,...i}=e;return Nr("div",{...i,className:s(e.className,yt,g(yt,{fillMode:t}),y(yt,{disabled:o}),{[`${yt}-stretched`]:n}),children:e.children})};R.states=xr;R.options=hr;R.className=yt;R.defaultOptions=Ba;import{Fragment as Gp,jsx as Hp,jsxs as Fp}from"react/jsx-runtime";import{Fragment as Jp,jsx as Xp,jsxs as Up}from"react/jsx-runtime";import{Fragment as jp,jsx as Yp,jsxs as ec}from"react/jsx-runtime";import{Fragment as nc,jsx as rc,jsxs as ic}from"react/jsx-runtime";import{jsx as Lr}from"react/jsx-runtime";var qt="k-input",kr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],vr={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Wt={size:r.medium,rounded:r.medium,fillMode:f.solid},w=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:u,size:d=Wt.size,rounded:x=Wt.rounded,fillMode:h=Wt.fillMode,...v}=e;return Lr("span",{...v,className:s(e.className,qt,g(qt,{size:d,rounded:x,fillMode:h}),y(qt,{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:u}))})};w.states=kr;w.options=vr;w.className=qt;w.defaultOptions=Wt;import{jsx as yr}from"react/jsx-runtime";var Zt="k-picker",gr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Sr={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Qt={size:r.medium,rounded:N.medium,fillMode:f.solid},se=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:u,size:d=Qt.size,rounded:x=Qt.rounded,fillMode:h=Qt.fillMode,...v}=e;return yr("span",{...v,className:s(e.className,Zt,g(Zt,{size:d,rounded:x,fillMode:h}),y(Zt,{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:u})),children:e.children})};se.states=gr;se.options=Sr;se.className=Zt;se.defaultOptions=Qt;import{Fragment as Cr,jsx as Lo}from"react/jsx-runtime";var Aa="k-clear-value",Ir=[a.disabled,a.loading,a.readonly],Mr={},re=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?Lo(Cr,{}):Lo("span",{className:s(e.className,Aa),children:Lo(I,{icon:"x"})})};re.states=Ir;re.options=Mr;re.className=Aa;import{jsx as Ar}from"react/jsx-runtime";var go="k-input-inner",Tr=[],Br={},Yt={type:"text",autocomplete:"off",value:"",placeholder:""},ne=e=>{let{value:t=Yt.value,type:o=Yt.type,placeholder:n=Yt.placeholder,autocomplete:i=Yt.autocomplete,...p}=e;return Ar("input",{...p,type:o,className:s(e.className,go,g(go,e)),placeholder:n,autoComplete:i,defaultValue:t})};ne.states=Tr;ne.options=Br;ne.className=go;import{jsx as za,jsxs as Er}from"react/jsx-runtime";var So="k-input-inner",zr=[],wr={},Ge=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:p,...l}=e;return Er("span",{...l,className:s(e.className,So,g(So,e)),children:[i,!i&&p&&za(I,{className:"k-input-value-icon",icon:p}),n&&!t&&o,n&&t&&za("span",{className:"k-input-value-text",children:t})]})};Ge.states=zr;Ge.options=wr;Ge.className=So;import{jsx as Rr}from"react/jsx-runtime";var yo="k-input-inner",Pr=[],Or={},wa={value:"",placeholder:""},Io=e=>{let{value:t=wa.value,placeholder:o=wa.placeholder,rows:n,...i}=e;return Rr("textarea",{...i,className:s(e.className,yo,g(yo,e)),placeholder:o,rows:n,defaultValue:t})};Io.states=Pr;Io.options=Or;Io.className=yo;import{Fragment as Hr,jsx as Ea}from"react/jsx-runtime";var Pa="k-input-loading-icon",Kr=[a.disabled,a.loading],Z=e=>{let{disabled:t,loading:o}=e;return t||!o?Ea(Hr,{}):Ea("span",{className:s(e.className,Pa,"k-icon k-i-loading")})};Z.states=Kr;Z.className=Pa;import{Fragment as $r,jsx as Oa}from"react/jsx-runtime";var Ra="k-input-validation-icon",Gr=[a.valid,a.invalid,a.disabled,a.loading],Fr={},q=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,p=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?Oa($r,{}):Oa(I,{className:s(Ra),icon:p})};q.states=Gr;q.options=Fr;q.className=Ra;import{Fragment as _r,jsx as Ka}from"react/jsx-runtime";var Dr="k-input-prefix",Vr={direction:"horizontal"},me=e=>{let{direction:t=Vr.direction,...o}=e;return e.children?Ka("span",{...o,className:s(Dr,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ka(_r,{})};import{Fragment as Ur,jsx as Ha}from"react/jsx-runtime";var Xr="k-input-suffix",Jr={direction:"horizontal"},de=e=>{let{direction:t=Jr.direction,...o}=e;return e.children?Ha("span",{...o,className:s(Xr,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ha(Ur,{})};import{jsx as Zc}from"react/jsx-runtime";import{jsx as em}from"react/jsx-runtime";import{jsx as Wr}from"react/jsx-runtime";var Ga="k-input-separator",qr={direction:"vertical"},be=e=>{let{direction:t=qr.direction,...o}=e;return Wr("span",{...o,className:s(Ga,e.className,{[`${Ga}-${t}`]:t})})};import{jsx as Fa,jsxs as Yr}from"react/jsx-runtime";var $a="k-color-preview",Zr=[],Qr={},Me=e=>{let{color:t,iconName:o,...n}=e;return Yr("span",{...n,className:s(e.className,$a,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Fa(I,{icon:o,className:"k-color-preview-icon"}),Fa("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Me.states=Zr;Me.options=Qr;Me.className=$a;import{jsx as Da}from"react/jsx-runtime";var Va="k-animation-container",jr=[],en={},_a={positionMode:"absolute"},Ce=e=>{let{positionMode:t=_a.positionMode,animationStyle:o,offset:n,...i}=e;return Da("div",{...i,style:{...n,...e.style},className:s(e.className,Va,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Da("div",{className:"k-child-animation-container",style:o,children:e.children})})};Ce.states=jr;Ce.options=en;Ce.className=Va;Ce.defaultOptions=_a;import{jsx as Xa}from"react/jsx-runtime";var Ja="k-popup",tn=[],on={},Ua={positionMode:"absolute"},$=e=>{let{offset:t,positionMode:o=Ua.positionMode,animationStyle:n,...i}=e;return Xa(Ce,{positionMode:o,offset:t,animationStyle:n,children:Xa("div",{...i,className:s(e.className,Ja),children:e.children})})};$.states=tn;$.options=on;$.className=Ja;$.defaultOptions=Ua;import{jsx as rn}from"react/jsx-runtime";var jt="k-actions",an=[],sn={},Mo={alignment:"start",orientation:"horizontal"},Te=e=>{let{alignment:t=Mo.alignment,orientation:o=Mo.orientation,...n}=e;return rn("div",{...n,className:s(jt,{[`${jt}-${t}`]:t,[`${jt}-${o}`]:o},e.className),children:e.children})};Te.states=an;Te.options=sn;Te.className=jt;Te.defaultOptions=Mo;import{jsx as ln}from"react/jsx-runtime";var nn="k-actionsheet-footer",qa={alignment:"stretched",orientation:"horizontal"},It=e=>{let{alignment:t=qa.alignment,orientation:o=qa.orientation,template:n,as:i=n?"div":Te,...p}=e;return ln(i,{...p,...!n&&{alignment:t,orientation:o},className:s(e.className,nn),children:e.children})};import{jsx as Mt,jsxs as mn}from"react/jsx-runtime";var Wa="k-searchbox",pn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],cn={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Co={showIcon:!0,icon:"search",size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode},xe=e=>{let{value:t,placeholder:o,size:n,rounded:i,fillMode:p,hover:l,focus:u,valid:d,invalid:x,required:h,loading:v,disabled:c,showIcon:k=Co.showIcon,icon:L=Co.icon,...S}=e;return mn(w,{...S,size:n,rounded:i,fillMode:p,hover:l,focus:u,valid:d,invalid:x,required:h,loading:v,disabled:c,className:s(e.className,Wa),children:[k&&Mt(I,{className:"k-input-icon",icon:L}),Mt(ne,{placeholder:o,value:t}),Mt(Z,{...e}),Mt(q,{...e}),Mt(re,{...e})]})};xe.states=pn;xe.options=cn;xe.className=Wa;xe.defaultOptions=Co;import{jsx as jm}from"react/jsx-runtime";import{Fragment as Za,jsx as Be,jsxs as To}from"react/jsx-runtime";var Qa="k-textbox",dn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],un={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Fe={showClearButton:!0,showValidationIcon:!0,size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},Q=e=>{let{size:t=Fe.size,rounded:o=Fe.rounded,fillMode:n=Fe.fillMode,separators:i=Fe.separators,showClearButton:p=Fe.showClearButton,showValidationIcon:l=Fe.showValidationIcon,prefix:u,suffix:d,type:x,value:h,placeholder:v,hover:c,focus:k,valid:L,invalid:S,required:T,loading:B,disabled:E,readonly:V,...Ie}=e;return To(w,{...Ie,size:t,rounded:o,fillMode:n,hover:c,focus:k,valid:L,invalid:S,required:T,loading:B,disabled:E,readonly:V,className:s(e.className,Qa),children:[u&&To(Za,{children:[Be(me,{children:u}),i&&Be(be,{})]}),Be(ne,{placeholder:v,value:h,type:x}),l&&Be(q,{valid:L,invalid:S,loading:B,disabled:E}),Be(Z,{loading:B,disabled:E}),p&&Be(re,{loading:B,disabled:E,readonly:V,value:h}),d&&To(Za,{children:[i&&Be(be,{}),Be(de,{children:d})]})]})};Q.states=dn;Q.options=un;Q.className=Qa;Q.defaultOptions=Fe;import{jsx as cd}from"react/jsx-runtime";import{Fragment as xd,jsx as bd}from"react/jsx-runtime";import{Fragment as Sd,jsx as gd}from"react/jsx-runtime";import{jsx as Ae,jsxs as Bo}from"react/jsx-runtime";var ja="k-actionsheet-titlebar",fn={},Y=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:i,filter:p,input:l,inputValue:u,inputPlaceholder:d,adaptive:x,children:h,...v}=e;return Bo("div",{...v,className:s(e.className,ja),children:[Bo("div",{className:"k-actionsheet-titlebar-group",children:[n&&Ae("div",{className:"k-actionsheet-actions",children:n}),!h&&Bo("div",{className:"k-actionsheet-title",children:[t&&Ae("div",{className:"k-text-center",children:t}),o&&Ae("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&Ae("div",{className:"k-actionsheet-title",children:h}),i&&Ae("div",{className:"k-actionsheet-actions",children:i})]}),(l||p)&&Ae("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Ae(Q,{value:u,placeholder:d,size:x?"large":"medium"}):Ae(xe,{placeholder:"Filter",size:x?"large":"medium"})})]})};Y.className=ja;Y.defaultOptions=fn;import{jsx as Ao,jsxs as Nn}from"react/jsx-runtime";var zo="k-actionsheet-view",bn=[],xn={},hn={},Qe=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:p,...l}=e,u=i?.type===Y&&Ao(Y,{adaptive:t,...i?.props}),d=p?.type===It&&Ao(It,{...p?.props});return Nn("div",{...l,className:s(e.className,zo,{[`${zo}-animated`]:o}),children:[u,Ao("div",{className:"k-actionsheet-content",children:n}),d]})};Qe.states=bn;Qe.options=xn;Qe.className=zo;Qe.defaultOptions=hn;import{jsx as eo,jsxs as Ln}from"react/jsx-runtime";var es="k-actionsheet",kn=[],vn={},Ct={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ie=e=>{let{side:t=Ct.side,fullscreen:o=Ct.fullscreen,adaptive:n=Ct.adaptive,overlay:i=Ct.overlay,template:p,children:l,header:u,footer:d,...x}=e;return Ln("div",{className:"k-actionsheet-container",children:[i&&eo("div",{className:"k-overlay"}),eo(Ce,{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:eo("div",{...x,className:s(e.className,es,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:p||eo(Qe,{header:u,footer:d,adaptive:n,...e,children:l})})})]})};ie.states=kn;ie.options=vn;ie.className=es;ie.defaultOptions=Ct;import{jsx as Ud}from"react/jsx-runtime";import{Fragment as Sn,jsx as Tt,jsxs as wo}from"react/jsx-runtime";var Eo="k-actionsheet-item",gn=[a.hover,a.focus,a.selected,a.disabled],Po=e=>{let{iconName:t,text:o,description:n,hover:i,focus:p,selected:l,disabled:u,...d}=e;return wo("span",{...d,className:s(e.className,Eo,y(Eo,{hover:i,focus:p,selected:l,disabled:u})),children:[!e.children&&Tt(Sn,{children:wo("span",{className:"k-actionsheet-action",children:[t&&Tt("span",{className:"k-icon-wrap",children:Tt(I,{className:"k-actionsheet-item-icon",icon:t})}),wo("span",{className:"k-actionsheet-item-text",children:[o&&Tt("span",{className:"k-actionsheet-item-title",children:o}),n&&Tt("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Po.states=gn;Po.className=Eo;import{jsx as ou,jsxs as au}from"react/jsx-runtime";import{jsx as iu}from"react/jsx-runtime";import{jsx as mu}from"react/jsx-runtime";import{jsx as bu}from"react/jsx-runtime";import{jsx as Ye,jsxs as Oo}from"react/jsx-runtime";var Bt="k-slider",yn=[a.hover,a.focus,a.active,a.disabled,a.readonly],In={},ze={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},j=e=>{let{type:t=ze.type,orientation:o=ze.orientation,readonly:n=ze.readonly,disabled:i=ze.disabled,handlePosition:p=ze.handlePosition,showButtons:l=ze.showButtons,showTicks:u=ze.showTicks,hover:d,focus:x,active:h,trackStyle:v,dir:c,...k}=e,L,S;return o==="horizontal"?(L=c==="rtl"?"caret-alt-left":"caret-alt-right",S=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(L="caret-alt-up",S="caret-alt-down"),Oo("div",{...k,className:s(Bt,e.className,y(Bt,{readonly:n,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[l&&Ye(m,{className:"k-button-decrease",rounded:"full",icon:S}),Oo("div",{className:"k-slider-track-wrap",children:[u&&Ye("ul",{className:"k-reset k-slider-items",children:e.children}),Oo("div",{className:"k-slider-track",style:v,children:[Ye("div",{className:"k-slider-selection"}),t==="range"&&Ye("span",{className:s("k-draghandle","k-draghandle-start",y(Bt,{hover:d,focus:x,active:h}))}),Ye("span",{className:s("k-draghandle",`k-draghandle-${p}`,y(Bt,{hover:d,focus:x,active:h}))})]})]}),l&&Ye(m,{className:"k-button-increase",rounded:"full",icon:L})]})};j.states=yn;j.options=In;j.className=Bt;j.defaultOptions=ze;import{jsx as os}from"react/jsx-runtime";var as="k-tick",Mn=[],Cn={},ss={label:!1},we=e=>{let{style:t,label:o=ss.label,orientation:n,large:i,text:p,...l}=e;return os("li",{...l,className:s(e.className,as,{[`k-tick-${n}`]:n,"k-tick-large":i}),style:t,children:o&&os("span",{className:"k-label",children:p})})};we.states=Mn;we.options=Cn;we.className=as;we.defaultOptions=ss;import{Fragment as Hu,jsx as Ku,jsxs as Gu}from"react/jsx-runtime";import{Fragment as _u,jsx as Vu,jsxs as Xu}from"react/jsx-runtime";import{Fragment as Zu,jsx as Wu,jsxs as Qu}from"react/jsx-runtime";import{Fragment as of,jsx as tf,jsxs as af}from"react/jsx-runtime";import{jsx as Tn}from"react/jsx-runtime";var Ro=e=>Tn(j,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Bn}from"react/jsx-runtime";var Ko=e=>Bn(j,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as rs,jsxs as wn}from"react/jsx-runtime";var ns="k-spin-button",An=[],zn={size:[r.small,r.medium,r.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Ho={size:r.medium,fillMode:f.solid},je=e=>{let{size:t=Ho.size,fillMode:o=Ho.fillMode,...n}=e;return wn("span",{...n,className:s(ns,e.className),children:[rs(m,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),rs(m,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};je.states=An;je.options=zn;je.className=ns;je.defaultOptions=Ho;import{Fragment as is,jsx as he,jsxs as Go}from"react/jsx-runtime";var ls="k-numerictextbox",En=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Pn={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},$e={showSpinButton:!0,showClearButton:!0,size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},P=e=>{let{size:t=$e.size,rounded:o=$e.rounded,fillMode:n=$e.fillMode,separators:i=$e.separators,showClearButton:p=$e.showClearButton,showSpinButton:l=$e.showSpinButton,prefix:u,suffix:d,value:x,placeholder:h,hover:v,focus:c,valid:k,invalid:L,required:S,loading:T,disabled:B,readonly:E,...V}=e;return Go(w,{...V,size:t,rounded:o,fillMode:n,hover:v,focus:c,valid:k,invalid:L,required:S,loading:T,disabled:B,readonly:E,className:s(e.className,ls),children:[u&&Go(is,{children:[he(me,{children:u}),i&&he(be,{})]}),he(ne,{placeholder:h,value:x}),he(q,{valid:k,invalid:L,loading:T,disabled:B}),he(Z,{loading:T,disabled:B}),p&&he(re,{loading:T,disabled:B,readonly:E,value:x}),d&&Go(is,{children:[i&&he(be,{}),he(de,{children:d})]}),l&&he(je,{className:"k-input-spinner",size:t,fillMode:n})]})};P.states=En;P.options=Pn;P.className=ls;P.defaultOptions=$e;import{jsx as Pf}from"react/jsx-runtime";import{jsx as Rn}from"react/jsx-runtime";var On="k-no-data",At=e=>Rn("span",{className:s(On,e.className),children:e.children});import{jsx as et,jsxs as cs}from"react/jsx-runtime";var Fo="k-list",Kn=[],Hn={size:[r.small,r.medium,r.large]},ms={size:r.medium},O=e=>{let{size:t=ms.size,virtualization:o,children:n,optionLabel:i,customValue:p,screenReaders:l,...u}=e,d,x,h,v,c=[];return n?n.map((k,L)=>{k.type===D?(k.props.root===!0?(d=k.props.label,k.props.children.map((S,T)=>{c.push(et(M,{...S.props},`optChild-${T}-${new Date().getTime()}`))})):k.props.children.forEach((S,T)=>{let B="";T===0&&(B=k.props.label),c.push(et(M,{className:T===0?"k-first":"",...S.props,groupLabel:B},`groupLabel-${T}-${new Date().getTime()}`))}),x=et(D,{label:d,virtualization:o,children:c})):k.type===M&&(c.push(et(M,{...k.props},`${k.type}-${L}`)),h=et(tt,{virtualization:o,children:c}),l&&(v=cs(At,{className:"k-sr-only",children:[c.length," items found."]})))}):v=et(At,{children:"No data found."}),cs("div",{...u,className:s(e.className,Fo,g(Fo,{size:t}),{"k-virtual-list":o}),children:[i,p,x,h,v]})};O.states=Kn;O.options=Hn;O.className=Fo;O.defaultOptions=ms;import{jsx as De,jsxs as $n}from"react/jsx-runtime";var $o="k-list",Gn=[],Fn={size:[r.small,r.medium,r.large]},ds={size:r.medium},Ve=e=>{let{size:t=ds.size,virtualization:o,children:n,...i}=e,p,l,u,d=[];return n?n.map((x,h)=>{x.type===D?(x.props.root===!0?(p=x.props.label,x.props.children.map((v,c)=>{d.push(De(M,{...v.props},`optChild-${c}-${new Date().getTime()}`))})):(d.push(De(us,{...x.props,children:x.props.label},`listChild-${h}`)),x.props.children.map((v,c)=>{d.push(De(M,{...v.props},`fwOptChild-${c}-${new Date().getTime()}`))})),l=De(D,{label:p,virtualization:o,children:d})):x.type===M&&(d.push(De(M,{...x.props},`${x.type}-${h}`)),u=De(tt,{virtualization:o,children:d}))}):u=De(At,{children:"No data found."}),$n("div",{...i,className:s(e.className,$o,g($o,{size:t}),{"k-virtual-list":o}),children:[l,u]})};Ve.states=Gn;Ve.options=Fn;Ve.className=$o;Ve.defaultOptions=ds;import{jsx as fs}from"react/jsx-runtime";var to="k-checkbox",Dn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Vn={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full]},Do={size:r.medium,rounded:N.medium},Ne=e=>{let{id:t,checked:o,indeterminate:n,hover:i,focus:p,disabled:l,invalid:u,valid:d,required:x,size:h=Do.size,rounded:v=Do.rounded,...c}=e;return fs("span",{className:"k-checkbox-wrap",children:fs("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:x,className:s(e.className,to,g(to,{size:h,rounded:v}),y(to,{hover:i,focus:p,disabled:l,invalid:u,valid:d,indeterminate:n,checked:o}))})})};Ne.states=Dn;Ne.options=Vn;Ne.className=to;Ne.defaultOptions=Do;var zt=Ne;import{jsx as Jn}from"react/jsx-runtime";var bs="k-checkbox-list",_n=[],Xn={},xs={layout:"vertical"},ot=e=>{let{layout:t=xs.layout,...o}=e;return Jn("ul",{...o,className:s(e.className,bs,{[`k-list-${t}`]:t}),children:e.children})};ot.states=_n;ot.options=Xn;ot.className=bs;ot.defaultOptions=xs;import{jsx as Zn}from"react/jsx-runtime";var hs="k-checkbox-list-item",Un=[],qn={},Wn={},at=e=>{let{...t}=e;return Zn("li",{...t,className:s(e.className,hs),children:e.children})};at.states=Un;at.options=qn;at.className=hs;at.defaultOptions=Wn;import{Fragment as Qn,jsx as Ns,jsxs as Yn}from"react/jsx-runtime";var Vo=({children:e,id:t,...o})=>Yn(Qn,{children:[Ns(zt,{id:t,...o}),Ns("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as db,jsx as mb,jsxs as ub}from"react/jsx-runtime";import{Fragment as Nb,jsx as hb,jsxs as kb}from"react/jsx-runtime";import{Fragment as yb,jsx as Sb,jsxs as Ib}from"react/jsx-runtime";import{jsx as Bb}from"react/jsx-runtime";import{jsx as Eb}from"react/jsx-runtime";import{jsx as oo,jsxs as oi}from"react/jsx-runtime";var _o="k-list-item",jn=[a.hover,a.focus,a.selected,a.disabled],ei={},ti={},M=e=>{let{text:t,groupLabel:o,group:n,showIcon:i,iconName:p,showCheckbox:l,checked:u,hover:d,focus:x,selected:h,disabled:v,...c}=e,k=t||e.children;return oi("li",{...c,className:s(e.className,n?"k-list-group-item":_o,y(_o,{hover:d,focus:x,disabled:v,selected:h})),children:[l&&oo(Ne,{checked:u}),i&&oo(I,{icon:p}),oo("span",{className:"k-list-item-text",children:k}),o&&o!==""&&oo("div",{className:"k-list-item-group-label",children:o})]})};M.states=jn;M.options=ei;M.className=_o;M.defaultOptions=ti;import{jsx as Xo,jsxs as si}from"react/jsx-runtime";var ai="k-list-content",tt=e=>{let{virtualization:t,...o}=e;return si("div",{...o,className:s(ai,e.className),children:[Xo("ul",{className:s("k-list-ul"),children:e.children}),t&&Xo("div",{className:"k-height-container",children:Xo("div",{})})]})};import{jsx as ks}from"react/jsx-runtime";var ri="k-list-group-sticky-header",vs=e=>ks("div",{className:s(ri,e.className),children:ks("div",{className:"k-list-header-text",children:e.children})});import{Fragment as ni,jsx as Ls,jsxs as ii}from"react/jsx-runtime";var D=e=>{let{virtualization:t,label:o}=e;return ii(ni,{children:[o&&Ls(vs,{children:o}),e.children&&Ls(tt,{virtualization:t,children:e.children})]})};import{jsx as gs}from"react/jsx-runtime";var li="k-list-group-item",us=e=>gs("li",{className:s(li,e.className),children:gs("span",{className:"k-list-item-text",children:e.children})});import{jsx as di}from"react/jsx-runtime";var Jo="k-list-optionlabel",pi=[a.hover,a.focus,a.selected,a.disabled],ci={},mi={},ao=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:p,...l}=e;return di("div",{...l,className:s(Jo,y(Jo,{hover:o,focus:n,selected:i,disabled:p})),children:t})};ao.states=pi;ao.options=ci;ao.className=Jo;ao.defaultOptions=mi;import{jsx as xi}from"react/jsx-runtime";var Uo="k-list-custom-value",ui=[a.hover,a.focus,a.selected,a.disabled],fi={},bi={},Ee=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:p,...l}=e;return xi("div",{...l,className:s(Uo,y(Uo,{hover:o,focus:n,selected:i,disabled:p})),children:t})};Ee.states=ui;Ee.options=fi;Ee.className=Uo;Ee.defaultOptions=bi;import{jsx as xx}from"react/jsx-runtime";import{jsx as vx}from"react/jsx-runtime";import{jsx as yx,jsxs as Ix}from"react/jsx-runtime";import{jsx as Bx,jsxs as Ax}from"react/jsx-runtime";import{jsx as Px}from"react/jsx-runtime";import{jsx as Hx,jsxs as Gx}from"react/jsx-runtime";import{jsx as Vx,jsxs as _x}from"react/jsx-runtime";import{Fragment as ki,jsx as _,jsxs as qo}from"react/jsx-runtime";var Ss="k-dropdownlist",hi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ni={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},st={showValue:!0,arrowIconName:"caret-alt-down",size:r.medium,rounded:N.medium,fillMode:f.solid},G=e=>{let{size:t=st.size,rounded:o=st.rounded,fillMode:n=st.fillMode,arrowIconName:i=st.arrowIconName,showValue:p=st.showValue,valueIconName:l,prefix:u,suffix:d,value:x,placeholder:h,hover:v,focus:c,valid:k,invalid:L,required:S,loading:T,disabled:B,readonly:E,popup:V,opened:Ie,adaptive:Nt,adaptiveSettings:kt,adaptiveTitle:fo,adaptiveSubtitle:bo,adaptiveFilter:js,...er}=e;return qo(ki,{children:[qo(se,{...er,size:t,rounded:o,fillMode:n,hover:v,focus:c,valid:k,invalid:L,required:S,loading:T,disabled:B,readonly:E,className:s(e.className,Ss,{"k-icon-picker":!p&&l}),children:[_(me,{children:u}),_(Ge,{placeholder:h,value:x,showValue:p,valueIconName:l}),_(q,{valid:k,invalid:L,loading:T,disabled:B}),_(Z,{loading:T,disabled:B}),_(de,{children:d}),_(m,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),Ie&&V&&_($,{className:"k-list-container k-dropdownlist-popup",children:V}),Nt&&_(ie,{adaptive:!0,...kt,header:_(Y,{actionsEnd:_(m,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:js,inputValue:x,inputPlaceholder:h,title:fo,subtitle:bo}),children:_("div",{className:"k-list-container",children:qo(O,{size:"large",children:[_(M,{text:"List item"}),_(M,{text:"List item"}),_(M,{text:"List item"})]})})})]})};G.states=hi;G.options=Ni;G.className=Ss;G.defaultOptions=st;import{jsx as vh}from"react/jsx-runtime";import{jsx as Ih,jsxs as Mh}from"react/jsx-runtime";import{Fragment as Ph,jsx as wh,jsxs as Eh}from"react/jsx-runtime";import{jsx as Hh}from"react/jsx-runtime";import{jsx as Vh,jsxs as _h}from"react/jsx-runtime";import{jsx as Wh,jsxs as Zh}from"react/jsx-runtime";import{Fragment as sN,jsx as oN,jsxs as aN}from"react/jsx-runtime";import{Fragment as dN,jsx as cN,jsxs as mN}from"react/jsx-runtime";import{Fragment as TN,jsx as CN}from"react/jsx-runtime";import{Fragment as ON,jsx as PN}from"react/jsx-runtime";import{Fragment as wt,jsx as A,jsxs as K}from"react/jsx-runtime";var ys="k-colorgradient-inputs",vi=[],Li={size:[r.small,r.medium,r.large]},Is={mode:"rgba",size:r.medium},rt=e=>{let{mode:t=Is.mode,size:o,...n}=e;return K("div",{...n,className:s(ys,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(m,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&K(wt,{children:[K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&K(wt,{children:[K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&K(wt,{children:[K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&K(wt,{children:[K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(wt,{children:K("div",{className:"k-vstack k-flex-1",children:[A(Q,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};rt.states=vi;rt.options=Li;rt.className=ys;rt.defaultOptions=Is;import{jsx as Xe,jsxs as Je}from"react/jsx-runtime";var Ms="k-colorgradient-color-contrast",gi=[],Si={},yi={},nt=()=>Je("div",{className:s(Ms,"k-vbox"),children:[Je("div",{className:"k-contrast-ratio",children:[Xe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Je("span",{className:"k-contrast-validation !k-text-success",children:[Xe(I,{icon:"check"}),Xe(I,{icon:"check"})]})]}),Je("div",{children:[Xe("span",{children:"AA: 4.5"}),Je("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Xe(I,{icon:"check"})]})]}),Je("div",{children:[Xe("span",{children:"AAA: 7.0"}),Je("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Xe(I,{icon:"x"})]})]})]});nt.states=gi;nt.options=Si;nt.className=Ms;nt.defaultOptions=yi;import{jsx as ee,jsxs as Et}from"react/jsx-runtime";var so="k-colorgradient",Ii=[a.hover,a.focus,a.readonly,a.disabled],Mi={size:[r.small,r.medium,r.large]},le={size:r.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"},Pe=e=>{let{size:t=le.size,mode:o=le.mode,readonly:n=le.readonly,disabled:i=le.disabled,gradientStyle:p=le.gradientStyle,dragHandleStyle:l=le.dragHandleStyle,alphaStyle:u=le.alphaStyle,alphaStyleHorizontal:d=le.alphaStyleHorizontal,contrast:x=le.contrast,dir:h,hover:v,focus:c,hoverHandle:k,focusHandle:L,canvasOrientation:S=le.canvasOrientation,...T}=e;return Et("div",{...T,className:s(e.className,so,g(so,{size:t}),y(so,{hover:v,focus:c,readonly:n,disabled:i})),dir:h,children:[!S||S==="horizontal"&&Et("div",{className:"k-colorgradient-canvas k-hstack",children:[ee("div",{className:"k-hsv-rectangle",style:p,children:ee("div",{className:"k-hsv-gradient",children:ee("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":L}),style:l})})}),Et("div",{className:"k-hsv-controls k-hstack",children:[ee(Ko,{className:"k-hue-slider",hover:k,focus:L}),o!=="rgb"&&o!=="hsv"&&ee(Ko,{className:"k-alpha-slider",hover:k,focus:L,trackStyle:u})]})]}),S==="vertical"&&Et("div",{className:"k-colorgradient-canvas k-vstack",children:[ee("div",{className:"k-hsv-rectangle",style:p,children:ee("div",{className:"k-hsv-gradient",children:ee("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":L}),style:l})})}),Et("div",{className:"k-hsv-controls k-vstack",children:[ee(Ro,{className:"k-hue-slider",hover:k,focus:L}),o!=="rgb"&&o!=="hsv"&&ee(Ro,{className:"k-alpha-slider",hover:k,focus:L,trackStyle:d})]})]}),ee(rt,{mode:e.mode,size:t}),x&&ee(nt,{})]})};Pe.states=Ii;Pe.options=Mi;Pe.className=so;Pe.defaultOptions=le;import{jsx as nk}from"react/jsx-runtime";import{jsx as ck}from"react/jsx-runtime";import{jsx as Ci}from"react/jsx-runtime";var Cs=e=>Ci("tr",{children:e.children});import{jsx as Ai}from"react/jsx-runtime";var Wo="k-colorpalette-tile",Ti=[a.hover,a.focus,a.selected],Bi={},Pt=e=>{let{color:t,tileSize:o,hover:n,focus:i,selected:p,...l}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Ai("td",{...l,className:s(e.className,Wo,y(Wo,{hover:n,focus:i,selected:p})),style:u})};Pt.states=Ti;Pt.options=Bi;Pt.className=Wo;import{jsx as Ot}from"react/jsx-runtime";var ro="k-colorpalette",zi=[a.disabled],wi={size:[r.small,r.medium,r.large]},Zo={columns:10,size:r.medium},it=e=>{let{size:t=Zo.size,palette:o,columns:n=Zo.columns,tileSize:i,disabled:p,...l}=e,u=[];if(o){let d=n||o.columns,x=o.colors?o.colors:o;Array.isArray(x)&&Array.from({length:Math.ceil(x.length/d)},(h,v)=>{let c=[];x.slice(v*d,(v+1)*d).map((L,S)=>{c.push(Ot(Pt,{color:L,tileSize:i},S))});let k=Ot(Cs,{children:c},v);u.push(k)})}return Ot("div",{...l,className:s(e.className,ro,y(ro,{disabled:p}),g(ro,{size:t})),children:Ot("table",{className:"k-colorpalette-table",children:Ot("tbody",{children:u.length>0?u:e.children})})})};it.states=zi;it.options=wi;it.className=ro;it.defaultOptions=Zo;var Qo={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 Ek}from"react/jsx-runtime";import{jsx as te,jsxs as lt}from"react/jsx-runtime";var no="k-coloreditor",Ei=[a.focus],Pi={size:[r.small,r.medium,r.large]},pt={size:r.medium,view:"gradient",palette:Qo.office,actionButtons:!0,canvasOrientation:"horizontal"},ue=e=>{let{size:t=pt.size,view:o=pt.view,palette:n=pt.palette,color:i,currentColor:p,focus:l,focusView:u,dir:d,group:x,actionButtons:h=pt.actionButtons,canvasOrientation:v=pt.canvasOrientation,...c}=e;return lt("div",{...c,className:s(e.className,"k-flatcolorpicker",no,g(no,{size:t}),y(no,{focus:l})),dir:d,children:[lt("div",{className:"k-coloreditor-header k-hstack",children:[te("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&lt(R,{fillMode:"flat",children:[te(m,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),te(m,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),te("div",{className:"k-spacer"}),lt("div",{className:"k-coloreditor-header-actions k-hstack",children:[te(m,{fillMode:"flat",icon:"droplet-slash",size:t}),lt("div",{className:"k-coloreditor-preview k-vstack",children:[te(Me,{className:"k-coloreditor-preview-color",color:i}),te(Me,{className:"k-coloreditor-current-color",color:p})]})]})]}),te("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?te(Pe,{focus:u,size:t,canvasOrientation:v}):te(it,{palette:n,size:t})}),h&&lt(Te,{className:"k-coloreditor-footer",alignment:"start",children:[te(m,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),te(m,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ue.states=Ei;ue.options=Pi;ue.className=no;ue.defaultOptions=pt;import{jsx as Yk}from"react/jsx-runtime";import{jsx as ov}from"react/jsx-runtime";import{jsx as nv}from"react/jsx-runtime";import{jsx as cv}from"react/jsx-runtime";import{Fragment as Ki,jsx as oe,jsxs as jo}from"react/jsx-runtime";var Ts="k-colorpicker",Oi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],Ri={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Rt={arrowIconName:"caret-alt-down",size:se.defaultOptions.size,rounded:se.defaultOptions.rounded,fillMode:se.defaultOptions.fillMode},ke=e=>{let{size:t=Rt.size,rounded:o=Rt.rounded,fillMode:n=Rt.fillMode,arrowIconName:i=Rt.arrowIconName,prefix:p,suffix:l,value:u,placeholder:d,hover:x,focus:h,valid:v,invalid:c,required:k,disabled:L,valueIconName:S,popup:T,opened:B,adaptive:E,adaptiveSettings:V,adaptiveTitle:Ie,adaptiveSubtitle:Nt,...kt}=e;return jo(Ki,{children:[jo(se,{...kt,size:t,rounded:o,fillMode:n,hover:x,focus:h,valid:v,invalid:c,required:k,disabled:L,className:s(e.className,Ts,"k-icon-picker"),children:[oe(me,{children:p}),oe(Ge,{placeholder:d,value:u,showValue:!1,valueIcon:oe(Me,{className:"k-value-icon",color:u,iconName:S}),valueIconName:S}),oe(de,{children:l}),oe(m,{className:"k-input-button",icon:i,rounded:null,size:t,fillMode:n})]}),B&&T&&oe($,{className:"k-colorpicker-popup",children:T}),E&&oe(ie,{adaptive:!0,...V,header:oe(Y,{actionsEnd:oe(m,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:Ie,subtitle:Nt}),footer:jo(It,{children:[oe(m,{text:"Cancel",size:"large",themeColor:"base"}),oe(m,{text:"Set",size:"large",themeColor:"primary"})]}),children:oe(ue,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};ke.states=Oi;ke.options=Ri;ke.className=Ts;ke.defaultOptions=Rt;import{jsx as Av}from"react/jsx-runtime";import{jsx as Ov}from"react/jsx-runtime";import{jsx as Fv}from"react/jsx-runtime";import{jsx as _v}from"react/jsx-runtime";import{jsx as qv}from"react/jsx-runtime";import{jsx as Yv}from"react/jsx-runtime";import{Fragment as ea,jsx as F,jsxs as Kt}from"react/jsx-runtime";var Bs="k-combobox",Gi=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Fi={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Ht={size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},Ue=e=>{let{size:t=Ht.size,rounded:o=Ht.rounded,fillMode:n=Ht.fillMode,separators:i=Ht.separators,prefix:p,suffix:l,value:u,placeholder:d,hover:x,focus:h,valid:v,invalid:c,required:k,loading:L,disabled:S,popup:T,opened:B,readonly:E,adaptive:V,adaptiveSettings:Ie,adaptiveTitle:Nt,adaptiveSubtitle:kt,adaptiveCustomValue:fo,...bo}=e;return Kt(ea,{children:[Kt(w,{...bo,size:t,rounded:o,fillMode:n,hover:x,focus:h,valid:v,invalid:c,required:k,loading:L,disabled:S,readonly:E,className:s(e.className,Bs),children:[p&&Kt(ea,{children:[F(me,{children:p}),i&&F(be,{})]}),F(ne,{placeholder:d,value:u}),F(q,{valid:v,invalid:c,loading:L,disabled:S}),F(Z,{loading:L,disabled:S}),F(re,{loading:L,disabled:S,readonly:E,value:u}),l&&Kt(ea,{children:[i&&F(be,{}),F(de,{children:l})]}),F(m,{className:"k-i