UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 63.2 kB
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,r)=>t[r]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var g=(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"}),y=(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 n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},u={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},d={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},s={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 fa,jsx as Uo}from"react/jsx-runtime";var Ut="k-icon k-font-icon",da=[],ma={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},ua={},at=e=>{let{size:t,themeColor:o,icon:r,rotate:p,flip:c,...i}=e;return r?Uo("span",{...i,className:a(e.className,Ut,g(Ut,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${p}`]:p,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"})}):Uo(fa,{})};at.states=da;at.options=ma;at.className=Ut;at.defaultOptions=ua;var qo=at;import{Fragment as ha,jsx as Ct}from"react/jsx-runtime";var qt="k-icon k-svg-icon",ba=[],xa={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},Wo={viewBox:"0 0 24 24"},nt=e=>{let{size:t,themeColor:o,rotate:r,flip:p,viewBox:c=Wo.viewBox,icon:i,...m}=e;if(!i)return Ct(ha,{});i==="none"&&{...m,className:a(e.className,qt,"k-none")};let b=typeof i=="object"&&i.name&&i.name;return Ct("span",{...m,className:a(e.className,qt,g("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"}),children:Ct("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:c,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:e.children})})};nt.states=ba;nt.options=xa;nt.className=qt;nt.defaultOptions=Wo;var Wt=nt;import*as Qo from"@progress/kendo-svg-icons";import{Fragment as Yo,jsx as rt}from"react/jsx-runtime";var Na=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),va=[],La={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},Qt={viewBox:"0 0 24 24",type:"svg"},I=e=>{let{size:t,themeColor:o,icon:r,type:p=Qt.type,rotate:c,flip:i,viewBox:m=Qt.viewBox,...b}=e;if(!r)return rt(Yo,{});if(p==="svg"){if(r==="none")return rt(Wt,{...b,icon:r,size:t});let x=Na(`${r}-icon`);return Qo[x]?rt(Wt,{...b,icon:Qo[x],size:t,themeColor:o,rotate:c,flip:i,viewBox:m}):rt(Yo,{})}return rt(qo,{...b,icon:r,size:t,themeColor:o,rotate:c,flip:i})};I.states=va;I.options=La;I.defaultOptions=Qt;import{Fragment as ga,jsx as it,jsxs as Zo}from"react/jsx-runtime";var At="k-button",ka=[s.hover,s.focus,s.active,s.selected,s.disabled],Sa={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark,d.inverse]},Me={size:n.medium,rounded:f.medium,fillMode:u.solid,themeColor:d.base,showArrow:!1,arrowIconName:"caret-alt-down"},L=e=>{let{size:t=Me.size,rounded:o=Me.rounded,fillMode:r=Me.fillMode,themeColor:p=Me.themeColor,showArrow:c=Me.showArrow,arrowIconName:i=Me.arrowIconName,hover:m,focus:b,active:x,selected:h,disabled:k,icon:l,text:N,iconClassName:v,...S}=e,C=l!==void 0,A=e.children!==void 0;return Zo("button",{...S,className:a(e.className,At,g(At,{size:t,rounded:o,fillMode:r,themeColor:p}),y(At,{hover:m,focus:b,active:x,disabled:k,selected:h}),{"k-icon-button":!N&&!A&&C}),children:[l&&it(I,{className:a(v,"k-button-icon"),icon:l}),N?Zo(ga,{children:[N&&it("span",{className:"k-button-text",children:N}),e.children]}):e.children&&it("span",{className:"k-button-text",children:e.children}),c&&it("span",{className:"k-menu-button-arrow k-button-arrow",children:it(I,{icon:i})})]})};L.states=ka;L.options=Sa;L.className=At;L.defaultOptions=Me;import{jsx as Ia}from"react/jsx-runtime";var Tt=e=>Ia(L,{icon:"folder",...e,children:void 0});import{jsx as Ma}from"react/jsx-runtime";var Yt=e=>Ma(L,{icon:"folder",children:"Button",...e});import{jsx as sl}from"react/jsx-runtime";import{jsx as Aa}from"react/jsx-runtime";var lt="k-button-group",ya=[s.disabled],Ca={fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},jo={fillMode:u.solid},G=e=>{let{fillMode:t=jo.fillMode,disabled:o,stretched:r,...p}=e;return Aa("div",{...p,className:a(e.className,lt,g(lt,{fillMode:t}),y(lt,{disabled:o}),{[`${lt}-stretched`]:r}),children:e.children})};G.states=ya;G.options=Ca;G.className=lt;G.defaultOptions=jo;import{Fragment as hl,jsx as xl,jsxs as Nl}from"react/jsx-runtime";import{Fragment as Il,jsx as gl,jsxs as Ml}from"react/jsx-runtime";import{Fragment as zl,jsx as wl,jsxs as El}from"react/jsx-runtime";import{Fragment as Hl,jsx as Rl,jsxs as Gl}from"react/jsx-runtime";import{jsx as za}from"react/jsx-runtime";var wt="k-input",Ta=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],wa={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},zt={size:n.medium,rounded:n.medium,fillMode:u.solid},z=e=>{let{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:m,size:b=zt.size,rounded:x=zt.rounded,fillMode:h=zt.fillMode,...k}=e;return za("span",{...k,className:a(e.className,wt,g(wt,{size:b,rounded:x,fillMode:h}),y(wt,{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:m}))})};z.states=Ta;z.options=wa;z.className=wt;z.defaultOptions=zt;import{jsx as Oa}from"react/jsx-runtime";var Et="k-picker",Ea=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Pa={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},Pt={size:n.medium,rounded:f.medium,fillMode:u.solid},W=e=>{let{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:m,size:b=Pt.size,rounded:x=Pt.rounded,fillMode:h=Pt.fillMode,...k}=e;return Oa("span",{...k,className:a(e.className,Et,g(Et,{size:b,rounded:x,fillMode:h}),y(Et,{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:m})),children:e.children})};W.states=Ea;W.options=Pa;W.className=Et;W.defaultOptions=Pt;import{Fragment as Ra,jsx as Zt}from"react/jsx-runtime";var es="k-clear-value",Ba=[s.disabled,s.loading,s.readonly],Ka={},Q=e=>{let{disabled:t,loading:o,readonly:r,value:p}=e;return t||r||o||!p?Zt(Ra,{}):Zt("span",{className:a(e.className,es),children:Zt(I,{icon:"x"})})};Q.states=Ba;Q.options=Ka;Q.className=es;import{jsx as $a}from"react/jsx-runtime";var jt="k-input-inner",Ha=[],Ga={},Ot={type:"text",autocomplete:"off",value:"",placeholder:""},Y=e=>{let{value:t=Ot.value,type:o=Ot.type,placeholder:r=Ot.placeholder,autocomplete:p=Ot.autocomplete,...c}=e;return $a("input",{...c,type:o,className:a(e.className,jt,g(jt,e)),placeholder:r,autoComplete:p,defaultValue:t})};Y.states=Ha;Y.options=Ga;Y.className=jt;import{jsx as ts,jsxs as _a}from"react/jsx-runtime";var eo="k-input-inner",Da=[],Va={},ye=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:p,valueIconName:c,...i}=e;return _a("span",{...i,className:a(e.className,eo,g(eo,e)),children:[p,!p&&c&&ts(I,{className:"k-input-value-icon",icon:c}),r&&!t&&o,r&&t&&ts("span",{className:"k-input-value-text",children:t})]})};ye.states=Da;ye.options=Va;ye.className=eo;import{jsx as Fa}from"react/jsx-runtime";var to="k-input-inner",Xa=[],Ja={},os={value:"",placeholder:""},oo=e=>{let{value:t=os.value,placeholder:o=os.placeholder,rows:r,...p}=e;return Fa("textarea",{...p,className:a(e.className,to,g(to,e)),placeholder:o,rows:r,defaultValue:t})};oo.states=Xa;oo.options=Ja;oo.className=to;import{Fragment as qa,jsx as ss}from"react/jsx-runtime";var as="k-input-loading-icon",Ua=[s.disabled,s.loading],_=e=>{let{disabled:t,loading:o}=e;return t||!o?ss(qa,{}):ss("span",{className:a(e.className,as,"k-icon k-i-loading")})};_.states=Ua;_.className=as;import{Fragment as Ya,jsx as ns}from"react/jsx-runtime";var rs="k-input-validation-icon",Wa=[s.valid,s.invalid,s.disabled,s.loading],Qa={},V=e=>{let{valid:t,invalid:o,disabled:r,loading:p}=e,c=o?"warning-circle":"check-circle";return r||p||!!!(t||o)?ns(Ya,{}):ns(I,{className:a(rs),icon:c})};V.states=Wa;V.options=Qa;V.className=rs;import{Fragment as en,jsx as is}from"react/jsx-runtime";var Za="k-input-prefix",ja={direction:"horizontal"},ee=e=>{let{direction:t=ja.direction,...o}=e;return e.children?is("span",{...o,className:a(Za,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):is(en,{})};import{Fragment as sn,jsx as ls}from"react/jsx-runtime";var tn="k-input-suffix",on={direction:"horizontal"},te=e=>{let{direction:t=on.direction,...o}=e;return e.children?ls("span",{...o,className:a(tn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ls(sn,{})};import{jsx as Ac}from"react/jsx-runtime";import{jsx as Ec}from"react/jsx-runtime";import{jsx as nn}from"react/jsx-runtime";var cs="k-input-separator",an={direction:"vertical"},se=e=>{let{direction:t=an.direction,...o}=e;return nn("span",{...o,className:a(cs,e.className,{[`${cs}-${t}`]:t})})};import{jsx as ps,jsxs as cn}from"react/jsx-runtime";var ds="k-color-preview",rn=[],ln={},me=e=>{let{color:t,iconName:o,...r}=e;return cn("span",{...r,className:a(e.className,ds,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ps(I,{icon:o,className:"k-color-preview-icon"}),ps("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};me.states=rn;me.options=ln;me.className=ds;import{jsx as ms}from"react/jsx-runtime";var us="k-animation-container",pn=[],dn={},fs={positionMode:"absolute"},ue=e=>{let{positionMode:t=fs.positionMode,animationStyle:o,offset:r,...p}=e;return ms("div",{...p,style:{...r,...e.style},className:a(e.className,us,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:ms("div",{className:"k-child-animation-container",style:o,children:e.children})})};ue.states=pn;ue.options=dn;ue.className=us;ue.defaultOptions=fs;import{jsx as bs}from"react/jsx-runtime";var xs="k-popup",mn=[],un={},hs={positionMode:"absolute"},$=e=>{let{offset:t,positionMode:o=hs.positionMode,animationStyle:r,...p}=e;return bs(ue,{positionMode:o,offset:t,animationStyle:r,children:bs("div",{...p,className:a(e.className,xs),children:e.children})})};$.states=mn;$.options=un;$.className=xs;$.defaultOptions=hs;import{jsx as xn}from"react/jsx-runtime";var Bt="k-actions",fn=[],bn={},so={alignment:"start",orientation:"horizontal"},fe=e=>{let{alignment:t=so.alignment,orientation:o=so.orientation,...r}=e;return xn("div",{...r,className:a(Bt,{[`${Bt}-${t}`]:t,[`${Bt}-${o}`]:o},e.className),children:e.children})};fe.states=fn;fe.options=bn;fe.className=Bt;fe.defaultOptions=so;import{jsx as Nn}from"react/jsx-runtime";var hn="k-actionsheet-footer",Ns={alignment:"stretched",orientation:"horizontal"},ct=e=>{let{alignment:t=Ns.alignment,orientation:o=Ns.orientation,template:r,as:p=r?"div":fe,...c}=e;return Nn(p,{...c,...!r&&{alignment:t,orientation:o},className:a(e.className,hn),children:e.children})};import{jsx as pt,jsxs as kn}from"react/jsx-runtime";var vs="k-searchbox",vn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Ln={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},ao={showIcon:!0,icon:"search",size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode},ae=e=>{let{value:t,placeholder:o,size:r,rounded:p,fillMode:c,hover:i,focus:m,valid:b,invalid:x,required:h,loading:k,disabled:l,showIcon:N=ao.showIcon,icon:v=ao.icon,...S}=e;return kn(z,{...S,size:r,rounded:p,fillMode:c,hover:i,focus:m,valid:b,invalid:x,required:h,loading:k,disabled:l,className:a(e.className,vs),children:[N&&pt(I,{className:"k-input-icon",icon:v}),pt(Y,{placeholder:o,value:t}),pt(_,{...e}),pt(V,{...e}),pt(Q,{...e})]})};ae.states=vn;ae.options=Ln;ae.className=vs;ae.defaultOptions=ao;import{jsx as zp}from"react/jsx-runtime";import{Fragment as Ls,jsx as be,jsxs as no}from"react/jsx-runtime";var ks="k-textbox",Sn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],gn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},Ce={showClearButton:!0,showValidationIcon:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},xe=e=>{let{size:t=Ce.size,rounded:o=Ce.rounded,fillMode:r=Ce.fillMode,separators:p=Ce.separators,showClearButton:c=Ce.showClearButton,showValidationIcon:i=Ce.showValidationIcon,prefix:m,suffix:b,type:x,value:h,placeholder:k,hover:l,focus:N,valid:v,invalid:S,required:C,loading:A,disabled:E,readonly:H,...de}=e;return no(z,{...de,size:t,rounded:o,fillMode:r,hover:l,focus:N,valid:v,invalid:S,required:C,loading:A,disabled:E,readonly:H,className:a(e.className,ks),children:[m&&no(Ls,{children:[be(ee,{children:m}),p&&be(se,{})]}),be(Y,{placeholder:k,value:h,type:x}),i&&be(V,{valid:v,invalid:S,loading:A,disabled:E}),be(_,{loading:A,disabled:E}),c&&be(Q,{loading:A,disabled:E,readonly:H,value:h}),b&&no(Ls,{children:[p&&be(se,{}),be(te,{children:b})]})]})};xe.states=Sn;xe.options=gn;xe.className=ks;xe.defaultOptions=Ce;import{jsx as Vp}from"react/jsx-runtime";import{Fragment as qp,jsx as Up}from"react/jsx-runtime";import{Fragment as td,jsx as ed}from"react/jsx-runtime";import{jsx as he,jsxs as ro}from"react/jsx-runtime";var gs="k-actionsheet-titlebar",In={},X=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:p,filter:c,input:i,inputValue:m,inputPlaceholder:b,adaptive:x,children:h,...k}=e;return ro("div",{...k,className:a(e.className,gs),children:[ro("div",{className:"k-actionsheet-titlebar-group",children:[r&&he("div",{className:"k-actionsheet-actions",children:r}),!h&&ro("div",{className:"k-actionsheet-title",children:[t&&he("div",{className:"k-text-center",children:t}),o&&he("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&he("div",{className:"k-actionsheet-title",children:h}),p&&he("div",{className:"k-actionsheet-actions",children:p})]}),(i||c)&&he("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?he(xe,{value:m,placeholder:b,size:x?"large":"medium"}):he(ae,{placeholder:"Filter",size:x?"large":"medium"})})]})};X.className=gs;X.defaultOptions=In;import{jsx as io,jsxs as An}from"react/jsx-runtime";var lo="k-actionsheet-view",Mn=[],yn={},Cn={},He=e=>{let{adaptive:t,animated:o,children:r,header:p,footer:c,...i}=e,m=p?.type===X&&io(X,{adaptive:t,...p?.props}),b=c?.type===ct&&io(ct,{...c?.props});return An("div",{...i,className:a(e.className,lo,{[`${lo}-animated`]:o}),children:[m,io("div",{className:"k-actionsheet-content",children:r}),b]})};He.states=Mn;He.options=yn;He.className=lo;He.defaultOptions=Cn;import{jsx as Kt,jsxs as zn}from"react/jsx-runtime";var Is="k-actionsheet",Tn=[],wn={},dt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Z=e=>{let{side:t=dt.side,fullscreen:o=dt.fullscreen,adaptive:r=dt.adaptive,overlay:p=dt.overlay,template:c,children:i,header:m,footer:b,...x}=e;return zn("div",{className:"k-actionsheet-container",children:[p&&Kt("div",{className:"k-overlay"}),Kt(ue,{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:Kt("div",{...x,className:a(e.className,Is,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:c||Kt(He,{header:m,footer:b,adaptive:r,...e,children:i})})})]})};Z.states=Tn;Z.options=wn;Z.className=Is;Z.defaultOptions=dt;import{jsx as Md}from"react/jsx-runtime";import{Fragment as Pn,jsx as mt,jsxs as co}from"react/jsx-runtime";var po="k-actionsheet-item",En=[s.hover,s.focus,s.selected,s.disabled],mo=e=>{let{iconName:t,text:o,description:r,hover:p,focus:c,selected:i,disabled:m,...b}=e;return co("span",{...b,className:a(e.className,po,y(po,{hover:p,focus:c,selected:i,disabled:m})),children:[!e.children&&mt(Pn,{children:co("span",{className:"k-actionsheet-action",children:[t&&mt("span",{className:"k-icon-wrap",children:mt(I,{className:"k-actionsheet-item-icon",icon:t})}),co("span",{className:"k-actionsheet-item-text",children:[o&&mt("span",{className:"k-actionsheet-item-title",children:o}),r&&mt("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};mo.states=En;mo.className=po;import{jsx as Od,jsxs as Bd}from"react/jsx-runtime";import{jsx as Gd}from"react/jsx-runtime";import{jsx as _d}from"react/jsx-runtime";import{jsx as Ud}from"react/jsx-runtime";import{jsx as Ge,jsxs as uo}from"react/jsx-runtime";var ut="k-slider",On=[s.hover,s.focus,s.active,s.disabled,s.readonly],Bn={},Ne={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},J=e=>{let{type:t=Ne.type,orientation:o=Ne.orientation,readonly:r=Ne.readonly,disabled:p=Ne.disabled,handlePosition:c=Ne.handlePosition,showButtons:i=Ne.showButtons,showTicks:m=Ne.showTicks,hover:b,focus:x,active:h,trackStyle:k,dir:l,...N}=e,v,S;return o==="horizontal"?(v=l==="rtl"?"caret-alt-left":"caret-alt-right",S=l==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(v="caret-alt-up",S="caret-alt-down"),uo("div",{...N,className:a(ut,e.className,y(ut,{readonly:r,disabled:p}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:l,children:[i&&Ge(L,{className:"k-button-decrease",rounded:"full",icon:S}),uo("div",{className:"k-slider-track-wrap",children:[m&&Ge("ul",{className:"k-reset k-slider-items",children:e.children}),uo("div",{className:"k-slider-track",style:k,children:[Ge("div",{className:"k-slider-selection"}),t==="range"&&Ge("span",{className:a("k-draghandle","k-draghandle-start",y(ut,{hover:b,focus:x,active:h}))}),Ge("span",{className:a("k-draghandle",`k-draghandle-${c}`,y(ut,{hover:b,focus:x,active:h}))})]})]}),i&&Ge(L,{className:"k-button-increase",rounded:"full",icon:v})]})};J.states=On;J.options=Bn;J.className=ut;J.defaultOptions=Ne;import{jsx as ys}from"react/jsx-runtime";var Cs="k-tick",Kn=[],Rn={},As={label:!1},ve=e=>{let{style:t,label:o=As.label,orientation:r,large:p,text:c,...i}=e;return ys("li",{...i,className:a(e.className,Cs,{[`k-tick-${r}`]:r,"k-tick-large":p}),style:t,children:o&&ys("span",{className:"k-label",children:c})})};ve.states=Kn;ve.options=Rn;ve.className=Cs;ve.defaultOptions=As;import{Fragment as xm,jsx as bm,jsxs as hm}from"react/jsx-runtime";import{Fragment as Sm,jsx as km,jsxs as gm}from"react/jsx-runtime";import{Fragment as Am,jsx as Cm,jsxs as Tm}from"react/jsx-runtime";import{Fragment as Om,jsx as Pm,jsxs as Bm}from"react/jsx-runtime";import{jsx as Hn}from"react/jsx-runtime";var fo=e=>Hn(J,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Gn}from"react/jsx-runtime";var bo=e=>Gn(J,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Ts,jsxs as Vn}from"react/jsx-runtime";var ws="k-spin-button",$n=[],Dn={size:[n.small,n.medium,n.large],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},xo={size:n.medium,fillMode:u.solid},$e=e=>{let{size:t=xo.size,fillMode:o=xo.fillMode,...r}=e;return Vn("span",{...r,className:a(ws,e.className),children:[Ts(L,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Ts(L,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};$e.states=$n;$e.options=Dn;$e.className=ws;$e.defaultOptions=xo;import{Fragment as zs,jsx as ne,jsxs as ho}from"react/jsx-runtime";var Es="k-numerictextbox",_n=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Xn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},Ae={showSpinButton:!0,showClearButton:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},B=e=>{let{size:t=Ae.size,rounded:o=Ae.rounded,fillMode:r=Ae.fillMode,separators:p=Ae.separators,showClearButton:c=Ae.showClearButton,showSpinButton:i=Ae.showSpinButton,prefix:m,suffix:b,value:x,placeholder:h,hover:k,focus:l,valid:N,invalid:v,required:S,loading:C,disabled:A,readonly:E,...H}=e;return ho(z,{...H,size:t,rounded:o,fillMode:r,hover:k,focus:l,valid:N,invalid:v,required:S,loading:C,disabled:A,readonly:E,className:a(e.className,Es),children:[m&&ho(zs,{children:[ne(ee,{children:m}),p&&ne(se,{})]}),ne(Y,{placeholder:h,value:x}),ne(V,{valid:N,invalid:v,loading:C,disabled:A}),ne(_,{loading:C,disabled:A}),c&&ne(Q,{loading:C,disabled:A,readonly:E,value:x}),b&&ho(zs,{children:[p&&ne(se,{}),ne(te,{children:b})]}),i&&ne($e,{className:"k-input-spinner",size:t,fillMode:r})]})};B.states=_n;B.options=Xn;B.className=Es;B.defaultOptions=Ae;import{jsx as du}from"react/jsx-runtime";import{jsx as Fn}from"react/jsx-runtime";var Jn="k-no-data",ft=e=>Fn("span",{className:a(Jn,e.className),children:e.children});import{jsx as De,jsxs as Os}from"react/jsx-runtime";var No="k-list",Un=[],qn={size:[n.small,n.medium,n.large]},Bs={size:n.medium},P=e=>{let{size:t=Bs.size,virtualization:o,children:r,optionLabel:p,customValue:c,screenReaders:i,...m}=e,b,x,h,k,l=[];return r?r.map((N,v)=>{N.type===R?(N.props.root===!0?(b=N.props.label,N.props.children.map((S,C)=>{l.push(De(M,{...S.props},`optChild-${C}-${new Date().getTime()}`))})):N.props.children.forEach((S,C)=>{let A="";C===0&&(A=N.props.label),l.push(De(M,{className:C===0?"k-first":"",...S.props,groupLabel:A},`groupLabel-${C}-${new Date().getTime()}`))}),x=De(R,{label:b,virtualization:o,children:l})):N.type===M&&(l.push(De(M,{...N.props},`${N.type}-${v}`)),h=De(Ve,{virtualization:o,children:l}),i&&(k=Os(ft,{className:"k-sr-only",children:[l.length," items found."]})))}):k=De(ft,{children:"No data found."}),Os("div",{...m,className:a(e.className,No,g(No,{size:t}),{"k-virtual-list":o}),children:[p,c,x,h,k]})};P.states=Un;P.options=qn;P.className=No;P.defaultOptions=Bs;import{jsx as Te,jsxs as Yn}from"react/jsx-runtime";var vo="k-list",Wn=[],Qn={size:[n.small,n.medium,n.large]},Ks={size:n.medium},we=e=>{let{size:t=Ks.size,virtualization:o,children:r,...p}=e,c,i,m,b=[];return r?r.map((x,h)=>{x.type===R?(x.props.root===!0?(c=x.props.label,x.props.children.map((k,l)=>{b.push(Te(M,{...k.props},`optChild-${l}-${new Date().getTime()}`))})):(b.push(Te(Rs,{...x.props,children:x.props.label},`listChild-${h}`)),x.props.children.map((k,l)=>{b.push(Te(M,{...k.props},`fwOptChild-${l}-${new Date().getTime()}`))})),i=Te(R,{label:c,virtualization:o,children:b})):x.type===M&&(b.push(Te(M,{...x.props},`${x.type}-${h}`)),m=Te(Ve,{virtualization:o,children:b}))}):m=Te(ft,{children:"No data found."}),Yn("div",{...p,className:a(e.className,vo,g(vo,{size:t}),{"k-virtual-list":o}),children:[i,m]})};we.states=Wn;we.options=Qn;we.className=vo;we.defaultOptions=Ks;import{jsx as Hs}from"react/jsx-runtime";var Rt="k-checkbox",Zn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],jn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},Lo={size:n.medium,rounded:f.medium},Le=e=>{let{id:t,checked:o,indeterminate:r,hover:p,focus:c,disabled:i,invalid:m,valid:b,required:x,size:h=Lo.size,rounded:k=Lo.rounded,...l}=e;return Hs("span",{className:"k-checkbox-wrap",children:Hs("input",{...l,id:t,type:"checkbox",defaultChecked:o,required:x,className:a(e.className,Rt,g(Rt,{size:h,rounded:k}),y(Rt,{hover:p,focus:c,disabled:i,invalid:m,valid:b,indeterminate:r,checked:o}))})})};Le.states=Zn;Le.options=jn;Le.className=Rt;Le.defaultOptions=Lo;import{jsx as or}from"react/jsx-runtime";var Gs="k-checkbox-list",er=[],tr={},$s={layout:"vertical"},_e=e=>{let{layout:t=$s.layout,...o}=e;return or("ul",{...o,className:a(e.className,Gs,{[`k-list-${t}`]:t}),children:e.children})};_e.states=er;_e.options=tr;_e.className=Gs;_e.defaultOptions=$s;import{jsx as rr}from"react/jsx-runtime";var Ds="k-checkbox-list-item",sr=[],ar={},nr={},Xe=e=>{let{...t}=e;return rr("li",{...t,className:a(e.className,Ds),children:e.children})};Xe.states=sr;Xe.options=ar;Xe.className=Ds;Xe.defaultOptions=nr;import{Fragment as $u,jsx as Gu,jsxs as Du}from"react/jsx-runtime";import{Fragment as Fu,jsx as Ju,jsxs as Uu}from"react/jsx-runtime";import{Fragment as Zu,jsx as Yu,jsxs as ju}from"react/jsx-runtime";import{Fragment as af,jsx as sf,jsxs as nf}from"react/jsx-runtime";import{jsx as pf}from"react/jsx-runtime";import{jsx as ff}from"react/jsx-runtime";import{jsx as Ht,jsxs as pr}from"react/jsx-runtime";var So="k-list-item",ir=[s.hover,s.focus,s.selected,s.disabled],lr={},cr={},M=e=>{let{text:t,groupLabel:o,group:r,showIcon:p,iconName:c,showCheckbox:i,checked:m,hover:b,focus:x,selected:h,disabled:k,...l}=e,N=t||e.children;return pr("li",{...l,className:a(e.className,r?"k-list-group-item":So,y(So,{hover:b,focus:x,disabled:k,selected:h})),children:[i&&Ht(Le,{checked:m}),p&&Ht(I,{icon:c}),Ht("span",{className:"k-list-item-text",children:N}),o&&o!==""&&Ht("div",{className:"k-list-item-group-label",children:o})]})};M.states=ir;M.options=lr;M.className=So;M.defaultOptions=cr;import{jsx as go,jsxs as mr}from"react/jsx-runtime";var dr="k-list-content",Ve=e=>{let{virtualization:t,...o}=e;return mr("div",{...o,className:a(dr,e.className),children:[go("ul",{className:a("k-list-ul"),children:e.children}),t&&go("div",{className:"k-height-container",children:go("div",{})})]})};import{jsx as Vs}from"react/jsx-runtime";var ur="k-list-group-sticky-header",_s=e=>Vs("div",{className:a(ur,e.className),children:Vs("div",{className:"k-list-header-text",children:e.children})});import{Fragment as fr,jsx as Xs,jsxs as br}from"react/jsx-runtime";var R=e=>{let{virtualization:t,label:o}=e;return br(fr,{children:[o&&Xs(_s,{children:o}),e.children&&Xs(Ve,{virtualization:t,children:e.children})]})};import{jsx as Js}from"react/jsx-runtime";var xr="k-list-group-item",Rs=e=>Js("li",{className:a(xr,e.className),children:Js("span",{className:"k-list-item-text",children:e.children})});import{jsx as Lr}from"react/jsx-runtime";var Io="k-list-optionlabel",hr=[s.hover,s.focus,s.selected,s.disabled],Nr={},vr={},Gt=e=>{let{text:t,hover:o,focus:r,selected:p,disabled:c,...i}=e;return Lr("div",{...i,className:a(Io,y(Io,{hover:o,focus:r,selected:p,disabled:c})),children:t})};Gt.states=hr;Gt.options=Nr;Gt.className=Io;Gt.defaultOptions=vr;import{jsx as Ir}from"react/jsx-runtime";var Mo="k-list-custom-value",kr=[s.hover,s.focus,s.selected,s.disabled],Sr={},gr={},ke=e=>{let{text:t,hover:o,focus:r,selected:p,disabled:c,...i}=e;return Ir("div",{...i,className:a(Mo,y(Mo,{hover:o,focus:r,selected:p,disabled:c})),children:t})};ke.states=kr;ke.options=Sr;ke.className=Mo;ke.defaultOptions=gr;import{jsx as Yf}from"react/jsx-runtime";import{jsx as tb}from"react/jsx-runtime";import{jsx as nb,jsxs as rb}from"react/jsx-runtime";import{jsx as pb,jsxs as db}from"react/jsx-runtime";import{jsx as bb}from"react/jsx-runtime";import{jsx as vb,jsxs as Lb}from"react/jsx-runtime";import{jsx as Ib,jsxs as Mb}from"react/jsx-runtime";import{Fragment as Cr,jsx as D,jsxs as yo}from"react/jsx-runtime";var Fs="k-dropdownlist",Mr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],yr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},Je={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:u.solid},Se=e=>{let{size:t=Je.size,rounded:o=Je.rounded,fillMode:r=Je.fillMode,arrowIconName:p=Je.arrowIconName,showValue:c=Je.showValue,valueIconName:i,prefix:m,suffix:b,value:x,placeholder:h,hover:k,focus:l,valid:N,invalid:v,required:S,loading:C,disabled:A,readonly:E,popup:H,opened:de,adaptive:ot,adaptiveSettings:st,adaptiveTitle:Jt,adaptiveSubtitle:Ft,adaptiveFilter:ca,...pa}=e;return yo(Cr,{children:[yo(W,{...pa,size:t,rounded:o,fillMode:r,hover:k,focus:l,valid:N,invalid:v,required:S,loading:C,disabled:A,readonly:E,className:a(e.className,Fs,{"k-icon-picker":!c&&i}),children:[D(ee,{children:m}),D(ye,{placeholder:h,value:x,showValue:c,valueIconName:i}),D(V,{valid:N,invalid:v,loading:C,disabled:A}),D(_,{loading:C,disabled:A}),D(te,{children:b}),D(L,{className:"k-input-button",icon:p,rounded:null,size:e.size,fillMode:e.fillMode})]}),de&&H&&D($,{className:"k-list-container k-dropdownlist-popup",children:H}),ot&&D(Z,{adaptive:!0,...st,header:D(X,{actionsEnd:D(L,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ca,inputValue:x,inputPlaceholder:h,title:Jt,subtitle:Ft}),children:D("div",{className:"k-list-container",children:yo(P,{size:"large",children:[D(M,{text:"List item"}),D(M,{text:"List item"}),D(M,{text:"List item"})]})})})]})};Se.states=Mr;Se.options=yr;Se.className=Fs;Se.defaultOptions=Je;import{jsx as tx}from"react/jsx-runtime";import{jsx as rx,jsxs as ix}from"react/jsx-runtime";import{Fragment as bx,jsx as ux,jsxs as fx}from"react/jsx-runtime";import{jsx as vx}from"react/jsx-runtime";import{jsx as Ix,jsxs as Mx}from"react/jsx-runtime";import{jsx as wx,jsxs as zx}from"react/jsx-runtime";import{Fragment as Gx,jsx as Rx,jsxs as Hx}from"react/jsx-runtime";import{Fragment as Ux,jsx as Jx,jsxs as Fx}from"react/jsx-runtime";import{Fragment as ch,jsx as lh}from"react/jsx-runtime";import{Fragment as xh,jsx as bh}from"react/jsx-runtime";import{Fragment as bt,jsx as T,jsxs as O}from"react/jsx-runtime";var Us="k-colorgradient-inputs",Ar=[],Tr={size:[n.small,n.medium,n.large]},qs={mode:"rgba",size:n.medium},Fe=e=>{let{mode:t=qs.mode,size:o,...r}=e;return O("div",{...r,className:a(Us,"k-hstack"),children:[T("div",{className:"k-vstack",children:T(L,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&O(bt,{children:[O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"B"})]}),O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),T("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&O(bt,{children:[O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&O(bt,{children:[O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"V"})]}),O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),T("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&O(bt,{children:[O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[T(B,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&T(bt,{children:O("div",{className:"k-vstack k-flex-1",children:[T(xe,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),T("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Fe.states=Ar;Fe.options=Tr;Fe.className=Us;Fe.defaultOptions=qs;import{jsx as Ee,jsxs as Pe}from"react/jsx-runtime";var Ws="k-colorgradient-color-contrast",wr=[],zr={},Er={},Ue=()=>Pe("div",{className:a(Ws,"k-vbox"),children:[Pe("div",{className:"k-contrast-ratio",children:[Ee("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Pe("span",{className:"k-contrast-validation !k-text-success",children:[Ee(I,{icon:"check"}),Ee(I,{icon:"check"})]})]}),Pe("div",{children:[Ee("span",{children:"AA: 4.5"}),Pe("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ee(I,{icon:"check"})]})]}),Pe("div",{children:[Ee("span",{children:"AAA: 7.0"}),Pe("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ee(I,{icon:"x"})]})]})]});Ue.states=wr;Ue.options=zr;Ue.className=Ws;Ue.defaultOptions=Er;import{jsx as F,jsxs as xt}from"react/jsx-runtime";var $t="k-colorgradient",Pr=[s.hover,s.focus,s.readonly,s.disabled],Or={size:[n.small,n.medium,n.large]},j={size:n.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},ge=e=>{let{size:t=j.size,mode:o=j.mode,readonly:r=j.readonly,disabled:p=j.disabled,gradientStyle:c=j.gradientStyle,dragHandleStyle:i=j.dragHandleStyle,alphaStyle:m=j.alphaStyle,alphaStyleHorizontal:b=j.alphaStyleHorizontal,contrast:x=j.contrast,dir:h,hover:k,focus:l,hoverHandle:N,focusHandle:v,canvasOrientation:S=j.canvasOrientation,...C}=e;return xt("div",{...C,className:a(e.className,$t,g($t,{size:t}),y($t,{hover:k,focus:l,readonly:r,disabled:p})),dir:h,children:[!S||S==="horizontal"&&xt("div",{className:"k-colorgradient-canvas k-hstack",children:[F("div",{className:"k-hsv-rectangle",style:c,children:F("div",{className:"k-hsv-gradient",children:F("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":v}),style:i})})}),xt("div",{className:"k-hsv-controls k-hstack",children:[F(bo,{className:"k-hue-slider",hover:N,focus:v}),o!=="rgb"&&o!=="hsv"&&F(bo,{className:"k-alpha-slider",hover:N,focus:v,trackStyle:m})]})]}),S==="vertical"&&xt("div",{className:"k-colorgradient-canvas k-vstack",children:[F("div",{className:"k-hsv-rectangle",style:c,children:F("div",{className:"k-hsv-gradient",children:F("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":v}),style:i})})}),xt("div",{className:"k-hsv-controls k-vstack",children:[F(fo,{className:"k-hue-slider",hover:N,focus:v}),o!=="rgb"&&o!=="hsv"&&F(fo,{className:"k-alpha-slider",hover:N,focus:v,trackStyle:b})]})]}),F(Fe,{mode:e.mode,size:t}),x&&F(Ue,{})]})};ge.states=Pr;ge.options=Or;ge.className=$t;ge.defaultOptions=j;import{jsx as Dh}from"react/jsx-runtime";import{jsx as Jh}from"react/jsx-runtime";import{jsx as Br}from"react/jsx-runtime";var Qs=e=>Br("tr",{children:e.children});import{jsx as Hr}from"react/jsx-runtime";var Co="k-colorpalette-tile",Kr=[s.hover,s.focus,s.selected],Rr={},ht=e=>{let{color:t,tileSize:o,hover:r,focus:p,selected:c,...i}=e,m={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Hr("td",{...i,className:a(e.className,Co,y(Co,{hover:r,focus:p,selected:c})),style:m})};ht.states=Kr;ht.options=Rr;ht.className=Co;import{jsx as Nt}from"react/jsx-runtime";var Dt="k-colorpalette",Gr=[s.disabled],$r={size:[n.small,n.medium,n.large]},Ao={columns:10,size:n.medium},qe=e=>{let{size:t=Ao.size,palette:o,columns:r=Ao.columns,tileSize:p,disabled:c,...i}=e,m=[];if(o){let b=r||o.columns,x=o.colors?o.colors:o;Array.isArray(x)&&Array.from({length:Math.ceil(x.length/b)},(h,k)=>{let l=[];x.slice(k*b,(k+1)*b).map((v,S)=>{l.push(Nt(ht,{color:v,tileSize:p},S))});let N=Nt(Qs,{children:l},k);m.push(N)})}return Nt("div",{...i,className:a(e.className,Dt,y(Dt,{disabled:c}),g(Dt,{size:t})),children:Nt("table",{className:"k-colorpalette-table",children:Nt("tbody",{children:m.length>0?m:e.children})})})};qe.states=Gr;qe.options=$r;qe.className=Dt;qe.defaultOptions=Ao;var To={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 fN}from"react/jsx-runtime";import{jsx as U,jsxs as We}from"react/jsx-runtime";var Vt="k-coloreditor",Dr=[s.focus],Vr={size:[n.small,n.medium,n.large]},Qe={size:n.medium,view:"gradient",palette:To.office,actionButtons:!0,canvasOrientation:"horizontal"},oe=e=>{let{size:t=Qe.size,view:o=Qe.view,palette:r=Qe.palette,color:p,currentColor:c,focus:i,focusView:m,dir:b,group:x,actionButtons:h=Qe.actionButtons,canvasOrientation:k=Qe.canvasOrientation,...l}=e;return We("div",{...l,className:a(e.className,"k-flatcolorpicker",Vt,g(Vt,{size:t}),y(Vt,{focus:i})),dir:b,children:[We("div",{className:"k-coloreditor-header k-hstack",children:[U("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&We(G,{fillMode:"flat",children:[U(L,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),U(L,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),U("div",{className:"k-spacer"}),We("div",{className:"k-coloreditor-header-actions k-hstack",children:[U(L,{fillMode:"flat",icon:"droplet-slash",size:t}),We("div",{className:"k-coloreditor-preview k-vstack",children:[U(me,{className:"k-coloreditor-preview-color",color:p}),U(me,{className:"k-coloreditor-current-color",color:c})]})]})]}),U("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?U(ge,{focus:m,size:t,canvasOrientation:k}):U(qe,{palette:r,size:t})}),h&&We(fe,{className:"k-coloreditor-footer",alignment:"start",children:[U(L,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),U(L,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};oe.states=Dr;oe.options=Vr;oe.className=Vt;oe.defaultOptions=Qe;import{jsx as PN}from"react/jsx-runtime";import{jsx as RN}from"react/jsx-runtime";import{jsx as DN}from"react/jsx-runtime";import{jsx as JN}from"react/jsx-runtime";import{Fragment as Jr,jsx as q,jsxs as zo}from"react/jsx-runtime";var Ys="k-colorpicker",_r=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled],Xr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},vt={arrowIconName:"caret-alt-down",size:W.defaultOptions.size,rounded:W.defaultOptions.rounded,fillMode:W.defaultOptions.fillMode},re=e=>{let{size:t=vt.size,rounded:o=vt.rounded,fillMode:r=vt.fillMode,arrowIconName:p=vt.arrowIconName,prefix:c,suffix:i,value:m,placeholder:b,hover:x,focus:h,valid:k,invalid:l,required:N,disabled:v,valueIconName:S,popup:C,opened:A,adaptive:E,adaptiveSettings:H,adaptiveTitle:de,adaptiveSubtitle:ot,...st}=e;return zo(Jr,{children:[zo(W,{...st,size:t,rounded:o,fillMode:r,hover:x,focus:h,valid:k,invalid:l,required:N,disabled:v,className:a(e.className,Ys,"k-icon-picker"),children:[q(ee,{children:c}),q(ye,{placeholder:b,value:m,showValue:!1,valueIcon:q(me,{className:"k-value-icon",color:m,iconName:S}),valueIconName:S}),q(te,{children:i}),q(L,{className:"k-input-button",icon:p,rounded:null,size:t,fillMode:r})]}),A&&C&&q($,{className:"k-colorpicker-popup",children:C}),E&&q(Z,{adaptive:!0,...H,header:q(X,{actionsEnd:q(L,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:de,subtitle:ot}),footer:zo(ct,{children:[q(L,{text:"Cancel",size:"large",themeColor:"base"}),q(L,{text:"Set",size:"large",themeColor:"primary"})]}),children:q(oe,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};re.states=_r;re.options=Xr;re.className=Ys;re.defaultOptions=vt;import{jsx as dv}from"react/jsx-runtime";import{jsx as xv}from"react/jsx-runtime";import{jsx as kv}from"react/jsx-runtime";import{jsx as Mv}from"react/jsx-runtime";import{jsx as Tv}from"react/jsx-runtime";import{jsx as Pv}from"react/jsx-runtime";import{Fragment as Eo,jsx as K,jsxs as Lt}from"react/jsx-runtime";var Zs="k-combobox",Ur=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],qr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},kt={size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},Oe=e=>{let{size:t=kt.size,rounded:o=kt.rounded,fillMode:r=kt.fillMode,separators:p=kt.separators,prefix:c,suffix:i,value:m,placeholder:b,hover:x,focus:h,valid:k,invalid:l,required:N,loading:v,disabled:S,popup:C,opened:A,readonly:E,adaptive:H,adaptiveSettings:de,adaptiveTitle:ot,adaptiveSubtitle:st,adaptiveCustomValue:Jt,...Ft}=e;return Lt(Eo,{children:[Lt(z,{...Ft,size:t,rounded:o,fillMode:r,hover:x,focus:h,valid:k,invalid:l,required:N,loading:v,disabled:S,readonly:E,className:a(e.className,Zs),children:[c&&Lt(Eo,{children:[K(ee,{children:c}),p&&K(se,{})]}),K(Y,{placeholder:b,value:m}),K(V,{valid:k,invalid:l,loading:v,disabled:S}),K(_,{loading:v,disabled:S}),K(Q,{loading:v,disabled:S,readonly:E,value:m}),i&&Lt(Eo,{children:[p&&K(se,{}),K(te,{children:i})]}),K(L,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:r})]}),A&&C&&K($,{className:"k-list-container k-combobox-popup",children:C}),H&&K(Z,{adaptive:!0,...de,header:K(X,{actionsEnd:K(L,{icon:"check",themeColor