UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 74.6 kB
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"},Ba={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{jsx as hn}from"react/jsx-runtime";var Zt="k-actions",bn=[],xn={},Io={alignment:"start",orientation:"horizontal"},D=e=>{let{alignment:t=Io.alignment,orientation:o=Io.orientation,...s}=e;return hn("div",{...s,className:r(Zt,{[`${Zt}-${t}`]:t,[`${Zt}-${o}`]:o},e.className),children:e.children})};D.states=bn;D.options=xn;D.className=Zt;D.defaultOptions=Io;import{Fragment as Sn,jsx as Pa}from"react/jsx-runtime";var yo="k-icon k-font-icon",Nn=[],vn={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]},kn={},It=e=>{let{size:t,themeColor:o,icon:s,rotate:p,flip:l,...i}=e;return s?Pa("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"})}):Pa(Sn,{})};It.states=Nn;It.options=vn;It.className=yo;It.defaultOptions=kn;var Ea=It;import{Fragment as gn,jsx as jt}from"react/jsx-runtime";var To="k-icon k-svg-icon",Ln=[],Cn={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]},za={viewBox:"0 0 24 24"},yt=e=>{let{size:t,themeColor:o,rotate:s,flip:p,viewBox:l=za.viewBox,icon:i,...u}=e;if(!i)return jt(gn,{});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})})};yt.states=Ln;yt.options=Cn;yt.className=To;yt.defaultOptions=za;var Ao=yt;import*as wa from"@progress/kendo-svg-icons";import{Fragment as Oa,jsx as Tt}from"react/jsx-runtime";var Mn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),In=[],yn={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 Tt(Oa,{});if(p==="svg"){if(s==="none")return Tt(Ao,{...b,icon:s,size:t});let x=Mn(`${s}-icon`);return wa[x]?Tt(Ao,{...b,icon:wa[x],size:t,themeColor:o,rotate:l,flip:i,viewBox:u}):Tt(Oa,{})}return Tt(Ea,{...b,icon:s,size:t,themeColor:o,rotate:l,flip:i})};g.states=In;g.options=yn;g.defaultOptions=Bo;import{Fragment as Bn,jsx as At,jsxs as Ra}from"react/jsx-runtime";var eo="k-button",Tn=[a.hover,a.focus,a.active,a.selected,a.disabled],An={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 Ra("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&&At(g,{className:r(k,"k-button-icon"),icon:c}),N?Ra(Bn,{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=Tn;v.options=An;v.className=eo;v.defaultOptions=Ke;import{jsx as Pn}from"react/jsx-runtime";var J=e=>Pn(v,{icon:"folder",...e,children:void 0});import{jsx as En}from"react/jsx-runtime";var V=e=>En(v,{icon:"folder",children:"Button",...e});import{jsx as mc}from"react/jsx-runtime";import{jsx as On}from"react/jsx-runtime";var Bt="k-button-group",zn=[a.disabled],wn={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Ka={fillMode:d.solid},w=e=>{let{fillMode:t=Ka.fillMode,disabled:o,stretched:s,...p}=e;return On("div",{...p,className:r(e.className,Bt,L(Bt,{fillMode:t}),M(Bt,{disabled:o}),{[`${Bt}-stretched`]:s}),children:e.children})};w.states=zn;w.options=wn;w.className=Bt;w.defaultOptions=Ka;import{Fragment as Mc,jsx as gc,jsxs as Ic}from"react/jsx-runtime";import{Fragment as Ec,jsx as Pc,jsxs as zc}from"react/jsx-runtime";import{Fragment as Gc,jsx as Hc,jsxs as Dc}from"react/jsx-runtime";import{Fragment as Jc,jsx as Fc,jsxs as Uc}from"react/jsx-runtime";import{jsx as Hn}from"react/jsx-runtime";var to="k-input",Rn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Kn={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 Hn("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=Rn;P.options=Kn;P.className=to;P.defaultOptions=oo;import{jsx as $n}from"react/jsx-runtime";var ao="k-picker",Gn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Dn={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},ne=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 $n("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})};ne.states=Gn;ne.options=Dn;ne.className=ao;ne.defaultOptions=ro;import{Fragment as Xn,jsx as Po}from"react/jsx-runtime";var Ha="k-clear-value",Vn=[a.disabled,a.loading,a.readonly],_n={},se=e=>{let{disabled:t,loading:o,readonly:s,value:p}=e;return t||s||o||!p?Po(Xn,{}):Po("span",{className:r(e.className,Ha),children:Po(g,{icon:"x"})})};se.states=Vn;se.options=_n;se.className=Ha;import{jsx as Un}from"react/jsx-runtime";var Eo="k-input-inner",Fn=[],Jn={},no={type:"text",autocomplete:"off",value:"",placeholder:""},ie=e=>{let{value:t=no.value,type:o=no.type,placeholder:s=no.placeholder,autocomplete:p=no.autocomplete,...l}=e;return Un("input",{...l,type:o,className:r(e.className,Eo,L(Eo,e)),placeholder:s,autoComplete:p,defaultValue:t})};ie.states=Fn;ie.options=Jn;ie.className=Eo;import{jsx as Ga,jsxs as Yn}from"react/jsx-runtime";var zo="k-input-inner",qn=[],Wn={},He=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:p,valueIconName:l,...i}=e;return Yn("span",{...i,className:r(e.className,zo,L(zo,e)),children:[p,!p&&l&&Ga(g,{className:"k-input-value-icon",icon:l}),s&&!t&&o,s&&t&&Ga("span",{className:"k-input-value-text",children:t})]})};He.states=qn;He.options=Wn;He.className=zo;import{jsx as jn}from"react/jsx-runtime";var wo="k-input-inner",Qn=[],Zn={},Da={value:"",placeholder:""},Pt=e=>{let{value:t=Da.value,placeholder:o=Da.placeholder,rows:s,...p}=e;return jn("textarea",{...p,className:r(e.className,wo,L(wo,e)),placeholder:o,rows:s,defaultValue:t})};Pt.states=Qn;Pt.options=Zn;Pt.className=wo;import{Fragment as ts,jsx as $a}from"react/jsx-runtime";var Va="k-input-loading-icon",es=[a.disabled,a.loading],q=e=>{let{disabled:t,loading:o}=e;return t||!o?$a(ts,{}):$a("span",{className:r(e.className,Va,"k-icon k-i-loading")})};q.states=es;q.className=Va;import{Fragment as rs,jsx as _a}from"react/jsx-runtime";var Xa="k-input-validation-icon",os=[a.valid,a.invalid,a.disabled,a.loading],as={},U=e=>{let{valid:t,invalid:o,disabled:s,loading:p}=e,l=o?"warning-circle":"check-circle";return s||p||!!!(t||o)?_a(rs,{}):_a(g,{className:r(Xa),icon:l})};U.states=os;U.options=as;U.className=Xa;import{Fragment as is,jsx as Fa}from"react/jsx-runtime";var ns="k-input-prefix",ss={direction:"horizontal"},W=e=>{let{direction:t=ss.direction,...o}=e;return e.children?Fa("span",{...o,className:r(ns,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Fa(is,{})};import{Fragment as cs,jsx as Ja}from"react/jsx-runtime";var ls="k-input-suffix",ps={direction:"horizontal"},Y=e=>{let{direction:t=ps.direction,...o}=e;return e.children?Ja("span",{...o,className:r(ls,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ja(cs,{})};import{jsx as Rm}from"react/jsx-runtime";import{jsx as Dm}from"react/jsx-runtime";import{jsx as ds}from"react/jsx-runtime";var Ua="k-input-separator",ms={direction:"vertical"},Q=e=>{let{direction:t=ms.direction,...o}=e;return ds("span",{...o,className:r(Ua,e.className,{[`${Ua}-${t}`]:t})})};import{jsx as qa,jsxs as bs}from"react/jsx-runtime";var Wa="k-color-preview",us=[],fs={},Se=e=>{let{color:t,iconName:o,...s}=e;return bs("span",{...s,className:r(e.className,Wa,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&qa(g,{icon:o,className:"k-color-preview-icon"}),qa("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Se.states=us;Se.options=fs;Se.className=Wa;import{jsx as Ya}from"react/jsx-runtime";var Qa="k-animation-container",xs=[],hs={},Za={positionMode:"absolute"},Le=e=>{let{positionMode:t=Za.positionMode,animationStyle:o,offset:s,...p}=e;return Ya("div",{...p,style:{...s,...e.style},className:r(e.className,Qa,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Ya("div",{className:"k-child-animation-container",style:o,children:e.children})})};Le.states=xs;Le.options=hs;Le.className=Qa;Le.defaultOptions=Za;import{jsx as ja}from"react/jsx-runtime";var er="k-popup",Ns=[],vs={},tr={positionMode:"absolute"},K=e=>{let{offset:t,positionMode:o=tr.positionMode,animationStyle:s,...p}=e;return ja(Le,{positionMode:o,offset:t,animationStyle:s,children:ja("div",{...p,className:r(e.className,er),children:e.children})})};K.states=Ns;K.options=vs;K.className=er;K.defaultOptions=tr;import{jsx as Ss}from"react/jsx-runtime";var ks="k-actionsheet-footer",or={alignment:"stretched",orientation:"horizontal"},Et=e=>{let{alignment:t=or.alignment,orientation:o=or.orientation,template:s,as:p=s?"div":D,...l}=e;return Ss(p,{...l,...!s&&{alignment:t,orientation:o},className:r(e.className,ks),children:e.children})};import{jsx as zt,jsxs as gs}from"react/jsx-runtime";var ar="k-searchbox",Ls=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Cs={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Oo={showIcon:!0,icon:"search",size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode},de=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=Oo.showIcon,icon:k=Oo.icon,...C}=e;return gs(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,ar),children:[N&&zt(g,{className:"k-input-icon",icon:k}),zt(ie,{placeholder:o,value:t}),zt(q,{...e}),zt(U,{...e}),zt(se,{...e})]})};de.states=Ls;de.options=Cs;de.className=ar;de.defaultOptions=Oo;import{jsx as wd}from"react/jsx-runtime";import{Fragment as rr,jsx as Ce,jsxs as Ro}from"react/jsx-runtime";var nr="k-textbox",Ms=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Is={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},ue=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 Ro(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:r(e.className,nr),children:[u&&Ro(rr,{children:[Ce(W,{children:u}),p&&Ce(Q,{})]}),Ce(ie,{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(se,{loading:T,disabled:E,readonly:G,value:h}),b&&Ro(rr,{children:[p&&Ce(Q,{}),Ce(Y,{children:b})]})]})};ue.states=Ms;ue.options=Is;ue.className=nr;ue.defaultOptions=Ge;import{jsx as Fd}from"react/jsx-runtime";import{Fragment as Qd,jsx as Yd}from"react/jsx-runtime";import{Fragment as ru,jsx as au}from"react/jsx-runtime";import{jsx as ge,jsxs as Ko}from"react/jsx-runtime";var ir="k-actionsheet-titlebar",ys={},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 Ko("div",{...S,className:r(e.className,ir),children:[Ko("div",{className:"k-actionsheet-titlebar-group",children:[s&&ge("div",{className:"k-actionsheet-actions",children:s}),!h&&Ko("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(ue,{value:u,placeholder:b,size:x?"large":"medium"}):ge(de,{placeholder:"Filter",size:x?"large":"medium"})})]})};Z.className=ir;Z.defaultOptions=ys;import{jsx as Ho,jsxs as Ps}from"react/jsx-runtime";var Go="k-actionsheet-view",Ts=[],As={},Bs={},tt=e=>{let{adaptive:t,animated:o,children:s,header:p,footer:l,...i}=e,u=p?.type===Z&&Ho(Z,{adaptive:t,...p?.props}),b=l?.type===Et&&Ho(Et,{...l?.props});return Ps("div",{...i,className:r(e.className,Go,{[`${Go}-animated`]:o}),children:[u,Ho("div",{className:"k-actionsheet-content",children:s}),b]})};tt.states=Ts;tt.options=As;tt.className=Go;tt.defaultOptions=Bs;import{jsx as so,jsxs as ws}from"react/jsx-runtime";var lr="k-actionsheet",Es=[],zs={},wt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},le=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 ws("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:r(e.className,lr,{[`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})})})]})};le.states=Es;le.options=zs;le.className=lr;le.defaultOptions=wt;import{jsx as Tu}from"react/jsx-runtime";import{Fragment as Rs,jsx as Ot,jsxs as Do}from"react/jsx-runtime";var $o="k-actionsheet-item",Os=[a.hover,a.focus,a.selected,a.disabled],Vo=e=>{let{iconName:t,text:o,description:s,hover:p,focus:l,selected:i,disabled:u,...b}=e;return Do("span",{...b,className:r(e.className,$o,M($o,{hover:p,focus:l,selected:i,disabled:u})),children:[!e.children&&Ot(Rs,{children:Do("span",{className:"k-actionsheet-action",children:[t&&Ot("span",{className:"k-icon-wrap",children:Ot(g,{className:"k-actionsheet-item-icon",icon:t})}),Do("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]})};Vo.states=Os;Vo.className=$o;import{jsx as Ku,jsxs as Hu}from"react/jsx-runtime";import{jsx 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 ot,jsxs as _o}from"react/jsx-runtime";var Rt="k-slider",Ks=[a.hover,a.focus,a.active,a.disabled,a.readonly],Hs={},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"),_o("div",{...N,className:r(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}),_o("div",{className:"k-slider-track-wrap",children:[u&&ot("ul",{className:"k-reset k-slider-items",children:e.children}),_o("div",{className:"k-slider-track",style:S,children:[ot("div",{className:"k-slider-selection"}),t==="range"&&ot("span",{className:r("k-draghandle","k-draghandle-start",M(Rt,{hover:b,focus:x,active:h}))}),ot("span",{className:r("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=Ks;j.options=Hs;j.className=Rt;j.defaultOptions=Me;import{jsx as cr}from"react/jsx-runtime";var mr="k-tick",Gs=[],Ds={},dr={label:!1},Ie=e=>{let{style:t,label:o=dr.label,orientation:s,large:p,text:l,...i}=e;return cr("li",{...i,className:r(e.className,mr,{[`k-tick-${s}`]:s,"k-tick-large":p}),style:t,children:o&&cr("span",{className:"k-label",children:l})})};Ie.states=Gs;Ie.options=Ds;Ie.className=mr;Ie.defaultOptions=dr;import{Fragment as kf,jsx as vf,jsxs as Sf}from"react/jsx-runtime";import{Fragment as If,jsx as Mf,jsxs as yf}from"react/jsx-runtime";import{Fragment as Ef,jsx as Pf,jsxs as zf}from"react/jsx-runtime";import{Fragment as Hf,jsx as Kf,jsxs as Gf}from"react/jsx-runtime";import{jsx as $s}from"react/jsx-runtime";var Xo=e=>$s(j,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Vs}from"react/jsx-runtime";var Fo=e=>Vs(j,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as ur,jsxs as Fs}from"react/jsx-runtime";var fr="k-spin-button",_s=[],Xs={size:[n.small,n.medium,n.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Jo={size:n.medium,fillMode:d.solid},at=e=>{let{size:t=Jo.size,fillMode:o=Jo.fillMode,...s}=e;return Fs("span",{...s,className:r(fr,e.className),children:[ur(v,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),ur(v,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};at.states=_s;at.options=Xs;at.className=fr;at.defaultOptions=Jo;import{Fragment as br,jsx as fe,jsxs as Uo}from"react/jsx-runtime";var xr="k-numerictextbox",Js=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Us={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 Uo(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:r(e.className,xr),children:[u&&Uo(br,{children:[fe(W,{children:u}),p&&fe(Q,{})]}),fe(ie,{placeholder:h,value:x}),fe(U,{valid:N,invalid:k,loading:y,disabled:T}),fe(q,{loading:y,disabled:T}),l&&fe(se,{loading:y,disabled:T,readonly:E,value:x}),b&&Uo(br,{children:[p&&fe(Q,{}),fe(Y,{children:b})]}),i&&fe(at,{className:"k-input-spinner",size:t,fillMode:s})]})};R.states=Js;R.options=Us;R.className=xr;R.defaultOptions=De;import{jsx as bb}from"react/jsx-runtime";import{jsx as Ws}from"react/jsx-runtime";var qs="k-no-data",Kt=e=>Ws("span",{className:r(qs,e.className),children:e.children});import{jsx as rt,jsxs as Nr}from"react/jsx-runtime";var qo="k-list",Ys=[],Qs={size:[n.small,n.medium,n.large]},vr={size:n.medium},z=e=>{let{size:t=vr.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=Nr(Kt,{className:"k-sr-only",children:[c.length," items found."]})))}):S=rt(Kt,{children:"No data found."}),Nr("div",{...u,className:r(e.className,qo,L(qo,{size:t}),{"k-virtual-list":o}),children:[p,l,x,h,S]})};z.states=Ys;z.options=Qs;z.className=qo;z.defaultOptions=vr;import{jsx as $e,jsxs as ei}from"react/jsx-runtime";var Wo="k-list",Zs=[],js={size:[n.small,n.medium,n.large]},kr={size:n.medium},Ve=e=>{let{size:t=kr.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(Sr,{...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."}),ei("div",{...p,className:r(e.className,Wo,L(Wo,{size:t}),{"k-virtual-list":o}),children:[i,u]})};Ve.states=Zs;Ve.options=js;Ve.className=Wo;Ve.defaultOptions=kr;import{jsx as Lr}from"react/jsx-runtime";var io="k-checkbox",ti=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],oi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},Yo={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=Yo.size,rounded:S=Yo.rounded,...c}=e;return Lr("span",{className:"k-checkbox-wrap",children:Lr("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:x,className:r(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=ti;ye.options=oi;ye.className=io;ye.defaultOptions=Yo;import{jsx as ni}from"react/jsx-runtime";var Cr="k-checkbox-list",ai=[],ri={},gr={layout:"vertical"},st=e=>{let{layout:t=gr.layout,...o}=e;return ni("ul",{...o,className:r(e.className,Cr,{[`k-list-${t}`]:t}),children:e.children})};st.states=ai;st.options=ri;st.className=Cr;st.defaultOptions=gr;import{jsx as pi}from"react/jsx-runtime";var Mr="k-checkbox-list-item",si=[],ii={},li={},it=e=>{let{...t}=e;return pi("li",{...t,className:r(e.className,Mr),children:e.children})};it.states=si;it.options=ii;it.className=Mr;it.defaultOptions=li;import{Fragment as Xb,jsx as _b,jsxs as Fb}from"react/jsx-runtime";import{Fragment as Yb,jsx as Wb,jsxs as Qb}from"react/jsx-runtime";import{Fragment as ox,jsx as tx,jsxs as ax}from"react/jsx-runtime";import{Fragment as lx,jsx as ix,jsxs as px}from"react/jsx-runtime";import{jsx as ux}from"react/jsx-runtime";import{jsx as hx}from"react/jsx-runtime";import{jsx as lo,jsxs as ui}from"react/jsx-runtime";var Zo="k-list-item",ci=[a.hover,a.focus,a.selected,a.disabled],mi={},di={},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 ui("li",{...c,className:r(e.className,s?"k-list-group-item":Zo,M(Zo,{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=ci;I.options=mi;I.className=Zo;I.defaultOptions=di;import{jsx as jo,jsxs as bi}from"react/jsx-runtime";var fi="k-list-content",nt=e=>{let{virtualization:t,...o}=e;return bi("div",{...o,className:r(fi,e.className),children:[jo("ul",{className:r("k-list-ul"),children:e.children}),t&&jo("div",{className:"k-height-container",children:jo("div",{})})]})};import{jsx as Ir}from"react/jsx-runtime";var xi="k-list-group-sticky-header",yr=e=>Ir("div",{className:r(xi,e.className),children:Ir("div",{className:"k-list-header-text",children:e.children})});import{Fragment as hi,jsx as Tr,jsxs as Ni}from"react/jsx-runtime";var $=e=>{let{virtualization:t,label:o}=e;return Ni(hi,{children:[o&&Tr(yr,{children:o}),e.children&&Tr(nt,{virtualization:t,children:e.children})]})};import{jsx as Ar}from"react/jsx-runtime";var vi="k-list-group-item",Sr=e=>Ar("li",{className:r(vi,e.className),children:Ar("span",{className:"k-list-item-text",children:e.children})});import{jsx as Ci}from"react/jsx-runtime";var ea="k-list-optionlabel",ki=[a.hover,a.focus,a.selected,a.disabled],Si={},Li={},po=e=>{let{text:t,hover:o,focus:s,selected:p,disabled:l,...i}=e;return Ci("div",{...i,className:r(ea,M(ea,{hover:o,focus:s,selected:p,disabled:l})),children:t})};po.states=ki;po.options=Si;po.className=ea;po.defaultOptions=Li;import{jsx as yi}from"react/jsx-runtime";var ta="k-list-custom-value",gi=[a.hover,a.focus,a.selected,a.disabled],Mi={},Ii={},Te=e=>{let{text:t,hover:o,focus:s,selected:p,disabled:l,...i}=e;return yi("div",{...i,className:r(ta,M(ta,{hover:o,focus:s,selected:p,disabled:l})),children:t})};Te.states=gi;Te.options=Mi;Te.className=ta;Te.defaultOptions=Ii;import{jsx as eh}from"react/jsx-runtime";import{jsx as rh}from"react/jsx-runtime";import{jsx as lh,jsxs as ph}from"react/jsx-runtime";import{jsx as uh,jsxs as fh}from"react/jsx-runtime";import{jsx as Nh}from"react/jsx-runtime";import{jsx as Lh,jsxs as Ch}from"react/jsx-runtime";import{jsx as yh,jsxs as Th}from"react/jsx-runtime";import{Fragment as Bi,jsx as X,jsxs as oa}from"react/jsx-runtime";var Br="k-dropdownlist",Ti=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ai={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:go,adaptiveSubtitle:Mo,adaptiveFilter:un,...fn}=e;return oa(Bi,{children:[oa(ne,{...fn,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,Br,{"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(le,{adaptive:!0,...Mt,header:X(Z,{actionsEnd:X(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:un,inputValue:x,inputPlaceholder:h,title:go,subtitle:Mo}),children:X("div",{className:"k-list-container",children:oa(z,{size:"large",children:[X(I,{text:"List item"}),X(I,{text:"List item"}),X(I,{text:"List item"})]})})})]})};Ae.states=Ti;Ae.options=Ai;Ae.className=Br;Ae.defaultOptions=lt;import{jsx as rN}from"react/jsx-runtime";import{jsx as pN,jsxs as cN}from"react/jsx-runtime";import{Fragment as NN,jsx as xN,jsxs as hN}from"react/jsx-runtime";import{jsx as LN}from"react/jsx-runtime";import{jsx as yN,jsxs as TN}from"react/jsx-runtime";import{jsx as zN,jsxs as wN}from"react/jsx-runtime";import{Fragment as VN,jsx as DN,jsxs as $N}from"react/jsx-runtime";import{Fragment as YN,jsx as qN,jsxs as WN}from"react/jsx-runtime";import{Fragment as dv,jsx as mv}from"react/jsx-runtime";import{Fragment as vv,jsx as Nv}from"react/jsx-runtime";import{Fragment as Ht,jsx as A,jsxs as O}from"react/jsx-runtime";var Pr="k-colorgradient-inputs",Pi=[],Ei={size:[n.small,n.medium,n.large]},Er={mode:"rgba",size:n.medium},pt=e=>{let{mode:t=Er.mode,size:o,...s}=e;return O("div",{...s,className:r(Pr,"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(ue,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};pt.states=Pi;pt.options=Ei;pt.className=Pr;pt.defaultOptions=Er;import{jsx as Xe,jsxs as Fe}from"react/jsx-runtime";var zr="k-colorgradient-color-contrast",zi=[],wi={},Oi={},ct=()=>Fe("div",{className:r(zr,"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=zi;ct.options=wi;ct.className=zr;ct.defaultOptions=Oi;import{jsx as ee,jsxs as Gt}from"react/jsx-runtime";var co="k-colorgradient",Ri=[a.hover,a.focus,a.readonly,a.disabled],Ki={size:[n.small,n.medium,n.large]},pe={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=pe.size,mode:o=pe.mode,readonly:s=pe.readonly,disabled:p=pe.disabled,gradientStyle:l=pe.gradientStyle,dragHandleStyle:i=pe.dragHandleStyle,alphaStyle:u=pe.alphaStyle,alphaStyleHorizontal:b=pe.alphaStyleHorizontal,contrast:x=pe.contrast,dir:h,hover:S,focus:c,hoverHandle:N,focusHandle:k,canvasOrientation:C=pe.canvasOrientation,...y}=e;return Gt("div",{...y,className:r(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:r("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:i})})}),Gt("div",{className:"k-hsv-controls k-hstack",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: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:r("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:i})})}),Gt("div",{className:"k-hsv-controls k-vstack",children:[ee(Xo,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&ee(Xo,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:b})]})]}),ee(pt,{mode:e.mode,size:t}),x&&ee(ct,{})]})};Be.states=Ri;Be.options=Ki;Be.className=co;Be.defaultOptions=pe;import{jsx as Xv}from"react/jsx-runtime";import{jsx as qv}from"react/jsx-runtime";import{jsx as Hi}from"react/jsx-runtime";var wr=e=>Hi("tr",{children:e.children});import{jsx as $i}from"react/jsx-runtime";var aa="k-colorpalette-tile",Gi=[a.hover,a.focus,a.selected],Di={},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 $i("td",{...i,className:r(e.className,aa,M(aa,{hover:s,focus:p,selected:l})),style:u})};Dt.states=Gi;Dt.options=Di;Dt.className=aa;import{jsx as $t}from"react/jsx-runtime";var mo="k-colorpalette",Vi=[a.disabled],_i={size:[n.small,n.medium,n.large]},ra={columns:10,size:n.medium},mt=e=>{let{size:t=ra.size,palette:o,columns:s=ra.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(wr,{children:c},S);u.push(N)})}return $t("div",{...i,className:r(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=Vi;mt.options=_i;mt.className=mo;mt.defaultOptions=ra;var na={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 hk}from"react/jsx-runtime";import{jsx as te,jsxs as dt}from"react/jsx-runtime";var uo="k-coloreditor",Xi=[a.focus],Fi={size:[n.small,n.medium,n.large]},ut={size:n.medium,view:"gradient",palette:na.office,actionButtons:!0,canvasOrientation:"horizontal"},ce=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:r(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"})]})]})};ce.states=Xi;ce.options=Fi;ce.className=uo;ce.defaultOptions=ut;import{jsx as Rk}from"react/jsx-runtime";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{Fragment as qi,jsx as oe,jsxs as ia}from"react/jsx-runtime";var Or="k-colorpicker",Ji=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],Ui={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:ne.defaultOptions.size,rounded:ne.defaultOptions.rounded,fillMode:ne.defaultOptions.fillMode},be=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 ia(qi,{children:[ia(ne,{...Mt,size:t,rounded:o,fillMode:s,hover:x,focus:h,valid:S,invalid:c,required:N,disabled:k,className:r(e.className,Or,"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(le,{adaptive:!0,...G,header:oe(Z,{actionsEnd:oe(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:ke,subtitle:gt}),footer:ia(Et,{children:[oe(v,{text:"Cancel",size:"large",themeColor:"base"}),oe(v,{text:"Set",size:"large",themeColor:"primary"})]}),children:oe(ce,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};be.states=Ji;be.options=Ui;be.className=Or;be.defaultOptions=Vt;import{jsx as fS}from"react/jsx-runtime";import{jsx as vS}from"react/jsx-runtime";import{jsx as gS}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{Fragment as la,jsx as H,jsxs as _t}from"react/jsx-runtime";var Rr="k-combobox",Yi=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Qi={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:go,...Mo}=e;return _t(la,{children:[_t(P,{...Mo,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,Rr),children:[l&&_t(la,{children:[H(W,{children:l}),p&&H(Q,{})]}),H(ie,{placeholder:b,value:u}),H(U,{valid:S,invalid:c,loading:k,disabled:C}),H(q,{loading:k,disabled:C}),H(se,{loading:k,disabled:C,readonly:E,value:u}),i&&_t(la,{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