UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 72.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"}),y=(e,t)=>s({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly});var r={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},h={small:"small",medium:"medium",large:"large",full:"full"},f={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},b={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},a={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly"};import{Fragment as sr,jsx as ga}from"react/jsx-runtime";var xo="k-icon k-font-icon",tr=[],or={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},ar={},vt=e=>{let{size:t,themeColor:o,icon:n,rotate:l,flip:i,...p}=e;return n?ga("span",{...p,className:s(e.className,xo,S(xo,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${l}`]:l,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"})}):ga(sr,{})};vt.states=tr;vt.options=or;vt.className=xo;vt.defaultOptions=ar;var ya=vt;import{Fragment as ir,jsx as _t}from"react/jsx-runtime";var ho="k-icon k-svg-icon",rr=[],nr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},Ia={viewBox:"0 0 24 24"},Lt=e=>{let{size:t,themeColor:o,rotate:n,flip:l,viewBox:i=Ia.viewBox,icon:p,...d}=e;if(!p)return _t(ir,{});p==="none"&&{...d,className:s(e.className,ho,"k-none")};let x=typeof p=="object"&&p.name&&p.name;return _t("span",{...d,className:s(e.className,ho,S("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),children:_t("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:i,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:e.children})})};Lt.states=rr;Lt.options=nr;Lt.className=ho;Lt.defaultOptions=Ia;var No=Lt;import*as Ma from"@progress/kendo-svg-icons";import{Fragment as Ca,jsx as St}from"react/jsx-runtime";var lr=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),pr=[],cr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},ko={viewBox:"0 0 24 24",type:"svg"},I=e=>{let{size:t,themeColor:o,icon:n,type:l=ko.type,rotate:i,flip:p,viewBox:d=ko.viewBox,...x}=e;if(!n)return St(Ca,{});if(l==="svg"){if(n==="none")return St(No,{...x,icon:n,size:t});let u=lr(`${n}-icon`);return Ma[u]?St(No,{...x,icon:Ma[u],size:t,themeColor:o,rotate:i,flip:p,viewBox:d}):St(Ca,{})}return St(ya,{...x,icon:n,size:t,themeColor:o,rotate:i,flip:p})};I.states=pr;I.options=cr;I.defaultOptions=ko;import{Fragment as ur,jsx as gt,jsxs as Ta}from"react/jsx-runtime";var Jt="k-button",mr=[a.hover,a.focus,a.active,a.selected,a.disabled],dr={size:[r.small,r.medium,r.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark,b.inverse]},Ke={size:r.medium,rounded:h.medium,fillMode:f.solid,themeColor:b.base,showArrow:!1,arrowIconName:"caret-alt-down"},m=e=>{let{size:t=Ke.size,rounded:o=Ke.rounded,fillMode:n=Ke.fillMode,themeColor:l=Ke.themeColor,showArrow:i=Ke.showArrow,arrowIconName:p=Ke.arrowIconName,hover:d,focus:x,active:u,selected:N,disabled:L,icon:c,text:k,iconClassName:v,...g}=e,T=c!==void 0,B=e.children!==void 0;return Ta("button",{...g,className:s(e.className,Jt,S(Jt,{size:t,rounded:o,fillMode:n,themeColor:l}),y(Jt,{hover:d,focus:x,active:u,disabled:L,selected:N}),{"k-icon-button":!k&&!B&&T}),children:[c&&gt(I,{className:s(v,"k-button-icon"),icon:c}),k?Ta(ur,{children:[k&&gt("span",{className:"k-button-text",children:k}),e.children]}):e.children&&gt("span",{className:"k-button-text",children:e.children}),i&&gt("span",{className:"k-menu-button-arrow k-button-arrow",children:gt(I,{icon:p})})]})};m.states=mr;m.options=dr;m.className=Jt;m.defaultOptions=Ke;import{jsx as fr}from"react/jsx-runtime";var Ut=e=>fr(m,{icon:"folder",...e,children:void 0});import{jsx as br}from"react/jsx-runtime";var vo=e=>br(m,{icon:"folder",children:"Button",...e});import{jsx as Ip}from"react/jsx-runtime";import{jsx as Nr}from"react/jsx-runtime";var yt="k-button-group",xr=[a.disabled],hr={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Ba={fillMode:f.solid},R=e=>{let{fillMode:t=Ba.fillMode,disabled:o,stretched:n,...l}=e;return Nr("div",{...l,className:s(e.className,yt,S(yt,{fillMode:t}),y(yt,{disabled:o}),{[`${yt}-stretched`]:n}),children:e.children})};R.states=xr;R.options=hr;R.className=yt;R.defaultOptions=Ba;import{Fragment as Gp,jsx as Hp,jsxs as $p}from"react/jsx-runtime";import{Fragment as Jp,jsx as _p,jsxs as Up}from"react/jsx-runtime";import{Fragment as jp,jsx as Qp,jsxs as ec}from"react/jsx-runtime";import{Fragment as nc,jsx as rc,jsxs as ic}from"react/jsx-runtime";import{jsx as Lr}from"react/jsx-runtime";var qt="k-input",kr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],vr={size:[r.small,r.medium,r.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[f.solid,f.flat,f.outline]},Wt={size:r.medium,rounded:r.medium,fillMode:f.solid},E=e=>{let{hover:t,focus:o,disabled:n,invalid:l,valid:i,loading:p,readonly:d,size:x=Wt.size,rounded:u=Wt.rounded,fillMode:N=Wt.fillMode,...L}=e;return Lr("span",{...L,className:s(e.className,qt,S(qt,{size:x,rounded:u,fillMode:N}),y(qt,{hover:t,focus:o,disabled:n,invalid:l,valid:i,loading:p,readonly:d}))})};E.states=kr;E.options=vr;E.className=qt;E.defaultOptions=Wt;import{jsx as yr}from"react/jsx-runtime";var Yt="k-picker",Sr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],gr={size:[r.small,r.medium,r.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[f.solid,f.flat,f.outline]},Zt={size:r.medium,rounded:h.medium,fillMode:f.solid},ae=e=>{let{hover:t,focus:o,disabled:n,invalid:l,valid:i,loading:p,readonly:d,size:x=Zt.size,rounded:u=Zt.rounded,fillMode:N=Zt.fillMode,...L}=e;return yr("span",{...L,className:s(e.className,Yt,S(Yt,{size:x,rounded:u,fillMode:N}),y(Yt,{hover:t,focus:o,disabled:n,invalid:l,valid:i,loading:p,readonly:d})),children:e.children})};ae.states=Sr;ae.options=gr;ae.className=Yt;ae.defaultOptions=Zt;import{Fragment as Cr,jsx as Lo}from"react/jsx-runtime";var Aa="k-clear-value",Ir=[a.disabled,a.loading,a.readonly],Mr={},se=e=>{let{disabled:t,loading:o,readonly:n,value:l}=e;return t||n||o||!l?Lo(Cr,{}):Lo("span",{className:s(e.className,Aa),children:Lo(I,{icon:"x"})})};se.states=Ir;se.options=Mr;se.className=Aa;import{jsx as Ar}from"react/jsx-runtime";var So="k-input-inner",Tr=[],Br={},Qt={type:"text",autocomplete:"off",value:"",placeholder:""},re=e=>{let{value:t=Qt.value,type:o=Qt.type,placeholder:n=Qt.placeholder,autocomplete:l=Qt.autocomplete,...i}=e;return Ar("input",{...i,type:o,className:s(e.className,So,S(So,e)),placeholder:n,autoComplete:l,defaultValue:t})};re.states=Tr;re.options=Br;re.className=So;import{jsx as za,jsxs as wr}from"react/jsx-runtime";var go="k-input-inner",zr=[],Er={},He=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:l,valueIconName:i,...p}=e;return wr("span",{...p,className:s(e.className,go,S(go,e)),children:[l,!l&&i&&za(I,{className:"k-input-value-icon",icon:i}),n&&!t&&o,n&&t&&za("span",{className:"k-input-value-text",children:t})]})};He.states=zr;He.options=Er;He.className=go;import{jsx as Rr}from"react/jsx-runtime";var yo="k-input-inner",Pr=[],Or={},Ea={value:"",placeholder:""},Io=e=>{let{value:t=Ea.value,placeholder:o=Ea.placeholder,rows:n,...l}=e;return Rr("textarea",{...l,className:s(e.className,yo,S(yo,e)),placeholder:o,rows:n,defaultValue:t})};Io.states=Pr;Io.options=Or;Io.className=yo;import{Fragment as Hr,jsx as wa}from"react/jsx-runtime";var Pa="k-input-loading-icon",Kr=[a.disabled,a.loading],Y=e=>{let{disabled:t,loading:o}=e;return t||!o?wa(Hr,{}):wa("span",{className:s(e.className,Pa,"k-icon k-i-loading")})};Y.states=Kr;Y.className=Pa;import{Fragment as Dr,jsx as Oa}from"react/jsx-runtime";var Ra="k-input-validation-icon",Gr=[a.valid,a.invalid,a.disabled,a.loading],$r={},q=e=>{let{valid:t,invalid:o,disabled:n,loading:l}=e,i=o?"warning-circle":"check-circle";return n||l||!!!(t||o)?Oa(Dr,{}):Oa(I,{className:s(Ra),icon:i})};q.states=Gr;q.options=$r;q.className=Ra;import{Fragment as Xr,jsx as Ka}from"react/jsx-runtime";var Fr="k-input-prefix",Vr={direction:"horizontal"},ce=e=>{let{direction:t=Vr.direction,...o}=e;return e.children?Ka("span",{...o,className:s(Fr,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ka(Xr,{})};import{Fragment as Ur,jsx as Ha}from"react/jsx-runtime";var _r="k-input-suffix",Jr={direction:"horizontal"},me=e=>{let{direction:t=Jr.direction,...o}=e;return e.children?Ha("span",{...o,className:s(_r,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ha(Ur,{})};import{jsx as Yc}from"react/jsx-runtime";import{jsx as em}from"react/jsx-runtime";import{jsx as Wr}from"react/jsx-runtime";var Ga="k-input-separator",qr={direction:"vertical"},be=e=>{let{direction:t=qr.direction,...o}=e;return Wr("span",{...o,className:s(Ga,e.className,{[`${Ga}-${t}`]:t})})};import{jsx as $a,jsxs as Qr}from"react/jsx-runtime";var Da="k-color-preview",Yr=[],Zr={},Me=e=>{let{color:t,iconName:o,...n}=e;return Qr("span",{...n,className:s(e.className,Da,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&$a(I,{icon:o,className:"k-color-preview-icon"}),$a("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Me.states=Yr;Me.options=Zr;Me.className=Da;import{jsx as Fa}from"react/jsx-runtime";var Va="k-animation-container",jr=[],en={},Xa={positionMode:"absolute"},Ce=e=>{let{positionMode:t=Xa.positionMode,animationStyle:o,offset:n,...l}=e;return Fa("div",{...l,style:{...n,...e.style},className:s(e.className,Va,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Fa("div",{className:"k-child-animation-container",style:o,children:e.children})})};Ce.states=jr;Ce.options=en;Ce.className=Va;Ce.defaultOptions=Xa;import{jsx as _a}from"react/jsx-runtime";var Ja="k-popup",tn=[],on={},Ua={positionMode:"absolute"},$=e=>{let{offset:t,positionMode:o=Ua.positionMode,animationStyle:n,...l}=e;return _a(Ce,{positionMode:o,offset:t,animationStyle:n,children:_a("div",{...l,className:s(e.className,Ja),children:e.children})})};$.states=tn;$.options=on;$.className=Ja;$.defaultOptions=Ua;import{jsx as rn}from"react/jsx-runtime";var jt="k-actions",an=[],sn={},Mo={alignment:"start",orientation:"horizontal"},Te=e=>{let{alignment:t=Mo.alignment,orientation:o=Mo.orientation,...n}=e;return rn("div",{...n,className:s(jt,{[`${jt}-${t}`]:t,[`${jt}-${o}`]:o},e.className),children:e.children})};Te.states=an;Te.options=sn;Te.className=jt;Te.defaultOptions=Mo;import{jsx as ln}from"react/jsx-runtime";var nn="k-actionsheet-footer",qa={alignment:"stretched",orientation:"horizontal"},It=e=>{let{alignment:t=qa.alignment,orientation:o=qa.orientation,template:n,as:l=n?"div":Te,...i}=e;return ln(l,{...i,...!n&&{alignment:t,orientation:o},className:s(e.className,nn),children:e.children})};import{jsx as Mt,jsxs as mn}from"react/jsx-runtime";var Wa="k-searchbox",pn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],cn={size:[r.small,r.medium,r.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[f.solid,f.flat,f.outline]},Co={showIcon:!0,icon:"search",size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},xe=e=>{let{value:t,placeholder:o,size:n,rounded:l,fillMode:i,hover:p,focus:d,valid:x,invalid:u,required:N,loading:L,disabled:c,showIcon:k=Co.showIcon,icon:v=Co.icon,...g}=e;return mn(E,{...g,size:n,rounded:l,fillMode:i,hover:p,focus:d,valid:x,invalid:u,required:N,loading:L,disabled:c,className:s(e.className,Wa),children:[k&&Mt(I,{className:"k-input-icon",icon:v}),Mt(re,{placeholder:o,value:t}),Mt(Y,{...e}),Mt(q,{...e}),Mt(se,{...e})]})};xe.states=pn;xe.options=cn;xe.className=Wa;xe.defaultOptions=Co;import{jsx as jm}from"react/jsx-runtime";import{Fragment as Ya,jsx as Be,jsxs as To}from"react/jsx-runtime";var Za="k-textbox",dn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],un={size:[r.small,r.medium,r.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[f.solid,f.flat,f.outline]},Ge={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},ne=e=>{let{size:t=Ge.size,rounded:o=Ge.rounded,fillMode:n=Ge.fillMode,separators:l=Ge.separators,showClearButton:i=Ge.showClearButton,showValidationIcon:p=Ge.showValidationIcon,prefix:d,suffix:x,type:u,value:N,placeholder:L,hover:c,focus:k,valid:v,invalid:g,required:T,loading:B,disabled:w,readonly:V,...Ie}=e;return To(E,{...Ie,size:t,rounded:o,fillMode:n,hover:c,focus:k,valid:v,invalid:g,required:T,loading:B,disabled:w,readonly:V,className:s(e.className,Za),children:[d&&To(Ya,{children:[Be(ce,{children:d}),l&&Be(be,{})]}),Be(re,{placeholder:L,value:N,type:u}),p&&Be(q,{valid:v,invalid:g,loading:B,disabled:w}),Be(Y,{loading:B,disabled:w}),i&&Be(se,{loading:B,disabled:w,readonly:V,value:N}),x&&To(Ya,{children:[l&&Be(be,{}),Be(me,{children:x})]})]})};ne.states=dn;ne.options=un;ne.className=Za;ne.defaultOptions=Ge;import{jsx as cd}from"react/jsx-runtime";import{Fragment as xd,jsx as bd}from"react/jsx-runtime";import{Fragment as gd,jsx as Sd}from"react/jsx-runtime";import{jsx as Ae,jsxs as Bo}from"react/jsx-runtime";var ja="k-actionsheet-titlebar",fn={},Z=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:l,filter:i,input:p,inputValue:d,inputPlaceholder:x,adaptive:u,children:N,...L}=e;return Bo("div",{...L,className:s(e.className,ja),children:[Bo("div",{className:"k-actionsheet-titlebar-group",children:[n&&Ae("div",{className:"k-actionsheet-actions",children:n}),!N&&Bo("div",{className:"k-actionsheet-title",children:[t&&Ae("div",{className:"k-text-center",children:t}),o&&Ae("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&Ae("div",{className:"k-actionsheet-title",children:N}),l&&Ae("div",{className:"k-actionsheet-actions",children:l})]}),(p||i)&&Ae("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?Ae(ne,{value:d,placeholder:x,size:u?"large":"medium"}):Ae(xe,{placeholder:"Filter",size:u?"large":"medium"})})]})};Z.className=ja;Z.defaultOptions=fn;import{jsx as Ao,jsxs as Nn}from"react/jsx-runtime";var zo="k-actionsheet-view",bn=[],xn={},hn={},Ze=e=>{let{adaptive:t,animated:o,children:n,header:l,footer:i,...p}=e,d=l?.type===Z&&Ao(Z,{adaptive:t,...l?.props}),x=i?.type===It&&Ao(It,{...i?.props});return Nn("div",{...p,className:s(e.className,zo,{[`${zo}-animated`]:o}),children:[d,Ao("div",{className:"k-actionsheet-content",children:n}),x]})};Ze.states=bn;Ze.options=xn;Ze.className=zo;Ze.defaultOptions=hn;import{jsx as eo,jsxs as Ln}from"react/jsx-runtime";var es="k-actionsheet",kn=[],vn={},Ct={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ie=e=>{let{side:t=Ct.side,fullscreen:o=Ct.fullscreen,adaptive:n=Ct.adaptive,overlay:l=Ct.overlay,template:i,children:p,header:d,footer:x,...u}=e;return Ln("div",{className:"k-actionsheet-container",children:[l&&eo("div",{className:"k-overlay"}),eo(Ce,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:eo("div",{...u,className:s(e.className,es,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:i||eo(Ze,{header:d,footer:x,adaptive:n,...e,children:p})})})]})};ie.states=kn;ie.options=vn;ie.className=es;ie.defaultOptions=Ct;import{jsx as Ud}from"react/jsx-runtime";import{Fragment as gn,jsx as Tt,jsxs as Eo}from"react/jsx-runtime";var wo="k-actionsheet-item",Sn=[a.hover,a.focus,a.selected,a.disabled],Po=e=>{let{iconName:t,text:o,description:n,hover:l,focus:i,selected:p,disabled:d,...x}=e;return Eo("span",{...x,className:s(e.className,wo,y(wo,{hover:l,focus:i,selected:p,disabled:d})),children:[!e.children&&Tt(gn,{children:Eo("span",{className:"k-actionsheet-action",children:[t&&Tt("span",{className:"k-icon-wrap",children:Tt(I,{className:"k-actionsheet-item-icon",icon:t})}),Eo("span",{className:"k-actionsheet-item-text",children:[o&&Tt("span",{className:"k-actionsheet-item-title",children:o}),n&&Tt("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Po.states=Sn;Po.className=wo;import{jsx as ou,jsxs as au}from"react/jsx-runtime";import{jsx as iu}from"react/jsx-runtime";import{jsx as mu}from"react/jsx-runtime";import{jsx as bu}from"react/jsx-runtime";import{jsx as Qe,jsxs as Oo}from"react/jsx-runtime";var Bt="k-slider",yn=[a.hover,a.focus,a.active,a.disabled,a.readonly],In={},ze={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},Q=e=>{let{type:t=ze.type,orientation:o=ze.orientation,readonly:n=ze.readonly,disabled:l=ze.disabled,handlePosition:i=ze.handlePosition,showButtons:p=ze.showButtons,showTicks:d=ze.showTicks,hover:x,focus:u,active:N,trackStyle:L,dir:c,...k}=e,v,g;return o==="horizontal"?(v=c==="rtl"?"caret-alt-left":"caret-alt-right",g=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(v="caret-alt-up",g="caret-alt-down"),Oo("div",{...k,className:s(Bt,e.className,y(Bt,{readonly:n,disabled:l}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[p&&Qe(m,{className:"k-button-decrease",rounded:"full",icon:g}),Oo("div",{className:"k-slider-track-wrap",children:[d&&Qe("ul",{className:"k-reset k-slider-items",children:e.children}),Oo("div",{className:"k-slider-track",style:L,children:[Qe("div",{className:"k-slider-selection"}),t==="range"&&Qe("span",{className:s("k-draghandle","k-draghandle-start",y(Bt,{hover:x,focus:u,active:N}))}),Qe("span",{className:s("k-draghandle",`k-draghandle-${i}`,y(Bt,{hover:x,focus:u,active:N}))})]})]}),p&&Qe(m,{className:"k-button-increase",rounded:"full",icon:v})]})};Q.states=yn;Q.options=In;Q.className=Bt;Q.defaultOptions=ze;import{jsx as os}from"react/jsx-runtime";var as="k-tick",Mn=[],Cn={},ss={label:!1},Ee=e=>{let{style:t,label:o=ss.label,orientation:n,large:l,text:i,...p}=e;return os("li",{...p,className:s(e.className,as,{[`k-tick-${n}`]:n,"k-tick-large":l}),style:t,children:o&&os("span",{className:"k-label",children:i})})};Ee.states=Mn;Ee.options=Cn;Ee.className=as;Ee.defaultOptions=ss;import{Fragment as Hu,jsx as Ku,jsxs as Gu}from"react/jsx-runtime";import{Fragment as Xu,jsx as Vu,jsxs as _u}from"react/jsx-runtime";import{Fragment as Yu,jsx as Wu,jsxs as Zu}from"react/jsx-runtime";import{Fragment as of,jsx as tf,jsxs as af}from"react/jsx-runtime";import{jsx as Tn}from"react/jsx-runtime";var Ro=e=>Tn(Q,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Bn}from"react/jsx-runtime";var Ko=e=>Bn(Q,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as rs,jsxs as En}from"react/jsx-runtime";var ns="k-spin-button",An=[],zn={size:[r.small,r.medium,r.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Ho={size:r.medium,fillMode:f.solid},je=e=>{let{size:t=Ho.size,fillMode:o=Ho.fillMode,...n}=e;return En("span",{...n,className:s(ns,e.className),children:[rs(m,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),rs(m,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};je.states=An;je.options=zn;je.className=ns;je.defaultOptions=Ho;import{Fragment as is,jsx as he,jsxs as Go}from"react/jsx-runtime";var ls="k-numerictextbox",wn=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Pn={size:[r.small,r.medium,r.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[f.solid,f.flat,f.outline]},$e={showSpinButton:!0,showClearButton:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},P=e=>{let{size:t=$e.size,rounded:o=$e.rounded,fillMode:n=$e.fillMode,separators:l=$e.separators,showClearButton:i=$e.showClearButton,showSpinButton:p=$e.showSpinButton,prefix:d,suffix:x,value:u,placeholder:N,hover:L,focus:c,valid:k,invalid:v,required:g,loading:T,disabled:B,readonly:w,...V}=e;return Go(E,{...V,size:t,rounded:o,fillMode:n,hover:L,focus:c,valid:k,invalid:v,required:g,loading:T,disabled:B,readonly:w,className:s(e.className,ls),children:[d&&Go(is,{children:[he(ce,{children:d}),l&&he(be,{})]}),he(re,{placeholder:N,value:u}),he(q,{valid:k,invalid:v,loading:T,disabled:B}),he(Y,{loading:T,disabled:B}),i&&he(se,{loading:T,disabled:B,readonly:w,value:u}),x&&Go(is,{children:[l&&he(be,{}),he(me,{children:x})]}),p&&he(je,{className:"k-input-spinner",size:t,fillMode:n})]})};P.states=wn;P.options=Pn;P.className=ls;P.defaultOptions=$e;import{jsx as Pf}from"react/jsx-runtime";import{jsx as Rn}from"react/jsx-runtime";var On="k-no-data",At=e=>Rn("span",{className:s(On,e.className),children:e.children});import{jsx as et,jsxs as cs}from"react/jsx-runtime";var $o="k-list",Kn=[],Hn={size:[r.small,r.medium,r.large]},ms={size:r.medium},O=e=>{let{size:t=ms.size,virtualization:o,children:n,optionLabel:l,customValue:i,screenReaders:p,...d}=e,x,u,N,L,c=[];return n?n.map((k,v)=>{k.type===D?(k.props.root===!0?(x=k.props.label,k.props.children.map((g,T)=>{c.push(et(M,{...g.props},`optChild-${T}-${new Date().getTime()}`))})):k.props.children.forEach((g,T)=>{let B="";T===0&&(B=k.props.label),c.push(et(M,{className:T===0?"k-first":"",...g.props,groupLabel:B},`groupLabel-${T}-${new Date().getTime()}`))}),u=et(D,{label:x,virtualization:o,children:c})):k.type===M&&(c.push(et(M,{...k.props},`${k.type}-${v}`)),N=et(tt,{virtualization:o,children:c}),p&&(L=cs(At,{className:"k-sr-only",children:[c.length," items found."]})))}):L=et(At,{children:"No data found."}),cs("div",{...d,className:s(e.className,$o,S($o,{size:t}),{"k-virtual-list":o}),children:[l,i,u,N,L]})};O.states=Kn;O.options=Hn;O.className=$o;O.defaultOptions=ms;import{jsx as De,jsxs as Dn}from"react/jsx-runtime";var Do="k-list",Gn=[],$n={size:[r.small,r.medium,r.large]},ds={size:r.medium},Fe=e=>{let{size:t=ds.size,virtualization:o,children:n,...l}=e,i,p,d,x=[];return n?n.map((u,N)=>{u.type===D?(u.props.root===!0?(i=u.props.label,u.props.children.map((L,c)=>{x.push(De(M,{...L.props},`optChild-${c}-${new Date().getTime()}`))})):(x.push(De(us,{...u.props,children:u.props.label},`listChild-${N}`)),u.props.children.map((L,c)=>{x.push(De(M,{...L.props},`fwOptChild-${c}-${new Date().getTime()}`))})),p=De(D,{label:i,virtualization:o,children:x})):u.type===M&&(x.push(De(M,{...u.props},`${u.type}-${N}`)),d=De(tt,{virtualization:o,children:x}))}):d=De(At,{children:"No data found."}),Dn("div",{...l,className:s(e.className,Do,S(Do,{size:t}),{"k-virtual-list":o}),children:[p,d]})};Fe.states=Gn;Fe.options=$n;Fe.className=Do;Fe.defaultOptions=ds;import{jsx as fs}from"react/jsx-runtime";var to="k-checkbox",Fn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Vn={size:[r.small,r.medium,r.large],rounded:[h.small,h.medium,h.large,h.full]},Fo={size:r.medium,rounded:h.medium},Ne=e=>{let{id:t,checked:o,indeterminate:n,hover:l,focus:i,disabled:p,invalid:d,valid:x,required:u,size:N=Fo.size,rounded:L=Fo.rounded,...c}=e;return fs("span",{className:"k-checkbox-wrap",children:fs("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:u,className:s(e.className,to,S(to,{size:N,rounded:L}),y(to,{hover:l,focus:i,disabled:p,invalid:d,valid:x,indeterminate:n,checked:o}))})})};Ne.states=Fn;Ne.options=Vn;Ne.className=to;Ne.defaultOptions=Fo;var zt=Ne;import{jsx as Jn}from"react/jsx-runtime";var bs="k-checkbox-list",Xn=[],_n={},xs={layout:"vertical"},ot=e=>{let{layout:t=xs.layout,...o}=e;return Jn("ul",{...o,className:s(e.className,bs,{[`k-list-${t}`]:t}),children:e.children})};ot.states=Xn;ot.options=_n;ot.className=bs;ot.defaultOptions=xs;import{jsx as Yn}from"react/jsx-runtime";var hs="k-checkbox-list-item",Un=[],qn={},Wn={},at=e=>{let{...t}=e;return Yn("li",{...t,className:s(e.className,hs),children:e.children})};at.states=Un;at.options=qn;at.className=hs;at.defaultOptions=Wn;import{Fragment as Zn,jsx as Ns,jsxs as Qn}from"react/jsx-runtime";var Vo=({children:e,id:t,...o})=>Qn(Zn,{children:[Ns(zt,{id:t,...o}),Ns("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as db,jsx as mb,jsxs as ub}from"react/jsx-runtime";import{Fragment as Nb,jsx as hb,jsxs as kb}from"react/jsx-runtime";import{Fragment as yb,jsx as gb,jsxs as Ib}from"react/jsx-runtime";import{jsx as Bb}from"react/jsx-runtime";import{jsx as wb}from"react/jsx-runtime";import{jsx as oo,jsxs as oi}from"react/jsx-runtime";var Xo="k-list-item",jn=[a.hover,a.focus,a.selected,a.disabled],ei={},ti={},M=e=>{let{text:t,groupLabel:o,group:n,showIcon:l,iconName:i,showCheckbox:p,checked:d,hover:x,focus:u,selected:N,disabled:L,...c}=e,k=t||e.children;return oi("li",{...c,className:s(e.className,n?"k-list-group-item":Xo,y(Xo,{hover:x,focus:u,disabled:L,selected:N})),children:[p&&oo(Ne,{checked:d}),l&&oo(I,{icon:i}),oo("span",{className:"k-list-item-text",children:k}),o&&o!==""&&oo("div",{className:"k-list-item-group-label",children:o})]})};M.states=jn;M.options=ei;M.className=Xo;M.defaultOptions=ti;import{jsx as _o,jsxs as si}from"react/jsx-runtime";var ai="k-list-content",tt=e=>{let{virtualization:t,...o}=e;return si("div",{...o,className:s(ai,e.className),children:[_o("ul",{className:s("k-list-ul"),children:e.children}),t&&_o("div",{className:"k-height-container",children:_o("div",{})})]})};import{jsx as ks}from"react/jsx-runtime";var ri="k-list-group-sticky-header",vs=e=>ks("div",{className:s(ri,e.className),children:ks("div",{className:"k-list-header-text",children:e.children})});import{Fragment as ni,jsx as Ls,jsxs as ii}from"react/jsx-runtime";var D=e=>{let{virtualization:t,label:o}=e;return ii(ni,{children:[o&&Ls(vs,{children:o}),e.children&&Ls(tt,{virtualization:t,children:e.children})]})};import{jsx as Ss}from"react/jsx-runtime";var li="k-list-group-item",us=e=>Ss("li",{className:s(li,e.className),children:Ss("span",{className:"k-list-item-text",children:e.children})});import{jsx as di}from"react/jsx-runtime";var Jo="k-list-optionlabel",pi=[a.hover,a.focus,a.selected,a.disabled],ci={},mi={},ao=e=>{let{text:t,hover:o,focus:n,selected:l,disabled:i,...p}=e;return di("div",{...p,className:s(Jo,y(Jo,{hover:o,focus:n,selected:l,disabled:i})),children:t})};ao.states=pi;ao.options=ci;ao.className=Jo;ao.defaultOptions=mi;import{jsx as xi}from"react/jsx-runtime";var Uo="k-list-custom-value",ui=[a.hover,a.focus,a.selected,a.disabled],fi={},bi={},we=e=>{let{text:t,hover:o,focus:n,selected:l,disabled:i,...p}=e;return xi("div",{...p,className:s(Uo,y(Uo,{hover:o,focus:n,selected:l,disabled:i})),children:t})};we.states=ui;we.options=fi;we.className=Uo;we.defaultOptions=bi;import{jsx as xx}from"react/jsx-runtime";import{jsx as vx}from"react/jsx-runtime";import{jsx as yx,jsxs as Ix}from"react/jsx-runtime";import{jsx as Bx,jsxs as Ax}from"react/jsx-runtime";import{jsx as Px}from"react/jsx-runtime";import{jsx as Hx,jsxs as Gx}from"react/jsx-runtime";import{jsx as Vx,jsxs as Xx}from"react/jsx-runtime";import{Fragment as ki,jsx as X,jsxs as qo}from"react/jsx-runtime";var gs="k-dropdownlist",hi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ni={size:[r.small,r.medium,r.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[f.solid,f.flat,f.outline]},st={showValue:!0,arrowIconName:"caret-alt-down",size:r.medium,rounded:h.medium,fillMode:f.solid},F=e=>{let{size:t=st.size,rounded:o=st.rounded,fillMode:n=st.fillMode,arrowIconName:l=st.arrowIconName,showValue:i=st.showValue,valueIconName:p,prefix:d,suffix:x,value:u,placeholder:N,hover:L,focus:c,valid:k,invalid:v,required:g,loading:T,disabled:B,readonly:w,popup:V,opened:Ie,adaptive:Nt,adaptiveSettings:kt,adaptiveTitle:fo,adaptiveSubtitle:bo,adaptiveFilter:js,...er}=e;return qo(ki,{children:[qo(ae,{...er,size:t,rounded:o,fillMode:n,hover:L,focus:c,valid:k,invalid:v,required:g,loading:T,disabled:B,readonly:w,className:s(e.className,gs,{"k-icon-picker":!i&&p}),children:[X(ce,{children:d}),X(He,{placeholder:N,value:u,showValue:i,valueIconName:p}),X(q,{valid:k,invalid:v,loading:T,disabled:B}),X(Y,{loading:T,disabled:B}),X(me,{children:x}),X(m,{className:"k-input-button",icon:l,rounded:null,size:e.size,fillMode:e.fillMode})]}),Ie&&V&&X($,{className:"k-list-container k-dropdownlist-popup",children:V}),Nt&&X(ie,{adaptive:!0,...kt,header:X(Z,{actionsEnd:X(m,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:js,inputValue:u,inputPlaceholder:N,title:fo,subtitle:bo}),children:X("div",{className:"k-list-container",children:qo(O,{size:"large",children:[X(M,{text:"List item"}),X(M,{text:"List item"}),X(M,{text:"List item"})]})})})]})};F.states=hi;F.options=Ni;F.className=gs;F.defaultOptions=st;import{jsx as vh}from"react/jsx-runtime";import{jsx as Ih,jsxs as Mh}from"react/jsx-runtime";import{Fragment as Ph,jsx as Eh,jsxs as wh}from"react/jsx-runtime";import{jsx as Hh}from"react/jsx-runtime";import{jsx as Vh,jsxs as Xh}from"react/jsx-runtime";import{jsx as Wh,jsxs as Yh}from"react/jsx-runtime";import{Fragment as sN,jsx as oN,jsxs as aN}from"react/jsx-runtime";import{Fragment as dN,jsx as cN,jsxs as mN}from"react/jsx-runtime";import{Fragment as TN,jsx as CN}from"react/jsx-runtime";import{Fragment as ON,jsx as PN}from"react/jsx-runtime";import{Fragment as Et,jsx as A,jsxs as K}from"react/jsx-runtime";var ys="k-colorgradient-inputs",vi=[],Li={size:[r.small,r.medium,r.large]},Is={mode:"rgba",size:r.medium},rt=e=>{let{mode:t=Is.mode,size:o,...n}=e;return K("div",{...n,className:s(ys,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(m,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&K(Et,{children:[K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&K(Et,{children:[K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&K(Et,{children:[K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&K(Et,{children:[K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(Et,{children:K("div",{className:"k-vstack k-flex-1",children:[A(ne,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};rt.states=vi;rt.options=Li;rt.className=ys;rt.defaultOptions=Is;import{jsx as Xe,jsxs as _e}from"react/jsx-runtime";var Ms="k-colorgradient-color-contrast",Si=[],gi={},yi={},nt=()=>_e("div",{className:s(Ms,"k-vbox"),children:[_e("div",{className:"k-contrast-ratio",children:[Xe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),_e("span",{className:"k-contrast-validation !k-text-success",children:[Xe(I,{icon:"check"}),Xe(I,{icon:"check"})]})]}),_e("div",{children:[Xe("span",{children:"AA: 4.5"}),_e("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Xe(I,{icon:"check"})]})]}),_e("div",{children:[Xe("span",{children:"AAA: 7.0"}),_e("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Xe(I,{icon:"x"})]})]})]});nt.states=Si;nt.options=gi;nt.className=Ms;nt.defaultOptions=yi;import{jsx as j,jsxs as wt}from"react/jsx-runtime";var so="k-colorgradient",Ii=[a.hover,a.focus,a.readonly,a.disabled],Mi={size:[r.small,r.medium,r.large]},le={size:r.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},Pe=e=>{let{size:t=le.size,mode:o=le.mode,readonly:n=le.readonly,disabled:l=le.disabled,gradientStyle:i=le.gradientStyle,dragHandleStyle:p=le.dragHandleStyle,alphaStyle:d=le.alphaStyle,alphaStyleHorizontal:x=le.alphaStyleHorizontal,contrast:u=le.contrast,dir:N,hover:L,focus:c,hoverHandle:k,focusHandle:v,canvasOrientation:g=le.canvasOrientation,...T}=e;return wt("div",{...T,className:s(e.className,so,S(so,{size:t}),y(so,{hover:L,focus:c,readonly:n,disabled:l})),dir:N,children:[!g||g==="horizontal"&&wt("div",{className:"k-colorgradient-canvas k-hstack",children:[j("div",{className:"k-hsv-rectangle",style:i,children:j("div",{className:"k-hsv-gradient",children:j("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":v}),style:p})})}),wt("div",{className:"k-hsv-controls k-hstack",children:[j(Ko,{className:"k-hue-slider",hover:k,focus:v}),o!=="rgb"&&o!=="hsv"&&j(Ko,{className:"k-alpha-slider",hover:k,focus:v,trackStyle:d})]})]}),g==="vertical"&&wt("div",{className:"k-colorgradient-canvas k-vstack",children:[j("div",{className:"k-hsv-rectangle",style:i,children:j("div",{className:"k-hsv-gradient",children:j("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":v}),style:p})})}),wt("div",{className:"k-hsv-controls k-vstack",children:[j(Ro,{className:"k-hue-slider",hover:k,focus:v}),o!=="rgb"&&o!=="hsv"&&j(Ro,{className:"k-alpha-slider",hover:k,focus:v,trackStyle:x})]})]}),j(rt,{mode:e.mode,size:t}),u&&j(nt,{})]})};Pe.states=Ii;Pe.options=Mi;Pe.className=so;Pe.defaultOptions=le;import{jsx as nk}from"react/jsx-runtime";import{jsx as ck}from"react/jsx-runtime";import{jsx as Ci}from"react/jsx-runtime";var Cs=e=>Ci("tr",{children:e.children});import{jsx as Ai}from"react/jsx-runtime";var Wo="k-colorpalette-tile",Ti=[a.hover,a.focus,a.selected],Bi={},Pt=e=>{let{color:t,tileSize:o,hover:n,focus:l,selected:i,...p}=e,d={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Ai("td",{...p,className:s(e.className,Wo,y(Wo,{hover:n,focus:l,selected:i})),style:d})};Pt.states=Ti;Pt.options=Bi;Pt.className=Wo;import{jsx as Ot}from"react/jsx-runtime";var ro="k-colorpalette",zi=[a.disabled],Ei={size:[r.small,r.medium,r.large]},Yo={columns:10,size:r.medium},it=e=>{let{size:t=Yo.size,palette:o,columns:n=Yo.columns,tileSize:l,disabled:i,...p}=e,d=[];if(o){let x=n||o.columns,u=o.colors?o.colors:o;Array.isArray(u)&&Array.from({length:Math.ceil(u.length/x)},(N,L)=>{let c=[];u.slice(L*x,(L+1)*x).map((v,g)=>{c.push(Ot(Pt,{color:v,tileSize:l},g))});let k=Ot(Cs,{children:c},L);d.push(k)})}return Ot("div",{...p,className:s(e.className,ro,y(ro,{disabled:i}),S(ro,{size:t})),children:Ot("table",{className:"k-colorpalette-table",children:Ot("tbody",{children:d.length>0?d:e.children})})})};it.states=zi;it.options=Ei;it.className=ro;it.defaultOptions=Yo;var Zo={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4","#ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}};import{jsx as wk}from"react/jsx-runtime";import{jsx as ee,jsxs as lt}from"react/jsx-runtime";var no="k-coloreditor",wi=[a.focus],Pi={size:[r.small,r.medium,r.large]},pt={size:r.medium,view:"gradient",palette:Zo.office,actionButtons:!0,canvasOrientation:"horizontal"},de=e=>{let{size:t=pt.size,view:o=pt.view,palette:n=pt.palette,color:l,currentColor:i,focus:p,focusView:d,dir:x,group:u,actionButtons:N=pt.actionButtons,canvasOrientation:L=pt.canvasOrientation,...c}=e;return lt("div",{...c,className:s(e.className,"k-flatcolorpicker",no,S(no,{size:t}),y(no,{focus:p})),dir:x,children:[lt("div",{className:"k-coloreditor-header k-hstack",children:[ee("div",{className:"k-coloreditor-header-actions k-hstack",children:u&&lt(R,{fillMode:"flat",children:[ee(m,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),ee(m,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),ee("div",{className:"k-spacer"}),lt("div",{className:"k-coloreditor-header-actions k-hstack",children:[ee(m,{fillMode:"flat",icon:"droplet-slash",size:t}),lt("div",{className:"k-coloreditor-preview k-vstack",children:[ee(Me,{className:"k-coloreditor-preview-color",color:l}),ee(Me,{className:"k-coloreditor-current-color",color:i})]})]})]}),ee("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?ee(Pe,{focus:d,size:t,canvasOrientation:L}):ee(it,{palette:n,size:t})}),N&&lt(Te,{className:"k-coloreditor-footer",alignment:"start",children:[ee(m,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),ee(m,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};de.states=wi;de.options=Pi;de.className=no;de.defaultOptions=pt;import{jsx as Qk}from"react/jsx-runtime";import{jsx as ov}from"react/jsx-runtime";import{jsx as nv}from"react/jsx-runtime";import{jsx as cv}from"react/jsx-runtime";import{Fragment as Ki,jsx as te,jsxs as jo}from"react/jsx-runtime";var Ts="k-colorpicker",Oi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],Ri={size:[r.small,r.medium,r.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[f.solid,f.flat,f.outline]},Rt={arrowIconName:"caret-alt-down",size:ae.defaultOptions.size,rounded:ae.defaultOptions.rounded,fillMode:ae.defaultOptions.fillMode},ke=e=>{let{size:t=Rt.size,rounded:o=Rt.rounded,fillMode:n=Rt.fillMode,arrowIconName:l=Rt.arrowIconName,prefix:i,suffix:p,value:d,placeholder:x,hover:u,focus:N,valid:L,invalid:c,required:k,disabled:v,valueIconName:g,popup:T,opened:B,adaptive:w,adaptiveSettings:V,adaptiveTitle:Ie,adaptiveSubtitle:Nt,...kt}=e;return jo(Ki,{children:[jo(ae,{...kt,size:t,rounded:o,fillMode:n,hover:u,focus:N,valid:L,invalid:c,required:k,disabled:v,className:s(e.className,Ts,"k-icon-picker"),children:[te(ce,{children:i}),te(He,{placeholder:x,value:d,showValue:!1,valueIcon:te(Me,{className:"k-value-icon",color:d,iconName:g}),valueIconName:g}),te(me,{children:p}),te(m,{className:"k-input-button",icon:l,rounded:null,size:t,fillMode:n})]}),B&&T&&te($,{className:"k-colorpicker-popup",children:T}),w&&te(ie,{adaptive:!0,...V,header:te(Z,{actionsEnd:te(m,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:Ie,subtitle:Nt}),footer:jo(It,{children:[te(m,{text:"Cancel",size:"large",themeColor:"base"}),te(m,{text:"Set",size:"large",themeColor:"primary"})]}),children:te(de,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};ke.states=Oi;ke.options=Ri;ke.className=Ts;ke.defaultOptions=Rt;import{jsx as Av}from"react/jsx-runtime";import{jsx as Ov}from"react/jsx-runtime";import{jsx as $v}from"react/jsx-runtime";import{jsx as Xv}from"react/jsx-runtime";import{jsx as qv}from"react/jsx-runtime";import{jsx as Qv}from"react/jsx-runtime";import{Fragment as ea,jsx as G,jsxs as Kt}from"react/jsx-runtime";var Bs="k-combobox",Gi=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],$i={size:[r.small,r.medium,r.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[f.solid,f.flat,f.outline]},Ht={size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},Je=e=>{let{size:t=Ht.size,rounded:o=Ht.rounded,fillMode:n=Ht.fillMode,separators:l=Ht.separators,prefix:i,suffix:p,value:d,placeholder:x,hover:u,focus:N,valid:L,invalid:c,required:k,loading:v,disabled:g,popup:T,opened:B,readonly:w,adaptive:V,adaptiveSettings:Ie,adaptiveTitle:Nt,adaptiveSubtitle:kt,adaptiveCustomValue:fo,...bo}=e;return Kt(ea,{children:[Kt(E,{...bo,size:t,rounded:o,fillMode:n,hover:u,focus:N,valid:L,invalid:c,required:k,loading:v,disabled:g,readonly:w,className:s(e.className,Bs),children:[i&&Kt(ea,{children:[G(ce,{children:i}),l&&G(be,{})]}),G(re,{placeholder:x,value:d}),G(q,{valid:L,invalid:c,loading:v,disabled:g}),G(Y,{loading:v,disabled:g}),G(se,{loading:v,disabled:g,readonly:w,value:d}),p&&Kt(ea,{children:[l&&G(be,{}),G(me,{children:p})]}),G(m,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMod