@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 64.6 kB
JavaScript
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,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"}),M=(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"},d={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},m={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 va,jsx as Yo}from"react/jsx-runtime";var Wt="k-icon k-font-icon",ha=[],Na={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},ka={},it=e=>{let{size:t,themeColor:o,icon:r,rotate:p,flip:c,...i}=e;return r?Yo("span",{...i,className:a(e.className,Wt,g(Wt,{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"})}):Yo(va,{})};it.states=ha;it.options=Na;it.className=Wt;it.defaultOptions=ka;var Zo=it;import{Fragment as ga,jsx as Ct}from"react/jsx-runtime";var Qt="k-icon k-svg-icon",La=[],Sa={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},jo={viewBox:"0 0 24 24"},lt=e=>{let{size:t,themeColor:o,rotate:r,flip:p,viewBox:c=jo.viewBox,icon:i,...u}=e;if(!i)return Ct(ga,{});i==="none"&&{...u,className:a(e.className,Qt,"k-none")};let b=typeof i=="object"&&i.name&&i.name;return Ct("span",{...u,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})})};lt.states=La;lt.options=Sa;lt.className=Qt;lt.defaultOptions=jo;var Yt=lt;import*as es from"@progress/kendo-svg-icons";import{Fragment as ts,jsx as pt}from"react/jsx-runtime";var Ia=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ma=[],ya={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Zt={viewBox:"0 0 24 24",type:"svg"},I=e=>{let{size:t,themeColor:o,icon:r,type:p=Zt.type,rotate:c,flip:i,viewBox:u=Zt.viewBox,...b}=e;if(!r)return pt(ts,{});if(p==="svg"){if(r==="none")return pt(Yt,{...b,icon:r,size:t});let x=Ia(`${r}-icon`);return es[x]?pt(Yt,{...b,icon:es[x],size:t,themeColor:o,rotate:c,flip:i,viewBox:u}):pt(ts,{})}return pt(Zo,{...b,icon:r,size:t,themeColor:o,rotate:c,flip:i})};I.states=Ma;I.options=ya;I.defaultOptions=Zt;import{Fragment as Aa,jsx as ct,jsxs as os}from"react/jsx-runtime";var Tt="k-button",Ca=[s.hover,s.focus,s.active,s.selected,s.disabled],Ta={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark,m.inverse]},Te={size:n.medium,rounded:f.medium,fillMode:d.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},k=e=>{let{size:t=Te.size,rounded:o=Te.rounded,fillMode:r=Te.fillMode,themeColor:p=Te.themeColor,showArrow:c=Te.showArrow,arrowIconName:i=Te.arrowIconName,hover:u,focus:b,active:x,selected:h,disabled:L,icon:l,text:N,iconClassName:v,...S}=e,C=l!==void 0,T=e.children!==void 0;return os("button",{...S,className:a(e.className,Tt,g(Tt,{size:t,rounded:o,fillMode:r,themeColor:p}),M(Tt,{hover:u,focus:b,active:x,disabled:L,selected:h}),{"k-icon-button":!N&&!T&&C}),children:[l&&ct(I,{className:a(v,"k-button-icon"),icon:l}),N?os(Aa,{children:[N&&ct("span",{className:"k-button-text",children:N}),e.children]}):e.children&&ct("span",{className:"k-button-text",children:e.children}),c&&ct("span",{className:"k-menu-button-arrow k-button-arrow",children:ct(I,{icon:i})})]})};k.states=Ca;k.options=Ta;k.className=Tt;k.defaultOptions=Te;import{jsx as Ba}from"react/jsx-runtime";var At=e=>Ba(k,{icon:"folder",...e,children:void 0});import{jsx as za}from"react/jsx-runtime";var jt=e=>za(k,{icon:"folder",children:"Button",...e});import{jsx as hl}from"react/jsx-runtime";import{jsx as Ea}from"react/jsx-runtime";var dt="k-button-group",wa=[s.disabled],Pa={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},ss={fillMode:d.solid},E=e=>{let{fillMode:t=ss.fillMode,disabled:o,stretched:r,...p}=e;return Ea("div",{...p,className:a(e.className,dt,g(dt,{fillMode:t}),M(dt,{disabled:o}),{[`${dt}-stretched`]:r}),children:e.children})};E.states=wa;E.options=Pa;E.className=dt;E.defaultOptions=ss;import{Fragment as zl,jsx as Bl,jsxs as wl}from"react/jsx-runtime";import{Fragment as Hl,jsx as Rl,jsxs as Gl}from"react/jsx-runtime";import{Fragment as Fl,jsx as Xl,jsxs as Jl}from"react/jsx-runtime";import{Fragment as Zl,jsx as Yl,jsxs as jl}from"react/jsx-runtime";import{jsx as Ra}from"react/jsx-runtime";var Bt="k-input",Oa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ka={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},zt={size:n.medium,rounded:n.medium,fillMode:d.solid},z=e=>{let{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:u,size:b=zt.size,rounded:x=zt.rounded,fillMode:h=zt.fillMode,...L}=e;return Ra("span",{...L,className:a(e.className,Bt,g(Bt,{size:b,rounded:x,fillMode:h}),M(Bt,{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:u}))})};z.states=Oa;z.options=Ka;z.className=Bt;z.defaultOptions=zt;import{jsx as $a}from"react/jsx-runtime";var wt="k-picker",Ha=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ga={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Pt={size:n.medium,rounded:f.medium,fillMode:d.solid},Y=e=>{let{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:u,size:b=Pt.size,rounded:x=Pt.rounded,fillMode:h=Pt.fillMode,...L}=e;return $a("span",{...L,className:a(e.className,wt,g(wt,{size:b,rounded:x,fillMode:h}),M(wt,{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:u})),children:e.children})};Y.states=Ha;Y.options=Ga;Y.className=wt;Y.defaultOptions=Pt;import{Fragment as _a,jsx as eo}from"react/jsx-runtime";var as="k-clear-value",Da=[s.disabled,s.loading,s.readonly],Va={},Z=e=>{let{disabled:t,loading:o,readonly:r,value:p}=e;return t||r||o||!p?eo(_a,{}):eo("span",{className:a(e.className,as),children:eo(I,{icon:"x"})})};Z.states=Da;Z.options=Va;Z.className=as;import{jsx as Ja}from"react/jsx-runtime";var to="k-input-inner",Xa=[],Fa={},Et={type:"text",autocomplete:"off",value:"",placeholder:""},j=e=>{let{value:t=Et.value,type:o=Et.type,placeholder:r=Et.placeholder,autocomplete:p=Et.autocomplete,...c}=e;return Ja("input",{...c,type:o,className:a(e.className,to,g(to,e)),placeholder:r,autoComplete:p,defaultValue:t})};j.states=Xa;j.options=Fa;j.className=to;import{jsx as ns,jsxs as Wa}from"react/jsx-runtime";var oo="k-input-inner",Ua=[],qa={},Ae=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:p,valueIconName:c,...i}=e;return Wa("span",{...i,className:a(e.className,oo,g(oo,e)),children:[p,!p&&c&&ns(I,{className:"k-input-value-icon",icon:c}),r&&!t&&o,r&&t&&ns("span",{className:"k-input-value-text",children:t})]})};Ae.states=Ua;Ae.options=qa;Ae.className=oo;import{jsx as Za}from"react/jsx-runtime";var so="k-input-inner",Qa=[],Ya={},rs={value:"",placeholder:""},ao=e=>{let{value:t=rs.value,placeholder:o=rs.placeholder,rows:r,...p}=e;return Za("textarea",{...p,className:a(e.className,so,g(so,e)),placeholder:o,rows:r,defaultValue:t})};ao.states=Qa;ao.options=Ya;ao.className=so;import{Fragment as en,jsx as is}from"react/jsx-runtime";var ls="k-input-loading-icon",ja=[s.disabled,s.loading],X=e=>{let{disabled:t,loading:o}=e;return t||!o?is(en,{}):is("span",{className:a(e.className,ls,"k-icon k-i-loading")})};X.states=ja;X.className=ls;import{Fragment as sn,jsx as ps}from"react/jsx-runtime";var cs="k-input-validation-icon",tn=[s.valid,s.invalid,s.disabled,s.loading],on={},_=e=>{let{valid:t,invalid:o,disabled:r,loading:p}=e,c=o?"warning-circle":"check-circle";return r||p||!!!(t||o)?ps(sn,{}):ps(I,{className:a(cs),icon:c})};_.states=tn;_.options=on;_.className=cs;import{Fragment as rn,jsx as ds}from"react/jsx-runtime";var an="k-input-prefix",nn={direction:"horizontal"},se=e=>{let{direction:t=nn.direction,...o}=e;return e.children?ds("span",{...o,className:a(an,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ds(rn,{})};import{Fragment as cn,jsx as ms}from"react/jsx-runtime";var ln="k-input-suffix",pn={direction:"horizontal"},ae=e=>{let{direction:t=pn.direction,...o}=e;return e.children?ms("span",{...o,className:a(ln,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ms(cn,{})};import{jsx as Vp}from"react/jsx-runtime";import{jsx as Jp}from"react/jsx-runtime";import{jsx as mn}from"react/jsx-runtime";var us="k-input-separator",dn={direction:"vertical"},ie=e=>{let{direction:t=dn.direction,...o}=e;return mn("span",{...o,className:a(us,e.className,{[`${us}-${t}`]:t})})};import{jsx as fs,jsxs as bn}from"react/jsx-runtime";var bs="k-color-preview",un=[],fn={},be=e=>{let{color:t,iconName:o,...r}=e;return bn("span",{...r,className:a(e.className,bs,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&fs(I,{icon:o,className:"k-color-preview-icon"}),fs("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};be.states=un;be.options=fn;be.className=bs;import{jsx as xs}from"react/jsx-runtime";var hs="k-animation-container",xn=[],hn={},Ns={positionMode:"absolute"},xe=e=>{let{positionMode:t=Ns.positionMode,animationStyle:o,offset:r,...p}=e;return xs("div",{...p,style:{...r,...e.style},className:a(e.className,hs,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:xs("div",{className:"k-child-animation-container",style:o,children:e.children})})};xe.states=xn;xe.options=hn;xe.className=hs;xe.defaultOptions=Ns;import{jsx as ks}from"react/jsx-runtime";var vs="k-popup",Nn=[],kn={},Ls={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:o=Ls.positionMode,animationStyle:r,...p}=e;return ks(xe,{positionMode:o,offset:t,animationStyle:r,children:ks("div",{...p,className:a(e.className,vs),children:e.children})})};H.states=Nn;H.options=kn;H.className=vs;H.defaultOptions=Ls;import{jsx as Sn}from"react/jsx-runtime";var Ot="k-actions",vn=[],Ln={},no={alignment:"start",orientation:"horizontal"},he=e=>{let{alignment:t=no.alignment,orientation:o=no.orientation,...r}=e;return Sn("div",{...r,className:a(Ot,{[`${Ot}-${t}`]:t,[`${Ot}-${o}`]:o},e.className),children:e.children})};he.states=vn;he.options=Ln;he.className=Ot;he.defaultOptions=no;import{jsx as In}from"react/jsx-runtime";var gn="k-actionsheet-footer",Ss={alignment:"stretched",orientation:"horizontal"},mt=e=>{let{alignment:t=Ss.alignment,orientation:o=Ss.orientation,template:r,as:p=r?"div":he,...c}=e;return In(p,{...c,...!r&&{alignment:t,orientation:o},className:a(e.className,gn),children:e.children})};import{jsx as ut,jsxs as Cn}from"react/jsx-runtime";var gs="k-searchbox",Mn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],yn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},ro={showIcon:!0,icon:"search",size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode},le=e=>{let{value:t,placeholder:o,size:r,rounded:p,fillMode:c,hover:i,focus:u,valid:b,invalid:x,required:h,loading:L,disabled:l,showIcon:N=ro.showIcon,icon:v=ro.icon,...S}=e;return Cn(z,{...S,size:r,rounded:p,fillMode:c,hover:i,focus:u,valid:b,invalid:x,required:h,loading:L,disabled:l,className:a(e.className,gs),children:[N&&ut(I,{className:"k-input-icon",icon:v}),ut(j,{placeholder:o,value:t}),ut(X,{...e}),ut(_,{...e}),ut(Z,{...e})]})};le.states=Mn;le.options=yn;le.className=gs;le.defaultOptions=ro;import{jsx as Fc}from"react/jsx-runtime";import{Fragment as Is,jsx as Ne,jsxs as io}from"react/jsx-runtime";var Ms="k-textbox",Tn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],An={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Be={showClearButton:!0,showValidationIcon:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},ke=e=>{let{size:t=Be.size,rounded:o=Be.rounded,fillMode:r=Be.fillMode,separators:p=Be.separators,showClearButton:c=Be.showClearButton,showValidationIcon:i=Be.showValidationIcon,prefix:u,suffix:b,type:x,value:h,placeholder:L,hover:l,focus:N,valid:v,invalid:S,required:C,loading:T,disabled:w,readonly:$,...fe}=e;return io(z,{...fe,size:t,rounded:o,fillMode:r,hover:l,focus:N,valid:v,invalid:S,required:C,loading:T,disabled:w,readonly:$,className:a(e.className,Ms),children:[u&&io(Is,{children:[Ne(se,{children:u}),p&&Ne(ie,{})]}),Ne(j,{placeholder:L,value:h,type:x}),i&&Ne(_,{valid:v,invalid:S,loading:T,disabled:w}),Ne(X,{loading:T,disabled:w}),c&&Ne(Z,{loading:T,disabled:w,readonly:$,value:h}),b&&io(Is,{children:[p&&Ne(ie,{}),Ne(ae,{children:b})]})]})};ke.states=Tn;ke.options=An;ke.className=Ms;ke.defaultOptions=Be;import{jsx as od}from"react/jsx-runtime";import{Fragment as ld,jsx as id}from"react/jsx-runtime";import{Fragment as bd,jsx as fd}from"react/jsx-runtime";import{jsx as ve,jsxs as lo}from"react/jsx-runtime";var Cs="k-actionsheet-titlebar",Bn={},F=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:p,filter:c,input:i,inputValue:u,inputPlaceholder:b,adaptive:x,children:h,...L}=e;return lo("div",{...L,className:a(e.className,Cs),children:[lo("div",{className:"k-actionsheet-titlebar-group",children:[r&&ve("div",{className:"k-actionsheet-actions",children:r}),!h&&lo("div",{className:"k-actionsheet-title",children:[t&&ve("div",{className:"k-text-center",children:t}),o&&ve("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&ve("div",{className:"k-actionsheet-title",children:h}),p&&ve("div",{className:"k-actionsheet-actions",children:p})]}),(i||c)&&ve("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?ve(ke,{value:u,placeholder:b,size:x?"large":"medium"}):ve(le,{placeholder:"Filter",size:x?"large":"medium"})})]})};F.className=Cs;F.defaultOptions=Bn;import{jsx as po,jsxs as En}from"react/jsx-runtime";var co="k-actionsheet-view",zn=[],wn={},Pn={},Ve=e=>{let{adaptive:t,animated:o,children:r,header:p,footer:c,...i}=e,u=p?.type===F&&po(F,{adaptive:t,...p?.props}),b=c?.type===mt&&po(mt,{...c?.props});return En("div",{...i,className:a(e.className,co,{[`${co}-animated`]:o}),children:[u,po("div",{className:"k-actionsheet-content",children:r}),b]})};Ve.states=zn;Ve.options=wn;Ve.className=co;Ve.defaultOptions=Pn;import{jsx as Kt,jsxs as Rn}from"react/jsx-runtime";var Ts="k-actionsheet",On=[],Kn={},ft={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ee=e=>{let{side:t=ft.side,fullscreen:o=ft.fullscreen,adaptive:r=ft.adaptive,overlay:p=ft.overlay,template:c,children:i,header:u,footer:b,...x}=e;return Rn("div",{className:"k-actionsheet-container",children:[p&&Kt("div",{className:"k-overlay"}),Kt(xe,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:Kt("div",{...x,className:a(e.className,Ts,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:c||Kt(Ve,{header:u,footer:b,adaptive:r,...e,children:i})})})]})};ee.states=On;ee.options=Kn;ee.className=Ts;ee.defaultOptions=ft;import{jsx as Gd}from"react/jsx-runtime";import{Fragment as Gn,jsx as bt,jsxs as mo}from"react/jsx-runtime";var uo="k-actionsheet-item",Hn=[s.hover,s.focus,s.selected,s.disabled],fo=e=>{let{iconName:t,text:o,description:r,hover:p,focus:c,selected:i,disabled:u,...b}=e;return mo("span",{...b,className:a(e.className,uo,M(uo,{hover:p,focus:c,selected:i,disabled:u})),children:[!e.children&&bt(Gn,{children:mo("span",{className:"k-actionsheet-action",children:[t&&bt("span",{className:"k-icon-wrap",children:bt(I,{className:"k-actionsheet-item-icon",icon:t})}),mo("span",{className:"k-actionsheet-item-text",children:[o&&bt("span",{className:"k-actionsheet-item-title",children:o}),r&&bt("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};fo.states=Hn;fo.className=uo;import{jsx as qd,jsxs as Wd}from"react/jsx-runtime";import{jsx as jd}from"react/jsx-runtime";import{jsx as sm}from"react/jsx-runtime";import{jsx as im}from"react/jsx-runtime";import{jsx as _e,jsxs as bo}from"react/jsx-runtime";var xt="k-slider",$n=[s.hover,s.focus,s.active,s.disabled,s.readonly],Dn={},Le={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},J=e=>{let{type:t=Le.type,orientation:o=Le.orientation,readonly:r=Le.readonly,disabled:p=Le.disabled,handlePosition:c=Le.handlePosition,showButtons:i=Le.showButtons,showTicks:u=Le.showTicks,hover:b,focus:x,active:h,trackStyle:L,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"),bo("div",{...N,className:a(xt,e.className,M(xt,{readonly:r,disabled:p}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:l,children:[i&&_e(k,{className:"k-button-decrease",rounded:"full",icon:S}),bo("div",{className:"k-slider-track-wrap",children:[u&&_e("ul",{className:"k-reset k-slider-items",children:e.children}),bo("div",{className:"k-slider-track",style:L,children:[_e("div",{className:"k-slider-selection"}),t==="range"&&_e("span",{className:a("k-draghandle","k-draghandle-start",M(xt,{hover:b,focus:x,active:h}))}),_e("span",{className:a("k-draghandle",`k-draghandle-${c}`,M(xt,{hover:b,focus:x,active:h}))})]})]}),i&&_e(k,{className:"k-button-increase",rounded:"full",icon:v})]})};J.states=$n;J.options=Dn;J.className=xt;J.defaultOptions=Le;import{jsx as Bs}from"react/jsx-runtime";var zs="k-tick",Vn=[],_n={},ws={label:!1},Se=e=>{let{style:t,label:o=ws.label,orientation:r,large:p,text:c,...i}=e;return Bs("li",{...i,className:a(e.className,zs,{[`k-tick-${r}`]:r,"k-tick-large":p}),style:t,children:o&&Bs("span",{className:"k-label",children:c})})};Se.states=Vn;Se.options=_n;Se.className=zs;Se.defaultOptions=ws;import{Fragment as Bm,jsx as Am,jsxs as zm}from"react/jsx-runtime";import{Fragment as Km,jsx as Om,jsxs as Rm}from"react/jsx-runtime";import{Fragment as Vm,jsx as Dm,jsxs as _m}from"react/jsx-runtime";import{Fragment as qm,jsx as Um,jsxs as Wm}from"react/jsx-runtime";import{jsx as Xn}from"react/jsx-runtime";var xo=e=>Xn(J,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Fn}from"react/jsx-runtime";var ho=e=>Fn(J,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Ps,jsxs as qn}from"react/jsx-runtime";var Es="k-spin-button",Jn=[],Un={size:[n.small,n.medium,n.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},No={size:n.medium,fillMode:d.solid},Xe=e=>{let{size:t=No.size,fillMode:o=No.fillMode,...r}=e;return qn("span",{...r,className:a(Es,e.className),children:[Ps(k,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Ps(k,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Xe.states=Jn;Xe.options=Un;Xe.className=Es;Xe.defaultOptions=No;import{Fragment as Os,jsx as pe,jsxs as ko}from"react/jsx-runtime";var Ks="k-numerictextbox",Wn=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Qn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},ze={showSpinButton:!0,showClearButton:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},K=e=>{let{size:t=ze.size,rounded:o=ze.rounded,fillMode:r=ze.fillMode,separators:p=ze.separators,showClearButton:c=ze.showClearButton,showSpinButton:i=ze.showSpinButton,prefix:u,suffix:b,value:x,placeholder:h,hover:L,focus:l,valid:N,invalid:v,required:S,loading:C,disabled:T,readonly:w,...$}=e;return ko(z,{...$,size:t,rounded:o,fillMode:r,hover:L,focus:l,valid:N,invalid:v,required:S,loading:C,disabled:T,readonly:w,className:a(e.className,Ks),children:[u&&ko(Os,{children:[pe(se,{children:u}),p&&pe(ie,{})]}),pe(j,{placeholder:h,value:x}),pe(_,{valid:N,invalid:v,loading:C,disabled:T}),pe(X,{loading:C,disabled:T}),c&&pe(Z,{loading:C,disabled:T,readonly:w,value:x}),b&&ko(Os,{children:[p&&pe(ie,{}),pe(ae,{children:b})]}),i&&pe(Xe,{className:"k-input-spinner",size:t,fillMode:r})]})};K.states=Wn;K.options=Qn;K.className=Ks;K.defaultOptions=ze;import{jsx as Mu}from"react/jsx-runtime";import{jsx as Zn}from"react/jsx-runtime";var Yn="k-no-data",ht=e=>Zn("span",{className:a(Yn,e.className),children:e.children});import{jsx as Fe,jsxs as Hs}from"react/jsx-runtime";var vo="k-list",jn=[],er={size:[n.small,n.medium,n.large]},Gs={size:n.medium},P=e=>{let{size:t=Gs.size,virtualization:o,children:r,optionLabel:p,customValue:c,screenReaders:i,...u}=e,b,x,h,L,l=[];return r?r.map((N,v)=>{N.type===G?(N.props.root===!0?(b=N.props.label,N.props.children.map((S,C)=>{l.push(Fe(y,{...S.props},`optChild-${C}-${new Date().getTime()}`))})):N.props.children.forEach((S,C)=>{let T="";C===0&&(T=N.props.label),l.push(Fe(y,{className:C===0?"k-first":"",...S.props,groupLabel:T},`groupLabel-${C}-${new Date().getTime()}`))}),x=Fe(G,{label:b,virtualization:o,children:l})):N.type===y&&(l.push(Fe(y,{...N.props},`${N.type}-${v}`)),h=Fe(Je,{virtualization:o,children:l}),i&&(L=Hs(ht,{className:"k-sr-only",children:[l.length," items found."]})))}):L=Fe(ht,{children:"No data found."}),Hs("div",{...u,className:a(e.className,vo,g(vo,{size:t}),{"k-virtual-list":o}),children:[p,c,x,h,L]})};P.states=jn;P.options=er;P.className=vo;P.defaultOptions=Gs;import{jsx as we,jsxs as sr}from"react/jsx-runtime";var Lo="k-list",tr=[],or={size:[n.small,n.medium,n.large]},$s={size:n.medium},Pe=e=>{let{size:t=$s.size,virtualization:o,children:r,...p}=e,c,i,u,b=[];return r?r.map((x,h)=>{x.type===G?(x.props.root===!0?(c=x.props.label,x.props.children.map((L,l)=>{b.push(we(y,{...L.props},`optChild-${l}-${new Date().getTime()}`))})):(b.push(we(Ds,{...x.props,children:x.props.label},`listChild-${h}`)),x.props.children.map((L,l)=>{b.push(we(y,{...L.props},`fwOptChild-${l}-${new Date().getTime()}`))})),i=we(G,{label:c,virtualization:o,children:b})):x.type===y&&(b.push(we(y,{...x.props},`${x.type}-${h}`)),u=we(Je,{virtualization:o,children:b}))}):u=we(ht,{children:"No data found."}),sr("div",{...p,className:a(e.className,Lo,g(Lo,{size:t}),{"k-virtual-list":o}),children:[i,u]})};Pe.states=tr;Pe.options=or;Pe.className=Lo;Pe.defaultOptions=$s;import{jsx as Vs}from"react/jsx-runtime";var Rt="k-checkbox",ar=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],nr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},So={size:n.medium,rounded:f.medium},ge=e=>{let{id:t,checked:o,indeterminate:r,hover:p,focus:c,disabled:i,invalid:u,valid:b,required:x,size:h=So.size,rounded:L=So.rounded,...l}=e;return Vs("span",{className:"k-checkbox-wrap",children:Vs("input",{...l,id:t,type:"checkbox",defaultChecked:o,required:x,className:a(e.className,Rt,g(Rt,{size:h,rounded:L}),M(Rt,{hover:p,focus:c,disabled:i,invalid:u,valid:b,indeterminate:r,checked:o}))})})};ge.states=ar;ge.options=nr;ge.className=Rt;ge.defaultOptions=So;import{jsx as lr}from"react/jsx-runtime";var _s="k-checkbox-list",rr=[],ir={},Xs={layout:"vertical"},Ue=e=>{let{layout:t=Xs.layout,...o}=e;return lr("ul",{...o,className:a(e.className,_s,{[`k-list-${t}`]:t}),children:e.children})};Ue.states=rr;Ue.options=ir;Ue.className=_s;Ue.defaultOptions=Xs;import{jsx as mr}from"react/jsx-runtime";var Fs="k-checkbox-list-item",pr=[],cr={},dr={},qe=e=>{let{...t}=e;return mr("li",{...t,className:a(e.className,Fs),children:e.children})};qe.states=pr;qe.options=cr;qe.className=Fs;qe.defaultOptions=dr;import{Fragment as ef,jsx as ju,jsxs as tf}from"react/jsx-runtime";import{Fragment as rf,jsx as nf,jsxs as lf}from"react/jsx-runtime";import{Fragment as uf,jsx as mf,jsxs as ff}from"react/jsx-runtime";import{Fragment as kf,jsx as Nf,jsxs as vf}from"react/jsx-runtime";import{jsx as If}from"react/jsx-runtime";import{jsx as Tf}from"react/jsx-runtime";import{jsx as Ht,jsxs as xr}from"react/jsx-runtime";var Io="k-list-item",ur=[s.hover,s.focus,s.selected,s.disabled],fr={},br={},y=e=>{let{text:t,groupLabel:o,group:r,showIcon:p,iconName:c,showCheckbox:i,checked:u,hover:b,focus:x,selected:h,disabled:L,...l}=e,N=t||e.children;return xr("li",{...l,className:a(e.className,r?"k-list-group-item":Io,M(Io,{hover:b,focus:x,disabled:L,selected:h})),children:[i&&Ht(ge,{checked:u}),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})]})};y.states=ur;y.options=fr;y.className=Io;y.defaultOptions=br;import{jsx as Mo,jsxs as Nr}from"react/jsx-runtime";var hr="k-list-content",Je=e=>{let{virtualization:t,...o}=e;return Nr("div",{...o,className:a(hr,e.className),children:[Mo("ul",{className:a("k-list-ul"),children:e.children}),t&&Mo("div",{className:"k-height-container",children:Mo("div",{})})]})};import{jsx as Js}from"react/jsx-runtime";var kr="k-list-group-sticky-header",Us=e=>Js("div",{className:a(kr,e.className),children:Js("div",{className:"k-list-header-text",children:e.children})});import{Fragment as vr,jsx as qs,jsxs as Lr}from"react/jsx-runtime";var G=e=>{let{virtualization:t,label:o}=e;return Lr(vr,{children:[o&&qs(Us,{children:o}),e.children&&qs(Je,{virtualization:t,children:e.children})]})};import{jsx as Ws}from"react/jsx-runtime";var Sr="k-list-group-item",Ds=e=>Ws("li",{className:a(Sr,e.className),children:Ws("span",{className:"k-list-item-text",children:e.children})});import{jsx as yr}from"react/jsx-runtime";var yo="k-list-optionlabel",gr=[s.hover,s.focus,s.selected,s.disabled],Ir={},Mr={},Gt=e=>{let{text:t,hover:o,focus:r,selected:p,disabled:c,...i}=e;return yr("div",{...i,className:a(yo,M(yo,{hover:o,focus:r,selected:p,disabled:c})),children:t})};Gt.states=gr;Gt.options=Ir;Gt.className=yo;Gt.defaultOptions=Mr;import{jsx as Br}from"react/jsx-runtime";var Co="k-list-custom-value",Cr=[s.hover,s.focus,s.selected,s.disabled],Tr={},Ar={},Ie=e=>{let{text:t,hover:o,focus:r,selected:p,disabled:c,...i}=e;return Br("div",{...i,className:a(Co,M(Co,{hover:o,focus:r,selected:p,disabled:c})),children:t})};Ie.states=Cr;Ie.options=Tr;Ie.className=Co;Ie.defaultOptions=Ar;import{jsx as db}from"react/jsx-runtime";import{jsx as bb}from"react/jsx-runtime";import{jsx as kb,jsxs as vb}from"react/jsx-runtime";import{jsx as Ib,jsxs as Mb}from"react/jsx-runtime";import{jsx as Ab}from"react/jsx-runtime";import{jsx as Pb,jsxs as Eb}from"react/jsx-runtime";import{jsx as Hb,jsxs as Gb}from"react/jsx-runtime";import{Fragment as Pr,jsx as D,jsxs as To}from"react/jsx-runtime";var Qs="k-dropdownlist",zr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],wr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},We={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:d.solid},Me=e=>{let{size:t=We.size,rounded:o=We.rounded,fillMode:r=We.fillMode,arrowIconName:p=We.arrowIconName,showValue:c=We.showValue,valueIconName:i,prefix:u,suffix:b,value:x,placeholder:h,hover:L,focus:l,valid:N,invalid:v,required:S,loading:C,disabled:T,readonly:w,popup:$,opened:fe,adaptive:nt,adaptiveSettings:rt,adaptiveTitle:Ut,adaptiveSubtitle:qt,adaptiveFilter:ba,...xa}=e;return To(Pr,{children:[To(Y,{...xa,size:t,rounded:o,fillMode:r,hover:L,focus:l,valid:N,invalid:v,required:S,loading:C,disabled:T,readonly:w,className:a(e.className,Qs,{"k-icon-picker":!c&&i}),children:[D(se,{children:u}),D(Ae,{placeholder:h,value:x,showValue:c,valueIconName:i}),D(_,{valid:N,invalid:v,loading:C,disabled:T}),D(X,{loading:C,disabled:T}),D(ae,{children:b}),D(k,{className:"k-input-button",icon:p,rounded:null,size:e.size,fillMode:e.fillMode})]}),fe&&$&&D(H,{className:"k-list-container k-dropdownlist-popup",children:$}),nt&&D(ee,{adaptive:!0,...rt,header:D(F,{actionsEnd:D(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ba,inputValue:x,inputPlaceholder:h,title:Ut,subtitle:qt}),children:D("div",{className:"k-list-container",children:To(P,{size:"large",children:[D(y,{text:"List item"}),D(y,{text:"List item"}),D(y,{text:"List item"})]})})})]})};Me.states=zr;Me.options=wr;Me.className=Qs;Me.defaultOptions=We;import{jsx as bx}from"react/jsx-runtime";import{jsx as vx,jsxs as Lx}from"react/jsx-runtime";import{Fragment as Ax,jsx as Cx,jsxs as Tx}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 Xx,jsxs as Fx}from"react/jsx-runtime";import{Fragment as jx,jsx as Yx,jsxs as Zx}from"react/jsx-runtime";import{Fragment as ih,jsx as nh,jsxs as rh}from"react/jsx-runtime";import{Fragment as gh,jsx as Sh}from"react/jsx-runtime";import{Fragment as Bh,jsx as Ah}from"react/jsx-runtime";import{Fragment as Nt,jsx as A,jsxs as O}from"react/jsx-runtime";var Ys="k-colorgradient-inputs",Er=[],Or={size:[n.small,n.medium,n.large]},Zs={mode:"rgba",size:n.medium},Qe=e=>{let{mode:t=Zs.mode,size:o,...r}=e;return O("div",{...r,className:a(Ys,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(k,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&O(Nt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&O(Nt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&O(Nt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&O(Nt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(Nt,{children:O("div",{className:"k-vstack k-flex-1",children:[A(ke,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Qe.states=Er;Qe.options=Or;Qe.className=Ys;Qe.defaultOptions=Zs;import{jsx as Oe,jsxs as Ke}from"react/jsx-runtime";var js="k-colorgradient-color-contrast",Kr=[],Rr={},Hr={},Ye=()=>Ke("div",{className:a(js,"k-vbox"),children:[Ke("div",{className:"k-contrast-ratio",children:[Oe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Ke("span",{className:"k-contrast-validation !k-text-success",children:[Oe(I,{icon:"check"}),Oe(I,{icon:"check"})]})]}),Ke("div",{children:[Oe("span",{children:"AA: 4.5"}),Ke("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Oe(I,{icon:"check"})]})]}),Ke("div",{children:[Oe("span",{children:"AAA: 7.0"}),Ke("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Oe(I,{icon:"x"})]})]})]});Ye.states=Kr;Ye.options=Rr;Ye.className=js;Ye.defaultOptions=Hr;import{jsx as U,jsxs as kt}from"react/jsx-runtime";var $t="k-colorgradient",Gr=[s.hover,s.focus,s.readonly,s.disabled],$r={size:[n.small,n.medium,n.large]},te={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"},ye=e=>{let{size:t=te.size,mode:o=te.mode,readonly:r=te.readonly,disabled:p=te.disabled,gradientStyle:c=te.gradientStyle,dragHandleStyle:i=te.dragHandleStyle,alphaStyle:u=te.alphaStyle,alphaStyleHorizontal:b=te.alphaStyleHorizontal,contrast:x=te.contrast,dir:h,hover:L,focus:l,hoverHandle:N,focusHandle:v,canvasOrientation:S=te.canvasOrientation,...C}=e;return kt("div",{...C,className:a(e.className,$t,g($t,{size:t}),M($t,{hover:L,focus:l,readonly:r,disabled:p})),dir:h,children:[!S||S==="horizontal"&&kt("div",{className:"k-colorgradient-canvas k-hstack",children:[U("div",{className:"k-hsv-rectangle",style:c,children:U("div",{className:"k-hsv-gradient",children:U("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":v}),style:i})})}),kt("div",{className:"k-hsv-controls k-hstack",children:[U(ho,{className:"k-hue-slider",hover:N,focus:v}),o!=="rgb"&&o!=="hsv"&&U(ho,{className:"k-alpha-slider",hover:N,focus:v,trackStyle:u})]})]}),S==="vertical"&&kt("div",{className:"k-colorgradient-canvas k-vstack",children:[U("div",{className:"k-hsv-rectangle",style:c,children:U("div",{className:"k-hsv-gradient",children:U("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":v}),style:i})})}),kt("div",{className:"k-hsv-controls k-vstack",children:[U(xo,{className:"k-hue-slider",hover:N,focus:v}),o!=="rgb"&&o!=="hsv"&&U(xo,{className:"k-alpha-slider",hover:N,focus:v,trackStyle:b})]})]}),U(Qe,{mode:e.mode,size:t}),x&&U(Ye,{})]})};ye.states=Gr;ye.options=$r;ye.className=$t;ye.defaultOptions=te;import{jsx as tN}from"react/jsx-runtime";import{jsx as nN}from"react/jsx-runtime";import{jsx as Dr}from"react/jsx-runtime";var ea=e=>Dr("tr",{children:e.children});import{jsx as Xr}from"react/jsx-runtime";var Ao="k-colorpalette-tile",Vr=[s.hover,s.focus,s.selected],_r={},vt=e=>{let{color:t,tileSize:o,hover:r,focus:p,selected:c,...i}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Xr("td",{...i,className:a(e.className,Ao,M(Ao,{hover:r,focus:p,selected:c})),style:u})};vt.states=Vr;vt.options=_r;vt.className=Ao;import{jsx as Lt}from"react/jsx-runtime";var Dt="k-colorpalette",Fr=[s.disabled],Jr={size:[n.small,n.medium,n.large]},Bo={columns:10,size:n.medium},Ze=e=>{let{size:t=Bo.size,palette:o,columns:r=Bo.columns,tileSize:p,disabled:c,...i}=e,u=[];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,L)=>{let l=[];x.slice(L*b,(L+1)*b).map((v,S)=>{l.push(Lt(vt,{color:v,tileSize:p},S))});let N=Lt(ea,{children:l},L);u.push(N)})}return Lt("div",{...i,className:a(e.className,Dt,M(Dt,{disabled:c}),g(Dt,{size:t})),children:Lt("table",{className:"k-colorpalette-table",children:Lt("tbody",{children:u.length>0?u:e.children})})})};Ze.states=Fr;Ze.options=Jr;Ze.className=Dt;Ze.defaultOptions=Bo;var zo={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 TN}from"react/jsx-runtime";import{jsx as q,jsxs as je}from"react/jsx-runtime";var Vt="k-coloreditor",Ur=[s.focus],qr={size:[n.small,n.medium,n.large]},et={size:n.medium,view:"gradient",palette:zo.office,actionButtons:!0,canvasOrientation:"horizontal"},ne=e=>{let{size:t=et.size,view:o=et.view,palette:r=et.palette,color:p,currentColor:c,focus:i,focusView:u,dir:b,group:x,actionButtons:h=et.actionButtons,canvasOrientation:L=et.canvasOrientation,...l}=e;return je("div",{...l,className:a(e.className,"k-flatcolorpicker",Vt,g(Vt,{size:t}),M(Vt,{focus:i})),dir:b,children:[je("div",{className:"k-coloreditor-header k-hstack",children:[q("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&je(E,{fillMode:"flat",children:[q(k,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),q(k,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),q("div",{className:"k-spacer"}),je("div",{className:"k-coloreditor-header-actions k-hstack",children:[q(k,{fillMode:"flat",icon:"droplet-slash",size:t}),je("div",{className:"k-coloreditor-preview k-vstack",children:[q(be,{className:"k-coloreditor-preview-color",color:p}),q(be,{className:"k-coloreditor-current-color",color:c})]})]})]}),q("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?q(ye,{focus:u,size:t,canvasOrientation:L}):q(Ze,{palette:r,size:t})}),h&&je(he,{className:"k-coloreditor-footer",alignment:"start",children:[q(k,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),q(k,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ne.states=Ur;ne.options=qr;ne.className=Vt;ne.defaultOptions=et;import{jsx as UN}from"react/jsx-runtime";import{jsx as YN}from"react/jsx-runtime";import{jsx as tk}from"react/jsx-runtime";import{jsx as nk}from"react/jsx-runtime";import{Fragment as Yr,jsx as W,jsxs as Po}from"react/jsx-runtime";var ta="k-colorpicker",Wr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled],Qr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},St={arrowIconName:"caret-alt-down",size:Y.defaultOptions.size,rounded:Y.defaultOptions.rounded,fillMode:Y.defaultOptions.fillMode},ce=e=>{let{size:t=St.size,rounded:o=St.rounded,fillMode:r=St.fillMode,arrowIconName:p=St.arrowIconName,prefix:c,suffix:i,value:u,placeholder:b,hover:x,focus:h,valid:L,invalid:l,required:N,disabled:v,valueIconName:S,popup:C,opened:T,adaptive:w,adaptiveSettings:$,adaptiveTitle:fe,adaptiveSubtitle:nt,...rt}=e;return Po(Yr,{children:[Po(Y,{...rt,size:t,rounded:o,fillMode:r,hover:x,focus:h,valid:L,invalid:l,required:N,disabled:v,className:a(e.className,ta,"k-icon-picker"),children:[W(se,{children:c}),W(Ae,{placeholder:b,value:u,showValue:!1,valueIcon:W(be,{className:"k-value-icon",color:u,iconName:S}),valueIconName:S}),W(ae,{children:i}),W(k,{className:"k-input-button",icon:p,rounded:null,size:t,fillMode:r})]}),T&&C&&W(H,{className:"k-colorpicker-popup",children:C}),w&&W(ee,{adaptive:!0,...$,header:W(F,{actionsEnd:W(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:fe,subtitle:nt}),footer:Po(mt,{children:[W(k,{text:"Cancel",size:"large",themeColor:"base"}),W(k,{text:"Set",size:"large",themeColor:"primary"})]}),children:W(ne,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};ce.states=Wr;ce.options=Qr;ce.className=ta;ce.defaultOptions=St;import{jsx as Mk}from"react/jsx-runtime";import{jsx as Bk}from"react/jsx-runtime";import{jsx as Ok}from"react/jsx-runtime";import{jsx as Gk}from"react/jsx-runtime";import{jsx as _k}from"react/jsx-runtime";import{jsx as Uk}from"react/jsx-runtime";import{Fragment as Eo,jsx as R,jsxs as gt}from"react/jsx-runtime";var oa="k-combobox",jr=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],ei={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},It={size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},Re=e=>{let{size:t=It.size,rounded:o=It.rounded,fillMode:r=It.fillMode,separators:p=It.separators,prefix:c,suffix:i,value:u,placeholder:b,hover:x,focus:h,valid:L,invalid:l,required:N,loading:v,disabled:S,popup:C,opened:T,readonly:w,adaptive:$,adaptiveSettings:fe,adaptiveTitle:nt,adaptiveSubtitle:rt,adaptiveCustomValue:Ut,...qt}=e;return gt(Eo,{children:[gt(z,{...qt,size:t,rounded:o,fillMode:r,hover:x,focus:h,valid:L,invalid:l,required:N,loading:v,disabled:S,readonly:w,className:a(e.className,oa),children:[c&>(Eo,{children:[R(se,{children:c}),p&&R(ie,{})]}),R(j,{placeholder:b,value:u}),R(_,{valid:L,invalid:l,loading:v,disabled:S}),R(X,{loading:v,disabled:S}),R(Z,{loading:v,disabled:S,readonly:w,value:u}),i&>(Eo,{children:[p&&R(ie,{}),R(ae,{children:i})]}),R(k,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:r})]}),T&&C&&R(H,{className:"k-list-container k-combobox-popup",children:C}),$&&R(ee,{adaptive:!0,...fe,header:R(F,{actionsEnd:R(k,{ico