UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 74.9 kB
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var L=(e,t)=>a({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),M=(e,t)=>a({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},d={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},m={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},r={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"},Ea={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{jsx as Nn}from"react/jsx-runtime";var Zt="k-actions",xn=[],hn={},yo={alignment:"start",orientation:"horizontal"},D=e=>{let{alignment:t=yo.alignment,orientation:o=yo.orientation,...s}=e;return Nn("div",{...s,className:a(Zt,{[`${Zt}-${t}`]:t,[`${Zt}-${o}`]:o},e.className),children:e.children})};D.states=xn;D.options=hn;D.className=Zt;D.defaultOptions=yo;import{Fragment as Ln,jsx as za}from"react/jsx-runtime";var To="k-icon k-font-icon",vn=[],kn={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Sn={},It=e=>{let{size:t,themeColor:o,icon:s,rotate:p,flip:l,...i}=e;return s?za("span",{...i,className:a(e.className,To,L(To,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${p}`]:p,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):za(Ln,{})};It.states=vn;It.options=kn;It.className=To;It.defaultOptions=Sn;var wa=It;import{Fragment as Mn,jsx as jt}from"react/jsx-runtime";var Ao="k-icon k-svg-icon",Cn=[],gn={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Oa={viewBox:"0 0 24 24"},yt=e=>{let{size:t,themeColor:o,rotate:s,flip:p,viewBox:l=Oa.viewBox,icon:i,...u}=e;if(!i)return jt(Mn,{});i==="none"&&{...u,className:a(e.className,Ao,"k-none")};let b=typeof i=="object"&&i.name&&i.name;return jt("span",{...u,className:a(e.className,Ao,L("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"}),children:jt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:l,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:e.children})})};yt.states=Cn;yt.options=gn;yt.className=Ao;yt.defaultOptions=Oa;var Bo=yt;import*as Ra from"@progress/kendo-svg-icons";import{Fragment as Ka,jsx as Tt}from"react/jsx-runtime";var In=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),yn=[],Tn={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Po={viewBox:"0 0 24 24",type:"svg"},g=e=>{let{size:t,themeColor:o,icon:s,type:p=Po.type,rotate:l,flip:i,viewBox:u=Po.viewBox,...b}=e;if(!s)return Tt(Ka,{});if(p==="svg"){if(s==="none")return Tt(Bo,{...b,icon:s,size:t});let x=In(`${s}-icon`);return Ra[x]?Tt(Bo,{...b,icon:Ra[x],size:t,themeColor:o,rotate:l,flip:i,viewBox:u}):Tt(Ka,{})}return Tt(wa,{...b,icon:s,size:t,themeColor:o,rotate:l,flip:i})};g.states=yn;g.options=Tn;g.defaultOptions=Po;import{Fragment as Pn,jsx as At,jsxs as Ha}from"react/jsx-runtime";var eo="k-button",An=[r.hover,r.focus,r.active,r.selected,r.disabled],Bn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark,m.inverse]},Ke={size:n.medium,rounded:f.medium,fillMode:d.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},v=e=>{let{size:t=Ke.size,rounded:o=Ke.rounded,fillMode:s=Ke.fillMode,themeColor:p=Ke.themeColor,showArrow:l=Ke.showArrow,arrowIconName:i=Ke.arrowIconName,hover:u,focus:b,active:x,selected:h,disabled:S,icon:c,text:N,iconClassName:k,...C}=e,y=c!==void 0,T=e.children!==void 0;return Ha("button",{...C,className:a(e.className,eo,L(eo,{size:t,rounded:o,fillMode:s,themeColor:p}),M(eo,{hover:u,focus:b,active:x,disabled:S,selected:h}),{"k-icon-button":!N&&!T&&y}),children:[c&&At(g,{className:a(k,"k-button-icon"),icon:c}),N?Ha(Pn,{children:[N&&At("span",{className:"k-button-text",children:N}),e.children]}):e.children&&At("span",{className:"k-button-text",children:e.children}),l&&At("span",{className:"k-menu-button-arrow k-button-arrow",children:At(g,{icon:i})})]})};v.states=An;v.options=Bn;v.className=eo;v.defaultOptions=Ke;import{jsx as En}from"react/jsx-runtime";var J=e=>En(v,{icon:"folder",...e,children:void 0});import{jsx as zn}from"react/jsx-runtime";var V=e=>zn(v,{icon:"folder",children:"Button",...e});import{jsx as bc}from"react/jsx-runtime";import{jsx as Rn}from"react/jsx-runtime";var Bt="k-button-group",wn=[r.disabled],On={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Ga={fillMode:d.solid},w=e=>{let{fillMode:t=Ga.fillMode,disabled:o,stretched:s,...p}=e;return Rn("div",{...p,className:a(e.className,Bt,L(Bt,{fillMode:t}),M(Bt,{disabled:o}),{[`${Bt}-stretched`]:s}),children:e.children})};w.states=wn;w.options=On;w.className=Bt;w.defaultOptions=Ga;import{Fragment as Ac,jsx as Tc,jsxs as Bc}from"react/jsx-runtime";import{Fragment as Rc,jsx as Oc,jsxs as Kc}from"react/jsx-runtime";import{Fragment as _c,jsx as Vc,jsxs as Xc}from"react/jsx-runtime";import{Fragment as Yc,jsx as Wc,jsxs as Qc}from"react/jsx-runtime";import{jsx as Gn}from"react/jsx-runtime";var to="k-input",Kn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Hn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},oo={size:n.medium,rounded:n.medium,fillMode:d.solid},P=e=>{let{hover:t,focus:o,disabled:s,invalid:p,valid:l,loading:i,readonly:u,size:b=oo.size,rounded:x=oo.rounded,fillMode:h=oo.fillMode,...S}=e;return Gn("span",{...S,className:a(e.className,to,L(to,{size:b,rounded:x,fillMode:h}),M(to,{hover:t,focus:o,disabled:s,invalid:p,valid:l,loading:i,readonly:u}))})};P.states=Kn;P.options=Hn;P.className=to;P.defaultOptions=oo;import{jsx as Vn}from"react/jsx-runtime";var ao="k-picker",Dn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],$n={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},ro={size:n.medium,rounded:f.medium,fillMode:d.solid},se=e=>{let{hover:t,focus:o,disabled:s,invalid:p,valid:l,loading:i,readonly:u,size:b=ro.size,rounded:x=ro.rounded,fillMode:h=ro.fillMode,...S}=e;return Vn("span",{...S,className:a(e.className,ao,L(ao,{size:b,rounded:x,fillMode:h}),M(ao,{hover:t,focus:o,disabled:s,invalid:p,valid:l,loading:i,readonly:u})),children:e.children})};se.states=Dn;se.options=$n;se.className=ao;se.defaultOptions=ro;import{Fragment as Fn,jsx as Eo}from"react/jsx-runtime";var Da="k-clear-value",_n=[r.disabled,r.loading,r.readonly],Xn={},ie=e=>{let{disabled:t,loading:o,readonly:s,value:p}=e;return t||s||o||!p?Eo(Fn,{}):Eo("span",{className:a(e.className,Da),children:Eo(g,{icon:"x"})})};ie.states=_n;ie.options=Xn;ie.className=Da;import{jsx as qn}from"react/jsx-runtime";var zo="k-input-inner",Jn=[],Un={},no={type:"text",autocomplete:"off",value:"",placeholder:""},le=e=>{let{value:t=no.value,type:o=no.type,placeholder:s=no.placeholder,autocomplete:p=no.autocomplete,...l}=e;return qn("input",{...l,type:o,className:a(e.className,zo,L(zo,e)),placeholder:s,autoComplete:p,defaultValue:t})};le.states=Jn;le.options=Un;le.className=zo;import{jsx as $a,jsxs as Qn}from"react/jsx-runtime";var wo="k-input-inner",Wn=[],Yn={},He=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:p,valueIconName:l,...i}=e;return Qn("span",{...i,className:a(e.className,wo,L(wo,e)),children:[p,!p&&l&&$a(g,{className:"k-input-value-icon",icon:l}),s&&!t&&o,s&&t&&$a("span",{className:"k-input-value-text",children:t})]})};He.states=Wn;He.options=Yn;He.className=wo;import{jsx as es}from"react/jsx-runtime";var Oo="k-input-inner",Zn=[],jn={},Va={value:"",placeholder:""},Pt=e=>{let{value:t=Va.value,placeholder:o=Va.placeholder,rows:s,...p}=e;return es("textarea",{...p,className:a(e.className,Oo,L(Oo,e)),placeholder:o,rows:s,defaultValue:t})};Pt.states=Zn;Pt.options=jn;Pt.className=Oo;import{Fragment as os,jsx as _a}from"react/jsx-runtime";var Xa="k-input-loading-icon",ts=[r.disabled,r.loading],q=e=>{let{disabled:t,loading:o}=e;return t||!o?_a(os,{}):_a("span",{className:a(e.className,Xa,"k-icon k-i-loading")})};q.states=ts;q.className=Xa;import{Fragment as ns,jsx as Fa}from"react/jsx-runtime";var Ja="k-input-validation-icon",as=[r.valid,r.invalid,r.disabled,r.loading],rs={},U=e=>{let{valid:t,invalid:o,disabled:s,loading:p}=e,l=o?"warning-circle":"check-circle";return s||p||!!!(t||o)?Fa(ns,{}):Fa(g,{className:a(Ja),icon:l})};U.states=as;U.options=rs;U.className=Ja;import{Fragment as ls,jsx as Ua}from"react/jsx-runtime";var ss="k-input-prefix",is={direction:"horizontal"},W=e=>{let{direction:t=is.direction,...o}=e;return e.children?Ua("span",{...o,className:a(ss,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ua(ls,{})};import{Fragment as ms,jsx as qa}from"react/jsx-runtime";var ps="k-input-suffix",cs={direction:"horizontal"},Y=e=>{let{direction:t=cs.direction,...o}=e;return e.children?qa("span",{...o,className:a(ps,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):qa(ms,{})};import{jsx as Dm}from"react/jsx-runtime";import{jsx as Xm}from"react/jsx-runtime";import{jsx as us}from"react/jsx-runtime";var Wa="k-input-separator",ds={direction:"vertical"},Q=e=>{let{direction:t=ds.direction,...o}=e;return us("span",{...o,className:a(Wa,e.className,{[`${Wa}-${t}`]:t})})};import{jsx as Ya,jsxs as xs}from"react/jsx-runtime";var Qa="k-color-preview",fs=[],bs={},Se=e=>{let{color:t,iconName:o,...s}=e;return xs("span",{...s,className:a(e.className,Qa,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Ya(g,{icon:o,className:"k-color-preview-icon"}),Ya("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Se.states=fs;Se.options=bs;Se.className=Qa;import{jsx as Za}from"react/jsx-runtime";var ja="k-animation-container",hs=[],Ns={},er={positionMode:"absolute"},Le=e=>{let{positionMode:t=er.positionMode,animationStyle:o,offset:s,...p}=e;return Za("div",{...p,style:{...s,...e.style},className:a(e.className,ja,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Za("div",{className:"k-child-animation-container",style:o,children:e.children})})};Le.states=hs;Le.options=Ns;Le.className=ja;Le.defaultOptions=er;import{jsx as tr}from"react/jsx-runtime";var or="k-popup",vs=[],ks={},ar={positionMode:"absolute"},K=e=>{let{offset:t,positionMode:o=ar.positionMode,animationStyle:s,...p}=e;return tr(Le,{positionMode:o,offset:t,animationStyle:s,children:tr("div",{...p,className:a(e.className,or),children:e.children})})};K.states=vs;K.options=ks;K.className=or;K.defaultOptions=ar;import{jsx as Ls}from"react/jsx-runtime";var Ss="k-actionsheet-footer",rr={alignment:"stretched",orientation:"horizontal"},Et=e=>{let{alignment:t=rr.alignment,orientation:o=rr.orientation,template:s,as:p=s?"div":D,...l}=e;return Ls(p,{...l,...!s&&{alignment:t,orientation:o},className:a(e.className,Ss),children:e.children})};import{jsx as zt,jsxs as Ms}from"react/jsx-runtime";var nr="k-searchbox",Cs=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],gs={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ro={showIcon:!0,icon:"search",size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode},ue=e=>{let{value:t,placeholder:o,size:s,rounded:p,fillMode:l,hover:i,focus:u,valid:b,invalid:x,required:h,loading:S,disabled:c,showIcon:N=Ro.showIcon,icon:k=Ro.icon,...C}=e;return Ms(P,{...C,size:s,rounded:p,fillMode:l,hover:i,focus:u,valid:b,invalid:x,required:h,loading:S,disabled:c,className:a(e.className,nr),children:[N&&zt(g,{className:"k-input-icon",icon:k}),zt(le,{placeholder:o,value:t}),zt(q,{...e}),zt(U,{...e}),zt(ie,{...e})]})};ue.states=Cs;ue.options=gs;ue.className=nr;ue.defaultOptions=Ro;import{jsx as Hd}from"react/jsx-runtime";import{Fragment as sr,jsx as Ce,jsxs as Ko}from"react/jsx-runtime";var ir="k-textbox",Is=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ys={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ge={showClearButton:!0,showValidationIcon:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},fe=e=>{let{size:t=Ge.size,rounded:o=Ge.rounded,fillMode:s=Ge.fillMode,separators:p=Ge.separators,showClearButton:l=Ge.showClearButton,showValidationIcon:i=Ge.showValidationIcon,prefix:u,suffix:b,type:x,value:h,placeholder:S,hover:c,focus:N,valid:k,invalid:C,required:y,loading:T,disabled:E,readonly:G,...ke}=e;return Ko(P,{...ke,size:t,rounded:o,fillMode:s,hover:c,focus:N,valid:k,invalid:C,required:y,loading:T,disabled:E,readonly:G,className:a(e.className,ir),children:[u&&Ko(sr,{children:[Ce(W,{children:u}),p&&Ce(Q,{})]}),Ce(le,{placeholder:S,value:h,type:x}),i&&Ce(U,{valid:k,invalid:C,loading:T,disabled:E}),Ce(q,{loading:T,disabled:E}),l&&Ce(ie,{loading:T,disabled:E,readonly:G,value:h}),b&&Ko(sr,{children:[p&&Ce(Q,{}),Ce(Y,{children:b})]})]})};fe.states=Is;fe.options=ys;fe.className=ir;fe.defaultOptions=Ge;import{jsx as Wd}from"react/jsx-runtime";import{Fragment as tu,jsx as eu}from"react/jsx-runtime";import{Fragment as lu,jsx as iu}from"react/jsx-runtime";import{jsx as ge,jsxs as Ho}from"react/jsx-runtime";var pr="k-actionsheet-titlebar",Ts={},Z=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:p,filter:l,input:i,inputValue:u,inputPlaceholder:b,adaptive:x,children:h,...S}=e;return Ho("div",{...S,className:a(e.className,pr),children:[Ho("div",{className:"k-actionsheet-titlebar-group",children:[s&&ge("div",{className:"k-actionsheet-actions",children:s}),!h&&Ho("div",{className:"k-actionsheet-title",children:[t&&ge("div",{className:"k-text-center",children:t}),o&&ge("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&ge("div",{className:"k-actionsheet-title",children:h}),p&&ge("div",{className:"k-actionsheet-actions",children:p})]}),(i||l)&&ge("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?ge(fe,{value:u,placeholder:b,size:x?"large":"medium"}):ge(ue,{placeholder:"Filter",size:x?"large":"medium"})})]})};Z.className=pr;Z.defaultOptions=Ts;import{jsx as Go,jsxs as Es}from"react/jsx-runtime";var Do="k-actionsheet-view",As=[],Bs={},Ps={},tt=e=>{let{adaptive:t,animated:o,children:s,header:p,footer:l,...i}=e,u=p?.type===Z&&Go(Z,{adaptive:t,...p?.props}),b=l?.type===Et&&Go(Et,{...l?.props});return Es("div",{...i,className:a(e.className,Do,{[`${Do}-animated`]:o}),children:[u,Go("div",{className:"k-actionsheet-content",children:s}),b]})};tt.states=As;tt.options=Bs;tt.className=Do;tt.defaultOptions=Ps;import{jsx as so,jsxs as Os}from"react/jsx-runtime";var cr="k-actionsheet",zs=[],ws={},wt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},pe=e=>{let{side:t=wt.side,fullscreen:o=wt.fullscreen,adaptive:s=wt.adaptive,overlay:p=wt.overlay,template:l,children:i,header:u,footer:b,...x}=e;return Os("div",{className:"k-actionsheet-container",children:[p&&so("div",{className:"k-overlay"}),so(Le,{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:so("div",{...x,className:a(e.className,cr,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:l||so(tt,{header:u,footer:b,adaptive:s,...e,children:i})})})]})};pe.states=zs;pe.options=ws;pe.className=cr;pe.defaultOptions=wt;import{jsx as Eu}from"react/jsx-runtime";import{Fragment as Ks,jsx as Ot,jsxs as $o}from"react/jsx-runtime";var Vo="k-actionsheet-item",Rs=[r.hover,r.focus,r.selected,r.disabled],_o=e=>{let{iconName:t,text:o,description:s,hover:p,focus:l,selected:i,disabled:u,...b}=e;return $o("span",{...b,className:a(e.className,Vo,M(Vo,{hover:p,focus:l,selected:i,disabled:u})),children:[!e.children&&Ot(Ks,{children:$o("span",{className:"k-actionsheet-action",children:[t&&Ot("span",{className:"k-icon-wrap",children:Ot(g,{className:"k-actionsheet-item-icon",icon:t})}),$o("span",{className:"k-actionsheet-item-text",children:[o&&Ot("span",{className:"k-actionsheet-item-title",children:o}),s&&Ot("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};_o.states=Rs;_o.className=Vo;import{jsx as $u,jsxs as Vu}from"react/jsx-runtime";import{jsx as Ju}from"react/jsx-runtime";import{jsx as Yu}from"react/jsx-runtime";import{jsx as ef}from"react/jsx-runtime";import{jsx as ot,jsxs as Xo}from"react/jsx-runtime";var Rt="k-slider",Hs=[r.hover,r.focus,r.active,r.disabled,r.readonly],Gs={},Me={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},j=e=>{let{type:t=Me.type,orientation:o=Me.orientation,readonly:s=Me.readonly,disabled:p=Me.disabled,handlePosition:l=Me.handlePosition,showButtons:i=Me.showButtons,showTicks:u=Me.showTicks,hover:b,focus:x,active:h,trackStyle:S,dir:c,...N}=e,k,C;return o==="horizontal"?(k=c==="rtl"?"caret-alt-left":"caret-alt-right",C=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(k="caret-alt-up",C="caret-alt-down"),Xo("div",{...N,className:a(Rt,e.className,M(Rt,{readonly:s,disabled:p}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[i&&ot(v,{className:"k-button-decrease",rounded:"full",icon:C}),Xo("div",{className:"k-slider-track-wrap",children:[u&&ot("ul",{className:"k-reset k-slider-items",children:e.children}),Xo("div",{className:"k-slider-track",style:S,children:[ot("div",{className:"k-slider-selection"}),t==="range"&&ot("span",{className:a("k-draghandle","k-draghandle-start",M(Rt,{hover:b,focus:x,active:h}))}),ot("span",{className:a("k-draghandle",`k-draghandle-${l}`,M(Rt,{hover:b,focus:x,active:h}))})]})]}),i&&ot(v,{className:"k-button-increase",rounded:"full",icon:k})]})};j.states=Hs;j.options=Gs;j.className=Rt;j.defaultOptions=Me;import{jsx as dr}from"react/jsx-runtime";var ur="k-tick",Ds=[],$s={},fr={label:!1},Ie=e=>{let{style:t,label:o=fr.label,orientation:s,large:p,text:l,...i}=e;return dr("li",{...i,className:a(e.className,ur,{[`k-tick-${s}`]:s,"k-tick-large":p}),style:t,children:o&&dr("span",{className:"k-label",children:l})})};Ie.states=Ds;Ie.options=$s;Ie.className=ur;Ie.defaultOptions=fr;import{Fragment as gf,jsx as Cf,jsxs as Mf}from"react/jsx-runtime";import{Fragment as Bf,jsx as Af,jsxs as Pf}from"react/jsx-runtime";import{Fragment as Rf,jsx as Of,jsxs as Kf}from"react/jsx-runtime";import{Fragment as Vf,jsx as $f,jsxs as _f}from"react/jsx-runtime";import{jsx as Vs}from"react/jsx-runtime";var Fo=e=>Vs(j,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as _s}from"react/jsx-runtime";var Jo=e=>_s(j,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as br,jsxs as Js}from"react/jsx-runtime";var xr="k-spin-button",Xs=[],Fs={size:[n.small,n.medium,n.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Uo={size:n.medium,fillMode:d.solid},at=e=>{let{size:t=Uo.size,fillMode:o=Uo.fillMode,...s}=e;return Js("span",{...s,className:a(xr,e.className),children:[br(v,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),br(v,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};at.states=Xs;at.options=Fs;at.className=xr;at.defaultOptions=Uo;import{Fragment as hr,jsx as be,jsxs as qo}from"react/jsx-runtime";var Nr="k-numerictextbox",Us=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],qs={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},De={showSpinButton:!0,showClearButton:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},R=e=>{let{size:t=De.size,rounded:o=De.rounded,fillMode:s=De.fillMode,separators:p=De.separators,showClearButton:l=De.showClearButton,showSpinButton:i=De.showSpinButton,prefix:u,suffix:b,value:x,placeholder:h,hover:S,focus:c,valid:N,invalid:k,required:C,loading:y,disabled:T,readonly:E,...G}=e;return qo(P,{...G,size:t,rounded:o,fillMode:s,hover:S,focus:c,valid:N,invalid:k,required:C,loading:y,disabled:T,readonly:E,className:a(e.className,Nr),children:[u&&qo(hr,{children:[be(W,{children:u}),p&&be(Q,{})]}),be(le,{placeholder:h,value:x}),be(U,{valid:N,invalid:k,loading:y,disabled:T}),be(q,{loading:y,disabled:T}),l&&be(ie,{loading:y,disabled:T,readonly:E,value:x}),b&&qo(hr,{children:[p&&be(Q,{}),be(Y,{children:b})]}),i&&be(at,{className:"k-input-spinner",size:t,fillMode:s})]})};R.states=Us;R.options=qs;R.className=Nr;R.defaultOptions=De;import{jsx as vb}from"react/jsx-runtime";import{jsx as Ys}from"react/jsx-runtime";var Ws="k-no-data",Kt=e=>Ys("span",{className:a(Ws,e.className),children:e.children});import{jsx as rt,jsxs as kr}from"react/jsx-runtime";var Wo="k-list",Qs=[],Zs={size:[n.small,n.medium,n.large]},Sr={size:n.medium},z=e=>{let{size:t=Sr.size,virtualization:o,children:s,optionLabel:p,customValue:l,screenReaders:i,...u}=e,b,x,h,S,c=[];return s?s.map((N,k)=>{N.type===$?(N.props.root===!0?(b=N.props.label,N.props.children.map((C,y)=>{c.push(rt(I,{...C.props},`optChild-${y}-${new Date().getTime()}`))})):N.props.children.forEach((C,y)=>{let T="";y===0&&(T=N.props.label),c.push(rt(I,{className:y===0?"k-first":"",...C.props,groupLabel:T},`groupLabel-${y}-${new Date().getTime()}`))}),x=rt($,{label:b,virtualization:o,children:c})):N.type===I&&(c.push(rt(I,{...N.props},`${N.type}-${k}`)),h=rt(nt,{virtualization:o,children:c}),i&&(S=kr(Kt,{className:"k-sr-only",children:[c.length," items found."]})))}):S=rt(Kt,{children:"No data found."}),kr("div",{...u,className:a(e.className,Wo,L(Wo,{size:t}),{"k-virtual-list":o}),children:[p,l,x,h,S]})};z.states=Qs;z.options=Zs;z.className=Wo;z.defaultOptions=Sr;import{jsx as $e,jsxs as ti}from"react/jsx-runtime";var Yo="k-list",js=[],ei={size:[n.small,n.medium,n.large]},Lr={size:n.medium},Ve=e=>{let{size:t=Lr.size,virtualization:o,children:s,...p}=e,l,i,u,b=[];return s?s.map((x,h)=>{x.type===$?(x.props.root===!0?(l=x.props.label,x.props.children.map((S,c)=>{b.push($e(I,{...S.props},`optChild-${c}-${new Date().getTime()}`))})):(b.push($e(Cr,{...x.props,children:x.props.label},`listChild-${h}`)),x.props.children.map((S,c)=>{b.push($e(I,{...S.props},`fwOptChild-${c}-${new Date().getTime()}`))})),i=$e($,{label:l,virtualization:o,children:b})):x.type===I&&(b.push($e(I,{...x.props},`${x.type}-${h}`)),u=$e(nt,{virtualization:o,children:b}))}):u=$e(Kt,{children:"No data found."}),ti("div",{...p,className:a(e.className,Yo,L(Yo,{size:t}),{"k-virtual-list":o}),children:[i,u]})};Ve.states=js;Ve.options=ei;Ve.className=Yo;Ve.defaultOptions=Lr;import{jsx as gr}from"react/jsx-runtime";var io="k-checkbox",oi=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],ai={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},Qo={size:n.medium,rounded:f.medium},ye=e=>{let{id:t,checked:o,indeterminate:s,hover:p,focus:l,disabled:i,invalid:u,valid:b,required:x,size:h=Qo.size,rounded:S=Qo.rounded,...c}=e;return gr("span",{className:"k-checkbox-wrap",children:gr("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:x,className:a(e.className,io,L(io,{size:h,rounded:S}),M(io,{hover:p,focus:l,disabled:i,invalid:u,valid:b,indeterminate:s,checked:o}))})})};ye.states=oi;ye.options=ai;ye.className=io;ye.defaultOptions=Qo;import{jsx as si}from"react/jsx-runtime";var Mr="k-checkbox-list",ri=[],ni={},Ir={layout:"vertical"},st=e=>{let{layout:t=Ir.layout,...o}=e;return si("ul",{...o,className:a(e.className,Mr,{[`k-list-${t}`]:t}),children:e.children})};st.states=ri;st.options=ni;st.className=Mr;st.defaultOptions=Ir;import{jsx as ci}from"react/jsx-runtime";var yr="k-checkbox-list-item",ii=[],li={},pi={},it=e=>{let{...t}=e;return ci("li",{...t,className:a(e.className,yr),children:e.children})};it.states=ii;it.options=li;it.className=yr;it.defaultOptions=pi;import{Fragment as qb,jsx as Ub,jsxs as Wb}from"react/jsx-runtime";import{Fragment as ex,jsx as jb,jsxs as tx}from"react/jsx-runtime";import{Fragment as sx,jsx as nx,jsxs as ix}from"react/jsx-runtime";import{Fragment as dx,jsx as mx,jsxs as ux}from"react/jsx-runtime";import{jsx as hx}from"react/jsx-runtime";import{jsx as Sx}from"react/jsx-runtime";import{jsx as lo,jsxs as fi}from"react/jsx-runtime";var jo="k-list-item",mi=[r.hover,r.focus,r.selected,r.disabled],di={},ui={},I=e=>{let{text:t,groupLabel:o,group:s,showIcon:p,iconName:l,showCheckbox:i,checked:u,hover:b,focus:x,selected:h,disabled:S,...c}=e,N=t||e.children;return fi("li",{...c,className:a(e.className,s?"k-list-group-item":jo,M(jo,{hover:b,focus:x,disabled:S,selected:h})),children:[i&&lo(ye,{checked:u}),p&&lo(g,{icon:l}),lo("span",{className:"k-list-item-text",children:N}),o&&o!==""&&lo("div",{className:"k-list-item-group-label",children:o})]})};I.states=mi;I.options=di;I.className=jo;I.defaultOptions=ui;import{jsx as ea,jsxs as xi}from"react/jsx-runtime";var bi="k-list-content",nt=e=>{let{virtualization:t,...o}=e;return xi("div",{...o,className:a(bi,e.className),children:[ea("ul",{className:a("k-list-ul"),children:e.children}),t&&ea("div",{className:"k-height-container",children:ea("div",{})})]})};import{jsx as Tr}from"react/jsx-runtime";var hi="k-list-group-sticky-header",Ar=e=>Tr("div",{className:a(hi,e.className),children:Tr("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Ni,jsx as Br,jsxs as vi}from"react/jsx-runtime";var $=e=>{let{virtualization:t,label:o}=e;return vi(Ni,{children:[o&&Br(Ar,{children:o}),e.children&&Br(nt,{virtualization:t,children:e.children})]})};import{jsx as Pr}from"react/jsx-runtime";var ki="k-list-group-item",Cr=e=>Pr("li",{className:a(ki,e.className),children:Pr("span",{className:"k-list-item-text",children:e.children})});import{jsx as gi}from"react/jsx-runtime";var ta="k-list-optionlabel",Si=[r.hover,r.focus,r.selected,r.disabled],Li={},Ci={},po=e=>{let{text:t,hover:o,focus:s,selected:p,disabled:l,...i}=e;return gi("div",{...i,className:a(ta,M(ta,{hover:o,focus:s,selected:p,disabled:l})),children:t})};po.states=Si;po.options=Li;po.className=ta;po.defaultOptions=Ci;import{jsx as Ti}from"react/jsx-runtime";var oa="k-list-custom-value",Mi=[r.hover,r.focus,r.selected,r.disabled],Ii={},yi={},Te=e=>{let{text:t,hover:o,focus:s,selected:p,disabled:l,...i}=e;return Ti("div",{...i,className:a(oa,M(oa,{hover:o,focus:s,selected:p,disabled:l})),children:t})};Te.states=Mi;Te.options=Ii;Te.className=oa;Te.defaultOptions=yi;import{jsx as rh}from"react/jsx-runtime";import{jsx as lh}from"react/jsx-runtime";import{jsx as dh,jsxs as uh}from"react/jsx-runtime";import{jsx as hh,jsxs as Nh}from"react/jsx-runtime";import{jsx as Lh}from"react/jsx-runtime";import{jsx as Ih,jsxs as yh}from"react/jsx-runtime";import{jsx as Ph,jsxs as Eh}from"react/jsx-runtime";import{Fragment as Pi,jsx as X,jsxs as aa}from"react/jsx-runtime";var Er="k-dropdownlist",Ai=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Bi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},lt={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:d.solid},Ae=e=>{let{size:t=lt.size,rounded:o=lt.rounded,fillMode:s=lt.fillMode,arrowIconName:p=lt.arrowIconName,showValue:l=lt.showValue,valueIconName:i,prefix:u,suffix:b,value:x,placeholder:h,hover:S,focus:c,valid:N,invalid:k,required:C,loading:y,disabled:T,readonly:E,popup:G,opened:ke,adaptive:gt,adaptiveSettings:Mt,adaptiveTitle:Mo,adaptiveSubtitle:Io,adaptiveFilter:fn,...bn}=e;return aa(Pi,{children:[aa(se,{...bn,size:t,rounded:o,fillMode:s,hover:S,focus:c,valid:N,invalid:k,required:C,loading:y,disabled:T,readonly:E,className:a(e.className,Er,{"k-icon-picker":!l&&i}),children:[X(W,{children:u}),X(He,{placeholder:h,value:x,showValue:l,valueIconName:i}),X(U,{valid:N,invalid:k,loading:y,disabled:T}),X(q,{loading:y,disabled:T}),X(Y,{children:b}),X(v,{className:"k-input-button",icon:p,rounded:null,size:e.size,fillMode:e.fillMode})]}),ke&&G&&X(K,{className:"k-list-container k-dropdownlist-popup",children:G}),gt&&X(pe,{adaptive:!0,...Mt,header:X(Z,{actionsEnd:X(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:fn,inputValue:x,inputPlaceholder:h,title:Mo,subtitle:Io}),children:X("div",{className:"k-list-container",children:aa(z,{size:"large",children:[X(I,{text:"List item"}),X(I,{text:"List item"}),X(I,{text:"List item"})]})})})]})};Ae.states=Ai;Ae.options=Bi;Ae.className=Er;Ae.defaultOptions=lt;import{jsx as lN}from"react/jsx-runtime";import{jsx as uN,jsxs as fN}from"react/jsx-runtime";import{Fragment as LN,jsx as kN,jsxs as SN}from"react/jsx-runtime";import{jsx as IN}from"react/jsx-runtime";import{jsx as PN,jsxs as EN}from"react/jsx-runtime";import{jsx as KN,jsxs as HN}from"react/jsx-runtime";import{Fragment as JN,jsx as XN,jsxs as FN}from"react/jsx-runtime";import{Fragment as ev,jsx as ZN,jsxs as jN}from"react/jsx-runtime";import{Fragment as xv,jsx as bv}from"react/jsx-runtime";import{Fragment as Cv,jsx as Lv}from"react/jsx-runtime";import{Fragment as Ht,jsx as A,jsxs as O}from"react/jsx-runtime";var zr="k-colorgradient-inputs",Ei=[],zi={size:[n.small,n.medium,n.large]},wr={mode:"rgba",size:n.medium},pt=e=>{let{mode:t=wr.mode,size:o,...s}=e;return O("div",{...s,className:a(zr,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(v,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&O(Ht,{children:[O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&O(Ht,{children:[O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&O(Ht,{children:[O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&O(Ht,{children:[O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(Ht,{children:O("div",{className:"k-vstack k-flex-1",children:[A(fe,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};pt.states=Ei;pt.options=zi;pt.className=zr;pt.defaultOptions=wr;import{jsx as Xe,jsxs as Fe}from"react/jsx-runtime";var Or="k-colorgradient-color-contrast",wi=[],Oi={},Ri={},ct=()=>Fe("div",{className:a(Or,"k-vbox"),children:[Fe("div",{className:"k-contrast-ratio",children:[Xe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Fe("span",{className:"k-contrast-validation !k-text-success",children:[Xe(g,{icon:"check"}),Xe(g,{icon:"check"})]})]}),Fe("div",{children:[Xe("span",{children:"AA: 4.5"}),Fe("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Xe(g,{icon:"check"})]})]}),Fe("div",{children:[Xe("span",{children:"AAA: 7.0"}),Fe("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Xe(g,{icon:"x"})]})]})]});ct.states=wi;ct.options=Oi;ct.className=Or;ct.defaultOptions=Ri;import{jsx as ee,jsxs as Gt}from"react/jsx-runtime";var co="k-colorgradient",Ki=[r.hover,r.focus,r.readonly,r.disabled],Hi={size:[n.small,n.medium,n.large]},ce={size:n.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},Be=e=>{let{size:t=ce.size,mode:o=ce.mode,readonly:s=ce.readonly,disabled:p=ce.disabled,gradientStyle:l=ce.gradientStyle,dragHandleStyle:i=ce.dragHandleStyle,alphaStyle:u=ce.alphaStyle,alphaStyleHorizontal:b=ce.alphaStyleHorizontal,contrast:x=ce.contrast,dir:h,hover:S,focus:c,hoverHandle:N,focusHandle:k,canvasOrientation:C=ce.canvasOrientation,...y}=e;return Gt("div",{...y,className:a(e.className,co,L(co,{size:t}),M(co,{hover:S,focus:c,readonly:s,disabled:p})),dir:h,children:[!C||C==="horizontal"&&Gt("div",{className:"k-colorgradient-canvas k-hstack",children:[ee("div",{className:"k-hsv-rectangle",style:l,children:ee("div",{className:"k-hsv-gradient",children:ee("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:i})})}),Gt("div",{className:"k-hsv-controls k-hstack",children:[ee(Jo,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&ee(Jo,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:u})]})]}),C==="vertical"&&Gt("div",{className:"k-colorgradient-canvas k-vstack",children:[ee("div",{className:"k-hsv-rectangle",style:l,children:ee("div",{className:"k-hsv-gradient",children:ee("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:i})})}),Gt("div",{className:"k-hsv-controls k-vstack",children:[ee(Fo,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&ee(Fo,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:b})]})]}),ee(pt,{mode:e.mode,size:t}),x&&ee(ct,{})]})};Be.states=Ki;Be.options=Hi;Be.className=co;Be.defaultOptions=ce;import{jsx as qv}from"react/jsx-runtime";import{jsx as Zv}from"react/jsx-runtime";import{jsx as Gi}from"react/jsx-runtime";var Rr=e=>Gi("tr",{children:e.children});import{jsx as Vi}from"react/jsx-runtime";var ra="k-colorpalette-tile",Di=[r.hover,r.focus,r.selected],$i={},Dt=e=>{let{color:t,tileSize:o,hover:s,focus:p,selected:l,...i}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Vi("td",{...i,className:a(e.className,ra,M(ra,{hover:s,focus:p,selected:l})),style:u})};Dt.states=Di;Dt.options=$i;Dt.className=ra;import{jsx as $t}from"react/jsx-runtime";var mo="k-colorpalette",_i=[r.disabled],Xi={size:[n.small,n.medium,n.large]},na={columns:10,size:n.medium},mt=e=>{let{size:t=na.size,palette:o,columns:s=na.columns,tileSize:p,disabled:l,...i}=e,u=[];if(o){let b=s||o.columns,x=o.colors?o.colors:o;Array.isArray(x)&&Array.from({length:Math.ceil(x.length/b)},(h,S)=>{let c=[];x.slice(S*b,(S+1)*b).map((k,C)=>{c.push($t(Dt,{color:k,tileSize:p},C))});let N=$t(Rr,{children:c},S);u.push(N)})}return $t("div",{...i,className:a(e.className,mo,M(mo,{disabled:l}),L(mo,{size:t})),children:$t("table",{className:"k-colorpalette-table",children:$t("tbody",{children:u.length>0?u:e.children})})})};mt.states=_i;mt.options=Xi;mt.className=mo;mt.defaultOptions=na;var sa={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 Sk}from"react/jsx-runtime";import{jsx as te,jsxs as dt}from"react/jsx-runtime";var uo="k-coloreditor",Fi=[r.focus],Ji={size:[n.small,n.medium,n.large]},ut={size:n.medium,view:"gradient",palette:sa.office,actionButtons:!0,canvasOrientation:"horizontal"},me=e=>{let{size:t=ut.size,view:o=ut.view,palette:s=ut.palette,color:p,currentColor:l,focus:i,focusView:u,dir:b,group:x,actionButtons:h=ut.actionButtons,canvasOrientation:S=ut.canvasOrientation,...c}=e;return dt("div",{...c,className:a(e.className,"k-flatcolorpicker",uo,L(uo,{size:t}),M(uo,{focus:i})),dir:b,children:[dt("div",{className:"k-coloreditor-header k-hstack",children:[te("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&dt(w,{fillMode:"flat",children:[te(v,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),te(v,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),te("div",{className:"k-spacer"}),dt("div",{className:"k-coloreditor-header-actions k-hstack",children:[te(v,{fillMode:"flat",icon:"droplet-slash",size:t}),dt("div",{className:"k-coloreditor-preview k-vstack",children:[te(Se,{className:"k-coloreditor-preview-color",color:p}),te(Se,{className:"k-coloreditor-current-color",color:l})]})]})]}),te("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?te(Be,{focus:u,size:t,canvasOrientation:S}):te(mt,{palette:s,size:t})}),h&&dt(D,{className:"k-coloreditor-footer",alignment:"start",children:[te(v,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),te(v,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};me.states=Fi;me.options=Ji;me.className=uo;me.defaultOptions=ut;import{jsx as Dk}from"react/jsx-runtime";import{jsx as Xk}from"react/jsx-runtime";import{jsx as qk}from"react/jsx-runtime";import{jsx as Zk}from"react/jsx-runtime";import{Fragment as Wi,jsx as oe,jsxs as la}from"react/jsx-runtime";var Kr="k-colorpicker",Ui=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled],qi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Vt={arrowIconName:"caret-alt-down",size:se.defaultOptions.size,rounded:se.defaultOptions.rounded,fillMode:se.defaultOptions.fillMode},xe=e=>{let{size:t=Vt.size,rounded:o=Vt.rounded,fillMode:s=Vt.fillMode,arrowIconName:p=Vt.arrowIconName,prefix:l,suffix:i,value:u,placeholder:b,hover:x,focus:h,valid:S,invalid:c,required:N,disabled:k,valueIconName:C,popup:y,opened:T,adaptive:E,adaptiveSettings:G,adaptiveTitle:ke,adaptiveSubtitle:gt,...Mt}=e;return la(Wi,{children:[la(se,{...Mt,size:t,rounded:o,fillMode:s,hover:x,focus:h,valid:S,invalid:c,required:N,disabled:k,className:a(e.className,Kr,"k-icon-picker"),children:[oe(W,{children:l}),oe(He,{placeholder:b,value:u,showValue:!1,valueIcon:oe(Se,{className:"k-value-icon",color:u,iconName:C}),valueIconName:C}),oe(Y,{children:i}),oe(v,{className:"k-input-button",icon:p,rounded:null,size:t,fillMode:s})]}),T&&y&&oe(K,{className:"k-colorpicker-popup",children:y}),E&&oe(pe,{adaptive:!0,...G,header:oe(Z,{actionsEnd:oe(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:ke,subtitle:gt}),footer:la(Et,{children:[oe(v,{text:"Cancel",size:"large",themeColor:"base"}),oe(v,{text:"Set",size:"large",themeColor:"primary"})]}),children:oe(me,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};xe.states=Ui;xe.options=qi;xe.className=Kr;xe.defaultOptions=Vt;import{jsx as NS}from"react/jsx-runtime";import{jsx as CS}from"react/jsx-runtime";import{jsx as TS}from"react/jsx-runtime";import{jsx as ES}from"react/jsx-runtime";import{jsx as RS}from"react/jsx-runtime";import{jsx as DS}from"react/jsx-runtime";import{Fragment as pa,jsx as H,jsxs as _t}from"react/jsx-runtime";var Hr="k-combobox",Qi=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],Zi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Xt={size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},Je=e=>{let{size:t=Xt.size,rounded:o=Xt.rounded,fillMode:s=Xt.fillMode,separators:p=Xt.separators,prefix:l,suffix:i,value:u,placeholder:b,hover:x,focus:h,valid:S,invalid:c,required:N,loading:k,disabled:C,popup:y,opened:T,readonly:E,adaptive:G,adaptiveSettings:ke,adaptiveTitle:gt,adaptiveSubtitle:Mt,adaptiveCustomValue:Mo,...Io}=e;return _t(pa,{children:[_t(P,{...Io,size:t,rounded:o,fillMode:s,hover:x,focus:h,valid:S,invalid:c,required:N,loading:k,disabled:C,readonly:E,className:a(e.className,Hr),children:[l&&_t(pa,{children:[H(W,{children:l}),p&&H(Q,{})]}),H(le,{placeholder:b,value:u}),H(U,{valid:S,invalid:c,loading:k,disabled:C}),H(q,{loading:k,disabled:C}),H(ie,{loading:k,disabled:C,readonly:E,value:u}),i&&_t(pa,{children:[p&&H(Q,{}),H(Y,{children:i})]}),H(v,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:s})]}),T&&y&&H(K,{className:"k-list-contain