UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 68.9 kB
var zn=Object.create;var Ft=Object.defineProperty;var wn=Object.getOwnPropertyDescriptor;var En=Object.getOwnPropertyNames;var On=Object.getPrototypeOf,Kn=Object.prototype.hasOwnProperty;var Rn=(e,t)=>{for(var o in t)Ft(e,o,{get:t[o],enumerable:!0})},Es=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of En(t))!Kn.call(e,i)&&i!==o&&Ft(e,i,{get:()=>t[i],enumerable:!(n=wn(t,i))||n.enumerable});return e};var Hn=(e,t,o)=>(o=e!=null?zn(On(e)):{},Es(t||!e||!e.__esModule?Ft(o,"default",{value:e,enumerable:!0}):o,e)),Gn=e=>Es(Ft({},"__esModule",{value:!0}),e);var tp={};Rn(tp,{DOCKMANAGER_CLASSNAME:()=>ws,DockManager:()=>Lt,default:()=>ep});module.exports=Gn(tp);var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var I=(e,t)=>a({[`${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"}),C=(e,t)=>a({"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 r={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},x={small:"small",medium:"medium",large:"large",full:"full"},m={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"},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"};var Os=require("react/jsx-runtime"),_e="k-pane",$n=[],Dn={},mo={resizable:!0,flex:!1},ne=e=>{let{scrollable:t,flexBasis:o,flex:n=mo.flex,collapsible:i,resizable:l=mo.resizable,pinned:p,unpinned:d,tabbed:f,...b}=e;return(0,Os.jsx)("div",{...b,style:{flexBasis:o,...e.style},className:a(e.className,_e,{[`${_e}-static`]:o,[`${_e}-flex`]:n,"k-scrollable":t,[`${_e}-pinned`]:p,[`${_e}-unpinned`]:d,[`${_e}-tabbed`]:f}),children:e.children})};ne.states=$n;ne.options=Dn;ne.className=_e;ne.defaultOptions=mo;var It=require("react/jsx-runtime"),uo="k-icon k-font-icon",Vn=[],_n={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Xn={},yt=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:l,...p}=e;return n?(0,It.jsx)("span",{...p,className:a(e.className,uo,I(uo,{size:t}),{[`k-i-${n}`]:n,[`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,{})};yt.states=Vn;yt.options=_n;yt.className=uo;yt.defaultOptions=Xn;var Ks=yt;var Xe=require("react/jsx-runtime"),fo="k-icon k-svg-icon",Jn=[],Fn={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Rs={viewBox:"0 0 24 24"},Ct=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:l=Rs.viewBox,icon:p,...d}=e;if(!p)return(0,Xe.jsx)(Xe.Fragment,{});p==="none"&&{...d,className:a(e.className,fo,"k-none")};let f=typeof p=="object"&&p.name&&p.name;return(0,Xe.jsx)("span",{...d,className:a(e.className,fo,I("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:(0,Xe.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})})};Ct.states=Jn;Ct.options=Fn;Ct.className=fo;Ct.defaultOptions=Rs;var bo=Ct;var Hs=Hn(require("@progress/kendo-svg-icons")),Se=require("react/jsx-runtime"),Un=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),qn=[],Wn={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},xo={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:n,type:i=xo.type,rotate:l,flip:p,viewBox:d=xo.viewBox,...f}=e;if(!n)return(0,Se.jsx)(Se.Fragment,{});if(i==="svg"){if(n==="none")return(0,Se.jsx)(bo,{...f,icon:n,size:t});let b=Un(`${n}-icon`);return Hs[b]?(0,Se.jsx)(bo,{...f,icon:Hs[b],size:t,themeColor:o,rotate:l,flip:p,viewBox:d}):(0,Se.jsx)(Se.Fragment,{})}return(0,Se.jsx)(Ks,{...f,icon:n,size:t,themeColor:o,rotate:l,flip:p})};M.states=qn;M.options=Wn;M.defaultOptions=xo;var W=require("react/jsx-runtime"),nt="k-splitbar",Qn=[s.hover,s.focus],Yn={},ho={orientation:"horizontal",draggable:!0},Ae=e=>{let{hover:t,focus:o,orientation:n=ho.orientation,draggable:i=ho.draggable,collapsePrev:l,collapseNext:p,...d}=e;return(0,W.jsxs)("div",{...d,className:a(e.className,nt,C(nt,{hover:t,focus:o}),{[`${nt}-${n}`]:n,[`${nt}-draggable-${n}`]:i,[`${nt}-static-${n}`]:!i&&!l&&!p}),children:[l&&(0,W.jsx)(W.Fragment,{children:(0,W.jsx)("div",{className:"k-collapse-prev",children:(0,W.jsx)(M,{icon:`caret-alt-${n==="horizontal"?"left":"up"}`,size:"xsmall"})})}),(0,W.jsx)("div",{className:"k-resize-handle"}),p&&(0,W.jsx)(W.Fragment,{children:(0,W.jsx)("div",{className:"k-collapse-next",children:(0,W.jsx)(M,{icon:`caret-alt-${n==="horizontal"?"right":"down"}`,size:"xsmall"})})})]})};Ae.states=Qn;Ae.options=Yn;Ae.className=nt;Ae.defaultOptions=ho;var ko=require("react/jsx-runtime"),$s=require("react"),No="k-splitter",Zn={},Gs={orientation:"horizontal"},Tt=e=>{let{orientation:t=Gs.orientation,children:o,...n}=e,i=[];return o&&Array.isArray(o)&&o.map((l,p)=>{if(l.type===ne){let d=o[p+1],f=l.props,b=d==null?void 0:d.props;i.push((0,$s.createElement)(ne,{...f,key:p}),d&&(0,ko.jsx)(Ae,{draggable:f.resizable!==!1&&b.resizable!==!1,collapsePrev:f.collapsible,collapseNext:b.collapsible,orientation:t},`splitbar-${p}`))}else i.push(l)}),(0,ko.jsx)("div",{...n,className:a(e.className,No,{[`${No}-${t}`]:t},"k-splitter-flex"),children:i})};Tt.options=Zn;Tt.className=No;Tt.defaultOptions=Gs;var Ds=require("react/jsx-runtime");var Vs=require("react/jsx-runtime");var re=require("react/jsx-runtime"),Ut="k-button",jn=[s.hover,s.focus,s.active,s.selected,s.disabled],er={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline,m.clear,m.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Je={size:r.medium,rounded:x.medium,fillMode:m.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},k=e=>{let{size:t=Je.size,rounded:o=Je.rounded,fillMode:n=Je.fillMode,themeColor:i=Je.themeColor,showArrow:l=Je.showArrow,arrowIconName:p=Je.arrowIconName,hover:d,focus:f,active:b,selected:h,disabled:L,icon:c,text:N,iconClassName:v,...g}=e,A=c!==void 0,B=e.children!==void 0;return(0,re.jsxs)("button",{...g,className:a(e.className,Ut,I(Ut,{size:t,rounded:o,fillMode:n,themeColor:i}),C(Ut,{hover:d,focus:f,active:b,disabled:L,selected:h}),{"k-icon-button":!N&&!B&&A}),children:[c&&(0,re.jsx)(M,{className:a(v,"k-button-icon"),icon:c}),N?(0,re.jsxs)(re.Fragment,{children:[N&&(0,re.jsx)("span",{className:"k-button-text",children:N}),e.children]}):e.children&&(0,re.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,re.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,re.jsx)(M,{icon:p})})]})};k.states=jn;k.options=er;k.className=Ut;k.defaultOptions=Je;var _s=require("react/jsx-runtime"),qt=e=>(0,_s.jsx)(k,{icon:"folder",...e,children:void 0});var Xs=require("react/jsx-runtime"),So=e=>(0,Xs.jsx)(k,{icon:"folder",children:"Button",...e});var tr=require("react/jsx-runtime");var Fs=require("react/jsx-runtime"),At="k-button-group",or=[s.disabled],sr={fillMode:[m.solid,m.flat,m.outline,m.clear,m.link]},Js={fillMode:m.solid},K=e=>{let{fillMode:t=Js.fillMode,disabled:o,stretched:n,...i}=e;return(0,Fs.jsx)("div",{...i,className:a(e.className,At,I(At,{fillMode:t}),C(At,{disabled:o}),{[`${At}-stretched`]:n}),children:e.children})};K.states=or;K.options=sr;K.className=At;K.defaultOptions=Js;var vo=require("react/jsx-runtime");var Lo=require("react/jsx-runtime");var go=require("react/jsx-runtime");var Mo=require("react/jsx-runtime");var Us=require("react/jsx-runtime"),Wt="k-input",ar=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],nr={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},Qt={size:r.medium,rounded:r.medium,fillMode:m.solid},z=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:d,size:f=Qt.size,rounded:b=Qt.rounded,fillMode:h=Qt.fillMode,...L}=e;return(0,Us.jsx)("span",{...L,className:a(e.className,Wt,I(Wt,{size:f,rounded:b,fillMode:h}),C(Wt,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:d}))})};z.states=ar;z.options=nr;z.className=Wt;z.defaultOptions=Qt;var qs=require("react/jsx-runtime"),Yt="k-picker",rr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],ir={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},Zt={size:r.medium,rounded:x.medium,fillMode:m.solid},ie=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:d,size:f=Zt.size,rounded:b=Zt.rounded,fillMode:h=Zt.fillMode,...L}=e;return(0,qs.jsx)("span",{...L,className:a(e.className,Yt,I(Yt,{size:f,rounded:b,fillMode:h}),C(Yt,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:d})),children:e.children})};ie.states=rr;ie.options=ir;ie.className=Yt;ie.defaultOptions=Zt;var rt=require("react/jsx-runtime"),Ws="k-clear-value",lr=[s.disabled,s.loading,s.readonly],pr={},le=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?(0,rt.jsx)(rt.Fragment,{}):(0,rt.jsx)("span",{className:a(e.className,Ws),children:(0,rt.jsx)(M,{icon:"x"})})};le.states=lr;le.options=pr;le.className=Ws;var Qs=require("react/jsx-runtime"),Io="k-input-inner",cr=[],dr={},jt={type:"text",autocomplete:"off",value:"",placeholder:""},pe=e=>{let{value:t=jt.value,type:o=jt.type,placeholder:n=jt.placeholder,autocomplete:i=jt.autocomplete,...l}=e;return(0,Qs.jsx)("input",{...l,type:o,className:a(e.className,Io,I(Io,e)),placeholder:n,autoComplete:i,defaultValue:t})};pe.states=cr;pe.options=dr;pe.className=Io;var Bt=require("react/jsx-runtime"),yo="k-input-inner",mr=[],ur={},Fe=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:l,...p}=e;return(0,Bt.jsxs)("span",{...p,className:a(e.className,yo,I(yo,e)),children:[i,!i&&l&&(0,Bt.jsx)(M,{className:"k-input-value-icon",icon:l}),n&&!t&&o,n&&t&&(0,Bt.jsx)("span",{className:"k-input-value-text",children:t})]})};Fe.states=mr;Fe.options=ur;Fe.className=yo;var Zs=require("react/jsx-runtime"),Co="k-input-inner",fr=[],br={},Ys={value:"",placeholder:""},To=e=>{let{value:t=Ys.value,placeholder:o=Ys.placeholder,rows:n,...i}=e;return(0,Zs.jsx)("textarea",{...i,className:a(e.className,Co,I(Co,e)),placeholder:o,rows:n,defaultValue:t})};To.states=fr;To.options=br;To.className=Co;var Pt=require("react/jsx-runtime"),js="k-input-loading-icon",xr=[s.disabled,s.loading],Z=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Pt.jsx)(Pt.Fragment,{}):(0,Pt.jsx)("span",{className:a(e.className,js,"k-icon k-i-loading")})};Z.states=xr;Z.className=js;var zt=require("react/jsx-runtime"),ea="k-input-validation-icon",hr=[s.valid,s.invalid,s.disabled,s.loading],Nr={},Q=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,l=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?(0,zt.jsx)(zt.Fragment,{}):(0,zt.jsx)(M,{className:a(ea),icon:l})};Q.states=hr;Q.options=Nr;Q.className=ea;var wt=require("react/jsx-runtime"),kr="k-input-prefix",Sr={direction:"horizontal"},fe=e=>{let{direction:t=Sr.direction,...o}=e;return e.children?(0,wt.jsx)("span",{...o,className:a(kr,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,wt.jsx)(wt.Fragment,{})};var Et=require("react/jsx-runtime"),vr="k-input-suffix",Lr={direction:"horizontal"},be=e=>{let{direction:t=Lr.direction,...o}=e;return e.children?(0,Et.jsx)("span",{...o,className:a(vr,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Et.jsx)(Et.Fragment,{})};var gr=require("react/jsx-runtime");var Mr=require("react/jsx-runtime");var oa=require("react/jsx-runtime"),ta="k-input-separator",Ir={direction:"vertical"},ve=e=>{let{direction:t=Ir.direction,...o}=e;return(0,oa.jsx)("span",{...o,className:a(ta,e.className,{[`${ta}-${t}`]:t})})};var Ot=require("react/jsx-runtime"),sa="k-color-preview",yr=[],Cr={},Be=e=>{let{color:t,iconName:o,...n}=e;return(0,Ot.jsxs)("span",{...n,className:a(e.className,sa,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&(0,Ot.jsx)(M,{icon:o,className:"k-color-preview-icon"}),(0,Ot.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Be.states=yr;Be.options=Cr;Be.className=sa;var Ao=require("react/jsx-runtime"),aa="k-animation-container",Tr=[],Ar={},na={positionMode:"absolute"},Pe=e=>{let{positionMode:t=na.positionMode,animationStyle:o,offset:n,...i}=e;return(0,Ao.jsx)("div",{...i,style:{...n,...e.style},className:a(e.className,aa,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:(0,Ao.jsx)("div",{className:"k-child-animation-container",style:o,children:e.children})})};Pe.states=Tr;Pe.options=Ar;Pe.className=aa;Pe.defaultOptions=na;var Bo=require("react/jsx-runtime"),ra="k-popup",Br=[],Pr={},ia={positionMode:"absolute"},D=e=>{let{offset:t,positionMode:o=ia.positionMode,animationStyle:n,...i}=e;return(0,Bo.jsx)(Pe,{positionMode:o,offset:t,animationStyle:n,children:(0,Bo.jsx)("div",{...i,className:a(e.className,ra),children:e.children})})};D.states=Br;D.options=Pr;D.className=ra;D.defaultOptions=ia;var la=require("react/jsx-runtime"),eo="k-actions",zr=[],wr={},Po={alignment:"start",orientation:"horizontal"},ze=e=>{let{alignment:t=Po.alignment,orientation:o=Po.orientation,...n}=e;return(0,la.jsx)("div",{...n,className:a(eo,{[`${eo}-${t}`]:t,[`${eo}-${o}`]:o},e.className),children:e.children})};ze.states=zr;ze.options=wr;ze.className=eo;ze.defaultOptions=Po;var ca=require("react/jsx-runtime"),Er="k-actionsheet-footer",pa={alignment:"stretched",orientation:"horizontal"},Kt=e=>{let{alignment:t=pa.alignment,orientation:o=pa.orientation,template:n,as:i=n?"div":ze,...l}=e;return(0,ca.jsx)(i,{...l,...!n&&{alignment:t,orientation:o},className:a(e.className,Er),children:e.children})};var we=require("react/jsx-runtime"),da="k-searchbox",Or=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Kr={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},zo={showIcon:!0,icon:"search",size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode},Le=e=>{let{value:t,placeholder:o,size:n,rounded:i,fillMode:l,hover:p,focus:d,valid:f,invalid:b,required:h,loading:L,disabled:c,showIcon:N=zo.showIcon,icon:v=zo.icon,...g}=e;return(0,we.jsxs)(z,{...g,size:n,rounded:i,fillMode:l,hover:p,focus:d,valid:f,invalid:b,required:h,loading:L,disabled:c,className:a(e.className,da),children:[N&&(0,we.jsx)(M,{className:"k-input-icon",icon:v}),(0,we.jsx)(pe,{placeholder:o,value:t}),(0,we.jsx)(Z,{...e}),(0,we.jsx)(Q,{...e}),(0,we.jsx)(le,{...e})]})};Le.states=Or;Le.options=Kr;Le.className=da;Le.defaultOptions=zo;var Rr=require("react/jsx-runtime");var J=require("react/jsx-runtime"),ma="k-textbox",Hr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Gr={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},Ue={showClearButton:!0,showValidationIcon:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},Ee=e=>{let{size:t=Ue.size,rounded:o=Ue.rounded,fillMode:n=Ue.fillMode,separators:i=Ue.separators,showClearButton:l=Ue.showClearButton,showValidationIcon:p=Ue.showValidationIcon,prefix:d,suffix:f,type:b,value:h,placeholder:L,hover:c,focus:N,valid:v,invalid:g,required:A,loading:B,disabled:w,readonly:U,...Te}=e;return(0,J.jsxs)(z,{...Te,size:t,rounded:o,fillMode:n,hover:c,focus:N,valid:v,invalid:g,required:A,loading:B,disabled:w,readonly:U,className:a(e.className,ma),children:[d&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(fe,{children:d}),i&&(0,J.jsx)(ve,{})]}),(0,J.jsx)(pe,{placeholder:L,value:h,type:b}),p&&(0,J.jsx)(Q,{valid:v,invalid:g,loading:B,disabled:w}),(0,J.jsx)(Z,{loading:B,disabled:w}),l&&(0,J.jsx)(le,{loading:B,disabled:w,readonly:U,value:h}),f&&(0,J.jsxs)(J.Fragment,{children:[i&&(0,J.jsx)(ve,{}),(0,J.jsx)(be,{children:f})]})]})};Ee.states=Hr;Ee.options=Gr;Ee.className=ma;Ee.defaultOptions=Ue;var $r=require("react/jsx-runtime");var fa=require("react/jsx-runtime");var ba=require("react/jsx-runtime");var Y=require("react/jsx-runtime"),xa="k-actionsheet-titlebar",Dr={},j=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:i,filter:l,input:p,inputValue:d,inputPlaceholder:f,adaptive:b,children:h,...L}=e;return(0,Y.jsxs)("div",{...L,className:a(e.className,xa),children:[(0,Y.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[n&&(0,Y.jsx)("div",{className:"k-actionsheet-actions",children:n}),!h&&(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})]}),h&&(0,Y.jsx)("div",{className:"k-actionsheet-title",children:h}),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)(Ee,{value:d,placeholder:f,size:b?"large":"medium"}):(0,Y.jsx)(Le,{placeholder:"Filter",size:b?"large":"medium"})})]})};j.className=xa;j.defaultOptions=Dr;var it=require("react/jsx-runtime"),wo="k-actionsheet-view",Vr=[],_r={},Xr={},lt=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:l,...p}=e,d=(i==null?void 0:i.type)===j&&(0,it.jsx)(j,{adaptive:t,...i==null?void 0:i.props}),f=(l==null?void 0:l.type)===Kt&&(0,it.jsx)(Kt,{...l==null?void 0:l.props});return(0,it.jsxs)("div",{...p,className:a(e.className,wo,{[`${wo}-animated`]:o}),children:[d,(0,it.jsx)("div",{className:"k-actionsheet-content",children:n}),f]})};lt.states=Vr;lt.options=_r;lt.className=wo;lt.defaultOptions=Xr;var qe=require("react/jsx-runtime"),ha="k-actionsheet",Jr=[],Fr={},Rt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ce=e=>{let{side:t=Rt.side,fullscreen:o=Rt.fullscreen,adaptive:n=Rt.adaptive,overlay:i=Rt.overlay,template:l,children:p,header:d,footer:f,...b}=e;return(0,qe.jsxs)("div",{className:"k-actionsheet-container",children:[i&&(0,qe.jsx)("div",{className:"k-overlay"}),(0,qe.jsx)(Pe,{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,qe.jsx)("div",{...b,className:a(e.className,ha,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:l||(0,qe.jsx)(lt,{header:d,footer:f,adaptive:n,...e,children:p})})})]})};ce.states=Jr;ce.options=Fr;ce.className=ha;ce.defaultOptions=Rt;var Ur=require("react/jsx-runtime");var ee=require("react/jsx-runtime"),Eo="k-actionsheet-item",qr=[s.hover,s.focus,s.selected,s.disabled],Oo=e=>{let{iconName:t,text:o,description:n,hover:i,focus:l,selected:p,disabled:d,...f}=e;return(0,ee.jsxs)("span",{...f,className:a(e.className,Eo,C(Eo,{hover:i,focus:l,selected:p,disabled:d})),children:[!e.children&&(0,ee.jsx)(ee.Fragment,{children:(0,ee.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,ee.jsx)("span",{className:"k-icon-wrap",children:(0,ee.jsx)(M,{className:"k-actionsheet-item-icon",icon:t})}),(0,ee.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,ee.jsx)("span",{className:"k-actionsheet-item-title",children:o}),n&&(0,ee.jsx)("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Oo.states=qr;Oo.className=Eo;var Na=require("react/jsx-runtime");var Wr=require("react/jsx-runtime");var Qr=require("react/jsx-runtime");var Yr=require("react/jsx-runtime");var de=require("react/jsx-runtime"),Ht="k-slider",Zr=[s.hover,s.focus,s.active,s.disabled,s.readonly],jr={},Oe={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},te=e=>{let{type:t=Oe.type,orientation:o=Oe.orientation,readonly:n=Oe.readonly,disabled:i=Oe.disabled,handlePosition:l=Oe.handlePosition,showButtons:p=Oe.showButtons,showTicks:d=Oe.showTicks,hover:f,focus:b,active:h,trackStyle:L,dir:c,...N}=e,v,g;return o==="horizontal"?(v=c==="rtl"?"caret-alt-left":"caret-alt-right",g=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(v="caret-alt-up",g="caret-alt-down"),(0,de.jsxs)("div",{...N,className:a(Ht,e.className,C(Ht,{readonly:n,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[p&&(0,de.jsx)(k,{className:"k-button-decrease",rounded:"full",icon:g}),(0,de.jsxs)("div",{className:"k-slider-track-wrap",children:[d&&(0,de.jsx)("ul",{className:"k-reset k-slider-items",children:e.children}),(0,de.jsxs)("div",{className:"k-slider-track",style:L,children:[(0,de.jsx)("div",{className:"k-slider-selection"}),t==="range"&&(0,de.jsx)("span",{className:a("k-draghandle","k-draghandle-start",C(Ht,{hover:f,focus:b,active:h}))}),(0,de.jsx)("span",{className:a("k-draghandle",`k-draghandle-${l}`,C(Ht,{hover:f,focus:b,active:h}))})]})]}),p&&(0,de.jsx)(k,{className:"k-button-increase",rounded:"full",icon:v})]})};te.states=Zr;te.options=jr;te.className=Ht;te.defaultOptions=Oe;var Ko=require("react/jsx-runtime"),Sa="k-tick",ei=[],ti={},va={label:!1},Ke=e=>{let{style:t,label:o=va.label,orientation:n,large:i,text:l,...p}=e;return(0,Ko.jsx)("li",{...p,className:a(e.className,Sa,{[`k-tick-${n}`]:n,"k-tick-large":i}),style:t,children:o&&(0,Ko.jsx)("span",{className:"k-label",children:l})})};Ke.states=ei;Ke.options=ti;Ke.className=Sa;Ke.defaultOptions=va;var Ro=require("react/jsx-runtime");var Ho=require("react/jsx-runtime");var Go=require("react/jsx-runtime");var $o=require("react/jsx-runtime");var La=require("react/jsx-runtime"),Do=e=>(0,La.jsx)(te,{type:"gradient",showButtons:!1,showTicks:!1,...e});var ga=require("react/jsx-runtime"),Vo=e=>(0,ga.jsx)(te,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});var Gt=require("react/jsx-runtime"),Ma="k-spin-button",oi=[],si={size:[r.small,r.medium,r.large],fillMode:[m.solid,m.flat,m.outline,m.clear,m.link]},_o={size:r.medium,fillMode:m.solid},pt=e=>{let{size:t=_o.size,fillMode:o=_o.fillMode,...n}=e;return(0,Gt.jsxs)("span",{...n,className:a(Ma,e.className),children:[(0,Gt.jsx)(k,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),(0,Gt.jsx)(k,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};pt.states=oi;pt.options=si;pt.className=Ma;pt.defaultOptions=_o;var V=require("react/jsx-runtime"),Ia="k-numerictextbox",ai=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],ni={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},We={showSpinButton:!0,showClearButton:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},H=e=>{let{size:t=We.size,rounded:o=We.rounded,fillMode:n=We.fillMode,separators:i=We.separators,showClearButton:l=We.showClearButton,showSpinButton:p=We.showSpinButton,prefix:d,suffix:f,value:b,placeholder:h,hover:L,focus:c,valid:N,invalid:v,required:g,loading:A,disabled:B,readonly:w,...U}=e;return(0,V.jsxs)(z,{...U,size:t,rounded:o,fillMode:n,hover:L,focus:c,valid:N,invalid:v,required:g,loading:A,disabled:B,readonly:w,className:a(e.className,Ia),children:[d&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(fe,{children:d}),i&&(0,V.jsx)(ve,{})]}),(0,V.jsx)(pe,{placeholder:h,value:b}),(0,V.jsx)(Q,{valid:N,invalid:v,loading:A,disabled:B}),(0,V.jsx)(Z,{loading:A,disabled:B}),l&&(0,V.jsx)(le,{loading:A,disabled:B,readonly:w,value:b}),f&&(0,V.jsxs)(V.Fragment,{children:[i&&(0,V.jsx)(ve,{}),(0,V.jsx)(be,{children:f})]}),p&&(0,V.jsx)(pt,{className:"k-input-spinner",size:t,fillMode:n})]})};H.states=ai;H.options=ni;H.className=Ia;H.defaultOptions=We;var ri=require("react/jsx-runtime");var Ca=require("react/jsx-runtime"),ii="k-no-data",$t=e=>(0,Ca.jsx)("span",{className:a(ii,e.className),children:e.children});var xe=require("react/jsx-runtime"),Xo="k-list",li=[],pi={size:[r.small,r.medium,r.large]},Ta={size:r.medium},E=e=>{let{size:t=Ta.size,virtualization:o,children:n,optionLabel:i,customValue:l,screenReaders:p,...d}=e,f,b,h,L,c=[];return n?n.map((N,v)=>{N.type===_?(N.props.root===!0?(f=N.props.label,N.props.children.map((g,A)=>{c.push((0,xe.jsx)(T,{...g.props},`optChild-${A}-${new Date().getTime()}`))})):N.props.children.forEach((g,A)=>{let B="";A===0&&(B=N.props.label),c.push((0,xe.jsx)(T,{className:A===0?"k-first":"",...g.props,groupLabel:B},`groupLabel-${A}-${new Date().getTime()}`))}),b=(0,xe.jsx)(_,{label:f,virtualization:o,children:c})):N.type===T&&(c.push((0,xe.jsx)(T,{...N.props},`${N.type}-${v}`)),h=(0,xe.jsx)(ct,{virtualization:o,children:c}),p&&(L=(0,xe.jsxs)($t,{className:"k-sr-only",children:[c.length," items found."]})))}):L=(0,xe.jsx)($t,{children:"No data found."}),(0,xe.jsxs)("div",{...d,className:a(e.className,Xo,I(Xo,{size:t}),{"k-virtual-list":o}),children:[i,l,b,h,L]})};E.states=li;E.options=pi;E.className=Xo;E.defaultOptions=Ta;var he=require("react/jsx-runtime"),Jo="k-list",ci=[],di={size:[r.small,r.medium,r.large]},Aa={size:r.medium},Qe=e=>{let{size:t=Aa.size,virtualization:o,children:n,...i}=e,l,p,d,f=[];return n?n.map((b,h)=>{b.type===_?(b.props.root===!0?(l=b.props.label,b.props.children.map((L,c)=>{f.push((0,he.jsx)(T,{...L.props},`optChild-${c}-${new Date().getTime()}`))})):(f.push((0,he.jsx)(Ba,{...b.props,children:b.props.label},`listChild-${h}`)),b.props.children.map((L,c)=>{f.push((0,he.jsx)(T,{...L.props},`fwOptChild-${c}-${new Date().getTime()}`))})),p=(0,he.jsx)(_,{label:l,virtualization:o,children:f})):b.type===T&&(f.push((0,he.jsx)(T,{...b.props},`${b.type}-${h}`)),d=(0,he.jsx)(ct,{virtualization:o,children:f}))}):d=(0,he.jsx)($t,{children:"No data found."}),(0,he.jsxs)("div",{...i,className:a(e.className,Jo,I(Jo,{size:t}),{"k-virtual-list":o}),children:[p,d]})};Qe.states=ci;Qe.options=di;Qe.className=Jo;Qe.defaultOptions=Aa;var Uo=require("react/jsx-runtime"),to="k-checkbox",mi=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],ui={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full]},Fo={size:r.medium,rounded:x.medium},Re=e=>{let{id:t,checked:o,indeterminate:n,hover:i,focus:l,disabled:p,invalid:d,valid:f,required:b,size:h=Fo.size,rounded:L=Fo.rounded,...c}=e;return(0,Uo.jsx)("span",{className:"k-checkbox-wrap",children:(0,Uo.jsx)("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:b,className:a(e.className,to,I(to,{size:h,rounded:L}),C(to,{hover:i,focus:l,disabled:p,invalid:d,valid:f,indeterminate:n,checked:o}))})})};Re.states=mi;Re.options=ui;Re.className=to;Re.defaultOptions=Fo;var wa=require("react/jsx-runtime"),Pa="k-checkbox-list",fi=[],bi={},za={layout:"vertical"},dt=e=>{let{layout:t=za.layout,...o}=e;return(0,wa.jsx)("ul",{...o,className:a(e.className,Pa,{[`k-list-${t}`]:t}),children:e.children})};dt.states=fi;dt.options=bi;dt.className=Pa;dt.defaultOptions=za;var Oa=require("react/jsx-runtime"),Ea="k-checkbox-list-item",xi=[],hi={},Ni={},mt=e=>{let{...t}=e;return(0,Oa.jsx)("li",{...t,className:a(e.className,Ea),children:e.children})};mt.states=xi;mt.options=hi;mt.className=Ea;mt.defaultOptions=Ni;var Wo=require("react/jsx-runtime");var Qo=require("react/jsx-runtime");var Yo=require("react/jsx-runtime");var Zo=require("react/jsx-runtime");var ki=require("react/jsx-runtime");var Si=require("react/jsx-runtime");var Ye=require("react/jsx-runtime"),jo="k-list-item",vi=[s.hover,s.focus,s.selected,s.disabled],Li={},gi={},T=e=>{let{text:t,groupLabel:o,group:n,showIcon:i,iconName:l,showCheckbox:p,checked:d,hover:f,focus:b,selected:h,disabled:L,...c}=e,N=t||e.children;return(0,Ye.jsxs)("li",{...c,className:a(e.className,n?"k-list-group-item":jo,C(jo,{hover:f,focus:b,disabled:L,selected:h})),children:[p&&(0,Ye.jsx)(Re,{checked:d}),i&&(0,Ye.jsx)(M,{icon:l}),(0,Ye.jsx)("span",{className:"k-list-item-text",children:N}),o&&o!==""&&(0,Ye.jsx)("div",{className:"k-list-item-group-label",children:o})]})};T.states=vi;T.options=Li;T.className=jo;T.defaultOptions=gi;var ut=require("react/jsx-runtime"),Mi="k-list-content",ct=e=>{let{virtualization:t,...o}=e;return(0,ut.jsxs)("div",{...o,className:a(Mi,e.className),children:[(0,ut.jsx)("ul",{className:a("k-list-ul"),children:e.children}),t&&(0,ut.jsx)("div",{className:"k-height-container",children:(0,ut.jsx)("div",{})})]})};var es=require("react/jsx-runtime"),Ii="k-list-group-sticky-header",Ka=e=>(0,es.jsx)("div",{className:a(Ii,e.className),children:(0,es.jsx)("div",{className:"k-list-header-text",children:e.children})});var Ze=require("react/jsx-runtime"),_=e=>{let{virtualization:t,label:o}=e;return(0,Ze.jsxs)(Ze.Fragment,{children:[o&&(0,Ze.jsx)(Ka,{children:o}),e.children&&(0,Ze.jsx)(ct,{virtualization:t,children:e.children})]})};var ts=require("react/jsx-runtime"),yi="k-list-group-item",Ba=e=>(0,ts.jsx)("li",{className:a(yi,e.className),children:(0,ts.jsx)("span",{className:"k-list-item-text",children:e.children})});var Ra=require("react/jsx-runtime"),os="k-list-optionlabel",Ci=[s.hover,s.focus,s.selected,s.disabled],Ti={},Ai={},oo=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:l,...p}=e;return(0,Ra.jsx)("div",{...p,className:a(os,C(os,{hover:o,focus:n,selected:i,disabled:l})),children:t})};oo.states=Ci;oo.options=Ti;oo.className=os;oo.defaultOptions=Ai;var Ha=require("react/jsx-runtime"),ss="k-list-custom-value",Bi=[s.hover,s.focus,s.selected,s.disabled],Pi={},zi={},He=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:l,...p}=e;return(0,Ha.jsx)("div",{...p,className:a(ss,C(ss,{hover:o,focus:n,selected:i,disabled:l})),children:t})};He.states=Bi;He.options=Pi;He.className=ss;He.defaultOptions=zi;var wi=require("react/jsx-runtime");var Ei=require("react/jsx-runtime");var Ga=require("react/jsx-runtime");var $a=require("react/jsx-runtime");var Oi=require("react/jsx-runtime");var Da=require("react/jsx-runtime");var Va=require("react/jsx-runtime");var O=require("react/jsx-runtime"),_a="k-dropdownlist",Ki=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ri={size:[r.small,r.medium,r.large],rounded:[x.small,x.medium,x.large,x.full],fillMode:[m.solid,m.flat,m.outline]},ft={showValue:!0,arrowIconName:"caret-alt-down",size:r.medium,rounded:x.medium,fillMode:m.solid},Ge=e=>{let{size:t=ft.size,rounded:o=ft.rounded,fillMode:n=ft.fillMode,arrowIconName:i=ft.arrowIconName,showValue:l=ft.showValue,valueIconName:p,prefix:d,suffix:f,value:b,placeholder:h,hover:L,focus:c,valid:N,invalid:v,required:g,loading:A,disabled:B,readonly:w,popup:U,opened:Te,adaptive:gt,adaptiveSettings:Mt,adaptiveTitle:po,adaptiveSubtitle:co,adaptiveFilter:Bn,...Pn}=e;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(ie,{...Pn,size:t,rounded:o,fillMode:n,hover:L,focus:c,valid:N,invalid:v,required:g,loading:A,disabled:B,readonly:w,className:a(e.className,_a,{"k-icon-picker":!l&&p}),children:[(0,O.jsx)(fe,{children:d}),(0,O.jsx)(Fe,{placeholder:h,value:b,showValue:l,valueIconName:p}),(0,O.jsx)(Q,{valid:N,invalid:v,loading:A,disabled:B}),(0,O.jsx)(Z,{loading:A,disabled:B}),(0,O.jsx)(be,{children:f}),(0,O.jsx)(k,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),Te&&U&&(0,O.jsx)(D,{className:"k-list-container k-dropdownlist-popup",children:U}),gt&&(0,O.jsx)(ce,{adaptive:!0,...Mt,header:(0,O.jsx)(j,{actionsEnd:(0,O.jsx)(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Bn,inputValue:b,inputPlaceholder:h,title:po,subtitle:co}),children:(0,O.jsx)("div",{className:"k-list-container",children:(0,O.jsxs)(E,{size:"large",children:[(0,O.jsx)(T,{text:"List item"}),(0,O.jsx)(T,{text:"List item"}),(0,O.jsx)(T,{text:"List item"})]})})})]})};Ge.states=Ki;Ge.options=Ri;Ge.className=_a;Ge.defaultOptions=ft;var Hi=require("react/jsx-runtime");var Xa=require("react/jsx-runtime");var as=require("react/jsx-runtime");var Gi=require("react/jsx-runtime");var Ja=require("react/jsx-runtime");var Fa=require("react/jsx-runtime");var ns=require("react/jsx-runtime");var rs=require("react/jsx-runtime");var Ua=require("react/jsx-runtime");var qa=require("react/jsx-runtime");var S=require("react/jsx-runtime"),Wa="k-colorgradient-inputs",$i=[],Di={size:[r.small,r.medium,r.large]},Qa={mode:"rgba",size:r.medium},bt=e=>{let{mode:t=Qa.mode,size:o,...n}=e;return(0,S.jsxs)("div",{...n,className:a(Wa,"k-hstack"),children:[(0,S.jsx)("div",{className:"k-vstack",children:(0,S.jsx)(k,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]}),(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]}),(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,S.jsxs)("div",{className:"k-vstack",children:[(0,S.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&(0,S.jsx)(S.Fragment,{children:(0,S.jsxs)("div",{className:"k-vstack k-flex-1",children:[(0,S.jsx)(Ee,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};bt.states=$i;bt.options=Di;bt.className=Wa;bt.defaultOptions=Qa;var F=require("react/jsx-runtime"),Ya="k-colorgradient-color-contrast",Vi=[],_i={},Xi={},xt=()=>(0,F.jsxs)("div",{className:a(Ya,"k-vbox"),children:[(0,F.jsxs)("div",{className:"k-contrast-ratio",children:[(0,F.jsx)("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),(0,F.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:[(0,F.jsx)(M,{icon:"check"}),(0,F.jsx)(M,{icon:"check"})]})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)("span",{children:"AA: 4.5"}),(0,F.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:["Pass",(0,F.jsx)(M,{icon:"check"})]})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)("span",{children:"AAA: 7.0"}),(0,F.jsxs)("span",{className:"k-contrast-validation !k-text-error",children:["Fail",(0,F.jsx)(M,{icon:"x"})]})]})]});xt.states=Vi;xt.options=_i;xt.className=Ya;xt.defaultOptions=Xi;var G=require("react/jsx-runtime"),so="k-colorgradient",Ji=[s.hover,s.focus,s.readonly,s.disabled],Fi={size:[r.small,r.medium,r.large]},me={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"},$e=e=>{let{size:t=me.size,mode:o=me.mode,readonly:n=me.readonly,disabled:i=me.disabled,gradientStyle:l=me.gradientStyle,dragHandleStyle:p=me.dragHandleStyle,alphaStyle:d=me.alphaStyle,alphaStyleHorizontal:f=me.alphaStyleHorizontal,contrast:b=me.contrast,dir:h,hover:L,focus:c,hoverHandle:N,focusHandle:v,canvasOrientation:g=me.canvasOrientation,...A}=e;return(0,G.jsxs)("div",{...A,className:a(e.className,so,I(so,{size:t}),C(so,{hover:L,focus:c,readonly:n,disabled:i})),dir:h,children:[!g||g==="horizontal"&&(0,G.jsxs)("div",{className:"k-colorgradient-canvas k-hstack",children:[(0,G.jsx)("div",{className:"k-hsv-rectangle",style:l,children:(0,G.jsx)("div",{className:"k-hsv-gradient",children:(0,G.jsx)("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":v}),style:p})})}),(0,G.jsxs)("div",{className:"k-hsv-controls k-hstack",children:[(0,G.jsx)(Vo,{className:"k-hue-slider",hover:N,focus:v}),o!=="rgb"&&o!=="hsv"&&(0,G.jsx)(Vo,{className:"k-alpha-slider",hover:N,focus:v,trackStyle:d})]})]}),g==="vertical"&&(0,G.jsxs)("div",{className:"k-colorgradient-canvas k-vstack",children:[(0,G.jsx)("div",{className:"k-hsv-rectangle",style:l,children:(0,G.jsx)("div",{className:"k-hsv-gradient",children:(0,G.jsx)("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":v}),style:p})})}),(0,G.jsxs)("div",{className:"k-hsv-controls k-vstack",children:[(0,G.jsx)(Do,{className:"k-hue-slider",hover:N,focus:v}),o!=="rgb"&&o!=="hsv"&&(0,G.jsx)(Do,{className:"k-alpha-slider",hover:N,focus:v,trackStyle:f})]})]}),(0,G.jsx)(bt,{mode:e.mode,size:t}),b&&(0,G.jsx)(xt,{})]})};$e.states=Ji;$e.options=Fi;$e.className=so;$e.defaultOptions=me;var Ui=require("react/jsx-runtime");var qi=require("react/jsx-runtime");var ja=require("react/jsx-runtime"),Za=e=>(0,ja.jsx)("tr",{children:e.children});var en=require("react/jsx-runtime"),is="k-colorpalette-tile",Wi=[s.hover,s.focus,s.selected],Qi={},Dt=e=>{let{color:t,tileSize:o,hover:n,focus:i,selected:l,...p}=e,d={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return(0,en.jsx)("td",{...p,className:a(e.className,is,C(is,{hover:n,focus:i,selected:l})),style:d})};Dt.states=Wi;Dt.options=Qi;Dt.className=is;var ht=require("react/jsx-runtime"),ao="k-colorpalette",Yi=[s.disabled],Zi={size:[r.small,r.medium,r.large]},ls={columns:10,size:r.medium},Nt=e=>{let{size:t=ls.size,palette:o,columns:n=ls.columns,tileSize:i,disabled:l,...p}=e,d=[];if(o){let f=n||o.columns,b=o.colors?o.colors:o;Array.isArray(b)&&Array.from({length:Math.ceil(b.length/f)},(h,L)=>{let c=[];b.slice(L*f,(L+1)*f).map((v,g)=>{c.push((0,ht.jsx)(Dt,{color:v,tileSize:i},g))});let N=(0,ht.jsx)(Za,{children:c},L);d.push(N)})}return(0,ht.jsx)("div",{...p,className:a(e.className,ao,C(ao,{disabled:l}),I(ao,{size:t})),children:(0,ht.jsx)("table",{className:"k-colorpalette-table",children:(0,ht.jsx)("tbody",{children:d.length>0?d:e.children})})})};Nt.states=Yi;Nt.options=Zi;Nt.className=ao;Nt.defaultOptions=ls;var ps={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 ji=require("react/jsx-runtime");var R=require("react/jsx-runtime"),no="k-coloreditor",el=[s.focus],tl={size:[r.small,r.medium,r.large]},kt={size:r.medium,view:"gradient",palette:ps.office,actionButtons:!0,canvasOrientation:"horizontal"},Ne=e=>{let{size:t=kt.size,view:o=kt.view,palette:n=kt.palette,color:i,currentColor:l,focus:p,focusView:d,dir:f,group:b,actionButtons:h=kt.actionButtons,canvasOrientation:L=kt.canvasOrientation,...c}=e;return(0,R.jsxs)("div",{...c,className:a(e.className,"k-flatcolorpicker",no,I(no,{size:t}),C(no,{focus:p})),dir:f,children:[(0,R.jsxs)("div",{className:"k-coloreditor-header k-hstack",children:[(0,R.jsx)("div",{className:"k-coloreditor-header-actions k-hstack",children:b&&(0,R.jsxs)(K,{fillMode:"flat",children:[(0,R.jsx)(k,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),(0,R.jsx)(k,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),(0,R.jsx)("div",{className:"k-spacer"}),(0,R.jsxs)("div",{className:"k-coloreditor-header-actions k-hstack",children:[(0,R.jsx)(k,{fillMode:"flat",icon:"droplet-slash",size:t}),(0,R.jsxs)("div",{className:"k-coloreditor-preview k-vstack",children:[(0,R.jsx)(Be,{className:"k-coloreditor-preview-color",color:i}),(0,R.jsx)(Be,{className:"k-coloreditor-current-color",color:l})]})]})]}),(0,R.jsx)("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?(0,R.jsx)($e,{focus:d,size:t,canvasOrientation:L}):(0,R.jsx)(Nt,{palette:n,size:t})}),h&&(0,R.jsxs)(ze,{className:"k-coloreditor-footer",alignment:"start",children:[(0,R.jsx)(k,{themeColor:"primary",size:t,className:"k-coloreditor-apply",chi