UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 46.8 kB
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var S=(e,t)=>s({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),k=(e,t)=>s({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var i={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},b={small:"small",medium:"medium",large:"large",full:"full"},f={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},a={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"};import{jsx as ca}from"react/jsx-runtime";var Qe="k-actions",ra=[],la={},ft={alignment:"start",orientation:"horizontal"},U=e=>{let{alignment:t=ft.alignment,orientation:o=ft.orientation,...n}=e;return ca("div",{...n,className:s(Qe,{[`${Qe}-${t}`]:t,[`${Qe}-${o}`]:o},e.className),children:e.children})};U.states=ra;U.options=la;U.className=Qe;U.defaultOptions=ft;import{Fragment as fa,jsx as Qt}from"react/jsx-runtime";var ut="k-icon k-font-icon",da=[],pa={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},ma={},Pe=e=>{let{size:t,themeColor:o,icon:n,rotate:r,flip:l,...c}=e;return n?Qt("span",{...c,className:s(e.className,ut,S(ut,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):Qt(fa,{})};Pe.states=da;Pe.options=pa;Pe.className=ut;Pe.defaultOptions=ma;var Yt=Pe;import{Fragment as ha,jsx as Ye}from"react/jsx-runtime";var bt="k-icon k-svg-icon",ua=[],ba={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Zt={viewBox:"0 0 24 24"},Ke=e=>{let{size:t,themeColor:o,rotate:n,flip:r,viewBox:l=Zt.viewBox,icon:c,...m}=e;if(!c)return Ye(ha,{});c==="none"&&{...m,className:s(e.className,bt,"k-none")};let d=typeof c=="object"&&c.name&&c.name;return Ye("span",{...m,className:s(e.className,bt,S("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:Ye("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:l,dangerouslySetInnerHTML:typeof c=="object"?{__html:c.content}:void 0,children:c?void 0:e.children})})};Ke.states=ua;Ke.options=ba;Ke.className=bt;Ke.defaultOptions=Zt;var ht=Ke;import*as jt from"@progress/kendo-svg-icons";import{Fragment as eo,jsx as Be}from"react/jsx-runtime";var xa=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),va=[],Na={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},xt={viewBox:"0 0 24 24",type:"svg"},C=e=>{let{size:t,themeColor:o,icon:n,type:r=xt.type,rotate:l,flip:c,viewBox:m=xt.viewBox,...d}=e;if(!n)return Be(eo,{});if(r==="svg"){if(n==="none")return Be(ht,{...d,icon:n,size:t});let p=xa(`${n}-icon`);return jt[p]?Be(ht,{...d,icon:jt[p],size:t,themeColor:o,rotate:l,flip:c,viewBox:m}):Be(eo,{})}return Be(Yt,{...d,icon:n,size:t,themeColor:o,rotate:l,flip:c})};C.states=va;C.options=Na;C.defaultOptions=xt;import{Fragment as ka,jsx as He,jsxs as to}from"react/jsx-runtime";var Ze="k-button",La=[a.hover,a.focus,a.active,a.selected,a.disabled],Sa={size:[i.small,i.medium,i.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},ie={size:i.medium,rounded:b.medium,fillMode:f.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},y=e=>{let{size:t=ie.size,rounded:o=ie.rounded,fillMode:n=ie.fillMode,themeColor:r=ie.themeColor,showArrow:l=ie.showArrow,arrowIconName:c=ie.arrowIconName,hover:m,focus:d,active:p,selected:h,disabled:x,icon:v,text:N,iconClassName:I,...M}=e,A=v!==void 0,w=e.children!==void 0;return to("button",{...M,className:s(e.className,Ze,S(Ze,{size:t,rounded:o,fillMode:n,themeColor:r}),k(Ze,{hover:m,focus:d,active:p,disabled:x,selected:h}),{"k-icon-button":!N&&!w&&A}),children:[v&&He(C,{className:s(I,"k-button-icon"),icon:v}),N?to(ka,{children:[N&&He("span",{className:"k-button-text",children:N}),e.children]}):e.children&&He("span",{className:"k-button-text",children:e.children}),l&&He("span",{className:"k-menu-button-arrow k-button-arrow",children:He(C,{icon:c})})]})};y.states=La;y.options=Sa;y.className=Ze;y.defaultOptions=ie;import{jsx as vn}from"react/jsx-runtime";import{jsx as kn}from"react/jsx-runtime";import{jsx as Cn}from"react/jsx-runtime";import{jsx as Ia}from"react/jsx-runtime";var Re="k-button-group",ga=[a.disabled],ya={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},oo={fillMode:f.solid},V=e=>{let{fillMode:t=oo.fillMode,disabled:o,stretched:n,...r}=e;return Ia("div",{...r,className:s(e.className,Re,S(Re,{fillMode:t}),k(Re,{disabled:o}),{[`${Re}-stretched`]:n}),children:e.children})};V.states=ga;V.options=ya;V.className=Re;V.defaultOptions=oo;import{Fragment as Dn,jsx as Gn,jsxs as Vn}from"react/jsx-runtime";import{Fragment as qn,jsx as Jn,jsxs as Un}from"react/jsx-runtime";import{Fragment as er,jsx as jn,jsxs as tr}from"react/jsx-runtime";import{Fragment as rr,jsx as nr,jsxs as lr}from"react/jsx-runtime";import{jsx as ue,jsxs as vt}from"react/jsx-runtime";var Ge="k-slider",Ca=[a.hover,a.focus,a.active,a.disabled,a.readonly],Ma={},W={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},B=e=>{let{type:t=W.type,orientation:o=W.orientation,readonly:n=W.readonly,disabled:r=W.disabled,handlePosition:l=W.handlePosition,showButtons:c=W.showButtons,showTicks:m=W.showTicks,hover:d,focus:p,active:h,trackStyle:x,dir:v,...N}=e,I,M;return o==="horizontal"?(I=v==="rtl"?"caret-alt-left":"caret-alt-right",M=v==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(I="caret-alt-up",M="caret-alt-down"),vt("div",{...N,className:s(Ge,e.className,k(Ge,{readonly:n,disabled:r}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:v,children:[c&&ue(y,{className:"k-button-decrease",rounded:"full",icon:M}),vt("div",{className:"k-slider-track-wrap",children:[m&&ue("ul",{className:"k-reset k-slider-items",children:e.children}),vt("div",{className:"k-slider-track",style:x,children:[ue("div",{className:"k-slider-selection"}),t==="range"&&ue("span",{className:s("k-draghandle","k-draghandle-start",k(Ge,{hover:d,focus:p,active:h}))}),ue("span",{className:s("k-draghandle",`k-draghandle-${l}`,k(Ge,{hover:d,focus:p,active:h}))})]})]}),c&&ue(y,{className:"k-button-increase",rounded:"full",icon:I})]})};B.states=Ca;B.options=Ma;B.className=Ge;B.defaultOptions=W;import{jsx as ao}from"react/jsx-runtime";var so="k-tick",Aa=[],Ta={},io={label:!1},Q=e=>{let{style:t,label:o=io.label,orientation:n,large:r,text:l,...c}=e;return ao("li",{...c,className:s(e.className,so,{[`k-tick-${n}`]:n,"k-tick-large":r}),style:t,children:o&&ao("span",{className:"k-label",children:l})})};Q.states=Aa;Q.options=Ta;Q.className=so;Q.defaultOptions=io;import{Fragment as Cr,jsx as Ir,jsxs as Mr}from"react/jsx-runtime";import{Fragment as wr,jsx as Er,jsxs as Or}from"react/jsx-runtime";import{Fragment as Rr,jsx as Hr,jsxs as Gr}from"react/jsx-runtime";import{Fragment as Fr,jsx as _r,jsxs as Xr}from"react/jsx-runtime";import{jsx as za}from"react/jsx-runtime";var Nt=e=>za(B,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Ea}from"react/jsx-runtime";var Lt=e=>Ea(B,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Pa}from"react/jsx-runtime";var je="k-input",wa=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Oa={size:[i.small,i.medium,i.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},et={size:i.medium,rounded:i.medium,fillMode:f.solid},z=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:c,readonly:m,size:d=et.size,rounded:p=et.rounded,fillMode:h=et.fillMode,...x}=e;return Pa("span",{...x,className:s(e.className,je,S(je,{size:d,rounded:p,fillMode:h}),k(je,{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:c,readonly:m}))})};z.states=wa;z.options=Oa;z.className=je;z.defaultOptions=et;import{jsx as Ha}from"react/jsx-runtime";var tt="k-picker",Ka=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ba={size:[i.small,i.medium,i.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},ot={size:i.medium,rounded:b.medium,fillMode:f.solid},be=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:c,readonly:m,size:d=ot.size,rounded:p=ot.rounded,fillMode:h=ot.fillMode,...x}=e;return Ha("span",{...x,className:s(e.className,tt,S(tt,{size:d,rounded:p,fillMode:h}),k(tt,{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:c,readonly:m})),children:e.children})};be.states=Ka;be.options=Ba;be.className=tt;be.defaultOptions=ot;import{Fragment as Da,jsx as St}from"react/jsx-runtime";var no="k-clear-value",Ra=[a.disabled,a.loading,a.readonly],Ga={},F=e=>{let{disabled:t,loading:o,readonly:n,value:r}=e;return t||n||o||!r?St(Da,{}):St("span",{className:s(e.className,no),children:St(C,{icon:"x"})})};F.states=Ra;F.options=Ga;F.className=no;import{jsx as _a}from"react/jsx-runtime";var kt="k-input-inner",Va=[],$a={},at={type:"text",autocomplete:"off",value:"",placeholder:""},X=e=>{let{value:t=at.value,type:o=at.type,placeholder:n=at.placeholder,autocomplete:r=at.autocomplete,...l}=e;return _a("input",{...l,type:o,className:s(e.className,kt,S(kt,e)),placeholder:n,autoComplete:r,defaultValue:t})};X.states=Va;X.options=$a;X.className=kt;import{jsx as ro,jsxs as Ja}from"react/jsx-runtime";var gt="k-input-inner",Fa=[],Xa={},De=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:r,valueIconName:l,...c}=e;return Ja("span",{...c,className:s(e.className,gt,S(gt,e)),children:[r,!r&&l&&ro(C,{className:"k-input-value-icon",icon:l}),n&&!t&&o,n&&t&&ro("span",{className:"k-input-value-text",children:t})]})};De.states=Fa;De.options=Xa;De.className=gt;import{jsx as Wa}from"react/jsx-runtime";var yt="k-input-inner",qa=[],Ua={},lo={value:"",placeholder:""},It=e=>{let{value:t=lo.value,placeholder:o=lo.placeholder,rows:n,...r}=e;return Wa("textarea",{...r,className:s(e.className,yt,S(yt,e)),placeholder:o,rows:n,defaultValue:t})};It.states=qa;It.options=Ua;It.className=yt;import{Fragment as Ya,jsx as co}from"react/jsx-runtime";var po="k-input-loading-icon",Qa=[a.disabled,a.loading],$=e=>{let{disabled:t,loading:o}=e;return t||!o?co(Ya,{}):co("span",{className:s(e.className,po,"k-icon k-i-loading")})};$.states=Qa;$.className=po;import{Fragment as es,jsx as mo}from"react/jsx-runtime";var fo="k-input-validation-icon",Za=[a.valid,a.invalid,a.disabled,a.loading],ja={},G=e=>{let{valid:t,invalid:o,disabled:n,loading:r}=e,l=o?"warning-circle":"check-circle";return n||r||!!!(t||o)?mo(es,{}):mo(C,{className:s(fo),icon:l})};G.states=Za;G.options=ja;G.className=fo;import{Fragment as as,jsx as uo}from"react/jsx-runtime";var ts="k-input-prefix",os={direction:"horizontal"},he=e=>{let{direction:t=os.direction,...o}=e;return e.children?uo("span",{...o,className:s(ts,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):uo(as,{})};import{Fragment as ns,jsx as bo}from"react/jsx-runtime";var ss="k-input-suffix",is={direction:"horizontal"},xe=e=>{let{direction:t=is.direction,...o}=e;return e.children?bo("span",{...o,className:s(ss,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):bo(ns,{})};import{jsx as _l}from"react/jsx-runtime";import{jsx as ql}from"react/jsx-runtime";import{jsx as ls}from"react/jsx-runtime";var ho="k-input-separator",rs={direction:"vertical"},ve=e=>{let{direction:t=rs.direction,...o}=e;return ls("span",{...o,className:s(ho,e.className,{[`${ho}-${t}`]:t})})};import{jsx as xo,jsxs as ps}from"react/jsx-runtime";var vo="k-spin-button",cs=[],ds={size:[i.small,i.medium,i.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Ct={size:i.medium,fillMode:f.solid},Ne=e=>{let{size:t=Ct.size,fillMode:o=Ct.fillMode,...n}=e;return ps("span",{...n,className:s(vo,e.className),children:[xo(y,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),xo(y,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Ne.states=cs;Ne.options=ds;Ne.className=vo;Ne.defaultOptions=Ct;import{Fragment as No,jsx as J,jsxs as Mt}from"react/jsx-runtime";var Lo="k-numerictextbox",ms=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],fs={size:[i.small,i.medium,i.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},ne={showSpinButton:!0,showClearButton:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},E=e=>{let{size:t=ne.size,rounded:o=ne.rounded,fillMode:n=ne.fillMode,separators:r=ne.separators,showClearButton:l=ne.showClearButton,showSpinButton:c=ne.showSpinButton,prefix:m,suffix:d,value:p,placeholder:h,hover:x,focus:v,valid:N,invalid:I,required:M,loading:A,disabled:w,readonly:_,...se}=e;return Mt(z,{...se,size:t,rounded:o,fillMode:n,hover:x,focus:v,valid:N,invalid:I,required:M,loading:A,disabled:w,readonly:_,className:s(e.className,Lo),children:[m&&Mt(No,{children:[J(he,{children:m}),r&&J(ve,{})]}),J(X,{placeholder:h,value:p}),J(G,{valid:N,invalid:I,loading:A,disabled:w}),J($,{loading:A,disabled:w}),l&&J(F,{loading:A,disabled:w,readonly:_,value:p}),d&&Mt(No,{children:[r&&J(ve,{}),J(xe,{children:d})]}),c&&J(Ne,{className:"k-input-spinner",size:t,fillMode:n})]})};E.states=ms;E.options=fs;E.className=Lo;E.defaultOptions=ne;import{jsx as Ic}from"react/jsx-runtime";import{jsx as ko}from"react/jsx-runtime";var go="k-animation-container",us=[],bs={},yo={positionMode:"absolute"},Y=e=>{let{positionMode:t=yo.positionMode,animationStyle:o,offset:n,...r}=e;return ko("div",{...r,style:{...n,...e.style},className:s(e.className,go,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:ko("div",{className:"k-child-animation-container",style:o,children:e.children})})};Y.states=us;Y.options=bs;Y.className=go;Y.defaultOptions=yo;import{jsx as Io}from"react/jsx-runtime";var Co="k-popup",hs=[],xs={},Mo={positionMode:"absolute"},Le=e=>{let{offset:t,positionMode:o=Mo.positionMode,animationStyle:n,...r}=e;return Io(Y,{positionMode:o,offset:t,animationStyle:n,children:Io("div",{...r,className:s(e.className,Co),children:e.children})})};Le.states=hs;Le.options=xs;Le.className=Co;Le.defaultOptions=Mo;import{jsx as Ns}from"react/jsx-runtime";var vs="k-actionsheet-footer",Ao={alignment:"stretched",orientation:"horizontal"},At=e=>{let{alignment:t=Ao.alignment,orientation:o=Ao.orientation,template:n,as:r=n?"div":U,...l}=e;return Ns(r,{...l,...!n&&{alignment:t,orientation:o},className:s(e.className,vs),children:e.children})};import{jsx as Ve,jsxs as ks}from"react/jsx-runtime";var To="k-searchbox",Ls=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Ss={size:[i.small,i.medium,i.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},Tt={showIcon:!0,icon:"search",size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode},q=e=>{let{value:t,placeholder:o,size:n,rounded:r,fillMode:l,hover:c,focus:m,valid:d,invalid:p,required:h,loading:x,disabled:v,showIcon:N=Tt.showIcon,icon:I=Tt.icon,...M}=e;return ks(z,{...M,size:n,rounded:r,fillMode:l,hover:c,focus:m,valid:d,invalid:p,required:h,loading:x,disabled:v,className:s(e.className,To),children:[N&&Ve(C,{className:"k-input-icon",icon:I}),Ve(X,{placeholder:o,value:t}),Ve($,{...e}),Ve(G,{...e}),Ve(F,{...e})]})};q.states=Ls;q.options=Ss;q.className=To;q.defaultOptions=Tt;import{jsx as Qc}from"react/jsx-runtime";import{Fragment as zo,jsx as Z,jsxs as zt}from"react/jsx-runtime";var Eo="k-textbox",gs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ys={size:[i.small,i.medium,i.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},re={showClearButton:!0,showValidationIcon:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},j=e=>{let{size:t=re.size,rounded:o=re.rounded,fillMode:n=re.fillMode,separators:r=re.separators,showClearButton:l=re.showClearButton,showValidationIcon:c=re.showValidationIcon,prefix:m,suffix:d,type:p,value:h,placeholder:x,hover:v,focus:N,valid:I,invalid:M,required:A,loading:w,disabled:_,readonly:se,...mt}=e;return zt(z,{...mt,size:t,rounded:o,fillMode:n,hover:v,focus:N,valid:I,invalid:M,required:A,loading:w,disabled:_,readonly:se,className:s(e.className,Eo),children:[m&&zt(zo,{children:[Z(he,{children:m}),r&&Z(ve,{})]}),Z(X,{placeholder:x,value:h,type:p}),c&&Z(G,{valid:I,invalid:M,loading:w,disabled:_}),Z($,{loading:w,disabled:_}),l&&Z(F,{loading:w,disabled:_,readonly:se,value:h}),d&&zt(zo,{children:[r&&Z(ve,{}),Z(xe,{children:d})]})]})};j.states=gs;j.options=ys;j.className=Eo;j.defaultOptions=re;import{jsx as rd}from"react/jsx-runtime";import{Fragment as fd,jsx as md}from"react/jsx-runtime";import{Fragment as Ld,jsx as Nd}from"react/jsx-runtime";import{jsx as ee,jsxs as Et}from"react/jsx-runtime";var Oo="k-actionsheet-titlebar",Is={},te=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:r,filter:l,input:c,inputValue:m,inputPlaceholder:d,adaptive:p,children:h,...x}=e;return Et("div",{...x,className:s(e.className,Oo),children:[Et("div",{className:"k-actionsheet-titlebar-group",children:[n&&ee("div",{className:"k-actionsheet-actions",children:n}),!h&&Et("div",{className:"k-actionsheet-title",children:[t&&ee("div",{className:"k-text-center",children:t}),o&&ee("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&ee("div",{className:"k-actionsheet-title",children:h}),r&&ee("div",{className:"k-actionsheet-actions",children:r})]}),(c||l)&&ee("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?ee(j,{value:m,placeholder:d,size:p?"large":"medium"}):ee(q,{placeholder:"Filter",size:p?"large":"medium"})})]})};te.className=Oo;te.defaultOptions=Is;import{jsx as wt,jsxs as Ts}from"react/jsx-runtime";var Ot="k-actionsheet-view",Cs=[],Ms={},As={},Se=e=>{let{adaptive:t,animated:o,children:n,header:r,footer:l,...c}=e,m=r?.type===te&&wt(te,{adaptive:t,...r?.props}),d=l?.type===At&&wt(At,{...l?.props});return Ts("div",{...c,className:s(e.className,Ot,{[`${Ot}-animated`]:o}),children:[m,wt("div",{className:"k-actionsheet-content",children:n}),d]})};Se.states=Cs;Se.options=Ms;Se.className=Ot;Se.defaultOptions=As;import{jsx as st,jsxs as ws}from"react/jsx-runtime";var Po="k-actionsheet",zs=[],Es={},$e={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},le=e=>{let{side:t=$e.side,fullscreen:o=$e.fullscreen,adaptive:n=$e.adaptive,overlay:r=$e.overlay,template:l,children:c,header:m,footer:d,...p}=e;return ws("div",{className:"k-actionsheet-container",children:[r&&st("div",{className:"k-overlay"}),st(Y,{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:st("div",{...p,className:s(e.className,Po,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:l||st(Se,{header:m,footer:d,adaptive:n,...e,children:c})})})]})};le.states=zs;le.options=Es;le.className=Po;le.defaultOptions=$e;import{jsx as Fd}from"react/jsx-runtime";import{Fragment as Ps,jsx as _e,jsxs as Pt}from"react/jsx-runtime";var Kt="k-actionsheet-item",Os=[a.hover,a.focus,a.selected,a.disabled],Bt=e=>{let{iconName:t,text:o,description:n,hover:r,focus:l,selected:c,disabled:m,...d}=e;return Pt("span",{...d,className:s(e.className,Kt,k(Kt,{hover:r,focus:l,selected:c,disabled:m})),children:[!e.children&&_e(Ps,{children:Pt("span",{className:"k-actionsheet-action",children:[t&&_e("span",{className:"k-icon-wrap",children:_e(C,{className:"k-actionsheet-item-icon",icon:t})}),Pt("span",{className:"k-actionsheet-item-text",children:[o&&_e("span",{className:"k-actionsheet-item-title",children:o}),n&&_e("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Bt.states=Os;Bt.className=Kt;import{jsx as jd,jsxs as ep}from"react/jsx-runtime";import{jsx as sp}from"react/jsx-runtime";import{jsx as lp}from"react/jsx-runtime";import{jsx as mp}from"react/jsx-runtime";import{jsx as Bs}from"react/jsx-runtime";var Ks="k-no-data",Fe=e=>Bs("span",{className:s(Ks,e.className),children:e.children});import{jsx as ke,jsxs as Bo}from"react/jsx-runtime";var Ht="k-list",Hs=[],Rs={size:[i.small,i.medium,i.large]},Ho={size:i.medium},O=e=>{let{size:t=Ho.size,virtualization:o,children:n,optionLabel:r,customValue:l,screenReaders:c,...m}=e,d,p,h,x,v=[];return n?n.map((N,I)=>{N.type===P?(N.props.root===!0?(d=N.props.label,N.props.children.map((M,A)=>{v.push(ke(g,{...M.props},`optChild-${A}-${new Date().getTime()}`))})):N.props.children.forEach((M,A)=>{let w="";A===0&&(w=N.props.label),v.push(ke(g,{className:A===0?"k-first":"",...M.props,groupLabel:w},`groupLabel-${A}-${new Date().getTime()}`))}),p=ke(P,{label:d,virtualization:o,children:v})):N.type===g&&(v.push(ke(g,{...N.props},`${N.type}-${I}`)),h=ke(ge,{virtualization:o,children:v}),c&&(x=Bo(Fe,{className:"k-sr-only",children:[v.length," items found."]})))}):x=ke(Fe,{children:"No data found."}),Bo("div",{...m,className:s(e.className,Ht,S(Ht,{size:t}),{"k-virtual-list":o}),children:[r,l,p,h,x]})};O.states=Hs;O.options=Rs;O.className=Ht;O.defaultOptions=Ho;import{jsx as ce,jsxs as Vs}from"react/jsx-runtime";var Rt="k-list",Gs=[],Ds={size:[i.small,i.medium,i.large]},Ro={size:i.medium},de=e=>{let{size:t=Ro.size,virtualization:o,children:n,...r}=e,l,c,m,d=[];return n?n.map((p,h)=>{p.type===P?(p.props.root===!0?(l=p.props.label,p.props.children.map((x,v)=>{d.push(ce(g,{...x.props},`optChild-${v}-${new Date().getTime()}`))})):(d.push(ce(Go,{...p.props,children:p.props.label},`listChild-${h}`)),p.props.children.map((x,v)=>{d.push(ce(g,{...x.props},`fwOptChild-${v}-${new Date().getTime()}`))})),c=ce(P,{label:l,virtualization:o,children:d})):p.type===g&&(d.push(ce(g,{...p.props},`${p.type}-${h}`)),m=ce(ge,{virtualization:o,children:d}))}):m=ce(Fe,{children:"No data found."}),Vs("div",{...r,className:s(e.className,Rt,S(Rt,{size:t}),{"k-virtual-list":o}),children:[c,m]})};de.states=Gs;de.options=Ds;de.className=Rt;de.defaultOptions=Ro;import{jsx as Do}from"react/jsx-runtime";var it="k-checkbox",$s=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],_s={size:[i.small,i.medium,i.large],rounded:[b.small,b.medium,b.large,b.full]},Gt={size:i.medium,rounded:b.medium},oe=e=>{let{id:t,checked:o,indeterminate:n,hover:r,focus:l,disabled:c,invalid:m,valid:d,required:p,size:h=Gt.size,rounded:x=Gt.rounded,...v}=e;return Do("span",{className:"k-checkbox-wrap",children:Do("input",{...v,id:t,type:"checkbox",defaultChecked:o,required:p,className:s(e.className,it,S(it,{size:h,rounded:x}),k(it,{hover:r,focus:l,disabled:c,invalid:m,valid:d,indeterminate:n,checked:o}))})})};oe.states=$s;oe.options=_s;oe.className=it;oe.defaultOptions=Gt;import{jsx as Js}from"react/jsx-runtime";var Vo="k-checkbox-list",Fs=[],Xs={},$o={layout:"vertical"},ye=e=>{let{layout:t=$o.layout,...o}=e;return Js("ul",{...o,className:s(e.className,Vo,{[`k-list-${t}`]:t}),children:e.children})};ye.states=Fs;ye.options=Xs;ye.className=Vo;ye.defaultOptions=$o;import{jsx as Qs}from"react/jsx-runtime";var _o="k-checkbox-list-item",qs=[],Us={},Ws={},Ie=e=>{let{...t}=e;return Qs("li",{...t,className:s(e.className,_o),children:e.children})};Ie.states=qs;Ie.options=Us;Ie.className=_o;Ie.defaultOptions=Ws;import{Fragment as Zp,jsx as Yp,jsxs as jp}from"react/jsx-runtime";import{Fragment as sm,jsx as am,jsxs as im}from"react/jsx-runtime";import{Fragment as dm,jsx as cm,jsxs as pm}from"react/jsx-runtime";import{Fragment as hm,jsx as bm,jsxs as xm}from"react/jsx-runtime";import{jsx as Sm}from"react/jsx-runtime";import{jsx as Im}from"react/jsx-runtime";import{jsx as nt,jsxs as ei}from"react/jsx-runtime";var Vt="k-list-item",Ys=[a.hover,a.focus,a.selected,a.disabled],Zs={},js={},g=e=>{let{text:t,groupLabel:o,group:n,showIcon:r,iconName:l,showCheckbox:c,checked:m,hover:d,focus:p,selected:h,disabled:x,...v}=e,N=t||e.children;return ei("li",{...v,className:s(e.className,n?"k-list-group-item":Vt,k(Vt,{hover:d,focus:p,disabled:x,selected:h})),children:[c&&nt(oe,{checked:m}),r&&nt(C,{icon:l}),nt("span",{className:"k-list-item-text",children:N}),o&&o!==""&&nt("div",{className:"k-list-item-group-label",children:o})]})};g.states=Ys;g.options=Zs;g.className=Vt;g.defaultOptions=js;import{jsx as $t,jsxs as oi}from"react/jsx-runtime";var ti="k-list-content",ge=e=>{let{virtualization:t,...o}=e;return oi("div",{...o,className:s(ti,e.className),children:[$t("ul",{className:s("k-list-ul"),children:e.children}),t&&$t("div",{className:"k-height-container",children:$t("div",{})})]})};import{jsx as Fo}from"react/jsx-runtime";var ai="k-list-group-sticky-header",Xo=e=>Fo("div",{className:s(ai,e.className),children:Fo("div",{className:"k-list-header-text",children:e.children})});import{Fragment as si,jsx as Jo,jsxs as ii}from"react/jsx-runtime";var P=e=>{let{virtualization:t,label:o}=e;return ii(si,{children:[o&&Jo(Xo,{children:o}),e.children&&Jo(ge,{virtualization:t,children:e.children})]})};import{jsx as qo}from"react/jsx-runtime";var ni="k-list-group-item",Go=e=>qo("li",{className:s(ni,e.className),children:qo("span",{className:"k-list-item-text",children:e.children})});import{jsx as di}from"react/jsx-runtime";var _t="k-list-optionlabel",ri=[a.hover,a.focus,a.selected,a.disabled],li={},ci={},rt=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:l,...c}=e;return di("div",{...c,className:s(_t,k(_t,{hover:o,focus:n,selected:r,disabled:l})),children:t})};rt.states=ri;rt.options=li;rt.className=_t;rt.defaultOptions=ci;import{jsx as ui}from"react/jsx-runtime";var Ft="k-list-custom-value",pi=[a.hover,a.focus,a.selected,a.disabled],mi={},fi={},lt=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:l,...c}=e;return ui("div",{...c,className:s(Ft,k(Ft,{hover:o,focus:n,selected:r,disabled:l})),children:t})};lt.states=pi;lt.options=mi;lt.className=Ft;lt.defaultOptions=fi;import{jsx as cf}from"react/jsx-runtime";import{jsx as ff}from"react/jsx-runtime";import{jsx as xf,jsxs as vf}from"react/jsx-runtime";import{jsx as kf,jsxs as gf}from"react/jsx-runtime";import{jsx as Mf}from"react/jsx-runtime";import{jsx as Ef,jsxs as wf}from"react/jsx-runtime";import{jsx as Bf,jsxs as Hf}from"react/jsx-runtime";import{Fragment as xi,jsx as K,jsxs as Xt}from"react/jsx-runtime";var Uo="k-dropdownlist",bi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],hi={size:[i.small,i.medium,i.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},Ce={showValue:!0,arrowIconName:"caret-alt-down",size:i.medium,rounded:b.medium,fillMode:f.solid},Xe=e=>{let{size:t=Ce.size,rounded:o=Ce.rounded,fillMode:n=Ce.fillMode,arrowIconName:r=Ce.arrowIconName,showValue:l=Ce.showValue,valueIconName:c,prefix:m,suffix:d,value:p,placeholder:h,hover:x,focus:v,valid:N,invalid:I,required:M,loading:A,disabled:w,readonly:_,popup:se,opened:mt,adaptive:ta,adaptiveSettings:oa,adaptiveTitle:aa,adaptiveSubtitle:sa,adaptiveFilter:ia,...na}=e;return Xt(xi,{children:[Xt(be,{...na,size:t,rounded:o,fillMode:n,hover:x,focus:v,valid:N,invalid:I,required:M,loading:A,disabled:w,readonly:_,className:s(e.className,Uo,{"k-icon-picker":!l&&c}),children:[K(he,{children:m}),K(De,{placeholder:h,value:p,showValue:l,valueIconName:c}),K(G,{valid:N,invalid:I,loading:A,disabled:w}),K($,{loading:A,disabled:w}),K(xe,{children:d}),K(y,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),mt&&se&&K(Le,{className:"k-list-container k-dropdownlist-popup",children:se}),ta&&K(le,{adaptive:!0,...oa,header:K(te,{actionsEnd:K(y,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ia,inputValue:p,inputPlaceholder:h,title:aa,subtitle:sa}),children:K("div",{className:"k-list-container",children:Xt(O,{size:"large",children:[K(g,{text:"List item"}),K(g,{text:"List item"}),K(g,{text:"List item"})]})})})]})};Xe.states=bi;Xe.options=hi;Xe.className=Uo;Xe.defaultOptions=Ce;import{jsx as fu}from"react/jsx-runtime";import{jsx as vu,jsxs as Nu}from"react/jsx-runtime";import{Fragment as Mu,jsx as Iu,jsxs as Cu}from"react/jsx-runtime";import{jsx as Eu}from"react/jsx-runtime";import{jsx as Bu,jsxs as Hu}from"react/jsx-runtime";import{jsx as $u,jsxs as _u}from"react/jsx-runtime";import{Fragment as Yu,jsx as Wu,jsxs as Qu}from"react/jsx-runtime";import{Fragment as ib,jsx as ab,jsxs as sb}from"react/jsx-runtime";import{Fragment as Sb,jsx as Lb}from"react/jsx-runtime";import{Fragment as Ab,jsx as Mb}from"react/jsx-runtime";import{Fragment as Je,jsx as L,jsxs as T}from"react/jsx-runtime";var Wo="k-colorgradient-inputs",vi=[],Ni={size:[i.small,i.medium,i.large]},Qo={mode:"rgba",size:i.medium},Me=e=>{let{mode:t=Qo.mode,size:o,...n}=e;return T("div",{...n,className:s(Wo,"k-hstack"),children:[L("div",{className:"k-vstack",children:L(y,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&T(Je,{children:[T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),L("label",{className:"k-colorgradient-input-label",children:"R"})]}),T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),L("label",{className:"k-colorgradient-input-label",children:"G"})]}),T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),L("label",{className:"k-colorgradient-input-label",children:"B"})]}),T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),L("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&T(Je,{children:[T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"R"})]}),T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"G"})]}),T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&T(Je,{children:[T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"H"})]}),T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"S"})]}),T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"V"})]}),T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),L("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&T(Je,{children:[T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"H"})]}),T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"S"})]}),T("div",{className:"k-vstack",children:[L(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&L(Je,{children:T("div",{className:"k-vstack k-flex-1",children:[L(j,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),L("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Me.states=vi;Me.options=Ni;Me.className=Wo;Me.defaultOptions=Qo;import{jsx as me,jsxs as fe}from"react/jsx-runtime";var Yo="k-colorgradient-color-contrast",Li=[],Si={},ki={},Ae=()=>fe("div",{className:s(Yo,"k-vbox"),children:[fe("div",{className:"k-contrast-ratio",children:[me("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),fe("span",{className:"k-contrast-validation !k-text-success",children:[me(C,{icon:"check"}),me(C,{icon:"check"})]})]}),fe("div",{children:[me("span",{children:"AA: 4.5"}),fe("span",{className:"k-contrast-validation !k-text-success",children:["Pass",me(C,{icon:"check"})]})]}),fe("div",{children:[me("span",{children:"AAA: 7.0"}),fe("span",{className:"k-contrast-validation !k-text-error",children:["Fail",me(C,{icon:"x"})]})]})]});Ae.states=Li;Ae.options=Si;Ae.className=Yo;Ae.defaultOptions=ki;import{jsx as H,jsxs as qe}from"react/jsx-runtime";var ct="k-colorgradient",gi=[a.hover,a.focus,a.readonly,a.disabled],yi={size:[i.small,i.medium,i.large]},D={size:i.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"},ae=e=>{let{size:t=D.size,mode:o=D.mode,readonly:n=D.readonly,disabled:r=D.disabled,gradientStyle:l=D.gradientStyle,dragHandleStyle:c=D.dragHandleStyle,alphaStyle:m=D.alphaStyle,alphaStyleHorizontal:d=D.alphaStyleHorizontal,contrast:p=D.contrast,dir:h,hover:x,focus:v,hoverHandle:N,focusHandle:I,canvasOrientation:M=D.canvasOrientation,...A}=e;return qe("div",{...A,className:s(e.className,ct,S(ct,{size:t}),k(ct,{hover:x,focus:v,readonly:n,disabled:r})),dir:h,children:[!M||M==="horizontal"&&qe("div",{className:"k-colorgradient-canvas k-hstack",children:[H("div",{className:"k-hsv-rectangle",style:l,children:H("div",{className:"k-hsv-gradient",children:H("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":I}),style:c})})}),qe("div",{className:"k-hsv-controls k-hstack",children:[H(Lt,{className:"k-hue-slider",hover:N,focus:I}),o!=="rgb"&&o!=="hsv"&&H(Lt,{className:"k-alpha-slider",hover:N,focus:I,trackStyle:m})]})]}),M==="vertical"&&qe("div",{className:"k-colorgradient-canvas k-vstack",children:[H("div",{className:"k-hsv-rectangle",style:l,children:H("div",{className:"k-hsv-gradient",children:H("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":I}),style:c})})}),qe("div",{className:"k-hsv-controls k-vstack",children:[H(Nt,{className:"k-hue-slider",hover:N,focus:I}),o!=="rgb"&&o!=="hsv"&&H(Nt,{className:"k-alpha-slider",hover:N,focus:I,trackStyle:d})]})]}),H(Me,{mode:e.mode,size:t}),p&&H(Ae,{})]})};ae.states=gi;ae.options=yi;ae.className=ct;ae.defaultOptions=D;import{jsx as jb}from"react/jsx-runtime";import{jsx as ah}from"react/jsx-runtime";import{jsx as Ii}from"react/jsx-runtime";var Zo=e=>Ii("tr",{children:e.children});import{jsx as Ai}from"react/jsx-runtime";var Jt="k-colorpalette-tile",Ci=[a.hover,a.focus,a.selected],Mi={},Ue=e=>{let{color:t,tileSize:o,hover:n,focus:r,selected:l,...c}=e,m={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Ai("td",{...c,className:s(e.className,Jt,k(Jt,{hover:n,focus:r,selected:l})),style:m})};Ue.states=Ci;Ue.options=Mi;Ue.className=Jt;import{jsx as We}from"react/jsx-runtime";var dt="k-colorpalette",Ti=[a.disabled],zi={size:[i.small,i.medium,i.large]},qt={columns:10,size:i.medium},Te=e=>{let{size:t=qt.size,palette:o,columns:n=qt.columns,tileSize:r,disabled:l,...c}=e,m=[];if(o){let d=n||o.columns,p=o.colors?o.colors:o;Array.isArray(p)&&Array.from({length:Math.ceil(p.length/d)},(h,x)=>{let v=[];p.slice(x*d,(x+1)*d).map((I,M)=>{v.push(We(Ue,{color:I,tileSize:r},M))});let N=We(Zo,{children:v},x);m.push(N)})}return We("div",{...c,className:s(e.className,dt,k(dt,{disabled:l}),S(dt,{size:t})),children:We("table",{className:"k-colorpalette-table",children:We("tbody",{children:m.length>0?m:e.children})})})};Te.states=Ti;Te.options=zi;Te.className=dt;Te.defaultOptions=qt;var Ut={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 Ch}from"react/jsx-runtime";import{jsx as jo,jsxs as Oi}from"react/jsx-runtime";var ea="k-color-preview",Ei=[],wi={},ze=e=>{let{color:t,iconName:o,...n}=e;return Oi("span",{...n,className:s(e.className,ea,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&jo(C,{icon:o,className:"k-color-preview-icon"}),jo("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};ze.states=Ei;ze.options=wi;ze.className=ea;import{jsx as R,jsxs as Ee}from"react/jsx-runtime";var pt="k-coloreditor",Pi=[a.focus],Ki={size:[i.small,i.medium,i.large]},we={size:i.medium,view:"gradient",palette:Ut.office,actionButtons:!0,canvasOrientation:"horizontal"},Oe=e=>{let{size:t=we.size,view:o=we.view,palette:n=we.palette,color:r,currentColor:l,focus:c,focusView:m,dir:d,group:p,actionButtons:h=we.actionButtons,canvasOrientation:x=we.canvasOrientation,...v}=e;return Ee("div",{...v,className:s(e.className,"k-flatcolorpicker",pt,S(pt,{size:t}),k(pt,{focus:c})),dir:d,children:[Ee("div",{className:"k-coloreditor-header k-hstack",children:[R("div",{className:"k-coloreditor-header-actions k-hstack",children:p&&Ee(V,{fillMode:"flat",children:[R(y,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),R(y,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),R("div",{className:"k-spacer"}),Ee("div",{className:"k-coloreditor-header-actions k-hstack",children:[R(y,{fillMode:"flat",icon:"droplet-slash",size:t}),Ee("div",{className:"k-coloreditor-preview k-vstack",children:[R(ze,{className:"k-coloreditor-preview-color",color:r}),R(ze,{className:"k-coloreditor-current-color",color:l})]})]})]}),R("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?R(ae,{focus:m,size:t,canvasOrientation:x}):R(Te,{palette:n,size:t})}),h&&Ee(U,{className:"k-coloreditor-footer",alignment:"start",children:[R(y,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),R(y,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};Oe.states=Pi;Oe.options=Ki;Oe.className=pt;Oe.defaultOptions=we;import{jsx as Yh}from"react/jsx-runtime";import{jsx as tx}from"react/jsx-runtime";import{jsx as ix}from"react/jsx-runtime";import{jsx as cx}from"react/jsx-runtime";import{jsx as Bi}from"react/jsx-runtime";var vx=({color:e,currentColor:t,...o})=>Bi(Oe,{group:!0,view:"palette",color:e,currentColor:t,...o});export{vx as ColorPickerAdaptivePalette};