@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 75 kB
JavaScript
var r=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?r(...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)=>r({[`${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)=>r({"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"},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"},Ea={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{Fragment as kn,jsx as za}from"react/jsx-runtime";var yo="k-icon k-font-icon",hn=[],Nn={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]},vn={},yt=e=>{let{size:t,themeColor:o,icon:s,rotate:p,flip:l,...i}=e;return s?za("span",{...i,className:r(e.className,yo,L(yo,{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(kn,{})};yt.states=hn;yt.options=Nn;yt.className=yo;yt.defaultOptions=vn;var wa=yt;import{Fragment as Cn,jsx as jt}from"react/jsx-runtime";var To="k-icon k-svg-icon",Sn=[],Ln={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"},Tt=e=>{let{size:t,themeColor:o,rotate:s,flip:p,viewBox:l=Oa.viewBox,icon:i,...u}=e;if(!i)return jt(Cn,{});i==="none"&&{...u,className:r(e.className,To,"k-none")};let b=typeof i=="object"&&i.name&&i.name;return jt("span",{...u,className:r(e.className,To,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})})};Tt.states=Sn;Tt.options=Ln;Tt.className=To;Tt.defaultOptions=Oa;var Ao=Tt;import*as Ra from"@progress/kendo-svg-icons";import{Fragment as Ka,jsx as At}from"react/jsx-runtime";var gn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Mn=[],In={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]},Bo={viewBox:"0 0 24 24",type:"svg"},g=e=>{let{size:t,themeColor:o,icon:s,type:p=Bo.type,rotate:l,flip:i,viewBox:u=Bo.viewBox,...b}=e;if(!s)return At(Ka,{});if(p==="svg"){if(s==="none")return At(Ao,{...b,icon:s,size:t});let x=gn(`${s}-icon`);return Ra[x]?At(Ao,{...b,icon:Ra[x],size:t,themeColor:o,rotate:l,flip:i,viewBox:u}):At(Ka,{})}return At(wa,{...b,icon:s,size:t,themeColor:o,rotate:l,flip:i})};g.states=Mn;g.options=In;g.defaultOptions=Bo;import{Fragment as An,jsx as Bt,jsxs as Ha}from"react/jsx-runtime";var eo="k-button",yn=[a.hover,a.focus,a.active,a.selected,a.disabled],Tn={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]},$e={size:n.medium,rounded:f.medium,fillMode:d.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},v=e=>{let{size:t=$e.size,rounded:o=$e.rounded,fillMode:s=$e.fillMode,themeColor:p=$e.themeColor,showArrow:l=$e.showArrow,arrowIconName:i=$e.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:r(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&&Bt(g,{className:r(k,"k-button-icon"),icon:c}),N?Ha(An,{children:[N&&Bt("span",{className:"k-button-text",children:N}),e.children]}):e.children&&Bt("span",{className:"k-button-text",children:e.children}),l&&Bt("span",{className:"k-menu-button-arrow k-button-arrow",children:Bt(g,{icon:i})})]})};v.states=yn;v.options=Tn;v.className=eo;v.defaultOptions=$e;import{jsx as Bn}from"react/jsx-runtime";var q=e=>Bn(v,{icon:"folder",...e,children:void 0});import{jsx as Pn}from"react/jsx-runtime";var X=e=>Pn(v,{icon:"folder",children:"Button",...e});import{jsx as lc}from"react/jsx-runtime";import{jsx as wn}from"react/jsx-runtime";var Pt="k-button-group",En=[a.disabled],zn={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 wn("div",{...p,className:r(e.className,Pt,L(Pt,{fillMode:t}),M(Pt,{disabled:o}),{[`${Pt}-stretched`]:s}),children:e.children})};w.states=En;w.options=zn;w.className=Pt;w.defaultOptions=Ga;import{Fragment as Lc,jsx as Sc,jsxs as Cc}from"react/jsx-runtime";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{jsx as Kn}from"react/jsx-runtime";var to="k-input",On=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Rn={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 Kn("span",{...S,className:r(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=On;P.options=Rn;P.className=to;P.defaultOptions=oo;import{jsx as Dn}from"react/jsx-runtime";var ao="k-picker",Hn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Gn={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},ie=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 Dn("span",{...S,className:r(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})};ie.states=Hn;ie.options=Gn;ie.className=ao;ie.defaultOptions=ro;import{Fragment as _n,jsx as Po}from"react/jsx-runtime";var Da="k-clear-value",$n=[a.disabled,a.loading,a.readonly],Vn={},le=e=>{let{disabled:t,loading:o,readonly:s,value:p}=e;return t||s||o||!p?Po(_n,{}):Po("span",{className:r(e.className,Da),children:Po(g,{icon:"x"})})};le.states=$n;le.options=Vn;le.className=Da;import{jsx as Jn}from"react/jsx-runtime";var Eo="k-input-inner",Xn=[],Fn={},no={type:"text",autocomplete:"off",value:"",placeholder:""},pe=e=>{let{value:t=no.value,type:o=no.type,placeholder:s=no.placeholder,autocomplete:p=no.autocomplete,...l}=e;return Jn("input",{...l,type:o,className:r(e.className,Eo,L(Eo,e)),placeholder:s,autoComplete:p,defaultValue:t})};pe.states=Xn;pe.options=Fn;pe.className=Eo;import{jsx as $a,jsxs as Wn}from"react/jsx-runtime";var zo="k-input-inner",Un=[],qn={},Ve=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:p,valueIconName:l,...i}=e;return Wn("span",{...i,className:r(e.className,zo,L(zo,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})]})};Ve.states=Un;Ve.options=qn;Ve.className=zo;import{jsx as Zn}from"react/jsx-runtime";var wo="k-input-inner",Yn=[],Qn={},Va={value:"",placeholder:""},Et=e=>{let{value:t=Va.value,placeholder:o=Va.placeholder,rows:s,...p}=e;return Zn("textarea",{...p,className:r(e.className,wo,L(wo,e)),placeholder:o,rows:s,defaultValue:t})};Et.states=Yn;Et.options=Qn;Et.className=wo;import{Fragment as es,jsx as _a}from"react/jsx-runtime";var Xa="k-input-loading-icon",jn=[a.disabled,a.loading],Y=e=>{let{disabled:t,loading:o}=e;return t||!o?_a(es,{}):_a("span",{className:r(e.className,Xa,"k-icon k-i-loading")})};Y.states=jn;Y.className=Xa;import{Fragment as as,jsx as Fa}from"react/jsx-runtime";var Ja="k-input-validation-icon",ts=[a.valid,a.invalid,a.disabled,a.loading],os={},W=e=>{let{valid:t,invalid:o,disabled:s,loading:p}=e,l=o?"warning-circle":"check-circle";return s||p||!!!(t||o)?Fa(as,{}):Fa(g,{className:r(Ja),icon:l})};W.states=ts;W.options=os;W.className=Ja;import{Fragment as ss,jsx as Ua}from"react/jsx-runtime";var rs="k-input-prefix",ns={direction:"horizontal"},Q=e=>{let{direction:t=ns.direction,...o}=e;return e.children?Ua("span",{...o,className:r(rs,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ua(ss,{})};import{Fragment as ps,jsx as qa}from"react/jsx-runtime";var is="k-input-suffix",ls={direction:"horizontal"},Z=e=>{let{direction:t=ls.direction,...o}=e;return e.children?qa("span",{...o,className:r(is,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):qa(ps,{})};import{jsx as zm}from"react/jsx-runtime";import{jsx as Km}from"react/jsx-runtime";import{jsx as ms}from"react/jsx-runtime";var Wa="k-input-separator",cs={direction:"vertical"},j=e=>{let{direction:t=cs.direction,...o}=e;return ms("span",{...o,className:r(Wa,e.className,{[`${Wa}-${t}`]:t})})};import{jsx as Ya,jsxs as fs}from"react/jsx-runtime";var Qa="k-color-preview",ds=[],us={},Ce=e=>{let{color:t,iconName:o,...s}=e;return fs("span",{...s,className:r(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}})]})};Ce.states=ds;Ce.options=us;Ce.className=Qa;import{jsx as Za}from"react/jsx-runtime";var ja="k-animation-container",bs=[],xs={},er={positionMode:"absolute"},ge=e=>{let{positionMode:t=er.positionMode,animationStyle:o,offset:s,...p}=e;return Za("div",{...p,style:{...s,...e.style},className:r(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})})};ge.states=bs;ge.options=xs;ge.className=ja;ge.defaultOptions=er;import{jsx as tr}from"react/jsx-runtime";var or="k-popup",hs=[],Ns={},ar={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:o=ar.positionMode,animationStyle:s,...p}=e;return tr(ge,{positionMode:o,offset:t,animationStyle:s,children:tr("div",{...p,className:r(e.className,or),children:e.children})})};H.states=hs;H.options=Ns;H.className=or;H.defaultOptions=ar;import{jsx as Ss}from"react/jsx-runtime";var so="k-actions",vs=[],ks={},Oo={alignment:"start",orientation:"horizontal"},V=e=>{let{alignment:t=Oo.alignment,orientation:o=Oo.orientation,...s}=e;return Ss("div",{...s,className:r(so,{[`${so}-${t}`]:t,[`${so}-${o}`]:o},e.className),children:e.children})};V.states=vs;V.options=ks;V.className=so;V.defaultOptions=Oo;import{jsx as Cs}from"react/jsx-runtime";var Ls="k-actionsheet-footer",rr={alignment:"stretched",orientation:"horizontal"},zt=e=>{let{alignment:t=rr.alignment,orientation:o=rr.orientation,template:s,as:p=s?"div":V,...l}=e;return Cs(p,{...l,...!s&&{alignment:t,orientation:o},className:r(e.className,Ls),children:e.children})};import{jsx as wt,jsxs as Is}from"react/jsx-runtime";var nr="k-searchbox",gs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Ms={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},be=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 Is(P,{...C,size:s,rounded:p,fillMode:l,hover:i,focus:u,valid:b,invalid:x,required:h,loading:S,disabled:c,className:r(e.className,nr),children:[N&&wt(g,{className:"k-input-icon",icon:k}),wt(pe,{placeholder:o,value:t}),wt(Y,{...e}),wt(W,{...e}),wt(le,{...e})]})};be.states=gs;be.options=Ms;be.className=nr;be.defaultOptions=Ro;import{jsx as Rd}from"react/jsx-runtime";import{Fragment as sr,jsx as Me,jsxs as Ko}from"react/jsx-runtime";var ir="k-textbox",ys=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ts={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},_e={showClearButton:!0,showValidationIcon:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},xe=e=>{let{size:t=_e.size,rounded:o=_e.rounded,fillMode:s=_e.fillMode,separators:p=_e.separators,showClearButton:l=_e.showClearButton,showValidationIcon:i=_e.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:D,...Le}=e;return Ko(P,{...Le,size:t,rounded:o,fillMode:s,hover:c,focus:N,valid:k,invalid:C,required:y,loading:T,disabled:E,readonly:D,className:r(e.className,ir),children:[u&&Ko(sr,{children:[Me(Q,{children:u}),p&&Me(j,{})]}),Me(pe,{placeholder:S,value:h,type:x}),i&&Me(W,{valid:k,invalid:C,loading:T,disabled:E}),Me(Y,{loading:T,disabled:E}),l&&Me(le,{loading:T,disabled:E,readonly:D,value:h}),b&&Ko(sr,{children:[p&&Me(j,{}),Me(Z,{children:b})]})]})};xe.states=ys;xe.options=Ts;xe.className=ir;xe.defaultOptions=_e;import{jsx as Ud}from"react/jsx-runtime";import{Fragment as jd,jsx as Zd}from"react/jsx-runtime";import{Fragment as su,jsx as nu}from"react/jsx-runtime";import{jsx as Ie,jsxs as Ho}from"react/jsx-runtime";var pr="k-actionsheet-titlebar",As={},ee=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:r(e.className,pr),children:[Ho("div",{className:"k-actionsheet-titlebar-group",children:[s&&Ie("div",{className:"k-actionsheet-actions",children:s}),!h&&Ho("div",{className:"k-actionsheet-title",children:[t&&Ie("div",{className:"k-text-center",children:t}),o&&Ie("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&Ie("div",{className:"k-actionsheet-title",children:h}),p&&Ie("div",{className:"k-actionsheet-actions",children:p})]}),(i||l)&&Ie("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?Ie(xe,{value:u,placeholder:b,size:x?"large":"medium"}):Ie(be,{placeholder:"Filter",size:x?"large":"medium"})})]})};ee.className=pr;ee.defaultOptions=As;import{jsx as Go,jsxs as zs}from"react/jsx-runtime";var Do="k-actionsheet-view",Bs=[],Ps={},Es={},at=e=>{let{adaptive:t,animated:o,children:s,header:p,footer:l,...i}=e,u=p?.type===ee&&Go(ee,{adaptive:t,...p?.props}),b=l?.type===zt&&Go(zt,{...l?.props});return zs("div",{...i,className:r(e.className,Do,{[`${Do}-animated`]:o}),children:[u,Go("div",{className:"k-actionsheet-content",children:s}),b]})};at.states=Bs;at.options=Ps;at.className=Do;at.defaultOptions=Es;import{jsx as io,jsxs as Rs}from"react/jsx-runtime";var cr="k-actionsheet",ws=[],Os={},Ot={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ce=e=>{let{side:t=Ot.side,fullscreen:o=Ot.fullscreen,adaptive:s=Ot.adaptive,overlay:p=Ot.overlay,template:l,children:i,header:u,footer:b,...x}=e;return Rs("div",{className:"k-actionsheet-container",children:[p&&io("div",{className:"k-overlay"}),io(ge,{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:io("div",{...x,className:r(e.className,cr,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:l||io(at,{header:u,footer:b,adaptive:s,...e,children:i})})})]})};ce.states=ws;ce.options=Os;ce.className=cr;ce.defaultOptions=Ot;import{jsx as Bu}from"react/jsx-runtime";import{Fragment as Hs,jsx as Rt,jsxs as $o}from"react/jsx-runtime";var Vo="k-actionsheet-item",Ks=[a.hover,a.focus,a.selected,a.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:r(e.className,Vo,M(Vo,{hover:p,focus:l,selected:i,disabled:u})),children:[!e.children&&Rt(Hs,{children:$o("span",{className:"k-actionsheet-action",children:[t&&Rt("span",{className:"k-icon-wrap",children:Rt(g,{className:"k-actionsheet-item-icon",icon:t})}),$o("span",{className:"k-actionsheet-item-text",children:[o&&Rt("span",{className:"k-actionsheet-item-title",children:o}),s&&Rt("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};_o.states=Ks;_o.className=Vo;import{jsx as Gu,jsxs as Du}from"react/jsx-runtime";import{jsx as Xu}from"react/jsx-runtime";import{jsx as qu}from"react/jsx-runtime";import{jsx as Zu}from"react/jsx-runtime";import{jsx as rt,jsxs as Xo}from"react/jsx-runtime";var Kt="k-slider",Gs=[a.hover,a.focus,a.active,a.disabled,a.readonly],Ds={},ye={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},te=e=>{let{type:t=ye.type,orientation:o=ye.orientation,readonly:s=ye.readonly,disabled:p=ye.disabled,handlePosition:l=ye.handlePosition,showButtons:i=ye.showButtons,showTicks:u=ye.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:r(Kt,e.className,M(Kt,{readonly:s,disabled:p}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[i&&rt(v,{className:"k-button-decrease",rounded:"full",icon:C}),Xo("div",{className:"k-slider-track-wrap",children:[u&&rt("ul",{className:"k-reset k-slider-items",children:e.children}),Xo("div",{className:"k-slider-track",style:S,children:[rt("div",{className:"k-slider-selection"}),t==="range"&&rt("span",{className:r("k-draghandle","k-draghandle-start",M(Kt,{hover:b,focus:x,active:h}))}),rt("span",{className:r("k-draghandle",`k-draghandle-${l}`,M(Kt,{hover:b,focus:x,active:h}))})]})]}),i&&rt(v,{className:"k-button-increase",rounded:"full",icon:k})]})};te.states=Gs;te.options=Ds;te.className=Kt;te.defaultOptions=ye;import{jsx as dr}from"react/jsx-runtime";var ur="k-tick",$s=[],Vs={},fr={label:!1},Te=e=>{let{style:t,label:o=fr.label,orientation:s,large:p,text:l,...i}=e;return dr("li",{...i,className:r(e.className,ur,{[`k-tick-${s}`]:s,"k-tick-large":p}),style:t,children:o&&dr("span",{className:"k-label",children:l})})};Te.states=$s;Te.options=Vs;Te.className=ur;Te.defaultOptions=fr;import{Fragment as Lf,jsx as Sf,jsxs as Cf}from"react/jsx-runtime";import{Fragment as Tf,jsx as yf,jsxs as Af}from"react/jsx-runtime";import{Fragment as wf,jsx as zf,jsxs as Of}from"react/jsx-runtime";import{Fragment as Df,jsx as Gf,jsxs as $f}from"react/jsx-runtime";import{jsx as _s}from"react/jsx-runtime";var Fo=e=>_s(te,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Xs}from"react/jsx-runtime";var Jo=e=>Xs(te,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as br,jsxs as Us}from"react/jsx-runtime";var xr="k-spin-button",Fs=[],Js={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},nt=e=>{let{size:t=Uo.size,fillMode:o=Uo.fillMode,...s}=e;return Us("span",{...s,className:r(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})]})};nt.states=Fs;nt.options=Js;nt.className=xr;nt.defaultOptions=Uo;import{Fragment as hr,jsx as he,jsxs as qo}from"react/jsx-runtime";var Nr="k-numerictextbox",qs=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Ws={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Xe={showSpinButton:!0,showClearButton:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},K=e=>{let{size:t=Xe.size,rounded:o=Xe.rounded,fillMode:s=Xe.fillMode,separators:p=Xe.separators,showClearButton:l=Xe.showClearButton,showSpinButton:i=Xe.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,...D}=e;return qo(P,{...D,size:t,rounded:o,fillMode:s,hover:S,focus:c,valid:N,invalid:k,required:C,loading:y,disabled:T,readonly:E,className:r(e.className,Nr),children:[u&&qo(hr,{children:[he(Q,{children:u}),p&&he(j,{})]}),he(pe,{placeholder:h,value:x}),he(W,{valid:N,invalid:k,loading:y,disabled:T}),he(Y,{loading:y,disabled:T}),l&&he(le,{loading:y,disabled:T,readonly:E,value:x}),b&&qo(hr,{children:[p&&he(j,{}),he(Z,{children:b})]}),i&&he(nt,{className:"k-input-spinner",size:t,fillMode:s})]})};K.states=qs;K.options=Ws;K.className=Nr;K.defaultOptions=Xe;import{jsx as hb}from"react/jsx-runtime";import{jsx as Qs}from"react/jsx-runtime";var Ys="k-no-data",Ht=e=>Qs("span",{className:r(Ys,e.className),children:e.children});import{jsx as st,jsxs as kr}from"react/jsx-runtime";var Wo="k-list",Zs=[],js={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(st(I,{...C.props},`optChild-${y}-${new Date().getTime()}`))})):N.props.children.forEach((C,y)=>{let T="";y===0&&(T=N.props.label),c.push(st(I,{className:y===0?"k-first":"",...C.props,groupLabel:T},`groupLabel-${y}-${new Date().getTime()}`))}),x=st($,{label:b,virtualization:o,children:c})):N.type===I&&(c.push(st(I,{...N.props},`${N.type}-${k}`)),h=st(it,{virtualization:o,children:c}),i&&(S=kr(Ht,{className:"k-sr-only",children:[c.length," items found."]})))}):S=st(Ht,{children:"No data found."}),kr("div",{...u,className:r(e.className,Wo,L(Wo,{size:t}),{"k-virtual-list":o}),children:[p,l,x,h,S]})};z.states=Zs;z.options=js;z.className=Wo;z.defaultOptions=Sr;import{jsx as Fe,jsxs as oi}from"react/jsx-runtime";var Yo="k-list",ei=[],ti={size:[n.small,n.medium,n.large]},Lr={size:n.medium},Je=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(Fe(I,{...S.props},`optChild-${c}-${new Date().getTime()}`))})):(b.push(Fe(Cr,{...x.props,children:x.props.label},`listChild-${h}`)),x.props.children.map((S,c)=>{b.push(Fe(I,{...S.props},`fwOptChild-${c}-${new Date().getTime()}`))})),i=Fe($,{label:l,virtualization:o,children:b})):x.type===I&&(b.push(Fe(I,{...x.props},`${x.type}-${h}`)),u=Fe(it,{virtualization:o,children:b}))}):u=Fe(Ht,{children:"No data found."}),oi("div",{...p,className:r(e.className,Yo,L(Yo,{size:t}),{"k-virtual-list":o}),children:[i,u]})};Je.states=ei;Je.options=ti;Je.className=Yo;Je.defaultOptions=Lr;import{jsx as gr}from"react/jsx-runtime";var lo="k-checkbox",ai=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],ri={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},Qo={size:n.medium,rounded:f.medium},Ae=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:r(e.className,lo,L(lo,{size:h,rounded:S}),M(lo,{hover:p,focus:l,disabled:i,invalid:u,valid:b,indeterminate:s,checked:o}))})})};Ae.states=ai;Ae.options=ri;Ae.className=lo;Ae.defaultOptions=Qo;import{jsx as ii}from"react/jsx-runtime";var Mr="k-checkbox-list",ni=[],si={},Ir={layout:"vertical"},lt=e=>{let{layout:t=Ir.layout,...o}=e;return ii("ul",{...o,className:r(e.className,Mr,{[`k-list-${t}`]:t}),children:e.children})};lt.states=ni;lt.options=si;lt.className=Mr;lt.defaultOptions=Ir;import{jsx as mi}from"react/jsx-runtime";var yr="k-checkbox-list-item",li=[],pi={},ci={},pt=e=>{let{...t}=e;return mi("li",{...t,className:r(e.className,yr),children:e.children})};pt.states=li;pt.options=pi;pt.className=yr;pt.defaultOptions=ci;import{Fragment as Jb,jsx as Fb,jsxs as Ub}from"react/jsx-runtime";import{Fragment as Zb,jsx as Qb,jsxs as jb}from"react/jsx-runtime";import{Fragment as rx,jsx as ax,jsxs as nx}from"react/jsx-runtime";import{Fragment as cx,jsx as px,jsxs as mx}from"react/jsx-runtime";import{jsx as bx}from"react/jsx-runtime";import{jsx as vx}from"react/jsx-runtime";import{jsx as po,jsxs as bi}from"react/jsx-runtime";var jo="k-list-item",di=[a.hover,a.focus,a.selected,a.disabled],ui={},fi={},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 bi("li",{...c,className:r(e.className,s?"k-list-group-item":jo,M(jo,{hover:b,focus:x,disabled:S,selected:h})),children:[i&&po(Ae,{checked:u}),p&&po(g,{icon:l}),po("span",{className:"k-list-item-text",children:N}),o&&o!==""&&po("div",{className:"k-list-item-group-label",children:o})]})};I.states=di;I.options=ui;I.className=jo;I.defaultOptions=fi;import{jsx as ea,jsxs as hi}from"react/jsx-runtime";var xi="k-list-content",it=e=>{let{virtualization:t,...o}=e;return hi("div",{...o,className:r(xi,e.className),children:[ea("ul",{className:r("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 Ni="k-list-group-sticky-header",Ar=e=>Tr("div",{className:r(Ni,e.className),children:Tr("div",{className:"k-list-header-text",children:e.children})});import{Fragment as vi,jsx as Br,jsxs as ki}from"react/jsx-runtime";var $=e=>{let{virtualization:t,label:o}=e;return ki(vi,{children:[o&&Br(Ar,{children:o}),e.children&&Br(it,{virtualization:t,children:e.children})]})};import{jsx as Pr}from"react/jsx-runtime";var Si="k-list-group-item",Cr=e=>Pr("li",{className:r(Si,e.className),children:Pr("span",{className:"k-list-item-text",children:e.children})});import{jsx as Mi}from"react/jsx-runtime";var ta="k-list-optionlabel",Li=[a.hover,a.focus,a.selected,a.disabled],Ci={},gi={},co=e=>{let{text:t,hover:o,focus:s,selected:p,disabled:l,...i}=e;return Mi("div",{...i,className:r(ta,M(ta,{hover:o,focus:s,selected:p,disabled:l})),children:t})};co.states=Li;co.options=Ci;co.className=ta;co.defaultOptions=gi;import{jsx as Ai}from"react/jsx-runtime";var oa="k-list-custom-value",Ii=[a.hover,a.focus,a.selected,a.disabled],yi={},Ti={},Be=e=>{let{text:t,hover:o,focus:s,selected:p,disabled:l,...i}=e;return Ai("div",{...i,className:r(oa,M(oa,{hover:o,focus:s,selected:p,disabled:l})),children:t})};Be.states=Ii;Be.options=yi;Be.className=oa;Be.defaultOptions=Ti;import{jsx as oh}from"react/jsx-runtime";import{jsx as sh}from"react/jsx-runtime";import{jsx as ch,jsxs as mh}from"react/jsx-runtime";import{jsx as bh,jsxs as xh}from"react/jsx-runtime";import{jsx as kh}from"react/jsx-runtime";import{jsx as gh,jsxs as Mh}from"react/jsx-runtime";import{jsx as Ah,jsxs as Bh}from"react/jsx-runtime";import{Fragment as Ei,jsx as F,jsxs as aa}from"react/jsx-runtime";var Er="k-dropdownlist",Bi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Pi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},ct={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:d.solid},Pe=e=>{let{size:t=ct.size,rounded:o=ct.rounded,fillMode:s=ct.fillMode,arrowIconName:p=ct.arrowIconName,showValue:l=ct.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:D,opened:Le,adaptive:Mt,adaptiveSettings:It,adaptiveTitle:Mo,adaptiveSubtitle:Io,adaptiveFilter:bn,...xn}=e;return aa(Ei,{children:[aa(ie,{...xn,size:t,rounded:o,fillMode:s,hover:S,focus:c,valid:N,invalid:k,required:C,loading:y,disabled:T,readonly:E,className:r(e.className,Er,{"k-icon-picker":!l&&i}),children:[F(Q,{children:u}),F(Ve,{placeholder:h,value:x,showValue:l,valueIconName:i}),F(W,{valid:N,invalid:k,loading:y,disabled:T}),F(Y,{loading:y,disabled:T}),F(Z,{children:b}),F(v,{className:"k-input-button",icon:p,rounded:null,size:e.size,fillMode:e.fillMode})]}),Le&&D&&F(H,{className:"k-list-container k-dropdownlist-popup",children:D}),Mt&&F(ce,{adaptive:!0,...It,header:F(ee,{actionsEnd:F(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:bn,inputValue:x,inputPlaceholder:h,title:Mo,subtitle:Io}),children:F("div",{className:"k-list-container",children:aa(z,{size:"large",children:[F(I,{text:"List item"}),F(I,{text:"List item"}),F(I,{text:"List item"})]})})})]})};Pe.states=Bi;Pe.options=Pi;Pe.className=Er;Pe.defaultOptions=ct;import{jsx as sN}from"react/jsx-runtime";import{jsx as mN,jsxs as dN}from"react/jsx-runtime";import{Fragment as kN,jsx as NN,jsxs as vN}from"react/jsx-runtime";import{jsx as gN}from"react/jsx-runtime";import{jsx as AN,jsxs as BN}from"react/jsx-runtime";import{jsx as ON,jsxs as RN}from"react/jsx-runtime";import{Fragment as XN,jsx as VN,jsxs as _N}from"react/jsx-runtime";import{Fragment as ZN,jsx as YN,jsxs as QN}from"react/jsx-runtime";import{Fragment as fv,jsx as uv}from"react/jsx-runtime";import{Fragment as Sv,jsx as kv}from"react/jsx-runtime";import{Fragment as Gt,jsx as A,jsxs as O}from"react/jsx-runtime";var zr="k-colorgradient-inputs",zi=[],wi={size:[n.small,n.medium,n.large]},wr={mode:"rgba",size:n.medium},mt=e=>{let{mode:t=wr.mode,size:o,...s}=e;return O("div",{...s,className:r(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(Gt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&O(Gt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&O(Gt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&O(Gt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(Gt,{children:O("div",{className:"k-vstack k-flex-1",children:[A(xe,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};mt.states=zi;mt.options=wi;mt.className=zr;mt.defaultOptions=wr;import{jsx as qe,jsxs as We}from"react/jsx-runtime";var Or="k-colorgradient-color-contrast",Oi=[],Ri={},Ki={},dt=()=>We("div",{className:r(Or,"k-vbox"),children:[We("div",{className:"k-contrast-ratio",children:[qe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),We("span",{className:"k-contrast-validation !k-text-success",children:[qe(g,{icon:"check"}),qe(g,{icon:"check"})]})]}),We("div",{children:[qe("span",{children:"AA: 4.5"}),We("span",{className:"k-contrast-validation !k-text-success",children:["Pass",qe(g,{icon:"check"})]})]}),We("div",{children:[qe("span",{children:"AAA: 7.0"}),We("span",{className:"k-contrast-validation !k-text-error",children:["Fail",qe(g,{icon:"x"})]})]})]});dt.states=Oi;dt.options=Ri;dt.className=Or;dt.defaultOptions=Ki;import{jsx as oe,jsxs as Dt}from"react/jsx-runtime";var mo="k-colorgradient",Hi=[a.hover,a.focus,a.readonly,a.disabled],Gi={size:[n.small,n.medium,n.large]},me={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"},Ee=e=>{let{size:t=me.size,mode:o=me.mode,readonly:s=me.readonly,disabled:p=me.disabled,gradientStyle:l=me.gradientStyle,dragHandleStyle:i=me.dragHandleStyle,alphaStyle:u=me.alphaStyle,alphaStyleHorizontal:b=me.alphaStyleHorizontal,contrast:x=me.contrast,dir:h,hover:S,focus:c,hoverHandle:N,focusHandle:k,canvasOrientation:C=me.canvasOrientation,...y}=e;return Dt("div",{...y,className:r(e.className,mo,L(mo,{size:t}),M(mo,{hover:S,focus:c,readonly:s,disabled:p})),dir:h,children:[!C||C==="horizontal"&&Dt("div",{className:"k-colorgradient-canvas k-hstack",children:[oe("div",{className:"k-hsv-rectangle",style:l,children:oe("div",{className:"k-hsv-gradient",children:oe("div",{className:r("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:i})})}),Dt("div",{className:"k-hsv-controls k-hstack",children:[oe(Jo,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&oe(Jo,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:u})]})]}),C==="vertical"&&Dt("div",{className:"k-colorgradient-canvas k-vstack",children:[oe("div",{className:"k-hsv-rectangle",style:l,children:oe("div",{className:"k-hsv-gradient",children:oe("div",{className:r("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:i})})}),Dt("div",{className:"k-hsv-controls k-vstack",children:[oe(Fo,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&oe(Fo,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:b})]})]}),oe(mt,{mode:e.mode,size:t}),x&&oe(dt,{})]})};Ee.states=Hi;Ee.options=Gi;Ee.className=mo;Ee.defaultOptions=me;import{jsx as Jv}from"react/jsx-runtime";import{jsx as Yv}from"react/jsx-runtime";import{jsx as Di}from"react/jsx-runtime";var Rr=e=>Di("tr",{children:e.children});import{jsx as _i}from"react/jsx-runtime";var ra="k-colorpalette-tile",$i=[a.hover,a.focus,a.selected],Vi={},$t=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 _i("td",{...i,className:r(e.className,ra,M(ra,{hover:s,focus:p,selected:l})),style:u})};$t.states=$i;$t.options=Vi;$t.className=ra;import{jsx as Vt}from"react/jsx-runtime";var uo="k-colorpalette",Xi=[a.disabled],Fi={size:[n.small,n.medium,n.large]},na={columns:10,size:n.medium},ut=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(Vt($t,{color:k,tileSize:p},C))});let N=Vt(Rr,{children:c},S);u.push(N)})}return Vt("div",{...i,className:r(e.className,uo,M(uo,{disabled:l}),L(uo,{size:t})),children:Vt("table",{className:"k-colorpalette-table",children:Vt("tbody",{children:u.length>0?u:e.children})})})};ut.states=Xi;ut.options=Fi;ut.className=uo;ut.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 vk}from"react/jsx-runtime";import{jsx as ae,jsxs as ft}from"react/jsx-runtime";var fo="k-coloreditor",Ji=[a.focus],Ui={size:[n.small,n.medium,n.large]},bt={size:n.medium,view:"gradient",palette:sa.office,actionButtons:!0,canvasOrientation:"horizontal"},de=e=>{let{size:t=bt.size,view:o=bt.view,palette:s=bt.palette,color:p,currentColor:l,focus:i,focusView:u,dir:b,group:x,actionButtons:h=bt.actionButtons,canvasOrientation:S=bt.canvasOrientation,...c}=e;return ft("div",{...c,className:r(e.className,"k-flatcolorpicker",fo,L(fo,{size:t}),M(fo,{focus:i})),dir:b,children:[ft("div",{className:"k-coloreditor-header k-hstack",children:[ae("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&ft(w,{fillMode:"flat",children:[ae(v,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),ae(v,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),ae("div",{className:"k-spacer"}),ft("div",{className:"k-coloreditor-header-actions k-hstack",children:[ae(v,{fillMode:"flat",icon:"droplet-slash",size:t}),ft("div",{className:"k-coloreditor-preview k-vstack",children:[ae(Ce,{className:"k-coloreditor-preview-color",color:p}),ae(Ce,{className:"k-coloreditor-current-color",color:l})]})]})]}),ae("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?ae(Ee,{focus:u,size:t,canvasOrientation:S}):ae(ut,{palette:s,size:t})}),h&&ft(V,{className:"k-coloreditor-footer",alignment:"start",children:[ae(v,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),ae(v,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};de.states=Ji;de.options=Ui;de.className=fo;de.defaultOptions=bt;import{jsx as Hk}from"react/jsx-runtime";import{jsx as Vk}from"react/jsx-runtime";import{jsx as Jk}from"react/jsx-runtime";import{jsx as Yk}from"react/jsx-runtime";import{Fragment as Yi,jsx as re,jsxs as la}from"react/jsx-runtime";var Kr="k-colorpicker",qi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],Wi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},_t={arrowIconName:"caret-alt-down",size:ie.defaultOptions.size,rounded:ie.defaultOptions.rounded,fillMode:ie.defaultOptions.fillMode},Ne=e=>{let{size:t=_t.size,rounded:o=_t.rounded,fillMode:s=_t.fillMode,arrowIconName:p=_t.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:D,adaptiveTitle:Le,adaptiveSubtitle:Mt,...It}=e;return la(Yi,{children:[la(ie,{...It,size:t,rounded:o,fillMode:s,hover:x,focus:h,valid:S,invalid:c,required:N,disabled:k,className:r(e.className,Kr,"k-icon-picker"),children:[re(Q,{children:l}),re(Ve,{placeholder:b,value:u,showValue:!1,valueIcon:re(Ce,{className:"k-value-icon",color:u,iconName:C}),valueIconName:C}),re(Z,{children:i}),re(v,{className:"k-input-button",icon:p,rounded:null,size:t,fillMode:s})]}),T&&y&&re(H,{className:"k-colorpicker-popup",children:y}),E&&re(ce,{adaptive:!0,...D,header:re(ee,{actionsEnd:re(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:Le,subtitle:Mt}),footer:la(zt,{children:[re(v,{text:"Cancel",size:"large",themeColor:"base"}),re(v,{text:"Set",size:"large",themeColor:"primary"})]}),children:re(de,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};Ne.states=qi;Ne.options=Wi;Ne.className=Kr;Ne.defaultOptions=_t;import{jsx as xS}from"react/jsx-runtime";import{jsx as SS}from"react/jsx-runtime";import{jsx as IS}from"react/jsx-runtime";import{jsx as BS}from"react/jsx-runtime";import{jsx as wS}from"react/jsx-runtime";import{jsx as HS}from"react/jsx-runtime";import{Fragment as pa,jsx as G,jsxs as Xt}from"react/jsx-runtime";var Hr="k-combobox",Zi=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],ji={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ft={size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},Ye=e=>{let{size:t=Ft.size,rounded:o=Ft.rounded,fillMode:s=Ft.fillMode,separators:p=Ft.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:D,adaptiveSettings:Le,adaptiveTitle:Mt,adaptiveSubtitle:It,adaptiveCustomValue:Mo,...Io}=e;return Xt(pa,{children:[Xt(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:r(e.className,Hr),children:[l&&Xt(pa,{children:[G(Q,{children:l}),p&&G(j,{})]}),G(pe,{placeholder:b,value:u}),G(W,{valid:S,invalid:c,loading:k,disabled:C}),G(Y,{loading:k,disabled:C}),G(le,{loading:k,disabled:C,readonly:E,value:u}),i&&Xt(pa,{children:[p&&G(j,{}),G(Z,{children:i})]}),G(v,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:s})]}),T&&y&&G(H,{className:"