UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 85.8 kB
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 gu}from"react/jsx-runtime";import{jsx as Tu}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 ef}from"react/jsx-runtime";import{Fragment as rf,jsx as sf}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 Ef}from"react/jsx-runtime";import{Fragment as Kf,jsx as _f}from"react/jsx-runtime";var vn="speech-to-text-button",Ss=vn;import{jsx as Tl}from"react/jsx-runtime";var Es="k-speech-to-text-button",gs={icon:"microphone-outline"},Le=e=>{let{listening:t=!1,icon:o=gs.icon,...s}=e;return Tl(f,{...s,icon:t?"stop-sm":o,className:n(e.className,Es,{"k-listening":t})})};Le.states=f.states;Le.options=f.options;Le.className=Es;Le.defaultOptions=gs;Le.moduleName=vn;Le.folderName=Ss;import{jsx as Qf}from"react/jsx-runtime";import{jsx as ob}from"react/jsx-runtime";var Sn="chat",ks=Sn;import{Fragment as En,jsx as rt,jsxs as ao}from"react/jsx-runtime";var As="k-chat",Ol=[],yl={},Il=ao(En,{children:[rt(Le,{fillMode:"clear"}),rt(Oe,{icon:"paperclip",fillMode:"clear"},"paperclip")]}),Cs={tools:Il},F=e=>{let{header:t,dir:o,suggestedActions:s,files:r,pinned:p,replied:l,generating:c,tools:u=Cs.tools,value:N,empty:h,...S}=e;return ao("div",{...S,className:n(As,e.className),dir:o,children:[t,p,rt("div",{className:"k-message-list",children:rt("div",{className:n("k-message-list-content",h&&"k-message-list-content-empty"),children:e.children})}),ao("div",{className:"k-message-box-wrapper",children:[s,rt(ze,{className:"k-message-box",placeholder:"Type a message",value:N,prefixSeparator:!1,suffixSeparator:!1,rows:1,resize:"none",prefix:r||l?ao(En,{children:[l,r]}):void 0,suffix:ao(En,{children:[u,rt("span",{className:"k-spacer"}),rt(gt,{generating:c,disabled:!N&&!c})]})})]})]})};F.states=Ol;F.options=yl;F.className=As;F.defaultOptions=Cs;F.moduleName=Sn;F.folderName=ks;var gn="button",Ts=gn;import{jsx as Kl}from"react/jsx-runtime";var so="k-button-group",Bl=[a.disabled],_l={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},Os={fillMode:b.solid},K=e=>{let{fillMode:t=Os.fillMode,disabled:o,stretched:s,...r}=e;return Kl("div",{...r,className:n(e.className,so,k(so,{fillMode:t}),g(so,{disabled:o}),{[`${so}-stretched`]:s}),children:e.children})};K.states=Bl;K.options=_l;K.className=so;K.defaultOptions=Os;K.moduleName=gn;K.folderName=Ts;import{Fragment as Ab,jsx as kb,jsxs as Cb}from"react/jsx-runtime";import{Fragment as _b,jsx as Bb,jsxs as Kb}from"react/jsx-runtime";import{Fragment as zb,jsx as Hb,jsxs as Ub}from"react/jsx-runtime";import{Fragment as Jb,jsx as Vb,jsxs as Wb}from"react/jsx-runtime";import{jsx as ys,jsxs as Dl}from"react/jsx-runtime";var Is="k-color-preview",Rl=[],Pl={},Ue=e=>{let{color:t,iconName:o,...s}=e;return Dl("span",{...s,className:n(e.className,Is,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ys(v,{icon:o,className:"k-color-preview-icon"}),ys("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ue.states=Rl;Ue.options=Pl;Ue.className=Is;var kn="popup",Bs=kn;import{jsx as _s}from"react/jsx-runtime";var Ks="k-animation-container",wl=[],Hl={},Rs={positionMode:"absolute"},Me=e=>{let{positionMode:t=Rs.positionMode,animationStyle:o,offset:s,...r}=e;return _s("div",{...r,style:{...s,...e.style},className:n(e.className,Ks,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:_s("div",{className:"k-child-animation-container",style:o,children:e.children})})};Me.states=wl;Me.options=Hl;Me.className=Ks;Me.defaultOptions=Rs;Me.moduleName=kn;Me.folderName=Bs;var An="popup",Ps=An;import{jsx as Ds}from"react/jsx-runtime";var ws="k-popup",zl=[],Ul={},Hs={positionMode:"absolute"},D=e=>{let{offset:t,positionMode:o=Hs.positionMode,animationStyle:s,...r}=e;return Ds(Me,{positionMode:o,offset:t,animationStyle:s,children:Ds("div",{...r,className:n(e.className,ws),children:e.children})})};D.states=zl;D.options=Ul;D.className=ws;D.defaultOptions=Hs;D.moduleName=An;D.folderName=Ps;var Cn="action-buttons",zs=Cn;import{jsx as $l}from"react/jsx-runtime";var Ho="k-actions",Gl=[],Fl={},Tn={alignment:"start",orientation:"horizontal"},W=e=>{let{alignment:t=Tn.alignment,orientation:o=Tn.orientation,...s}=e;return $l("div",{...s,className:n(Ho,{[`${Ho}-${t}`]:t,[`${Ho}-${o}`]:o},e.className),children:e.children})};W.states=Gl;W.options=Fl;W.className=Ho;W.defaultOptions=Tn;W.moduleName=Cn;W.folderName=zs;var Us=W;import{jsx as Vl}from"react/jsx-runtime";var Xl="k-actionsheet-footer",Gs={alignment:"stretched",orientation:"horizontal"},ro=e=>{let{alignment:t=Gs.alignment,orientation:o=Gs.orientation,template:s,as:r=s?"div":W,...p}=e;return Vl(r,{...p,...!s&&{alignment:t,orientation:o},className:n(e.className,Xl),children:e.children})};var On="searchbox",Fs=On;import{jsx as io,jsxs as ql}from"react/jsx-runtime";var $s="k-searchbox",Jl=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Wl={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[b.solid,b.flat,b.outline]},yn={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=yn.showIcon,icon:L=yn.icon,...E}=e;return ql(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,$s),children:[M&&io(v,{className:"k-input-icon",icon:L}),io(ce,{placeholder:o,value:t}),io(Q,{...e}),io(J,{...e}),io(me,{...e})]})};de.states=Jl;de.options=Wl;de.className=$s;de.defaultOptions=yn;de.moduleName=On;de.folderName=Fs;import{jsx as $N}from"react/jsx-runtime";var In="textbox",Xs=In;import{Fragment as Vs,jsx as Ge,jsxs as Bn}from"react/jsx-runtime";var Js="k-textbox",Zl=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Yl={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[b.solid,b.flat,b.outline]},it={showClearButton:!0,showValidationIcon:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},ve=e=>{let{size:t=it.size,rounded:o=it.rounded,fillMode:s=it.fillMode,separators:r=it.separators,showClearButton:p=it.showClearButton,showValidationIcon:l=it.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 Bn(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,Js),children:[c&&Bn(Vs,{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&&Bn(Vs,{children:[r&&Ge(te,{}),Ge(ee,{children:u})]})]})};ve.states=Zl;ve.options=Yl;ve.className=Js;ve.defaultOptions=it;ve.moduleName=In;ve.folderName=Xs;import{jsx as nx}from"react/jsx-runtime";import{Fragment as px,jsx as lx}from"react/jsx-runtime";import{Fragment as Nx,jsx as bx}from"react/jsx-runtime";import{jsx as Fe,jsxs as _n}from"react/jsx-runtime";var qs="k-actionsheet-titlebar",Ql={},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 _n("div",{...S,className:n(e.className,qs),children:[_n("div",{className:"k-actionsheet-titlebar-group",children:[s&&Fe("div",{className:"k-actionsheet-actions",children:s}),!h&&_n("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(ve,{value:c,placeholder:u,size:N?"large":"medium"}):Fe(de,{placeholder:"Filter",size:N?"large":"medium"})})]})};oe.className=qs;oe.defaultOptions=Ql;import{jsx as Kn,jsxs as op}from"react/jsx-runtime";var Rn="k-actionsheet-view",jl=[],ep={},tp={},kt=e=>{let{adaptive:t,animated:o,children:s,header:r,footer:p,...l}=e,c=r?.type===oe&&Kn(oe,{adaptive:t,...r?.props}),u=p?.type===ro&&Kn(ro,{...p?.props});return op("div",{...l,className:n(e.className,Rn,{[`${Rn}-animated`]:o}),children:[c,Kn("div",{className:"k-actionsheet-content",children:s}),u]})};kt.states=jl;kt.options=ep;kt.className=Rn;kt.defaultOptions=tp;var lo="action-sheet",zo=lo;import{jsx as Uo,jsxs as sp}from"react/jsx-runtime";var Zs="k-actionsheet",np=[],ap={},po={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},q=e=>{let{side:t=po.side,fullscreen:o=po.fullscreen,adaptive:s=po.adaptive,overlay:r=po.overlay,template:p,children:l,header:c,footer:u,...N}=e;return sp("div",{className:"k-actionsheet-container",children:[r&&Uo("div",{className:"k-overlay"}),Uo(Me,{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,Zs,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:p||Uo(kt,{header:c,footer:u,adaptive:s,...e,children:l})})})]})};q.states=np;q.options=ap;q.className=Zs;q.defaultOptions=po;q.moduleName=lo;q.folderName=zo;import{jsx as pp}from"react/jsx-runtime";var Ys="k-actionsheet-container",rp=[],ip={},lp={},At=e=>{let{children:t,...o}=e;return pp("div",{...o,className:Ys,children:t})};At.states=rp;At.options=ip;At.className=Ys;At.defaultOptions=lp;At.moduleName=lo;At.folderName=zo;import{jsx as Xx}from"react/jsx-runtime";import{Fragment as cp,jsx as mo,jsxs as Pn}from"react/jsx-runtime";var Dn="k-actionsheet-item",mp=[a.hover,a.focus,a.selected,a.disabled],wn=e=>{let{iconName:t,text:o,description:s,hover:r,focus:p,selected:l,disabled:c,...u}=e;return Pn("span",{...u,className:n(e.className,Dn,g(Dn,{hover:r,focus:p,selected:l,disabled:c})),children:[!e.children&&mo(cp,{children:Pn("span",{className:"k-actionsheet-action",children:[t&&mo("span",{className:"k-icon-wrap",children:mo(v,{className:"k-actionsheet-item-icon",icon:t})}),Pn("span",{className:"k-actionsheet-item-text",children:[o&&mo("span",{className:"k-actionsheet-item-title",children:o}),s&&mo("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};wn.states=mp;wn.className=Dn;import{jsx as eh,jsxs as th}from"react/jsx-runtime";import{jsx as sh}from"react/jsx-runtime";import{jsx as ph}from"react/jsx-runtime";import{jsx as uh}from"react/jsx-runtime";var Hn="slider",js=Hn;import{jsx as Ct,jsxs as zn}from"react/jsx-runtime";var co="k-slider",dp=[a.hover,a.focus,a.active,a.disabled,a.readonly],up={},$e={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},$=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"),zn("div",{...M,className:n(co,e.className,g(co,{readonly:s,disabled:r}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:d,children:[l&&Ct(f,{className:"k-button-decrease",rounded:"full",icon:E}),zn("div",{className:"k-slider-track-wrap",children:[c&&Ct("ul",{className:"k-reset k-slider-items",children:e.children}),zn("div",{className:"k-slider-track",style:S,children:[Ct("div",{className:"k-slider-selection"}),t==="range"&&Ct("span",{className:n("k-draghandle","k-draghandle-start",g(co,{hover:u,focus:N,active:h}))}),Ct("span",{className:n("k-draghandle",`k-draghandle-${p}`,g(co,{hover:u,focus:N,active:h}))})]})]}),l&&Ct(f,{className:"k-button-increase",rounded:"full",icon:L})]})};$.states=dp;$.options=up;$.className=co;$.defaultOptions=$e;$.moduleName=Hn;$.folderName=js;import{jsx as er}from"react/jsx-runtime";var tr="k-tick",fp=[],bp={},or={label:!1},Xe=e=>{let{style:t,label:o=or.label,orientation:s,large:r,text:p,...l}=e;return er("li",{...l,className:n(e.className,tr,{[`k-tick-${s}`]:s,"k-tick-large":r}),style:t,children:o&&er("span",{className:"k-label",children:p})})};Xe.states=fp;Xe.options=bp;Xe.className=tr;Xe.defaultOptions=or;import{Fragment as Hh,jsx as wh,jsxs as zh}from"react/jsx-runtime";import{Fragment as Xh,jsx as $h,jsxs as Vh}from"react/jsx-runtime";import{Fragment as Yh,jsx as Zh,jsxs as Qh}from"react/jsx-runtime";import{Fragment as nL,jsx as oL,jsxs as aL}from"react/jsx-runtime";import{jsx as Np}from"react/jsx-runtime";var Un=e=>Np($,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as xp}from"react/jsx-runtime";var Gn=e=>xp($,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as nr,jsxs as Sp}from"react/jsx-runtime";var ar="k-spin-button",Mp=[],vp={size:[i.small,i.medium,i.large],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},Fn={size:i.medium,fillMode:b.solid},Ve=e=>{let{size:t=Fn.size,fillMode:o=Fn.fillMode,...s}=e;return Sp("span",{...s,className:n(ar,e.className),children:[nr(f,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),nr(f,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Ve.states=Mp;Ve.options=vp;Ve.className=ar;Ve.defaultOptions=Fn;Ve.moduleName=null;Ve.folderName=null;var sr="numeric-textbox",rr="numerictextbox";import{Fragment as ir,jsx as ye,jsxs as $n}from"react/jsx-runtime";var lr="k-numerictextbox",Ep=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],gp={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[b.solid,b.flat,b.outline]},lt={showSpinButton:!0,showClearButton:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},R=e=>{let{size:t=lt.size,rounded:o=lt.rounded,fillMode:s=lt.fillMode,separators:r=lt.separators,showClearButton:p=lt.showClearButton,showSpinButton:l=lt.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 $n(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,lr),children:[c&&$n(ir,{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&&$n(ir,{children:[r&&ye(te,{}),ye(ee,{children:u})]}),l&&ye(Ve,{className:"k-input-spinner",size:t,fillMode:s})]})};R.states=Ep;R.options=gp;R.className=lr;R.defaultOptions=lt;R.moduleName=sr;R.folderName=rr;import{jsx as wL}from"react/jsx-runtime";import{jsx as Ap}from"react/jsx-runtime";var kp="k-no-data",uo=e=>Ap("span",{className:n(kp,e.className),children:e.children});var Ie="list",Je=Ie;import{jsx as Tt,jsxs as mr}from"react/jsx-runtime";var Xn="k-list",Cp=[],Tp={size:[i.small,i.medium,i.large]},cr={size:i.medium},_=e=>{let{size:t=cr.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(Tt(T,{...E.props},`optChild-${C}-${new Date().getTime()}`))})):M.props.children.forEach((E,C)=>{let A="";C===0&&(A=M.props.label),d.push(Tt(T,{className:C===0?"k-first":"",...E.props,groupLabel:A},`groupLabel-${C}-${new Date().getTime()}`))}),N=Tt(z,{label:u,virtualization:o,children:d})):M.type===T&&(d.push(Tt(T,{...M.props},`${M.type}-${L}`)),h=Tt(Ot,{virtualization:o,children:d}),l&&(S=mr(uo,{className:"k-sr-only",children:[d.length," items found."]})))}):S=Tt(uo,{children:"No data found."}),mr("div",{...c,className:n(e.className,Xn,k(Xn,{size:t}),{"k-virtual-list":o}),children:[r,p,N,h,S]})};_.states=Cp;_.options=Tp;_.className=Xn;_.defaultOptions=cr;_.moduleName=Ie;_.folderName=Je;import{jsx as Bp}from"react/jsx-runtime";var dr="k-list-container",Op=[],yp={},Ip={},yt=e=>{let{...t}=e;return Bp("div",{...t,className:n(e.className,dr),children:e.children})};yt.states=Op;yt.options=yp;yt.className=dr;yt.defaultOptions=Ip;yt.moduleName=Ie;yt.folderName=Je;import{jsx as pt,jsxs as Rp}from"react/jsx-runtime";var Vn="k-list",_p=[],Kp={size:[i.small,i.medium,i.large]},ur={size:i.medium},Be=e=>{let{size:t=ur.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(pt(T,{...S.props},`optChild-${d}-${new Date().getTime()}`))})):(u.push(pt(fr,{...N.props,children:N.props.label},`listChild-${h}`)),N.props.children.map((S,d)=>{u.push(pt(T,{...S.props},`fwOptChild-${d}-${new Date().getTime()}`))})),l=pt(z,{label:p,virtualization:o,children:u})):N.type===T&&(u.push(pt(T,{...N.props},`${N.type}-${h}`)),c=pt(Ot,{virtualization:o,children:u}))}):c=pt(uo,{children:"No data found."}),Rp("div",{...r,className:n(e.className,Vn,k(Vn,{size:t}),{"k-virtual-list":o}),children:[l,c]})};Be.states=_p;Be.options=Kp;Be.className=Vn;Be.defaultOptions=ur;Be.moduleName=Ie;Be.folderName=Je;var mt="checkbox",It=mt;import{jsx as br}from"react/jsx-runtime";var Go="k-checkbox",Pp=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Dp={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full]},Jn={size:i.medium,rounded:x.medium},Se=e=>{let{id:t,checked:o,indeterminate:s,hover:r,focus:p,disabled:l,invalid:c,valid:u,required:N,size:h=Jn.size,rounded:S=Jn.rounded,...d}=e;return br("span",{className:"k-checkbox-wrap",children:br("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}))})})};Se.states=Pp;Se.options=Dp;Se.className=Go;Se.defaultOptions=Jn;Se.moduleName=mt;Se.folderName=It;import{jsx as zp}from"react/jsx-runtime";var Nr="k-checkbox-list",wp=[],Hp={},xr={layout:"vertical"},We=e=>{let{layout:t=xr.layout,...o}=e;return zp("ul",{...o,className:n(e.className,Nr,{[`k-list-${t}`]:t}),children:e.children})};We.states=wp;We.options=Hp;We.className=Nr;We.defaultOptions=xr;We.moduleName=mt;We.folderName=It;import{jsx as $p}from"react/jsx-runtime";var hr="k-checkbox-list-item",Up=[],Gp={},Fp={},qe=e=>{let{...t}=e;return $p("li",{...t,className:n(e.className,hr),children:e.children})};qe.states=Up;qe.options=Gp;qe.className=hr;qe.defaultOptions=Fp;qe.moduleName=mt;qe.folderName=It;import{Fragment as gM,jsx as EM,jsxs as kM}from"react/jsx-runtime";import{Fragment as yM,jsx as OM,jsxs as IM}from"react/jsx-runtime";import{Fragment as PM,jsx as RM,jsxs as DM}from"react/jsx-runtime";import{Fragment as GM,jsx as UM,jsxs as FM}from"react/jsx-runtime";import{jsx as JM}from"react/jsx-runtime";import{jsx as YM}from"react/jsx-runtime";import{jsx as Fo,jsxs as Wp}from"react/jsx-runtime";var qn="k-list-item",Xp=[a.hover,a.focus,a.selected,a.disabled],Vp={},Jp={},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 Wp("li",{...d,className:n(e.className,s?"k-list-group-item":qn,g(qn,{hover:u,focus:N,disabled:S,selected:h})),children:[l&&Fo(Se,{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=Xp;T.options=Vp;T.className=qn;T.defaultOptions=Jp;T.moduleName=Ie;T.folderName=Je;import{jsx as Zn,jsxs as Zp}from"react/jsx-runtime";var qp="k-list-content",Ot=e=>{let{virtualization:t,...o}=e;return Zp("div",{...o,className:n(qp,e.className),children:[Zn("ul",{className:n("k-list-ul"),children:e.children}),t&&Zn("div",{className:"k-height-container",children:Zn("div",{})})]})};import{jsx as Lr}from"react/jsx-runtime";var Yp="k-list-group-sticky-header",Mr=e=>Lr("div",{className:n(Yp,e.className),children:Lr("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Qp,jsx as vr,jsxs as jp}from"react/jsx-runtime";var z=e=>{let{virtualization:t,label:o}=e;return jp(Qp,{children:[o&&vr(Mr,{children:o}),e.children&&vr(Ot,{virtualization:t,children:e.children})]})};import{jsx as Sr}from"react/jsx-runtime";var em="k-list-group-item",fr=e=>Sr("li",{className:n(em,e.className),children:Sr("span",{className:"k-list-item-text",children:e.children})});import{jsx as am}from"react/jsx-runtime";var Yn="k-list-optionlabel",tm=[a.hover,a.focus,a.selected,a.disabled],om={},nm={},$o=e=>{let{text:t,hover:o,focus:s,selected:r,disabled:p,...l}=e;return am("div",{...l,className:n(Yn,g(Yn,{hover:o,focus:s,selected:r,disabled:p})),children:t})};$o.states=tm;$o.options=om;$o.className=Yn;$o.defaultOptions=nm;import{jsx as lm}from"react/jsx-runtime";var Qn="k-list-custom-value",sm=[a.hover,a.focus,a.selected,a.disabled],rm={},im={},Ze=e=>{let{text:t,hover:o,focus:s,selected:r,disabled:p,...l}=e;return lm("div",{...l,className:n(Qn,g(Qn,{hover:o,focus:s,selected:r,disabled:p})),children:t})};Ze.states=sm;Ze.options=rm;Ze.className=Qn;Ze.defaultOptions=im;import{jsx as Rv}from"react/jsx-runtime";import{jsx as Hv}from"react/jsx-runtime";import{jsx as Fv,jsxs as $v}from"react/jsx-runtime";import{jsx as Wv,jsxs as qv}from"react/jsx-runtime";import{jsx as jv}from"react/jsx-runtime";import{jsx as nS,jsxs as aS}from"react/jsx-runtime";import{jsx as lS,jsxs as pS}from"react/jsx-runtime";var Er="dropdown-list",gr="dropdownlist";import{Fragment as cm,jsx as X,jsxs as jn}from"react/jsx-runtime";var kr="k-dropdownlist",pm=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],mm={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[b.solid,b.flat,b.outline]},Bt={showValue:!0,arrowIconName:"caret-alt-down",size:i.medium,rounded:x.medium,fillMode:b.solid},Ee=e=>{let{size:t=Bt.size,rounded:o=Bt.rounded,fillMode:s=Bt.fillMode,arrowIconName:r=Bt.arrowIconName,showValue:p=Bt.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 jn(cm,{children:[jn(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,kr,{"k-icon-picker":!p&&l}),children:[X(j,{children:c}),X(at,{placeholder:h,value:N,showValue:p,valueIconName:l}),X(J,{valid:M,invalid:L,loading:C,disabled:A}),X(Q,{loading:C,disabled:A}),X(ee,{children:u}),X(f,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),he&&H&&X(D,{className:"k-list-container k-dropdownlist-popup",children:H}),Wt&&X(q,{adaptive:!0,...qt,header:X(oe,{actionsEnd:X(f,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ii,inputValue:N,inputPlaceholder:h,title:sn,subtitle:rn}),children:X("div",{className:"k-list-container",children:jn(_,{size:"large",children:[X(T,{text:"List item"}),X(T,{text:"List item"}),X(T,{text:"List item"})]})})})]})};Ee.states=pm;Ee.options=mm;Ee.className=kr;Ee.defaultOptions=Bt;Ee.moduleName=Er;Ee.folderName=gr;import{jsx as GS}from"react/jsx-runtime";import{jsx as JS,jsxs as WS}from"react/jsx-runtime";import{Fragment as oE,jsx as eE,jsxs as tE}from"react/jsx-runtime";import{jsx as rE}from"react/jsx-runtime";import{jsx as cE,jsxs as dE}from"react/jsx-runtime";import{jsx as xE,jsxs as hE}from"react/jsx-runtime";import{Fragment as AE,jsx as gE,jsxs as kE}from"react/jsx-runtime";import{Fragment as KE,jsx as BE,jsxs as _E}from"react/jsx-runtime";import{Fragment as ZE,jsx as qE}from"react/jsx-runtime";import{Fragment as ng,jsx as og}from"react/jsx-runtime";import{Fragment as fo,jsx as O,jsxs as P}from"react/jsx-runtime";var Ar="k-colorgradient-inputs",dm=[],um={size:[i.small,i.medium,i.large]},Cr={mode:"rgba",size:i.medium},_t=e=>{let{mode:t=Cr.mode,size:o,...s}=e;return P("div",{...s,className:n(Ar,"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(fo,{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(fo,{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(fo,{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(fo,{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(fo,{children:P("div",{className:"k-vstack k-flex-1",children:[O(ve,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),O("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};_t.states=dm;_t.options=um;_t.className=Ar;_t.defaultOptions=Cr;import{jsx as dt,jsxs as ut}from"react/jsx-runtime";var Tr="k-colorgradient-color-contrast",fm=[],bm={},Nm={},Kt=()=>ut("div",{className:n(Tr,"k-vbox"),children:[ut("div",{className:"k-contrast-ratio",children:[dt("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),ut("span",{className:"k-contrast-validation !k-text-success",children:[dt(v,{icon:"check"}),dt(v,{icon:"check"})]})]}),ut("div",{children:[dt("span",{children:"AA: 4.5"}),ut("span",{className:"k-contrast-validation !k-text-success",children:["Pass",dt(v,{icon:"check"})]})]}),ut("div",{children:[dt("span",{children:"AAA: 7.0"}),ut("span",{className:"k-contrast-validation !k-text-error",children:["Fail",dt(v,{icon:"x"})]})]})]});Kt.states=fm;Kt.options=bm;Kt.className=Tr;Kt.defaultOptions=Nm;var Or="color-gradient",yr="colorgradient";import{jsx as ne,jsxs as bo}from"react/jsx-runtime";var Xo="k-colorgradient",xm=[a.hover,a.focus,a.readonly,a.disabled],hm={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"},ge=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 bo("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"&&bo("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})})}),bo("div",{className:"k-hsv-controls k-hstack",children:[ne(Gn,{className:"k-hue-slider",hover:M,focus:L}),o!=="rgb"&&o!=="hsv"&&ne(Gn,{className:"k-alpha-slider",hover:M,focus:L,trackStyle:c})]})]}),E==="vertical"&&bo("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})})}),bo("div",{className:"k-hsv-controls k-vstack",children:[ne(Un,{className:"k-hue-slider",hover:M,focus:L}),o!=="rgb"&&o!=="hsv"&&ne(Un,{className:"k-alpha-slider",hover:M,focus:L,trackStyle:u})]})]}),ne(_t,{mode:e.mode,size:t}),N&&ne(Kt,{})]})};ge.states=xm;ge.options=hm;ge.className=Xo;ge.defaultOptions=ue;ge.moduleName=Or;ge.folderName=yr;import{jsx as yg}from"react/jsx-runtime";import{jsx as Kg}from"react/jsx-runtime";import{jsx as Lm}from"react/jsx-runtime";var Ir=e=>Lm("tr",{children:e.children});import{jsx as Sm}from"react/jsx-runtime";var ea="k-colorpalette-tile",Mm=[a.hover,a.focus,a.selected],vm={},No=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 Sm("td",{...l,className:n(e.className,ea,g(ea,{hover:s,focus:r,selected:p})),style:c})};No.states=Mm;No.options=vm;No.className=ea;var Br="color-palette",_r="colorpalette";import{jsx as xo}from"react/jsx-runtime";var Vo="k-colorpalette",Em=[a.disabled],gm={size:[i.small,i.medium,i.large]},ta={columns:10,size:i.medium},Ye=e=>{let{size:t=ta.size,palette:o,columns:s=ta.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(xo(No,{color:L,tileSize:r},E))});let M=xo(Ir,{children:d},S);c.push(M)})}return xo("div",{...l,className:n(e.className,Vo,g(Vo,{disabled:p}),k(Vo,{size:t})),children:xo("table",{className:"k-colorpalette-table",children:xo("tbody",{children:c.length>0?c:e.children})})})};Ye.states=Em;Ye.options=gm;Ye.className=Vo;Ye.defaultOptions=ta;Ye.moduleName=Br;Ye.folderName=_r;var oa={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