@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 85.8 kB
JavaScript
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var k=(e,t)=>n({[`${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"}),g=(e,t)=>{let{valid:o,invalid:s,hover:r,focus:p,checked:l,active:c,selected:u,disabled:N,indeterminate:h,loading:S,empty:d,readonly:M,highlighted:L,...E}=t;return n({"k-valid":o,"k-invalid":s,"k-hover":r,"k-focus":p,"k-checked":l,"k-active":c,"k-selected":u,"k-disabled":N,"k-indeterminate":h&&!l,"k-loading":S,"k-empty":d,"k-readonly":M,"k-highlighted":L},Object.keys(E).reduce((C,A)=>(A.startsWith("k-")?C[A]=E[A]:C[`k-${A}`]=E[A],C),{}))};function yo(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(s=>[`k-${s}`,!0]))}var i={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},x={small:"small",medium:"medium",large:"large",full:"full"},b={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},m={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},a={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"};var ln="textarea",es=ln;var Zt="input",Io=Zt;import{jsx as Ri}from"react/jsx-runtime";var Bo="k-input",_i=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ki={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[b.solid,b.flat,b.outline]},_o={size:i.medium,rounded:i.medium,fillMode:b.solid},y=e=>{let{hover:t,focus:o,disabled:s,invalid:r,valid:p,loading:l,readonly:c,size:u=_o.size,rounded:N=_o.rounded,fillMode:h=_o.fillMode,...S}=e;return Ri("span",{...S,className:n(e.className,Bo,k(Bo,{size:u,rounded:N,fillMode:h}),g(Bo,{hover:t,focus:o,disabled:s,invalid:r,valid:p,loading:l,readonly:c}))})};y.states=_i;y.options=Ki;y.className=Bo;y.defaultOptions=_o;y.moduleName=Zt;y.folderName=Io;import{jsx as wi}from"react/jsx-runtime";var Ko="k-picker",Pi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Di={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[b.solid,b.flat,b.outline]},Ro={size:i.medium,rounded:x.medium,fillMode:b.solid},V=e=>{let{hover:t,focus:o,disabled:s,invalid:r,valid:p,loading:l,readonly:c,size:u=Ro.size,rounded:N=Ro.rounded,fillMode:h=Ro.fillMode,...S}=e;return wi("span",{...S,className:n(e.className,Ko,k(Ko,{size:u,rounded:N,fillMode:h}),g(Ko,{hover:t,focus:o,disabled:s,invalid:r,valid:p,loading:l,readonly:c})),children:e.children})};V.states=Pi;V.options=Di;V.className=Ko;V.defaultOptions=Ro;V.moduleName=Zt;V.folderName=Io;import{Fragment as Gi,jsx as ts}from"react/jsx-runtime";var pn="k-font-icon",Hi=[],zi={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Ui={},Yt=e=>{let{size:t,themeColor:o,icon:s,rotate:r,flip:p,...l}=e;return s?ts("span",{...l,className:n(e.className,pn,k(pn,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):ts(Gi,{})};Yt.states=Hi;Yt.options=zi;Yt.className=pn;Yt.defaultOptions=Ui;var os=Yt;import{Fragment as Xi,jsx as Po}from"react/jsx-runtime";var mn="k-svg-icon",Fi=[],$i={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},ns={viewBox:"0 0 24 24"},Qt=e=>{let{size:t,themeColor:o,rotate:s,flip:r,viewBox:p=ns.viewBox,icon:l,...c}=e;if(!l)return Po(Xi,{});l==="none"&&{...c,className:n(e.className,mn,"k-none")};let u=typeof l=="object"&&l.name&&l.name;return Po("span",{...c,className:n(e.className,mn,k("k-icon",{size:t}),{[`k-svg-i-${u}`]:u,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:Po("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})})};Qt.states=Fi;Qt.options=$i;Qt.className=mn;Qt.defaultOptions=ns;var cn=Qt;import*as dn from"@progress/kendo-svg-icons";var as="icon",ss="icons";import{Fragment as rs,jsx as jt}from"react/jsx-runtime";var Do="k-icon",Vi=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ji=[],Wi={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},un={viewBox:"0 0 24 24",type:"svg"},v=e=>{let{size:t,themeColor:o,icon:s,type:r=un.type,rotate:p,flip:l,viewBox:c=un.viewBox,...u}=e;if(!s)return jt(rs,{});if(r==="svg"){if(s==="none")return jt(cn,{...u,className:n(e.className,Do),icon:s,size:t});let N=dn[s]?s:Vi(`${s}-icon`);return dn[N]?jt(cn,{...u,className:n(e.className,Do),icon:dn[N],size:t,themeColor:o,rotate:p,flip:l,viewBox:c}):jt(rs,{})}return jt(os,{...u,className:n(e.className,Do),icon:s,size:t,themeColor:o,rotate:p,flip:l})};v.states=Ji;v.options=Wi;v.defaultOptions=un;v.className=Do;v.moduleName=as;v.folderName=ss;import{Fragment as Yi,jsx as fn}from"react/jsx-runtime";var is="k-clear-value",qi=[a.disabled,a.loading,a.readonly],Zi={},me=e=>{let{disabled:t,loading:o,readonly:s,value:r}=e;return t||s||o||!r?fn(Yi,{}):fn("span",{className:n(e.className,is),children:fn(v,{icon:"x"})})};me.states=qi;me.options=Zi;me.className=is;import{jsx as el}from"react/jsx-runtime";var bn="k-input-inner",Qi=[],ji={},wo={type:"text",autocomplete:"off",value:"",placeholder:""},ce=e=>{let{value:t=wo.value,type:o=wo.type,placeholder:s=wo.placeholder,autocomplete:r=wo.autocomplete,...p}=e;return el("input",{...p,type:o,className:n(e.className,bn,k(bn,e)),placeholder:s,autoComplete:r,defaultValue:t})};ce.states=Qi;ce.options=ji;ce.className=bn;import{jsx as ls,jsxs as nl}from"react/jsx-runtime";var Nn="k-input-inner",tl=[],ol={},at=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:r,valueIconName:p,...l}=e;return nl("span",{...l,className:n(e.className,Nn,k(Nn,e)),children:[r,!r&&p&&ls(v,{className:"k-input-value-icon",icon:p}),s&&!t&&o,s&&t&&ls("span",{className:"k-input-value-text",children:t})]})};at.states=tl;at.options=ol;at.className=Nn;import{jsx as rl}from"react/jsx-runtime";var xn="k-input-inner",al=[],sl={},ps={value:"",placeholder:""},eo=e=>{let{value:t=ps.value,placeholder:o=ps.placeholder,rows:s,...r}=e;return rl("textarea",{...r,className:n(e.className,xn,k(xn,e)),placeholder:o,rows:s,defaultValue:t})};eo.states=al;eo.options=sl;eo.className=xn;import{Fragment as ll,jsx as ms}from"react/jsx-runtime";var cs="k-input-loading-icon",il=[a.disabled,a.loading],Q=e=>{let{disabled:t,loading:o}=e;return t||!o?ms(ll,{}):ms("span",{className:n(e.className,cs,"k-icon k-i-loading")})};Q.states=il;Q.className=cs;import{Fragment as cl,jsx as ds}from"react/jsx-runtime";var us="k-input-validation-icon",pl=[a.valid,a.invalid,a.disabled,a.loading],ml={},J=e=>{let{valid:t,invalid:o,disabled:s,loading:r}=e,p=o?"warning-circle":"check-circle";return s||r||!!!(t||o)?ds(cl,{}):ds(v,{className:n(us),icon:p})};J.states=pl;J.options=ml;J.className=us;import{Fragment as fl,jsx as fs}from"react/jsx-runtime";var dl="k-input-prefix",ul={direction:"horizontal"},j=e=>{let{direction:t=ul.direction,...o}=e;return e.children?fs("span",{...o,className:n(dl,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):fs(fl,{})};import{Fragment as xl,jsx as bs}from"react/jsx-runtime";var bl="k-input-suffix",Nl={direction:"horizontal"},ee=e=>{let{direction:t=Nl.direction,...o}=e;return e.children?bs("span",{...o,className:n(bl,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):bs(xl,{})};import{jsx as Eu}from"react/jsx-runtime";import{jsx as Cu}from"react/jsx-runtime";import{jsx as Ll}from"react/jsx-runtime";var Ns="k-input-separator",hl={direction:"vertical"},te=e=>{let{direction:t=hl.direction,...o}=e;return Ll("span",{...o,className:n(Ns,e.className,{[`${Ns}-${t}`]:t})})};import{Fragment as xs,jsx as to,jsxs as hn}from"react/jsx-runtime";var hs="k-textarea",Ml=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],vl={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[b.solid,b.flat,b.outline]},Te={size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,flow:"vertical",affixesOrientation:"horizontal",resize:"both",prefixSeparator:!0,suffixSeparator:!0},ze=e=>{let{size:t=Te.size,rounded:o=Te.rounded,fillMode:s=Te.fillMode,prefixSeparator:r=Te.prefixSeparator,suffixSeparator:p=Te.prefixSeparator,affixesOrientation:l=Te.affixesOrientation,flow:c=Te.flow,resize:u=Te.resize,prefix:N,suffix:h,rows:S,value:d,placeholder:M,hover:L,focus:E,valid:C,invalid:A,required:B,disabled:H,...he}=e;return hn(y,{...he,size:t,rounded:o,fillMode:s,hover:L,focus:E,valid:C,invalid:A,required:B,disabled:H,className:n(e.className,hs,{"!k-flex-col":c==="vertical","!k-flex-row":c==="horizontal"}),children:[N&&hn(xs,{children:[to(j,{className:n({"!k-align-items-start":c===l}),direction:l,children:N}),r&&to(te,{direction:c==="horizontal"?"vertical":"horizontal"})]}),to(eo,{className:n("!k-overflow-auto",{"!k-flex-none":c==="vertical","k-resize-x":u==="x","k-resize-y":u==="y","k-resize":u==="both","k-resize-none":u==="none"}),value:d,placeholder:M,rows:S}),h&&hn(xs,{children:[p&&to(te,{direction:c==="horizontal"?"vertical":"horizontal"}),to(ee,{className:n({"!k-align-items-start":c===l}),direction:l,children:h})]})]})};ze.states=Ml;ze.options=vl;ze.className=hs;ze.defaultOptions=Te;ze.moduleName=ln;ze.folderName=es;import{jsx as ju}from"react/jsx-runtime";import{Fragment as sf,jsx as af}from"react/jsx-runtime";var Ln="button",Ms=Ln;import{Fragment as kl,jsx as oo,jsxs as vs}from"react/jsx-runtime";var no="k-button",Sl=["icon-button"],El=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],gl={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark,m.inverse]},st={size:i.medium,rounded:x.medium,fillMode:b.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},f=e=>{let{size:t=st.size,rounded:o=st.rounded,fillMode:s=st.fillMode,themeColor:r=st.themeColor,showArrow:p=st.showArrow,arrowIconName:l=st.arrowIconName,variant:c,hover:u,focus:N,active:h,selected:S,disabled:d,icon:M,text:L,iconClassName:E,...C}=e,A=M!==void 0,B=e.children!==void 0;return vs("button",{...C,className:n(e.className,no,yo(no,c),k(no,{size:t,rounded:o,fillMode:s,themeColor:r}),g(no,{hover:u,focus:N,active:h,disabled:d,selected:S}),{"k-icon-button":!L&&!B&&A}),children:[M&&oo(v,{className:n(E,"k-button-icon"),icon:M}),L?vs(kl,{children:[L&&oo("span",{className:"k-button-text",children:L}),e.children]}):e.children&&oo("span",{className:"k-button-text",children:e.children}),p&&oo("span",{className:"k-menu-button-arrow k-button-arrow",children:oo(v,{icon:l})})]})};f.states=El;f.options=gl;f.variants=Sl;f.className=no;f.defaultOptions=st;f.moduleName=Ln;f.folderName=Ms;import{jsx as Al}from"react/jsx-runtime";var Oe=e=>Al(f,{icon:"folder",...e,children:void 0});import{jsx as Cl}from"react/jsx-runtime";var Mn=e=>Cl(f,{icon:"folder",children:"Button",...e});import{jsx as Sf}from"react/jsx-runtime";import{Fragment as _f,jsx as Bf}from"react/jsx-runtime";var vn="button",Ss=vn;import{jsx as yl}from"react/jsx-runtime";var ao="k-button-group",Tl=[a.disabled],Ol={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},Es={fillMode:b.solid},K=e=>{let{fillMode:t=Es.fillMode,disabled:o,stretched:s,...r}=e;return yl("div",{...r,className:n(e.className,ao,k(ao,{fillMode:t}),g(ao,{disabled:o}),{[`${ao}-stretched`]:s}),children:e.children})};K.states=Tl;K.options=Ol;K.className=ao;K.defaultOptions=Es;K.moduleName=vn;K.folderName=Ss;import{Fragment as qf,jsx as Wf,jsxs as Zf}from"react/jsx-runtime";import{Fragment as ob,jsx as tb,jsxs as nb}from"react/jsx-runtime";import{Fragment as pb,jsx as lb,jsxs as mb}from"react/jsx-runtime";import{Fragment as Nb,jsx as bb,jsxs as xb}from"react/jsx-runtime";import{jsx as gs,jsxs as _l}from"react/jsx-runtime";var ks="k-color-preview",Il=[],Bl={},Ue=e=>{let{color:t,iconName:o,...s}=e;return _l("span",{...s,className:n(e.className,ks,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&gs(v,{icon:o,className:"k-color-preview-icon"}),gs("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ue.states=Il;Ue.options=Bl;Ue.className=ks;var Sn="popup",As=Sn;import{jsx as Cs}from"react/jsx-runtime";var Ts="k-animation-container",Kl=[],Rl={},Os={positionMode:"absolute"},Le=e=>{let{positionMode:t=Os.positionMode,animationStyle:o,offset:s,...r}=e;return Cs("div",{...r,style:{...s,...e.style},className:n(e.className,Ts,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Cs("div",{className:"k-child-animation-container",style:o,children:e.children})})};Le.states=Kl;Le.options=Rl;Le.className=Ts;Le.defaultOptions=Os;Le.moduleName=Sn;Le.folderName=As;var En="popup",ys=En;import{jsx as Is}from"react/jsx-runtime";var Bs="k-popup",Pl=[],Dl={},_s={positionMode:"absolute"},D=e=>{let{offset:t,positionMode:o=_s.positionMode,animationStyle:s,...r}=e;return Is(Le,{positionMode:o,offset:t,animationStyle:s,children:Is("div",{...r,className:n(e.className,Bs),children:e.children})})};D.states=Pl;D.options=Dl;D.className=Bs;D.defaultOptions=_s;D.moduleName=En;D.folderName=ys;var gn="action-buttons",Ks=gn;import{jsx as zl}from"react/jsx-runtime";var Ho="k-actions",wl=[],Hl={},kn={alignment:"start",orientation:"horizontal"},W=e=>{let{alignment:t=kn.alignment,orientation:o=kn.orientation,...s}=e;return zl("div",{...s,className:n(Ho,{[`${Ho}-${t}`]:t,[`${Ho}-${o}`]:o},e.className),children:e.children})};W.states=wl;W.options=Hl;W.className=Ho;W.defaultOptions=kn;W.moduleName=gn;W.folderName=Ks;var Rs=W;import{jsx as Gl}from"react/jsx-runtime";var Ul="k-actionsheet-footer",Ps={alignment:"stretched",orientation:"horizontal"},so=e=>{let{alignment:t=Ps.alignment,orientation:o=Ps.orientation,template:s,as:r=s?"div":W,...p}=e;return Gl(r,{...p,...!s&&{alignment:t,orientation:o},className:n(e.className,Ul),children:e.children})};var An="searchbox",Ds=An;import{jsx as ro,jsxs as Xl}from"react/jsx-runtime";var ws="k-searchbox",Fl=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],$l={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[b.solid,b.flat,b.outline]},Cn={showIcon:!0,icon:"search",size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode},de=e=>{let{value:t,placeholder:o,size:s,rounded:r,fillMode:p,hover:l,focus:c,valid:u,invalid:N,required:h,loading:S,disabled:d,showIcon:M=Cn.showIcon,icon:L=Cn.icon,...E}=e;return Xl(y,{...E,size:s,rounded:r,fillMode:p,hover:l,focus:c,valid:u,invalid:N,required:h,loading:S,disabled:d,className:n(e.className,ws),children:[M&&ro(v,{className:"k-input-icon",icon:L}),ro(ce,{placeholder:o,value:t}),ro(Q,{...e}),ro(J,{...e}),ro(me,{...e})]})};de.states=Fl;de.options=$l;de.className=ws;de.defaultOptions=Cn;de.moduleName=An;de.folderName=Ds;import{jsx as uN}from"react/jsx-runtime";var Tn="textbox",Hs=Tn;import{Fragment as zs,jsx as Ge,jsxs as On}from"react/jsx-runtime";var Us="k-textbox",Vl=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Jl={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[b.solid,b.flat,b.outline]},rt={showClearButton:!0,showValidationIcon:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},Me=e=>{let{size:t=rt.size,rounded:o=rt.rounded,fillMode:s=rt.fillMode,separators:r=rt.separators,showClearButton:p=rt.showClearButton,showValidationIcon:l=rt.showValidationIcon,prefix:c,suffix:u,type:N,value:h,placeholder:S,hover:d,focus:M,valid:L,invalid:E,required:C,loading:A,disabled:B,readonly:H,...he}=e;return On(y,{...he,size:t,rounded:o,fillMode:s,hover:d,focus:M,valid:L,invalid:E,required:C,loading:A,disabled:B,readonly:H,className:n(e.className,Us),children:[c&&On(zs,{children:[Ge(j,{children:c}),r&&Ge(te,{})]}),Ge(ce,{placeholder:S,value:h,type:N}),l&&Ge(J,{valid:L,invalid:E,loading:A,disabled:B}),Ge(Q,{loading:A,disabled:B}),p&&Ge(me,{loading:A,disabled:B,readonly:H,value:h}),u&&On(zs,{children:[r&&Ge(te,{}),Ge(ee,{children:u})]})]})};Me.states=Vl;Me.options=Jl;Me.className=Us;Me.defaultOptions=rt;Me.moduleName=Tn;Me.folderName=Hs;import{jsx as AN}from"react/jsx-runtime";import{Fragment as BN,jsx as IN}from"react/jsx-runtime";import{Fragment as HN,jsx as wN}from"react/jsx-runtime";import{jsx as Fe,jsxs as yn}from"react/jsx-runtime";var Fs="k-actionsheet-titlebar",Wl={},oe=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:r,filter:p,input:l,inputValue:c,inputPlaceholder:u,adaptive:N,children:h,...S}=e;return yn("div",{...S,className:n(e.className,Fs),children:[yn("div",{className:"k-actionsheet-titlebar-group",children:[s&&Fe("div",{className:"k-actionsheet-actions",children:s}),!h&&yn("div",{className:"k-actionsheet-title",children:[t&&Fe("div",{className:"k-text-center",children:t}),o&&Fe("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&Fe("div",{className:"k-actionsheet-title",children:h}),r&&Fe("div",{className:"k-actionsheet-actions",children:r})]}),(l||p)&&Fe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Fe(Me,{value:c,placeholder:u,size:N?"large":"medium"}):Fe(de,{placeholder:"Filter",size:N?"large":"medium"})})]})};oe.className=Fs;oe.defaultOptions=Wl;import{jsx as In,jsxs as Ql}from"react/jsx-runtime";var Bn="k-actionsheet-view",ql=[],Zl={},Yl={},gt=e=>{let{adaptive:t,animated:o,children:s,header:r,footer:p,...l}=e,c=r?.type===oe&&In(oe,{adaptive:t,...r?.props}),u=p?.type===so&&In(so,{...p?.props});return Ql("div",{...l,className:n(e.className,Bn,{[`${Bn}-animated`]:o}),children:[c,In("div",{className:"k-actionsheet-content",children:s}),u]})};gt.states=ql;gt.options=Zl;gt.className=Bn;gt.defaultOptions=Yl;var io="action-sheet",zo=io;import{jsx as Uo,jsxs as tp}from"react/jsx-runtime";var $s="k-actionsheet",jl=[],ep={},lo={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},q=e=>{let{side:t=lo.side,fullscreen:o=lo.fullscreen,adaptive:s=lo.adaptive,overlay:r=lo.overlay,template:p,children:l,header:c,footer:u,...N}=e;return tp("div",{className:"k-actionsheet-container",children:[r&&Uo("div",{className:"k-overlay"}),Uo(Le,{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:Uo("div",{...N,className:n(e.className,$s,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:p||Uo(gt,{header:c,footer:u,adaptive:s,...e,children:l})})})]})};q.states=jl;q.options=ep;q.className=$s;q.defaultOptions=lo;q.moduleName=io;q.folderName=zo;import{jsx as sp}from"react/jsx-runtime";var Xs="k-actionsheet-container",op=[],np={},ap={},kt=e=>{let{children:t,...o}=e;return sp("div",{...o,className:Xs,children:t})};kt.states=op;kt.options=np;kt.className=Xs;kt.defaultOptions=ap;kt.moduleName=io;kt.folderName=zo;import{jsx as fx}from"react/jsx-runtime";import{Fragment as ip,jsx as po,jsxs as _n}from"react/jsx-runtime";var Kn="k-actionsheet-item",rp=[a.hover,a.focus,a.selected,a.disabled],Rn=e=>{let{iconName:t,text:o,description:s,hover:r,focus:p,selected:l,disabled:c,...u}=e;return _n("span",{...u,className:n(e.className,Kn,g(Kn,{hover:r,focus:p,selected:l,disabled:c})),children:[!e.children&&po(ip,{children:_n("span",{className:"k-actionsheet-action",children:[t&&po("span",{className:"k-icon-wrap",children:po(v,{className:"k-actionsheet-item-icon",icon:t})}),_n("span",{className:"k-actionsheet-item-text",children:[o&&po("span",{className:"k-actionsheet-item-title",children:o}),s&&po("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};Rn.states=rp;Rn.className=Kn;import{jsx as Ex,jsxs as gx}from"react/jsx-runtime";import{jsx as Tx}from"react/jsx-runtime";import{jsx as Bx}from"react/jsx-runtime";import{jsx as Px}from"react/jsx-runtime";var Pn="slider",Js=Pn;import{jsx as At,jsxs as Dn}from"react/jsx-runtime";var mo="k-slider",lp=[a.hover,a.focus,a.active,a.disabled,a.readonly],pp={},$e={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},F=e=>{let{type:t=$e.type,orientation:o=$e.orientation,readonly:s=$e.readonly,disabled:r=$e.disabled,handlePosition:p=$e.handlePosition,showButtons:l=$e.showButtons,showTicks:c=$e.showTicks,hover:u,focus:N,active:h,trackStyle:S,dir:d,...M}=e,L,E;return o==="horizontal"?(L=d==="rtl"?"caret-alt-left":"caret-alt-right",E=d==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(L="caret-alt-up",E="caret-alt-down"),Dn("div",{...M,className:n(mo,e.className,g(mo,{readonly:s,disabled:r}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:d,children:[l&&At(f,{className:"k-button-decrease",rounded:"full",icon:E}),Dn("div",{className:"k-slider-track-wrap",children:[c&&At("ul",{className:"k-reset k-slider-items",children:e.children}),Dn("div",{className:"k-slider-track",style:S,children:[At("div",{className:"k-slider-selection"}),t==="range"&&At("span",{className:n("k-draghandle","k-draghandle-start",g(mo,{hover:u,focus:N,active:h}))}),At("span",{className:n("k-draghandle",`k-draghandle-${p}`,g(mo,{hover:u,focus:N,active:h}))})]})]}),l&&At(f,{className:"k-button-increase",rounded:"full",icon:L})]})};F.states=lp;F.options=pp;F.className=mo;F.defaultOptions=$e;F.moduleName=Pn;F.folderName=Js;import{jsx as Ws}from"react/jsx-runtime";var qs="k-tick",mp=[],cp={},Zs={label:!1},Xe=e=>{let{style:t,label:o=Zs.label,orientation:s,large:r,text:p,...l}=e;return Ws("li",{...l,className:n(e.className,qs,{[`k-tick-${s}`]:s,"k-tick-large":r}),style:t,children:o&&Ws("span",{className:"k-label",children:p})})};Xe.states=mp;Xe.options=cp;Xe.className=qs;Xe.defaultOptions=Zs;import{Fragment as lh,jsx as ih,jsxs as ph}from"react/jsx-runtime";import{Fragment as fh,jsx as uh,jsxs as bh}from"react/jsx-runtime";import{Fragment as Mh,jsx as Lh,jsxs as vh}from"react/jsx-runtime";import{Fragment as Ah,jsx as kh,jsxs as Ch}from"react/jsx-runtime";import{jsx as dp}from"react/jsx-runtime";var wn=e=>dp(F,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as up}from"react/jsx-runtime";var Hn=e=>up(F,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Ys,jsxs as hp}from"react/jsx-runtime";var Qs="k-spin-button",Np=[],xp={size:[i.small,i.medium,i.large],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},zn={size:i.medium,fillMode:b.solid},Ve=e=>{let{size:t=zn.size,fillMode:o=zn.fillMode,...s}=e;return hp("span",{...s,className:n(Qs,e.className),children:[Ys(f,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Ys(f,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Ve.states=Np;Ve.options=xp;Ve.className=Qs;Ve.defaultOptions=zn;Ve.moduleName=null;Ve.folderName=null;var js="numeric-textbox",er="numerictextbox";import{Fragment as tr,jsx as ye,jsxs as Un}from"react/jsx-runtime";var or="k-numerictextbox",Lp=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Mp={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[b.solid,b.flat,b.outline]},it={showSpinButton:!0,showClearButton:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},R=e=>{let{size:t=it.size,rounded:o=it.rounded,fillMode:s=it.fillMode,separators:r=it.separators,showClearButton:p=it.showClearButton,showSpinButton:l=it.showSpinButton,prefix:c,suffix:u,value:N,placeholder:h,hover:S,focus:d,valid:M,invalid:L,required:E,loading:C,disabled:A,readonly:B,...H}=e;return Un(y,{...H,size:t,rounded:o,fillMode:s,hover:S,focus:d,valid:M,invalid:L,required:E,loading:C,disabled:A,readonly:B,className:n(e.className,or),children:[c&&Un(tr,{children:[ye(j,{children:c}),r&&ye(te,{})]}),ye(ce,{placeholder:h,value:N}),ye(J,{valid:M,invalid:L,loading:C,disabled:A}),ye(Q,{loading:C,disabled:A}),p&&ye(me,{loading:C,disabled:A,readonly:B,value:N}),u&&Un(tr,{children:[r&&ye(te,{}),ye(ee,{children:u})]}),l&&ye(Ve,{className:"k-input-spinner",size:t,fillMode:s})]})};R.states=Lp;R.options=Mp;R.className=or;R.defaultOptions=it;R.moduleName=js;R.folderName=er;import{jsx as iL}from"react/jsx-runtime";import{jsx as Sp}from"react/jsx-runtime";var vp="k-no-data",co=e=>Sp("span",{className:n(vp,e.className),children:e.children});var Ie="list",Je=Ie;import{jsx as Ct,jsxs as ar}from"react/jsx-runtime";var Gn="k-list",Ep=[],gp={size:[i.small,i.medium,i.large]},sr={size:i.medium},_=e=>{let{size:t=sr.size,virtualization:o,children:s,optionLabel:r,customValue:p,screenReaders:l,...c}=e,u,N,h,S,d=[];return s?s.map((M,L)=>{M.type===z?(M.props.root===!0?(u=M.props.label,M.props.children.map((E,C)=>{d.push(Ct(T,{...E.props},`optChild-${C}-${new Date().getTime()}`))})):M.props.children.forEach((E,C)=>{let A="";C===0&&(A=M.props.label),d.push(Ct(T,{className:C===0?"k-first":"",...E.props,groupLabel:A},`groupLabel-${C}-${new Date().getTime()}`))}),N=Ct(z,{label:u,virtualization:o,children:d})):M.type===T&&(d.push(Ct(T,{...M.props},`${M.type}-${L}`)),h=Ct(Tt,{virtualization:o,children:d}),l&&(S=ar(co,{className:"k-sr-only",children:[d.length," items found."]})))}):S=Ct(co,{children:"No data found."}),ar("div",{...c,className:n(e.className,Gn,k(Gn,{size:t}),{"k-virtual-list":o}),children:[r,p,N,h,S]})};_.states=Ep;_.options=gp;_.className=Gn;_.defaultOptions=sr;_.moduleName=Ie;_.folderName=Je;import{jsx as Tp}from"react/jsx-runtime";var rr="k-list-container",kp=[],Ap={},Cp={},Ot=e=>{let{...t}=e;return Tp("div",{...t,className:n(e.className,rr),children:e.children})};Ot.states=kp;Ot.options=Ap;Ot.className=rr;Ot.defaultOptions=Cp;Ot.moduleName=Ie;Ot.folderName=Je;import{jsx as lt,jsxs as Ip}from"react/jsx-runtime";var Fn="k-list",Op=[],yp={size:[i.small,i.medium,i.large]},ir={size:i.medium},Be=e=>{let{size:t=ir.size,virtualization:o,children:s,...r}=e,p,l,c,u=[];return s?s.map((N,h)=>{N.type===z?(N.props.root===!0?(p=N.props.label,N.props.children.map((S,d)=>{u.push(lt(T,{...S.props},`optChild-${d}-${new Date().getTime()}`))})):(u.push(lt(lr,{...N.props,children:N.props.label},`listChild-${h}`)),N.props.children.map((S,d)=>{u.push(lt(T,{...S.props},`fwOptChild-${d}-${new Date().getTime()}`))})),l=lt(z,{label:p,virtualization:o,children:u})):N.type===T&&(u.push(lt(T,{...N.props},`${N.type}-${h}`)),c=lt(Tt,{virtualization:o,children:u}))}):c=lt(co,{children:"No data found."}),Ip("div",{...r,className:n(e.className,Fn,k(Fn,{size:t}),{"k-virtual-list":o}),children:[l,c]})};Be.states=Op;Be.options=yp;Be.className=Fn;Be.defaultOptions=ir;Be.moduleName=Ie;Be.folderName=Je;var pt="checkbox",yt=pt;import{jsx as pr}from"react/jsx-runtime";var Go="k-checkbox",Bp=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],_p={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full]},$n={size:i.medium,rounded:x.medium},ve=e=>{let{id:t,checked:o,indeterminate:s,hover:r,focus:p,disabled:l,invalid:c,valid:u,required:N,size:h=$n.size,rounded:S=$n.rounded,...d}=e;return pr("span",{className:"k-checkbox-wrap",children:pr("input",{...d,id:t,type:"checkbox",defaultChecked:o,required:N,className:n(e.className,Go,k(Go,{size:h,rounded:S}),g(Go,{hover:r,focus:p,disabled:l,invalid:c,valid:u,indeterminate:s,checked:o}))})})};ve.states=Bp;ve.options=_p;ve.className=Go;ve.defaultOptions=$n;ve.moduleName=pt;ve.folderName=yt;import{jsx as Pp}from"react/jsx-runtime";var mr="k-checkbox-list",Kp=[],Rp={},cr={layout:"vertical"},We=e=>{let{layout:t=cr.layout,...o}=e;return Pp("ul",{...o,className:n(e.className,mr,{[`k-list-${t}`]:t}),children:e.children})};We.states=Kp;We.options=Rp;We.className=mr;We.defaultOptions=cr;We.moduleName=pt;We.folderName=yt;import{jsx as zp}from"react/jsx-runtime";var dr="k-checkbox-list-item",Dp=[],wp={},Hp={},qe=e=>{let{...t}=e;return zp("li",{...t,className:n(e.className,dr),children:e.children})};qe.states=Dp;qe.options=wp;qe.className=dr;qe.defaultOptions=Hp;qe.moduleName=pt;qe.folderName=yt;import{Fragment as JL,jsx as VL,jsxs as WL}from"react/jsx-runtime";import{Fragment as jL,jsx as QL,jsxs as eM}from"react/jsx-runtime";import{Fragment as sM,jsx as aM,jsxs as rM}from"react/jsx-runtime";import{Fragment as cM,jsx as mM,jsxs as dM}from"react/jsx-runtime";import{jsx as NM}from"react/jsx-runtime";import{jsx as MM}from"react/jsx-runtime";import{jsx as Fo,jsxs as $p}from"react/jsx-runtime";var Vn="k-list-item",Up=[a.hover,a.focus,a.selected,a.disabled],Gp={},Fp={},T=e=>{let{text:t,groupLabel:o,group:s,showIcon:r,iconName:p,showCheckbox:l,checked:c,hover:u,focus:N,selected:h,disabled:S,...d}=e,M=t||e.children;return $p("li",{...d,className:n(e.className,s?"k-list-group-item":Vn,g(Vn,{hover:u,focus:N,disabled:S,selected:h})),children:[l&&Fo(ve,{checked:c}),r&&Fo(v,{icon:p}),Fo("span",{className:"k-list-item-text",children:M}),o&&o!==""&&Fo("div",{className:"k-list-item-group-label",children:o})]})};T.states=Up;T.options=Gp;T.className=Vn;T.defaultOptions=Fp;T.moduleName=Ie;T.folderName=Je;import{jsx as Jn,jsxs as Vp}from"react/jsx-runtime";var Xp="k-list-content",Tt=e=>{let{virtualization:t,...o}=e;return Vp("div",{...o,className:n(Xp,e.className),children:[Jn("ul",{className:n("k-list-ul"),children:e.children}),t&&Jn("div",{className:"k-height-container",children:Jn("div",{})})]})};import{jsx as ur}from"react/jsx-runtime";var Jp="k-list-group-sticky-header",fr=e=>ur("div",{className:n(Jp,e.className),children:ur("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Wp,jsx as br,jsxs as qp}from"react/jsx-runtime";var z=e=>{let{virtualization:t,label:o}=e;return qp(Wp,{children:[o&&br(fr,{children:o}),e.children&&br(Tt,{virtualization:t,children:e.children})]})};import{jsx as Nr}from"react/jsx-runtime";var Zp="k-list-group-item",lr=e=>Nr("li",{className:n(Zp,e.className),children:Nr("span",{className:"k-list-item-text",children:e.children})});import{jsx as em}from"react/jsx-runtime";var Wn="k-list-optionlabel",Yp=[a.hover,a.focus,a.selected,a.disabled],Qp={},jp={},$o=e=>{let{text:t,hover:o,focus:s,selected:r,disabled:p,...l}=e;return em("div",{...l,className:n(Wn,g(Wn,{hover:o,focus:s,selected:r,disabled:p})),children:t})};$o.states=Yp;$o.options=Qp;$o.className=Wn;$o.defaultOptions=jp;import{jsx as am}from"react/jsx-runtime";var qn="k-list-custom-value",tm=[a.hover,a.focus,a.selected,a.disabled],om={},nm={},Ze=e=>{let{text:t,hover:o,focus:s,selected:r,disabled:p,...l}=e;return am("div",{...l,className:n(qn,g(qn,{hover:o,focus:s,selected:r,disabled:p})),children:t})};Ze.states=tm;Ze.options=om;Ze.className=qn;Ze.defaultOptions=nm;import{jsx as av}from"react/jsx-runtime";import{jsx as lv}from"react/jsx-runtime";import{jsx as dv,jsxs as uv}from"react/jsx-runtime";import{jsx as xv,jsxs as hv}from"react/jsx-runtime";import{jsx as Sv}from"react/jsx-runtime";import{jsx as Av,jsxs as Cv}from"react/jsx-runtime";import{jsx as Iv,jsxs as Bv}from"react/jsx-runtime";var xr="dropdown-list",hr="dropdownlist";import{Fragment as im,jsx as $,jsxs as Zn}from"react/jsx-runtime";var Lr="k-dropdownlist",sm=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],rm={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[b.solid,b.flat,b.outline]},It={showValue:!0,arrowIconName:"caret-alt-down",size:i.medium,rounded:x.medium,fillMode:b.solid},Se=e=>{let{size:t=It.size,rounded:o=It.rounded,fillMode:s=It.fillMode,arrowIconName:r=It.arrowIconName,showValue:p=It.showValue,valueIconName:l,prefix:c,suffix:u,value:N,placeholder:h,hover:S,focus:d,valid:M,invalid:L,required:E,loading:C,disabled:A,readonly:B,popup:H,opened:he,adaptive:Wt,adaptiveSettings:qt,adaptiveTitle:sn,adaptiveSubtitle:rn,adaptiveFilter:Ii,...Bi}=e;return Zn(im,{children:[Zn(V,{...Bi,size:t,rounded:o,fillMode:s,hover:S,focus:d,valid:M,invalid:L,required:E,loading:C,disabled:A,readonly:B,className:n(e.className,Lr,{"k-icon-picker":!p&&l}),children:[$(j,{children:c}),$(at,{placeholder:h,value:N,showValue:p,valueIconName:l}),$(J,{valid:M,invalid:L,loading:C,disabled:A}),$(Q,{loading:C,disabled:A}),$(ee,{children:u}),$(f,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),he&&H&&$(D,{className:"k-list-container k-dropdownlist-popup",children:H}),Wt&&$(q,{adaptive:!0,...qt,header:$(oe,{actionsEnd:$(f,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ii,inputValue:N,inputPlaceholder:h,title:sn,subtitle:rn}),children:$("div",{className:"k-list-container",children:Zn(_,{size:"large",children:[$(T,{text:"List item"}),$(T,{text:"List item"}),$(T,{text:"List item"})]})})})]})};Se.states=sm;Se.options=rm;Se.className=Lr;Se.defaultOptions=It;Se.moduleName=xr;Se.folderName=hr;import{jsx as cS}from"react/jsx-runtime";import{jsx as NS,jsxs as xS}from"react/jsx-runtime";import{Fragment as kS,jsx as ES,jsxs as gS}from"react/jsx-runtime";import{jsx as OS}from"react/jsx-runtime";import{jsx as KS,jsxs as RS}from"react/jsx-runtime";import{jsx as zS,jsxs as US}from"react/jsx-runtime";import{Fragment as qS,jsx as JS,jsxs as WS}from"react/jsx-runtime";import{Fragment as nE,jsx as tE,jsxs as oE}from"react/jsx-runtime";import{Fragment as LE,jsx as hE}from"react/jsx-runtime";import{Fragment as AE,jsx as kE}from"react/jsx-runtime";import{Fragment as uo,jsx as O,jsxs as P}from"react/jsx-runtime";var Mr="k-colorgradient-inputs",lm=[],pm={size:[i.small,i.medium,i.large]},vr={mode:"rgba",size:i.medium},Bt=e=>{let{mode:t=vr.mode,size:o,...s}=e;return P("div",{...s,className:n(Mr,"k-hstack"),children:[O("div",{className:"k-vstack",children:O(f,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&P(uo,{children:[P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),O("label",{className:"k-colorgradient-input-label",children:"R"})]}),P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),O("label",{className:"k-colorgradient-input-label",children:"G"})]}),P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),O("label",{className:"k-colorgradient-input-label",children:"B"})]}),P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),O("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&P(uo,{children:[P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),O("label",{className:"k-colorgradient-input-label",children:"R"})]}),P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),O("label",{className:"k-colorgradient-input-label",children:"G"})]}),P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),O("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&P(uo,{children:[P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),O("label",{className:"k-colorgradient-input-label",children:"H"})]}),P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),O("label",{className:"k-colorgradient-input-label",children:"S"})]}),P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),O("label",{className:"k-colorgradient-input-label",children:"V"})]}),P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),O("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&P(uo,{children:[P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),O("label",{className:"k-colorgradient-input-label",children:"H"})]}),P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),O("label",{className:"k-colorgradient-input-label",children:"S"})]}),P("div",{className:"k-vstack",children:[O(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),O("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&O(uo,{children:P("div",{className:"k-vstack k-flex-1",children:[O(Me,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),O("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Bt.states=lm;Bt.options=pm;Bt.className=Mr;Bt.defaultOptions=vr;import{jsx as ct,jsxs as dt}from"react/jsx-runtime";var Sr="k-colorgradient-color-contrast",mm=[],cm={},dm={},_t=()=>dt("div",{className:n(Sr,"k-vbox"),children:[dt("div",{className:"k-contrast-ratio",children:[ct("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),dt("span",{className:"k-contrast-validation !k-text-success",children:[ct(v,{icon:"check"}),ct(v,{icon:"check"})]})]}),dt("div",{children:[ct("span",{children:"AA: 4.5"}),dt("span",{className:"k-contrast-validation !k-text-success",children:["Pass",ct(v,{icon:"check"})]})]}),dt("div",{children:[ct("span",{children:"AAA: 7.0"}),dt("span",{className:"k-contrast-validation !k-text-error",children:["Fail",ct(v,{icon:"x"})]})]})]});_t.states=mm;_t.options=cm;_t.className=Sr;_t.defaultOptions=dm;var Er="color-gradient",gr="colorgradient";import{jsx as ne,jsxs as fo}from"react/jsx-runtime";var Xo="k-colorgradient",um=[a.hover,a.focus,a.readonly,a.disabled],fm={size:[i.small,i.medium,i.large]},ue={size:i.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"},Ee=e=>{let{size:t=ue.size,mode:o=ue.mode,readonly:s=ue.readonly,disabled:r=ue.disabled,gradientStyle:p=ue.gradientStyle,dragHandleStyle:l=ue.dragHandleStyle,alphaStyle:c=ue.alphaStyle,alphaStyleHorizontal:u=ue.alphaStyleHorizontal,contrast:N=ue.contrast,dir:h,hover:S,focus:d,hoverHandle:M,focusHandle:L,canvasOrientation:E=ue.canvasOrientation,...C}=e;return fo("div",{...C,className:n(e.className,Xo,k(Xo,{size:t}),g(Xo,{hover:S,focus:d,readonly:s,disabled:r})),dir:h,children:[!E||E==="horizontal"&&fo("div",{className:"k-colorgradient-canvas k-hstack",children:[ne("div",{className:"k-hsv-rectangle",style:p,children:ne("div",{className:"k-hsv-gradient",children:ne("div",{className:n("k-hsv-draghandle","k-draghandle",{"k-hover":M,"k-focus":L}),style:l})})}),fo("div",{className:"k-hsv-controls k-hstack",children:[ne(Hn,{className:"k-hue-slider",hover:M,focus:L}),o!=="rgb"&&o!=="hsv"&&ne(Hn,{className:"k-alpha-slider",hover:M,focus:L,trackStyle:c})]})]}),E==="vertical"&&fo("div",{className:"k-colorgradient-canvas k-vstack",children:[ne("div",{className:"k-hsv-rectangle",style:p,children:ne("div",{className:"k-hsv-gradient",children:ne("div",{className:n("k-hsv-draghandle","k-draghandle",{"k-hover":M,"k-focus":L}),style:l})})}),fo("div",{className:"k-hsv-controls k-vstack",children:[ne(wn,{className:"k-hue-slider",hover:M,focus:L}),o!=="rgb"&&o!=="hsv"&&ne(wn,{className:"k-alpha-slider",hover:M,focus:L,trackStyle:u})]})]}),ne(Bt,{mode:e.mode,size:t}),N&&ne(_t,{})]})};Ee.states=um;Ee.options=fm;Ee.className=Xo;Ee.defaultOptions=ue;Ee.moduleName=Er;Ee.folderName=gr;import{jsx as jE}from"react/jsx-runtime";import{jsx as ng}from"react/jsx-runtime";import{jsx as bm}from"react/jsx-runtime";var kr=e=>bm("tr",{children:e.children});import{jsx as hm}from"react/jsx-runtime";var Yn="k-colorpalette-tile",Nm=[a.hover,a.focus,a.selected],xm={},bo=e=>{let{color:t,tileSize:o,hover:s,focus:r,selected:p,...l}=e,c={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return hm("td",{...l,className:n(e.className,Yn,g(Yn,{hover:s,focus:r,selected:p})),style:c})};bo.states=Nm;bo.options=xm;bo.className=Yn;var Ar="color-palette",Cr="colorpalette";import{jsx as No}from"react/jsx-runtime";var Vo="k-colorpalette",Lm=[a.disabled],Mm={size:[i.small,i.medium,i.large]},Qn={columns:10,size:i.medium},Ye=e=>{let{size:t=Qn.size,palette:o,columns:s=Qn.columns,tileSize:r,disabled:p,...l}=e,c=[];if(o){let u=s||o.columns,N=o.colors?o.colors:o;Array.isArray(N)&&Array.from({length:Math.ceil(N.length/u)},(h,S)=>{let d=[];N.slice(S*u,(S+1)*u).map((L,E)=>{d.push(No(bo,{color:L,tileSize:r},E))});let M=No(kr,{children:d},S);c.push(M)})}return No("div",{...l,className:n(e.className,Vo,g(Vo,{disabled:p}),k(Vo,{size:t})),children:No("table",{className:"k-colorpalette-table",children:No("tbody",{children:c.length>0?c:e.children})})})};Ye.states=Lm;Ye.options=Mm;Ye.className=Vo;Ye.defaultOptions=Qn;Ye.moduleName=Ar;Ye.folderName=Cr;var jn={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 Tg}from"react/jsx-runtime";var Tr="color-editor",Or="coloreditor";import{jsx as ae,jsxs as Kt}from"react/jsx-runtime";var Jo="k-coloreditor",vm=[a.focus],Sm={size:[i.small,i.medium,i.large]},Rt={size:i.medium,view:"gradient",palette:jn.office,actionButtons:!0,canvasOrientation:"horizontal"},se=e=>{let{size:t=Rt.size,view:o=Rt.view,palette:s=Rt.palette,color:r,currentColor:p,focus:l,focusView:c,dir:u,group:N,actionButtons:h=Rt.actionButtons,canvasOrientation:S=Rt.canvasOrientation,...d}=e;return Kt("div",{...d,className:n(e.className,"k-flatcolorpicker",Jo,k(Jo,{size:t}),g(Jo,{focus:l})),dir:u,children:[Kt("div",{className:"k-coloreditor-header k-hstack",children:[ae("div",{className:"k-coloreditor-header-actions k-hstack",children:N&&Kt(K,{fillMode:"flat",children:[ae(f,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),ae(f,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),ae("div",{className:"k-spacer"}),Kt("div",{className:"k-coloreditor-he