@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 68.8 kB
JavaScript
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var E=(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:a,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":a,"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((g,I)=>(I.startsWith("k-")?g[I]=v[I]:g[`k-${I}`]=v[I],g),{}))};function An(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={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 Ar,jsx as On}from"react/jsx-runtime";var bo="k-font-icon",Ir=[],Tr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},gr={},Et=e=>{let{size:t,themeColor:o,icon:a,rotate:l,flip:p,...i}=e;return a?On("span",{...i,className:s(e.className,bo,E(bo,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${l}`]:l,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):On(Ar,{})};Et.states=Ir;Et.options=Tr;Et.className=bo;Et.defaultOptions=gr;var yn=Et;import{Fragment as Br,jsx as Vt}from"react/jsx-runtime";var No="k-svg-icon",Or=[],yr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},Bn={viewBox:"0 0 24 24"},Ct=e=>{let{size:t,themeColor:o,rotate:a,flip:l,viewBox:p=Bn.viewBox,icon:i,...u}=e;if(!i)return Vt(Br,{});i==="none"&&{...u,className:s(e.className,No,"k-none")};let f=typeof i=="object"&&i.name&&i.name;return Vt("span",{...u,className:s(e.className,No,E("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),children:Vt("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})})};Ct.states=Or;Ct.options=yr;Ct.className=No;Ct.defaultOptions=Bn;var Lo=Ct;import*as xo from"@progress/kendo-svg-icons";var Rn="icon",Kn="icons";import{Fragment as Pn,jsx as It}from"react/jsx-runtime";var Jt="k-icon",Rr=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Kr=[],Pr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},Mo={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{size:t,themeColor:o,icon:a,type:l=Mo.type,rotate:p,flip:i,viewBox:u=Mo.viewBox,...f}=e;if(!a)return It(Pn,{});if(l==="svg"){if(a==="none")return It(Lo,{...f,className:s(e.className,Jt),icon:a,size:t});let N=xo[a]?a:Rr(`${a}-icon`);return xo[N]?It(Lo,{...f,className:s(e.className,Jt),icon:xo[N],size:t,themeColor:o,rotate:p,flip:i,viewBox:u}):It(Pn,{})}return It(yn,{...f,className:s(e.className,Jt),icon:a,size:t,themeColor:o,rotate:p,flip:i})};k.states=Kr;k.options=Pr;k.defaultOptions=Mo;k.className=Jt;k.moduleName=Rn;k.folderName=Kn;var ho="button",_n=ho;import{Fragment as Hr,jsx as Tt,jsxs as wn}from"react/jsx-runtime";var gt="k-button",_r=["icon-button"],wr=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],zr={size:[r.small,r.medium,r.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:r.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:a=$e.fillMode,themeColor:l=$e.themeColor,showArrow:p=$e.showArrow,arrowIconName:i=$e.arrowIconName,variant:u,hover:f,focus:N,active:x,selected:S,disabled:m,icon:h,text:M,iconClassName:v,...g}=e,I=h!==void 0,B=e.children!==void 0;return wn("button",{...g,className:s(e.className,gt,An(gt,u),E(gt,{size:t,rounded:o,fillMode:a,themeColor:l}),T(gt,{hover:f,focus:N,active:x,disabled:m,selected:S}),{"k-icon-button":!M&&!B&&I}),children:[h&&Tt(k,{className:s(v,"k-button-icon"),icon:h}),M?wn(Hr,{children:[M&&Tt("span",{className:"k-button-text",children:M}),e.children]}):e.children&&Tt("span",{className:"k-button-text",children:e.children}),p&&Tt("span",{className:"k-menu-button-arrow k-button-arrow",children:Tt(k,{icon:i})})]})};L.states=wr;L.options=zr;L.variants=_r;L.className=gt;L.defaultOptions=$e;L.moduleName=ho;L.folderName=_n;import{jsx as Dr}from"react/jsx-runtime";var qt=e=>Dr(L,{icon:"folder",...e,children:void 0});import{jsx as Gr}from"react/jsx-runtime";var So=e=>Gr(L,{icon:"folder",children:"Button",...e});import{jsx as qp}from"react/jsx-runtime";var vo="button",zn=vo;import{jsx as $r}from"react/jsx-runtime";var At="k-button-group",Ur=[n.disabled],Fr={fillMode:[c.solid,c.flat,c.outline,c.clear,c.link]},Hn={fillMode:c.solid},K=e=>{let{fillMode:t=Hn.fillMode,disabled:o,stretched:a,...l}=e;return $r("div",{...l,className:s(e.className,At,E(At,{fillMode:t}),T(At,{disabled:o}),{[`${At}-stretched`]:a}),children:e.children})};K.states=Ur;K.options=Fr;K.className=At;K.defaultOptions=Hn;K.moduleName=vo;K.folderName=zn;import{Fragment as mm,jsx as pm,jsxs as cm}from"react/jsx-runtime";import{Fragment as Lm,jsx as Nm,jsxs as xm}from"react/jsx-runtime";import{Fragment as Em,jsx as km,jsxs as Cm}from"react/jsx-runtime";import{Fragment as ym,jsx as Om,jsxs as Bm}from"react/jsx-runtime";var Ot="input",Wt=Ot;import{jsx as Jr}from"react/jsx-runtime";var Yt="k-input",Xr=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Vr={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},Qt={size:r.medium,rounded:r.medium,fillMode:c.solid},y=e=>{let{hover:t,focus:o,disabled:a,invalid:l,valid:p,loading:i,readonly:u,size:f=Qt.size,rounded:N=Qt.rounded,fillMode:x=Qt.fillMode,...S}=e;return Jr("span",{...S,className:s(e.className,Yt,E(Yt,{size:f,rounded:N,fillMode:x}),T(Yt,{hover:t,focus:o,disabled:a,invalid:l,valid:p,loading:i,readonly:u}))})};y.states=Xr;y.options=Vr;y.className=Yt;y.defaultOptions=Qt;y.moduleName=Ot;y.folderName=Wt;import{jsx as Yr}from"react/jsx-runtime";var Zt="k-picker",qr=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Wr={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},jt={size:r.medium,rounded:b.medium,fillMode:c.solid},V=e=>{let{hover:t,focus:o,disabled:a,invalid:l,valid:p,loading:i,readonly:u,size:f=jt.size,rounded:N=jt.rounded,fillMode:x=jt.fillMode,...S}=e;return Yr("span",{...S,className:s(e.className,Zt,E(Zt,{size:f,rounded:N,fillMode:x}),T(Zt,{hover:t,focus:o,disabled:a,invalid:l,valid:p,loading:i,readonly:u})),children:e.children})};V.states=qr;V.options=Wr;V.className=Zt;V.defaultOptions=jt;V.moduleName=Ot;V.folderName=Wt;import{Fragment as jr,jsx as ko}from"react/jsx-runtime";var Dn="k-clear-value",Qr=[n.disabled,n.loading,n.readonly],Zr={},ae=e=>{let{disabled:t,loading:o,readonly:a,value:l}=e;return t||a||o||!l?ko(jr,{}):ko("span",{className:s(e.className,Dn),children:ko(k,{icon:"x"})})};ae.states=Qr;ae.options=Zr;ae.className=Dn;import{jsx as oa}from"react/jsx-runtime";var Eo="k-input-inner",ea=[],ta={},eo={type:"text",autocomplete:"off",value:"",placeholder:""},ie=e=>{let{value:t=eo.value,type:o=eo.type,placeholder:a=eo.placeholder,autocomplete:l=eo.autocomplete,...p}=e;return oa("input",{...p,type:o,className:s(e.className,Eo,E(Eo,e)),placeholder:a,autoComplete:l,defaultValue:t})};ie.states=ea;ie.options=ta;ie.className=Eo;import{jsx as Gn,jsxs as ra}from"react/jsx-runtime";var Co="k-input-inner",na=[],sa={},Xe=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:l,valueIconName:p,...i}=e;return ra("span",{...i,className:s(e.className,Co,E(Co,e)),children:[l,!l&&p&&Gn(k,{className:"k-input-value-icon",icon:p}),a&&!t&&o,a&&t&&Gn("span",{className:"k-input-value-text",children:t})]})};Xe.states=na;Xe.options=sa;Xe.className=Co;import{jsx as la}from"react/jsx-runtime";var Io="k-input-inner",aa=[],ia={},Un={value:"",placeholder:""},To=e=>{let{value:t=Un.value,placeholder:o=Un.placeholder,rows:a,...l}=e;return la("textarea",{...l,className:s(e.className,Io,E(Io,e)),placeholder:o,rows:a,defaultValue:t})};To.states=aa;To.options=ia;To.className=Io;import{Fragment as ma,jsx as Fn}from"react/jsx-runtime";var $n="k-input-loading-icon",pa=[n.disabled,n.loading],Q=e=>{let{disabled:t,loading:o}=e;return t||!o?Fn(ma,{}):Fn("span",{className:s(e.className,$n,"k-icon k-i-loading")})};Q.states=pa;Q.className=$n;import{Fragment as ua,jsx as Xn}from"react/jsx-runtime";var Vn="k-input-validation-icon",ca=[n.valid,n.invalid,n.disabled,n.loading],da={},J=e=>{let{valid:t,invalid:o,disabled:a,loading:l}=e,p=o?"warning-circle":"check-circle";return a||l||!!!(t||o)?Xn(ua,{}):Xn(k,{className:s(Vn),icon:p})};J.states=ca;J.options=da;J.className=Vn;import{Fragment as Na,jsx as Jn}from"react/jsx-runtime";var fa="k-input-prefix",ba={direction:"horizontal"},ue=e=>{let{direction:t=ba.direction,...o}=e;return e.children?Jn("span",{...o,className:s(fa,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Jn(Na,{})};import{Fragment as Ma,jsx as qn}from"react/jsx-runtime";var La="k-input-suffix",xa={direction:"horizontal"},fe=e=>{let{direction:t=xa.direction,...o}=e;return e.children?qn("span",{...o,className:s(La,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):qn(Ma,{})};import{jsx as Ec}from"react/jsx-runtime";import{jsx as gc}from"react/jsx-runtime";import{jsx as Sa}from"react/jsx-runtime";var Wn="k-input-separator",ha={direction:"vertical"},Se=e=>{let{direction:t=ha.direction,...o}=e;return Sa("span",{...o,className:s(Wn,e.className,{[`${Wn}-${t}`]:t})})};import{jsx as Yn,jsxs as Ea}from"react/jsx-runtime";var Qn="k-color-preview",va=[],ka={},Be=e=>{let{color:t,iconName:o,...a}=e;return Ea("span",{...a,className:s(e.className,Qn,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Yn(k,{icon:o,className:"k-color-preview-icon"}),Yn("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Be.states=va;Be.options=ka;Be.className=Qn;var go="popup",Zn=go;import{jsx as jn}from"react/jsx-runtime";var es="k-animation-container",Ca=[],Ia={},ts={positionMode:"absolute"},be=e=>{let{positionMode:t=ts.positionMode,animationStyle:o,offset:a,...l}=e;return jn("div",{...l,style:{...a,...e.style},className:s(e.className,es,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:jn("div",{className:"k-child-animation-container",style:o,children:e.children})})};be.states=Ca;be.options=Ia;be.className=es;be.defaultOptions=ts;be.moduleName=go;be.folderName=Zn;var Ao="popup",os=Ao;import{jsx as ns}from"react/jsx-runtime";var ss="k-popup",Ta=[],ga={},rs={positionMode:"absolute"},w=e=>{let{offset:t,positionMode:o=rs.positionMode,animationStyle:a,...l}=e;return ns(be,{positionMode:o,offset:t,animationStyle:a,children:ns("div",{...l,className:s(e.className,ss),children:e.children})})};w.states=Ta;w.options=ga;w.className=ss;w.defaultOptions=rs;w.moduleName=Ao;w.folderName=os;var Oo="action-buttons",as=Oo;import{jsx as ya}from"react/jsx-runtime";var to="k-actions",Aa=[],Oa={},yo={alignment:"start",orientation:"horizontal"},Ne=e=>{let{alignment:t=yo.alignment,orientation:o=yo.orientation,...a}=e;return ya("div",{...a,className:s(to,{[`${to}-${t}`]:t,[`${to}-${o}`]:o},e.className),children:e.children})};Ne.states=Aa;Ne.options=Oa;Ne.className=to;Ne.defaultOptions=yo;Ne.moduleName=Oo;Ne.folderName=as;import{jsx as Ra}from"react/jsx-runtime";var Ba="k-actionsheet-footer",is={alignment:"stretched",orientation:"horizontal"},yt=e=>{let{alignment:t=is.alignment,orientation:o=is.orientation,template:a,as:l=a?"div":Ne,...p}=e;return Ra(l,{...p,...!a&&{alignment:t,orientation:o},className:s(e.className,Ba),children:e.children})};var Bo="searchbox",ls=Bo;import{jsx as Bt,jsxs as _a}from"react/jsx-runtime";var ps="k-searchbox",Ka=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],Pa={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},Ro={showIcon:!0,icon:"search",size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode},le=e=>{let{value:t,placeholder:o,size:a,rounded:l,fillMode:p,hover:i,focus:u,valid:f,invalid:N,required:x,loading:S,disabled:m,showIcon:h=Ro.showIcon,icon:M=Ro.icon,...v}=e;return _a(y,{...v,size:a,rounded:l,fillMode:p,hover:i,focus:u,valid:f,invalid:N,required:x,loading:S,disabled:m,className:s(e.className,ps),children:[h&&Bt(k,{className:"k-input-icon",icon:M}),Bt(ie,{placeholder:o,value:t}),Bt(Q,{...e}),Bt(J,{...e}),Bt(ae,{...e})]})};le.states=Ka;le.options=Pa;le.className=ps;le.defaultOptions=Ro;le.moduleName=Bo;le.folderName=ls;import{jsx as Pd}from"react/jsx-runtime";var Ko="textbox",ms=Ko;import{Fragment as cs,jsx as Re,jsxs as Po}from"react/jsx-runtime";var ds="k-textbox",wa=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],za={size:[r.small,r.medium,r.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:a=Ve.fillMode,separators:l=Ve.separators,showClearButton:p=Ve.showClearButton,showValidationIcon:i=Ve.showValidationIcon,prefix:u,suffix:f,type:N,value:x,placeholder:S,hover:m,focus:h,valid:M,invalid:v,required:g,loading:I,disabled:B,readonly:U,...ye}=e;return Po(y,{...ye,size:t,rounded:o,fillMode:a,hover:m,focus:h,valid:M,invalid:v,required:g,loading:I,disabled:B,readonly:U,className:s(e.className,ds),children:[u&&Po(cs,{children:[Re(ue,{children:u}),l&&Re(Se,{})]}),Re(ie,{placeholder:S,value:x,type:N}),i&&Re(J,{valid:M,invalid:v,loading:I,disabled:B}),Re(Q,{loading:I,disabled:B}),p&&Re(ae,{loading:I,disabled:B,readonly:U,value:x}),f&&Po(cs,{children:[l&&Re(Se,{}),Re(fe,{children:f})]})]})};Le.states=wa;Le.options=za;Le.className=ds;Le.defaultOptions=Ve;Le.moduleName=Ko;Le.folderName=ms;import{jsx as qd}from"react/jsx-runtime";import{Fragment as eu,jsx as jd}from"react/jsx-runtime";import{Fragment as iu,jsx as au}from"react/jsx-runtime";import{jsx as Ke,jsxs as _o}from"react/jsx-runtime";var fs="k-actionsheet-titlebar",Ha={},Z=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:l,filter:p,input:i,inputValue:u,inputPlaceholder:f,adaptive:N,children:x,...S}=e;return _o("div",{...S,className:s(e.className,fs),children:[_o("div",{className:"k-actionsheet-titlebar-group",children:[a&&Ke("div",{className:"k-actionsheet-actions",children:a}),!x&&_o("div",{className:"k-actionsheet-title",children:[t&&Ke("div",{className:"k-text-center",children:t}),o&&Ke("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&Ke("div",{className:"k-actionsheet-title",children:x}),l&&Ke("div",{className:"k-actionsheet-actions",children:l})]}),(i||p)&&Ke("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?Ke(Le,{value:u,placeholder:f,size:N?"large":"medium"}):Ke(le,{placeholder:"Filter",size:N?"large":"medium"})})]})};Z.className=fs;Z.defaultOptions=Ha;import{jsx as wo,jsxs as Fa}from"react/jsx-runtime";var zo="k-actionsheet-view",Da=[],Ga={},Ua={},st=e=>{let{adaptive:t,animated:o,children:a,header:l,footer:p,...i}=e,u=l?.type===Z&&wo(Z,{adaptive:t,...l?.props}),f=p?.type===yt&&wo(yt,{...p?.props});return Fa("div",{...i,className:s(e.className,zo,{[`${zo}-animated`]:o}),children:[u,wo("div",{className:"k-actionsheet-content",children:a}),f]})};st.states=Da;st.options=Ga;st.className=zo;st.defaultOptions=Ua;var Rt="action-sheet",oo=Rt;import{jsx as no,jsxs as Va}from"react/jsx-runtime";var bs="k-actionsheet",$a=[],Xa={},Kt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},q=e=>{let{side:t=Kt.side,fullscreen:o=Kt.fullscreen,adaptive:a=Kt.adaptive,overlay:l=Kt.overlay,template:p,children:i,header:u,footer:f,...N}=e;return Va("div",{className:"k-actionsheet-container",children:[l&&no("div",{className:"k-overlay"}),no(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:no("div",{...N,className:s(e.className,bs,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:p||no(st,{header:u,footer:f,adaptive:a,...e,children:i})})})]})};q.states=$a;q.options=Xa;q.className=bs;q.defaultOptions=Kt;q.moduleName=Rt;q.folderName=oo;import{jsx as Ya}from"react/jsx-runtime";var Ns="k-actionsheet-container",Ja=[],qa={},Wa={},rt=e=>{let{children:t,...o}=e;return Ya("div",{...o,className:Ns,children:t})};rt.states=Ja;rt.options=qa;rt.className=Ns;rt.defaultOptions=Wa;rt.moduleName=Rt;rt.folderName=oo;import{jsx as _u}from"react/jsx-runtime";import{Fragment as Za,jsx as Pt,jsxs as Ho}from"react/jsx-runtime";var Do="k-actionsheet-item",Qa=[n.hover,n.focus,n.selected,n.disabled],Go=e=>{let{iconName:t,text:o,description:a,hover:l,focus:p,selected:i,disabled:u,...f}=e;return Ho("span",{...f,className:s(e.className,Do,T(Do,{hover:l,focus:p,selected:i,disabled:u})),children:[!e.children&&Pt(Za,{children:Ho("span",{className:"k-actionsheet-action",children:[t&&Pt("span",{className:"k-icon-wrap",children:Pt(k,{className:"k-actionsheet-item-icon",icon:t})}),Ho("span",{className:"k-actionsheet-item-text",children:[o&&Pt("span",{className:"k-actionsheet-item-title",children:o}),a&&Pt("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Go.states=Qa;Go.className=Do;import{jsx as Xu,jsxs as Vu}from"react/jsx-runtime";import{jsx as Yu}from"react/jsx-runtime";import{jsx as ef}from"react/jsx-runtime";import{jsx as sf}from"react/jsx-runtime";var Uo="slider",xs=Uo;import{jsx as at,jsxs as Fo}from"react/jsx-runtime";var _t="k-slider",ja=[n.hover,n.focus,n.active,n.disabled,n.readonly],ei={},Pe={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},F=e=>{let{type:t=Pe.type,orientation:o=Pe.orientation,readonly:a=Pe.readonly,disabled:l=Pe.disabled,handlePosition:p=Pe.handlePosition,showButtons:i=Pe.showButtons,showTicks:u=Pe.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"),Fo("div",{...h,className:s(_t,e.className,T(_t,{readonly:a,disabled:l}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:m,children:[i&&at(L,{className:"k-button-decrease",rounded:"full",icon:v}),Fo("div",{className:"k-slider-track-wrap",children:[u&&at("ul",{className:"k-reset k-slider-items",children:e.children}),Fo("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(_t,{hover:f,focus:N,active:x}))}),at("span",{className:s("k-draghandle",`k-draghandle-${p}`,T(_t,{hover:f,focus:N,active:x}))})]})]}),i&&at(L,{className:"k-button-increase",rounded:"full",icon:M})]})};F.states=ja;F.options=ei;F.className=_t;F.defaultOptions=Pe;F.moduleName=Uo;F.folderName=xs;import{jsx as Ms}from"react/jsx-runtime";var hs="k-tick",ti=[],oi={},Ss={label:!1},z=e=>{let{style:t,label:o=Ss.label,orientation:a,large:l,text:p,...i}=e;return Ms("li",{...i,className:s(e.className,hs,{[`k-tick-${a}`]:a,"k-tick-large":l}),style:t,children:o&&Ms("span",{className:"k-label",children:p})})};z.states=ti;z.options=oi;z.className=hs;z.defaultOptions=Ss;import{Fragment as ni,jsx as j,jsxs as si}from"react/jsx-runtime";var vs=e=>j(F,{children:si(ni,{children:[j(z,{className:"k-first",label:!0,large:!0,text:"0"}),j(z,{}),j(z,{}),j(z,{}),j(z,{}),j(z,{label:!0,large:!0,text:"5"}),j(z,{}),j(z,{}),j(z,{}),j(z,{}),j(z,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as Kf,jsx as Rf,jsxs as Pf}from"react/jsx-runtime";import{Fragment as Df,jsx as Hf,jsxs as Gf}from"react/jsx-runtime";import{Fragment as Vf,jsx as Xf,jsxs as Jf}from"react/jsx-runtime";import{jsx as ri}from"react/jsx-runtime";var $o=e=>ri(F,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as ai}from"react/jsx-runtime";var Xo=e=>ai(F,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as ks,jsxs as ci}from"react/jsx-runtime";var Es="k-spin-button",pi=[],mi={size:[r.small,r.medium,r.large],fillMode:[c.solid,c.flat,c.outline,c.clear,c.link]},Vo={size:r.medium,fillMode:c.solid},_e=e=>{let{size:t=Vo.size,fillMode:o=Vo.fillMode,...a}=e;return ci("span",{...a,className:s(Es,e.className),children:[ks(L,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),ks(L,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};_e.states=pi;_e.options=mi;_e.className=Es;_e.defaultOptions=Vo;_e.moduleName=null;_e.folderName=null;var Cs="numeric-textbox",Is="numerictextbox";import{Fragment as Ts,jsx as ve,jsxs as Jo}from"react/jsx-runtime";var gs="k-numerictextbox",di=[n.hover,n.focus,n.valid,n.invalid,n.loading,n.required,n.disabled,n.readonly],ui={size:[r.small,r.medium,r.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:a=Je.fillMode,separators:l=Je.separators,showClearButton:p=Je.showClearButton,showSpinButton:i=Je.showSpinButton,prefix:u,suffix:f,value:N,placeholder:x,hover:S,focus:m,valid:h,invalid:M,required:v,loading:g,disabled:I,readonly:B,...U}=e;return Jo(y,{...U,size:t,rounded:o,fillMode:a,hover:S,focus:m,valid:h,invalid:M,required:v,loading:g,disabled:I,readonly:B,className:s(e.className,gs),children:[u&&Jo(Ts,{children:[ve(ue,{children:u}),l&&ve(Se,{})]}),ve(ie,{placeholder:x,value:N}),ve(J,{valid:h,invalid:M,loading:g,disabled:I}),ve(Q,{loading:g,disabled:I}),p&&ve(ae,{loading:g,disabled:I,readonly:B,value:N}),f&&Jo(Ts,{children:[l&&ve(Se,{}),ve(fe,{children:f})]}),i&&ve(_e,{className:"k-input-spinner",size:t,fillMode:a})]})};P.states=di;P.options=ui;P.className=gs;P.defaultOptions=Je;P.moduleName=Cs;P.folderName=Is;import{jsx as Tb}from"react/jsx-runtime";import{jsx as bi}from"react/jsx-runtime";var fi="k-no-data",wt=e=>bi("span",{className:s(fi,e.className),children:e.children});var ke="list",we=ke;import{jsx as it,jsxs as Os}from"react/jsx-runtime";var qo="k-list",Ni=[],Li={size:[r.small,r.medium,r.large]},ys={size:r.medium},R=e=>{let{size:t=ys.size,virtualization:o,children:a,optionLabel:l,customValue:p,screenReaders:i,...u}=e,f,N,x,S,m=[];return a?a.map((h,M)=>{h.type===D?(h.props.root===!0?(f=h.props.label,h.props.children.map((v,g)=>{m.push(it(C,{...v.props},`optChild-${g}-${new Date().getTime()}`))})):h.props.children.forEach((v,g)=>{let I="";g===0&&(I=h.props.label),m.push(it(C,{className:g===0?"k-first":"",...v.props,groupLabel:I},`groupLabel-${g}-${new Date().getTime()}`))}),N=it(D,{label:f,virtualization:o,children:m})):h.type===C&&(m.push(it(C,{...h.props},`${h.type}-${M}`)),x=it(lt,{virtualization:o,children:m}),i&&(S=Os(wt,{className:"k-sr-only",children:[m.length," items found."]})))}):S=it(wt,{children:"No data found."}),Os("div",{...u,className:s(e.className,qo,E(qo,{size:t}),{"k-virtual-list":o}),children:[l,p,N,x,S]})};R.states=Ni;R.options=Li;R.className=qo;R.defaultOptions=ys;R.moduleName=ke;R.folderName=we;import{jsx as Si}from"react/jsx-runtime";var Bs="k-list-container",xi=[],Mi={},hi={},pt=e=>{let{...t}=e;return Si("div",{...t,className:s(e.className,Bs),children:e.children})};pt.states=xi;pt.options=Mi;pt.className=Bs;pt.defaultOptions=hi;pt.moduleName=ke;pt.folderName=we;import{jsx as qe,jsxs as Ei}from"react/jsx-runtime";var Wo="k-list",vi=[],ki={size:[r.small,r.medium,r.large]},Rs={size:r.medium},Ee=e=>{let{size:t=Rs.size,virtualization:o,children:a,...l}=e,p,i,u,f=[];return a?a.map((N,x)=>{N.type===D?(N.props.root===!0?(p=N.props.label,N.props.children.map((S,m)=>{f.push(qe(C,{...S.props},`optChild-${m}-${new Date().getTime()}`))})):(f.push(qe(Ks,{...N.props,children:N.props.label},`listChild-${x}`)),N.props.children.map((S,m)=>{f.push(qe(C,{...S.props},`fwOptChild-${m}-${new Date().getTime()}`))})),i=qe(D,{label:p,virtualization:o,children:f})):N.type===C&&(f.push(qe(C,{...N.props},`${N.type}-${x}`)),u=qe(lt,{virtualization:o,children:f}))}):u=qe(wt,{children:"No data found."}),Ei("div",{...l,className:s(e.className,Wo,E(Wo,{size:t}),{"k-virtual-list":o}),children:[i,u]})};Ee.states=vi;Ee.options=ki;Ee.className=Wo;Ee.defaultOptions=Rs;Ee.moduleName=ke;Ee.folderName=we;var We="checkbox",mt=We;import{jsx as Ps}from"react/jsx-runtime";var so="k-checkbox",Ci=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],Ii={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full]},Yo={size:r.medium,rounded:b.medium},xe=e=>{let{id:t,checked:o,indeterminate:a,hover:l,focus:p,disabled:i,invalid:u,valid:f,required:N,size:x=Yo.size,rounded:S=Yo.rounded,...m}=e;return Ps("span",{className:"k-checkbox-wrap",children:Ps("input",{...m,id:t,type:"checkbox",defaultChecked:o,required:N,className:s(e.className,so,E(so,{size:x,rounded:S}),T(so,{hover:l,focus:p,disabled:i,invalid:u,valid:f,indeterminate:a,checked:o}))})})};xe.states=Ci;xe.options=Ii;xe.className=so;xe.defaultOptions=Yo;xe.moduleName=We;xe.folderName=mt;import{jsx as Ai}from"react/jsx-runtime";var _s="k-checkbox-list",Ti=[],gi={},ws={layout:"vertical"},ze=e=>{let{layout:t=ws.layout,...o}=e;return Ai("ul",{...o,className:s(e.className,_s,{[`k-list-${t}`]:t}),children:e.children})};ze.states=Ti;ze.options=gi;ze.className=_s;ze.defaultOptions=ws;ze.moduleName=We;ze.folderName=mt;import{jsx as Ri}from"react/jsx-runtime";var zs="k-checkbox-list-item",Oi=[],yi={},Bi={},He=e=>{let{...t}=e;return Ri("li",{...t,className:s(e.className,zs),children:e.children})};He.states=Oi;He.options=yi;He.className=zs;He.defaultOptions=Bi;He.moduleName=We;He.folderName=mt;import{Fragment as uN,jsx as dN,jsxs as fN}from"react/jsx-runtime";import{Fragment as MN,jsx as xN,jsxs as hN}from"react/jsx-runtime";import{Fragment as CN,jsx as EN,jsxs as IN}from"react/jsx-runtime";import{Fragment as yN,jsx as ON,jsxs as BN}from"react/jsx-runtime";import{jsx as _N}from"react/jsx-runtime";import{jsx as DN}from"react/jsx-runtime";import{jsx as ro,jsxs as wi}from"react/jsx-runtime";var Zo="k-list-item",Ki=[n.hover,n.focus,n.selected,n.disabled],Pi={},_i={},C=e=>{let{text:t,groupLabel:o,group:a,showIcon:l,iconName:p,showCheckbox:i,checked:u,hover:f,focus:N,selected:x,disabled:S,...m}=e,h=t||e.children;return wi("li",{...m,className:s(e.className,a?"k-list-group-item":Zo,T(Zo,{hover:f,focus:N,disabled:S,selected:x})),children:[i&&ro(xe,{checked:u}),l&&ro(k,{icon:p}),ro("span",{className:"k-list-item-text",children:h}),o&&o!==""&&ro("div",{className:"k-list-item-group-label",children:o})]})};C.states=Ki;C.options=Pi;C.className=Zo;C.defaultOptions=_i;C.moduleName=ke;C.folderName=we;import{jsx as jo,jsxs as Hi}from"react/jsx-runtime";var zi="k-list-content",lt=e=>{let{virtualization:t,...o}=e;return Hi("div",{...o,className:s(zi,e.className),children:[jo("ul",{className:s("k-list-ul"),children:e.children}),t&&jo("div",{className:"k-height-container",children:jo("div",{})})]})};import{jsx as Hs}from"react/jsx-runtime";var Di="k-list-group-sticky-header",Ds=e=>Hs("div",{className:s(Di,e.className),children:Hs("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Gi,jsx as Gs,jsxs as Ui}from"react/jsx-runtime";var D=e=>{let{virtualization:t,label:o}=e;return Ui(Gi,{children:[o&&Gs(Ds,{children:o}),e.children&&Gs(lt,{virtualization:t,children:e.children})]})};import{jsx as Us}from"react/jsx-runtime";var Fi="k-list-group-item",Ks=e=>Us("li",{className:s(Fi,e.className),children:Us("span",{className:"k-list-item-text",children:e.children})});import{jsx as Ji}from"react/jsx-runtime";var en="k-list-optionlabel",$i=[n.hover,n.focus,n.selected,n.disabled],Xi={},Vi={},ao=e=>{let{text:t,hover:o,focus:a,selected:l,disabled:p,...i}=e;return Ji("div",{...i,className:s(en,T(en,{hover:o,focus:a,selected:l,disabled:p})),children:t})};ao.states=$i;ao.options=Xi;ao.className=en;ao.defaultOptions=Vi;import{jsx as Qi}from"react/jsx-runtime";var tn="k-list-custom-value",qi=[n.hover,n.focus,n.selected,n.disabled],Wi={},Yi={},De=e=>{let{text:t,hover:o,focus:a,selected:l,disabled:p,...i}=e;return Qi("div",{...i,className:s(tn,T(tn,{hover:o,focus:a,selected:l,disabled:p})),children:t})};De.states=qi;De.options=Wi;De.className=tn;De.defaultOptions=Yi;import{jsx as EL}from"react/jsx-runtime";import{jsx as gL}from"react/jsx-runtime";import{jsx as BL,jsxs as RL}from"react/jsx-runtime";import{jsx as wL,jsxs as zL}from"react/jsx-runtime";import{jsx as UL}from"react/jsx-runtime";import{jsx as VL,jsxs as JL}from"react/jsx-runtime";import{jsx as QL,jsxs as ZL}from"react/jsx-runtime";var Fs="dropdown-list",$s="dropdownlist";import{Fragment as el,jsx as $,jsxs as on}from"react/jsx-runtime";var Xs="k-dropdownlist",Zi=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],ji={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},ct={showValue:!0,arrowIconName:"caret-alt-down",size:r.medium,rounded:b.medium,fillMode:c.solid},Me=e=>{let{size:t=ct.size,rounded:o=ct.rounded,fillMode:a=ct.fillMode,arrowIconName:l=ct.arrowIconName,showValue:p=ct.showValue,valueIconName:i,prefix:u,suffix:f,value:N,placeholder:x,hover:S,focus:m,valid:h,invalid:M,required:v,loading:g,disabled:I,readonly:B,popup:U,opened:ye,adaptive:vt,adaptiveSettings:kt,adaptiveTitle:uo,adaptiveSubtitle:fo,adaptiveFilter:Er,...Cr}=e;return on(el,{children:[on(V,{...Cr,size:t,rounded:o,fillMode:a,hover:S,focus:m,valid:h,invalid:M,required:v,loading:g,disabled:I,readonly:B,className:s(e.className,Xs,{"k-icon-picker":!p&&i}),children:[$(ue,{children:u}),$(Xe,{placeholder:x,value:N,showValue:p,valueIconName:i}),$(J,{valid:h,invalid:M,loading:g,disabled:I}),$(Q,{loading:g,disabled:I}),$(fe,{children:f}),$(L,{className:"k-input-button",icon:l,rounded:null,size:e.size,fillMode:e.fillMode})]}),ye&&U&&$(w,{className:"k-list-container k-dropdownlist-popup",children:U}),vt&&$(q,{adaptive:!0,...kt,header:$(Z,{actionsEnd:$(L,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Er,inputValue:N,inputPlaceholder:x,title:uo,subtitle:fo}),children:$("div",{className:"k-list-container",children:on(R,{size:"large",children:[$(C,{text:"List item"}),$(C,{text:"List item"}),$(C,{text:"List item"})]})})})]})};Me.states=Zi;Me.options=ji;Me.className=Xs;Me.defaultOptions=ct;Me.moduleName=Fs;Me.folderName=$s;import{jsx as yx}from"react/jsx-runtime";import{jsx as _x,jsxs as wx}from"react/jsx-runtime";import{Fragment as Xx,jsx as Fx,jsxs as $x}from"react/jsx-runtime";import{jsx as Wx}from"react/jsx-runtime";import{jsx as eM,jsxs as tM}from"react/jsx-runtime";import{jsx as aM,jsxs as iM}from"react/jsx-runtime";import{Fragment as bM,jsx as uM,jsxs as fM}from"react/jsx-runtime";import{Fragment as kM,jsx as SM,jsxs as vM}from"react/jsx-runtime";import{Fragment as HM,jsx as zM}from"react/jsx-runtime";import{Fragment as VM,jsx as XM}from"react/jsx-runtime";import{Fragment as zt,jsx as A,jsxs as _}from"react/jsx-runtime";var Vs="k-colorgradient-inputs",tl=[],ol={size:[r.small,r.medium,r.large]},Js={mode:"rgba",size:r.medium},dt=e=>{let{mode:t=Js.mode,size:o,...a}=e;return _("div",{...a,className:s(Vs,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(L,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&_(zt,{children:[_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&_(zt,{children:[_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&_(zt,{children:[_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&_(zt,{children:[_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),_("div",{className:"k-vstack",children:[A(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(zt,{children:_("div",{className:"k-vstack k-flex-1",children:[A(Le,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};dt.states=tl;dt.options=ol;dt.className=Vs;dt.defaultOptions=Js;import{jsx as Qe,jsxs as Ze}from"react/jsx-runtime";var qs="k-colorgradient-color-contrast",nl=[],sl={},rl={},ut=()=>Ze("div",{className:s(qs,"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(k,{icon:"check"}),Qe(k,{icon:"check"})]})]}),Ze("div",{children:[Qe("span",{children:"AA: 4.5"}),Ze("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Qe(k,{icon:"check"})]})]}),Ze("div",{children:[Qe("span",{children:"AAA: 7.0"}),Ze("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Qe(k,{icon:"x"})]})]})]});ut.states=nl;ut.options=sl;ut.className=qs;ut.defaultOptions=rl;var Ws="color-gradient",Ys="colorgradient";import{jsx as ee,jsxs as Ht}from"react/jsx-runtime";var io="k-colorgradient",al=[n.hover,n.focus,n.readonly,n.disabled],il={size:[r.small,r.medium,r.large]},pe={size:r.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:a=pe.readonly,disabled:l=pe.disabled,gradientStyle:p=pe.gradientStyle,dragHandleStyle:i=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,...g}=e;return Ht("div",{...g,className:s(e.className,io,E(io,{size:t}),T(io,{hover:S,focus:m,readonly:a,disabled:l})),dir:x,children:[!v||v==="horizontal"&&Ht("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:i})})}),Ht("div",{className:"k-hsv-controls k-hstack",children:[ee(Xo,{className:"k-hue-slider",hover:h,focus:M}),o!=="rgb"&&o!=="hsv"&&ee(Xo,{className:"k-alpha-slider",hover:h,focus:M,trackStyle:u})]})]}),v==="vertical"&&Ht("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:i})})}),Ht("div",{className:"k-hsv-controls k-vstack",children:[ee($o,{className:"k-hue-slider",hover:h,focus:M}),o!=="rgb"&&o!=="hsv"&&ee($o,{className:"k-alpha-slider",hover:h,focus:M,trackStyle:f})]})]}),ee(dt,{mode:e.mode,size:t}),N&&ee(ut,{})]})};he.states=al;he.options=il;he.className=io;he.defaultOptions=pe;he.moduleName=Ws;he.folderName=Ys;import{jsx as Mh}from"react/jsx-runtime";import{jsx as kh}from"react/jsx-runtime";import{jsx as ll}from"react/jsx-runtime";var Qs=e=>ll("tr",{children:e.children});import{jsx as cl}from"react/jsx-runtime";var nn="k-colorpalette-tile",pl=[n.hover,n.focus,n.selected],ml={},Dt=e=>{let{color:t,tileSize:o,hover:a,focus:l,selected:p,...i}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return cl("td",{...i,className:s(e.className,nn,T(nn,{hover:a,focus:l,selected:p})),style:u})};Dt.states=pl;Dt.options=ml;Dt.className=nn;var Zs="color-palette",js="colorpalette";import{jsx as Gt}from"react/jsx-runtime";var lo="k-colorpalette",dl=[n.disabled],ul={size:[r.small,r.medium,r.large]},sn={columns:10,size:r.medium},Ge=e=>{let{size:t=sn.size,palette:o,columns:a=sn.columns,tileSize:l,disabled:p,...i}=e,u=[];if(o){let f=a||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(Gt(Dt,{color:M,tileSize:l},v))});let h=Gt(Qs,{children:m},S);u.push(h)})}return Gt("div",{...i,className:s(e.className,lo,T(lo,{disabled:p}),E(lo,{size:t})),children:Gt("table",{className:"k-colorpalette-table",children:Gt("tbody",{children:u.length>0?u:e.children})})})};Ge.states=dl;Ge.options=ul;Ge.className=lo;Ge.defaultOptions=sn;Ge.moduleName=Zs;Ge.folderName=js;var rn={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 qh}from"react/jsx-runtime";var er="color-editor",tr="coloreditor";import{jsx as te,jsxs as ft}from"react/jsx-runtime";var po="k-coloreditor",fl=[n.focus],bl={size:[r.small,r.medium,r.large]},bt={size:r.medium,view:"gradient",palette:rn.office,actionButtons:!0,canvasOrientation:"horizontal"},oe=e=>{let{size:t=bt.size,view:o=bt.view,palette:a=bt.palette,color:l,currentColor:p,focus:i,focusView:u,dir:f,group:N,actionButtons:x=bt.actionButtons,canvasOrientation:S=bt.canvasOrientation,...m}=e;return ft("div",{...m,className:s(e.className,"k-flatcolorpicker",po,E(po,{size:t}),T(po,{focus:i})),dir:f,children:[ft("div",{className:"k-coloreditor-header k-hstack",children:[te("div",{className:"k-coloreditor-header-actions k-hstack",children:N&&ft(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"}),ft("div",{className:"k-coloreditor-header-actions k-hstack",children:[te(L,{fillMode:"flat",icon:"droplet-slash",size:t}),ft("div",{className:"k-coloreditor-preview k-vstack",children:[te(Be,{className:"k-coloreditor-preview-color",color:l}),te(Be,{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:a,size:t})}),x&&ft(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=fl;oe.options=bl;oe.className=po;oe.defaultOptions=bt;oe.moduleName=er;oe.folderName=tr;import{jsx as bS}from"react/jsx-runtime";import{jsx as MS}from"react/jsx-runtime";import{jsx as kS}from"react/jsx-runtime";import{jsx as TS}from"react/jsx-runtime";var or="color-picker",nr="colorpicker";import{Fragment as xl,jsx as ne,jsxs as ln}from"react/jsx-runtime";var sr="k-colorpicker",Nl=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled],Ll={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[c.solid,c.flat,c.outline]},Ut={arrowIconName:"caret-alt-down",size:V.defaultOptions.size,rounded:V.defaultOptions.rounded,fillMode:V.defaultOptions.fillMode},me=e=>{let{size:t=Ut.size,rounded:o=Ut.rounded,fillMode:a=Ut.fillMode,arrowIconName:l=Ut.arrowIconName,prefix:p,suffix:i,value:u,placeholder:f,hover:N,focus:x,valid:S,invalid:m,required:h,disabled:M,va