UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 66.1 kB
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,r)=>t[r]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var k=(e,t)=>n({[`${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"}),T=(e,t)=>{let{valid:o,invalid:r,hover:m,focus:l,checked:i,active:d,selected:f,disabled:N,indeterminate:L,loading:S,empty:p,readonly:h,highlighted:x,...v}=t;return n({"k-valid":o,"k-invalid":r,"k-hover":m,"k-focus":l,"k-checked":i,"k-active":d,"k-selected":f,"k-disabled":N,"k-indeterminate":L&&!i,"k-loading":S,"k-empty":p,"k-readonly":h,"k-highlighted":x},Object.keys(v).reduce((A,I)=>(I.startsWith("k-")?A[I]=v[I]:A[`k-${I}`]=v[I],A),{}))};function hs(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(r=>[`k-${r}`,!0]))}var a={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},b={small:"small",medium:"medium",large:"large",full:"full"},u={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},c={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},s={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};import{Fragment as ba,jsx as Ms}from"react/jsx-runtime";var ro="k-font-icon",da=[],ua={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},fa={},Nt=e=>{let{size:t,themeColor:o,icon:r,rotate:m,flip:l,...i}=e;return r?Ms("span",{...i,className:n(e.className,ro,k(ro,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${m}`]:m,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):Ms(ba,{})};Nt.states=da;Nt.options=ua;Nt.className=ro;Nt.defaultOptions=fa;var Ss=Nt;import{Fragment as xa,jsx as zt}from"react/jsx-runtime";var io="k-svg-icon",Na=[],La={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},vs={viewBox:"0 0 24 24"},Lt=e=>{let{size:t,themeColor:o,rotate:r,flip:m,viewBox:l=vs.viewBox,icon:i,...d}=e;if(!i)return zt(xa,{});i==="none"&&{...d,className:n(e.className,io,"k-none")};let f=typeof i=="object"&&i.name&&i.name;return zt("span",{...d,className:n(e.className,io,k("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":m==="h"||m==="both","k-flip-v":m==="v"||m==="both"}),children:zt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:l,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:e.children})})};Lt.states=Na;Lt.options=La;Lt.className=io;Lt.defaultOptions=vs;var lo=Lt;import*as po from"@progress/kendo-svg-icons";var Es="icon",ks="icons";import{Fragment as Cs,jsx as xt}from"react/jsx-runtime";var Ht="k-icon",ha=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ma=[],Sa={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},mo={viewBox:"0 0 24 24",type:"svg"},E=e=>{let{size:t,themeColor:o,icon:r,type:m=mo.type,rotate:l,flip:i,viewBox:d=mo.viewBox,...f}=e;if(!r)return xt(Cs,{});if(m==="svg"){if(r==="none")return xt(lo,{...f,className:n(e.className,Ht),icon:r,size:t});let N=po[r]?r:ha(`${r}-icon`);return po[N]?xt(lo,{...f,className:n(e.className,Ht),icon:po[N],size:t,themeColor:o,rotate:l,flip:i,viewBox:d}):xt(Cs,{})}return xt(Ss,{...f,className:n(e.className,Ht),icon:r,size:t,themeColor:o,rotate:l,flip:i})};E.states=Ma;E.options=Sa;E.defaultOptions=mo;E.className=Ht;E.moduleName=Es;E.folderName=ks;var co="button",Is=co;import{Fragment as Ca,jsx as ht,jsxs as As}from"react/jsx-runtime";var Mt="k-button",va=["icon-button"],Ea=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],ka={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark,c.inverse]},Be={size:a.medium,rounded:b.medium,fillMode:u.solid,themeColor:c.base,showArrow:!1,arrowIconName:"caret-alt-down"},M=e=>{let{size:t=Be.size,rounded:o=Be.rounded,fillMode:r=Be.fillMode,themeColor:m=Be.themeColor,showArrow:l=Be.showArrow,arrowIconName:i=Be.arrowIconName,variant:d,hover:f,focus:N,active:L,selected:S,disabled:p,icon:h,text:x,iconClassName:v,...A}=e,I=h!==void 0,K=e.children!==void 0;return As("button",{...A,className:n(e.className,Mt,hs(Mt,d),k(Mt,{size:t,rounded:o,fillMode:r,themeColor:m}),T(Mt,{hover:f,focus:N,active:L,disabled:p,selected:S}),{"k-icon-button":!x&&!K&&I}),children:[h&&ht(E,{className:n(v,"k-button-icon"),icon:h}),x?As(Ca,{children:[x&&ht("span",{className:"k-button-text",children:x}),e.children]}):e.children&&ht("span",{className:"k-button-text",children:e.children}),l&&ht("span",{className:"k-menu-button-arrow k-button-arrow",children:ht(E,{icon:i})})]})};M.states=Ea;M.options=ka;M.variants=va;M.className=Mt;M.defaultOptions=Be;M.moduleName=co;M.folderName=Is;import{jsx as Ia}from"react/jsx-runtime";var Dt=e=>Ia(M,{icon:"folder",...e,children:void 0});import{jsx as Aa}from"react/jsx-runtime";var uo=e=>Aa(M,{icon:"folder",children:"Button",...e});import{jsx as xp}from"react/jsx-runtime";var fo="button",Ts=fo;import{jsx as Oa}from"react/jsx-runtime";var St="k-button-group",Ta=[s.disabled],ga={fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},gs={fillMode:u.solid},B=e=>{let{fillMode:t=gs.fillMode,disabled:o,stretched:r,...m}=e;return Oa("div",{...m,className:n(e.className,St,k(St,{fillMode:t}),T(St,{disabled:o}),{[`${St}-stretched`]:r}),children:e.children})};B.states=Ta;B.options=ga;B.className=St;B.defaultOptions=gs;B.moduleName=fo;B.folderName=Ts;import{Fragment as _p,jsx as Rp,jsxs as Pp}from"react/jsx-runtime";import{Fragment as Up,jsx as Dp,jsxs as Gp}from"react/jsx-runtime";import{Fragment as qp,jsx as Jp,jsxs as Wp}from"react/jsx-runtime";import{Fragment as tm,jsx as em,jsxs as om}from"react/jsx-runtime";var vt="input",Ut=vt;import{jsx as Ra}from"react/jsx-runtime";var Gt="k-input",ya=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ka={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},Ft={size:a.medium,rounded:a.medium,fillMode:u.solid},y=e=>{let{hover:t,focus:o,disabled:r,invalid:m,valid:l,loading:i,readonly:d,size:f=Ft.size,rounded:N=Ft.rounded,fillMode:L=Ft.fillMode,...S}=e;return Ra("span",{...S,className:n(e.className,Gt,k(Gt,{size:f,rounded:N,fillMode:L}),T(Gt,{hover:t,focus:o,disabled:r,invalid:m,valid:l,loading:i,readonly:d}))})};y.states=ya;y.options=Ka;y.className=Gt;y.defaultOptions=Ft;y.moduleName=vt;y.folderName=Ut;import{jsx as wa}from"react/jsx-runtime";var $t="k-picker",_a=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Pa={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},Xt={size:a.medium,rounded:b.medium,fillMode:u.solid},F=e=>{let{hover:t,focus:o,disabled:r,invalid:m,valid:l,loading:i,readonly:d,size:f=Xt.size,rounded:N=Xt.rounded,fillMode:L=Xt.fillMode,...S}=e;return wa("span",{...S,className:n(e.className,$t,k($t,{size:f,rounded:N,fillMode:L}),T($t,{hover:t,focus:o,disabled:r,invalid:m,valid:l,loading:i,readonly:d})),children:e.children})};F.states=_a;F.options=Pa;F.className=$t;F.defaultOptions=Xt;F.moduleName=vt;F.folderName=Ut;import{Fragment as Ha,jsx as bo}from"react/jsx-runtime";var Os="k-clear-value",Ba=[s.disabled,s.loading,s.readonly],za={},ee=e=>{let{disabled:t,loading:o,readonly:r,value:m}=e;return t||r||o||!m?bo(Ha,{}):bo("span",{className:n(e.className,Os),children:bo(E,{icon:"x"})})};ee.states=Ba;ee.options=za;ee.className=Os;import{jsx as Ga}from"react/jsx-runtime";var No="k-input-inner",Da=[],Ua={},Vt={type:"text",autocomplete:"off",value:"",placeholder:""},te=e=>{let{value:t=Vt.value,type:o=Vt.type,placeholder:r=Vt.placeholder,autocomplete:m=Vt.autocomplete,...l}=e;return Ga("input",{...l,type:o,className:n(e.className,No,k(No,e)),placeholder:r,autoComplete:m,defaultValue:t})};te.states=Da;te.options=Ua;te.className=No;import{jsx as ys,jsxs as Xa}from"react/jsx-runtime";var Lo="k-input-inner",Fa=[],$a={},ze=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:m,valueIconName:l,...i}=e;return Xa("span",{...i,className:n(e.className,Lo,k(Lo,e)),children:[m,!m&&l&&ys(E,{className:"k-input-value-icon",icon:l}),r&&!t&&o,r&&t&&ys("span",{className:"k-input-value-text",children:t})]})};ze.states=Fa;ze.options=$a;ze.className=Lo;import{jsx as qa}from"react/jsx-runtime";var xo="k-input-inner",Va=[],Ja={},Ks={value:"",placeholder:""},ho=e=>{let{value:t=Ks.value,placeholder:o=Ks.placeholder,rows:r,...m}=e;return qa("textarea",{...m,className:n(e.className,xo,k(xo,e)),placeholder:o,rows:r,defaultValue:t})};ho.states=Va;ho.options=Ja;ho.className=xo;import{Fragment as Qa,jsx as Rs}from"react/jsx-runtime";var _s="k-input-loading-icon",Wa=[s.disabled,s.loading],J=e=>{let{disabled:t,loading:o}=e;return t||!o?Rs(Qa,{}):Rs("span",{className:n(e.className,_s,"k-icon k-i-loading")})};J.states=Wa;J.className=_s;import{Fragment as ja,jsx as Ps}from"react/jsx-runtime";var ws="k-input-validation-icon",Ya=[s.valid,s.invalid,s.disabled,s.loading],Za={},$=e=>{let{valid:t,invalid:o,disabled:r,loading:m}=e,l=o?"warning-circle":"check-circle";return r||m||!!!(t||o)?Ps(ja,{}):Ps(E,{className:n(ws),icon:l})};$.states=Ya;$.options=Za;$.className=ws;import{Fragment as or,jsx as Bs}from"react/jsx-runtime";var er="k-input-prefix",tr={direction:"horizontal"},le=e=>{let{direction:t=tr.direction,...o}=e;return e.children?Bs("span",{...o,className:n(er,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Bs(or,{})};import{Fragment as ar,jsx as zs}from"react/jsx-runtime";var sr="k-input-suffix",nr={direction:"horizontal"},pe=e=>{let{direction:t=nr.direction,...o}=e;return e.children?zs("span",{...o,className:n(sr,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):zs(ar,{})};import{jsx as qm}from"react/jsx-runtime";import{jsx as Zm}from"react/jsx-runtime";import{jsx as ir}from"react/jsx-runtime";var Hs="k-input-separator",rr={direction:"vertical"},Ne=e=>{let{direction:t=rr.direction,...o}=e;return ir("span",{...o,className:n(Hs,e.className,{[`${Hs}-${t}`]:t})})};import{jsx as Ds,jsxs as mr}from"react/jsx-runtime";var Us="k-color-preview",lr=[],pr={},ke=e=>{let{color:t,iconName:o,...r}=e;return mr("span",{...r,className:n(e.className,Us,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Ds(E,{icon:o,className:"k-color-preview-icon"}),Ds("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};ke.states=lr;ke.options=pr;ke.className=Us;var Mo="popup",Gs=Mo;import{jsx as Fs}from"react/jsx-runtime";var $s="k-animation-container",cr=[],dr={},Xs={positionMode:"absolute"},me=e=>{let{positionMode:t=Xs.positionMode,animationStyle:o,offset:r,...m}=e;return Fs("div",{...m,style:{...r,...e.style},className:n(e.className,$s,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Fs("div",{className:"k-child-animation-container",style:o,children:e.children})})};me.states=cr;me.options=dr;me.className=$s;me.defaultOptions=Xs;me.moduleName=Mo;me.folderName=Gs;var So="popup",Vs=So;import{jsx as Js}from"react/jsx-runtime";var qs="k-popup",ur=[],fr={},Ws={positionMode:"absolute"},z=e=>{let{offset:t,positionMode:o=Ws.positionMode,animationStyle:r,...m}=e;return Js(me,{positionMode:o,offset:t,animationStyle:r,children:Js("div",{...m,className:n(e.className,qs),children:e.children})})};z.states=ur;z.options=fr;z.className=qs;z.defaultOptions=Ws;z.moduleName=So;z.folderName=Vs;var vo="action-buttons",Qs=vo;import{jsx as Lr}from"react/jsx-runtime";var Jt="k-actions",br=[],Nr={},Eo={alignment:"start",orientation:"horizontal"},ce=e=>{let{alignment:t=Eo.alignment,orientation:o=Eo.orientation,...r}=e;return Lr("div",{...r,className:n(Jt,{[`${Jt}-${t}`]:t,[`${Jt}-${o}`]:o},e.className),children:e.children})};ce.states=br;ce.options=Nr;ce.className=Jt;ce.defaultOptions=Eo;ce.moduleName=vo;ce.folderName=Qs;import{jsx as hr}from"react/jsx-runtime";var xr="k-actionsheet-footer",Ys={alignment:"stretched",orientation:"horizontal"},Et=e=>{let{alignment:t=Ys.alignment,orientation:o=Ys.orientation,template:r,as:m=r?"div":ce,...l}=e;return hr(m,{...l,...!r&&{alignment:t,orientation:o},className:n(e.className,xr),children:e.children})};var ko="searchbox",Zs=ko;import{jsx as kt,jsxs as vr}from"react/jsx-runtime";var js="k-searchbox",Mr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Sr={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},Co={showIcon:!0,icon:"search",size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode},oe=e=>{let{value:t,placeholder:o,size:r,rounded:m,fillMode:l,hover:i,focus:d,valid:f,invalid:N,required:L,loading:S,disabled:p,showIcon:h=Co.showIcon,icon:x=Co.icon,...v}=e;return vr(y,{...v,size:r,rounded:m,fillMode:l,hover:i,focus:d,valid:f,invalid:N,required:L,loading:S,disabled:p,className:n(e.className,js),children:[h&&kt(E,{className:"k-input-icon",icon:x}),kt(te,{placeholder:o,value:t}),kt(J,{...e}),kt($,{...e}),kt(ee,{...e})]})};oe.states=Mr;oe.options=Sr;oe.className=js;oe.defaultOptions=Co;oe.moduleName=ko;oe.folderName=Zs;import{jsx as ad}from"react/jsx-runtime";var Io="textbox",en=Io;import{Fragment as tn,jsx as Ce,jsxs as Ao}from"react/jsx-runtime";var on="k-textbox",Er=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],kr={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},He={showClearButton:!0,showValidationIcon:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},de=e=>{let{size:t=He.size,rounded:o=He.rounded,fillMode:r=He.fillMode,separators:m=He.separators,showClearButton:l=He.showClearButton,showValidationIcon:i=He.showValidationIcon,prefix:d,suffix:f,type:N,value:L,placeholder:S,hover:p,focus:h,valid:x,invalid:v,required:A,loading:I,disabled:K,readonly:D,...Ee}=e;return Ao(y,{...Ee,size:t,rounded:o,fillMode:r,hover:p,focus:h,valid:x,invalid:v,required:A,loading:I,disabled:K,readonly:D,className:n(e.className,on),children:[d&&Ao(tn,{children:[Ce(le,{children:d}),m&&Ce(Ne,{})]}),Ce(te,{placeholder:S,value:L,type:N}),i&&Ce($,{valid:x,invalid:v,loading:I,disabled:K}),Ce(J,{loading:I,disabled:K}),l&&Ce(ee,{loading:I,disabled:K,readonly:D,value:L}),f&&Ao(tn,{children:[m&&Ce(Ne,{}),Ce(pe,{children:f})]})]})};de.states=Er;de.options=kr;de.className=on;de.defaultOptions=He;de.moduleName=Io;de.folderName=en;import{jsx as xd}from"react/jsx-runtime";import{Fragment as kd,jsx as Ed}from"react/jsx-runtime";import{Fragment as yd,jsx as Od}from"react/jsx-runtime";import{jsx as Ie,jsxs as To}from"react/jsx-runtime";var nn="k-actionsheet-titlebar",Cr={},q=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:m,filter:l,input:i,inputValue:d,inputPlaceholder:f,adaptive:N,children:L,...S}=e;return To("div",{...S,className:n(e.className,nn),children:[To("div",{className:"k-actionsheet-titlebar-group",children:[r&&Ie("div",{className:"k-actionsheet-actions",children:r}),!L&&To("div",{className:"k-actionsheet-title",children:[t&&Ie("div",{className:"k-text-center",children:t}),o&&Ie("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),L&&Ie("div",{className:"k-actionsheet-title",children:L}),m&&Ie("div",{className:"k-actionsheet-actions",children:m})]}),(i||l)&&Ie("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?Ie(de,{value:d,placeholder:f,size:N?"large":"medium"}):Ie(oe,{placeholder:"Filter",size:N?"large":"medium"})})]})};q.className=nn;q.defaultOptions=Cr;import{jsx as go,jsxs as gr}from"react/jsx-runtime";var Oo="k-actionsheet-view",Ir=[],Ar={},Tr={},Ze=e=>{let{adaptive:t,animated:o,children:r,header:m,footer:l,...i}=e,d=m?.type===q&&go(q,{adaptive:t,...m?.props}),f=l?.type===Et&&go(Et,{...l?.props});return gr("div",{...i,className:n(e.className,Oo,{[`${Oo}-animated`]:o}),children:[d,go("div",{className:"k-actionsheet-content",children:r}),f]})};Ze.states=Ir;Ze.options=Ar;Ze.className=Oo;Ze.defaultOptions=Tr;var Ct="action-sheet",qt=Ct;import{jsx as Wt,jsxs as Kr}from"react/jsx-runtime";var an="k-actionsheet",Or=[],yr={},It={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},X=e=>{let{side:t=It.side,fullscreen:o=It.fullscreen,adaptive:r=It.adaptive,overlay:m=It.overlay,template:l,children:i,header:d,footer:f,...N}=e;return Kr("div",{className:"k-actionsheet-container",children:[m&&Wt("div",{className:"k-overlay"}),Wt(me,{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:Wt("div",{...N,className:n(e.className,an,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:l||Wt(Ze,{header:d,footer:f,adaptive:r,...e,children:i})})})]})};X.states=Or;X.options=yr;X.className=an;X.defaultOptions=It;X.moduleName=Ct;X.folderName=qt;import{jsx as wr}from"react/jsx-runtime";var rn="k-actionsheet-container",Rr=[],_r={},Pr={},je=e=>{let{children:t,...o}=e;return wr("div",{...o,className:rn,children:t})};je.states=Rr;je.options=_r;je.className=rn;je.defaultOptions=Pr;je.moduleName=Ct;je.folderName=qt;import{jsx as ru}from"react/jsx-runtime";import{Fragment as zr,jsx as At,jsxs as yo}from"react/jsx-runtime";var Ko="k-actionsheet-item",Br=[s.hover,s.focus,s.selected,s.disabled],Ro=e=>{let{iconName:t,text:o,description:r,hover:m,focus:l,selected:i,disabled:d,...f}=e;return yo("span",{...f,className:n(e.className,Ko,T(Ko,{hover:m,focus:l,selected:i,disabled:d})),children:[!e.children&&At(zr,{children:yo("span",{className:"k-actionsheet-action",children:[t&&At("span",{className:"k-icon-wrap",children:At(E,{className:"k-actionsheet-item-icon",icon:t})}),yo("span",{className:"k-actionsheet-item-text",children:[o&&At("span",{className:"k-actionsheet-item-title",children:o}),r&&At("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};Ro.states=Br;Ro.className=Ko;import{jsx as bu,jsxs as Nu}from"react/jsx-runtime";import{jsx as Mu}from"react/jsx-runtime";import{jsx as ku}from"react/jsx-runtime";import{jsx as Tu}from"react/jsx-runtime";var _o="slider",pn=_o;import{jsx as et,jsxs as Po}from"react/jsx-runtime";var Tt="k-slider",Hr=[s.hover,s.focus,s.active,s.disabled,s.readonly],Dr={},Ae={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},U=e=>{let{type:t=Ae.type,orientation:o=Ae.orientation,readonly:r=Ae.readonly,disabled:m=Ae.disabled,handlePosition:l=Ae.handlePosition,showButtons:i=Ae.showButtons,showTicks:d=Ae.showTicks,hover:f,focus:N,active:L,trackStyle:S,dir:p,...h}=e,x,v;return o==="horizontal"?(x=p==="rtl"?"caret-alt-left":"caret-alt-right",v=p==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(x="caret-alt-up",v="caret-alt-down"),Po("div",{...h,className:n(Tt,e.className,T(Tt,{readonly:r,disabled:m}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:p,children:[i&&et(M,{className:"k-button-decrease",rounded:"full",icon:v}),Po("div",{className:"k-slider-track-wrap",children:[d&&et("ul",{className:"k-reset k-slider-items",children:e.children}),Po("div",{className:"k-slider-track",style:S,children:[et("div",{className:"k-slider-selection"}),t==="range"&&et("span",{className:n("k-draghandle","k-draghandle-start",T(Tt,{hover:f,focus:N,active:L}))}),et("span",{className:n("k-draghandle",`k-draghandle-${l}`,T(Tt,{hover:f,focus:N,active:L}))})]})]}),i&&et(M,{className:"k-button-increase",rounded:"full",icon:x})]})};U.states=Hr;U.options=Dr;U.className=Tt;U.defaultOptions=Ae;U.moduleName=_o;U.folderName=pn;import{jsx as mn}from"react/jsx-runtime";var cn="k-tick",Ur=[],Gr={},dn={label:!1},Te=e=>{let{style:t,label:o=dn.label,orientation:r,large:m,text:l,...i}=e;return mn("li",{...i,className:n(e.className,cn,{[`k-tick-${r}`]:r,"k-tick-large":m}),style:t,children:o&&mn("span",{className:"k-label",children:l})})};Te.states=Ur;Te.options=Gr;Te.className=cn;Te.defaultOptions=dn;import{Fragment as ef,jsx as ju,jsxs as tf}from"react/jsx-runtime";import{Fragment as rf,jsx as af,jsxs as lf}from"react/jsx-runtime";import{Fragment as uf,jsx as df,jsxs as ff}from"react/jsx-runtime";import{Fragment as hf,jsx as xf,jsxs as Mf}from"react/jsx-runtime";import{jsx as Fr}from"react/jsx-runtime";var wo=e=>Fr(U,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as $r}from"react/jsx-runtime";var Bo=e=>$r(U,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as un,jsxs as Wr}from"react/jsx-runtime";var fn="k-spin-button",Jr=[],qr={size:[a.small,a.medium,a.large],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},zo={size:a.medium,fillMode:u.solid},ge=e=>{let{size:t=zo.size,fillMode:o=zo.fillMode,...r}=e;return Wr("span",{...r,className:n(fn,e.className),children:[un(M,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),un(M,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};ge.states=Jr;ge.options=qr;ge.className=fn;ge.defaultOptions=zo;ge.moduleName=null;ge.folderName=null;var bn="numeric-textbox",Nn="numerictextbox";import{Fragment as Ln,jsx as Le,jsxs as Ho}from"react/jsx-runtime";var xn="k-numerictextbox",Qr=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Yr={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},De={showSpinButton:!0,showClearButton:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},_=e=>{let{size:t=De.size,rounded:o=De.rounded,fillMode:r=De.fillMode,separators:m=De.separators,showClearButton:l=De.showClearButton,showSpinButton:i=De.showSpinButton,prefix:d,suffix:f,value:N,placeholder:L,hover:S,focus:p,valid:h,invalid:x,required:v,loading:A,disabled:I,readonly:K,...D}=e;return Ho(y,{...D,size:t,rounded:o,fillMode:r,hover:S,focus:p,valid:h,invalid:x,required:v,loading:A,disabled:I,readonly:K,className:n(e.className,xn),children:[d&&Ho(Ln,{children:[Le(le,{children:d}),m&&Le(Ne,{})]}),Le(te,{placeholder:L,value:N}),Le($,{valid:h,invalid:x,loading:A,disabled:I}),Le(J,{loading:A,disabled:I}),l&&Le(ee,{loading:A,disabled:I,readonly:K,value:N}),f&&Ho(Ln,{children:[m&&Le(Ne,{}),Le(pe,{children:f})]}),i&&Le(ge,{className:"k-input-spinner",size:t,fillMode:r})]})};_.states=Qr;_.options=Yr;_.className=xn;_.defaultOptions=De;_.moduleName=bn;_.folderName=Nn;import{jsx as eb}from"react/jsx-runtime";import{jsx as jr}from"react/jsx-runtime";var Zr="k-no-data",gt=e=>jr("span",{className:n(Zr,e.className),children:e.children});var xe="list",Oe=xe;import{jsx as tt,jsxs as Mn}from"react/jsx-runtime";var Do="k-list",ei=[],ti={size:[a.small,a.medium,a.large]},Sn={size:a.medium},R=e=>{let{size:t=Sn.size,virtualization:o,children:r,optionLabel:m,customValue:l,screenReaders:i,...d}=e,f,N,L,S,p=[];return r?r.map((h,x)=>{h.type===H?(h.props.root===!0?(f=h.props.label,h.props.children.map((v,A)=>{p.push(tt(C,{...v.props},`optChild-${A}-${new Date().getTime()}`))})):h.props.children.forEach((v,A)=>{let I="";A===0&&(I=h.props.label),p.push(tt(C,{className:A===0?"k-first":"",...v.props,groupLabel:I},`groupLabel-${A}-${new Date().getTime()}`))}),N=tt(H,{label:f,virtualization:o,children:p})):h.type===C&&(p.push(tt(C,{...h.props},`${h.type}-${x}`)),L=tt(ot,{virtualization:o,children:p}),i&&(S=Mn(gt,{className:"k-sr-only",children:[p.length," items found."]})))}):S=tt(gt,{children:"No data found."}),Mn("div",{...d,className:n(e.className,Do,k(Do,{size:t}),{"k-virtual-list":o}),children:[m,l,N,L,S]})};R.states=ei;R.options=ti;R.className=Do;R.defaultOptions=Sn;R.moduleName=xe;R.folderName=Oe;import{jsx as ai}from"react/jsx-runtime";var vn="k-list-container",oi=[],si={},ni={},st=e=>{let{...t}=e;return ai("div",{...t,className:n(e.className,vn),children:e.children})};st.states=oi;st.options=si;st.className=vn;st.defaultOptions=ni;st.moduleName=xe;st.folderName=Oe;import{jsx as Ue,jsxs as li}from"react/jsx-runtime";var Uo="k-list",ri=[],ii={size:[a.small,a.medium,a.large]},En={size:a.medium},he=e=>{let{size:t=En.size,virtualization:o,children:r,...m}=e,l,i,d,f=[];return r?r.map((N,L)=>{N.type===H?(N.props.root===!0?(l=N.props.label,N.props.children.map((S,p)=>{f.push(Ue(C,{...S.props},`optChild-${p}-${new Date().getTime()}`))})):(f.push(Ue(kn,{...N.props,children:N.props.label},`listChild-${L}`)),N.props.children.map((S,p)=>{f.push(Ue(C,{...S.props},`fwOptChild-${p}-${new Date().getTime()}`))})),i=Ue(H,{label:l,virtualization:o,children:f})):N.type===C&&(f.push(Ue(C,{...N.props},`${N.type}-${L}`)),d=Ue(ot,{virtualization:o,children:f}))}):d=Ue(gt,{children:"No data found."}),li("div",{...m,className:n(e.className,Uo,k(Uo,{size:t}),{"k-virtual-list":o}),children:[i,d]})};he.states=ri;he.options=ii;he.className=Uo;he.defaultOptions=En;he.moduleName=xe;he.folderName=Oe;var Ge="checkbox",nt=Ge;import{jsx as Cn}from"react/jsx-runtime";var Qt="k-checkbox",pi=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],mi={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full]},Go={size:a.medium,rounded:b.medium},ue=e=>{let{id:t,checked:o,indeterminate:r,hover:m,focus:l,disabled:i,invalid:d,valid:f,required:N,size:L=Go.size,rounded:S=Go.rounded,...p}=e;return Cn("span",{className:"k-checkbox-wrap",children:Cn("input",{...p,id:t,type:"checkbox",defaultChecked:o,required:N,className:n(e.className,Qt,k(Qt,{size:L,rounded:S}),T(Qt,{hover:m,focus:l,disabled:i,invalid:d,valid:f,indeterminate:r,checked:o}))})})};ue.states=pi;ue.options=mi;ue.className=Qt;ue.defaultOptions=Go;ue.moduleName=Ge;ue.folderName=nt;import{jsx as ui}from"react/jsx-runtime";var In="k-checkbox-list",ci=[],di={},An={layout:"vertical"},ye=e=>{let{layout:t=An.layout,...o}=e;return ui("ul",{...o,className:n(e.className,In,{[`k-list-${t}`]:t}),children:e.children})};ye.states=ci;ye.options=di;ye.className=In;ye.defaultOptions=An;ye.moduleName=Ge;ye.folderName=nt;import{jsx as Li}from"react/jsx-runtime";var Tn="k-checkbox-list-item",fi=[],bi={},Ni={},Ke=e=>{let{...t}=e;return Li("li",{...t,className:n(e.className,Tn),children:e.children})};Ke.states=fi;Ke.options=bi;Ke.className=Tn;Ke.defaultOptions=Ni;Ke.moduleName=Ge;Ke.folderName=nt;import{Fragment as Db,jsx as Hb,jsxs as Ub}from"react/jsx-runtime";import{Fragment as Vb,jsx as Xb,jsxs as Jb}from"react/jsx-runtime";import{Fragment as Zb,jsx as Yb,jsxs as jb}from"react/jsx-runtime";import{Fragment as nN,jsx as sN,jsxs as aN}from"react/jsx-runtime";import{jsx as pN}from"react/jsx-runtime";import{jsx as uN}from"react/jsx-runtime";import{jsx as Yt,jsxs as Si}from"react/jsx-runtime";var $o="k-list-item",xi=[s.hover,s.focus,s.selected,s.disabled],hi={},Mi={},C=e=>{let{text:t,groupLabel:o,group:r,showIcon:m,iconName:l,showCheckbox:i,checked:d,hover:f,focus:N,selected:L,disabled:S,...p}=e,h=t||e.children;return Si("li",{...p,className:n(e.className,r?"k-list-group-item":$o,T($o,{hover:f,focus:N,disabled:S,selected:L})),children:[i&&Yt(ue,{checked:d}),m&&Yt(E,{icon:l}),Yt("span",{className:"k-list-item-text",children:h}),o&&o!==""&&Yt("div",{className:"k-list-item-group-label",children:o})]})};C.states=xi;C.options=hi;C.className=$o;C.defaultOptions=Mi;C.moduleName=xe;C.folderName=Oe;import{jsx as Xo,jsxs as Ei}from"react/jsx-runtime";var vi="k-list-content",ot=e=>{let{virtualization:t,...o}=e;return Ei("div",{...o,className:n(vi,e.className),children:[Xo("ul",{className:n("k-list-ul"),children:e.children}),t&&Xo("div",{className:"k-height-container",children:Xo("div",{})})]})};import{jsx as gn}from"react/jsx-runtime";var ki="k-list-group-sticky-header",On=e=>gn("div",{className:n(ki,e.className),children:gn("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Ci,jsx as yn,jsxs as Ii}from"react/jsx-runtime";var H=e=>{let{virtualization:t,label:o}=e;return Ii(Ci,{children:[o&&yn(On,{children:o}),e.children&&yn(ot,{virtualization:t,children:e.children})]})};import{jsx as Kn}from"react/jsx-runtime";var Ai="k-list-group-item",kn=e=>Kn("li",{className:n(Ai,e.className),children:Kn("span",{className:"k-list-item-text",children:e.children})});import{jsx as yi}from"react/jsx-runtime";var Vo="k-list-optionlabel",Ti=[s.hover,s.focus,s.selected,s.disabled],gi={},Oi={},Zt=e=>{let{text:t,hover:o,focus:r,selected:m,disabled:l,...i}=e;return yi("div",{...i,className:n(Vo,T(Vo,{hover:o,focus:r,selected:m,disabled:l})),children:t})};Zt.states=Ti;Zt.options=gi;Zt.className=Vo;Zt.defaultOptions=Oi;import{jsx as Pi}from"react/jsx-runtime";var Jo="k-list-custom-value",Ki=[s.hover,s.focus,s.selected,s.disabled],Ri={},_i={},Re=e=>{let{text:t,hover:o,focus:r,selected:m,disabled:l,...i}=e;return Pi("div",{...i,className:n(Jo,T(Jo,{hover:o,focus:r,selected:m,disabled:l})),children:t})};Re.states=Ki;Re.options=Ri;Re.className=Jo;Re.defaultOptions=_i;import{jsx as YN}from"react/jsx-runtime";import{jsx as tL}from"react/jsx-runtime";import{jsx as aL,jsxs as rL}from"react/jsx-runtime";import{jsx as mL,jsxs as cL}from"react/jsx-runtime";import{jsx as bL}from"react/jsx-runtime";import{jsx as hL,jsxs as ML}from"react/jsx-runtime";import{jsx as kL,jsxs as CL}from"react/jsx-runtime";var Rn="dropdown-list",_n="dropdownlist";import{Fragment as zi,jsx as G,jsxs as qo}from"react/jsx-runtime";var Pn="k-dropdownlist",wi=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Bi={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},at={showValue:!0,arrowIconName:"caret-alt-down",size:a.medium,rounded:b.medium,fillMode:u.solid},fe=e=>{let{size:t=at.size,rounded:o=at.rounded,fillMode:r=at.fillMode,arrowIconName:m=at.arrowIconName,showValue:l=at.showValue,valueIconName:i,prefix:d,suffix:f,value:N,placeholder:L,hover:S,focus:p,valid:h,invalid:x,required:v,loading:A,disabled:I,readonly:K,popup:D,opened:Ee,adaptive:ft,adaptiveSettings:bt,adaptiveTitle:no,adaptiveSubtitle:ao,adaptiveFilter:ma,...ca}=e;return qo(zi,{children:[qo(F,{...ca,size:t,rounded:o,fillMode:r,hover:S,focus:p,valid:h,invalid:x,required:v,loading:A,disabled:I,readonly:K,className:n(e.className,Pn,{"k-icon-picker":!l&&i}),children:[G(le,{children:d}),G(ze,{placeholder:L,value:N,showValue:l,valueIconName:i}),G($,{valid:h,invalid:x,loading:A,disabled:I}),G(J,{loading:A,disabled:I}),G(pe,{children:f}),G(M,{className:"k-input-button",icon:m,rounded:null,size:e.size,fillMode:e.fillMode})]}),Ee&&D&&G(z,{className:"k-list-container k-dropdownlist-popup",children:D}),ft&&G(X,{adaptive:!0,...bt,header:G(q,{actionsEnd:G(M,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ma,inputValue:N,inputPlaceholder:L,title:no,subtitle:ao}),children:G("div",{className:"k-list-container",children:qo(R,{size:"large",children:[G(C,{text:"List item"}),G(C,{text:"List item"}),G(C,{text:"List item"})]})})})]})};fe.states=wi;fe.options=Bi;fe.className=Pn;fe.defaultOptions=at;fe.moduleName=Rn;fe.folderName=_n;import{jsx as nx}from"react/jsx-runtime";import{jsx as px,jsxs as mx}from"react/jsx-runtime";import{Fragment as xx,jsx as Nx,jsxs as Lx}from"react/jsx-runtime";import{jsx as vx}from"react/jsx-runtime";import{jsx as Ax,jsxs as Tx}from"react/jsx-runtime";import{jsx as Rx,jsxs as _x}from"react/jsx-runtime";import{Fragment as Gx,jsx as Dx,jsxs as Ux}from"react/jsx-runtime";import{Fragment as Qx,jsx as qx,jsxs as Wx}from"react/jsx-runtime";import{Fragment as dh,jsx as ch}from"react/jsx-runtime";import{Fragment as hh,jsx as xh}from"react/jsx-runtime";import{Fragment as Ot,jsx as g,jsxs as P}from"react/jsx-runtime";var wn="k-colorgradient-inputs",Hi=[],Di={size:[a.small,a.medium,a.large]},Bn={mode:"rgba",size:a.medium},rt=e=>{let{mode:t=Bn.mode,size:o,...r}=e;return P("div",{...r,className:n(wn,"k-hstack"),children:[g("div",{className:"k-vstack",children:g(M,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&P(Ot,{children:[P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),g("label",{className:"k-colorgradient-input-label",children:"R"})]}),P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),g("label",{className:"k-colorgradient-input-label",children:"G"})]}),P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),g("label",{className:"k-colorgradient-input-label",children:"B"})]}),P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),g("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&P(Ot,{children:[P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"R"})]}),P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"G"})]}),P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&P(Ot,{children:[P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"H"})]}),P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"S"})]}),P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"V"})]}),P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),g("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&P(Ot,{children:[P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"H"})]}),P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"S"})]}),P("div",{className:"k-vstack",children:[g(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&g(Ot,{children:P("div",{className:"k-vstack k-flex-1",children:[g(de,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),g("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};rt.states=Hi;rt.options=Di;rt.className=wn;rt.defaultOptions=Bn;import{jsx as $e,jsxs as Xe}from"react/jsx-runtime";var zn="k-colorgradient-color-contrast",Ui=[],Gi={},Fi={},it=()=>Xe("div",{className:n(zn,"k-vbox"),children:[Xe("div",{className:"k-contrast-ratio",children:[$e("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Xe("span",{className:"k-contrast-validation !k-text-success",children:[$e(E,{icon:"check"}),$e(E,{icon:"check"})]})]}),Xe("div",{children:[$e("span",{children:"AA: 4.5"}),Xe("span",{className:"k-contrast-validation !k-text-success",children:["Pass",$e(E,{icon:"check"})]})]}),Xe("div",{children:[$e("span",{children:"AAA: 7.0"}),Xe("span",{className:"k-contrast-validation !k-text-error",children:["Fail",$e(E,{icon:"x"})]})]})]});it.states=Ui;it.options=Gi;it.className=zn;it.defaultOptions=Fi;var Hn="color-gradient",Dn="colorgradient";import{jsx as W,jsxs as yt}from"react/jsx-runtime";var jt="k-colorgradient",$i=[s.hover,s.focus,s.readonly,s.disabled],Xi={size:[a.small,a.medium,a.large]},se={size:a.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},be=e=>{let{size:t=se.size,mode:o=se.mode,readonly:r=se.readonly,disabled:m=se.disabled,gradientStyle:l=se.gradientStyle,dragHandleStyle:i=se.dragHandleStyle,alphaStyle:d=se.alphaStyle,alphaStyleHorizontal:f=se.alphaStyleHorizontal,contrast:N=se.contrast,dir:L,hover:S,focus:p,hoverHandle:h,focusHandle:x,canvasOrientation:v=se.canvasOrientation,...A}=e;return yt("div",{...A,className:n(e.className,jt,k(jt,{size:t}),T(jt,{hover:S,focus:p,readonly:r,disabled:m})),dir:L,children:[!v||v==="horizontal"&&yt("div",{className:"k-colorgradient-canvas k-hstack",children:[W("div",{className:"k-hsv-rectangle",style:l,children:W("div",{className:"k-hsv-gradient",children:W("div",{className:n("k-hsv-draghandle","k-draghandle",{"k-hover":h,"k-focus":x}),style:i})})}),yt("div",{className:"k-hsv-controls k-hstack",children:[W(Bo,{className:"k-hue-slider",hover:h,focus:x}),o!=="rgb"&&o!=="hsv"&&W(Bo,{className:"k-alpha-slider",hover:h,focus:x,trackStyle:d})]})]}),v==="vertical"&&yt("div",{className:"k-colorgradient-canvas k-vstack",children:[W("div",{className:"k-hsv-rectangle",style:l,children:W("div",{className:"k-hsv-gradient",children:W("div",{className:n("k-hsv-draghandle","k-draghandle",{"k-hover":h,"k-focus":x}),style:i})})}),yt("div",{className:"k-hsv-controls k-vstack",children:[W(wo,{className:"k-hue-slider",hover:h,focus:x}),o!=="rgb"&&o!=="hsv"&&W(wo,{className:"k-alpha-slider",hover:h,focus:x,trackStyle:f})]})]}),W(rt,{mode:e.mode,size:t}),N&&W(it,{})]})};be.states=$i;be.options=Xi;be.className=jt;be.defaultOptions=se;be.moduleName=Hn;be.folderName=Dn;import{jsx as Vh}from"react/jsx-runtime";import{jsx as Qh}from"react/jsx-runtime";import{jsx as Vi}from"react/jsx-runtime";var Un=e=>Vi("tr",{children:e.children});import{jsx as Wi}from"react/jsx-runtime";var Wo="k-colorpalette-tile",Ji=[s.hover,s.focus,s.selected],qi={},Kt=e=>{let{color:t,tileSize:o,hover:r,focus:m,selected:l,...i}=e,d={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Wi("td",{...i,className:n(e.className,Wo,T(Wo,{hover:r,focus:m,selected:l})),style:d})};Kt.states=Ji;Kt.options=qi;Kt.className=Wo;var Gn="color-palette",Fn="colorpalette";import{jsx as Rt}from"react/jsx-runtime";var eo="k-colorpalette",Qi=[s.disabled],Yi={size:[a.small,a.medium,a.large]},Qo={columns:10,size:a.medium},_e=e=>{let{size:t=Qo.size,palette:o,columns:r=Qo.columns,tileSize:m,disabled:l,...i}=e,d=[];if(o){let f=r||o.columns,N=o.colors?o.colors:o;Array.isArray(N)&&Array.from({length:Math.ceil(N.length/f)},(L,S)=>{let p=[];N.slice(S*f,(S+1)*f).map((x,v)=>{p.push(Rt(Kt,{color:x,tileSize:m},v))});let h=Rt(Un,{children:p},S);d.push(h)})}return Rt("div",{...i,className:n(e.className,eo,T(eo,{disabled:l}),k(eo,{size:t})),children:Rt("table",{className:"k-colorpalette-table",children:Rt("tbody",{children:d.length>0?d:e.children})})})};_e.states=Qi;_e.options=Yi;_e.className=eo;_e.defaultOptions=Qo;_e.moduleName=Gn;_e.folderName=Fn;var Yo={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 SM}from"react/jsx-runtime";var $n="color-editor",Xn="coloreditor";import{jsx as Q,jsxs as lt}from"react/jsx-runtime";var to="k-coloreditor",Zi=[s.focus],ji={size:[a.small,a.medium,a.large]},pt={size:a.medium,view:"gradient",palette:Yo.office,actionButtons:!0,canvasOrientation:"horizontal"},Y=e=>{let{size:t=pt.size,view:o=pt.view,palette:r=pt.palette,color:m,currentColor:l,focus:i,focusView:d,dir:f,group:N,actionButtons:L=pt.actionButtons,canvasOrientation:S=pt.canvasOrientation,...p}=e;return lt("div",{...p,className:n(e.className,"k-flatcolorpicker",to,k(to,{size:t}),T(to,{focus:i})),dir:f,children:[lt("div",{className:"k-coloreditor-header k-hstack",children:[Q("div",{className:"k-coloreditor-header-actions k-hstack",children:N&&lt(B,{fillMode:"flat",children:[Q(M,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),Q(M,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),Q("div",{className:"k-spacer"}),lt("div",{className:"k-coloreditor-header-actions k-hstack",children:[Q(M,{fillMode:"flat",icon:"droplet-slash",size:t}),lt("div",{className:"k-coloreditor-preview k-vstack",children:[Q(ke,{className:"k-coloreditor-preview-color",color:m}),Q(ke,{className:"k-coloreditor-current-color",color:l})]})]})]}),Q("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?Q(be,{focus:d,size:t,canvasOrientation:S}):Q(_e,{palette:r,size:t})}),L&&lt(ce,{className:"k-coloreditor-footer",alignment:"start",children:[Q(M,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Q(M,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};Y.states=Zi;Y.options=ji;Y.className=to;Y.defaultOptions=pt;Y.moduleName=$n;Y.folderName=Xn;import{jsx as GM}from"react/jsx-runtime";import{jsx as VM}from"react/jsx-runtime";import{jsx as QM}from"react/jsx-runtime";import{jsx as eS}from"react/jsx-runtime";var Vn="color-picker",Jn="colorpicker";import{Fragment as ol,jsx as Z,jsxs as jo}from"react/jsx-runtime";var qn="k-colorpicker",el=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled],tl={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},_t={arrowIconName:"caret-alt-down",size:F.defaultOptions.size,rounded:F.defaultOptions.rounded,fillMode:F.defaultOptions.fillMode},ne=e=>{let{size:t=_t.size,rounded:o=_t.rounded,fillMode:r=_t.fillMode,arrowIconName:m=_t.arrowIconName,prefix:l,suffix:i,value:d,placeholder:f,hover:N,focus:L,valid:S,invalid:p,required:h,disabled:x,valueIconName:v,popup:A,opened:I,adaptive:K,adaptiveSettings:D,adaptiveTitle:Ee,adaptiveSubtitle:ft,...bt}=e;return jo(ol,{children:[jo(F,{...bt,size:t,rounded:o,fillMode:r,hover:N,focus:L,valid:S,invalid:p,required:h,disabled:x,className:n(e.className,qn,"k-icon-picker"),children:[Z(le