@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 66.1 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"}),I=(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 wa,jsx as ss}from"react/jsx-runtime";var to="k-icon k-font-icon",Ta=[],Aa={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]},Ba={},dt=e=>{let{size:t,themeColor:o,icon:r,rotate:i,flip:c,...l}=e;return r?ss("span",{...l,className:a(e.className,to,g(to,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"})}):ss(wa,{})};dt.states=Ta;dt.options=Aa;dt.className=to;dt.defaultOptions=Ba;var as=dt;import{Fragment as Ea,jsx as Pt}from"react/jsx-runtime";var oo="k-icon k-svg-icon",Pa=[],za={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]},ns={viewBox:"0 0 24 24"},mt=e=>{let{size:t,themeColor:o,rotate:r,flip:i,viewBox:c=ns.viewBox,icon:l,...u}=e;if(!l)return Pt(Ea,{});l==="none"&&{...u,className:a(e.className,oo,"k-none")};let b=typeof l=="object"&&l.name&&l.name;return Pt("span",{...u,className:a(e.className,oo,g("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:Pt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:c,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};mt.states=Pa;mt.options=za;mt.className=oo;mt.defaultOptions=ns;var so=mt;import*as rs from"@progress/kendo-svg-icons";import{Fragment as is,jsx as ut}from"react/jsx-runtime";var Oa=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ka=[],Ra={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]},ao={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:r,type:i=ao.type,rotate:c,flip:l,viewBox:u=ao.viewBox,...b}=e;if(!r)return ut(is,{});if(i==="svg"){if(r==="none")return ut(so,{...b,icon:r,size:t});let x=Oa(`${r}-icon`);return rs[x]?ut(so,{...b,icon:rs[x],size:t,themeColor:o,rotate:c,flip:l,viewBox:u}):ut(is,{})}return ut(as,{...b,icon:r,size:t,themeColor:o,rotate:c,flip:l})};M.states=Ka;M.options=Ra;M.defaultOptions=ao;import{Fragment as $a,jsx as ft,jsxs as ls}from"react/jsx-runtime";var zt="k-button",Ha=[s.hover,s.focus,s.active,s.selected,s.disabled],Ga={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]},Be={size:n.medium,rounded:f.medium,fillMode:d.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},h=e=>{let{size:t=Be.size,rounded:o=Be.rounded,fillMode:r=Be.fillMode,themeColor:i=Be.themeColor,showArrow:c=Be.showArrow,arrowIconName:l=Be.arrowIconName,hover:u,focus:b,active:x,selected:N,disabled:L,icon:p,text:k,iconClassName:v,...S}=e,C=p!==void 0,T=e.children!==void 0;return ls("button",{...S,className:a(e.className,zt,g(zt,{size:t,rounded:o,fillMode:r,themeColor:i}),I(zt,{hover:u,focus:b,active:x,disabled:L,selected:N}),{"k-icon-button":!k&&!T&&C}),children:[p&&ft(M,{className:a(v,"k-button-icon"),icon:p}),k?ls($a,{children:[k&&ft("span",{className:"k-button-text",children:k}),e.children]}):e.children&&ft("span",{className:"k-button-text",children:e.children}),c&&ft("span",{className:"k-menu-button-arrow k-button-arrow",children:ft(M,{icon:l})})]})};h.states=Ha;h.options=Ga;h.className=zt;h.defaultOptions=Be;import{jsx as Da}from"react/jsx-runtime";var Et=e=>Da(h,{icon:"folder",...e,children:void 0});import{jsx as Va}from"react/jsx-runtime";var no=e=>Va(h,{icon:"folder",children:"Button",...e});import{jsx as El}from"react/jsx-runtime";import{jsx as Je,jsxs as ro}from"react/jsx-runtime";var bt="k-slider",_a=[s.hover,s.focus,s.active,s.disabled,s.readonly],Xa={},Ne={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},X=e=>{let{type:t=Ne.type,orientation:o=Ne.orientation,readonly:r=Ne.readonly,disabled:i=Ne.disabled,handlePosition:c=Ne.handlePosition,showButtons:l=Ne.showButtons,showTicks:u=Ne.showTicks,hover:b,focus:x,active:N,trackStyle:L,dir:p,...k}=e,v,S;return o==="horizontal"?(v=p==="rtl"?"caret-alt-left":"caret-alt-right",S=p==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(v="caret-alt-up",S="caret-alt-down"),ro("div",{...k,className:a(bt,e.className,I(bt,{readonly:r,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:p,children:[l&&Je(h,{className:"k-button-decrease",rounded:"full",icon:S}),ro("div",{className:"k-slider-track-wrap",children:[u&&Je("ul",{className:"k-reset k-slider-items",children:e.children}),ro("div",{className:"k-slider-track",style:L,children:[Je("div",{className:"k-slider-selection"}),t==="range"&&Je("span",{className:a("k-draghandle","k-draghandle-start",I(bt,{hover:b,focus:x,active:N}))}),Je("span",{className:a("k-draghandle",`k-draghandle-${c}`,I(bt,{hover:b,focus:x,active:N}))})]})]}),l&&Je(h,{className:"k-button-increase",rounded:"full",icon:v})]})};X.states=_a;X.options=Xa;X.className=bt;X.defaultOptions=Ne;import{jsx as ps}from"react/jsx-runtime";var cs="k-tick",Ja=[],Fa={},ds={label:!1},K=e=>{let{style:t,label:o=ds.label,orientation:r,large:i,text:c,...l}=e;return ps("li",{...l,className:a(e.className,cs,{[`k-tick-${r}`]:r,"k-tick-large":i}),style:t,children:o&&ps("span",{className:"k-label",children:c})})};K.states=Ja;K.options=Fa;K.className=cs;K.defaultOptions=ds;import{Fragment as Ua,jsx as F,jsxs as qa}from"react/jsx-runtime";var Ot=e=>F(X,{children:qa(Ua,{children:[F(K,{className:"k-first",label:!0,large:!0,text:"0"}),F(K,{}),F(K,{}),F(K,{}),F(K,{}),F(K,{label:!0,large:!0,text:"5"}),F(K,{}),F(K,{}),F(K,{}),F(K,{}),F(K,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as ep,jsx as jl,jsxs as tp}from"react/jsx-runtime";import{Fragment as rp,jsx as np,jsxs as ip}from"react/jsx-runtime";import{Fragment as mp,jsx as dp,jsxs as up}from"react/jsx-runtime";import{jsx as Wa}from"react/jsx-runtime";var io=e=>Wa(X,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Ya}from"react/jsx-runtime";var lo=e=>Ya(X,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as ja}from"react/jsx-runtime";var xt="k-button-group",Qa=[s.disabled],Za={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},ms={fillMode:d.solid},E=e=>{let{fillMode:t=ms.fillMode,disabled:o,stretched:r,...i}=e;return ja("div",{...i,className:a(e.className,xt,g(xt,{fillMode:t}),I(xt,{disabled:o}),{[`${xt}-stretched`]:r}),children:e.children})};E.states=Qa;E.options=Za;E.className=xt;E.defaultOptions=ms;import{Fragment as Rp,jsx as Kp,jsxs as Hp}from"react/jsx-runtime";import{Fragment as Xp,jsx as _p,jsxs as Jp}from"react/jsx-runtime";import{Fragment as Qp,jsx as Yp,jsxs as Zp}from"react/jsx-runtime";import{Fragment as ac,jsx as sc,jsxs as nc}from"react/jsx-runtime";import{jsx as on}from"react/jsx-runtime";var Kt="k-input",en=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],tn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Rt={size:n.medium,rounded:n.medium,fillMode:d.solid},w=e=>{let{hover:t,focus:o,disabled:r,invalid:i,valid:c,loading:l,readonly:u,size:b=Rt.size,rounded:x=Rt.rounded,fillMode:N=Rt.fillMode,...L}=e;return on("span",{...L,className:a(e.className,Kt,g(Kt,{size:b,rounded:x,fillMode:N}),I(Kt,{hover:t,focus:o,disabled:r,invalid:i,valid:c,loading:l,readonly:u}))})};w.states=en;w.options=tn;w.className=Kt;w.defaultOptions=Rt;import{jsx as nn}from"react/jsx-runtime";var Ht="k-picker",sn=[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]},Gt={size:n.medium,rounded:f.medium,fillMode:d.solid},j=e=>{let{hover:t,focus:o,disabled:r,invalid:i,valid:c,loading:l,readonly:u,size:b=Gt.size,rounded:x=Gt.rounded,fillMode:N=Gt.fillMode,...L}=e;return nn("span",{...L,className:a(e.className,Ht,g(Ht,{size:b,rounded:x,fillMode:N}),I(Ht,{hover:t,focus:o,disabled:r,invalid:i,valid:c,loading:l,readonly:u})),children:e.children})};j.states=sn;j.options=an;j.className=Ht;j.defaultOptions=Gt;import{Fragment as pn,jsx as po}from"react/jsx-runtime";var us="k-clear-value",rn=[s.disabled,s.loading,s.readonly],ln={},ee=e=>{let{disabled:t,loading:o,readonly:r,value:i}=e;return t||r||o||!i?po(pn,{}):po("span",{className:a(e.className,us),children:po(M,{icon:"x"})})};ee.states=rn;ee.options=ln;ee.className=us;import{jsx as mn}from"react/jsx-runtime";var co="k-input-inner",cn=[],dn={},$t={type:"text",autocomplete:"off",value:"",placeholder:""},te=e=>{let{value:t=$t.value,type:o=$t.type,placeholder:r=$t.placeholder,autocomplete:i=$t.autocomplete,...c}=e;return mn("input",{...c,type:o,className:a(e.className,co,g(co,e)),placeholder:r,autoComplete:i,defaultValue:t})};te.states=cn;te.options=dn;te.className=co;import{jsx as fs,jsxs as bn}from"react/jsx-runtime";var mo="k-input-inner",un=[],fn={},we=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:i,valueIconName:c,...l}=e;return bn("span",{...l,className:a(e.className,mo,g(mo,e)),children:[i,!i&&c&&fs(M,{className:"k-input-value-icon",icon:c}),r&&!t&&o,r&&t&&fs("span",{className:"k-input-value-text",children:t})]})};we.states=un;we.options=fn;we.className=mo;import{jsx as Nn}from"react/jsx-runtime";var uo="k-input-inner",xn=[],hn={},bs={value:"",placeholder:""},fo=e=>{let{value:t=bs.value,placeholder:o=bs.placeholder,rows:r,...i}=e;return Nn("textarea",{...i,className:a(e.className,uo,g(uo,e)),placeholder:o,rows:r,defaultValue:t})};fo.states=xn;fo.options=hn;fo.className=uo;import{Fragment as vn,jsx as xs}from"react/jsx-runtime";var hs="k-input-loading-icon",kn=[s.disabled,s.loading],U=e=>{let{disabled:t,loading:o}=e;return t||!o?xs(vn,{}):xs("span",{className:a(e.className,hs,"k-icon k-i-loading")})};U.states=kn;U.className=hs;import{Fragment as gn,jsx as Ns}from"react/jsx-runtime";var ks="k-input-validation-icon",Ln=[s.valid,s.invalid,s.disabled,s.loading],Sn={},J=e=>{let{valid:t,invalid:o,disabled:r,loading:i}=e,c=o?"warning-circle":"check-circle";return r||i||!!!(t||o)?Ns(gn,{}):Ns(M,{className:a(ks),icon:c})};J.states=Ln;J.options=Sn;J.className=ks;import{Fragment as yn,jsx as vs}from"react/jsx-runtime";var Mn="k-input-prefix",In={direction:"horizontal"},ne=e=>{let{direction:t=In.direction,...o}=e;return e.children?vs("span",{...o,className:a(Mn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):vs(yn,{})};import{Fragment as An,jsx as Ls}from"react/jsx-runtime";var Cn="k-input-suffix",Tn={direction:"horizontal"},re=e=>{let{direction:t=Tn.direction,...o}=e;return e.children?Ls("span",{...o,className:a(Cn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ls(An,{})};import{jsx as qc}from"react/jsx-runtime";import{jsx as Zc}from"react/jsx-runtime";import{jsx as wn}from"react/jsx-runtime";var Ss="k-input-separator",Bn={direction:"vertical"},pe=e=>{let{direction:t=Bn.direction,...o}=e;return wn("span",{...o,className:a(Ss,e.className,{[`${Ss}-${t}`]:t})})};import{jsx as gs,jsxs as En}from"react/jsx-runtime";var Ms="k-color-preview",Pn=[],zn={},ke=e=>{let{color:t,iconName:o,...r}=e;return En("span",{...r,className:a(e.className,Ms,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&gs(M,{icon:o,className:"k-color-preview-icon"}),gs("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};ke.states=Pn;ke.options=zn;ke.className=Ms;import{jsx as Is}from"react/jsx-runtime";var ys="k-animation-container",On=[],Kn={},Cs={positionMode:"absolute"},ve=e=>{let{positionMode:t=Cs.positionMode,animationStyle:o,offset:r,...i}=e;return Is("div",{...i,style:{...r,...e.style},className:a(e.className,ys,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Is("div",{className:"k-child-animation-container",style:o,children:e.children})})};ve.states=On;ve.options=Kn;ve.className=ys;ve.defaultOptions=Cs;import{jsx as Ts}from"react/jsx-runtime";var As="k-popup",Rn=[],Hn={},Bs={positionMode:"absolute"},G=e=>{let{offset:t,positionMode:o=Bs.positionMode,animationStyle:r,...i}=e;return Ts(ve,{positionMode:o,offset:t,animationStyle:r,children:Ts("div",{...i,className:a(e.className,As),children:e.children})})};G.states=Rn;G.options=Hn;G.className=As;G.defaultOptions=Bs;import{jsx as Dn}from"react/jsx-runtime";var Dt="k-actions",Gn=[],$n={},bo={alignment:"start",orientation:"horizontal"},Le=e=>{let{alignment:t=bo.alignment,orientation:o=bo.orientation,...r}=e;return Dn("div",{...r,className:a(Dt,{[`${Dt}-${t}`]:t,[`${Dt}-${o}`]:o},e.className),children:e.children})};Le.states=Gn;Le.options=$n;Le.className=Dt;Le.defaultOptions=bo;import{jsx as _n}from"react/jsx-runtime";var Vn="k-actionsheet-footer",ws={alignment:"stretched",orientation:"horizontal"},ht=e=>{let{alignment:t=ws.alignment,orientation:o=ws.orientation,template:r,as:i=r?"div":Le,...c}=e;return _n(i,{...c,...!r&&{alignment:t,orientation:o},className:a(e.className,Vn),children:e.children})};import{jsx as Nt,jsxs as Fn}from"react/jsx-runtime";var Ps="k-searchbox",Xn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Jn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},xo={showIcon:!0,icon:"search",size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode},ce=e=>{let{value:t,placeholder:o,size:r,rounded:i,fillMode:c,hover:l,focus:u,valid:b,invalid:x,required:N,loading:L,disabled:p,showIcon:k=xo.showIcon,icon:v=xo.icon,...S}=e;return Fn(w,{...S,size:r,rounded:i,fillMode:c,hover:l,focus:u,valid:b,invalid:x,required:N,loading:L,disabled:p,className:a(e.className,Ps),children:[k&&Nt(M,{className:"k-input-icon",icon:v}),Nt(te,{placeholder:o,value:t}),Nt(U,{...e}),Nt(J,{...e}),Nt(ee,{...e})]})};ce.states=Xn;ce.options=Jn;ce.className=Ps;ce.defaultOptions=xo;import{jsx as Qd}from"react/jsx-runtime";import{Fragment as zs,jsx as Se,jsxs as ho}from"react/jsx-runtime";var Es="k-textbox",Un=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,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]},Pe={showClearButton:!0,showValidationIcon:!0,size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},ge=e=>{let{size:t=Pe.size,rounded:o=Pe.rounded,fillMode:r=Pe.fillMode,separators:i=Pe.separators,showClearButton:c=Pe.showClearButton,showValidationIcon:l=Pe.showValidationIcon,prefix:u,suffix:b,type:x,value:N,placeholder:L,hover:p,focus:k,valid:v,invalid:S,required:C,loading:T,disabled:P,readonly:D,...he}=e;return ho(w,{...he,size:t,rounded:o,fillMode:r,hover:p,focus:k,valid:v,invalid:S,required:C,loading:T,disabled:P,readonly:D,className:a(e.className,Es),children:[u&&ho(zs,{children:[Se(ne,{children:u}),i&&Se(pe,{})]}),Se(te,{placeholder:L,value:N,type:x}),l&&Se(J,{valid:v,invalid:S,loading:T,disabled:P}),Se(U,{loading:T,disabled:P}),c&&Se(ee,{loading:T,disabled:P,readonly:D,value:N}),b&&ho(zs,{children:[i&&Se(pe,{}),Se(re,{children:b})]})]})};ge.states=Un;ge.options=qn;ge.className=Es;ge.defaultOptions=Pe;import{jsx as lm}from"react/jsx-runtime";import{Fragment as fm,jsx as um}from"react/jsx-runtime";import{Fragment as Lm,jsx as vm}from"react/jsx-runtime";import{jsx as Me,jsxs as No}from"react/jsx-runtime";var Ks="k-actionsheet-titlebar",Wn={},q=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:i,filter:c,input:l,inputValue:u,inputPlaceholder:b,adaptive:x,children:N,...L}=e;return No("div",{...L,className:a(e.className,Ks),children:[No("div",{className:"k-actionsheet-titlebar-group",children:[r&&Me("div",{className:"k-actionsheet-actions",children:r}),!N&&No("div",{className:"k-actionsheet-title",children:[t&&Me("div",{className:"k-text-center",children:t}),o&&Me("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&Me("div",{className:"k-actionsheet-title",children:N}),i&&Me("div",{className:"k-actionsheet-actions",children:i})]}),(l||c)&&Me("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Me(ge,{value:u,placeholder:b,size:x?"large":"medium"}):Me(ce,{placeholder:"Filter",size:x?"large":"medium"})})]})};q.className=Ks;q.defaultOptions=Wn;import{jsx as ko,jsxs as jn}from"react/jsx-runtime";var vo="k-actionsheet-view",Yn=[],Qn={},Zn={},Fe=e=>{let{adaptive:t,animated:o,children:r,header:i,footer:c,...l}=e,u=i?.type===q&&ko(q,{adaptive:t,...i?.props}),b=c?.type===ht&&ko(ht,{...c?.props});return jn("div",{...l,className:a(e.className,vo,{[`${vo}-animated`]:o}),children:[u,ko("div",{className:"k-actionsheet-content",children:r}),b]})};Fe.states=Yn;Fe.options=Qn;Fe.className=vo;Fe.defaultOptions=Zn;import{jsx as Vt,jsxs as or}from"react/jsx-runtime";var Rs="k-actionsheet",er=[],tr={},kt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},oe=e=>{let{side:t=kt.side,fullscreen:o=kt.fullscreen,adaptive:r=kt.adaptive,overlay:i=kt.overlay,template:c,children:l,header:u,footer:b,...x}=e;return or("div",{className:"k-actionsheet-container",children:[i&&Vt("div",{className:"k-overlay"}),Vt(ve,{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:Vt("div",{...x,className:a(e.className,Rs,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:c||Vt(Fe,{header:u,footer:b,adaptive:r,...e,children:l})})})]})};oe.states=er;oe.options=tr;oe.className=Rs;oe.defaultOptions=kt;import{jsx as Jm}from"react/jsx-runtime";import{Fragment as ar,jsx as vt,jsxs as Lo}from"react/jsx-runtime";var So="k-actionsheet-item",sr=[s.hover,s.focus,s.selected,s.disabled],go=e=>{let{iconName:t,text:o,description:r,hover:i,focus:c,selected:l,disabled:u,...b}=e;return Lo("span",{...b,className:a(e.className,So,I(So,{hover:i,focus:c,selected:l,disabled:u})),children:[!e.children&&vt(ar,{children:Lo("span",{className:"k-actionsheet-action",children:[t&&vt("span",{className:"k-icon-wrap",children:vt(M,{className:"k-actionsheet-item-icon",icon:t})}),Lo("span",{className:"k-actionsheet-item-text",children:[o&&vt("span",{className:"k-actionsheet-item-title",children:o}),r&&vt("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};go.states=sr;go.className=So;import{jsx as eu,jsxs as tu}from"react/jsx-runtime";import{jsx as nu}from"react/jsx-runtime";import{jsx as pu}from"react/jsx-runtime";import{jsx as uu}from"react/jsx-runtime";import{jsx as Gs,jsxs as ir}from"react/jsx-runtime";var $s="k-spin-button",nr=[],rr={size:[n.small,n.medium,n.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Mo={size:n.medium,fillMode:d.solid},Ue=e=>{let{size:t=Mo.size,fillMode:o=Mo.fillMode,...r}=e;return ir("span",{...r,className:a($s,e.className),children:[Gs(h,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Gs(h,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Ue.states=nr;Ue.options=rr;Ue.className=$s;Ue.defaultOptions=Mo;import{Fragment as Ds,jsx as de,jsxs as Io}from"react/jsx-runtime";var Vs="k-numerictextbox",lr=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],pr={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:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},R=e=>{let{size:t=ze.size,rounded:o=ze.rounded,fillMode:r=ze.fillMode,separators:i=ze.separators,showClearButton:c=ze.showClearButton,showSpinButton:l=ze.showSpinButton,prefix:u,suffix:b,value:x,placeholder:N,hover:L,focus:p,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:P,...D}=e;return Io(w,{...D,size:t,rounded:o,fillMode:r,hover:L,focus:p,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:P,className:a(e.className,Vs),children:[u&&Io(Ds,{children:[de(ne,{children:u}),i&&de(pe,{})]}),de(te,{placeholder:N,value:x}),de(J,{valid:k,invalid:v,loading:C,disabled:T}),de(U,{loading:C,disabled:T}),c&&de(ee,{loading:C,disabled:T,readonly:P,value:x}),b&&Io(Ds,{children:[i&&de(pe,{}),de(re,{children:b})]}),l&&de(Ue,{className:"k-input-spinner",size:t,fillMode:r})]})};R.states=lr;R.options=pr;R.className=Vs;R.defaultOptions=ze;import{jsx as Gu}from"react/jsx-runtime";import{jsx as dr}from"react/jsx-runtime";var cr="k-no-data",Lt=e=>dr("span",{className:a(cr,e.className),children:e.children});import{jsx as qe,jsxs as Xs}from"react/jsx-runtime";var yo="k-list",mr=[],ur={size:[n.small,n.medium,n.large]},Js={size:n.medium},z=e=>{let{size:t=Js.size,virtualization:o,children:r,optionLabel:i,customValue:c,screenReaders:l,...u}=e,b,x,N,L,p=[];return r?r.map((k,v)=>{k.type===$?(k.props.root===!0?(b=k.props.label,k.props.children.map((S,C)=>{p.push(qe(y,{...S.props},`optChild-${C}-${new Date().getTime()}`))})):k.props.children.forEach((S,C)=>{let T="";C===0&&(T=k.props.label),p.push(qe(y,{className:C===0?"k-first":"",...S.props,groupLabel:T},`groupLabel-${C}-${new Date().getTime()}`))}),x=qe($,{label:b,virtualization:o,children:p})):k.type===y&&(p.push(qe(y,{...k.props},`${k.type}-${v}`)),N=qe(We,{virtualization:o,children:p}),l&&(L=Xs(Lt,{className:"k-sr-only",children:[p.length," items found."]})))}):L=qe(Lt,{children:"No data found."}),Xs("div",{...u,className:a(e.className,yo,g(yo,{size:t}),{"k-virtual-list":o}),children:[i,c,x,N,L]})};z.states=mr;z.options=ur;z.className=yo;z.defaultOptions=Js;import{jsx as Ee,jsxs as xr}from"react/jsx-runtime";var Co="k-list",fr=[],br={size:[n.small,n.medium,n.large]},Fs={size:n.medium},Oe=e=>{let{size:t=Fs.size,virtualization:o,children:r,...i}=e,c,l,u,b=[];return r?r.map((x,N)=>{x.type===$?(x.props.root===!0?(c=x.props.label,x.props.children.map((L,p)=>{b.push(Ee(y,{...L.props},`optChild-${p}-${new Date().getTime()}`))})):(b.push(Ee(Us,{...x.props,children:x.props.label},`listChild-${N}`)),x.props.children.map((L,p)=>{b.push(Ee(y,{...L.props},`fwOptChild-${p}-${new Date().getTime()}`))})),l=Ee($,{label:c,virtualization:o,children:b})):x.type===y&&(b.push(Ee(y,{...x.props},`${x.type}-${N}`)),u=Ee(We,{virtualization:o,children:b}))}):u=Ee(Lt,{children:"No data found."}),xr("div",{...i,className:a(e.className,Co,g(Co,{size:t}),{"k-virtual-list":o}),children:[l,u]})};Oe.states=fr;Oe.options=br;Oe.className=Co;Oe.defaultOptions=Fs;import{jsx as qs}from"react/jsx-runtime";var _t="k-checkbox",hr=[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]},To={size:n.medium,rounded:f.medium},Ie=e=>{let{id:t,checked:o,indeterminate:r,hover:i,focus:c,disabled:l,invalid:u,valid:b,required:x,size:N=To.size,rounded:L=To.rounded,...p}=e;return qs("span",{className:"k-checkbox-wrap",children:qs("input",{...p,id:t,type:"checkbox",defaultChecked:o,required:x,className:a(e.className,_t,g(_t,{size:N,rounded:L}),I(_t,{hover:i,focus:c,disabled:l,invalid:u,valid:b,indeterminate:r,checked:o}))})})};Ie.states=hr;Ie.options=Nr;Ie.className=_t;Ie.defaultOptions=To;import{jsx as Lr}from"react/jsx-runtime";var Ws="k-checkbox-list",kr=[],vr={},Ys={layout:"vertical"},Ye=e=>{let{layout:t=Ys.layout,...o}=e;return Lr("ul",{...o,className:a(e.className,Ws,{[`k-list-${t}`]:t}),children:e.children})};Ye.states=kr;Ye.options=vr;Ye.className=Ws;Ye.defaultOptions=Ys;import{jsx as Ir}from"react/jsx-runtime";var Qs="k-checkbox-list-item",Sr=[],gr={},Mr={},Qe=e=>{let{...t}=e;return Ir("li",{...t,className:a(e.className,Qs),children:e.children})};Qe.states=Sr;Qe.options=gr;Qe.className=Qs;Qe.defaultOptions=Mr;import{Fragment as bf,jsx as ff,jsxs as xf}from"react/jsx-runtime";import{Fragment as Lf,jsx as vf,jsxs as Sf}from"react/jsx-runtime";import{Fragment as Cf,jsx as yf,jsxs as Tf}from"react/jsx-runtime";import{Fragment as zf,jsx as Pf,jsxs as Ef}from"react/jsx-runtime";import{jsx as Hf}from"react/jsx-runtime";import{jsx as Vf}from"react/jsx-runtime";import{jsx as Xt,jsxs as Ar}from"react/jsx-runtime";var Bo="k-list-item",yr=[s.hover,s.focus,s.selected,s.disabled],Cr={},Tr={},y=e=>{let{text:t,groupLabel:o,group:r,showIcon:i,iconName:c,showCheckbox:l,checked:u,hover:b,focus:x,selected:N,disabled:L,...p}=e,k=t||e.children;return Ar("li",{...p,className:a(e.className,r?"k-list-group-item":Bo,I(Bo,{hover:b,focus:x,disabled:L,selected:N})),children:[l&&Xt(Ie,{checked:u}),i&&Xt(M,{icon:c}),Xt("span",{className:"k-list-item-text",children:k}),o&&o!==""&&Xt("div",{className:"k-list-item-group-label",children:o})]})};y.states=yr;y.options=Cr;y.className=Bo;y.defaultOptions=Tr;import{jsx as wo,jsxs as wr}from"react/jsx-runtime";var Br="k-list-content",We=e=>{let{virtualization:t,...o}=e;return wr("div",{...o,className:a(Br,e.className),children:[wo("ul",{className:a("k-list-ul"),children:e.children}),t&&wo("div",{className:"k-height-container",children:wo("div",{})})]})};import{jsx as Zs}from"react/jsx-runtime";var Pr="k-list-group-sticky-header",js=e=>Zs("div",{className:a(Pr,e.className),children:Zs("div",{className:"k-list-header-text",children:e.children})});import{Fragment as zr,jsx as ea,jsxs as Er}from"react/jsx-runtime";var $=e=>{let{virtualization:t,label:o}=e;return Er(zr,{children:[o&&ea(js,{children:o}),e.children&&ea(We,{virtualization:t,children:e.children})]})};import{jsx as ta}from"react/jsx-runtime";var Or="k-list-group-item",Us=e=>ta("li",{className:a(Or,e.className),children:ta("span",{className:"k-list-item-text",children:e.children})});import{jsx as Gr}from"react/jsx-runtime";var Po="k-list-optionlabel",Kr=[s.hover,s.focus,s.selected,s.disabled],Rr={},Hr={},Jt=e=>{let{text:t,hover:o,focus:r,selected:i,disabled:c,...l}=e;return Gr("div",{...l,className:a(Po,I(Po,{hover:o,focus:r,selected:i,disabled:c})),children:t})};Jt.states=Kr;Jt.options=Rr;Jt.className=Po;Jt.defaultOptions=Hr;import{jsx as _r}from"react/jsx-runtime";var zo="k-list-custom-value",$r=[s.hover,s.focus,s.selected,s.disabled],Dr={},Vr={},ye=e=>{let{text:t,hover:o,focus:r,selected:i,disabled:c,...l}=e;return _r("div",{...l,className:a(zo,I(zo,{hover:o,focus:r,selected:i,disabled:c})),children:t})};ye.states=$r;ye.options=Dr;ye.className=zo;ye.defaultOptions=Vr;import{jsx as Ib}from"react/jsx-runtime";import{jsx as Ab}from"react/jsx-runtime";import{jsx as zb,jsxs as Eb}from"react/jsx-runtime";import{jsx as Hb,jsxs as Gb}from"react/jsx-runtime";import{jsx as _b}from"react/jsx-runtime";import{jsx as Ub,jsxs as qb}from"react/jsx-runtime";import{jsx as Zb,jsxs as jb}from"react/jsx-runtime";import{Fragment as Fr,jsx as V,jsxs as Eo}from"react/jsx-runtime";var oa="k-dropdownlist",Xr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Jr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ze={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:d.solid},Ce=e=>{let{size:t=Ze.size,rounded:o=Ze.rounded,fillMode:r=Ze.fillMode,arrowIconName:i=Ze.arrowIconName,showValue:c=Ze.showValue,valueIconName:l,prefix:u,suffix:b,value:x,placeholder:N,hover:L,focus:p,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:P,popup:D,opened:he,adaptive:pt,adaptiveSettings:ct,adaptiveTitle:jt,adaptiveSubtitle:eo,adaptiveFilter:ya,...Ca}=e;return Eo(Fr,{children:[Eo(j,{...Ca,size:t,rounded:o,fillMode:r,hover:L,focus:p,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:P,className:a(e.className,oa,{"k-icon-picker":!c&&l}),children:[V(ne,{children:u}),V(we,{placeholder:N,value:x,showValue:c,valueIconName:l}),V(J,{valid:k,invalid:v,loading:C,disabled:T}),V(U,{loading:C,disabled:T}),V(re,{children:b}),V(h,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),he&&D&&V(G,{className:"k-list-container k-dropdownlist-popup",children:D}),pt&&V(oe,{adaptive:!0,...ct,header:V(q,{actionsEnd:V(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ya,inputValue:x,inputPlaceholder:N,title:jt,subtitle:eo}),children:V("div",{className:"k-list-container",children:Eo(z,{size:"large",children:[V(y,{text:"List item"}),V(y,{text:"List item"}),V(y,{text:"List item"})]})})})]})};Ce.states=Xr;Ce.options=Jr;Ce.className=oa;Ce.defaultOptions=Ze;import{jsx as Ax}from"react/jsx-runtime";import{jsx as Ex,jsxs as Ox}from"react/jsx-runtime";import{Fragment as _x,jsx as Dx,jsxs as Vx}from"react/jsx-runtime";import{jsx as Ux}from"react/jsx-runtime";import{jsx as Zx,jsxs as jx}from"react/jsx-runtime";import{jsx as ah,jsxs as nh}from"react/jsx-runtime";import{Fragment as uh,jsx as dh,jsxs as mh}from"react/jsx-runtime";import{Fragment as Lh,jsx as kh,jsxs as vh}from"react/jsx-runtime";import{Fragment as Rh,jsx as Kh}from"react/jsx-runtime";import{Fragment as Xh,jsx as _h}from"react/jsx-runtime";import{Fragment as St,jsx as A,jsxs as O}from"react/jsx-runtime";var sa="k-colorgradient-inputs",Ur=[],qr={size:[n.small,n.medium,n.large]},aa={mode:"rgba",size:n.medium},je=e=>{let{mode:t=aa.mode,size:o,...r}=e;return O("div",{...r,className:a(sa,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(h,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&O(St,{children:[O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&O(St,{children:[O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&O(St,{children:[O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&O(St,{children:[O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(St,{children:O("div",{className:"k-vstack k-flex-1",children:[A(ge,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};je.states=Ur;je.options=qr;je.className=sa;je.defaultOptions=aa;import{jsx as Re,jsxs as He}from"react/jsx-runtime";var na="k-colorgradient-color-contrast",Wr=[],Yr={},Qr={},et=()=>He("div",{className:a(na,"k-vbox"),children:[He("div",{className:"k-contrast-ratio",children:[Re("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),He("span",{className:"k-contrast-validation !k-text-success",children:[Re(M,{icon:"check"}),Re(M,{icon:"check"})]})]}),He("div",{children:[Re("span",{children:"AA: 4.5"}),He("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Re(M,{icon:"check"})]})]}),He("div",{children:[Re("span",{children:"AAA: 7.0"}),He("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Re(M,{icon:"x"})]})]})]});et.states=Wr;et.options=Yr;et.className=na;et.defaultOptions=Qr;import{jsx as W,jsxs as gt}from"react/jsx-runtime";var Ft="k-colorgradient",Zr=[s.hover,s.focus,s.readonly,s.disabled],jr={size:[n.small,n.medium,n.large]},se={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"},Te=e=>{let{size:t=se.size,mode:o=se.mode,readonly:r=se.readonly,disabled:i=se.disabled,gradientStyle:c=se.gradientStyle,dragHandleStyle:l=se.dragHandleStyle,alphaStyle:u=se.alphaStyle,alphaStyleHorizontal:b=se.alphaStyleHorizontal,contrast:x=se.contrast,dir:N,hover:L,focus:p,hoverHandle:k,focusHandle:v,canvasOrientation:S=se.canvasOrientation,...C}=e;return gt("div",{...C,className:a(e.className,Ft,g(Ft,{size:t}),I(Ft,{hover:L,focus:p,readonly:r,disabled:i})),dir:N,children:[!S||S==="horizontal"&>("div",{className:"k-colorgradient-canvas k-hstack",children:[W("div",{className:"k-hsv-rectangle",style:c,children:W("div",{className:"k-hsv-gradient",children:W("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":v}),style:l})})}),gt("div",{className:"k-hsv-controls k-hstack",children:[W(lo,{className:"k-hue-slider",hover:k,focus:v}),o!=="rgb"&&o!=="hsv"&&W(lo,{className:"k-alpha-slider",hover:k,focus:v,trackStyle:u})]})]}),S==="vertical"&>("div",{className:"k-colorgradient-canvas k-vstack",children:[W("div",{className:"k-hsv-rectangle",style:c,children:W("div",{className:"k-hsv-gradient",children:W("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":v}),style:l})})}),gt("div",{className:"k-hsv-controls k-vstack",children:[W(io,{className:"k-hue-slider",hover:k,focus:v}),o!=="rgb"&&o!=="hsv"&&W(io,{className:"k-alpha-slider",hover:k,focus:v,trackStyle:b})]})]}),W(je,{mode:e.mode,size:t}),x&&W(et,{})]})};Te.states=Zr;Te.options=jr;Te.className=Ft;Te.defaultOptions=se;import{jsx as bN}from"react/jsx-runtime";import{jsx as kN}from"react/jsx-runtime";import{jsx as ei}from"react/jsx-runtime";var ra=e=>ei("tr",{children:e.children});import{jsx as si}from"react/jsx-runtime";var Oo="k-colorpalette-tile",ti=[s.hover,s.focus,s.selected],oi={},Mt=e=>{let{color:t,tileSize:o,hover:r,focus:i,selected:c,...l}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return si("td",{...l,className:a(e.className,Oo,I(Oo,{hover:r,focus:i,selected:c})),style:u})};Mt.states=ti;Mt.options=oi;Mt.className=Oo;import{jsx as It}from"react/jsx-runtime";var Ut="k-colorpalette",ai=[s.disabled],ni={size:[n.small,n.medium,n.large]},Ko={columns:10,size:n.medium},tt=e=>{let{size:t=Ko.size,palette:o,columns:r=Ko.columns,tileSize:i,disabled:c,...l}=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)},(N,L)=>{let p=[];x.slice(L*b,(L+1)*b).map((v,S)=>{p.push(It(Mt,{color:v,tileSize:i},S))});let k=It(ra,{children:p},L);u.push(k)})}return It("div",{...l,className:a(e.className,Ut,I(Ut,{disabled:c}),g(Ut,{size:t})),children:It("table",{className:"k-colorpalette-table",children:It("tbody",{children:u.length>0?u:e.children})})})};tt.states=ai;tt.options=ni;tt.className=Ut;tt.defaultOptions=Ko;var Ro={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 VN}from"react/jsx-runtime";import{jsx as Y,jsxs as ot}from"react/jsx-runtime";var qt="k-coloreditor",ri=[s.focus],ii={size:[n.small,n.medium,n.large]},st={size:n.medium,view:"gradient",palette:Ro.office,actionButtons:!0,canvasOrientation:"horizontal"},ie=e=>{let{size:t=st.size,view:o=st.view,palette:r=st.palette,color:i,currentColor:c,focus:l,focusView:u,dir:b,group:x,actionButtons:N=st.actionButtons,canvasOrientation:L=st.canvasOrientation,...p}=e;return ot("div",{...p,className:a(e.className,"k-flatcolorpicker",qt,g(qt,{size:t}),I(qt,{focus:l})),dir:b,children:[ot("div",{className:"k-coloreditor-header k-hstack",children:[Y("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&ot(E,{fillMode:"flat",children:[Y(h,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),Y(h,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),Y("div",{className:"k-spacer"}),ot("div",{className:"k-coloreditor-header-actions k-hstack",children:[Y(h,{fillMode:"flat",icon:"droplet-slash",size:t}),ot("div",{className:"k-coloreditor-preview k-vstack",children:[Y(ke,{className:"k-coloreditor-preview-color",color:i}),Y(ke,{className:"k-coloreditor-current-color",color:c})]})]})]}),Y("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?Y(Te,{focus:u,size:t,canvasOrientation:L}):Y(tt,{palette:r,size:t})}),N&&ot(Le,{className:"k-coloreditor-footer",alignment:"start",children:[Y(h,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Y(h,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ie.states=ri;ie.options=ii;ie.className=qt;ie.defaultOptions=st;import{jsx as ik}from"react/jsx-runtime";import{jsx as dk}from"react/jsx-runtime";import{jsx as bk}from"react/jsx-runtime";import{jsx as kk}from"react/jsx-runtime";import{Fragment as ci,jsx as Q,jsxs as Go}from"react/jsx-runtime";var ia="k-colorpicker",li=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled],pi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},yt={arrowIconName:"caret-alt-down",size:j.defaultOptions.size,rounded:j.defaultOptions.rounded,fillMode:j.defaultOptions.fillMode},me=e=>{let{size:t=yt.size,rounded:o=yt.rounded,fillMode:r=yt.fillMode,arrowIconName:i=yt.arrowIconName,prefix:c,suffix:l,value:u,placeholder:b,hover:x,focus:N,valid:L,invalid:p,required:k,disabled:v,valueIconName:S,popup:C,opened:T,adaptive:P,adaptiveSettings:D,adaptiveTitle:he,adaptiveSubtitle:pt,...ct}=e;return Go(ci,{children:[Go(j,{...ct,size:t,rounded:o,fillMode:r,hover:x,focus:N,valid:L,invalid:p,required:k,disabled:v,className:a(e.className,ia,"k-icon-picker"),children:[Q(ne,{children:c}),Q(we,{placeholder:b,value:u,showValue:!1,valueIcon:Q(ke,{className:"k-value-icon",color:u,iconName:S}),valueIconName:S}),Q(re,{children:l}),Q(h,{className:"k-input-button",icon:i,rounded:null,size:t,fillMode:r})]}),T&&C&&Q(G,{className:"k-colorpicker-popup",children:C}),P&&Q(oe,{adaptive:!0,...D,header:Q(q,{actionsEnd:Q(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:he,subtitle:pt}),footer:Go(ht,{children:[Q(h,{text:"Cancel",size:"large",themeColor:"base"}),Q(h,{text:"Set",size:"large",themeColor:"primary"})]}),children:Q(ie,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};me.states=li;me.options=pi;me.className=ia;me.defaultOptions=yt;import{jsx as Gk}from"react/jsx-runtime";import{jsx as Xk}from"react/jsx-runtime";import{jsx as Wk}from"react/jsx-runtime";import{jsx as jk}from"react/jsx-runtime";import{jsx as sv}from"react/jsx-runtime";import{jsx as iv}from"react/jsx-runtime";import{Fragment as $o,jsx as H,jsxs as Ct}from"react/jsx-runtime";var la="k-combobox",mi=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],ui={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Tt={size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},Ge=e=>{let{size:t=Tt.size,rounded:o=Tt.rounded,fillMode:r=Tt.fillMode,separators:i=Tt.separators,prefix:c,suffix:l,value:u,placeholder:b,hover:x,focus:N,valid:L,invalid:p,required:k,loading:v,disabled:S,popup:C,opened:T,readonly:P,adaptive:D,adaptiveSettings:he,adaptiveTitle:pt,adaptiveSubtitle:ct,adaptiveCustomValue:jt,...eo}=e;return Ct($o,{children:[Ct(w,{...eo,size:t,rounded:o,fillMode:r,hover:x,focus:N,valid:L,invalid:p,required:k,loading:v,disabled:S,readonly:P,className:a(e.className,la),children:[c&&Ct($o,{children:[H(ne,{children:c}),i&&H(pe,{})]}),H(te,{placeholder:b,value:u}),H(J,{valid:L,invalid:p,loading:v,disabled:S}),H(U,{loading:v,disabled:S}),H(ee,{loading:v,disabled:S,readonly:P,value:u}),l&&Ct