UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 69.4 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:i,focus:p,checked:l,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":i,"k-focus":p,"k-checked":l,"k-active":u,"k-selected":f,"k-disabled":N,"k-indeterminate":x&&!l,"k-loading":S,"k-empty":m,"k-readonly":h,"k-highlighted":M},Object.keys(v).reduce((A,C)=>(C.startsWith("k-")?A[C]=v[C]:A[`k-${C}`]=v[C],A),{}))};function Bn(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 _a,jsx as Rn}from"react/jsx-runtime";var xo="k-font-icon",Ra=[],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]},Pa={},Ct=e=>{let{size:t,themeColor:o,icon:r,rotate:i,flip:p,...l}=e;return r?Rn("span",{...l,className:s(e.className,xo,k(xo,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):Rn(_a,{})};Ct.states=Ra;Ct.options=Ka;Ct.className=xo;Ct.defaultOptions=Pa;var Kn=Ct;import{Fragment as za,jsx as Jt}from"react/jsx-runtime";var Mo="k-svg-icon",wa=[],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]},Pn={viewBox:"0 0 24 24"},Tt=e=>{let{size:t,themeColor:o,rotate:r,flip:i,viewBox:p=Pn.viewBox,icon:l,...u}=e;if(!l)return Jt(za,{});l==="none"&&{...u,className:s(e.className,Mo,"k-none")};let f=typeof l=="object"&&l.name&&l.name;return Jt("span",{...u,className:s(e.className,Mo,k("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:Jt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:p,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};Tt.states=wa;Tt.options=Ha;Tt.className=Mo;Tt.defaultOptions=Pn;var ho=Tt;import*as So from"@progress/kendo-svg-icons";var _n="icon",wn="icons";import{Fragment as Hn,jsx as At}from"react/jsx-runtime";var qt="k-icon",Da=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ga=[],Ua={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]},vo={viewBox:"0 0 24 24",type:"svg"},E=e=>{let{size:t,themeColor:o,icon:r,type:i=vo.type,rotate:p,flip:l,viewBox:u=vo.viewBox,...f}=e;if(!r)return At(Hn,{});if(i==="svg"){if(r==="none")return At(ho,{...f,className:s(e.className,qt),icon:r,size:t});let N=So[r]?r:Da(`${r}-icon`);return So[N]?At(ho,{...f,className:s(e.className,qt),icon:So[N],size:t,themeColor:o,rotate:p,flip:l,viewBox:u}):At(Hn,{})}return At(Kn,{...f,className:s(e.className,qt),icon:r,size:t,themeColor:o,rotate:p,flip:l})};E.states=Ga;E.options=Ua;E.defaultOptions=vo;E.className=qt;E.moduleName=_n;E.folderName=wn;var Eo="button",zn=Eo;import{Fragment as Va,jsx as gt,jsxs as Dn}from"react/jsx-runtime";var Ot="k-button",Fa=["icon-button"],$a=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Xa={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]},$e={size:a.medium,rounded:b.medium,fillMode:c.solid,themeColor:d.base,showArrow:!1,arrowIconName:"caret-alt-down"},L=e=>{let{size:t=$e.size,rounded:o=$e.rounded,fillMode:r=$e.fillMode,themeColor:i=$e.themeColor,showArrow:p=$e.showArrow,arrowIconName:l=$e.arrowIconName,variant:u,hover:f,focus:N,active:x,selected:S,disabled:m,icon:h,text:M,iconClassName:v,...A}=e,C=h!==void 0,B=e.children!==void 0;return Dn("button",{...A,className:s(e.className,Ot,Bn(Ot,u),k(Ot,{size:t,rounded:o,fillMode:r,themeColor:i}),T(Ot,{hover:f,focus:N,active:x,disabled:m,selected:S}),{"k-icon-button":!M&&!B&&C}),children:[h&&gt(E,{className:s(v,"k-button-icon"),icon:h}),M?Dn(Va,{children:[M&&gt("span",{className:"k-button-text",children:M}),e.children]}):e.children&&gt("span",{className:"k-button-text",children:e.children}),p&&gt("span",{className:"k-menu-button-arrow k-button-arrow",children:gt(E,{icon:l})})]})};L.states=$a;L.options=Xa;L.variants=Fa;L.className=Ot;L.defaultOptions=$e;L.moduleName=Eo;L.folderName=zn;import{jsx as Ja}from"react/jsx-runtime";var Wt=e=>Ja(L,{icon:"folder",...e,children:void 0});import{jsx as qa}from"react/jsx-runtime";var ko=e=>qa(L,{icon:"folder",children:"Button",...e});import{jsx as nm}from"react/jsx-runtime";var Io="slider",Gn=Io;import{jsx as at,jsxs as Co}from"react/jsx-runtime";var yt="k-slider",Wa=[n.hover,n.focus,n.active,n.disabled,n.readonly],Ya={},Be={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},F=e=>{let{type:t=Be.type,orientation:o=Be.orientation,readonly:r=Be.readonly,disabled:i=Be.disabled,handlePosition:p=Be.handlePosition,showButtons:l=Be.showButtons,showTicks:u=Be.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"),Co("div",{...h,className:s(yt,e.className,T(yt,{readonly:r,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:m,children:[l&&at(L,{className:"k-button-decrease",rounded:"full",icon:v}),Co("div",{className:"k-slider-track-wrap",children:[u&&at("ul",{className:"k-reset k-slider-items",children:e.children}),Co("div",{className:"k-slider-track",style:S,children:[at("div",{className:"k-slider-selection"}),t==="range"&&at("span",{className:s("k-draghandle","k-draghandle-start",T(yt,{hover:f,focus:N,active:x}))}),at("span",{className:s("k-draghandle",`k-draghandle-${p}`,T(yt,{hover:f,focus:N,active:x}))})]})]}),l&&at(L,{className:"k-button-increase",rounded:"full",icon:M})]})};F.states=Wa;F.options=Ya;F.className=yt;F.defaultOptions=Be;F.moduleName=Io;F.folderName=Gn;import{jsx as Un}from"react/jsx-runtime";var Fn="k-tick",Qa=[],Za={},$n={label:!1},w=e=>{let{style:t,label:o=$n.label,orientation:r,large:i,text:p,...l}=e;return Un("li",{...l,className:s(e.className,Fn,{[`k-tick-${r}`]:r,"k-tick-large":i}),style:t,children:o&&Un("span",{className:"k-label",children:p})})};w.states=Qa;w.options=Za;w.className=Fn;w.defaultOptions=$n;import{Fragment as ja,jsx as Q,jsxs as er}from"react/jsx-runtime";var Yt=e=>Q(F,{children:er(ja,{children:[Q(w,{className:"k-first",label:!0,large:!0,text:"0"}),Q(w,{}),Q(w,{}),Q(w,{}),Q(w,{}),Q(w,{label:!0,large:!0,text:"5"}),Q(w,{}),Q(w,{}),Q(w,{}),Q(w,{}),Q(w,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as Im,jsx as km,jsxs as Cm}from"react/jsx-runtime";import{Fragment as ym,jsx as Om,jsxs as Bm}from"react/jsx-runtime";import{Fragment as wm,jsx as _m,jsxs as Hm}from"react/jsx-runtime";import{jsx as tr}from"react/jsx-runtime";var To=e=>tr(F,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as or}from"react/jsx-runtime";var Ao=e=>or(F,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});var go="button",Xn=go;import{jsx as ar}from"react/jsx-runtime";var Bt="k-button-group",nr=[n.disabled],sr={fillMode:[c.solid,c.flat,c.outline,c.clear,c.link]},Vn={fillMode:c.solid},K=e=>{let{fillMode:t=Vn.fillMode,disabled:o,stretched:r,...i}=e;return ar("div",{...i,className:s(e.className,Bt,k(Bt,{fillMode:t}),T(Bt,{disabled:o}),{[`${Bt}-stretched`]:r}),children:e.children})};K.states=nr;K.options=sr;K.className=Bt;K.defaultOptions=Vn;K.moduleName=go;K.folderName=Xn;import{Fragment as mc,jsx as pc,jsxs as cc}from"react/jsx-runtime";import{Fragment as Lc,jsx as Nc,jsxs as xc}from"react/jsx-runtime";import{Fragment as kc,jsx as Ec,jsxs as Ic}from"react/jsx-runtime";import{Fragment as yc,jsx as Oc,jsxs as Bc}from"react/jsx-runtime";var Rt="input",Qt=Rt;import{jsx as lr}from"react/jsx-runtime";var Zt="k-input",rr=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],ir={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},jt={size:a.medium,rounded:a.medium,fillMode:c.solid},y=e=>{let{hover:t,focus:o,disabled:r,invalid:i,valid:p,loading:l,readonly:u,size:f=jt.size,rounded:N=jt.rounded,fillMode:x=jt.fillMode,...S}=e;return lr("span",{...S,className:s(e.className,Zt,k(Zt,{size:f,rounded:N,fillMode:x}),T(Zt,{hover:t,focus:o,disabled:r,invalid:i,valid:p,loading:l,readonly:u}))})};y.states=rr;y.options=ir;y.className=Zt;y.defaultOptions=jt;y.moduleName=Rt;y.folderName=Qt;import{jsx as cr}from"react/jsx-runtime";var eo="k-picker",pr=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],mr={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},to={size:a.medium,rounded:b.medium,fillMode:c.solid},V=e=>{let{hover:t,focus:o,disabled:r,invalid:i,valid:p,loading:l,readonly:u,size:f=to.size,rounded:N=to.rounded,fillMode:x=to.fillMode,...S}=e;return cr("span",{...S,className:s(e.className,eo,k(eo,{size:f,rounded:N,fillMode:x}),T(eo,{hover:t,focus:o,disabled:r,invalid:i,valid:p,loading:l,readonly:u})),children:e.children})};V.states=pr;V.options=mr;V.className=eo;V.defaultOptions=to;V.moduleName=Rt;V.folderName=Qt;import{Fragment as fr,jsx as Oo}from"react/jsx-runtime";var Jn="k-clear-value",dr=[n.disabled,n.loading,n.readonly],ur={},re=e=>{let{disabled:t,loading:o,readonly:r,value:i}=e;return t||r||o||!i?Oo(fr,{}):Oo("span",{className:s(e.className,Jn),children:Oo(E,{icon:"x"})})};re.states=dr;re.options=ur;re.className=Jn;import{jsx as Lr}from"react/jsx-runtime";var yo="k-input-inner",br=[],Nr={},oo={type:"text",autocomplete:"off",value:"",placeholder:""},ie=e=>{let{value:t=oo.value,type:o=oo.type,placeholder:r=oo.placeholder,autocomplete:i=oo.autocomplete,...p}=e;return Lr("input",{...p,type:o,className:s(e.className,yo,k(yo,e)),placeholder:r,autoComplete:i,defaultValue:t})};ie.states=br;ie.options=Nr;ie.className=yo;import{jsx as qn,jsxs as hr}from"react/jsx-runtime";var Bo="k-input-inner",xr=[],Mr={},Xe=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:i,valueIconName:p,...l}=e;return hr("span",{...l,className:s(e.className,Bo,k(Bo,e)),children:[i,!i&&p&&qn(E,{className:"k-input-value-icon",icon:p}),r&&!t&&o,r&&t&&qn("span",{className:"k-input-value-text",children:t})]})};Xe.states=xr;Xe.options=Mr;Xe.className=Bo;import{jsx as Er}from"react/jsx-runtime";var Ro="k-input-inner",Sr=[],vr={},Wn={value:"",placeholder:""},Ko=e=>{let{value:t=Wn.value,placeholder:o=Wn.placeholder,rows:r,...i}=e;return Er("textarea",{...i,className:s(e.className,Ro,k(Ro,e)),placeholder:o,rows:r,defaultValue:t})};Ko.states=Sr;Ko.options=vr;Ko.className=Ro;import{Fragment as Ir,jsx as Yn}from"react/jsx-runtime";var Qn="k-input-loading-icon",kr=[n.disabled,n.loading],Z=e=>{let{disabled:t,loading:o}=e;return t||!o?Yn(Ir,{}):Yn("span",{className:s(e.className,Qn,"k-icon k-i-loading")})};Z.states=kr;Z.className=Qn;import{Fragment as Ar,jsx as Zn}from"react/jsx-runtime";var jn="k-input-validation-icon",Cr=[n.valid,n.invalid,n.disabled,n.loading],Tr={},J=e=>{let{valid:t,invalid:o,disabled:r,loading:i}=e,p=o?"warning-circle":"check-circle";return r||i||!!!(t||o)?Zn(Ar,{}):Zn(E,{className:s(jn),icon:p})};J.states=Cr;J.options=Tr;J.className=jn;import{Fragment as yr,jsx as es}from"react/jsx-runtime";var gr="k-input-prefix",Or={direction:"horizontal"},ue=e=>{let{direction:t=Or.direction,...o}=e;return e.children?es("span",{...o,className:s(gr,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):es(yr,{})};import{Fragment as Kr,jsx as ts}from"react/jsx-runtime";var Br="k-input-suffix",Rr={direction:"horizontal"},fe=e=>{let{direction:t=Rr.direction,...o}=e;return e.children?ts("span",{...o,className:s(Br,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ts(Kr,{})};import{jsx as kd}from"react/jsx-runtime";import{jsx as Ad}from"react/jsx-runtime";import{jsx as _r}from"react/jsx-runtime";var os="k-input-separator",Pr={direction:"vertical"},Se=e=>{let{direction:t=Pr.direction,...o}=e;return _r("span",{...o,className:s(os,e.className,{[`${os}-${t}`]:t})})};import{jsx as ns,jsxs as zr}from"react/jsx-runtime";var ss="k-color-preview",wr=[],Hr={},Re=e=>{let{color:t,iconName:o,...r}=e;return zr("span",{...r,className:s(e.className,ss,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ns(E,{icon:o,className:"k-color-preview-icon"}),ns("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Re.states=wr;Re.options=Hr;Re.className=ss;var Po="popup",as=Po;import{jsx as rs}from"react/jsx-runtime";var is="k-animation-container",Dr=[],Gr={},ls={positionMode:"absolute"},be=e=>{let{positionMode:t=ls.positionMode,animationStyle:o,offset:r,...i}=e;return rs("div",{...i,style:{...r,...e.style},className:s(e.className,is,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:rs("div",{className:"k-child-animation-container",style:o,children:e.children})})};be.states=Dr;be.options=Gr;be.className=is;be.defaultOptions=ls;be.moduleName=Po;be.folderName=as;var _o="popup",ps=_o;import{jsx as ms}from"react/jsx-runtime";var cs="k-popup",Ur=[],Fr={},ds={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:o=ds.positionMode,animationStyle:r,...i}=e;return ms(be,{positionMode:o,offset:t,animationStyle:r,children:ms("div",{...i,className:s(e.className,cs),children:e.children})})};H.states=Ur;H.options=Fr;H.className=cs;H.defaultOptions=ds;H.moduleName=_o;H.folderName=ps;var wo="action-buttons",us=wo;import{jsx as Vr}from"react/jsx-runtime";var no="k-actions",$r=[],Xr={},Ho={alignment:"start",orientation:"horizontal"},Ne=e=>{let{alignment:t=Ho.alignment,orientation:o=Ho.orientation,...r}=e;return Vr("div",{...r,className:s(no,{[`${no}-${t}`]:t,[`${no}-${o}`]:o},e.className),children:e.children})};Ne.states=$r;Ne.options=Xr;Ne.className=no;Ne.defaultOptions=Ho;Ne.moduleName=wo;Ne.folderName=us;import{jsx as qr}from"react/jsx-runtime";var Jr="k-actionsheet-footer",fs={alignment:"stretched",orientation:"horizontal"},Kt=e=>{let{alignment:t=fs.alignment,orientation:o=fs.orientation,template:r,as:i=r?"div":Ne,...p}=e;return qr(i,{...p,...!r&&{alignment:t,orientation:o},className:s(e.className,Jr),children:e.children})};var zo="searchbox",bs=zo;import{jsx as Pt,jsxs as Qr}from"react/jsx-runtime";var Ns="k-searchbox",Wr=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],Yr={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},Do={showIcon:!0,icon:"search",size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode},le=e=>{let{value:t,placeholder:o,size:r,rounded:i,fillMode:p,hover:l,focus:u,valid:f,invalid:N,required:x,loading:S,disabled:m,showIcon:h=Do.showIcon,icon:M=Do.icon,...v}=e;return Qr(y,{...v,size:r,rounded:i,fillMode:p,hover:l,focus:u,valid:f,invalid:N,required:x,loading:S,disabled:m,className:s(e.className,Ns),children:[h&&Pt(E,{className:"k-input-icon",icon:M}),Pt(ie,{placeholder:o,value:t}),Pt(Z,{...e}),Pt(J,{...e}),Pt(re,{...e})]})};le.states=Wr;le.options=Yr;le.className=Ns;le.defaultOptions=Do;le.moduleName=zo;le.folderName=bs;import{jsx as Pu}from"react/jsx-runtime";var Go="textbox",Ls=Go;import{Fragment as xs,jsx as Ke,jsxs as Uo}from"react/jsx-runtime";var Ms="k-textbox",Zr=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],jr={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},Ve={showClearButton:!0,showValidationIcon:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},Le=e=>{let{size:t=Ve.size,rounded:o=Ve.rounded,fillMode:r=Ve.fillMode,separators:i=Ve.separators,showClearButton:p=Ve.showClearButton,showValidationIcon:l=Ve.showValidationIcon,prefix:u,suffix:f,type:N,value:x,placeholder:S,hover:m,focus:h,valid:M,invalid:v,required:A,loading:C,disabled:B,readonly:U,...ye}=e;return Uo(y,{...ye,size:t,rounded:o,fillMode:r,hover:m,focus:h,valid:M,invalid:v,required:A,loading:C,disabled:B,readonly:U,className:s(e.className,Ms),children:[u&&Uo(xs,{children:[Ke(ue,{children:u}),i&&Ke(Se,{})]}),Ke(ie,{placeholder:S,value:x,type:N}),l&&Ke(J,{valid:M,invalid:v,loading:C,disabled:B}),Ke(Z,{loading:C,disabled:B}),p&&Ke(re,{loading:C,disabled:B,readonly:U,value:x}),f&&Uo(xs,{children:[i&&Ke(Se,{}),Ke(fe,{children:f})]})]})};Le.states=Zr;Le.options=jr;Le.className=Ms;Le.defaultOptions=Ve;Le.moduleName=Go;Le.folderName=Ls;import{jsx as qu}from"react/jsx-runtime";import{Fragment as ef,jsx as ju}from"react/jsx-runtime";import{Fragment as lf,jsx as rf}from"react/jsx-runtime";import{jsx as Pe,jsxs as Fo}from"react/jsx-runtime";var Ss="k-actionsheet-titlebar",ei={},j=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:i,filter:p,input:l,inputValue:u,inputPlaceholder:f,adaptive:N,children:x,...S}=e;return Fo("div",{...S,className:s(e.className,Ss),children:[Fo("div",{className:"k-actionsheet-titlebar-group",children:[r&&Pe("div",{className:"k-actionsheet-actions",children:r}),!x&&Fo("div",{className:"k-actionsheet-title",children:[t&&Pe("div",{className:"k-text-center",children:t}),o&&Pe("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&Pe("div",{className:"k-actionsheet-title",children:x}),i&&Pe("div",{className:"k-actionsheet-actions",children:i})]}),(l||p)&&Pe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Pe(Le,{value:u,placeholder:f,size:N?"large":"medium"}):Pe(le,{placeholder:"Filter",size:N?"large":"medium"})})]})};j.className=Ss;j.defaultOptions=ei;import{jsx as $o,jsxs as si}from"react/jsx-runtime";var Xo="k-actionsheet-view",ti=[],oi={},ni={},rt=e=>{let{adaptive:t,animated:o,children:r,header:i,footer:p,...l}=e,u=i?.type===j&&$o(j,{adaptive:t,...i?.props}),f=p?.type===Kt&&$o(Kt,{...p?.props});return si("div",{...l,className:s(e.className,Xo,{[`${Xo}-animated`]:o}),children:[u,$o("div",{className:"k-actionsheet-content",children:r}),f]})};rt.states=ti;rt.options=oi;rt.className=Xo;rt.defaultOptions=ni;var _t="action-sheet",so=_t;import{jsx as ao,jsxs as ii}from"react/jsx-runtime";var vs="k-actionsheet",ai=[],ri={},wt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},q=e=>{let{side:t=wt.side,fullscreen:o=wt.fullscreen,adaptive:r=wt.adaptive,overlay:i=wt.overlay,template:p,children:l,header:u,footer:f,...N}=e;return ii("div",{className:"k-actionsheet-container",children:[i&&ao("div",{className:"k-overlay"}),ao(be,{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:ao("div",{...N,className:s(e.className,vs,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:p||ao(rt,{header:u,footer:f,adaptive:r,...e,children:l})})})]})};q.states=ai;q.options=ri;q.className=vs;q.defaultOptions=wt;q.moduleName=_t;q.folderName=so;import{jsx as ci}from"react/jsx-runtime";var Es="k-actionsheet-container",li=[],pi={},mi={},it=e=>{let{children:t,...o}=e;return ci("div",{...o,className:Es,children:t})};it.states=li;it.options=pi;it.className=Es;it.defaultOptions=mi;it.moduleName=_t;it.folderName=so;import{jsx as wf}from"react/jsx-runtime";import{Fragment as ui,jsx as Ht,jsxs as Vo}from"react/jsx-runtime";var Jo="k-actionsheet-item",di=[n.hover,n.focus,n.selected,n.disabled],qo=e=>{let{iconName:t,text:o,description:r,hover:i,focus:p,selected:l,disabled:u,...f}=e;return Vo("span",{...f,className:s(e.className,Jo,T(Jo,{hover:i,focus:p,selected:l,disabled:u})),children:[!e.children&&Ht(ui,{children:Vo("span",{className:"k-actionsheet-action",children:[t&&Ht("span",{className:"k-icon-wrap",children:Ht(E,{className:"k-actionsheet-item-icon",icon:t})}),Vo("span",{className:"k-actionsheet-item-text",children:[o&&Ht("span",{className:"k-actionsheet-item-title",children:o}),r&&Ht("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};qo.states=di;qo.className=Jo;import{jsx as Vf,jsxs as Jf}from"react/jsx-runtime";import{jsx as Qf}from"react/jsx-runtime";import{jsx as tb}from"react/jsx-runtime";import{jsx as ab}from"react/jsx-runtime";import{jsx as Is,jsxs as xi}from"react/jsx-runtime";var Cs="k-spin-button",Ni=[],Li={size:[a.small,a.medium,a.large],fillMode:[c.solid,c.flat,c.outline,c.clear,c.link]},Wo={size:a.medium,fillMode:c.solid},_e=e=>{let{size:t=Wo.size,fillMode:o=Wo.fillMode,...r}=e;return xi("span",{...r,className:s(Cs,e.className),children:[Is(L,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Is(L,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};_e.states=Ni;_e.options=Li;_e.className=Cs;_e.defaultOptions=Wo;_e.moduleName=null;_e.folderName=null;var Ts="numeric-textbox",As="numerictextbox";import{Fragment as gs,jsx as ve,jsxs as Yo}from"react/jsx-runtime";var Os="k-numerictextbox",Mi=[n.hover,n.focus,n.valid,n.invalid,n.loading,n.required,n.disabled,n.readonly],hi={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},Je={showSpinButton:!0,showClearButton:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},P=e=>{let{size:t=Je.size,rounded:o=Je.rounded,fillMode:r=Je.fillMode,separators:i=Je.separators,showClearButton:p=Je.showClearButton,showSpinButton:l=Je.showSpinButton,prefix:u,suffix:f,value:N,placeholder:x,hover:S,focus:m,valid:h,invalid:M,required:v,loading:A,disabled:C,readonly:B,...U}=e;return Yo(y,{...U,size:t,rounded:o,fillMode:r,hover:S,focus:m,valid:h,invalid:M,required:v,loading:A,disabled:C,readonly:B,className:s(e.className,Os),children:[u&&Yo(gs,{children:[ve(ue,{children:u}),i&&ve(Se,{})]}),ve(ie,{placeholder:x,value:N}),ve(J,{valid:h,invalid:M,loading:A,disabled:C}),ve(Z,{loading:A,disabled:C}),p&&ve(re,{loading:A,disabled:C,readonly:B,value:N}),f&&Yo(gs,{children:[i&&ve(Se,{}),ve(fe,{children:f})]}),l&&ve(_e,{className:"k-input-spinner",size:t,fillMode:r})]})};P.states=Mi;P.options=hi;P.className=Os;P.defaultOptions=Je;P.moduleName=Ts;P.folderName=As;import{jsx as _b}from"react/jsx-runtime";import{jsx as vi}from"react/jsx-runtime";var Si="k-no-data",zt=e=>vi("span",{className:s(Si,e.className),children:e.children});var Ee="list",we=Ee;import{jsx as lt,jsxs as Bs}from"react/jsx-runtime";var Qo="k-list",Ei=[],ki={size:[a.small,a.medium,a.large]},Rs={size:a.medium},R=e=>{let{size:t=Rs.size,virtualization:o,children:r,optionLabel:i,customValue:p,screenReaders:l,...u}=e,f,N,x,S,m=[];return r?r.map((h,M)=>{h.type===D?(h.props.root===!0?(f=h.props.label,h.props.children.map((v,A)=>{m.push(lt(I,{...v.props},`optChild-${A}-${new Date().getTime()}`))})):h.props.children.forEach((v,A)=>{let C="";A===0&&(C=h.props.label),m.push(lt(I,{className:A===0?"k-first":"",...v.props,groupLabel:C},`groupLabel-${A}-${new Date().getTime()}`))}),N=lt(D,{label:f,virtualization:o,children:m})):h.type===I&&(m.push(lt(I,{...h.props},`${h.type}-${M}`)),x=lt(pt,{virtualization:o,children:m}),l&&(S=Bs(zt,{className:"k-sr-only",children:[m.length," items found."]})))}):S=lt(zt,{children:"No data found."}),Bs("div",{...u,className:s(e.className,Qo,k(Qo,{size:t}),{"k-virtual-list":o}),children:[i,p,N,x,S]})};R.states=Ei;R.options=ki;R.className=Qo;R.defaultOptions=Rs;R.moduleName=Ee;R.folderName=we;import{jsx as Ai}from"react/jsx-runtime";var Ks="k-list-container",Ii=[],Ci={},Ti={},mt=e=>{let{...t}=e;return Ai("div",{...t,className:s(e.className,Ks),children:e.children})};mt.states=Ii;mt.options=Ci;mt.className=Ks;mt.defaultOptions=Ti;mt.moduleName=Ee;mt.folderName=we;import{jsx as qe,jsxs as yi}from"react/jsx-runtime";var Zo="k-list",gi=[],Oi={size:[a.small,a.medium,a.large]},Ps={size:a.medium},ke=e=>{let{size:t=Ps.size,virtualization:o,children:r,...i}=e,p,l,u,f=[];return r?r.map((N,x)=>{N.type===D?(N.props.root===!0?(p=N.props.label,N.props.children.map((S,m)=>{f.push(qe(I,{...S.props},`optChild-${m}-${new Date().getTime()}`))})):(f.push(qe(_s,{...N.props,children:N.props.label},`listChild-${x}`)),N.props.children.map((S,m)=>{f.push(qe(I,{...S.props},`fwOptChild-${m}-${new Date().getTime()}`))})),l=qe(D,{label:p,virtualization:o,children:f})):N.type===I&&(f.push(qe(I,{...N.props},`${N.type}-${x}`)),u=qe(pt,{virtualization:o,children:f}))}):u=qe(zt,{children:"No data found."}),yi("div",{...i,className:s(e.className,Zo,k(Zo,{size:t}),{"k-virtual-list":o}),children:[l,u]})};ke.states=gi;ke.options=Oi;ke.className=Zo;ke.defaultOptions=Ps;ke.moduleName=Ee;ke.folderName=we;var We="checkbox",ct=We;import{jsx as ws}from"react/jsx-runtime";var ro="k-checkbox",Bi=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],Ri={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full]},jo={size:a.medium,rounded:b.medium},xe=e=>{let{id:t,checked:o,indeterminate:r,hover:i,focus:p,disabled:l,invalid:u,valid:f,required:N,size:x=jo.size,rounded:S=jo.rounded,...m}=e;return ws("span",{className:"k-checkbox-wrap",children:ws("input",{...m,id:t,type:"checkbox",defaultChecked:o,required:N,className:s(e.className,ro,k(ro,{size:x,rounded:S}),T(ro,{hover:i,focus:p,disabled:l,invalid:u,valid:f,indeterminate:r,checked:o}))})})};xe.states=Bi;xe.options=Ri;xe.className=ro;xe.defaultOptions=jo;xe.moduleName=We;xe.folderName=ct;import{jsx as _i}from"react/jsx-runtime";var Hs="k-checkbox-list",Ki=[],Pi={},zs={layout:"vertical"},He=e=>{let{layout:t=zs.layout,...o}=e;return _i("ul",{...o,className:s(e.className,Hs,{[`k-list-${t}`]:t}),children:e.children})};He.states=Ki;He.options=Pi;He.className=Hs;He.defaultOptions=zs;He.moduleName=We;He.folderName=ct;import{jsx as Di}from"react/jsx-runtime";var Ds="k-checkbox-list-item",wi=[],Hi={},zi={},ze=e=>{let{...t}=e;return Di("li",{...t,className:s(e.className,Ds),children:e.children})};ze.states=wi;ze.options=Hi;ze.className=Ds;ze.defaultOptions=zi;ze.moduleName=We;ze.folderName=ct;import{Fragment as vN,jsx as SN,jsxs as EN}from"react/jsx-runtime";import{Fragment as AN,jsx as TN,jsxs as gN}from"react/jsx-runtime";import{Fragment as KN,jsx as RN,jsxs as PN}from"react/jsx-runtime";import{Fragment as DN,jsx as zN,jsxs as GN}from"react/jsx-runtime";import{jsx as XN}from"react/jsx-runtime";import{jsx as WN}from"react/jsx-runtime";import{jsx as io,jsxs as $i}from"react/jsx-runtime";var tn="k-list-item",Gi=[n.hover,n.focus,n.selected,n.disabled],Ui={},Fi={},I=e=>{let{text:t,groupLabel:o,group:r,showIcon:i,iconName:p,showCheckbox:l,checked:u,hover:f,focus:N,selected:x,disabled:S,...m}=e,h=t||e.children;return $i("li",{...m,className:s(e.className,r?"k-list-group-item":tn,T(tn,{hover:f,focus:N,disabled:S,selected:x})),children:[l&&io(xe,{checked:u}),i&&io(E,{icon:p}),io("span",{className:"k-list-item-text",children:h}),o&&o!==""&&io("div",{className:"k-list-item-group-label",children:o})]})};I.states=Gi;I.options=Ui;I.className=tn;I.defaultOptions=Fi;I.moduleName=Ee;I.folderName=we;import{jsx as on,jsxs as Vi}from"react/jsx-runtime";var Xi="k-list-content",pt=e=>{let{virtualization:t,...o}=e;return Vi("div",{...o,className:s(Xi,e.className),children:[on("ul",{className:s("k-list-ul"),children:e.children}),t&&on("div",{className:"k-height-container",children:on("div",{})})]})};import{jsx as Gs}from"react/jsx-runtime";var Ji="k-list-group-sticky-header",Us=e=>Gs("div",{className:s(Ji,e.className),children:Gs("div",{className:"k-list-header-text",children:e.children})});import{Fragment as qi,jsx as Fs,jsxs as Wi}from"react/jsx-runtime";var D=e=>{let{virtualization:t,label:o}=e;return Wi(qi,{children:[o&&Fs(Us,{children:o}),e.children&&Fs(pt,{virtualization:t,children:e.children})]})};import{jsx as $s}from"react/jsx-runtime";var Yi="k-list-group-item",_s=e=>$s("li",{className:s(Yi,e.className),children:$s("span",{className:"k-list-item-text",children:e.children})});import{jsx as el}from"react/jsx-runtime";var nn="k-list-optionlabel",Qi=[n.hover,n.focus,n.selected,n.disabled],Zi={},ji={},lo=e=>{let{text:t,hover:o,focus:r,selected:i,disabled:p,...l}=e;return el("div",{...l,className:s(nn,T(nn,{hover:o,focus:r,selected:i,disabled:p})),children:t})};lo.states=Qi;lo.options=Zi;lo.className=nn;lo.defaultOptions=ji;import{jsx as sl}from"react/jsx-runtime";var sn="k-list-custom-value",tl=[n.hover,n.focus,n.selected,n.disabled],ol={},nl={},De=e=>{let{text:t,hover:o,focus:r,selected:i,disabled:p,...l}=e;return sl("div",{...l,className:s(sn,T(sn,{hover:o,focus:r,selected:i,disabled:p})),children:t})};De.states=tl;De.options=ol;De.className=sn;De.defaultOptions=nl;import{jsx as RL}from"react/jsx-runtime";import{jsx as wL}from"react/jsx-runtime";import{jsx as GL,jsxs as UL}from"react/jsx-runtime";import{jsx as VL,jsxs as JL}from"react/jsx-runtime";import{jsx as QL}from"react/jsx-runtime";import{jsx as tx,jsxs as ox}from"react/jsx-runtime";import{jsx as rx,jsxs as ix}from"react/jsx-runtime";var Xs="dropdown-list",Vs="dropdownlist";import{Fragment as il,jsx as $,jsxs as an}from"react/jsx-runtime";var Js="k-dropdownlist",al=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],rl={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},dt={showValue:!0,arrowIconName:"caret-alt-down",size:a.medium,rounded:b.medium,fillMode:c.solid},Me=e=>{let{size:t=dt.size,rounded:o=dt.rounded,fillMode:r=dt.fillMode,arrowIconName:i=dt.arrowIconName,showValue:p=dt.showValue,valueIconName:l,prefix:u,suffix:f,value:N,placeholder:x,hover:S,focus:m,valid:h,invalid:M,required:v,loading:A,disabled:C,readonly:B,popup:U,opened:ye,adaptive:kt,adaptiveSettings:It,adaptiveTitle:No,adaptiveSubtitle:Lo,adaptiveFilter:ya,...Ba}=e;return an(il,{children:[an(V,{...Ba,size:t,rounded:o,fillMode:r,hover:S,focus:m,valid:h,invalid:M,required:v,loading:A,disabled:C,readonly:B,className:s(e.className,Js,{"k-icon-picker":!p&&l}),children:[$(ue,{children:u}),$(Xe,{placeholder:x,value:N,showValue:p,valueIconName:l}),$(J,{valid:h,invalid:M,loading:A,disabled:C}),$(Z,{loading:A,disabled:C}),$(fe,{children:f}),$(L,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),ye&&U&&$(H,{className:"k-list-container k-dropdownlist-popup",children:U}),kt&&$(q,{adaptive:!0,...It,header:$(j,{actionsEnd:$(L,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ya,inputValue:N,inputPlaceholder:x,title:No,subtitle:Lo}),children:$("div",{className:"k-list-container",children:an(R,{size:"large",children:[$(I,{text:"List item"}),$(I,{text:"List item"}),$(I,{text:"List item"})]})})})]})};Me.states=al;Me.options=rl;Me.className=Js;Me.defaultOptions=dt;Me.moduleName=Xs;Me.folderName=Vs;import{jsx as Dx}from"react/jsx-runtime";import{jsx as Xx,jsxs as Vx}from"react/jsx-runtime";import{Fragment as eM,jsx as Zx,jsxs as jx}from"react/jsx-runtime";import{jsx as sM}from"react/jsx-runtime";import{jsx as pM,jsxs as mM}from"react/jsx-runtime";import{jsx as bM,jsxs as NM}from"react/jsx-runtime";import{Fragment as kM,jsx as vM,jsxs as EM}from"react/jsx-runtime";import{Fragment as BM,jsx as OM,jsxs as yM}from"react/jsx-runtime";import{Fragment as qM,jsx as JM}from"react/jsx-runtime";import{Fragment as th,jsx as eh}from"react/jsx-runtime";import{Fragment as Dt,jsx as g,jsxs as _}from"react/jsx-runtime";var qs="k-colorgradient-inputs",ll=[],pl={size:[a.small,a.medium,a.large]},Ws={mode:"rgba",size:a.medium},ut=e=>{let{mode:t=Ws.mode,size:o,...r}=e;return _("div",{...r,className:s(qs,"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"&&_(Dt,{children:[_("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),g("label",{className:"k-colorgradient-input-label",children:"R"})]}),_("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),g("label",{className:"k-colorgradient-input-label",children:"G"})]}),_("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),g("label",{className:"k-colorgradient-input-label",children:"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"&&_(Dt,{children:[_("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"R"})]}),_("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"G"})]}),_("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&_(Dt,{children:[_("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"H"})]}),_("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"S"})]}),_("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"V"})]}),_("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"&&_(Dt,{children:[_("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"H"})]}),_("div",{className:"k-vstack",children:[g(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),g("label",{className:"k-colorgradient-input-label",children:"S"})]}),_("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(Dt,{children:_("div",{className:"k-vstack k-flex-1",children:[g(Le,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),g("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};ut.states=ll;ut.options=pl;ut.className=qs;ut.defaultOptions=Ws;import{jsx as Qe,jsxs as Ze}from"react/jsx-runtime";var Ys="k-colorgradient-color-contrast",ml=[],cl={},dl={},ft=()=>Ze("div",{className:s(Ys,"k-vbox"),children:[Ze("div",{className:"k-contrast-ratio",children:[Qe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Ze("span",{className:"k-contrast-validation !k-text-success",children:[Qe(E,{icon:"check"}),Qe(E,{icon:"check"})]})]}),Ze("div",{children:[Qe("span",{children:"AA: 4.5"}),Ze("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Qe(E,{icon:"check"})]})]}),Ze("div",{children:[Qe("span",{children:"AAA: 7.0"}),Ze("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Qe(E,{icon:"x"})]})]})]});ft.states=ml;ft.options=cl;ft.className=Ys;ft.defaultOptions=dl;var Qs="color-gradient",Zs="colorgradient";import{jsx as ee,jsxs as Gt}from"react/jsx-runtime";var po="k-colorgradient",ul=[n.hover,n.focus,n.readonly,n.disabled],fl={size:[a.small,a.medium,a.large]},pe={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"},he=e=>{let{size:t=pe.size,mode:o=pe.mode,readonly:r=pe.readonly,disabled:i=pe.disabled,gradientStyle:p=pe.gradientStyle,dragHandleStyle:l=pe.dragHandleStyle,alphaStyle:u=pe.alphaStyle,alphaStyleHorizontal:f=pe.alphaStyleHorizontal,contrast:N=pe.contrast,dir:x,hover:S,focus:m,hoverHandle:h,focusHandle:M,canvasOrientation:v=pe.canvasOrientation,...A}=e;return Gt("div",{...A,className:s(e.className,po,k(po,{size:t}),T(po,{hover:S,focus:m,readonly:r,disabled:i})),dir:x,children:[!v||v==="horizontal"&&Gt("div",{className:"k-colorgradient-canvas k-hstack",children:[ee("div",{className:"k-hsv-rectangle",style:p,children:ee("div",{className:"k-hsv-gradient",children:ee("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":h,"k-focus":M}),style:l})})}),Gt("div",{className:"k-hsv-controls k-hstack",children:[ee(Ao,{className:"k-hue-slider",hover:h,focus:M}),o!=="rgb"&&o!=="hsv"&&ee(Ao,{className:"k-alpha-slider",hover:h,focus:M,trackStyle:u})]})]}),v==="vertical"&&Gt("div",{className:"k-colorgradient-canvas k-vstack",children:[ee("div",{className:"k-hsv-rectangle",style:p,children:ee("div",{className:"k-hsv-gradient",children:ee("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":h,"k-focus":M}),style:l})})}),Gt("div",{className:"k-hsv-controls k-vstack",children:[ee(To,{className:"k-hue-slider",hover:h,focus:M}),o!=="rgb"&&o!=="hsv"&&ee(To,{className:"k-alpha-slider",hover:h,focus:M,trackStyle:f})]})]}),ee(ut,{mode:e.mode,size:t}),N&&ee(ft,{})]})};he.states=ul;he.options=fl;he.className=po;he.defaultOptions=pe;he.moduleName=Qs;he.folderName=Zs;import{jsx as Ah}from"react/jsx-runtime";import{jsx as Bh}from"react/jsx-runtime";import{jsx as bl}from"react/jsx-runtime";var js=e=>bl("tr",{children:e.children});import{jsx as xl}from"react/jsx-runtime";var rn="k-colorpalette-tile",Nl=[n.hover,n.focus,n.selected],Ll={},Ut=e=>{let{color:t,tileSize:o,hover:r,focus:i,selected:p,...l}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return xl("td",{...l,className:s(e.className,rn,T(rn,{hover:r,focus:i,selected:p})),style:u})};Ut.states=Nl;Ut.options=Ll;Ut.className=rn;var ea="color-palette",ta="colorpalette";import{jsx as Ft}from"react/jsx-runtime";var mo="k-colorpalette",Ml=[n.disabled],hl={size:[a.small,a.medium,a.large]},ln={columns:10,size:a.medium},Ge=e=>{let{size:t=ln.size,palette:o,columns:r=ln.columns,tileSize:i,disabled:p,...l}=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(Ft(Ut,{color:M,tileSize:i},v))});let h=Ft(js,{children:m},S);u.push(h)})}return Ft("div",{...l,className:s(e.className,mo,T(mo,{disabled:p}),k(mo,{size:t})),children:Ft("table",{className:"k-colorpalette-table",children:Ft("tbody",{children:u.length>0?u:e.children})})})};Ge.states=Ml;Ge.options=hl;Ge.className=mo;Ge.defaultOptions=ln;Ge.moduleName=ea;Ge.folderName=ta;var pn={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 nS}from"react/jsx-runtime";var oa="color-editor",na="coloreditor";import{jsx as te,jsxs as bt}from"react/jsx-runtime";var co="k-coloreditor",Sl=[n.focus],vl={size:[a.small,a.medium,a.large]},Nt={size:a.medium,view:"gradient",palette:pn.office,actionButtons:!0,canvasOrientation:"horizontal"},oe=e=>{let{size:t=Nt.size,view:o=Nt.view,palette:r=Nt.palette,color:i,currentColor:p,focus:l,focusView:u,dir:f,group:N,actionButtons:x=Nt.actionButtons,canvasOrientation:S=Nt.canvasOrientation,...m}=e;return bt("div",{...m,className:s(e.className,"k-flatcolorpicker",co,k(co,{size:t}),T(co,{focus:l})),dir:f,children:[bt("div",{className:"k-coloreditor-header k-hstack",children:[te("div",{className:"k-coloreditor-header-actions k-hstack",children:N&&bt(K,{fillMode:"flat",children:[te(L,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),te(L,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),te("div",{className:"k-spacer"}),bt("div",{className:"k-coloreditor-header-actions k-hstack",children:[te(L,{fillMode:"flat",icon:"droplet-slash",size:t}),bt("div",{className:"k-coloreditor-preview k-vstack",children:[te(Re,{className:"k-coloreditor-preview-color",color:i}),te(Re,{className:"k-coloreditor-current-color",color:p})]})]})]}),te("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?te(he,{focus:u,size:t,canvasOrientation:S}):te(Ge,{palette:r,size:t})}),x&&bt(Ne,{className:"k-coloreditor-footer",alignment:"start",children:[te(L,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),te(L,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};oe.states=Sl;oe.options=vl;oe.className=co;oe.defaultOptions=Nt;oe.moduleName=oa;oe.folderName=na;import{jsx as kS}from"react/jsx-runtime";import{jsx as AS}from"react/jsx-runtime";import{jsx as BS}from"react/jsx-runtime";import{jsx as _S}from"react/jsx-runtime";var sa="color-picker",aa="colorpicker";import{Fragment as Il,jsx as ne,jsxs as cn}from"react/jsx-runtime";var ra="k-colorpicker",El=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled],kl={size:[a.small,a.medium,a.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},$t={arrowIconName:"caret-alt-down",size:V.defaultOptions.size,rounded:V.defaultOptions.rounded,fillMode:V.defaultOptions.fillMode},me=e=>{let{size:t=$t.size,rounded:o=$t.rounded,fillMode:r=$t.fillMode,arrowIconName:i=$t.arrowIconName,prefix:p,suffix:l,value:u,placeholder:f,hover:N,focus:x,valid:S,invalid:m,required:h,disabled:M,va