@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 65.6 kB
JavaScript
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,r)=>t[r]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var g=(e,t)=>a({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),M=(e,t)=>a({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});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"},s={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"};import{Fragment as ya,jsx as es}from"react/jsx-runtime";var Zt="k-icon k-font-icon",ga=[],Ia={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]},Ma={},ct=e=>{let{size:t,themeColor:o,icon:r,rotate:p,flip:c,...i}=e;return r?es("span",{...i,className:a(e.className,Zt,g(Zt,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${p}`]:p,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"})}):es(ya,{})};ct.states=ga;ct.options=Ia;ct.className=Zt;ct.defaultOptions=Ma;var ts=ct;import{Fragment as Aa,jsx as wt}from"react/jsx-runtime";var jt="k-icon k-svg-icon",Ca=[],Ta={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]},os={viewBox:"0 0 24 24"},dt=e=>{let{size:t,themeColor:o,rotate:r,flip:p,viewBox:c=os.viewBox,icon:i,...u}=e;if(!i)return wt(Aa,{});i==="none"&&{...u,className:a(e.className,jt,"k-none")};let b=typeof i=="object"&&i.name&&i.name;return wt("span",{...u,className:a(e.className,jt,g("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"}),children:wt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:c,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:e.children})})};dt.states=Ca;dt.options=Ta;dt.className=jt;dt.defaultOptions=os;var eo=dt;import*as ss from"@progress/kendo-svg-icons";import{Fragment as as,jsx as mt}from"react/jsx-runtime";var Ba=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),wa=[],za={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]},to={viewBox:"0 0 24 24",type:"svg"},I=e=>{let{size:t,themeColor:o,icon:r,type:p=to.type,rotate:c,flip:i,viewBox:u=to.viewBox,...b}=e;if(!r)return mt(as,{});if(p==="svg"){if(r==="none")return mt(eo,{...b,icon:r,size:t});let x=Ba(`${r}-icon`);return ss[x]?mt(eo,{...b,icon:ss[x],size:t,themeColor:o,rotate:c,flip:i,viewBox:u}):mt(as,{})}return mt(ts,{...b,icon:r,size:t,themeColor:o,rotate:c,flip:i})};I.states=wa;I.options=za;I.defaultOptions=to;import{Fragment as Oa,jsx as ut,jsxs as ns}from"react/jsx-runtime";var zt="k-button",Pa=[s.hover,s.focus,s.active,s.selected,s.disabled],Ea={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]},Be={size:n.medium,rounded:f.medium,fillMode:d.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},h=e=>{let{size:t=Be.size,rounded:o=Be.rounded,fillMode:r=Be.fillMode,themeColor:p=Be.themeColor,showArrow:c=Be.showArrow,arrowIconName:i=Be.arrowIconName,hover:u,focus:b,active:x,selected:N,disabled:L,icon:l,text:k,iconClassName:v,...S}=e,C=l!==void 0,T=e.children!==void 0;return ns("button",{...S,className:a(e.className,zt,g(zt,{size:t,rounded:o,fillMode:r,themeColor:p}),M(zt,{hover:u,focus:b,active:x,disabled:L,selected:N}),{"k-icon-button":!k&&!T&&C}),children:[l&&ut(I,{className:a(v,"k-button-icon"),icon:l}),k?ns(Oa,{children:[k&&ut("span",{className:"k-button-text",children:k}),e.children]}):e.children&&ut("span",{className:"k-button-text",children:e.children}),c&&ut("span",{className:"k-menu-button-arrow k-button-arrow",children:ut(I,{icon:i})})]})};h.states=Pa;h.options=Ea;h.className=zt;h.defaultOptions=Be;import{jsx as Ka}from"react/jsx-runtime";var Pt=e=>Ka(h,{icon:"folder",...e,children:void 0});import{jsx as Ra}from"react/jsx-runtime";var oo=e=>Ra(h,{icon:"folder",children:"Button",...e});import{jsx as Cl}from"react/jsx-runtime";import{jsx as $a}from"react/jsx-runtime";var ft="k-button-group",Ha=[s.disabled],Ga={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},rs={fillMode:d.solid},E=e=>{let{fillMode:t=rs.fillMode,disabled:o,stretched:r,...p}=e;return $a("div",{...p,className:a(e.className,ft,g(ft,{fillMode:t}),M(ft,{disabled:o}),{[`${ft}-stretched`]:r}),children:e.children})};E.states=Ha;E.options=Ga;E.className=ft;E.defaultOptions=rs;import{Fragment as Dl,jsx as $l,jsxs as Vl}from"react/jsx-runtime";import{Fragment as ql,jsx as Ul,jsxs as Wl}from"react/jsx-runtime";import{Fragment as tp,jsx as ep,jsxs as op}from"react/jsx-runtime";import{Fragment as lp,jsx as ip,jsxs as pp}from"react/jsx-runtime";import{jsx as _a}from"react/jsx-runtime";var Et="k-input",Da=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Va={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ot={size:n.medium,rounded:n.medium,fillMode:d.solid},w=e=>{let{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:u,size:b=Ot.size,rounded:x=Ot.rounded,fillMode:N=Ot.fillMode,...L}=e;return _a("span",{...L,className:a(e.className,Et,g(Et,{size:b,rounded:x,fillMode:N}),M(Et,{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:u}))})};w.states=Da;w.options=Va;w.className=Et;w.defaultOptions=Ot;import{jsx as Fa}from"react/jsx-runtime";var Kt="k-picker",Xa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ja={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Rt={size:n.medium,rounded:f.medium,fillMode:d.solid},j=e=>{let{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:u,size:b=Rt.size,rounded:x=Rt.rounded,fillMode:N=Rt.fillMode,...L}=e;return Fa("span",{...L,className:a(e.className,Kt,g(Kt,{size:b,rounded:x,fillMode:N}),M(Kt,{hover:t,focus:o,disabled:r,invalid:p,valid:c,loading:i,readonly:u})),children:e.children})};j.states=Xa;j.options=Ja;j.className=Kt;j.defaultOptions=Rt;import{Fragment as Wa,jsx as so}from"react/jsx-runtime";var is="k-clear-value",Ua=[s.disabled,s.loading,s.readonly],qa={},ee=e=>{let{disabled:t,loading:o,readonly:r,value:p}=e;return t||r||o||!p?so(Wa,{}):so("span",{className:a(e.className,is),children:so(I,{icon:"x"})})};ee.states=Ua;ee.options=qa;ee.className=is;import{jsx as Za}from"react/jsx-runtime";var ao="k-input-inner",Ya=[],Qa={},Ht={type:"text",autocomplete:"off",value:"",placeholder:""},te=e=>{let{value:t=Ht.value,type:o=Ht.type,placeholder:r=Ht.placeholder,autocomplete:p=Ht.autocomplete,...c}=e;return Za("input",{...c,type:o,className:a(e.className,ao,g(ao,e)),placeholder:r,autoComplete:p,defaultValue:t})};te.states=Ya;te.options=Qa;te.className=ao;import{jsx as ls,jsxs as tn}from"react/jsx-runtime";var no="k-input-inner",ja=[],en={},we=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:p,valueIconName:c,...i}=e;return tn("span",{...i,className:a(e.className,no,g(no,e)),children:[p,!p&&c&&ls(I,{className:"k-input-value-icon",icon:c}),r&&!t&&o,r&&t&&ls("span",{className:"k-input-value-text",children:t})]})};we.states=ja;we.options=en;we.className=no;import{jsx as an}from"react/jsx-runtime";var ro="k-input-inner",on=[],sn={},ps={value:"",placeholder:""},io=e=>{let{value:t=ps.value,placeholder:o=ps.placeholder,rows:r,...p}=e;return an("textarea",{...p,className:a(e.className,ro,g(ro,e)),placeholder:o,rows:r,defaultValue:t})};io.states=on;io.options=sn;io.className=ro;import{Fragment as rn,jsx as cs}from"react/jsx-runtime";var ds="k-input-loading-icon",nn=[s.disabled,s.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?cs(rn,{}):cs("span",{className:a(e.className,ds,"k-icon k-i-loading")})};F.states=nn;F.className=ds;import{Fragment as cn,jsx as ms}from"react/jsx-runtime";var us="k-input-validation-icon",ln=[s.valid,s.invalid,s.disabled,s.loading],pn={},X=e=>{let{valid:t,invalid:o,disabled:r,loading:p}=e,c=o?"warning-circle":"check-circle";return r||p||!!!(t||o)?ms(cn,{}):ms(I,{className:a(us),icon:c})};X.states=ln;X.options=pn;X.className=us;import{Fragment as un,jsx as fs}from"react/jsx-runtime";var dn="k-input-prefix",mn={direction:"horizontal"},ne=e=>{let{direction:t=mn.direction,...o}=e;return e.children?fs("span",{...o,className:a(dn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):fs(un,{})};import{Fragment as xn,jsx as bs}from"react/jsx-runtime";var fn="k-input-suffix",bn={direction:"horizontal"},re=e=>{let{direction:t=bn.direction,...o}=e;return e.children?bs("span",{...o,className:a(fn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):bs(xn,{})};import{jsx as Zp}from"react/jsx-runtime";import{jsx as oc}from"react/jsx-runtime";import{jsx as Nn}from"react/jsx-runtime";var xs="k-input-separator",hn={direction:"vertical"},pe=e=>{let{direction:t=hn.direction,...o}=e;return Nn("span",{...o,className:a(xs,e.className,{[`${xs}-${t}`]:t})})};import{jsx as hs,jsxs as Ln}from"react/jsx-runtime";var Ns="k-color-preview",kn=[],vn={},Ne=e=>{let{color:t,iconName:o,...r}=e;return Ln("span",{...r,className:a(e.className,Ns,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&hs(I,{icon:o,className:"k-color-preview-icon"}),hs("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ne.states=kn;Ne.options=vn;Ne.className=Ns;import{jsx as ks}from"react/jsx-runtime";var vs="k-animation-container",Sn=[],gn={},Ls={positionMode:"absolute"},ke=e=>{let{positionMode:t=Ls.positionMode,animationStyle:o,offset:r,...p}=e;return ks("div",{...p,style:{...r,...e.style},className:a(e.className,vs,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:ks("div",{className:"k-child-animation-container",style:o,children:e.children})})};ke.states=Sn;ke.options=gn;ke.className=vs;ke.defaultOptions=Ls;import{jsx as Ss}from"react/jsx-runtime";var gs="k-popup",In=[],Mn={},Is={positionMode:"absolute"},G=e=>{let{offset:t,positionMode:o=Is.positionMode,animationStyle:r,...p}=e;return Ss(ke,{positionMode:o,offset:t,animationStyle:r,children:Ss("div",{...p,className:a(e.className,gs),children:e.children})})};G.states=In;G.options=Mn;G.className=gs;G.defaultOptions=Is;import{jsx as Tn}from"react/jsx-runtime";var Gt="k-actions",yn=[],Cn={},lo={alignment:"start",orientation:"horizontal"},ve=e=>{let{alignment:t=lo.alignment,orientation:o=lo.orientation,...r}=e;return Tn("div",{...r,className:a(Gt,{[`${Gt}-${t}`]:t,[`${Gt}-${o}`]:o},e.className),children:e.children})};ve.states=yn;ve.options=Cn;ve.className=Gt;ve.defaultOptions=lo;import{jsx as Bn}from"react/jsx-runtime";var An="k-actionsheet-footer",Ms={alignment:"stretched",orientation:"horizontal"},bt=e=>{let{alignment:t=Ms.alignment,orientation:o=Ms.orientation,template:r,as:p=r?"div":ve,...c}=e;return Bn(p,{...c,...!r&&{alignment:t,orientation:o},className:a(e.className,An),children:e.children})};import{jsx as xt,jsxs as Pn}from"react/jsx-runtime";var ys="k-searchbox",wn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],zn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},po={showIcon:!0,icon:"search",size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode},ce=e=>{let{value:t,placeholder:o,size:r,rounded:p,fillMode:c,hover:i,focus:u,valid:b,invalid:x,required:N,loading:L,disabled:l,showIcon:k=po.showIcon,icon:v=po.icon,...S}=e;return Pn(w,{...S,size:r,rounded:p,fillMode:c,hover:i,focus:u,valid:b,invalid:x,required:N,loading:L,disabled:l,className:a(e.className,ys),children:[k&&xt(I,{className:"k-input-icon",icon:v}),xt(te,{placeholder:o,value:t}),xt(F,{...e}),xt(X,{...e}),xt(ee,{...e})]})};ce.states=wn;ce.options=zn;ce.className=ys;ce.defaultOptions=po;import{jsx as td}from"react/jsx-runtime";import{Fragment as Cs,jsx as Le,jsxs as co}from"react/jsx-runtime";var Ts="k-textbox",En=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],On={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},ze={showClearButton:!0,showValidationIcon:!0,size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},Se=e=>{let{size:t=ze.size,rounded:o=ze.rounded,fillMode:r=ze.fillMode,separators:p=ze.separators,showClearButton:c=ze.showClearButton,showValidationIcon:i=ze.showValidationIcon,prefix:u,suffix:b,type:x,value:N,placeholder:L,hover:l,focus:k,valid:v,invalid:S,required:C,loading:T,disabled:z,readonly:D,...he}=e;return co(w,{...he,size:t,rounded:o,fillMode:r,hover:l,focus:k,valid:v,invalid:S,required:C,loading:T,disabled:z,readonly:D,className:a(e.className,Ts),children:[u&&co(Cs,{children:[Le(ne,{children:u}),p&&Le(pe,{})]}),Le(te,{placeholder:L,value:N,type:x}),i&&Le(X,{valid:v,invalid:S,loading:T,disabled:z}),Le(F,{loading:T,disabled:z}),c&&Le(ee,{loading:T,disabled:z,readonly:D,value:N}),b&&co(Cs,{children:[p&&Le(pe,{}),Le(re,{children:b})]})]})};Se.states=En;Se.options=On;Se.className=Ts;Se.defaultOptions=ze;import{jsx as md}from"react/jsx-runtime";import{Fragment as Nd,jsx as hd}from"react/jsx-runtime";import{Fragment as Md,jsx as Id}from"react/jsx-runtime";import{jsx as ge,jsxs as mo}from"react/jsx-runtime";var Bs="k-actionsheet-titlebar",Kn={},U=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:p,filter:c,input:i,inputValue:u,inputPlaceholder:b,adaptive:x,children:N,...L}=e;return mo("div",{...L,className:a(e.className,Bs),children:[mo("div",{className:"k-actionsheet-titlebar-group",children:[r&&ge("div",{className:"k-actionsheet-actions",children:r}),!N&&mo("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})]}),N&&ge("div",{className:"k-actionsheet-title",children:N}),p&&ge("div",{className:"k-actionsheet-actions",children:p})]}),(i||c)&&ge("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?ge(Se,{value:u,placeholder:b,size:x?"large":"medium"}):ge(ce,{placeholder:"Filter",size:x?"large":"medium"})})]})};U.className=Bs;U.defaultOptions=Kn;import{jsx as uo,jsxs as $n}from"react/jsx-runtime";var fo="k-actionsheet-view",Rn=[],Hn={},Gn={},Je=e=>{let{adaptive:t,animated:o,children:r,header:p,footer:c,...i}=e,u=p?.type===U&&uo(U,{adaptive:t,...p?.props}),b=c?.type===bt&&uo(bt,{...c?.props});return $n("div",{...i,className:a(e.className,fo,{[`${fo}-animated`]:o}),children:[u,uo("div",{className:"k-actionsheet-content",children:r}),b]})};Je.states=Rn;Je.options=Hn;Je.className=fo;Je.defaultOptions=Gn;import{jsx as $t,jsxs as _n}from"react/jsx-runtime";var ws="k-actionsheet",Dn=[],Vn={},ht={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},oe=e=>{let{side:t=ht.side,fullscreen:o=ht.fullscreen,adaptive:r=ht.adaptive,overlay:p=ht.overlay,template:c,children:i,header:u,footer:b,...x}=e;return _n("div",{className:"k-actionsheet-container",children:[p&&$t("div",{className:"k-overlay"}),$t(ke,{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:$t("div",{...x,className:a(e.className,ws,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:c||$t(Je,{header:u,footer:b,adaptive:r,...e,children:i})})})]})};oe.states=Dn;oe.options=Vn;oe.className=ws;oe.defaultOptions=ht;import{jsx as Wd}from"react/jsx-runtime";import{Fragment as Jn,jsx as Nt,jsxs as bo}from"react/jsx-runtime";var xo="k-actionsheet-item",Xn=[s.hover,s.focus,s.selected,s.disabled],ho=e=>{let{iconName:t,text:o,description:r,hover:p,focus:c,selected:i,disabled:u,...b}=e;return bo("span",{...b,className:a(e.className,xo,M(xo,{hover:p,focus:c,selected:i,disabled:u})),children:[!e.children&&Nt(Jn,{children:bo("span",{className:"k-actionsheet-action",children:[t&&Nt("span",{className:"k-icon-wrap",children:Nt(I,{className:"k-actionsheet-item-icon",icon:t})}),bo("span",{className:"k-actionsheet-item-text",children:[o&&Nt("span",{className:"k-actionsheet-item-title",children:o}),r&&Nt("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};ho.states=Xn;ho.className=xo;import{jsx as am,jsxs as nm}from"react/jsx-runtime";import{jsx as pm}from"react/jsx-runtime";import{jsx as um}from"react/jsx-runtime";import{jsx as hm}from"react/jsx-runtime";import{jsx as Fe,jsxs as No}from"react/jsx-runtime";var kt="k-slider",Fn=[s.hover,s.focus,s.active,s.disabled,s.readonly],Un={},Ie={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},J=e=>{let{type:t=Ie.type,orientation:o=Ie.orientation,readonly:r=Ie.readonly,disabled:p=Ie.disabled,handlePosition:c=Ie.handlePosition,showButtons:i=Ie.showButtons,showTicks:u=Ie.showTicks,hover:b,focus:x,active:N,trackStyle:L,dir:l,...k}=e,v,S;return o==="horizontal"?(v=l==="rtl"?"caret-alt-left":"caret-alt-right",S=l==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(v="caret-alt-up",S="caret-alt-down"),No("div",{...k,className:a(kt,e.className,M(kt,{readonly:r,disabled:p}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:l,children:[i&&Fe(h,{className:"k-button-decrease",rounded:"full",icon:S}),No("div",{className:"k-slider-track-wrap",children:[u&&Fe("ul",{className:"k-reset k-slider-items",children:e.children}),No("div",{className:"k-slider-track",style:L,children:[Fe("div",{className:"k-slider-selection"}),t==="range"&&Fe("span",{className:a("k-draghandle","k-draghandle-start",M(kt,{hover:b,focus:x,active:N}))}),Fe("span",{className:a("k-draghandle",`k-draghandle-${c}`,M(kt,{hover:b,focus:x,active:N}))})]})]}),i&&Fe(h,{className:"k-button-increase",rounded:"full",icon:v})]})};J.states=Fn;J.options=Un;J.className=kt;J.defaultOptions=Ie;import{jsx as Ps}from"react/jsx-runtime";var Es="k-tick",qn=[],Wn={},Os={label:!1},K=e=>{let{style:t,label:o=Os.label,orientation:r,large:p,text:c,...i}=e;return Ps("li",{...i,className:a(e.className,Es,{[`k-tick-${r}`]:r,"k-tick-large":p}),style:t,children:o&&Ps("span",{className:"k-label",children:c})})};K.states=qn;K.options=Wn;K.className=Es;K.defaultOptions=Os;import{Fragment as Yn,jsx as q,jsxs as Qn}from"react/jsx-runtime";var Ks=e=>q(J,{children:Qn(Yn,{children:[q(K,{className:"k-first",label:!0,large:!0,text:"0"}),q(K,{}),q(K,{}),q(K,{}),q(K,{}),q(K,{label:!0,large:!0,text:"5"}),q(K,{}),q(K,{}),q(K,{}),q(K,{}),q(K,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as _m,jsx as Vm,jsxs as Xm}from"react/jsx-runtime";import{Fragment as Wm,jsx as qm,jsxs as Ym}from"react/jsx-runtime";import{Fragment as tu,jsx as eu,jsxs as ou}from"react/jsx-runtime";import{jsx as Zn}from"react/jsx-runtime";var ko=e=>Zn(J,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as jn}from"react/jsx-runtime";var vo=e=>jn(J,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Rs,jsxs as or}from"react/jsx-runtime";var Hs="k-spin-button",er=[],tr={size:[n.small,n.medium,n.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Lo={size:n.medium,fillMode:d.solid},Ue=e=>{let{size:t=Lo.size,fillMode:o=Lo.fillMode,...r}=e;return or("span",{...r,className:a(Hs,e.className),children:[Rs(h,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Rs(h,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Ue.states=er;Ue.options=tr;Ue.className=Hs;Ue.defaultOptions=Lo;import{Fragment as Gs,jsx as de,jsxs as So}from"react/jsx-runtime";var $s="k-numerictextbox",sr=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],ar={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Pe={showSpinButton:!0,showClearButton:!0,size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},R=e=>{let{size:t=Pe.size,rounded:o=Pe.rounded,fillMode:r=Pe.fillMode,separators:p=Pe.separators,showClearButton:c=Pe.showClearButton,showSpinButton:i=Pe.showSpinButton,prefix:u,suffix:b,value:x,placeholder:N,hover:L,focus:l,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:z,...D}=e;return So(w,{...D,size:t,rounded:o,fillMode:r,hover:L,focus:l,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:z,className:a(e.className,$s),children:[u&&So(Gs,{children:[de(ne,{children:u}),p&&de(pe,{})]}),de(te,{placeholder:N,value:x}),de(X,{valid:k,invalid:v,loading:C,disabled:T}),de(F,{loading:C,disabled:T}),c&&de(ee,{loading:C,disabled:T,readonly:z,value:x}),b&&So(Gs,{children:[p&&de(pe,{}),de(re,{children:b})]}),i&&de(Ue,{className:"k-input-spinner",size:t,fillMode:r})]})};R.states=sr;R.options=ar;R.className=$s;R.defaultOptions=Pe;import{jsx as zu}from"react/jsx-runtime";import{jsx as rr}from"react/jsx-runtime";var nr="k-no-data",vt=e=>rr("span",{className:a(nr,e.className),children:e.children});import{jsx as qe,jsxs as Vs}from"react/jsx-runtime";var go="k-list",ir=[],lr={size:[n.small,n.medium,n.large]},_s={size:n.medium},P=e=>{let{size:t=_s.size,virtualization:o,children:r,optionLabel:p,customValue:c,screenReaders:i,...u}=e,b,x,N,L,l=[];return r?r.map((k,v)=>{k.type===$?(k.props.root===!0?(b=k.props.label,k.props.children.map((S,C)=>{l.push(qe(y,{...S.props},`optChild-${C}-${new Date().getTime()}`))})):k.props.children.forEach((S,C)=>{let T="";C===0&&(T=k.props.label),l.push(qe(y,{className:C===0?"k-first":"",...S.props,groupLabel:T},`groupLabel-${C}-${new Date().getTime()}`))}),x=qe($,{label:b,virtualization:o,children:l})):k.type===y&&(l.push(qe(y,{...k.props},`${k.type}-${v}`)),N=qe(We,{virtualization:o,children:l}),i&&(L=Vs(vt,{className:"k-sr-only",children:[l.length," items found."]})))}):L=qe(vt,{children:"No data found."}),Vs("div",{...u,className:a(e.className,go,g(go,{size:t}),{"k-virtual-list":o}),children:[p,c,x,N,L]})};P.states=ir;P.options=lr;P.className=go;P.defaultOptions=_s;import{jsx as Ee,jsxs as dr}from"react/jsx-runtime";var Io="k-list",pr=[],cr={size:[n.small,n.medium,n.large]},Xs={size:n.medium},Oe=e=>{let{size:t=Xs.size,virtualization:o,children:r,...p}=e,c,i,u,b=[];return r?r.map((x,N)=>{x.type===$?(x.props.root===!0?(c=x.props.label,x.props.children.map((L,l)=>{b.push(Ee(y,{...L.props},`optChild-${l}-${new Date().getTime()}`))})):(b.push(Ee(Js,{...x.props,children:x.props.label},`listChild-${N}`)),x.props.children.map((L,l)=>{b.push(Ee(y,{...L.props},`fwOptChild-${l}-${new Date().getTime()}`))})),i=Ee($,{label:c,virtualization:o,children:b})):x.type===y&&(b.push(Ee(y,{...x.props},`${x.type}-${N}`)),u=Ee(We,{virtualization:o,children:b}))}):u=Ee(vt,{children:"No data found."}),dr("div",{...p,className:a(e.className,Io,g(Io,{size:t}),{"k-virtual-list":o}),children:[i,u]})};Oe.states=pr;Oe.options=cr;Oe.className=Io;Oe.defaultOptions=Xs;import{jsx as Fs}from"react/jsx-runtime";var Dt="k-checkbox",mr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],ur={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},Mo={size:n.medium,rounded:f.medium},Me=e=>{let{id:t,checked:o,indeterminate:r,hover:p,focus:c,disabled:i,invalid:u,valid:b,required:x,size:N=Mo.size,rounded:L=Mo.rounded,...l}=e;return Fs("span",{className:"k-checkbox-wrap",children:Fs("input",{...l,id:t,type:"checkbox",defaultChecked:o,required:x,className:a(e.className,Dt,g(Dt,{size:N,rounded:L}),M(Dt,{hover:p,focus:c,disabled:i,invalid:u,valid:b,indeterminate:r,checked:o}))})})};Me.states=mr;Me.options=ur;Me.className=Dt;Me.defaultOptions=Mo;import{jsx as xr}from"react/jsx-runtime";var Us="k-checkbox-list",fr=[],br={},qs={layout:"vertical"},Ye=e=>{let{layout:t=qs.layout,...o}=e;return xr("ul",{...o,className:a(e.className,Us,{[`k-list-${t}`]:t}),children:e.children})};Ye.states=fr;Ye.options=br;Ye.className=Us;Ye.defaultOptions=qs;import{jsx as vr}from"react/jsx-runtime";var Ws="k-checkbox-list-item",hr=[],Nr={},kr={},Qe=e=>{let{...t}=e;return vr("li",{...t,className:a(e.className,Ws),children:e.children})};Qe.states=hr;Qe.options=Nr;Qe.className=Ws;Qe.defaultOptions=kr;import{Fragment as lf,jsx as rf,jsxs as pf}from"react/jsx-runtime";import{Fragment as ff,jsx as uf,jsxs as bf}from"react/jsx-runtime";import{Fragment as vf,jsx as kf,jsxs as Lf}from"react/jsx-runtime";import{Fragment as yf,jsx as Mf,jsxs as Cf}from"react/jsx-runtime";import{jsx as wf}from"react/jsx-runtime";import{jsx as Of}from"react/jsx-runtime";import{jsx as Vt,jsxs as Ir}from"react/jsx-runtime";var Co="k-list-item",Lr=[s.hover,s.focus,s.selected,s.disabled],Sr={},gr={},y=e=>{let{text:t,groupLabel:o,group:r,showIcon:p,iconName:c,showCheckbox:i,checked:u,hover:b,focus:x,selected:N,disabled:L,...l}=e,k=t||e.children;return Ir("li",{...l,className:a(e.className,r?"k-list-group-item":Co,M(Co,{hover:b,focus:x,disabled:L,selected:N})),children:[i&&Vt(Me,{checked:u}),p&&Vt(I,{icon:c}),Vt("span",{className:"k-list-item-text",children:k}),o&&o!==""&&Vt("div",{className:"k-list-item-group-label",children:o})]})};y.states=Lr;y.options=Sr;y.className=Co;y.defaultOptions=gr;import{jsx as To,jsxs as yr}from"react/jsx-runtime";var Mr="k-list-content",We=e=>{let{virtualization:t,...o}=e;return yr("div",{...o,className:a(Mr,e.className),children:[To("ul",{className:a("k-list-ul"),children:e.children}),t&&To("div",{className:"k-height-container",children:To("div",{})})]})};import{jsx as Ys}from"react/jsx-runtime";var Cr="k-list-group-sticky-header",Qs=e=>Ys("div",{className:a(Cr,e.className),children:Ys("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Tr,jsx as Zs,jsxs as Ar}from"react/jsx-runtime";var $=e=>{let{virtualization:t,label:o}=e;return Ar(Tr,{children:[o&&Zs(Qs,{children:o}),e.children&&Zs(We,{virtualization:t,children:e.children})]})};import{jsx as js}from"react/jsx-runtime";var Br="k-list-group-item",Js=e=>js("li",{className:a(Br,e.className),children:js("span",{className:"k-list-item-text",children:e.children})});import{jsx as Er}from"react/jsx-runtime";var Ao="k-list-optionlabel",wr=[s.hover,s.focus,s.selected,s.disabled],zr={},Pr={},_t=e=>{let{text:t,hover:o,focus:r,selected:p,disabled:c,...i}=e;return Er("div",{...i,className:a(Ao,M(Ao,{hover:o,focus:r,selected:p,disabled:c})),children:t})};_t.states=wr;_t.options=zr;_t.className=Ao;_t.defaultOptions=Pr;import{jsx as Hr}from"react/jsx-runtime";var Bo="k-list-custom-value",Or=[s.hover,s.focus,s.selected,s.disabled],Kr={},Rr={},ye=e=>{let{text:t,hover:o,focus:r,selected:p,disabled:c,...i}=e;return Hr("div",{...i,className:a(Bo,M(Bo,{hover:o,focus:r,selected:p,disabled:c})),children:t})};ye.states=Or;ye.options=Kr;ye.className=Bo;ye.defaultOptions=Rr;import{jsx as Nb}from"react/jsx-runtime";import{jsx as Sb}from"react/jsx-runtime";import{jsx as yb,jsxs as Cb}from"react/jsx-runtime";import{jsx as wb,jsxs as zb}from"react/jsx-runtime";import{jsx as Kb}from"react/jsx-runtime";import{jsx as $b,jsxs as Db}from"react/jsx-runtime";import{jsx as Jb,jsxs as Fb}from"react/jsx-runtime";import{Fragment as Dr,jsx as V,jsxs as wo}from"react/jsx-runtime";var ea="k-dropdownlist",Gr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],$r={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ze={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:d.solid},Ce=e=>{let{size:t=Ze.size,rounded:o=Ze.rounded,fillMode:r=Ze.fillMode,arrowIconName:p=Ze.arrowIconName,showValue:c=Ze.showValue,valueIconName:i,prefix:u,suffix:b,value:x,placeholder:N,hover:L,focus:l,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:z,popup:D,opened:he,adaptive:lt,adaptiveSettings:pt,adaptiveTitle:Yt,adaptiveSubtitle:Qt,adaptiveFilter:La,...Sa}=e;return wo(Dr,{children:[wo(j,{...Sa,size:t,rounded:o,fillMode:r,hover:L,focus:l,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:z,className:a(e.className,ea,{"k-icon-picker":!c&&i}),children:[V(ne,{children:u}),V(we,{placeholder:N,value:x,showValue:c,valueIconName:i}),V(X,{valid:k,invalid:v,loading:C,disabled:T}),V(F,{loading:C,disabled:T}),V(re,{children:b}),V(h,{className:"k-input-button",icon:p,rounded:null,size:e.size,fillMode:e.fillMode})]}),he&&D&&V(G,{className:"k-list-container k-dropdownlist-popup",children:D}),lt&&V(oe,{adaptive:!0,...pt,header:V(U,{actionsEnd:V(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:La,inputValue:x,inputPlaceholder:N,title:Yt,subtitle:Qt}),children:V("div",{className:"k-list-container",children:wo(P,{size:"large",children:[V(y,{text:"List item"}),V(y,{text:"List item"}),V(y,{text:"List item"})]})})})]})};Ce.states=Gr;Ce.options=$r;Ce.className=ea;Ce.defaultOptions=Ze;import{jsx as Sx}from"react/jsx-runtime";import{jsx as Cx,jsxs as Tx}from"react/jsx-runtime";import{Fragment as Kx,jsx as Ex,jsxs as Ox}from"react/jsx-runtime";import{jsx as $x}from"react/jsx-runtime";import{jsx as Jx,jsxs as Fx}from"react/jsx-runtime";import{jsx as Qx,jsxs as Zx}from"react/jsx-runtime";import{Fragment as rh,jsx as ah,jsxs as nh}from"react/jsx-runtime";import{Fragment as fh,jsx as mh,jsxs as uh}from"react/jsx-runtime";import{Fragment as Bh,jsx as Ah}from"react/jsx-runtime";import{Fragment as Rh,jsx as Kh}from"react/jsx-runtime";import{Fragment as Lt,jsx as A,jsxs as O}from"react/jsx-runtime";var ta="k-colorgradient-inputs",Vr=[],_r={size:[n.small,n.medium,n.large]},oa={mode:"rgba",size:n.medium},je=e=>{let{mode:t=oa.mode,size:o,...r}=e;return O("div",{...r,className:a(ta,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(h,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&O(Lt,{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(Lt,{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(Lt,{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(Lt,{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(Lt,{children:O("div",{className:"k-vstack k-flex-1",children:[A(Se,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};je.states=Vr;je.options=_r;je.className=ta;je.defaultOptions=oa;import{jsx as Re,jsxs as He}from"react/jsx-runtime";var sa="k-colorgradient-color-contrast",Xr=[],Jr={},Fr={},et=()=>He("div",{className:a(sa,"k-vbox"),children:[He("div",{className:"k-contrast-ratio",children:[Re("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),He("span",{className:"k-contrast-validation !k-text-success",children:[Re(I,{icon:"check"}),Re(I,{icon:"check"})]})]}),He("div",{children:[Re("span",{children:"AA: 4.5"}),He("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Re(I,{icon:"check"})]})]}),He("div",{children:[Re("span",{children:"AAA: 7.0"}),He("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Re(I,{icon:"x"})]})]})]});et.states=Xr;et.options=Jr;et.className=sa;et.defaultOptions=Fr;import{jsx as W,jsxs as St}from"react/jsx-runtime";var Xt="k-colorgradient",Ur=[s.hover,s.focus,s.readonly,s.disabled],qr={size:[n.small,n.medium,n.large]},se={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"},Te=e=>{let{size:t=se.size,mode:o=se.mode,readonly:r=se.readonly,disabled:p=se.disabled,gradientStyle:c=se.gradientStyle,dragHandleStyle:i=se.dragHandleStyle,alphaStyle:u=se.alphaStyle,alphaStyleHorizontal:b=se.alphaStyleHorizontal,contrast:x=se.contrast,dir:N,hover:L,focus:l,hoverHandle:k,focusHandle:v,canvasOrientation:S=se.canvasOrientation,...C}=e;return St("div",{...C,className:a(e.className,Xt,g(Xt,{size:t}),M(Xt,{hover:L,focus:l,readonly:r,disabled:p})),dir:N,children:[!S||S==="horizontal"&&St("div",{className:"k-colorgradient-canvas k-hstack",children:[W("div",{className:"k-hsv-rectangle",style:c,children:W("div",{className:"k-hsv-gradient",children:W("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":v}),style:i})})}),St("div",{className:"k-hsv-controls k-hstack",children:[W(vo,{className:"k-hue-slider",hover:k,focus:v}),o!=="rgb"&&o!=="hsv"&&W(vo,{className:"k-alpha-slider",hover:k,focus:v,trackStyle:u})]})]}),S==="vertical"&&St("div",{className:"k-colorgradient-canvas k-vstack",children:[W("div",{className:"k-hsv-rectangle",style:c,children:W("div",{className:"k-hsv-gradient",children:W("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":v}),style:i})})}),St("div",{className:"k-hsv-controls k-vstack",children:[W(ko,{className:"k-hue-slider",hover:k,focus:v}),o!=="rgb"&&o!=="hsv"&&W(ko,{className:"k-alpha-slider",hover:k,focus:v,trackStyle:b})]})]}),W(je,{mode:e.mode,size:t}),x&&W(et,{})]})};Te.states=Ur;Te.options=qr;Te.className=Xt;Te.defaultOptions=se;import{jsx as lN}from"react/jsx-runtime";import{jsx as mN}from"react/jsx-runtime";import{jsx as Wr}from"react/jsx-runtime";var aa=e=>Wr("tr",{children:e.children});import{jsx as Zr}from"react/jsx-runtime";var zo="k-colorpalette-tile",Yr=[s.hover,s.focus,s.selected],Qr={},gt=e=>{let{color:t,tileSize:o,hover:r,focus:p,selected:c,...i}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Zr("td",{...i,className:a(e.className,zo,M(zo,{hover:r,focus:p,selected:c})),style:u})};gt.states=Yr;gt.options=Qr;gt.className=zo;import{jsx as It}from"react/jsx-runtime";var Jt="k-colorpalette",jr=[s.disabled],ei={size:[n.small,n.medium,n.large]},Po={columns:10,size:n.medium},tt=e=>{let{size:t=Po.size,palette:o,columns:r=Po.columns,tileSize:p,disabled:c,...i}=e,u=[];if(o){let b=r||o.columns,x=o.colors?o.colors:o;Array.isArray(x)&&Array.from({length:Math.ceil(x.length/b)},(N,L)=>{let l=[];x.slice(L*b,(L+1)*b).map((v,S)=>{l.push(It(gt,{color:v,tileSize:p},S))});let k=It(aa,{children:l},L);u.push(k)})}return It("div",{...i,className:a(e.className,Jt,M(Jt,{disabled:c}),g(Jt,{size:t})),children:It("table",{className:"k-colorpalette-table",children:It("tbody",{children:u.length>0?u:e.children})})})};tt.states=jr;tt.options=ei;tt.className=Jt;tt.defaultOptions=Po;var Eo={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 ON}from"react/jsx-runtime";import{jsx as Y,jsxs as ot}from"react/jsx-runtime";var Ft="k-coloreditor",ti=[s.focus],oi={size:[n.small,n.medium,n.large]},st={size:n.medium,view:"gradient",palette:Eo.office,actionButtons:!0,canvasOrientation:"horizontal"},ie=e=>{let{size:t=st.size,view:o=st.view,palette:r=st.palette,color:p,currentColor:c,focus:i,focusView:u,dir:b,group:x,actionButtons:N=st.actionButtons,canvasOrientation:L=st.canvasOrientation,...l}=e;return ot("div",{...l,className:a(e.className,"k-flatcolorpicker",Ft,g(Ft,{size:t}),M(Ft,{focus:i})),dir:b,children:[ot("div",{className:"k-coloreditor-header k-hstack",children:[Y("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&ot(E,{fillMode:"flat",children:[Y(h,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),Y(h,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),Y("div",{className:"k-spacer"}),ot("div",{className:"k-coloreditor-header-actions k-hstack",children:[Y(h,{fillMode:"flat",icon:"droplet-slash",size:t}),ot("div",{className:"k-coloreditor-preview k-vstack",children:[Y(Ne,{className:"k-coloreditor-preview-color",color:p}),Y(Ne,{className:"k-coloreditor-current-color",color:c})]})]})]}),Y("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?Y(Te,{focus:u,size:t,canvasOrientation:L}):Y(tt,{palette:r,size:t})}),N&&ot(ve,{className:"k-coloreditor-footer",alignment:"start",children:[Y(h,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Y(h,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ie.states=ti;ie.options=oi;ie.className=Ft;ie.defaultOptions=st;import{jsx as ek}from"react/jsx-runtime";import{jsx as ak}from"react/jsx-runtime";import{jsx as lk}from"react/jsx-runtime";import{jsx as mk}from"react/jsx-runtime";import{Fragment as ni,jsx as Q,jsxs as Ko}from"react/jsx-runtime";var na="k-colorpicker",si=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled],ai={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Mt={arrowIconName:"caret-alt-down",size:j.defaultOptions.size,rounded:j.defaultOptions.rounded,fillMode:j.defaultOptions.fillMode},me=e=>{let{size:t=Mt.size,rounded:o=Mt.rounded,fillMode:r=Mt.fillMode,arrowIconName:p=Mt.arrowIconName,prefix:c,suffix:i,value:u,placeholder:b,hover:x,focus:N,valid:L,invalid:l,required:k,disabled:v,valueIconName:S,popup:C,opened:T,adaptive:z,adaptiveSettings:D,adaptiveTitle:he,adaptiveSubtitle:lt,...pt}=e;return Ko(ni,{children:[Ko(j,{...pt,size:t,rounded:o,fillMode:r,hover:x,focus:N,valid:L,invalid:l,required:k,disabled:v,className:a(e.className,na,"k-icon-picker"),children:[Q(ne,{children:c}),Q(we,{placeholder:b,value:u,showValue:!1,valueIcon:Q(Ne,{className:"k-value-icon",color:u,iconName:S}),valueIconName:S}),Q(re,{children:i}),Q(h,{className:"k-input-button",icon:p,rounded:null,size:t,fillMode:r})]}),T&&C&&Q(G,{className:"k-colorpicker-popup",children:C}),z&&Q(oe,{adaptive:!0,...D,header:Q(U,{actionsEnd:Q(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:he,subtitle:lt}),footer:Ko(bt,{children:[Q(h,{text:"Cancel",size:"large",themeColor:"base"}),Q(h,{text:"Set",size:"large",themeColor:"primary"})]}),children:Q(ie,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};me.states=si;me.options=ai;me.className=na;me.defaultOptions=Mt;import{jsx as zk}from"react/jsx-runtime";import{jsx as Rk}from"react/jsx-runtime";import{jsx as Vk}from"react/jsx-runtime";import{jsx as Fk}from"react/jsx-runtime";import{jsx as Yk}from"react/jsx-runtime";import{jsx as ev}from"react/jsx-runtime";import{Fragment as Ro,jsx as H,jsxs as yt}from"react/jsx-runtime";var ra="k-combobox",ii=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],li={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ct={size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},Ge=e=>{let{size:t=Ct.size,rounded:o=Ct.rounded,fillMode:r=Ct.fillMode,separators:p=Ct.separators,prefix:c,suffix:i,value:u,placeholder:b,hover:x,focus:N,valid:L,invalid:l,required:k,loading:v,disabled:S,popup:C,opened:T,readonly:z,adaptive:D,adaptiveSettings:he,adaptiveTitle:lt,adaptiveSubtitle:pt,adaptiveCustomValue:Yt,...Qt}=e;return yt(Ro,{children:[yt(w,{...Qt,size:t,rounded:o,fillMode:r,hover:x,focus:N,valid:L,invalid:l,required:k,loading:v,disabled:S,readonly:z,className:a(e.className,ra),children:[c&&yt(Ro,{children:[H(ne,{children:c}),p&&H(pe,{})]}),H(te,{placeholder:b,value:u}),H(X,{valid:L,invalid:l,loading:v,disabled:S}),H(F,{loading:v,disabled:S}),H(ee,{loading:v,disabled:S,readonly:z,value:u}),i&&yt