UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 76.6 kB
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...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)=>a({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),M=(e,t)=>a({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly});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"},r={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"},Oa={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{jsx as Sn}from"react/jsx-runtime";var oo="k-actions",vn=[],kn={},Po={alignment:"start",orientation:"horizontal"},D=e=>{let{alignment:t=Po.alignment,orientation:o=Po.orientation,...s}=e;return Sn("div",{...s,className:a(oo,{[`${oo}-${t}`]:t,[`${oo}-${o}`]:o},e.className),children:e.children})};D.states=vn;D.options=kn;D.className=oo;D.defaultOptions=Po;import{Fragment as Mn,jsx as Ra}from"react/jsx-runtime";var Eo="k-icon k-font-icon",Ln=[],Cn={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]},gn={},At=e=>{let{size:t,themeColor:o,icon:s,rotate:l,flip:p,...i}=e;return s?Ra("span",{...i,className:a(e.className,Eo,L(Eo,{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"})}):Ra(Mn,{})};At.states=Ln;At.options=Cn;At.className=Eo;At.defaultOptions=gn;var Ka=At;import{Fragment as Tn,jsx as ao}from"react/jsx-runtime";var zo="k-icon k-svg-icon",In=[],yn={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]},Ha={viewBox:"0 0 24 24"},Bt=e=>{let{size:t,themeColor:o,rotate:s,flip:l,viewBox:p=Ha.viewBox,icon:i,...u}=e;if(!i)return ao(Tn,{});i==="none"&&{...u,className:a(e.className,zo,"k-none")};let b=typeof i=="object"&&i.name&&i.name;return ao("span",{...u,className:a(e.className,zo,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:ao("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})})};Bt.states=In;Bt.options=yn;Bt.className=zo;Bt.defaultOptions=Ha;var wo=Bt;import*as Ga from"@progress/kendo-svg-icons";import{Fragment as Da,jsx as Pt}from"react/jsx-runtime";var An=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Bn=[],Pn={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]},Oo={viewBox:"0 0 24 24",type:"svg"},g=e=>{let{size:t,themeColor:o,icon:s,type:l=Oo.type,rotate:p,flip:i,viewBox:u=Oo.viewBox,...b}=e;if(!s)return Pt(Da,{});if(l==="svg"){if(s==="none")return Pt(wo,{...b,icon:s,size:t});let x=An(`${s}-icon`);return Ga[x]?Pt(wo,{...b,icon:Ga[x],size:t,themeColor:o,rotate:p,flip:i,viewBox:u}):Pt(Da,{})}return Pt(Ka,{...b,icon:s,size:t,themeColor:o,rotate:p,flip:i})};g.states=Bn;g.options=Pn;g.defaultOptions=Oo;import{Fragment as wn,jsx as Et,jsxs as $a}from"react/jsx-runtime";var ro="k-button",En=[r.hover,r.focus,r.active,r.selected,r.disabled],zn={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 $a("button",{...C,className:a(e.className,ro,L(ro,{size:t,rounded:o,fillMode:s,themeColor:l}),M(ro,{hover:u,focus:b,active:x,disabled:S,selected:h}),{"k-icon-button":!N&&!T&&y}),children:[c&&Et(g,{className:a(k,"k-button-icon"),icon:c}),N?$a(wn,{children:[N&&Et("span",{className:"k-button-text",children:N}),e.children]}):e.children&&Et("span",{className:"k-button-text",children:e.children}),p&&Et("span",{className:"k-menu-button-arrow k-button-arrow",children:Et(g,{icon:i})})]})};v.states=En;v.options=zn;v.className=ro;v.defaultOptions=Ke;import{jsx as On}from"react/jsx-runtime";var K=e=>On(v,{icon:"folder",...e,children:void 0});import{jsx as Rn}from"react/jsx-runtime";var H=e=>Rn(v,{icon:"folder",children:"Button",...e});import{jsx as vc}from"react/jsx-runtime";import{jsx as Gn}from"react/jsx-runtime";var zt="k-button-group",Kn=[r.disabled],Hn={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Va={fillMode:d.solid},O=e=>{let{fillMode:t=Va.fillMode,disabled:o,stretched:s,...l}=e;return Gn("div",{...l,className:a(e.className,zt,L(zt,{fillMode:t}),M(zt,{disabled:o}),{[`${zt}-stretched`]:s}),children:e.children})};O.states=Kn;O.options=Hn;O.className=zt;O.defaultOptions=Va;import{Fragment as zc,jsx as Ec,jsxs as wc}from"react/jsx-runtime";import{Fragment as Dc,jsx as Gc,jsxs as $c}from"react/jsx-runtime";import{Fragment as Uc,jsx as Jc,jsxs as qc}from"react/jsx-runtime";import{Fragment as em,jsx as jc,jsxs as tm}from"react/jsx-runtime";import{jsx as Vn}from"react/jsx-runtime";var no="k-input",Dn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.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]},so={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=so.size,rounded:x=so.rounded,fillMode:h=so.fillMode,...S}=e;return Vn("span",{...S,className:a(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}))})};P.states=Dn;P.options=$n;P.className=no;P.defaultOptions=so;import{jsx as Fn}from"react/jsx-runtime";var io="k-picker",_n=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Xn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},lo={size:n.medium,rounded:f.medium,fillMode:d.solid},se=e=>{let{hover:t,focus:o,disabled:s,invalid:l,valid:p,loading:i,readonly:u,size:b=lo.size,rounded:x=lo.rounded,fillMode:h=lo.fillMode,...S}=e;return Fn("span",{...S,className:a(e.className,io,L(io,{size:b,rounded:x,fillMode:h}),M(io,{hover:t,focus:o,disabled:s,invalid:l,valid:p,loading:i,readonly:u})),children:e.children})};se.states=_n;se.options=Xn;se.className=io;se.defaultOptions=lo;import{Fragment as qn,jsx as Ro}from"react/jsx-runtime";var _a="k-clear-value",Jn=[r.disabled,r.loading,r.readonly],Un={},ie=e=>{let{disabled:t,loading:o,readonly:s,value:l}=e;return t||s||o||!l?Ro(qn,{}):Ro("span",{className:a(e.className,_a),children:Ro(g,{icon:"x"})})};ie.states=Jn;ie.options=Un;ie.className=_a;import{jsx as Qn}from"react/jsx-runtime";var Ko="k-input-inner",Wn=[],Yn={},po={type:"text",autocomplete:"off",value:"",placeholder:""},le=e=>{let{value:t=po.value,type:o=po.type,placeholder:s=po.placeholder,autocomplete:l=po.autocomplete,...p}=e;return Qn("input",{...p,type:o,className:a(e.className,Ko,L(Ko,e)),placeholder:s,autoComplete:l,defaultValue:t})};le.states=Wn;le.options=Yn;le.className=Ko;import{jsx as Xa,jsxs as es}from"react/jsx-runtime";var Ho="k-input-inner",Zn=[],jn={},He=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:l,valueIconName:p,...i}=e;return es("span",{...i,className:a(e.className,Ho,L(Ho,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=Zn;He.options=jn;He.className=Ho;import{jsx as as}from"react/jsx-runtime";var Go="k-input-inner",ts=[],os={},Fa={value:"",placeholder:""},wt=e=>{let{value:t=Fa.value,placeholder:o=Fa.placeholder,rows:s,...l}=e;return as("textarea",{...l,className:a(e.className,Go,L(Go,e)),placeholder:o,rows:s,defaultValue:t})};wt.states=ts;wt.options=os;wt.className=Go;import{Fragment as ns,jsx as Ja}from"react/jsx-runtime";var Ua="k-input-loading-icon",rs=[r.disabled,r.loading],W=e=>{let{disabled:t,loading:o}=e;return t||!o?Ja(ns,{}):Ja("span",{className:a(e.className,Ua,"k-icon k-i-loading")})};W.states=rs;W.className=Ua;import{Fragment as ls,jsx as qa}from"react/jsx-runtime";var Wa="k-input-validation-icon",ss=[r.valid,r.invalid,r.disabled,r.loading],is={},q=e=>{let{valid:t,invalid:o,disabled:s,loading:l}=e,p=o?"warning-circle":"check-circle";return s||l||!!!(t||o)?qa(ls,{}):qa(g,{className:a(Wa),icon:p})};q.states=ss;q.options=is;q.className=Wa;import{Fragment as ms,jsx as Ya}from"react/jsx-runtime";var ps="k-input-prefix",cs={direction:"horizontal"},Y=e=>{let{direction:t=cs.direction,...o}=e;return e.children?Ya("span",{...o,className:a(ps,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ya(ms,{})};import{Fragment as fs,jsx as Qa}from"react/jsx-runtime";var ds="k-input-suffix",us={direction:"horizontal"},Q=e=>{let{direction:t=us.direction,...o}=e;return e.children?Qa("span",{...o,className:a(ds,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Qa(fs,{})};import{jsx as Xm}from"react/jsx-runtime";import{jsx as qm}from"react/jsx-runtime";import{jsx as xs}from"react/jsx-runtime";var Za="k-input-separator",bs={direction:"vertical"},Z=e=>{let{direction:t=bs.direction,...o}=e;return xs("span",{...o,className:a(Za,e.className,{[`${Za}-${t}`]:t})})};import{jsx as ja,jsxs as vs}from"react/jsx-runtime";var er="k-color-preview",hs=[],Ns={},Le=e=>{let{color:t,iconName:o,...s}=e;return vs("span",{...s,className:a(e.className,er,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ja(g,{icon:o,className:"k-color-preview-icon"}),ja("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Le.states=hs;Le.options=Ns;Le.className=er;import{jsx as tr}from"react/jsx-runtime";var or="k-animation-container",ks=[],Ss={},ar={positionMode:"absolute"},Ce=e=>{let{positionMode:t=ar.positionMode,animationStyle:o,offset:s,...l}=e;return tr("div",{...l,style:{...s,...e.style},className:a(e.className,or,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:tr("div",{className:"k-child-animation-container",style:o,children:e.children})})};Ce.states=ks;Ce.options=Ss;Ce.className=or;Ce.defaultOptions=ar;import{jsx as rr}from"react/jsx-runtime";var nr="k-popup",Ls=[],Cs={},sr={positionMode:"absolute"},$=e=>{let{offset:t,positionMode:o=sr.positionMode,animationStyle:s,...l}=e;return rr(Ce,{positionMode:o,offset:t,animationStyle:s,children:rr("div",{...l,className:a(e.className,nr),children:e.children})})};$.states=Ls;$.options=Cs;$.className=nr;$.defaultOptions=sr;import{jsx as Ms}from"react/jsx-runtime";var gs="k-actionsheet-footer",ir={alignment:"stretched",orientation:"horizontal"},Ot=e=>{let{alignment:t=ir.alignment,orientation:o=ir.orientation,template:s,as:l=s?"div":D,...p}=e;return Ms(l,{...p,...!s&&{alignment:t,orientation:o},className:a(e.className,gs),children:e.children})};import{jsx as Rt,jsxs as Ts}from"react/jsx-runtime";var lr="k-searchbox",Is=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],ys={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Do={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=Do.showIcon,icon:k=Do.icon,...C}=e;return Ts(P,{...C,size:s,rounded:l,fillMode:p,hover:i,focus:u,valid:b,invalid:x,required:h,loading:S,disabled:c,className:a(e.className,lr),children:[N&&Rt(g,{className:"k-input-icon",icon:k}),Rt(le,{placeholder:o,value:t}),Rt(W,{...e}),Rt(q,{...e}),Rt(ie,{...e})]})};fe.states=Is;fe.options=ys;fe.className=lr;fe.defaultOptions=Do;import{jsx as Vd}from"react/jsx-runtime";import{Fragment as pr,jsx as ge,jsxs as $o}from"react/jsx-runtime";var cr="k-textbox",As=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Bs={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},be=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:_,...Se}=e;return $o(P,{...Se,size:t,rounded:o,fillMode:s,hover:c,focus:N,valid:k,invalid:C,required:y,loading:T,disabled:E,readonly:_,className:a(e.className,cr),children:[u&&$o(pr,{children:[ge(Y,{children:u}),l&&ge(Z,{})]}),ge(le,{placeholder:S,value:h,type:x}),i&&ge(q,{valid:k,invalid:C,loading:T,disabled:E}),ge(W,{loading:T,disabled:E}),p&&ge(ie,{loading:T,disabled:E,readonly:_,value:h}),b&&$o(pr,{children:[l&&ge(Z,{}),ge(Q,{children:b})]})]})};be.states=As;be.options=Bs;be.className=cr;be.defaultOptions=Ge;import{jsx as jd}from"react/jsx-runtime";import{Fragment as nu,jsx as ru}from"react/jsx-runtime";import{Fragment as du,jsx as mu}from"react/jsx-runtime";import{jsx as Me,jsxs as Vo}from"react/jsx-runtime";var dr="k-actionsheet-titlebar",Ps={},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 Vo("div",{...S,className:a(e.className,dr),children:[Vo("div",{className:"k-actionsheet-titlebar-group",children:[s&&Me("div",{className:"k-actionsheet-actions",children:s}),!h&&Vo("div",{className:"k-actionsheet-title",children:[t&&Me("div",{className:"k-text-center",children:t}),o&&Me("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&Me("div",{className:"k-actionsheet-title",children:h}),l&&Me("div",{className:"k-actionsheet-actions",children:l})]}),(i||p)&&Me("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?Me(be,{value:u,placeholder:b,size:x?"large":"medium"}):Me(fe,{placeholder:"Filter",size:x?"large":"medium"})})]})};j.className=dr;j.defaultOptions=Ps;import{jsx as _o,jsxs as Os}from"react/jsx-runtime";var Xo="k-actionsheet-view",Es=[],zs={},ws={},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===Ot&&_o(Ot,{...p?.props});return Os("div",{...i,className:a(e.className,Xo,{[`${Xo}-animated`]:o}),children:[u,_o("div",{className:"k-actionsheet-content",children:s}),b]})};ot.states=Es;ot.options=zs;ot.className=Xo;ot.defaultOptions=ws;import{jsx as co,jsxs as Hs}from"react/jsx-runtime";var ur="k-actionsheet",Rs=[],Ks={},Kt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},pe=e=>{let{side:t=Kt.side,fullscreen:o=Kt.fullscreen,adaptive:s=Kt.adaptive,overlay:l=Kt.overlay,template:p,children:i,header:u,footer:b,...x}=e;return Hs("div",{className:"k-actionsheet-container",children:[l&&co("div",{className:"k-overlay"}),co(Ce,{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:co("div",{...x,className:a(e.className,ur,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:p||co(ot,{header:u,footer:b,adaptive:s,...e,children:i})})})]})};pe.states=Rs;pe.options=Ks;pe.className=ur;pe.defaultOptions=Kt;import{jsx as Ru}from"react/jsx-runtime";import{Fragment as Ds,jsx as Ht,jsxs as Fo}from"react/jsx-runtime";var Jo="k-actionsheet-item",Gs=[r.hover,r.focus,r.selected,r.disabled],Uo=e=>{let{iconName:t,text:o,description:s,hover:l,focus:p,selected:i,disabled:u,...b}=e;return Fo("span",{...b,className:a(e.className,Jo,M(Jo,{hover:l,focus:p,selected:i,disabled:u})),children:[!e.children&&Ht(Ds,{children:Fo("span",{className:"k-actionsheet-action",children:[t&&Ht("span",{className:"k-icon-wrap",children:Ht(g,{className:"k-actionsheet-item-icon",icon:t})}),Fo("span",{className:"k-actionsheet-item-text",children:[o&&Ht("span",{className:"k-actionsheet-item-title",children:o}),s&&Ht("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};Uo.states=Gs;Uo.className=Jo;import{jsx as Fu,jsxs as Ju}from"react/jsx-runtime";import{jsx as Yu}from"react/jsx-runtime";import{jsx as ef}from"react/jsx-runtime";import{jsx as rf}from"react/jsx-runtime";import{jsx as at,jsxs as qo}from"react/jsx-runtime";var Gt="k-slider",$s=[r.hover,r.focus,r.active,r.disabled,r.readonly],Vs={},Ie={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},ee=e=>{let{type:t=Ie.type,orientation:o=Ie.orientation,readonly:s=Ie.readonly,disabled:l=Ie.disabled,handlePosition:p=Ie.handlePosition,showButtons:i=Ie.showButtons,showTicks:u=Ie.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"),qo("div",{...N,className:a(Gt,e.className,M(Gt,{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}),qo("div",{className:"k-slider-track-wrap",children:[u&&at("ul",{className:"k-reset k-slider-items",children:e.children}),qo("div",{className:"k-slider-track",style:S,children:[at("div",{className:"k-slider-selection"}),t==="range"&&at("span",{className:a("k-draghandle","k-draghandle-start",M(Gt,{hover:b,focus:x,active:h}))}),at("span",{className:a("k-draghandle",`k-draghandle-${p}`,M(Gt,{hover:b,focus:x,active:h}))})]})]}),i&&at(v,{className:"k-button-increase",rounded:"full",icon:k})]})};ee.states=$s;ee.options=Vs;ee.className=Gt;ee.defaultOptions=Ie;import{jsx as br}from"react/jsx-runtime";var xr="k-tick",_s=[],Xs={},hr={label:!1},ye=e=>{let{style:t,label:o=hr.label,orientation:s,large:l,text:p,...i}=e;return br("li",{...i,className:a(e.className,xr,{[`k-tick-${s}`]:s,"k-tick-large":l}),style:t,children:o&&br("span",{className:"k-label",children:p})})};ye.states=_s;ye.options=Xs;ye.className=xr;ye.defaultOptions=hr;import{Fragment as Tf,jsx as yf,jsxs as Af}from"react/jsx-runtime";import{Fragment as wf,jsx as zf,jsxs as Of}from"react/jsx-runtime";import{Fragment as Df,jsx as Gf,jsxs as $f}from"react/jsx-runtime";import{Fragment as Jf,jsx as Ff,jsxs as Uf}from"react/jsx-runtime";import{jsx as Fs}from"react/jsx-runtime";var Wo=e=>Fs(ee,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Js}from"react/jsx-runtime";var Yo=e=>Js(ee,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Nr,jsxs as Ws}from"react/jsx-runtime";var vr="k-spin-button",Us=[],qs={size:[n.small,n.medium,n.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Qo={size:n.medium,fillMode:d.solid},rt=e=>{let{size:t=Qo.size,fillMode:o=Qo.fillMode,...s}=e;return Ws("span",{...s,className:a(vr,e.className),children:[Nr(v,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Nr(v,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};rt.states=Us;rt.options=qs;rt.className=vr;rt.defaultOptions=Qo;import{Fragment as kr,jsx as xe,jsxs as Zo}from"react/jsx-runtime";var Sr="k-numerictextbox",Ys=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],Qs={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},G=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,..._}=e;return Zo(P,{..._,size:t,rounded:o,fillMode:s,hover:S,focus:c,valid:N,invalid:k,required:C,loading:y,disabled:T,readonly:E,className:a(e.className,Sr),children:[u&&Zo(kr,{children:[xe(Y,{children:u}),l&&xe(Z,{})]}),xe(le,{placeholder:h,value:x}),xe(q,{valid:N,invalid:k,loading:y,disabled:T}),xe(W,{loading:y,disabled:T}),p&&xe(ie,{loading:y,disabled:T,readonly:E,value:x}),b&&Zo(kr,{children:[l&&xe(Z,{}),xe(Q,{children:b})]}),i&&xe(rt,{className:"k-input-spinner",size:t,fillMode:s})]})};G.states=Ys;G.options=Qs;G.className=Sr;G.defaultOptions=De;import{jsx as Cb}from"react/jsx-runtime";import{jsx as js}from"react/jsx-runtime";var Zs="k-no-data",Dt=e=>js("span",{className:a(Zs,e.className),children:e.children});import{jsx as nt,jsxs as Cr}from"react/jsx-runtime";var jo="k-list",ei=[],ti={size:[n.small,n.medium,n.large]},gr={size:n.medium},w=e=>{let{size:t=gr.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===X?(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(X,{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=Cr(Dt,{className:"k-sr-only",children:[c.length," items found."]})))}):S=nt(Dt,{children:"No data found."}),Cr("div",{...u,className:a(e.className,jo,L(jo,{size:t}),{"k-virtual-list":o}),children:[l,p,x,h,S]})};w.states=ei;w.options=ti;w.className=jo;w.defaultOptions=gr;import{jsx as $e,jsxs as ri}from"react/jsx-runtime";var ea="k-list",oi=[],ai={size:[n.small,n.medium,n.large]},Mr={size:n.medium},Ve=e=>{let{size:t=Mr.size,virtualization:o,children:s,...l}=e,p,i,u,b=[];return s?s.map((x,h)=>{x.type===X?(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(Ir,{...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(X,{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(Dt,{children:"No data found."}),ri("div",{...l,className:a(e.className,ea,L(ea,{size:t}),{"k-virtual-list":o}),children:[i,u]})};Ve.states=oi;Ve.options=ai;Ve.className=ea;Ve.defaultOptions=Mr;import{jsx as yr}from"react/jsx-runtime";var mo="k-checkbox",ni=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],si={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},ta={size:n.medium,rounded:f.medium},Te=e=>{let{id:t,checked:o,indeterminate:s,hover:l,focus:p,disabled:i,invalid:u,valid:b,required:x,size:h=ta.size,rounded:S=ta.rounded,...c}=e;return yr("span",{className:"k-checkbox-wrap",children:yr("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:x,className:a(e.className,mo,L(mo,{size:h,rounded:S}),M(mo,{hover:l,focus:p,disabled:i,invalid:u,valid:b,indeterminate:s,checked:o}))})})};Te.states=ni;Te.options=si;Te.className=mo;Te.defaultOptions=ta;import{jsx as pi}from"react/jsx-runtime";var Tr="k-checkbox-list",ii=[],li={},Ar={layout:"vertical"},it=e=>{let{layout:t=Ar.layout,...o}=e;return pi("ul",{...o,className:a(e.className,Tr,{[`k-list-${t}`]:t}),children:e.children})};it.states=ii;it.options=li;it.className=Tr;it.defaultOptions=Ar;import{jsx as ui}from"react/jsx-runtime";var Br="k-checkbox-list-item",ci=[],mi={},di={},lt=e=>{let{...t}=e;return ui("li",{...t,className:a(e.className,Br),children:e.children})};lt.states=ci;lt.options=mi;lt.className=Br;lt.defaultOptions=di;import{Fragment as Zb,jsx as Qb,jsxs as jb}from"react/jsx-runtime";import{Fragment as rx,jsx as ax,jsxs as nx}from"react/jsx-runtime";import{Fragment as cx,jsx as px,jsxs as mx}from"react/jsx-runtime";import{Fragment as xx,jsx as bx,jsxs as hx}from"react/jsx-runtime";import{jsx as Sx}from"react/jsx-runtime";import{jsx as Mx}from"react/jsx-runtime";import{jsx as uo,jsxs as hi}from"react/jsx-runtime";var aa="k-list-item",fi=[r.hover,r.focus,r.selected,r.disabled],bi={},xi={},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 hi("li",{...c,className:a(e.className,s?"k-list-group-item":aa,M(aa,{hover:b,focus:x,disabled:S,selected:h})),children:[i&&uo(Te,{checked:u}),l&&uo(g,{icon:p}),uo("span",{className:"k-list-item-text",children:N}),o&&o!==""&&uo("div",{className:"k-list-item-group-label",children:o})]})};I.states=fi;I.options=bi;I.className=aa;I.defaultOptions=xi;import{jsx as ra,jsxs as vi}from"react/jsx-runtime";var Ni="k-list-content",st=e=>{let{virtualization:t,...o}=e;return vi("div",{...o,className:a(Ni,e.className),children:[ra("ul",{className:a("k-list-ul"),children:e.children}),t&&ra("div",{className:"k-height-container",children:ra("div",{})})]})};import{jsx as Pr}from"react/jsx-runtime";var ki="k-list-group-sticky-header",Er=e=>Pr("div",{className:a(ki,e.className),children:Pr("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Si,jsx as zr,jsxs as Li}from"react/jsx-runtime";var X=e=>{let{virtualization:t,label:o}=e;return Li(Si,{children:[o&&zr(Er,{children:o}),e.children&&zr(st,{virtualization:t,children:e.children})]})};import{jsx as wr}from"react/jsx-runtime";var Ci="k-list-group-item",Ir=e=>wr("li",{className:a(Ci,e.className),children:wr("span",{className:"k-list-item-text",children:e.children})});import{jsx as yi}from"react/jsx-runtime";var na="k-list-optionlabel",gi=[r.hover,r.focus,r.selected,r.disabled],Mi={},Ii={},fo=e=>{let{text:t,hover:o,focus:s,selected:l,disabled:p,...i}=e;return yi("div",{...i,className:a(na,M(na,{hover:o,focus:s,selected:l,disabled:p})),children:t})};fo.states=gi;fo.options=Mi;fo.className=na;fo.defaultOptions=Ii;import{jsx as Pi}from"react/jsx-runtime";var sa="k-list-custom-value",Ti=[r.hover,r.focus,r.selected,r.disabled],Ai={},Bi={},Ae=e=>{let{text:t,hover:o,focus:s,selected:l,disabled:p,...i}=e;return Pi("div",{...i,className:a(sa,M(sa,{hover:o,focus:s,selected:l,disabled:p})),children:t})};Ae.states=Ti;Ae.options=Ai;Ae.className=sa;Ae.defaultOptions=Bi;import{jsx as lh}from"react/jsx-runtime";import{jsx as dh}from"react/jsx-runtime";import{jsx as xh,jsxs as hh}from"react/jsx-runtime";import{jsx as Sh,jsxs as Lh}from"react/jsx-runtime";import{jsx as Ih}from"react/jsx-runtime";import{jsx as Bh,jsxs as Ph}from"react/jsx-runtime";import{jsx as Oh,jsxs as Rh}from"react/jsx-runtime";import{Fragment as wi,jsx as J,jsxs as ia}from"react/jsx-runtime";var Or="k-dropdownlist",Ei=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],zi={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},Be=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:_,opened:Se,adaptive:yt,adaptiveSettings:Tt,adaptiveTitle:Ao,adaptiveSubtitle:Bo,adaptiveFilter:hn,...Nn}=e;return ia(wi,{children:[ia(se,{...Nn,size:t,rounded:o,fillMode:s,hover:S,focus:c,valid:N,invalid:k,required:C,loading:y,disabled:T,readonly:E,className:a(e.className,Or,{"k-icon-picker":!p&&i}),children:[J(Y,{children:u}),J(He,{placeholder:h,value:x,showValue:p,valueIconName:i}),J(q,{valid:N,invalid:k,loading:y,disabled:T}),J(W,{loading:y,disabled:T}),J(Q,{children:b}),J(v,{className:"k-input-button",icon:l,rounded:null,size:e.size,fillMode:e.fillMode})]}),Se&&_&&J($,{className:"k-list-container k-dropdownlist-popup",children:_}),yt&&J(pe,{adaptive:!0,...Tt,header:J(j,{actionsEnd:J(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:hn,inputValue:x,inputPlaceholder:h,title:Ao,subtitle:Bo}),children:J("div",{className:"k-list-container",children:ia(w,{size:"large",children:[J(I,{text:"List item"}),J(I,{text:"List item"}),J(I,{text:"List item"})]})})})]})};Be.states=Ei;Be.options=zi;Be.className=Or;Be.defaultOptions=pt;import{jsx as dN}from"react/jsx-runtime";import{jsx as hN,jsxs as NN}from"react/jsx-runtime";import{Fragment as IN,jsx as gN,jsxs as MN}from"react/jsx-runtime";import{jsx as BN}from"react/jsx-runtime";import{jsx as ON,jsxs as RN}from"react/jsx-runtime";import{jsx as $N,jsxs as VN}from"react/jsx-runtime";import{Fragment as YN,jsx as qN,jsxs as WN}from"react/jsx-runtime";import{Fragment as rv,jsx as ov,jsxs as av}from"react/jsx-runtime";import{Fragment as kv,jsx as vv}from"react/jsx-runtime";import{Fragment as yv,jsx as Iv}from"react/jsx-runtime";import{Fragment as $t,jsx as A,jsxs as R}from"react/jsx-runtime";var Rr="k-colorgradient-inputs",Oi=[],Ri={size:[n.small,n.medium,n.large]},Kr={mode:"rgba",size:n.medium},ct=e=>{let{mode:t=Kr.mode,size:o,...s}=e;return R("div",{...s,className:a(Rr,"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"&&R($t,{children:[R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&R($t,{children:[R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&R($t,{children:[R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&R($t,{children:[R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),R("div",{className:"k-vstack",children:[A(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A($t,{children:R("div",{className:"k-vstack k-flex-1",children:[A(be,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};ct.states=Oi;ct.options=Ri;ct.className=Rr;ct.defaultOptions=Kr;import{jsx as Xe,jsxs as Fe}from"react/jsx-runtime";var Hr="k-colorgradient-color-contrast",Ki=[],Hi={},Gi={},mt=()=>Fe("div",{className:a(Hr,"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=Ki;mt.options=Hi;mt.className=Hr;mt.defaultOptions=Gi;import{jsx as te,jsxs as Vt}from"react/jsx-runtime";var bo="k-colorgradient",Di=[r.hover,r.focus,r.readonly,r.disabled],$i={size:[n.small,n.medium,n.large]},ce={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"},Pe=e=>{let{size:t=ce.size,mode:o=ce.mode,readonly:s=ce.readonly,disabled:l=ce.disabled,gradientStyle:p=ce.gradientStyle,dragHandleStyle:i=ce.dragHandleStyle,alphaStyle:u=ce.alphaStyle,alphaStyleHorizontal:b=ce.alphaStyleHorizontal,contrast:x=ce.contrast,dir:h,hover:S,focus:c,hoverHandle:N,focusHandle:k,canvasOrientation:C=ce.canvasOrientation,...y}=e;return Vt("div",{...y,className:a(e.className,bo,L(bo,{size:t}),M(bo,{hover:S,focus:c,readonly:s,disabled:l})),dir:h,children:[!C||C==="horizontal"&&Vt("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:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:i})})}),Vt("div",{className:"k-hsv-controls k-hstack",children:[te(Yo,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&te(Yo,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:u})]})]}),C==="vertical"&&Vt("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:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:i})})}),Vt("div",{className:"k-hsv-controls k-vstack",children:[te(Wo,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&te(Wo,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:b})]})]}),te(ct,{mode:e.mode,size:t}),x&&te(mt,{})]})};Pe.states=Di;Pe.options=$i;Pe.className=bo;Pe.defaultOptions=ce;import{jsx as Zv}from"react/jsx-runtime";import{jsx as ok}from"react/jsx-runtime";import{jsx as Vi}from"react/jsx-runtime";var Gr=e=>Vi("tr",{children:e.children});import{jsx as Fi}from"react/jsx-runtime";var la="k-colorpalette-tile",_i=[r.hover,r.focus,r.selected],Xi={},_t=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 Fi("td",{...i,className:a(e.className,la,M(la,{hover:s,focus:l,selected:p})),style:u})};_t.states=_i;_t.options=Xi;_t.className=la;import{jsx as Xt}from"react/jsx-runtime";var xo="k-colorpalette",Ji=[r.disabled],Ui={size:[n.small,n.medium,n.large]},pa={columns:10,size:n.medium},dt=e=>{let{size:t=pa.size,palette:o,columns:s=pa.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(Xt(_t,{color:k,tileSize:l},C))});let N=Xt(Gr,{children:c},S);u.push(N)})}return Xt("div",{...i,className:a(e.className,xo,M(xo,{disabled:p}),L(xo,{size:t})),children:Xt("table",{className:"k-colorpalette-table",children:Xt("tbody",{children:u.length>0?u:e.children})})})};dt.states=Ji;dt.options=Ui;dt.className=xo;dt.defaultOptions=pa;var ca={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 Mk}from"react/jsx-runtime";import{jsx as oe,jsxs as ut}from"react/jsx-runtime";var ho="k-coloreditor",qi=[r.focus],Wi={size:[n.small,n.medium,n.large]},ft={size:n.medium,view:"gradient",palette:ca.office,actionButtons:!0,canvasOrientation:"horizontal"},me=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:a(e.className,"k-flatcolorpicker",ho,L(ho,{size:t}),M(ho,{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(O,{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(Le,{className:"k-coloreditor-preview-color",color:l}),oe(Le,{className:"k-coloreditor-current-color",color:p})]})]})]}),oe("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?oe(Pe,{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"})]})]})};me.states=qi;me.options=Wi;me.className=ho;me.defaultOptions=ft;import{jsx as Xk}from"react/jsx-runtime";import{jsx as qk}from"react/jsx-runtime";import{jsx as Zk}from"react/jsx-runtime";import{jsx as oS}from"react/jsx-runtime";import{Fragment as Zi,jsx as ae,jsxs as da}from"react/jsx-runtime";var Dr="k-colorpicker",Yi=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled],Qi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ft={arrowIconName:"caret-alt-down",size:se.defaultOptions.size,rounded:se.defaultOptions.rounded,fillMode:se.defaultOptions.fillMode},he=e=>{let{size:t=Ft.size,rounded:o=Ft.rounded,fillMode:s=Ft.fillMode,arrowIconName:l=Ft.arrowIconName,prefix:p,suffix:i,value:u,placeholder:b,hover:x,focus:h,valid:S,invalid:c,required:N,disabled:k,valueIconName:C,popup:y,opened:T,adaptive:E,adaptiveSettings:_,adaptiveTitle:Se,adaptiveSubtitle:yt,...Tt}=e;return da(Zi,{children:[da(se,{...Tt,size:t,rounded:o,fillMode:s,hover:x,focus:h,valid:S,invalid:c,required:N,disabled:k,className:a(e.className,Dr,"k-icon-picker"),children:[ae(Y,{children:p}),ae(He,{placeholder:b,value:u,showValue:!1,valueIcon:ae(Le,{className:"k-value-icon",color:u,iconName:C}),valueIconName:C}),ae(Q,{children:i}),ae(v,{className:"k-input-button",icon:l,rounded:null,size:t,fillMode:s})]}),T&&y&&ae($,{className:"k-colorpicker-popup",children:y}),E&&ae(pe,{adaptive:!0,..._,header:ae(j,{actionsEnd:ae(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:Se,subtitle:yt}),footer:da(Ot,{children:[ae(v,{text:"Cancel",size:"large",themeColor:"base"}),ae(v,{text:"Set",size:"large",themeColor:"primary"})]}),children:ae(me,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};he.states=Yi;he.options=Qi;he.className=Dr;he.defaultOptions=Ft;import{jsx as LS}from"react/jsx-runtime";import{jsx as yS}from"react/jsx-runtime";import{jsx as ES}from"react/jsx-runtime";import{jsx as RS}from"react/jsx-runtime";import{jsx as DS}from"react/jsx-runtime";import{jsx as XS}from"react/jsx-runtime";import{Fragment as ua,jsx as V,jsxs as Jt}from"react/jsx-runtime";var $r="k-combobox",el=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],tl={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Ut={size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},Je=e=>{let{size:t=Ut.size,rounded:o=Ut.rounded,fillMode:s=Ut.fillMode,separators:l=Ut.separators,prefix:p,suffix:i,value:u,placeholder:b,hover:x,focus:h,valid:S,invalid:c,required:N,loading:k,disabled:C,popup:y,opened:T,readonly:E,adaptive:_,adaptiveSettings:Se,adaptiveTitle:yt,adaptiveSubtitle:Tt,adaptiveCustomValue:Ao,...Bo}=e;return Jt(ua,{children:[Jt(P,{...Bo,size:t,rounded:o,fillMode:s,hover:x,focus:h,valid:S,invalid:c,required:N,loading:k,disabled:C,readonly:E,className:a(e.className,$r),children:[p&&Jt(ua,{children:[V(Y,{children:p}),l&&V(Z,{})]}),V(le,{placeholder:b,value:u}),V(q,{valid:S,invalid:c,loading:k,disabled:C}),V(W,{loading:k,disabled:C}),V(ie,{loading:k,disabled:C,readonly:E,value:u}),i&&Jt(ua,{children:[l&&V(Z,{}),V(Q,{children:i})]}),V(v,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:s})]}),T&&y&&V($,{className:"k-list-