UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 72.5 kB
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var g=(e,t)=>s({[`${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"}),y=(e,t)=>s({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var r={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},N={small:"small",medium:"medium",large:"large",full:"full"},f={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},b={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},a={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"};import{Fragment as ar,jsx as ga}from"react/jsx-runtime";var bo="k-icon k-font-icon",er=[],tr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},or={},vt=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:p,...l}=e;return n?ga("span",{...l,className:s(e.className,bo,g(bo,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):ga(ar,{})};vt.states=er;vt.options=tr;vt.className=bo;vt.defaultOptions=or;var Sa=vt;import{Fragment as nr,jsx as _t}from"react/jsx-runtime";var xo="k-icon k-svg-icon",sr=[],rr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},ya={viewBox:"0 0 24 24"},Lt=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:p=ya.viewBox,icon:l,...u}=e;if(!l)return _t(nr,{});l==="none"&&{...u,className:s(e.className,xo,"k-none")};let d=typeof l=="object"&&l.name&&l.name;return _t("span",{...u,className:s(e.className,xo,g("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:_t("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:p,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};Lt.states=sr;Lt.options=rr;Lt.className=xo;Lt.defaultOptions=ya;var ho=Lt;import*as Ia from"@progress/kendo-svg-icons";import{Fragment as Ma,jsx as gt}from"react/jsx-runtime";var ir=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),lr=[],pr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},No={viewBox:"0 0 24 24",type:"svg"},I=e=>{let{size:t,themeColor:o,icon:n,type:i=No.type,rotate:p,flip:l,viewBox:u=No.viewBox,...d}=e;if(!n)return gt(Ma,{});if(i==="svg"){if(n==="none")return gt(ho,{...d,icon:n,size:t});let x=ir(`${n}-icon`);return Ia[x]?gt(ho,{...d,icon:Ia[x],size:t,themeColor:o,rotate:p,flip:l,viewBox:u}):gt(Ma,{})}return gt(Sa,{...d,icon:n,size:t,themeColor:o,rotate:p,flip:l})};I.states=lr;I.options=pr;I.defaultOptions=No;import{Fragment as dr,jsx as St,jsxs as Ca}from"react/jsx-runtime";var Xt="k-button",cr=[a.hover,a.focus,a.active,a.selected,a.disabled],mr={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark,b.inverse]},He={size:r.medium,rounded:N.medium,fillMode:f.solid,themeColor:b.base,showArrow:!1,arrowIconName:"caret-alt-down"},m=e=>{let{size:t=He.size,rounded:o=He.rounded,fillMode:n=He.fillMode,themeColor:i=He.themeColor,showArrow:p=He.showArrow,arrowIconName:l=He.arrowIconName,hover:u,focus:d,active:x,selected:h,disabled:v,icon:c,text:k,iconClassName:L,...S}=e,C=c!==void 0,T=e.children!==void 0;return Ca("button",{...S,className:s(e.className,Xt,g(Xt,{size:t,rounded:o,fillMode:n,themeColor:i}),y(Xt,{hover:u,focus:d,active:x,disabled:v,selected:h}),{"k-icon-button":!k&&!T&&C}),children:[c&&St(I,{className:s(L,"k-button-icon"),icon:c}),k?Ca(dr,{children:[k&&St("span",{className:"k-button-text",children:k}),e.children]}):e.children&&St("span",{className:"k-button-text",children:e.children}),p&&St("span",{className:"k-menu-button-arrow k-button-arrow",children:St(I,{icon:l})})]})};m.states=cr;m.options=mr;m.className=Xt;m.defaultOptions=He;import{jsx as ur}from"react/jsx-runtime";var Jt=e=>ur(m,{icon:"folder",...e,children:void 0});import{jsx as fr}from"react/jsx-runtime";var ko=e=>fr(m,{icon:"folder",children:"Button",...e});import{jsx as Ip}from"react/jsx-runtime";import{jsx as hr}from"react/jsx-runtime";var yt="k-button-group",br=[a.disabled],xr={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Ta={fillMode:f.solid},R=e=>{let{fillMode:t=Ta.fillMode,disabled:o,stretched:n,...i}=e;return hr("div",{...i,className:s(e.className,yt,g(yt,{fillMode:t}),y(yt,{disabled:o}),{[`${yt}-stretched`]:n}),children:e.children})};R.states=br;R.options=xr;R.className=yt;R.defaultOptions=Ta;import{Fragment as Gp,jsx as Hp,jsxs as Fp}from"react/jsx-runtime";import{Fragment as Jp,jsx as Xp,jsxs as Up}from"react/jsx-runtime";import{Fragment as jp,jsx as Yp,jsxs as ec}from"react/jsx-runtime";import{Fragment as nc,jsx as rc,jsxs as ic}from"react/jsx-runtime";import{jsx as vr}from"react/jsx-runtime";var Ut="k-input",Nr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],kr={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},qt={size:r.medium,rounded:r.medium,fillMode:f.solid},w=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:u,size:d=qt.size,rounded:x=qt.rounded,fillMode:h=qt.fillMode,...v}=e;return vr("span",{...v,className:s(e.className,Ut,g(Ut,{size:d,rounded:x,fillMode:h}),y(Ut,{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:u}))})};w.states=Nr;w.options=kr;w.className=Ut;w.defaultOptions=qt;import{jsx as Sr}from"react/jsx-runtime";var Wt="k-picker",Lr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],gr={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Zt={size:r.medium,rounded:N.medium,fillMode:f.solid},se=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:u,size:d=Zt.size,rounded:x=Zt.rounded,fillMode:h=Zt.fillMode,...v}=e;return Sr("span",{...v,className:s(e.className,Wt,g(Wt,{size:d,rounded:x,fillMode:h}),y(Wt,{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:u})),children:e.children})};se.states=Lr;se.options=gr;se.className=Wt;se.defaultOptions=Zt;import{Fragment as Mr,jsx as vo}from"react/jsx-runtime";var Ba="k-clear-value",yr=[a.disabled,a.loading,a.readonly],Ir={},re=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?vo(Mr,{}):vo("span",{className:s(e.className,Ba),children:vo(I,{icon:"x"})})};re.states=yr;re.options=Ir;re.className=Ba;import{jsx as Br}from"react/jsx-runtime";var Lo="k-input-inner",Cr=[],Tr={},Qt={type:"text",autocomplete:"off",value:"",placeholder:""},ne=e=>{let{value:t=Qt.value,type:o=Qt.type,placeholder:n=Qt.placeholder,autocomplete:i=Qt.autocomplete,...p}=e;return Br("input",{...p,type:o,className:s(e.className,Lo,g(Lo,e)),placeholder:n,autoComplete:i,defaultValue:t})};ne.states=Cr;ne.options=Tr;ne.className=Lo;import{jsx as Aa,jsxs as wr}from"react/jsx-runtime";var go="k-input-inner",Ar=[],zr={},Ge=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:p,...l}=e;return wr("span",{...l,className:s(e.className,go,g(go,e)),children:[i,!i&&p&&Aa(I,{className:"k-input-value-icon",icon:p}),n&&!t&&o,n&&t&&Aa("span",{className:"k-input-value-text",children:t})]})};Ge.states=Ar;Ge.options=zr;Ge.className=go;import{jsx as Or}from"react/jsx-runtime";var So="k-input-inner",Er=[],Pr={},za={value:"",placeholder:""},yo=e=>{let{value:t=za.value,placeholder:o=za.placeholder,rows:n,...i}=e;return Or("textarea",{...i,className:s(e.className,So,g(So,e)),placeholder:o,rows:n,defaultValue:t})};yo.states=Er;yo.options=Pr;yo.className=So;import{Fragment as Kr,jsx as wa}from"react/jsx-runtime";var Ea="k-input-loading-icon",Rr=[a.disabled,a.loading],Z=e=>{let{disabled:t,loading:o}=e;return t||!o?wa(Kr,{}):wa("span",{className:s(e.className,Ea,"k-icon k-i-loading")})};Z.states=Rr;Z.className=Ea;import{Fragment as Fr,jsx as Pa}from"react/jsx-runtime";var Oa="k-input-validation-icon",Hr=[a.valid,a.invalid,a.disabled,a.loading],Gr={},q=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,p=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?Pa(Fr,{}):Pa(I,{className:s(Oa),icon:p})};q.states=Hr;q.options=Gr;q.className=Oa;import{Fragment as Vr,jsx as Ra}from"react/jsx-runtime";var $r="k-input-prefix",Dr={direction:"horizontal"},me=e=>{let{direction:t=Dr.direction,...o}=e;return e.children?Ra("span",{...o,className:s($r,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ra(Vr,{})};import{Fragment as Jr,jsx as Ka}from"react/jsx-runtime";var _r="k-input-suffix",Xr={direction:"horizontal"},de=e=>{let{direction:t=Xr.direction,...o}=e;return e.children?Ka("span",{...o,className:s(_r,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ka(Jr,{})};import{jsx as Zc}from"react/jsx-runtime";import{jsx as em}from"react/jsx-runtime";import{jsx as qr}from"react/jsx-runtime";var Ha="k-input-separator",Ur={direction:"vertical"},be=e=>{let{direction:t=Ur.direction,...o}=e;return qr("span",{...o,className:s(Ha,e.className,{[`${Ha}-${t}`]:t})})};import{jsx as Ga,jsxs as Qr}from"react/jsx-runtime";var Fa="k-color-preview",Wr=[],Zr={},Me=e=>{let{color:t,iconName:o,...n}=e;return Qr("span",{...n,className:s(e.className,Fa,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Ga(I,{icon:o,className:"k-color-preview-icon"}),Ga("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Me.states=Wr;Me.options=Zr;Me.className=Fa;import{jsx as $a}from"react/jsx-runtime";var Da="k-animation-container",Yr=[],jr={},Va={positionMode:"absolute"},Ce=e=>{let{positionMode:t=Va.positionMode,animationStyle:o,offset:n,...i}=e;return $a("div",{...i,style:{...n,...e.style},className:s(e.className,Da,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:$a("div",{className:"k-child-animation-container",style:o,children:e.children})})};Ce.states=Yr;Ce.options=jr;Ce.className=Da;Ce.defaultOptions=Va;import{jsx as _a}from"react/jsx-runtime";var Xa="k-popup",en=[],tn={},Ja={positionMode:"absolute"},$=e=>{let{offset:t,positionMode:o=Ja.positionMode,animationStyle:n,...i}=e;return _a(Ce,{positionMode:o,offset:t,animationStyle:n,children:_a("div",{...i,className:s(e.className,Xa),children:e.children})})};$.states=en;$.options=tn;$.className=Xa;$.defaultOptions=Ja;import{jsx as sn}from"react/jsx-runtime";var Yt="k-actions",on=[],an={},Io={alignment:"start",orientation:"horizontal"},Te=e=>{let{alignment:t=Io.alignment,orientation:o=Io.orientation,...n}=e;return sn("div",{...n,className:s(Yt,{[`${Yt}-${t}`]:t,[`${Yt}-${o}`]:o},e.className),children:e.children})};Te.states=on;Te.options=an;Te.className=Yt;Te.defaultOptions=Io;import{jsx as nn}from"react/jsx-runtime";var rn="k-actionsheet-footer",Ua={alignment:"stretched",orientation:"horizontal"},It=e=>{let{alignment:t=Ua.alignment,orientation:o=Ua.orientation,template:n,as:i=n?"div":Te,...p}=e;return nn(i,{...p,...!n&&{alignment:t,orientation:o},className:s(e.className,rn),children:e.children})};import{jsx as Mt,jsxs as cn}from"react/jsx-runtime";var qa="k-searchbox",ln=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],pn={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Mo={showIcon:!0,icon:"search",size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode},xe=e=>{let{value:t,placeholder:o,size:n,rounded:i,fillMode:p,hover:l,focus:u,valid:d,invalid:x,required:h,loading:v,disabled:c,showIcon:k=Mo.showIcon,icon:L=Mo.icon,...S}=e;return cn(w,{...S,size:n,rounded:i,fillMode:p,hover:l,focus:u,valid:d,invalid:x,required:h,loading:v,disabled:c,className:s(e.className,qa),children:[k&&Mt(I,{className:"k-input-icon",icon:L}),Mt(ne,{placeholder:o,value:t}),Mt(Z,{...e}),Mt(q,{...e}),Mt(re,{...e})]})};xe.states=ln;xe.options=pn;xe.className=qa;xe.defaultOptions=Mo;import{jsx as jm}from"react/jsx-runtime";import{Fragment as Wa,jsx as Be,jsxs as Co}from"react/jsx-runtime";var Za="k-textbox",mn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],dn={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Fe={showClearButton:!0,showValidationIcon:!0,size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},Q=e=>{let{size:t=Fe.size,rounded:o=Fe.rounded,fillMode:n=Fe.fillMode,separators:i=Fe.separators,showClearButton:p=Fe.showClearButton,showValidationIcon:l=Fe.showValidationIcon,prefix:u,suffix:d,type:x,value:h,placeholder:v,hover:c,focus:k,valid:L,invalid:S,required:C,loading:T,disabled:E,readonly:V,...Ie}=e;return Co(w,{...Ie,size:t,rounded:o,fillMode:n,hover:c,focus:k,valid:L,invalid:S,required:C,loading:T,disabled:E,readonly:V,className:s(e.className,Za),children:[u&&Co(Wa,{children:[Be(me,{children:u}),i&&Be(be,{})]}),Be(ne,{placeholder:v,value:h,type:x}),l&&Be(q,{valid:L,invalid:S,loading:T,disabled:E}),Be(Z,{loading:T,disabled:E}),p&&Be(re,{loading:T,disabled:E,readonly:V,value:h}),d&&Co(Wa,{children:[i&&Be(be,{}),Be(de,{children:d})]})]})};Q.states=mn;Q.options=dn;Q.className=Za;Q.defaultOptions=Fe;import{jsx as cd}from"react/jsx-runtime";import{Fragment as xd,jsx as bd}from"react/jsx-runtime";import{Fragment as Sd,jsx as gd}from"react/jsx-runtime";import{jsx as Ae,jsxs as To}from"react/jsx-runtime";var Ya="k-actionsheet-titlebar",un={},Y=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:i,filter:p,input:l,inputValue:u,inputPlaceholder:d,adaptive:x,children:h,...v}=e;return To("div",{...v,className:s(e.className,Ya),children:[To("div",{className:"k-actionsheet-titlebar-group",children:[n&&Ae("div",{className:"k-actionsheet-actions",children:n}),!h&&To("div",{className:"k-actionsheet-title",children:[t&&Ae("div",{className:"k-text-center",children:t}),o&&Ae("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&Ae("div",{className:"k-actionsheet-title",children:h}),i&&Ae("div",{className:"k-actionsheet-actions",children:i})]}),(l||p)&&Ae("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Ae(Q,{value:u,placeholder:d,size:x?"large":"medium"}):Ae(xe,{placeholder:"Filter",size:x?"large":"medium"})})]})};Y.className=Ya;Y.defaultOptions=un;import{jsx as Bo,jsxs as hn}from"react/jsx-runtime";var Ao="k-actionsheet-view",fn=[],bn={},xn={},Qe=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:p,...l}=e,u=i?.type===Y&&Bo(Y,{adaptive:t,...i?.props}),d=p?.type===It&&Bo(It,{...p?.props});return hn("div",{...l,className:s(e.className,Ao,{[`${Ao}-animated`]:o}),children:[u,Bo("div",{className:"k-actionsheet-content",children:n}),d]})};Qe.states=fn;Qe.options=bn;Qe.className=Ao;Qe.defaultOptions=xn;import{jsx as jt,jsxs as vn}from"react/jsx-runtime";var ja="k-actionsheet",Nn=[],kn={},Ct={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ie=e=>{let{side:t=Ct.side,fullscreen:o=Ct.fullscreen,adaptive:n=Ct.adaptive,overlay:i=Ct.overlay,template:p,children:l,header:u,footer:d,...x}=e;return vn("div",{className:"k-actionsheet-container",children:[i&&jt("div",{className:"k-overlay"}),jt(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:jt("div",{...x,className:s(e.className,ja,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:p||jt(Qe,{header:u,footer:d,adaptive:n,...e,children:l})})})]})};ie.states=Nn;ie.options=kn;ie.className=ja;ie.defaultOptions=Ct;import{jsx as Ud}from"react/jsx-runtime";import{Fragment as gn,jsx as Tt,jsxs as zo}from"react/jsx-runtime";var wo="k-actionsheet-item",Ln=[a.hover,a.focus,a.selected,a.disabled],Eo=e=>{let{iconName:t,text:o,description:n,hover:i,focus:p,selected:l,disabled:u,...d}=e;return zo("span",{...d,className:s(e.className,wo,y(wo,{hover:i,focus:p,selected:l,disabled:u})),children:[!e.children&&Tt(gn,{children:zo("span",{className:"k-actionsheet-action",children:[t&&Tt("span",{className:"k-icon-wrap",children:Tt(I,{className:"k-actionsheet-item-icon",icon:t})}),zo("span",{className:"k-actionsheet-item-text",children:[o&&Tt("span",{className:"k-actionsheet-item-title",children:o}),n&&Tt("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Eo.states=Ln;Eo.className=wo;import{jsx as ou,jsxs as au}from"react/jsx-runtime";import{jsx as iu}from"react/jsx-runtime";import{jsx as mu}from"react/jsx-runtime";import{jsx as bu}from"react/jsx-runtime";import{jsx as Ye,jsxs as Po}from"react/jsx-runtime";var Bt="k-slider",Sn=[a.hover,a.focus,a.active,a.disabled,a.readonly],yn={},ze={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},j=e=>{let{type:t=ze.type,orientation:o=ze.orientation,readonly:n=ze.readonly,disabled:i=ze.disabled,handlePosition:p=ze.handlePosition,showButtons:l=ze.showButtons,showTicks:u=ze.showTicks,hover:d,focus:x,active:h,trackStyle:v,dir:c,...k}=e,L,S;return o==="horizontal"?(L=c==="rtl"?"caret-alt-left":"caret-alt-right",S=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(L="caret-alt-up",S="caret-alt-down"),Po("div",{...k,className:s(Bt,e.className,y(Bt,{readonly:n,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[l&&Ye(m,{className:"k-button-decrease",rounded:"full",icon:S}),Po("div",{className:"k-slider-track-wrap",children:[u&&Ye("ul",{className:"k-reset k-slider-items",children:e.children}),Po("div",{className:"k-slider-track",style:v,children:[Ye("div",{className:"k-slider-selection"}),t==="range"&&Ye("span",{className:s("k-draghandle","k-draghandle-start",y(Bt,{hover:d,focus:x,active:h}))}),Ye("span",{className:s("k-draghandle",`k-draghandle-${p}`,y(Bt,{hover:d,focus:x,active:h}))})]})]}),l&&Ye(m,{className:"k-button-increase",rounded:"full",icon:L})]})};j.states=Sn;j.options=yn;j.className=Bt;j.defaultOptions=ze;import{jsx as ts}from"react/jsx-runtime";var os="k-tick",In=[],Mn={},as={label:!1},we=e=>{let{style:t,label:o=as.label,orientation:n,large:i,text:p,...l}=e;return ts("li",{...l,className:s(e.className,os,{[`k-tick-${n}`]:n,"k-tick-large":i}),style:t,children:o&&ts("span",{className:"k-label",children:p})})};we.states=In;we.options=Mn;we.className=os;we.defaultOptions=as;import{Fragment as Hu,jsx as Ku,jsxs as Gu}from"react/jsx-runtime";import{Fragment as _u,jsx as Vu,jsxs as Xu}from"react/jsx-runtime";import{Fragment as Zu,jsx as Wu,jsxs as Qu}from"react/jsx-runtime";import{Fragment as of,jsx as tf,jsxs as af}from"react/jsx-runtime";import{jsx as Cn}from"react/jsx-runtime";var Oo=e=>Cn(j,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Tn}from"react/jsx-runtime";var Ro=e=>Tn(j,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as ss,jsxs as zn}from"react/jsx-runtime";var rs="k-spin-button",Bn=[],An={size:[r.small,r.medium,r.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Ko={size:r.medium,fillMode:f.solid},je=e=>{let{size:t=Ko.size,fillMode:o=Ko.fillMode,...n}=e;return zn("span",{...n,className:s(rs,e.className),children:[ss(m,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),ss(m,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};je.states=Bn;je.options=An;je.className=rs;je.defaultOptions=Ko;import{Fragment as ns,jsx as he,jsxs as Ho}from"react/jsx-runtime";var is="k-numerictextbox",wn=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],En={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},$e={showSpinButton:!0,showClearButton:!0,size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},P=e=>{let{size:t=$e.size,rounded:o=$e.rounded,fillMode:n=$e.fillMode,separators:i=$e.separators,showClearButton:p=$e.showClearButton,showSpinButton:l=$e.showSpinButton,prefix:u,suffix:d,value:x,placeholder:h,hover:v,focus:c,valid:k,invalid:L,required:S,loading:C,disabled:T,readonly:E,...V}=e;return Ho(w,{...V,size:t,rounded:o,fillMode:n,hover:v,focus:c,valid:k,invalid:L,required:S,loading:C,disabled:T,readonly:E,className:s(e.className,is),children:[u&&Ho(ns,{children:[he(me,{children:u}),i&&he(be,{})]}),he(ne,{placeholder:h,value:x}),he(q,{valid:k,invalid:L,loading:C,disabled:T}),he(Z,{loading:C,disabled:T}),p&&he(re,{loading:C,disabled:T,readonly:E,value:x}),d&&Ho(ns,{children:[i&&he(be,{}),he(de,{children:d})]}),l&&he(je,{className:"k-input-spinner",size:t,fillMode:n})]})};P.states=wn;P.options=En;P.className=is;P.defaultOptions=$e;import{jsx as Pf}from"react/jsx-runtime";import{jsx as On}from"react/jsx-runtime";var Pn="k-no-data",At=e=>On("span",{className:s(Pn,e.className),children:e.children});import{jsx as et,jsxs as ps}from"react/jsx-runtime";var Go="k-list",Rn=[],Kn={size:[r.small,r.medium,r.large]},cs={size:r.medium},O=e=>{let{size:t=cs.size,virtualization:o,children:n,optionLabel:i,customValue:p,screenReaders:l,...u}=e,d,x,h,v,c=[];return n?n.map((k,L)=>{k.type===D?(k.props.root===!0?(d=k.props.label,k.props.children.map((S,C)=>{c.push(et(M,{...S.props},`optChild-${C}-${new Date().getTime()}`))})):k.props.children.forEach((S,C)=>{let T="";C===0&&(T=k.props.label),c.push(et(M,{className:C===0?"k-first":"",...S.props,groupLabel:T},`groupLabel-${C}-${new Date().getTime()}`))}),x=et(D,{label:d,virtualization:o,children:c})):k.type===M&&(c.push(et(M,{...k.props},`${k.type}-${L}`)),h=et(tt,{virtualization:o,children:c}),l&&(v=ps(At,{className:"k-sr-only",children:[c.length," items found."]})))}):v=et(At,{children:"No data found."}),ps("div",{...u,className:s(e.className,Go,g(Go,{size:t}),{"k-virtual-list":o}),children:[i,p,x,h,v]})};O.states=Rn;O.options=Kn;O.className=Go;O.defaultOptions=cs;import{jsx as De,jsxs as Fn}from"react/jsx-runtime";var Fo="k-list",Hn=[],Gn={size:[r.small,r.medium,r.large]},ms={size:r.medium},Ve=e=>{let{size:t=ms.size,virtualization:o,children:n,...i}=e,p,l,u,d=[];return n?n.map((x,h)=>{x.type===D?(x.props.root===!0?(p=x.props.label,x.props.children.map((v,c)=>{d.push(De(M,{...v.props},`optChild-${c}-${new Date().getTime()}`))})):(d.push(De(ds,{...x.props,children:x.props.label},`listChild-${h}`)),x.props.children.map((v,c)=>{d.push(De(M,{...v.props},`fwOptChild-${c}-${new Date().getTime()}`))})),l=De(D,{label:p,virtualization:o,children:d})):x.type===M&&(d.push(De(M,{...x.props},`${x.type}-${h}`)),u=De(tt,{virtualization:o,children:d}))}):u=De(At,{children:"No data found."}),Fn("div",{...i,className:s(e.className,Fo,g(Fo,{size:t}),{"k-virtual-list":o}),children:[l,u]})};Ve.states=Hn;Ve.options=Gn;Ve.className=Fo;Ve.defaultOptions=ms;import{jsx as us}from"react/jsx-runtime";var eo="k-checkbox",$n=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Dn={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full]},$o={size:r.medium,rounded:N.medium},Ne=e=>{let{id:t,checked:o,indeterminate:n,hover:i,focus:p,disabled:l,invalid:u,valid:d,required:x,size:h=$o.size,rounded:v=$o.rounded,...c}=e;return us("span",{className:"k-checkbox-wrap",children:us("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:x,className:s(e.className,eo,g(eo,{size:h,rounded:v}),y(eo,{hover:i,focus:p,disabled:l,invalid:u,valid:d,indeterminate:n,checked:o}))})})};Ne.states=$n;Ne.options=Dn;Ne.className=eo;Ne.defaultOptions=$o;var zt=Ne;import{jsx as Xn}from"react/jsx-runtime";var fs="k-checkbox-list",Vn=[],_n={},bs={layout:"vertical"},ot=e=>{let{layout:t=bs.layout,...o}=e;return Xn("ul",{...o,className:s(e.className,fs,{[`k-list-${t}`]:t}),children:e.children})};ot.states=Vn;ot.options=_n;ot.className=fs;ot.defaultOptions=bs;import{jsx as Wn}from"react/jsx-runtime";var xs="k-checkbox-list-item",Jn=[],Un={},qn={},at=e=>{let{...t}=e;return Wn("li",{...t,className:s(e.className,xs),children:e.children})};at.states=Jn;at.options=Un;at.className=xs;at.defaultOptions=qn;import{Fragment as Zn,jsx as hs,jsxs as Qn}from"react/jsx-runtime";var Do=({children:e,id:t,...o})=>Qn(Zn,{children:[hs(zt,{id:t,...o}),hs("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as db,jsx as mb,jsxs as ub}from"react/jsx-runtime";import{Fragment as Nb,jsx as hb,jsxs as kb}from"react/jsx-runtime";import{Fragment as yb,jsx as Sb,jsxs as Ib}from"react/jsx-runtime";import{jsx as Bb}from"react/jsx-runtime";import{jsx as Eb}from"react/jsx-runtime";import{jsx as to,jsxs as ti}from"react/jsx-runtime";var Vo="k-list-item",Yn=[a.hover,a.focus,a.selected,a.disabled],jn={},ei={},M=e=>{let{text:t,groupLabel:o,group:n,showIcon:i,iconName:p,showCheckbox:l,checked:u,hover:d,focus:x,selected:h,disabled:v,...c}=e,k=t||e.children;return ti("li",{...c,className:s(e.className,n?"k-list-group-item":Vo,y(Vo,{hover:d,focus:x,disabled:v,selected:h})),children:[l&&to(Ne,{checked:u}),i&&to(I,{icon:p}),to("span",{className:"k-list-item-text",children:k}),o&&o!==""&&to("div",{className:"k-list-item-group-label",children:o})]})};M.states=Yn;M.options=jn;M.className=Vo;M.defaultOptions=ei;import{jsx as _o,jsxs as ai}from"react/jsx-runtime";var oi="k-list-content",tt=e=>{let{virtualization:t,...o}=e;return ai("div",{...o,className:s(oi,e.className),children:[_o("ul",{className:s("k-list-ul"),children:e.children}),t&&_o("div",{className:"k-height-container",children:_o("div",{})})]})};import{jsx as Ns}from"react/jsx-runtime";var si="k-list-group-sticky-header",ks=e=>Ns("div",{className:s(si,e.className),children:Ns("div",{className:"k-list-header-text",children:e.children})});import{Fragment as ri,jsx as vs,jsxs as ni}from"react/jsx-runtime";var D=e=>{let{virtualization:t,label:o}=e;return ni(ri,{children:[o&&vs(ks,{children:o}),e.children&&vs(tt,{virtualization:t,children:e.children})]})};import{jsx as Ls}from"react/jsx-runtime";var ii="k-list-group-item",ds=e=>Ls("li",{className:s(ii,e.className),children:Ls("span",{className:"k-list-item-text",children:e.children})});import{jsx as mi}from"react/jsx-runtime";var Xo="k-list-optionlabel",li=[a.hover,a.focus,a.selected,a.disabled],pi={},ci={},oo=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:p,...l}=e;return mi("div",{...l,className:s(Xo,y(Xo,{hover:o,focus:n,selected:i,disabled:p})),children:t})};oo.states=li;oo.options=pi;oo.className=Xo;oo.defaultOptions=ci;import{jsx as bi}from"react/jsx-runtime";var Jo="k-list-custom-value",di=[a.hover,a.focus,a.selected,a.disabled],ui={},fi={},Ee=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:p,...l}=e;return bi("div",{...l,className:s(Jo,y(Jo,{hover:o,focus:n,selected:i,disabled:p})),children:t})};Ee.states=di;Ee.options=ui;Ee.className=Jo;Ee.defaultOptions=fi;import{jsx as xx}from"react/jsx-runtime";import{jsx as vx}from"react/jsx-runtime";import{jsx as yx,jsxs as Ix}from"react/jsx-runtime";import{jsx as Bx,jsxs as Ax}from"react/jsx-runtime";import{jsx as Px}from"react/jsx-runtime";import{jsx as Hx,jsxs as Gx}from"react/jsx-runtime";import{jsx as Vx,jsxs as _x}from"react/jsx-runtime";import{Fragment as Ni,jsx as _,jsxs as Uo}from"react/jsx-runtime";var gs="k-dropdownlist",xi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],hi={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},st={showValue:!0,arrowIconName:"caret-alt-down",size:r.medium,rounded:N.medium,fillMode:f.solid},G=e=>{let{size:t=st.size,rounded:o=st.rounded,fillMode:n=st.fillMode,arrowIconName:i=st.arrowIconName,showValue:p=st.showValue,valueIconName:l,prefix:u,suffix:d,value:x,placeholder:h,hover:v,focus:c,valid:k,invalid:L,required:S,loading:C,disabled:T,readonly:E,popup:V,opened:Ie,adaptive:Nt,adaptiveSettings:kt,adaptiveTitle:uo,adaptiveSubtitle:fo,adaptiveFilter:Ys,...js}=e;return Uo(Ni,{children:[Uo(se,{...js,size:t,rounded:o,fillMode:n,hover:v,focus:c,valid:k,invalid:L,required:S,loading:C,disabled:T,readonly:E,className:s(e.className,gs,{"k-icon-picker":!p&&l}),children:[_(me,{children:u}),_(Ge,{placeholder:h,value:x,showValue:p,valueIconName:l}),_(q,{valid:k,invalid:L,loading:C,disabled:T}),_(Z,{loading:C,disabled:T}),_(de,{children:d}),_(m,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),Ie&&V&&_($,{className:"k-list-container k-dropdownlist-popup",children:V}),Nt&&_(ie,{adaptive:!0,...kt,header:_(Y,{actionsEnd:_(m,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ys,inputValue:x,inputPlaceholder:h,title:uo,subtitle:fo}),children:_("div",{className:"k-list-container",children:Uo(O,{size:"large",children:[_(M,{text:"List item"}),_(M,{text:"List item"}),_(M,{text:"List item"})]})})})]})};G.states=xi;G.options=hi;G.className=gs;G.defaultOptions=st;import{jsx as vh}from"react/jsx-runtime";import{jsx as Ih,jsxs as Mh}from"react/jsx-runtime";import{Fragment as Ph,jsx as wh,jsxs as Eh}from"react/jsx-runtime";import{jsx as Hh}from"react/jsx-runtime";import{jsx as Vh,jsxs as _h}from"react/jsx-runtime";import{jsx as Wh,jsxs as Zh}from"react/jsx-runtime";import{Fragment as sN,jsx as oN,jsxs as aN}from"react/jsx-runtime";import{Fragment as dN,jsx as cN,jsxs as mN}from"react/jsx-runtime";import{Fragment as TN,jsx as CN}from"react/jsx-runtime";import{Fragment as ON,jsx as PN}from"react/jsx-runtime";import{Fragment as wt,jsx as B,jsxs as K}from"react/jsx-runtime";var Ss="k-colorgradient-inputs",ki=[],vi={size:[r.small,r.medium,r.large]},ys={mode:"rgba",size:r.medium},rt=e=>{let{mode:t=ys.mode,size:o,...n}=e;return K("div",{...n,className:s(Ss,"k-hstack"),children:[B("div",{className:"k-vstack",children:B(m,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&K(wt,{children:[K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),B("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),B("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),B("label",{className:"k-colorgradient-input-label",children:"B"})]}),K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),B("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&K(wt,{children:[K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&K(wt,{children:[K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"V"})]}),K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),B("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&K(wt,{children:[K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[B(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&B(wt,{children:K("div",{className:"k-vstack k-flex-1",children:[B(Q,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),B("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};rt.states=ki;rt.options=vi;rt.className=Ss;rt.defaultOptions=ys;import{jsx as Xe,jsxs as Je}from"react/jsx-runtime";var Is="k-colorgradient-color-contrast",Li=[],gi={},Si={},nt=()=>Je("div",{className:s(Is,"k-vbox"),children:[Je("div",{className:"k-contrast-ratio",children:[Xe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Je("span",{className:"k-contrast-validation !k-text-success",children:[Xe(I,{icon:"check"}),Xe(I,{icon:"check"})]})]}),Je("div",{children:[Xe("span",{children:"AA: 4.5"}),Je("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Xe(I,{icon:"check"})]})]}),Je("div",{children:[Xe("span",{children:"AAA: 7.0"}),Je("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Xe(I,{icon:"x"})]})]})]});nt.states=Li;nt.options=gi;nt.className=Is;nt.defaultOptions=Si;import{jsx as ee,jsxs as Et}from"react/jsx-runtime";var ao="k-colorgradient",yi=[a.hover,a.focus,a.readonly,a.disabled],Ii={size:[r.small,r.medium,r.large]},le={size:r.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},Pe=e=>{let{size:t=le.size,mode:o=le.mode,readonly:n=le.readonly,disabled:i=le.disabled,gradientStyle:p=le.gradientStyle,dragHandleStyle:l=le.dragHandleStyle,alphaStyle:u=le.alphaStyle,alphaStyleHorizontal:d=le.alphaStyleHorizontal,contrast:x=le.contrast,dir:h,hover:v,focus:c,hoverHandle:k,focusHandle:L,canvasOrientation:S=le.canvasOrientation,...C}=e;return Et("div",{...C,className:s(e.className,ao,g(ao,{size:t}),y(ao,{hover:v,focus:c,readonly:n,disabled:i})),dir:h,children:[!S||S==="horizontal"&&Et("div",{className:"k-colorgradient-canvas k-hstack",children:[ee("div",{className:"k-hsv-rectangle",style:p,children:ee("div",{className:"k-hsv-gradient",children:ee("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":L}),style:l})})}),Et("div",{className:"k-hsv-controls k-hstack",children:[ee(Ro,{className:"k-hue-slider",hover:k,focus:L}),o!=="rgb"&&o!=="hsv"&&ee(Ro,{className:"k-alpha-slider",hover:k,focus:L,trackStyle:u})]})]}),S==="vertical"&&Et("div",{className:"k-colorgradient-canvas k-vstack",children:[ee("div",{className:"k-hsv-rectangle",style:p,children:ee("div",{className:"k-hsv-gradient",children:ee("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":L}),style:l})})}),Et("div",{className:"k-hsv-controls k-vstack",children:[ee(Oo,{className:"k-hue-slider",hover:k,focus:L}),o!=="rgb"&&o!=="hsv"&&ee(Oo,{className:"k-alpha-slider",hover:k,focus:L,trackStyle:d})]})]}),ee(rt,{mode:e.mode,size:t}),x&&ee(nt,{})]})};Pe.states=yi;Pe.options=Ii;Pe.className=ao;Pe.defaultOptions=le;import{jsx as nk}from"react/jsx-runtime";import{jsx as ck}from"react/jsx-runtime";import{jsx as Mi}from"react/jsx-runtime";var Ms=e=>Mi("tr",{children:e.children});import{jsx as Bi}from"react/jsx-runtime";var qo="k-colorpalette-tile",Ci=[a.hover,a.focus,a.selected],Ti={},Pt=e=>{let{color:t,tileSize:o,hover:n,focus:i,selected:p,...l}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Bi("td",{...l,className:s(e.className,qo,y(qo,{hover:n,focus:i,selected:p})),style:u})};Pt.states=Ci;Pt.options=Ti;Pt.className=qo;import{jsx as Ot}from"react/jsx-runtime";var so="k-colorpalette",Ai=[a.disabled],zi={size:[r.small,r.medium,r.large]},Wo={columns:10,size:r.medium},it=e=>{let{size:t=Wo.size,palette:o,columns:n=Wo.columns,tileSize:i,disabled:p,...l}=e,u=[];if(o){let d=n||o.columns,x=o.colors?o.colors:o;Array.isArray(x)&&Array.from({length:Math.ceil(x.length/d)},(h,v)=>{let c=[];x.slice(v*d,(v+1)*d).map((L,S)=>{c.push(Ot(Pt,{color:L,tileSize:i},S))});let k=Ot(Ms,{children:c},v);u.push(k)})}return Ot("div",{...l,className:s(e.className,so,y(so,{disabled:p}),g(so,{size:t})),children:Ot("table",{className:"k-colorpalette-table",children:Ot("tbody",{children:u.length>0?u:e.children})})})};it.states=Ai;it.options=zi;it.className=so;it.defaultOptions=Wo;var Zo={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 Ek}from"react/jsx-runtime";import{jsx as te,jsxs as lt}from"react/jsx-runtime";var ro="k-coloreditor",wi=[a.focus],Ei={size:[r.small,r.medium,r.large]},pt={size:r.medium,view:"gradient",palette:Zo.office,actionButtons:!0,canvasOrientation:"horizontal"},ue=e=>{let{size:t=pt.size,view:o=pt.view,palette:n=pt.palette,color:i,currentColor:p,focus:l,focusView:u,dir:d,group:x,actionButtons:h=pt.actionButtons,canvasOrientation:v=pt.canvasOrientation,...c}=e;return lt("div",{...c,className:s(e.className,"k-flatcolorpicker",ro,g(ro,{size:t}),y(ro,{focus:l})),dir:d,children:[lt("div",{className:"k-coloreditor-header k-hstack",children:[te("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&lt(R,{fillMode:"flat",children:[te(m,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),te(m,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),te("div",{className:"k-spacer"}),lt("div",{className:"k-coloreditor-header-actions k-hstack",children:[te(m,{fillMode:"flat",icon:"droplet-slash",size:t}),lt("div",{className:"k-coloreditor-preview k-vstack",children:[te(Me,{className:"k-coloreditor-preview-color",color:i}),te(Me,{className:"k-coloreditor-current-color",color:p})]})]})]}),te("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?te(Pe,{focus:u,size:t,canvasOrientation:v}):te(it,{palette:n,size:t})}),h&&lt(Te,{className:"k-coloreditor-footer",alignment:"start",children:[te(m,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),te(m,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ue.states=wi;ue.options=Ei;ue.className=ro;ue.defaultOptions=pt;import{jsx as Yk}from"react/jsx-runtime";import{jsx as ov}from"react/jsx-runtime";import{jsx as nv}from"react/jsx-runtime";import{jsx as cv}from"react/jsx-runtime";import{Fragment as Ri,jsx as oe,jsxs as Yo}from"react/jsx-runtime";var Cs="k-colorpicker",Pi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],Oi={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Rt={arrowIconName:"caret-alt-down",size:se.defaultOptions.size,rounded:se.defaultOptions.rounded,fillMode:se.defaultOptions.fillMode},ke=e=>{let{size:t=Rt.size,rounded:o=Rt.rounded,fillMode:n=Rt.fillMode,arrowIconName:i=Rt.arrowIconName,prefix:p,suffix:l,value:u,placeholder:d,hover:x,focus:h,valid:v,invalid:c,required:k,disabled:L,valueIconName:S,popup:C,opened:T,adaptive:E,adaptiveSettings:V,adaptiveTitle:Ie,adaptiveSubtitle:Nt,...kt}=e;return Yo(Ri,{children:[Yo(se,{...kt,size:t,rounded:o,fillMode:n,hover:x,focus:h,valid:v,invalid:c,required:k,disabled:L,className:s(e.className,Cs,"k-icon-picker"),children:[oe(me,{children:p}),oe(Ge,{placeholder:d,value:u,showValue:!1,valueIcon:oe(Me,{className:"k-value-icon",color:u,iconName:S}),valueIconName:S}),oe(de,{children:l}),oe(m,{className:"k-input-button",icon:i,rounded:null,size:t,fillMode:n})]}),T&&C&&oe($,{className:"k-colorpicker-popup",children:C}),E&&oe(ie,{adaptive:!0,...V,header:oe(Y,{actionsEnd:oe(m,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:Ie,subtitle:Nt}),footer:Yo(It,{children:[oe(m,{text:"Cancel",size:"large",themeColor:"base"}),oe(m,{text:"Set",size:"large",themeColor:"primary"})]}),children:oe(ue,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};ke.states=Pi;ke.options=Oi;ke.className=Cs;ke.defaultOptions=Rt;import{jsx as Av}from"react/jsx-runtime";import{jsx as Ov}from"react/jsx-runtime";import{jsx as Fv}from"react/jsx-runtime";import{jsx as _v}from"react/jsx-runtime";import{jsx as qv}from"react/jsx-runtime";import{jsx as Yv}from"react/jsx-runtime";import{Fragment as jo,jsx as F,jsxs as Kt}from"react/jsx-runtime";var Ts="k-combobox",Hi=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Gi={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Ht={size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},Ue=e=>{let{size:t=Ht.size,rounded:o=Ht.rounded,fillMode:n=Ht.fillMode,separators:i=Ht.separators,prefix:p,suffix:l,value:u,placeholder:d,hover:x,focus:h,valid:v,invalid:c,required:k,loading:L,disabled:S,popup:C,opened:T,readonly:E,adaptive:V,adaptiveSettings:Ie,adaptiveTitle:Nt,adaptiveSubtitle:kt,adaptiveCustomValue:uo,...fo}=e;return Kt(jo,{children:[Kt(w,{...fo,size:t,rounded:o,fillMode:n,hover:x,focus:h,valid:v,invalid:c,required:k,loading:L,disabled:S,readonly:E,className:s(e.className,Ts),children:[p&&Kt(jo,{children:[F(me,{children:p}),i&&F(be,{})]}),F(ne,{placeholder:d,value:u}),F(q,{valid:v,invalid:c,loading:L,disabled:S}),F(Z,{loading:L,disabled:S}),F(re,{loading:L,disabled:S,readonly:E,value:u}),l&&Kt(jo,{children:[i&&F(be,{}),F(de,{children:l})]}),F(m,{className:"k-i