UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 48.4 kB
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var 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 ba}from"react/jsx-runtime";var tt="k-input",fa=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ua={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 ba("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=fa;E.options=ua;E.className=tt;E.defaultOptions=ot;import{jsx as va}from"react/jsx-runtime";var at="k-picker",ha=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],xa={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 va("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=ha;V.options=xa;V.className=at;V.defaultOptions=st;import{Fragment as ka,jsx as oo}from"react/jsx-runtime";var Nt="k-icon k-font-icon",Na=[],Sa={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]},La={},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(ka,{})};Be.states=Na;Be.options=Sa;Be.className=Nt;Be.defaultOptions=La;var ao=Be;import{Fragment as Ia,jsx as it}from"react/jsx-runtime";var St="k-icon k-svg-icon",ga=[],ya={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(Ia,{});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=ga;He.options=ya;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 Ca=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ma=[],Aa={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=Ca(`${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=Ma;M.options=Aa;M.defaultOptions=kt;import{Fragment as Ea,jsx as gt}from"react/jsx-runtime";var ro="k-clear-value",Ta=[a.disabled,a.loading,a.readonly],za={},U=e=>{let{disabled:t,loading:o,readonly:n,value:r}=e;return t||n||o||!r?gt(Ea,{}):gt("span",{className:s(e.className,ro),children:gt(M,{icon:"x"})})};U.states=Ta;U.options=za;U.className=ro;import{jsx as Pa}from"react/jsx-runtime";var yt="k-input-inner",Oa=[],wa={},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 Pa("input",{...l,type:o,className:s(e.className,yt,k(yt,e)),placeholder:n,autoComplete:r,defaultValue:t})};W.states=Oa;W.options=wa;W.className=yt;import{jsx as lo,jsxs as Ba}from"react/jsx-runtime";var It="k-input-inner",Ka=[],Ra={},me=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:r,valueIconName:l,...c}=e;return Ba("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=Ka;me.options=Ra;me.className=It;import{jsx as Da}from"react/jsx-runtime";var Ct="k-input-inner",Ha=[],Ga={},co={value:"",placeholder:""},Mt=e=>{let{value:t=co.value,placeholder:o=co.placeholder,rows:n,...r}=e;return Da("textarea",{...r,className:s(e.className,Ct,k(Ct,e)),placeholder:o,rows:n,defaultValue:t})};Mt.states=Ha;Mt.options=Ga;Mt.className=Ct;import{Fragment as $a,jsx as po}from"react/jsx-runtime";var mo="k-input-loading-icon",Va=[a.disabled,a.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?po($a,{}):po("span",{className:s(e.className,mo,"k-icon k-i-loading")})};F.states=Va;F.className=mo;import{Fragment as Xa,jsx as fo}from"react/jsx-runtime";var uo="k-input-validation-icon",_a=[a.valid,a.invalid,a.disabled,a.loading],Fa={},$=e=>{let{valid:t,invalid:o,disabled:n,loading:r}=e,l=o?"warning-circle":"check-circle";return n||r||!!!(t||o)?fo(Xa,{}):fo(M,{className:s(uo),icon:l})};$.states=_a;$.options=Fa;$.className=uo;import{Fragment as Ua,jsx as bo}from"react/jsx-runtime";var Ja="k-input-prefix",qa={direction:"horizontal"},j=e=>{let{direction:t=qa.direction,...o}=e;return e.children?bo("span",{...o,className:s(Ja,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):bo(Ua,{})};import{Fragment as Ya,jsx as ho}from"react/jsx-runtime";var Wa="k-input-suffix",Qa={direction:"horizontal"},ee=e=>{let{direction:t=Qa.direction,...o}=e;return e.children?ho("span",{...o,className:s(Wa,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ho(Ya,{})};import{jsx as Yn}from"react/jsx-runtime";import{jsx as tr}from"react/jsx-runtime";import{jsx as ja}from"react/jsx-runtime";var xo="k-input-separator",Za={direction:"vertical"},Le=e=>{let{direction:t=Za.direction,...o}=e;return ja("span",{...o,className:s(xo,e.className,{[`${xo}-${t}`]:t})})};import{Fragment as os,jsx as De,jsxs as vo}from"react/jsx-runtime";var rt="k-button",es=[a.hover,a.focus,a.active,a.selected,a.disabled],ts={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(os,{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=es;S.options=ts;S.className=rt;S.defaultOptions=fe;import{jsx as Cr}from"react/jsx-runtime";import{jsx as zr}from"react/jsx-runtime";import{jsx as Pr}from"react/jsx-runtime";import{jsx as No,jsxs as is}from"react/jsx-runtime";var So="k-color-preview",as=[],ss={},te=e=>{let{color:t,iconName:o,...n}=e;return is("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=as;te.options=ss;te.className=So;import{jsx as Lo}from"react/jsx-runtime";var ko="k-animation-container",ns=[],rs={},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=ns;oe.options=rs;oe.className=ko;oe.defaultOptions=go;import{jsx as yo}from"react/jsx-runtime";var Io="k-popup",ls=[],cs={},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=ls;ae.options=cs;ae.className=Io;ae.defaultOptions=Co;import{jsx as ms}from"react/jsx-runtime";var lt="k-actions",ds=[],ps={},At={alignment:"start",orientation:"horizontal"},se=e=>{let{alignment:t=At.alignment,orientation:o=At.orientation,...n}=e;return ms("div",{...n,className:s(lt,{[`${lt}-${t}`]:t,[`${lt}-${o}`]:o},e.className),children:e.children})};se.states=ds;se.options=ps;se.className=lt;se.defaultOptions=At;import{jsx as us}from"react/jsx-runtime";var fs="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 us(r,{...l,...!n&&{alignment:t,orientation:o},className:s(e.className,fs),children:e.children})};import{jsx as $e,jsxs as xs}from"react/jsx-runtime";var Ao="k-searchbox",bs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],hs={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 xs(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=bs;Q.options=hs;Q.className=Ao;Q.defaultOptions=Tt;import{jsx as Ll}from"react/jsx-runtime";import{Fragment as To,jsx as ie,jsxs as zt}from"react/jsx-runtime";var zo="k-textbox",vs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ns={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=vs;ne.options=Ns;ne.className=zo;ne.defaultOptions=ue;import{jsx as Ol}from"react/jsx-runtime";import{Fragment as Hl,jsx as Bl}from"react/jsx-runtime";import{Fragment as Xl,jsx as Fl}from"react/jsx-runtime";import{jsx as re,jsxs as Et}from"react/jsx-runtime";var Oo="k-actionsheet-titlebar",Ss={},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=Ss;import{jsx as Ot,jsxs as ys}from"react/jsx-runtime";var wt="k-actionsheet-view",Ls=[],ks={},gs={},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 ys("div",{...c,className:s(e.className,wt,{[`${wt}-animated`]:o}),children:[m,Ot("div",{className:"k-actionsheet-content",children:n}),d]})};ke.states=Ls;ke.options=ks;ke.className=wt;ke.defaultOptions=gs;import{jsx as ct,jsxs as Ms}from"react/jsx-runtime";var wo="k-actionsheet",Is=[],Cs={},_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 Ms("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=Is;Y.options=Cs;Y.className=wo;Y.defaultOptions=_e;import{jsx as bc}from"react/jsx-runtime";import{Fragment as Ts,jsx as Fe,jsxs as Pt}from"react/jsx-runtime";var Kt="k-actionsheet-item",As=[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(Ts,{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=As;Rt.className=Kt;import{jsx as yc,jsxs as Ic}from"react/jsx-runtime";import{jsx as Tc}from"react/jsx-runtime";import{jsx as wc}from"react/jsx-runtime";import{jsx as Bc}from"react/jsx-runtime";import{jsx as Os}from"react/jsx-runtime";var Xe="k-button-group",zs=[a.disabled],Es={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 Os("div",{...r,className:s(e.className,Xe,k(Xe,{fillMode:t}),g(Xe,{disabled:o}),{[`${Xe}-stretched`]:n}),children:e.children})};J.states=zs;J.options=Es;J.className=Xe;J.defaultOptions=Ko;import{Fragment as ad,jsx as od,jsxs as sd}from"react/jsx-runtime";import{Fragment as dd,jsx as cd,jsxs as pd}from"react/jsx-runtime";import{Fragment as xd,jsx as hd,jsxs as vd}from"react/jsx-runtime";import{Fragment as yd,jsx as gd,jsxs as Id}from"react/jsx-runtime";import{jsx as ge,jsxs as Bt}from"react/jsx-runtime";var Je="k-slider",ws=[a.hover,a.focus,a.active,a.disabled,a.readonly],Ps={},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=ws;R.options=Ps;R.className=Je;R.defaultOptions=le;import{jsx as Ro}from"react/jsx-runtime";var Bo="k-tick",Ks=[],Rs={},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=Ks;ce.options=Rs;ce.className=Bo;ce.defaultOptions=Ho;import{Fragment as _d,jsx as $d,jsxs as Fd}from"react/jsx-runtime";import{Fragment as Wd,jsx as Ud,jsxs as Qd}from"react/jsx-runtime";import{Fragment as tp,jsx as ep,jsxs as op}from"react/jsx-runtime";import{Fragment as rp,jsx as np,jsxs as lp}from"react/jsx-runtime";import{jsx as Bs}from"react/jsx-runtime";var Ht=e=>Bs(R,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Hs}from"react/jsx-runtime";var Gt=e=>Hs(R,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Go,jsxs as Vs}from"react/jsx-runtime";var Do="k-spin-button",Gs=[],Ds={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 Vs("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=Gs;ye.options=Ds;ye.className=Do;ye.defaultOptions=Dt;import{Fragment as Vo,jsx as Z,jsxs as Vt}from"react/jsx-runtime";var $o="k-numerictextbox",$s=[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=$s;O.options=_s;O.className=$o;O.defaultOptions=be;import{jsx as Hp}from"react/jsx-runtime";import{jsx as Xs}from"react/jsx-runtime";var Fs="k-no-data",qe=e=>Xs("span",{className:s(Fs,e.className),children:e.children});import{jsx as Ie,jsxs as Fo}from"react/jsx-runtime";var $t="k-list",Js=[],qs={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=Js;w.options=qs;w.className=$t;w.defaultOptions=Xo;import{jsx as he,jsxs as Qs}from"react/jsx-runtime";var _t="k-list",Us=[],Ws={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."}),Qs("div",{...r,className:s(e.className,_t,k(_t,{size:t}),{"k-virtual-list":o}),children:[c,m]})};xe.states=Us;xe.options=Ws;xe.className=_t;xe.defaultOptions=Jo;import{jsx as Uo}from"react/jsx-runtime";var dt="k-checkbox",Ys=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Zs={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=Ys;de.options=Zs;de.className=dt;de.defaultOptions=Ft;import{jsx as ti}from"react/jsx-runtime";var Wo="k-checkbox-list",js=[],ei={},Qo={layout:"vertical"},Me=e=>{let{layout:t=Qo.layout,...o}=e;return ti("ul",{...o,className:s(e.className,Wo,{[`k-list-${t}`]:t}),children:e.children})};Me.states=js;Me.options=ei;Me.className=Wo;Me.defaultOptions=Qo;import{jsx as ii}from"react/jsx-runtime";var Yo="k-checkbox-list-item",oi=[],ai={},si={},Ae=e=>{let{...t}=e;return ii("li",{...t,className:s(e.className,Yo),children:e.children})};Ae.states=oi;Ae.options=ai;Ae.className=Yo;Ae.defaultOptions=si;import{Fragment as fm,jsx as mm,jsxs as um}from"react/jsx-runtime";import{Fragment as Nm,jsx as vm,jsxs as Sm}from"react/jsx-runtime";import{Fragment as Im,jsx as ym,jsxs as Cm}from"react/jsx-runtime";import{Fragment as Em,jsx as zm,jsxs as Om}from"react/jsx-runtime";import{jsx as Rm}from"react/jsx-runtime";import{jsx as Dm}from"react/jsx-runtime";import{jsx as pt,jsxs as ci}from"react/jsx-runtime";var Jt="k-list-item",ni=[a.hover,a.focus,a.selected,a.disabled],ri={},li={},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 ci("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=ni;I.options=ri;I.className=Jt;I.defaultOptions=li;import{jsx as qt,jsxs as pi}from"react/jsx-runtime";var di="k-list-content",Ce=e=>{let{virtualization:t,...o}=e;return pi("div",{...o,className:s(di,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 mi="k-list-group-sticky-header",jo=e=>Zo("div",{className:s(mi,e.className),children:Zo("div",{className:"k-list-header-text",children:e.children})});import{Fragment as fi,jsx as ea,jsxs as ui}from"react/jsx-runtime";var P=e=>{let{virtualization:t,label:o}=e;return ui(fi,{children:[o&&ea(jo,{children:o}),e.children&&ea(Ce,{virtualization:t,children:e.children})]})};import{jsx as ta}from"react/jsx-runtime";var bi="k-list-group-item",qo=e=>ta("li",{className:s(bi,e.className),children:ta("span",{className:"k-list-item-text",children:e.children})});import{jsx as Ni}from"react/jsx-runtime";var Ut="k-list-optionlabel",hi=[a.hover,a.focus,a.selected,a.disabled],xi={},vi={},mt=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:l,...c}=e;return Ni("div",{...c,className:s(Ut,g(Ut,{hover:o,focus:n,selected:r,disabled:l})),children:t})};mt.states=hi;mt.options=xi;mt.className=Ut;mt.defaultOptions=vi;import{jsx as gi}from"react/jsx-runtime";var Wt="k-list-custom-value",Si=[a.hover,a.focus,a.selected,a.disabled],Li={},ki={},ft=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:l,...c}=e;return gi("div",{...c,className:s(Wt,g(Wt,{hover:o,focus:n,selected:r,disabled:l})),children:t})};ft.states=Si;ft.options=Li;ft.className=Wt;ft.defaultOptions=ki;import{jsx as yf}from"react/jsx-runtime";import{jsx as Af}from"react/jsx-runtime";import{jsx as Of,jsxs as wf}from"react/jsx-runtime";import{jsx as Bf,jsxs as Hf}from"react/jsx-runtime";import{jsx as $f}from"react/jsx-runtime";import{jsx as Jf,jsxs as qf}from"react/jsx-runtime";import{jsx as Yf,jsxs as Zf}from"react/jsx-runtime";import{Fragment as Ci,jsx as K,jsxs as Qt}from"react/jsx-runtime";var oa="k-dropdownlist",yi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ii={size:[i.small,i.medium,i.large],rounded:[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:ca,adaptiveSubtitle:da,adaptiveFilter:pa,...ma}=e;return Qt(Ci,{children:[Qt(V,{...ma,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:pa,inputValue:p,inputPlaceholder:h,title:ca,subtitle:da}),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=yi;Ue.options=Ii;Ue.className=oa;Ue.defaultOptions=Te;import{jsx as Au}from"react/jsx-runtime";import{jsx as wu,jsxs as Pu}from"react/jsx-runtime";import{Fragment as $u,jsx as Du,jsxs as Vu}from"react/jsx-runtime";import{jsx as Ju}from"react/jsx-runtime";import{jsx as Yu,jsxs as Zu}from"react/jsx-runtime";import{jsx as ab,jsxs as sb}from"react/jsx-runtime";import{Fragment as mb,jsx as db,jsxs as pb}from"react/jsx-runtime";import{Fragment as Sb,jsx as vb,jsxs as Nb}from"react/jsx-runtime";import{Fragment as Rb,jsx as Kb}from"react/jsx-runtime";import{Fragment as _b,jsx as $b}from"react/jsx-runtime";import{Fragment as We,jsx as L,jsxs as z}from"react/jsx-runtime";var aa="k-colorgradient-inputs",Mi=[],Ai={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=Mi;ze.options=Ai;ze.className=aa;ze.defaultOptions=sa;import{jsx as Ne,jsxs as Se}from"react/jsx-runtime";var ia="k-colorgradient-color-contrast",Ti=[],zi={},Ei={},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=Ti;Ee.options=zi;Ee.className=ia;Ee.defaultOptions=Ei;import{jsx as B,jsxs as Qe}from"react/jsx-runtime";var ut="k-colorgradient",Oi=[a.hover,a.focus,a.readonly,a.disabled],wi={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=Oi;pe.options=wi;pe.className=ut;pe.defaultOptions=_;import{jsx as uh}from"react/jsx-runtime";import{jsx as vh}from"react/jsx-runtime";import{jsx as Pi}from"react/jsx-runtime";var na=e=>Pi("tr",{children:e.children});import{jsx as Bi}from"react/jsx-runtime";var Yt="k-colorpalette-tile",Ki=[a.hover,a.focus,a.selected],Ri={},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 Bi("td",{...c,className:s(e.className,Yt,g(Yt,{hover:n,focus:r,selected:l})),style:m})};Ye.states=Ki;Ye.options=Ri;Ye.className=Yt;import{jsx as Ze}from"react/jsx-runtime";var bt="k-colorpalette",Hi=[a.disabled],Gi={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=Hi;Oe.options=Gi;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 Vh}from"react/jsx-runtime";import{jsx as H,jsxs as we}from"react/jsx-runtime";var ht="k-coloreditor",Di=[a.focus],Vi={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=Di;Ke.options=Vi;Ke.className=ht;Ke.defaultOptions=Pe;import{jsx as nx}from"react/jsx-runtime";import{jsx as dx}from"react/jsx-runtime";import{jsx as ux}from"react/jsx-runtime";import{jsx as vx}from"react/jsx-runtime";import{Fragment as Fi,jsx as G,jsxs as to}from"react/jsx-runtime";var ra="k-colorpicker",$i=[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(Fi,{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=$i;et.options=_i;et.className=ra;et.defaultOptions=je;var la=et;import{jsx as Xi}from"react/jsx-runtime";var Bx=e=>Xi(la,{adaptive:!0,...e});export{Bx as ColorPickerAdaptive};