@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 91 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,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var L=(e,t)=>a({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),g=(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 l={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},T={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},r={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"};import{Fragment as Xs,jsx as Kr}from"react/jsx-runtime";var ba="k-icon k-font-icon",$s=[],Vs={size:[l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},_s={},no=e=>{let{size:t,themeColor:o,icon:s,rotate:i,flip:n,...d}=e;return s?Kr("span",{...d,className:a(e.className,ba,L(ba,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"})}):Kr(Xs,{})};no.states=$s;no.options=Vs;no.className=ba;no.defaultOptions=_s;var Or=no;import{Fragment as Us,jsx as Eo}from"react/jsx-runtime";var Ta="k-icon k-svg-icon",Js=[],Ws={size:[l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Dr={viewBox:"0 0 24 24"},co=e=>{let{size:t,themeColor:o,rotate:s,flip:i,viewBox:n=Dr.viewBox,icon:d,...c}=e;if(!d)return Eo(Us,{});d==="none"&&{...c,className:a(e.className,Ta,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return Eo("span",{...c,className:a(e.className,Ta,L("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:Eo("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:n,dangerouslySetInnerHTML:typeof d=="object"?{__html:d.content}:void 0,children:d?void 0:e.children})})};co.states=Js;co.options=Ws;co.className=Ta;co.defaultOptions=Dr;var xa=co;import*as Fr from"@progress/kendo-svg-icons";import{Fragment as $r,jsx as po}from"react/jsx-runtime";var qs=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Qs=[],Ys={size:[l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},ha={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{size:t,themeColor:o,icon:s,type:i=ha.type,rotate:n,flip:d,viewBox:c=ha.viewBox,...m}=e;if(!s)return po($r,{});if(i==="svg"){if(s==="none")return po(xa,{...m,icon:s,size:t});let b=qs(`${s}-icon`);return Fr[b]?po(xa,{...m,icon:Fr[b],size:t,themeColor:o,rotate:n,flip:d,viewBox:c}):po($r,{})}return po(Or,{...m,icon:s,size:t,themeColor:o,rotate:n,flip:d})};k.states=Qs;k.options=Ys;k.defaultOptions=ha;import{Fragment as ei,jsx as mo,jsxs as Vr}from"react/jsx-runtime";var zo="k-button",Zs=[r.hover,r.focus,r.active,r.selected,r.disabled],js={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline,T.clear,T.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},pt={size:l.medium,rounded:f.medium,fillMode:T.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},x=e=>{let{size:t=pt.size,rounded:o=pt.rounded,fillMode:s=pt.fillMode,themeColor:i=pt.themeColor,showArrow:n=pt.showArrow,arrowIconName:d=pt.arrowIconName,hover:c,focus:m,active:b,selected:h,disabled:w,icon:p,text:N,iconClassName:v,...S}=e,y=p!==void 0,M=e.children!==void 0;return Vr("button",{...S,className:a(e.className,zo,L(zo,{size:t,rounded:o,fillMode:s,themeColor:i}),g(zo,{hover:c,focus:m,active:b,disabled:w,selected:h}),{"k-icon-button":!N&&!M&&y}),children:[p&&mo(k,{className:a(v,"k-button-icon"),icon:p}),N?Vr(ei,{children:[N&&mo("span",{className:"k-button-text",children:N}),e.children]}):e.children&&mo("span",{className:"k-button-text",children:e.children}),n&&mo("span",{className:"k-menu-button-arrow k-button-arrow",children:mo(k,{icon:d})})]})};x.states=Zs;x.options=js;x.className=zo;x.defaultOptions=pt;import{jsx as ti}from"react/jsx-runtime";var Ko=e=>ti(x,{icon:"folder",...e,children:void 0});import{jsx as oi}from"react/jsx-runtime";var Na=e=>oi(x,{icon:"folder",children:"Button",...e});import{jsx as Wm}from"react/jsx-runtime";import{jsx as li}from"react/jsx-runtime";var uo="k-button-group",ai=[r.disabled],ri={fillMode:[T.solid,T.flat,T.outline,T.clear,T.link]},_r={fillMode:T.solid},B=e=>{let{fillMode:t=_r.fillMode,disabled:o,stretched:s,...i}=e;return li("div",{...i,className:a(e.className,uo,L(uo,{fillMode:t}),g(uo,{disabled:o}),{[`${uo}-stretched`]:s}),children:e.children})};B.states=ai;B.options=ri;B.className=uo;B.defaultOptions=_r;import{Fragment as iu,jsx as su,jsxs as nu}from"react/jsx-runtime";import{Fragment as fu,jsx as uu,jsxs as bu}from"react/jsx-runtime";import{Fragment as ku,jsx as gu,jsxs as vu}from"react/jsx-runtime";import{Fragment as Mu,jsx as Cu,jsxs as Iu}from"react/jsx-runtime";import{jsx as ni}from"react/jsx-runtime";var Oo="k-input",si=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ii={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},Do={size:l.medium,rounded:l.medium,fillMode:T.solid},P=e=>{let{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c,size:m=Do.size,rounded:b=Do.rounded,fillMode:h=Do.fillMode,...w}=e;return ni("span",{...w,className:a(e.className,Oo,L(Oo,{size:m,rounded:b,fillMode:h}),g(Oo,{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c}))})};P.states=si;P.options=ii;P.className=Oo;P.defaultOptions=Do;import{jsx as pi}from"react/jsx-runtime";var Fo="k-picker",di=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ci={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},$o={size:l.medium,rounded:f.medium,fillMode:T.solid},ge=e=>{let{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c,size:m=$o.size,rounded:b=$o.rounded,fillMode:h=$o.fillMode,...w}=e;return pi("span",{...w,className:a(e.className,Fo,L(Fo,{size:m,rounded:b,fillMode:h}),g(Fo,{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c})),children:e.children})};ge.states=di;ge.options=ci;ge.className=Fo;ge.defaultOptions=$o;import{Fragment as fi,jsx as ga}from"react/jsx-runtime";var Xr="k-clear-value",mi=[r.disabled,r.loading,r.readonly],ui={},ke=e=>{let{disabled:t,loading:o,readonly:s,value:i}=e;return t||s||o||!i?ga(fi,{}):ga("span",{className:a(e.className,Xr),children:ga(k,{icon:"x"})})};ke.states=mi;ke.options=ui;ke.className=Xr;import{jsx as xi}from"react/jsx-runtime";var ka="k-input-inner",bi=[],Ti={},Vo={type:"text",autocomplete:"off",value:"",placeholder:""},ve=e=>{let{value:t=Vo.value,type:o=Vo.type,placeholder:s=Vo.placeholder,autocomplete:i=Vo.autocomplete,...n}=e;return xi("input",{...n,type:o,className:a(e.className,ka,L(ka,e)),placeholder:s,autoComplete:i,defaultValue:t})};ve.states=bi;ve.options=Ti;ve.className=ka;import{jsx as Jr,jsxs as gi}from"react/jsx-runtime";var va="k-input-inner",hi=[],Ni={},mt=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:i,valueIconName:n,...d}=e;return gi("span",{...d,className:a(e.className,va,L(va,e)),children:[i,!i&&n&&Jr(k,{className:"k-input-value-icon",icon:n}),s&&!t&&o,s&&t&&Jr("span",{className:"k-input-value-text",children:t})]})};mt.states=hi;mt.options=Ni;mt.className=va;import{jsx as Li}from"react/jsx-runtime";var La="k-input-inner",ki=[],vi={},Wr={value:"",placeholder:""},wa=e=>{let{value:t=Wr.value,placeholder:o=Wr.placeholder,rows:s,...i}=e;return Li("textarea",{...i,className:a(e.className,La,L(La,e)),placeholder:o,rows:s,defaultValue:t})};wa.states=ki;wa.options=vi;wa.className=La;import{Fragment as Si,jsx as Ur}from"react/jsx-runtime";var qr="k-input-loading-icon",wi=[r.disabled,r.loading],pe=e=>{let{disabled:t,loading:o}=e;return t||!o?Ur(Si,{}):Ur("span",{className:a(e.className,qr,"k-icon k-i-loading")})};pe.states=wi;pe.className=qr;import{Fragment as Mi,jsx as Qr}from"react/jsx-runtime";var Yr="k-input-validation-icon",yi=[r.valid,r.invalid,r.disabled,r.loading],Ci={},ne=e=>{let{valid:t,invalid:o,disabled:s,loading:i}=e,n=o?"warning-circle":"check-circle";return s||i||!!!(t||o)?Qr(Mi,{}):Qr(k,{className:a(Yr),icon:n})};ne.states=yi;ne.options=Ci;ne.className=Yr;import{Fragment as Ri,jsx as Zr}from"react/jsx-runtime";var Ii="k-input-prefix",Ai={direction:"horizontal"},Ae=e=>{let{direction:t=Ai.direction,...o}=e;return e.children?Zr("span",{...o,className:a(Ii,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Zr(Ri,{})};import{Fragment as Pi,jsx as jr}from"react/jsx-runtime";var Bi="k-input-suffix",Gi={direction:"horizontal"},Re=e=>{let{direction:t=Gi.direction,...o}=e;return e.children?jr("span",{...o,className:a(Bi,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):jr(Pi,{})};import{jsx as Nf}from"react/jsx-runtime";import{jsx as Lf}from"react/jsx-runtime";import{jsx as Ei}from"react/jsx-runtime";var el="k-input-separator",Hi={direction:"vertical"},ze=e=>{let{direction:t=Hi.direction,...o}=e;return Ei("span",{...o,className:a(el,e.className,{[`${el}-${t}`]:t})})};import{jsx as tl,jsxs as Oi}from"react/jsx-runtime";var ol="k-color-preview",zi=[],Ki={},Qe=e=>{let{color:t,iconName:o,...s}=e;return Oi("span",{...s,className:a(e.className,ol,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&tl(k,{icon:o,className:"k-color-preview-icon"}),tl("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Qe.states=zi;Qe.options=Ki;Qe.className=ol;import{jsx as al}from"react/jsx-runtime";var rl="k-animation-container",Di=[],Fi={},ll={positionMode:"absolute"},Ye=e=>{let{positionMode:t=ll.positionMode,animationStyle:o,offset:s,...i}=e;return al("div",{...i,style:{...s,...e.style},className:a(e.className,rl,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:al("div",{className:"k-child-animation-container",style:o,children:e.children})})};Ye.states=Di;Ye.options=Fi;Ye.className=rl;Ye.defaultOptions=ll;import{jsx as sl}from"react/jsx-runtime";var il="k-popup",$i=[],Vi={},nl={positionMode:"absolute"},J=e=>{let{offset:t,positionMode:o=nl.positionMode,animationStyle:s,...i}=e;return sl(Ye,{positionMode:o,offset:t,animationStyle:s,children:sl("div",{...i,className:a(e.className,il),children:e.children})})};J.states=$i;J.options=Vi;J.className=il;J.defaultOptions=nl;import{jsx as Ji}from"react/jsx-runtime";var _o="k-actions",_i=[],Xi={},Sa={alignment:"start",orientation:"horizontal"},Ze=e=>{let{alignment:t=Sa.alignment,orientation:o=Sa.orientation,...s}=e;return Ji("div",{...s,className:a(_o,{[`${_o}-${t}`]:t,[`${_o}-${o}`]:o},e.className),children:e.children})};Ze.states=_i;Ze.options=Xi;Ze.className=_o;Ze.defaultOptions=Sa;import{jsx as Ui}from"react/jsx-runtime";var Wi="k-actionsheet-footer",dl={alignment:"stretched",orientation:"horizontal"},fo=e=>{let{alignment:t=dl.alignment,orientation:o=dl.orientation,template:s,as:i=s?"div":Ze,...n}=e;return Ui(i,{...n,...!s&&{alignment:t,orientation:o},className:a(e.className,Wi),children:e.children})};import{jsx as bo,jsxs as Yi}from"react/jsx-runtime";var cl="k-searchbox",qi=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],Qi={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},ya={showIcon:!0,icon:"search",size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode},Q=e=>{let{value:t,placeholder:o,size:s,rounded:i,fillMode:n,hover:d,focus:c,valid:m,invalid:b,required:h,loading:w,disabled:p,showIcon:N=ya.showIcon,icon:v=ya.icon,...S}=e;return Yi(P,{...S,size:s,rounded:i,fillMode:n,hover:d,focus:c,valid:m,invalid:b,required:h,loading:w,disabled:p,className:a(e.className,cl),children:[N&&bo(k,{className:"k-input-icon",icon:v}),bo(ve,{placeholder:o,value:t}),bo(pe,{...e}),bo(ne,{...e}),bo(ke,{...e})]})};Q.states=qi;Q.options=Qi;Q.className=cl;Q.defaultOptions=ya;import{jsx as vb}from"react/jsx-runtime";import{Fragment as pl,jsx as je,jsxs as Ca}from"react/jsx-runtime";var ml="k-textbox",Zi=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ji={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},ut={showClearButton:!0,showValidationIcon:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},Be=e=>{let{size:t=ut.size,rounded:o=ut.rounded,fillMode:s=ut.fillMode,separators:i=ut.separators,showClearButton:n=ut.showClearButton,showValidationIcon:d=ut.showValidationIcon,prefix:c,suffix:m,type:b,value:h,placeholder:w,hover:p,focus:N,valid:v,invalid:S,required:y,loading:M,disabled:R,readonly:z,...$}=e;return Ca(P,{...$,size:t,rounded:o,fillMode:s,hover:p,focus:N,valid:v,invalid:S,required:y,loading:M,disabled:R,readonly:z,className:a(e.className,ml),children:[c&&Ca(pl,{children:[je(Ae,{children:c}),i&&je(ze,{})]}),je(ve,{placeholder:w,value:h,type:b}),d&&je(ne,{valid:v,invalid:S,loading:M,disabled:R}),je(pe,{loading:M,disabled:R}),n&&je(ke,{loading:M,disabled:R,readonly:z,value:h}),m&&Ca(pl,{children:[i&&je(ze,{}),je(Re,{children:m})]})]})};Be.states=Zi;Be.options=ji;Be.className=ml;Be.defaultOptions=ut;import{jsx as Gb}from"react/jsx-runtime";import{Fragment as Ob,jsx as Kb}from"react/jsx-runtime";import{Fragment as Jb,jsx as Xb}from"react/jsx-runtime";import{jsx as et,jsxs as Ma}from"react/jsx-runtime";var fl="k-actionsheet-titlebar",en={},me=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:i,filter:n,input:d,inputValue:c,inputPlaceholder:m,adaptive:b,children:h,...w}=e;return Ma("div",{...w,className:a(e.className,fl),children:[Ma("div",{className:"k-actionsheet-titlebar-group",children:[s&&et("div",{className:"k-actionsheet-actions",children:s}),!h&&Ma("div",{className:"k-actionsheet-title",children:[t&&et("div",{className:"k-text-center",children:t}),o&&et("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&et("div",{className:"k-actionsheet-title",children:h}),i&&et("div",{className:"k-actionsheet-actions",children:i})]}),(d||n)&&et("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?et(Be,{value:c,placeholder:m,size:b?"large":"medium"}):et(Q,{placeholder:"Filter",size:b?"large":"medium"})})]})};me.className=fl;me.defaultOptions=en;import{jsx as Ia,jsxs as rn}from"react/jsx-runtime";var Aa="k-actionsheet-view",tn=[],on={},an={},Gt=e=>{let{adaptive:t,animated:o,children:s,header:i,footer:n,...d}=e,c=i?.type===me&&Ia(me,{adaptive:t,...i?.props}),m=n?.type===fo&&Ia(fo,{...n?.props});return rn("div",{...d,className:a(e.className,Aa,{[`${Aa}-animated`]:o}),children:[c,Ia("div",{className:"k-actionsheet-content",children:s}),m]})};Gt.states=tn;Gt.options=on;Gt.className=Aa;Gt.defaultOptions=an;import{jsx as Xo,jsxs as nn}from"react/jsx-runtime";var bl="k-actionsheet",ln=[],sn={},To={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Le=e=>{let{side:t=To.side,fullscreen:o=To.fullscreen,adaptive:s=To.adaptive,overlay:i=To.overlay,template:n,children:d,header:c,footer:m,...b}=e;return nn("div",{className:"k-actionsheet-container",children:[i&&Xo("div",{className:"k-overlay"}),Xo(Ye,{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:Xo("div",{...b,className:a(e.className,bl,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:n||Xo(Gt,{header:c,footer:m,adaptive:s,...e,children:d})})})]})};Le.states=ln;Le.options=sn;Le.className=bl;Le.defaultOptions=To;import{jsx as TT}from"react/jsx-runtime";import{Fragment as cn,jsx as xo,jsxs as Ra}from"react/jsx-runtime";var Ba="k-actionsheet-item",dn=[r.hover,r.focus,r.selected,r.disabled],Ga=e=>{let{iconName:t,text:o,description:s,hover:i,focus:n,selected:d,disabled:c,...m}=e;return Ra("span",{...m,className:a(e.className,Ba,g(Ba,{hover:i,focus:n,selected:d,disabled:c})),children:[!e.children&&xo(cn,{children:Ra("span",{className:"k-actionsheet-action",children:[t&&xo("span",{className:"k-icon-wrap",children:xo(k,{className:"k-actionsheet-item-icon",icon:t})}),Ra("span",{className:"k-actionsheet-item-text",children:[o&&xo("span",{className:"k-actionsheet-item-title",children:o}),s&&xo("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};Ga.states=dn;Ga.className=Ba;import{jsx as ST,jsxs as yT}from"react/jsx-runtime";import{jsx as AT}from"react/jsx-runtime";import{jsx as PT}from"react/jsx-runtime";import{jsx as KT}from"react/jsx-runtime";import{jsx as Pt,jsxs as Pa}from"react/jsx-runtime";var ho="k-slider",pn=[r.hover,r.focus,r.active,r.disabled,r.readonly],mn={},tt={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},ue=e=>{let{type:t=tt.type,orientation:o=tt.orientation,readonly:s=tt.readonly,disabled:i=tt.disabled,handlePosition:n=tt.handlePosition,showButtons:d=tt.showButtons,showTicks:c=tt.showTicks,hover:m,focus:b,active:h,trackStyle:w,dir:p,...N}=e,v,S;return o==="horizontal"?(v=p==="rtl"?"caret-alt-left":"caret-alt-right",S=p==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(v="caret-alt-up",S="caret-alt-down"),Pa("div",{...N,className:a(ho,e.className,g(ho,{readonly:s,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:p,children:[d&&Pt(x,{className:"k-button-decrease",rounded:"full",icon:S}),Pa("div",{className:"k-slider-track-wrap",children:[c&&Pt("ul",{className:"k-reset k-slider-items",children:e.children}),Pa("div",{className:"k-slider-track",style:w,children:[Pt("div",{className:"k-slider-selection"}),t==="range"&&Pt("span",{className:a("k-draghandle","k-draghandle-start",g(ho,{hover:m,focus:b,active:h}))}),Pt("span",{className:a("k-draghandle",`k-draghandle-${n}`,g(ho,{hover:m,focus:b,active:h}))})]})]}),d&&Pt(x,{className:"k-button-increase",rounded:"full",icon:v})]})};ue.states=pn;ue.options=mn;ue.className=ho;ue.defaultOptions=tt;import{jsx as xl}from"react/jsx-runtime";var hl="k-tick",un=[],fn={},Nl={label:!1},ot=e=>{let{style:t,label:o=Nl.label,orientation:s,large:i,text:n,...d}=e;return xl("li",{...d,className:a(e.className,hl,{[`k-tick-${s}`]:s,"k-tick-large":i}),style:t,children:o&&xl("span",{className:"k-label",children:n})})};ot.states=un;ot.options=fn;ot.className=hl;ot.defaultOptions=Nl;import{Fragment as ix,jsx as sx,jsxs as nx}from"react/jsx-runtime";import{Fragment as ux,jsx as mx,jsxs as fx}from"react/jsx-runtime";import{Fragment as Nx,jsx as hx,jsxs as gx}from"react/jsx-runtime";import{Fragment as Sx,jsx as wx,jsxs as yx}from"react/jsx-runtime";import{jsx as bn}from"react/jsx-runtime";var Ha=e=>bn(ue,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Tn}from"react/jsx-runtime";var Ea=e=>Tn(ue,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as gl,jsxs as Nn}from"react/jsx-runtime";var kl="k-spin-button",xn=[],hn={size:[l.small,l.medium,l.large],fillMode:[T.solid,T.flat,T.outline,T.clear,T.link]},za={size:l.medium,fillMode:T.solid},Ht=e=>{let{size:t=za.size,fillMode:o=za.fillMode,...s}=e;return Nn("span",{...s,className:a(kl,e.className),children:[gl(x,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),gl(x,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Ht.states=xn;Ht.options=hn;Ht.className=kl;Ht.defaultOptions=za;import{Fragment as vl,jsx as Ke,jsxs as Ka}from"react/jsx-runtime";var Ll="k-numerictextbox",gn=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],kn={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},ft={showSpinButton:!0,showClearButton:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},H=e=>{let{size:t=ft.size,rounded:o=ft.rounded,fillMode:s=ft.fillMode,separators:i=ft.separators,showClearButton:n=ft.showClearButton,showSpinButton:d=ft.showSpinButton,prefix:c,suffix:m,value:b,placeholder:h,hover:w,focus:p,valid:N,invalid:v,required:S,loading:y,disabled:M,readonly:R,...z}=e;return Ka(P,{...z,size:t,rounded:o,fillMode:s,hover:w,focus:p,valid:N,invalid:v,required:S,loading:y,disabled:M,readonly:R,className:a(e.className,Ll),children:[c&&Ka(vl,{children:[Ke(Ae,{children:c}),i&&Ke(ze,{})]}),Ke(ve,{placeholder:h,value:b}),Ke(ne,{valid:N,invalid:v,loading:y,disabled:M}),Ke(pe,{loading:y,disabled:M}),n&&Ke(ke,{loading:y,disabled:M,readonly:R,value:b}),m&&Ka(vl,{children:[i&&Ke(ze,{}),Ke(Re,{children:m})]}),d&&Ke(Ht,{className:"k-input-spinner",size:t,fillMode:s})]})};H.states=gn;H.options=kn;H.className=Ll;H.defaultOptions=ft;import{jsx as oh}from"react/jsx-runtime";import{jsx as Ln}from"react/jsx-runtime";var vn="k-no-data",No=e=>Ln("span",{className:a(vn,e.className),children:e.children});import{jsx as Et,jsxs as Sl}from"react/jsx-runtime";var Oa="k-list",wn=[],Sn={size:[l.small,l.medium,l.large]},yl={size:l.medium},E=e=>{let{size:t=yl.size,virtualization:o,children:s,optionLabel:i,customValue:n,screenReaders:d,...c}=e,m,b,h,w,p=[];return s?s.map((N,v)=>{N.type===W?(N.props.root===!0?(m=N.props.label,N.props.children.map((S,y)=>{p.push(Et(C,{...S.props},`optChild-${y}-${new Date().getTime()}`))})):N.props.children.forEach((S,y)=>{let M="";y===0&&(M=N.props.label),p.push(Et(C,{className:y===0?"k-first":"",...S.props,groupLabel:M},`groupLabel-${y}-${new Date().getTime()}`))}),b=Et(W,{label:m,virtualization:o,children:p})):N.type===C&&(p.push(Et(C,{...N.props},`${N.type}-${v}`)),h=Et(zt,{virtualization:o,children:p}),d&&(w=Sl(No,{className:"k-sr-only",children:[p.length," items found."]})))}):w=Et(No,{children:"No data found."}),Sl("div",{...c,className:a(e.className,Oa,L(Oa,{size:t}),{"k-virtual-list":o}),children:[i,n,b,h,w]})};E.states=wn;E.options=Sn;E.className=Oa;E.defaultOptions=yl;import{jsx as bt,jsxs as Mn}from"react/jsx-runtime";var Da="k-list",yn=[],Cn={size:[l.small,l.medium,l.large]},Cl={size:l.medium},Tt=e=>{let{size:t=Cl.size,virtualization:o,children:s,...i}=e,n,d,c,m=[];return s?s.map((b,h)=>{b.type===W?(b.props.root===!0?(n=b.props.label,b.props.children.map((w,p)=>{m.push(bt(C,{...w.props},`optChild-${p}-${new Date().getTime()}`))})):(m.push(bt(Ml,{...b.props,children:b.props.label},`listChild-${h}`)),b.props.children.map((w,p)=>{m.push(bt(C,{...w.props},`fwOptChild-${p}-${new Date().getTime()}`))})),d=bt(W,{label:n,virtualization:o,children:m})):b.type===C&&(m.push(bt(C,{...b.props},`${b.type}-${h}`)),c=bt(zt,{virtualization:o,children:m}))}):c=bt(No,{children:"No data found."}),Mn("div",{...i,className:a(e.className,Da,L(Da,{size:t}),{"k-virtual-list":o}),children:[d,c]})};Tt.states=yn;Tt.options=Cn;Tt.className=Da;Tt.defaultOptions=Cl;import{jsx as Il}from"react/jsx-runtime";var Jo="k-checkbox",In=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],An={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full]},Fa={size:l.medium,rounded:f.medium},we=e=>{let{id:t,checked:o,indeterminate:s,hover:i,focus:n,disabled:d,invalid:c,valid:m,required:b,size:h=Fa.size,rounded:w=Fa.rounded,...p}=e;return Il("span",{className:"k-checkbox-wrap",children:Il("input",{...p,id:t,type:"checkbox",defaultChecked:o,required:b,className:a(e.className,Jo,L(Jo,{size:h,rounded:w}),g(Jo,{hover:i,focus:n,disabled:d,invalid:c,valid:m,indeterminate:s,checked:o}))})})};we.states=In;we.options=An;we.className=Jo;we.defaultOptions=Fa;import{jsx as Gn}from"react/jsx-runtime";var Al="k-checkbox-list",Rn=[],Bn={},Rl={layout:"vertical"},Kt=e=>{let{layout:t=Rl.layout,...o}=e;return Gn("ul",{...o,className:a(e.className,Al,{[`k-list-${t}`]:t}),children:e.children})};Kt.states=Rn;Kt.options=Bn;Kt.className=Al;Kt.defaultOptions=Rl;import{jsx as zn}from"react/jsx-runtime";var Bl="k-checkbox-list-item",Pn=[],Hn={},En={},Ot=e=>{let{...t}=e;return zn("li",{...t,className:a(e.className,Bl),children:e.children})};Ot.states=Pn;Ot.options=Hn;Ot.className=Bl;Ot.defaultOptions=En;import{Fragment as Rh,jsx as Ah,jsxs as Bh}from"react/jsx-runtime";import{Fragment as zh,jsx as Eh,jsxs as Kh}from"react/jsx-runtime";import{Fragment as Vh,jsx as $h,jsxs as _h}from"react/jsx-runtime";import{Fragment as qh,jsx as Uh,jsxs as Qh}from"react/jsx-runtime";import{jsx as eN}from"react/jsx-runtime";import{jsx as rN}from"react/jsx-runtime";import{jsx as Wo,jsxs as Fn}from"react/jsx-runtime";var Va="k-list-item",Kn=[r.hover,r.focus,r.selected,r.disabled],On={},Dn={},C=e=>{let{text:t,groupLabel:o,group:s,showIcon:i,iconName:n,showCheckbox:d,checked:c,hover:m,focus:b,selected:h,disabled:w,...p}=e,N=t||e.children;return Fn("li",{...p,className:a(e.className,s?"k-list-group-item":Va,g(Va,{hover:m,focus:b,disabled:w,selected:h})),children:[d&&Wo(we,{checked:c}),i&&Wo(k,{icon:n}),Wo("span",{className:"k-list-item-text",children:N}),o&&o!==""&&Wo("div",{className:"k-list-item-group-label",children:o})]})};C.states=Kn;C.options=On;C.className=Va;C.defaultOptions=Dn;import{jsx as _a,jsxs as Vn}from"react/jsx-runtime";var $n="k-list-content",zt=e=>{let{virtualization:t,...o}=e;return Vn("div",{...o,className:a($n,e.className),children:[_a("ul",{className:a("k-list-ul"),children:e.children}),t&&_a("div",{className:"k-height-container",children:_a("div",{})})]})};import{jsx as Gl}from"react/jsx-runtime";var _n="k-list-group-sticky-header",Pl=e=>Gl("div",{className:a(_n,e.className),children:Gl("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Xn,jsx as Hl,jsxs as Jn}from"react/jsx-runtime";var W=e=>{let{virtualization:t,label:o}=e;return Jn(Xn,{children:[o&&Hl(Pl,{children:o}),e.children&&Hl(zt,{virtualization:t,children:e.children})]})};import{jsx as El}from"react/jsx-runtime";var Wn="k-list-group-item",Ml=e=>El("li",{className:a(Wn,e.className),children:El("span",{className:"k-list-item-text",children:e.children})});import{jsx as Yn}from"react/jsx-runtime";var Xa="k-list-optionlabel",Un=[r.hover,r.focus,r.selected,r.disabled],qn={},Qn={},Uo=e=>{let{text:t,hover:o,focus:s,selected:i,disabled:n,...d}=e;return Yn("div",{...d,className:a(Xa,g(Xa,{hover:o,focus:s,selected:i,disabled:n})),children:t})};Uo.states=Un;Uo.options=qn;Uo.className=Xa;Uo.defaultOptions=Qn;import{jsx as td}from"react/jsx-runtime";var Ja="k-list-custom-value",Zn=[r.hover,r.focus,r.selected,r.disabled],jn={},ed={},at=e=>{let{text:t,hover:o,focus:s,selected:i,disabled:n,...d}=e;return td("div",{...d,className:a(Ja,g(Ja,{hover:o,focus:s,selected:i,disabled:n})),children:t})};at.states=Zn;at.options=jn;at.className=Ja;at.defaultOptions=ed;import{jsx as FN}from"react/jsx-runtime";import{jsx as XN}from"react/jsx-runtime";import{jsx as qN,jsxs as QN}from"react/jsx-runtime";import{jsx as eg,jsxs as tg}from"react/jsx-runtime";import{jsx as lg}from"react/jsx-runtime";import{jsx as dg,jsxs as cg}from"react/jsx-runtime";import{jsx as fg,jsxs as bg}from"react/jsx-runtime";import{Fragment as rd,jsx as ee,jsxs as Wa}from"react/jsx-runtime";var zl="k-dropdownlist",od=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ad={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},Dt={showValue:!0,arrowIconName:"caret-alt-down",size:l.medium,rounded:f.medium,fillMode:T.solid},Se=e=>{let{size:t=Dt.size,rounded:o=Dt.rounded,fillMode:s=Dt.fillMode,arrowIconName:i=Dt.arrowIconName,showValue:n=Dt.showValue,valueIconName:d,prefix:c,suffix:m,value:b,placeholder:h,hover:w,focus:p,valid:N,invalid:v,required:S,loading:y,disabled:M,readonly:R,popup:z,opened:$,adaptive:ct,adaptiveSettings:io,adaptiveTitle:ua,adaptiveSubtitle:fa,adaptiveFilter:Ds,...Fs}=e;return Wa(rd,{children:[Wa(ge,{...Fs,size:t,rounded:o,fillMode:s,hover:w,focus:p,valid:N,invalid:v,required:S,loading:y,disabled:M,readonly:R,className:a(e.className,zl,{"k-icon-picker":!n&&d}),children:[ee(Ae,{children:c}),ee(mt,{placeholder:h,value:b,showValue:n,valueIconName:d}),ee(ne,{valid:N,invalid:v,loading:y,disabled:M}),ee(pe,{loading:y,disabled:M}),ee(Re,{children:m}),ee(x,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),$&&z&&ee(J,{className:"k-list-container k-dropdownlist-popup",children:z}),ct&&ee(Le,{adaptive:!0,...io,header:ee(me,{actionsEnd:ee(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ds,inputValue:b,inputPlaceholder:h,title:ua,subtitle:fa}),children:ee("div",{className:"k-list-container",children:Wa(E,{size:"large",children:[ee(C,{text:"List item"}),ee(C,{text:"List item"}),ee(C,{text:"List item"})]})})})]})};Se.states=od;Se.options=ad;Se.className=zl;Se.defaultOptions=Dt;import{jsx as Xg}from"react/jsx-runtime";import{jsx as Qg,jsxs as Yg}from"react/jsx-runtime";import{Fragment as lk,jsx as ak,jsxs as rk}from"react/jsx-runtime";import{jsx as dk}from"react/jsx-runtime";import{jsx as fk,jsxs as bk}from"react/jsx-runtime";import{jsx as gk,jsxs as kk}from"react/jsx-runtime";import{Fragment as Ik,jsx as Ck,jsxs as Mk}from"react/jsx-runtime";import{Fragment as zk,jsx as Hk,jsxs as Ek}from"react/jsx-runtime";import{Fragment as jk,jsx as Zk}from"react/jsx-runtime";import{Fragment as sv,jsx as lv}from"react/jsx-runtime";import{Fragment as go,jsx as I,jsxs as D}from"react/jsx-runtime";var Kl="k-colorgradient-inputs",ld=[],sd={size:[l.small,l.medium,l.large]},Ol={mode:"rgba",size:l.medium},Ft=e=>{let{mode:t=Ol.mode,size:o,...s}=e;return D("div",{...s,className:a(Kl,"k-hstack"),children:[I("div",{className:"k-vstack",children:I(x,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&D(go,{children:[D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),I("label",{className:"k-colorgradient-input-label",children:"R"})]}),D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),I("label",{className:"k-colorgradient-input-label",children:"G"})]}),D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),I("label",{className:"k-colorgradient-input-label",children:"B"})]}),D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),I("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&D(go,{children:[D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"R"})]}),D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"G"})]}),D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&D(go,{children:[D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"H"})]}),D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"S"})]}),D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"V"})]}),D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),I("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&D(go,{children:[D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"H"})]}),D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"S"})]}),D("div",{className:"k-vstack",children:[I(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&I(go,{children:D("div",{className:"k-vstack k-flex-1",children:[I(Be,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),I("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Ft.states=ld;Ft.options=sd;Ft.className=Kl;Ft.defaultOptions=Ol;import{jsx as ht,jsxs as Nt}from"react/jsx-runtime";var Dl="k-colorgradient-color-contrast",id=[],nd={},dd={},$t=()=>Nt("div",{className:a(Dl,"k-vbox"),children:[Nt("div",{className:"k-contrast-ratio",children:[ht("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Nt("span",{className:"k-contrast-validation !k-text-success",children:[ht(k,{icon:"check"}),ht(k,{icon:"check"})]})]}),Nt("div",{children:[ht("span",{children:"AA: 4.5"}),Nt("span",{className:"k-contrast-validation !k-text-success",children:["Pass",ht(k,{icon:"check"})]})]}),Nt("div",{children:[ht("span",{children:"AAA: 7.0"}),Nt("span",{className:"k-contrast-validation !k-text-error",children:["Fail",ht(k,{icon:"x"})]})]})]});$t.states=id;$t.options=nd;$t.className=Dl;$t.defaultOptions=dd;import{jsx as fe,jsxs as ko}from"react/jsx-runtime";var qo="k-colorgradient",cd=[r.hover,r.focus,r.readonly,r.disabled],pd={size:[l.small,l.medium,l.large]},ye={size:l.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"},rt=e=>{let{size:t=ye.size,mode:o=ye.mode,readonly:s=ye.readonly,disabled:i=ye.disabled,gradientStyle:n=ye.gradientStyle,dragHandleStyle:d=ye.dragHandleStyle,alphaStyle:c=ye.alphaStyle,alphaStyleHorizontal:m=ye.alphaStyleHorizontal,contrast:b=ye.contrast,dir:h,hover:w,focus:p,hoverHandle:N,focusHandle:v,canvasOrientation:S=ye.canvasOrientation,...y}=e;return ko("div",{...y,className:a(e.className,qo,L(qo,{size:t}),g(qo,{hover:w,focus:p,readonly:s,disabled:i})),dir:h,children:[!S||S==="horizontal"&&ko("div",{className:"k-colorgradient-canvas k-hstack",children:[fe("div",{className:"k-hsv-rectangle",style:n,children:fe("div",{className:"k-hsv-gradient",children:fe("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":v}),style:d})})}),ko("div",{className:"k-hsv-controls k-hstack",children:[fe(Ea,{className:"k-hue-slider",hover:N,focus:v}),o!=="rgb"&&o!=="hsv"&&fe(Ea,{className:"k-alpha-slider",hover:N,focus:v,trackStyle:c})]})]}),S==="vertical"&&ko("div",{className:"k-colorgradient-canvas k-vstack",children:[fe("div",{className:"k-hsv-rectangle",style:n,children:fe("div",{className:"k-hsv-gradient",children:fe("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":v}),style:d})})}),ko("div",{className:"k-hsv-controls k-vstack",children:[fe(Ha,{className:"k-hue-slider",hover:N,focus:v}),o!=="rgb"&&o!=="hsv"&&fe(Ha,{className:"k-alpha-slider",hover:N,focus:v,trackStyle:m})]})]}),fe(Ft,{mode:e.mode,size:t}),b&&fe($t,{})]})};rt.states=cd;rt.options=pd;rt.className=qo;rt.defaultOptions=ye;import{jsx as Rv}from"react/jsx-runtime";import{jsx as Hv}from"react/jsx-runtime";import{jsx as md}from"react/jsx-runtime";var Fl=e=>md("tr",{children:e.children});import{jsx as bd}from"react/jsx-runtime";var Ua="k-colorpalette-tile",ud=[r.hover,r.focus,r.selected],fd={},vo=e=>{let{color:t,tileSize:o,hover:s,focus:i,selected:n,...d}=e,c={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return bd("td",{...d,className:a(e.className,Ua,g(Ua,{hover:s,focus:i,selected:n})),style:c})};vo.states=ud;vo.options=fd;vo.className=Ua;import{jsx as Lo}from"react/jsx-runtime";var Qo="k-colorpalette",Td=[r.disabled],xd={size:[l.small,l.medium,l.large]},qa={columns:10,size:l.medium},Vt=e=>{let{size:t=qa.size,palette:o,columns:s=qa.columns,tileSize:i,disabled:n,...d}=e,c=[];if(o){let m=s||o.columns,b=o.colors?o.colors:o;Array.isArray(b)&&Array.from({length:Math.ceil(b.length/m)},(h,w)=>{let p=[];b.slice(w*m,(w+1)*m).map((v,S)=>{p.push(Lo(vo,{color:v,tileSize:i},S))});let N=Lo(Fl,{children:p},w);c.push(N)})}return Lo("div",{...d,className:a(e.className,Qo,g(Qo,{disabled:n}),L(Qo,{size:t})),children:Lo("table",{className:"k-colorpalette-table",children:Lo("tbody",{children:c.length>0?c:e.children})})})};Vt.states=Td;Vt.options=xd;Vt.className=Qo;Vt.defaultOptions=qa;var Qa={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 rL}from"react/jsx-runtime";import{jsx as be,jsxs as _t}from"react/jsx-runtime";var Yo="k-coloreditor",hd=[r.focus],Nd={size:[l.small,l.medium,l.large]},Xt={size:l.medium,view:"gradient",palette:Qa.office,actionButtons:!0,canvasOrientation:"horizontal"},Ge=e=>{let{size:t=Xt.size,view:o=Xt.view,palette:s=Xt.palette,color:i,currentColor:n,focus:d,focusView:c,dir:m,group:b,actionButtons:h=Xt.actionButtons,canvasOrientation:w=Xt.canvasOrientation,...p}=e;return _t("div",{...p,className:a(e.className,"k-flatcolorpicker",Yo,L(Yo,{size:t}),g(Yo,{focus:d})),dir:m,children:[_t("div",{className:"k-coloreditor-header k-hstack",children:[be("div",{className:"k-coloreditor-header-actions k-hstack",children:b&&_t(B,{fillMode:"flat",children:[be(x,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),be(x,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),be("div",{className:"k-spacer"}),_t("div",{className:"k-coloreditor-header-actions k-hstack",children:[be(x,{fillMode:"flat",icon:"droplet-slash",size:t}),_t("div",{className:"k-coloreditor-preview k-vstack",children:[be(Qe,{className:"k-coloreditor-preview-color",color:i}),be(Qe,{className:"k-coloreditor-current-color",color:n})]})]})]}),be("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?be(rt,{focus:c,size:t,canvasOrientation:w}):be(Vt,{palette:s,size:t})}),h&&_t(Ze,{className:"k-coloreditor-footer",alignment:"start",children:[be(x,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),be(x,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};Ge.states=hd;Ge.options=Nd;Ge.className=Yo;Ge.defaultOptions=Xt;import{jsx as LL}from"react/jsx-runtime";import{jsx as CL}from"react/jsx-runtime";import{jsx as RL}from"react/jsx-runtime";import{jsx as HL}from"react/jsx-runtime";import{Fragment as vd,jsx as Te,jsxs as Za}from"react/jsx-runtime";var $l="k-colorpicker",gd=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled],kd={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},wo={arrowIconName:"caret-alt-down",size:ge.defaultOptions.size,rounded:ge.defaultOptions.rounded,fillMode:ge.defaultOptions.fillMode},Oe=e=>{let{size:t=wo.size,rounded:o=wo.rounded,fillMode:s=wo.fillMode,arrowIconName:i=wo.arrowIconName,prefix:n,suffix:d,value:c,placeholder:m,hover:b,focus:h,valid:w,invalid:p,required:N,disabled:v,valueIconName:S,popup:y,opened:M,adaptive:R,adaptiveSettings:z,adaptiveTitle:$,adaptiveSubtitle:ct,...io}=e;return Za(vd,{children:[Za(ge,{...io,size:t,rounded:o,fillMode:s,hover:b,focus:h,valid:w,invalid:p,required:N,disabled:v,className:a(e.className,$l,"k-icon-picker"),children:[Te(Ae,{children:n}),Te(mt,{placeholder:m,value:c,showValue:!1,valueIcon:Te(Qe,{className:"k-value-icon",color:c,iconName:S}),valueIconName:S}),Te(Re,{children:d}),Te(x,{className:"k-input-button",icon:i,rounded:null,size:t,fillMode:s})]}),M&&y&&Te(J,{className:"k-colorpicker-popup",children:y}),R&&Te(Le,{adaptive:!0,...z,header:Te(me,{actionsEnd:Te(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:$,subtitle:ct}),footer:Za(fo,{children:[Te(x,{text:"Cancel",size:"large",themeColor:"base"}),Te(x,{text:"Set",size:"large",themeColor:"primary"})]}),children:Te(Ge,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};Oe.states=gd;Oe.options=kd;Oe.className=$l;Oe.defaultOptions=wo;import{jsx as tw}from"react/jsx-runtime";import{jsx as sw}from"react/jsx-runtime";import{jsx as pw}from"react/jsx-runtime";import{jsx as bw}from"react/jsx-runtime";import{jsx as Nw}from"react/jsx-runtime";import{jsx as Lw}from"react/jsx-runtime";import{Fragment as ja,jsx as X,jsxs as So}from"react/jsx-runtime";var Vl="k-combobox",wd=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],Sd={size:[l.small,l.medium,l.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},yo={size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},gt=e=>{let{size:t=yo.size,rounded:o=yo.rounded,fillMode:s=yo.fillMode,separators:i=yo.separators,prefix:n,suffix:d,value:c,placeholder:m,hover:b,focus:h,valid:w,invalid:p,required:N,loading:v,disabled:S,popup:y,opened:M,readonly:R,adaptive:z,adaptiveSettings:$,adaptiveTitle:ct,adaptiveSubtitle:io,adaptiveCustomValue:ua,...fa}=e;return So(ja,{children:[So(P,{...fa,size:t,rounded:o,fillMode:s,hover:b,focus:h,valid:w,invalid:p,required:N,loading:v,disabled:S,readonly:R,className:a(e.className,Vl),children:[n&&So(ja,{children:[X(Ae,{children:n}),i&&X(ze,{})]}),X(ve,{placeholder:m,value:c}),X(ne,{valid:w,invalid:p,loading:v,disabled:S}),X(pe,{loading:v,disabled:S}),X(ke,{loading:v,disabled:S,readonly:R,value:c}),d&&So(ja,{children:[i&&X(ze,{}),X(Re,{children:d})]}),X(x,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:s})]}),M&&y&&X(J,{className:"k-list-c