@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 68.6 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 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"}),C=(e,t)=>{let{valid:o,invalid:a,hover:l,focus:p,checked:i,active:c,selected:f,disabled:N,indeterminate:L,loading:S,empty:m,readonly:M,highlighted:x,...E}=t;return s({"k-valid":o,"k-invalid":a,"k-hover":l,"k-focus":p,"k-checked":i,"k-active":c,"k-selected":f,"k-disabled":N,"k-indeterminate":L&&!i,"k-loading":S,"k-empty":m,"k-readonly":M,"k-highlighted":x},Object.keys(E).reduce((g,I)=>(I.startsWith("k-")?g[I]=E[I]:g[`k-${I}`]=E[I],g),{}))};function yn(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"},d={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},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{jsx as Or}from"react/jsx-runtime";var bo="k-editor-content",Ar=[n.focus],Xt=e=>{let{focus:t,...o}=e;return Or("div",{...o,className:s(e.className,bo,C(bo,{focus:t})),children:e.children})};Xt.states=Ar;Xt.className=bo;import{Fragment as Kr,jsx as Rn}from"react/jsx-runtime";var No="k-font-icon",yr=[],Rr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Br={},vt=e=>{let{size:t,themeColor:o,icon:a,rotate:l,flip:p,...i}=e;return a?Rn("span",{...i,className:s(e.className,No,k(No,{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"})}):Rn(Kr,{})};vt.states=yr;vt.options=Rr;vt.className=No;vt.defaultOptions=Br;var Bn=vt;import{Fragment as zr,jsx as Vt}from"react/jsx-runtime";var Lo="k-svg-icon",_r=[],Pr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Kn={viewBox:"0 0 24 24"},kt=e=>{let{size:t,themeColor:o,rotate:a,flip:l,viewBox:p=Kn.viewBox,icon:i,...c}=e;if(!i)return Vt(zr,{});i==="none"&&{...c,className:s(e.className,Lo,"k-none")};let f=typeof i=="object"&&i.name&&i.name;return Vt("span",{...c,className:s(e.className,Lo,k("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})})};kt.states=_r;kt.options=Pr;kt.className=Lo;kt.defaultOptions=Kn;var xo=kt;import*as Mo from"@progress/kendo-svg-icons";var _n="icon",Pn="icons";import{Fragment as zn,jsx as Ct}from"react/jsx-runtime";var Jt="k-icon",wr=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Hr=[],Dr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},ho={viewBox:"0 0 24 24",type:"svg"},v=e=>{let{size:t,themeColor:o,icon:a,type:l=ho.type,rotate:p,flip:i,viewBox:c=ho.viewBox,...f}=e;if(!a)return Ct(zn,{});if(l==="svg"){if(a==="none")return Ct(xo,{...f,className:s(e.className,Jt),icon:a,size:t});let N=Mo[a]?a:wr(`${a}-icon`);return Mo[N]?Ct(xo,{...f,className:s(e.className,Jt),icon:Mo[N],size:t,themeColor:o,rotate:p,flip:i,viewBox:c}):Ct(zn,{})}return Ct(Bn,{...f,className:s(e.className,Jt),icon:a,size:t,themeColor:o,rotate:p,flip:i})};v.states=Hr;v.options=Dr;v.defaultOptions=ho;v.className=Jt;v.moduleName=_n;v.folderName=Pn;var So="button",wn=So;import{Fragment as $r,jsx as Tt,jsxs as Hn}from"react/jsx-runtime";var It="k-button",Gr=["icon-button"],Ur=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Fr={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Ge={size:r.medium,rounded:b.medium,fillMode:d.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},h=e=>{let{size:t=Ge.size,rounded:o=Ge.rounded,fillMode:a=Ge.fillMode,themeColor:l=Ge.themeColor,showArrow:p=Ge.showArrow,arrowIconName:i=Ge.arrowIconName,variant:c,hover:f,focus:N,active:L,selected:S,disabled:m,icon:M,text:x,iconClassName:E,...g}=e,I=M!==void 0,R=e.children!==void 0;return Hn("button",{...g,className:s(e.className,It,yn(It,c),k(It,{size:t,rounded:o,fillMode:a,themeColor:l}),C(It,{hover:f,focus:N,active:L,disabled:m,selected:S}),{"k-icon-button":!x&&!R&&I}),children:[M&&Tt(v,{className:s(E,"k-button-icon"),icon:M}),x?Hn($r,{children:[x&&Tt("span",{className:"k-button-text",children:x}),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(v,{icon:i})})]})};h.states=Ur;h.options=Fr;h.variants=Gr;h.className=It;h.defaultOptions=Ge;h.moduleName=So;h.folderName=wn;import{jsx as Xr}from"react/jsx-runtime";var qt=e=>Xr(h,{icon:"folder",...e,children:void 0});import{jsx as Vr}from"react/jsx-runtime";var Eo=e=>Vr(h,{icon:"folder",children:"Button",...e});import{jsx as tm}from"react/jsx-runtime";var vo="button",Dn=vo;import{jsx as Wr}from"react/jsx-runtime";var gt="k-button-group",Jr=[n.disabled],qr={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Gn={fillMode:d.solid},K=e=>{let{fillMode:t=Gn.fillMode,disabled:o,stretched:a,...l}=e;return Wr("div",{...l,className:s(e.className,gt,k(gt,{fillMode:t}),C(gt,{disabled:o}),{[`${gt}-stretched`]:a}),children:e.children})};K.states=Jr;K.options=qr;K.className=gt;K.defaultOptions=Gn;K.moduleName=vo;K.folderName=Dn;import{Fragment as Lm,jsx as Nm,jsxs as xm}from"react/jsx-runtime";import{Fragment as km,jsx as vm,jsxs as Cm}from"react/jsx-runtime";import{Fragment as ym,jsx as Om,jsxs as Rm}from"react/jsx-runtime";import{Fragment as wm,jsx as zm,jsxs as Hm}from"react/jsx-runtime";var At="input",Wt=At;import{jsx as Zr}from"react/jsx-runtime";var Qt="k-input",Qr=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Yr={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},Yt={size:r.medium,rounded:r.medium,fillMode:d.solid},y=e=>{let{hover:t,focus:o,disabled:a,invalid:l,valid:p,loading:i,readonly:c,size:f=Yt.size,rounded:N=Yt.rounded,fillMode:L=Yt.fillMode,...S}=e;return Zr("span",{...S,className:s(e.className,Qt,k(Qt,{size:f,rounded:N,fillMode:L}),C(Qt,{hover:t,focus:o,disabled:a,invalid:l,valid:p,loading:i,readonly:c}))})};y.states=Qr;y.options=Yr;y.className=Qt;y.defaultOptions=Yt;y.moduleName=At;y.folderName=Wt;import{jsx as ta}from"react/jsx-runtime";var Zt="k-picker",jr=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],ea={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},jt={size:r.medium,rounded:b.medium,fillMode:d.solid},X=e=>{let{hover:t,focus:o,disabled:a,invalid:l,valid:p,loading:i,readonly:c,size:f=jt.size,rounded:N=jt.rounded,fillMode:L=jt.fillMode,...S}=e;return ta("span",{...S,className:s(e.className,Zt,k(Zt,{size:f,rounded:N,fillMode:L}),C(Zt,{hover:t,focus:o,disabled:a,invalid:l,valid:p,loading:i,readonly:c})),children:e.children})};X.states=jr;X.options=ea;X.className=Zt;X.defaultOptions=jt;X.moduleName=At;X.folderName=Wt;import{Fragment as sa,jsx as ko}from"react/jsx-runtime";var Un="k-clear-value",oa=[n.disabled,n.loading,n.readonly],na={},se=e=>{let{disabled:t,loading:o,readonly:a,value:l}=e;return t||a||o||!l?ko(sa,{}):ko("span",{className:s(e.className,Un),children:ko(v,{icon:"x"})})};se.states=oa;se.options=na;se.className=Un;import{jsx as ia}from"react/jsx-runtime";var Co="k-input-inner",ra=[],aa={},eo={type:"text",autocomplete:"off",value:"",placeholder:""},re=e=>{let{value:t=eo.value,type:o=eo.type,placeholder:a=eo.placeholder,autocomplete:l=eo.autocomplete,...p}=e;return ia("input",{...p,type:o,className:s(e.className,Co,k(Co,e)),placeholder:a,autoComplete:l,defaultValue:t})};re.states=ra;re.options=aa;re.className=Co;import{jsx as Fn,jsxs as ma}from"react/jsx-runtime";var To="k-input-inner",la=[],pa={},Ue=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:l,valueIconName:p,...i}=e;return ma("span",{...i,className:s(e.className,To,k(To,e)),children:[l,!l&&p&&Fn(v,{className:"k-input-value-icon",icon:p}),a&&!t&&o,a&&t&&Fn("span",{className:"k-input-value-text",children:t})]})};Ue.states=la;Ue.options=pa;Ue.className=To;import{jsx as ua}from"react/jsx-runtime";var Io="k-input-inner",ca=[],da={},$n={value:"",placeholder:""},go=e=>{let{value:t=$n.value,placeholder:o=$n.placeholder,rows:a,...l}=e;return ua("textarea",{...l,className:s(e.className,Io,k(Io,e)),placeholder:o,rows:a,defaultValue:t})};go.states=ca;go.options=da;go.className=Io;import{Fragment as ba,jsx as Xn}from"react/jsx-runtime";var Vn="k-input-loading-icon",fa=[n.disabled,n.loading],Q=e=>{let{disabled:t,loading:o}=e;return t||!o?Xn(ba,{}):Xn("span",{className:s(e.className,Vn,"k-icon k-i-loading")})};Q.states=fa;Q.className=Vn;import{Fragment as xa,jsx as Jn}from"react/jsx-runtime";var qn="k-input-validation-icon",Na=[n.valid,n.invalid,n.disabled,n.loading],La={},V=e=>{let{valid:t,invalid:o,disabled:a,loading:l}=e,p=o?"warning-circle":"check-circle";return a||l||!!!(t||o)?Jn(xa,{}):Jn(v,{className:s(qn),icon:p})};V.states=Na;V.options=La;V.className=qn;import{Fragment as Sa,jsx as Wn}from"react/jsx-runtime";var Ma="k-input-prefix",ha={direction:"horizontal"},ce=e=>{let{direction:t=ha.direction,...o}=e;return e.children?Wn("span",{...o,className:s(Ma,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Wn(Sa,{})};import{Fragment as ka,jsx as Qn}from"react/jsx-runtime";var Ea="k-input-suffix",va={direction:"horizontal"},de=e=>{let{direction:t=va.direction,...o}=e;return e.children?Qn("span",{...o,className:s(Ea,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Qn(ka,{})};import{jsx as yc}from"react/jsx-runtime";import{jsx as _c}from"react/jsx-runtime";import{jsx as Ta}from"react/jsx-runtime";var Yn="k-input-separator",Ca={direction:"vertical"},Me=e=>{let{direction:t=Ca.direction,...o}=e;return Ta("span",{...o,className:s(Yn,e.className,{[`${Yn}-${t}`]:t})})};import{jsx as Zn,jsxs as Aa}from"react/jsx-runtime";var jn="k-color-preview",Ia=[],ga={},ge=e=>{let{color:t,iconName:o,...a}=e;return Aa("span",{...a,className:s(e.className,jn,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Zn(v,{icon:o,className:"k-color-preview-icon"}),Zn("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};ge.states=Ia;ge.options=ga;ge.className=jn;var Ao="popup",es=Ao;import{jsx as ts}from"react/jsx-runtime";var os="k-animation-container",Oa=[],ya={},ns={positionMode:"absolute"},ue=e=>{let{positionMode:t=ns.positionMode,animationStyle:o,offset:a,...l}=e;return ts("div",{...l,style:{...a,...e.style},className:s(e.className,os,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:ts("div",{className:"k-child-animation-container",style:o,children:e.children})})};ue.states=Oa;ue.options=ya;ue.className=os;ue.defaultOptions=ns;ue.moduleName=Ao;ue.folderName=es;var Oo="popup",ss=Oo;import{jsx as rs}from"react/jsx-runtime";var as="k-popup",Ra=[],Ba={},is={positionMode:"absolute"},z=e=>{let{offset:t,positionMode:o=is.positionMode,animationStyle:a,...l}=e;return rs(ue,{positionMode:o,offset:t,animationStyle:a,children:rs("div",{...l,className:s(e.className,as),children:e.children})})};z.states=Ra;z.options=Ba;z.className=as;z.defaultOptions=is;z.moduleName=Oo;z.folderName=ss;var yo="action-buttons",ls=yo;import{jsx as Pa}from"react/jsx-runtime";var to="k-actions",Ka=[],_a={},Ro={alignment:"start",orientation:"horizontal"},fe=e=>{let{alignment:t=Ro.alignment,orientation:o=Ro.orientation,...a}=e;return Pa("div",{...a,className:s(to,{[`${to}-${t}`]:t,[`${to}-${o}`]:o},e.className),children:e.children})};fe.states=Ka;fe.options=_a;fe.className=to;fe.defaultOptions=Ro;fe.moduleName=yo;fe.folderName=ls;import{jsx as wa}from"react/jsx-runtime";var za="k-actionsheet-footer",ps={alignment:"stretched",orientation:"horizontal"},Ot=e=>{let{alignment:t=ps.alignment,orientation:o=ps.orientation,template:a,as:l=a?"div":fe,...p}=e;return wa(l,{...p,...!a&&{alignment:t,orientation:o},className:s(e.className,za),children:e.children})};var Bo="searchbox",ms=Bo;import{jsx as yt,jsxs as Ga}from"react/jsx-runtime";var cs="k-searchbox",Ha=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],Da={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},Ko={showIcon:!0,icon:"search",size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode},ae=e=>{let{value:t,placeholder:o,size:a,rounded:l,fillMode:p,hover:i,focus:c,valid:f,invalid:N,required:L,loading:S,disabled:m,showIcon:M=Ko.showIcon,icon:x=Ko.icon,...E}=e;return Ga(y,{...E,size:a,rounded:l,fillMode:p,hover:i,focus:c,valid:f,invalid:N,required:L,loading:S,disabled:m,className:s(e.className,cs),children:[M&&yt(v,{className:"k-input-icon",icon:x}),yt(re,{placeholder:o,value:t}),yt(Q,{...e}),yt(V,{...e}),yt(se,{...e})]})};ae.states=Ha;ae.options=Da;ae.className=cs;ae.defaultOptions=Ko;ae.moduleName=Bo;ae.folderName=ms;import{jsx as Ud}from"react/jsx-runtime";var _o="textbox",ds=_o;import{Fragment as us,jsx as Ae,jsxs as Po}from"react/jsx-runtime";var fs="k-textbox",Ua=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Fa={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},Fe={showClearButton:!0,showValidationIcon:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},be=e=>{let{size:t=Fe.size,rounded:o=Fe.rounded,fillMode:a=Fe.fillMode,separators:l=Fe.separators,showClearButton:p=Fe.showClearButton,showValidationIcon:i=Fe.showValidationIcon,prefix:c,suffix:f,type:N,value:L,placeholder:S,hover:m,focus:M,valid:x,invalid:E,required:g,loading:I,disabled:R,readonly:G,...Ie}=e;return Po(y,{...Ie,size:t,rounded:o,fillMode:a,hover:m,focus:M,valid:x,invalid:E,required:g,loading:I,disabled:R,readonly:G,className:s(e.className,fs),children:[c&&Po(us,{children:[Ae(ce,{children:c}),l&&Ae(Me,{})]}),Ae(re,{placeholder:S,value:L,type:N}),i&&Ae(V,{valid:x,invalid:E,loading:I,disabled:R}),Ae(Q,{loading:I,disabled:R}),p&&Ae(se,{loading:I,disabled:R,readonly:G,value:L}),f&&Po(us,{children:[l&&Ae(Me,{}),Ae(de,{children:f})]})]})};be.states=Ua;be.options=Fa;be.className=fs;be.defaultOptions=Fe;be.moduleName=_o;be.folderName=ds;import{jsx as tu}from"react/jsx-runtime";import{Fragment as iu,jsx as au}from"react/jsx-runtime";import{Fragment as fu,jsx as uu}from"react/jsx-runtime";import{jsx as Oe,jsxs as zo}from"react/jsx-runtime";var Ns="k-actionsheet-titlebar",$a={},Y=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:l,filter:p,input:i,inputValue:c,inputPlaceholder:f,adaptive:N,children:L,...S}=e;return zo("div",{...S,className:s(e.className,Ns),children:[zo("div",{className:"k-actionsheet-titlebar-group",children:[a&&Oe("div",{className:"k-actionsheet-actions",children:a}),!L&&zo("div",{className:"k-actionsheet-title",children:[t&&Oe("div",{className:"k-text-center",children:t}),o&&Oe("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),L&&Oe("div",{className:"k-actionsheet-title",children:L}),l&&Oe("div",{className:"k-actionsheet-actions",children:l})]}),(i||p)&&Oe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?Oe(be,{value:c,placeholder:f,size:N?"large":"medium"}):Oe(ae,{placeholder:"Filter",size:N?"large":"medium"})})]})};Y.className=Ns;Y.defaultOptions=$a;import{jsx as wo,jsxs as qa}from"react/jsx-runtime";var Ho="k-actionsheet-view",Xa=[],Va={},Ja={},ot=e=>{let{adaptive:t,animated:o,children:a,header:l,footer:p,...i}=e,c=l?.type===Y&&wo(Y,{adaptive:t,...l?.props}),f=p?.type===Ot&&wo(Ot,{...p?.props});return qa("div",{...i,className:s(e.className,Ho,{[`${Ho}-animated`]:o}),children:[c,wo("div",{className:"k-actionsheet-content",children:a}),f]})};ot.states=Xa;ot.options=Va;ot.className=Ho;ot.defaultOptions=Ja;var Rt="action-sheet",oo=Rt;import{jsx as no,jsxs as Ya}from"react/jsx-runtime";var Ls="k-actionsheet",Wa=[],Qa={},Bt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},J=e=>{let{side:t=Bt.side,fullscreen:o=Bt.fullscreen,adaptive:a=Bt.adaptive,overlay:l=Bt.overlay,template:p,children:i,header:c,footer:f,...N}=e;return Ya("div",{className:"k-actionsheet-container",children:[l&&no("div",{className:"k-overlay"}),no(ue,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:no("div",{...N,className:s(e.className,Ls,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:p||no(ot,{header:c,footer:f,adaptive:a,...e,children:i})})})]})};J.states=Wa;J.options=Qa;J.className=Ls;J.defaultOptions=Bt;J.moduleName=Rt;J.folderName=oo;import{jsx as ti}from"react/jsx-runtime";var xs="k-actionsheet-container",Za=[],ja={},ei={},nt=e=>{let{children:t,...o}=e;return ti("div",{...o,className:xs,children:t})};nt.states=Za;nt.options=ja;nt.className=xs;nt.defaultOptions=ei;nt.moduleName=Rt;nt.folderName=oo;import{jsx as Fu}from"react/jsx-runtime";import{Fragment as ni,jsx as Kt,jsxs as Do}from"react/jsx-runtime";var Go="k-actionsheet-item",oi=[n.hover,n.focus,n.selected,n.disabled],Uo=e=>{let{iconName:t,text:o,description:a,hover:l,focus:p,selected:i,disabled:c,...f}=e;return Do("span",{...f,className:s(e.className,Go,C(Go,{hover:l,focus:p,selected:i,disabled:c})),children:[!e.children&&Kt(ni,{children:Do("span",{className:"k-actionsheet-action",children:[t&&Kt("span",{className:"k-icon-wrap",children:Kt(v,{className:"k-actionsheet-item-icon",icon:t})}),Do("span",{className:"k-actionsheet-item-text",children:[o&&Kt("span",{className:"k-actionsheet-item-title",children:o}),a&&Kt("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Uo.states=oi;Uo.className=Go;import{jsx as Zu,jsxs as ju}from"react/jsx-runtime";import{jsx as nf}from"react/jsx-runtime";import{jsx as lf}from"react/jsx-runtime";import{jsx as df}from"react/jsx-runtime";var Fo="slider",hs=Fo;import{jsx as st,jsxs as $o}from"react/jsx-runtime";var _t="k-slider",si=[n.hover,n.focus,n.active,n.disabled,n.readonly],ri={},ye={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},U=e=>{let{type:t=ye.type,orientation:o=ye.orientation,readonly:a=ye.readonly,disabled:l=ye.disabled,handlePosition:p=ye.handlePosition,showButtons:i=ye.showButtons,showTicks:c=ye.showTicks,hover:f,focus:N,active:L,trackStyle:S,dir:m,...M}=e,x,E;return o==="horizontal"?(x=m==="rtl"?"caret-alt-left":"caret-alt-right",E=m==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(x="caret-alt-up",E="caret-alt-down"),$o("div",{...M,className:s(_t,e.className,C(_t,{readonly:a,disabled:l}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:m,children:[i&&st(h,{className:"k-button-decrease",rounded:"full",icon:E}),$o("div",{className:"k-slider-track-wrap",children:[c&&st("ul",{className:"k-reset k-slider-items",children:e.children}),$o("div",{className:"k-slider-track",style:S,children:[st("div",{className:"k-slider-selection"}),t==="range"&&st("span",{className:s("k-draghandle","k-draghandle-start",C(_t,{hover:f,focus:N,active:L}))}),st("span",{className:s("k-draghandle",`k-draghandle-${p}`,C(_t,{hover:f,focus:N,active:L}))})]})]}),i&&st(h,{className:"k-button-increase",rounded:"full",icon:x})]})};U.states=si;U.options=ri;U.className=_t;U.defaultOptions=ye;U.moduleName=Fo;U.folderName=hs;import{jsx as Ss}from"react/jsx-runtime";var Es="k-tick",ai=[],ii={},vs={label:!1},Re=e=>{let{style:t,label:o=vs.label,orientation:a,large:l,text:p,...i}=e;return Ss("li",{...i,className:s(e.className,Es,{[`k-tick-${a}`]:a,"k-tick-large":l}),style:t,children:o&&Ss("span",{className:"k-label",children:p})})};Re.states=ai;Re.options=ii;Re.className=Es;Re.defaultOptions=vs;import{Fragment as wf,jsx as zf,jsxs as Hf}from"react/jsx-runtime";import{Fragment as $f,jsx as Ff,jsxs as Xf}from"react/jsx-runtime";import{Fragment as Qf,jsx as Wf,jsxs as Yf}from"react/jsx-runtime";import{Fragment as ob,jsx as tb,jsxs as nb}from"react/jsx-runtime";import{jsx as li}from"react/jsx-runtime";var Xo=e=>li(U,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as pi}from"react/jsx-runtime";var Vo=e=>pi(U,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as ks,jsxs as fi}from"react/jsx-runtime";var Cs="k-spin-button",di=[],ui={size:[r.small,r.medium,r.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Jo={size:r.medium,fillMode:d.solid},Be=e=>{let{size:t=Jo.size,fillMode:o=Jo.fillMode,...a}=e;return fi("span",{...a,className:s(Cs,e.className),children:[ks(h,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),ks(h,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Be.states=di;Be.options=ui;Be.className=Cs;Be.defaultOptions=Jo;Be.moduleName=null;Be.folderName=null;var Ts="numeric-textbox",Is="numerictextbox";import{Fragment as gs,jsx as he,jsxs as qo}from"react/jsx-runtime";var As="k-numerictextbox",bi=[n.hover,n.focus,n.valid,n.invalid,n.loading,n.required,n.disabled,n.readonly],Ni={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},$e={showSpinButton:!0,showClearButton:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},_=e=>{let{size:t=$e.size,rounded:o=$e.rounded,fillMode:a=$e.fillMode,separators:l=$e.separators,showClearButton:p=$e.showClearButton,showSpinButton:i=$e.showSpinButton,prefix:c,suffix:f,value:N,placeholder:L,hover:S,focus:m,valid:M,invalid:x,required:E,loading:g,disabled:I,readonly:R,...G}=e;return qo(y,{...G,size:t,rounded:o,fillMode:a,hover:S,focus:m,valid:M,invalid:x,required:E,loading:g,disabled:I,readonly:R,className:s(e.className,As),children:[c&&qo(gs,{children:[he(ce,{children:c}),l&&he(Me,{})]}),he(re,{placeholder:L,value:N}),he(V,{valid:M,invalid:x,loading:g,disabled:I}),he(Q,{loading:g,disabled:I}),p&&he(se,{loading:g,disabled:I,readonly:R,value:N}),f&&qo(gs,{children:[l&&he(Me,{}),he(de,{children:f})]}),i&&he(Be,{className:"k-input-spinner",size:t,fillMode:a})]})};_.states=bi;_.options=Ni;_.className=As;_.defaultOptions=$e;_.moduleName=Ts;_.folderName=Is;import{jsx as zb}from"react/jsx-runtime";import{jsx as xi}from"react/jsx-runtime";var Li="k-no-data",Pt=e=>xi("span",{className:s(Li,e.className),children:e.children});var Se="list",Ke=Se;import{jsx as rt,jsxs as ys}from"react/jsx-runtime";var Wo="k-list",Mi=[],hi={size:[r.small,r.medium,r.large]},Rs={size:r.medium},B=e=>{let{size:t=Rs.size,virtualization:o,children:a,optionLabel:l,customValue:p,screenReaders:i,...c}=e,f,N,L,S,m=[];return a?a.map((M,x)=>{M.type===H?(M.props.root===!0?(f=M.props.label,M.props.children.map((E,g)=>{m.push(rt(T,{...E.props},`optChild-${g}-${new Date().getTime()}`))})):M.props.children.forEach((E,g)=>{let I="";g===0&&(I=M.props.label),m.push(rt(T,{className:g===0?"k-first":"",...E.props,groupLabel:I},`groupLabel-${g}-${new Date().getTime()}`))}),N=rt(H,{label:f,virtualization:o,children:m})):M.type===T&&(m.push(rt(T,{...M.props},`${M.type}-${x}`)),L=rt(at,{virtualization:o,children:m}),i&&(S=ys(Pt,{className:"k-sr-only",children:[m.length," items found."]})))}):S=rt(Pt,{children:"No data found."}),ys("div",{...c,className:s(e.className,Wo,k(Wo,{size:t}),{"k-virtual-list":o}),children:[l,p,N,L,S]})};B.states=Mi;B.options=hi;B.className=Wo;B.defaultOptions=Rs;B.moduleName=Se;B.folderName=Ke;import{jsx as ki}from"react/jsx-runtime";var Bs="k-list-container",Si=[],Ei={},vi={},it=e=>{let{...t}=e;return ki("div",{...t,className:s(e.className,Bs),children:e.children})};it.states=Si;it.options=Ei;it.className=Bs;it.defaultOptions=vi;it.moduleName=Se;it.folderName=Ke;import{jsx as Xe,jsxs as Ii}from"react/jsx-runtime";var Qo="k-list",Ci=[],Ti={size:[r.small,r.medium,r.large]},Ks={size:r.medium},Ee=e=>{let{size:t=Ks.size,virtualization:o,children:a,...l}=e,p,i,c,f=[];return a?a.map((N,L)=>{N.type===H?(N.props.root===!0?(p=N.props.label,N.props.children.map((S,m)=>{f.push(Xe(T,{...S.props},`optChild-${m}-${new Date().getTime()}`))})):(f.push(Xe(_s,{...N.props,children:N.props.label},`listChild-${L}`)),N.props.children.map((S,m)=>{f.push(Xe(T,{...S.props},`fwOptChild-${m}-${new Date().getTime()}`))})),i=Xe(H,{label:p,virtualization:o,children:f})):N.type===T&&(f.push(Xe(T,{...N.props},`${N.type}-${L}`)),c=Xe(at,{virtualization:o,children:f}))}):c=Xe(Pt,{children:"No data found."}),Ii("div",{...l,className:s(e.className,Qo,k(Qo,{size:t}),{"k-virtual-list":o}),children:[i,c]})};Ee.states=Ci;Ee.options=Ti;Ee.className=Qo;Ee.defaultOptions=Ks;Ee.moduleName=Se;Ee.folderName=Ke;var Ve="checkbox",lt=Ve;import{jsx as Ps}from"react/jsx-runtime";var so="k-checkbox",gi=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],Ai={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full]},Yo={size:r.medium,rounded:b.medium},Ne=e=>{let{id:t,checked:o,indeterminate:a,hover:l,focus:p,disabled:i,invalid:c,valid:f,required:N,size:L=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,k(so,{size:L,rounded:S}),C(so,{hover:l,focus:p,disabled:i,invalid:c,valid:f,indeterminate:a,checked:o}))})})};Ne.states=gi;Ne.options=Ai;Ne.className=so;Ne.defaultOptions=Yo;Ne.moduleName=Ve;Ne.folderName=lt;import{jsx as Ri}from"react/jsx-runtime";var zs="k-checkbox-list",Oi=[],yi={},ws={layout:"vertical"},_e=e=>{let{layout:t=ws.layout,...o}=e;return Ri("ul",{...o,className:s(e.className,zs,{[`k-list-${t}`]:t}),children:e.children})};_e.states=Oi;_e.options=yi;_e.className=zs;_e.defaultOptions=ws;_e.moduleName=Ve;_e.folderName=lt;import{jsx as Pi}from"react/jsx-runtime";var Hs="k-checkbox-list-item",Bi=[],Ki={},_i={},Pe=e=>{let{...t}=e;return Pi("li",{...t,className:s(e.className,Hs),children:e.children})};Pe.states=Bi;Pe.options=Ki;Pe.className=Hs;Pe.defaultOptions=_i;Pe.moduleName=Ve;Pe.folderName=lt;import{Fragment as vN,jsx as EN,jsxs as kN}from"react/jsx-runtime";import{Fragment as AN,jsx as gN,jsxs as ON}from"react/jsx-runtime";import{Fragment as _N,jsx as KN,jsxs as PN}from"react/jsx-runtime";import{Fragment as GN,jsx as DN,jsxs as UN}from"react/jsx-runtime";import{jsx as VN}from"react/jsx-runtime";import{jsx as QN}from"react/jsx-runtime";import{jsx as ro,jsxs as Di}from"react/jsx-runtime";var jo="k-list-item",zi=[n.hover,n.focus,n.selected,n.disabled],wi={},Hi={},T=e=>{let{text:t,groupLabel:o,group:a,showIcon:l,iconName:p,showCheckbox:i,checked:c,hover:f,focus:N,selected:L,disabled:S,...m}=e,M=t||e.children;return Di("li",{...m,className:s(e.className,a?"k-list-group-item":jo,C(jo,{hover:f,focus:N,disabled:S,selected:L})),children:[i&&ro(Ne,{checked:c}),l&&ro(v,{icon:p}),ro("span",{className:"k-list-item-text",children:M}),o&&o!==""&&ro("div",{className:"k-list-item-group-label",children:o})]})};T.states=zi;T.options=wi;T.className=jo;T.defaultOptions=Hi;T.moduleName=Se;T.folderName=Ke;import{jsx as en,jsxs as Ui}from"react/jsx-runtime";var Gi="k-list-content",at=e=>{let{virtualization:t,...o}=e;return Ui("div",{...o,className:s(Gi,e.className),children:[en("ul",{className:s("k-list-ul"),children:e.children}),t&&en("div",{className:"k-height-container",children:en("div",{})})]})};import{jsx as Ds}from"react/jsx-runtime";var Fi="k-list-group-sticky-header",Gs=e=>Ds("div",{className:s(Fi,e.className),children:Ds("div",{className:"k-list-header-text",children:e.children})});import{Fragment as $i,jsx as Us,jsxs as Xi}from"react/jsx-runtime";var H=e=>{let{virtualization:t,label:o}=e;return Xi($i,{children:[o&&Us(Gs,{children:o}),e.children&&Us(at,{virtualization:t,children:e.children})]})};import{jsx as Fs}from"react/jsx-runtime";var Vi="k-list-group-item",_s=e=>Fs("li",{className:s(Vi,e.className),children:Fs("span",{className:"k-list-item-text",children:e.children})});import{jsx as Qi}from"react/jsx-runtime";var tn="k-list-optionlabel",Ji=[n.hover,n.focus,n.selected,n.disabled],qi={},Wi={},ao=e=>{let{text:t,hover:o,focus:a,selected:l,disabled:p,...i}=e;return Qi("div",{...i,className:s(tn,C(tn,{hover:o,focus:a,selected:l,disabled:p})),children:t})};ao.states=Ji;ao.options=qi;ao.className=tn;ao.defaultOptions=Wi;import{jsx as el}from"react/jsx-runtime";var on="k-list-custom-value",Yi=[n.hover,n.focus,n.selected,n.disabled],Zi={},ji={},ze=e=>{let{text:t,hover:o,focus:a,selected:l,disabled:p,...i}=e;return el("div",{...i,className:s(on,C(on,{hover:o,focus:a,selected:l,disabled:p})),children:t})};ze.states=Yi;ze.options=Zi;ze.className=on;ze.defaultOptions=ji;import{jsx as KL}from"react/jsx-runtime";import{jsx as wL}from"react/jsx-runtime";import{jsx as UL,jsxs as FL}from"react/jsx-runtime";import{jsx as JL,jsxs as qL}from"react/jsx-runtime";import{jsx as ZL}from"react/jsx-runtime";import{jsx as ox,jsxs as nx}from"react/jsx-runtime";import{jsx as ix,jsxs as lx}from"react/jsx-runtime";var $s="dropdown-list",Xs="dropdownlist";import{Fragment as nl,jsx as F,jsxs as nn}from"react/jsx-runtime";var Vs="k-dropdownlist",tl=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],ol={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},pt={showValue:!0,arrowIconName:"caret-alt-down",size:r.medium,rounded:b.medium,fillMode:d.solid},Le=e=>{let{size:t=pt.size,rounded:o=pt.rounded,fillMode:a=pt.fillMode,arrowIconName:l=pt.arrowIconName,showValue:p=pt.showValue,valueIconName:i,prefix:c,suffix:f,value:N,placeholder:L,hover:S,focus:m,valid:M,invalid:x,required:E,loading:g,disabled:I,readonly:R,popup:G,opened:Ie,adaptive:St,adaptiveSettings:Et,adaptiveTitle:uo,adaptiveSubtitle:fo,adaptiveFilter:Ir,...gr}=e;return nn(nl,{children:[nn(X,{...gr,size:t,rounded:o,fillMode:a,hover:S,focus:m,valid:M,invalid:x,required:E,loading:g,disabled:I,readonly:R,className:s(e.className,Vs,{"k-icon-picker":!p&&i}),children:[F(ce,{children:c}),F(Ue,{placeholder:L,value:N,showValue:p,valueIconName:i}),F(V,{valid:M,invalid:x,loading:g,disabled:I}),F(Q,{loading:g,disabled:I}),F(de,{children:f}),F(h,{className:"k-input-button",icon:l,rounded:null,size:e.size,fillMode:e.fillMode})]}),Ie&&G&&F(z,{className:"k-list-container k-dropdownlist-popup",children:G}),St&&F(J,{adaptive:!0,...Et,header:F(Y,{actionsEnd:F(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ir,inputValue:N,inputPlaceholder:L,title:uo,subtitle:fo}),children:F("div",{className:"k-list-container",children:nn(B,{size:"large",children:[F(T,{text:"List item"}),F(T,{text:"List item"}),F(T,{text:"List item"})]})})})]})};Le.states=tl;Le.options=ol;Le.className=Vs;Le.defaultOptions=pt;Le.moduleName=$s;Le.folderName=Xs;import{jsx as Gx}from"react/jsx-runtime";import{jsx as Vx,jsxs as Jx}from"react/jsx-runtime";import{Fragment as tM,jsx as jx,jsxs as eM}from"react/jsx-runtime";import{jsx as rM}from"react/jsx-runtime";import{jsx as mM,jsxs as cM}from"react/jsx-runtime";import{jsx as NM,jsxs as LM}from"react/jsx-runtime";import{Fragment as CM,jsx as vM,jsxs as kM}from"react/jsx-runtime";import{Fragment as BM,jsx as yM,jsxs as RM}from"react/jsx-runtime";import{Fragment as WM,jsx as qM}from"react/jsx-runtime";import{Fragment as oh,jsx as th}from"react/jsx-runtime";import{Fragment as zt,jsx as A,jsxs as P}from"react/jsx-runtime";var Js="k-colorgradient-inputs",sl=[],rl={size:[r.small,r.medium,r.large]},qs={mode:"rgba",size:r.medium},mt=e=>{let{mode:t=qs.mode,size:o,...a}=e;return P("div",{...a,className:s(Js,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(h,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&P(zt,{children:[P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&P(zt,{children:[P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&P(zt,{children:[P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&P(zt,{children:[P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),P("div",{className:"k-vstack",children:[A(_,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(zt,{children:P("div",{className:"k-vstack k-flex-1",children:[A(be,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};mt.states=sl;mt.options=rl;mt.className=Js;mt.defaultOptions=qs;import{jsx as qe,jsxs as We}from"react/jsx-runtime";var Ws="k-colorgradient-color-contrast",al=[],il={},ll={},ct=()=>We("div",{className:s(Ws,"k-vbox"),children:[We("div",{className:"k-contrast-ratio",children:[qe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),We("span",{className:"k-contrast-validation !k-text-success",children:[qe(v,{icon:"check"}),qe(v,{icon:"check"})]})]}),We("div",{children:[qe("span",{children:"AA: 4.5"}),We("span",{className:"k-contrast-validation !k-text-success",children:["Pass",qe(v,{icon:"check"})]})]}),We("div",{children:[qe("span",{children:"AAA: 7.0"}),We("span",{className:"k-contrast-validation !k-text-error",children:["Fail",qe(v,{icon:"x"})]})]})]});ct.states=al;ct.options=il;ct.className=Ws;ct.defaultOptions=ll;var Qs="color-gradient",Ys="colorgradient";import{jsx as Z,jsxs as wt}from"react/jsx-runtime";var io="k-colorgradient",pl=[n.hover,n.focus,n.readonly,n.disabled],ml={size:[r.small,r.medium,r.large]},ie={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"},xe=e=>{let{size:t=ie.size,mode:o=ie.mode,readonly:a=ie.readonly,disabled:l=ie.disabled,gradientStyle:p=ie.gradientStyle,dragHandleStyle:i=ie.dragHandleStyle,alphaStyle:c=ie.alphaStyle,alphaStyleHorizontal:f=ie.alphaStyleHorizontal,contrast:N=ie.contrast,dir:L,hover:S,focus:m,hoverHandle:M,focusHandle:x,canvasOrientation:E=ie.canvasOrientation,...g}=e;return wt("div",{...g,className:s(e.className,io,k(io,{size:t}),C(io,{hover:S,focus:m,readonly:a,disabled:l})),dir:L,children:[!E||E==="horizontal"&&wt("div",{className:"k-colorgradient-canvas k-hstack",children:[Z("div",{className:"k-hsv-rectangle",style:p,children:Z("div",{className:"k-hsv-gradient",children:Z("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":M,"k-focus":x}),style:i})})}),wt("div",{className:"k-hsv-controls k-hstack",children:[Z(Vo,{className:"k-hue-slider",hover:M,focus:x}),o!=="rgb"&&o!=="hsv"&&Z(Vo,{className:"k-alpha-slider",hover:M,focus:x,trackStyle:c})]})]}),E==="vertical"&&wt("div",{className:"k-colorgradient-canvas k-vstack",children:[Z("div",{className:"k-hsv-rectangle",style:p,children:Z("div",{className:"k-hsv-gradient",children:Z("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":M,"k-focus":x}),style:i})})}),wt("div",{className:"k-hsv-controls k-vstack",children:[Z(Xo,{className:"k-hue-slider",hover:M,focus:x}),o!=="rgb"&&o!=="hsv"&&Z(Xo,{className:"k-alpha-slider",hover:M,focus:x,trackStyle:f})]})]}),Z(mt,{mode:e.mode,size:t}),N&&Z(ct,{})]})};xe.states=pl;xe.options=ml;xe.className=io;xe.defaultOptions=ie;xe.moduleName=Qs;xe.folderName=Ys;import{jsx as Ah}from"react/jsx-runtime";import{jsx as Bh}from"react/jsx-runtime";import{jsx as cl}from"react/jsx-runtime";var Zs=e=>cl("tr",{children:e.children});import{jsx as fl}from"react/jsx-runtime";var sn="k-colorpalette-tile",dl=[n.hover,n.focus,n.selected],ul={},Ht=e=>{let{color:t,tileSize:o,hover:a,focus:l,selected:p,...i}=e,c={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return fl("td",{...i,className:s(e.className,sn,C(sn,{hover:a,focus:l,selected:p})),style:c})};Ht.states=dl;Ht.options=ul;Ht.className=sn;var js="color-palette",er="colorpalette";import{jsx as Dt}from"react/jsx-runtime";var lo="k-colorpalette",bl=[n.disabled],Nl={size:[r.small,r.medium,r.large]},rn={columns:10,size:r.medium},we=e=>{let{size:t=rn.size,palette:o,columns:a=rn.columns,tileSize:l,disabled:p,...i}=e,c=[];if(o){let f=a||o.columns,N=o.colors?o.colors:o;Array.isArray(N)&&Array.from({length:Math.ceil(N.length/f)},(L,S)=>{let m=[];N.slice(S*f,(S+1)*f).map((x,E)=>{m.push(Dt(Ht,{color:x,tileSize:l},E))});let M=Dt(Zs,{children:m},S);c.push(M)})}return Dt("div",{...i,className:s(e.className,lo,C(lo,{disabled:p}),k(lo,{size:t})),children:Dt("table",{className:"k-colorpalette-table",children:Dt("tbody",{children:c.length>0?c:e.children})})})};we.states=bl;we.options=Nl;we.className=lo;we.defaultOptions=rn;we.moduleName=js;we.folderName=er;var an={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 sS}from"react/jsx-runtime";var tr="color-editor",or="coloreditor";import{jsx as j,jsxs as dt}from"react/jsx-runtime";var po="k-coloreditor",Ll=[n.focus],xl={size:[r.small,r.medium,r.large]},ut={size:r.medium,view:"gradient",palette:an.office,actionButtons:!0,canvasOrientation:"horizontal"},ee=e=>{let{size:t=ut.size,view:o=ut.view,palette:a=ut.palette,color:l,currentColor:p,focus:i,focusView:c,dir:f,group:N,actionButtons:L=ut.actionButtons,canvasOrientation:S=ut.canvasOrientation,...m}=e;return dt("div",{...m,className:s(e.className,"k-flatcolorpicker",po,k(po,{size:t}),C(po,{focus:i})),dir:f,children:[dt("div",{className:"k-coloreditor-header k-hstack",children:[j("div",{className:"k-coloreditor-header-actions k-hstack",children:N&&dt(K,{fillMode:"flat",children:[j(h,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),j(h,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),j("div",{className:"k-spacer"}),dt("div",{className:"k-coloreditor-header-actions k-hstack",children:[j(h,{fillMode:"flat",icon:"droplet-slash",size:t}),dt("div",{className:"k-coloreditor-preview k-vstack",children:[j(ge,{className:"k-coloreditor-preview-color",color:l}),j(ge,{className:"k-coloreditor-current-color",color:p})]})]})]}),j("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?j(xe,{focus:c,size:t,canvasOrientation:S}):j(we,{palette:a,size:t})}),L&&dt(fe,{className:"k-coloreditor-footer",alignment:"start",children:[j(h,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),j(h,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ee.states=Ll;ee.options=xl;ee.className=po;ee.defaultOptions=ut;ee.moduleName=tr;ee.folderName=or;import{jsx as CS}from"react/jsx-runtime";import{jsx as AS}from"react/jsx-runtime";import{jsx as BS}from"react/jsx-runtime";import{jsx as zS}from"react/jsx-runtime";var nr="color-picker",sr="colorpicker";import{Fragment as Sl,jsx as te,jsxs as pn}from"react/jsx-runtime";var rr="k-colorpicker",Ml=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled],hl={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[d.solid,d.flat,d.outline]},Gt={arrowIconName:"caret-alt-down",size:X.defaultOptions.size,rounded:X.defaultOptions.rounded,fillMode:X.defaultOptions.fillMode},le=e=>{let{size:t=Gt.size,rounded:o=Gt.rounded,fillMode:a=Gt.fillMode,arrowIconName:l=Gt.arrowIconName,prefix:p,suffix:i,value:c,placeholder:f,hover:N,focus:L,valid:S,invalid:m,required:M,disabled:x,valueIconName:E,popup:g,opened:I,adaptive:R,adaptiveSe