UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 67.8 kB
var er=Object.create;var qt=Object.defineProperty;var tr=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames;var sr=Object.getPrototypeOf,nr=Object.prototype.hasOwnProperty;var ar=(e,t)=>{for(var o in t)qt(e,o,{get:t[o],enumerable:!0})},Ds=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of or(t))!nr.call(e,i)&&i!==o&&qt(e,i,{get:()=>t[i],enumerable:!(a=tr(t,i))||a.enumerable});return e};var rr=(e,t,o)=>(o=e!=null?er(sr(e)):{},Ds(t||!e||!e.__esModule?qt(o,"default",{value:e,enumerable:!0}):o,e)),ir=e=>Ds(qt({},"__esModule",{value:!0}),e);var up={};ar(up,{TOOLBAR_CLASSNAME:()=>Ae,Toolbar:()=>qe,default:()=>dp});module.exports=ir(up);var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var I=(e,t)=>n({[`${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"}),O=(e,t)=>{let{valid:o,invalid:a,hover:i,focus:l,checked:p,active:d,selected:f,disabled:N,indeterminate:L,loading:v,empty:m,readonly:M,highlighted:x,...E}=t;return n({"k-valid":o,"k-invalid":a,"k-hover":i,"k-focus":l,"k-checked":p,"k-active":d,"k-selected":f,"k-disabled":N,"k-indeterminate":L&&!p,"k-loading":v,"k-empty":m,"k-readonly":M,"k-highlighted":x},Object.keys(E).reduce((g,T)=>(T.startsWith("k-")?g[T]=E[T]:g[`k-${T}`]=E[T],g),{}))};function Us(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},b={small:"small",medium:"medium",large:"large",full:"full"},u={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},c={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},s={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=require("react/jsx-runtime"),fo="k-font-icon",lr=[],pr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},mr={},At=e=>{let{size:t,themeColor:o,icon:a,rotate:i,flip:l,...p}=e;return a?(0,It.jsx)("span",{...p,className:n(e.className,fo,I(fo,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):(0,It.jsx)(It.Fragment,{})};At.states=lr;At.options=pr;At.className=fo;At.defaultOptions=mr;var Gs=At;var We=require("react/jsx-runtime"),bo="k-svg-icon",cr=[],dr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},Fs={viewBox:"0 0 24 24"},Tt=e=>{let{size:t,themeColor:o,rotate:a,flip:i,viewBox:l=Fs.viewBox,icon:p,...d}=e;if(!p)return(0,We.jsx)(We.Fragment,{});p==="none"&&{...d,className:n(e.className,bo,"k-none")};let f=typeof p=="object"&&p.name&&p.name;return(0,We.jsx)("span",{...d,className:n(e.className,bo,I("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:(0,We.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:l,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:e.children})})};Tt.states=cr;Tt.options=dr;Tt.className=bo;Tt.defaultOptions=Fs;var No=Tt;var Lo=rr(require("@progress/kendo-svg-icons"));var $s="icon",Xs="icons";var Te=require("react/jsx-runtime"),Wt="k-icon",ur=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),fr=[],br={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},xo={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{size:t,themeColor:o,icon:a,type:i=xo.type,rotate:l,flip:p,viewBox:d=xo.viewBox,...f}=e;if(!a)return(0,Te.jsx)(Te.Fragment,{});if(i==="svg"){if(a==="none")return(0,Te.jsx)(No,{...f,className:n(e.className,Wt),icon:a,size:t});let N=Lo[a]?a:ur(`${a}-icon`);return Lo[N]?(0,Te.jsx)(No,{...f,className:n(e.className,Wt),icon:Lo[N],size:t,themeColor:o,rotate:l,flip:p,viewBox:d}):(0,Te.jsx)(Te.Fragment,{})}return(0,Te.jsx)(Gs,{...f,className:n(e.className,Wt),icon:a,size:t,themeColor:o,rotate:l,flip:p})};k.states=fr;k.options=br;k.defaultOptions=xo;k.className=Wt;k.moduleName=$s;k.folderName=Xs;var Mo="button",Vs=Mo;var ie=require("react/jsx-runtime"),gt="k-button",Nr=["icon-button"],Lr=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],xr={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark,c.inverse]},Qe={size:r.medium,rounded:b.medium,fillMode:u.solid,themeColor:c.base,showArrow:!1,arrowIconName:"caret-alt-down"},S=e=>{let{size:t=Qe.size,rounded:o=Qe.rounded,fillMode:a=Qe.fillMode,themeColor:i=Qe.themeColor,showArrow:l=Qe.showArrow,arrowIconName:p=Qe.arrowIconName,variant:d,hover:f,focus:N,active:L,selected:v,disabled:m,icon:M,text:x,iconClassName:E,...g}=e,T=M!==void 0,R=e.children!==void 0;return(0,ie.jsxs)("button",{...g,className:n(e.className,gt,Us(gt,d),I(gt,{size:t,rounded:o,fillMode:a,themeColor:i}),O(gt,{hover:f,focus:N,active:L,disabled:m,selected:v}),{"k-icon-button":!x&&!R&&T}),children:[M&&(0,ie.jsx)(k,{className:n(E,"k-button-icon"),icon:M}),x?(0,ie.jsxs)(ie.Fragment,{children:[x&&(0,ie.jsx)("span",{className:"k-button-text",children:x}),e.children]}):e.children&&(0,ie.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,ie.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,ie.jsx)(k,{icon:p})})]})};S.states=Lr;S.options=xr;S.variants=Nr;S.className=gt;S.defaultOptions=Qe;S.moduleName=Mo;S.folderName=Vs;var Js=require("react/jsx-runtime"),Qt=e=>(0,Js.jsx)(S,{icon:"folder",...e,children:void 0});var qs=require("react/jsx-runtime"),ho=e=>(0,qs.jsx)(S,{icon:"folder",children:"Button",...e});var Mr=require("react/jsx-runtime");var So="button",Ws=So;var Ys=require("react/jsx-runtime"),Ot="k-button-group",hr=[s.disabled],Sr={fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},Qs={fillMode:u.solid},D=e=>{let{fillMode:t=Qs.fillMode,disabled:o,stretched:a,...i}=e;return(0,Ys.jsx)("div",{...i,className:n(e.className,Ot,I(Ot,{fillMode:t}),O(Ot,{disabled:o}),{[`${Ot}-stretched`]:a}),children:e.children})};D.states=hr;D.options=Sr;D.className=Ot;D.defaultOptions=Qs;D.moduleName=So;D.folderName=Ws;var vo=require("react/jsx-runtime");var Eo=require("react/jsx-runtime");var ko=require("react/jsx-runtime");var Co=require("react/jsx-runtime");var yt="input",Yt=yt;var Zs=require("react/jsx-runtime"),Zt="k-input",vr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Er={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},jt={size:r.medium,rounded:r.medium,fillMode:u.solid},K=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:l,loading:p,readonly:d,size:f=jt.size,rounded:N=jt.rounded,fillMode:L=jt.fillMode,...v}=e;return(0,Zs.jsx)("span",{...v,className:n(e.className,Zt,I(Zt,{size:f,rounded:N,fillMode:L}),O(Zt,{hover:t,focus:o,disabled:a,invalid:i,valid:l,loading:p,readonly:d}))})};K.states=vr;K.options=Er;K.className=Zt;K.defaultOptions=jt;K.moduleName=yt;K.folderName=Yt;var js=require("react/jsx-runtime"),eo="k-picker",kr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Cr={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},to={size:r.medium,rounded:b.medium,fillMode:u.solid},W=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:l,loading:p,readonly:d,size:f=to.size,rounded:N=to.rounded,fillMode:L=to.fillMode,...v}=e;return(0,js.jsx)("span",{...v,className:n(e.className,eo,I(eo,{size:f,rounded:N,fillMode:L}),O(eo,{hover:t,focus:o,disabled:a,invalid:i,valid:l,loading:p,readonly:d})),children:e.children})};W.states=kr;W.options=Cr;W.className=eo;W.defaultOptions=to;W.moduleName=yt;W.folderName=Yt;var mt=require("react/jsx-runtime"),en="k-clear-value",Ir=[s.disabled,s.loading,s.readonly],Ar={},le=e=>{let{disabled:t,loading:o,readonly:a,value:i}=e;return t||a||o||!i?(0,mt.jsx)(mt.Fragment,{}):(0,mt.jsx)("span",{className:n(e.className,en),children:(0,mt.jsx)(k,{icon:"x"})})};le.states=Ir;le.options=Ar;le.className=en;var tn=require("react/jsx-runtime"),Io="k-input-inner",Tr=[],gr={},oo={type:"text",autocomplete:"off",value:"",placeholder:""},pe=e=>{let{value:t=oo.value,type:o=oo.type,placeholder:a=oo.placeholder,autocomplete:i=oo.autocomplete,...l}=e;return(0,tn.jsx)("input",{...l,type:o,className:n(e.className,Io,I(Io,e)),placeholder:a,autoComplete:i,defaultValue:t})};pe.states=Tr;pe.options=gr;pe.className=Io;var Kt=require("react/jsx-runtime"),Ao="k-input-inner",Or=[],yr={},Ye=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:i,valueIconName:l,...p}=e;return(0,Kt.jsxs)("span",{...p,className:n(e.className,Ao,I(Ao,e)),children:[i,!i&&l&&(0,Kt.jsx)(k,{className:"k-input-value-icon",icon:l}),a&&!t&&o,a&&t&&(0,Kt.jsx)("span",{className:"k-input-value-text",children:t})]})};Ye.states=Or;Ye.options=yr;Ye.className=Ao;var sn=require("react/jsx-runtime"),To="k-input-inner",Kr=[],Rr={},on={value:"",placeholder:""},go=e=>{let{value:t=on.value,placeholder:o=on.placeholder,rows:a,...i}=e;return(0,sn.jsx)("textarea",{...i,className:n(e.className,To,I(To,e)),placeholder:o,rows:a,defaultValue:t})};go.states=Kr;go.options=Rr;go.className=To;var Rt=require("react/jsx-runtime"),nn="k-input-loading-icon",_r=[s.disabled,s.loading],ee=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Rt.jsx)(Rt.Fragment,{}):(0,Rt.jsx)("span",{className:n(e.className,nn,"k-icon k-i-loading")})};ee.states=_r;ee.className=nn;var _t=require("react/jsx-runtime"),an="k-input-validation-icon",Pr=[s.valid,s.invalid,s.disabled,s.loading],wr={},Q=e=>{let{valid:t,invalid:o,disabled:a,loading:i}=e,l=o?"warning-circle":"check-circle";return a||i||!!!(t||o)?(0,_t.jsx)(_t.Fragment,{}):(0,_t.jsx)(k,{className:n(an),icon:l})};Q.states=Pr;Q.options=wr;Q.className=an;var Pt=require("react/jsx-runtime"),Br="k-input-prefix",zr={direction:"horizontal"},Le=e=>{let{direction:t=zr.direction,...o}=e;return e.children?(0,Pt.jsx)("span",{...o,className:n(Br,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Pt.jsx)(Pt.Fragment,{})};var wt=require("react/jsx-runtime"),Hr="k-input-suffix",Dr={direction:"horizontal"},xe=e=>{let{direction:t=Dr.direction,...o}=e;return e.children?(0,wt.jsx)("span",{...o,className:n(Hr,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,wt.jsx)(wt.Fragment,{})};var Ur=require("react/jsx-runtime");var Gr=require("react/jsx-runtime");var ln=require("react/jsx-runtime"),rn="k-input-separator",Fr={direction:"vertical"},ge=e=>{let{direction:t=Fr.direction,...o}=e;return(0,ln.jsx)("span",{...o,className:n(rn,e.className,{[`${rn}-${t}`]:t})})};var Bt=require("react/jsx-runtime"),pn="k-color-preview",$r=[],Xr={},we=e=>{let{color:t,iconName:o,...a}=e;return(0,Bt.jsxs)("span",{...a,className:n(e.className,pn,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&(0,Bt.jsx)(k,{icon:o,className:"k-color-preview-icon"}),(0,Bt.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};we.states=$r;we.options=Xr;we.className=pn;var Oo="popup",mn=Oo;var yo=require("react/jsx-runtime"),cn="k-animation-container",Vr=[],Jr={},dn={positionMode:"absolute"},Me=e=>{let{positionMode:t=dn.positionMode,animationStyle:o,offset:a,...i}=e;return(0,yo.jsx)("div",{...i,style:{...a,...e.style},className:n(e.className,cn,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:(0,yo.jsx)("div",{className:"k-child-animation-container",style:o,children:e.children})})};Me.states=Vr;Me.options=Jr;Me.className=cn;Me.defaultOptions=dn;Me.moduleName=Oo;Me.folderName=mn;var Ko="popup",un=Ko;var Ro=require("react/jsx-runtime"),fn="k-popup",qr=[],Wr={},bn={positionMode:"absolute"},U=e=>{let{offset:t,positionMode:o=bn.positionMode,animationStyle:a,...i}=e;return(0,Ro.jsx)(Me,{positionMode:o,offset:t,animationStyle:a,children:(0,Ro.jsx)("div",{...i,className:n(e.className,fn),children:e.children})})};U.states=qr;U.options=Wr;U.className=fn;U.defaultOptions=bn;U.moduleName=Ko;U.folderName=un;var _o="action-buttons",Nn=_o;var Ln=require("react/jsx-runtime"),so="k-actions",Qr=[],Yr={},Po={alignment:"start",orientation:"horizontal"},he=e=>{let{alignment:t=Po.alignment,orientation:o=Po.orientation,...a}=e;return(0,Ln.jsx)("div",{...a,className:n(so,{[`${so}-${t}`]:t,[`${so}-${o}`]:o},e.className),children:e.children})};he.states=Qr;he.options=Yr;he.className=so;he.defaultOptions=Po;he.moduleName=_o;he.folderName=Nn;var Mn=require("react/jsx-runtime"),Zr="k-actionsheet-footer",xn={alignment:"stretched",orientation:"horizontal"},zt=e=>{let{alignment:t=xn.alignment,orientation:o=xn.orientation,template:a,as:i=a?"div":he,...l}=e;return(0,Mn.jsx)(i,{...l,...!a&&{alignment:t,orientation:o},className:n(e.className,Zr),children:e.children})};var wo="searchbox",hn=wo;var Be=require("react/jsx-runtime"),Sn="k-searchbox",jr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],ei={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},Bo={showIcon:!0,icon:"search",size:K.defaultOptions.size,rounded:K.defaultOptions.rounded,fillMode:K.defaultOptions.fillMode},me=e=>{let{value:t,placeholder:o,size:a,rounded:i,fillMode:l,hover:p,focus:d,valid:f,invalid:N,required:L,loading:v,disabled:m,showIcon:M=Bo.showIcon,icon:x=Bo.icon,...E}=e;return(0,Be.jsxs)(K,{...E,size:a,rounded:i,fillMode:l,hover:p,focus:d,valid:f,invalid:N,required:L,loading:v,disabled:m,className:n(e.className,Sn),children:[M&&(0,Be.jsx)(k,{className:"k-input-icon",icon:x}),(0,Be.jsx)(pe,{placeholder:o,value:t}),(0,Be.jsx)(ee,{...e}),(0,Be.jsx)(Q,{...e}),(0,Be.jsx)(le,{...e})]})};me.states=jr;me.options=ei;me.className=Sn;me.defaultOptions=Bo;me.moduleName=wo;me.folderName=hn;var ti=require("react/jsx-runtime");var zo="textbox",vn=zo;var X=require("react/jsx-runtime"),En="k-textbox",oi=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],si={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},Ze={showClearButton:!0,showValidationIcon:!0,size:K.defaultOptions.size,rounded:K.defaultOptions.rounded,fillMode:K.defaultOptions.fillMode,separators:!0},Se=e=>{let{size:t=Ze.size,rounded:o=Ze.rounded,fillMode:a=Ze.fillMode,separators:i=Ze.separators,showClearButton:l=Ze.showClearButton,showValidationIcon:p=Ze.showValidationIcon,prefix:d,suffix:f,type:N,value:L,placeholder:v,hover:m,focus:M,valid:x,invalid:E,required:g,loading:T,disabled:R,readonly:J,...Pe}=e;return(0,X.jsxs)(K,{...Pe,size:t,rounded:o,fillMode:a,hover:m,focus:M,valid:x,invalid:E,required:g,loading:T,disabled:R,readonly:J,className:n(e.className,En),children:[d&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Le,{children:d}),i&&(0,X.jsx)(ge,{})]}),(0,X.jsx)(pe,{placeholder:v,value:L,type:N}),p&&(0,X.jsx)(Q,{valid:x,invalid:E,loading:T,disabled:R}),(0,X.jsx)(ee,{loading:T,disabled:R}),l&&(0,X.jsx)(le,{loading:T,disabled:R,readonly:J,value:L}),f&&(0,X.jsxs)(X.Fragment,{children:[i&&(0,X.jsx)(ge,{}),(0,X.jsx)(xe,{children:f})]})]})};Se.states=oi;Se.options=si;Se.className=En;Se.defaultOptions=Ze;Se.moduleName=zo;Se.folderName=vn;var ni=require("react/jsx-runtime");var Cn=require("react/jsx-runtime");var In=require("react/jsx-runtime");var Y=require("react/jsx-runtime"),An="k-actionsheet-titlebar",ai={},te=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:i,filter:l,input:p,inputValue:d,inputPlaceholder:f,adaptive:N,children:L,...v}=e;return(0,Y.jsxs)("div",{...v,className:n(e.className,An),children:[(0,Y.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[a&&(0,Y.jsx)("div",{className:"k-actionsheet-actions",children:a}),!L&&(0,Y.jsxs)("div",{className:"k-actionsheet-title",children:[t&&(0,Y.jsx)("div",{className:"k-text-center",children:t}),o&&(0,Y.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),L&&(0,Y.jsx)("div",{className:"k-actionsheet-title",children:L}),i&&(0,Y.jsx)("div",{className:"k-actionsheet-actions",children:i})]}),(p||l)&&(0,Y.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?(0,Y.jsx)(Se,{value:d,placeholder:f,size:N?"large":"medium"}):(0,Y.jsx)(me,{placeholder:"Filter",size:N?"large":"medium"})})]})};te.className=An;te.defaultOptions=ai;var ct=require("react/jsx-runtime"),Ho="k-actionsheet-view",ri=[],ii={},li={},dt=e=>{let{adaptive:t,animated:o,children:a,header:i,footer:l,...p}=e,d=(i==null?void 0:i.type)===te&&(0,ct.jsx)(te,{adaptive:t,...i==null?void 0:i.props}),f=(l==null?void 0:l.type)===zt&&(0,ct.jsx)(zt,{...l==null?void 0:l.props});return(0,ct.jsxs)("div",{...p,className:n(e.className,Ho,{[`${Ho}-animated`]:o}),children:[d,(0,ct.jsx)("div",{className:"k-actionsheet-content",children:a}),f]})};dt.states=ri;dt.options=ii;dt.className=Ho;dt.defaultOptions=li;var Ht="action-sheet",no=Ht;var je=require("react/jsx-runtime"),Tn="k-actionsheet",pi=[],mi={},Dt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Z=e=>{let{side:t=Dt.side,fullscreen:o=Dt.fullscreen,adaptive:a=Dt.adaptive,overlay:i=Dt.overlay,template:l,children:p,header:d,footer:f,...N}=e;return(0,je.jsxs)("div",{className:"k-actionsheet-container",children:[i&&(0,je.jsx)("div",{className:"k-overlay"}),(0,je.jsx)(Me,{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:(0,je.jsx)("div",{...N,className:n(e.className,Tn,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:l||(0,je.jsx)(dt,{header:d,footer:f,adaptive:a,...e,children:p})})})]})};Z.states=pi;Z.options=mi;Z.className=Tn;Z.defaultOptions=Dt;Z.moduleName=Ht;Z.folderName=no;var On=require("react/jsx-runtime"),gn="k-actionsheet-container",ci=[],di={},ui={},ut=e=>{let{children:t,...o}=e;return(0,On.jsx)("div",{...o,className:gn,children:t})};ut.states=ci;ut.options=di;ut.className=gn;ut.defaultOptions=ui;ut.moduleName=Ht;ut.folderName=no;var fi=require("react/jsx-runtime");var oe=require("react/jsx-runtime"),Do="k-actionsheet-item",bi=[s.hover,s.focus,s.selected,s.disabled],Uo=e=>{let{iconName:t,text:o,description:a,hover:i,focus:l,selected:p,disabled:d,...f}=e;return(0,oe.jsxs)("span",{...f,className:n(e.className,Do,O(Do,{hover:i,focus:l,selected:p,disabled:d})),children:[!e.children&&(0,oe.jsx)(oe.Fragment,{children:(0,oe.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,oe.jsx)("span",{className:"k-icon-wrap",children:(0,oe.jsx)(k,{className:"k-actionsheet-item-icon",icon:t})}),(0,oe.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,oe.jsx)("span",{className:"k-actionsheet-item-title",children:o}),a&&(0,oe.jsx)("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Uo.states=bi;Uo.className=Do;var yn=require("react/jsx-runtime");var Ni=require("react/jsx-runtime");var Li=require("react/jsx-runtime");var xi=require("react/jsx-runtime");var Go="slider",Rn=Go;var ce=require("react/jsx-runtime"),Ut="k-slider",Mi=[s.hover,s.focus,s.active,s.disabled,s.readonly],hi={},ze={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},q=e=>{let{type:t=ze.type,orientation:o=ze.orientation,readonly:a=ze.readonly,disabled:i=ze.disabled,handlePosition:l=ze.handlePosition,showButtons:p=ze.showButtons,showTicks:d=ze.showTicks,hover:f,focus:N,active:L,trackStyle:v,dir:m,...M}=e,x,E;return o==="horizontal"?(x=m==="rtl"?"caret-alt-left":"caret-alt-right",E=m==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(x="caret-alt-up",E="caret-alt-down"),(0,ce.jsxs)("div",{...M,className:n(Ut,e.className,O(Ut,{readonly:a,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:m,children:[p&&(0,ce.jsx)(S,{className:"k-button-decrease",rounded:"full",icon:E}),(0,ce.jsxs)("div",{className:"k-slider-track-wrap",children:[d&&(0,ce.jsx)("ul",{className:"k-reset k-slider-items",children:e.children}),(0,ce.jsxs)("div",{className:"k-slider-track",style:v,children:[(0,ce.jsx)("div",{className:"k-slider-selection"}),t==="range"&&(0,ce.jsx)("span",{className:n("k-draghandle","k-draghandle-start",O(Ut,{hover:f,focus:N,active:L}))}),(0,ce.jsx)("span",{className:n("k-draghandle",`k-draghandle-${l}`,O(Ut,{hover:f,focus:N,active:L}))})]})]}),p&&(0,ce.jsx)(S,{className:"k-button-increase",rounded:"full",icon:x})]})};q.states=Mi;q.options=hi;q.className=Ut;q.defaultOptions=ze;q.moduleName=Go;q.folderName=Rn;var Fo=require("react/jsx-runtime"),_n="k-tick",Si=[],vi={},Pn={label:!1},He=e=>{let{style:t,label:o=Pn.label,orientation:a,large:i,text:l,...p}=e;return(0,Fo.jsx)("li",{...p,className:n(e.className,_n,{[`k-tick-${a}`]:a,"k-tick-large":i}),style:t,children:o&&(0,Fo.jsx)("span",{className:"k-label",children:l})})};He.states=Si;He.options=vi;He.className=_n;He.defaultOptions=Pn;var $o=require("react/jsx-runtime");var Xo=require("react/jsx-runtime");var Vo=require("react/jsx-runtime");var Jo=require("react/jsx-runtime");var wn=require("react/jsx-runtime"),qo=e=>(0,wn.jsx)(q,{type:"gradient",showButtons:!1,showTicks:!1,...e});var Bn=require("react/jsx-runtime"),Wo=e=>(0,Bn.jsx)(q,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});var Gt=require("react/jsx-runtime"),zn="k-spin-button",Ci=[],Ii={size:[r.small,r.medium,r.large],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},Qo={size:r.medium,fillMode:u.solid},De=e=>{let{size:t=Qo.size,fillMode:o=Qo.fillMode,...a}=e;return(0,Gt.jsxs)("span",{...a,className:n(zn,e.className),children:[(0,Gt.jsx)(S,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),(0,Gt.jsx)(S,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};De.states=Ci;De.options=Ii;De.className=zn;De.defaultOptions=Qo;De.moduleName=null;De.folderName=null;var Hn="numeric-textbox",Dn="numerictextbox";var G=require("react/jsx-runtime"),Un="k-numerictextbox",Ai=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Ti={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},et={showSpinButton:!0,showClearButton:!0,size:K.defaultOptions.size,rounded:K.defaultOptions.rounded,fillMode:K.defaultOptions.fillMode,separators:!0},P=e=>{let{size:t=et.size,rounded:o=et.rounded,fillMode:a=et.fillMode,separators:i=et.separators,showClearButton:l=et.showClearButton,showSpinButton:p=et.showSpinButton,prefix:d,suffix:f,value:N,placeholder:L,hover:v,focus:m,valid:M,invalid:x,required:E,loading:g,disabled:T,readonly:R,...J}=e;return(0,G.jsxs)(K,{...J,size:t,rounded:o,fillMode:a,hover:v,focus:m,valid:M,invalid:x,required:E,loading:g,disabled:T,readonly:R,className:n(e.className,Un),children:[d&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Le,{children:d}),i&&(0,G.jsx)(ge,{})]}),(0,G.jsx)(pe,{placeholder:L,value:N}),(0,G.jsx)(Q,{valid:M,invalid:x,loading:g,disabled:T}),(0,G.jsx)(ee,{loading:g,disabled:T}),l&&(0,G.jsx)(le,{loading:g,disabled:T,readonly:R,value:N}),f&&(0,G.jsxs)(G.Fragment,{children:[i&&(0,G.jsx)(ge,{}),(0,G.jsx)(xe,{children:f})]}),p&&(0,G.jsx)(De,{className:"k-input-spinner",size:t,fillMode:a})]})};P.states=Ai;P.options=Ti;P.className=Un;P.defaultOptions=et;P.moduleName=Hn;P.folderName=Dn;var gi=require("react/jsx-runtime");var Fn=require("react/jsx-runtime"),Oi="k-no-data",Ft=e=>(0,Fn.jsx)("span",{className:n(Oi,e.className),children:e.children});var Oe="list",Ue=Oe;var ve=require("react/jsx-runtime"),Yo="k-list",yi=[],Ki={size:[r.small,r.medium,r.large]},$n={size:r.medium},_=e=>{let{size:t=$n.size,virtualization:o,children:a,optionLabel:i,customValue:l,screenReaders:p,...d}=e,f,N,L,v,m=[];return a?a.map((M,x)=>{M.type===F?(M.props.root===!0?(f=M.props.label,M.props.children.map((E,g)=>{m.push((0,ve.jsx)(A,{...E.props},`optChild-${g}-${new Date().getTime()}`))})):M.props.children.forEach((E,g)=>{let T="";g===0&&(T=M.props.label),m.push((0,ve.jsx)(A,{className:g===0?"k-first":"",...E.props,groupLabel:T},`groupLabel-${g}-${new Date().getTime()}`))}),N=(0,ve.jsx)(F,{label:f,virtualization:o,children:m})):M.type===A&&(m.push((0,ve.jsx)(A,{...M.props},`${M.type}-${x}`)),L=(0,ve.jsx)(ft,{virtualization:o,children:m}),p&&(v=(0,ve.jsxs)(Ft,{className:"k-sr-only",children:[m.length," items found."]})))}):v=(0,ve.jsx)(Ft,{children:"No data found."}),(0,ve.jsxs)("div",{...d,className:n(e.className,Yo,I(Yo,{size:t}),{"k-virtual-list":o}),children:[i,l,N,L,v]})};_.states=yi;_.options=Ki;_.className=Yo;_.defaultOptions=$n;_.moduleName=Oe;_.folderName=Ue;var Vn=require("react/jsx-runtime"),Xn="k-list-container",Ri=[],_i={},Pi={},bt=e=>{let{...t}=e;return(0,Vn.jsx)("div",{...t,className:n(e.className,Xn),children:e.children})};bt.states=Ri;bt.options=_i;bt.className=Xn;bt.defaultOptions=Pi;bt.moduleName=Oe;bt.folderName=Ue;var Ee=require("react/jsx-runtime"),Zo="k-list",wi=[],Bi={size:[r.small,r.medium,r.large]},Jn={size:r.medium},ye=e=>{let{size:t=Jn.size,virtualization:o,children:a,...i}=e,l,p,d,f=[];return a?a.map((N,L)=>{N.type===F?(N.props.root===!0?(l=N.props.label,N.props.children.map((v,m)=>{f.push((0,Ee.jsx)(A,{...v.props},`optChild-${m}-${new Date().getTime()}`))})):(f.push((0,Ee.jsx)(qn,{...N.props,children:N.props.label},`listChild-${L}`)),N.props.children.map((v,m)=>{f.push((0,Ee.jsx)(A,{...v.props},`fwOptChild-${m}-${new Date().getTime()}`))})),p=(0,Ee.jsx)(F,{label:l,virtualization:o,children:f})):N.type===A&&(f.push((0,Ee.jsx)(A,{...N.props},`${N.type}-${L}`)),d=(0,Ee.jsx)(ft,{virtualization:o,children:f}))}):d=(0,Ee.jsx)(Ft,{children:"No data found."}),(0,Ee.jsxs)("div",{...i,className:n(e.className,Zo,I(Zo,{size:t}),{"k-virtual-list":o}),children:[p,d]})};ye.states=wi;ye.options=Bi;ye.className=Zo;ye.defaultOptions=Jn;ye.moduleName=Oe;ye.folderName=Ue;var tt="checkbox",Nt=tt;var es=require("react/jsx-runtime"),ao="k-checkbox",zi=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],Hi={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full]},jo={size:r.medium,rounded:b.medium},ke=e=>{let{id:t,checked:o,indeterminate:a,hover:i,focus:l,disabled:p,invalid:d,valid:f,required:N,size:L=jo.size,rounded:v=jo.rounded,...m}=e;return(0,es.jsx)("span",{className:"k-checkbox-wrap",children:(0,es.jsx)("input",{...m,id:t,type:"checkbox",defaultChecked:o,required:N,className:n(e.className,ao,I(ao,{size:L,rounded:v}),O(ao,{hover:i,focus:l,disabled:p,invalid:d,valid:f,indeterminate:a,checked:o}))})})};ke.states=zi;ke.options=Hi;ke.className=ao;ke.defaultOptions=jo;ke.moduleName=tt;ke.folderName=Nt;var Yn=require("react/jsx-runtime"),Wn="k-checkbox-list",Di=[],Ui={},Qn={layout:"vertical"},Ge=e=>{let{layout:t=Qn.layout,...o}=e;return(0,Yn.jsx)("ul",{...o,className:n(e.className,Wn,{[`k-list-${t}`]:t}),children:e.children})};Ge.states=Di;Ge.options=Ui;Ge.className=Wn;Ge.defaultOptions=Qn;Ge.moduleName=tt;Ge.folderName=Nt;var jn=require("react/jsx-runtime"),Zn="k-checkbox-list-item",Gi=[],Fi={},$i={},Fe=e=>{let{...t}=e;return(0,jn.jsx)("li",{...t,className:n(e.className,Zn),children:e.children})};Fe.states=Gi;Fe.options=Fi;Fe.className=Zn;Fe.defaultOptions=$i;Fe.moduleName=tt;Fe.folderName=Nt;var os=require("react/jsx-runtime");var ss=require("react/jsx-runtime");var ns=require("react/jsx-runtime");var as=require("react/jsx-runtime");var Xi=require("react/jsx-runtime");var Vi=require("react/jsx-runtime");var ot=require("react/jsx-runtime"),rs="k-list-item",Ji=[s.hover,s.focus,s.selected,s.disabled],qi={},Wi={},A=e=>{let{text:t,groupLabel:o,group:a,showIcon:i,iconName:l,showCheckbox:p,checked:d,hover:f,focus:N,selected:L,disabled:v,...m}=e,M=t||e.children;return(0,ot.jsxs)("li",{...m,className:n(e.className,a?"k-list-group-item":rs,O(rs,{hover:f,focus:N,disabled:v,selected:L})),children:[p&&(0,ot.jsx)(ke,{checked:d}),i&&(0,ot.jsx)(k,{icon:l}),(0,ot.jsx)("span",{className:"k-list-item-text",children:M}),o&&o!==""&&(0,ot.jsx)("div",{className:"k-list-item-group-label",children:o})]})};A.states=Ji;A.options=qi;A.className=rs;A.defaultOptions=Wi;A.moduleName=Oe;A.folderName=Ue;var Lt=require("react/jsx-runtime"),Qi="k-list-content",ft=e=>{let{virtualization:t,...o}=e;return(0,Lt.jsxs)("div",{...o,className:n(Qi,e.className),children:[(0,Lt.jsx)("ul",{className:n("k-list-ul"),children:e.children}),t&&(0,Lt.jsx)("div",{className:"k-height-container",children:(0,Lt.jsx)("div",{})})]})};var is=require("react/jsx-runtime"),Yi="k-list-group-sticky-header",ea=e=>(0,is.jsx)("div",{className:n(Yi,e.className),children:(0,is.jsx)("div",{className:"k-list-header-text",children:e.children})});var st=require("react/jsx-runtime"),F=e=>{let{virtualization:t,label:o}=e;return(0,st.jsxs)(st.Fragment,{children:[o&&(0,st.jsx)(ea,{children:o}),e.children&&(0,st.jsx)(ft,{virtualization:t,children:e.children})]})};var ls=require("react/jsx-runtime"),Zi="k-list-group-item",qn=e=>(0,ls.jsx)("li",{className:n(Zi,e.className),children:(0,ls.jsx)("span",{className:"k-list-item-text",children:e.children})});var ta=require("react/jsx-runtime"),ps="k-list-optionlabel",ji=[s.hover,s.focus,s.selected,s.disabled],el={},tl={},ro=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:l,...p}=e;return(0,ta.jsx)("div",{...p,className:n(ps,O(ps,{hover:o,focus:a,selected:i,disabled:l})),children:t})};ro.states=ji;ro.options=el;ro.className=ps;ro.defaultOptions=tl;var oa=require("react/jsx-runtime"),ms="k-list-custom-value",ol=[s.hover,s.focus,s.selected,s.disabled],sl={},nl={},$e=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:l,...p}=e;return(0,oa.jsx)("div",{...p,className:n(ms,O(ms,{hover:o,focus:a,selected:i,disabled:l})),children:t})};$e.states=ol;$e.options=sl;$e.className=ms;$e.defaultOptions=nl;var al=require("react/jsx-runtime");var rl=require("react/jsx-runtime");var sa=require("react/jsx-runtime");var na=require("react/jsx-runtime");var il=require("react/jsx-runtime");var aa=require("react/jsx-runtime");var ra=require("react/jsx-runtime");var ia="dropdown-list",la="dropdownlist";var w=require("react/jsx-runtime"),pa="k-dropdownlist",ll=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],pl={size:[r.small,r.medium,r.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},xt={showValue:!0,arrowIconName:"caret-alt-down",size:r.medium,rounded:b.medium,fillMode:u.solid},Ce=e=>{let{size:t=xt.size,rounded:o=xt.rounded,fillMode:a=xt.fillMode,arrowIconName:i=xt.arrowIconName,showValue:l=xt.showValue,valueIconName:p,prefix:d,suffix:f,value:N,placeholder:L,hover:v,focus:m,valid:M,invalid:x,required:E,loading:g,disabled:T,readonly:R,popup:J,opened:Pe,adaptive:kt,adaptiveSettings:Ct,adaptiveTitle:co,adaptiveSubtitle:uo,adaptiveFilter:Za,...ja}=e;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(W,{...ja,size:t,rounded:o,fillMode:a,hover:v,focus:m,valid:M,invalid:x,required:E,loading:g,disabled:T,readonly:R,className:n(e.className,pa,{"k-icon-picker":!l&&p}),children:[(0,w.jsx)(Le,{children:d}),(0,w.jsx)(Ye,{placeholder:L,value:N,showValue:l,valueIconName:p}),(0,w.jsx)(Q,{valid:M,invalid:x,loading:g,disabled:T}),(0,w.jsx)(ee,{loading:g,disabled:T}),(0,w.jsx)(xe,{children:f}),(0,w.jsx)(S,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),Pe&&J&&(0,w.jsx)(U,{className:"k-list-container k-dropdownlist-popup",children:J}),kt&&(0,w.jsx)(Z,{adaptive:!0,...Ct,header:(0,w.jsx)(te,{actionsEnd:(0,w.jsx)(S,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Za,inputValue:N,inputPlaceholder:L,title:co,subtitle:uo}),children:(0,w.jsx)("div",{className:"k-list-container",children:(0,w.jsxs)(_,{size:"large",children:[(0,w.jsx)(A,{text:"List item"}),(0,w.jsx)(A,{text:"List item"}),(0,w.jsx)(A,{text:"List item"})]})})})]})};Ce.states=ll;Ce.options=pl;Ce.className=pa;Ce.defaultOptions=xt;Ce.moduleName=ia;Ce.folderName=la;var ml=require("react/jsx-runtime");var ma=require("react/jsx-runtime");var cs=require("react/jsx-runtime");var cl=require("react/jsx-runtime");var ca=require("react/jsx-runtime");var da=require("react/jsx-runtime");var ds=require("react/jsx-runtime");var us=require("react/jsx-runtime");var ua=require("react/jsx-runtime");var fa=require("react/jsx-runtime");var h=require("react/jsx-runtime"),ba="k-colorgradient-inputs",dl=[],ul={size:[r.small,r.medium,r.large]},Na={mode:"rgba",size:r.medium},Mt=e=>{let{mode:t=Na.mode,size:o,...a}=e;return(0,h.jsxs)("div",{...a,className:n(ba,"k-hstack"),children:[(0,h.jsx)("div",{className:"k-vstack",children:(0,h.jsx)(S,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]}),(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]}),(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,h.jsxs)("div",{className:"k-vstack",children:[(0,h.jsx)(P,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)("div",{className:"k-vstack k-flex-1",children:[(0,h.jsx)(Se,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),(0,h.jsx)("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Mt.states=dl;Mt.options=ul;Mt.className=ba;Mt.defaultOptions=Na;var V=require("react/jsx-runtime"),La="k-colorgradient-color-contrast",fl=[],bl={},Nl={},ht=()=>(0,V.jsxs)("div",{className:n(La,"k-vbox"),children:[(0,V.jsxs)("div",{className:"k-contrast-ratio",children:[(0,V.jsx)("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),(0,V.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:[(0,V.jsx)(k,{icon:"check"}),(0,V.jsx)(k,{icon:"check"})]})]}),(0,V.jsxs)("div",{children:[(0,V.jsx)("span",{children:"AA: 4.5"}),(0,V.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:["Pass",(0,V.jsx)(k,{icon:"check"})]})]}),(0,V.jsxs)("div",{children:[(0,V.jsx)("span",{children:"AAA: 7.0"}),(0,V.jsxs)("span",{className:"k-contrast-validation !k-text-error",children:["Fail",(0,V.jsx)(k,{icon:"x"})]})]})]});ht.states=fl;ht.options=bl;ht.className=La;ht.defaultOptions=Nl;var xa="color-gradient",Ma="colorgradient";var z=require("react/jsx-runtime"),io="k-colorgradient",Ll=[s.hover,s.focus,s.readonly,s.disabled],xl={size:[r.small,r.medium,r.large]},de={size:r.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"},Ie=e=>{let{size:t=de.size,mode:o=de.mode,readonly:a=de.readonly,disabled:i=de.disabled,gradientStyle:l=de.gradientStyle,dragHandleStyle:p=de.dragHandleStyle,alphaStyle:d=de.alphaStyle,alphaStyleHorizontal:f=de.alphaStyleHorizontal,contrast:N=de.contrast,dir:L,hover:v,focus:m,hoverHandle:M,focusHandle:x,canvasOrientation:E=de.canvasOrientation,...g}=e;return(0,z.jsxs)("div",{...g,className:n(e.className,io,I(io,{size:t}),O(io,{hover:v,focus:m,readonly:a,disabled:i})),dir:L,children:[!E||E==="horizontal"&&(0,z.jsxs)("div",{className:"k-colorgradient-canvas k-hstack",children:[(0,z.jsx)("div",{className:"k-hsv-rectangle",style:l,children:(0,z.jsx)("div",{className:"k-hsv-gradient",children:(0,z.jsx)("div",{className:n("k-hsv-draghandle","k-draghandle",{"k-hover":M,"k-focus":x}),style:p})})}),(0,z.jsxs)("div",{className:"k-hsv-controls k-hstack",children:[(0,z.jsx)(Wo,{className:"k-hue-slider",hover:M,focus:x}),o!=="rgb"&&o!=="hsv"&&(0,z.jsx)(Wo,{className:"k-alpha-slider",hover:M,focus:x,trackStyle:d})]})]}),E==="vertical"&&(0,z.jsxs)("div",{className:"k-colorgradient-canvas k-vstack",children:[(0,z.jsx)("div",{className:"k-hsv-rectangle",style:l,children:(0,z.jsx)("div",{className:"k-hsv-gradient",children:(0,z.jsx)("div",{className:n("k-hsv-draghandle","k-draghandle",{"k-hover":M,"k-focus":x}),style:p})})}),(0,z.jsxs)("div",{className:"k-hsv-controls k-vstack",children:[(0,z.jsx)(qo,{className:"k-hue-slider",hover:M,focus:x}),o!=="rgb"&&o!=="hsv"&&(0,z.jsx)(qo,{className:"k-alpha-slider",hover:M,focus:x,trackStyle:f})]})]}),(0,z.jsx)(Mt,{mode:e.mode,size:t}),N&&(0,z.jsx)(ht,{})]})};Ie.states=Ll;Ie.options=xl;Ie.className=io;Ie.defaultOptions=de;Ie.moduleName=xa;Ie.folderName=Ma;var Ml=require("react/jsx-runtime");var hl=require("react/jsx-runtime");var Sa=require("react/jsx-runtime"),ha=e=>(0,Sa.jsx)("tr",{children:e.children});var va=require("react/jsx-runtime"),fs="k-colorpalette-tile",Sl=[s.hover,s.focus,s.selected],vl={},$t=e=>{let{color:t,tileSize:o,hover:a,focus:i,selected:l,...p}=e,d={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return(0,va.jsx)("td",{...p,className:n(e.className,fs,O(fs,{hover:a,focus:i,selected:l})),style:d})};$t.states=Sl;$t.options=vl;$t.className=fs;var Ea="color-palette",ka="colorpalette";var St=require("react/jsx-runtime"),lo="k-colorpalette",El=[s.disabled],kl={size:[r.small,r.medium,r.large]},bs={columns:10,size:r.medium},Xe=e=>{let{size:t=bs.size,palette:o,columns:a=bs.columns,tileSize:i,disabled:l,...p}=e,d=[];if(o){let f=a||o.columns,N=o.colors?o.colors:o;Array.isArray(N)&&Array.from({length:Math.ceil(N.length/f)},(L,v)=>{let m=[];N.slice(v*f,(v+1)*f).map((x,E)=>{m.push((0,St.jsx)($t,{color:x,tileSize:i},E))});let M=(0,St.jsx)(ha,{children:m},v);d.push(M)})}return(0,St.jsx)("div",{...p,className:n(e.className,lo,O(lo,{disabled:l}),I(lo,{size:t})),children:(0,St.jsx)("table",{className:"k-colorpalette-table",children:(0,St.jsx)("tbody",{children:d.length>0?d:e.children})})})};Xe.states=El;Xe.options=kl;Xe.className=lo;Xe.defaultOptions=bs;Xe.moduleName=Ea;Xe.folderName=ka;var Ns={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}};var Cl=require("react/jsx-runtime");var Ca="color-editor",Ia="coloreditor";var B=require("react/jsx-runtime"),po="k-coloreditor",Il=[s.focus],Al={size:[r.small,r.medium,r.large]},vt={size:r.medium,view:"gradient",palette:Ns.office,actionButtons:!0,canvasOrientation:"horizontal"},se=e=>{let{size:t=vt.size,view:o=vt.view,palette:a=vt.palette,color:i,currentColor:l,focus:p,focusView:d,dir:f,group:N,actionButtons:L=vt.actionButtons,canvasOrientation:v=vt.canvasOrientation,...m}=e;return(0,B.jsxs)("div",{...m,className:n(e.className,"k-flatcolorpicker",po,I(po,{size:t}),O(po,{focus:p})),dir:f,children:[(0,B.jsxs)("div",{className:"k-coloreditor-header k-hstack",children:[(0,B.jsx)("div",{className:"k-coloreditor-header-actions k-hstack",children:N&&(0,B.jsxs)(D,{fillMode:"flat",children:[(0,B.jsx)(S,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),(0,B.jsx)(S,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),(0,B.jsx)("div",{className:"k-spacer"}),(0,B.jsxs)("div",{className:"k-coloreditor-header-actions k-hstack",children:[(0,B.jsx)(S,{fillMode:"flat",icon:"droplet-slash",size:t}),(0,B.jsxs)("div",{className:"k-coloreditor-preview k-vstack",children:[(0,B.jsx)(we,{className:"k-coloreditor-preview-color",color:i}),(0,B.jsx)(we,{className:"k-coloreditor-current-color",color:l})]})]})]}),(0,B.jsx)("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?(0,B.jsx)(Ie,{focus:d,size:t,canvasOrientation:v}):(0,B.jsx)(Xe,{palett