UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 88.2 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,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var v=(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"}),L=(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});var l={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},b={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"};import{Fragment as zs,jsx as Gr}from"react/jsx-runtime";var ua="k-icon k-font-icon",Ps=[],Hs={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]},Es={},so=e=>{let{size:t,themeColor:o,icon:s,rotate:i,flip:n,...d}=e;return s?Gr("span",{...d,className:a(e.className,ua,v(ua,{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"})}):Gr(zs,{})};so.states=Ps;so.options=Hs;so.className=ua;so.defaultOptions=Es;var Pr=so;import{Fragment as Ds,jsx as Go}from"react/jsx-runtime";var ba="k-icon k-svg-icon",Ks=[],Os={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]},Hr={viewBox:"0 0 24 24"},io=e=>{let{size:t,themeColor:o,rotate:s,flip:i,viewBox:n=Hr.viewBox,icon:d,...c}=e;if(!d)return Go(Ds,{});d==="none"&&{...c,className:a(e.className,ba,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return Go("span",{...c,className:a(e.className,ba,v("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:Go("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})})};io.states=Ks;io.options=Os;io.className=ba;io.defaultOptions=Hr;var fa=io;import*as Er from"@progress/kendo-svg-icons";import{Fragment as zr,jsx as no}from"react/jsx-runtime";var Fs=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),$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]},Ta={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{size:t,themeColor:o,icon:s,type:i=Ta.type,rotate:n,flip:d,viewBox:c=Ta.viewBox,...m}=e;if(!s)return no(zr,{});if(i==="svg"){if(s==="none")return no(fa,{...m,icon:s,size:t});let f=Fs(`${s}-icon`);return Er[f]?no(fa,{...m,icon:Er[f],size:t,themeColor:o,rotate:n,flip:d,viewBox:c}):no(zr,{})}return no(Pr,{...m,icon:s,size:t,themeColor:o,rotate:n,flip:d})};k.states=$s;k.options=Vs;k.defaultOptions=Ta;import{Fragment as Js,jsx as co,jsxs as Kr}from"react/jsx-runtime";var Po="k-button",_s=[r.hover,r.focus,r.active,r.selected,r.disabled],Xs={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.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]},it={size:l.medium,rounded:b.medium,fillMode:T.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},x=e=>{let{size:t=it.size,rounded:o=it.rounded,fillMode:s=it.fillMode,themeColor:i=it.themeColor,showArrow:n=it.showArrow,arrowIconName:d=it.arrowIconName,hover:c,focus:m,active:f,selected:h,disabled:w,icon:p,text:N,iconClassName:g,...S}=e,y=p!==void 0,M=e.children!==void 0;return Kr("button",{...S,className:a(e.className,Po,v(Po,{size:t,rounded:o,fillMode:s,themeColor:i}),L(Po,{hover:c,focus:m,active:f,disabled:w,selected:h}),{"k-icon-button":!N&&!M&&y}),children:[p&&co(k,{className:a(g,"k-button-icon"),icon:p}),N?Kr(Js,{children:[N&&co("span",{className:"k-button-text",children:N}),e.children]}):e.children&&co("span",{className:"k-button-text",children:e.children}),n&&co("span",{className:"k-menu-button-arrow k-button-arrow",children:co(k,{icon:d})})]})};x.states=_s;x.options=Xs;x.className=Po;x.defaultOptions=it;import{jsx as Ws}from"react/jsx-runtime";var Ho=e=>Ws(x,{icon:"folder",...e,children:void 0});import{jsx as Us}from"react/jsx-runtime";var xa=e=>Us(x,{icon:"folder",children:"Button",...e});import{jsx as Mm}from"react/jsx-runtime";import{jsx as Ys}from"react/jsx-runtime";var po="k-button-group",qs=[r.disabled],Qs={fillMode:[T.solid,T.flat,T.outline,T.clear,T.link]},Or={fillMode:T.solid},B=e=>{let{fillMode:t=Or.fillMode,disabled:o,stretched:s,...i}=e;return Ys("div",{...i,className:a(e.className,po,v(po,{fillMode:t}),L(po,{disabled:o}),{[`${po}-stretched`]:s}),children:e.children})};B.states=qs;B.options=Qs;B.className=po;B.defaultOptions=Or;import{Fragment as $m,jsx as Fm,jsxs as Vm}from"react/jsx-runtime";import{Fragment as qm,jsx as Um,jsxs as Qm}from"react/jsx-runtime";import{Fragment as ou,jsx as tu,jsxs as au}from"react/jsx-runtime";import{Fragment as du,jsx as nu,jsxs as cu}from"react/jsx-runtime";import{jsx as ei}from"react/jsx-runtime";var Eo="k-input",Zs=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],js={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},zo={size:l.medium,rounded:l.medium,fillMode:T.solid},G=e=>{let{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c,size:m=zo.size,rounded:f=zo.rounded,fillMode:h=zo.fillMode,...w}=e;return ei("span",{...w,className:a(e.className,Eo,v(Eo,{size:m,rounded:f,fillMode:h}),L(Eo,{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c}))})};G.states=Zs;G.options=js;G.className=Eo;G.defaultOptions=zo;import{jsx as ai}from"react/jsx-runtime";var Ko="k-picker",ti=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],oi={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},Oo={size:l.medium,rounded:b.medium,fillMode:T.solid},he=e=>{let{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c,size:m=Oo.size,rounded:f=Oo.rounded,fillMode:h=Oo.fillMode,...w}=e;return ai("span",{...w,className:a(e.className,Ko,v(Ko,{size:m,rounded:f,fillMode:h}),L(Ko,{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c})),children:e.children})};he.states=ti;he.options=oi;he.className=Ko;he.defaultOptions=Oo;import{Fragment as si,jsx as ha}from"react/jsx-runtime";var Dr="k-clear-value",ri=[r.disabled,r.loading,r.readonly],li={},Ne=e=>{let{disabled:t,loading:o,readonly:s,value:i}=e;return t||s||o||!i?ha(si,{}):ha("span",{className:a(e.className,Dr),children:ha(k,{icon:"x"})})};Ne.states=ri;Ne.options=li;Ne.className=Dr;import{jsx as di}from"react/jsx-runtime";var Na="k-input-inner",ii=[],ni={},Do={type:"text",autocomplete:"off",value:"",placeholder:""},ge=e=>{let{value:t=Do.value,type:o=Do.type,placeholder:s=Do.placeholder,autocomplete:i=Do.autocomplete,...n}=e;return di("input",{...n,type:o,className:a(e.className,Na,v(Na,e)),placeholder:s,autoComplete:i,defaultValue:t})};ge.states=ii;ge.options=ni;ge.className=Na;import{jsx as Fr,jsxs as mi}from"react/jsx-runtime";var ga="k-input-inner",ci=[],pi={},nt=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:i,valueIconName:n,...d}=e;return mi("span",{...d,className:a(e.className,ga,v(ga,e)),children:[i,!i&&n&&Fr(k,{className:"k-input-value-icon",icon:n}),s&&!t&&o,s&&t&&Fr("span",{className:"k-input-value-text",children:t})]})};nt.states=ci;nt.options=pi;nt.className=ga;import{jsx as fi}from"react/jsx-runtime";var ka="k-input-inner",ui=[],bi={},$r={value:"",placeholder:""},va=e=>{let{value:t=$r.value,placeholder:o=$r.placeholder,rows:s,...i}=e;return fi("textarea",{...i,className:a(e.className,ka,v(ka,e)),placeholder:o,rows:s,defaultValue:t})};va.states=ui;va.options=bi;va.className=ka;import{Fragment as xi,jsx as Vr}from"react/jsx-runtime";var _r="k-input-loading-icon",Ti=[r.disabled,r.loading],ce=e=>{let{disabled:t,loading:o}=e;return t||!o?Vr(xi,{}):Vr("span",{className:a(e.className,_r,"k-icon k-i-loading")})};ce.states=Ti;ce.className=_r;import{Fragment as gi,jsx as Xr}from"react/jsx-runtime";var Jr="k-input-validation-icon",hi=[r.valid,r.invalid,r.disabled,r.loading],Ni={},ae=e=>{let{valid:t,invalid:o,disabled:s,loading:i}=e,n=o?"warning-circle":"check-circle";return s||i||!!!(t||o)?Xr(gi,{}):Xr(k,{className:a(Jr),icon:n})};ae.states=hi;ae.options=Ni;ae.className=Jr;import{Fragment as Li,jsx as Wr}from"react/jsx-runtime";var ki="k-input-prefix",vi={direction:"horizontal"},ye=e=>{let{direction:t=vi.direction,...o}=e;return e.children?Wr("span",{...o,className:a(ki,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Wr(Li,{})};import{Fragment as yi,jsx as Ur}from"react/jsx-runtime";var wi="k-input-suffix",Si={direction:"horizontal"},Ce=e=>{let{direction:t=Si.direction,...o}=e;return e.children?Ur("span",{...o,className:a(wi,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ur(yi,{})};import{jsx as ju}from"react/jsx-runtime";import{jsx as ab}from"react/jsx-runtime";import{jsx as Mi}from"react/jsx-runtime";var qr="k-input-separator",Ci={direction:"vertical"},He=e=>{let{direction:t=Ci.direction,...o}=e;return Mi("span",{...o,className:a(qr,e.className,{[`${qr}-${t}`]:t})})};import{jsx as Qr,jsxs as Ri}from"react/jsx-runtime";var Yr="k-color-preview",Ii=[],Ai={},Xe=e=>{let{color:t,iconName:o,...s}=e;return Ri("span",{...s,className:a(e.className,Yr,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Qr(k,{icon:o,className:"k-color-preview-icon"}),Qr("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Xe.states=Ii;Xe.options=Ai;Xe.className=Yr;import{jsx as Zr}from"react/jsx-runtime";var jr="k-animation-container",Bi=[],Gi={},el={positionMode:"absolute"},Je=e=>{let{positionMode:t=el.positionMode,animationStyle:o,offset:s,...i}=e;return Zr("div",{...i,style:{...s,...e.style},className:a(e.className,jr,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Zr("div",{className:"k-child-animation-container",style:o,children:e.children})})};Je.states=Bi;Je.options=Gi;Je.className=jr;Je.defaultOptions=el;import{jsx as tl}from"react/jsx-runtime";var ol="k-popup",Pi=[],Hi={},al={positionMode:"absolute"},_=e=>{let{offset:t,positionMode:o=al.positionMode,animationStyle:s,...i}=e;return tl(Je,{positionMode:o,offset:t,animationStyle:s,children:tl("div",{...i,className:a(e.className,ol),children:e.children})})};_.states=Pi;_.options=Hi;_.className=ol;_.defaultOptions=al;import{jsx as Ki}from"react/jsx-runtime";var Fo="k-actions",Ei=[],zi={},La={alignment:"start",orientation:"horizontal"},We=e=>{let{alignment:t=La.alignment,orientation:o=La.orientation,...s}=e;return Ki("div",{...s,className:a(Fo,{[`${Fo}-${t}`]:t,[`${Fo}-${o}`]:o},e.className),children:e.children})};We.states=Ei;We.options=zi;We.className=Fo;We.defaultOptions=La;import{jsx as Di}from"react/jsx-runtime";var Oi="k-actionsheet-footer",rl={alignment:"stretched",orientation:"horizontal"},mo=e=>{let{alignment:t=rl.alignment,orientation:o=rl.orientation,template:s,as:i=s?"div":We,...n}=e;return Di(i,{...n,...!s&&{alignment:t,orientation:o},className:a(e.className,Oi),children:e.children})};import{jsx as uo,jsxs as Vi}from"react/jsx-runtime";var ll="k-searchbox",Fi=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],$i={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},wa={showIcon:!0,icon:"search",size:G.defaultOptions.size,rounded:G.defaultOptions.rounded,fillMode:G.defaultOptions.fillMode},U=e=>{let{value:t,placeholder:o,size:s,rounded:i,fillMode:n,hover:d,focus:c,valid:m,invalid:f,required:h,loading:w,disabled:p,showIcon:N=wa.showIcon,icon:g=wa.icon,...S}=e;return Vi(G,{...S,size:s,rounded:i,fillMode:n,hover:d,focus:c,valid:m,invalid:f,required:h,loading:w,disabled:p,className:a(e.className,ll),children:[N&&uo(k,{className:"k-input-icon",icon:g}),uo(ge,{placeholder:o,value:t}),uo(ce,{...e}),uo(ae,{...e}),uo(Ne,{...e})]})};U.states=Fi;U.options=$i;U.className=ll;U.defaultOptions=wa;import{jsx as of}from"react/jsx-runtime";import{Fragment as sl,jsx as Ue,jsxs as Sa}from"react/jsx-runtime";var il="k-textbox",_i=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Xi={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},dt={showClearButton:!0,showValidationIcon:!0,size:G.defaultOptions.size,rounded:G.defaultOptions.rounded,fillMode:G.defaultOptions.fillMode,separators:!0},Me=e=>{let{size:t=dt.size,rounded:o=dt.rounded,fillMode:s=dt.fillMode,separators:i=dt.separators,showClearButton:n=dt.showClearButton,showValidationIcon:d=dt.showValidationIcon,prefix:c,suffix:m,type:f,value:h,placeholder:w,hover:p,focus:N,valid:g,invalid:S,required:y,loading:M,disabled:R,readonly:E,...D}=e;return Sa(G,{...D,size:t,rounded:o,fillMode:s,hover:p,focus:N,valid:g,invalid:S,required:y,loading:M,disabled:R,readonly:E,className:a(e.className,il),children:[c&&Sa(sl,{children:[Ue(ye,{children:c}),i&&Ue(He,{})]}),Ue(ge,{placeholder:w,value:h,type:f}),d&&Ue(ae,{valid:g,invalid:S,loading:M,disabled:R}),Ue(ce,{loading:M,disabled:R}),n&&Ue(Ne,{loading:M,disabled:R,readonly:E,value:h}),m&&Sa(sl,{children:[i&&Ue(He,{}),Ue(Ce,{children:m})]})]})};Me.states=_i;Me.options=Xi;Me.className=il;Me.defaultOptions=dt;import{jsx as bf}from"react/jsx-runtime";import{Fragment as gf,jsx as Nf}from"react/jsx-runtime";import{Fragment as Cf,jsx as yf}from"react/jsx-runtime";import{jsx as qe,jsxs as ya}from"react/jsx-runtime";var dl="k-actionsheet-titlebar",Ji={},pe=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:i,filter:n,input:d,inputValue:c,inputPlaceholder:m,adaptive:f,children:h,...w}=e;return ya("div",{...w,className:a(e.className,dl),children:[ya("div",{className:"k-actionsheet-titlebar-group",children:[s&&qe("div",{className:"k-actionsheet-actions",children:s}),!h&&ya("div",{className:"k-actionsheet-title",children:[t&&qe("div",{className:"k-text-center",children:t}),o&&qe("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&qe("div",{className:"k-actionsheet-title",children:h}),i&&qe("div",{className:"k-actionsheet-actions",children:i})]}),(d||n)&&qe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?qe(Me,{value:c,placeholder:m,size:f?"large":"medium"}):qe(U,{placeholder:"Filter",size:f?"large":"medium"})})]})};pe.className=dl;pe.defaultOptions=Ji;import{jsx as Ca,jsxs as Qi}from"react/jsx-runtime";var Ma="k-actionsheet-view",Wi=[],Ui={},qi={},Mt=e=>{let{adaptive:t,animated:o,children:s,header:i,footer:n,...d}=e,c=i?.type===pe&&Ca(pe,{adaptive:t,...i?.props}),m=n?.type===mo&&Ca(mo,{...n?.props});return Qi("div",{...d,className:a(e.className,Ma,{[`${Ma}-animated`]:o}),children:[c,Ca("div",{className:"k-actionsheet-content",children:s}),m]})};Mt.states=Wi;Mt.options=Ui;Mt.className=Ma;Mt.defaultOptions=qi;import{jsx as $o,jsxs as ji}from"react/jsx-runtime";var cl="k-actionsheet",Yi=[],Zi={},bo={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ke=e=>{let{side:t=bo.side,fullscreen:o=bo.fullscreen,adaptive:s=bo.adaptive,overlay:i=bo.overlay,template:n,children:d,header:c,footer:m,...f}=e;return ji("div",{className:"k-actionsheet-container",children:[i&&$o("div",{className:"k-overlay"}),$o(Je,{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:$o("div",{...f,className:a(e.className,cl,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:n||$o(Mt,{header:c,footer:m,adaptive:s,...e,children:d})})})]})};ke.states=Yi;ke.options=Zi;ke.className=cl;ke.defaultOptions=bo;import{jsx as Yf}from"react/jsx-runtime";import{Fragment as tn,jsx as fo,jsxs as Ia}from"react/jsx-runtime";var Aa="k-actionsheet-item",en=[r.hover,r.focus,r.selected,r.disabled],Ra=e=>{let{iconName:t,text:o,description:s,hover:i,focus:n,selected:d,disabled:c,...m}=e;return Ia("span",{...m,className:a(e.className,Aa,L(Aa,{hover:i,focus:n,selected:d,disabled:c})),children:[!e.children&&fo(tn,{children:Ia("span",{className:"k-actionsheet-action",children:[t&&fo("span",{className:"k-icon-wrap",children:fo(k,{className:"k-actionsheet-item-icon",icon:t})}),Ia("span",{className:"k-actionsheet-item-text",children:[o&&fo("span",{className:"k-actionsheet-item-title",children:o}),s&&fo("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};Ra.states=en;Ra.className=Aa;import{jsx as sT,jsxs as iT}from"react/jsx-runtime";import{jsx as pT}from"react/jsx-runtime";import{jsx as fT}from"react/jsx-runtime";import{jsx as NT}from"react/jsx-runtime";import{jsx as It,jsxs as Ba}from"react/jsx-runtime";var To="k-slider",on=[r.hover,r.focus,r.active,r.disabled,r.readonly],an={},Qe={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},me=e=>{let{type:t=Qe.type,orientation:o=Qe.orientation,readonly:s=Qe.readonly,disabled:i=Qe.disabled,handlePosition:n=Qe.handlePosition,showButtons:d=Qe.showButtons,showTicks:c=Qe.showTicks,hover:m,focus:f,active:h,trackStyle:w,dir:p,...N}=e,g,S;return o==="horizontal"?(g=p==="rtl"?"caret-alt-left":"caret-alt-right",S=p==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(g="caret-alt-up",S="caret-alt-down"),Ba("div",{...N,className:a(To,e.className,L(To,{readonly:s,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:p,children:[d&&It(x,{className:"k-button-decrease",rounded:"full",icon:S}),Ba("div",{className:"k-slider-track-wrap",children:[c&&It("ul",{className:"k-reset k-slider-items",children:e.children}),Ba("div",{className:"k-slider-track",style:w,children:[It("div",{className:"k-slider-selection"}),t==="range"&&It("span",{className:a("k-draghandle","k-draghandle-start",L(To,{hover:m,focus:f,active:h}))}),It("span",{className:a("k-draghandle",`k-draghandle-${n}`,L(To,{hover:m,focus:f,active:h}))})]})]}),d&&It(x,{className:"k-button-increase",rounded:"full",icon:g})]})};me.states=on;me.options=an;me.className=To;me.defaultOptions=Qe;import{jsx as ml}from"react/jsx-runtime";var ul="k-tick",rn=[],ln={},bl={label:!1},Ye=e=>{let{style:t,label:o=bl.label,orientation:s,large:i,text:n,...d}=e;return ml("li",{...d,className:a(e.className,ul,{[`k-tick-${s}`]:s,"k-tick-large":i}),style:t,children:o&&ml("span",{className:"k-label",children:n})})};Ye.states=rn;Ye.options=ln;Ye.className=ul;Ye.defaultOptions=bl;import{Fragment as $T,jsx as FT,jsxs as VT}from"react/jsx-runtime";import{Fragment as UT,jsx as WT,jsxs as qT}from"react/jsx-runtime";import{Fragment as ex,jsx as jT,jsxs as tx}from"react/jsx-runtime";import{Fragment as sx,jsx as lx,jsxs as ix}from"react/jsx-runtime";import{jsx as sn}from"react/jsx-runtime";var Ga=e=>sn(me,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as nn}from"react/jsx-runtime";var Pa=e=>nn(me,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as fl,jsxs as pn}from"react/jsx-runtime";var Tl="k-spin-button",dn=[],cn={size:[l.small,l.medium,l.large],fillMode:[T.solid,T.flat,T.outline,T.clear,T.link]},Ha={size:l.medium,fillMode:T.solid},At=e=>{let{size:t=Ha.size,fillMode:o=Ha.fillMode,...s}=e;return pn("span",{...s,className:a(Tl,e.className),children:[fl(x,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),fl(x,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};At.states=dn;At.options=cn;At.className=Tl;At.defaultOptions=Ha;import{Fragment as xl,jsx as Ee,jsxs as Ea}from"react/jsx-runtime";var hl="k-numerictextbox",mn=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],un={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},ct={showSpinButton:!0,showClearButton:!0,size:G.defaultOptions.size,rounded:G.defaultOptions.rounded,fillMode:G.defaultOptions.fillMode,separators:!0},P=e=>{let{size:t=ct.size,rounded:o=ct.rounded,fillMode:s=ct.fillMode,separators:i=ct.separators,showClearButton:n=ct.showClearButton,showSpinButton:d=ct.showSpinButton,prefix:c,suffix:m,value:f,placeholder:h,hover:w,focus:p,valid:N,invalid:g,required:S,loading:y,disabled:M,readonly:R,...E}=e;return Ea(G,{...E,size:t,rounded:o,fillMode:s,hover:w,focus:p,valid:N,invalid:g,required:S,loading:y,disabled:M,readonly:R,className:a(e.className,hl),children:[c&&Ea(xl,{children:[Ee(ye,{children:c}),i&&Ee(He,{})]}),Ee(ge,{placeholder:h,value:f}),Ee(ae,{valid:N,invalid:g,loading:y,disabled:M}),Ee(ce,{loading:y,disabled:M}),n&&Ee(Ne,{loading:y,disabled:M,readonly:R,value:f}),m&&Ea(xl,{children:[i&&Ee(He,{}),Ee(Ce,{children:m})]}),d&&Ee(At,{className:"k-input-spinner",size:t,fillMode:s})]})};P.states=mn;P.options=un;P.className=hl;P.defaultOptions=ct;import{jsx as zx}from"react/jsx-runtime";import{jsx as fn}from"react/jsx-runtime";var bn="k-no-data",xo=e=>fn("span",{className:a(bn,e.className),children:e.children});import{jsx as Rt,jsxs as gl}from"react/jsx-runtime";var za="k-list",Tn=[],xn={size:[l.small,l.medium,l.large]},kl={size:l.medium},H=e=>{let{size:t=kl.size,virtualization:o,children:s,optionLabel:i,customValue:n,screenReaders:d,...c}=e,m,f,h,w,p=[];return s?s.map((N,g)=>{N.type===X?(N.props.root===!0?(m=N.props.label,N.props.children.map((S,y)=>{p.push(Rt(C,{...S.props},`optChild-${y}-${new Date().getTime()}`))})):N.props.children.forEach((S,y)=>{let M="";y===0&&(M=N.props.label),p.push(Rt(C,{className:y===0?"k-first":"",...S.props,groupLabel:M},`groupLabel-${y}-${new Date().getTime()}`))}),f=Rt(X,{label:m,virtualization:o,children:p})):N.type===C&&(p.push(Rt(C,{...N.props},`${N.type}-${g}`)),h=Rt(Bt,{virtualization:o,children:p}),d&&(w=gl(xo,{className:"k-sr-only",children:[p.length," items found."]})))}):w=Rt(xo,{children:"No data found."}),gl("div",{...c,className:a(e.className,za,v(za,{size:t}),{"k-virtual-list":o}),children:[i,n,f,h,w]})};H.states=Tn;H.options=xn;H.className=za;H.defaultOptions=kl;import{jsx as pt,jsxs as gn}from"react/jsx-runtime";var Ka="k-list",hn=[],Nn={size:[l.small,l.medium,l.large]},vl={size:l.medium},mt=e=>{let{size:t=vl.size,virtualization:o,children:s,...i}=e,n,d,c,m=[];return s?s.map((f,h)=>{f.type===X?(f.props.root===!0?(n=f.props.label,f.props.children.map((w,p)=>{m.push(pt(C,{...w.props},`optChild-${p}-${new Date().getTime()}`))})):(m.push(pt(Ll,{...f.props,children:f.props.label},`listChild-${h}`)),f.props.children.map((w,p)=>{m.push(pt(C,{...w.props},`fwOptChild-${p}-${new Date().getTime()}`))})),d=pt(X,{label:n,virtualization:o,children:m})):f.type===C&&(m.push(pt(C,{...f.props},`${f.type}-${h}`)),c=pt(Bt,{virtualization:o,children:m}))}):c=pt(xo,{children:"No data found."}),gn("div",{...i,className:a(e.className,Ka,v(Ka,{size:t}),{"k-virtual-list":o}),children:[d,c]})};mt.states=hn;mt.options=Nn;mt.className=Ka;mt.defaultOptions=vl;import{jsx as wl}from"react/jsx-runtime";var Vo="k-checkbox",kn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],vn={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full]},Oa={size:l.medium,rounded:b.medium},ve=e=>{let{id:t,checked:o,indeterminate:s,hover:i,focus:n,disabled:d,invalid:c,valid:m,required:f,size:h=Oa.size,rounded:w=Oa.rounded,...p}=e;return wl("span",{className:"k-checkbox-wrap",children:wl("input",{...p,id:t,type:"checkbox",defaultChecked:o,required:f,className:a(e.className,Vo,v(Vo,{size:h,rounded:w}),L(Vo,{hover:i,focus:n,disabled:d,invalid:c,valid:m,indeterminate:s,checked:o}))})})};ve.states=kn;ve.options=vn;ve.className=Vo;ve.defaultOptions=Oa;import{jsx as Sn}from"react/jsx-runtime";var Sl="k-checkbox-list",Ln=[],wn={},yl={layout:"vertical"},Gt=e=>{let{layout:t=yl.layout,...o}=e;return Sn("ul",{...o,className:a(e.className,Sl,{[`k-list-${t}`]:t}),children:e.children})};Gt.states=Ln;Gt.options=wn;Gt.className=Sl;Gt.defaultOptions=yl;import{jsx as In}from"react/jsx-runtime";var Cl="k-checkbox-list-item",yn=[],Cn={},Mn={},Pt=e=>{let{...t}=e;return In("li",{...t,className:a(e.className,Cl),children:e.children})};Pt.states=yn;Pt.options=Cn;Pt.className=Cl;Pt.defaultOptions=Mn;import{Fragment as mh,jsx as ph,jsxs as uh}from"react/jsx-runtime";import{Fragment as hh,jsx as xh,jsxs as Nh}from"react/jsx-runtime";import{Fragment as wh,jsx as Lh,jsxs as Sh}from"react/jsx-runtime";import{Fragment as Ah,jsx as Ih,jsxs as Rh}from"react/jsx-runtime";import{jsx as Hh}from"react/jsx-runtime";import{jsx as Oh}from"react/jsx-runtime";import{jsx as _o,jsxs as Gn}from"react/jsx-runtime";var Fa="k-list-item",An=[r.hover,r.focus,r.selected,r.disabled],Rn={},Bn={},C=e=>{let{text:t,groupLabel:o,group:s,showIcon:i,iconName:n,showCheckbox:d,checked:c,hover:m,focus:f,selected:h,disabled:w,...p}=e,N=t||e.children;return Gn("li",{...p,className:a(e.className,s?"k-list-group-item":Fa,L(Fa,{hover:m,focus:f,disabled:w,selected:h})),children:[d&&_o(ve,{checked:c}),i&&_o(k,{icon:n}),_o("span",{className:"k-list-item-text",children:N}),o&&o!==""&&_o("div",{className:"k-list-item-group-label",children:o})]})};C.states=An;C.options=Rn;C.className=Fa;C.defaultOptions=Bn;import{jsx as $a,jsxs as Hn}from"react/jsx-runtime";var Pn="k-list-content",Bt=e=>{let{virtualization:t,...o}=e;return Hn("div",{...o,className:a(Pn,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 Ml}from"react/jsx-runtime";var En="k-list-group-sticky-header",Il=e=>Ml("div",{className:a(En,e.className),children:Ml("div",{className:"k-list-header-text",children:e.children})});import{Fragment as zn,jsx as Al,jsxs as Kn}from"react/jsx-runtime";var X=e=>{let{virtualization:t,label:o}=e;return Kn(zn,{children:[o&&Al(Il,{children:o}),e.children&&Al(Bt,{virtualization:t,children:e.children})]})};import{jsx as Rl}from"react/jsx-runtime";var On="k-list-group-item",Ll=e=>Rl("li",{className:a(On,e.className),children:Rl("span",{className:"k-list-item-text",children:e.children})});import{jsx as Vn}from"react/jsx-runtime";var Va="k-list-optionlabel",Dn=[r.hover,r.focus,r.selected,r.disabled],Fn={},$n={},Xo=e=>{let{text:t,hover:o,focus:s,selected:i,disabled:n,...d}=e;return Vn("div",{...d,className:a(Va,L(Va,{hover:o,focus:s,selected:i,disabled:n})),children:t})};Xo.states=Dn;Xo.options=Fn;Xo.className=Va;Xo.defaultOptions=$n;import{jsx as Wn}from"react/jsx-runtime";var _a="k-list-custom-value",_n=[r.hover,r.focus,r.selected,r.disabled],Xn={},Jn={},Ze=e=>{let{text:t,hover:o,focus:s,selected:i,disabled:n,...d}=e;return Wn("div",{...d,className:a(_a,L(_a,{hover:o,focus:s,selected:i,disabled:n})),children:t})};Ze.states=_n;Ze.options=Xn;Ze.className=_a;Ze.defaultOptions=Jn;import{jsx as vN}from"react/jsx-runtime";import{jsx as yN}from"react/jsx-runtime";import{jsx as AN,jsxs as RN}from"react/jsx-runtime";import{jsx as HN,jsxs as EN}from"react/jsx-runtime";import{jsx as DN}from"react/jsx-runtime";import{jsx as _N,jsxs as XN}from"react/jsx-runtime";import{jsx as qN,jsxs as QN}from"react/jsx-runtime";import{Fragment as Qn,jsx as Z,jsxs as Xa}from"react/jsx-runtime";var Bl="k-dropdownlist",Un=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],qn={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},Ht={showValue:!0,arrowIconName:"caret-alt-down",size:l.medium,rounded:b.medium,fillMode:T.solid},Le=e=>{let{size:t=Ht.size,rounded:o=Ht.rounded,fillMode:s=Ht.fillMode,arrowIconName:i=Ht.arrowIconName,showValue:n=Ht.showValue,valueIconName:d,prefix:c,suffix:m,value:f,placeholder:h,hover:w,focus:p,valid:N,invalid:g,required:S,loading:y,disabled:M,readonly:R,popup:E,opened:D,adaptive:st,adaptiveSettings:lo,adaptiveTitle:pa,adaptiveSubtitle:ma,adaptiveFilter:Bs,...Gs}=e;return Xa(Qn,{children:[Xa(he,{...Gs,size:t,rounded:o,fillMode:s,hover:w,focus:p,valid:N,invalid:g,required:S,loading:y,disabled:M,readonly:R,className:a(e.className,Bl,{"k-icon-picker":!n&&d}),children:[Z(ye,{children:c}),Z(nt,{placeholder:h,value:f,showValue:n,valueIconName:d}),Z(ae,{valid:N,invalid:g,loading:y,disabled:M}),Z(ce,{loading:y,disabled:M}),Z(Ce,{children:m}),Z(x,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),D&&E&&Z(_,{className:"k-list-container k-dropdownlist-popup",children:E}),st&&Z(ke,{adaptive:!0,...lo,header:Z(pe,{actionsEnd:Z(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Bs,inputValue:f,inputPlaceholder:h,title:pa,subtitle:ma}),children:Z("div",{className:"k-list-container",children:Xa(H,{size:"large",children:[Z(C,{text:"List item"}),Z(C,{text:"List item"}),Z(C,{text:"List item"})]})})})]})};Le.states=Un;Le.options=qn;Le.className=Bl;Le.defaultOptions=Ht;import{jsx as yg}from"react/jsx-runtime";import{jsx as Rg,jsxs as Bg}from"react/jsx-runtime";import{Fragment as Dg,jsx as Kg,jsxs as Og}from"react/jsx-runtime";import{jsx as _g}from"react/jsx-runtime";import{jsx as qg,jsxs as Qg}from"react/jsx-runtime";import{jsx as tk,jsxs as ok}from"react/jsx-runtime";import{Fragment as ck,jsx as nk,jsxs as dk}from"react/jsx-runtime";import{Fragment as hk,jsx as Tk,jsxs as xk}from"react/jsx-runtime";import{Fragment as Pk,jsx as Gk}from"react/jsx-runtime";import{Fragment as Fk,jsx as Dk}from"react/jsx-runtime";import{Fragment as ho,jsx as I,jsxs as z}from"react/jsx-runtime";var Gl="k-colorgradient-inputs",Yn=[],Zn={size:[l.small,l.medium,l.large]},Pl={mode:"rgba",size:l.medium},Et=e=>{let{mode:t=Pl.mode,size:o,...s}=e;return z("div",{...s,className:a(Gl,"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"&&z(ho,{children:[z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),I("label",{className:"k-colorgradient-input-label",children:"R"})]}),z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),I("label",{className:"k-colorgradient-input-label",children:"G"})]}),z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),I("label",{className:"k-colorgradient-input-label",children:"B"})]}),z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),I("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&z(ho,{children:[z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"R"})]}),z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"G"})]}),z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&z(ho,{children:[z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"H"})]}),z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"S"})]}),z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"V"})]}),z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),I("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&z(ho,{children:[z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"H"})]}),z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"S"})]}),z("div",{className:"k-vstack",children:[I(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&I(ho,{children:z("div",{className:"k-vstack k-flex-1",children:[I(Me,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),I("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Et.states=Yn;Et.options=Zn;Et.className=Gl;Et.defaultOptions=Pl;import{jsx as bt,jsxs as ft}from"react/jsx-runtime";var Hl="k-colorgradient-color-contrast",jn=[],ed={},td={},zt=()=>ft("div",{className:a(Hl,"k-vbox"),children:[ft("div",{className:"k-contrast-ratio",children:[bt("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),ft("span",{className:"k-contrast-validation !k-text-success",children:[bt(k,{icon:"check"}),bt(k,{icon:"check"})]})]}),ft("div",{children:[bt("span",{children:"AA: 4.5"}),ft("span",{className:"k-contrast-validation !k-text-success",children:["Pass",bt(k,{icon:"check"})]})]}),ft("div",{children:[bt("span",{children:"AAA: 7.0"}),ft("span",{className:"k-contrast-validation !k-text-error",children:["Fail",bt(k,{icon:"x"})]})]})]});zt.states=jn;zt.options=ed;zt.className=Hl;zt.defaultOptions=td;import{jsx as ue,jsxs as No}from"react/jsx-runtime";var Jo="k-colorgradient",od=[r.hover,r.focus,r.readonly,r.disabled],ad={size:[l.small,l.medium,l.large]},we={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"},je=e=>{let{size:t=we.size,mode:o=we.mode,readonly:s=we.readonly,disabled:i=we.disabled,gradientStyle:n=we.gradientStyle,dragHandleStyle:d=we.dragHandleStyle,alphaStyle:c=we.alphaStyle,alphaStyleHorizontal:m=we.alphaStyleHorizontal,contrast:f=we.contrast,dir:h,hover:w,focus:p,hoverHandle:N,focusHandle:g,canvasOrientation:S=we.canvasOrientation,...y}=e;return No("div",{...y,className:a(e.className,Jo,v(Jo,{size:t}),L(Jo,{hover:w,focus:p,readonly:s,disabled:i})),dir:h,children:[!S||S==="horizontal"&&No("div",{className:"k-colorgradient-canvas k-hstack",children:[ue("div",{className:"k-hsv-rectangle",style:n,children:ue("div",{className:"k-hsv-gradient",children:ue("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":g}),style:d})})}),No("div",{className:"k-hsv-controls k-hstack",children:[ue(Pa,{className:"k-hue-slider",hover:N,focus:g}),o!=="rgb"&&o!=="hsv"&&ue(Pa,{className:"k-alpha-slider",hover:N,focus:g,trackStyle:c})]})]}),S==="vertical"&&No("div",{className:"k-colorgradient-canvas k-vstack",children:[ue("div",{className:"k-hsv-rectangle",style:n,children:ue("div",{className:"k-hsv-gradient",children:ue("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":g}),style:d})})}),No("div",{className:"k-hsv-controls k-vstack",children:[ue(Ga,{className:"k-hue-slider",hover:N,focus:g}),o!=="rgb"&&o!=="hsv"&&ue(Ga,{className:"k-alpha-slider",hover:N,focus:g,trackStyle:m})]})]}),ue(Et,{mode:e.mode,size:t}),f&&ue(zt,{})]})};je.states=od;je.options=ad;je.className=Jo;je.defaultOptions=we;import{jsx as mv}from"react/jsx-runtime";import{jsx as Tv}from"react/jsx-runtime";import{jsx as rd}from"react/jsx-runtime";var El=e=>rd("tr",{children:e.children});import{jsx as id}from"react/jsx-runtime";var Ja="k-colorpalette-tile",ld=[r.hover,r.focus,r.selected],sd={},go=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 id("td",{...d,className:a(e.className,Ja,L(Ja,{hover:s,focus:i,selected:n})),style:c})};go.states=ld;go.options=sd;go.className=Ja;import{jsx as ko}from"react/jsx-runtime";var Wo="k-colorpalette",nd=[r.disabled],dd={size:[l.small,l.medium,l.large]},Wa={columns:10,size:l.medium},Kt=e=>{let{size:t=Wa.size,palette:o,columns:s=Wa.columns,tileSize:i,disabled:n,...d}=e,c=[];if(o){let m=s||o.columns,f=o.colors?o.colors:o;Array.isArray(f)&&Array.from({length:Math.ceil(f.length/m)},(h,w)=>{let p=[];f.slice(w*m,(w+1)*m).map((g,S)=>{p.push(ko(go,{color:g,tileSize:i},S))});let N=ko(El,{children:p},w);c.push(N)})}return ko("div",{...d,className:a(e.className,Wo,L(Wo,{disabled:n}),v(Wo,{size:t})),children:ko("table",{className:"k-colorpalette-table",children:ko("tbody",{children:c.length>0?c:e.children})})})};Kt.states=nd;Kt.options=dd;Kt.className=Wo;Kt.defaultOptions=Wa;var Ua={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 Ov}from"react/jsx-runtime";import{jsx as be,jsxs as Ot}from"react/jsx-runtime";var Uo="k-coloreditor",cd=[r.focus],pd={size:[l.small,l.medium,l.large]},Dt={size:l.medium,view:"gradient",palette:Ua.office,actionButtons:!0,canvasOrientation:"horizontal"},Ie=e=>{let{size:t=Dt.size,view:o=Dt.view,palette:s=Dt.palette,color:i,currentColor:n,focus:d,focusView:c,dir:m,group:f,actionButtons:h=Dt.actionButtons,canvasOrientation:w=Dt.canvasOrientation,...p}=e;return Ot("div",{...p,className:a(e.className,"k-flatcolorpicker",Uo,v(Uo,{size:t}),L(Uo,{focus:d})),dir:m,children:[Ot("div",{className:"k-coloreditor-header k-hstack",children:[be("div",{className:"k-coloreditor-header-actions k-hstack",children:f&&Ot(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"}),Ot("div",{className:"k-coloreditor-header-actions k-hstack",children:[be(x,{fillMode:"flat",icon:"droplet-slash",size:t}),Ot("div",{className:"k-coloreditor-preview k-vstack",children:[be(Xe,{className:"k-coloreditor-preview-color",color:i}),be(Xe,{className:"k-coloreditor-current-color",color:n})]})]})]}),be("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?be(je,{focus:c,size:t,canvasOrientation:w}):be(Kt,{palette:s,size:t})}),h&&Ot(We,{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"})]})]})};Ie.states=cd;Ie.options=pd;Ie.className=Uo;Ie.defaultOptions=Dt;import{jsx as rL}from"react/jsx-runtime";import{jsx as nL}from"react/jsx-runtime";import{jsx as mL}from"react/jsx-runtime";import{jsx as TL}from"react/jsx-runtime";import{Fragment as bd,jsx as fe,jsxs as Qa}from"react/jsx-runtime";var zl="k-colorpicker",md=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled],ud={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},vo={arrowIconName:"caret-alt-down",size:he.defaultOptions.size,rounded:he.defaultOptions.rounded,fillMode:he.defaultOptions.fillMode},ze=e=>{let{size:t=vo.size,rounded:o=vo.rounded,fillMode:s=vo.fillMode,arrowIconName:i=vo.arrowIconName,prefix:n,suffix:d,value:c,placeholder:m,hover:f,focus:h,valid:w,invalid:p,required:N,disabled:g,valueIconName:S,popup:y,opened:M,adaptive:R,adaptiveSettings:E,adaptiveTitle:D,adaptiveSubtitle:st,...lo}=e;return Qa(bd,{children:[Qa(he,{...lo,size:t,rounded:o,fillMode:s,hover:f,focus:h,valid:w,invalid:p,required:N,disabled:g,className:a(e.className,zl,"k-icon-picker"),children:[fe(ye,{children:n}),fe(nt,{placeholder:m,value:c,showValue:!1,valueIcon:fe(Xe,{className:"k-value-icon",color:c,iconName:S}),valueIconName:S}),fe(Ce,{children:d}),fe(x,{className:"k-input-button",icon:i,rounded:null,size:t,fillMode:s})]}),M&&y&&fe(_,{className:"k-colorpicker-popup",children:y}),R&&fe(ke,{adaptive:!0,...E,header:fe(pe,{actionsEnd:fe(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:D,subtitle:st}),footer:Qa(mo,{children:[fe(x,{text:"Cancel",size:"large",themeColor:"base"}),fe(x,{text:"Set",size:"large",themeColor:"primary"})]}),children:fe(Ie,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};ze.states=md;ze.options=ud;ze.className=zl;ze.defaultOptions=vo;import{jsx as EL}from"react/jsx-runtime";import{jsx as FL}from"react/jsx-runtime";import{jsx as JL}from"react/jsx-runtime";import{jsx as QL}from"react/jsx-runtime";import{jsx as ew}from"react/jsx-runtime";import{jsx as rw}from"react/jsx-runtime";import{Fragment as Ya,jsx as $,jsxs as Lo}from"react/jsx-runtime";var Kl="k-combobox",Td=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],xd={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},wo={size:G.defaultOptions.size,rounded:G.defaultOptions.rounded,fillMode:G.defaultOptions.fillMode,separators:!0},Tt=e=>{let{size:t=wo.size,rounded:o=wo.rounded,fillMode:s=wo.fillMode,separators:i=wo.separators,prefix:n,suffix:d,value:c,placeholder:m,hover:f,focus:h,valid:w,invalid:p,required:N,loading:g,disabled:S,popup:y,opened:M,readonly:R,adaptive:E,adaptiveSettings:D,adaptiveTitle:st,adaptiveSubtitle:lo,adaptiveCustomValue:pa,...ma}=e;return Lo(Ya,{children:[Lo(G,{...ma,size:t,rounded:o,fillMode:s,hover:f,focus:h,valid:w,invalid:p,required:N,loading:g,disabled:S,readonly:R,className:a(e.className,Kl),children:[n&&Lo(Ya,{children:[$(ye,{children:n}),i&&$(He,{})]}),$(ge,{placeholder:m,value:c}),$(ae,{valid:w,invalid:p,loading:g,disabled:S}),$(ce,{loading:g,disabled:S}),$(Ne,{loading:g,disabled:S,readonly:R,value:c}),d&&Lo(Ya,{children:[i&&$(He,{}),$(Ce,{children:d})]}),$(x,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:s})]}),M&&y&&$(_,{className:"k-list-container k-combobox-popup",children:y}),E&&$(ke,{adaptive:!0,...D,heade