@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 48.3 kB
JavaScript
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var k=(e,t)=>s({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),g=(e,t)=>s({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var i={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},u={small:"small",medium:"medium",large:"large",full:"full"},f={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},b={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},a={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"};import{jsx as ua}from"react/jsx-runtime";var tt="k-input",ma=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],fa={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},ot={size:i.medium,rounded:i.medium,fillMode:f.solid},E=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:c,readonly:m,size:d=ot.size,rounded:p=ot.rounded,fillMode:h=ot.fillMode,...x}=e;return ua("span",{...x,className:s(e.className,tt,k(tt,{size:d,rounded:p,fillMode:h}),g(tt,{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:c,readonly:m}))})};E.states=ma;E.options=fa;E.className=tt;E.defaultOptions=ot;import{jsx as xa}from"react/jsx-runtime";var at="k-picker",ba=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ha={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},st={size:i.medium,rounded:u.medium,fillMode:f.solid},V=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:c,readonly:m,size:d=st.size,rounded:p=st.rounded,fillMode:h=st.fillMode,...x}=e;return xa("span",{...x,className:s(e.className,at,k(at,{size:d,rounded:p,fillMode:h}),g(at,{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:c,readonly:m})),children:e.children})};V.states=ba;V.options=ha;V.className=at;V.defaultOptions=st;import{Fragment as La,jsx as oo}from"react/jsx-runtime";var Nt="k-icon k-font-icon",va=[],Na={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},Sa={},Be=e=>{let{size:t,themeColor:o,icon:n,rotate:r,flip:l,...c}=e;return n?oo("span",{...c,className:s(e.className,Nt,k(Nt,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):oo(La,{})};Be.states=va;Be.options=Na;Be.className=Nt;Be.defaultOptions=Sa;var ao=Be;import{Fragment as ya,jsx as it}from"react/jsx-runtime";var St="k-icon k-svg-icon",ka=[],ga={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},so={viewBox:"0 0 24 24"},He=e=>{let{size:t,themeColor:o,rotate:n,flip:r,viewBox:l=so.viewBox,icon:c,...m}=e;if(!c)return it(ya,{});c==="none"&&{...m,className:s(e.className,St,"k-none")};let d=typeof c=="object"&&c.name&&c.name;return it("span",{...m,className:s(e.className,St,k("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:it("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:l,dangerouslySetInnerHTML:typeof c=="object"?{__html:c.content}:void 0,children:c?void 0:e.children})})};He.states=ka;He.options=ga;He.className=St;He.defaultOptions=so;var Lt=He;import*as io from"@progress/kendo-svg-icons";import{Fragment as no,jsx as Ge}from"react/jsx-runtime";var Ia=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ca=[],Ma={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},kt={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:n,type:r=kt.type,rotate:l,flip:c,viewBox:m=kt.viewBox,...d}=e;if(!n)return Ge(no,{});if(r==="svg"){if(n==="none")return Ge(Lt,{...d,icon:n,size:t});let p=Ia(`${n}-icon`);return io[p]?Ge(Lt,{...d,icon:io[p],size:t,themeColor:o,rotate:l,flip:c,viewBox:m}):Ge(no,{})}return Ge(ao,{...d,icon:n,size:t,themeColor:o,rotate:l,flip:c})};M.states=Ca;M.options=Ma;M.defaultOptions=kt;import{Fragment as za,jsx as gt}from"react/jsx-runtime";var ro="k-clear-value",Aa=[a.disabled,a.loading,a.readonly],Ta={},U=e=>{let{disabled:t,loading:o,readonly:n,value:r}=e;return t||n||o||!r?gt(za,{}):gt("span",{className:s(e.className,ro),children:gt(M,{icon:"x"})})};U.states=Aa;U.options=Ta;U.className=ro;import{jsx as wa}from"react/jsx-runtime";var yt="k-input-inner",Ea=[],Oa={},nt={type:"text",autocomplete:"off",value:"",placeholder:""},W=e=>{let{value:t=nt.value,type:o=nt.type,placeholder:n=nt.placeholder,autocomplete:r=nt.autocomplete,...l}=e;return wa("input",{...l,type:o,className:s(e.className,yt,k(yt,e)),placeholder:n,autoComplete:r,defaultValue:t})};W.states=Ea;W.options=Oa;W.className=yt;import{jsx as lo,jsxs as Ra}from"react/jsx-runtime";var It="k-input-inner",Pa=[],Ka={},me=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:r,valueIconName:l,...c}=e;return Ra("span",{...c,className:s(e.className,It,k(It,e)),children:[r,!r&&l&&lo(M,{className:"k-input-value-icon",icon:l}),n&&!t&&o,n&&t&&lo("span",{className:"k-input-value-text",children:t})]})};me.states=Pa;me.options=Ka;me.className=It;import{jsx as Ga}from"react/jsx-runtime";var Ct="k-input-inner",Ba=[],Ha={},co={value:"",placeholder:""},Mt=e=>{let{value:t=co.value,placeholder:o=co.placeholder,rows:n,...r}=e;return Ga("textarea",{...r,className:s(e.className,Ct,k(Ct,e)),placeholder:o,rows:n,defaultValue:t})};Mt.states=Ba;Mt.options=Ha;Mt.className=Ct;import{Fragment as Va,jsx as po}from"react/jsx-runtime";var mo="k-input-loading-icon",Da=[a.disabled,a.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?po(Va,{}):po("span",{className:s(e.className,mo,"k-icon k-i-loading")})};F.states=Da;F.className=mo;import{Fragment as Fa,jsx as fo}from"react/jsx-runtime";var uo="k-input-validation-icon",$a=[a.valid,a.invalid,a.disabled,a.loading],_a={},$=e=>{let{valid:t,invalid:o,disabled:n,loading:r}=e,l=o?"warning-circle":"check-circle";return n||r||!!!(t||o)?fo(Fa,{}):fo(M,{className:s(uo),icon:l})};$.states=$a;$.options=_a;$.className=uo;import{Fragment as qa,jsx as bo}from"react/jsx-runtime";var Xa="k-input-prefix",Ja={direction:"horizontal"},j=e=>{let{direction:t=Ja.direction,...o}=e;return e.children?bo("span",{...o,className:s(Xa,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):bo(qa,{})};import{Fragment as Qa,jsx as ho}from"react/jsx-runtime";var Ua="k-input-suffix",Wa={direction:"horizontal"},ee=e=>{let{direction:t=Wa.direction,...o}=e;return e.children?ho("span",{...o,className:s(Ua,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ho(Qa,{})};import{jsx as Wn}from"react/jsx-runtime";import{jsx as jn}from"react/jsx-runtime";import{jsx as Za}from"react/jsx-runtime";var xo="k-input-separator",Ya={direction:"vertical"},Le=e=>{let{direction:t=Ya.direction,...o}=e;return Za("span",{...o,className:s(xo,e.className,{[`${xo}-${t}`]:t})})};import{Fragment as ts,jsx as De,jsxs as vo}from"react/jsx-runtime";var rt="k-button",ja=[a.hover,a.focus,a.active,a.selected,a.disabled],es={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark,b.inverse]},fe={size:i.medium,rounded:u.medium,fillMode:f.solid,themeColor:b.base,showArrow:!1,arrowIconName:"caret-alt-down"},S=e=>{let{size:t=fe.size,rounded:o=fe.rounded,fillMode:n=fe.fillMode,themeColor:r=fe.themeColor,showArrow:l=fe.showArrow,arrowIconName:c=fe.arrowIconName,hover:m,focus:d,active:p,selected:h,disabled:x,icon:v,text:N,iconClassName:y,...C}=e,A=v!==void 0,T=e.children!==void 0;return vo("button",{...C,className:s(e.className,rt,k(rt,{size:t,rounded:o,fillMode:n,themeColor:r}),g(rt,{hover:m,focus:d,active:p,disabled:x,selected:h}),{"k-icon-button":!N&&!T&&A}),children:[v&&De(M,{className:s(y,"k-button-icon"),icon:v}),N?vo(ts,{children:[N&&De("span",{className:"k-button-text",children:N}),e.children]}):e.children&&De("span",{className:"k-button-text",children:e.children}),l&&De("span",{className:"k-menu-button-arrow k-button-arrow",children:De(M,{icon:c})})]})};S.states=ja;S.options=es;S.className=rt;S.defaultOptions=fe;import{jsx as yr}from"react/jsx-runtime";import{jsx as Ar}from"react/jsx-runtime";import{jsx as Or}from"react/jsx-runtime";import{jsx as No,jsxs as ss}from"react/jsx-runtime";var So="k-color-preview",os=[],as={},te=e=>{let{color:t,iconName:o,...n}=e;return ss("span",{...n,className:s(e.className,So,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&No(M,{icon:o,className:"k-color-preview-icon"}),No("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};te.states=os;te.options=as;te.className=So;import{jsx as Lo}from"react/jsx-runtime";var ko="k-animation-container",is=[],ns={},go={positionMode:"absolute"},oe=e=>{let{positionMode:t=go.positionMode,animationStyle:o,offset:n,...r}=e;return Lo("div",{...r,style:{...n,...e.style},className:s(e.className,ko,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Lo("div",{className:"k-child-animation-container",style:o,children:e.children})})};oe.states=is;oe.options=ns;oe.className=ko;oe.defaultOptions=go;import{jsx as yo}from"react/jsx-runtime";var Io="k-popup",rs=[],ls={},Co={positionMode:"absolute"},ae=e=>{let{offset:t,positionMode:o=Co.positionMode,animationStyle:n,...r}=e;return yo(oe,{positionMode:o,offset:t,animationStyle:n,children:yo("div",{...r,className:s(e.className,Io),children:e.children})})};ae.states=rs;ae.options=ls;ae.className=Io;ae.defaultOptions=Co;import{jsx as ps}from"react/jsx-runtime";var lt="k-actions",cs=[],ds={},At={alignment:"start",orientation:"horizontal"},se=e=>{let{alignment:t=At.alignment,orientation:o=At.orientation,...n}=e;return ps("div",{...n,className:s(lt,{[`${lt}-${t}`]:t,[`${lt}-${o}`]:o},e.className),children:e.children})};se.states=cs;se.options=ds;se.className=lt;se.defaultOptions=At;import{jsx as fs}from"react/jsx-runtime";var ms="k-actionsheet-footer",Mo={alignment:"stretched",orientation:"horizontal"},Ve=e=>{let{alignment:t=Mo.alignment,orientation:o=Mo.orientation,template:n,as:r=n?"div":se,...l}=e;return fs(r,{...l,...!n&&{alignment:t,orientation:o},className:s(e.className,ms),children:e.children})};import{jsx as $e,jsxs as hs}from"react/jsx-runtime";var Ao="k-searchbox",us=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],bs={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},Tt={showIcon:!0,icon:"search",size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},Q=e=>{let{value:t,placeholder:o,size:n,rounded:r,fillMode:l,hover:c,focus:m,valid:d,invalid:p,required:h,loading:x,disabled:v,showIcon:N=Tt.showIcon,icon:y=Tt.icon,...C}=e;return hs(E,{...C,size:n,rounded:r,fillMode:l,hover:c,focus:m,valid:d,invalid:p,required:h,loading:x,disabled:v,className:s(e.className,Ao),children:[N&&$e(M,{className:"k-input-icon",icon:y}),$e(W,{placeholder:o,value:t}),$e(F,{...e}),$e($,{...e}),$e(U,{...e})]})};Q.states=us;Q.options=bs;Q.className=Ao;Q.defaultOptions=Tt;import{jsx as Nl}from"react/jsx-runtime";import{Fragment as To,jsx as ie,jsxs as zt}from"react/jsx-runtime";var zo="k-textbox",xs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],vs={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},ue={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},ne=e=>{let{size:t=ue.size,rounded:o=ue.rounded,fillMode:n=ue.fillMode,separators:r=ue.separators,showClearButton:l=ue.showClearButton,showValidationIcon:c=ue.showValidationIcon,prefix:m,suffix:d,type:p,value:h,placeholder:x,hover:v,focus:N,valid:y,invalid:C,required:A,loading:T,disabled:D,readonly:q,...Re}=e;return zt(E,{...Re,size:t,rounded:o,fillMode:n,hover:v,focus:N,valid:y,invalid:C,required:A,loading:T,disabled:D,readonly:q,className:s(e.className,zo),children:[m&&zt(To,{children:[ie(j,{children:m}),r&&ie(Le,{})]}),ie(W,{placeholder:x,value:h,type:p}),c&&ie($,{valid:y,invalid:C,loading:T,disabled:D}),ie(F,{loading:T,disabled:D}),l&&ie(U,{loading:T,disabled:D,readonly:q,value:h}),d&&zt(To,{children:[r&&ie(Le,{}),ie(ee,{children:d})]})]})};ne.states=xs;ne.options=vs;ne.className=zo;ne.defaultOptions=ue;import{jsx as zl}from"react/jsx-runtime";import{Fragment as Rl,jsx as Kl}from"react/jsx-runtime";import{Fragment as _l,jsx as $l}from"react/jsx-runtime";import{jsx as re,jsxs as Et}from"react/jsx-runtime";var Oo="k-actionsheet-titlebar",Ns={},X=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:r,filter:l,input:c,inputValue:m,inputPlaceholder:d,adaptive:p,children:h,...x}=e;return Et("div",{...x,className:s(e.className,Oo),children:[Et("div",{className:"k-actionsheet-titlebar-group",children:[n&&re("div",{className:"k-actionsheet-actions",children:n}),!h&&Et("div",{className:"k-actionsheet-title",children:[t&&re("div",{className:"k-text-center",children:t}),o&&re("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&re("div",{className:"k-actionsheet-title",children:h}),r&&re("div",{className:"k-actionsheet-actions",children:r})]}),(c||l)&&re("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?re(ne,{value:m,placeholder:d,size:p?"large":"medium"}):re(Q,{placeholder:"Filter",size:p?"large":"medium"})})]})};X.className=Oo;X.defaultOptions=Ns;import{jsx as Ot,jsxs as gs}from"react/jsx-runtime";var wt="k-actionsheet-view",Ss=[],Ls={},ks={},ke=e=>{let{adaptive:t,animated:o,children:n,header:r,footer:l,...c}=e,m=r?.type===X&&Ot(X,{adaptive:t,...r?.props}),d=l?.type===Ve&&Ot(Ve,{...l?.props});return gs("div",{...c,className:s(e.className,wt,{[`${wt}-animated`]:o}),children:[m,Ot("div",{className:"k-actionsheet-content",children:n}),d]})};ke.states=Ss;ke.options=Ls;ke.className=wt;ke.defaultOptions=ks;import{jsx as ct,jsxs as Cs}from"react/jsx-runtime";var wo="k-actionsheet",ys=[],Is={},_e={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Y=e=>{let{side:t=_e.side,fullscreen:o=_e.fullscreen,adaptive:n=_e.adaptive,overlay:r=_e.overlay,template:l,children:c,header:m,footer:d,...p}=e;return Cs("div",{className:"k-actionsheet-container",children:[r&&ct("div",{className:"k-overlay"}),ct(oe,{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:ct("div",{...p,className:s(e.className,wo,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:l||ct(ke,{header:m,footer:d,adaptive:n,...e,children:c})})})]})};Y.states=ys;Y.options=Is;Y.className=wo;Y.defaultOptions=_e;import{jsx as fc}from"react/jsx-runtime";import{Fragment as As,jsx as Fe,jsxs as Pt}from"react/jsx-runtime";var Kt="k-actionsheet-item",Ms=[a.hover,a.focus,a.selected,a.disabled],Rt=e=>{let{iconName:t,text:o,description:n,hover:r,focus:l,selected:c,disabled:m,...d}=e;return Pt("span",{...d,className:s(e.className,Kt,g(Kt,{hover:r,focus:l,selected:c,disabled:m})),children:[!e.children&&Fe(As,{children:Pt("span",{className:"k-actionsheet-action",children:[t&&Fe("span",{className:"k-icon-wrap",children:Fe(M,{className:"k-actionsheet-item-icon",icon:t})}),Pt("span",{className:"k-actionsheet-item-text",children:[o&&Fe("span",{className:"k-actionsheet-item-title",children:o}),n&&Fe("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Rt.states=Ms;Rt.className=Kt;import{jsx as kc,jsxs as gc}from"react/jsx-runtime";import{jsx as Mc}from"react/jsx-runtime";import{jsx as Ec}from"react/jsx-runtime";import{jsx as Kc}from"react/jsx-runtime";import{jsx as Es}from"react/jsx-runtime";var Xe="k-button-group",Ts=[a.disabled],zs={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Ko={fillMode:f.solid},J=e=>{let{fillMode:t=Ko.fillMode,disabled:o,stretched:n,...r}=e;return Es("div",{...r,className:s(e.className,Xe,k(Xe,{fillMode:t}),g(Xe,{disabled:o}),{[`${Xe}-stretched`]:n}),children:e.children})};J.states=Ts;J.options=zs;J.className=Xe;J.defaultOptions=Ko;import{Fragment as td,jsx as ed,jsxs as od}from"react/jsx-runtime";import{Fragment as ld,jsx as rd,jsxs as cd}from"react/jsx-runtime";import{Fragment as bd,jsx as ud,jsxs as hd}from"react/jsx-runtime";import{Fragment as kd,jsx as Ld,jsxs as gd}from"react/jsx-runtime";import{jsx as ge,jsxs as Bt}from"react/jsx-runtime";var Je="k-slider",Os=[a.hover,a.focus,a.active,a.disabled,a.readonly],ws={},le={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},R=e=>{let{type:t=le.type,orientation:o=le.orientation,readonly:n=le.readonly,disabled:r=le.disabled,handlePosition:l=le.handlePosition,showButtons:c=le.showButtons,showTicks:m=le.showTicks,hover:d,focus:p,active:h,trackStyle:x,dir:v,...N}=e,y,C;return o==="horizontal"?(y=v==="rtl"?"caret-alt-left":"caret-alt-right",C=v==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(y="caret-alt-up",C="caret-alt-down"),Bt("div",{...N,className:s(Je,e.className,g(Je,{readonly:n,disabled:r}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:v,children:[c&&ge(S,{className:"k-button-decrease",rounded:"full",icon:C}),Bt("div",{className:"k-slider-track-wrap",children:[m&&ge("ul",{className:"k-reset k-slider-items",children:e.children}),Bt("div",{className:"k-slider-track",style:x,children:[ge("div",{className:"k-slider-selection"}),t==="range"&&ge("span",{className:s("k-draghandle","k-draghandle-start",g(Je,{hover:d,focus:p,active:h}))}),ge("span",{className:s("k-draghandle",`k-draghandle-${l}`,g(Je,{hover:d,focus:p,active:h}))})]})]}),c&&ge(S,{className:"k-button-increase",rounded:"full",icon:y})]})};R.states=Os;R.options=ws;R.className=Je;R.defaultOptions=le;import{jsx as Ro}from"react/jsx-runtime";var Bo="k-tick",Ps=[],Ks={},Ho={label:!1},ce=e=>{let{style:t,label:o=Ho.label,orientation:n,large:r,text:l,...c}=e;return Ro("li",{...c,className:s(e.className,Bo,{[`k-tick-${n}`]:n,"k-tick-large":r}),style:t,children:o&&Ro("span",{className:"k-label",children:l})})};ce.states=Ps;ce.options=Ks;ce.className=Bo;ce.defaultOptions=Ho;import{Fragment as Vd,jsx as Dd,jsxs as $d}from"react/jsx-runtime";import{Fragment as qd,jsx as Jd,jsxs as Ud}from"react/jsx-runtime";import{Fragment as jd,jsx as Zd,jsxs as ep}from"react/jsx-runtime";import{Fragment as ip,jsx as sp,jsxs as np}from"react/jsx-runtime";import{jsx as Rs}from"react/jsx-runtime";var Ht=e=>Rs(R,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Bs}from"react/jsx-runtime";var Gt=e=>Bs(R,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Go,jsxs as Ds}from"react/jsx-runtime";var Do="k-spin-button",Hs=[],Gs={size:[i.small,i.medium,i.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Dt={size:i.medium,fillMode:f.solid},ye=e=>{let{size:t=Dt.size,fillMode:o=Dt.fillMode,...n}=e;return Ds("span",{...n,className:s(Do,e.className),children:[Go(S,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Go(S,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};ye.states=Hs;ye.options=Gs;ye.className=Do;ye.defaultOptions=Dt;import{Fragment as Vo,jsx as Z,jsxs as Vt}from"react/jsx-runtime";var $o="k-numerictextbox",Vs=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],$s={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},be={showSpinButton:!0,showClearButton:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},O=e=>{let{size:t=be.size,rounded:o=be.rounded,fillMode:n=be.fillMode,separators:r=be.separators,showClearButton:l=be.showClearButton,showSpinButton:c=be.showSpinButton,prefix:m,suffix:d,value:p,placeholder:h,hover:x,focus:v,valid:N,invalid:y,required:C,loading:A,disabled:T,readonly:D,...q}=e;return Vt(E,{...q,size:t,rounded:o,fillMode:n,hover:x,focus:v,valid:N,invalid:y,required:C,loading:A,disabled:T,readonly:D,className:s(e.className,$o),children:[m&&Vt(Vo,{children:[Z(j,{children:m}),r&&Z(Le,{})]}),Z(W,{placeholder:h,value:p}),Z($,{valid:N,invalid:y,loading:A,disabled:T}),Z(F,{loading:A,disabled:T}),l&&Z(U,{loading:A,disabled:T,readonly:D,value:p}),d&&Vt(Vo,{children:[r&&Z(Le,{}),Z(ee,{children:d})]}),c&&Z(ye,{className:"k-input-spinner",size:t,fillMode:n})]})};O.states=Vs;O.options=$s;O.className=$o;O.defaultOptions=be;import{jsx as Rp}from"react/jsx-runtime";import{jsx as Fs}from"react/jsx-runtime";var _s="k-no-data",qe=e=>Fs("span",{className:s(_s,e.className),children:e.children});import{jsx as Ie,jsxs as Fo}from"react/jsx-runtime";var $t="k-list",Xs=[],Js={size:[i.small,i.medium,i.large]},Xo={size:i.medium},w=e=>{let{size:t=Xo.size,virtualization:o,children:n,optionLabel:r,customValue:l,screenReaders:c,...m}=e,d,p,h,x,v=[];return n?n.map((N,y)=>{N.type===P?(N.props.root===!0?(d=N.props.label,N.props.children.map((C,A)=>{v.push(Ie(I,{...C.props},`optChild-${A}-${new Date().getTime()}`))})):N.props.children.forEach((C,A)=>{let T="";A===0&&(T=N.props.label),v.push(Ie(I,{className:A===0?"k-first":"",...C.props,groupLabel:T},`groupLabel-${A}-${new Date().getTime()}`))}),p=Ie(P,{label:d,virtualization:o,children:v})):N.type===I&&(v.push(Ie(I,{...N.props},`${N.type}-${y}`)),h=Ie(Ce,{virtualization:o,children:v}),c&&(x=Fo(qe,{className:"k-sr-only",children:[v.length," items found."]})))}):x=Ie(qe,{children:"No data found."}),Fo("div",{...m,className:s(e.className,$t,k($t,{size:t}),{"k-virtual-list":o}),children:[r,l,p,h,x]})};w.states=Xs;w.options=Js;w.className=$t;w.defaultOptions=Xo;import{jsx as he,jsxs as Ws}from"react/jsx-runtime";var _t="k-list",qs=[],Us={size:[i.small,i.medium,i.large]},Jo={size:i.medium},xe=e=>{let{size:t=Jo.size,virtualization:o,children:n,...r}=e,l,c,m,d=[];return n?n.map((p,h)=>{p.type===P?(p.props.root===!0?(l=p.props.label,p.props.children.map((x,v)=>{d.push(he(I,{...x.props},`optChild-${v}-${new Date().getTime()}`))})):(d.push(he(qo,{...p.props,children:p.props.label},`listChild-${h}`)),p.props.children.map((x,v)=>{d.push(he(I,{...x.props},`fwOptChild-${v}-${new Date().getTime()}`))})),c=he(P,{label:l,virtualization:o,children:d})):p.type===I&&(d.push(he(I,{...p.props},`${p.type}-${h}`)),m=he(Ce,{virtualization:o,children:d}))}):m=he(qe,{children:"No data found."}),Ws("div",{...r,className:s(e.className,_t,k(_t,{size:t}),{"k-virtual-list":o}),children:[c,m]})};xe.states=qs;xe.options=Us;xe.className=_t;xe.defaultOptions=Jo;import{jsx as Uo}from"react/jsx-runtime";var dt="k-checkbox",Qs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Ys={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full]},Ft={size:i.medium,rounded:u.medium},de=e=>{let{id:t,checked:o,indeterminate:n,hover:r,focus:l,disabled:c,invalid:m,valid:d,required:p,size:h=Ft.size,rounded:x=Ft.rounded,...v}=e;return Uo("span",{className:"k-checkbox-wrap",children:Uo("input",{...v,id:t,type:"checkbox",defaultChecked:o,required:p,className:s(e.className,dt,k(dt,{size:h,rounded:x}),g(dt,{hover:r,focus:l,disabled:c,invalid:m,valid:d,indeterminate:n,checked:o}))})})};de.states=Qs;de.options=Ys;de.className=dt;de.defaultOptions=Ft;import{jsx as ei}from"react/jsx-runtime";var Wo="k-checkbox-list",Zs=[],js={},Qo={layout:"vertical"},Me=e=>{let{layout:t=Qo.layout,...o}=e;return ei("ul",{...o,className:s(e.className,Wo,{[`k-list-${t}`]:t}),children:e.children})};Me.states=Zs;Me.options=js;Me.className=Wo;Me.defaultOptions=Qo;import{jsx as si}from"react/jsx-runtime";var Yo="k-checkbox-list-item",ti=[],oi={},ai={},Ae=e=>{let{...t}=e;return si("li",{...t,className:s(e.className,Yo),children:e.children})};Ae.states=ti;Ae.options=oi;Ae.className=Yo;Ae.defaultOptions=ai;import{Fragment as pm,jsx as dm,jsxs as mm}from"react/jsx-runtime";import{Fragment as xm,jsx as hm,jsxs as vm}from"react/jsx-runtime";import{Fragment as gm,jsx as km,jsxs as ym}from"react/jsx-runtime";import{Fragment as Tm,jsx as Am,jsxs as zm}from"react/jsx-runtime";import{jsx as Pm}from"react/jsx-runtime";import{jsx as Hm}from"react/jsx-runtime";import{jsx as pt,jsxs as li}from"react/jsx-runtime";var Jt="k-list-item",ii=[a.hover,a.focus,a.selected,a.disabled],ni={},ri={},I=e=>{let{text:t,groupLabel:o,group:n,showIcon:r,iconName:l,showCheckbox:c,checked:m,hover:d,focus:p,selected:h,disabled:x,...v}=e,N=t||e.children;return li("li",{...v,className:s(e.className,n?"k-list-group-item":Jt,g(Jt,{hover:d,focus:p,disabled:x,selected:h})),children:[c&&pt(de,{checked:m}),r&&pt(M,{icon:l}),pt("span",{className:"k-list-item-text",children:N}),o&&o!==""&&pt("div",{className:"k-list-item-group-label",children:o})]})};I.states=ii;I.options=ni;I.className=Jt;I.defaultOptions=ri;import{jsx as qt,jsxs as di}from"react/jsx-runtime";var ci="k-list-content",Ce=e=>{let{virtualization:t,...o}=e;return di("div",{...o,className:s(ci,e.className),children:[qt("ul",{className:s("k-list-ul"),children:e.children}),t&&qt("div",{className:"k-height-container",children:qt("div",{})})]})};import{jsx as Zo}from"react/jsx-runtime";var pi="k-list-group-sticky-header",jo=e=>Zo("div",{className:s(pi,e.className),children:Zo("div",{className:"k-list-header-text",children:e.children})});import{Fragment as mi,jsx as ea,jsxs as fi}from"react/jsx-runtime";var P=e=>{let{virtualization:t,label:o}=e;return fi(mi,{children:[o&&ea(jo,{children:o}),e.children&&ea(Ce,{virtualization:t,children:e.children})]})};import{jsx as ta}from"react/jsx-runtime";var ui="k-list-group-item",qo=e=>ta("li",{className:s(ui,e.className),children:ta("span",{className:"k-list-item-text",children:e.children})});import{jsx as vi}from"react/jsx-runtime";var Ut="k-list-optionlabel",bi=[a.hover,a.focus,a.selected,a.disabled],hi={},xi={},mt=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:l,...c}=e;return vi("div",{...c,className:s(Ut,g(Ut,{hover:o,focus:n,selected:r,disabled:l})),children:t})};mt.states=bi;mt.options=hi;mt.className=Ut;mt.defaultOptions=xi;import{jsx as ki}from"react/jsx-runtime";var Wt="k-list-custom-value",Ni=[a.hover,a.focus,a.selected,a.disabled],Si={},Li={},ft=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:l,...c}=e;return ki("div",{...c,className:s(Wt,g(Wt,{hover:o,focus:n,selected:r,disabled:l})),children:t})};ft.states=Ni;ft.options=Si;ft.className=Wt;ft.defaultOptions=Li;import{jsx as kf}from"react/jsx-runtime";import{jsx as Cf}from"react/jsx-runtime";import{jsx as zf,jsxs as Ef}from"react/jsx-runtime";import{jsx as Kf,jsxs as Rf}from"react/jsx-runtime";import{jsx as Df}from"react/jsx-runtime";import{jsx as Ff,jsxs as Xf}from"react/jsx-runtime";import{jsx as Wf,jsxs as Qf}from"react/jsx-runtime";import{Fragment as Ii,jsx as K,jsxs as Qt}from"react/jsx-runtime";var oa="k-dropdownlist",gi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],yi={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},Te={showValue:!0,arrowIconName:"caret-alt-down",size:i.medium,rounded:u.medium,fillMode:f.solid},Ue=e=>{let{size:t=Te.size,rounded:o=Te.rounded,fillMode:n=Te.fillMode,arrowIconName:r=Te.arrowIconName,showValue:l=Te.showValue,valueIconName:c,prefix:m,suffix:d,value:p,placeholder:h,hover:x,focus:v,valid:N,invalid:y,required:C,loading:A,disabled:T,readonly:D,popup:q,opened:Re,adaptive:xt,adaptiveSettings:vt,adaptiveTitle:la,adaptiveSubtitle:ca,adaptiveFilter:da,...pa}=e;return Qt(Ii,{children:[Qt(V,{...pa,size:t,rounded:o,fillMode:n,hover:x,focus:v,valid:N,invalid:y,required:C,loading:A,disabled:T,readonly:D,className:s(e.className,oa,{"k-icon-picker":!l&&c}),children:[K(j,{children:m}),K(me,{placeholder:h,value:p,showValue:l,valueIconName:c}),K($,{valid:N,invalid:y,loading:A,disabled:T}),K(F,{loading:A,disabled:T}),K(ee,{children:d}),K(S,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),Re&&q&&K(ae,{className:"k-list-container k-dropdownlist-popup",children:q}),xt&&K(Y,{adaptive:!0,...vt,header:K(X,{actionsEnd:K(S,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:da,inputValue:p,inputPlaceholder:h,title:la,subtitle:ca}),children:K("div",{className:"k-list-container",children:Qt(w,{size:"large",children:[K(I,{text:"List item"}),K(I,{text:"List item"}),K(I,{text:"List item"})]})})})]})};Ue.states=gi;Ue.options=yi;Ue.className=oa;Ue.defaultOptions=Te;import{jsx as Cu}from"react/jsx-runtime";import{jsx as Eu,jsxs as Ou}from"react/jsx-runtime";import{Fragment as Du,jsx as Hu,jsxs as Gu}from"react/jsx-runtime";import{jsx as Fu}from"react/jsx-runtime";import{jsx as Wu,jsxs as Qu}from"react/jsx-runtime";import{jsx as tb,jsxs as ob}from"react/jsx-runtime";import{Fragment as db,jsx as lb,jsxs as cb}from"react/jsx-runtime";import{Fragment as vb,jsx as hb,jsxs as xb}from"react/jsx-runtime";import{Fragment as Pb,jsx as wb}from"react/jsx-runtime";import{Fragment as Vb,jsx as Db}from"react/jsx-runtime";import{Fragment as We,jsx as L,jsxs as z}from"react/jsx-runtime";var aa="k-colorgradient-inputs",Ci=[],Mi={size:[i.small,i.medium,i.large]},sa={mode:"rgba",size:i.medium},ze=e=>{let{mode:t=sa.mode,size:o,...n}=e;return z("div",{...n,className:s(aa,"k-hstack"),children:[L("div",{className:"k-vstack",children:L(S,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&z(We,{children:[z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),L("label",{className:"k-colorgradient-input-label",children:"R"})]}),z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),L("label",{className:"k-colorgradient-input-label",children:"G"})]}),z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),L("label",{className:"k-colorgradient-input-label",children:"B"})]}),z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),L("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&z(We,{children:[z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"R"})]}),z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"G"})]}),z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&z(We,{children:[z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"H"})]}),z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"S"})]}),z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"V"})]}),z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),L("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&z(We,{children:[z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"H"})]}),z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"S"})]}),z("div",{className:"k-vstack",children:[L(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&L(We,{children:z("div",{className:"k-vstack k-flex-1",children:[L(ne,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),L("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};ze.states=Ci;ze.options=Mi;ze.className=aa;ze.defaultOptions=sa;import{jsx as Ne,jsxs as Se}from"react/jsx-runtime";var ia="k-colorgradient-color-contrast",Ai=[],Ti={},zi={},Ee=()=>Se("div",{className:s(ia,"k-vbox"),children:[Se("div",{className:"k-contrast-ratio",children:[Ne("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Se("span",{className:"k-contrast-validation !k-text-success",children:[Ne(M,{icon:"check"}),Ne(M,{icon:"check"})]})]}),Se("div",{children:[Ne("span",{children:"AA: 4.5"}),Se("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ne(M,{icon:"check"})]})]}),Se("div",{children:[Ne("span",{children:"AAA: 7.0"}),Se("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ne(M,{icon:"x"})]})]})]});Ee.states=Ai;Ee.options=Ti;Ee.className=ia;Ee.defaultOptions=zi;import{jsx as B,jsxs as Qe}from"react/jsx-runtime";var ut="k-colorgradient",Ei=[a.hover,a.focus,a.readonly,a.disabled],Oi={size:[i.small,i.medium,i.large]},_={size:i.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},pe=e=>{let{size:t=_.size,mode:o=_.mode,readonly:n=_.readonly,disabled:r=_.disabled,gradientStyle:l=_.gradientStyle,dragHandleStyle:c=_.dragHandleStyle,alphaStyle:m=_.alphaStyle,alphaStyleHorizontal:d=_.alphaStyleHorizontal,contrast:p=_.contrast,dir:h,hover:x,focus:v,hoverHandle:N,focusHandle:y,canvasOrientation:C=_.canvasOrientation,...A}=e;return Qe("div",{...A,className:s(e.className,ut,k(ut,{size:t}),g(ut,{hover:x,focus:v,readonly:n,disabled:r})),dir:h,children:[!C||C==="horizontal"&&Qe("div",{className:"k-colorgradient-canvas k-hstack",children:[B("div",{className:"k-hsv-rectangle",style:l,children:B("div",{className:"k-hsv-gradient",children:B("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":y}),style:c})})}),Qe("div",{className:"k-hsv-controls k-hstack",children:[B(Gt,{className:"k-hue-slider",hover:N,focus:y}),o!=="rgb"&&o!=="hsv"&&B(Gt,{className:"k-alpha-slider",hover:N,focus:y,trackStyle:m})]})]}),C==="vertical"&&Qe("div",{className:"k-colorgradient-canvas k-vstack",children:[B("div",{className:"k-hsv-rectangle",style:l,children:B("div",{className:"k-hsv-gradient",children:B("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":y}),style:c})})}),Qe("div",{className:"k-hsv-controls k-vstack",children:[B(Ht,{className:"k-hue-slider",hover:N,focus:y}),o!=="rgb"&&o!=="hsv"&&B(Ht,{className:"k-alpha-slider",hover:N,focus:y,trackStyle:d})]})]}),B(ze,{mode:e.mode,size:t}),p&&B(Ee,{})]})};pe.states=Ei;pe.options=Oi;pe.className=ut;pe.defaultOptions=_;import{jsx as mh}from"react/jsx-runtime";import{jsx as hh}from"react/jsx-runtime";import{jsx as wi}from"react/jsx-runtime";var na=e=>wi("tr",{children:e.children});import{jsx as Ri}from"react/jsx-runtime";var Yt="k-colorpalette-tile",Pi=[a.hover,a.focus,a.selected],Ki={},Ye=e=>{let{color:t,tileSize:o,hover:n,focus:r,selected:l,...c}=e,m={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Ri("td",{...c,className:s(e.className,Yt,g(Yt,{hover:n,focus:r,selected:l})),style:m})};Ye.states=Pi;Ye.options=Ki;Ye.className=Yt;import{jsx as Ze}from"react/jsx-runtime";var bt="k-colorpalette",Bi=[a.disabled],Hi={size:[i.small,i.medium,i.large]},Zt={columns:10,size:i.medium},Oe=e=>{let{size:t=Zt.size,palette:o,columns:n=Zt.columns,tileSize:r,disabled:l,...c}=e,m=[];if(o){let d=n||o.columns,p=o.colors?o.colors:o;Array.isArray(p)&&Array.from({length:Math.ceil(p.length/d)},(h,x)=>{let v=[];p.slice(x*d,(x+1)*d).map((y,C)=>{v.push(Ze(Ye,{color:y,tileSize:r},C))});let N=Ze(na,{children:v},x);m.push(N)})}return Ze("div",{...c,className:s(e.className,bt,g(bt,{disabled:l}),k(bt,{size:t})),children:Ze("table",{className:"k-colorpalette-table",children:Ze("tbody",{children:m.length>0?m:e.children})})})};Oe.states=Bi;Oe.options=Hi;Oe.className=bt;Oe.defaultOptions=Zt;var jt={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 Gh}from"react/jsx-runtime";import{jsx as H,jsxs as we}from"react/jsx-runtime";var ht="k-coloreditor",Gi=[a.focus],Di={size:[i.small,i.medium,i.large]},Pe={size:i.medium,view:"gradient",palette:jt.office,actionButtons:!0,canvasOrientation:"horizontal"},Ke=e=>{let{size:t=Pe.size,view:o=Pe.view,palette:n=Pe.palette,color:r,currentColor:l,focus:c,focusView:m,dir:d,group:p,actionButtons:h=Pe.actionButtons,canvasOrientation:x=Pe.canvasOrientation,...v}=e;return we("div",{...v,className:s(e.className,"k-flatcolorpicker",ht,k(ht,{size:t}),g(ht,{focus:c})),dir:d,children:[we("div",{className:"k-coloreditor-header k-hstack",children:[H("div",{className:"k-coloreditor-header-actions k-hstack",children:p&&we(J,{fillMode:"flat",children:[H(S,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),H(S,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),H("div",{className:"k-spacer"}),we("div",{className:"k-coloreditor-header-actions k-hstack",children:[H(S,{fillMode:"flat",icon:"droplet-slash",size:t}),we("div",{className:"k-coloreditor-preview k-vstack",children:[H(te,{className:"k-coloreditor-preview-color",color:r}),H(te,{className:"k-coloreditor-current-color",color:l})]})]})]}),H("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?H(pe,{focus:m,size:t,canvasOrientation:x}):H(Oe,{palette:n,size:t})}),h&&we(se,{className:"k-coloreditor-footer",alignment:"start",children:[H(S,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),H(S,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};Ke.states=Gi;Ke.options=Di;Ke.className=ht;Ke.defaultOptions=Pe;import{jsx as sx}from"react/jsx-runtime";import{jsx as lx}from"react/jsx-runtime";import{jsx as mx}from"react/jsx-runtime";import{jsx as hx}from"react/jsx-runtime";import{Fragment as _i,jsx as G,jsxs as to}from"react/jsx-runtime";var ra="k-colorpicker",Vi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],$i={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},je={arrowIconName:"caret-alt-down",size:V.defaultOptions.size,rounded:V.defaultOptions.rounded,fillMode:V.defaultOptions.fillMode},et=e=>{let{size:t=je.size,rounded:o=je.rounded,fillMode:n=je.fillMode,arrowIconName:r=je.arrowIconName,prefix:l,suffix:c,value:m,placeholder:d,hover:p,focus:h,valid:x,invalid:v,required:N,disabled:y,valueIconName:C,popup:A,opened:T,adaptive:D,adaptiveSettings:q,adaptiveTitle:Re,adaptiveSubtitle:xt,...vt}=e;return to(_i,{children:[to(V,{...vt,size:t,rounded:o,fillMode:n,hover:p,focus:h,valid:x,invalid:v,required:N,disabled:y,className:s(e.className,ra,"k-icon-picker"),children:[G(j,{children:l}),G(me,{placeholder:d,value:m,showValue:!1,valueIcon:G(te,{className:"k-value-icon",color:m,iconName:C}),valueIconName:C}),G(ee,{children:c}),G(S,{className:"k-input-button",icon:r,rounded:null,size:t,fillMode:n})]}),T&&A&&G(ae,{className:"k-colorpicker-popup",children:A}),D&&G(Y,{adaptive:!0,...q,header:G(X,{actionsEnd:G(S,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:Re,subtitle:xt}),footer:to(Ve,{children:[G(S,{text:"Cancel",size:"large",themeColor:"base"}),G(S,{text:"Set",size:"large",themeColor:"primary"})]}),children:G(Ke,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};et.states=Vi;et.options=$i;et.className=ra;et.defaultOptions=je;var Ox=et;export{ra as COLORPICKER_CLASSNAME,et as ColorPicker,Ox as default};