UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 68 kB
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...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)=>s({[`${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:l,focus:p,checked:i,active:u,selected:f,disabled:N,indeterminate:x,loading:S,empty:m,readonly:h,highlighted:M,...v}=t;return s({"k-valid":o,"k-invalid":r,"k-hover":l,"k-focus":p,"k-checked":i,"k-active":u,"k-selected":f,"k-disabled":N,"k-indeterminate":x&&!i,"k-loading":S,"k-empty":m,"k-readonly":h,"k-highlighted":M},Object.keys(v).reduce((A,I)=>(I.startsWith("k-")?A[I]=v[I]:A[`k-${I}`]=v[I],A),{}))};function Cn(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"},c={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},d={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},n={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 va,jsx as In}from"react/jsx-runtime";var co="k-font-icon",Ma=[],ha={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},Sa={},Mt=e=>{let{size:t,themeColor:o,icon:r,rotate:l,flip:p,...i}=e;return r?In("span",{...i,className:s(e.className,co,k(co,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${l}`]:l,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):In(va,{})};Mt.states=Ma;Mt.options=ha;Mt.className=co;Mt.defaultOptions=Sa;var An=Mt;import{Fragment as Ca,jsx as Ut}from"react/jsx-runtime";var uo="k-svg-icon",Ea=[],ka={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},Tn={viewBox:"0 0 24 24"},ht=e=>{let{size:t,themeColor:o,rotate:r,flip:l,viewBox:p=Tn.viewBox,icon:i,...u}=e;if(!i)return Ut(Ca,{});i==="none"&&{...u,className:s(e.className,uo,"k-none")};let f=typeof i=="object"&&i.name&&i.name;return Ut("span",{...u,className:s(e.className,uo,k("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),children:Ut("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:p,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:e.children})})};ht.states=Ea;ht.options=ka;ht.className=uo;ht.defaultOptions=Tn;var fo=ht;import*as bo from"@progress/kendo-svg-icons";var gn="icon",On="icons";import{Fragment as yn,jsx as St}from"react/jsx-runtime";var Gt="k-icon",Ia=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Aa=[],Ta={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},No={viewBox:"0 0 24 24",type:"svg"},E=e=>{let{size:t,themeColor:o,icon:r,type:l=No.type,rotate:p,flip:i,viewBox:u=No.viewBox,...f}=e;if(!r)return St(yn,{});if(l==="svg"){if(r==="none")return St(fo,{...f,className:s(e.className,Gt),icon:r,size:t});let N=bo[r]?r:Ia(`${r}-icon`);return bo[N]?St(fo,{...f,className:s(e.className,Gt),icon:bo[N],size:t,themeColor:o,rotate:p,flip:i,viewBox:u}):St(yn,{})}return St(An,{...f,className:s(e.className,Gt),icon:r,size:t,themeColor:o,rotate:p,flip:i})};E.states=Aa;E.options=Ta;E.defaultOptions=No;E.className=Gt;E.moduleName=gn;E.folderName=On;var Lo="button",Kn=Lo;import{Fragment as Ka,jsx as vt,jsxs as Rn}from"react/jsx-runtime";var Et="k-button",ga=["icon-button"],Oa=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],ya={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline,c.clear,c.link],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark,d.inverse]},Ue={size:a.medium,rounded:b.medium,fillMode:c.solid,themeColor:d.base,showArrow:!1,arrowIconName:"caret-alt-down"},L=e=>{let{size:t=Ue.size,rounded:o=Ue.rounded,fillMode:r=Ue.fillMode,themeColor:l=Ue.themeColor,showArrow:p=Ue.showArrow,arrowIconName:i=Ue.arrowIconName,variant:u,hover:f,focus:N,active:x,selected:S,disabled:m,icon:h,text:M,iconClassName:v,...A}=e,I=h!==void 0,K=e.children!==void 0;return Rn("button",{...A,className:s(e.className,Et,Cn(Et,u),k(Et,{size:t,rounded:o,fillMode:r,themeColor:l}),T(Et,{hover:f,focus:N,active:x,disabled:m,selected:S}),{"k-icon-button":!M&&!K&&I}),children:[h&&vt(E,{className:s(v,"k-button-icon"),icon:h}),M?Rn(Ka,{children:[M&&vt("span",{className:"k-button-text",children:M}),e.children]}):e.children&&vt("span",{className:"k-button-text",children:e.children}),p&&vt("span",{className:"k-menu-button-arrow k-button-arrow",children:vt(E,{icon:i})})]})};L.states=Oa;L.options=ya;L.variants=ga;L.className=Et;L.defaultOptions=Ue;L.moduleName=Lo;L.folderName=Kn;import{jsx as Ra}from"react/jsx-runtime";var Ft=e=>Ra(L,{icon:"folder",...e,children:void 0});import{jsx as Pa}from"react/jsx-runtime";var xo=e=>Pa(L,{icon:"folder",children:"Button",...e});import{jsx as Tp}from"react/jsx-runtime";var Mo="button",Pn=Mo;import{jsx as wa}from"react/jsx-runtime";var kt="k-button-group",_a=[n.disabled],Ba={fillMode:[c.solid,c.flat,c.outline,c.clear,c.link]},_n={fillMode:c.solid},_=e=>{let{fillMode:t=_n.fillMode,disabled:o,stretched:r,...l}=e;return wa("div",{...l,className:s(e.className,kt,k(kt,{fillMode:t}),T(kt,{disabled:o}),{[`${kt}-stretched`]:r}),children:e.children})};_.states=_a;_.options=Ba;_.className=kt;_.defaultOptions=_n;_.moduleName=Mo;_.folderName=Pn;import{Fragment as $p,jsx as Fp,jsxs as Xp}from"react/jsx-runtime";import{Fragment as Yp,jsx as Qp,jsxs as Zp}from"react/jsx-runtime";import{Fragment as sm,jsx as nm,jsxs as am}from"react/jsx-runtime";import{Fragment as cm,jsx as mm,jsxs as dm}from"react/jsx-runtime";var Ct="input",$t=Ct;import{jsx as Da}from"react/jsx-runtime";var Xt="k-input",za=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Ha={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},Vt={size:a.medium,rounded:a.medium,fillMode:c.solid},y=e=>{let{hover:t,focus:o,disabled:r,invalid:l,valid:p,loading:i,readonly:u,size:f=Vt.size,rounded:N=Vt.rounded,fillMode:x=Vt.fillMode,...S}=e;return Da("span",{...S,className:s(e.className,Xt,k(Xt,{size:f,rounded:N,fillMode:x}),T(Xt,{hover:t,focus:o,disabled:r,invalid:l,valid:p,loading:i,readonly:u}))})};y.states=za;y.options=Ha;y.className=Xt;y.defaultOptions=Vt;y.moduleName=Ct;y.folderName=$t;import{jsx as Fa}from"react/jsx-runtime";var Jt="k-picker",Ua=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Ga={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},qt={size:a.medium,rounded:b.medium,fillMode:c.solid},$=e=>{let{hover:t,focus:o,disabled:r,invalid:l,valid:p,loading:i,readonly:u,size:f=qt.size,rounded:N=qt.rounded,fillMode:x=qt.fillMode,...S}=e;return Fa("span",{...S,className:s(e.className,Jt,k(Jt,{size:f,rounded:N,fillMode:x}),T(Jt,{hover:t,focus:o,disabled:r,invalid:l,valid:p,loading:i,readonly:u})),children:e.children})};$.states=Ua;$.options=Ga;$.className=Jt;$.defaultOptions=qt;$.moduleName=Ct;$.folderName=$t;import{Fragment as Va,jsx as ho}from"react/jsx-runtime";var Bn="k-clear-value",$a=[n.disabled,n.loading,n.readonly],Xa={},ne=e=>{let{disabled:t,loading:o,readonly:r,value:l}=e;return t||r||o||!l?ho(Va,{}):ho("span",{className:s(e.className,Bn),children:ho(E,{icon:"x"})})};ne.states=$a;ne.options=Xa;ne.className=Bn;import{jsx as Wa}from"react/jsx-runtime";var So="k-input-inner",Ja=[],qa={},Wt={type:"text",autocomplete:"off",value:"",placeholder:""},se=e=>{let{value:t=Wt.value,type:o=Wt.type,placeholder:r=Wt.placeholder,autocomplete:l=Wt.autocomplete,...p}=e;return Wa("input",{...p,type:o,className:s(e.className,So,k(So,e)),placeholder:r,autoComplete:l,defaultValue:t})};se.states=Ja;se.options=qa;se.className=So;import{jsx as wn,jsxs as Za}from"react/jsx-runtime";var vo="k-input-inner",Qa=[],Ya={},Ge=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:l,valueIconName:p,...i}=e;return Za("span",{...i,className:s(e.className,vo,k(vo,e)),children:[l,!l&&p&&wn(E,{className:"k-input-value-icon",icon:p}),r&&!t&&o,r&&t&&wn("span",{className:"k-input-value-text",children:t})]})};Ge.states=Qa;Ge.options=Ya;Ge.className=vo;import{jsx as tr}from"react/jsx-runtime";var Eo="k-input-inner",ja=[],er={},zn={value:"",placeholder:""},ko=e=>{let{value:t=zn.value,placeholder:o=zn.placeholder,rows:r,...l}=e;return tr("textarea",{...l,className:s(e.className,Eo,k(Eo,e)),placeholder:o,rows:r,defaultValue:t})};ko.states=ja;ko.options=er;ko.className=Eo;import{Fragment as nr,jsx as Hn}from"react/jsx-runtime";var Dn="k-input-loading-icon",or=[n.disabled,n.loading],W=e=>{let{disabled:t,loading:o}=e;return t||!o?Hn(nr,{}):Hn("span",{className:s(e.className,Dn,"k-icon k-i-loading")})};W.states=or;W.className=Dn;import{Fragment as rr,jsx as Un}from"react/jsx-runtime";var Gn="k-input-validation-icon",sr=[n.valid,n.invalid,n.disabled,n.loading],ar={},X=e=>{let{valid:t,invalid:o,disabled:r,loading:l}=e,p=o?"warning-circle":"check-circle";return r||l||!!!(t||o)?Un(rr,{}):Un(E,{className:s(Gn),icon:p})};X.states=sr;X.options=ar;X.className=Gn;import{Fragment as pr,jsx as Fn}from"react/jsx-runtime";var ir="k-input-prefix",lr={direction:"horizontal"},ce=e=>{let{direction:t=lr.direction,...o}=e;return e.children?Fn("span",{...o,className:s(ir,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Fn(pr,{})};import{Fragment as dr,jsx as $n}from"react/jsx-runtime";var mr="k-input-suffix",cr={direction:"horizontal"},de=e=>{let{direction:t=cr.direction,...o}=e;return e.children?$n("span",{...o,className:s(mr,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):$n(dr,{})};import{jsx as sc}from"react/jsx-runtime";import{jsx as lc}from"react/jsx-runtime";import{jsx as fr}from"react/jsx-runtime";var Xn="k-input-separator",ur={direction:"vertical"},Me=e=>{let{direction:t=ur.direction,...o}=e;return fr("span",{...o,className:s(Xn,e.className,{[`${Xn}-${t}`]:t})})};import{jsx as Vn,jsxs as Lr}from"react/jsx-runtime";var Jn="k-color-preview",br=[],Nr={},Ae=e=>{let{color:t,iconName:o,...r}=e;return Lr("span",{...r,className:s(e.className,Jn,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Vn(E,{icon:o,className:"k-color-preview-icon"}),Vn("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ae.states=br;Ae.options=Nr;Ae.className=Jn;var Co="popup",qn=Co;import{jsx as Wn}from"react/jsx-runtime";var Qn="k-animation-container",xr=[],Mr={},Yn={positionMode:"absolute"},ue=e=>{let{positionMode:t=Yn.positionMode,animationStyle:o,offset:r,...l}=e;return Wn("div",{...l,style:{...r,...e.style},className:s(e.className,Qn,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Wn("div",{className:"k-child-animation-container",style:o,children:e.children})})};ue.states=xr;ue.options=Mr;ue.className=Qn;ue.defaultOptions=Yn;ue.moduleName=Co;ue.folderName=qn;var Io="popup",Zn=Io;import{jsx as jn}from"react/jsx-runtime";var es="k-popup",hr=[],Sr={},ts={positionMode:"absolute"},w=e=>{let{offset:t,positionMode:o=ts.positionMode,animationStyle:r,...l}=e;return jn(ue,{positionMode:o,offset:t,animationStyle:r,children:jn("div",{...l,className:s(e.className,es),children:e.children})})};w.states=hr;w.options=Sr;w.className=es;w.defaultOptions=ts;w.moduleName=Io;w.folderName=Zn;var Ao="action-buttons",os=Ao;import{jsx as kr}from"react/jsx-runtime";var Qt="k-actions",vr=[],Er={},To={alignment:"start",orientation:"horizontal"},fe=e=>{let{alignment:t=To.alignment,orientation:o=To.orientation,...r}=e;return kr("div",{...r,className:s(Qt,{[`${Qt}-${t}`]:t,[`${Qt}-${o}`]:o},e.className),children:e.children})};fe.states=vr;fe.options=Er;fe.className=Qt;fe.defaultOptions=To;fe.moduleName=Ao;fe.folderName=os;import{jsx as Ir}from"react/jsx-runtime";var Cr="k-actionsheet-footer",ns={alignment:"stretched",orientation:"horizontal"},It=e=>{let{alignment:t=ns.alignment,orientation:o=ns.orientation,template:r,as:l=r?"div":fe,...p}=e;return Ir(l,{...p,...!r&&{alignment:t,orientation:o},className:s(e.className,Cr),children:e.children})};var go="searchbox",ss=go;import{jsx as At,jsxs as gr}from"react/jsx-runtime";var as="k-searchbox",Ar=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],Tr={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},Oo={showIcon:!0,icon:"search",size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode},ae=e=>{let{value:t,placeholder:o,size:r,rounded:l,fillMode:p,hover:i,focus:u,valid:f,invalid:N,required:x,loading:S,disabled:m,showIcon:h=Oo.showIcon,icon:M=Oo.icon,...v}=e;return gr(y,{...v,size:r,rounded:l,fillMode:p,hover:i,focus:u,valid:f,invalid:N,required:x,loading:S,disabled:m,className:s(e.className,as),children:[h&&At(E,{className:"k-input-icon",icon:M}),At(se,{placeholder:o,value:t}),At(W,{...e}),At(X,{...e}),At(ne,{...e})]})};ae.states=Ar;ae.options=Tr;ae.className=as;ae.defaultOptions=Oo;ae.moduleName=go;ae.folderName=ss;import{jsx as bd}from"react/jsx-runtime";var yo="textbox",rs=yo;import{Fragment as is,jsx as Te,jsxs as Ko}from"react/jsx-runtime";var ls="k-textbox",Or=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],yr={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},Fe={showClearButton:!0,showValidationIcon:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},be=e=>{let{size:t=Fe.size,rounded:o=Fe.rounded,fillMode:r=Fe.fillMode,separators:l=Fe.separators,showClearButton:p=Fe.showClearButton,showValidationIcon:i=Fe.showValidationIcon,prefix:u,suffix:f,type:N,value:x,placeholder:S,hover:m,focus:h,valid:M,invalid:v,required:A,loading:I,disabled:K,readonly:D,...Ie}=e;return Ko(y,{...Ie,size:t,rounded:o,fillMode:r,hover:m,focus:h,valid:M,invalid:v,required:A,loading:I,disabled:K,readonly:D,className:s(e.className,ls),children:[u&&Ko(is,{children:[Te(ce,{children:u}),l&&Te(Me,{})]}),Te(se,{placeholder:S,value:x,type:N}),i&&Te(X,{valid:M,invalid:v,loading:I,disabled:K}),Te(W,{loading:I,disabled:K}),p&&Te(ne,{loading:I,disabled:K,readonly:D,value:x}),f&&Ko(is,{children:[l&&Te(Me,{}),Te(de,{children:f})]})]})};be.states=Or;be.options=yr;be.className=ls;be.defaultOptions=Fe;be.moduleName=yo;be.folderName=rs;import{jsx as Td}from"react/jsx-runtime";import{Fragment as Pd,jsx as Rd}from"react/jsx-runtime";import{Fragment as Ud,jsx as Dd}from"react/jsx-runtime";import{jsx as ge,jsxs as Ro}from"react/jsx-runtime";var ms="k-actionsheet-titlebar",Kr={},Q=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:l,filter:p,input:i,inputValue:u,inputPlaceholder:f,adaptive:N,children:x,...S}=e;return Ro("div",{...S,className:s(e.className,ms),children:[Ro("div",{className:"k-actionsheet-titlebar-group",children:[r&&ge("div",{className:"k-actionsheet-actions",children:r}),!x&&Ro("div",{className:"k-actionsheet-title",children:[t&&ge("div",{className:"k-text-center",children:t}),o&&ge("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&ge("div",{className:"k-actionsheet-title",children:x}),l&&ge("div",{className:"k-actionsheet-actions",children:l})]}),(i||p)&&ge("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?ge(be,{value:u,placeholder:f,size:N?"large":"medium"}):ge(ae,{placeholder:"Filter",size:N?"large":"medium"})})]})};Q.className=ms;Q.defaultOptions=Kr;import{jsx as Po,jsxs as Br}from"react/jsx-runtime";var _o="k-actionsheet-view",Rr=[],Pr={},_r={},tt=e=>{let{adaptive:t,animated:o,children:r,header:l,footer:p,...i}=e,u=l?.type===Q&&Po(Q,{adaptive:t,...l?.props}),f=p?.type===It&&Po(It,{...p?.props});return Br("div",{...i,className:s(e.className,_o,{[`${_o}-animated`]:o}),children:[u,Po("div",{className:"k-actionsheet-content",children:r}),f]})};tt.states=Rr;tt.options=Pr;tt.className=_o;tt.defaultOptions=_r;var Tt="action-sheet",Yt=Tt;import{jsx as Zt,jsxs as Hr}from"react/jsx-runtime";var cs="k-actionsheet",wr=[],zr={},gt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},V=e=>{let{side:t=gt.side,fullscreen:o=gt.fullscreen,adaptive:r=gt.adaptive,overlay:l=gt.overlay,template:p,children:i,header:u,footer:f,...N}=e;return Hr("div",{className:"k-actionsheet-container",children:[l&&Zt("div",{className:"k-overlay"}),Zt(ue,{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:Zt("div",{...N,className:s(e.className,cs,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:p||Zt(tt,{header:u,footer:f,adaptive:r,...e,children:i})})})]})};V.states=wr;V.options=zr;V.className=cs;V.defaultOptions=gt;V.moduleName=Tt;V.folderName=Yt;import{jsx as Fr}from"react/jsx-runtime";var ds="k-actionsheet-container",Dr=[],Ur={},Gr={},ot=e=>{let{children:t,...o}=e;return Fr("div",{...o,className:ds,children:t})};ot.states=Dr;ot.options=Ur;ot.className=ds;ot.defaultOptions=Gr;ot.moduleName=Tt;ot.folderName=Yt;import{jsx as Nu}from"react/jsx-runtime";import{Fragment as Xr,jsx as Ot,jsxs as Bo}from"react/jsx-runtime";var wo="k-actionsheet-item",$r=[n.hover,n.focus,n.selected,n.disabled],zo=e=>{let{iconName:t,text:o,description:r,hover:l,focus:p,selected:i,disabled:u,...f}=e;return Bo("span",{...f,className:s(e.className,wo,T(wo,{hover:l,focus:p,selected:i,disabled:u})),children:[!e.children&&Ot(Xr,{children:Bo("span",{className:"k-actionsheet-action",children:[t&&Ot("span",{className:"k-icon-wrap",children:Ot(E,{className:"k-actionsheet-item-icon",icon:t})}),Bo("span",{className:"k-actionsheet-item-text",children:[o&&Ot("span",{className:"k-actionsheet-item-title",children:o}),r&&Ot("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};zo.states=$r;zo.className=wo;import{jsx as Cu,jsxs as Iu}from"react/jsx-runtime";import{jsx as Ou}from"react/jsx-runtime";import{jsx as Pu}from"react/jsx-runtime";import{jsx as zu}from"react/jsx-runtime";var Ho="slider",fs=Ho;import{jsx as nt,jsxs as Do}from"react/jsx-runtime";var yt="k-slider",Vr=[n.hover,n.focus,n.active,n.disabled,n.readonly],Jr={},Oe={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},U=e=>{let{type:t=Oe.type,orientation:o=Oe.orientation,readonly:r=Oe.readonly,disabled:l=Oe.disabled,handlePosition:p=Oe.handlePosition,showButtons:i=Oe.showButtons,showTicks:u=Oe.showTicks,hover:f,focus:N,active:x,trackStyle:S,dir:m,...h}=e,M,v;return o==="horizontal"?(M=m==="rtl"?"caret-alt-left":"caret-alt-right",v=m==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(M="caret-alt-up",v="caret-alt-down"),Do("div",{...h,className:s(yt,e.className,T(yt,{readonly:r,disabled:l}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:m,children:[i&&nt(L,{className:"k-button-decrease",rounded:"full",icon:v}),Do("div",{className:"k-slider-track-wrap",children:[u&&nt("ul",{className:"k-reset k-slider-items",children:e.children}),Do("div",{className:"k-slider-track",style:S,children:[nt("div",{className:"k-slider-selection"}),t==="range"&&nt("span",{className:s("k-draghandle","k-draghandle-start",T(yt,{hover:f,focus:N,active:x}))}),nt("span",{className:s("k-draghandle",`k-draghandle-${p}`,T(yt,{hover:f,focus:N,active:x}))})]})]}),i&&nt(L,{className:"k-button-increase",rounded:"full",icon:M})]})};U.states=Vr;U.options=Jr;U.className=yt;U.defaultOptions=Oe;U.moduleName=Ho;U.folderName=fs;import{jsx as bs}from"react/jsx-runtime";var Ns="k-tick",qr=[],Wr={},Ls={label:!1},ye=e=>{let{style:t,label:o=Ls.label,orientation:r,large:l,text:p,...i}=e;return bs("li",{...i,className:s(e.className,Ns,{[`k-tick-${r}`]:r,"k-tick-large":l}),style:t,children:o&&bs("span",{className:"k-label",children:p})})};ye.states=qr;ye.options=Wr;ye.className=Ns;ye.defaultOptions=Ls;import{Fragment as cf,jsx as mf,jsxs as df}from"react/jsx-runtime";import{Fragment as Lf,jsx as Nf,jsxs as xf}from"react/jsx-runtime";import{Fragment as Ef,jsx as vf,jsxs as kf}from"react/jsx-runtime";import{Fragment as gf,jsx as Tf,jsxs as Of}from"react/jsx-runtime";import{jsx as Qr}from"react/jsx-runtime";var Uo=e=>Qr(U,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Yr}from"react/jsx-runtime";var Go=e=>Yr(U,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as xs,jsxs as oi}from"react/jsx-runtime";var Ms="k-spin-button",ei=[],ti={size:[a.small,a.medium,a.large],fillMode:[c.solid,c.flat,c.outline,c.clear,c.link]},Fo={size:a.medium,fillMode:c.solid},Ke=e=>{let{size:t=Fo.size,fillMode:o=Fo.fillMode,...r}=e;return oi("span",{...r,className:s(Ms,e.className),children:[xs(L,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),xs(L,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Ke.states=ei;Ke.options=ti;Ke.className=Ms;Ke.defaultOptions=Fo;Ke.moduleName=null;Ke.folderName=null;var hs="numeric-textbox",Ss="numerictextbox";import{Fragment as vs,jsx as he,jsxs as $o}from"react/jsx-runtime";var Es="k-numerictextbox",ni=[n.hover,n.focus,n.valid,n.invalid,n.loading,n.required,n.disabled,n.readonly],si={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},$e={showSpinButton:!0,showClearButton:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},P=e=>{let{size:t=$e.size,rounded:o=$e.rounded,fillMode:r=$e.fillMode,separators:l=$e.separators,showClearButton:p=$e.showClearButton,showSpinButton:i=$e.showSpinButton,prefix:u,suffix:f,value:N,placeholder:x,hover:S,focus:m,valid:h,invalid:M,required:v,loading:A,disabled:I,readonly:K,...D}=e;return $o(y,{...D,size:t,rounded:o,fillMode:r,hover:S,focus:m,valid:h,invalid:M,required:v,loading:A,disabled:I,readonly:K,className:s(e.className,Es),children:[u&&$o(vs,{children:[he(ce,{children:u}),l&&he(Me,{})]}),he(se,{placeholder:x,value:N}),he(X,{valid:h,invalid:M,loading:A,disabled:I}),he(W,{loading:A,disabled:I}),p&&he(ne,{loading:A,disabled:I,readonly:K,value:N}),f&&$o(vs,{children:[l&&he(Me,{}),he(de,{children:f})]}),i&&he(Ke,{className:"k-input-spinner",size:t,fillMode:r})]})};P.states=ni;P.options=si;P.className=Es;P.defaultOptions=$e;P.moduleName=hs;P.folderName=Ss;import{jsx as mb}from"react/jsx-runtime";import{jsx as ri}from"react/jsx-runtime";var ai="k-no-data",Kt=e=>ri("span",{className:s(ai,e.className),children:e.children});var Se="list",Re=Se;import{jsx as st,jsxs as Cs}from"react/jsx-runtime";var Xo="k-list",ii=[],li={size:[a.small,a.medium,a.large]},Is={size:a.medium},R=e=>{let{size:t=Is.size,virtualization:o,children:r,optionLabel:l,customValue:p,screenReaders:i,...u}=e,f,N,x,S,m=[];return r?r.map((h,M)=>{h.type===H?(h.props.root===!0?(f=h.props.label,h.props.children.map((v,A)=>{m.push(st(C,{...v.props},`optChild-${A}-${new Date().getTime()}`))})):h.props.children.forEach((v,A)=>{let I="";A===0&&(I=h.props.label),m.push(st(C,{className:A===0?"k-first":"",...v.props,groupLabel:I},`groupLabel-${A}-${new Date().getTime()}`))}),N=st(H,{label:f,virtualization:o,children:m})):h.type===C&&(m.push(st(C,{...h.props},`${h.type}-${M}`)),x=st(at,{virtualization:o,children:m}),i&&(S=Cs(Kt,{className:"k-sr-only",children:[m.length," items found."]})))}):S=st(Kt,{children:"No data found."}),Cs("div",{...u,className:s(e.className,Xo,k(Xo,{size:t}),{"k-virtual-list":o}),children:[l,p,N,x,S]})};R.states=ii;R.options=li;R.className=Xo;R.defaultOptions=Is;R.moduleName=Se;R.folderName=Re;import{jsx as di}from"react/jsx-runtime";var As="k-list-container",pi=[],mi={},ci={},rt=e=>{let{...t}=e;return di("div",{...t,className:s(e.className,As),children:e.children})};rt.states=pi;rt.options=mi;rt.className=As;rt.defaultOptions=ci;rt.moduleName=Se;rt.folderName=Re;import{jsx as Xe,jsxs as bi}from"react/jsx-runtime";var Vo="k-list",ui=[],fi={size:[a.small,a.medium,a.large]},Ts={size:a.medium},ve=e=>{let{size:t=Ts.size,virtualization:o,children:r,...l}=e,p,i,u,f=[];return r?r.map((N,x)=>{N.type===H?(N.props.root===!0?(p=N.props.label,N.props.children.map((S,m)=>{f.push(Xe(C,{...S.props},`optChild-${m}-${new Date().getTime()}`))})):(f.push(Xe(gs,{...N.props,children:N.props.label},`listChild-${x}`)),N.props.children.map((S,m)=>{f.push(Xe(C,{...S.props},`fwOptChild-${m}-${new Date().getTime()}`))})),i=Xe(H,{label:p,virtualization:o,children:f})):N.type===C&&(f.push(Xe(C,{...N.props},`${N.type}-${x}`)),u=Xe(at,{virtualization:o,children:f}))}):u=Xe(Kt,{children:"No data found."}),bi("div",{...l,className:s(e.className,Vo,k(Vo,{size:t}),{"k-virtual-list":o}),children:[i,u]})};ve.states=ui;ve.options=fi;ve.className=Vo;ve.defaultOptions=Ts;ve.moduleName=Se;ve.folderName=Re;var Ve="checkbox",it=Ve;import{jsx as Os}from"react/jsx-runtime";var jt="k-checkbox",Ni=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],Li={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full]},Jo={size:a.medium,rounded:b.medium},Ne=e=>{let{id:t,checked:o,indeterminate:r,hover:l,focus:p,disabled:i,invalid:u,valid:f,required:N,size:x=Jo.size,rounded:S=Jo.rounded,...m}=e;return Os("span",{className:"k-checkbox-wrap",children:Os("input",{...m,id:t,type:"checkbox",defaultChecked:o,required:N,className:s(e.className,jt,k(jt,{size:x,rounded:S}),T(jt,{hover:l,focus:p,disabled:i,invalid:u,valid:f,indeterminate:r,checked:o}))})})};Ne.states=Ni;Ne.options=Li;Ne.className=jt;Ne.defaultOptions=Jo;Ne.moduleName=Ve;Ne.folderName=it;import{jsx as hi}from"react/jsx-runtime";var ys="k-checkbox-list",xi=[],Mi={},Ks={layout:"vertical"},Pe=e=>{let{layout:t=Ks.layout,...o}=e;return hi("ul",{...o,className:s(e.className,ys,{[`k-list-${t}`]:t}),children:e.children})};Pe.states=xi;Pe.options=Mi;Pe.className=ys;Pe.defaultOptions=Ks;Pe.moduleName=Ve;Pe.folderName=it;import{jsx as ki}from"react/jsx-runtime";var Rs="k-checkbox-list-item",Si=[],vi={},Ei={},_e=e=>{let{...t}=e;return ki("li",{...t,className:s(e.className,Rs),children:e.children})};_e.states=Si;_e.options=vi;_e.className=Rs;_e.defaultOptions=Ei;_e.moduleName=Ve;_e.folderName=it;import{Fragment as Qb,jsx as Wb,jsxs as Yb}from"react/jsx-runtime";import{Fragment as oN,jsx as tN,jsxs as nN}from"react/jsx-runtime";import{Fragment as lN,jsx as iN,jsxs as pN}from"react/jsx-runtime";import{Fragment as fN,jsx as uN,jsxs as bN}from"react/jsx-runtime";import{jsx as MN}from"react/jsx-runtime";import{jsx as EN}from"react/jsx-runtime";import{jsx as eo,jsxs as Ti}from"react/jsx-runtime";var Wo="k-list-item",Ci=[n.hover,n.focus,n.selected,n.disabled],Ii={},Ai={},C=e=>{let{text:t,groupLabel:o,group:r,showIcon:l,iconName:p,showCheckbox:i,checked:u,hover:f,focus:N,selected:x,disabled:S,...m}=e,h=t||e.children;return Ti("li",{...m,className:s(e.className,r?"k-list-group-item":Wo,T(Wo,{hover:f,focus:N,disabled:S,selected:x})),children:[i&&eo(Ne,{checked:u}),l&&eo(E,{icon:p}),eo("span",{className:"k-list-item-text",children:h}),o&&o!==""&&eo("div",{className:"k-list-item-group-label",children:o})]})};C.states=Ci;C.options=Ii;C.className=Wo;C.defaultOptions=Ai;C.moduleName=Se;C.folderName=Re;import{jsx as Qo,jsxs as Oi}from"react/jsx-runtime";var gi="k-list-content",at=e=>{let{virtualization:t,...o}=e;return Oi("div",{...o,className:s(gi,e.className),children:[Qo("ul",{className:s("k-list-ul"),children:e.children}),t&&Qo("div",{className:"k-height-container",children:Qo("div",{})})]})};import{jsx as Ps}from"react/jsx-runtime";var yi="k-list-group-sticky-header",_s=e=>Ps("div",{className:s(yi,e.className),children:Ps("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Ki,jsx as Bs,jsxs as Ri}from"react/jsx-runtime";var H=e=>{let{virtualization:t,label:o}=e;return Ri(Ki,{children:[o&&Bs(_s,{children:o}),e.children&&Bs(at,{virtualization:t,children:e.children})]})};import{jsx as ws}from"react/jsx-runtime";var Pi="k-list-group-item",gs=e=>ws("li",{className:s(Pi,e.className),children:ws("span",{className:"k-list-item-text",children:e.children})});import{jsx as zi}from"react/jsx-runtime";var Yo="k-list-optionlabel",_i=[n.hover,n.focus,n.selected,n.disabled],Bi={},wi={},to=e=>{let{text:t,hover:o,focus:r,selected:l,disabled:p,...i}=e;return zi("div",{...i,className:s(Yo,T(Yo,{hover:o,focus:r,selected:l,disabled:p})),children:t})};to.states=_i;to.options=Bi;to.className=Yo;to.defaultOptions=wi;import{jsx as Gi}from"react/jsx-runtime";var Zo="k-list-custom-value",Hi=[n.hover,n.focus,n.selected,n.disabled],Di={},Ui={},Be=e=>{let{text:t,hover:o,focus:r,selected:l,disabled:p,...i}=e;return Gi("div",{...i,className:s(Zo,T(Zo,{hover:o,focus:r,selected:l,disabled:p})),children:t})};Be.states=Hi;Be.options=Di;Be.className=Zo;Be.defaultOptions=Ui;import{jsx as iL}from"react/jsx-runtime";import{jsx as cL}from"react/jsx-runtime";import{jsx as bL,jsxs as NL}from"react/jsx-runtime";import{jsx as hL,jsxs as SL}from"react/jsx-runtime";import{jsx as CL}from"react/jsx-runtime";import{jsx as gL,jsxs as OL}from"react/jsx-runtime";import{jsx as PL,jsxs as _L}from"react/jsx-runtime";var zs="dropdown-list",Hs="dropdownlist";import{Fragment as Xi,jsx as G,jsxs as jo}from"react/jsx-runtime";var Ds="k-dropdownlist",Fi=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],$i={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},lt={showValue:!0,arrowIconName:"caret-alt-down",size:a.medium,rounded:b.medium,fillMode:c.solid},Le=e=>{let{size:t=lt.size,rounded:o=lt.rounded,fillMode:r=lt.fillMode,arrowIconName:l=lt.arrowIconName,showValue:p=lt.showValue,valueIconName:i,prefix:u,suffix:f,value:N,placeholder:x,hover:S,focus:m,valid:h,invalid:M,required:v,loading:A,disabled:I,readonly:K,popup:D,opened:Ie,adaptive:Lt,adaptiveSettings:xt,adaptiveTitle:po,adaptiveSubtitle:mo,adaptiveFilter:La,...xa}=e;return jo(Xi,{children:[jo($,{...xa,size:t,rounded:o,fillMode:r,hover:S,focus:m,valid:h,invalid:M,required:v,loading:A,disabled:I,readonly:K,className:s(e.className,Ds,{"k-icon-picker":!p&&i}),children:[G(ce,{children:u}),G(Ge,{placeholder:x,value:N,showValue:p,valueIconName:i}),G(X,{valid:h,invalid:M,loading:A,disabled:I}),G(W,{loading:A,disabled:I}),G(de,{children:f}),G(L,{className:"k-input-button",icon:l,rounded:null,size:e.size,fillMode:e.fillMode})]}),Ie&&D&&G(w,{className:"k-list-container k-dropdownlist-popup",children:D}),Lt&&G(V,{adaptive:!0,...xt,header:G(Q,{actionsEnd:G(L,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:La,inputValue:N,inputPlaceholder:x,title:po,subtitle:mo}),children:G("div",{className:"k-list-container",children:jo(R,{size:"large",children:[G(C,{text:"List item"}),G(C,{text:"List item"}),G(C,{text:"List item"})]})})})]})};Le.states=Fi;Le.options=$i;Le.className=Ds;Le.defaultOptions=lt;Le.moduleName=zs;Le.folderName=Hs;import{jsx as fx}from"react/jsx-runtime";import{jsx as Mx,jsxs as hx}from"react/jsx-runtime";import{Fragment as Tx,jsx as Ix,jsxs as Ax}from"react/jsx-runtime";import{jsx as Kx}from"react/jsx-runtime";import{jsx as wx,jsxs as zx}from"react/jsx-runtime";import{jsx as Fx,jsxs as $x}from"react/jsx-runtime";import{Fragment as Zx,jsx as Qx,jsxs as Yx}from"react/jsx-runtime";import{Fragment as rM,jsx as sM,jsxs as aM}from"react/jsx-runtime";import{Fragment as vM,jsx as SM}from"react/jsx-runtime";import{Fragment as gM,jsx as TM}from"react/jsx-runtime";import{Fragment as Rt,jsx as g,jsxs as B}from"react/jsx-runtime";var Us="k-colorgradient-inputs",Vi=[],Ji={size:[a.small,a.medium,a.large]},Gs={mode:"rgba",size:a.medium},pt=e=>{let{mode:t=Gs.mode,size:o,...r}=e;return B("div",{...r,className:s(Us,"k-hstack"),children:[g("div",{className:"k-vstack",children:g(L,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&B(Rt,{children:[B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),g("label",{className:"k-colorgradient-input-label",children:"R"})]}),B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),g("label",{className:"k-colorgradient-input-label",children:"G"})]}),B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),g("label",{className:"k-colorgradient-input-label",children:"B"})]}),B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),g("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&B(Rt,{children:[B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"R"})]}),B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"G"})]}),B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&B(Rt,{children:[B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"H"})]}),B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"S"})]}),B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"V"})]}),B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),g("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&B(Rt,{children:[B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"H"})]}),B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"S"})]}),B("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&g(Rt,{children:B("div",{className:"k-vstack k-flex-1",children:[g(be,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),g("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};pt.states=Vi;pt.options=Ji;pt.className=Us;pt.defaultOptions=Gs;import{jsx as qe,jsxs as We}from"react/jsx-runtime";var Fs="k-colorgradient-color-contrast",qi=[],Wi={},Qi={},mt=()=>We("div",{className:s(Fs,"k-vbox"),children:[We("div",{className:"k-contrast-ratio",children:[qe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),We("span",{className:"k-contrast-validation !k-text-success",children:[qe(E,{icon:"check"}),qe(E,{icon:"check"})]})]}),We("div",{children:[qe("span",{children:"AA: 4.5"}),We("span",{className:"k-contrast-validation !k-text-success",children:["Pass",qe(E,{icon:"check"})]})]}),We("div",{children:[qe("span",{children:"AAA: 7.0"}),We("span",{className:"k-contrast-validation !k-text-error",children:["Fail",qe(E,{icon:"x"})]})]})]});mt.states=qi;mt.options=Wi;mt.className=Fs;mt.defaultOptions=Qi;var $s="color-gradient",Xs="colorgradient";import{jsx as Y,jsxs as Pt}from"react/jsx-runtime";var oo="k-colorgradient",Yi=[n.hover,n.focus,n.readonly,n.disabled],Zi={size:[a.small,a.medium,a.large]},re={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"},xe=e=>{let{size:t=re.size,mode:o=re.mode,readonly:r=re.readonly,disabled:l=re.disabled,gradientStyle:p=re.gradientStyle,dragHandleStyle:i=re.dragHandleStyle,alphaStyle:u=re.alphaStyle,alphaStyleHorizontal:f=re.alphaStyleHorizontal,contrast:N=re.contrast,dir:x,hover:S,focus:m,hoverHandle:h,focusHandle:M,canvasOrientation:v=re.canvasOrientation,...A}=e;return Pt("div",{...A,className:s(e.className,oo,k(oo,{size:t}),T(oo,{hover:S,focus:m,readonly:r,disabled:l})),dir:x,children:[!v||v==="horizontal"&&Pt("div",{className:"k-colorgradient-canvas k-hstack",children:[Y("div",{className:"k-hsv-rectangle",style:p,children:Y("div",{className:"k-hsv-gradient",children:Y("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":h,"k-focus":M}),style:i})})}),Pt("div",{className:"k-hsv-controls k-hstack",children:[Y(Go,{className:"k-hue-slider",hover:h,focus:M}),o!=="rgb"&&o!=="hsv"&&Y(Go,{className:"k-alpha-slider",hover:h,focus:M,trackStyle:u})]})]}),v==="vertical"&&Pt("div",{className:"k-colorgradient-canvas k-vstack",children:[Y("div",{className:"k-hsv-rectangle",style:p,children:Y("div",{className:"k-hsv-gradient",children:Y("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":h,"k-focus":M}),style:i})})}),Pt("div",{className:"k-hsv-controls k-vstack",children:[Y(Uo,{className:"k-hue-slider",hover:h,focus:M}),o!=="rgb"&&o!=="hsv"&&Y(Uo,{className:"k-alpha-slider",hover:h,focus:M,trackStyle:f})]})]}),Y(pt,{mode:e.mode,size:t}),N&&Y(mt,{})]})};xe.states=Yi;xe.options=Zi;xe.className=oo;xe.defaultOptions=re;xe.moduleName=$s;xe.folderName=Xs;import{jsx as oh}from"react/jsx-runtime";import{jsx as rh}from"react/jsx-runtime";import{jsx as ji}from"react/jsx-runtime";var Vs=e=>ji("tr",{children:e.children});import{jsx as ol}from"react/jsx-runtime";var en="k-colorpalette-tile",el=[n.hover,n.focus,n.selected],tl={},_t=e=>{let{color:t,tileSize:o,hover:r,focus:l,selected:p,...i}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return ol("td",{...i,className:s(e.className,en,T(en,{hover:r,focus:l,selected:p})),style:u})};_t.states=el;_t.options=tl;_t.className=en;var Js="color-palette",qs="colorpalette";import{jsx as Bt}from"react/jsx-runtime";var no="k-colorpalette",nl=[n.disabled],sl={size:[a.small,a.medium,a.large]},tn={columns:10,size:a.medium},we=e=>{let{size:t=tn.size,palette:o,columns:r=tn.columns,tileSize:l,disabled:p,...i}=e,u=[];if(o){let f=r||o.columns,N=o.colors?o.colors:o;Array.isArray(N)&&Array.from({length:Math.ceil(N.length/f)},(x,S)=>{let m=[];N.slice(S*f,(S+1)*f).map((M,v)=>{m.push(Bt(_t,{color:M,tileSize:l},v))});let h=Bt(Vs,{children:m},S);u.push(h)})}return Bt("div",{...i,className:s(e.className,no,T(no,{disabled:p}),k(no,{size:t})),children:Bt("table",{className:"k-colorpalette-table",children:Bt("tbody",{children:u.length>0?u:e.children})})})};we.states=nl;we.options=sl;we.className=no;we.defaultOptions=tn;we.moduleName=Js;we.folderName=qs;var on={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 yh}from"react/jsx-runtime";var Ws="color-editor",Qs="coloreditor";import{jsx as Z,jsxs as ct}from"react/jsx-runtime";var so="k-coloreditor",al=[n.focus],rl={size:[a.small,a.medium,a.large]},dt={size:a.medium,view:"gradient",palette:on.office,actionButtons:!0,canvasOrientation:"horizontal"},j=e=>{let{size:t=dt.size,view:o=dt.view,palette:r=dt.palette,color:l,currentColor:p,focus:i,focusView:u,dir:f,group:N,actionButtons:x=dt.actionButtons,canvasOrientation:S=dt.canvasOrientation,...m}=e;return ct("div",{...m,className:s(e.className,"k-flatcolorpicker",so,k(so,{size:t}),T(so,{focus:i})),dir:f,children:[ct("div",{className:"k-coloreditor-header k-hstack",children:[Z("div",{className:"k-coloreditor-header-actions k-hstack",children:N&&ct(_,{fillMode:"flat",children:[Z(L,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),Z(L,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),Z("div",{className:"k-spacer"}),ct("div",{className:"k-coloreditor-header-actions k-hstack",children:[Z(L,{fillMode:"flat",icon:"droplet-slash",size:t}),ct("div",{className:"k-coloreditor-preview k-vstack",children:[Z(Ae,{className:"k-coloreditor-preview-color",color:l}),Z(Ae,{className:"k-coloreditor-current-color",color:p})]})]})]}),Z("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?Z(xe,{focus:u,size:t,canvasOrientation:S}):Z(we,{palette:r,size:t})}),x&&ct(fe,{className:"k-coloreditor-footer",alignment:"start",children:[Z(L,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Z(L,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};j.states=al;j.options=rl;j.className=so;j.defaultOptions=dt;j.moduleName=Ws;j.folderName=Qs;import{jsx as Zh}from"react/jsx-runtime";import{jsx as oS}from"react/jsx-runtime";import{jsx as rS}from"react/jsx-runtime";import{jsx as mS}from"react/jsx-runtime";var Ys="color-picker",Zs="colorpicker";import{Fragment as pl,jsx as ee,jsxs as sn}from"react/jsx-runtime";var js="k-colorpicker",il=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled],ll={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},wt={arrowIconName:"caret-alt-down",size:$.defaultOptions.size,rounded:$.defaultOptions.rounded,fillMode:$.defaultOptions.fillMode},ie=e=>{let{size:t=wt.size,rounded:o=wt.rounded,fillMode:r=wt.fillMode,arrowIconName:l=wt.arrowIconName,prefix:p,suffix:i,value:u,placeholder:f,hover:N,focus:x,valid:S,invalid:m,required:h,disabled:M,valueIconName:v,popup:A,opened:I,adaptive:K,adaptiveSettings:D,adaptiveTitle:Ie,adaptiveSubtitle:Lt,...xt}=e;return sn(pl,{children:[sn($,{...xt,size:t,rounded:o,fillMode:r,hover:N,focus:x,valid:S,invalid:m,required:h,disabled:M,className:s(e.className,js,"k-icon-picker"),children:[ee(