UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 64.2 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,r)=>t[r]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var g=(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"}),y=(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,"k-highlighted":t.highlighted});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"},u={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},d={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},s={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 xa,jsx as qo}from"react/jsx-runtime";var qt="k-icon k-font-icon",ua=[],fa={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},ba={},it=e=>{let{size:t,themeColor:o,icon:r,rotate:c,flip:p,...i}=e;return r?qo("span",{...i,className:a(e.className,qt,g(qt,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${c}`]:c,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):qo(xa,{})};it.states=ua;it.options=fa;it.className=qt;it.defaultOptions=ba;var Wo=it;import{Fragment as va,jsx as At}from"react/jsx-runtime";var Wt="k-icon k-svg-icon",ha=[],Na={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},Qo={viewBox:"0 0 24 24"},lt=e=>{let{size:t,themeColor:o,rotate:r,flip:c,viewBox:p=Qo.viewBox,icon:i,...m}=e;if(!i)return At(va,{});i==="none"&&{...m,className:a(e.className,Wt,"k-none")};let b=typeof i=="object"&&i.name&&i.name;return At("span",{...m,className:a(e.className,Wt,g("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"}),children:At("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})})};lt.states=ha;lt.options=Na;lt.className=Wt;lt.defaultOptions=Qo;var Qt=lt;import*as Yo from"@progress/kendo-svg-icons";import{Fragment as Zo,jsx as pt}from"react/jsx-runtime";var La=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ka=[],Sa={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},Yt={viewBox:"0 0 24 24",type:"svg"},I=e=>{let{size:t,themeColor:o,icon:r,type:c=Yt.type,rotate:p,flip:i,viewBox:m=Yt.viewBox,...b}=e;if(!r)return pt(Zo,{});if(c==="svg"){if(r==="none")return pt(Qt,{...b,icon:r,size:t});let x=La(`${r}-icon`);return Yo[x]?pt(Qt,{...b,icon:Yo[x],size:t,themeColor:o,rotate:p,flip:i,viewBox:m}):pt(Zo,{})}return pt(Wo,{...b,icon:r,size:t,themeColor:o,rotate:p,flip:i})};I.states=ka;I.options=Sa;I.defaultOptions=Yt;import{Fragment as Ma,jsx as ct,jsxs as jo}from"react/jsx-runtime";var Tt="k-button",ga=[s.hover,s.focus,s.active,s.selected,s.disabled],Ia={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark,d.inverse]},Ae={size:n.medium,rounded:f.medium,fillMode:u.solid,themeColor:d.base,showArrow:!1,arrowIconName:"caret-alt-down"},h=e=>{let{size:t=Ae.size,rounded:o=Ae.rounded,fillMode:r=Ae.fillMode,themeColor:c=Ae.themeColor,showArrow:p=Ae.showArrow,arrowIconName:i=Ae.arrowIconName,hover:m,focus:b,active:x,selected:N,disabled:k,icon:l,text:v,iconClassName:L,...S}=e,C=l!==void 0,A=e.children!==void 0;return jo("button",{...S,className:a(e.className,Tt,g(Tt,{size:t,rounded:o,fillMode:r,themeColor:c}),y(Tt,{hover:m,focus:b,active:x,disabled:k,selected:N}),{"k-icon-button":!v&&!A&&C}),children:[l&&ct(I,{className:a(L,"k-button-icon"),icon:l}),v?jo(Ma,{children:[v&&ct("span",{className:"k-button-text",children:v}),e.children]}):e.children&&ct("span",{className:"k-button-text",children:e.children}),p&&ct("span",{className:"k-menu-button-arrow k-button-arrow",children:ct(I,{icon:i})})]})};h.states=ga;h.options=Ia;h.className=Tt;h.defaultOptions=Ae;import{jsx as ya}from"react/jsx-runtime";var wt=e=>ya(h,{icon:"folder",...e,children:void 0});import{jsx as Ca}from"react/jsx-runtime";var Zt=e=>Ca(h,{icon:"folder",children:"Button",...e});import{jsx as nl}from"react/jsx-runtime";import{jsx as wa}from"react/jsx-runtime";var dt="k-button-group",Aa=[s.disabled],Ta={fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},es={fillMode:u.solid},K=e=>{let{fillMode:t=es.fillMode,disabled:o,stretched:r,...c}=e;return wa("div",{...c,className:a(e.className,dt,g(dt,{fillMode:t}),y(dt,{disabled:o}),{[`${dt}-stretched`]:r}),children:e.children})};K.states=Aa;K.options=Ta;K.className=dt;K.defaultOptions=es;import{Fragment as vl,jsx as Nl,jsxs as Ll}from"react/jsx-runtime";import{Fragment as yl,jsx as Ml,jsxs as Cl}from"react/jsx-runtime";import{Fragment as Pl,jsx as El,jsxs as Bl}from"react/jsx-runtime";import{Fragment as $l,jsx as Gl,jsxs as Dl}from"react/jsx-runtime";import{jsx as Pa}from"react/jsx-runtime";var zt="k-input",za=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ea={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},Et={size:n.medium,rounded:n.medium,fillMode:u.solid},z=e=>{let{hover:t,focus:o,disabled:r,invalid:c,valid:p,loading:i,readonly:m,size:b=Et.size,rounded:x=Et.rounded,fillMode:N=Et.fillMode,...k}=e;return Pa("span",{...k,className:a(e.className,zt,g(zt,{size:b,rounded:x,fillMode:N}),y(zt,{hover:t,focus:o,disabled:r,invalid:c,valid:p,loading:i,readonly:m}))})};z.states=za;z.options=Ea;z.className=zt;z.defaultOptions=Et;import{jsx as Ka}from"react/jsx-runtime";var Pt="k-picker",Ba=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Oa={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},Bt={size:n.medium,rounded:f.medium,fillMode:u.solid},Y=e=>{let{hover:t,focus:o,disabled:r,invalid:c,valid:p,loading:i,readonly:m,size:b=Bt.size,rounded:x=Bt.rounded,fillMode:N=Bt.fillMode,...k}=e;return Ka("span",{...k,className:a(e.className,Pt,g(Pt,{size:b,rounded:x,fillMode:N}),y(Pt,{hover:t,focus:o,disabled:r,invalid:c,valid:p,loading:i,readonly:m})),children:e.children})};Y.states=Ba;Y.options=Oa;Y.className=Pt;Y.defaultOptions=Bt;import{Fragment as Ga,jsx as jt}from"react/jsx-runtime";var ts="k-clear-value",Ra=[s.disabled,s.loading,s.readonly],Ha={},Z=e=>{let{disabled:t,loading:o,readonly:r,value:c}=e;return t||r||o||!c?jt(Ga,{}):jt("span",{className:a(e.className,ts),children:jt(I,{icon:"x"})})};Z.states=Ra;Z.options=Ha;Z.className=ts;import{jsx as Va}from"react/jsx-runtime";var eo="k-input-inner",$a=[],Da={},Ot={type:"text",autocomplete:"off",value:"",placeholder:""},j=e=>{let{value:t=Ot.value,type:o=Ot.type,placeholder:r=Ot.placeholder,autocomplete:c=Ot.autocomplete,...p}=e;return Va("input",{...p,type:o,className:a(e.className,eo,g(eo,e)),placeholder:r,autoComplete:c,defaultValue:t})};j.states=$a;j.options=Da;j.className=eo;import{jsx as os,jsxs as Ja}from"react/jsx-runtime";var to="k-input-inner",_a=[],Xa={},Te=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:c,valueIconName:p,...i}=e;return Ja("span",{...i,className:a(e.className,to,g(to,e)),children:[c,!c&&p&&os(I,{className:"k-input-value-icon",icon:p}),r&&!t&&o,r&&t&&os("span",{className:"k-input-value-text",children:t})]})};Te.states=_a;Te.options=Xa;Te.className=to;import{jsx as qa}from"react/jsx-runtime";var oo="k-input-inner",Fa=[],Ua={},ss={value:"",placeholder:""},so=e=>{let{value:t=ss.value,placeholder:o=ss.placeholder,rows:r,...c}=e;return qa("textarea",{...c,className:a(e.className,oo,g(oo,e)),placeholder:o,rows:r,defaultValue:t})};so.states=Fa;so.options=Ua;so.className=oo;import{Fragment as Qa,jsx as as}from"react/jsx-runtime";var ns="k-input-loading-icon",Wa=[s.disabled,s.loading],X=e=>{let{disabled:t,loading:o}=e;return t||!o?as(Qa,{}):as("span",{className:a(e.className,ns,"k-icon k-i-loading")})};X.states=Wa;X.className=ns;import{Fragment as ja,jsx as rs}from"react/jsx-runtime";var is="k-input-validation-icon",Ya=[s.valid,s.invalid,s.disabled,s.loading],Za={},V=e=>{let{valid:t,invalid:o,disabled:r,loading:c}=e,p=o?"warning-circle":"check-circle";return r||c||!!!(t||o)?rs(ja,{}):rs(I,{className:a(is),icon:p})};V.states=Ya;V.options=Za;V.className=is;import{Fragment as on,jsx as ls}from"react/jsx-runtime";var en="k-input-prefix",tn={direction:"horizontal"},oe=e=>{let{direction:t=tn.direction,...o}=e;return e.children?ls("span",{...o,className:a(en,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ls(on,{})};import{Fragment as nn,jsx as ps}from"react/jsx-runtime";var sn="k-input-suffix",an={direction:"horizontal"},se=e=>{let{direction:t=an.direction,...o}=e;return e.children?ps("span",{...o,className:a(sn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ps(nn,{})};import{jsx as wp}from"react/jsx-runtime";import{jsx as Bp}from"react/jsx-runtime";import{jsx as ln}from"react/jsx-runtime";var cs="k-input-separator",rn={direction:"vertical"},ie=e=>{let{direction:t=rn.direction,...o}=e;return ln("span",{...o,className:a(cs,e.className,{[`${cs}-${t}`]:t})})};import{jsx as ds,jsxs as dn}from"react/jsx-runtime";var ms="k-color-preview",pn=[],cn={},be=e=>{let{color:t,iconName:o,...r}=e;return dn("span",{...r,className:a(e.className,ms,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ds(I,{icon:o,className:"k-color-preview-icon"}),ds("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};be.states=pn;be.options=cn;be.className=ms;import{jsx as us}from"react/jsx-runtime";var fs="k-animation-container",mn=[],un={},bs={positionMode:"absolute"},xe=e=>{let{positionMode:t=bs.positionMode,animationStyle:o,offset:r,...c}=e;return us("div",{...c,style:{...r,...e.style},className:a(e.className,fs,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:us("div",{className:"k-child-animation-container",style:o,children:e.children})})};xe.states=mn;xe.options=un;xe.className=fs;xe.defaultOptions=bs;import{jsx as xs}from"react/jsx-runtime";var hs="k-popup",fn=[],bn={},Ns={positionMode:"absolute"},$=e=>{let{offset:t,positionMode:o=Ns.positionMode,animationStyle:r,...c}=e;return xs(xe,{positionMode:o,offset:t,animationStyle:r,children:xs("div",{...c,className:a(e.className,hs),children:e.children})})};$.states=fn;$.options=bn;$.className=hs;$.defaultOptions=Ns;import{jsx as Nn}from"react/jsx-runtime";var Kt="k-actions",xn=[],hn={},ao={alignment:"start",orientation:"horizontal"},he=e=>{let{alignment:t=ao.alignment,orientation:o=ao.orientation,...r}=e;return Nn("div",{...r,className:a(Kt,{[`${Kt}-${t}`]:t,[`${Kt}-${o}`]:o},e.className),children:e.children})};he.states=xn;he.options=hn;he.className=Kt;he.defaultOptions=ao;import{jsx as Ln}from"react/jsx-runtime";var vn="k-actionsheet-footer",vs={alignment:"stretched",orientation:"horizontal"},mt=e=>{let{alignment:t=vs.alignment,orientation:o=vs.orientation,template:r,as:c=r?"div":he,...p}=e;return Ln(c,{...p,...!r&&{alignment:t,orientation:o},className:a(e.className,vn),children:e.children})};import{jsx as ut,jsxs as gn}from"react/jsx-runtime";var Ls="k-searchbox",kn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Sn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},no={showIcon:!0,icon:"search",size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode},le=e=>{let{value:t,placeholder:o,size:r,rounded:c,fillMode:p,hover:i,focus:m,valid:b,invalid:x,required:N,loading:k,disabled:l,showIcon:v=no.showIcon,icon:L=no.icon,...S}=e;return gn(z,{...S,size:r,rounded:c,fillMode:p,hover:i,focus:m,valid:b,invalid:x,required:N,loading:k,disabled:l,className:a(e.className,Ls),children:[v&&ut(I,{className:"k-input-icon",icon:L}),ut(j,{placeholder:o,value:t}),ut(X,{...e}),ut(V,{...e}),ut(Z,{...e})]})};le.states=kn;le.options=Sn;le.className=Ls;le.defaultOptions=no;import{jsx as Pc}from"react/jsx-runtime";import{Fragment as ks,jsx as Ne,jsxs as ro}from"react/jsx-runtime";var Ss="k-textbox",In=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Mn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},we={showClearButton:!0,showValidationIcon:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},ve=e=>{let{size:t=we.size,rounded:o=we.rounded,fillMode:r=we.fillMode,separators:c=we.separators,showClearButton:p=we.showClearButton,showValidationIcon:i=we.showValidationIcon,prefix:m,suffix:b,type:x,value:N,placeholder:k,hover:l,focus:v,valid:L,invalid:S,required:C,loading:A,disabled:E,readonly:G,...fe}=e;return ro(z,{...fe,size:t,rounded:o,fillMode:r,hover:l,focus:v,valid:L,invalid:S,required:C,loading:A,disabled:E,readonly:G,className:a(e.className,Ss),children:[m&&ro(ks,{children:[Ne(oe,{children:m}),c&&Ne(ie,{})]}),Ne(j,{placeholder:k,value:N,type:x}),i&&Ne(V,{valid:L,invalid:S,loading:A,disabled:E}),Ne(X,{loading:A,disabled:E}),p&&Ne(Z,{loading:A,disabled:E,readonly:G,value:N}),b&&ro(ks,{children:[c&&Ne(ie,{}),Ne(se,{children:b})]})]})};ve.states=In;ve.options=Mn;ve.className=Ss;ve.defaultOptions=we;import{jsx as Xc}from"react/jsx-runtime";import{Fragment as Qc,jsx as Wc}from"react/jsx-runtime";import{Fragment as sd,jsx as od}from"react/jsx-runtime";import{jsx as Le,jsxs as io}from"react/jsx-runtime";var Is="k-actionsheet-titlebar",yn={},J=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:c,filter:p,input:i,inputValue:m,inputPlaceholder:b,adaptive:x,children:N,...k}=e;return io("div",{...k,className:a(e.className,Is),children:[io("div",{className:"k-actionsheet-titlebar-group",children:[r&&Le("div",{className:"k-actionsheet-actions",children:r}),!N&&io("div",{className:"k-actionsheet-title",children:[t&&Le("div",{className:"k-text-center",children:t}),o&&Le("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&Le("div",{className:"k-actionsheet-title",children:N}),c&&Le("div",{className:"k-actionsheet-actions",children:c})]}),(i||p)&&Le("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:i?Le(ve,{value:m,placeholder:b,size:x?"large":"medium"}):Le(le,{placeholder:"Filter",size:x?"large":"medium"})})]})};J.className=Is;J.defaultOptions=yn;import{jsx as lo,jsxs as wn}from"react/jsx-runtime";var po="k-actionsheet-view",Cn=[],An={},Tn={},De=e=>{let{adaptive:t,animated:o,children:r,header:c,footer:p,...i}=e,m=c?.type===J&&lo(J,{adaptive:t,...c?.props}),b=p?.type===mt&&lo(mt,{...p?.props});return wn("div",{...i,className:a(e.className,po,{[`${po}-animated`]:o}),children:[m,lo("div",{className:"k-actionsheet-content",children:r}),b]})};De.states=Cn;De.options=An;De.className=po;De.defaultOptions=Tn;import{jsx as Rt,jsxs as Pn}from"react/jsx-runtime";var Ms="k-actionsheet",zn=[],En={},ft={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ee=e=>{let{side:t=ft.side,fullscreen:o=ft.fullscreen,adaptive:r=ft.adaptive,overlay:c=ft.overlay,template:p,children:i,header:m,footer:b,...x}=e;return Pn("div",{className:"k-actionsheet-container",children:[c&&Rt("div",{className:"k-overlay"}),Rt(xe,{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:Rt("div",{...x,className:a(e.className,Ms,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:p||Rt(De,{header:m,footer:b,adaptive:r,...e,children:i})})})]})};ee.states=zn;ee.options=En;ee.className=Ms;ee.defaultOptions=ft;import{jsx as Cd}from"react/jsx-runtime";import{Fragment as On,jsx as bt,jsxs as co}from"react/jsx-runtime";var mo="k-actionsheet-item",Bn=[s.hover,s.focus,s.selected,s.disabled],uo=e=>{let{iconName:t,text:o,description:r,hover:c,focus:p,selected:i,disabled:m,...b}=e;return co("span",{...b,className:a(e.className,mo,y(mo,{hover:c,focus:p,selected:i,disabled:m})),children:[!e.children&&bt(On,{children:co("span",{className:"k-actionsheet-action",children:[t&&bt("span",{className:"k-icon-wrap",children:bt(I,{className:"k-actionsheet-item-icon",icon:t})}),co("span",{className:"k-actionsheet-item-text",children:[o&&bt("span",{className:"k-actionsheet-item-title",children:o}),r&&bt("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};uo.states=Bn;uo.className=mo;import{jsx as Kd,jsxs as Rd}from"react/jsx-runtime";import{jsx as Dd}from"react/jsx-runtime";import{jsx as Jd}from"react/jsx-runtime";import{jsx as Wd}from"react/jsx-runtime";import{jsx as Ve,jsxs as fo}from"react/jsx-runtime";var xt="k-slider",Kn=[s.hover,s.focus,s.active,s.disabled,s.readonly],Rn={},ke={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},F=e=>{let{type:t=ke.type,orientation:o=ke.orientation,readonly:r=ke.readonly,disabled:c=ke.disabled,handlePosition:p=ke.handlePosition,showButtons:i=ke.showButtons,showTicks:m=ke.showTicks,hover:b,focus:x,active:N,trackStyle:k,dir:l,...v}=e,L,S;return o==="horizontal"?(L=l==="rtl"?"caret-alt-left":"caret-alt-right",S=l==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(L="caret-alt-up",S="caret-alt-down"),fo("div",{...v,className:a(xt,e.className,y(xt,{readonly:r,disabled:c}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:l,children:[i&&Ve(h,{className:"k-button-decrease",rounded:"full",icon:S}),fo("div",{className:"k-slider-track-wrap",children:[m&&Ve("ul",{className:"k-reset k-slider-items",children:e.children}),fo("div",{className:"k-slider-track",style:k,children:[Ve("div",{className:"k-slider-selection"}),t==="range"&&Ve("span",{className:a("k-draghandle","k-draghandle-start",y(xt,{hover:b,focus:x,active:N}))}),Ve("span",{className:a("k-draghandle",`k-draghandle-${p}`,y(xt,{hover:b,focus:x,active:N}))})]})]}),i&&Ve(h,{className:"k-button-increase",rounded:"full",icon:L})]})};F.states=Kn;F.options=Rn;F.className=xt;F.defaultOptions=ke;import{jsx as Cs}from"react/jsx-runtime";var As="k-tick",Hn=[],Gn={},Ts={label:!1},Se=e=>{let{style:t,label:o=Ts.label,orientation:r,large:c,text:p,...i}=e;return Cs("li",{...i,className:a(e.className,As,{[`k-tick-${r}`]:r,"k-tick-large":c}),style:t,children:o&&Cs("span",{className:"k-label",children:p})})};Se.states=Hn;Se.options=Gn;Se.className=As;Se.defaultOptions=Ts;import{Fragment as Nm,jsx as hm,jsxs as vm}from"react/jsx-runtime";import{Fragment as Im,jsx as gm,jsxs as Mm}from"react/jsx-runtime";import{Fragment as wm,jsx as Tm,jsxs as zm}from"react/jsx-runtime";import{Fragment as Km,jsx as Om,jsxs as Rm}from"react/jsx-runtime";import{jsx as $n}from"react/jsx-runtime";var bo=e=>$n(F,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Dn}from"react/jsx-runtime";var xo=e=>Dn(F,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as ws,jsxs as Xn}from"react/jsx-runtime";var zs="k-spin-button",Vn=[],_n={size:[n.small,n.medium,n.large],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},ho={size:n.medium,fillMode:u.solid},_e=e=>{let{size:t=ho.size,fillMode:o=ho.fillMode,...r}=e;return Xn("span",{...r,className:a(zs,e.className),children:[ws(h,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),ws(h,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};_e.states=Vn;_e.options=_n;_e.className=zs;_e.defaultOptions=ho;import{Fragment as Es,jsx as pe,jsxs as No}from"react/jsx-runtime";var Ps="k-numerictextbox",Jn=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Fn={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},ze={showSpinButton:!0,showClearButton:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},O=e=>{let{size:t=ze.size,rounded:o=ze.rounded,fillMode:r=ze.fillMode,separators:c=ze.separators,showClearButton:p=ze.showClearButton,showSpinButton:i=ze.showSpinButton,prefix:m,suffix:b,value:x,placeholder:N,hover:k,focus:l,valid:v,invalid:L,required:S,loading:C,disabled:A,readonly:E,...G}=e;return No(z,{...G,size:t,rounded:o,fillMode:r,hover:k,focus:l,valid:v,invalid:L,required:S,loading:C,disabled:A,readonly:E,className:a(e.className,Ps),children:[m&&No(Es,{children:[pe(oe,{children:m}),c&&pe(ie,{})]}),pe(j,{placeholder:N,value:x}),pe(V,{valid:v,invalid:L,loading:C,disabled:A}),pe(X,{loading:C,disabled:A}),p&&pe(Z,{loading:C,disabled:A,readonly:E,value:x}),b&&No(Es,{children:[c&&pe(ie,{}),pe(se,{children:b})]}),i&&pe(_e,{className:"k-input-spinner",size:t,fillMode:r})]})};O.states=Jn;O.options=Fn;O.className=Ps;O.defaultOptions=ze;import{jsx as uu}from"react/jsx-runtime";import{jsx as qn}from"react/jsx-runtime";var Un="k-no-data",ht=e=>qn("span",{className:a(Un,e.className),children:e.children});import{jsx as Xe,jsxs as Os}from"react/jsx-runtime";var vo="k-list",Wn=[],Qn={size:[n.small,n.medium,n.large]},Ks={size:n.medium},P=e=>{let{size:t=Ks.size,virtualization:o,children:r,optionLabel:c,customValue:p,screenReaders:i,...m}=e,b,x,N,k,l=[];return r?r.map((v,L)=>{v.type===H?(v.props.root===!0?(b=v.props.label,v.props.children.map((S,C)=>{l.push(Xe(M,{...S.props},`optChild-${C}-${new Date().getTime()}`))})):v.props.children.forEach((S,C)=>{let A="";C===0&&(A=v.props.label),l.push(Xe(M,{className:C===0?"k-first":"",...S.props,groupLabel:A},`groupLabel-${C}-${new Date().getTime()}`))}),x=Xe(H,{label:b,virtualization:o,children:l})):v.type===M&&(l.push(Xe(M,{...v.props},`${v.type}-${L}`)),N=Xe(Je,{virtualization:o,children:l}),i&&(k=Os(ht,{className:"k-sr-only",children:[l.length," items found."]})))}):k=Xe(ht,{children:"No data found."}),Os("div",{...m,className:a(e.className,vo,g(vo,{size:t}),{"k-virtual-list":o}),children:[c,p,x,N,k]})};P.states=Wn;P.options=Qn;P.className=vo;P.defaultOptions=Ks;import{jsx as Ee,jsxs as jn}from"react/jsx-runtime";var Lo="k-list",Yn=[],Zn={size:[n.small,n.medium,n.large]},Rs={size:n.medium},Pe=e=>{let{size:t=Rs.size,virtualization:o,children:r,...c}=e,p,i,m,b=[];return r?r.map((x,N)=>{x.type===H?(x.props.root===!0?(p=x.props.label,x.props.children.map((k,l)=>{b.push(Ee(M,{...k.props},`optChild-${l}-${new Date().getTime()}`))})):(b.push(Ee(Hs,{...x.props,children:x.props.label},`listChild-${N}`)),x.props.children.map((k,l)=>{b.push(Ee(M,{...k.props},`fwOptChild-${l}-${new Date().getTime()}`))})),i=Ee(H,{label:p,virtualization:o,children:b})):x.type===M&&(b.push(Ee(M,{...x.props},`${x.type}-${N}`)),m=Ee(Je,{virtualization:o,children:b}))}):m=Ee(ht,{children:"No data found."}),jn("div",{...c,className:a(e.className,Lo,g(Lo,{size:t}),{"k-virtual-list":o}),children:[i,m]})};Pe.states=Yn;Pe.options=Zn;Pe.className=Lo;Pe.defaultOptions=Rs;import{jsx as Gs}from"react/jsx-runtime";var Ht="k-checkbox",er=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],tr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},ko={size:n.medium,rounded:f.medium},ge=e=>{let{id:t,checked:o,indeterminate:r,hover:c,focus:p,disabled:i,invalid:m,valid:b,required:x,size:N=ko.size,rounded:k=ko.rounded,...l}=e;return Gs("span",{className:"k-checkbox-wrap",children:Gs("input",{...l,id:t,type:"checkbox",defaultChecked:o,required:x,className:a(e.className,Ht,g(Ht,{size:N,rounded:k}),y(Ht,{hover:c,focus:p,disabled:i,invalid:m,valid:b,indeterminate:r,checked:o}))})})};ge.states=er;ge.options=tr;ge.className=Ht;ge.defaultOptions=ko;import{jsx as ar}from"react/jsx-runtime";var $s="k-checkbox-list",or=[],sr={},Ds={layout:"vertical"},Fe=e=>{let{layout:t=Ds.layout,...o}=e;return ar("ul",{...o,className:a(e.className,$s,{[`k-list-${t}`]:t}),children:e.children})};Fe.states=or;Fe.options=sr;Fe.className=$s;Fe.defaultOptions=Ds;import{jsx as lr}from"react/jsx-runtime";var Vs="k-checkbox-list-item",nr=[],rr={},ir={},Ue=e=>{let{...t}=e;return lr("li",{...t,className:a(e.className,Vs),children:e.children})};Ue.states=nr;Ue.options=rr;Ue.className=Vs;Ue.defaultOptions=ir;import{Fragment as Vu,jsx as Du,jsxs as _u}from"react/jsx-runtime";import{Fragment as qu,jsx as Uu,jsxs as Wu}from"react/jsx-runtime";import{Fragment as ef,jsx as ju,jsxs as tf}from"react/jsx-runtime";import{Fragment as rf,jsx as nf,jsxs as lf}from"react/jsx-runtime";import{jsx as mf}from"react/jsx-runtime";import{jsx as xf}from"react/jsx-runtime";import{jsx as Gt,jsxs as mr}from"react/jsx-runtime";var go="k-list-item",pr=[s.hover,s.focus,s.selected,s.disabled],cr={},dr={},M=e=>{let{text:t,groupLabel:o,group:r,showIcon:c,iconName:p,showCheckbox:i,checked:m,hover:b,focus:x,selected:N,disabled:k,...l}=e,v=t||e.children;return mr("li",{...l,className:a(e.className,r?"k-list-group-item":go,y(go,{hover:b,focus:x,disabled:k,selected:N})),children:[i&&Gt(ge,{checked:m}),c&&Gt(I,{icon:p}),Gt("span",{className:"k-list-item-text",children:v}),o&&o!==""&&Gt("div",{className:"k-list-item-group-label",children:o})]})};M.states=pr;M.options=cr;M.className=go;M.defaultOptions=dr;import{jsx as Io,jsxs as fr}from"react/jsx-runtime";var ur="k-list-content",Je=e=>{let{virtualization:t,...o}=e;return fr("div",{...o,className:a(ur,e.className),children:[Io("ul",{className:a("k-list-ul"),children:e.children}),t&&Io("div",{className:"k-height-container",children:Io("div",{})})]})};import{jsx as _s}from"react/jsx-runtime";var br="k-list-group-sticky-header",Xs=e=>_s("div",{className:a(br,e.className),children:_s("div",{className:"k-list-header-text",children:e.children})});import{Fragment as xr,jsx as Js,jsxs as hr}from"react/jsx-runtime";var H=e=>{let{virtualization:t,label:o}=e;return hr(xr,{children:[o&&Js(Xs,{children:o}),e.children&&Js(Je,{virtualization:t,children:e.children})]})};import{jsx as Fs}from"react/jsx-runtime";var Nr="k-list-group-item",Hs=e=>Fs("li",{className:a(Nr,e.className),children:Fs("span",{className:"k-list-item-text",children:e.children})});import{jsx as Sr}from"react/jsx-runtime";var Mo="k-list-optionlabel",vr=[s.hover,s.focus,s.selected,s.disabled],Lr={},kr={},$t=e=>{let{text:t,hover:o,focus:r,selected:c,disabled:p,...i}=e;return Sr("div",{...i,className:a(Mo,y(Mo,{hover:o,focus:r,selected:c,disabled:p})),children:t})};$t.states=vr;$t.options=Lr;$t.className=Mo;$t.defaultOptions=kr;import{jsx as yr}from"react/jsx-runtime";var yo="k-list-custom-value",gr=[s.hover,s.focus,s.selected,s.disabled],Ir={},Mr={},Ie=e=>{let{text:t,hover:o,focus:r,selected:c,disabled:p,...i}=e;return yr("div",{...i,className:a(yo,y(yo,{hover:o,focus:r,selected:c,disabled:p})),children:t})};Ie.states=gr;Ie.options=Ir;Ie.className=yo;Ie.defaultOptions=Mr;import{jsx as jf}from"react/jsx-runtime";import{jsx as sb}from"react/jsx-runtime";import{jsx as ib,jsxs as lb}from"react/jsx-runtime";import{jsx as mb,jsxs as ub}from"react/jsx-runtime";import{jsx as hb}from"react/jsx-runtime";import{jsx as kb,jsxs as Sb}from"react/jsx-runtime";import{jsx as yb,jsxs as Cb}from"react/jsx-runtime";import{Fragment as Tr,jsx as D,jsxs as Co}from"react/jsx-runtime";var Us="k-dropdownlist",Cr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ar={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},qe={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:u.solid},Me=e=>{let{size:t=qe.size,rounded:o=qe.rounded,fillMode:r=qe.fillMode,arrowIconName:c=qe.arrowIconName,showValue:p=qe.showValue,valueIconName:i,prefix:m,suffix:b,value:x,placeholder:N,hover:k,focus:l,valid:v,invalid:L,required:S,loading:C,disabled:A,readonly:E,popup:G,opened:fe,adaptive:nt,adaptiveSettings:rt,adaptiveTitle:Ft,adaptiveSubtitle:Ut,adaptiveFilter:da,...ma}=e;return Co(Tr,{children:[Co(Y,{...ma,size:t,rounded:o,fillMode:r,hover:k,focus:l,valid:v,invalid:L,required:S,loading:C,disabled:A,readonly:E,className:a(e.className,Us,{"k-icon-picker":!p&&i}),children:[D(oe,{children:m}),D(Te,{placeholder:N,value:x,showValue:p,valueIconName:i}),D(V,{valid:v,invalid:L,loading:C,disabled:A}),D(X,{loading:C,disabled:A}),D(se,{children:b}),D(h,{className:"k-input-button",icon:c,rounded:null,size:e.size,fillMode:e.fillMode})]}),fe&&G&&D($,{className:"k-list-container k-dropdownlist-popup",children:G}),nt&&D(ee,{adaptive:!0,...rt,header:D(J,{actionsEnd:D(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:da,inputValue:x,inputPlaceholder:N,title:Ft,subtitle:Ut}),children:D("div",{className:"k-list-container",children:Co(P,{size:"large",children:[D(M,{text:"List item"}),D(M,{text:"List item"}),D(M,{text:"List item"})]})})})]})};Me.states=Cr;Me.options=Ar;Me.className=Us;Me.defaultOptions=qe;import{jsx as sx}from"react/jsx-runtime";import{jsx as lx,jsxs as px}from"react/jsx-runtime";import{Fragment as hx,jsx as bx,jsxs as xx}from"react/jsx-runtime";import{jsx as kx}from"react/jsx-runtime";import{jsx as yx,jsxs as Cx}from"react/jsx-runtime";import{jsx as Ex,jsxs as Px}from"react/jsx-runtime";import{Fragment as Dx,jsx as Gx,jsxs as $x}from"react/jsx-runtime";import{Fragment as Wx,jsx as Ux,jsxs as qx}from"react/jsx-runtime";import{Fragment as dh,jsx as ch}from"react/jsx-runtime";import{Fragment as Nh,jsx as hh}from"react/jsx-runtime";import{Fragment as Nt,jsx as T,jsxs as B}from"react/jsx-runtime";var qs="k-colorgradient-inputs",wr=[],zr={size:[n.small,n.medium,n.large]},Ws={mode:"rgba",size:n.medium},We=e=>{let{mode:t=Ws.mode,size:o,...r}=e;return B("div",{...r,className:a(qs,"k-hstack"),children:[T("div",{className:"k-vstack",children:T(h,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&B(Nt,{children:[B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"R"})]}),B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"G"})]}),B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"B"})]}),B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),T("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&B(Nt,{children:[B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"R"})]}),B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"G"})]}),B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&B(Nt,{children:[B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"H"})]}),B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"S"})]}),B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"V"})]}),B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),T("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&B(Nt,{children:[B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"H"})]}),B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"S"})]}),B("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&T(Nt,{children:B("div",{className:"k-vstack k-flex-1",children:[T(ve,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),T("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};We.states=wr;We.options=zr;We.className=qs;We.defaultOptions=Ws;import{jsx as Oe,jsxs as Ke}from"react/jsx-runtime";var Qs="k-colorgradient-color-contrast",Er=[],Pr={},Br={},Qe=()=>Ke("div",{className:a(Qs,"k-vbox"),children:[Ke("div",{className:"k-contrast-ratio",children:[Oe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Ke("span",{className:"k-contrast-validation !k-text-success",children:[Oe(I,{icon:"check"}),Oe(I,{icon:"check"})]})]}),Ke("div",{children:[Oe("span",{children:"AA: 4.5"}),Ke("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Oe(I,{icon:"check"})]})]}),Ke("div",{children:[Oe("span",{children:"AAA: 7.0"}),Ke("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Oe(I,{icon:"x"})]})]})]});Qe.states=Er;Qe.options=Pr;Qe.className=Qs;Qe.defaultOptions=Br;import{jsx as U,jsxs as vt}from"react/jsx-runtime";var Dt="k-colorgradient",Or=[s.hover,s.focus,s.readonly,s.disabled],Kr={size:[n.small,n.medium,n.large]},te={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"},ye=e=>{let{size:t=te.size,mode:o=te.mode,readonly:r=te.readonly,disabled:c=te.disabled,gradientStyle:p=te.gradientStyle,dragHandleStyle:i=te.dragHandleStyle,alphaStyle:m=te.alphaStyle,alphaStyleHorizontal:b=te.alphaStyleHorizontal,contrast:x=te.contrast,dir:N,hover:k,focus:l,hoverHandle:v,focusHandle:L,canvasOrientation:S=te.canvasOrientation,...C}=e;return vt("div",{...C,className:a(e.className,Dt,g(Dt,{size:t}),y(Dt,{hover:k,focus:l,readonly:r,disabled:c})),dir:N,children:[!S||S==="horizontal"&&vt("div",{className:"k-colorgradient-canvas k-hstack",children:[U("div",{className:"k-hsv-rectangle",style:p,children:U("div",{className:"k-hsv-gradient",children:U("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":v,"k-focus":L}),style:i})})}),vt("div",{className:"k-hsv-controls k-hstack",children:[U(xo,{className:"k-hue-slider",hover:v,focus:L}),o!=="rgb"&&o!=="hsv"&&U(xo,{className:"k-alpha-slider",hover:v,focus:L,trackStyle:m})]})]}),S==="vertical"&&vt("div",{className:"k-colorgradient-canvas k-vstack",children:[U("div",{className:"k-hsv-rectangle",style:p,children:U("div",{className:"k-hsv-gradient",children:U("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":v,"k-focus":L}),style:i})})}),vt("div",{className:"k-hsv-controls k-vstack",children:[U(bo,{className:"k-hue-slider",hover:v,focus:L}),o!=="rgb"&&o!=="hsv"&&U(bo,{className:"k-alpha-slider",hover:v,focus:L,trackStyle:b})]})]}),U(We,{mode:e.mode,size:t}),x&&U(Qe,{})]})};ye.states=Or;ye.options=Kr;ye.className=Dt;ye.defaultOptions=te;import{jsx as _h}from"react/jsx-runtime";import{jsx as Uh}from"react/jsx-runtime";import{jsx as Rr}from"react/jsx-runtime";var Ys=e=>Rr("tr",{children:e.children});import{jsx as $r}from"react/jsx-runtime";var Ao="k-colorpalette-tile",Hr=[s.hover,s.focus,s.selected],Gr={},Lt=e=>{let{color:t,tileSize:o,hover:r,focus:c,selected:p,...i}=e,m={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return $r("td",{...i,className:a(e.className,Ao,y(Ao,{hover:r,focus:c,selected:p})),style:m})};Lt.states=Hr;Lt.options=Gr;Lt.className=Ao;import{jsx as kt}from"react/jsx-runtime";var Vt="k-colorpalette",Dr=[s.disabled],Vr={size:[n.small,n.medium,n.large]},To={columns:10,size:n.medium},Ye=e=>{let{size:t=To.size,palette:o,columns:r=To.columns,tileSize:c,disabled:p,...i}=e,m=[];if(o){let b=r||o.columns,x=o.colors?o.colors:o;Array.isArray(x)&&Array.from({length:Math.ceil(x.length/b)},(N,k)=>{let l=[];x.slice(k*b,(k+1)*b).map((L,S)=>{l.push(kt(Lt,{color:L,tileSize:c},S))});let v=kt(Ys,{children:l},k);m.push(v)})}return kt("div",{...i,className:a(e.className,Vt,y(Vt,{disabled:p}),g(Vt,{size:t})),children:kt("table",{className:"k-colorpalette-table",children:kt("tbody",{children:m.length>0?m:e.children})})})};Ye.states=Dr;Ye.options=Vr;Ye.className=Vt;Ye.defaultOptions=To;var wo={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 xN}from"react/jsx-runtime";import{jsx as q,jsxs as Ze}from"react/jsx-runtime";var _t="k-coloreditor",_r=[s.focus],Xr={size:[n.small,n.medium,n.large]},je={size:n.medium,view:"gradient",palette:wo.office,actionButtons:!0,canvasOrientation:"horizontal"},ae=e=>{let{size:t=je.size,view:o=je.view,palette:r=je.palette,color:c,currentColor:p,focus:i,focusView:m,dir:b,group:x,actionButtons:N=je.actionButtons,canvasOrientation:k=je.canvasOrientation,...l}=e;return Ze("div",{...l,className:a(e.className,"k-flatcolorpicker",_t,g(_t,{size:t}),y(_t,{focus:i})),dir:b,children:[Ze("div",{className:"k-coloreditor-header k-hstack",children:[q("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&Ze(K,{fillMode:"flat",children:[q(h,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),q(h,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),q("div",{className:"k-spacer"}),Ze("div",{className:"k-coloreditor-header-actions k-hstack",children:[q(h,{fillMode:"flat",icon:"droplet-slash",size:t}),Ze("div",{className:"k-coloreditor-preview k-vstack",children:[q(be,{className:"k-coloreditor-preview-color",color:c}),q(be,{className:"k-coloreditor-current-color",color:p})]})]})]}),q("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?q(ye,{focus:m,size:t,canvasOrientation:k}):q(Ye,{palette:r,size:t})}),N&&Ze(he,{className:"k-coloreditor-footer",alignment:"start",children:[q(h,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),q(h,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ae.states=_r;ae.options=Xr;ae.className=_t;ae.defaultOptions=je;import{jsx as ON}from"react/jsx-runtime";import{jsx as GN}from"react/jsx-runtime";import{jsx as _N}from"react/jsx-runtime";import{jsx as UN}from"react/jsx-runtime";import{Fragment as Ur,jsx as W,jsxs as Eo}from"react/jsx-runtime";var Zs="k-colorpicker",Jr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled],Fr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},St={arrowIconName:"caret-alt-down",size:Y.defaultOptions.size,rounded:Y.defaultOptions.rounded,fillMode:Y.defaultOptions.fillMode},ce=e=>{let{size:t=St.size,rounded:o=St.rounded,fillMode:r=St.fillMode,arrowIconName:c=St.arrowIconName,prefix:p,suffix:i,value:m,placeholder:b,hover:x,focus:N,valid:k,invalid:l,required:v,disabled:L,valueIconName:S,popup:C,opened:A,adaptive:E,adaptiveSettings:G,adaptiveTitle:fe,adaptiveSubtitle:nt,...rt}=e;return Eo(Ur,{children:[Eo(Y,{...rt,size:t,rounded:o,fillMode:r,hover:x,focus:N,valid:k,invalid:l,required:v,disabled:L,className:a(e.className,Zs,"k-icon-picker"),children:[W(oe,{children:p}),W(Te,{placeholder:b,value:m,showValue:!1,valueIcon:W(be,{className:"k-value-icon",color:m,iconName:S}),valueIconName:S}),W(se,{children:i}),W(h,{className:"k-input-button",icon:c,rounded:null,size:t,fillMode:r})]}),A&&C&&W($,{className:"k-colorpicker-popup",children:C}),E&&W(ee,{adaptive:!0,...G,header:W(J,{actionsEnd:W(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:fe,subtitle:nt}),footer:Eo(mt,{children:[W(h,{text:"Cancel",size:"large",themeColor:"base"}),W(h,{text:"Set",size:"large",themeColor:"primary"})]}),children:W(ae,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};ce.states=Jr;ce.options=Fr;ce.className=Zs;ce.defaultOptions=St;import{jsx as uv}from"react/jsx-runtime";import{jsx as Nv}from"react/jsx-runtime";import{jsx as gv}from"react/jsx-runtime";import{jsx as Cv}from"react/jsx-runtime";import{jsx as zv}from"react/jsx-runtime";import{jsx as Ov}from"react/jsx-runtime";import{Fragment as Po,jsx as R,jsxs as gt}from"react/jsx-runtime";var js="k-combobox",Wr=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Qr={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[u.solid,u.flat,u.outline]},It={size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},Re=e=>{let{size:t=It.size,rounded:o=It.rounded,fillMode:r=It.fillMode,separators:c=It.separators,prefix:p,suffix:i,value:m,placeholder:b,hover:x,focus:N,valid:k,invalid:l,required:v,loading:L,disabled:S,popup:C,opened:A,readonly:E,adaptive:G,adaptiveSettings:fe,adaptiveTitle:nt,adaptiveSubtitle:rt,adaptiveCustomValue:Ft,...Ut}=e;return gt(Po,{children:[gt(z,{...Ut,size:t,rounded:o,fillMode:r,hover:x,focus:N,valid:k,invalid:l,required:v,loading:L,disabled:S,readonly:E,className:a(e.className,js),children:[p&&gt(Po,{children:[R(oe,{children:p}),c&&R(ie,{})]}),R(j,{placeholder:b,value:m}),R(V,{valid:k,invalid:l,loading:L,disabled:S}),R(X,{loading:L,disabled:S}),R(Z,{loading:L,disabled:S,readonly:E,value:m}),i&&gt(Po,{children:[c&&R(ie,{}),R(se,{children:i})]}),R(h,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:r})]}),A&&C&&R($,{className:"k-list-container k-combobox-popup",children:C}),G&&R(ee,{adaptive:!0,...fe,header:R(J,{actionsEnd:R(h,{ico