@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 67.3 kB
JavaScript
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var M=(e,t)=>a({[`${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"}),I=(e,t)=>a({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var r={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},x={small:"small",medium:"medium",large:"large",full:"full"},m={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"},s={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"};import{jsx as Ra}from"react/jsx-runtime";var Be="k-pane",Oa=[],Ka={},ao={resizable:!0,flex:!1},Y=e=>{let{scrollable:t,flexBasis:o,flex:n=ao.flex,collapsible:i,resizable:p=ao.resizable,pinned:l,unpinned:d,tabbed:f,...b}=e;return Ra("div",{...b,style:{flexBasis:o,...e.style},className:a(e.className,Be,{[`${Be}-static`]:o,[`${Be}-flex`]:n,"k-scrollable":t,[`${Be}-pinned`]:l,[`${Be}-unpinned`]:d,[`${Be}-tabbed`]:f}),children:e.children})};Y.states=Oa;Y.options=Ka;Y.className=Be;Y.defaultOptions=ao;import{Fragment as Da,jsx as ps}from"react/jsx-runtime";var no="k-icon k-font-icon",Ha=[],Ga={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]},$a={},ut=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:p,...l}=e;return n?ps("span",{...l,className:a(e.className,no,M(no,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):ps(Da,{})};ut.states=Ha;ut.options=Ga;ut.className=no;ut.defaultOptions=$a;var cs=ut;import{Fragment as Xa,jsx as Ot}from"react/jsx-runtime";var ro="k-icon k-svg-icon",Va=[],_a={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]},ds={viewBox:"0 0 24 24"},ft=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:p=ds.viewBox,icon:l,...d}=e;if(!l)return Ot(Xa,{});l==="none"&&{...d,className:a(e.className,ro,"k-none")};let f=typeof l=="object"&&l.name&&l.name;return Ot("span",{...d,className:a(e.className,ro,M("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:Ot("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:p,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};ft.states=Va;ft.options=_a;ft.className=ro;ft.defaultOptions=ds;var io=ft;import*as ms from"@progress/kendo-svg-icons";import{Fragment as us,jsx as bt}from"react/jsx-runtime";var Ja=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Fa=[],Ua={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]},lo={viewBox:"0 0 24 24",type:"svg"},g=e=>{let{size:t,themeColor:o,icon:n,type:i=lo.type,rotate:p,flip:l,viewBox:d=lo.viewBox,...f}=e;if(!n)return bt(us,{});if(i==="svg"){if(n==="none")return bt(io,{...f,icon:n,size:t});let b=Ja(`${n}-icon`);return ms[b]?bt(io,{...f,icon:ms[b],size:t,themeColor:o,rotate:p,flip:l,viewBox:d}):bt(us,{})}return bt(cs,{...f,icon:n,size:t,themeColor:o,rotate:p,flip:l})};g.states=Fa;g.options=Ua;g.defaultOptions=lo;import{Fragment as fs,jsx as Pe,jsxs as Qa}from"react/jsx-runtime";var Fe="k-splitbar",qa=[s.hover,s.focus],Wa={},po={orientation:"horizontal",draggable:!0},xe=e=>{let{hover:t,focus:o,orientation:n=po.orientation,draggable:i=po.draggable,collapsePrev:p,collapseNext:l,...d}=e;return Qa("div",{...d,className:a(e.className,Fe,I(Fe,{hover:t,focus:o}),{[`${Fe}-${n}`]:n,[`${Fe}-draggable-${n}`]:i,[`${Fe}-static-${n}`]:!i&&!p&&!l}),children:[p&&Pe(fs,{children:Pe("div",{className:"k-collapse-prev",children:Pe(g,{icon:`caret-alt-${n==="horizontal"?"left":"up"}`,size:"xsmall"})})}),Pe("div",{className:"k-resize-handle"}),l&&Pe(fs,{children:Pe("div",{className:"k-collapse-next",children:Pe(g,{icon:`caret-alt-${n==="horizontal"?"right":"down"}`,size:"xsmall"})})})]})};xe.states=qa;xe.options=Wa;xe.className=Fe;xe.defaultOptions=po;import{jsx as bs}from"react/jsx-runtime";import{createElement as Za}from"react";var co="k-splitter",Ya={},xs={orientation:"horizontal"},xt=e=>{let{orientation:t=xs.orientation,children:o,...n}=e,i=[];return o&&Array.isArray(o)&&o.map((p,l)=>{if(p.type===Y){let d=o[l+1],f=p.props,b=d?.props;i.push(Za(Y,{...f,key:l}),d&&bs(xe,{draggable:f.resizable!==!1&&b.resizable!==!1,collapsePrev:f.collapsible,collapseNext:b.collapsible,orientation:t},`splitbar-${l}`))}else i.push(p)}),bs("div",{...n,className:a(e.className,co,{[`${co}-${t}`]:t},"k-splitter-flex"),children:i})};xt.options=Ya;xt.className=co;xt.defaultOptions=xs;import{jsx as Zl,jsxs as jl}from"react/jsx-runtime";import{jsx as sp,jsxs as ap}from"react/jsx-runtime";import{Fragment as tn,jsx as ht,jsxs as hs}from"react/jsx-runtime";var Kt="k-button",ja=[s.hover,s.focus,s.active,s.selected,s.disabled],en={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline,m.clear,m.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},ze={size:r.medium,rounded:x.medium,fillMode:m.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},k=e=>{let{size:t=ze.size,rounded:o=ze.rounded,fillMode:n=ze.fillMode,themeColor:i=ze.themeColor,showArrow:p=ze.showArrow,arrowIconName:l=ze.arrowIconName,hover:d,focus:f,active:b,selected:h,disabled:v,icon:c,text:N,iconClassName:S,...L}=e,C=c!==void 0,T=e.children!==void 0;return hs("button",{...L,className:a(e.className,Kt,M(Kt,{size:t,rounded:o,fillMode:n,themeColor:i}),I(Kt,{hover:d,focus:f,active:b,disabled:v,selected:h}),{"k-icon-button":!N&&!T&&C}),children:[c&&ht(g,{className:a(S,"k-button-icon"),icon:c}),N?hs(tn,{children:[N&&ht("span",{className:"k-button-text",children:N}),e.children]}):e.children&&ht("span",{className:"k-button-text",children:e.children}),p&&ht("span",{className:"k-menu-button-arrow k-button-arrow",children:ht(g,{icon:l})})]})};k.states=ja;k.options=en;k.className=Kt;k.defaultOptions=ze;import{jsx as on}from"react/jsx-runtime";var Rt=e=>on(k,{icon:"folder",...e,children:void 0});import{jsx as sn}from"react/jsx-runtime";var mo=e=>sn(k,{icon:"folder",children:"Button",...e});import{jsx as Mp}from"react/jsx-runtime";import{jsx as rn}from"react/jsx-runtime";var Nt="k-button-group",an=[s.disabled],nn={fillMode:[m.solid,m.flat,m.outline,m.clear,m.link]},Ns={fillMode:m.solid},E=e=>{let{fillMode:t=Ns.fillMode,disabled:o,stretched:n,...i}=e;return rn("div",{...i,className:a(e.className,Nt,M(Nt,{fillMode:t}),I(Nt,{disabled:o}),{[`${Nt}-stretched`]:n}),children:e.children})};E.states=an;E.options=nn;E.className=Nt;E.defaultOptions=Ns;import{Fragment as Hp,jsx as Rp,jsxs as Gp}from"react/jsx-runtime";import{Fragment as Jp,jsx as Xp,jsxs as Fp}from"react/jsx-runtime";import{Fragment as Zp,jsx as Yp,jsxs as jp}from"react/jsx-runtime";import{Fragment as nc,jsx as ac,jsxs as rc}from"react/jsx-runtime";import{jsx as cn}from"react/jsx-runtime";var Ht="k-input",ln=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],pn={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},Gt={size:r.medium,rounded:r.medium,fillMode:m.solid},P=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:d,size:f=Gt.size,rounded:b=Gt.rounded,fillMode:h=Gt.fillMode,...v}=e;return cn("span",{...v,className:a(e.className,Ht,M(Ht,{size:f,rounded:b,fillMode:h}),I(Ht,{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:d}))})};P.states=ln;P.options=pn;P.className=Ht;P.defaultOptions=Gt;import{jsx as un}from"react/jsx-runtime";var $t="k-picker",dn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],mn={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},Dt={size:r.medium,rounded:x.medium,fillMode:m.solid},Z=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:d,size:f=Dt.size,rounded:b=Dt.rounded,fillMode:h=Dt.fillMode,...v}=e;return un("span",{...v,className:a(e.className,$t,M($t,{size:f,rounded:b,fillMode:h}),I($t,{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:d})),children:e.children})};Z.states=dn;Z.options=mn;Z.className=$t;Z.defaultOptions=Dt;import{Fragment as xn,jsx as uo}from"react/jsx-runtime";var ks="k-clear-value",fn=[s.disabled,s.loading,s.readonly],bn={},j=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?uo(xn,{}):uo("span",{className:a(e.className,ks),children:uo(g,{icon:"x"})})};j.states=fn;j.options=bn;j.className=ks;import{jsx as kn}from"react/jsx-runtime";var fo="k-input-inner",hn=[],Nn={},Vt={type:"text",autocomplete:"off",value:"",placeholder:""},ee=e=>{let{value:t=Vt.value,type:o=Vt.type,placeholder:n=Vt.placeholder,autocomplete:i=Vt.autocomplete,...p}=e;return kn("input",{...p,type:o,className:a(e.className,fo,M(fo,e)),placeholder:n,autoComplete:i,defaultValue:t})};ee.states=hn;ee.options=Nn;ee.className=fo;import{jsx as Ss,jsxs as Ln}from"react/jsx-runtime";var bo="k-input-inner",Sn=[],vn={},we=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:p,...l}=e;return Ln("span",{...l,className:a(e.className,bo,M(bo,e)),children:[i,!i&&p&&Ss(g,{className:"k-input-value-icon",icon:p}),n&&!t&&o,n&&t&&Ss("span",{className:"k-input-value-text",children:t})]})};we.states=Sn;we.options=vn;we.className=bo;import{jsx as In}from"react/jsx-runtime";var xo="k-input-inner",gn=[],Mn={},vs={value:"",placeholder:""},ho=e=>{let{value:t=vs.value,placeholder:o=vs.placeholder,rows:n,...i}=e;return In("textarea",{...i,className:a(e.className,xo,M(xo,e)),placeholder:o,rows:n,defaultValue:t})};ho.states=gn;ho.options=Mn;ho.className=xo;import{Fragment as Cn,jsx as Ls}from"react/jsx-runtime";var gs="k-input-loading-icon",yn=[s.disabled,s.loading],X=e=>{let{disabled:t,loading:o}=e;return t||!o?Ls(Cn,{}):Ls("span",{className:a(e.className,gs,"k-icon k-i-loading")})};X.states=yn;X.className=gs;import{Fragment as Bn,jsx as Ms}from"react/jsx-runtime";var Is="k-input-validation-icon",Tn=[s.valid,s.invalid,s.disabled,s.loading],An={},_=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,p=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?Ms(Bn,{}):Ms(g,{className:a(Is),icon:p})};_.states=Tn;_.options=An;_.className=Is;import{Fragment as wn,jsx as ys}from"react/jsx-runtime";var Pn="k-input-prefix",zn={direction:"horizontal"},ae=e=>{let{direction:t=zn.direction,...o}=e;return e.children?ys("span",{...o,className:a(Pn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ys(wn,{})};import{Fragment as Kn,jsx as Cs}from"react/jsx-runtime";var En="k-input-suffix",On={direction:"horizontal"},ne=e=>{let{direction:t=On.direction,...o}=e;return e.children?Cs("span",{...o,className:a(En,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Cs(Kn,{})};import{jsx as Wc}from"react/jsx-runtime";import{jsx as jc}from"react/jsx-runtime";import{jsx as Hn}from"react/jsx-runtime";var Ts="k-input-separator",Rn={direction:"vertical"},le=e=>{let{direction:t=Rn.direction,...o}=e;return Hn("span",{...o,className:a(Ts,e.className,{[`${Ts}-${t}`]:t})})};import{jsx as As,jsxs as Dn}from"react/jsx-runtime";var Bs="k-color-preview",Gn=[],$n={},he=e=>{let{color:t,iconName:o,...n}=e;return Dn("span",{...n,className:a(e.className,Bs,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&As(g,{icon:o,className:"k-color-preview-icon"}),As("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};he.states=Gn;he.options=$n;he.className=Bs;import{jsx as Ps}from"react/jsx-runtime";var zs="k-animation-container",Vn=[],_n={},ws={positionMode:"absolute"},Ne=e=>{let{positionMode:t=ws.positionMode,animationStyle:o,offset:n,...i}=e;return Ps("div",{...i,style:{...n,...e.style},className:a(e.className,zs,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Ps("div",{className:"k-child-animation-container",style:o,children:e.children})})};Ne.states=Vn;Ne.options=_n;Ne.className=zs;Ne.defaultOptions=ws;import{jsx as Es}from"react/jsx-runtime";var Os="k-popup",Xn=[],Jn={},Ks={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:o=Ks.positionMode,animationStyle:n,...i}=e;return Es(Ne,{positionMode:o,offset:t,animationStyle:n,children:Es("div",{...i,className:a(e.className,Os),children:e.children})})};H.states=Xn;H.options=Jn;H.className=Os;H.defaultOptions=Ks;import{jsx as qn}from"react/jsx-runtime";var _t="k-actions",Fn=[],Un={},No={alignment:"start",orientation:"horizontal"},ke=e=>{let{alignment:t=No.alignment,orientation:o=No.orientation,...n}=e;return qn("div",{...n,className:a(_t,{[`${_t}-${t}`]:t,[`${_t}-${o}`]:o},e.className),children:e.children})};ke.states=Fn;ke.options=Un;ke.className=_t;ke.defaultOptions=No;import{jsx as Qn}from"react/jsx-runtime";var Wn="k-actionsheet-footer",Rs={alignment:"stretched",orientation:"horizontal"},kt=e=>{let{alignment:t=Rs.alignment,orientation:o=Rs.orientation,template:n,as:i=n?"div":ke,...p}=e;return Qn(i,{...p,...!n&&{alignment:t,orientation:o},className:a(e.className,Wn),children:e.children})};import{jsx as St,jsxs as jn}from"react/jsx-runtime";var Hs="k-searchbox",Yn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Zn={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},ko={showIcon:!0,icon:"search",size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode},pe=e=>{let{value:t,placeholder:o,size:n,rounded:i,fillMode:p,hover:l,focus:d,valid:f,invalid:b,required:h,loading:v,disabled:c,showIcon:N=ko.showIcon,icon:S=ko.icon,...L}=e;return jn(P,{...L,size:n,rounded:i,fillMode:p,hover:l,focus:d,valid:f,invalid:b,required:h,loading:v,disabled:c,className:a(e.className,Hs),children:[N&&St(g,{className:"k-input-icon",icon:S}),St(ee,{placeholder:o,value:t}),St(X,{...e}),St(_,{...e}),St(j,{...e})]})};pe.states=Yn;pe.options=Zn;pe.className=Hs;pe.defaultOptions=ko;import{jsx as Zd}from"react/jsx-runtime";import{Fragment as Gs,jsx as Se,jsxs as So}from"react/jsx-runtime";var $s="k-textbox",er=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],tr={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},Ee={showClearButton:!0,showValidationIcon:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},ve=e=>{let{size:t=Ee.size,rounded:o=Ee.rounded,fillMode:n=Ee.fillMode,separators:i=Ee.separators,showClearButton:p=Ee.showClearButton,showValidationIcon:l=Ee.showValidationIcon,prefix:d,suffix:f,type:b,value:h,placeholder:v,hover:c,focus:N,valid:S,invalid:L,required:C,loading:T,disabled:z,readonly:$,...be}=e;return So(P,{...be,size:t,rounded:o,fillMode:n,hover:c,focus:N,valid:S,invalid:L,required:C,loading:T,disabled:z,readonly:$,className:a(e.className,$s),children:[d&&So(Gs,{children:[Se(ae,{children:d}),i&&Se(le,{})]}),Se(ee,{placeholder:v,value:h,type:b}),l&&Se(_,{valid:S,invalid:L,loading:T,disabled:z}),Se(X,{loading:T,disabled:z}),p&&Se(j,{loading:T,disabled:z,readonly:$,value:h}),f&&So(Gs,{children:[i&&Se(le,{}),Se(ne,{children:f})]})]})};ve.states=er;ve.options=tr;ve.className=$s;ve.defaultOptions=Ee;import{jsx as pm}from"react/jsx-runtime";import{Fragment as bm,jsx as fm}from"react/jsx-runtime";import{Fragment as Lm,jsx as vm}from"react/jsx-runtime";import{jsx as Le,jsxs as vo}from"react/jsx-runtime";var Vs="k-actionsheet-titlebar",or={},J=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:i,filter:p,input:l,inputValue:d,inputPlaceholder:f,adaptive:b,children:h,...v}=e;return vo("div",{...v,className:a(e.className,Vs),children:[vo("div",{className:"k-actionsheet-titlebar-group",children:[n&&Le("div",{className:"k-actionsheet-actions",children:n}),!h&&vo("div",{className:"k-actionsheet-title",children:[t&&Le("div",{className:"k-text-center",children:t}),o&&Le("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&Le("div",{className:"k-actionsheet-title",children:h}),i&&Le("div",{className:"k-actionsheet-actions",children:i})]}),(l||p)&&Le("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Le(ve,{value:d,placeholder:f,size:b?"large":"medium"}):Le(pe,{placeholder:"Filter",size:b?"large":"medium"})})]})};J.className=Vs;J.defaultOptions=or;import{jsx as Lo,jsxs as rr}from"react/jsx-runtime";var go="k-actionsheet-view",sr=[],ar={},nr={},Ue=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:p,...l}=e,d=i?.type===J&&Lo(J,{adaptive:t,...i?.props}),f=p?.type===kt&&Lo(kt,{...p?.props});return rr("div",{...l,className:a(e.className,go,{[`${go}-animated`]:o}),children:[d,Lo("div",{className:"k-actionsheet-content",children:n}),f]})};Ue.states=sr;Ue.options=ar;Ue.className=go;Ue.defaultOptions=nr;import{jsx as Xt,jsxs as pr}from"react/jsx-runtime";var _s="k-actionsheet",ir=[],lr={},vt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},te=e=>{let{side:t=vt.side,fullscreen:o=vt.fullscreen,adaptive:n=vt.adaptive,overlay:i=vt.overlay,template:p,children:l,header:d,footer:f,...b}=e;return pr("div",{className:"k-actionsheet-container",children:[i&&Xt("div",{className:"k-overlay"}),Xt(Ne,{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:Xt("div",{...b,className:a(e.className,_s,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:p||Xt(Ue,{header:d,footer:f,adaptive:n,...e,children:l})})})]})};te.states=ir;te.options=lr;te.className=_s;te.defaultOptions=vt;import{jsx as Fm}from"react/jsx-runtime";import{Fragment as dr,jsx as Lt,jsxs as Mo}from"react/jsx-runtime";var Io="k-actionsheet-item",cr=[s.hover,s.focus,s.selected,s.disabled],yo=e=>{let{iconName:t,text:o,description:n,hover:i,focus:p,selected:l,disabled:d,...f}=e;return Mo("span",{...f,className:a(e.className,Io,I(Io,{hover:i,focus:p,selected:l,disabled:d})),children:[!e.children&&Lt(dr,{children:Mo("span",{className:"k-actionsheet-action",children:[t&&Lt("span",{className:"k-icon-wrap",children:Lt(g,{className:"k-actionsheet-item-icon",icon:t})}),Mo("span",{className:"k-actionsheet-item-text",children:[o&&Lt("span",{className:"k-actionsheet-item-title",children:o}),n&&Lt("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};yo.states=cr;yo.className=Io;import{jsx as tu,jsxs as ou}from"react/jsx-runtime";import{jsx as ru}from"react/jsx-runtime";import{jsx as cu}from"react/jsx-runtime";import{jsx as fu}from"react/jsx-runtime";import{jsx as qe,jsxs as Co}from"react/jsx-runtime";var gt="k-slider",mr=[s.hover,s.focus,s.active,s.disabled,s.readonly],ur={},ge={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},F=e=>{let{type:t=ge.type,orientation:o=ge.orientation,readonly:n=ge.readonly,disabled:i=ge.disabled,handlePosition:p=ge.handlePosition,showButtons:l=ge.showButtons,showTicks:d=ge.showTicks,hover:f,focus:b,active:h,trackStyle:v,dir:c,...N}=e,S,L;return o==="horizontal"?(S=c==="rtl"?"caret-alt-left":"caret-alt-right",L=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(S="caret-alt-up",L="caret-alt-down"),Co("div",{...N,className:a(gt,e.className,I(gt,{readonly:n,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[l&&qe(k,{className:"k-button-decrease",rounded:"full",icon:L}),Co("div",{className:"k-slider-track-wrap",children:[d&&qe("ul",{className:"k-reset k-slider-items",children:e.children}),Co("div",{className:"k-slider-track",style:v,children:[qe("div",{className:"k-slider-selection"}),t==="range"&&qe("span",{className:a("k-draghandle","k-draghandle-start",I(gt,{hover:f,focus:b,active:h}))}),qe("span",{className:a("k-draghandle",`k-draghandle-${p}`,I(gt,{hover:f,focus:b,active:h}))})]})]}),l&&qe(k,{className:"k-button-increase",rounded:"full",icon:S})]})};F.states=mr;F.options=ur;F.className=gt;F.defaultOptions=ge;import{jsx as Js}from"react/jsx-runtime";var Fs="k-tick",fr=[],br={},Us={label:!1},Me=e=>{let{style:t,label:o=Us.label,orientation:n,large:i,text:p,...l}=e;return Js("li",{...l,className:a(e.className,Fs,{[`k-tick-${n}`]:n,"k-tick-large":i}),style:t,children:o&&Js("span",{className:"k-label",children:p})})};Me.states=fr;Me.options=br;Me.className=Fs;Me.defaultOptions=Us;import{Fragment as Ru,jsx as Ku,jsxs as Hu}from"react/jsx-runtime";import{Fragment as _u,jsx as Vu,jsxs as Xu}from"react/jsx-runtime";import{Fragment as Wu,jsx as qu,jsxs as Qu}from"react/jsx-runtime";import{Fragment as tf,jsx as ef,jsxs as of}from"react/jsx-runtime";import{jsx as xr}from"react/jsx-runtime";var To=e=>xr(F,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as hr}from"react/jsx-runtime";var Ao=e=>hr(F,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as qs,jsxs as Sr}from"react/jsx-runtime";var Ws="k-spin-button",Nr=[],kr={size:[r.small,r.medium,r.large],fillMode:[m.solid,m.flat,m.outline,m.clear,m.link]},Bo={size:r.medium,fillMode:m.solid},We=e=>{let{size:t=Bo.size,fillMode:o=Bo.fillMode,...n}=e;return Sr("span",{...n,className:a(Ws,e.className),children:[qs(k,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),qs(k,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};We.states=Nr;We.options=kr;We.className=Ws;We.defaultOptions=Bo;import{Fragment as Qs,jsx as ce,jsxs as Po}from"react/jsx-runtime";var Ys="k-numerictextbox",vr=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Lr={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},Oe={showSpinButton:!0,showClearButton:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},K=e=>{let{size:t=Oe.size,rounded:o=Oe.rounded,fillMode:n=Oe.fillMode,separators:i=Oe.separators,showClearButton:p=Oe.showClearButton,showSpinButton:l=Oe.showSpinButton,prefix:d,suffix:f,value:b,placeholder:h,hover:v,focus:c,valid:N,invalid:S,required:L,loading:C,disabled:T,readonly:z,...$}=e;return Po(P,{...$,size:t,rounded:o,fillMode:n,hover:v,focus:c,valid:N,invalid:S,required:L,loading:C,disabled:T,readonly:z,className:a(e.className,Ys),children:[d&&Po(Qs,{children:[ce(ae,{children:d}),i&&ce(le,{})]}),ce(ee,{placeholder:h,value:b}),ce(_,{valid:N,invalid:S,loading:C,disabled:T}),ce(X,{loading:C,disabled:T}),p&&ce(j,{loading:C,disabled:T,readonly:z,value:b}),f&&Po(Qs,{children:[i&&ce(le,{}),ce(ne,{children:f})]}),l&&ce(We,{className:"k-input-spinner",size:t,fillMode:n})]})};K.states=vr;K.options=Lr;K.className=Ys;K.defaultOptions=Oe;import{jsx as wf}from"react/jsx-runtime";import{jsx as Mr}from"react/jsx-runtime";var gr="k-no-data",Mt=e=>Mr("span",{className:a(gr,e.className),children:e.children});import{jsx as Qe,jsxs as js}from"react/jsx-runtime";var zo="k-list",Ir=[],yr={size:[r.small,r.medium,r.large]},ea={size:r.medium},w=e=>{let{size:t=ea.size,virtualization:o,children:n,optionLabel:i,customValue:p,screenReaders:l,...d}=e,f,b,h,v,c=[];return n?n.map((N,S)=>{N.type===G?(N.props.root===!0?(f=N.props.label,N.props.children.map((L,C)=>{c.push(Qe(y,{...L.props},`optChild-${C}-${new Date().getTime()}`))})):N.props.children.forEach((L,C)=>{let T="";C===0&&(T=N.props.label),c.push(Qe(y,{className:C===0?"k-first":"",...L.props,groupLabel:T},`groupLabel-${C}-${new Date().getTime()}`))}),b=Qe(G,{label:f,virtualization:o,children:c})):N.type===y&&(c.push(Qe(y,{...N.props},`${N.type}-${S}`)),h=Qe(Ye,{virtualization:o,children:c}),l&&(v=js(Mt,{className:"k-sr-only",children:[c.length," items found."]})))}):v=Qe(Mt,{children:"No data found."}),js("div",{...d,className:a(e.className,zo,M(zo,{size:t}),{"k-virtual-list":o}),children:[i,p,b,h,v]})};w.states=Ir;w.options=yr;w.className=zo;w.defaultOptions=ea;import{jsx as Ke,jsxs as Ar}from"react/jsx-runtime";var wo="k-list",Cr=[],Tr={size:[r.small,r.medium,r.large]},ta={size:r.medium},Re=e=>{let{size:t=ta.size,virtualization:o,children:n,...i}=e,p,l,d,f=[];return n?n.map((b,h)=>{b.type===G?(b.props.root===!0?(p=b.props.label,b.props.children.map((v,c)=>{f.push(Ke(y,{...v.props},`optChild-${c}-${new Date().getTime()}`))})):(f.push(Ke(oa,{...b.props,children:b.props.label},`listChild-${h}`)),b.props.children.map((v,c)=>{f.push(Ke(y,{...v.props},`fwOptChild-${c}-${new Date().getTime()}`))})),l=Ke(G,{label:p,virtualization:o,children:f})):b.type===y&&(f.push(Ke(y,{...b.props},`${b.type}-${h}`)),d=Ke(Ye,{virtualization:o,children:f}))}):d=Ke(Mt,{children:"No data found."}),Ar("div",{...i,className:a(e.className,wo,M(wo,{size:t}),{"k-virtual-list":o}),children:[l,d]})};Re.states=Cr;Re.options=Tr;Re.className=wo;Re.defaultOptions=ta;import{jsx as sa}from"react/jsx-runtime";var Jt="k-checkbox",Br=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],Pr={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full]},Eo={size:r.medium,rounded:x.medium},Ie=e=>{let{id:t,checked:o,indeterminate:n,hover:i,focus:p,disabled:l,invalid:d,valid:f,required:b,size:h=Eo.size,rounded:v=Eo.rounded,...c}=e;return sa("span",{className:"k-checkbox-wrap",children:sa("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:b,className:a(e.className,Jt,M(Jt,{size:h,rounded:v}),I(Jt,{hover:i,focus:p,disabled:l,invalid:d,valid:f,indeterminate:n,checked:o}))})})};Ie.states=Br;Ie.options=Pr;Ie.className=Jt;Ie.defaultOptions=Eo;import{jsx as Er}from"react/jsx-runtime";var aa="k-checkbox-list",zr=[],wr={},na={layout:"vertical"},Ze=e=>{let{layout:t=na.layout,...o}=e;return Er("ul",{...o,className:a(e.className,aa,{[`k-list-${t}`]:t}),children:e.children})};Ze.states=zr;Ze.options=wr;Ze.className=aa;Ze.defaultOptions=na;import{jsx as Hr}from"react/jsx-runtime";var ra="k-checkbox-list-item",Or=[],Kr={},Rr={},je=e=>{let{...t}=e;return Hr("li",{...t,className:a(e.className,ra),children:e.children})};je.states=Or;je.options=Kr;je.className=ra;je.defaultOptions=Rr;import{Fragment as lb,jsx as ib,jsxs as pb}from"react/jsx-runtime";import{Fragment as fb,jsx as ub,jsxs as bb}from"react/jsx-runtime";import{Fragment as Sb,jsx as kb,jsxs as vb}from"react/jsx-runtime";import{Fragment as yb,jsx as Ib,jsxs as Cb}from"react/jsx-runtime";import{jsx as Pb}from"react/jsx-runtime";import{jsx as Ob}from"react/jsx-runtime";import{jsx as Ft,jsxs as Vr}from"react/jsx-runtime";var Ko="k-list-item",Gr=[s.hover,s.focus,s.selected,s.disabled],$r={},Dr={},y=e=>{let{text:t,groupLabel:o,group:n,showIcon:i,iconName:p,showCheckbox:l,checked:d,hover:f,focus:b,selected:h,disabled:v,...c}=e,N=t||e.children;return Vr("li",{...c,className:a(e.className,n?"k-list-group-item":Ko,I(Ko,{hover:f,focus:b,disabled:v,selected:h})),children:[l&&Ft(Ie,{checked:d}),i&&Ft(g,{icon:p}),Ft("span",{className:"k-list-item-text",children:N}),o&&o!==""&&Ft("div",{className:"k-list-item-group-label",children:o})]})};y.states=Gr;y.options=$r;y.className=Ko;y.defaultOptions=Dr;import{jsx as Ro,jsxs as Xr}from"react/jsx-runtime";var _r="k-list-content",Ye=e=>{let{virtualization:t,...o}=e;return Xr("div",{...o,className:a(_r,e.className),children:[Ro("ul",{className:a("k-list-ul"),children:e.children}),t&&Ro("div",{className:"k-height-container",children:Ro("div",{})})]})};import{jsx as ia}from"react/jsx-runtime";var Jr="k-list-group-sticky-header",la=e=>ia("div",{className:a(Jr,e.className),children:ia("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Fr,jsx as pa,jsxs as Ur}from"react/jsx-runtime";var G=e=>{let{virtualization:t,label:o}=e;return Ur(Fr,{children:[o&&pa(la,{children:o}),e.children&&pa(Ye,{virtualization:t,children:e.children})]})};import{jsx as ca}from"react/jsx-runtime";var qr="k-list-group-item",oa=e=>ca("li",{className:a(qr,e.className),children:ca("span",{className:"k-list-item-text",children:e.children})});import{jsx as Zr}from"react/jsx-runtime";var Ho="k-list-optionlabel",Wr=[s.hover,s.focus,s.selected,s.disabled],Qr={},Yr={},Ut=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:p,...l}=e;return Zr("div",{...l,className:a(Ho,I(Ho,{hover:o,focus:n,selected:i,disabled:p})),children:t})};Ut.states=Wr;Ut.options=Qr;Ut.className=Ho;Ut.defaultOptions=Yr;import{jsx as oi}from"react/jsx-runtime";var Go="k-list-custom-value",jr=[s.hover,s.focus,s.selected,s.disabled],ei={},ti={},ye=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:p,...l}=e;return oi("div",{...l,className:a(Go,I(Go,{hover:o,focus:n,selected:i,disabled:p})),children:t})};ye.states=jr;ye.options=ei;ye.className=Go;ye.defaultOptions=ti;import{jsx as Nx}from"react/jsx-runtime";import{jsx as Lx}from"react/jsx-runtime";import{jsx as yx,jsxs as Cx}from"react/jsx-runtime";import{jsx as Px,jsxs as zx}from"react/jsx-runtime";import{jsx as Kx}from"react/jsx-runtime";import{jsx as $x,jsxs as Dx}from"react/jsx-runtime";import{jsx as Jx,jsxs as Fx}from"react/jsx-runtime";import{Fragment as ni,jsx as D,jsxs as $o}from"react/jsx-runtime";var da="k-dropdownlist",si=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],ai={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},et={showValue:!0,arrowIconName:"caret-alt-down",size:r.medium,rounded:x.medium,fillMode:m.solid},Ce=e=>{let{size:t=et.size,rounded:o=et.rounded,fillMode:n=et.fillMode,arrowIconName:i=et.arrowIconName,showValue:p=et.showValue,valueIconName:l,prefix:d,suffix:f,value:b,placeholder:h,hover:v,focus:c,valid:N,invalid:S,required:L,loading:C,disabled:T,readonly:z,popup:$,opened:be,adaptive:dt,adaptiveSettings:mt,adaptiveTitle:oo,adaptiveSubtitle:so,adaptiveFilter:wa,...Ea}=e;return $o(ni,{children:[$o(Z,{...Ea,size:t,rounded:o,fillMode:n,hover:v,focus:c,valid:N,invalid:S,required:L,loading:C,disabled:T,readonly:z,className:a(e.className,da,{"k-icon-picker":!p&&l}),children:[D(ae,{children:d}),D(we,{placeholder:h,value:b,showValue:p,valueIconName:l}),D(_,{valid:N,invalid:S,loading:C,disabled:T}),D(X,{loading:C,disabled:T}),D(ne,{children:f}),D(k,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),be&&$&&D(H,{className:"k-list-container k-dropdownlist-popup",children:$}),dt&&D(te,{adaptive:!0,...mt,header:D(J,{actionsEnd:D(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:wa,inputValue:b,inputPlaceholder:h,title:oo,subtitle:so}),children:D("div",{className:"k-list-container",children:$o(w,{size:"large",children:[D(y,{text:"List item"}),D(y,{text:"List item"}),D(y,{text:"List item"})]})})})]})};Ce.states=si;Ce.options=ai;Ce.className=da;Ce.defaultOptions=et;import{jsx as Lh}from"react/jsx-runtime";import{jsx as Ch,jsxs as Th}from"react/jsx-runtime";import{Fragment as Kh,jsx as Eh,jsxs as Oh}from"react/jsx-runtime";import{jsx as $h}from"react/jsx-runtime";import{jsx as Jh,jsxs as Fh}from"react/jsx-runtime";import{jsx as Yh,jsxs as Zh}from"react/jsx-runtime";import{Fragment as rN,jsx as aN,jsxs as nN}from"react/jsx-runtime";import{Fragment as fN,jsx as mN,jsxs as uN}from"react/jsx-runtime";import{Fragment as BN,jsx as AN}from"react/jsx-runtime";import{Fragment as RN,jsx as KN}from"react/jsx-runtime";import{Fragment as It,jsx as A,jsxs as O}from"react/jsx-runtime";var ma="k-colorgradient-inputs",ri=[],ii={size:[r.small,r.medium,r.large]},ua={mode:"rgba",size:r.medium},tt=e=>{let{mode:t=ua.mode,size:o,...n}=e;return O("div",{...n,className:a(ma,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(k,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&O(It,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&O(It,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&O(It,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&O(It,{children:[O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(It,{children:O("div",{className:"k-vstack k-flex-1",children:[A(ve,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};tt.states=ri;tt.options=ii;tt.className=ma;tt.defaultOptions=ua;import{jsx as Ge,jsxs as $e}from"react/jsx-runtime";var fa="k-colorgradient-color-contrast",li=[],pi={},ci={},ot=()=>$e("div",{className:a(fa,"k-vbox"),children:[$e("div",{className:"k-contrast-ratio",children:[Ge("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),$e("span",{className:"k-contrast-validation !k-text-success",children:[Ge(g,{icon:"check"}),Ge(g,{icon:"check"})]})]}),$e("div",{children:[Ge("span",{children:"AA: 4.5"}),$e("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ge(g,{icon:"check"})]})]}),$e("div",{children:[Ge("span",{children:"AAA: 7.0"}),$e("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ge(g,{icon:"x"})]})]})]});ot.states=li;ot.options=pi;ot.className=fa;ot.defaultOptions=ci;import{jsx as U,jsxs as yt}from"react/jsx-runtime";var qt="k-colorgradient",di=[s.hover,s.focus,s.readonly,s.disabled],mi={size:[r.small,r.medium,r.large]},oe={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"},Te=e=>{let{size:t=oe.size,mode:o=oe.mode,readonly:n=oe.readonly,disabled:i=oe.disabled,gradientStyle:p=oe.gradientStyle,dragHandleStyle:l=oe.dragHandleStyle,alphaStyle:d=oe.alphaStyle,alphaStyleHorizontal:f=oe.alphaStyleHorizontal,contrast:b=oe.contrast,dir:h,hover:v,focus:c,hoverHandle:N,focusHandle:S,canvasOrientation:L=oe.canvasOrientation,...C}=e;return yt("div",{...C,className:a(e.className,qt,M(qt,{size:t}),I(qt,{hover:v,focus:c,readonly:n,disabled:i})),dir:h,children:[!L||L==="horizontal"&&yt("div",{className:"k-colorgradient-canvas k-hstack",children:[U("div",{className:"k-hsv-rectangle",style:p,children:U("div",{className:"k-hsv-gradient",children:U("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":S}),style:l})})}),yt("div",{className:"k-hsv-controls k-hstack",children:[U(Ao,{className:"k-hue-slider",hover:N,focus:S}),o!=="rgb"&&o!=="hsv"&&U(Ao,{className:"k-alpha-slider",hover:N,focus:S,trackStyle:d})]})]}),L==="vertical"&&yt("div",{className:"k-colorgradient-canvas k-vstack",children:[U("div",{className:"k-hsv-rectangle",style:p,children:U("div",{className:"k-hsv-gradient",children:U("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":S}),style:l})})}),yt("div",{className:"k-hsv-controls k-vstack",children:[U(To,{className:"k-hue-slider",hover:N,focus:S}),o!=="rgb"&&o!=="hsv"&&U(To,{className:"k-alpha-slider",hover:N,focus:S,trackStyle:f})]})]}),U(tt,{mode:e.mode,size:t}),b&&U(ot,{})]})};Te.states=di;Te.options=mi;Te.className=qt;Te.defaultOptions=oe;import{jsx as lk}from"react/jsx-runtime";import{jsx as mk}from"react/jsx-runtime";import{jsx as ui}from"react/jsx-runtime";var ba=e=>ui("tr",{children:e.children});import{jsx as xi}from"react/jsx-runtime";var Do="k-colorpalette-tile",fi=[s.hover,s.focus,s.selected],bi={},Ct=e=>{let{color:t,tileSize:o,hover:n,focus:i,selected:p,...l}=e,d={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return xi("td",{...l,className:a(e.className,Do,I(Do,{hover:n,focus:i,selected:p})),style:d})};Ct.states=fi;Ct.options=bi;Ct.className=Do;import{jsx as Tt}from"react/jsx-runtime";var Wt="k-colorpalette",hi=[s.disabled],Ni={size:[r.small,r.medium,r.large]},Vo={columns:10,size:r.medium},st=e=>{let{size:t=Vo.size,palette:o,columns:n=Vo.columns,tileSize:i,disabled:p,...l}=e,d=[];if(o){let f=n||o.columns,b=o.colors?o.colors:o;Array.isArray(b)&&Array.from({length:Math.ceil(b.length/f)},(h,v)=>{let c=[];b.slice(v*f,(v+1)*f).map((S,L)=>{c.push(Tt(Ct,{color:S,tileSize:i},L))});let N=Tt(ba,{children:c},v);d.push(N)})}return Tt("div",{...l,className:a(e.className,Wt,I(Wt,{disabled:p}),M(Wt,{size:t})),children:Tt("table",{className:"k-colorpalette-table",children:Tt("tbody",{children:d.length>0?d:e.children})})})};st.states=hi;st.options=Ni;st.className=Wt;st.defaultOptions=Vo;var _o={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 Ok}from"react/jsx-runtime";import{jsx as q,jsxs as at}from"react/jsx-runtime";var Qt="k-coloreditor",ki=[s.focus],Si={size:[r.small,r.medium,r.large]},nt={size:r.medium,view:"gradient",palette:_o.office,actionButtons:!0,canvasOrientation:"horizontal"},re=e=>{let{size:t=nt.size,view:o=nt.view,palette:n=nt.palette,color:i,currentColor:p,focus:l,focusView:d,dir:f,group:b,actionButtons:h=nt.actionButtons,canvasOrientation:v=nt.canvasOrientation,...c}=e;return at("div",{...c,className:a(e.className,"k-flatcolorpicker",Qt,M(Qt,{size:t}),I(Qt,{focus:l})),dir:f,children:[at("div",{className:"k-coloreditor-header k-hstack",children:[q("div",{className:"k-coloreditor-header-actions k-hstack",children:b&&at(E,{fillMode:"flat",children:[q(k,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),q(k,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),q("div",{className:"k-spacer"}),at("div",{className:"k-coloreditor-header-actions k-hstack",children:[q(k,{fillMode:"flat",icon:"droplet-slash",size:t}),at("div",{className:"k-coloreditor-preview k-vstack",children:[q(he,{className:"k-coloreditor-preview-color",color:i}),q(he,{className:"k-coloreditor-current-color",color:p})]})]})]}),q("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?q(Te,{focus:d,size:t,canvasOrientation:v}):q(st,{palette:n,size:t})}),h&&at(ke,{className:"k-coloreditor-footer",alignment:"start",children:[q(k,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),q(k,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};re.states=ki;re.options=Si;re.className=Qt;re.defaultOptions=nt;import{jsx as eS}from"react/jsx-runtime";import{jsx as aS}from"react/jsx-runtime";import{jsx as lS}from"react/jsx-runtime";import{jsx as mS}from"react/jsx-runtime";import{Fragment as gi,jsx as W,jsxs as Jo}from"react/jsx-runtime";var xa="k-colorpicker",vi=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled],Li={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},At={arrowIconName:"caret-alt-down",size:Z.defaultOptions.size,rounded:Z.defaultOptions.rounded,fillMode:Z.defaultOptions.fillMode},de=e=>{let{size:t=At.size,rounded:o=At.rounded,fillMode:n=At.fillMode,arrowIconName:i=At.arrowIconName,prefix:p,suffix:l,value:d,placeholder:f,hover:b,focus:h,valid:v,invalid:c,required:N,disabled:S,valueIconName:L,popup:C,opened:T,adaptive:z,adaptiveSettings:$,adaptiveTitle:be,adaptiveSubtitle:dt,...mt}=e;return Jo(gi,{children:[Jo(Z,{...mt,size:t,rounded:o,fillMode:n,hover:b,focus:h,valid:v,invalid:c,required:N,disabled:S,className:a(e.className,xa,"k-icon-picker"),children:[W(ae,{children:p}),W(we,{placeholder:f,value:d,showValue:!1,valueIcon:W(he,{className:"k-value-icon",color:d,iconName:L}),valueIconName:L}),W(ne,{children:l}),W(k,{className:"k-input-button",icon:i,rounded:null,size:t,fillMode:n})]}),T&&C&&W(H,{className:"k-colorpicker-popup",childre