UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 80.4 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 M=(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"}),L=(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 i={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},x={small:"small",medium:"medium",large:"large",full:"full"},f={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},c={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 jn,jsx as as}from"react/jsx-runtime";var Ho="k-icon k-font-icon",Zn=[],Qn={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},Yn={},Bt=e=>{let{size:t,themeColor:o,icon:n,rotate:r,flip:p,...l}=e;return n?as("span",{...l,className:s(e.className,Ho,M(Ho,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):as(jn,{})};Bt.states=Zn;Bt.options=Qn;Bt.className=Ho;Bt.defaultOptions=Yn;var ss=Bt;import{Fragment as or,jsx as ro}from"react/jsx-runtime";var Go="k-icon k-svg-icon",er=[],tr={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},ns={viewBox:"0 0 24 24"},zt=e=>{let{size:t,themeColor:o,rotate:n,flip:r,viewBox:p=ns.viewBox,icon:l,...m}=e;if(!l)return ro(or,{});l==="none"&&{...m,className:s(e.className,Go,"k-none")};let u=typeof l=="object"&&l.name&&l.name;return ro("span",{...m,className:s(e.className,Go,M("k-icon",{size:t}),{[`k-svg-i-${u}`]:u,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:ro("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})})};zt.states=er;zt.options=tr;zt.className=Go;zt.defaultOptions=ns;var Do=zt;import*as rs from"@progress/kendo-svg-icons";import{Fragment as is,jsx as Et}from"react/jsx-runtime";var ar=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),sr=[],nr={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},_o={viewBox:"0 0 24 24",type:"svg"},S=e=>{let{size:t,themeColor:o,icon:n,type:r=_o.type,rotate:p,flip:l,viewBox:m=_o.viewBox,...u}=e;if(!n)return Et(is,{});if(r==="svg"){if(n==="none")return Et(Do,{...u,icon:n,size:t});let h=ar(`${n}-icon`);return rs[h]?Et(Do,{...u,icon:rs[h],size:t,themeColor:o,rotate:p,flip:l,viewBox:m}):Et(is,{})}return Et(ss,{...u,icon:n,size:t,themeColor:o,rotate:p,flip:l})};S.states=sr;S.options=nr;S.defaultOptions=_o;import{Fragment as lr,jsx as Pt,jsxs as ls}from"react/jsx-runtime";var io="k-button",rr=[a.hover,a.focus,a.active,a.selected,a.disabled],ir={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark,c.inverse]},Re={size:i.medium,rounded:x.medium,fillMode:f.solid,themeColor:c.base,showArrow:!1,arrowIconName:"caret-alt-down"},b=e=>{let{size:t=Re.size,rounded:o=Re.rounded,fillMode:n=Re.fillMode,themeColor:r=Re.themeColor,showArrow:p=Re.showArrow,arrowIconName:l=Re.arrowIconName,hover:m,focus:u,active:h,selected:N,disabled:k,icon:d,text:v,iconClassName:g,...y}=e,C=d!==void 0,A=e.children!==void 0;return ls("button",{...y,className:s(e.className,io,M(io,{size:t,rounded:o,fillMode:n,themeColor:r}),L(io,{hover:m,focus:u,active:h,disabled:k,selected:N}),{"k-icon-button":!v&&!A&&C}),children:[d&&Pt(S,{className:s(g,"k-button-icon"),icon:d}),v?ls(lr,{children:[v&&Pt("span",{className:"k-button-text",children:v}),e.children]}):e.children&&Pt("span",{className:"k-button-text",children:e.children}),p&&Pt("span",{className:"k-menu-button-arrow k-button-arrow",children:Pt(S,{icon:l})})]})};b.states=rr;b.options=ir;b.className=io;b.defaultOptions=Re;import{jsx as pr}from"react/jsx-runtime";var fe=e=>pr(b,{icon:"folder",...e,children:void 0});import{jsx as cr}from"react/jsx-runtime";var $o=e=>cr(b,{icon:"folder",children:"Button",...e});import{jsx as Hc}from"react/jsx-runtime";import{jsx as ur}from"react/jsx-runtime";var wt="k-button-group",dr=[a.disabled],mr={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},ps={fillMode:f.solid},w=e=>{let{fillMode:t=ps.fillMode,disabled:o,stretched:n,...r}=e;return ur("div",{...r,className:s(e.className,wt,M(wt,{fillMode:t}),L(wt,{disabled:o}),{[`${wt}-stretched`]:n}),children:e.children})};w.states=dr;w.options=mr;w.className=wt;w.defaultOptions=ps;import{Fragment as Yc,jsx as Qc,jsxs as jc}from"react/jsx-runtime";import{Fragment as nd,jsx as sd,jsxs as rd}from"react/jsx-runtime";import{Fragment as md,jsx as dd,jsxs as ud}from"react/jsx-runtime";import{Fragment as vd,jsx as Nd,jsxs as gd}from"react/jsx-runtime";import{jsx as hr}from"react/jsx-runtime";var lo="k-input",fr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],br={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},po={size:i.medium,rounded:i.medium,fillMode:f.solid},z=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:p,loading:l,readonly:m,size:u=po.size,rounded:h=po.rounded,fillMode:N=po.fillMode,...k}=e;return hr("span",{...k,className:s(e.className,lo,M(lo,{size:u,rounded:h,fillMode:N}),L(lo,{hover:t,focus:o,disabled:n,invalid:r,valid:p,loading:l,readonly:m}))})};z.states=fr;z.options=br;z.className=lo;z.defaultOptions=po;import{jsx as vr}from"react/jsx-runtime";var co="k-picker",xr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Nr={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},mo={size:i.medium,rounded:x.medium,fillMode:f.solid},te=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:p,loading:l,readonly:m,size:u=mo.size,rounded:h=mo.rounded,fillMode:N=mo.fillMode,...k}=e;return vr("span",{...k,className:s(e.className,co,M(co,{size:u,rounded:h,fillMode:N}),L(co,{hover:t,focus:o,disabled:n,invalid:r,valid:p,loading:l,readonly:m})),children:e.children})};te.states=xr;te.options=Nr;te.className=co;te.defaultOptions=mo;import{Fragment as Sr,jsx as Vo}from"react/jsx-runtime";var cs="k-clear-value",gr=[a.disabled,a.loading,a.readonly],kr={},oe=e=>{let{disabled:t,loading:o,readonly:n,value:r}=e;return t||n||o||!r?Vo(Sr,{}):Vo("span",{className:s(e.className,cs),children:Vo(S,{icon:"x"})})};oe.states=gr;oe.options=kr;oe.className=cs;import{jsx as yr}from"react/jsx-runtime";var Uo="k-input-inner",Lr=[],Mr={},uo={type:"text",autocomplete:"off",value:"",placeholder:""},ae=e=>{let{value:t=uo.value,type:o=uo.type,placeholder:n=uo.placeholder,autocomplete:r=uo.autocomplete,...p}=e;return yr("input",{...p,type:o,className:s(e.className,Uo,M(Uo,e)),placeholder:n,autoComplete:r,defaultValue:t})};ae.states=Lr;ae.options=Mr;ae.className=Uo;import{jsx as ds,jsxs as Ar}from"react/jsx-runtime";var Fo="k-input-inner",Cr=[],Ir={},He=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:r,valueIconName:p,...l}=e;return Ar("span",{...l,className:s(e.className,Fo,M(Fo,e)),children:[r,!r&&p&&ds(S,{className:"k-input-value-icon",icon:p}),n&&!t&&o,n&&t&&ds("span",{className:"k-input-value-text",children:t})]})};He.states=Cr;He.options=Ir;He.className=Fo;import{jsx as zr}from"react/jsx-runtime";var Xo="k-input-inner",Tr=[],Br={},ms={value:"",placeholder:""},Kt=e=>{let{value:t=ms.value,placeholder:o=ms.placeholder,rows:n,...r}=e;return zr("textarea",{...r,className:s(e.className,Xo,M(Xo,e)),placeholder:o,rows:n,defaultValue:t})};Kt.states=Tr;Kt.options=Br;Kt.className=Xo;import{Fragment as Pr,jsx as us}from"react/jsx-runtime";var fs="k-input-loading-icon",Er=[a.disabled,a.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?us(Pr,{}):us("span",{className:s(e.className,fs,"k-icon k-i-loading")})};F.states=Er;F.className=fs;import{Fragment as Or,jsx as bs}from"react/jsx-runtime";var hs="k-input-validation-icon",wr=[a.valid,a.invalid,a.disabled,a.loading],Kr={},U=e=>{let{valid:t,invalid:o,disabled:n,loading:r}=e,p=o?"warning-circle":"check-circle";return n||r||!!!(t||o)?bs(Or,{}):bs(S,{className:s(hs),icon:p})};U.states=wr;U.options=Kr;U.className=hs;import{Fragment as Gr,jsx as xs}from"react/jsx-runtime";var Rr="k-input-prefix",Hr={direction:"horizontal"},X=e=>{let{direction:t=Hr.direction,...o}=e;return e.children?xs("span",{...o,className:s(Rr,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):xs(Gr,{})};import{Fragment as $r,jsx as Ns}from"react/jsx-runtime";var Dr="k-input-suffix",_r={direction:"horizontal"},J=e=>{let{direction:t=_r.direction,...o}=e;return e.children?Ns("span",{...o,className:s(Dr,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ns($r,{})};import{jsx as pm}from"react/jsx-runtime";import{jsx as um}from"react/jsx-runtime";import{jsx as Ur}from"react/jsx-runtime";var vs="k-input-separator",Vr={direction:"vertical"},q=e=>{let{direction:t=Vr.direction,...o}=e;return Ur("span",{...o,className:s(vs,e.className,{[`${vs}-${t}`]:t})})};import{jsx as gs,jsxs as Jr}from"react/jsx-runtime";var ks="k-color-preview",Fr=[],Xr={},Me=e=>{let{color:t,iconName:o,...n}=e;return Jr("span",{...n,className:s(e.className,ks,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&gs(S,{icon:o,className:"k-color-preview-icon"}),gs("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Me.states=Fr;Me.options=Xr;Me.className=ks;import{jsx as Ss}from"react/jsx-runtime";var Ls="k-animation-container",qr=[],Wr={},Ms={positionMode:"absolute"},ye=e=>{let{positionMode:t=Ms.positionMode,animationStyle:o,offset:n,...r}=e;return Ss("div",{...r,style:{...n,...e.style},className:s(e.className,Ls,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Ss("div",{className:"k-child-animation-container",style:o,children:e.children})})};ye.states=qr;ye.options=Wr;ye.className=Ls;ye.defaultOptions=Ms;import{jsx as ys}from"react/jsx-runtime";var Cs="k-popup",Zr=[],Qr={},Is={positionMode:"absolute"},G=e=>{let{offset:t,positionMode:o=Is.positionMode,animationStyle:n,...r}=e;return ys(ye,{positionMode:o,offset:t,animationStyle:n,children:ys("div",{...r,className:s(e.className,Cs),children:e.children})})};G.states=Zr;G.options=Qr;G.className=Cs;G.defaultOptions=Is;import{jsx as ei}from"react/jsx-runtime";var fo="k-actions",Yr=[],jr={},Jo={alignment:"start",orientation:"horizontal"},se=e=>{let{alignment:t=Jo.alignment,orientation:o=Jo.orientation,...n}=e;return ei("div",{...n,className:s(fo,{[`${fo}-${t}`]:t,[`${fo}-${o}`]:o},e.className),children:e.children})};se.states=Yr;se.options=jr;se.className=fo;se.defaultOptions=Jo;var As=se;import{jsx as oi}from"react/jsx-runtime";var ti="k-actionsheet-footer",Ts={alignment:"stretched",orientation:"horizontal"},Ot=e=>{let{alignment:t=Ts.alignment,orientation:o=Ts.orientation,template:n,as:r=n?"div":se,...p}=e;return oi(r,{...p,...!n&&{alignment:t,orientation:o},className:s(e.className,ti),children:e.children})};import{jsx as Rt,jsxs as ni}from"react/jsx-runtime";var Bs="k-searchbox",ai=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],si={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},qo={showIcon:!0,icon:"search",size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode},be=e=>{let{value:t,placeholder:o,size:n,rounded:r,fillMode:p,hover:l,focus:m,valid:u,invalid:h,required:N,loading:k,disabled:d,showIcon:v=qo.showIcon,icon:g=qo.icon,...y}=e;return ni(z,{...y,size:n,rounded:r,fillMode:p,hover:l,focus:m,valid:u,invalid:h,required:N,loading:k,disabled:d,className:s(e.className,Bs),children:[v&&Rt(S,{className:"k-input-icon",icon:g}),Rt(ae,{placeholder:o,value:t}),Rt(F,{...e}),Rt(U,{...e}),Rt(oe,{...e})]})};be.states=ai;be.options=si;be.className=Bs;be.defaultOptions=qo;import{jsx as mu}from"react/jsx-runtime";import{Fragment as zs,jsx as Ce,jsxs as Wo}from"react/jsx-runtime";var Es="k-textbox",ri=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ii={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},Ge={showClearButton:!0,showValidationIcon:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},Ie=e=>{let{size:t=Ge.size,rounded:o=Ge.rounded,fillMode:n=Ge.fillMode,separators:r=Ge.separators,showClearButton:p=Ge.showClearButton,showValidationIcon:l=Ge.showValidationIcon,prefix:m,suffix:u,type:h,value:N,placeholder:k,hover:d,focus:v,valid:g,invalid:y,required:C,loading:A,disabled:E,readonly:H,...pe}=e;return Wo(z,{...pe,size:t,rounded:o,fillMode:n,hover:d,focus:v,valid:g,invalid:y,required:C,loading:A,disabled:E,readonly:H,className:s(e.className,Es),children:[m&&Wo(zs,{children:[Ce(X,{children:m}),r&&Ce(q,{})]}),Ce(ae,{placeholder:k,value:N,type:h}),l&&Ce(U,{valid:g,invalid:y,loading:A,disabled:E}),Ce(F,{loading:A,disabled:E}),p&&Ce(oe,{loading:A,disabled:E,readonly:H,value:N}),u&&Wo(zs,{children:[r&&Ce(q,{}),Ce(J,{children:u})]})]})};Ie.states=ri;Ie.options=ii;Ie.className=Es;Ie.defaultOptions=Ge;import{jsx as Lu}from"react/jsx-runtime";import{Fragment as Tu,jsx as Au}from"react/jsx-runtime";import{Fragment as Ou,jsx as Ku}from"react/jsx-runtime";import{jsx as Ae,jsxs as Zo}from"react/jsx-runtime";var ws="k-actionsheet-titlebar",li={},W=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:r,filter:p,input:l,inputValue:m,inputPlaceholder:u,adaptive:h,children:N,...k}=e;return Zo("div",{...k,className:s(e.className,ws),children:[Zo("div",{className:"k-actionsheet-titlebar-group",children:[n&&Ae("div",{className:"k-actionsheet-actions",children:n}),!N&&Zo("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})]}),N&&Ae("div",{className:"k-actionsheet-title",children:N}),r&&Ae("div",{className:"k-actionsheet-actions",children:r})]}),(l||p)&&Ae("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Ae(Ie,{value:m,placeholder:u,size:h?"large":"medium"}):Ae(be,{placeholder:"Filter",size:h?"large":"medium"})})]})};W.className=ws;W.defaultOptions=li;import{jsx as Qo,jsxs as mi}from"react/jsx-runtime";var Yo="k-actionsheet-view",pi=[],ci={},di={},st=e=>{let{adaptive:t,animated:o,children:n,header:r,footer:p,...l}=e,m=r?.type===W&&Qo(W,{adaptive:t,...r?.props}),u=p?.type===Ot&&Qo(Ot,{...p?.props});return mi("div",{...l,className:s(e.className,Yo,{[`${Yo}-animated`]:o}),children:[m,Qo("div",{className:"k-actionsheet-content",children:n}),u]})};st.states=pi;st.options=ci;st.className=Yo;st.defaultOptions=di;import{jsx as bo,jsxs as bi}from"react/jsx-runtime";var Ks="k-actionsheet",ui=[],fi={},Ht={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ne=e=>{let{side:t=Ht.side,fullscreen:o=Ht.fullscreen,adaptive:n=Ht.adaptive,overlay:r=Ht.overlay,template:p,children:l,header:m,footer:u,...h}=e;return bi("div",{className:"k-actionsheet-container",children:[r&&bo("div",{className:"k-overlay"}),bo(ye,{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:bo("div",{...h,className:s(e.className,Ks,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:p||bo(st,{header:m,footer:u,adaptive:n,...e,children:l})})})]})};ne.states=ui;ne.options=fi;ne.className=Ks;ne.defaultOptions=Ht;import{jsx as rf}from"react/jsx-runtime";import{Fragment as xi,jsx as Gt,jsxs as jo}from"react/jsx-runtime";var ea="k-actionsheet-item",hi=[a.hover,a.focus,a.selected,a.disabled],ta=e=>{let{iconName:t,text:o,description:n,hover:r,focus:p,selected:l,disabled:m,...u}=e;return jo("span",{...u,className:s(e.className,ea,L(ea,{hover:r,focus:p,selected:l,disabled:m})),children:[!e.children&&Gt(xi,{children:jo("span",{className:"k-actionsheet-action",children:[t&&Gt("span",{className:"k-icon-wrap",children:Gt(S,{className:"k-actionsheet-item-icon",icon:t})}),jo("span",{className:"k-actionsheet-item-text",children:[o&&Gt("span",{className:"k-actionsheet-item-title",children:o}),n&&Gt("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};ta.states=hi;ta.className=ea;import{jsx as hf,jsxs as xf}from"react/jsx-runtime";import{jsx as kf}from"react/jsx-runtime";import{jsx as yf}from"react/jsx-runtime";import{jsx as Tf}from"react/jsx-runtime";import{jsx as nt,jsxs as oa}from"react/jsx-runtime";var Dt="k-slider",Ni=[a.hover,a.focus,a.active,a.disabled,a.readonly],vi={},Te={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},Z=e=>{let{type:t=Te.type,orientation:o=Te.orientation,readonly:n=Te.readonly,disabled:r=Te.disabled,handlePosition:p=Te.handlePosition,showButtons:l=Te.showButtons,showTicks:m=Te.showTicks,hover:u,focus:h,active:N,trackStyle:k,dir:d,...v}=e,g,y;return o==="horizontal"?(g=d==="rtl"?"caret-alt-left":"caret-alt-right",y=d==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(g="caret-alt-up",y="caret-alt-down"),oa("div",{...v,className:s(Dt,e.className,L(Dt,{readonly:n,disabled:r}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:d,children:[l&&nt(b,{className:"k-button-decrease",rounded:"full",icon:y}),oa("div",{className:"k-slider-track-wrap",children:[m&&nt("ul",{className:"k-reset k-slider-items",children:e.children}),oa("div",{className:"k-slider-track",style:k,children:[nt("div",{className:"k-slider-selection"}),t==="range"&&nt("span",{className:s("k-draghandle","k-draghandle-start",L(Dt,{hover:u,focus:h,active:N}))}),nt("span",{className:s("k-draghandle",`k-draghandle-${p}`,L(Dt,{hover:u,focus:h,active:N}))})]})]}),l&&nt(b,{className:"k-button-increase",rounded:"full",icon:g})]})};Z.states=Ni;Z.options=vi;Z.className=Dt;Z.defaultOptions=Te;import{jsx as Rs}from"react/jsx-runtime";var Hs="k-tick",gi=[],ki={},Gs={label:!1},Be=e=>{let{style:t,label:o=Gs.label,orientation:n,large:r,text:p,...l}=e;return Rs("li",{...l,className:s(e.className,Hs,{[`k-tick-${n}`]:n,"k-tick-large":r}),style:t,children:o&&Rs("span",{className:"k-label",children:p})})};Be.states=gi;Be.options=ki;Be.className=Hs;Be.defaultOptions=Gs;import{Fragment as Yf,jsx as Qf,jsxs as jf}from"react/jsx-runtime";import{Fragment as sb,jsx as ab,jsxs as nb}from"react/jsx-runtime";import{Fragment as cb,jsx as pb,jsxs as db}from"react/jsx-runtime";import{Fragment as hb,jsx as bb,jsxs as xb}from"react/jsx-runtime";import{jsx as Si}from"react/jsx-runtime";var aa=e=>Si(Z,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Li}from"react/jsx-runtime";var sa=e=>Li(Z,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Ds,jsxs as Ci}from"react/jsx-runtime";var _s="k-spin-button",Mi=[],yi={size:[i.small,i.medium,i.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},na={size:i.medium,fillMode:f.solid},rt=e=>{let{size:t=na.size,fillMode:o=na.fillMode,...n}=e;return Ci("span",{...n,className:s(_s,e.className),children:[Ds(b,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Ds(b,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};rt.states=Mi;rt.options=yi;rt.className=_s;rt.defaultOptions=na;import{Fragment as $s,jsx as he,jsxs as ra}from"react/jsx-runtime";var Vs="k-numerictextbox",Ii=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Ai={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},De={showSpinButton:!0,showClearButton:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},O=e=>{let{size:t=De.size,rounded:o=De.rounded,fillMode:n=De.fillMode,separators:r=De.separators,showClearButton:p=De.showClearButton,showSpinButton:l=De.showSpinButton,prefix:m,suffix:u,value:h,placeholder:N,hover:k,focus:d,valid:v,invalid:g,required:y,loading:C,disabled:A,readonly:E,...H}=e;return ra(z,{...H,size:t,rounded:o,fillMode:n,hover:k,focus:d,valid:v,invalid:g,required:y,loading:C,disabled:A,readonly:E,className:s(e.className,Vs),children:[m&&ra($s,{children:[he(X,{children:m}),r&&he(q,{})]}),he(ae,{placeholder:N,value:h}),he(U,{valid:v,invalid:g,loading:C,disabled:A}),he(F,{loading:C,disabled:A}),p&&he(oe,{loading:C,disabled:A,readonly:E,value:h}),u&&ra($s,{children:[r&&he(q,{}),he(J,{children:u})]}),l&&he(rt,{className:"k-input-spinner",size:t,fillMode:n})]})};O.states=Ii;O.options=Ai;O.className=Vs;O.defaultOptions=De;import{jsx as Jb}from"react/jsx-runtime";import{jsx as Bi}from"react/jsx-runtime";var Ti="k-no-data",_t=e=>Bi("span",{className:s(Ti,e.className),children:e.children});import{jsx as it,jsxs as Fs}from"react/jsx-runtime";var ia="k-list",zi=[],Ei={size:[i.small,i.medium,i.large]},Xs={size:i.medium},P=e=>{let{size:t=Xs.size,virtualization:o,children:n,optionLabel:r,customValue:p,screenReaders:l,...m}=e,u,h,N,k,d=[];return n?n.map((v,g)=>{v.type===D?(v.props.root===!0?(u=v.props.label,v.props.children.map((y,C)=>{d.push(it(I,{...y.props},`optChild-${C}-${new Date().getTime()}`))})):v.props.children.forEach((y,C)=>{let A="";C===0&&(A=v.props.label),d.push(it(I,{className:C===0?"k-first":"",...y.props,groupLabel:A},`groupLabel-${C}-${new Date().getTime()}`))}),h=it(D,{label:u,virtualization:o,children:d})):v.type===I&&(d.push(it(I,{...v.props},`${v.type}-${g}`)),N=it(lt,{virtualization:o,children:d}),l&&(k=Fs(_t,{className:"k-sr-only",children:[d.length," items found."]})))}):k=it(_t,{children:"No data found."}),Fs("div",{...m,className:s(e.className,ia,M(ia,{size:t}),{"k-virtual-list":o}),children:[r,p,h,N,k]})};P.states=zi;P.options=Ei;P.className=ia;P.defaultOptions=Xs;import{jsx as _e,jsxs as Ki}from"react/jsx-runtime";var la="k-list",Pi=[],wi={size:[i.small,i.medium,i.large]},Js={size:i.medium},$e=e=>{let{size:t=Js.size,virtualization:o,children:n,...r}=e,p,l,m,u=[];return n?n.map((h,N)=>{h.type===D?(h.props.root===!0?(p=h.props.label,h.props.children.map((k,d)=>{u.push(_e(I,{...k.props},`optChild-${d}-${new Date().getTime()}`))})):(u.push(_e(qs,{...h.props,children:h.props.label},`listChild-${N}`)),h.props.children.map((k,d)=>{u.push(_e(I,{...k.props},`fwOptChild-${d}-${new Date().getTime()}`))})),l=_e(D,{label:p,virtualization:o,children:u})):h.type===I&&(u.push(_e(I,{...h.props},`${h.type}-${N}`)),m=_e(lt,{virtualization:o,children:u}))}):m=_e(_t,{children:"No data found."}),Ki("div",{...r,className:s(e.className,la,M(la,{size:t}),{"k-virtual-list":o}),children:[l,m]})};$e.states=Pi;$e.options=wi;$e.className=la;$e.defaultOptions=Js;import{jsx as Ws}from"react/jsx-runtime";var ho="k-checkbox",Oi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Ri={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full]},pa={size:i.medium,rounded:x.medium},ze=e=>{let{id:t,checked:o,indeterminate:n,hover:r,focus:p,disabled:l,invalid:m,valid:u,required:h,size:N=pa.size,rounded:k=pa.rounded,...d}=e;return Ws("span",{className:"k-checkbox-wrap",children:Ws("input",{...d,id:t,type:"checkbox",defaultChecked:o,required:h,className:s(e.className,ho,M(ho,{size:N,rounded:k}),L(ho,{hover:r,focus:p,disabled:l,invalid:m,valid:u,indeterminate:n,checked:o}))})})};ze.states=Oi;ze.options=Ri;ze.className=ho;ze.defaultOptions=pa;import{jsx as Di}from"react/jsx-runtime";var Zs="k-checkbox-list",Hi=[],Gi={},Qs={layout:"vertical"},pt=e=>{let{layout:t=Qs.layout,...o}=e;return Di("ul",{...o,className:s(e.className,Zs,{[`k-list-${t}`]:t}),children:e.children})};pt.states=Hi;pt.options=Gi;pt.className=Zs;pt.defaultOptions=Qs;import{jsx as Ui}from"react/jsx-runtime";var Ys="k-checkbox-list-item",_i=[],$i={},Vi={},ct=e=>{let{...t}=e;return Ui("li",{...t,className:s(e.className,Ys),children:e.children})};ct.states=_i;ct.options=$i;ct.className=Ys;ct.defaultOptions=Vi;import{Fragment as Sh,jsx as kh,jsxs as Lh}from"react/jsx-runtime";import{Fragment as Ah,jsx as Ih,jsxs as Th}from"react/jsx-runtime";import{Fragment as wh,jsx as Ph,jsxs as Kh}from"react/jsx-runtime";import{Fragment as Dh,jsx as Gh,jsxs as _h}from"react/jsx-runtime";import{jsx as Fh}from"react/jsx-runtime";import{jsx as Wh}from"react/jsx-runtime";import{jsx as xo,jsxs as qi}from"react/jsx-runtime";var da="k-list-item",Fi=[a.hover,a.focus,a.selected,a.disabled],Xi={},Ji={},I=e=>{let{text:t,groupLabel:o,group:n,showIcon:r,iconName:p,showCheckbox:l,checked:m,hover:u,focus:h,selected:N,disabled:k,...d}=e,v=t||e.children;return qi("li",{...d,className:s(e.className,n?"k-list-group-item":da,L(da,{hover:u,focus:h,disabled:k,selected:N})),children:[l&&xo(ze,{checked:m}),r&&xo(S,{icon:p}),xo("span",{className:"k-list-item-text",children:v}),o&&o!==""&&xo("div",{className:"k-list-item-group-label",children:o})]})};I.states=Fi;I.options=Xi;I.className=da;I.defaultOptions=Ji;import{jsx as ma,jsxs as Zi}from"react/jsx-runtime";var Wi="k-list-content",lt=e=>{let{virtualization:t,...o}=e;return Zi("div",{...o,className:s(Wi,e.className),children:[ma("ul",{className:s("k-list-ul"),children:e.children}),t&&ma("div",{className:"k-height-container",children:ma("div",{})})]})};import{jsx as js}from"react/jsx-runtime";var Qi="k-list-group-sticky-header",en=e=>js("div",{className:s(Qi,e.className),children:js("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Yi,jsx as tn,jsxs as ji}from"react/jsx-runtime";var D=e=>{let{virtualization:t,label:o}=e;return ji(Yi,{children:[o&&tn(en,{children:o}),e.children&&tn(lt,{virtualization:t,children:e.children})]})};import{jsx as on}from"react/jsx-runtime";var el="k-list-group-item",qs=e=>on("li",{className:s(el,e.className),children:on("span",{className:"k-list-item-text",children:e.children})});import{jsx as sl}from"react/jsx-runtime";var ua="k-list-optionlabel",tl=[a.hover,a.focus,a.selected,a.disabled],ol={},al={},No=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:p,...l}=e;return sl("div",{...l,className:s(ua,L(ua,{hover:o,focus:n,selected:r,disabled:p})),children:t})};No.states=tl;No.options=ol;No.className=ua;No.defaultOptions=al;import{jsx as ll}from"react/jsx-runtime";var fa="k-list-custom-value",nl=[a.hover,a.focus,a.selected,a.disabled],rl={},il={},Ee=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:p,...l}=e;return ll("div",{...l,className:s(fa,L(fa,{hover:o,focus:n,selected:r,disabled:p})),children:t})};Ee.states=nl;Ee.options=rl;Ee.className=fa;Ee.defaultOptions=il;import{jsx as Ex}from"react/jsx-runtime";import{jsx as Ox}from"react/jsx-runtime";import{jsx as Dx,jsxs as _x}from"react/jsx-runtime";import{jsx as Fx,jsxs as Xx}from"react/jsx-runtime";import{jsx as Zx}from"react/jsx-runtime";import{jsx as eN,jsxs as tN}from"react/jsx-runtime";import{jsx as nN,jsxs as rN}from"react/jsx-runtime";import{Fragment as dl,jsx as _,jsxs as ba}from"react/jsx-runtime";var an="k-dropdownlist",pl=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],cl={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},dt={showValue:!0,arrowIconName:"caret-alt-down",size:i.medium,rounded:x.medium,fillMode:f.solid},Pe=e=>{let{size:t=dt.size,rounded:o=dt.rounded,fillMode:n=dt.fillMode,arrowIconName:r=dt.arrowIconName,showValue:p=dt.showValue,valueIconName:l,prefix:m,suffix:u,value:h,placeholder:N,hover:k,focus:d,valid:v,invalid:g,required:y,loading:C,disabled:A,readonly:E,popup:H,opened:pe,adaptive:At,adaptiveSettings:Tt,adaptiveTitle:Oo,adaptiveSubtitle:Ro,adaptiveFilter:qn,...Wn}=e;return ba(dl,{children:[ba(te,{...Wn,size:t,rounded:o,fillMode:n,hover:k,focus:d,valid:v,invalid:g,required:y,loading:C,disabled:A,readonly:E,className:s(e.className,an,{"k-icon-picker":!p&&l}),children:[_(X,{children:m}),_(He,{placeholder:N,value:h,showValue:p,valueIconName:l}),_(U,{valid:v,invalid:g,loading:C,disabled:A}),_(F,{loading:C,disabled:A}),_(J,{children:u}),_(b,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),pe&&H&&_(G,{className:"k-list-container k-dropdownlist-popup",children:H}),At&&_(ne,{adaptive:!0,...Tt,header:_(W,{actionsEnd:_(b,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:qn,inputValue:h,inputPlaceholder:N,title:Oo,subtitle:Ro}),children:_("div",{className:"k-list-container",children:ba(P,{size:"large",children:[_(I,{text:"List item"}),_(I,{text:"List item"}),_(I,{text:"List item"})]})})})]})};Pe.states=pl;Pe.options=cl;Pe.className=an;Pe.defaultOptions=dt;import{jsx as ON}from"react/jsx-runtime";import{jsx as _N,jsxs as $N}from"react/jsx-runtime";import{Fragment as ZN,jsx as qN,jsxs as WN}from"react/jsx-runtime";import{jsx as ev}from"react/jsx-runtime";import{jsx as nv,jsxs as rv}from"react/jsx-runtime";import{jsx as dv,jsxs as mv}from"react/jsx-runtime";import{Fragment as gv,jsx as Nv,jsxs as vv}from"react/jsx-runtime";import{Fragment as Av,jsx as Cv,jsxs as Iv}from"react/jsx-runtime";import{Fragment as Uv,jsx as Vv}from"react/jsx-runtime";import{Fragment as Qv,jsx as Zv}from"react/jsx-runtime";import{Fragment as $t,jsx as T,jsxs as K}from"react/jsx-runtime";var sn="k-colorgradient-inputs",ml=[],ul={size:[i.small,i.medium,i.large]},nn={mode:"rgba",size:i.medium},mt=e=>{let{mode:t=nn.mode,size:o,...n}=e;return K("div",{...n,className:s(sn,"k-hstack"),children:[T("div",{className:"k-vstack",children:T(b,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&K($t,{children:[K("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),T("label",{className:"k-colorgradient-input-label",children:"B"})]}),K("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"&&K($t,{children:[K("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&K($t,{children:[K("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"V"})]}),K("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"&&K($t,{children:[K("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[T(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),T("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("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($t,{children:K("div",{className:"k-vstack k-flex-1",children:[T(Ie,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),T("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};mt.states=ml;mt.options=ul;mt.className=sn;mt.defaultOptions=nn;import{jsx as Ue,jsxs as Fe}from"react/jsx-runtime";var rn="k-colorgradient-color-contrast",fl=[],bl={},hl={},ut=()=>Fe("div",{className:s(rn,"k-vbox"),children:[Fe("div",{className:"k-contrast-ratio",children:[Ue("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Fe("span",{className:"k-contrast-validation !k-text-success",children:[Ue(S,{icon:"check"}),Ue(S,{icon:"check"})]})]}),Fe("div",{children:[Ue("span",{children:"AA: 4.5"}),Fe("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ue(S,{icon:"check"})]})]}),Fe("div",{children:[Ue("span",{children:"AAA: 7.0"}),Fe("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ue(S,{icon:"x"})]})]})]});ut.states=fl;ut.options=bl;ut.className=rn;ut.defaultOptions=hl;import{jsx as Q,jsxs as Vt}from"react/jsx-runtime";var vo="k-colorgradient",xl=[a.hover,a.focus,a.readonly,a.disabled],Nl={size:[i.small,i.medium,i.large]},re={size:i.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},we=e=>{let{size:t=re.size,mode:o=re.mode,readonly:n=re.readonly,disabled:r=re.disabled,gradientStyle:p=re.gradientStyle,dragHandleStyle:l=re.dragHandleStyle,alphaStyle:m=re.alphaStyle,alphaStyleHorizontal:u=re.alphaStyleHorizontal,contrast:h=re.contrast,dir:N,hover:k,focus:d,hoverHandle:v,focusHandle:g,canvasOrientation:y=re.canvasOrientation,...C}=e;return Vt("div",{...C,className:s(e.className,vo,M(vo,{size:t}),L(vo,{hover:k,focus:d,readonly:n,disabled:r})),dir:N,children:[!y||y==="horizontal"&&Vt("div",{className:"k-colorgradient-canvas k-hstack",children:[Q("div",{className:"k-hsv-rectangle",style:p,children:Q("div",{className:"k-hsv-gradient",children:Q("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":v,"k-focus":g}),style:l})})}),Vt("div",{className:"k-hsv-controls k-hstack",children:[Q(sa,{className:"k-hue-slider",hover:v,focus:g}),o!=="rgb"&&o!=="hsv"&&Q(sa,{className:"k-alpha-slider",hover:v,focus:g,trackStyle:m})]})]}),y==="vertical"&&Vt("div",{className:"k-colorgradient-canvas k-vstack",children:[Q("div",{className:"k-hsv-rectangle",style:p,children:Q("div",{className:"k-hsv-gradient",children:Q("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":v,"k-focus":g}),style:l})})}),Vt("div",{className:"k-hsv-controls k-vstack",children:[Q(aa,{className:"k-hue-slider",hover:v,focus:g}),o!=="rgb"&&o!=="hsv"&&Q(aa,{className:"k-alpha-slider",hover:v,focus:g,trackStyle:u})]})]}),Q(mt,{mode:e.mode,size:t}),h&&Q(ut,{})]})};we.states=xl;we.options=Nl;we.className=vo;we.defaultOptions=re;import{jsx as Sg}from"react/jsx-runtime";import{jsx as Cg}from"react/jsx-runtime";import{jsx as vl}from"react/jsx-runtime";var ln=e=>vl("tr",{children:e.children});import{jsx as Sl}from"react/jsx-runtime";var ha="k-colorpalette-tile",gl=[a.hover,a.focus,a.selected],kl={},Ut=e=>{let{color:t,tileSize:o,hover:n,focus:r,selected:p,...l}=e,m={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Sl("td",{...l,className:s(e.className,ha,L(ha,{hover:n,focus:r,selected:p})),style:m})};Ut.states=gl;Ut.options=kl;Ut.className=ha;import{jsx as Ft}from"react/jsx-runtime";var go="k-colorpalette",Ll=[a.disabled],Ml={size:[i.small,i.medium,i.large]},xa={columns:10,size:i.medium},ft=e=>{let{size:t=xa.size,palette:o,columns:n=xa.columns,tileSize:r,disabled:p,...l}=e,m=[];if(o){let u=n||o.columns,h=o.colors?o.colors:o;Array.isArray(h)&&Array.from({length:Math.ceil(h.length/u)},(N,k)=>{let d=[];h.slice(k*u,(k+1)*u).map((g,y)=>{d.push(Ft(Ut,{color:g,tileSize:r},y))});let v=Ft(ln,{children:d},k);m.push(v)})}return Ft("div",{...l,className:s(e.className,go,L(go,{disabled:p}),M(go,{size:t})),children:Ft("table",{className:"k-colorpalette-table",children:Ft("tbody",{children:m.length>0?m:e.children})})})};ft.states=Ll;ft.options=Ml;ft.className=go;ft.defaultOptions=xa;var Na={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 Wg}from"react/jsx-runtime";import{jsx as Y,jsxs as bt}from"react/jsx-runtime";var ko="k-coloreditor",yl=[a.focus],Cl={size:[i.small,i.medium,i.large]},ht={size:i.medium,view:"gradient",palette:Na.office,actionButtons:!0,canvasOrientation:"horizontal"},ce=e=>{let{size:t=ht.size,view:o=ht.view,palette:n=ht.palette,color:r,currentColor:p,focus:l,focusView:m,dir:u,group:h,actionButtons:N=ht.actionButtons,canvasOrientation:k=ht.canvasOrientation,...d}=e;return bt("div",{...d,className:s(e.className,"k-flatcolorpicker",ko,M(ko,{size:t}),L(ko,{focus:l})),dir:u,children:[bt("div",{className:"k-coloreditor-header k-hstack",children:[Y("div",{className:"k-coloreditor-header-actions k-hstack",children:h&&bt(w,{fillMode:"flat",children:[Y(b,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),Y(b,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),Y("div",{className:"k-spacer"}),bt("div",{className:"k-coloreditor-header-actions k-hstack",children:[Y(b,{fillMode:"flat",icon:"droplet-slash",size:t}),bt("div",{className:"k-coloreditor-preview k-vstack",children:[Y(Me,{className:"k-coloreditor-preview-color",color:r}),Y(Me,{className:"k-coloreditor-current-color",color:p})]})]})]}),Y("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?Y(we,{focus:m,size:t,canvasOrientation:k}):Y(ft,{palette:n,size:t})}),N&&bt(se,{className:"k-coloreditor-footer",alignment:"start",children:[Y(b,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Y(b,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ce.states=yl;ce.options=Cl;ce.className=ko;ce.defaultOptions=ht;import{jsx as fk}from"react/jsx-runtime";import{jsx as Nk}from"react/jsx-runtime";import{jsx as Sk}from"react/jsx-runtime";import{jsx as Ck}from"react/jsx-runtime";import{Fragment as Tl,jsx as j,jsxs as ga}from"react/jsx-runtime";var pn="k-colorpicker",Il=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],Al={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},Xt={arrowIconName:"caret-alt-down",size:te.defaultOptions.size,rounded:te.defaultOptions.rounded,fillMode:te.defaultOptions.fillMode},xe=e=>{let{size:t=Xt.size,rounded:o=Xt.rounded,fillMode:n=Xt.fillMode,arrowIconName:r=Xt.arrowIconName,prefix:p,suffix:l,value:m,placeholder:u,hover:h,focus:N,valid:k,invalid:d,required:v,disabled:g,valueIconName:y,popup:C,opened:A,adaptive:E,adaptiveSettings:H,adaptiveTitle:pe,adaptiveSubtitle:At,...Tt}=e;return ga(Tl,{children:[ga(te,{...Tt,size:t,rounded:o,fillMode:n,hover:h,focus:N,valid:k,invalid:d,required:v,disabled:g,className:s(e.className,pn,"k-icon-picker"),children:[j(X,{children:p}),j(He,{placeholder:u,value:m,showValue:!1,valueIcon:j(Me,{className:"k-value-icon",color:m,iconName:y}),valueIconName:y}),j(J,{children:l}),j(b,{className:"k-input-button",icon:r,rounded:null,size:t,fillMode:n})]}),A&&C&&j(G,{className:"k-colorpicker-popup",children:C}),E&&j(ne,{adaptive:!0,...H,header:j(W,{actionsEnd:j(b,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:pe,subtitle:At}),footer:ga(Ot,{children:[j(b,{text:"Cancel",size:"large",themeColor:"base"}),j(b,{text:"Set",size:"large",themeColor:"primary"})]}),children:j(ce,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};xe.states=Il;xe.options=Al;xe.className=pn;xe.defaultOptions=Xt;import{jsx as Xk}from"react/jsx-runtime";import{jsx as Qk}from"react/jsx-runtime";import{jsx as oS}from"react/jsx-runtime";import{jsx as rS}from"react/jsx-runtime";import{jsx as cS}from"react/jsx-runtime";import{jsx as fS}from"react/jsx-runtime";import{Fragment as ka,jsx as R,jsxs as Jt}from"react/jsx-runtime";var cn="k-combobox",zl=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],El={size:[i.small,i.medium,i.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[f.solid,f.flat,f.outline]},qt={size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},Xe=e=>{let{size:t=qt.size,rounded:o=qt.rounded,fillMode:n=qt.fillMode,separators:r=qt.separators,prefix:p,suffix:l,value:m,placeholder:u,hover:h,focus:N,valid:k,invalid:d,required:v,loading:g,disabled:y,popup:C,opened:A,readonly:E,adaptive:H,adaptiveSettings:pe,adaptiveTitle:At,adaptiveSubtitle:Tt,adaptiveCustomValue:Oo,...Ro}=e;return Jt(ka,{children:[Jt(z,{...Ro,size:t,rounded:o,fillMode:n,hover:h,focus:N,valid:k,invalid:d,required:v,loading:g,disabled:y,readonly:E,className:s(e.className,cn),children:[p&&Jt(ka,{children:[R(X,{children:p}),r&&R(q,{})]}),R(ae,{placeholder:u,value:m}),R(U,{valid:k,invalid:d,loading:g,disabled:y}),R(F,{loading:g,disabled:y}),R(oe,{loading:g,disabled:y,readonly:E,value:m}),l&&Jt(ka,{children:[r&&R(q,{}),R(J,{children:l})]}),R(b,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:n})]}),A&&C&&R(G,{className:"k-list-container k-combobox-popup",children:C}),H&&R(ne,{adaptive:!0,...pe,header:R(W,{ac