@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 75 kB
JavaScript
var r=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?r(...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 L=(e,t)=>r({[`${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"}),M=(e,t)=>r({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},d={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"},za={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{jsx as kn}from"react/jsx-runtime";var eo="k-actions",Nn=[],vn={},yo={alignment:"start",orientation:"horizontal"},D=e=>{let{alignment:t=yo.alignment,orientation:o=yo.orientation,...s}=e;return kn("div",{...s,className:r(eo,{[`${eo}-${t}`]:t,[`${eo}-${o}`]:o},e.className),children:e.children})};D.states=Nn;D.options=vn;D.className=eo;D.defaultOptions=yo;import{Fragment as gn,jsx as wa}from"react/jsx-runtime";var To="k-icon k-font-icon",Sn=[],Ln={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Cn={},Mt=e=>{let{size:t,themeColor:o,icon:s,rotate:l,flip:p,...i}=e;return s?wa("span",{...i,className:r(e.className,To,L(To,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${l}`]:l,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):wa(gn,{})};Mt.states=Sn;Mt.options=Ln;Mt.className=To;Mt.defaultOptions=Cn;var Oa=Mt;import{Fragment as yn,jsx as to}from"react/jsx-runtime";var Ao="k-icon k-svg-icon",Mn=[],In={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Ra={viewBox:"0 0 24 24"},It=e=>{let{size:t,themeColor:o,rotate:s,flip:l,viewBox:p=Ra.viewBox,icon:i,...u}=e;if(!i)return to(yn,{});i==="none"&&{...u,className:r(e.className,Ao,"k-none")};let b=typeof i=="object"&&i.name&&i.name;return to("span",{...u,className:r(e.className,Ao,L("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),children:to("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:p,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:e.children})})};It.states=Mn;It.options=In;It.className=Ao;It.defaultOptions=Ra;var Bo=It;import*as Ka from"@progress/kendo-svg-icons";import{Fragment as Ha,jsx as yt}from"react/jsx-runtime";var Tn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),An=[],Bn={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Po={viewBox:"0 0 24 24",type:"svg"},g=e=>{let{size:t,themeColor:o,icon:s,type:l=Po.type,rotate:p,flip:i,viewBox:u=Po.viewBox,...b}=e;if(!s)return yt(Ha,{});if(l==="svg"){if(s==="none")return yt(Bo,{...b,icon:s,size:t});let x=Tn(`${s}-icon`);return Ka[x]?yt(Bo,{...b,icon:Ka[x],size:t,themeColor:o,rotate:p,flip:i,viewBox:u}):yt(Ha,{})}return yt(Oa,{...b,icon:s,size:t,themeColor:o,rotate:p,flip:i})};g.states=An;g.options=Bn;g.defaultOptions=Po;import{Fragment as zn,jsx as Tt,jsxs as Ga}from"react/jsx-runtime";var oo="k-button",Pn=[a.hover,a.focus,a.active,a.selected,a.disabled],En={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark,m.inverse]},Ke={size:n.medium,rounded:f.medium,fillMode:d.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},v=e=>{let{size:t=Ke.size,rounded:o=Ke.rounded,fillMode:s=Ke.fillMode,themeColor:l=Ke.themeColor,showArrow:p=Ke.showArrow,arrowIconName:i=Ke.arrowIconName,hover:u,focus:b,active:x,selected:h,disabled:S,icon:c,text:N,iconClassName:k,...C}=e,y=c!==void 0,T=e.children!==void 0;return Ga("button",{...C,className:r(e.className,oo,L(oo,{size:t,rounded:o,fillMode:s,themeColor:l}),M(oo,{hover:u,focus:b,active:x,disabled:S,selected:h}),{"k-icon-button":!N&&!T&&y}),children:[c&&Tt(g,{className:r(k,"k-button-icon"),icon:c}),N?Ga(zn,{children:[N&&Tt("span",{className:"k-button-text",children:N}),e.children]}):e.children&&Tt("span",{className:"k-button-text",children:e.children}),p&&Tt("span",{className:"k-menu-button-arrow k-button-arrow",children:Tt(g,{icon:i})})]})};v.states=Pn;v.options=En;v.className=oo;v.defaultOptions=Ke;import{jsx as wn}from"react/jsx-runtime";var X=e=>wn(v,{icon:"folder",...e,children:void 0});import{jsx as On}from"react/jsx-runtime";var V=e=>On(v,{icon:"folder",children:"Button",...e});import{jsx as fc}from"react/jsx-runtime";import{Fragment as Gn,jsx as Da}from"react/jsx-runtime";var $a="k-prompt",Rn=[],Kn={},Hn={},q=e=>{let{...t}=e;return Da("div",{...t,className:r(e.className,$a),children:Da(Gn,{children:e.children})})};q.states=Rn;q.options=Kn;q.className=$a;q.defaultOptions=Hn;import{jsx as Ic}from"react/jsx-runtime";import{Fragment as $n,jsx as Va}from"react/jsx-runtime";var Dn="k-prompt-content",Le=e=>{let{...t}=e;return Va("div",{...t,className:r(e.className,Dn),children:Va($n,{children:e.children})})};import{jsx as Xn}from"react/jsx-runtime";var ao="k-input",Vn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],_n={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},ro={size:n.medium,rounded:n.medium,fillMode:d.solid},P=e=>{let{hover:t,focus:o,disabled:s,invalid:l,valid:p,loading:i,readonly:u,size:b=ro.size,rounded:x=ro.rounded,fillMode:h=ro.fillMode,...S}=e;return Xn("span",{...S,className:r(e.className,ao,L(ao,{size:b,rounded:x,fillMode:h}),M(ao,{hover:t,focus:o,disabled:s,invalid:l,valid:p,loading:i,readonly:u}))})};P.states=Vn;P.options=_n;P.className=ao;P.defaultOptions=ro;import{jsx as Un}from"react/jsx-runtime";var no="k-picker",Fn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Jn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},so={size:n.medium,rounded:f.medium,fillMode:d.solid},ne=e=>{let{hover:t,focus:o,disabled:s,invalid:l,valid:p,loading:i,readonly:u,size:b=so.size,rounded:x=so.rounded,fillMode:h=so.fillMode,...S}=e;return Un("span",{...S,className:r(e.className,no,L(no,{size:b,rounded:x,fillMode:h}),M(no,{hover:t,focus:o,disabled:s,invalid:l,valid:p,loading:i,readonly:u})),children:e.children})};ne.states=Fn;ne.options=Jn;ne.className=no;ne.defaultOptions=so;import{Fragment as Yn,jsx as Eo}from"react/jsx-runtime";var _a="k-clear-value",qn=[a.disabled,a.loading,a.readonly],Wn={},se=e=>{let{disabled:t,loading:o,readonly:s,value:l}=e;return t||s||o||!l?Eo(Yn,{}):Eo("span",{className:r(e.className,_a),children:Eo(g,{icon:"x"})})};se.states=qn;se.options=Wn;se.className=_a;import{jsx as jn}from"react/jsx-runtime";var zo="k-input-inner",Qn=[],Zn={},io={type:"text",autocomplete:"off",value:"",placeholder:""},ie=e=>{let{value:t=io.value,type:o=io.type,placeholder:s=io.placeholder,autocomplete:l=io.autocomplete,...p}=e;return jn("input",{...p,type:o,className:r(e.className,zo,L(zo,e)),placeholder:s,autoComplete:l,defaultValue:t})};ie.states=Qn;ie.options=Zn;ie.className=zo;import{jsx as Xa,jsxs as os}from"react/jsx-runtime";var wo="k-input-inner",es=[],ts={},He=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:l,valueIconName:p,...i}=e;return os("span",{...i,className:r(e.className,wo,L(wo,e)),children:[l,!l&&p&&Xa(g,{className:"k-input-value-icon",icon:p}),s&&!t&&o,s&&t&&Xa("span",{className:"k-input-value-text",children:t})]})};He.states=es;He.options=ts;He.className=wo;import{jsx as ns}from"react/jsx-runtime";var Oo="k-input-inner",as=[],rs={},Fa={value:"",placeholder:""},At=e=>{let{value:t=Fa.value,placeholder:o=Fa.placeholder,rows:s,...l}=e;return ns("textarea",{...l,className:r(e.className,Oo,L(Oo,e)),placeholder:o,rows:s,defaultValue:t})};At.states=as;At.options=rs;At.className=Oo;import{Fragment as is,jsx as Ja}from"react/jsx-runtime";var Ua="k-input-loading-icon",ss=[a.disabled,a.loading],W=e=>{let{disabled:t,loading:o}=e;return t||!o?Ja(is,{}):Ja("span",{className:r(e.className,Ua,"k-icon k-i-loading")})};W.states=ss;W.className=Ua;import{Fragment as cs,jsx as qa}from"react/jsx-runtime";var Wa="k-input-validation-icon",ls=[a.valid,a.invalid,a.disabled,a.loading],ps={},U=e=>{let{valid:t,invalid:o,disabled:s,loading:l}=e,p=o?"warning-circle":"check-circle";return s||l||!!!(t||o)?qa(cs,{}):qa(g,{className:r(Wa),icon:p})};U.states=ls;U.options=ps;U.className=Wa;import{Fragment as us,jsx as Ya}from"react/jsx-runtime";var ms="k-input-prefix",ds={direction:"horizontal"},Y=e=>{let{direction:t=ds.direction,...o}=e;return e.children?Ya("span",{...o,className:r(ms,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ya(us,{})};import{Fragment as xs,jsx as Qa}from"react/jsx-runtime";var fs="k-input-suffix",bs={direction:"horizontal"},Q=e=>{let{direction:t=bs.direction,...o}=e;return e.children?Qa("span",{...o,className:r(fs,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Qa(xs,{})};import{jsx as dm}from"react/jsx-runtime";import{jsx as xm}from"react/jsx-runtime";import{jsx as Ns}from"react/jsx-runtime";var Za="k-input-separator",hs={direction:"vertical"},Z=e=>{let{direction:t=hs.direction,...o}=e;return Ns("span",{...o,className:r(Za,e.className,{[`${Za}-${t}`]:t})})};import{Fragment as ja,jsx as Bt,jsxs as Ro}from"react/jsx-runtime";var er="k-textarea",vs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],ks={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ce={size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,flow:"vertical",affixesOrientation:"horizontal",resize:"both",separators:!0},et=e=>{let{size:t=Ce.size,rounded:o=Ce.rounded,fillMode:s=Ce.fillMode,separators:l=Ce.separators,affixesOrientation:p=Ce.affixesOrientation,flow:i=Ce.flow,resize:u=Ce.resize,prefix:b,suffix:x,rows:h,value:S,placeholder:c,hover:N,focus:k,valid:C,invalid:y,required:T,disabled:E,...G}=e;return Ro(P,{...G,size:t,rounded:o,fillMode:s,hover:N,focus:k,valid:C,invalid:y,required:T,disabled:E,className:r(e.className,er,{"!k-flex-col":i==="vertical","!k-flex-row":i==="horizontal"}),children:[b&&Ro(ja,{children:[Bt(Y,{className:r({"!k-align-items-start":i===p}),direction:p,children:b}),l&&Bt(Z,{direction:i==="horizontal"?"vertical":"horizontal"})]}),Bt(At,{className:r("!k-overflow-auto",{"!k-flex-none":i==="vertical","k-resize-x":u==="x","k-resize-y":u==="y","k-resize":u==="both","k-resize-none":u==="none"}),value:S,placeholder:c,rows:h}),x&&Ro(ja,{children:[l&&Bt(Z,{direction:i==="horizontal"?"vertical":"horizontal"}),Bt(Q,{className:r({"!k-align-items-start":i===p}),direction:p,children:x})]})]})};et.states=vs;et.options=ks;et.className=er;et.defaultOptions=Ce;import{jsx as $m}from"react/jsx-runtime";import{Fragment as Um,jsx as Jm}from"react/jsx-runtime";import{Fragment as jm,jsx as Zm}from"react/jsx-runtime";import{Fragment as Ls,jsx as tt,jsxs as Ko}from"react/jsx-runtime";var Ss="k-prompt-view",ge=e=>{let{showSearch:t,suggestions:o,settings:s,...l}=e;return Ko("div",{...l,className:r(e.className,Ss),children:[t&&tt(et,{resize:"y",rows:1,placeholder:"Ask or generate content with AI"}),o&&Ko("div",{className:"k-prompt-expander",children:[tt(V,{fillMode:"flat",icon:"chevron-up",children:"Prompt Suggestions"}),tt("div",{className:"k-prompt-expander-content",children:tt(Ls,{children:o})})]}),s&&Ko("div",{className:"k-prompt-expander",children:[tt(V,{fillMode:"flat",icon:"chevron-up",children:"Settings"}),tt("div",{className:"k-prompt-expander-content",children:s})]}),e.children]})};import{jsx as ud}from"react/jsx-runtime";import{jsx as hd}from"react/jsx-runtime";import{jsx as Sd}from"react/jsx-runtime";import{jsx as Ms}from"react/jsx-runtime";var Pt="k-button-group",Cs=[a.disabled],gs={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},or={fillMode:d.solid},w=e=>{let{fillMode:t=or.fillMode,disabled:o,stretched:s,...l}=e;return Ms("div",{...l,className:r(e.className,Pt,L(Pt,{fillMode:t}),M(Pt,{disabled:o}),{[`${Pt}-stretched`]:s}),children:e.children})};w.states=Cs;w.options=gs;w.className=Pt;w.defaultOptions=or;import{Fragment as Bd,jsx as Ad,jsxs as Pd}from"react/jsx-runtime";import{Fragment as Kd,jsx as Rd,jsxs as Hd}from"react/jsx-runtime";import{Fragment as Xd,jsx as _d,jsxs as Fd}from"react/jsx-runtime";import{Fragment as Qd,jsx as Yd,jsxs as Zd}from"react/jsx-runtime";import{jsx as ar,jsxs as Ts}from"react/jsx-runtime";var rr="k-color-preview",Is=[],ys={},Me=e=>{let{color:t,iconName:o,...s}=e;return Ts("span",{...s,className:r(e.className,rr,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ar(g,{icon:o,className:"k-color-preview-icon"}),ar("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Me.states=Is;Me.options=ys;Me.className=rr;import{jsx as nr}from"react/jsx-runtime";var sr="k-animation-container",As=[],Bs={},ir={positionMode:"absolute"},Ie=e=>{let{positionMode:t=ir.positionMode,animationStyle:o,offset:s,...l}=e;return nr("div",{...l,style:{...s,...e.style},className:r(e.className,sr,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:nr("div",{className:"k-child-animation-container",style:o,children:e.children})})};Ie.states=As;Ie.options=Bs;Ie.className=sr;Ie.defaultOptions=ir;import{jsx as lr}from"react/jsx-runtime";var pr="k-popup",Ps=[],Es={},cr={positionMode:"absolute"},K=e=>{let{offset:t,positionMode:o=cr.positionMode,animationStyle:s,...l}=e;return lr(Ie,{positionMode:o,offset:t,animationStyle:s,children:lr("div",{...l,className:r(e.className,pr),children:e.children})})};K.states=Ps;K.options=Es;K.className=pr;K.defaultOptions=cr;import{jsx as ws}from"react/jsx-runtime";var zs="k-actionsheet-footer",mr={alignment:"stretched",orientation:"horizontal"},Et=e=>{let{alignment:t=mr.alignment,orientation:o=mr.orientation,template:s,as:l=s?"div":D,...p}=e;return ws(l,{...p,...!s&&{alignment:t,orientation:o},className:r(e.className,zs),children:e.children})};import{jsx as zt,jsxs as Ks}from"react/jsx-runtime";var dr="k-searchbox",Os=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Rs={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ho={showIcon:!0,icon:"search",size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode},fe=e=>{let{value:t,placeholder:o,size:s,rounded:l,fillMode:p,hover:i,focus:u,valid:b,invalid:x,required:h,loading:S,disabled:c,showIcon:N=Ho.showIcon,icon:k=Ho.icon,...C}=e;return Ks(P,{...C,size:s,rounded:l,fillMode:p,hover:i,focus:u,valid:b,invalid:x,required:h,loading:S,disabled:c,className:r(e.className,dr),children:[N&&zt(g,{className:"k-input-icon",icon:k}),zt(ie,{placeholder:o,value:t}),zt(W,{...e}),zt(U,{...e}),zt(se,{...e})]})};fe.states=Os;fe.options=Rs;fe.className=dr;fe.defaultOptions=Ho;import{jsx as Ou}from"react/jsx-runtime";import{Fragment as ur,jsx as ye,jsxs as Go}from"react/jsx-runtime";var fr="k-textbox",Hs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Gs={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ge={showClearButton:!0,showValidationIcon:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},me=e=>{let{size:t=Ge.size,rounded:o=Ge.rounded,fillMode:s=Ge.fillMode,separators:l=Ge.separators,showClearButton:p=Ge.showClearButton,showValidationIcon:i=Ge.showValidationIcon,prefix:u,suffix:b,type:x,value:h,placeholder:S,hover:c,focus:N,valid:k,invalid:C,required:y,loading:T,disabled:E,readonly:G,...Se}=e;return Go(P,{...Se,size:t,rounded:o,fillMode:s,hover:c,focus:N,valid:k,invalid:C,required:y,loading:T,disabled:E,readonly:G,className:r(e.className,fr),children:[u&&Go(ur,{children:[ye(Y,{children:u}),l&&ye(Z,{})]}),ye(ie,{placeholder:S,value:h,type:x}),i&&ye(U,{valid:k,invalid:C,loading:T,disabled:E}),ye(W,{loading:T,disabled:E}),p&&ye(se,{loading:T,disabled:E,readonly:G,value:h}),b&&Go(ur,{children:[l&&ye(Z,{}),ye(Q,{children:b})]})]})};me.states=Hs;me.options=Gs;me.className=fr;me.defaultOptions=Ge;import{jsx as Ju}from"react/jsx-runtime";import{Fragment as Zu,jsx as Qu}from"react/jsx-runtime";import{Fragment as nf,jsx as rf}from"react/jsx-runtime";import{jsx as Te,jsxs as Do}from"react/jsx-runtime";var xr="k-actionsheet-titlebar",Ds={},j=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:l,filter:p,input:i,inputValue:u,inputPlaceholder:b,adaptive:x,children:h,...S}=e;return Do("div",{...S,className:r(e.className,xr),children:[Do("div",{className:"k-actionsheet-titlebar-group",children:[s&&Te("div",{className:"k-actionsheet-actions",children:s}),!h&&Do("div",{className:"k-actionsheet-title",children:[t&&Te("div",{className:"k-text-center",children:t}),o&&Te("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&Te("div",{className:"k-actionsheet-title",children:h}),l&&Te("div",{className:"k-actionsheet-actions",children:l})]}),(i||p)&&Te("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?Te(me,{value:u,placeholder:b,size:x?"large":"medium"}):Te(fe,{placeholder:"Filter",size:x?"large":"medium"})})]})};j.className=xr;j.defaultOptions=Ds;import{jsx as $o,jsxs as Xs}from"react/jsx-runtime";var Vo="k-actionsheet-view",$s=[],Vs={},_s={},ot=e=>{let{adaptive:t,animated:o,children:s,header:l,footer:p,...i}=e,u=l?.type===j&&$o(j,{adaptive:t,...l?.props}),b=p?.type===Et&&$o(Et,{...p?.props});return Xs("div",{...i,className:r(e.className,Vo,{[`${Vo}-animated`]:o}),children:[u,$o("div",{className:"k-actionsheet-content",children:s}),b]})};ot.states=$s;ot.options=Vs;ot.className=Vo;ot.defaultOptions=_s;import{jsx as lo,jsxs as Us}from"react/jsx-runtime";var hr="k-actionsheet",Fs=[],Js={},wt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},le=e=>{let{side:t=wt.side,fullscreen:o=wt.fullscreen,adaptive:s=wt.adaptive,overlay:l=wt.overlay,template:p,children:i,header:u,footer:b,...x}=e;return Us("div",{className:"k-actionsheet-container",children:[l&&lo("div",{className:"k-overlay"}),lo(Ie,{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:lo("div",{...x,className:r(e.className,hr,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:p||lo(ot,{header:u,footer:b,adaptive:s,...e,children:i})})})]})};le.states=Fs;le.options=Js;le.className=hr;le.defaultOptions=wt;import{jsx as Bf}from"react/jsx-runtime";import{Fragment as Ws,jsx as Ot,jsxs as _o}from"react/jsx-runtime";var Xo="k-actionsheet-item",qs=[a.hover,a.focus,a.selected,a.disabled],Fo=e=>{let{iconName:t,text:o,description:s,hover:l,focus:p,selected:i,disabled:u,...b}=e;return _o("span",{...b,className:r(e.className,Xo,M(Xo,{hover:l,focus:p,selected:i,disabled:u})),children:[!e.children&&Ot(Ws,{children:_o("span",{className:"k-actionsheet-action",children:[t&&Ot("span",{className:"k-icon-wrap",children:Ot(g,{className:"k-actionsheet-item-icon",icon:t})}),_o("span",{className:"k-actionsheet-item-text",children:[o&&Ot("span",{className:"k-actionsheet-item-title",children:o}),s&&Ot("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};Fo.states=qs;Fo.className=Xo;import{jsx as Gf,jsxs as Df}from"react/jsx-runtime";import{jsx as Xf}from"react/jsx-runtime";import{jsx as qf}from"react/jsx-runtime";import{jsx as Zf}from"react/jsx-runtime";import{jsx as at,jsxs as Jo}from"react/jsx-runtime";var Rt="k-slider",Ys=[a.hover,a.focus,a.active,a.disabled,a.readonly],Qs={},Ae={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},ee=e=>{let{type:t=Ae.type,orientation:o=Ae.orientation,readonly:s=Ae.readonly,disabled:l=Ae.disabled,handlePosition:p=Ae.handlePosition,showButtons:i=Ae.showButtons,showTicks:u=Ae.showTicks,hover:b,focus:x,active:h,trackStyle:S,dir:c,...N}=e,k,C;return o==="horizontal"?(k=c==="rtl"?"caret-alt-left":"caret-alt-right",C=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(k="caret-alt-up",C="caret-alt-down"),Jo("div",{...N,className:r(Rt,e.className,M(Rt,{readonly:s,disabled:l}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[i&&at(v,{className:"k-button-decrease",rounded:"full",icon:C}),Jo("div",{className:"k-slider-track-wrap",children:[u&&at("ul",{className:"k-reset k-slider-items",children:e.children}),Jo("div",{className:"k-slider-track",style:S,children:[at("div",{className:"k-slider-selection"}),t==="range"&&at("span",{className:r("k-draghandle","k-draghandle-start",M(Rt,{hover:b,focus:x,active:h}))}),at("span",{className:r("k-draghandle",`k-draghandle-${p}`,M(Rt,{hover:b,focus:x,active:h}))})]})]}),i&&at(v,{className:"k-button-increase",rounded:"full",icon:k})]})};ee.states=Ys;ee.options=Qs;ee.className=Rt;ee.defaultOptions=Ae;import{jsx as vr}from"react/jsx-runtime";var kr="k-tick",Zs=[],js={},Sr={label:!1},Be=e=>{let{style:t,label:o=Sr.label,orientation:s,large:l,text:p,...i}=e;return vr("li",{...i,className:r(e.className,kr,{[`k-tick-${s}`]:s,"k-tick-large":l}),style:t,children:o&&vr("span",{className:"k-label",children:p})})};Be.states=Zs;Be.options=js;Be.className=kr;Be.defaultOptions=Sr;import{Fragment as Sb,jsx as kb,jsxs as Lb}from"react/jsx-runtime";import{Fragment as yb,jsx as Ib,jsxs as Tb}from"react/jsx-runtime";import{Fragment as zb,jsx as Eb,jsxs as wb}from"react/jsx-runtime";import{Fragment as Gb,jsx as Hb,jsxs as Db}from"react/jsx-runtime";import{jsx as ei}from"react/jsx-runtime";var Uo=e=>ei(ee,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as ti}from"react/jsx-runtime";var qo=e=>ti(ee,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Lr,jsxs as ri}from"react/jsx-runtime";var Cr="k-spin-button",oi=[],ai={size:[n.small,n.medium,n.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Wo={size:n.medium,fillMode:d.solid},rt=e=>{let{size:t=Wo.size,fillMode:o=Wo.fillMode,...s}=e;return ri("span",{...s,className:r(Cr,e.className),children:[Lr(v,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Lr(v,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};rt.states=oi;rt.options=ai;rt.className=Cr;rt.defaultOptions=Wo;import{Fragment as gr,jsx as be,jsxs as Yo}from"react/jsx-runtime";var Mr="k-numerictextbox",ni=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],si={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},De={showSpinButton:!0,showClearButton:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},R=e=>{let{size:t=De.size,rounded:o=De.rounded,fillMode:s=De.fillMode,separators:l=De.separators,showClearButton:p=De.showClearButton,showSpinButton:i=De.showSpinButton,prefix:u,suffix:b,value:x,placeholder:h,hover:S,focus:c,valid:N,invalid:k,required:C,loading:y,disabled:T,readonly:E,...G}=e;return Yo(P,{...G,size:t,rounded:o,fillMode:s,hover:S,focus:c,valid:N,invalid:k,required:C,loading:y,disabled:T,readonly:E,className:r(e.className,Mr),children:[u&&Yo(gr,{children:[be(Y,{children:u}),l&&be(Z,{})]}),be(ie,{placeholder:h,value:x}),be(U,{valid:N,invalid:k,loading:y,disabled:T}),be(W,{loading:y,disabled:T}),p&&be(se,{loading:y,disabled:T,readonly:E,value:x}),b&&Yo(gr,{children:[l&&be(Z,{}),be(Q,{children:b})]}),i&&be(rt,{className:"k-input-spinner",size:t,fillMode:s})]})};R.states=ni;R.options=si;R.className=Mr;R.defaultOptions=De;import{jsx as xx}from"react/jsx-runtime";import{jsx as li}from"react/jsx-runtime";var ii="k-no-data",Kt=e=>li("span",{className:r(ii,e.className),children:e.children});import{jsx as nt,jsxs as yr}from"react/jsx-runtime";var Qo="k-list",pi=[],ci={size:[n.small,n.medium,n.large]},Tr={size:n.medium},z=e=>{let{size:t=Tr.size,virtualization:o,children:s,optionLabel:l,customValue:p,screenReaders:i,...u}=e,b,x,h,S,c=[];return s?s.map((N,k)=>{N.type===$?(N.props.root===!0?(b=N.props.label,N.props.children.map((C,y)=>{c.push(nt(I,{...C.props},`optChild-${y}-${new Date().getTime()}`))})):N.props.children.forEach((C,y)=>{let T="";y===0&&(T=N.props.label),c.push(nt(I,{className:y===0?"k-first":"",...C.props,groupLabel:T},`groupLabel-${y}-${new Date().getTime()}`))}),x=nt($,{label:b,virtualization:o,children:c})):N.type===I&&(c.push(nt(I,{...N.props},`${N.type}-${k}`)),h=nt(st,{virtualization:o,children:c}),i&&(S=yr(Kt,{className:"k-sr-only",children:[c.length," items found."]})))}):S=nt(Kt,{children:"No data found."}),yr("div",{...u,className:r(e.className,Qo,L(Qo,{size:t}),{"k-virtual-list":o}),children:[l,p,x,h,S]})};z.states=pi;z.options=ci;z.className=Qo;z.defaultOptions=Tr;import{jsx as $e,jsxs as ui}from"react/jsx-runtime";var Zo="k-list",mi=[],di={size:[n.small,n.medium,n.large]},Ar={size:n.medium},Ve=e=>{let{size:t=Ar.size,virtualization:o,children:s,...l}=e,p,i,u,b=[];return s?s.map((x,h)=>{x.type===$?(x.props.root===!0?(p=x.props.label,x.props.children.map((S,c)=>{b.push($e(I,{...S.props},`optChild-${c}-${new Date().getTime()}`))})):(b.push($e(Br,{...x.props,children:x.props.label},`listChild-${h}`)),x.props.children.map((S,c)=>{b.push($e(I,{...S.props},`fwOptChild-${c}-${new Date().getTime()}`))})),i=$e($,{label:p,virtualization:o,children:b})):x.type===I&&(b.push($e(I,{...x.props},`${x.type}-${h}`)),u=$e(st,{virtualization:o,children:b}))}):u=$e(Kt,{children:"No data found."}),ui("div",{...l,className:r(e.className,Zo,L(Zo,{size:t}),{"k-virtual-list":o}),children:[i,u]})};Ve.states=mi;Ve.options=di;Ve.className=Zo;Ve.defaultOptions=Ar;import{jsx as Pr}from"react/jsx-runtime";var po="k-checkbox",fi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],bi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},jo={size:n.medium,rounded:f.medium},Pe=e=>{let{id:t,checked:o,indeterminate:s,hover:l,focus:p,disabled:i,invalid:u,valid:b,required:x,size:h=jo.size,rounded:S=jo.rounded,...c}=e;return Pr("span",{className:"k-checkbox-wrap",children:Pr("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:x,className:r(e.className,po,L(po,{size:h,rounded:S}),M(po,{hover:l,focus:p,disabled:i,invalid:u,valid:b,indeterminate:s,checked:o}))})})};Pe.states=fi;Pe.options=bi;Pe.className=po;Pe.defaultOptions=jo;import{jsx as Ni}from"react/jsx-runtime";var Er="k-checkbox-list",xi=[],hi={},zr={layout:"vertical"},it=e=>{let{layout:t=zr.layout,...o}=e;return Ni("ul",{...o,className:r(e.className,Er,{[`k-list-${t}`]:t}),children:e.children})};it.states=xi;it.options=hi;it.className=Er;it.defaultOptions=zr;import{jsx as Li}from"react/jsx-runtime";var wr="k-checkbox-list-item",vi=[],ki={},Si={},lt=e=>{let{...t}=e;return Li("li",{...t,className:r(e.className,wr),children:e.children})};lt.states=vi;lt.options=ki;lt.className=wr;lt.defaultOptions=Si;import{Fragment as Fx,jsx as Xx,jsxs as Jx}from"react/jsx-runtime";import{Fragment as Qx,jsx as Yx,jsxs as Zx}from"react/jsx-runtime";import{Fragment as ah,jsx as oh,jsxs as rh}from"react/jsx-runtime";import{Fragment as ph,jsx as lh,jsxs as ch}from"react/jsx-runtime";import{jsx as fh}from"react/jsx-runtime";import{jsx as Nh}from"react/jsx-runtime";import{jsx as co,jsxs as Ii}from"react/jsx-runtime";var ta="k-list-item",Ci=[a.hover,a.focus,a.selected,a.disabled],gi={},Mi={},I=e=>{let{text:t,groupLabel:o,group:s,showIcon:l,iconName:p,showCheckbox:i,checked:u,hover:b,focus:x,selected:h,disabled:S,...c}=e,N=t||e.children;return Ii("li",{...c,className:r(e.className,s?"k-list-group-item":ta,M(ta,{hover:b,focus:x,disabled:S,selected:h})),children:[i&&co(Pe,{checked:u}),l&&co(g,{icon:p}),co("span",{className:"k-list-item-text",children:N}),o&&o!==""&&co("div",{className:"k-list-item-group-label",children:o})]})};I.states=Ci;I.options=gi;I.className=ta;I.defaultOptions=Mi;import{jsx as oa,jsxs as Ti}from"react/jsx-runtime";var yi="k-list-content",st=e=>{let{virtualization:t,...o}=e;return Ti("div",{...o,className:r(yi,e.className),children:[oa("ul",{className:r("k-list-ul"),children:e.children}),t&&oa("div",{className:"k-height-container",children:oa("div",{})})]})};import{jsx as Or}from"react/jsx-runtime";var Ai="k-list-group-sticky-header",Rr=e=>Or("div",{className:r(Ai,e.className),children:Or("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Bi,jsx as Kr,jsxs as Pi}from"react/jsx-runtime";var $=e=>{let{virtualization:t,label:o}=e;return Pi(Bi,{children:[o&&Kr(Rr,{children:o}),e.children&&Kr(st,{virtualization:t,children:e.children})]})};import{jsx as Hr}from"react/jsx-runtime";var Ei="k-list-group-item",Br=e=>Hr("li",{className:r(Ei,e.className),children:Hr("span",{className:"k-list-item-text",children:e.children})});import{jsx as Ri}from"react/jsx-runtime";var aa="k-list-optionlabel",zi=[a.hover,a.focus,a.selected,a.disabled],wi={},Oi={},mo=e=>{let{text:t,hover:o,focus:s,selected:l,disabled:p,...i}=e;return Ri("div",{...i,className:r(aa,M(aa,{hover:o,focus:s,selected:l,disabled:p})),children:t})};mo.states=zi;mo.options=wi;mo.className=aa;mo.defaultOptions=Oi;import{jsx as Di}from"react/jsx-runtime";var ra="k-list-custom-value",Ki=[a.hover,a.focus,a.selected,a.disabled],Hi={},Gi={},Ee=e=>{let{text:t,hover:o,focus:s,selected:l,disabled:p,...i}=e;return Di("div",{...i,className:r(ra,M(ra,{hover:o,focus:s,selected:l,disabled:p})),children:t})};Ee.states=Ki;Ee.options=Hi;Ee.className=ra;Ee.defaultOptions=Gi;import{jsx as tN}from"react/jsx-runtime";import{jsx as nN}from"react/jsx-runtime";import{jsx as pN,jsxs as cN}from"react/jsx-runtime";import{jsx as fN,jsxs as bN}from"react/jsx-runtime";import{jsx as vN}from"react/jsx-runtime";import{jsx as CN,jsxs as gN}from"react/jsx-runtime";import{jsx as TN,jsxs as AN}from"react/jsx-runtime";import{Fragment as _i,jsx as F,jsxs as na}from"react/jsx-runtime";var Gr="k-dropdownlist",$i=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Vi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},pt={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:d.solid},ze=e=>{let{size:t=pt.size,rounded:o=pt.rounded,fillMode:s=pt.fillMode,arrowIconName:l=pt.arrowIconName,showValue:p=pt.showValue,valueIconName:i,prefix:u,suffix:b,value:x,placeholder:h,hover:S,focus:c,valid:N,invalid:k,required:C,loading:y,disabled:T,readonly:E,popup:G,opened:Se,adaptive:Ct,adaptiveSettings:gt,adaptiveTitle:Mo,adaptiveSubtitle:Io,adaptiveFilter:xn,...hn}=e;return na(_i,{children:[na(ne,{...hn,size:t,rounded:o,fillMode:s,hover:S,focus:c,valid:N,invalid:k,required:C,loading:y,disabled:T,readonly:E,className:r(e.className,Gr,{"k-icon-picker":!p&&i}),children:[F(Y,{children:u}),F(He,{placeholder:h,value:x,showValue:p,valueIconName:i}),F(U,{valid:N,invalid:k,loading:y,disabled:T}),F(W,{loading:y,disabled:T}),F(Q,{children:b}),F(v,{className:"k-input-button",icon:l,rounded:null,size:e.size,fillMode:e.fillMode})]}),Se&&G&&F(K,{className:"k-list-container k-dropdownlist-popup",children:G}),Ct&&F(le,{adaptive:!0,...gt,header:F(j,{actionsEnd:F(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:xn,inputValue:x,inputPlaceholder:h,title:Mo,subtitle:Io}),children:F("div",{className:"k-list-container",children:na(z,{size:"large",children:[F(I,{text:"List item"}),F(I,{text:"List item"}),F(I,{text:"List item"})]})})})]})};ze.states=$i;ze.options=Vi;ze.className=Gr;ze.defaultOptions=pt;import{jsx as nv}from"react/jsx-runtime";import{jsx as cv,jsxs as mv}from"react/jsx-runtime";import{Fragment as vv,jsx as hv,jsxs as Nv}from"react/jsx-runtime";import{jsx as Cv}from"react/jsx-runtime";import{jsx as Tv,jsxs as Av}from"react/jsx-runtime";import{jsx as wv,jsxs as Ov}from"react/jsx-runtime";import{Fragment as _v,jsx as $v,jsxs as Vv}from"react/jsx-runtime";import{Fragment as Qv,jsx as Wv,jsxs as Yv}from"react/jsx-runtime";import{Fragment as uk,jsx as dk}from"react/jsx-runtime";import{Fragment as kk,jsx as vk}from"react/jsx-runtime";import{Fragment as Ht,jsx as A,jsxs as O}from"react/jsx-runtime";var Dr="k-colorgradient-inputs",Xi=[],Fi={size:[n.small,n.medium,n.large]},$r={mode:"rgba",size:n.medium},ct=e=>{let{mode:t=$r.mode,size:o,...s}=e;return O("div",{...s,className:r(Dr,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(v,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&O(Ht,{children:[O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&O(Ht,{children:[O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&O(Ht,{children:[O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&O(Ht,{children:[O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),O("div",{className:"k-vstack",children:[A(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(Ht,{children:O("div",{className:"k-vstack k-flex-1",children:[A(me,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};ct.states=Xi;ct.options=Fi;ct.className=Dr;ct.defaultOptions=$r;import{jsx as Xe,jsxs as Fe}from"react/jsx-runtime";var Vr="k-colorgradient-color-contrast",Ji=[],Ui={},qi={},mt=()=>Fe("div",{className:r(Vr,"k-vbox"),children:[Fe("div",{className:"k-contrast-ratio",children:[Xe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Fe("span",{className:"k-contrast-validation !k-text-success",children:[Xe(g,{icon:"check"}),Xe(g,{icon:"check"})]})]}),Fe("div",{children:[Xe("span",{children:"AA: 4.5"}),Fe("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Xe(g,{icon:"check"})]})]}),Fe("div",{children:[Xe("span",{children:"AAA: 7.0"}),Fe("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Xe(g,{icon:"x"})]})]})]});mt.states=Ji;mt.options=Ui;mt.className=Vr;mt.defaultOptions=qi;import{jsx as te,jsxs as Gt}from"react/jsx-runtime";var uo="k-colorgradient",Wi=[a.hover,a.focus,a.readonly,a.disabled],Yi={size:[n.small,n.medium,n.large]},pe={size:n.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"},we=e=>{let{size:t=pe.size,mode:o=pe.mode,readonly:s=pe.readonly,disabled:l=pe.disabled,gradientStyle:p=pe.gradientStyle,dragHandleStyle:i=pe.dragHandleStyle,alphaStyle:u=pe.alphaStyle,alphaStyleHorizontal:b=pe.alphaStyleHorizontal,contrast:x=pe.contrast,dir:h,hover:S,focus:c,hoverHandle:N,focusHandle:k,canvasOrientation:C=pe.canvasOrientation,...y}=e;return Gt("div",{...y,className:r(e.className,uo,L(uo,{size:t}),M(uo,{hover:S,focus:c,readonly:s,disabled:l})),dir:h,children:[!C||C==="horizontal"&&Gt("div",{className:"k-colorgradient-canvas k-hstack",children:[te("div",{className:"k-hsv-rectangle",style:p,children:te("div",{className:"k-hsv-gradient",children:te("div",{className:r("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:i})})}),Gt("div",{className:"k-hsv-controls k-hstack",children:[te(qo,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&te(qo,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:u})]})]}),C==="vertical"&&Gt("div",{className:"k-colorgradient-canvas k-vstack",children:[te("div",{className:"k-hsv-rectangle",style:p,children:te("div",{className:"k-hsv-gradient",children:te("div",{className:r("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:i})})}),Gt("div",{className:"k-hsv-controls k-vstack",children:[te(Uo,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&te(Uo,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:b})]})]}),te(ct,{mode:e.mode,size:t}),x&&te(mt,{})]})};we.states=Wi;we.options=Yi;we.className=uo;we.defaultOptions=pe;import{jsx as Fk}from"react/jsx-runtime";import{jsx as Wk}from"react/jsx-runtime";import{jsx as Qi}from"react/jsx-runtime";var _r=e=>Qi("tr",{children:e.children});import{jsx as el}from"react/jsx-runtime";var sa="k-colorpalette-tile",Zi=[a.hover,a.focus,a.selected],ji={},Dt=e=>{let{color:t,tileSize:o,hover:s,focus:l,selected:p,...i}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return el("td",{...i,className:r(e.className,sa,M(sa,{hover:s,focus:l,selected:p})),style:u})};Dt.states=Zi;Dt.options=ji;Dt.className=sa;import{jsx as $t}from"react/jsx-runtime";var fo="k-colorpalette",tl=[a.disabled],ol={size:[n.small,n.medium,n.large]},ia={columns:10,size:n.medium},dt=e=>{let{size:t=ia.size,palette:o,columns:s=ia.columns,tileSize:l,disabled:p,...i}=e,u=[];if(o){let b=s||o.columns,x=o.colors?o.colors:o;Array.isArray(x)&&Array.from({length:Math.ceil(x.length/b)},(h,S)=>{let c=[];x.slice(S*b,(S+1)*b).map((k,C)=>{c.push($t(Dt,{color:k,tileSize:l},C))});let N=$t(_r,{children:c},S);u.push(N)})}return $t("div",{...i,className:r(e.className,fo,M(fo,{disabled:p}),L(fo,{size:t})),children:$t("table",{className:"k-colorpalette-table",children:$t("tbody",{children:u.length>0?u:e.children})})})};dt.states=tl;dt.options=ol;dt.className=fo;dt.defaultOptions=ia;var la={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 NS}from"react/jsx-runtime";import{jsx as oe,jsxs as ut}from"react/jsx-runtime";var bo="k-coloreditor",al=[a.focus],rl={size:[n.small,n.medium,n.large]},ft={size:n.medium,view:"gradient",palette:la.office,actionButtons:!0,canvasOrientation:"horizontal"},de=e=>{let{size:t=ft.size,view:o=ft.view,palette:s=ft.palette,color:l,currentColor:p,focus:i,focusView:u,dir:b,group:x,actionButtons:h=ft.actionButtons,canvasOrientation:S=ft.canvasOrientation,...c}=e;return ut("div",{...c,className:r(e.className,"k-flatcolorpicker",bo,L(bo,{size:t}),M(bo,{focus:i})),dir:b,children:[ut("div",{className:"k-coloreditor-header k-hstack",children:[oe("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&ut(w,{fillMode:"flat",children:[oe(v,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),oe(v,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),oe("div",{className:"k-spacer"}),ut("div",{className:"k-coloreditor-header-actions k-hstack",children:[oe(v,{fillMode:"flat",icon:"droplet-slash",size:t}),ut("div",{className:"k-coloreditor-preview k-vstack",children:[oe(Me,{className:"k-coloreditor-preview-color",color:l}),oe(Me,{className:"k-coloreditor-current-color",color:p})]})]})]}),oe("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?oe(we,{focus:u,size:t,canvasOrientation:S}):oe(dt,{palette:s,size:t})}),h&&ut(D,{className:"k-coloreditor-footer",alignment:"start",children:[oe(v,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),oe(v,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};de.states=al;de.options=rl;de.className=bo;de.defaultOptions=ft;import{jsx as KS}from"react/jsx-runtime";import{jsx as $S}from"react/jsx-runtime";import{jsx as FS}from"react/jsx-runtime";import{jsx as WS}from"react/jsx-runtime";import{Fragment as il,jsx as ae,jsxs as ca}from"react/jsx-runtime";var Xr="k-colorpicker",nl=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],sl={size:[n.small,n.medium,