@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines • 51 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"}),A=(e,t)=>{let{valid:o,invalid:n,hover:r,focus:c,checked:l,active:m,selected:d,disabled:p,indeterminate:N,loading:x,empty:h,readonly:L,highlighted:S,...C}=t;return s({"k-valid":o,"k-invalid":n,"k-hover":r,"k-focus":c,"k-checked":l,"k-active":m,"k-selected":d,"k-disabled":p,"k-indeterminate":N&&!l,"k-loading":x,"k-empty":h,"k-readonly":L,"k-highlighted":S},Object.keys(C).reduce((T,O)=>(O.startsWith("k-")?T[O]=C[O]:T[`k-${O}`]=C[O],T),{}))};function Co(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(n=>[`k-${n}`,!0]))}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",generating:"generating",expanded:"expanded"};var It="action-buttons",Mo=It;import{jsx as ns}from"react/jsx-runtime";var dt="k-actions",as=[],ss={},yt={alignment:"start",orientation:"horizontal"},q=e=>{let{alignment:t=yt.alignment,orientation:o=yt.orientation,...n}=e;return ns("div",{...n,className:s(dt,{[`${dt}-${t}`]:t,[`${dt}-${o}`]:o},e.className),children:e.children})};q.states=as;q.options=ss;q.className=dt;q.defaultOptions=yt;q.moduleName=It;q.folderName=Mo;import{Fragment as cs,jsx as ko}from"react/jsx-runtime";var Rt="k-font-icon",is=[],rs={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]},ls={},Ve=e=>{let{size:t,themeColor:o,icon:n,rotate:r,flip:c,...l}=e;return n?ko("span",{...l,className:s(e.className,Rt,k(Rt,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"})}):ko(cs,{})};Ve.states=is;Ve.options=rs;Ve.className=Rt;Ve.defaultOptions=ls;var Ao=Ve;import{Fragment as ms,jsx as pt}from"react/jsx-runtime";var Kt="k-svg-icon",ds=[],ps={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]},go={viewBox:"0 0 24 24"},$e=e=>{let{size:t,themeColor:o,rotate:n,flip:r,viewBox:c=go.viewBox,icon:l,...m}=e;if(!l)return pt(ms,{});l==="none"&&{...m,className:s(e.className,Kt,"k-none")};let d=typeof l=="object"&&l.name&&l.name;return pt("span",{...m,className:s(e.className,Kt,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:pt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:c,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$e.states=ds;$e.options=ps;$e.className=Kt;$e.defaultOptions=go;var Pt=$e;import*as _t from"@progress/kendo-svg-icons";var To="icon",Oo="icons";import{Fragment as Io,jsx as Je}from"react/jsx-runtime";var mt="k-icon",fs=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),us=[],bs={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]},Ht={viewBox:"0 0 24 24",type:"svg"},g=e=>{let{size:t,themeColor:o,icon:n,type:r=Ht.type,rotate:c,flip:l,viewBox:m=Ht.viewBox,...d}=e;if(!n)return Je(Io,{});if(r==="svg"){if(n==="none")return Je(Pt,{...d,className:s(e.className,mt),icon:n,size:t});let p=_t[n]?n:fs(`${n}-icon`);return _t[p]?Je(Pt,{...d,className:s(e.className,mt),icon:_t[p],size:t,themeColor:o,rotate:c,flip:l,viewBox:m}):Je(Io,{})}return Je(Ao,{...d,className:s(e.className,mt),icon:n,size:t,themeColor:o,rotate:c,flip:l})};g.states=us;g.options=bs;g.defaultOptions=Ht;g.className=mt;g.moduleName=To;g.folderName=Oo;var zt="button",yo=zt;import{Fragment as hs,jsx as qe,jsxs as Ro}from"react/jsx-runtime";var We="k-button",Ns=["icon-button"],xs=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],Ls={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]},Se={size:i.medium,rounded:u.medium,fillMode:f.solid,themeColor:b.base,showArrow:!1,arrowIconName:"caret-alt-down"},v=e=>{let{size:t=Se.size,rounded:o=Se.rounded,fillMode:n=Se.fillMode,themeColor:r=Se.themeColor,showArrow:c=Se.showArrow,arrowIconName:l=Se.arrowIconName,variant:m,hover:d,focus:p,active:N,selected:x,disabled:h,icon:L,text:S,iconClassName:C,...T}=e,O=L!==void 0,z=e.children!==void 0;return Ro("button",{...T,className:s(e.className,We,Co(We,m),k(We,{size:t,rounded:o,fillMode:n,themeColor:r}),A(We,{hover:d,focus:p,active:N,disabled:h,selected:x}),{"k-icon-button":!S&&!z&&O}),children:[L&&qe(g,{className:s(C,"k-button-icon"),icon:L}),S?Ro(hs,{children:[S&&qe("span",{className:"k-button-text",children:S}),e.children]}):e.children&&qe("span",{className:"k-button-text",children:e.children}),c&&qe("span",{className:"k-menu-button-arrow k-button-arrow",children:qe(g,{icon:l})})]})};v.states=xs;v.options=Ls;v.variants=Ns;v.className=We;v.defaultOptions=Se;v.moduleName=zt;v.folderName=yo;import{jsx as Pr}from"react/jsx-runtime";import{jsx as wr}from"react/jsx-runtime";import{jsx as Ur}from"react/jsx-runtime";var wt="button",Ko=wt;import{jsx as Es}from"react/jsx-runtime";var Qe="k-button-group",vs=[a.disabled],Ss={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Po={fillMode:f.solid},D=e=>{let{fillMode:t=Po.fillMode,disabled:o,stretched:n,...r}=e;return Es("div",{...r,className:s(e.className,Qe,k(Qe,{fillMode:t}),A(Qe,{disabled:o}),{[`${Qe}-stretched`]:n}),children:e.children})};D.states=vs;D.options=Ss;D.className=Qe;D.defaultOptions=Po;D.moduleName=wt;D.folderName=Ko;import{Fragment as sl,jsx as al,jsxs as nl}from"react/jsx-runtime";import{Fragment as pl,jsx as dl,jsxs as ml}from"react/jsx-runtime";import{Fragment as Ll,jsx as xl,jsxs as hl}from"react/jsx-runtime";import{Fragment as kl,jsx as Ml,jsxs as Al}from"react/jsx-runtime";var Bt="slider",_o=Bt;import{jsx as ye,jsxs as Dt}from"react/jsx-runtime";var Ye="k-slider",Cs=[a.hover,a.focus,a.active,a.disabled,a.readonly],Ms={},ce={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},P=e=>{let{type:t=ce.type,orientation:o=ce.orientation,readonly:n=ce.readonly,disabled:r=ce.disabled,handlePosition:c=ce.handlePosition,showButtons:l=ce.showButtons,showTicks:m=ce.showTicks,hover:d,focus:p,active:N,trackStyle:x,dir:h,...L}=e,S,C;return o==="horizontal"?(S=h==="rtl"?"caret-alt-left":"caret-alt-right",C=h==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(S="caret-alt-up",C="caret-alt-down"),Dt("div",{...L,className:s(Ye,e.className,A(Ye,{readonly:n,disabled:r}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:h,children:[l&&ye(v,{className:"k-button-decrease",rounded:"full",icon:C}),Dt("div",{className:"k-slider-track-wrap",children:[m&&ye("ul",{className:"k-reset k-slider-items",children:e.children}),Dt("div",{className:"k-slider-track",style:x,children:[ye("div",{className:"k-slider-selection"}),t==="range"&&ye("span",{className:s("k-draghandle","k-draghandle-start",A(Ye,{hover:d,focus:p,active:N}))}),ye("span",{className:s("k-draghandle",`k-draghandle-${c}`,A(Ye,{hover:d,focus:p,active:N}))})]})]}),l&&ye(v,{className:"k-button-increase",rounded:"full",icon:S})]})};P.states=Cs;P.options=Ms;P.className=Ye;P.defaultOptions=ce;P.moduleName=Bt;P.folderName=_o;import{jsx as Ho}from"react/jsx-runtime";var zo="k-tick",ks=[],As={},wo={label:!1},de=e=>{let{style:t,label:o=wo.label,orientation:n,large:r,text:c,...l}=e;return Ho("li",{...l,className:s(e.className,zo,{[`k-tick-${n}`]:n,"k-tick-large":r}),style:t,children:o&&Ho("span",{className:"k-label",children:c})})};de.states=ks;de.options=As;de.className=zo;de.defaultOptions=wo;import{Fragment as $l,jsx as Vl,jsxs as Jl}from"react/jsx-runtime";import{Fragment as Zl,jsx as Yl,jsxs as jl}from"react/jsx-runtime";import{Fragment as sc,jsx as ac,jsxs as nc}from"react/jsx-runtime";import{Fragment as dc,jsx as cc,jsxs as pc}from"react/jsx-runtime";import{jsx as gs}from"react/jsx-runtime";var Gt=e=>gs(P,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Ts}from"react/jsx-runtime";var Ut=e=>Ts(P,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});var Ze="input",ft=Ze;import{jsx as ys}from"react/jsx-runtime";var ut="k-input",Os=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Is={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},bt={size:i.medium,rounded:i.medium,fillMode:f.solid},I=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:c,loading:l,readonly:m,size:d=bt.size,rounded:p=bt.rounded,fillMode:N=bt.fillMode,...x}=e;return ys("span",{...x,className:s(e.className,ut,k(ut,{size:d,rounded:p,fillMode:N}),A(ut,{hover:t,focus:o,disabled:n,invalid:r,valid:c,loading:l,readonly:m}))})};I.states=Os;I.options=Is;I.className=ut;I.defaultOptions=bt;I.moduleName=Ze;I.folderName=ft;import{jsx as Ps}from"react/jsx-runtime";var Nt="k-picker",Rs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ks={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},xt={size:i.medium,rounded:u.medium,fillMode:f.solid},w=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:c,loading:l,readonly:m,size:d=xt.size,rounded:p=xt.rounded,fillMode:N=xt.fillMode,...x}=e;return Ps("span",{...x,className:s(e.className,Nt,k(Nt,{size:d,rounded:p,fillMode:N}),A(Nt,{hover:t,focus:o,disabled:n,invalid:r,valid:c,loading:l,readonly:m})),children:e.children})};w.states=Rs;w.options=Ks;w.className=Nt;w.defaultOptions=xt;w.moduleName=Ze;w.folderName=ft;import{Fragment as zs,jsx as Ft}from"react/jsx-runtime";var Bo="k-clear-value",_s=[a.disabled,a.loading,a.readonly],Hs={},ae=e=>{let{disabled:t,loading:o,readonly:n,value:r}=e;return t||n||o||!r?Ft(zs,{}):Ft("span",{className:s(e.className,Bo),children:Ft(g,{icon:"x"})})};ae.states=_s;ae.options=Hs;ae.className=Bo;import{jsx as Ds}from"react/jsx-runtime";var Xt="k-input-inner",ws=[],Bs={},Lt={type:"text",autocomplete:"off",value:"",placeholder:""},se=e=>{let{value:t=Lt.value,type:o=Lt.type,placeholder:n=Lt.placeholder,autocomplete:r=Lt.autocomplete,...c}=e;return Ds("input",{...c,type:o,className:s(e.className,Xt,k(Xt,e)),placeholder:n,autoComplete:r,defaultValue:t})};se.states=ws;se.options=Bs;se.className=Xt;import{jsx as Do,jsxs as Fs}from"react/jsx-runtime";var Vt="k-input-inner",Gs=[],Us={},Ee=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:r,valueIconName:c,...l}=e;return Fs("span",{...l,className:s(e.className,Vt,k(Vt,e)),children:[r,!r&&c&&Do(g,{className:"k-input-value-icon",icon:c}),n&&!t&&o,n&&t&&Do("span",{className:"k-input-value-text",children:t})]})};Ee.states=Gs;Ee.options=Us;Ee.className=Vt;import{jsx as $s}from"react/jsx-runtime";var $t="k-input-inner",Xs=[],Vs={},Go={value:"",placeholder:""},Jt=e=>{let{value:t=Go.value,placeholder:o=Go.placeholder,rows:n,...r}=e;return $s("textarea",{...r,className:s(e.className,$t,k($t,e)),placeholder:o,rows:n,defaultValue:t})};Jt.states=Xs;Jt.options=Vs;Jt.className=$t;import{Fragment as qs,jsx as Uo}from"react/jsx-runtime";var Fo="k-input-loading-icon",Js=[a.disabled,a.loading],W=e=>{let{disabled:t,loading:o}=e;return t||!o?Uo(qs,{}):Uo("span",{className:s(e.className,Fo,"k-icon k-i-loading")})};W.states=Js;W.className=Fo;import{Fragment as Ys,jsx as Xo}from"react/jsx-runtime";var Vo="k-input-validation-icon",Ws=[a.valid,a.invalid,a.disabled,a.loading],Qs={},X=e=>{let{valid:t,invalid:o,disabled:n,loading:r}=e,c=o?"warning-circle":"check-circle";return n||r||!!!(t||o)?Xo(Ys,{}):Xo(g,{className:s(Vo),icon:c})};X.states=Ws;X.options=Qs;X.className=Vo;import{Fragment as en,jsx as $o}from"react/jsx-runtime";var Zs="k-input-prefix",js={direction:"horizontal"},pe=e=>{let{direction:t=js.direction,...o}=e;return e.children?$o("span",{...o,className:s(Zs,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):$o(en,{})};import{Fragment as an,jsx as Jo}from"react/jsx-runtime";var tn="k-input-suffix",on={direction:"horizontal"},me=e=>{let{direction:t=on.direction,...o}=e;return e.children?Jo("span",{...o,className:s(tn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Jo(an,{})};import{jsx as md}from"react/jsx-runtime";import{jsx as Nd}from"react/jsx-runtime";import{jsx as nn}from"react/jsx-runtime";var qo="k-input-separator",sn={direction:"vertical"},Re=e=>{let{direction:t=sn.direction,...o}=e;return nn("span",{...o,className:s(qo,e.className,{[`${qo}-${t}`]:t})})};import{jsx as Wo,jsxs as pn}from"react/jsx-runtime";var Qo="k-spin-button",cn=[],dn={size:[i.small,i.medium,i.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},qt={size:i.medium,fillMode:f.solid},fe=e=>{let{size:t=qt.size,fillMode:o=qt.fillMode,...n}=e;return pn("span",{...n,className:s(Qo,e.className),children:[Wo(v,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Wo(v,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};fe.states=cn;fe.options=dn;fe.className=Qo;fe.defaultOptions=qt;fe.moduleName=null;fe.folderName=null;var Yo="numeric-textbox",Zo="numerictextbox";import{Fragment as jo,jsx as ne,jsxs as Wt}from"react/jsx-runtime";var ea="k-numerictextbox",mn=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],fn={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},Ce={showSpinButton:!0,showClearButton:!0,size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode,separators:!0},y=e=>{let{size:t=Ce.size,rounded:o=Ce.rounded,fillMode:n=Ce.fillMode,separators:r=Ce.separators,showClearButton:c=Ce.showClearButton,showSpinButton:l=Ce.showSpinButton,prefix:m,suffix:d,value:p,placeholder:N,hover:x,focus:h,valid:L,invalid:S,required:C,loading:T,disabled:O,readonly:z,...oe}=e;return Wt(I,{...oe,size:t,rounded:o,fillMode:n,hover:x,focus:h,valid:L,invalid:S,required:C,loading:T,disabled:O,readonly:z,className:s(e.className,ea),children:[m&&Wt(jo,{children:[ne(pe,{children:m}),r&&ne(Re,{})]}),ne(se,{placeholder:N,value:p}),ne(X,{valid:L,invalid:S,loading:T,disabled:O}),ne(W,{loading:T,disabled:O}),c&&ne(ae,{loading:T,disabled:O,readonly:z,value:p}),d&&Wt(jo,{children:[r&&ne(Re,{}),ne(me,{children:d})]}),l&&ne(fe,{className:"k-input-spinner",size:t,fillMode:n})]})};y.states=mn;y.options=fn;y.className=ea;y.defaultOptions=Ce;y.moduleName=Yo;y.folderName=Zo;import{jsx as Zd}from"react/jsx-runtime";var Qt="popup",oa=Qt;import{jsx as aa}from"react/jsx-runtime";var sa="k-animation-container",un=[],bn={},na={positionMode:"absolute"},Q=e=>{let{positionMode:t=na.positionMode,animationStyle:o,offset:n,...r}=e;return aa("div",{...r,style:{...n,...e.style},className:s(e.className,sa,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:aa("div",{className:"k-child-animation-container",style:o,children:e.children})})};Q.states=un;Q.options=bn;Q.className=sa;Q.defaultOptions=na;Q.moduleName=Qt;Q.folderName=oa;var Yt="popup",ia=Yt;import{jsx as ra}from"react/jsx-runtime";var la="k-popup",Nn=[],xn={},ca={positionMode:"absolute"},Y=e=>{let{offset:t,positionMode:o=ca.positionMode,animationStyle:n,...r}=e;return ra(Q,{positionMode:o,offset:t,animationStyle:n,children:ra("div",{...r,className:s(e.className,la),children:e.children})})};Y.states=Nn;Y.options=xn;Y.className=la;Y.defaultOptions=ca;Y.moduleName=Yt;Y.folderName=ia;import{jsx as hn}from"react/jsx-runtime";var Ln="k-actionsheet-footer",da={alignment:"stretched",orientation:"horizontal"},je=e=>{let{alignment:t=da.alignment,orientation:o=da.orientation,template:n,as:r=n?"div":q,...c}=e;return hn(r,{...c,...!n&&{alignment:t,orientation:o},className:s(e.className,Ln),children:e.children})};var Zt="searchbox",pa=Zt;import{jsx as et,jsxs as En}from"react/jsx-runtime";var ma="k-searchbox",vn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Sn={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},jt={showIcon:!0,icon:"search",size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode},V=e=>{let{value:t,placeholder:o,size:n,rounded:r,fillMode:c,hover:l,focus:m,valid:d,invalid:p,required:N,loading:x,disabled:h,showIcon:L=jt.showIcon,icon:S=jt.icon,...C}=e;return En(I,{...C,size:n,rounded:r,fillMode:c,hover:l,focus:m,valid:d,invalid:p,required:N,loading:x,disabled:h,className:s(e.className,ma),children:[L&&et(g,{className:"k-input-icon",icon:S}),et(se,{placeholder:o,value:t}),et(W,{...e}),et(X,{...e}),et(ae,{...e})]})};V.states=vn;V.options=Sn;V.className=ma;V.defaultOptions=jt;V.moduleName=Zt;V.folderName=pa;import{jsx as Op}from"react/jsx-runtime";var eo="textbox",fa=eo;import{Fragment as ua,jsx as ue,jsxs as to}from"react/jsx-runtime";var ba="k-textbox",Cn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Mn={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},Me={showClearButton:!0,showValidationIcon:!0,size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode,separators:!0},Z=e=>{let{size:t=Me.size,rounded:o=Me.rounded,fillMode:n=Me.fillMode,separators:r=Me.separators,showClearButton:c=Me.showClearButton,showValidationIcon:l=Me.showValidationIcon,prefix:m,suffix:d,type:p,value:N,placeholder:x,hover:h,focus:L,valid:S,invalid:C,required:T,loading:O,disabled:z,readonly:oe,...Xe}=e;return to(I,{...Xe,size:t,rounded:o,fillMode:n,hover:h,focus:L,valid:S,invalid:C,required:T,loading:O,disabled:z,readonly:oe,className:s(e.className,ba),children:[m&&to(ua,{children:[ue(pe,{children:m}),r&&ue(Re,{})]}),ue(se,{placeholder:x,value:N,type:p}),l&&ue(X,{valid:S,invalid:C,loading:O,disabled:z}),ue(W,{loading:O,disabled:z}),c&&ue(ae,{loading:O,disabled:z,readonly:oe,value:N}),d&&to(ua,{children:[r&&ue(Re,{}),ue(me,{children:d})]})]})};Z.states=Cn;Z.options=Mn;Z.className=ba;Z.defaultOptions=Me;Z.moduleName=eo;Z.folderName=fa;import{jsx as Up}from"react/jsx-runtime";import{Fragment as qp,jsx as Jp}from"react/jsx-runtime";import{Fragment as tm,jsx as em}from"react/jsx-runtime";import{jsx as be,jsxs as oo}from"react/jsx-runtime";var xa="k-actionsheet-titlebar",kn={},j=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:r,filter:c,input:l,inputValue:m,inputPlaceholder:d,adaptive:p,children:N,...x}=e;return oo("div",{...x,className:s(e.className,xa),children:[oo("div",{className:"k-actionsheet-titlebar-group",children:[n&&be("div",{className:"k-actionsheet-actions",children:n}),!N&&oo("div",{className:"k-actionsheet-title",children:[t&&be("div",{className:"k-text-center",children:t}),o&&be("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&be("div",{className:"k-actionsheet-title",children:N}),r&&be("div",{className:"k-actionsheet-actions",children:r})]}),(l||c)&&be("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?be(Z,{value:m,placeholder:d,size:p?"large":"medium"}):be(V,{placeholder:"Filter",size:p?"large":"medium"})})]})};j.className=xa;j.defaultOptions=kn;import{jsx as ao,jsxs as On}from"react/jsx-runtime";var so="k-actionsheet-view",An=[],gn={},Tn={},Ke=e=>{let{adaptive:t,animated:o,children:n,header:r,footer:c,...l}=e,m=r?.type===j&&ao(j,{adaptive:t,...r?.props}),d=c?.type===je&&ao(je,{...c?.props});return On("div",{...l,className:s(e.className,so,{[`${so}-animated`]:o}),children:[m,ao("div",{className:"k-actionsheet-content",children:n}),d]})};Ke.states=An;Ke.options=gn;Ke.className=so;Ke.defaultOptions=Tn;var tt="action-sheet",ht=tt;import{jsx as vt,jsxs as Rn}from"react/jsx-runtime";var La="k-actionsheet",In=[],yn={},ot={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},$=e=>{let{side:t=ot.side,fullscreen:o=ot.fullscreen,adaptive:n=ot.adaptive,overlay:r=ot.overlay,template:c,children:l,header:m,footer:d,...p}=e;return Rn("div",{className:"k-actionsheet-container",children:[r&&vt("div",{className:"k-overlay"}),vt(Q,{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:vt("div",{...p,className:s(e.className,La,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:c||vt(Ke,{header:m,footer:d,adaptive:n,...e,children:l})})})]})};$.states=In;$.options=yn;$.className=La;$.defaultOptions=ot;$.moduleName=tt;$.folderName=ht;import{jsx as Hn}from"react/jsx-runtime";var ha="k-actionsheet-container",Kn=[],Pn={},_n={},Pe=e=>{let{children:t,...o}=e;return Hn("div",{...o,className:ha,children:t})};Pe.states=Kn;Pe.options=Pn;Pe.className=ha;Pe.defaultOptions=_n;Pe.moduleName=tt;Pe.folderName=ht;import{jsx as Im}from"react/jsx-runtime";import{Fragment as wn,jsx as at,jsxs as no}from"react/jsx-runtime";var io="k-actionsheet-item",zn=[a.hover,a.focus,a.selected,a.disabled],ro=e=>{let{iconName:t,text:o,description:n,hover:r,focus:c,selected:l,disabled:m,...d}=e;return no("span",{...d,className:s(e.className,io,A(io,{hover:r,focus:c,selected:l,disabled:m})),children:[!e.children&&at(wn,{children:no("span",{className:"k-actionsheet-action",children:[t&&at("span",{className:"k-icon-wrap",children:at(g,{className:"k-actionsheet-item-icon",icon:t})}),no("span",{className:"k-actionsheet-item-text",children:[o&&at("span",{className:"k-actionsheet-item-title",children:o}),n&&at("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};ro.states=zn;ro.className=io;import{jsx as Bm,jsxs as Dm}from"react/jsx-runtime";import{jsx as Xm}from"react/jsx-runtime";import{jsx as qm}from"react/jsx-runtime";import{jsx as Zm}from"react/jsx-runtime";import{jsx as Dn}from"react/jsx-runtime";var Bn="k-no-data",st=e=>Dn("span",{className:s(Bn,e.className),children:e.children});var ie="list",Ne=ie;import{jsx as _e,jsxs as Sa}from"react/jsx-runtime";var lo="k-list",Gn=[],Un={size:[i.small,i.medium,i.large]},Ea={size:i.medium},K=e=>{let{size:t=Ea.size,virtualization:o,children:n,optionLabel:r,customValue:c,screenReaders:l,...m}=e,d,p,N,x,h=[];return n?n.map((L,S)=>{L.type===_?(L.props.root===!0?(d=L.props.label,L.props.children.map((C,T)=>{h.push(_e(M,{...C.props},`optChild-${T}-${new Date().getTime()}`))})):L.props.children.forEach((C,T)=>{let O="";T===0&&(O=L.props.label),h.push(_e(M,{className:T===0?"k-first":"",...C.props,groupLabel:O},`groupLabel-${T}-${new Date().getTime()}`))}),p=_e(_,{label:d,virtualization:o,children:h})):L.type===M&&(h.push(_e(M,{...L.props},`${L.type}-${S}`)),N=_e(He,{virtualization:o,children:h}),l&&(x=Sa(st,{className:"k-sr-only",children:[h.length," items found."]})))}):x=_e(st,{children:"No data found."}),Sa("div",{...m,className:s(e.className,lo,k(lo,{size:t}),{"k-virtual-list":o}),children:[r,c,p,N,x]})};K.states=Gn;K.options=Un;K.className=lo;K.defaultOptions=Ea;K.moduleName=ie;K.folderName=Ne;import{jsx as $n}from"react/jsx-runtime";var Ca="k-list-container",Fn=[],Xn={},Vn={},ze=e=>{let{...t}=e;return $n("div",{...t,className:s(e.className,Ca),children:e.children})};ze.states=Fn;ze.options=Xn;ze.className=Ca;ze.defaultOptions=Vn;ze.moduleName=ie;ze.folderName=Ne;import{jsx as ke,jsxs as Wn}from"react/jsx-runtime";var co="k-list",Jn=[],qn={size:[i.small,i.medium,i.large]},Ma={size:i.medium},re=e=>{let{size:t=Ma.size,virtualization:o,children:n,...r}=e,c,l,m,d=[];return n?n.map((p,N)=>{p.type===_?(p.props.root===!0?(c=p.props.label,p.props.children.map((x,h)=>{d.push(ke(M,{...x.props},`optChild-${h}-${new Date().getTime()}`))})):(d.push(ke(ka,{...p.props,children:p.props.label},`listChild-${N}`)),p.props.children.map((x,h)=>{d.push(ke(M,{...x.props},`fwOptChild-${h}-${new Date().getTime()}`))})),l=ke(_,{label:c,virtualization:o,children:d})):p.type===M&&(d.push(ke(M,{...p.props},`${p.type}-${N}`)),m=ke(He,{virtualization:o,children:d}))}):m=ke(st,{children:"No data found."}),Wn("div",{...r,className:s(e.className,co,k(co,{size:t}),{"k-virtual-list":o}),children:[l,m]})};re.states=Jn;re.options=qn;re.className=co;re.defaultOptions=Ma;re.moduleName=ie;re.folderName=Ne;var Ae="checkbox",we=Ae;import{jsx as Aa}from"react/jsx-runtime";var St="k-checkbox",Qn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Yn={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full]},po={size:i.medium,rounded:u.medium},ee=e=>{let{id:t,checked:o,indeterminate:n,hover:r,focus:c,disabled:l,invalid:m,valid:d,required:p,size:N=po.size,rounded:x=po.rounded,...h}=e;return Aa("span",{className:"k-checkbox-wrap",children:Aa("input",{...h,id:t,type:"checkbox",defaultChecked:o,required:p,className:s(e.className,St,k(St,{size:N,rounded:x}),A(St,{hover:r,focus:c,disabled:l,invalid:m,valid:d,indeterminate:n,checked:o}))})})};ee.states=Qn;ee.options=Yn;ee.className=St;ee.defaultOptions=po;ee.moduleName=Ae;ee.folderName=we;import{jsx as ei}from"react/jsx-runtime";var ga="k-checkbox-list",Zn=[],jn={},Ta={layout:"vertical"},xe=e=>{let{layout:t=Ta.layout,...o}=e;return ei("ul",{...o,className:s(e.className,ga,{[`k-list-${t}`]:t}),children:e.children})};xe.states=Zn;xe.options=jn;xe.className=ga;xe.defaultOptions=Ta;xe.moduleName=Ae;xe.folderName=we;import{jsx as si}from"react/jsx-runtime";var Oa="k-checkbox-list-item",ti=[],oi={},ai={},Le=e=>{let{...t}=e;return si("li",{...t,className:s(e.className,Oa),children:e.children})};Le.states=ti;Le.options=oi;Le.className=Oa;Le.defaultOptions=ai;Le.moduleName=Ae;Le.folderName=we;import{Fragment as Yf,jsx as Qf,jsxs as Zf}from"react/jsx-runtime";import{Fragment as au,jsx as ou,jsxs as su}from"react/jsx-runtime";import{Fragment as cu,jsx as lu,jsxs as du}from"react/jsx-runtime";import{Fragment as bu,jsx as uu,jsxs as Nu}from"react/jsx-runtime";import{jsx as vu}from"react/jsx-runtime";import{jsx as Mu}from"react/jsx-runtime";import{jsx as Et,jsxs as li}from"react/jsx-runtime";var fo="k-list-item",ni=[a.hover,a.focus,a.selected,a.disabled],ii={},ri={},M=e=>{let{text:t,groupLabel:o,group:n,showIcon:r,iconName:c,showCheckbox:l,checked:m,hover:d,focus:p,selected:N,disabled:x,...h}=e,L=t||e.children;return li("li",{...h,className:s(e.className,n?"k-list-group-item":fo,A(fo,{hover:d,focus:p,disabled:x,selected:N})),children:[l&&Et(ee,{checked:m}),r&&Et(g,{icon:c}),Et("span",{className:"k-list-item-text",children:L}),o&&o!==""&&Et("div",{className:"k-list-item-group-label",children:o})]})};M.states=ni;M.options=ii;M.className=fo;M.defaultOptions=ri;M.moduleName=ie;M.folderName=Ne;import{jsx as uo,jsxs as di}from"react/jsx-runtime";var ci="k-list-content",He=e=>{let{virtualization:t,...o}=e;return di("div",{...o,className:s(ci,e.className),children:[uo("ul",{className:s("k-list-ul"),children:e.children}),t&&uo("div",{className:"k-height-container",children:uo("div",{})})]})};import{jsx as Ia}from"react/jsx-runtime";var pi="k-list-group-sticky-header",ya=e=>Ia("div",{className:s(pi,e.className),children:Ia("div",{className:"k-list-header-text",children:e.children})});import{Fragment as mi,jsx as Ra,jsxs as fi}from"react/jsx-runtime";var _=e=>{let{virtualization:t,label:o}=e;return fi(mi,{children:[o&&Ra(ya,{children:o}),e.children&&Ra(He,{virtualization:t,children:e.children})]})};import{jsx as Ka}from"react/jsx-runtime";var ui="k-list-group-item",ka=e=>Ka("li",{className:s(ui,e.className),children:Ka("span",{className:"k-list-item-text",children:e.children})});import{jsx as Li}from"react/jsx-runtime";var bo="k-list-optionlabel",bi=[a.hover,a.focus,a.selected,a.disabled],Ni={},xi={},Ct=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:c,...l}=e;return Li("div",{...l,className:s(bo,A(bo,{hover:o,focus:n,selected:r,disabled:c})),children:t})};Ct.states=bi;Ct.options=Ni;Ct.className=bo;Ct.defaultOptions=xi;import{jsx as Ei}from"react/jsx-runtime";var No="k-list-custom-value",hi=[a.hover,a.focus,a.selected,a.disabled],vi={},Si={},Mt=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:c,...l}=e;return Ei("div",{...l,className:s(No,A(No,{hover:o,focus:n,selected:r,disabled:c})),children:t})};Mt.states=hi;Mt.options=vi;Mt.className=No;Mt.defaultOptions=Si;import{jsx as lb}from"react/jsx-runtime";import{jsx as mb}from"react/jsx-runtime";import{jsx as Nb,jsxs as xb}from"react/jsx-runtime";import{jsx as Sb,jsxs as Eb}from"react/jsx-runtime";import{jsx as Ab}from"react/jsx-runtime";import{jsx as Ib,jsxs as yb}from"react/jsx-runtime";import{jsx as _b,jsxs as Hb}from"react/jsx-runtime";var Pa="dropdown-list",_a="dropdownlist";import{Fragment as ki,jsx as H,jsxs as xo}from"react/jsx-runtime";var Ha="k-dropdownlist",Ci=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Mi={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},Be={showValue:!0,arrowIconName:"caret-alt-down",size:i.medium,rounded:u.medium,fillMode:f.solid},ge=e=>{let{size:t=Be.size,rounded:o=Be.rounded,fillMode:n=Be.fillMode,arrowIconName:r=Be.arrowIconName,showValue:c=Be.showValue,valueIconName:l,prefix:m,suffix:d,value:p,placeholder:N,hover:x,focus:h,valid:L,invalid:S,required:C,loading:T,disabled:O,readonly:z,popup:oe,opened:Xe,adaptive:Tt,adaptiveSettings:Ot,adaptiveTitle:ja,adaptiveSubtitle:es,adaptiveFilter:ts,...os}=e;return xo(ki,{children:[xo(w,{...os,size:t,rounded:o,fillMode:n,hover:x,focus:h,valid:L,invalid:S,required:C,loading:T,disabled:O,readonly:z,className:s(e.className,Ha,{"k-icon-picker":!c&&l}),children:[H(pe,{children:m}),H(Ee,{placeholder:N,value:p,showValue:c,valueIconName:l}),H(X,{valid:L,invalid:S,loading:T,disabled:O}),H(W,{loading:T,disabled:O}),H(me,{children:d}),H(v,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),Xe&&oe&&H(Y,{className:"k-list-container k-dropdownlist-popup",children:oe}),Tt&&H($,{adaptive:!0,...Ot,header:H(j,{actionsEnd:H(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ts,inputValue:p,inputPlaceholder:N,title:ja,subtitle:es}),children:H("div",{className:"k-list-container",children:xo(K,{size:"large",children:[H(M,{text:"List item"}),H(M,{text:"List item"}),H(M,{text:"List item"})]})})})]})};ge.states=Ci;ge.options=Mi;ge.className=Ha;ge.defaultOptions=Be;ge.moduleName=Pa;ge.folderName=_a;import{jsx as bN}from"react/jsx-runtime";import{jsx as vN,jsxs as SN}from"react/jsx-runtime";import{Fragment as ON,jsx as gN,jsxs as TN}from"react/jsx-runtime";import{jsx as KN}from"react/jsx-runtime";import{jsx as wN,jsxs as BN}from"react/jsx-runtime";import{jsx as XN,jsxs as VN}from"react/jsx-runtime";import{Fragment as jN,jsx as YN,jsxs as ZN}from"react/jsx-runtime";import{Fragment as rx,jsx as nx,jsxs as ix}from"react/jsx-runtime";import{Fragment as Cx,jsx as Ex}from"react/jsx-runtime";import{Fragment as Ix,jsx as Ox}from"react/jsx-runtime";import{Fragment as nt,jsx as E,jsxs as R}from"react/jsx-runtime";var za="k-colorgradient-inputs",Ai=[],gi={size:[i.small,i.medium,i.large]},wa={mode:"rgba",size:i.medium},De=e=>{let{mode:t=wa.mode,size:o,...n}=e;return R("div",{...n,className:s(za,"k-hstack"),children:[E("div",{className:"k-vstack",children:E(v,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&R(nt,{children:[R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),E("label",{className:"k-colorgradient-input-label",children:"R"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),E("label",{className:"k-colorgradient-input-label",children:"G"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),E("label",{className:"k-colorgradient-input-label",children:"B"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),E("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&R(nt,{children:[R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"R"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"G"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&R(nt,{children:[R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"H"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"S"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"V"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),E("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&R(nt,{children:[R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"H"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"S"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&E(nt,{children:R("div",{className:"k-vstack k-flex-1",children:[E(Z,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),E("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};De.states=Ai;De.options=gi;De.className=za;De.defaultOptions=wa;import{jsx as Oe,jsxs as Ie}from"react/jsx-runtime";var Ba="k-colorgradient-color-contrast",Ti=[],Oi={},Ii={},Ge=()=>Ie("div",{className:s(Ba,"k-vbox"),children:[Ie("div",{className:"k-contrast-ratio",children:[Oe("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Ie("span",{className:"k-contrast-validation !k-text-success",children:[Oe(g,{icon:"check"}),Oe(g,{icon:"check"})]})]}),Ie("div",{children:[Oe("span",{children:"AA: 4.5"}),Ie("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Oe(g,{icon:"check"})]})]}),Ie("div",{children:[Oe("span",{children:"AAA: 7.0"}),Ie("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Oe(g,{icon:"x"})]})]})]});Ge.states=Ti;Ge.options=Oi;Ge.className=Ba;Ge.defaultOptions=Ii;var Da="color-gradient",Ga="colorgradient";import{jsx as G,jsxs as it}from"react/jsx-runtime";var kt="k-colorgradient",yi=[a.hover,a.focus,a.readonly,a.disabled],Ri={size:[i.small,i.medium,i.large]},J={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"},te=e=>{let{size:t=J.size,mode:o=J.mode,readonly:n=J.readonly,disabled:r=J.disabled,gradientStyle:c=J.gradientStyle,dragHandleStyle:l=J.dragHandleStyle,alphaStyle:m=J.alphaStyle,alphaStyleHorizontal:d=J.alphaStyleHorizontal,contrast:p=J.contrast,dir:N,hover:x,focus:h,hoverHandle:L,focusHandle:S,canvasOrientation:C=J.canvasOrientation,...T}=e;return it("div",{...T,className:s(e.className,kt,k(kt,{size:t}),A(kt,{hover:x,focus:h,readonly:n,disabled:r})),dir:N,children:[!C||C==="horizontal"&&it("div",{className:"k-colorgradient-canvas k-hstack",children:[G("div",{className:"k-hsv-rectangle",style:c,children:G("div",{className:"k-hsv-gradient",children:G("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":L,"k-focus":S}),style:l})})}),it("div",{className:"k-hsv-controls k-hstack",children:[G(Ut,{className:"k-hue-slider",hover:L,focus:S}),o!=="rgb"&&o!=="hsv"&&G(Ut,{className:"k-alpha-slider",hover:L,focus:S,trackStyle:m})]})]}),C==="vertical"&&it("div",{className:"k-colorgradient-canvas k-vstack",children:[G("div",{className:"k-hsv-rectangle",style:c,children:G("div",{className:"k-hsv-gradient",children:G("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":L,"k-focus":S}),style:l})})}),it("div",{className:"k-hsv-controls k-vstack",children:[G(Gt,{className:"k-hue-slider",hover:L,focus:S}),o!=="rgb"&&o!=="hsv"&&G(Gt,{className:"k-alpha-slider",hover:L,focus:S,trackStyle:d})]})]}),G(De,{mode:e.mode,size:t}),p&&G(Ge,{})]})};te.states=yi;te.options=Ri;te.className=kt;te.defaultOptions=J;te.moduleName=Da;te.folderName=Ga;import{jsx as aL}from"react/jsx-runtime";import{jsx as rL}from"react/jsx-runtime";import{jsx as Ki}from"react/jsx-runtime";var Ua=e=>Ki("tr",{children:e.children});import{jsx as Hi}from"react/jsx-runtime";var Lo="k-colorpalette-tile",Pi=[a.hover,a.focus,a.selected],_i={},rt=e=>{let{color:t,tileSize:o,hover:n,focus:r,selected:c,...l}=e,m={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Hi("td",{...l,className:s(e.className,Lo,A(Lo,{hover:n,focus:r,selected:c})),style:m})};rt.states=Pi;rt.options=_i;rt.className=Lo;var Fa="color-palette",Xa="colorpalette";import{jsx as lt}from"react/jsx-runtime";var At="k-colorpalette",zi=[a.disabled],wi={size:[i.small,i.medium,i.large]},ho={columns:10,size:i.medium},he=e=>{let{size:t=ho.size,palette:o,columns:n=ho.columns,tileSize:r,disabled:c,...l}=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)},(N,x)=>{let h=[];p.slice(x*d,(x+1)*d).map((S,C)=>{h.push(lt(rt,{color:S,tileSize:r},C))});let L=lt(Ua,{children:h},x);m.push(L)})}return lt("div",{...l,className:s(e.className,At,A(At,{disabled:c}),k(At,{size:t})),children:lt("table",{className:"k-colorpalette-table",children:lt("tbody",{children:m.length>0?m:e.children})})})};he.states=zi;he.options=wi;he.className=At;he.defaultOptions=ho;he.moduleName=Fa;he.folderName=Xa;var vo={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 RL}from"react/jsx-runtime";import{jsx as Va,jsxs as Gi}from"react/jsx-runtime";var $a="k-color-preview",Bi=[],Di={},ve=e=>{let{color:t,iconName:o,...n}=e;return Gi("span",{...n,className:s(e.className,$a,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Va(g,{icon:o,className:"k-color-preview-icon"}),Va("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};ve.states=Bi;ve.options=Di;ve.className=$a;var Ja="color-editor",qa="coloreditor";import{jsx as U,jsxs as Ue}from"react/jsx-runtime";var gt="k-coloreditor",Ui=[a.focus],Fi={size:[i.small,i.medium,i.large]},Fe={size:i.medium,view:"gradient",palette:vo.office,actionButtons:!0,canvasOrientation:"horizontal"},B=e=>{let{size:t=Fe.size,view:o=Fe.view,palette:n=Fe.palette,color:r,currentColor:c,focus:l,focusView:m,dir:d,group:p,actionButtons:N=Fe.actionButtons,canvasOrientation:x=Fe.canvasOrientation,...h}=e;return Ue("div",{...h,className:s(e.className,"k-flatcolorpicker",gt,k(gt,{size:t}),A(gt,{focus:l})),dir:d,children:[Ue("div",{className:"k-coloreditor-header k-hstack",children:[U("div",{className:"k-coloreditor-header-actions k-hstack",children:p&&Ue(D,{fillMode:"flat",children:[U(v,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),U(v,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),U("div",{className:"k-spacer"}),Ue("div",{className:"k-coloreditor-header-actions k-hstack",children:[U(v,{fillMode:"flat",icon:"droplet-slash",size:t}),Ue("div",{className:"k-coloreditor-preview k-vstack",children:[U(ve,{className:"k-coloreditor-preview-color",color:r}),U(ve,{className:"k-coloreditor-current-color",color:c})]})]})]}),U("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?U(te,{focus:m,size:t,canvasOrientation:x}):U(he,{palette:n,size:t})}),N&&Ue(q,{className:"k-coloreditor-footer",alignment:"start",children:[U(v,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),U(v,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};B.states=Ui;B.options=Fi;B.className=gt;B.defaultOptions=Fe;B.moduleName=Ja;B.folderName=qa;import{jsx as nh}from"react/jsx-runtime";import{jsx as ch}from"react/jsx-runtime";import{jsx as fh}from"react/jsx-runtime";import{jsx as xh}from"react/jsx-runtime";var Wa="color-picker",Qa="colorpicker";import{Fragment as $i,jsx as F,jsxs as Eo}from"react/jsx-runtime";var Ya="k-colorpicker",Xi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],Vi={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},ct={arrowIconName:"caret-alt-down",size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode},le=e=>{let{size:t=ct.size,rounded:o=ct.rounded,fillMode:n=ct.fillMode,arrowIconName:r=ct.arrowIconName,prefix:c,suffix:l,value:m,placeholder:d,hover:p,focus:N,valid:x,invalid:h,required:L,disabled:S,valueIconName:C,popup:T,opened:O,adaptive:z,adaptiveSettings:oe,adaptiveTitle:Xe,adaptiveSubtitle:Tt,...Ot}=e;return Eo($i,{children:[Eo(w,{...Ot,size:t,rounded:o,fillMode:n,hover:p,focus:N,valid:x,invalid:h,required:L,disabled:S,className:s(e.className,Ya,"k-icon-picker"),children:[F(pe,{children:c}),F(Ee,{placeholder:d,value:m,showValue:!1,valueIcon:F(ve,{className:"k-value-icon",color:m,iconName:C}),valueIconName:C}),F(me,{children:l}),F(v,{className:"k-input-button",icon:r,rounded:null,size:t,fillMode:n})]}),O&&T&&F(Y,{className:"k-colorpicker-popup",children:T}),z&&F($,{adaptive:!0,...oe,header:F(j,{actionsEnd:F(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:Xe,subtitle:Tt}),footer:Eo(je,{children:[F(v,{text:"Cancel",size:"large",themeColor:"base"}),F(v,{text:"Set",size:"large",themeColor:"primary"})]}),children:F(B,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};le.states=Xi;le.options=Vi;le.className=Ya;le.defaultOptions=ct;le.moduleName=Wa;le.folderName=Qa;import{jsx as Bh}from"react/jsx-runtime";import{jsx as Xh}from"react/jsx-runtime";import{jsx as qh}from"react/jsx-runtime";import{jsx as Zh}from"react/jsx-runtime";import{jsx as ov}from"react/jsx-runtime";import{jsx as Za}from"react/jsx-runtime";var uv=({value:e,color:t,currentColor:o,...n})=>Za(le,{value:e,opened:!0,popup:Za(B,{group:!0,color:t,currentColor:o}),...n});export{uv as ColorPickerPopupGradient};