UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 91.5 kB
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var v=(e,t)=>a({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),L=(e,t)=>a({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly});var l={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},b={small:"small",medium:"medium",large:"large",full:"full"},T={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"},r={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly"};import{Fragment as Os,jsx as Hr}from"react/jsx-runtime";var fa="k-icon k-font-icon",Es=[],zs={size:[l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Ks={},no=e=>{let{size:t,themeColor:o,icon:s,rotate:i,flip:n,...d}=e;return s?Hr("span",{...d,className:a(e.className,fa,v(fa,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"})}):Hr(Os,{})};no.states=Es;no.options=zs;no.className=fa;no.defaultOptions=Ks;var Er=no;import{Fragment as $s,jsx as Ho}from"react/jsx-runtime";var Ta="k-icon k-svg-icon",Ds=[],Fs={size:[l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},zr={viewBox:"0 0 24 24"},co=e=>{let{size:t,themeColor:o,rotate:s,flip:i,viewBox:n=zr.viewBox,icon:d,...c}=e;if(!d)return Ho($s,{});d==="none"&&{...c,className:a(e.className,Ta,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return Ho("span",{...c,className:a(e.className,Ta,v("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:Ho("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:n,dangerouslySetInnerHTML:typeof d=="object"?{__html:d.content}:void 0,children:d?void 0:e.children})})};co.states=Ds;co.options=Fs;co.className=Ta;co.defaultOptions=zr;var xa=co;import*as Kr from"@progress/kendo-svg-icons";import{Fragment as Or,jsx as po}from"react/jsx-runtime";var Vs=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),_s=[],Xs={size:[l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},ha={viewBox:"0 0 24 24",type:"svg"},g=e=>{let{size:t,themeColor:o,icon:s,type:i=ha.type,rotate:n,flip:d,viewBox:c=ha.viewBox,...m}=e;if(!s)return po(Or,{});if(i==="svg"){if(s==="none")return po(xa,{...m,icon:s,size:t});let f=Vs(`${s}-icon`);return Kr[f]?po(xa,{...m,icon:Kr[f],size:t,themeColor:o,rotate:n,flip:d,viewBox:c}):po(Or,{})}return po(Er,{...m,icon:s,size:t,themeColor:o,rotate:n,flip:d})};g.states=_s;g.options=Xs;g.defaultOptions=ha;import{Fragment as Us,jsx as mo,jsxs as Dr}from"react/jsx-runtime";var Eo="k-button",Js=[r.hover,r.focus,r.active,r.selected,r.disabled],Ws={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline,T.clear,T.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},pt={size:l.medium,rounded:b.medium,fillMode:T.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},x=e=>{let{size:t=pt.size,rounded:o=pt.rounded,fillMode:s=pt.fillMode,themeColor:i=pt.themeColor,showArrow:n=pt.showArrow,arrowIconName:d=pt.arrowIconName,hover:c,focus:m,active:f,selected:h,disabled:w,icon:p,text:N,iconClassName:k,...S}=e,y=p!==void 0,I=e.children!==void 0;return Dr("button",{...S,className:a(e.className,Eo,v(Eo,{size:t,rounded:o,fillMode:s,themeColor:i}),L(Eo,{hover:c,focus:m,active:f,disabled:w,selected:h}),{"k-icon-button":!N&&!I&&y}),children:[p&&mo(g,{className:a(k,"k-button-icon"),icon:p}),N?Dr(Us,{children:[N&&mo("span",{className:"k-button-text",children:N}),e.children]}):e.children&&mo("span",{className:"k-button-text",children:e.children}),n&&mo("span",{className:"k-menu-button-arrow k-button-arrow",children:mo(g,{icon:d})})]})};x.states=Js;x.options=Ws;x.className=Eo;x.defaultOptions=pt;import{jsx as qs}from"react/jsx-runtime";var zo=e=>qs(x,{icon:"folder",...e,children:void 0});import{jsx as Qs}from"react/jsx-runtime";var Na=e=>Qs(x,{icon:"folder",children:"Button",...e});import{jsx as Zm}from"react/jsx-runtime";import{jsx as js}from"react/jsx-runtime";var uo="k-button-group",Ys=[r.disabled],Zs={fillMode:[T.solid,T.flat,T.outline,T.clear,T.link]},Fr={fillMode:T.solid},G=e=>{let{fillMode:t=Fr.fillMode,disabled:o,stretched:s,...i}=e;return js("div",{...i,className:a(e.className,uo,v(uo,{fillMode:t}),L(uo,{disabled:o}),{[`${uo}-stretched`]:s}),children:e.children})};G.states=Ys;G.options=Zs;G.className=uo;G.defaultOptions=Fr;import{Fragment as mu,jsx as pu,jsxs as uu}from"react/jsx-runtime";import{Fragment as Nu,jsx as hu,jsxs as gu}from"react/jsx-runtime";import{Fragment as yu,jsx as Su,jsxs as Cu}from"react/jsx-runtime";import{Fragment as Gu,jsx as Bu,jsxs as Pu}from"react/jsx-runtime";import{jsx as oi}from"react/jsx-runtime";var Ko="k-input",ei=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ti={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},Oo={size:l.medium,rounded:l.medium,fillMode:T.solid},P=e=>{let{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c,size:m=Oo.size,rounded:f=Oo.rounded,fillMode:h=Oo.fillMode,...w}=e;return oi("span",{...w,className:a(e.className,Ko,v(Ko,{size:m,rounded:f,fillMode:h}),L(Ko,{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c}))})};P.states=ei;P.options=ti;P.className=Ko;P.defaultOptions=Oo;import{jsx as li}from"react/jsx-runtime";var Do="k-picker",ai=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ri={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},Fo={size:l.medium,rounded:b.medium,fillMode:T.solid},ve=e=>{let{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c,size:m=Fo.size,rounded:f=Fo.rounded,fillMode:h=Fo.fillMode,...w}=e;return li("span",{...w,className:a(e.className,Do,v(Do,{size:m,rounded:f,fillMode:h}),L(Do,{hover:t,focus:o,disabled:s,invalid:i,valid:n,loading:d,readonly:c})),children:e.children})};ve.states=ai;ve.options=ri;ve.className=Do;ve.defaultOptions=Fo;import{Fragment as ni,jsx as ga}from"react/jsx-runtime";var $r="k-clear-value",si=[r.disabled,r.loading,r.readonly],ii={},Le=e=>{let{disabled:t,loading:o,readonly:s,value:i}=e;return t||s||o||!i?ga(ni,{}):ga("span",{className:a(e.className,$r),children:ga(g,{icon:"x"})})};Le.states=si;Le.options=ii;Le.className=$r;import{jsx as pi}from"react/jsx-runtime";var ka="k-input-inner",di=[],ci={},$o={type:"text",autocomplete:"off",value:"",placeholder:""},we=e=>{let{value:t=$o.value,type:o=$o.type,placeholder:s=$o.placeholder,autocomplete:i=$o.autocomplete,...n}=e;return pi("input",{...n,type:o,className:a(e.className,ka,v(ka,e)),placeholder:s,autoComplete:i,defaultValue:t})};we.states=di;we.options=ci;we.className=ka;import{jsx as Vr,jsxs as bi}from"react/jsx-runtime";var va="k-input-inner",mi=[],ui={},mt=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:i,valueIconName:n,...d}=e;return bi("span",{...d,className:a(e.className,va,v(va,e)),children:[i,!i&&n&&Vr(g,{className:"k-input-value-icon",icon:n}),s&&!t&&o,s&&t&&Vr("span",{className:"k-input-value-text",children:t})]})};mt.states=mi;mt.options=ui;mt.className=va;import{jsx as xi}from"react/jsx-runtime";var La="k-input-inner",fi=[],Ti={},_r={value:"",placeholder:""},wa=e=>{let{value:t=_r.value,placeholder:o=_r.placeholder,rows:s,...i}=e;return xi("textarea",{...i,className:a(e.className,La,v(La,e)),placeholder:o,rows:s,defaultValue:t})};wa.states=fi;wa.options=Ti;wa.className=La;import{Fragment as Ni,jsx as Xr}from"react/jsx-runtime";var Jr="k-input-loading-icon",hi=[r.disabled,r.loading],me=e=>{let{disabled:t,loading:o}=e;return t||!o?Xr(Ni,{}):Xr("span",{className:a(e.className,Jr,"k-icon k-i-loading")})};me.states=hi;me.className=Jr;import{Fragment as vi,jsx as Wr}from"react/jsx-runtime";var Ur="k-input-validation-icon",gi=[r.valid,r.invalid,r.disabled,r.loading],ki={},pe=e=>{let{valid:t,invalid:o,disabled:s,loading:i}=e,n=o?"warning-circle":"check-circle";return s||i||!!!(t||o)?Wr(vi,{}):Wr(g,{className:a(Ur),icon:n})};pe.states=gi;pe.options=ki;pe.className=Ur;import{Fragment as Si,jsx as qr}from"react/jsx-runtime";var Li="k-input-prefix",wi={direction:"horizontal"},Be=e=>{let{direction:t=wi.direction,...o}=e;return e.children?qr("span",{...o,className:a(Li,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):qr(Si,{})};import{Fragment as Mi,jsx as Qr}from"react/jsx-runtime";var yi="k-input-suffix",Ci={direction:"horizontal"},Ge=e=>{let{direction:t=Ci.direction,...o}=e;return e.children?Qr("span",{...o,className:a(yi,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Qr(Mi,{})};import{jsx as Lb}from"react/jsx-runtime";import{jsx as Cb}from"react/jsx-runtime";import{jsx as Ai}from"react/jsx-runtime";var Yr="k-input-separator",Ii={direction:"vertical"},Ke=e=>{let{direction:t=Ii.direction,...o}=e;return Ai("span",{...o,className:a(Yr,e.className,{[`${Yr}-${t}`]:t})})};import{jsx as Zr,jsxs as Gi}from"react/jsx-runtime";var jr="k-color-preview",Ri=[],Bi={},Qe=e=>{let{color:t,iconName:o,...s}=e;return Gi("span",{...s,className:a(e.className,jr,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Zr(g,{icon:o,className:"k-color-preview-icon"}),Zr("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Qe.states=Ri;Qe.options=Bi;Qe.className=jr;import{jsx as el}from"react/jsx-runtime";var tl="k-animation-container",Pi=[],Hi={},ol={positionMode:"absolute"},Ye=e=>{let{positionMode:t=ol.positionMode,animationStyle:o,offset:s,...i}=e;return el("div",{...i,style:{...s,...e.style},className:a(e.className,tl,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:el("div",{className:"k-child-animation-container",style:o,children:e.children})})};Ye.states=Pi;Ye.options=Hi;Ye.className=tl;Ye.defaultOptions=ol;import{jsx as al}from"react/jsx-runtime";var rl="k-popup",Ei=[],zi={},ll={positionMode:"absolute"},U=e=>{let{offset:t,positionMode:o=ll.positionMode,animationStyle:s,...i}=e;return al(Ye,{positionMode:o,offset:t,animationStyle:s,children:al("div",{...i,className:a(e.className,rl),children:e.children})})};U.states=Ei;U.options=zi;U.className=rl;U.defaultOptions=ll;import{jsx as Di}from"react/jsx-runtime";var Vo="k-actions",Ki=[],Oi={},Sa={alignment:"start",orientation:"horizontal"},Ze=e=>{let{alignment:t=Sa.alignment,orientation:o=Sa.orientation,...s}=e;return Di("div",{...s,className:a(Vo,{[`${Vo}-${t}`]:t,[`${Vo}-${o}`]:o},e.className),children:e.children})};Ze.states=Ki;Ze.options=Oi;Ze.className=Vo;Ze.defaultOptions=Sa;import{jsx as $i}from"react/jsx-runtime";var Fi="k-actionsheet-footer",sl={alignment:"stretched",orientation:"horizontal"},bo=e=>{let{alignment:t=sl.alignment,orientation:o=sl.orientation,template:s,as:i=s?"div":Ze,...n}=e;return $i(i,{...n,...!s&&{alignment:t,orientation:o},className:a(e.className,Fi),children:e.children})};import{jsx as fo,jsxs as Xi}from"react/jsx-runtime";var il="k-searchbox",Vi=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],_i={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},ya={showIcon:!0,icon:"search",size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode},Y=e=>{let{value:t,placeholder:o,size:s,rounded:i,fillMode:n,hover:d,focus:c,valid:m,invalid:f,required:h,loading:w,disabled:p,showIcon:N=ya.showIcon,icon:k=ya.icon,...S}=e;return Xi(P,{...S,size:s,rounded:i,fillMode:n,hover:d,focus:c,valid:m,invalid:f,required:h,loading:w,disabled:p,className:a(e.className,il),children:[N&&fo(g,{className:"k-input-icon",icon:k}),fo(we,{placeholder:o,value:t}),fo(me,{...e}),fo(pe,{...e}),fo(Le,{...e})]})};Y.states=Vi;Y.options=_i;Y.className=il;Y.defaultOptions=ya;import{jsx as Cf}from"react/jsx-runtime";import{Fragment as nl,jsx as je,jsxs as Ca}from"react/jsx-runtime";var dl="k-textbox",Ji=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Wi={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},ut={showClearButton:!0,showValidationIcon:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},Pe=e=>{let{size:t=ut.size,rounded:o=ut.rounded,fillMode:s=ut.fillMode,separators:i=ut.separators,showClearButton:n=ut.showClearButton,showValidationIcon:d=ut.showValidationIcon,prefix:c,suffix:m,type:f,value:h,placeholder:w,hover:p,focus:N,valid:k,invalid:S,required:y,loading:I,disabled:B,readonly:O,..._}=e;return Ca(P,{..._,size:t,rounded:o,fillMode:s,hover:p,focus:N,valid:k,invalid:S,required:y,loading:I,disabled:B,readonly:O,className:a(e.className,dl),children:[c&&Ca(nl,{children:[je(Be,{children:c}),i&&je(Ke,{})]}),je(we,{placeholder:w,value:h,type:f}),d&&je(pe,{valid:k,invalid:S,loading:I,disabled:B}),je(me,{loading:I,disabled:B}),n&&je(Le,{loading:I,disabled:B,readonly:O,value:h}),m&&Ca(nl,{children:[i&&je(Ke,{}),je(Ge,{children:m})]})]})};Pe.states=Ji;Pe.options=Wi;Pe.className=dl;Pe.defaultOptions=ut;import{jsx as Kf}from"react/jsx-runtime";import{Fragment as _f,jsx as Vf}from"react/jsx-runtime";import{Fragment as Yf,jsx as Qf}from"react/jsx-runtime";import{jsx as et,jsxs as Ma}from"react/jsx-runtime";var pl="k-actionsheet-titlebar",Ui={},ue=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:i,filter:n,input:d,inputValue:c,inputPlaceholder:m,adaptive:f,children:h,...w}=e;return Ma("div",{...w,className:a(e.className,pl),children:[Ma("div",{className:"k-actionsheet-titlebar-group",children:[s&&et("div",{className:"k-actionsheet-actions",children:s}),!h&&Ma("div",{className:"k-actionsheet-title",children:[t&&et("div",{className:"k-text-center",children:t}),o&&et("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&et("div",{className:"k-actionsheet-title",children:h}),i&&et("div",{className:"k-actionsheet-actions",children:i})]}),(d||n)&&et("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?et(Pe,{value:c,placeholder:m,size:f?"large":"medium"}):et(Y,{placeholder:"Filter",size:f?"large":"medium"})})]})};ue.className=pl;ue.defaultOptions=Ui;import{jsx as Ia,jsxs as Zi}from"react/jsx-runtime";var Aa="k-actionsheet-view",qi=[],Qi={},Yi={},Bt=e=>{let{adaptive:t,animated:o,children:s,header:i,footer:n,...d}=e,c=i?.type===ue&&Ia(ue,{adaptive:t,...i?.props}),m=n?.type===bo&&Ia(bo,{...n?.props});return Zi("div",{...d,className:a(e.className,Aa,{[`${Aa}-animated`]:o}),children:[c,Ia("div",{className:"k-actionsheet-content",children:s}),m]})};Bt.states=qi;Bt.options=Qi;Bt.className=Aa;Bt.defaultOptions=Yi;import{jsx as _o,jsxs as tn}from"react/jsx-runtime";var ml="k-actionsheet",ji=[],en={},To={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Se=e=>{let{side:t=To.side,fullscreen:o=To.fullscreen,adaptive:s=To.adaptive,overlay:i=To.overlay,template:n,children:d,header:c,footer:m,...f}=e;return tn("div",{className:"k-actionsheet-container",children:[i&&_o("div",{className:"k-overlay"}),_o(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:_o("div",{...f,className:a(e.className,ml,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:n||_o(Bt,{header:c,footer:m,adaptive:s,...e,children:d})})})]})};Se.states=ji;Se.options=en;Se.className=ml;Se.defaultOptions=To;import{jsx as kT}from"react/jsx-runtime";import{Fragment as an,jsx as xo,jsxs as Ra}from"react/jsx-runtime";var Ba="k-actionsheet-item",on=[r.hover,r.focus,r.selected,r.disabled],Ga=e=>{let{iconName:t,text:o,description:s,hover:i,focus:n,selected:d,disabled:c,...m}=e;return Ra("span",{...m,className:a(e.className,Ba,L(Ba,{hover:i,focus:n,selected:d,disabled:c})),children:[!e.children&&xo(an,{children:Ra("span",{className:"k-actionsheet-action",children:[t&&xo("span",{className:"k-icon-wrap",children:xo(g,{className:"k-actionsheet-item-icon",icon:t})}),Ra("span",{className:"k-actionsheet-item-text",children:[o&&xo("span",{className:"k-actionsheet-item-title",children:o}),s&&xo("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};Ga.states=on;Ga.className=Ba;import{jsx as AT,jsxs as RT}from"react/jsx-runtime";import{jsx as HT}from"react/jsx-runtime";import{jsx as OT}from"react/jsx-runtime";import{jsx as VT}from"react/jsx-runtime";import{jsx as Gt,jsxs as Pa}from"react/jsx-runtime";var ho="k-slider",rn=[r.hover,r.focus,r.active,r.disabled,r.readonly],ln={},tt={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},be=e=>{let{type:t=tt.type,orientation:o=tt.orientation,readonly:s=tt.readonly,disabled:i=tt.disabled,handlePosition:n=tt.handlePosition,showButtons:d=tt.showButtons,showTicks:c=tt.showTicks,hover:m,focus:f,active:h,trackStyle:w,dir:p,...N}=e,k,S;return o==="horizontal"?(k=p==="rtl"?"caret-alt-left":"caret-alt-right",S=p==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(k="caret-alt-up",S="caret-alt-down"),Pa("div",{...N,className:a(ho,e.className,L(ho,{readonly:s,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:p,children:[d&&Gt(x,{className:"k-button-decrease",rounded:"full",icon:S}),Pa("div",{className:"k-slider-track-wrap",children:[c&&Gt("ul",{className:"k-reset k-slider-items",children:e.children}),Pa("div",{className:"k-slider-track",style:w,children:[Gt("div",{className:"k-slider-selection"}),t==="range"&&Gt("span",{className:a("k-draghandle","k-draghandle-start",L(ho,{hover:m,focus:f,active:h}))}),Gt("span",{className:a("k-draghandle",`k-draghandle-${n}`,L(ho,{hover:m,focus:f,active:h}))})]})]}),d&&Gt(x,{className:"k-button-increase",rounded:"full",icon:k})]})};be.states=rn;be.options=ln;be.className=ho;be.defaultOptions=tt;import{jsx as bl}from"react/jsx-runtime";var fl="k-tick",sn=[],nn={},Tl={label:!1},ot=e=>{let{style:t,label:o=Tl.label,orientation:s,large:i,text:n,...d}=e;return bl("li",{...d,className:a(e.className,fl,{[`k-tick-${s}`]:s,"k-tick-large":i}),style:t,children:o&&bl("span",{className:"k-label",children:n})})};ot.states=sn;ot.options=nn;ot.className=fl;ot.defaultOptions=Tl;import{Fragment as mx,jsx as px,jsxs as ux}from"react/jsx-runtime";import{Fragment as hx,jsx as xx,jsxs as Nx}from"react/jsx-runtime";import{Fragment as wx,jsx as Lx,jsxs as Sx}from"react/jsx-runtime";import{Fragment as Ax,jsx as Ix,jsxs as Rx}from"react/jsx-runtime";import{jsx as dn}from"react/jsx-runtime";var Ha=e=>dn(be,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as cn}from"react/jsx-runtime";var Ea=e=>cn(be,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as xl,jsxs as un}from"react/jsx-runtime";var hl="k-spin-button",pn=[],mn={size:[l.small,l.medium,l.large],fillMode:[T.solid,T.flat,T.outline,T.clear,T.link]},za={size:l.medium,fillMode:T.solid},Pt=e=>{let{size:t=za.size,fillMode:o=za.fillMode,...s}=e;return un("span",{...s,className:a(hl,e.className),children:[xl(x,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),xl(x,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Pt.states=pn;Pt.options=mn;Pt.className=hl;Pt.defaultOptions=za;import{Fragment as Nl,jsx as Oe,jsxs as Ka}from"react/jsx-runtime";var gl="k-numerictextbox",bn=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],fn={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},bt={showSpinButton:!0,showClearButton:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},H=e=>{let{size:t=bt.size,rounded:o=bt.rounded,fillMode:s=bt.fillMode,separators:i=bt.separators,showClearButton:n=bt.showClearButton,showSpinButton:d=bt.showSpinButton,prefix:c,suffix:m,value:f,placeholder:h,hover:w,focus:p,valid:N,invalid:k,required:S,loading:y,disabled:I,readonly:B,...O}=e;return Ka(P,{...O,size:t,rounded:o,fillMode:s,hover:w,focus:p,valid:N,invalid:k,required:S,loading:y,disabled:I,readonly:B,className:a(e.className,gl),children:[c&&Ka(Nl,{children:[Oe(Be,{children:c}),i&&Oe(Ke,{})]}),Oe(we,{placeholder:h,value:f}),Oe(pe,{valid:N,invalid:k,loading:y,disabled:I}),Oe(me,{loading:y,disabled:I}),n&&Oe(Le,{loading:y,disabled:I,readonly:B,value:f}),m&&Ka(Nl,{children:[i&&Oe(Ke,{}),Oe(Ge,{children:m})]}),d&&Oe(Pt,{className:"k-input-spinner",size:t,fillMode:s})]})};H.states=bn;H.options=fn;H.className=gl;H.defaultOptions=bt;import{jsx as ih}from"react/jsx-runtime";import{jsx as xn}from"react/jsx-runtime";var Tn="k-no-data",No=e=>xn("span",{className:a(Tn,e.className),children:e.children});import{jsx as Ht,jsxs as vl}from"react/jsx-runtime";var Oa="k-list",hn=[],Nn={size:[l.small,l.medium,l.large]},Ll={size:l.medium},E=e=>{let{size:t=Ll.size,virtualization:o,children:s,optionLabel:i,customValue:n,screenReaders:d,...c}=e,m,f,h,w,p=[];return s?s.map((N,k)=>{N.type===q?(N.props.root===!0?(m=N.props.label,N.props.children.map((S,y)=>{p.push(Ht(M,{...S.props},`optChild-${y}-${new Date().getTime()}`))})):N.props.children.forEach((S,y)=>{let I="";y===0&&(I=N.props.label),p.push(Ht(M,{className:y===0?"k-first":"",...S.props,groupLabel:I},`groupLabel-${y}-${new Date().getTime()}`))}),f=Ht(q,{label:m,virtualization:o,children:p})):N.type===M&&(p.push(Ht(M,{...N.props},`${N.type}-${k}`)),h=Ht(Et,{virtualization:o,children:p}),d&&(w=vl(No,{className:"k-sr-only",children:[p.length," items found."]})))}):w=Ht(No,{children:"No data found."}),vl("div",{...c,className:a(e.className,Oa,v(Oa,{size:t}),{"k-virtual-list":o}),children:[i,n,f,h,w]})};E.states=hn;E.options=Nn;E.className=Oa;E.defaultOptions=Ll;import{jsx as ft,jsxs as vn}from"react/jsx-runtime";var Da="k-list",gn=[],kn={size:[l.small,l.medium,l.large]},wl={size:l.medium},Tt=e=>{let{size:t=wl.size,virtualization:o,children:s,...i}=e,n,d,c,m=[];return s?s.map((f,h)=>{f.type===q?(f.props.root===!0?(n=f.props.label,f.props.children.map((w,p)=>{m.push(ft(M,{...w.props},`optChild-${p}-${new Date().getTime()}`))})):(m.push(ft(Sl,{...f.props,children:f.props.label},`listChild-${h}`)),f.props.children.map((w,p)=>{m.push(ft(M,{...w.props},`fwOptChild-${p}-${new Date().getTime()}`))})),d=ft(q,{label:n,virtualization:o,children:m})):f.type===M&&(m.push(ft(M,{...f.props},`${f.type}-${h}`)),c=ft(Et,{virtualization:o,children:m}))}):c=ft(No,{children:"No data found."}),vn("div",{...i,className:a(e.className,Da,v(Da,{size:t}),{"k-virtual-list":o}),children:[d,c]})};Tt.states=gn;Tt.options=kn;Tt.className=Da;Tt.defaultOptions=wl;import{jsx as yl}from"react/jsx-runtime";var Xo="k-checkbox",Ln=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],wn={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full]},Fa={size:l.medium,rounded:b.medium},ye=e=>{let{id:t,checked:o,indeterminate:s,hover:i,focus:n,disabled:d,invalid:c,valid:m,required:f,size:h=Fa.size,rounded:w=Fa.rounded,...p}=e;return yl("span",{className:"k-checkbox-wrap",children:yl("input",{...p,id:t,type:"checkbox",defaultChecked:o,required:f,className:a(e.className,Xo,v(Xo,{size:h,rounded:w}),L(Xo,{hover:i,focus:n,disabled:d,invalid:c,valid:m,indeterminate:s,checked:o}))})})};ye.states=Ln;ye.options=wn;ye.className=Xo;ye.defaultOptions=Fa;import{jsx as Cn}from"react/jsx-runtime";var Cl="k-checkbox-list",Sn=[],yn={},Ml={layout:"vertical"},zt=e=>{let{layout:t=Ml.layout,...o}=e;return Cn("ul",{...o,className:a(e.className,Cl,{[`k-list-${t}`]:t}),children:e.children})};zt.states=Sn;zt.options=yn;zt.className=Cl;zt.defaultOptions=Ml;import{jsx as Rn}from"react/jsx-runtime";var Il="k-checkbox-list-item",Mn=[],In={},An={},Kt=e=>{let{...t}=e;return Rn("li",{...t,className:a(e.className,Il),children:e.children})};Kt.states=Mn;Kt.options=In;Kt.className=Il;Kt.defaultOptions=An;import{Fragment as Eh,jsx as Hh,jsxs as zh}from"react/jsx-runtime";import{Fragment as $h,jsx as Fh,jsxs as Vh}from"react/jsx-runtime";import{Fragment as Uh,jsx as Wh,jsxs as qh}from"react/jsx-runtime";import{Fragment as eN,jsx as jh,jsxs as tN}from"react/jsx-runtime";import{jsx as lN}from"react/jsx-runtime";import{jsx as dN}from"react/jsx-runtime";import{jsx as Jo,jsxs as Hn}from"react/jsx-runtime";var Va="k-list-item",Bn=[r.hover,r.focus,r.selected,r.disabled],Gn={},Pn={},M=e=>{let{text:t,groupLabel:o,group:s,showIcon:i,iconName:n,showCheckbox:d,checked:c,hover:m,focus:f,selected:h,disabled:w,...p}=e,N=t||e.children;return Hn("li",{...p,className:a(e.className,s?"k-list-group-item":Va,L(Va,{hover:m,focus:f,disabled:w,selected:h})),children:[d&&Jo(ye,{checked:c}),i&&Jo(g,{icon:n}),Jo("span",{className:"k-list-item-text",children:N}),o&&o!==""&&Jo("div",{className:"k-list-item-group-label",children:o})]})};M.states=Bn;M.options=Gn;M.className=Va;M.defaultOptions=Pn;import{jsx as _a,jsxs as zn}from"react/jsx-runtime";var En="k-list-content",Et=e=>{let{virtualization:t,...o}=e;return zn("div",{...o,className:a(En,e.className),children:[_a("ul",{className:a("k-list-ul"),children:e.children}),t&&_a("div",{className:"k-height-container",children:_a("div",{})})]})};import{jsx as Al}from"react/jsx-runtime";var Kn="k-list-group-sticky-header",Rl=e=>Al("div",{className:a(Kn,e.className),children:Al("div",{className:"k-list-header-text",children:e.children})});import{Fragment as On,jsx as Bl,jsxs as Dn}from"react/jsx-runtime";var q=e=>{let{virtualization:t,label:o}=e;return Dn(On,{children:[o&&Bl(Rl,{children:o}),e.children&&Bl(Et,{virtualization:t,children:e.children})]})};import{jsx as Gl}from"react/jsx-runtime";var Fn="k-list-group-item",Sl=e=>Gl("li",{className:a(Fn,e.className),children:Gl("span",{className:"k-list-item-text",children:e.children})});import{jsx as Xn}from"react/jsx-runtime";var Xa="k-list-optionlabel",$n=[r.hover,r.focus,r.selected,r.disabled],Vn={},_n={},Wo=e=>{let{text:t,hover:o,focus:s,selected:i,disabled:n,...d}=e;return Xn("div",{...d,className:a(Xa,L(Xa,{hover:o,focus:s,selected:i,disabled:n})),children:t})};Wo.states=$n;Wo.options=Vn;Wo.className=Xa;Wo.defaultOptions=_n;import{jsx as qn}from"react/jsx-runtime";var Ja="k-list-custom-value",Jn=[r.hover,r.focus,r.selected,r.disabled],Wn={},Un={},at=e=>{let{text:t,hover:o,focus:s,selected:i,disabled:n,...d}=e;return qn("div",{...d,className:a(Ja,L(Ja,{hover:o,focus:s,selected:i,disabled:n})),children:t})};at.states=Jn;at.options=Wn;at.className=Ja;at.defaultOptions=Un;import{jsx as JN}from"react/jsx-runtime";import{jsx as QN}from"react/jsx-runtime";import{jsx as eg,jsxs as tg}from"react/jsx-runtime";import{jsx as lg,jsxs as sg}from"react/jsx-runtime";import{jsx as cg}from"react/jsx-runtime";import{jsx as bg,jsxs as fg}from"react/jsx-runtime";import{jsx as Ng,jsxs as gg}from"react/jsx-runtime";import{Fragment as Zn,jsx as se,jsxs as Wa}from"react/jsx-runtime";var Pl="k-dropdownlist",Qn=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Yn={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},Ot={showValue:!0,arrowIconName:"caret-alt-down",size:l.medium,rounded:b.medium,fillMode:T.solid},Ce=e=>{let{size:t=Ot.size,rounded:o=Ot.rounded,fillMode:s=Ot.fillMode,arrowIconName:i=Ot.arrowIconName,showValue:n=Ot.showValue,valueIconName:d,prefix:c,suffix:m,value:f,placeholder:h,hover:w,focus:p,valid:N,invalid:k,required:S,loading:y,disabled:I,readonly:B,popup:O,opened:_,adaptive:ct,adaptiveSettings:io,adaptiveTitle:ua,adaptiveSubtitle:ba,adaptiveFilter:Ps,...Hs}=e;return Wa(Zn,{children:[Wa(ve,{...Hs,size:t,rounded:o,fillMode:s,hover:w,focus:p,valid:N,invalid:k,required:S,loading:y,disabled:I,readonly:B,className:a(e.className,Pl,{"k-icon-picker":!n&&d}),children:[se(Be,{children:c}),se(mt,{placeholder:h,value:f,showValue:n,valueIconName:d}),se(pe,{valid:N,invalid:k,loading:y,disabled:I}),se(me,{loading:y,disabled:I}),se(Ge,{children:m}),se(x,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),_&&O&&se(U,{className:"k-list-container k-dropdownlist-popup",children:O}),ct&&se(Se,{adaptive:!0,...io,header:se(ue,{actionsEnd:se(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ps,inputValue:f,inputPlaceholder:h,title:ua,subtitle:ba}),children:se("div",{className:"k-list-container",children:Wa(E,{size:"large",children:[se(M,{text:"List item"}),se(M,{text:"List item"}),se(M,{text:"List item"})]})})})]})};Ce.states=Qn;Ce.options=Yn;Ce.className=Pl;Ce.defaultOptions=Ot;import{jsx as Qg}from"react/jsx-runtime";import{jsx as tk,jsxs as ok}from"react/jsx-runtime";import{Fragment as ck,jsx as nk,jsxs as dk}from"react/jsx-runtime";import{jsx as bk}from"react/jsx-runtime";import{jsx as Nk,jsxs as gk}from"react/jsx-runtime";import{jsx as Sk,jsxs as yk}from"react/jsx-runtime";import{Fragment as Pk,jsx as Bk,jsxs as Gk}from"react/jsx-runtime";import{Fragment as $k,jsx as Dk,jsxs as Fk}from"react/jsx-runtime";import{Fragment as rv,jsx as av}from"react/jsx-runtime";import{Fragment as pv,jsx as cv}from"react/jsx-runtime";import{Fragment as go,jsx as A,jsxs as F}from"react/jsx-runtime";var Hl="k-colorgradient-inputs",jn=[],ed={size:[l.small,l.medium,l.large]},El={mode:"rgba",size:l.medium},Dt=e=>{let{mode:t=El.mode,size:o,...s}=e;return F("div",{...s,className:a(Hl,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(x,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&F(go,{children:[F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&F(go,{children:[F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&F(go,{children:[F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&F(go,{children:[F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),F("div",{className:"k-vstack",children:[A(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(go,{children:F("div",{className:"k-vstack k-flex-1",children:[A(Pe,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Dt.states=jn;Dt.options=ed;Dt.className=Hl;Dt.defaultOptions=El;import{jsx as ht,jsxs as Nt}from"react/jsx-runtime";var zl="k-colorgradient-color-contrast",td=[],od={},ad={},Ft=()=>Nt("div",{className:a(zl,"k-vbox"),children:[Nt("div",{className:"k-contrast-ratio",children:[ht("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Nt("span",{className:"k-contrast-validation !k-text-success",children:[ht(g,{icon:"check"}),ht(g,{icon:"check"})]})]}),Nt("div",{children:[ht("span",{children:"AA: 4.5"}),Nt("span",{className:"k-contrast-validation !k-text-success",children:["Pass",ht(g,{icon:"check"})]})]}),Nt("div",{children:[ht("span",{children:"AAA: 7.0"}),Nt("span",{className:"k-contrast-validation !k-text-error",children:["Fail",ht(g,{icon:"x"})]})]})]});Ft.states=td;Ft.options=od;Ft.className=zl;Ft.defaultOptions=ad;import{jsx as fe,jsxs as ko}from"react/jsx-runtime";var Uo="k-colorgradient",rd=[r.hover,r.focus,r.readonly,r.disabled],ld={size:[l.small,l.medium,l.large]},Me={size:l.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"},rt=e=>{let{size:t=Me.size,mode:o=Me.mode,readonly:s=Me.readonly,disabled:i=Me.disabled,gradientStyle:n=Me.gradientStyle,dragHandleStyle:d=Me.dragHandleStyle,alphaStyle:c=Me.alphaStyle,alphaStyleHorizontal:m=Me.alphaStyleHorizontal,contrast:f=Me.contrast,dir:h,hover:w,focus:p,hoverHandle:N,focusHandle:k,canvasOrientation:S=Me.canvasOrientation,...y}=e;return ko("div",{...y,className:a(e.className,Uo,v(Uo,{size:t}),L(Uo,{hover:w,focus:p,readonly:s,disabled:i})),dir:h,children:[!S||S==="horizontal"&&ko("div",{className:"k-colorgradient-canvas k-hstack",children:[fe("div",{className:"k-hsv-rectangle",style:n,children:fe("div",{className:"k-hsv-gradient",children:fe("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:d})})}),ko("div",{className:"k-hsv-controls k-hstack",children:[fe(Ea,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&fe(Ea,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:c})]})]}),S==="vertical"&&ko("div",{className:"k-colorgradient-canvas k-vstack",children:[fe("div",{className:"k-hsv-rectangle",style:n,children:fe("div",{className:"k-hsv-gradient",children:fe("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:d})})}),ko("div",{className:"k-hsv-controls k-vstack",children:[fe(Ha,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&fe(Ha,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:m})]})]}),fe(Dt,{mode:e.mode,size:t}),f&&fe(Ft,{})]})};rt.states=rd;rt.options=ld;rt.className=Uo;rt.defaultOptions=Me;import{jsx as Ev}from"react/jsx-runtime";import{jsx as Dv}from"react/jsx-runtime";import{jsx as sd}from"react/jsx-runtime";var Kl=e=>sd("tr",{children:e.children});import{jsx as dd}from"react/jsx-runtime";var Ua="k-colorpalette-tile",id=[r.hover,r.focus,r.selected],nd={},vo=e=>{let{color:t,tileSize:o,hover:s,focus:i,selected:n,...d}=e,c={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return dd("td",{...d,className:a(e.className,Ua,L(Ua,{hover:s,focus:i,selected:n})),style:c})};vo.states=id;vo.options=nd;vo.className=Ua;import{jsx as Lo}from"react/jsx-runtime";var qo="k-colorpalette",cd=[r.disabled],pd={size:[l.small,l.medium,l.large]},qa={columns:10,size:l.medium},$t=e=>{let{size:t=qa.size,palette:o,columns:s=qa.columns,tileSize:i,disabled:n,...d}=e,c=[];if(o){let m=s||o.columns,f=o.colors?o.colors:o;Array.isArray(f)&&Array.from({length:Math.ceil(f.length/m)},(h,w)=>{let p=[];f.slice(w*m,(w+1)*m).map((k,S)=>{p.push(Lo(vo,{color:k,tileSize:i},S))});let N=Lo(Kl,{children:p},w);c.push(N)})}return Lo("div",{...d,className:a(e.className,qo,L(qo,{disabled:n}),v(qo,{size:t})),children:Lo("table",{className:"k-colorpalette-table",children:Lo("tbody",{children:c.length>0?c:e.children})})})};$t.states=cd;$t.options=pd;$t.className=qo;$t.defaultOptions=qa;var Qa={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 dL}from"react/jsx-runtime";import{jsx as Te,jsxs as Vt}from"react/jsx-runtime";var Qo="k-coloreditor",md=[r.focus],ud={size:[l.small,l.medium,l.large]},_t={size:l.medium,view:"gradient",palette:Qa.office,actionButtons:!0,canvasOrientation:"horizontal"},He=e=>{let{size:t=_t.size,view:o=_t.view,palette:s=_t.palette,color:i,currentColor:n,focus:d,focusView:c,dir:m,group:f,actionButtons:h=_t.actionButtons,canvasOrientation:w=_t.canvasOrientation,...p}=e;return Vt("div",{...p,className:a(e.className,"k-flatcolorpicker",Qo,v(Qo,{size:t}),L(Qo,{focus:d})),dir:m,children:[Vt("div",{className:"k-coloreditor-header k-hstack",children:[Te("div",{className:"k-coloreditor-header-actions k-hstack",children:f&&Vt(G,{fillMode:"flat",children:[Te(x,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),Te(x,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),Te("div",{className:"k-spacer"}),Vt("div",{className:"k-coloreditor-header-actions k-hstack",children:[Te(x,{fillMode:"flat",icon:"droplet-slash",size:t}),Vt("div",{className:"k-coloreditor-preview k-vstack",children:[Te(Qe,{className:"k-coloreditor-preview-color",color:i}),Te(Qe,{className:"k-coloreditor-current-color",color:n})]})]})]}),Te("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?Te(rt,{focus:c,size:t,canvasOrientation:w}):Te($t,{palette:s,size:t})}),h&&Vt(Ze,{className:"k-coloreditor-footer",alignment:"start",children:[Te(x,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Te(x,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};He.states=md;He.options=ud;He.className=Qo;He.defaultOptions=_t;import{jsx as ML}from"react/jsx-runtime";import{jsx as BL}from"react/jsx-runtime";import{jsx as EL}from"react/jsx-runtime";import{jsx as DL}from"react/jsx-runtime";import{Fragment as Td,jsx as xe,jsxs as Za}from"react/jsx-runtime";var Ol="k-colorpicker",bd=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled],fd={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},wo={arrowIconName:"caret-alt-down",size:ve.defaultOptions.size,rounded:ve.defaultOptions.rounded,fillMode:ve.defaultOptions.fillMode},De=e=>{let{size:t=wo.size,rounded:o=wo.rounded,fillMode:s=wo.fillMode,arrowIconName:i=wo.arrowIconName,prefix:n,suffix:d,value:c,placeholder:m,hover:f,focus:h,valid:w,invalid:p,required:N,disabled:k,valueIconName:S,popup:y,opened:I,adaptive:B,adaptiveSettings:O,adaptiveTitle:_,adaptiveSubtitle:ct,...io}=e;return Za(Td,{children:[Za(ve,{...io,size:t,rounded:o,fillMode:s,hover:f,focus:h,valid:w,invalid:p,required:N,disabled:k,className:a(e.className,Ol,"k-icon-picker"),children:[xe(Be,{children:n}),xe(mt,{placeholder:m,value:c,showValue:!1,valueIcon:xe(Qe,{className:"k-value-icon",color:c,iconName:S}),valueIconName:S}),xe(Ge,{children:d}),xe(x,{className:"k-input-button",icon:i,rounded:null,size:t,fillMode:s})]}),I&&y&&xe(U,{className:"k-colorpicker-popup",children:y}),B&&xe(Se,{adaptive:!0,...O,header:xe(ue,{actionsEnd:xe(x,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:_,subtitle:ct}),footer:Za(bo,{children:[xe(x,{text:"Cancel",size:"large",themeColor:"base"}),xe(x,{text:"Set",size:"large",themeColor:"primary"})]}),children:xe(He,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};De.states=bd;De.options=fd;De.className=Ol;De.defaultOptions=wo;import{jsx as sw}from"react/jsx-runtime";import{jsx as pw}from"react/jsx-runtime";import{jsx as Tw}from"react/jsx-runtime";import{jsx as gw}from"react/jsx-runtime";import{jsx as ww}from"react/jsx-runtime";import{jsx as Mw}from"react/jsx-runtime";import{Fragment as ja,jsx as W,jsxs as So}from"react/jsx-runtime";var Dl="k-combobox",hd=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],Nd={size:[l.small,l.medium,l.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[T.solid,T.flat,T.outline]},yo={size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},gt=e=>{let{size:t=yo.size,rounded:o=yo.rounded,fillMode:s=yo.fillMode,separators:i=yo.separators,prefix:n,suffix:d,value:c,placeholder:m,hover:f,focus:h,valid:w,invalid:p,required:N,loading:k,disabled:S,popup:y,opened:I,readonly:B,adaptive:O,adaptiveSettings:_,adaptiveTitle:ct,adaptiveSubtitle:io,adaptiveCustomValue:ua,...ba}=e;return So(ja,{children:[So(P,{...ba,size:t,rounded:o,fillMode:s,hover:f,focus:h,valid:w,invalid:p,required:N,loading:k,disabled:S,readonly:B,className:a(e.className,Dl),children:[n&&So(ja,{children:[W(Be,{children:n}),i&&W(Ke,{})]}),W(we,{placeholder:m,value:c}),W(pe,{valid:w,invalid:p,loading:k,disabled:S}),W(me,{loading:k,disabled:S}),W(Le,{loading:k,disabled:S,readonly:B,value:c}),d&&So(ja,{children:[i&&W(Ke,{}),W(Ge,{children:d})]}),W(x,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:s})]}),I&&y&&W(U,{className:"k-list-container k-combobox-popup",children:y}),O&&W(Se,{adaptiv