UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 65.9 kB
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,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 Ta,jsx as ts}from"react/jsx-runtime";var jt="k-icon k-font-icon",Ma=[],ya={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]},Ca={},ct=e=>{let{size:t,themeColor:o,icon:r,rotate:i,flip:l,...p}=e;return r?ts("span",{...p,className:a(e.className,jt,g(jt,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):ts(Ta,{})};ct.states=Ma;ct.options=ya;ct.className=jt;ct.defaultOptions=Ca;var os=ct;import{Fragment as wa,jsx as zt}from"react/jsx-runtime";var eo="k-icon k-svg-icon",Aa=[],Ba={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]},ss={viewBox:"0 0 24 24"},dt=e=>{let{size:t,themeColor:o,rotate:r,flip:i,viewBox:l=ss.viewBox,icon:p,...u}=e;if(!p)return zt(wa,{});p==="none"&&{...u,className:a(e.className,eo,"k-none")};let b=typeof p=="object"&&p.name&&p.name;return zt("span",{...u,className:a(e.className,eo,g("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:zt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:l,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:e.children})})};dt.states=Aa;dt.options=Ba;dt.className=eo;dt.defaultOptions=ss;var to=dt;import*as as from"@progress/kendo-svg-icons";import{Fragment as ns,jsx as mt}from"react/jsx-runtime";var za=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ea=[],Pa={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]},oo={viewBox:"0 0 24 24",type:"svg"},I=e=>{let{size:t,themeColor:o,icon:r,type:i=oo.type,rotate:l,flip:p,viewBox:u=oo.viewBox,...b}=e;if(!r)return mt(ns,{});if(i==="svg"){if(r==="none")return mt(to,{...b,icon:r,size:t});let h=za(`${r}-icon`);return as[h]?mt(to,{...b,icon:as[h],size:t,themeColor:o,rotate:l,flip:p,viewBox:u}):mt(ns,{})}return mt(os,{...b,icon:r,size:t,themeColor:o,rotate:l,flip:p})};I.states=Ea;I.options=Pa;I.defaultOptions=oo;import{Fragment as Ra,jsx as ut,jsxs as rs}from"react/jsx-runtime";var Et="k-button",Oa=[s.hover,s.focus,s.active,s.selected,s.disabled],Ka={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"},x=e=>{let{size:t=Be.size,rounded:o=Be.rounded,fillMode:r=Be.fillMode,themeColor:i=Be.themeColor,showArrow:l=Be.showArrow,arrowIconName:p=Be.arrowIconName,hover:u,focus:b,active:h,selected:N,disabled:L,icon:c,text:k,iconClassName:v,...S}=e,C=c!==void 0,T=e.children!==void 0;return rs("button",{...S,className:a(e.className,Et,g(Et,{size:t,rounded:o,fillMode:r,themeColor:i}),M(Et,{hover:u,focus:b,active:h,disabled:L,selected:N}),{"k-icon-button":!k&&!T&&C}),children:[c&&ut(I,{className:a(v,"k-button-icon"),icon:c}),k?rs(Ra,{children:[k&&ut("span",{className:"k-button-text",children:k}),e.children]}):e.children&&ut("span",{className:"k-button-text",children:e.children}),l&&ut("span",{className:"k-menu-button-arrow k-button-arrow",children:ut(I,{icon:p})})]})};x.states=Oa;x.options=Ka;x.className=Et;x.defaultOptions=Be;import{jsx as Ha}from"react/jsx-runtime";var Pt=e=>Ha(x,{icon:"folder",...e,children:void 0});import{jsx as Ga}from"react/jsx-runtime";var so=e=>Ga(x,{icon:"folder",children:"Button",...e});import{jsx as Al}from"react/jsx-runtime";import{jsx as Va}from"react/jsx-runtime";var ft="k-button-group",$a=[s.disabled],Da={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},is={fillMode:d.solid},P=e=>{let{fillMode:t=is.fillMode,disabled:o,stretched:r,...i}=e;return Va("div",{...i,className:a(e.className,ft,g(ft,{fillMode:t}),M(ft,{disabled:o}),{[`${ft}-stretched`]:r}),children:e.children})};P.states=$a;P.options=Da;P.className=ft;P.defaultOptions=is;import{Fragment as _l,jsx as Vl,jsxs as Xl}from"react/jsx-runtime";import{Fragment as Zl,jsx as Wl,jsxs as Ql}from"react/jsx-runtime";import{Fragment as sp,jsx as op,jsxs as ap}from"react/jsx-runtime";import{Fragment as cp,jsx as pp,jsxs as dp}from"react/jsx-runtime";import{jsx as Ja}from"react/jsx-runtime";var Ot="k-input",_a=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Xa={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Kt={size:n.medium,rounded:n.medium,fillMode:d.solid},w=e=>{let{hover:t,focus:o,disabled:r,invalid:i,valid:l,loading:p,readonly:u,size:b=Kt.size,rounded:h=Kt.rounded,fillMode:N=Kt.fillMode,...L}=e;return Ja("span",{...L,className:a(e.className,Ot,g(Ot,{size:b,rounded:h,fillMode:N}),M(Ot,{hover:t,focus:o,disabled:r,invalid:i,valid:l,loading:p,readonly:u}))})};w.states=_a;w.options=Xa;w.className=Ot;w.defaultOptions=Kt;import{jsx as qa}from"react/jsx-runtime";var Rt="k-picker",Fa=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ua={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ht={size:n.medium,rounded:f.medium,fillMode:d.solid},Y=e=>{let{hover:t,focus:o,disabled:r,invalid:i,valid:l,loading:p,readonly:u,size:b=Ht.size,rounded:h=Ht.rounded,fillMode:N=Ht.fillMode,...L}=e;return qa("span",{...L,className:a(e.className,Rt,g(Rt,{size:b,rounded:h,fillMode:N}),M(Rt,{hover:t,focus:o,disabled:r,invalid:i,valid:l,loading:p,readonly:u})),children:e.children})};Y.states=Fa;Y.options=Ua;Y.className=Rt;Y.defaultOptions=Ht;import{Fragment as Qa,jsx as ao}from"react/jsx-runtime";var ls="k-clear-value",Wa=[s.disabled,s.loading,s.readonly],Za={},j=e=>{let{disabled:t,loading:o,readonly:r,value:i}=e;return t||r||o||!i?ao(Qa,{}):ao("span",{className:a(e.className,ls),children:ao(I,{icon:"x"})})};j.states=Wa;j.options=Za;j.className=ls;import{jsx as en}from"react/jsx-runtime";var no="k-input-inner",Ya=[],ja={},Gt={type:"text",autocomplete:"off",value:"",placeholder:""},ee=e=>{let{value:t=Gt.value,type:o=Gt.type,placeholder:r=Gt.placeholder,autocomplete:i=Gt.autocomplete,...l}=e;return en("input",{...l,type:o,className:a(e.className,no,g(no,e)),placeholder:r,autoComplete:i,defaultValue:t})};ee.states=Ya;ee.options=ja;ee.className=no;import{jsx as ps,jsxs as sn}from"react/jsx-runtime";var ro="k-input-inner",tn=[],on={},we=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:i,valueIconName:l,...p}=e;return sn("span",{...p,className:a(e.className,ro,g(ro,e)),children:[i,!i&&l&&ps(I,{className:"k-input-value-icon",icon:l}),r&&!t&&o,r&&t&&ps("span",{className:"k-input-value-text",children:t})]})};we.states=tn;we.options=on;we.className=ro;import{jsx as rn}from"react/jsx-runtime";var io="k-input-inner",an=[],nn={},cs={value:"",placeholder:""},lo=e=>{let{value:t=cs.value,placeholder:o=cs.placeholder,rows:r,...i}=e;return rn("textarea",{...i,className:a(e.className,io,g(io,e)),placeholder:o,rows:r,defaultValue:t})};lo.states=an;lo.options=nn;lo.className=io;import{Fragment as pn,jsx as ds}from"react/jsx-runtime";var ms="k-input-loading-icon",ln=[s.disabled,s.loading],J=e=>{let{disabled:t,loading:o}=e;return t||!o?ds(pn,{}):ds("span",{className:a(e.className,ms,"k-icon k-i-loading")})};J.states=ln;J.className=ms;import{Fragment as mn,jsx as us}from"react/jsx-runtime";var fs="k-input-validation-icon",cn=[s.valid,s.invalid,s.disabled,s.loading],dn={},_=e=>{let{valid:t,invalid:o,disabled:r,loading:i}=e,l=o?"warning-circle":"check-circle";return r||i||!!!(t||o)?us(mn,{}):us(I,{className:a(fs),icon:l})};_.states=cn;_.options=dn;_.className=fs;import{Fragment as bn,jsx as bs}from"react/jsx-runtime";var un="k-input-prefix",fn={direction:"horizontal"},ae=e=>{let{direction:t=fn.direction,...o}=e;return e.children?bs("span",{...o,className:a(un,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):bs(bn,{})};import{Fragment as Nn,jsx as xs}from"react/jsx-runtime";var xn="k-input-suffix",hn={direction:"horizontal"},ne=e=>{let{direction:t=hn.direction,...o}=e;return e.children?xs("span",{...o,className:a(xn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):xs(Nn,{})};import{jsx as ec}from"react/jsx-runtime";import{jsx as ac}from"react/jsx-runtime";import{jsx as vn}from"react/jsx-runtime";var hs="k-input-separator",kn={direction:"vertical"},ce=e=>{let{direction:t=kn.direction,...o}=e;return vn("span",{...o,className:a(hs,e.className,{[`${hs}-${t}`]:t})})};import{jsx as Ns,jsxs as gn}from"react/jsx-runtime";var ks="k-color-preview",Ln=[],Sn={},Ne=e=>{let{color:t,iconName:o,...r}=e;return gn("span",{...r,className:a(e.className,ks,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Ns(I,{icon:o,className:"k-color-preview-icon"}),Ns("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ne.states=Ln;Ne.options=Sn;Ne.className=ks;import{jsx as vs}from"react/jsx-runtime";var Ls="k-animation-container",In=[],Mn={},Ss={positionMode:"absolute"},ke=e=>{let{positionMode:t=Ss.positionMode,animationStyle:o,offset:r,...i}=e;return vs("div",{...i,style:{...r,...e.style},className:a(e.className,Ls,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:vs("div",{className:"k-child-animation-container",style:o,children:e.children})})};ke.states=In;ke.options=Mn;ke.className=Ls;ke.defaultOptions=Ss;import{jsx as gs}from"react/jsx-runtime";var Is="k-popup",yn=[],Cn={},Ms={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:o=Ms.positionMode,animationStyle:r,...i}=e;return gs(ke,{positionMode:o,offset:t,animationStyle:r,children:gs("div",{...i,className:a(e.className,Is),children:e.children})})};H.states=yn;H.options=Cn;H.className=Is;H.defaultOptions=Ms;import{jsx as Bn}from"react/jsx-runtime";var $t="k-actions",Tn=[],An={},po={alignment:"start",orientation:"horizontal"},ve=e=>{let{alignment:t=po.alignment,orientation:o=po.orientation,...r}=e;return Bn("div",{...r,className:a($t,{[`${$t}-${t}`]:t,[`${$t}-${o}`]:o},e.className),children:e.children})};ve.states=Tn;ve.options=An;ve.className=$t;ve.defaultOptions=po;import{jsx as zn}from"react/jsx-runtime";var wn="k-actionsheet-footer",ys={alignment:"stretched",orientation:"horizontal"},bt=e=>{let{alignment:t=ys.alignment,orientation:o=ys.orientation,template:r,as:i=r?"div":ve,...l}=e;return zn(i,{...l,...!r&&{alignment:t,orientation:o},className:a(e.className,wn),children:e.children})};import{jsx as xt,jsxs as On}from"react/jsx-runtime";var Cs="k-searchbox",En=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Pn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},co={showIcon:!0,icon:"search",size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode},de=e=>{let{value:t,placeholder:o,size:r,rounded:i,fillMode:l,hover:p,focus:u,valid:b,invalid:h,required:N,loading:L,disabled:c,showIcon:k=co.showIcon,icon:v=co.icon,...S}=e;return On(w,{...S,size:r,rounded:i,fillMode:l,hover:p,focus:u,valid:b,invalid:h,required:N,loading:L,disabled:c,className:a(e.className,Cs),children:[k&&xt(I,{className:"k-input-icon",icon:v}),xt(ee,{placeholder:o,value:t}),xt(J,{...e}),xt(_,{...e}),xt(j,{...e})]})};de.states=En;de.options=Pn;de.className=Cs;de.defaultOptions=co;import{jsx as sd}from"react/jsx-runtime";import{Fragment as Ts,jsx as Le,jsxs as mo}from"react/jsx-runtime";var As="k-textbox",Kn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Rn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},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:i=ze.separators,showClearButton:l=ze.showClearButton,showValidationIcon:p=ze.showValidationIcon,prefix:u,suffix:b,type:h,value:N,placeholder:L,hover:c,focus:k,valid:v,invalid:S,required:C,loading:T,disabled:z,readonly:$,...he}=e;return mo(w,{...he,size:t,rounded:o,fillMode:r,hover:c,focus:k,valid:v,invalid:S,required:C,loading:T,disabled:z,readonly:$,className:a(e.className,As),children:[u&&mo(Ts,{children:[Le(ae,{children:u}),i&&Le(ce,{})]}),Le(ee,{placeholder:L,value:N,type:h}),p&&Le(_,{valid:v,invalid:S,loading:T,disabled:z}),Le(J,{loading:T,disabled:z}),l&&Le(j,{loading:T,disabled:z,readonly:$,value:N}),b&&mo(Ts,{children:[i&&Le(ce,{}),Le(ne,{children:b})]})]})};Se.states=Kn;Se.options=Rn;Se.className=As;Se.defaultOptions=ze;import{jsx as fd}from"react/jsx-runtime";import{Fragment as vd,jsx as kd}from"react/jsx-runtime";import{Fragment as Cd,jsx as yd}from"react/jsx-runtime";import{jsx as ge,jsxs as uo}from"react/jsx-runtime";var ws="k-actionsheet-titlebar",Hn={},F=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:i,filter:l,input:p,inputValue:u,inputPlaceholder:b,adaptive:h,children:N,...L}=e;return uo("div",{...L,className:a(e.className,ws),children:[uo("div",{className:"k-actionsheet-titlebar-group",children:[r&&ge("div",{className:"k-actionsheet-actions",children:r}),!N&&uo("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}),i&&ge("div",{className:"k-actionsheet-actions",children:i})]}),(p||l)&&ge("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?ge(Se,{value:u,placeholder:b,size:h?"large":"medium"}):ge(de,{placeholder:"Filter",size:h?"large":"medium"})})]})};F.className=ws;F.defaultOptions=Hn;import{jsx as fo,jsxs as Vn}from"react/jsx-runtime";var bo="k-actionsheet-view",Gn=[],$n={},Dn={},_e=e=>{let{adaptive:t,animated:o,children:r,header:i,footer:l,...p}=e,u=i?.type===F&&fo(F,{adaptive:t,...i?.props}),b=l?.type===bt&&fo(bt,{...l?.props});return Vn("div",{...p,className:a(e.className,bo,{[`${bo}-animated`]:o}),children:[u,fo("div",{className:"k-actionsheet-content",children:r}),b]})};_e.states=Gn;_e.options=$n;_e.className=bo;_e.defaultOptions=Dn;import{jsx as Dt,jsxs as Jn}from"react/jsx-runtime";var zs="k-actionsheet",_n=[],Xn={},ht={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},te=e=>{let{side:t=ht.side,fullscreen:o=ht.fullscreen,adaptive:r=ht.adaptive,overlay:i=ht.overlay,template:l,children:p,header:u,footer:b,...h}=e;return Jn("div",{className:"k-actionsheet-container",children:[i&&Dt("div",{className:"k-overlay"}),Dt(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:Dt("div",{...h,className:a(e.className,zs,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:l||Dt(_e,{header:u,footer:b,adaptive:r,...e,children:p})})})]})};te.states=_n;te.options=Xn;te.className=zs;te.defaultOptions=ht;import{jsx as Qd}from"react/jsx-runtime";import{Fragment as Un,jsx as Nt,jsxs as xo}from"react/jsx-runtime";var ho="k-actionsheet-item",Fn=[s.hover,s.focus,s.selected,s.disabled],No=e=>{let{iconName:t,text:o,description:r,hover:i,focus:l,selected:p,disabled:u,...b}=e;return xo("span",{...b,className:a(e.className,ho,M(ho,{hover:i,focus:l,selected:p,disabled:u})),children:[!e.children&&Nt(Un,{children:xo("span",{className:"k-actionsheet-action",children:[t&&Nt("span",{className:"k-icon-wrap",children:Nt(I,{className:"k-actionsheet-item-icon",icon:t})}),xo("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]})};No.states=Fn;No.className=ho;import{jsx as rm,jsxs as im}from"react/jsx-runtime";import{jsx as dm}from"react/jsx-runtime";import{jsx as bm}from"react/jsx-runtime";import{jsx as km}from"react/jsx-runtime";import{jsx as Xe,jsxs as ko}from"react/jsx-runtime";var kt="k-slider",qn=[s.hover,s.focus,s.active,s.disabled,s.readonly],Wn={},Ie={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},U=e=>{let{type:t=Ie.type,orientation:o=Ie.orientation,readonly:r=Ie.readonly,disabled:i=Ie.disabled,handlePosition:l=Ie.handlePosition,showButtons:p=Ie.showButtons,showTicks:u=Ie.showTicks,hover:b,focus:h,active:N,trackStyle:L,dir:c,...k}=e,v,S;return o==="horizontal"?(v=c==="rtl"?"caret-alt-left":"caret-alt-right",S=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(v="caret-alt-up",S="caret-alt-down"),ko("div",{...k,className:a(kt,e.className,M(kt,{readonly:r,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[p&&Xe(x,{className:"k-button-decrease",rounded:"full",icon:S}),ko("div",{className:"k-slider-track-wrap",children:[u&&Xe("ul",{className:"k-reset k-slider-items",children:e.children}),ko("div",{className:"k-slider-track",style:L,children:[Xe("div",{className:"k-slider-selection"}),t==="range"&&Xe("span",{className:a("k-draghandle","k-draghandle-start",M(kt,{hover:b,focus:h,active:N}))}),Xe("span",{className:a("k-draghandle",`k-draghandle-${l}`,M(kt,{hover:b,focus:h,active:N}))})]})]}),p&&Xe(x,{className:"k-button-increase",rounded:"full",icon:v})]})};U.states=qn;U.options=Wn;U.className=kt;U.defaultOptions=Ie;import{jsx as Ps}from"react/jsx-runtime";var Os="k-tick",Zn=[],Qn={},Ks={label:!1},Me=e=>{let{style:t,label:o=Ks.label,orientation:r,large:i,text:l,...p}=e;return Ps("li",{...p,className:a(e.className,Os,{[`k-tick-${r}`]:r,"k-tick-large":i}),style:t,children:o&&Ps("span",{className:"k-label",children:l})})};Me.states=Zn;Me.options=Qn;Me.className=Os;Me.defaultOptions=Ks;import{Fragment as Vm,jsx as Dm,jsxs as _m}from"react/jsx-runtime";import{Fragment as qm,jsx as Um,jsxs as Wm}from"react/jsx-runtime";import{Fragment as eu,jsx as jm,jsxs as tu}from"react/jsx-runtime";import{Fragment as ru,jsx as nu,jsxs as iu}from"react/jsx-runtime";import{jsx as Yn}from"react/jsx-runtime";var vo=e=>Yn(U,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as jn}from"react/jsx-runtime";var Lo=e=>jn(U,{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]},So={size:n.medium,fillMode:d.solid},Je=e=>{let{size:t=So.size,fillMode:o=So.fillMode,...r}=e;return or("span",{...r,className:a(Hs,e.className),children:[Rs(x,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Rs(x,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Je.states=er;Je.options=tr;Je.className=Hs;Je.defaultOptions=So;import{Fragment as Gs,jsx as me,jsxs as go}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]},Ee={showSpinButton:!0,showClearButton:!0,size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},K=e=>{let{size:t=Ee.size,rounded:o=Ee.rounded,fillMode:r=Ee.fillMode,separators:i=Ee.separators,showClearButton:l=Ee.showClearButton,showSpinButton:p=Ee.showSpinButton,prefix:u,suffix:b,value:h,placeholder:N,hover:L,focus:c,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:z,...$}=e;return go(w,{...$,size:t,rounded:o,fillMode:r,hover:L,focus:c,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:z,className:a(e.className,$s),children:[u&&go(Gs,{children:[me(ae,{children:u}),i&&me(ce,{})]}),me(ee,{placeholder:N,value:h}),me(_,{valid:k,invalid:v,loading:C,disabled:T}),me(J,{loading:C,disabled:T}),l&&me(j,{loading:C,disabled:T,readonly:z,value:h}),b&&go(Gs,{children:[i&&me(ce,{}),me(ne,{children:b})]}),p&&me(Je,{className:"k-input-spinner",size:t,fillMode:r})]})};K.states=sr;K.options=ar;K.className=$s;K.defaultOptions=Ee;import{jsx as Ru}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 Fe,jsxs as Vs}from"react/jsx-runtime";var Io="k-list",ir=[],lr={size:[n.small,n.medium,n.large]},_s={size:n.medium},E=e=>{let{size:t=_s.size,virtualization:o,children:r,optionLabel:i,customValue:l,screenReaders:p,...u}=e,b,h,N,L,c=[];return r?r.map((k,v)=>{k.type===G?(k.props.root===!0?(b=k.props.label,k.props.children.map((S,C)=>{c.push(Fe(y,{...S.props},`optChild-${C}-${new Date().getTime()}`))})):k.props.children.forEach((S,C)=>{let T="";C===0&&(T=k.props.label),c.push(Fe(y,{className:C===0?"k-first":"",...S.props,groupLabel:T},`groupLabel-${C}-${new Date().getTime()}`))}),h=Fe(G,{label:b,virtualization:o,children:c})):k.type===y&&(c.push(Fe(y,{...k.props},`${k.type}-${v}`)),N=Fe(Ue,{virtualization:o,children:c}),p&&(L=Vs(vt,{className:"k-sr-only",children:[c.length," items found."]})))}):L=Fe(vt,{children:"No data found."}),Vs("div",{...u,className:a(e.className,Io,g(Io,{size:t}),{"k-virtual-list":o}),children:[i,l,h,N,L]})};E.states=ir;E.options=lr;E.className=Io;E.defaultOptions=_s;import{jsx as Pe,jsxs as dr}from"react/jsx-runtime";var Mo="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,...i}=e,l,p,u,b=[];return r?r.map((h,N)=>{h.type===G?(h.props.root===!0?(l=h.props.label,h.props.children.map((L,c)=>{b.push(Pe(y,{...L.props},`optChild-${c}-${new Date().getTime()}`))})):(b.push(Pe(Js,{...h.props,children:h.props.label},`listChild-${N}`)),h.props.children.map((L,c)=>{b.push(Pe(y,{...L.props},`fwOptChild-${c}-${new Date().getTime()}`))})),p=Pe(G,{label:l,virtualization:o,children:b})):h.type===y&&(b.push(Pe(y,{...h.props},`${h.type}-${N}`)),u=Pe(Ue,{virtualization:o,children:b}))}):u=Pe(vt,{children:"No data found."}),dr("div",{...i,className:a(e.className,Mo,g(Mo,{size:t}),{"k-virtual-list":o}),children:[p,u]})};Oe.states=pr;Oe.options=cr;Oe.className=Mo;Oe.defaultOptions=Xs;import{jsx as Fs}from"react/jsx-runtime";var Vt="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]},yo={size:n.medium,rounded:f.medium},ye=e=>{let{id:t,checked:o,indeterminate:r,hover:i,focus:l,disabled:p,invalid:u,valid:b,required:h,size:N=yo.size,rounded:L=yo.rounded,...c}=e;return Fs("span",{className:"k-checkbox-wrap",children:Fs("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:h,className:a(e.className,Vt,g(Vt,{size:N,rounded:L}),M(Vt,{hover:i,focus:l,disabled:p,invalid:u,valid:b,indeterminate:r,checked:o}))})})};ye.states=mr;ye.options=ur;ye.className=Vt;ye.defaultOptions=yo;import{jsx as xr}from"react/jsx-runtime";var Us="k-checkbox-list",fr=[],br={},qs={layout:"vertical"},qe=e=>{let{layout:t=qs.layout,...o}=e;return xr("ul",{...o,className:a(e.className,Us,{[`k-list-${t}`]:t}),children:e.children})};qe.states=fr;qe.options=br;qe.className=Us;qe.defaultOptions=qs;import{jsx as vr}from"react/jsx-runtime";var Ws="k-checkbox-list-item",hr=[],Nr={},kr={},We=e=>{let{...t}=e;return vr("li",{...t,className:a(e.className,Ws),children:e.children})};We.states=hr;We.options=Nr;We.className=Ws;We.defaultOptions=kr;import{Fragment as uf,jsx as mf,jsxs as ff}from"react/jsx-runtime";import{Fragment as kf,jsx as Nf,jsxs as vf}from"react/jsx-runtime";import{Fragment as Mf,jsx as If,jsxs as yf}from"react/jsx-runtime";import{Fragment as wf,jsx as Bf,jsxs as zf}from"react/jsx-runtime";import{jsx as Kf}from"react/jsx-runtime";import{jsx as $f}from"react/jsx-runtime";import{jsx as _t,jsxs as Ir}from"react/jsx-runtime";var To="k-list-item",Lr=[s.hover,s.focus,s.selected,s.disabled],Sr={},gr={},y=e=>{let{text:t,groupLabel:o,group:r,showIcon:i,iconName:l,showCheckbox:p,checked:u,hover:b,focus:h,selected:N,disabled:L,...c}=e,k=t||e.children;return Ir("li",{...c,className:a(e.className,r?"k-list-group-item":To,M(To,{hover:b,focus:h,disabled:L,selected:N})),children:[p&&_t(ye,{checked:u}),i&&_t(I,{icon:l}),_t("span",{className:"k-list-item-text",children:k}),o&&o!==""&&_t("div",{className:"k-list-item-group-label",children:o})]})};y.states=Lr;y.options=Sr;y.className=To;y.defaultOptions=gr;import{jsx as Ao,jsxs as yr}from"react/jsx-runtime";var Mr="k-list-content",Ue=e=>{let{virtualization:t,...o}=e;return yr("div",{...o,className:a(Mr,e.className),children:[Ao("ul",{className:a("k-list-ul"),children:e.children}),t&&Ao("div",{className:"k-height-container",children:Ao("div",{})})]})};import{jsx as Zs}from"react/jsx-runtime";var Cr="k-list-group-sticky-header",Qs=e=>Zs("div",{className:a(Cr,e.className),children:Zs("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Tr,jsx as Ys,jsxs as Ar}from"react/jsx-runtime";var G=e=>{let{virtualization:t,label:o}=e;return Ar(Tr,{children:[o&&Ys(Qs,{children:o}),e.children&&Ys(Ue,{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 Pr}from"react/jsx-runtime";var Bo="k-list-optionlabel",wr=[s.hover,s.focus,s.selected,s.disabled],zr={},Er={},Xt=e=>{let{text:t,hover:o,focus:r,selected:i,disabled:l,...p}=e;return Pr("div",{...p,className:a(Bo,M(Bo,{hover:o,focus:r,selected:i,disabled:l})),children:t})};Xt.states=wr;Xt.options=zr;Xt.className=Bo;Xt.defaultOptions=Er;import{jsx as Hr}from"react/jsx-runtime";var wo="k-list-custom-value",Or=[s.hover,s.focus,s.selected,s.disabled],Kr={},Rr={},Ce=e=>{let{text:t,hover:o,focus:r,selected:i,disabled:l,...p}=e;return Hr("div",{...p,className:a(wo,M(wo,{hover:o,focus:r,selected:i,disabled:l})),children:t})};Ce.states=Or;Ce.options=Kr;Ce.className=wo;Ce.defaultOptions=Rr;import{jsx as gb}from"react/jsx-runtime";import{jsx as Cb}from"react/jsx-runtime";import{jsx as wb,jsxs as zb}from"react/jsx-runtime";import{jsx as Kb,jsxs as Rb}from"react/jsx-runtime";import{jsx as Db}from"react/jsx-runtime";import{jsx as Jb,jsxs as Fb}from"react/jsx-runtime";import{jsx as Zb,jsxs as Qb}from"react/jsx-runtime";import{Fragment as Dr,jsx as D,jsxs as zo}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},re=e=>{let{size:t=Ze.size,rounded:o=Ze.rounded,fillMode:r=Ze.fillMode,arrowIconName:i=Ze.arrowIconName,showValue:l=Ze.showValue,valueIconName:p,prefix:u,suffix:b,value:h,placeholder:N,hover:L,focus:c,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:z,popup:$,opened:he,adaptive:lt,adaptiveSettings:pt,adaptiveTitle:Qt,adaptiveSubtitle:Yt,adaptiveFilter:ga,...Ia}=e;return zo(Dr,{children:[zo(Y,{...Ia,size:t,rounded:o,fillMode:r,hover:L,focus:c,valid:k,invalid:v,required:S,loading:C,disabled:T,readonly:z,className:a(e.className,ea,{"k-icon-picker":!l&&p}),children:[D(ae,{children:u}),D(we,{placeholder:N,value:h,showValue:l,valueIconName:p}),D(_,{valid:k,invalid:v,loading:C,disabled:T}),D(J,{loading:C,disabled:T}),D(ne,{children:b}),D(x,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),he&&$&&D(H,{className:"k-list-container k-dropdownlist-popup",children:$}),lt&&D(te,{adaptive:!0,...pt,header:D(F,{actionsEnd:D(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ga,inputValue:h,inputPlaceholder:N,title:Qt,subtitle:Yt}),children:D("div",{className:"k-list-container",children:zo(E,{size:"large",children:[D(y,{text:"List item"}),D(y,{text:"List item"}),D(y,{text:"List item"})]})})})]})};re.states=Gr;re.options=$r;re.className=ea;re.defaultOptions=Ze;import{jsx as Cx}from"react/jsx-runtime";import{jsx as zx,jsxs as Ex}from"react/jsx-runtime";import{Fragment as Dx,jsx as Gx,jsxs as $x}from"react/jsx-runtime";import{jsx as Jx}from"react/jsx-runtime";import{jsx as Zx,jsxs as Qx}from"react/jsx-runtime";import{jsx as oh,jsxs as sh}from"react/jsx-runtime";import{Fragment as dh,jsx as ph,jsxs as ch}from"react/jsx-runtime";import{Fragment as kh,jsx as hh,jsxs as Nh}from"react/jsx-runtime";import{Fragment as Oh,jsx as Ph}from"react/jsx-runtime";import{Fragment as Vh,jsx as Dh}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},Qe=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(x,{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(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&O(Lt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&O(Lt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&O(Lt,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(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"})]})})]})};Qe.states=Vr;Qe.options=_r;Qe.className=ta;Qe.defaultOptions=oa;import{jsx as Re,jsxs as He}from"react/jsx-runtime";var sa="k-colorgradient-color-contrast",Xr=[],Jr={},Fr={},Ye=()=>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"})]})]})]});Ye.states=Xr;Ye.options=Jr;Ye.className=sa;Ye.defaultOptions=Fr;import{jsx as q,jsxs as St}from"react/jsx-runtime";var Jt="k-colorgradient",Ur=[s.hover,s.focus,s.readonly,s.disabled],qr={size:[n.small,n.medium,n.large]},oe={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=oe.size,mode:o=oe.mode,readonly:r=oe.readonly,disabled:i=oe.disabled,gradientStyle:l=oe.gradientStyle,dragHandleStyle:p=oe.dragHandleStyle,alphaStyle:u=oe.alphaStyle,alphaStyleHorizontal:b=oe.alphaStyleHorizontal,contrast:h=oe.contrast,dir:N,hover:L,focus:c,hoverHandle:k,focusHandle:v,canvasOrientation:S=oe.canvasOrientation,...C}=e;return St("div",{...C,className:a(e.className,Jt,g(Jt,{size:t}),M(Jt,{hover:L,focus:c,readonly:r,disabled:i})),dir:N,children:[!S||S==="horizontal"&&St("div",{className:"k-colorgradient-canvas k-hstack",children:[q("div",{className:"k-hsv-rectangle",style:l,children:q("div",{className:"k-hsv-gradient",children:q("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":v}),style:p})})}),St("div",{className:"k-hsv-controls k-hstack",children:[q(Lo,{className:"k-hue-slider",hover:k,focus:v}),o!=="rgb"&&o!=="hsv"&&q(Lo,{className:"k-alpha-slider",hover:k,focus:v,trackStyle:u})]})]}),S==="vertical"&&St("div",{className:"k-colorgradient-canvas k-vstack",children:[q("div",{className:"k-hsv-rectangle",style:l,children:q("div",{className:"k-hsv-gradient",children:q("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":v}),style:p})})}),St("div",{className:"k-hsv-controls k-vstack",children:[q(vo,{className:"k-hue-slider",hover:k,focus:v}),o!=="rgb"&&o!=="hsv"&&q(vo,{className:"k-alpha-slider",hover:k,focus:v,trackStyle:b})]})]}),q(Qe,{mode:e.mode,size:t}),h&&q(Ye,{})]})};Te.states=Ur;Te.options=qr;Te.className=Jt;Te.defaultOptions=oe;import{jsx as uN}from"react/jsx-runtime";import{jsx as hN}from"react/jsx-runtime";import{jsx as Wr}from"react/jsx-runtime";var aa=e=>Wr("tr",{children:e.children});import{jsx as Yr}from"react/jsx-runtime";var Eo="k-colorpalette-tile",Zr=[s.hover,s.focus,s.selected],Qr={},gt=e=>{let{color:t,tileSize:o,hover:r,focus:i,selected:l,...p}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Yr("td",{...p,className:a(e.className,Eo,M(Eo,{hover:r,focus:i,selected:l})),style:u})};gt.states=Zr;gt.options=Qr;gt.className=Eo;import{jsx as It}from"react/jsx-runtime";var Ft="k-colorpalette",jr=[s.disabled],ei={size:[n.small,n.medium,n.large]},Po={columns:10,size:n.medium},je=e=>{let{size:t=Po.size,palette:o,columns:r=Po.columns,tileSize:i,disabled:l,...p}=e,u=[];if(o){let b=r||o.columns,h=o.colors?o.colors:o;Array.isArray(h)&&Array.from({length:Math.ceil(h.length/b)},(N,L)=>{let c=[];h.slice(L*b,(L+1)*b).map((v,S)=>{c.push(It(gt,{color:v,tileSize:i},S))});let k=It(aa,{children:c},L);u.push(k)})}return It("div",{...p,className:a(e.className,Ft,M(Ft,{disabled:l}),g(Ft,{size:t})),children:It("table",{className:"k-colorpalette-table",children:It("tbody",{children:u.length>0?u:e.children})})})};je.states=jr;je.options=ei;je.className=Ft;je.defaultOptions=Po;var Oo={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 $N}from"react/jsx-runtime";import{jsx as W,jsxs as et}from"react/jsx-runtime";var Ut="k-coloreditor",ti=[s.focus],oi={size:[n.small,n.medium,n.large]},tt={size:n.medium,view:"gradient",palette:Oo.office,actionButtons:!0,canvasOrientation:"horizontal"},ie=e=>{let{size:t=tt.size,view:o=tt.view,palette:r=tt.palette,color:i,currentColor:l,focus:p,focusView:u,dir:b,group:h,actionButtons:N=tt.actionButtons,canvasOrientation:L=tt.canvasOrientation,...c}=e;return et("div",{...c,className:a(e.className,"k-flatcolorpicker",Ut,g(Ut,{size:t}),M(Ut,{focus:p})),dir:b,children:[et("div",{className:"k-coloreditor-header k-hstack",children:[W("div",{className:"k-coloreditor-header-actions k-hstack",children:h&&et(P,{fillMode:"flat",children:[W(x,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),W(x,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),W("div",{className:"k-spacer"}),et("div",{className:"k-coloreditor-header-actions k-hstack",children:[W(x,{fillMode:"flat",icon:"droplet-slash",size:t}),et("div",{className:"k-coloreditor-preview k-vstack",children:[W(Ne,{className:"k-coloreditor-preview-color",color:i}),W(Ne,{className:"k-coloreditor-current-color",color:l})]})]})]}),W("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?W(Te,{focus:u,size:t,canvasOrientation:L}):W(je,{palette:r,size:t})}),N&&et(ve,{className:"k-coloreditor-footer",alignment:"start",children:[W(x,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),W(x,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ie.states=ti;ie.options=oi;ie.className=Ut;ie.defaultOptions=tt;import{jsx as nk}from"react/jsx-runtime";import{jsx as pk}from"react/jsx-runtime";import{jsx as uk}from"react/jsx-runtime";import{jsx as hk}from"react/jsx-runtime";import{Fragment as ni,jsx as Z,jsxs as Ro}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:Y.defaultOptions.size,rounded:Y.defaultOptions.rounded,fillMode:Y.defaultOptions.fillMode},ue=e=>{let{size:t=Mt.size,rounded:o=Mt.rounded,fillMode:r=Mt.fillMode,arrowIconName:i=Mt.arrowIconName,prefix:l,suffix:p,value:u,placeholder:b,hover:h,focus:N,valid:L,invalid:c,required:k,disabled:v,valueIconName:S,popup:C,opened:T,adaptive:z,adaptiveSettings:$,adaptiveTitle:he,adaptiveSubtitle:lt,...pt}=e;return Ro(ni,{children:[Ro(Y,{...pt,size:t,rounded:o,fillMode:r,hover:h,focus:N,valid:L,invalid:c,required:k,disabled:v,className:a(e.className,na,"k-icon-picker"),children:[Z(ae,{children:l}),Z(we,{placeholder:b,value:u,showValue:!1,valueIcon:Z(Ne,{className:"k-value-icon",color:u,iconName:S}),valueIconName:S}),Z(ne,{children:p}),Z(x,{className:"k-input-button",icon:i,rounded:null,size:t,fillMode:r})]}),T&&C&&Z(H,{className:"k-colorpicker-popup",children:C}),z&&Z(te,{adaptive:!0,...$,header:Z(F,{actionsEnd:Z(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:he,subtitle:lt}),footer:Ro(bt,{children:[Z(x,{text:"Cancel",size:"large",themeColor:"base"}),Z(x,{text:"Set",size:"large",themeColor:"primary"})]}),children:Z(ie,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};ue.states=si;ue.options=ai;ue.className=na;ue.defaultOptions=Mt;import{jsx as Rk}from"react/jsx-runtime";import{jsx as Vk}from"react/jsx-runtime";import{jsx as Uk}from"react/jsx-runtime";import{jsx as Qk}from"react/jsx-runtime";import{jsx as tv}from"react/jsx-runtime";import{jsx as nv}from"react/jsx-runtime";import{Fragment as Ho,jsx as R,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:i=Ct.separators,prefix:l,suffix:p,value:u,placeholder:b,hover:h,focus:N,valid:L,invalid:c,required:k,loading:v,disabled:S,popup:C,opened:T,readonly:z,adaptive:$,adaptiveSettings:he,adaptiveTitle:lt,adaptiveSubtitle:pt,adaptiveCustomValue:Qt,...Yt}=e;return yt(Ho,{children:[yt(w,{...Yt,size:t,rounded:o,fillMode:r,hover:h,focus:N,valid:L,invalid:c,required:k,loading:v,disabled:S,readonly:z,className:a(e.className,ra),children:[l&&yt(Ho,{children:[R(ae,{children:l}),i&&R(ce,{})]}),R(ee,{placeholder:b,value:u}),R(_,{valid:L,invalid:c,loading:v,disabled:S}),R(J,{loading:v,disabled:S}),R(j,{loading:v,disabled:S,readonly:z,value:u}),p&&yt(Ho,{children:[i&&R(ce,{}),R(ne,{children:p})]}),R(x,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:r})]}),T&&C&&R(H,{className:"k-list-container k-combobox-popup",children:C}),$&&R(te,{adaptive:!0,...he,header:R(F,{actionsEnd: