UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 88.6 kB
var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var L=(e,t)=>o({[`${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"}),C=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly});var s={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},T={small:"small",medium:"medium",large:"large",full:"full"},f={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={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"};import{jsxs as ar}from"react/jsx-runtime";var cl="k-gantt",er=[],tr={},or={},je=e=>{let{headerToolbar:t,footerToolbar:a,...r}=e;return ar("div",{...r,className:o(e.className,cl),children:[t,e.children,a]})};je.states=er;je.options=tr;je.className=cl;je.defaultOptions=or;import{Fragment as ir,jsx as pl}from"react/jsx-runtime";var Wo="k-icon k-font-icon",lr=[],sr={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},rr={},Jt=e=>{let{size:t,themeColor:a,icon:r,rotate:d,flip:n,...c}=e;return r?pl("span",{...c,className:o(e.className,Wo,L(Wo,{size:t}),{[`k-i-${r}`]:r,[`k-color-${a}`]:a,[`k-rotate-${d}`]:d,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"})}):pl(ir,{})};Jt.states=lr;Jt.options=sr;Jt.className=Wo;Jt.defaultOptions=rr;var ml=Jt;import{Fragment as cr,jsx as ho}from"react/jsx-runtime";var Xo="k-icon k-svg-icon",nr=[],dr={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},ul={viewBox:"0 0 24 24"},Ut=e=>{let{size:t,themeColor:a,rotate:r,flip:d,viewBox:n=ul.viewBox,icon:c,...m}=e;if(!c)return ho(cr,{});c==="none"&&{...m,className:o(e.className,Xo,"k-none")};let b=typeof c=="object"&&c.name&&c.name;return ho("span",{...m,className:o(e.className,Xo,L("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${a}`]:a,[`k-rotate-${r}`]:r,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),children:ho("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:n,dangerouslySetInnerHTML:typeof c=="object"?{__html:c.content}:void 0,children:c?void 0:e.children})})};Ut.states=nr;Ut.options=dr;Ut.className=Xo;Ut.defaultOptions=ul;var Jo=Ut;import*as bl from"@progress/kendo-svg-icons";import{Fragment as fl,jsx as qt}from"react/jsx-runtime";var pr=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),mr=[],ur={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Uo={viewBox:"0 0 24 24",type:"svg"},N=e=>{let{size:t,themeColor:a,icon:r,type:d=Uo.type,rotate:n,flip:c,viewBox:m=Uo.viewBox,...b}=e;if(!r)return qt(fl,{});if(d==="svg"){if(r==="none")return qt(Jo,{...b,icon:r,size:t});let h=pr(`${r}-icon`);return bl[h]?qt(Jo,{...b,icon:bl[h],size:t,themeColor:a,rotate:n,flip:c,viewBox:m}):qt(fl,{})}return qt(ml,{...b,icon:r,size:t,themeColor:a,rotate:n,flip:c})};N.states=mr;N.options=ur;N.defaultOptions=Uo;import{Fragment as Tr,jsx as Qt,jsxs as Tl}from"react/jsx-runtime";var xo="k-button",br=[l.hover,l.focus,l.active,l.selected,l.disabled],fr={size:[s.small,s.medium,s.large],rounded:[T.small,T.medium,T.large,T.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},et={size:s.medium,rounded:T.medium,fillMode:f.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},x=e=>{let{size:t=et.size,rounded:a=et.rounded,fillMode:r=et.fillMode,themeColor:d=et.themeColor,showArrow:n=et.showArrow,arrowIconName:c=et.arrowIconName,hover:m,focus:b,active:h,selected:k,disabled:y,icon:p,text:g,iconClassName:v,...S}=e,I=p!==void 0,A=e.children!==void 0;return Tl("button",{...S,className:o(e.className,xo,L(xo,{size:t,rounded:a,fillMode:r,themeColor:d}),C(xo,{hover:m,focus:b,active:h,disabled:y,selected:k}),{"k-icon-button":!g&&!A&&I}),children:[p&&Qt(N,{className:o(v,"k-button-icon"),icon:p}),g?Tl(Tr,{children:[g&&Qt("span",{className:"k-button-text",children:g}),e.children]}):e.children&&Qt("span",{className:"k-button-text",children:e.children}),n&&Qt("span",{className:"k-menu-button-arrow k-button-arrow",children:Qt(N,{icon:c})})]})};x.states=br;x.options=fr;x.className=xo;x.defaultOptions=et;import{jsx as hr}from"react/jsx-runtime";var No=e=>hr(x,{icon:"folder",...e,children:void 0});import{jsx as xr}from"react/jsx-runtime";var qo=e=>xr(x,{icon:"folder",children:"Button",...e});import{jsx as Jp}from"react/jsx-runtime";import{jsx as gr}from"react/jsx-runtime";var Yt="k-button-group",Nr=[l.disabled],kr={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},hl={fillMode:f.solid},O=e=>{let{fillMode:t=hl.fillMode,disabled:a,stretched:r,...d}=e;return gr("div",{...d,className:o(e.className,Yt,L(Yt,{fillMode:t}),C(Yt,{disabled:a}),{[`${Yt}-stretched`]:r}),children:e.children})};O.states=Nr;O.options=kr;O.className=Yt;O.defaultOptions=hl;import{Fragment as im,jsx as rm,jsxs as nm}from"react/jsx-runtime";import{Fragment as bm,jsx as um,jsxs as fm}from"react/jsx-runtime";import{Fragment as gm,jsx as km,jsxs as vm}from"react/jsx-runtime";import{Fragment as Mm,jsx as Cm,jsxs as Gm}from"react/jsx-runtime";import{jsx as Lr}from"react/jsx-runtime";var ko="k-input",vr=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],yr={size:[s.small,s.medium,s.large],rounded:[T.small,T.medium,T.large,T.full],fillMode:[f.solid,f.flat,f.outline]},go={size:s.medium,rounded:s.medium,fillMode:f.solid},B=e=>{let{hover:t,focus:a,disabled:r,invalid:d,valid:n,loading:c,readonly:m,size:b=go.size,rounded:h=go.rounded,fillMode:k=go.fillMode,...y}=e;return Lr("span",{...y,className:o(e.className,ko,L(ko,{size:b,rounded:h,fillMode:k}),C(ko,{hover:t,focus:a,disabled:r,invalid:d,valid:n,loading:c,readonly:m}))})};B.states=vr;B.options=yr;B.className=ko;B.defaultOptions=go;import{jsx as Cr}from"react/jsx-runtime";var vo="k-picker",wr=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Sr={size:[s.small,s.medium,s.large],rounded:[T.small,T.medium,T.large,T.full],fillMode:[f.solid,f.flat,f.outline]},yo={size:s.medium,rounded:T.medium,fillMode:f.solid},xe=e=>{let{hover:t,focus:a,disabled:r,invalid:d,valid:n,loading:c,readonly:m,size:b=yo.size,rounded:h=yo.rounded,fillMode:k=yo.fillMode,...y}=e;return Cr("span",{...y,className:o(e.className,vo,L(vo,{size:b,rounded:h,fillMode:k}),C(vo,{hover:t,focus:a,disabled:r,invalid:d,valid:n,loading:c,readonly:m})),children:e.children})};xe.states=wr;xe.options=Sr;xe.className=vo;xe.defaultOptions=yo;import{Fragment as Ir,jsx as Qo}from"react/jsx-runtime";var xl="k-clear-value",Mr=[l.disabled,l.loading,l.readonly],Gr={},Ne=e=>{let{disabled:t,loading:a,readonly:r,value:d}=e;return t||r||a||!d?Qo(Ir,{}):Qo("span",{className:o(e.className,xl),children:Qo(N,{icon:"x"})})};Ne.states=Mr;Ne.options=Gr;Ne.className=xl;import{jsx as Hr}from"react/jsx-runtime";var Yo="k-input-inner",Rr=[],Ar={},Lo={type:"text",autocomplete:"off",value:"",placeholder:""},ke=e=>{let{value:t=Lo.value,type:a=Lo.type,placeholder:r=Lo.placeholder,autocomplete:d=Lo.autocomplete,...n}=e;return Hr("input",{...n,type:a,className:o(e.className,Yo,L(Yo,e)),placeholder:r,autoComplete:d,defaultValue:t})};ke.states=Rr;ke.options=Ar;ke.className=Yo;import{jsx as Nl,jsxs as Br}from"react/jsx-runtime";var Zo="k-input-inner",Pr=[],zr={},tt=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:d,valueIconName:n,...c}=e;return Br("span",{...c,className:o(e.className,Zo,L(Zo,e)),children:[d,!d&&n&&Nl(N,{className:"k-input-value-icon",icon:n}),r&&!t&&a,r&&t&&Nl("span",{className:"k-input-value-text",children:t})]})};tt.states=Pr;tt.options=zr;tt.className=Zo;import{jsx as Kr}from"react/jsx-runtime";var jo="k-input-inner",Er=[],Or={},kl={value:"",placeholder:""},ea=e=>{let{value:t=kl.value,placeholder:a=kl.placeholder,rows:r,...d}=e;return Kr("textarea",{...d,className:o(e.className,jo,L(jo,e)),placeholder:a,rows:r,defaultValue:t})};ea.states=Er;ea.options=Or;ea.className=jo;import{Fragment as $r,jsx as gl}from"react/jsx-runtime";var vl="k-input-loading-icon",Dr=[l.disabled,l.loading],pe=e=>{let{disabled:t,loading:a}=e;return t||!a?gl($r,{}):gl("span",{className:o(e.className,vl,"k-icon k-i-loading")})};pe.states=Dr;pe.className=vl;import{Fragment as Fr,jsx as yl}from"react/jsx-runtime";var Ll="k-input-validation-icon",_r=[l.valid,l.invalid,l.disabled,l.loading],Vr={},de=e=>{let{valid:t,invalid:a,disabled:r,loading:d}=e,n=a?"warning-circle":"check-circle";return r||d||!!!(t||a)?yl(Fr,{}):yl(N,{className:o(Ll),icon:n})};de.states=_r;de.options=Vr;de.className=Ll;import{Fragment as Jr,jsx as wl}from"react/jsx-runtime";var Wr="k-input-prefix",Xr={direction:"horizontal"},Se=e=>{let{direction:t=Xr.direction,...a}=e;return e.children?wl("span",{...a,className:o(Wr,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):wl(Jr,{})};import{Fragment as Qr,jsx as Sl}from"react/jsx-runtime";var Ur="k-input-suffix",qr={direction:"horizontal"},Ce=e=>{let{direction:t=qr.direction,...a}=e;return e.children?Sl("span",{...a,className:o(Ur,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Sl(Qr,{})};import{jsx as xu}from"react/jsx-runtime";import{jsx as vu}from"react/jsx-runtime";import{jsx as Zr}from"react/jsx-runtime";var Cl="k-input-separator",Yr={direction:"vertical"},Ae=e=>{let{direction:t=Yr.direction,...a}=e;return Zr("span",{...a,className:o(Cl,e.className,{[`${Cl}-${t}`]:t})})};import{jsx as Ml,jsxs as ti}from"react/jsx-runtime";var Gl="k-color-preview",jr=[],ei={},De=e=>{let{color:t,iconName:a,...r}=e;return ti("span",{...r,className:o(e.className,Gl,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&Ml(N,{icon:a,className:"k-color-preview-icon"}),Ml("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};De.states=jr;De.options=ei;De.className=Gl;import{jsx as Il}from"react/jsx-runtime";var Rl="k-animation-container",oi=[],ai={},Al={positionMode:"absolute"},$e=e=>{let{positionMode:t=Al.positionMode,animationStyle:a,offset:r,...d}=e;return Il("div",{...d,style:{...r,...e.style},className:o(e.className,Rl,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Il("div",{className:"k-child-animation-container",style:a,children:e.children})})};$e.states=oi;$e.options=ai;$e.className=Rl;$e.defaultOptions=Al;import{jsx as Hl}from"react/jsx-runtime";var Pl="k-popup",li=[],si={},zl={positionMode:"absolute"},ee=e=>{let{offset:t,positionMode:a=zl.positionMode,animationStyle:r,...d}=e;return Hl($e,{positionMode:a,offset:t,animationStyle:r,children:Hl("div",{...d,className:o(e.className,Pl),children:e.children})})};ee.states=li;ee.options=si;ee.className=Pl;ee.defaultOptions=zl;import{jsx as ni}from"react/jsx-runtime";var wo="k-actions",ri=[],ii={},ta={alignment:"start",orientation:"horizontal"},_e=e=>{let{alignment:t=ta.alignment,orientation:a=ta.orientation,...r}=e;return ni("div",{...r,className:o(wo,{[`${wo}-${t}`]:t,[`${wo}-${a}`]:a},e.className),children:e.children})};_e.states=ri;_e.options=ii;_e.className=wo;_e.defaultOptions=ta;import{jsx as ci}from"react/jsx-runtime";var di="k-actionsheet-footer",Bl={alignment:"stretched",orientation:"horizontal"},Zt=e=>{let{alignment:t=Bl.alignment,orientation:a=Bl.orientation,template:r,as:d=r?"div":_e,...n}=e;return ci(d,{...n,...!r&&{alignment:t,orientation:a},className:o(e.className,di),children:e.children})};import{jsx as jt,jsxs as ui}from"react/jsx-runtime";var El="k-searchbox",pi=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],mi={size:[s.small,s.medium,s.large],rounded:[T.small,T.medium,T.large,T.full],fillMode:[f.solid,f.flat,f.outline]},oa={showIcon:!0,icon:"search",size:B.defaultOptions.size,rounded:B.defaultOptions.rounded,fillMode:B.defaultOptions.fillMode},He=e=>{let{value:t,placeholder:a,size:r,rounded:d,fillMode:n,hover:c,focus:m,valid:b,invalid:h,required:k,loading:y,disabled:p,showIcon:g=oa.showIcon,icon:v=oa.icon,...S}=e;return ui(B,{...S,size:r,rounded:d,fillMode:n,hover:c,focus:m,valid:b,invalid:h,required:k,loading:y,disabled:p,className:o(e.className,El),children:[g&&jt(N,{className:"k-input-icon",icon:v}),jt(ke,{placeholder:a,value:t}),jt(pe,{...e}),jt(de,{...e}),jt(Ne,{...e})]})};He.states=pi;He.options=mi;He.className=El;He.defaultOptions=oa;import{jsx as gb}from"react/jsx-runtime";import{Fragment as Ol,jsx as Ve,jsxs as aa}from"react/jsx-runtime";var Kl="k-textbox",bi=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],fi={size:[s.small,s.medium,s.large],rounded:[T.small,T.medium,T.large,T.full],fillMode:[f.solid,f.flat,f.outline]},ot={showClearButton:!0,showValidationIcon:!0,size:B.defaultOptions.size,rounded:B.defaultOptions.rounded,fillMode:B.defaultOptions.fillMode,separators:!0},Me=e=>{let{size:t=ot.size,rounded:a=ot.rounded,fillMode:r=ot.fillMode,separators:d=ot.separators,showClearButton:n=ot.showClearButton,showValidationIcon:c=ot.showValidationIcon,prefix:m,suffix:b,type:h,value:k,placeholder:y,hover:p,focus:g,valid:v,invalid:S,required:I,loading:A,disabled:z,readonly:j,...ae}=e;return aa(B,{...ae,size:t,rounded:a,fillMode:r,hover:p,focus:g,valid:v,invalid:S,required:I,loading:A,disabled:z,readonly:j,className:o(e.className,Kl),children:[m&&aa(Ol,{children:[Ve(Se,{children:m}),d&&Ve(Ae,{})]}),Ve(ke,{placeholder:y,value:k,type:h}),c&&Ve(de,{valid:v,invalid:S,loading:A,disabled:z}),Ve(pe,{loading:A,disabled:z}),n&&Ve(Ne,{loading:A,disabled:z,readonly:j,value:k}),b&&aa(Ol,{children:[d&&Ve(Ae,{}),Ve(Ce,{children:b})]})]})};Me.states=bi;Me.options=fi;Me.className=Kl;Me.defaultOptions=ot;import{jsx as Ab}from"react/jsx-runtime";import{Fragment as Ob,jsx as Eb}from"react/jsx-runtime";import{Fragment as Wb,jsx as Fb}from"react/jsx-runtime";import{jsx as Fe,jsxs as la}from"react/jsx-runtime";var $l="k-actionsheet-titlebar",Ti={},me=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:d,filter:n,input:c,inputValue:m,inputPlaceholder:b,adaptive:h,children:k,...y}=e;return la("div",{...y,className:o(e.className,$l),children:[la("div",{className:"k-actionsheet-titlebar-group",children:[r&&Fe("div",{className:"k-actionsheet-actions",children:r}),!k&&la("div",{className:"k-actionsheet-title",children:[t&&Fe("div",{className:"k-text-center",children:t}),a&&Fe("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),k&&Fe("div",{className:"k-actionsheet-title",children:k}),d&&Fe("div",{className:"k-actionsheet-actions",children:d})]}),(c||n)&&Fe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?Fe(Me,{value:m,placeholder:b,size:h?"large":"medium"}):Fe(He,{placeholder:"Filter",size:h?"large":"medium"})})]})};me.className=$l;me.defaultOptions=Ti;import{jsx as sa,jsxs as ki}from"react/jsx-runtime";var ra="k-actionsheet-view",hi=[],xi={},Ni={},Nt=e=>{let{adaptive:t,animated:a,children:r,header:d,footer:n,...c}=e,m=d?.type===me&&sa(me,{adaptive:t,...d?.props}),b=n?.type===Zt&&sa(Zt,{...n?.props});return ki("div",{...c,className:o(e.className,ra,{[`${ra}-animated`]:a}),children:[m,sa("div",{className:"k-actionsheet-content",children:r}),b]})};Nt.states=hi;Nt.options=xi;Nt.className=ra;Nt.defaultOptions=Ni;import{jsx as So,jsxs as yi}from"react/jsx-runtime";var _l="k-actionsheet",gi=[],vi={},eo={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ge=e=>{let{side:t=eo.side,fullscreen:a=eo.fullscreen,adaptive:r=eo.adaptive,overlay:d=eo.overlay,template:n,children:c,header:m,footer:b,...h}=e;return yi("div",{className:"k-actionsheet-container",children:[d&&So("div",{className:"k-overlay"}),So($e,{animationStyle:{[`${a===!0?"top":t}`]:0,[`${a===!0?"width":null}`]:"100%",[`${a===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:So("div",{...h,className:o(e.className,_l,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:n||So(Nt,{header:m,footer:b,adaptive:r,...e,children:c})})})]})};ge.states=gi;ge.options=vi;ge.className=_l;ge.defaultOptions=eo;import{jsx as Tf}from"react/jsx-runtime";import{Fragment as wi,jsx as to,jsxs as ia}from"react/jsx-runtime";var na="k-actionsheet-item",Li=[l.hover,l.focus,l.selected,l.disabled],da=e=>{let{iconName:t,text:a,description:r,hover:d,focus:n,selected:c,disabled:m,...b}=e;return ia("span",{...b,className:o(e.className,na,C(na,{hover:d,focus:n,selected:c,disabled:m})),children:[!e.children&&to(wi,{children:ia("span",{className:"k-actionsheet-action",children:[t&&to("span",{className:"k-icon-wrap",children:to(N,{className:"k-actionsheet-item-icon",icon:t})}),ia("span",{className:"k-actionsheet-item-text",children:[a&&to("span",{className:"k-actionsheet-item-title",children:a}),r&&to("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};da.states=Li;da.className=na;import{jsx as wf,jsxs as Sf}from"react/jsx-runtime";import{jsx as If}from"react/jsx-runtime";import{jsx as Pf}from"react/jsx-runtime";import{jsx as Of}from"react/jsx-runtime";import{jsx as kt,jsxs as ca}from"react/jsx-runtime";var oo="k-slider",Si=[l.hover,l.focus,l.active,l.disabled,l.readonly],Ci={},We={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},ue=e=>{let{type:t=We.type,orientation:a=We.orientation,readonly:r=We.readonly,disabled:d=We.disabled,handlePosition:n=We.handlePosition,showButtons:c=We.showButtons,showTicks:m=We.showTicks,hover:b,focus:h,active:k,trackStyle:y,dir:p,...g}=e,v,S;return a==="horizontal"?(v=p==="rtl"?"caret-alt-left":"caret-alt-right",S=p==="rtl"?"caret-alt-right":"caret-alt-left"):a==="vertical"&&(v="caret-alt-up",S="caret-alt-down"),ca("div",{...g,className:o(oo,e.className,C(oo,{readonly:r,disabled:d}),{[`k-slider-${a}`]:a,"k-colorgradient-slider":t==="gradient"}),dir:p,children:[c&&kt(x,{className:"k-button-decrease",rounded:"full",icon:S}),ca("div",{className:"k-slider-track-wrap",children:[m&&kt("ul",{className:"k-reset k-slider-items",children:e.children}),ca("div",{className:"k-slider-track",style:y,children:[kt("div",{className:"k-slider-selection"}),t==="range"&&kt("span",{className:o("k-draghandle","k-draghandle-start",C(oo,{hover:b,focus:h,active:k}))}),kt("span",{className:o("k-draghandle",`k-draghandle-${n}`,C(oo,{hover:b,focus:h,active:k}))})]})]}),c&&kt(x,{className:"k-button-increase",rounded:"full",icon:v})]})};ue.states=Si;ue.options=Ci;ue.className=oo;ue.defaultOptions=We;import{jsx as Fl}from"react/jsx-runtime";var Wl="k-tick",Mi=[],Gi={},Xl={label:!1},Xe=e=>{let{style:t,label:a=Xl.label,orientation:r,large:d,text:n,...c}=e;return Fl("li",{...c,className:o(e.className,Wl,{[`k-tick-${r}`]:r,"k-tick-large":d}),style:t,children:a&&Fl("span",{className:"k-label",children:n})})};Xe.states=Mi;Xe.options=Gi;Xe.className=Wl;Xe.defaultOptions=Xl;import{Fragment as iT,jsx as rT,jsxs as nT}from"react/jsx-runtime";import{Fragment as uT,jsx as mT,jsxs as bT}from"react/jsx-runtime";import{Fragment as NT,jsx as xT,jsxs as kT}from"react/jsx-runtime";import{Fragment as wT,jsx as LT,jsxs as ST}from"react/jsx-runtime";import{jsx as Ii}from"react/jsx-runtime";var pa=e=>Ii(ue,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Ri}from"react/jsx-runtime";var ma=e=>Ri(ue,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Jl,jsxs as Pi}from"react/jsx-runtime";var Ul="k-spin-button",Ai=[],Hi={size:[s.small,s.medium,s.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},ua={size:s.medium,fillMode:f.solid},gt=e=>{let{size:t=ua.size,fillMode:a=ua.fillMode,...r}=e;return Pi("span",{...r,className:o(Ul,e.className),children:[Jl(x,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:a}),Jl(x,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]})};gt.states=Ai;gt.options=Hi;gt.className=Ul;gt.defaultOptions=ua;import{Fragment as ql,jsx as Pe,jsxs as ba}from"react/jsx-runtime";var Ql="k-numerictextbox",zi=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],Bi={size:[s.small,s.medium,s.large],rounded:[T.small,T.medium,T.large,T.full],fillMode:[f.solid,f.flat,f.outline]},at={showSpinButton:!0,showClearButton:!0,size:B.defaultOptions.size,rounded:B.defaultOptions.rounded,fillMode:B.defaultOptions.fillMode,separators:!0},K=e=>{let{size:t=at.size,rounded:a=at.rounded,fillMode:r=at.fillMode,separators:d=at.separators,showClearButton:n=at.showClearButton,showSpinButton:c=at.showSpinButton,prefix:m,suffix:b,value:h,placeholder:k,hover:y,focus:p,valid:g,invalid:v,required:S,loading:I,disabled:A,readonly:z,...j}=e;return ba(B,{...j,size:t,rounded:a,fillMode:r,hover:y,focus:p,valid:g,invalid:v,required:S,loading:I,disabled:A,readonly:z,className:o(e.className,Ql),children:[m&&ba(ql,{children:[Pe(Se,{children:m}),d&&Pe(Ae,{})]}),Pe(ke,{placeholder:k,value:h}),Pe(de,{valid:g,invalid:v,loading:I,disabled:A}),Pe(pe,{loading:I,disabled:A}),n&&Pe(Ne,{loading:I,disabled:A,readonly:z,value:h}),b&&ba(ql,{children:[d&&Pe(Ae,{}),Pe(Ce,{children:b})]}),c&&Pe(gt,{className:"k-input-spinner",size:t,fillMode:r})]})};K.states=zi;K.options=Bi;K.className=Ql;K.defaultOptions=at;import{jsx as oh}from"react/jsx-runtime";import{jsx as Oi}from"react/jsx-runtime";var Ei="k-no-data",ao=e=>Oi("span",{className:o(Ei,e.className),children:e.children});import{jsx as vt,jsxs as Zl}from"react/jsx-runtime";var fa="k-list",Ki=[],Di={size:[s.small,s.medium,s.large]},jl={size:s.medium},D=e=>{let{size:t=jl.size,virtualization:a,children:r,optionLabel:d,customValue:n,screenReaders:c,...m}=e,b,h,k,y,p=[];return r?r.map((g,v)=>{g.type===te?(g.props.root===!0?(b=g.props.label,g.props.children.map((S,I)=>{p.push(vt(R,{...S.props},`optChild-${I}-${new Date().getTime()}`))})):g.props.children.forEach((S,I)=>{let A="";I===0&&(A=g.props.label),p.push(vt(R,{className:I===0?"k-first":"",...S.props,groupLabel:A},`groupLabel-${I}-${new Date().getTime()}`))}),h=vt(te,{label:b,virtualization:a,children:p})):g.type===R&&(p.push(vt(R,{...g.props},`${g.type}-${v}`)),k=vt(yt,{virtualization:a,children:p}),c&&(y=Zl(ao,{className:"k-sr-only",children:[p.length," items found."]})))}):y=vt(ao,{children:"No data found."}),Zl("div",{...m,className:o(e.className,fa,L(fa,{size:t}),{"k-virtual-list":a}),children:[d,n,h,k,y]})};D.states=Ki;D.options=Di;D.className=fa;D.defaultOptions=jl;import{jsx as lt,jsxs as Vi}from"react/jsx-runtime";var Ta="k-list",$i=[],_i={size:[s.small,s.medium,s.large]},es={size:s.medium},st=e=>{let{size:t=es.size,virtualization:a,children:r,...d}=e,n,c,m,b=[];return r?r.map((h,k)=>{h.type===te?(h.props.root===!0?(n=h.props.label,h.props.children.map((y,p)=>{b.push(lt(R,{...y.props},`optChild-${p}-${new Date().getTime()}`))})):(b.push(lt(ts,{...h.props,children:h.props.label},`listChild-${k}`)),h.props.children.map((y,p)=>{b.push(lt(R,{...y.props},`fwOptChild-${p}-${new Date().getTime()}`))})),c=lt(te,{label:n,virtualization:a,children:b})):h.type===R&&(b.push(lt(R,{...h.props},`${h.type}-${k}`)),m=lt(yt,{virtualization:a,children:b}))}):m=lt(ao,{children:"No data found."}),Vi("div",{...d,className:o(e.className,Ta,L(Ta,{size:t}),{"k-virtual-list":a}),children:[c,m]})};st.states=$i;st.options=_i;st.className=Ta;st.defaultOptions=es;import{jsx as os}from"react/jsx-runtime";var Co="k-checkbox",Fi=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],Wi={size:[s.small,s.medium,s.large],rounded:[T.small,T.medium,T.large,T.full]},ha={size:s.medium,rounded:T.medium},ze=e=>{let{id:t,checked:a,indeterminate:r,hover:d,focus:n,disabled:c,invalid:m,valid:b,required:h,size:k=ha.size,rounded:y=ha.rounded,...p}=e;return os("span",{className:"k-checkbox-wrap",children:os("input",{...p,id:t,type:"checkbox",defaultChecked:a,required:h,className:o(e.className,Co,L(Co,{size:k,rounded:y}),C(Co,{hover:d,focus:n,disabled:c,invalid:m,valid:b,indeterminate:r,checked:a}))})})};ze.states=Fi;ze.options=Wi;ze.className=Co;ze.defaultOptions=ha;import{jsx as Ui}from"react/jsx-runtime";var as="k-checkbox-list",Xi=[],Ji={},ls={layout:"vertical"},Lt=e=>{let{layout:t=ls.layout,...a}=e;return Ui("ul",{...a,className:o(e.className,as,{[`k-list-${t}`]:t}),children:e.children})};Lt.states=Xi;Lt.options=Ji;Lt.className=as;Lt.defaultOptions=ls;import{jsx as Zi}from"react/jsx-runtime";var ss="k-checkbox-list-item",qi=[],Qi={},Yi={},wt=e=>{let{...t}=e;return Zi("li",{...t,className:o(e.className,ss),children:e.children})};wt.states=qi;wt.options=Qi;wt.className=ss;wt.defaultOptions=Yi;import{Fragment as Rh,jsx as Ih,jsxs as Ah}from"react/jsx-runtime";import{Fragment as Eh,jsx as Bh,jsxs as Oh}from"react/jsx-runtime";import{Fragment as Vh,jsx as _h,jsxs as Fh}from"react/jsx-runtime";import{Fragment as qh,jsx as Uh,jsxs as Qh}from"react/jsx-runtime";import{jsx as ex}from"react/jsx-runtime";import{jsx as lx}from"react/jsx-runtime";import{jsx as Mo,jsxs as on}from"react/jsx-runtime";var Na="k-list-item",ji=[l.hover,l.focus,l.selected,l.disabled],en={},tn={},R=e=>{let{text:t,groupLabel:a,group:r,showIcon:d,iconName:n,showCheckbox:c,checked:m,hover:b,focus:h,selected:k,disabled:y,...p}=e,g=t||e.children;return on("li",{...p,className:o(e.className,r?"k-list-group-item":Na,C(Na,{hover:b,focus:h,disabled:y,selected:k})),children:[c&&Mo(ze,{checked:m}),d&&Mo(N,{icon:n}),Mo("span",{className:"k-list-item-text",children:g}),a&&a!==""&&Mo("div",{className:"k-list-item-group-label",children:a})]})};R.states=ji;R.options=en;R.className=Na;R.defaultOptions=tn;import{jsx as ka,jsxs as ln}from"react/jsx-runtime";var an="k-list-content",yt=e=>{let{virtualization:t,...a}=e;return ln("div",{...a,className:o(an,e.className),children:[ka("ul",{className:o("k-list-ul"),children:e.children}),t&&ka("div",{className:"k-height-container",children:ka("div",{})})]})};import{jsx as rs}from"react/jsx-runtime";var sn="k-list-group-sticky-header",is=e=>rs("div",{className:o(sn,e.className),children:rs("div",{className:"k-list-header-text",children:e.children})});import{Fragment as rn,jsx as ns,jsxs as nn}from"react/jsx-runtime";var te=e=>{let{virtualization:t,label:a}=e;return nn(rn,{children:[a&&ns(is,{children:a}),e.children&&ns(yt,{virtualization:t,children:e.children})]})};import{jsx as ds}from"react/jsx-runtime";var dn="k-list-group-item",ts=e=>ds("li",{className:o(dn,e.className),children:ds("span",{className:"k-list-item-text",children:e.children})});import{jsx as un}from"react/jsx-runtime";var ga="k-list-optionlabel",cn=[l.hover,l.focus,l.selected,l.disabled],pn={},mn={},Go=e=>{let{text:t,hover:a,focus:r,selected:d,disabled:n,...c}=e;return un("div",{...c,className:o(ga,C(ga,{hover:a,focus:r,selected:d,disabled:n})),children:t})};Go.states=cn;Go.options=pn;Go.className=ga;Go.defaultOptions=mn;import{jsx as hn}from"react/jsx-runtime";var va="k-list-custom-value",bn=[l.hover,l.focus,l.selected,l.disabled],fn={},Tn={},Je=e=>{let{text:t,hover:a,focus:r,selected:d,disabled:n,...c}=e;return hn("div",{...c,className:o(va,C(va,{hover:a,focus:r,selected:d,disabled:n})),children:t})};Je.states=bn;Je.options=fn;Je.className=va;Je.defaultOptions=Tn;import{jsx as $x}from"react/jsx-runtime";import{jsx as Wx}from"react/jsx-runtime";import{jsx as qx,jsxs as Qx}from"react/jsx-runtime";import{jsx as eN,jsxs as tN}from"react/jsx-runtime";import{jsx as sN}from"react/jsx-runtime";import{jsx as dN,jsxs as cN}from"react/jsx-runtime";import{jsx as bN,jsxs as fN}from"react/jsx-runtime";import{Fragment as kn,jsx as le,jsxs as ya}from"react/jsx-runtime";var cs="k-dropdownlist",xn=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Nn={size:[s.small,s.medium,s.large],rounded:[T.small,T.medium,T.large,T.full],fillMode:[f.solid,f.flat,f.outline]},St={showValue:!0,arrowIconName:"caret-alt-down",size:s.medium,rounded:T.medium,fillMode:f.solid},ve=e=>{let{size:t=St.size,rounded:a=St.rounded,fillMode:r=St.fillMode,arrowIconName:d=St.arrowIconName,showValue:n=St.showValue,valueIconName:c,prefix:m,suffix:b,value:h,placeholder:k,hover:y,focus:p,valid:g,invalid:v,required:S,loading:I,disabled:A,readonly:z,popup:j,opened:ae,adaptive:Wt,adaptiveSettings:Xt,adaptiveTitle:Vo,adaptiveSubtitle:Fo,adaptiveFilter:Zs,...js}=e;return ya(kn,{children:[ya(xe,{...js,size:t,rounded:a,fillMode:r,hover:y,focus:p,valid:g,invalid:v,required:S,loading:I,disabled:A,readonly:z,className:o(e.className,cs,{"k-icon-picker":!n&&c}),children:[le(Se,{children:m}),le(tt,{placeholder:k,value:h,showValue:n,valueIconName:c}),le(de,{valid:g,invalid:v,loading:I,disabled:A}),le(pe,{loading:I,disabled:A}),le(Ce,{children:b}),le(x,{className:"k-input-button",icon:d,rounded:null,size:e.size,fillMode:e.fillMode})]}),ae&&j&&le(ee,{className:"k-list-container k-dropdownlist-popup",children:j}),Wt&&le(ge,{adaptive:!0,...Xt,header:le(me,{actionsEnd:le(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Zs,inputValue:h,inputPlaceholder:k,title:Vo,subtitle:Fo}),children:le("div",{className:"k-list-container",children:ya(D,{size:"large",children:[le(R,{text:"List item"}),le(R,{text:"List item"}),le(R,{text:"List item"})]})})})]})};ve.states=xn;ve.options=Nn;ve.className=cs;ve.defaultOptions=St;import{jsx as WN}from"react/jsx-runtime";import{jsx as QN,jsxs as YN}from"react/jsx-runtime";import{Fragment as sk,jsx as ak,jsxs as lk}from"react/jsx-runtime";import{jsx as dk}from"react/jsx-runtime";import{jsx as bk,jsxs as fk}from"react/jsx-runtime";import{jsx as kk,jsxs as gk}from"react/jsx-runtime";import{Fragment as Gk,jsx as Ck,jsxs as Mk}from"react/jsx-runtime";import{Fragment as Ek,jsx as zk,jsxs as Bk}from"react/jsx-runtime";import{Fragment as jk,jsx as Zk}from"react/jsx-runtime";import{Fragment as rg,jsx as sg}from"react/jsx-runtime";import{Fragment as lo,jsx as H,jsxs as F}from"react/jsx-runtime";var ps="k-colorgradient-inputs",gn=[],vn={size:[s.small,s.medium,s.large]},ms={mode:"rgba",size:s.medium},Ct=e=>{let{mode:t=ms.mode,size:a,...r}=e;return F("div",{...r,className:o(ps,"k-hstack"),children:[H("div",{className:"k-vstack",children:H(x,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:a})}),t==="rgba"&&F(lo,{children:[F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),H("label",{className:"k-colorgradient-input-label",children:"R"})]}),F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),H("label",{className:"k-colorgradient-input-label",children:"G"})]}),F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),H("label",{className:"k-colorgradient-input-label",children:"B"})]}),F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:a}),H("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&F(lo,{children:[F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),H("label",{className:"k-colorgradient-input-label",children:"R"})]}),F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),H("label",{className:"k-colorgradient-input-label",children:"G"})]}),F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),H("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&F(lo,{children:[F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),H("label",{className:"k-colorgradient-input-label",children:"H"})]}),F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),H("label",{className:"k-colorgradient-input-label",children:"S"})]}),F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),H("label",{className:"k-colorgradient-input-label",children:"V"})]}),F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),H("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&F(lo,{children:[F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),H("label",{className:"k-colorgradient-input-label",children:"H"})]}),F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),H("label",{className:"k-colorgradient-input-label",children:"S"})]}),F("div",{className:"k-vstack",children:[H(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),H("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&H(lo,{children:F("div",{className:"k-vstack k-flex-1",children:[H(Me,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),H("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Ct.states=gn;Ct.options=vn;Ct.className=ps;Ct.defaultOptions=ms;import{jsx as it,jsxs as nt}from"react/jsx-runtime";var us="k-colorgradient-color-contrast",yn=[],Ln={},wn={},Mt=()=>nt("div",{className:o(us,"k-vbox"),children:[nt("div",{className:"k-contrast-ratio",children:[it("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),nt("span",{className:"k-contrast-validation !k-text-success",children:[it(N,{icon:"check"}),it(N,{icon:"check"})]})]}),nt("div",{children:[it("span",{children:"AA: 4.5"}),nt("span",{className:"k-contrast-validation !k-text-success",children:["Pass",it(N,{icon:"check"})]})]}),nt("div",{children:[it("span",{children:"AAA: 7.0"}),nt("span",{className:"k-contrast-validation !k-text-error",children:["Fail",it(N,{icon:"x"})]})]})]});Mt.states=yn;Mt.options=Ln;Mt.className=us;Mt.defaultOptions=wn;import{jsx as be,jsxs as so}from"react/jsx-runtime";var Io="k-colorgradient",Sn=[l.hover,l.focus,l.readonly,l.disabled],Cn={size:[s.small,s.medium,s.large]},ye={size:s.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"},Ue=e=>{let{size:t=ye.size,mode:a=ye.mode,readonly:r=ye.readonly,disabled:d=ye.disabled,gradientStyle:n=ye.gradientStyle,dragHandleStyle:c=ye.dragHandleStyle,alphaStyle:m=ye.alphaStyle,alphaStyleHorizontal:b=ye.alphaStyleHorizontal,contrast:h=ye.contrast,dir:k,hover:y,focus:p,hoverHandle:g,focusHandle:v,canvasOrientation:S=ye.canvasOrientation,...I}=e;return so("div",{...I,className:o(e.className,Io,L(Io,{size:t}),C(Io,{hover:y,focus:p,readonly:r,disabled:d})),dir:k,children:[!S||S==="horizontal"&&so("div",{className:"k-colorgradient-canvas k-hstack",children:[be("div",{className:"k-hsv-rectangle",style:n,children:be("div",{className:"k-hsv-gradient",children:be("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":g,"k-focus":v}),style:c})})}),so("div",{className:"k-hsv-controls k-hstack",children:[be(ma,{className:"k-hue-slider",hover:g,focus:v}),a!=="rgb"&&a!=="hsv"&&be(ma,{className:"k-alpha-slider",hover:g,focus:v,trackStyle:m})]})]}),S==="vertical"&&so("div",{className:"k-colorgradient-canvas k-vstack",children:[be("div",{className:"k-hsv-rectangle",style:n,children:be("div",{className:"k-hsv-gradient",children:be("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":g,"k-focus":v}),style:c})})}),so("div",{className:"k-hsv-controls k-vstack",children:[be(pa,{className:"k-hue-slider",hover:g,focus:v}),a!=="rgb"&&a!=="hsv"&&be(pa,{className:"k-alpha-slider",hover:g,focus:v,trackStyle:b})]})]}),be(Ct,{mode:e.mode,size:t}),h&&be(Mt,{})]})};Ue.states=Sn;Ue.options=Cn;Ue.className=Io;Ue.defaultOptions=ye;import{jsx as Rg}from"react/jsx-runtime";import{jsx as zg}from"react/jsx-runtime";import{jsx as Mn}from"react/jsx-runtime";var bs=e=>Mn("tr",{children:e.children});import{jsx as Rn}from"react/jsx-runtime";var La="k-colorpalette-tile",Gn=[l.hover,l.focus,l.selected],In={},ro=e=>{let{color:t,tileSize:a,hover:r,focus:d,selected:n,...c}=e,m={backgroundColor:t,width:a?a+"px":"",height:a?a+"px":""};return Rn("td",{...c,className:o(e.className,La,C(La,{hover:r,focus:d,selected:n})),style:m})};ro.states=Gn;ro.options=In;ro.className=La;import{jsx as io}from"react/jsx-runtime";var Ro="k-colorpalette",An=[l.disabled],Hn={size:[s.small,s.medium,s.large]},wa={columns:10,size:s.medium},Gt=e=>{let{size:t=wa.size,palette:a,columns:r=wa.columns,tileSize:d,disabled:n,...c}=e,m=[];if(a){let b=r||a.columns,h=a.colors?a.colors:a;Array.isArray(h)&&Array.from({length:Math.ceil(h.length/b)},(k,y)=>{let p=[];h.slice(y*b,(y+1)*b).map((v,S)=>{p.push(io(ro,{color:v,tileSize:d},S))});let g=io(bs,{children:p},y);m.push(g)})}return io("div",{...c,className:o(e.className,Ro,C(Ro,{disabled:n}),L(Ro,{size:t})),children:io("table",{className:"k-colorpalette-table",children:io("tbody",{children:m.length>0?m:e.children})})})};Gt.states=An;Gt.options=Hn;Gt.className=Ro;Gt.defaultOptions=wa;var Sa={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 lv}from"react/jsx-runtime";import{jsx as fe,jsxs as It}from"react/jsx-runtime";var Ao="k-coloreditor",Pn=[l.focus],zn={size:[s.small,s.medium,s.large]},Rt={size:s.medium,view:"gradient",palette:Sa.office,actionButtons:!0,canvasOrientation:"horizontal"},Ge=e=>{let{size:t=Rt.size,view:a=Rt.view,palette:r=Rt.palette,color:d,currentColor:n,focus:c,focusView:m,dir:b,group:h,actionButtons:k=Rt.actionButtons,canvasOrientation:y=Rt.canvasOrientation,...p}=e;return It("div",{...p,className:o(e.className,"k-flatcolorpicker",Ao,L(Ao,{size:t}),C(Ao,{focus:c})),dir:b,children:[It("div",{className:"k-coloreditor-header k-hstack",children:[fe("div",{className:"k-coloreditor-header-actions k-hstack",children:h&&It(O,{fillMode:"flat",children:[fe(x,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:a==="gradient"}),fe(x,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:a==="palette"})]})}),fe("div",{className:"k-spacer"}),It("div",{className:"k-coloreditor-header-actions k-hstack",children:[fe(x,{fillMode:"flat",icon:"droplet-slash",size:t}),It("div",{className:"k-coloreditor-preview k-vstack",children:[fe(De,{className:"k-coloreditor-preview-color",color:d}),fe(De,{className:"k-coloreditor-current-color",color:n})]})]})]}),fe("div",{className:"k-coloreditor-views k-vstack",children:a==="gradient"?fe(Ue,{focus:m,size:t,canvasOrientation:y}):fe(Gt,{palette:r,size:t})}),k&&It(_e,{className:"k-coloreditor-footer",alignment:"start",children:[fe(x,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),fe(x,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};Ge.states=Pn;Ge.options=zn;Ge.className=Ao;Ge.defaultOptions=Rt;import{jsx as yv}from"react/jsx-runtime";import{jsx as Cv}from"react/jsx-runtime";import{jsx as Rv}from"react/jsx-runtime";import{jsx as zv}from"react/jsx-runtime";import{Fragment as On,jsx as Te,jsxs as Ma}from"react/jsx-runtime";var fs="k-colorpicker",Bn=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],En={size:[s.small,s.medium,s.large],rounded:[T.small,T.medium,T.large,T.full],fillMode:[f.solid,f.flat,f.outline]},no={arrowIconName:"caret-alt-down",size:xe.defaultOptions.size,rounded:xe.defaultOptions.rounded,fillMode:xe.defaultOptions.fillMode},Be=e=>{let{size:t=no.size,rounded:a=no.rounded,fillMode:r=no.fillMode,arrowIconName:d=no.arrowIconName,prefix:n,suffix:c,value:m,placeholder:b,hover:h,focus:k,valid:y,invalid:p,required:g,disabled:v,valueIconName:S,popup:I,opened:A,adaptive:z,adaptiveSettings:j,adaptiveTitle:ae,adaptiveSubtitle:Wt,...Xt}=e;return Ma(On,{children:[Ma(xe,{...Xt,size:t,rounded:a,fillMode:r,hover:h,focus:k,valid:y,invalid:p,required:g,disabled:v,className:o(e.className,fs,"k-icon-picker"),children:[Te(Se,{children:n}),Te(tt,{placeholder:b,value:m,showValue:!1,valueIcon:Te(De,{className:"k-value-icon",color:m,iconName:S}),valueIconName:S}),Te(Ce,{children:c}),Te(x,{className:"k-input-button",icon:d,rounded:null,size:t,fillMode:r})]}),A&&I&&Te(ee,{className:"k-colorpicker-popup",children:I}),z&&Te(ge,{adaptive:!0,...j,header:Te(me,{actionsEnd:Te(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:ae,subtitle:Wt}),footer:Ma(Zt,{children:[Te(x,{text:"Cancel",size:"large",themeColor:"base"}),Te(x,{text:"Set",size:"large",themeColor:"primary"})]}),children:Te(Ge,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};Be.states=Bn;Be.options=En;Be.className=fs;Be.defaultOptions=no;import{jsx as ty}from"react/jsx-runtime";import{jsx as ry}from"react/jsx-runtime";import{jsx as py}from"react/jsx-runtime";import{jsx as fy}from"react/jsx-runtime";import{jsx as Ny}from"react/jsx-runtime";import{jsx as yy}from"react/jsx-runtime";import{Fragment as Ga,jsx as q,jsxs as co}from"react/jsx-runtime";var Ts="k-combobox",Dn=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],$n={size:[s.small,s.medium,s.large],rounded:[T.small,T.medium,T.large,T.full],fillMode:[f.solid,f.flat,f.outline]},po={size:B.defaultOptions.size,rounded:B.defaultOptions.rounded,fillMode:B.defaultOptions.fillMode,separators:!0},dt=e=>{let{size:t=po.size,rounded:a=po.rounded,fillMode:r=po.fillMode,separators:d=po.separators,prefix:n,suffix:c,value:m,placeholder:b,hover:h,focus:k,valid:y,invalid:p,required:g,loading:v,disabled:S,popup:I,opened:A,readonly:z,adaptive:j,adaptiveSettings:ae,adaptiveTitle:Wt,adaptiveSubtitle:Xt,adaptiveCustomValue:Vo,...Fo}=e;return co(Ga,{children:[co(B,{...Fo,size:t,rounded:a,fillMode:r,hover:h,focus:k,valid:y,invalid:p,required:g,loading:v,disabled:S,readonly:z,className:o(e.className,Ts),children:[n&&co(Ga,{children:[q(Se,{children:n}),d&&q(Ae,{})]}),q(ke,{placeholder:b,value:m}),q(de,{valid:y,invalid:p,loading:v,disabled:S}),q(pe,{loadi