UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 294 kB
var fI=Object.create;var dd=Object.defineProperty;var hI=Object.getOwnPropertyDescriptor;var gI=Object.getOwnPropertyNames;var xI=Object.getPrototypeOf,bI=Object.prototype.hasOwnProperty;var vI=(e,t)=>{for(var a in t)dd(e,a,{get:t[a],enumerable:!0})},Oh=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of gI(t))!bI.call(e,s)&&s!==a&&dd(e,s,{get:()=>t[s],enumerable:!(r=hI(t,s))||r.enumerable});return e};var Wh=(e,t,a)=>(a=e!=null?fI(xI(e)):{},Oh(t||!e||!e.__esModule?dd(a,"default",{value:e,enumerable:!0}):a,e)),yI=e=>Oh(dd({},"__esModule",{value:!0}),e);var SH={};vI(SH,{DockManagerNormal:()=>CH});module.exports=yI(SH);var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>o({[`${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"}),x=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},h={small:"small",medium:"medium",large:"large",full:"full"},b={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={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"},Ot={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var Qh=require("react/jsx-runtime"),Il="k-pane",wI=[],TI={},sp={resizable:!0,flex:!1},Ae=e=>{let{scrollable:t,flexBasis:a,flex:r=sp.flex,collapsible:s,resizable:i=sp.resizable,pinned:d,unpinned:p,tabbed:m,...f}=e;return(0,Qh.jsx)("div",{...f,style:{flexBasis:a,...e.style},className:o(e.className,Il,{[`${Il}-static`]:a,[`${Il}-flex`]:r,"k-scrollable":t,[`${Il}-pinned`]:d,[`${Il}-unpinned`]:p,[`${Il}-tabbed`]:m}),children:e.children})};Ae.states=wI;Ae.options=TI;Ae.className=Il;Ae.defaultOptions=sp;var ui=require("react/jsx-runtime"),ip="k-icon k-font-icon",AI=[],NI={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},CI={},ki=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?(0,ui.jsx)("span",{...d,className:o(e.className,ip,C(ip,{size:t}),{[`k-i-${r}`]:r,[`k-color-${a}`]:a,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"})}):(0,ui.jsx)(ui.Fragment,{})};ki.states=AI;ki.options=NI;ki.className=ip;ki.defaultOptions=CI;var Vh=ki;var Bl=require("react/jsx-runtime"),np="k-icon k-svg-icon",SI=[],II={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Xh={viewBox:"0 0 24 24"},fi=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=Xh.viewBox,icon:d,...p}=e;if(!d)return(0,Bl.jsx)(Bl.Fragment,{});d==="none"&&{...p,className:o(e.className,np,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return(0,Bl.jsx)("span",{...p,className:o(e.className,np,C("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${a}`]:a,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),children:(0,Bl.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:i,dangerouslySetInnerHTML:typeof d=="object"?{__html:d.content}:void 0,children:d?void 0:e.children})})};fi.states=SI;fi.options=II;fi.className=np;fi.defaultOptions=Xh;var dp=fi;var Zh=Wh(require("@progress/kendo-svg-icons")),fa=require("react/jsx-runtime"),BI=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),MI=[],LI={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},cp={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:a,icon:r,type:s=cp.type,rotate:i,flip:d,viewBox:p=cp.viewBox,...m}=e;if(!r)return(0,fa.jsx)(fa.Fragment,{});if(s==="svg"){if(r==="none")return(0,fa.jsx)(dp,{...m,icon:r,size:t});let f=BI(`${r}-icon`);return Zh[f]?(0,fa.jsx)(dp,{...m,icon:Zh[f],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):(0,fa.jsx)(fa.Fragment,{})}return(0,fa.jsx)(Vh,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};y.states=MI;y.options=LI;y.defaultOptions=cp;var pp=y;var Wt=require("react/jsx-runtime"),Lr="k-splitbar",EI=[l.hover,l.focus],YI={},mp={orientation:"horizontal",draggable:!0},Ga=e=>{let{hover:t,focus:a,orientation:r=mp.orientation,draggable:s=mp.draggable,collapsePrev:i,collapseNext:d,...p}=e;return(0,Wt.jsxs)("div",{...p,className:o(e.className,Lr,x(Lr,{hover:t,focus:a}),{[`${Lr}-${r}`]:r,[`${Lr}-draggable-${r}`]:s,[`${Lr}-static-${r}`]:!s&&!i&&!d}),children:[i&&(0,Wt.jsx)(Wt.Fragment,{children:(0,Wt.jsx)("div",{className:"k-collapse-prev",children:(0,Wt.jsx)(y,{icon:`caret-alt-${r==="horizontal"?"left":"up"}`,size:"xsmall"})})}),(0,Wt.jsx)("div",{className:"k-resize-handle"}),d&&(0,Wt.jsx)(Wt.Fragment,{children:(0,Wt.jsx)("div",{className:"k-collapse-next",children:(0,Wt.jsx)(y,{icon:`caret-alt-${r==="horizontal"?"right":"down"}`,size:"xsmall"})})})]})};Ga.states=EI;Ga.options=YI;Ga.className=Lr;Ga.defaultOptions=mp;var kp=require("react/jsx-runtime"),jh=require("react"),up="k-splitter",PI={},Jh={orientation:"horizontal"},xt=e=>{let{orientation:t=Jh.orientation,children:a,...r}=e,s=[];return a&&Array.isArray(a)&&a.map((i,d)=>{if(i.type===Ae){let p=a[d+1],m=i.props,f=p==null?void 0:p.props;s.push((0,jh.createElement)(Ae,{...m,key:d}),p&&(0,kp.jsx)(Ga,{draggable:m.resizable!==!1&&f.resizable!==!1,collapsePrev:m.collapsible,collapseNext:f.collapsible,orientation:t},`splitbar-${d}`))}else s.push(i)}),(0,kp.jsx)("div",{...r,className:o(e.className,up,{[`${up}-${t}`]:t},"k-splitter-flex"),children:s})};xt.options=PI;xt.className=up;xt.defaultOptions=Jh;var Uh=require("react/jsx-runtime");var qh=require("react/jsx-runtime");var Ao=require("react/jsx-runtime"),cd="k-button",GI=[l.hover,l.focus,l.active,l.selected,l.disabled],KI={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Ml={size:n.medium,rounded:h.medium,fillMode:b.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Ml.size,rounded:a=Ml.rounded,fillMode:r=Ml.fillMode,themeColor:s=Ml.themeColor,showArrow:i=Ml.showArrow,arrowIconName:d=Ml.arrowIconName,hover:p,focus:m,active:f,selected:v,disabled:T,icon:g,text:A,iconClassName:N,...S}=e,B=g!==void 0,L=e.children!==void 0;return(0,Ao.jsxs)("button",{...S,className:o(e.className,cd,C(cd,{size:t,rounded:a,fillMode:r,themeColor:s}),x(cd,{hover:p,focus:m,active:f,disabled:T,selected:v}),{"k-icon-button":!A&&!L&&B}),children:[g&&(0,Ao.jsx)(y,{className:o(N,"k-button-icon"),icon:g}),A?(0,Ao.jsxs)(Ao.Fragment,{children:[A&&(0,Ao.jsx)("span",{className:"k-button-text",children:A}),e.children]}):e.children&&(0,Ao.jsx)("span",{className:"k-button-text",children:e.children}),i&&(0,Ao.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,Ao.jsx)(y,{icon:d})})]})};c.states=GI;c.options=KI;c.className=cd;c.defaultOptions=Ml;var _h=require("react/jsx-runtime"),bt=e=>(0,_h.jsx)(c,{icon:"folder",...e,children:void 0});var $h=require("react/jsx-runtime"),No=e=>(0,$h.jsx)(c,{icon:"folder",children:"Button",...e});var DI=require("react/jsx-runtime");var tg=require("react/jsx-runtime"),hi="k-button-group",FI=[l.disabled],RI={fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},eg={fillMode:b.solid},G=e=>{let{fillMode:t=eg.fillMode,disabled:a,stretched:r,...s}=e;return(0,tg.jsx)("div",{...s,className:o(e.className,hi,C(hi,{fillMode:t}),x(hi,{disabled:a}),{[`${hi}-stretched`]:r}),children:e.children})};G.states=FI;G.options=RI;G.className=hi;G.defaultOptions=eg;var fp=require("react/jsx-runtime");var hp=require("react/jsx-runtime");var gp=require("react/jsx-runtime");var xp=require("react/jsx-runtime");var og=require("react/jsx-runtime"),pd="k-input",zI=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],HI={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},md={size:n.medium,rounded:n.medium,fillMode:b.solid},M=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=md.size,rounded:f=md.rounded,fillMode:v=md.fillMode,...T}=e;return(0,og.jsx)("span",{...T,className:o(e.className,pd,C(pd,{size:m,rounded:f,fillMode:v}),x(pd,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=zI;M.options=HI;M.className=pd;M.defaultOptions=md;var ag=require("react/jsx-runtime"),ud="k-picker",OI=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],WI={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},kd={size:n.medium,rounded:h.medium,fillMode:b.solid},Qt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=kd.size,rounded:f=kd.rounded,fillMode:v=kd.fillMode,...T}=e;return(0,ag.jsx)("span",{...T,className:o(e.className,ud,C(ud,{size:m,rounded:f,fillMode:v}),x(ud,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};Qt.states=OI;Qt.options=WI;Qt.className=ud;Qt.defaultOptions=kd;var Er=require("react/jsx-runtime"),lg="k-clear-value",QI=[l.disabled,l.loading,l.readonly],VI={},se=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?(0,Er.jsx)(Er.Fragment,{}):(0,Er.jsx)("span",{className:o(e.className,lg),children:(0,Er.jsx)(y,{icon:"x"})})};se.states=QI;se.options=VI;se.className=lg;var rg=require("react/jsx-runtime"),bp="k-input-inner",XI=[],ZI={},fd={type:"text",autocomplete:"off",value:"",placeholder:""},pe=e=>{let{value:t=fd.value,type:a=fd.type,placeholder:r=fd.placeholder,autocomplete:s=fd.autocomplete,...i}=e;return(0,rg.jsx)("input",{...i,type:a,className:o(e.className,bp,C(bp,e)),placeholder:r,autoComplete:s,defaultValue:t})};pe.states=XI;pe.options=ZI;pe.className=bp;var gi=require("react/jsx-runtime"),vp="k-input-inner",JI=[],jI={},ha=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return(0,gi.jsxs)("span",{...d,className:o(e.className,vp,C(vp,e)),children:[s,!s&&i&&(0,gi.jsx)(y,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&(0,gi.jsx)("span",{className:"k-input-value-text",children:t})]})};ha.states=JI;ha.options=jI;ha.className=vp;var ig=require("react/jsx-runtime"),yp="k-input-inner",UI=[],qI={},sg={value:"",placeholder:""},xi=e=>{let{value:t=sg.value,placeholder:a=sg.placeholder,rows:r,...s}=e;return(0,ig.jsx)("textarea",{...s,className:o(e.className,yp,C(yp,e)),placeholder:a,rows:r,defaultValue:t})};xi.states=UI;xi.options=qI;xi.className=yp;var bi=require("react/jsx-runtime"),ng="k-input-loading-icon",_I=[l.disabled,l.loading],$=e=>{let{disabled:t,loading:a}=e;return t||!a?(0,bi.jsx)(bi.Fragment,{}):(0,bi.jsx)("span",{className:o(e.className,ng,"k-icon k-i-loading")})};$.states=_I;$.className=ng;var vi=require("react/jsx-runtime"),dg="k-input-validation-icon",$I=[l.valid,l.invalid,l.disabled,l.loading],eB={},q=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?(0,vi.jsx)(vi.Fragment,{}):(0,vi.jsx)(y,{className:o(dg),icon:i})};q.states=$I;q.options=eB;q.className=dg;var yi=require("react/jsx-runtime"),tB="k-input-prefix",oB={direction:"horizontal"},le=e=>{let{direction:t=oB.direction,...a}=e;return e.children?(0,yi.jsx)("span",{...a,className:o(tB,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,yi.jsx)(yi.Fragment,{})};var wi=require("react/jsx-runtime"),aB="k-input-suffix",lB={direction:"horizontal"},re=e=>{let{direction:t=lB.direction,...a}=e;return e.children?(0,wi.jsx)("span",{...a,className:o(aB,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,wi.jsx)(wi.Fragment,{})};var rB=require("react/jsx-runtime");var sB=require("react/jsx-runtime");var pg=require("react/jsx-runtime"),cg="k-input-separator",iB={direction:"vertical"},Be=e=>{let{direction:t=iB.direction,...a}=e;return(0,pg.jsx)("span",{...a,className:o(cg,e.className,{[`${cg}-${t}`]:t})})};var Ti=require("react/jsx-runtime"),mg="k-color-preview",nB=[],dB={},Ka=e=>{let{color:t,iconName:a,...r}=e;return(0,Ti.jsxs)("span",{...r,className:o(e.className,mg,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&(0,Ti.jsx)(y,{icon:a,className:"k-color-preview-icon"}),(0,Ti.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ka.states=nB;Ka.options=dB;Ka.className=mg;var wp=require("react/jsx-runtime"),ug="k-animation-container",cB=[],pB={},kg={positionMode:"absolute"},Da=e=>{let{positionMode:t=kg.positionMode,animationStyle:a,offset:r,...s}=e;return(0,wp.jsx)("div",{...s,style:{...r,...e.style},className:o(e.className,ug,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:(0,wp.jsx)("div",{className:"k-child-animation-container",style:a,children:e.children})})};Da.states=cB;Da.options=pB;Da.className=ug;Da.defaultOptions=kg;var Tp=require("react/jsx-runtime"),fg="k-popup",mB=[],uB={},hg={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:a=hg.positionMode,animationStyle:r,...s}=e;return(0,Tp.jsx)(Da,{positionMode:a,offset:t,animationStyle:r,children:(0,Tp.jsx)("div",{...s,className:o(e.className,fg),children:e.children})})};H.states=mB;H.options=uB;H.className=fg;H.defaultOptions=hg;var xg=require("react/jsx-runtime"),hd="k-actions",kB=[],fB={},Ap={alignment:"start",orientation:"horizontal"},Z=e=>{let{alignment:t=Ap.alignment,orientation:a=Ap.orientation,...r}=e;return(0,xg.jsx)("div",{...r,className:o(hd,{[`${hd}-${t}`]:t,[`${hd}-${a}`]:a},e.className),children:e.children})};Z.states=kB;Z.options=fB;Z.className=hd;Z.defaultOptions=Ap;var gg=Z;var vg=require("react/jsx-runtime"),hB="k-actionsheet-footer",bg={alignment:"stretched",orientation:"horizontal"},Co=e=>{let{alignment:t=bg.alignment,orientation:a=bg.orientation,template:r,as:s=r?"div":Z,...i}=e;return(0,vg.jsx)(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,hB),children:e.children})};var Fa=require("react/jsx-runtime"),yg="k-searchbox",gB=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],xB={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Np={showIcon:!0,icon:"search",size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},it=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:f,required:v,loading:T,disabled:g,showIcon:A=Np.showIcon,icon:N=Np.icon,...S}=e;return(0,Fa.jsxs)(M,{...S,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:f,required:v,loading:T,disabled:g,className:o(e.className,yg),children:[A&&(0,Fa.jsx)(y,{className:"k-input-icon",icon:N}),(0,Fa.jsx)(pe,{placeholder:a,value:t}),(0,Fa.jsx)($,{...e}),(0,Fa.jsx)(q,{...e}),(0,Fa.jsx)(se,{...e})]})};it.states=gB;it.options=xB;it.className=yg;it.defaultOptions=Np;var bB=require("react/jsx-runtime");var vt=require("react/jsx-runtime"),wg="k-textbox",vB=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],yB={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Ll={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},_=e=>{let{size:t=Ll.size,rounded:a=Ll.rounded,fillMode:r=Ll.fillMode,separators:s=Ll.separators,showClearButton:i=Ll.showClearButton,showValidationIcon:d=Ll.showValidationIcon,prefix:p,suffix:m,type:f,value:v,placeholder:T,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:P,readonly:z,...V}=e;return(0,vt.jsxs)(M,{...V,size:t,rounded:a,fillMode:r,hover:g,focus:A,valid:N,invalid:S,required:B,loading:L,disabled:P,readonly:z,className:o(e.className,wg),children:[p&&(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsx)(le,{children:p}),s&&(0,vt.jsx)(Be,{})]}),(0,vt.jsx)(pe,{placeholder:T,value:v,type:f}),d&&(0,vt.jsx)(q,{valid:N,invalid:S,loading:L,disabled:P}),(0,vt.jsx)($,{loading:L,disabled:P}),i&&(0,vt.jsx)(se,{loading:L,disabled:P,readonly:z,value:v}),m&&(0,vt.jsxs)(vt.Fragment,{children:[s&&(0,vt.jsx)(Be,{}),(0,vt.jsx)(re,{children:m})]})]})};_.states=vB;_.options=yB;_.className=wg;_.defaultOptions=Ll;var wB=require("react/jsx-runtime");var Ag=require("react/jsx-runtime");var Cg=require("react/jsx-runtime");var Vt=require("react/jsx-runtime"),Sg="k-actionsheet-titlebar",TB={},ie=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:f,children:v,...T}=e;return(0,Vt.jsxs)("div",{...T,className:o(e.className,Sg),children:[(0,Vt.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[r&&(0,Vt.jsx)("div",{className:"k-actionsheet-actions",children:r}),!v&&(0,Vt.jsxs)("div",{className:"k-actionsheet-title",children:[t&&(0,Vt.jsx)("div",{className:"k-text-center",children:t}),a&&(0,Vt.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),v&&(0,Vt.jsx)("div",{className:"k-actionsheet-title",children:v}),s&&(0,Vt.jsx)("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&(0,Vt.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?(0,Vt.jsx)(_,{value:p,placeholder:m,size:f?"large":"medium"}):(0,Vt.jsx)(it,{placeholder:"Filter",size:f?"large":"medium"})})]})};ie.className=Sg;ie.defaultOptions=TB;var Yr=require("react/jsx-runtime"),Cp="k-actionsheet-view",AB=[],NB={},CB={},Pr=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=(s==null?void 0:s.type)===ie&&(0,Yr.jsx)(ie,{adaptive:t,...s==null?void 0:s.props}),m=(i==null?void 0:i.type)===Co&&(0,Yr.jsx)(Co,{...i==null?void 0:i.props});return(0,Yr.jsxs)("div",{...d,className:o(e.className,Cp,{[`${Cp}-animated`]:a}),children:[p,(0,Yr.jsx)("div",{className:"k-actionsheet-content",children:r}),m]})};Pr.states=AB;Pr.options=NB;Pr.className=Cp;Pr.defaultOptions=CB;var El=require("react/jsx-runtime"),Ig="k-actionsheet",SB=[],IB={},Ai={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},me=e=>{let{side:t=Ai.side,fullscreen:a=Ai.fullscreen,adaptive:r=Ai.adaptive,overlay:s=Ai.overlay,template:i,children:d,header:p,footer:m,...f}=e;return(0,El.jsxs)("div",{className:"k-actionsheet-container",children:[s&&(0,El.jsx)("div",{className:"k-overlay"}),(0,El.jsx)(Da,{animationStyle:{[`${a===!0?"top":t}`]:0,[`${a===!0?"width":null}`]:"100%",[`${a===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:(0,El.jsx)("div",{...f,className:o(e.className,Ig,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||(0,El.jsx)(Pr,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};me.states=SB;me.options=IB;me.className=Ig;me.defaultOptions=Ai;var BB=require("react/jsx-runtime");var io=require("react/jsx-runtime"),Sp="k-actionsheet-item",MB=[l.hover,l.focus,l.selected,l.disabled],Ip=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return(0,io.jsxs)("span",{...m,className:o(e.className,Sp,x(Sp,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&(0,io.jsx)(io.Fragment,{children:(0,io.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,io.jsx)("span",{className:"k-icon-wrap",children:(0,io.jsx)(y,{className:"k-actionsheet-item-icon",icon:t})}),(0,io.jsxs)("span",{className:"k-actionsheet-item-text",children:[a&&(0,io.jsx)("span",{className:"k-actionsheet-item-title",children:a}),r&&(0,io.jsx)("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};Ip.states=MB;Ip.className=Sp;var Bg=require("react/jsx-runtime");var LB=require("react/jsx-runtime");var EB=require("react/jsx-runtime");var YB=require("react/jsx-runtime");var So=require("react/jsx-runtime"),Ni="k-slider",PB=[l.hover,l.focus,l.active,l.disabled,l.readonly],GB={},Ra={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},Xt=e=>{let{type:t=Ra.type,orientation:a=Ra.orientation,readonly:r=Ra.readonly,disabled:s=Ra.disabled,handlePosition:i=Ra.handlePosition,showButtons:d=Ra.showButtons,showTicks:p=Ra.showTicks,hover:m,focus:f,active:v,trackStyle:T,dir:g,...A}=e,N,S;return a==="horizontal"?(N=g==="rtl"?"caret-alt-left":"caret-alt-right",S=g==="rtl"?"caret-alt-right":"caret-alt-left"):a==="vertical"&&(N="caret-alt-up",S="caret-alt-down"),(0,So.jsxs)("div",{...A,className:o(Ni,e.className,x(Ni,{readonly:r,disabled:s}),{[`k-slider-${a}`]:a,"k-colorgradient-slider":t==="gradient"}),dir:g,children:[d&&(0,So.jsx)(c,{className:"k-button-decrease",rounded:"full",icon:S}),(0,So.jsxs)("div",{className:"k-slider-track-wrap",children:[p&&(0,So.jsx)("ul",{className:"k-reset k-slider-items",children:e.children}),(0,So.jsxs)("div",{className:"k-slider-track",style:T,children:[(0,So.jsx)("div",{className:"k-slider-selection"}),t==="range"&&(0,So.jsx)("span",{className:o("k-draghandle","k-draghandle-start",x(Ni,{hover:m,focus:f,active:v}))}),(0,So.jsx)("span",{className:o("k-draghandle",`k-draghandle-${i}`,x(Ni,{hover:m,focus:f,active:v}))})]})]}),d&&(0,So.jsx)(c,{className:"k-button-increase",rounded:"full",icon:N})]})};Xt.states=PB;Xt.options=GB;Xt.className=Ni;Xt.defaultOptions=Ra;var Bp=require("react/jsx-runtime"),Lg="k-tick",KB=[],DB={},Eg={label:!1},$e=e=>{let{style:t,label:a=Eg.label,orientation:r,large:s,text:i,...d}=e;return(0,Bp.jsx)("li",{...d,className:o(e.className,Lg,{[`k-tick-${r}`]:r,"k-tick-large":s}),style:t,children:a&&(0,Bp.jsx)("span",{className:"k-label",children:i})})};$e.states=KB;$e.options=DB;$e.className=Lg;$e.defaultOptions=Eg;var pt=require("react/jsx-runtime"),gd=e=>(0,pt.jsx)(Xt,{children:(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)($e,{className:"k-first",label:!0,large:!0,text:"0"}),(0,pt.jsx)($e,{}),(0,pt.jsx)($e,{}),(0,pt.jsx)($e,{}),(0,pt.jsx)($e,{}),(0,pt.jsx)($e,{label:!0,large:!0,text:"5"}),(0,pt.jsx)($e,{}),(0,pt.jsx)($e,{}),(0,pt.jsx)($e,{}),(0,pt.jsx)($e,{}),(0,pt.jsx)($e,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});var Mp=require("react/jsx-runtime");var Lp=require("react/jsx-runtime");var Ep=require("react/jsx-runtime");var Yg=require("react/jsx-runtime"),Yp=e=>(0,Yg.jsx)(Xt,{type:"gradient",showButtons:!1,showTicks:!1,...e});var Pg=require("react/jsx-runtime"),Pp=e=>(0,Pg.jsx)(Xt,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});var Ci=require("react/jsx-runtime"),Gg="k-spin-button",FB=[],RB={size:[n.small,n.medium,n.large],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link]},Gp={size:n.medium,fillMode:b.solid},za=e=>{let{size:t=Gp.size,fillMode:a=Gp.fillMode,...r}=e;return(0,Ci.jsxs)("span",{...r,className:o(Gg,e.className),children:[(0,Ci.jsx)(c,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:a}),(0,Ci.jsx)(c,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]})};za.states=FB;za.options=RB;za.className=Gg;za.defaultOptions=Gp;var mt=require("react/jsx-runtime"),Kg="k-numerictextbox",zB=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],HB={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Yl={showSpinButton:!0,showClearButton:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},xe=e=>{let{size:t=Yl.size,rounded:a=Yl.rounded,fillMode:r=Yl.fillMode,separators:s=Yl.separators,showClearButton:i=Yl.showClearButton,showSpinButton:d=Yl.showSpinButton,prefix:p,suffix:m,value:f,placeholder:v,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:P,...z}=e;return(0,mt.jsxs)(M,{...z,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:P,className:o(e.className,Kg),children:[p&&(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(le,{children:p}),s&&(0,mt.jsx)(Be,{})]}),(0,mt.jsx)(pe,{placeholder:v,value:f}),(0,mt.jsx)(q,{valid:A,invalid:N,loading:B,disabled:L}),(0,mt.jsx)($,{loading:B,disabled:L}),i&&(0,mt.jsx)(se,{loading:B,disabled:L,readonly:P,value:f}),m&&(0,mt.jsxs)(mt.Fragment,{children:[s&&(0,mt.jsx)(Be,{}),(0,mt.jsx)(re,{children:m})]}),d&&(0,mt.jsx)(za,{className:"k-input-spinner",size:t,fillMode:r})]})};xe.states=zB;xe.options=HB;xe.className=Kg;xe.defaultOptions=Yl;var OB=require("react/jsx-runtime");var Fg=require("react/jsx-runtime"),WB="k-no-data",Si=e=>(0,Fg.jsx)("span",{className:o(WB,e.className),children:e.children});var Ro=require("react/jsx-runtime"),Kp="k-list",QB=[],VB={size:[n.small,n.medium,n.large]},Rg={size:n.medium},J=e=>{let{size:t=Rg.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:d,...p}=e,m,f,v,T,g=[];return r?r.map((A,N)=>{A.type===Ye?(A.props.root===!0?(m=A.props.label,A.props.children.map((S,B)=>{g.push((0,Ro.jsx)(K,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):A.props.children.forEach((S,B)=>{let L="";B===0&&(L=A.props.label),g.push((0,Ro.jsx)(K,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),f=(0,Ro.jsx)(Ye,{label:m,virtualization:a,children:g})):A.type===K&&(g.push((0,Ro.jsx)(K,{...A.props},`${A.type}-${N}`)),v=(0,Ro.jsx)(Gr,{virtualization:a,children:g}),d&&(T=(0,Ro.jsxs)(Si,{className:"k-sr-only",children:[g.length," items found."]})))}):T=(0,Ro.jsx)(Si,{children:"No data found."}),(0,Ro.jsxs)("div",{...p,className:o(e.className,Kp,C(Kp,{size:t}),{"k-virtual-list":a}),children:[s,i,f,v,T]})};J.states=QB;J.options=VB;J.className=Kp;J.defaultOptions=Rg;var zo=require("react/jsx-runtime"),Dp="k-list",XB=[],ZB={size:[n.small,n.medium,n.large]},zg={size:n.medium},Pl=e=>{let{size:t=zg.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((f,v)=>{f.type===Ye?(f.props.root===!0?(i=f.props.label,f.props.children.map((T,g)=>{m.push((0,zo.jsx)(K,{...T.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push((0,zo.jsx)(Hg,{...f.props,children:f.props.label},`listChild-${v}`)),f.props.children.map((T,g)=>{m.push((0,zo.jsx)(K,{...T.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=(0,zo.jsx)(Ye,{label:i,virtualization:a,children:m})):f.type===K&&(m.push((0,zo.jsx)(K,{...f.props},`${f.type}-${v}`)),p=(0,zo.jsx)(Gr,{virtualization:a,children:m}))}):p=(0,zo.jsx)(Si,{children:"No data found."}),(0,zo.jsxs)("div",{...s,className:o(e.className,Dp,C(Dp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Pl.states=XB;Pl.options=ZB;Pl.className=Dp;Pl.defaultOptions=zg;var Rp=require("react/jsx-runtime"),xd="k-checkbox",JB=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],jB={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full]},Fp={size:n.medium,rounded:h.medium},ut=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:f,size:v=Fp.size,rounded:T=Fp.rounded,...g}=e;return(0,Rp.jsx)("span",{className:"k-checkbox-wrap",children:(0,Rp.jsx)("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:f,className:o(e.className,xd,C(xd,{size:v,rounded:T}),x(xd,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};ut.states=JB;ut.options=jB;ut.className=xd;ut.defaultOptions=Fp;var Qg=require("react/jsx-runtime"),Og="k-checkbox-list",UB=[],qB={},Wg={layout:"vertical"},Kr=e=>{let{layout:t=Wg.layout,...a}=e;return(0,Qg.jsx)("ul",{...a,className:o(e.className,Og,{[`k-list-${t}`]:t}),children:e.children})};Kr.states=UB;Kr.options=qB;Kr.className=Og;Kr.defaultOptions=Wg;var Xg=require("react/jsx-runtime"),Vg="k-checkbox-list-item",_B=[],$B={},eM={},Dr=e=>{let{...t}=e;return(0,Xg.jsx)("li",{...t,className:o(e.className,Vg),children:e.children})};Dr.states=_B;Dr.options=$B;Dr.className=Vg;Dr.defaultOptions=eM;var Hp=require("react/jsx-runtime");var Op=require("react/jsx-runtime");var Wp=require("react/jsx-runtime");var Qp=require("react/jsx-runtime");var tM=require("react/jsx-runtime");var oM=require("react/jsx-runtime");var Gl=require("react/jsx-runtime"),Vp="k-list-item",aM=[l.hover,l.focus,l.selected,l.disabled],lM={},rM={},K=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:f,selected:v,disabled:T,...g}=e,A=t||e.children;return(0,Gl.jsxs)("li",{...g,className:o(e.className,r?"k-list-group-item":Vp,x(Vp,{hover:m,focus:f,disabled:T,selected:v})),children:[d&&(0,Gl.jsx)(ut,{checked:p}),s&&(0,Gl.jsx)(y,{icon:i}),(0,Gl.jsx)("span",{className:"k-list-item-text",children:A}),a&&a!==""&&(0,Gl.jsx)("div",{className:"k-list-item-group-label",children:a})]})};K.states=aM;K.options=lM;K.className=Vp;K.defaultOptions=rM;var Fr=require("react/jsx-runtime"),sM="k-list-content",Gr=e=>{let{virtualization:t,...a}=e;return(0,Fr.jsxs)("div",{...a,className:o(sM,e.className),children:[(0,Fr.jsx)("ul",{className:o("k-list-ul"),children:e.children}),t&&(0,Fr.jsx)("div",{className:"k-height-container",children:(0,Fr.jsx)("div",{})})]})};var Xp=require("react/jsx-runtime"),iM="k-list-group-sticky-header",Zg=e=>(0,Xp.jsx)("div",{className:o(iM,e.className),children:(0,Xp.jsx)("div",{className:"k-list-header-text",children:e.children})});var Kl=require("react/jsx-runtime"),Ye=e=>{let{virtualization:t,label:a}=e;return(0,Kl.jsxs)(Kl.Fragment,{children:[a&&(0,Kl.jsx)(Zg,{children:a}),e.children&&(0,Kl.jsx)(Gr,{virtualization:t,children:e.children})]})};var Zp=require("react/jsx-runtime"),nM="k-list-group-item",Hg=e=>(0,Zp.jsx)("li",{className:o(nM,e.className),children:(0,Zp.jsx)("span",{className:"k-list-item-text",children:e.children})});var Jg=require("react/jsx-runtime"),Jp="k-list-optionlabel",dM=[l.hover,l.focus,l.selected,l.disabled],cM={},pM={},bd=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return(0,Jg.jsx)("div",{...d,className:o(Jp,x(Jp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};bd.states=dM;bd.options=cM;bd.className=Jp;bd.defaultOptions=pM;var jg=require("react/jsx-runtime"),jp="k-list-custom-value",mM=[l.hover,l.focus,l.selected,l.disabled],uM={},kM={},yt=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return(0,jg.jsx)("div",{...d,className:o(jp,x(jp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};yt.states=mM;yt.options=uM;yt.className=jp;yt.defaultOptions=kM;var fM=require("react/jsx-runtime");var hM=require("react/jsx-runtime");var Ug=require("react/jsx-runtime");var qg=require("react/jsx-runtime");var gM=require("react/jsx-runtime");var _g=require("react/jsx-runtime");var $g=require("react/jsx-runtime");var He=require("react/jsx-runtime"),ex="k-dropdownlist",xM=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],bM={size:[n.small,n.medium,n.large],rounded:[h.small,h.medium,h.large,h.full],fillMode:[b.solid,b.flat,b.outline]},Rr={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:h.medium,fillMode:b.solid},ne=e=>{let{size:t=Rr.size,rounded:a=Rr.rounded,fillMode:r=Rr.fillMode,arrowIconName:s=Rr.arrowIconName,showValue:i=Rr.showValue,valueIconName:d,prefix:p,suffix:m,value:f,placeholder:v,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:P,popup:z,opened:V,adaptive:Ie,adaptiveSettings:_e,adaptiveTitle:St,adaptiveSubtitle:To,adaptiveFilter:Sl,...Mr}=e;return(0,He.jsxs)(He.Fragment,{children:[(0,He.jsxs)(Qt,{...Mr,size:t,rounded:a,fillMode:r,hover:T,focus:g,valid:A,invalid:N,required:S,loading:B,disabled:L,readonly:P,className:o(e.className,ex,{"k-icon-picker":!i&&d}),children:[(0,He.jsx)(le,{children:p}),(0,He.jsx)(ha,{placeholder:v,value:f,showValue:i,valueIconName:d}),(0,He.jsx)(q,{valid:A,invalid:N,loading:B,disabled:L}),(0,He.jsx)($,{loading:B,disabled:L}),(0,He.jsx)(re,{children:m}),(0,He.jsx)(c,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),V&&z&&(0,He.jsx)(H,{className:"k-list-container k-dropdownlist-popup",children:z}),Ie&&(0,He.jsx)(me,{adaptive:!0,..._e,header:(0,He.jsx)(ie,{actionsEnd:(0,He.jsx)(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Sl,inputValue:f,inputPlaceholder:v,title:St,subtitle:To}),children:(0,He.jsx)("div",{className:"k-list-container",children:(0,He.jsxs)(J,{size:"large",children:[(0,He.jsx)(K,{text:"List item"}),(0,He.jsx)(K,{text:"List item"}),(0,He.jsx)(K,{text:"List item"})]})})})]})};ne.states=xM;ne.options=bM;ne.className=ex;ne.defaultOptions=Rr;var vM=require("react/jsx-runtime");var tx=require("react/jsx-runtime");var Up=require("react/jsx-runtime");var yM=require("react/jsx-runtime");var ox=require("react/jsx-runtime");var ax=require("react/jsx-runtime");var qp=require("react/jsx-runtime");var _p=require("react/jsx-runtime");var lx=require("react/jsx-runtime");var rx=require("react/jsx-runtime");var Y=require("react/jsx-runtime"),sx="k-colorgradient-inputs",wM=[],TM={size:[n.small,n.medium,n.large]},ix={mode:"rgba",size:n.medium},zr=e=>{let{mode:t=ix.mode,size:a,...r}=e;return(0,Y.jsxs)("div",{...r,className:o(sx,"k-hstack"),children:[(0,Y.jsx)("div",{className:"k-vstack",children:(0,Y.jsx)(c,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:a})}),t==="rgba"&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]}),(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:a}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]}),(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,Y.jsxs)("div",{className:"k-vstack",children:[(0,Y.jsx)(xe,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&(0,Y.jsx)(Y.Fragment,{children:(0,Y.jsxs)("div",{className:"k-vstack k-flex-1",children:[(0,Y.jsx)(_,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),(0,Y.jsx)("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};zr.states=wM;zr.options=TM;zr.className=sx;zr.defaultOptions=ix;var wt=require("react/jsx-runtime"),nx="k-colorgradient-color-contrast",AM=[],NM={},CM={},Hr=()=>(0,wt.jsxs)("div",{className:o(nx,"k-vbox"),children:[(0,wt.jsxs)("div",{className:"k-contrast-ratio",children:[(0,wt.jsx)("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),(0,wt.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:[(0,wt.jsx)(y,{icon:"check"}),(0,wt.jsx)(y,{icon:"check"})]})]}),(0,wt.jsxs)("div",{children:[(0,wt.jsx)("span",{children:"AA: 4.5"}),(0,wt.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:["Pass",(0,wt.jsx)(y,{icon:"check"})]})]}),(0,wt.jsxs)("div",{children:[(0,wt.jsx)("span",{children:"AAA: 7.0"}),(0,wt.jsxs)("span",{className:"k-contrast-validation !k-text-error",children:["Fail",(0,wt.jsx)(y,{icon:"x"})]})]})]});Hr.states=AM;Hr.options=NM;Hr.className=nx;Hr.defaultOptions=CM;var et=require("react/jsx-runtime"),vd="k-colorgradient",SM=[l.hover,l.focus,l.readonly,l.disabled],IM={size:[n.small,n.medium,n.large]},Io={size:n.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"},Ha=e=>{let{size:t=Io.size,mode:a=Io.mode,readonly:r=Io.readonly,disabled:s=Io.disabled,gradientStyle:i=Io.gradientStyle,dragHandleStyle:d=Io.dragHandleStyle,alphaStyle:p=Io.alphaStyle,alphaStyleHorizontal:m=Io.alphaStyleHorizontal,contrast:f=Io.contrast,dir:v,hover:T,focus:g,hoverHandle:A,focusHandle:N,canvasOrientation:S=Io.canvasOrientation,...B}=e;return(0,et.jsxs)("div",{...B,className:o(e.className,vd,C(vd,{size:t}),x(vd,{hover:T,focus:g,readonly:r,disabled:s})),dir:v,children:[!S||S==="horizontal"&&(0,et.jsxs)("div",{className:"k-colorgradient-canvas k-hstack",children:[(0,et.jsx)("div",{className:"k-hsv-rectangle",style:i,children:(0,et.jsx)("div",{className:"k-hsv-gradient",children:(0,et.jsx)("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":A,"k-focus":N}),style:d})})}),(0,et.jsxs)("div",{className:"k-hsv-controls k-hstack",children:[(0,et.jsx)(Pp,{className:"k-hue-slider",hover:A,focus:N}),a!=="rgb"&&a!=="hsv"&&(0,et.jsx)(Pp,{className:"k-alpha-slider",hover:A,focus:N,trackStyle:p})]})]}),S==="vertical"&&(0,et.jsxs)("div",{className:"k-colorgradient-canvas k-vstack",children:[(0,et.jsx)("div",{className:"k-hsv-rectangle",style:i,children:(0,et.jsx)("div",{className:"k-hsv-gradient",children:(0,et.jsx)("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":A,"k-focus":N}),style:d})})}),(0,et.jsxs)("div",{className:"k-hsv-controls k-vstack",children:[(0,et.jsx)(Yp,{className:"k-hue-slider",hover:A,focus:N}),a!=="rgb"&&a!=="hsv"&&(0,et.jsx)(Yp,{className:"k-alpha-slider",hover:A,focus:N,trackStyle:m})]})]}),(0,et.jsx)(zr,{mode:e.mode,size:t}),f&&(0,et.jsx)(Hr,{})]})};Ha.states=SM;Ha.options=IM;Ha.className=vd;Ha.defaultOptions=Io;var BM=require("react/jsx-runtime");var MM=require("react/jsx-runtime");var cx=require("react/jsx-runtime"),dx=e=>(0,cx.jsx)("tr",{children:e.children});var px=require("react/jsx-runtime"),$p="k-colorpalette-tile",LM=[l.hover,l.focus,l.selected],EM={},Ii=e=>{let{color:t,tileSize:a,hover:r,focus:s,selected:i,...d}=e,p={backgroundColor:t,width:a?a+"px":"",height:a?a+"px":""};return(0,px.jsx)("td",{...d,className:o(e.className,$p,x($p,{hover:r,focus:s,selected:i})),style:p})};Ii.states=LM;Ii.options=EM;Ii.className=$p;var Or=require("react/jsx-runtime"),yd="k-colorpalette",YM=[l.disabled],PM={size:[n.small,n.medium,n.large]},em={columns:10,size:n.medium},Wr=e=>{let{size:t=em.size,palette:a,columns:r=em.columns,tileSize:s,disabled:i,...d}=e,p=[];if(a){let m=r||a.columns,f=a.colors?a.colors:a;Array.isArray(f)&&Array.from({length:Math.ceil(f.length/m)},(v,T)=>{let g=[];f.slice(T*m,(T+1)*m).map((N,S)=>{g.push((0,Or.jsx)(Ii,{color:N,tileSize:s},S))});let A=(0,Or.jsx)(dx,{children:g},T);p.push(A)})}return(0,Or.jsx)("div",{...d,className:o(e.className,yd,x(yd,{disabled:i}),C(yd,{size:t})),children:(0,Or.jsx)("table",{className:"k-colorpalette-table",children:(0,Or.jsx)("tbody",{children:p.length>0?p:e.children})})})};Wr.states=YM;Wr.options=PM;Wr.className=yd;Wr.defaultOptions=em;var tm={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 GM=require("react/jsx-runtime");var Qe=require("react/jsx-runtime"),wd="k-coloreditor",KM=[l.focus],DM={size:[n.small,n.medium,n.large]},Qr={size:n.medium,view:"gradient",palette:tm.office,actionButtons:!0,canvasOrientation:"horizontal"},Ho=e=>{let{size:t=Qr.size,view:a=Qr.view,palette:r=Qr.palette,color:s,currentColor:i,focus:d,focusView:p,dir:m,group:f,actionButtons:v=Qr.actionButtons,canvasOrientation:T=Qr.canvasOrientation,...g}=e;return(0,Qe.jsxs)("div",{...g,className:o(e.className,"k-flatcolorpicker",wd,C(wd,{size:t}),x(wd,{focus:d})),dir:m,children:[(0,Qe.jsxs)("div",{className:"k-coloreditor-header k-hstack",children:[(0,Qe.jsx)("div",{className:"k-coloreditor-header-actions k-hstack",children:f&&(0,Qe.jsxs)(G,{fillMode:"flat",children:[(0,Qe.jsx)(c,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:a==="gradient"}),(0,Qe.jsx)(c,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:a==="palette"})]})}),(0,Qe.jsx)("div",{className:"k-spacer"}),(0,Qe.jsxs)("div",{className:"k-coloreditor-header-actions k-