UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 96.7 kB
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,l)=>t[l]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var v=(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"}),L=(e,t)=>{let{valid:o,invalid:l,hover:n,focus:i,checked:d,active:m,selected:p,disabled:b,indeterminate:x,loading:k,empty:c,readonly:h,highlighted:g,...C}=t;return a({"k-valid":o,"k-invalid":l,"k-hover":n,"k-focus":i,"k-checked":d,"k-active":m,"k-selected":p,"k-disabled":b,"k-indeterminate":x&&!d,"k-loading":k,"k-empty":c,"k-readonly":h,"k-highlighted":g},Object.keys(C).reduce((E,S)=>(S.startsWith("k-")?E[S]=C[S]:E[`k-${S}`]=C[S],E),{}))};function Dl(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(l=>[`k-${l}`,!0]))}var s={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},T={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"},r={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};import{Fragment as _i,jsx as zl}from"react/jsx-runtime";var qa="k-font-icon",Bi=[],Ki={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Pi={},Bo=e=>{let{size:t,themeColor:o,icon:l,rotate:n,flip:i,...d}=e;return l?zl("span",{...d,className:a(e.className,qa,v(qa,{size:t}),{[`k-i-${l}`]:l,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"})}):zl(_i,{})};Bo.states=Bi;Bo.options=Ki;Bo.className=qa;Bo.defaultOptions=Pi;var Fl=Bo;import{Fragment as zi,jsx as ma}from"react/jsx-runtime";var Qa="k-svg-icon",Gi=[],Di={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Ul={viewBox:"0 0 24 24"},Ko=e=>{let{size:t,themeColor:o,rotate:l,flip:n,viewBox:i=Ul.viewBox,icon:d,...m}=e;if(!d)return ma(zi,{});d==="none"&&{...m,className:a(e.className,Qa,"k-none")};let p=typeof d=="object"&&d.name&&d.name;return ma("span",{...m,className:a(e.className,Qa,v("k-icon",{size:t}),{[`k-svg-i-${p}`]:p,[`k-color-${o}`]:o,[`k-rotate-${l}`]:l,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),children:ma("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})})};Ko.states=Gi;Ko.options=Di;Ko.className=Qa;Ko.defaultOptions=Ul;var Ya=Ko;import*as Za from"@progress/kendo-svg-icons";var $l="icon",Vl="icons";import{Fragment as Xl,jsx as Po}from"react/jsx-runtime";var ca="k-icon",Fi=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ui=[],$i={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},ja={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:l,type:n=ja.type,rotate:i,flip:d,viewBox:m=ja.viewBox,...p}=e;if(!l)return Po(Xl,{});if(n==="svg"){if(l==="none")return Po(Ya,{...p,className:a(e.className,ca),icon:l,size:t});let b=Za[l]?l:Fi(`${l}-icon`);return Za[b]?Po(Ya,{...p,className:a(e.className,ca),icon:Za[b],size:t,themeColor:o,rotate:i,flip:d,viewBox:m}):Po(Xl,{})}return Po(Fl,{...p,className:a(e.className,ca),icon:l,size:t,themeColor:o,rotate:i,flip:d})};M.states=Ui;M.options=$i;M.defaultOptions=ja;M.className=ca;M.moduleName=$l;M.folderName=Vl;var er="button",Wl=er;import{Fragment as Ji,jsx as _o,jsxs as Jl}from"react/jsx-runtime";var Go="k-button",Vi=["icon-button"],Xi=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],Wi={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline,T.clear,T.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Pt={size:s.medium,rounded:f.medium,fillMode:T.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},N=e=>{let{size:t=Pt.size,rounded:o=Pt.rounded,fillMode:l=Pt.fillMode,themeColor:n=Pt.themeColor,showArrow:i=Pt.showArrow,arrowIconName:d=Pt.arrowIconName,variant:m,hover:p,focus:b,active:x,selected:k,disabled:c,icon:h,text:g,iconClassName:C,...E}=e,S=h!==void 0,R=e.children!==void 0;return Jl("button",{...E,className:a(e.className,Go,Dl(Go,m),v(Go,{size:t,rounded:o,fillMode:l,themeColor:n}),L(Go,{hover:p,focus:b,active:x,disabled:c,selected:k}),{"k-icon-button":!g&&!R&&S}),children:[h&&_o(M,{className:a(C,"k-button-icon"),icon:h}),g?Jl(Ji,{children:[g&&_o("span",{className:"k-button-text",children:g}),e.children]}):e.children&&_o("span",{className:"k-button-text",children:e.children}),i&&_o("span",{className:"k-menu-button-arrow k-button-arrow",children:_o(M,{icon:d})})]})};N.states=Xi;N.options=Wi;N.variants=Vi;N.className=Go;N.defaultOptions=Pt;N.moduleName=er;N.folderName=Wl;import{jsx as qi}from"react/jsx-runtime";var pa=e=>qi(N,{icon:"folder",...e,children:void 0});import{jsx as Qi}from"react/jsx-runtime";var tr=e=>Qi(N,{icon:"folder",children:"Button",...e});import{jsx as Mb}from"react/jsx-runtime";var or="button",ql=or;import{jsx as ji}from"react/jsx-runtime";var Do="k-button-group",Yi=[r.disabled],Zi={fillMode:[T.solid,T.flat,T.outline,T.clear,T.link]},Ql={fillMode:T.solid},I=e=>{let{fillMode:t=Ql.fillMode,disabled:o,stretched:l,...n}=e;return ji("div",{...n,className:a(e.className,Do,v(Do,{fillMode:t}),L(Do,{disabled:o}),{[`${Do}-stretched`]:l}),children:e.children})};I.states=Yi;I.options=Zi;I.className=Do;I.defaultOptions=Ql;I.moduleName=or;I.folderName=ql;import{Fragment as _b,jsx as Pb,jsxs as Gb}from"react/jsx-runtime";import{Fragment as Vb,jsx as $b,jsxs as Xb}from"react/jsx-runtime";import{Fragment as Zb,jsx as Yb,jsxs as jb}from"react/jsx-runtime";import{Fragment as lT,jsx as rT,jsxs as sT}from"react/jsx-runtime";var zo="input",ua=zo;import{jsx as od}from"react/jsx-runtime";var fa="k-input",ed=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],td={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},ba={size:s.medium,rounded:s.medium,fillMode:T.solid},B=e=>{let{hover:t,focus:o,disabled:l,invalid:n,valid:i,loading:d,readonly:m,size:p=ba.size,rounded:b=ba.rounded,fillMode:x=ba.fillMode,...k}=e;return od("span",{...k,className:a(e.className,fa,v(fa,{size:p,rounded:b,fillMode:x}),L(fa,{hover:t,focus:o,disabled:l,invalid:n,valid:i,loading:d,readonly:m}))})};B.states=ed;B.options=td;B.className=fa;B.defaultOptions=ba;B.moduleName=zo;B.folderName=ua;import{jsx as ld}from"react/jsx-runtime";var Ta="k-picker",ad=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],rd={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},Na={size:s.medium,rounded:f.medium,fillMode:T.solid},Te=e=>{let{hover:t,focus:o,disabled:l,invalid:n,valid:i,loading:d,readonly:m,size:p=Na.size,rounded:b=Na.rounded,fillMode:x=Na.fillMode,...k}=e;return ld("span",{...k,className:a(e.className,Ta,v(Ta,{size:p,rounded:b,fillMode:x}),L(Ta,{hover:t,focus:o,disabled:l,invalid:n,valid:i,loading:d,readonly:m})),children:e.children})};Te.states=ad;Te.options=rd;Te.className=Ta;Te.defaultOptions=Na;Te.moduleName=zo;Te.folderName=ua;import{Fragment as id,jsx as ar}from"react/jsx-runtime";var Yl="k-clear-value",sd=[r.disabled,r.loading,r.readonly],nd={},Ke=e=>{let{disabled:t,loading:o,readonly:l,value:n}=e;return t||l||o||!n?ar(id,{}):ar("span",{className:a(e.className,Yl),children:ar(M,{icon:"x"})})};Ke.states=sd;Ke.options=nd;Ke.className=Yl;import{jsx as cd}from"react/jsx-runtime";var rr="k-input-inner",dd=[],md={},xa={type:"text",autocomplete:"off",value:"",placeholder:""},Pe=e=>{let{value:t=xa.value,type:o=xa.type,placeholder:l=xa.placeholder,autocomplete:n=xa.autocomplete,...i}=e;return cd("input",{...i,type:o,className:a(e.className,rr,v(rr,e)),placeholder:l,autoComplete:n,defaultValue:t})};Pe.states=dd;Pe.options=md;Pe.className=rr;import{jsx as Zl,jsxs as fd}from"react/jsx-runtime";var lr="k-input-inner",pd=[],ud={},_t=e=>{let{value:t,placeholder:o,showValue:l,valueIcon:n,valueIconName:i,...d}=e;return fd("span",{...d,className:a(e.className,lr,v(lr,e)),children:[n,!n&&i&&Zl(M,{className:"k-input-value-icon",icon:i}),l&&!t&&o,l&&t&&Zl("span",{className:"k-input-value-text",children:t})]})};_t.states=pd;_t.options=ud;_t.className=lr;import{jsx as Nd}from"react/jsx-runtime";var sr="k-input-inner",bd=[],Td={},jl={value:"",placeholder:""},nr=e=>{let{value:t=jl.value,placeholder:o=jl.placeholder,rows:l,...n}=e;return Nd("textarea",{...n,className:a(e.className,sr,v(sr,e)),placeholder:o,rows:l,defaultValue:t})};nr.states=bd;nr.options=Td;nr.className=sr;import{Fragment as hd,jsx as es}from"react/jsx-runtime";var ts="k-input-loading-icon",xd=[r.disabled,r.loading],ve=e=>{let{disabled:t,loading:o}=e;return t||!o?es(hd,{}):es("span",{className:a(e.className,ts,"k-icon k-i-loading")})};ve.states=xd;ve.className=ts;import{Fragment as Md,jsx as os}from"react/jsx-runtime";var as="k-input-validation-icon",Ld=[r.valid,r.invalid,r.disabled,r.loading],gd={},Ne=e=>{let{valid:t,invalid:o,disabled:l,loading:n}=e,i=o?"warning-circle":"check-circle";return l||n||!!!(t||o)?os(Md,{}):os(M,{className:a(as),icon:i})};Ne.states=Ld;Ne.options=gd;Ne.className=as;import{Fragment as Cd,jsx as rs}from"react/jsx-runtime";var kd="k-input-prefix",vd={direction:"horizontal"},$e=e=>{let{direction:t=vd.direction,...o}=e;return e.children?rs("span",{...o,className:a(kd,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):rs(Cd,{})};import{Fragment as Ad,jsx as ls}from"react/jsx-runtime";var Ed="k-input-suffix",Sd={direction:"horizontal"},Ve=e=>{let{direction:t=Sd.direction,...o}=e;return e.children?ls("span",{...o,className:a(Ed,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ls(Ad,{})};import{jsx as ZT}from"react/jsx-runtime";import{jsx as oN}from"react/jsx-runtime";import{jsx as Rd}from"react/jsx-runtime";var ss="k-input-separator",wd={direction:"vertical"},tt=e=>{let{direction:t=wd.direction,...o}=e;return Rd("span",{...o,className:a(ss,e.className,{[`${ss}-${t}`]:t})})};import{jsx as ns,jsxs as Od}from"react/jsx-runtime";var is="k-color-preview",yd=[],Id={},bt=e=>{let{color:t,iconName:o,...l}=e;return Od("span",{...l,className:a(e.className,is,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ns(M,{icon:o,className:"k-color-preview-icon"}),ns("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};bt.states=yd;bt.options=Id;bt.className=is;var ir="popup",ds=ir;import{jsx as ms}from"react/jsx-runtime";var cs="k-animation-container",Hd=[],Bd={},ps={positionMode:"absolute"},Xe=e=>{let{positionMode:t=ps.positionMode,animationStyle:o,offset:l,...n}=e;return ms("div",{...n,style:{...l,...e.style},className:a(e.className,cs,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:ms("div",{className:"k-child-animation-container",style:o,children:e.children})})};Xe.states=Hd;Xe.options=Bd;Xe.className=cs;Xe.defaultOptions=ps;Xe.moduleName=ir;Xe.folderName=ds;var dr="popup",us=dr;import{jsx as fs}from"react/jsx-runtime";var bs="k-popup",Kd=[],Pd={},Ts={positionMode:"absolute"},V=e=>{let{offset:t,positionMode:o=Ts.positionMode,animationStyle:l,...n}=e;return fs(Xe,{positionMode:o,offset:t,animationStyle:l,children:fs("div",{...n,className:a(e.className,bs),children:e.children})})};V.states=Kd;V.options=Pd;V.className=bs;V.defaultOptions=Ts;V.moduleName=dr;V.folderName=us;var mr="action-buttons",Ns=mr;import{jsx as Dd}from"react/jsx-runtime";var ha="k-actions",_d=[],Gd={},cr={alignment:"start",orientation:"horizontal"},We=e=>{let{alignment:t=cr.alignment,orientation:o=cr.orientation,...l}=e;return Dd("div",{...l,className:a(ha,{[`${ha}-${t}`]:t,[`${ha}-${o}`]:o},e.className),children:e.children})};We.states=_d;We.options=Gd;We.className=ha;We.defaultOptions=cr;We.moduleName=mr;We.folderName=Ns;import{jsx as Fd}from"react/jsx-runtime";var zd="k-actionsheet-footer",xs={alignment:"stretched",orientation:"horizontal"},Fo=e=>{let{alignment:t=xs.alignment,orientation:o=xs.orientation,template:l,as:n=l?"div":We,...i}=e;return Fd(n,{...i,...!l&&{alignment:t,orientation:o},className:a(e.className,zd),children:e.children})};var pr="searchbox",hs=pr;import{jsx as Uo,jsxs as Vd}from"react/jsx-runtime";var Ls="k-searchbox",Ud=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],$d={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},ur={showIcon:!0,icon:"search",size:B.defaultOptions.size,rounded:B.defaultOptions.rounded,fillMode:B.defaultOptions.fillMode},Z=e=>{let{value:t,placeholder:o,size:l,rounded:n,fillMode:i,hover:d,focus:m,valid:p,invalid:b,required:x,loading:k,disabled:c,showIcon:h=ur.showIcon,icon:g=ur.icon,...C}=e;return Vd(B,{...C,size:l,rounded:n,fillMode:i,hover:d,focus:m,valid:p,invalid:b,required:x,loading:k,disabled:c,className:a(e.className,Ls),children:[h&&Uo(M,{className:"k-input-icon",icon:g}),Uo(Pe,{placeholder:o,value:t}),Uo(ve,{...e}),Uo(Ne,{...e}),Uo(Ke,{...e})]})};Z.states=Ud;Z.options=$d;Z.className=Ls;Z.defaultOptions=ur;Z.moduleName=pr;Z.folderName=hs;import{jsx as dx}from"react/jsx-runtime";var fr="textbox",gs=fr;import{Fragment as Ms,jsx as Tt,jsxs as br}from"react/jsx-runtime";var ks="k-textbox",Xd=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Wd={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},Gt={showClearButton:!0,showValidationIcon:!0,size:B.defaultOptions.size,rounded:B.defaultOptions.rounded,fillMode:B.defaultOptions.fillMode,separators:!0},Ce=e=>{let{size:t=Gt.size,rounded:o=Gt.rounded,fillMode:l=Gt.fillMode,separators:n=Gt.separators,showClearButton:i=Gt.showClearButton,showValidationIcon:d=Gt.showValidationIcon,prefix:m,suffix:p,type:b,value:x,placeholder:k,hover:c,focus:h,valid:g,invalid:C,required:E,loading:S,disabled:R,readonly:D,...$}=e;return br(B,{...$,size:t,rounded:o,fillMode:l,hover:c,focus:h,valid:g,invalid:C,required:E,loading:S,disabled:R,readonly:D,className:a(e.className,ks),children:[m&&br(Ms,{children:[Tt($e,{children:m}),n&&Tt(tt,{})]}),Tt(Pe,{placeholder:k,value:x,type:b}),d&&Tt(Ne,{valid:g,invalid:C,loading:S,disabled:R}),Tt(ve,{loading:S,disabled:R}),i&&Tt(Ke,{loading:S,disabled:R,readonly:D,value:x}),p&&br(Ms,{children:[n&&Tt(tt,{}),Tt(Ve,{children:p})]})]})};Ce.states=Xd;Ce.options=Wd;Ce.className=ks;Ce.defaultOptions=Gt;Ce.moduleName=fr;Ce.folderName=gs;import{jsx as Mx}from"react/jsx-runtime";import{Fragment as Ax,jsx as Sx}from"react/jsx-runtime";import{Fragment as Bx,jsx as Hx}from"react/jsx-runtime";import{jsx as Nt,jsxs as Tr}from"react/jsx-runtime";var Cs="k-actionsheet-titlebar",Jd={},Ee=e=>{let{title:t,subtitle:o,actionsStart:l,actionsEnd:n,filter:i,input:d,inputValue:m,inputPlaceholder:p,adaptive:b,children:x,...k}=e;return Tr("div",{...k,className:a(e.className,Cs),children:[Tr("div",{className:"k-actionsheet-titlebar-group",children:[l&&Nt("div",{className:"k-actionsheet-actions",children:l}),!x&&Tr("div",{className:"k-actionsheet-title",children:[t&&Nt("div",{className:"k-text-center",children:t}),o&&Nt("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&Nt("div",{className:"k-actionsheet-title",children:x}),n&&Nt("div",{className:"k-actionsheet-actions",children:n})]}),(d||i)&&Nt("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Nt(Ce,{value:m,placeholder:p,size:b?"large":"medium"}):Nt(Z,{placeholder:"Filter",size:b?"large":"medium"})})]})};Ee.className=Cs;Ee.defaultOptions=Jd;import{jsx as Nr,jsxs as Zd}from"react/jsx-runtime";var xr="k-actionsheet-view",qd=[],Qd={},Yd={},ro=e=>{let{adaptive:t,animated:o,children:l,header:n,footer:i,...d}=e,m=n?.type===Ee&&Nr(Ee,{adaptive:t,...n?.props}),p=i?.type===Fo&&Nr(Fo,{...i?.props});return Zd("div",{...d,className:a(e.className,xr,{[`${xr}-animated`]:o}),children:[m,Nr("div",{className:"k-actionsheet-content",children:l}),p]})};ro.states=qd;ro.options=Qd;ro.className=xr;ro.defaultOptions=Yd;var $o="action-sheet",La=$o;import{jsx as ga,jsxs as tm}from"react/jsx-runtime";var Es="k-actionsheet",jd=[],em={},Vo={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},xe=e=>{let{side:t=Vo.side,fullscreen:o=Vo.fullscreen,adaptive:l=Vo.adaptive,overlay:n=Vo.overlay,template:i,children:d,header:m,footer:p,...b}=e;return tm("div",{className:"k-actionsheet-container",children:[n&&ga("div",{className:"k-overlay"}),ga(Xe,{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:ga("div",{...b,className:a(e.className,Es,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":l}),children:i||ga(ro,{header:m,footer:p,adaptive:l,...e,children:d})})})]})};xe.states=jd;xe.options=em;xe.className=Es;xe.defaultOptions=Vo;xe.moduleName=$o;xe.folderName=La;import{jsx as lm}from"react/jsx-runtime";var Ss="k-actionsheet-container",om=[],am={},rm={},lo=e=>{let{children:t,...o}=e;return lm("div",{...o,className:Ss,children:t})};lo.states=om;lo.options=am;lo.className=Ss;lo.defaultOptions=rm;lo.moduleName=$o;lo.folderName=La;import{jsx as mh}from"react/jsx-runtime";import{Fragment as nm,jsx as Xo,jsxs as hr}from"react/jsx-runtime";var Lr="k-actionsheet-item",sm=[r.hover,r.focus,r.selected,r.disabled],gr=e=>{let{iconName:t,text:o,description:l,hover:n,focus:i,selected:d,disabled:m,...p}=e;return hr("span",{...p,className:a(e.className,Lr,L(Lr,{hover:n,focus:i,selected:d,disabled:m})),children:[!e.children&&Xo(nm,{children:hr("span",{className:"k-actionsheet-action",children:[t&&Xo("span",{className:"k-icon-wrap",children:Xo(M,{className:"k-actionsheet-item-icon",icon:t})}),hr("span",{className:"k-actionsheet-item-text",children:[o&&Xo("span",{className:"k-actionsheet-item-title",children:o}),l&&Xo("span",{className:"k-actionsheet-item-description",children:l})]})]})}),e.children]})};gr.states=sm;gr.className=Lr;import{jsx as hh,jsxs as Lh}from"react/jsx-runtime";import{jsx as vh}from"react/jsx-runtime";import{jsx as Ah}from"react/jsx-runtime";import{jsx as Ih}from"react/jsx-runtime";var Mr="slider",ws=Mr;import{jsx as so,jsxs as kr}from"react/jsx-runtime";var Wo="k-slider",im=[r.hover,r.focus,r.active,r.disabled,r.readonly],dm={},xt={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},de=e=>{let{type:t=xt.type,orientation:o=xt.orientation,readonly:l=xt.readonly,disabled:n=xt.disabled,handlePosition:i=xt.handlePosition,showButtons:d=xt.showButtons,showTicks:m=xt.showTicks,hover:p,focus:b,active:x,trackStyle:k,dir:c,...h}=e,g,C;return o==="horizontal"?(g=c==="rtl"?"caret-alt-left":"caret-alt-right",C=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(g="caret-alt-up",C="caret-alt-down"),kr("div",{...h,className:a(Wo,e.className,L(Wo,{readonly:l,disabled:n}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[d&&so(N,{className:"k-button-decrease",rounded:"full",icon:C}),kr("div",{className:"k-slider-track-wrap",children:[m&&so("ul",{className:"k-reset k-slider-items",children:e.children}),kr("div",{className:"k-slider-track",style:k,children:[so("div",{className:"k-slider-selection"}),t==="range"&&so("span",{className:a("k-draghandle","k-draghandle-start",L(Wo,{hover:p,focus:b,active:x}))}),so("span",{className:a("k-draghandle",`k-draghandle-${i}`,L(Wo,{hover:p,focus:b,active:x}))})]})]}),d&&so(N,{className:"k-button-increase",rounded:"full",icon:g})]})};de.states=im;de.options=dm;de.className=Wo;de.defaultOptions=xt;de.moduleName=Mr;de.folderName=ws;import{jsx as Rs}from"react/jsx-runtime";var ys="k-tick",mm=[],cm={},Is={label:!1},ht=e=>{let{style:t,label:o=Is.label,orientation:l,large:n,text:i,...d}=e;return Rs("li",{...d,className:a(e.className,ys,{[`k-tick-${l}`]:l,"k-tick-large":n}),style:t,children:o&&Rs("span",{className:"k-label",children:i})})};ht.states=mm;ht.options=cm;ht.className=ys;ht.defaultOptions=Is;import{Fragment as rL,jsx as aL,jsxs as lL}from"react/jsx-runtime";import{Fragment as mL,jsx as dL,jsxs as cL}from"react/jsx-runtime";import{Fragment as TL,jsx as bL,jsxs as NL}from"react/jsx-runtime";import{Fragment as ML,jsx as gL,jsxs as kL}from"react/jsx-runtime";import{jsx as pm}from"react/jsx-runtime";var vr=e=>pm(de,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as um}from"react/jsx-runtime";var Cr=e=>um(de,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Os,jsxs as xm}from"react/jsx-runtime";var Hs="k-spin-button",Tm=[],Nm={size:[s.small,s.medium,s.large],fillMode:[T.solid,T.flat,T.outline,T.clear,T.link]},Er={size:s.medium,fillMode:T.solid},Lt=e=>{let{size:t=Er.size,fillMode:o=Er.fillMode,...l}=e;return xm("span",{...l,className:a(Hs,e.className),children:[Os(N,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Os(N,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Lt.states=Tm;Lt.options=Nm;Lt.className=Hs;Lt.defaultOptions=Er;Lt.moduleName=null;Lt.folderName=null;var Bs="numeric-textbox",Ks="numerictextbox";import{Fragment as Ps,jsx as ot,jsxs as Sr}from"react/jsx-runtime";var _s="k-numerictextbox",hm=[r.hover,r.focus,r.valid,r.invalid,r.loading,r.required,r.disabled,r.readonly],Lm={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},Dt={showSpinButton:!0,showClearButton:!0,size:B.defaultOptions.size,rounded:B.defaultOptions.rounded,fillMode:B.defaultOptions.fillMode,separators:!0},K=e=>{let{size:t=Dt.size,rounded:o=Dt.rounded,fillMode:l=Dt.fillMode,separators:n=Dt.separators,showClearButton:i=Dt.showClearButton,showSpinButton:d=Dt.showSpinButton,prefix:m,suffix:p,value:b,placeholder:x,hover:k,focus:c,valid:h,invalid:g,required:C,loading:E,disabled:S,readonly:R,...D}=e;return Sr(B,{...D,size:t,rounded:o,fillMode:l,hover:k,focus:c,valid:h,invalid:g,required:C,loading:E,disabled:S,readonly:R,className:a(e.className,_s),children:[m&&Sr(Ps,{children:[ot($e,{children:m}),n&&ot(tt,{})]}),ot(Pe,{placeholder:x,value:b}),ot(Ne,{valid:h,invalid:g,loading:E,disabled:S}),ot(ve,{loading:E,disabled:S}),i&&ot(Ke,{loading:E,disabled:S,readonly:R,value:b}),p&&Sr(Ps,{children:[n&&ot(tt,{}),ot(Ve,{children:p})]}),d&&ot(Lt,{className:"k-input-spinner",size:t,fillMode:l})]})};K.states=hm;K.options=Lm;K.className=_s;K.defaultOptions=Dt;K.moduleName=Bs;K.folderName=Ks;import{jsx as ag}from"react/jsx-runtime";import{jsx as Mm}from"react/jsx-runtime";var gm="k-no-data",Jo=e=>Mm("span",{className:a(gm,e.className),children:e.children});var at="list",gt=at;import{jsx as no,jsxs as Ds}from"react/jsx-runtime";var Ar="k-list",km=[],vm={size:[s.small,s.medium,s.large]},zs={size:s.medium},P=e=>{let{size:t=zs.size,virtualization:o,children:l,optionLabel:n,customValue:i,screenReaders:d,...m}=e,p,b,x,k,c=[];return l?l.map((h,g)=>{h.type===j?(h.props.root===!0?(p=h.props.label,h.props.children.map((C,E)=>{c.push(no(A,{...C.props},`optChild-${E}-${new Date().getTime()}`))})):h.props.children.forEach((C,E)=>{let S="";E===0&&(S=h.props.label),c.push(no(A,{className:E===0?"k-first":"",...C.props,groupLabel:S},`groupLabel-${E}-${new Date().getTime()}`))}),b=no(j,{label:p,virtualization:o,children:c})):h.type===A&&(c.push(no(A,{...h.props},`${h.type}-${g}`)),x=no(io,{virtualization:o,children:c}),d&&(k=Ds(Jo,{className:"k-sr-only",children:[c.length," items found."]})))}):k=no(Jo,{children:"No data found."}),Ds("div",{...m,className:a(e.className,Ar,v(Ar,{size:t}),{"k-virtual-list":o}),children:[n,i,b,x,k]})};P.states=km;P.options=vm;P.className=Ar;P.defaultOptions=zs;P.moduleName=at;P.folderName=gt;import{jsx as Am}from"react/jsx-runtime";var Fs="k-list-container",Cm=[],Em={},Sm={},mo=e=>{let{...t}=e;return Am("div",{...t,className:a(e.className,Fs),children:e.children})};mo.states=Cm;mo.options=Em;mo.className=Fs;mo.defaultOptions=Sm;mo.moduleName=at;mo.folderName=gt;import{jsx as zt,jsxs as ym}from"react/jsx-runtime";var wr="k-list",wm=[],Rm={size:[s.small,s.medium,s.large]},Us={size:s.medium},rt=e=>{let{size:t=Us.size,virtualization:o,children:l,...n}=e,i,d,m,p=[];return l?l.map((b,x)=>{b.type===j?(b.props.root===!0?(i=b.props.label,b.props.children.map((k,c)=>{p.push(zt(A,{...k.props},`optChild-${c}-${new Date().getTime()}`))})):(p.push(zt($s,{...b.props,children:b.props.label},`listChild-${x}`)),b.props.children.map((k,c)=>{p.push(zt(A,{...k.props},`fwOptChild-${c}-${new Date().getTime()}`))})),d=zt(j,{label:i,virtualization:o,children:p})):b.type===A&&(p.push(zt(A,{...b.props},`${b.type}-${x}`)),m=zt(io,{virtualization:o,children:p}))}):m=zt(Jo,{children:"No data found."}),ym("div",{...n,className:a(e.className,wr,v(wr,{size:t}),{"k-virtual-list":o}),children:[d,m]})};rt.states=wm;rt.options=Rm;rt.className=wr;rt.defaultOptions=Us;rt.moduleName=at;rt.folderName=gt;var Ft="checkbox",co=Ft;import{jsx as Vs}from"react/jsx-runtime";var Ma="k-checkbox",Im=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],Om={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full]},Rr={size:s.medium,rounded:f.medium},he=e=>{let{id:t,checked:o,indeterminate:l,hover:n,focus:i,disabled:d,invalid:m,valid:p,required:b,size:x=Rr.size,rounded:k=Rr.rounded,...c}=e;return Vs("span",{className:"k-checkbox-wrap",children:Vs("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:b,className:a(e.className,Ma,v(Ma,{size:x,rounded:k}),L(Ma,{hover:n,focus:i,disabled:d,invalid:m,valid:p,indeterminate:l,checked:o}))})})};he.states=Im;he.options=Om;he.className=Ma;he.defaultOptions=Rr;he.moduleName=Ft;he.folderName=co;import{jsx as Km}from"react/jsx-runtime";var Xs="k-checkbox-list",Hm=[],Bm={},Ws={layout:"vertical"},Mt=e=>{let{layout:t=Ws.layout,...o}=e;return Km("ul",{...o,className:a(e.className,Xs,{[`k-list-${t}`]:t}),children:e.children})};Mt.states=Hm;Mt.options=Bm;Mt.className=Xs;Mt.defaultOptions=Ws;Mt.moduleName=Ft;Mt.folderName=co;import{jsx as Dm}from"react/jsx-runtime";var Js="k-checkbox-list-item",Pm=[],_m={},Gm={},kt=e=>{let{...t}=e;return Dm("li",{...t,className:a(e.className,Js),children:e.children})};kt.states=Pm;kt.options=_m;kt.className=Js;kt.defaultOptions=Gm;kt.moduleName=Ft;kt.folderName=co;import{Fragment as Ug,jsx as Fg,jsxs as $g}from"react/jsx-runtime";import{Fragment as qg,jsx as Jg,jsxs as Qg}from"react/jsx-runtime";import{Fragment as tM,jsx as eM,jsxs as oM}from"react/jsx-runtime";import{Fragment as nM,jsx as sM,jsxs as iM}from"react/jsx-runtime";import{jsx as pM}from"react/jsx-runtime";import{jsx as TM}from"react/jsx-runtime";import{jsx as ka,jsxs as $m}from"react/jsx-runtime";var Ir="k-list-item",zm=[r.hover,r.focus,r.selected,r.disabled],Fm={},Um={},A=e=>{let{text:t,groupLabel:o,group:l,showIcon:n,iconName:i,showCheckbox:d,checked:m,hover:p,focus:b,selected:x,disabled:k,...c}=e,h=t||e.children;return $m("li",{...c,className:a(e.className,l?"k-list-group-item":Ir,L(Ir,{hover:p,focus:b,disabled:k,selected:x})),children:[d&&ka(he,{checked:m}),n&&ka(M,{icon:i}),ka("span",{className:"k-list-item-text",children:h}),o&&o!==""&&ka("div",{className:"k-list-item-group-label",children:o})]})};A.states=zm;A.options=Fm;A.className=Ir;A.defaultOptions=Um;A.moduleName=at;A.folderName=gt;import{jsx as Or,jsxs as Xm}from"react/jsx-runtime";var Vm="k-list-content",io=e=>{let{virtualization:t,...o}=e;return Xm("div",{...o,className:a(Vm,e.className),children:[Or("ul",{className:a("k-list-ul"),children:e.children}),t&&Or("div",{className:"k-height-container",children:Or("div",{})})]})};import{jsx as qs}from"react/jsx-runtime";var Wm="k-list-group-sticky-header",Qs=e=>qs("div",{className:a(Wm,e.className),children:qs("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Jm,jsx as Ys,jsxs as qm}from"react/jsx-runtime";var j=e=>{let{virtualization:t,label:o}=e;return qm(Jm,{children:[o&&Ys(Qs,{children:o}),e.children&&Ys(io,{virtualization:t,children:e.children})]})};import{jsx as Zs}from"react/jsx-runtime";var Qm="k-list-group-item",$s=e=>Zs("li",{className:a(Qm,e.className),children:Zs("span",{className:"k-list-item-text",children:e.children})});import{jsx as ec}from"react/jsx-runtime";var Hr="k-list-optionlabel",Ym=[r.hover,r.focus,r.selected,r.disabled],Zm={},jm={},va=e=>{let{text:t,hover:o,focus:l,selected:n,disabled:i,...d}=e;return ec("div",{...d,className:a(Hr,L(Hr,{hover:o,focus:l,selected:n,disabled:i})),children:t})};va.states=Ym;va.options=Zm;va.className=Hr;va.defaultOptions=jm;import{jsx as rc}from"react/jsx-runtime";var Br="k-list-custom-value",tc=[r.hover,r.focus,r.selected,r.disabled],oc={},ac={},vt=e=>{let{text:t,hover:o,focus:l,selected:n,disabled:i,...d}=e;return rc("div",{...d,className:a(Br,L(Br,{hover:o,focus:l,selected:n,disabled:i})),children:t})};vt.states=tc;vt.options=oc;vt.className=Br;vt.defaultOptions=ac;import{jsx as ek}from"react/jsx-runtime";import{jsx as rk}from"react/jsx-runtime";import{jsx as ik,jsxs as dk}from"react/jsx-runtime";import{jsx as uk,jsxs as fk}from"react/jsx-runtime";import{jsx as xk}from"react/jsx-runtime";import{jsx as Mk,jsxs as kk}from"react/jsx-runtime";import{jsx as Sk,jsxs as Ak}from"react/jsx-runtime";var js="dropdown-list",en="dropdownlist";import{Fragment as nc,jsx as me,jsxs as Kr}from"react/jsx-runtime";var tn="k-dropdownlist",lc=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],sc={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},po={showValue:!0,arrowIconName:"caret-alt-down",size:s.medium,rounded:f.medium,fillMode:T.solid},Le=e=>{let{size:t=po.size,rounded:o=po.rounded,fillMode:l=po.fillMode,arrowIconName:n=po.arrowIconName,showValue:i=po.showValue,valueIconName:d,prefix:m,suffix:p,value:b,placeholder:x,hover:k,focus:c,valid:h,invalid:g,required:C,loading:E,disabled:S,readonly:R,popup:D,opened:$,adaptive:Kt,adaptiveSettings:Ho,adaptiveTitle:Wa,adaptiveSubtitle:Ja,adaptiveFilter:Oi,...Hi}=e;return Kr(nc,{children:[Kr(Te,{...Hi,size:t,rounded:o,fillMode:l,hover:k,focus:c,valid:h,invalid:g,required:C,loading:E,disabled:S,readonly:R,className:a(e.className,tn,{"k-icon-picker":!i&&d}),children:[me($e,{children:m}),me(_t,{placeholder:x,value:b,showValue:i,valueIconName:d}),me(Ne,{valid:h,invalid:g,loading:E,disabled:S}),me(ve,{loading:E,disabled:S}),me(Ve,{children:p}),me(N,{className:"k-input-button",icon:n,rounded:null,size:e.size,fillMode:e.fillMode})]}),$&&D&&me(V,{className:"k-list-container k-dropdownlist-popup",children:D}),Kt&&me(xe,{adaptive:!0,...Ho,header:me(Ee,{actionsEnd:me(N,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Oi,inputValue:b,inputPlaceholder:x,title:Wa,subtitle:Ja}),children:me("div",{className:"k-list-container",children:Kr(P,{size:"large",children:[me(A,{text:"List item"}),me(A,{text:"List item"}),me(A,{text:"List item"})]})})})]})};Le.states=lc;Le.options=sc;Le.className=tn;Le.defaultOptions=po;Le.moduleName=js;Le.folderName=en;import{jsx as nv}from"react/jsx-runtime";import{jsx as pv,jsxs as uv}from"react/jsx-runtime";import{Fragment as gv,jsx as hv,jsxs as Lv}from"react/jsx-runtime";import{jsx as Cv}from"react/jsx-runtime";import{jsx as Rv,jsxs as yv}from"react/jsx-runtime";import{jsx as Kv,jsxs as Pv}from"react/jsx-runtime";import{Fragment as Vv,jsx as Uv,jsxs as $v}from"react/jsx-runtime";import{Fragment as jv,jsx as Yv,jsxs as Zv}from"react/jsx-runtime";import{Fragment as bC,jsx as fC}from"react/jsx-runtime";import{Fragment as MC,jsx as gC}from"react/jsx-runtime";import{Fragment as qo,jsx as w,jsxs as U}from"react/jsx-runtime";var on="k-colorgradient-inputs",ic=[],dc={size:[s.small,s.medium,s.large]},an={mode:"rgba",size:s.medium},uo=e=>{let{mode:t=an.mode,size:o,...l}=e;return U("div",{...l,className:a(on,"k-hstack"),children:[w("div",{className:"k-vstack",children:w(N,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&U(qo,{children:[U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),w("label",{className:"k-colorgradient-input-label",children:"R"})]}),U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),w("label",{className:"k-colorgradient-input-label",children:"G"})]}),U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),w("label",{className:"k-colorgradient-input-label",children:"B"})]}),U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),w("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&U(qo,{children:[U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),w("label",{className:"k-colorgradient-input-label",children:"R"})]}),U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),w("label",{className:"k-colorgradient-input-label",children:"G"})]}),U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),w("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&U(qo,{children:[U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),w("label",{className:"k-colorgradient-input-label",children:"H"})]}),U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),w("label",{className:"k-colorgradient-input-label",children:"S"})]}),U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),w("label",{className:"k-colorgradient-input-label",children:"V"})]}),U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),w("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&U(qo,{children:[U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),w("label",{className:"k-colorgradient-input-label",children:"H"})]}),U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),w("label",{className:"k-colorgradient-input-label",children:"S"})]}),U("div",{className:"k-vstack",children:[w(K,{showSpinButton:!1,showClearButton:!1,value:"132"}),w("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&w(qo,{children:U("div",{className:"k-vstack k-flex-1",children:[w(Ce,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),w("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};uo.states=ic;uo.options=dc;uo.className=on;uo.defaultOptions=an;import{jsx as $t,jsxs as Vt}from"react/jsx-runtime";var rn="k-colorgradient-color-contrast",mc=[],cc={},pc={},fo=()=>Vt("div",{className:a(rn,"k-vbox"),children:[Vt("div",{className:"k-contrast-ratio",children:[$t("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Vt("span",{className:"k-contrast-validation !k-text-success",children:[$t(M,{icon:"check"}),$t(M,{icon:"check"})]})]}),Vt("div",{children:[$t("span",{children:"AA: 4.5"}),Vt("span",{className:"k-contrast-validation !k-text-success",children:["Pass",$t(M,{icon:"check"})]})]}),Vt("div",{children:[$t("span",{children:"AAA: 7.0"}),Vt("span",{className:"k-contrast-validation !k-text-error",children:["Fail",$t(M,{icon:"x"})]})]})]});fo.states=mc;fo.options=cc;fo.className=rn;fo.defaultOptions=pc;var ln="color-gradient",sn="colorgradient";import{jsx as Se,jsxs as Qo}from"react/jsx-runtime";var Ca="k-colorgradient",uc=[r.hover,r.focus,r.readonly,r.disabled],fc={size:[s.small,s.medium,s.large]},_e={size:s.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"},Je=e=>{let{size:t=_e.size,mode:o=_e.mode,readonly:l=_e.readonly,disabled:n=_e.disabled,gradientStyle:i=_e.gradientStyle,dragHandleStyle:d=_e.dragHandleStyle,alphaStyle:m=_e.alphaStyle,alphaStyleHorizontal:p=_e.alphaStyleHorizontal,contrast:b=_e.contrast,dir:x,hover:k,focus:c,hoverHandle:h,focusHandle:g,canvasOrientation:C=_e.canvasOrientation,...E}=e;return Qo("div",{...E,className:a(e.className,Ca,v(Ca,{size:t}),L(Ca,{hover:k,focus:c,readonly:l,disabled:n})),dir:x,children:[!C||C==="horizontal"&&Qo("div",{className:"k-colorgradient-canvas k-hstack",children:[Se("div",{className:"k-hsv-rectangle",style:i,children:Se("div",{className:"k-hsv-gradient",children:Se("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":h,"k-focus":g}),style:d})})}),Qo("div",{className:"k-hsv-controls k-hstack",children:[Se(Cr,{className:"k-hue-slider",hover:h,focus:g}),o!=="rgb"&&o!=="hsv"&&Se(Cr,{className:"k-alpha-slider",hover:h,focus:g,trackStyle:m})]})]}),C==="vertical"&&Qo("div",{className:"k-colorgradient-canvas k-vstack",children:[Se("div",{className:"k-hsv-rectangle",style:i,children:Se("div",{className:"k-hsv-gradient",children:Se("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":h,"k-focus":g}),style:d})})}),Qo("div",{className:"k-hsv-controls k-vstack",children:[Se(vr,{className:"k-hue-slider",hover:h,focus:g}),o!=="rgb"&&o!=="hsv"&&Se(vr,{className:"k-alpha-slider",hover:h,focus:g,trackStyle:p})]})]}),Se(uo,{mode:e.mode,size:t}),b&&Se(fo,{})]})};Je.states=uc;Je.options=fc;Je.className=Ca;Je.defaultOptions=_e;Je.moduleName=ln;Je.folderName=sn;import{jsx as qC}from"react/jsx-runtime";import{jsx as jC}from"react/jsx-runtime";import{jsx as bc}from"react/jsx-runtime";var nn=e=>bc("tr",{children:e.children});import{jsx as xc}from"react/jsx-runtime";var Pr="k-colorpalette-tile",Tc=[r.hover,r.focus,r.selected],Nc={},Yo=e=>{let{color:t,tileSize:o,hover:l,focus:n,selected:i,...d}=e,m={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return xc("td",{...d,className:a(e.className,Pr,L(Pr,{hover:l,focus:n,selected:i})),style:m})};Yo.states=Tc;Yo.options=Nc;Yo.className=Pr;var dn="color-palette",mn="colorpalette";import{jsx as Zo}from"react/jsx-runtime";var Ea="k-colorpalette",hc=[r.disabled],Lc={size:[s.small,s.medium,s.large]},_r={columns:10,size:s.medium},Ct=e=>{let{size:t=_r.size,palette:o,columns:l=_r.columns,tileSize:n,disabled:i,...d}=e,m=[];if(o){let p=l||o.columns,b=o.colors?o.colors:o;Array.isArray(b)&&Array.from({length:Math.ceil(b.length/p)},(x,k)=>{let c=[];b.slice(k*p,(k+1)*p).map((g,C)=>{c.push(Zo(Yo,{color:g,tileSize:n},C))});let h=Zo(nn,{children:c},k);m.push(h)})}return Zo("div",{...d,className:a(e.className,Ea,L(Ea,{disabled:i}),v(Ea,{size:t})),children:Zo("table",{className:"k-colorpalette-table",children:Zo("tbody",{children:m.length>0?m:e.children})})})};Ct.states=hc;Ct.options=Lc;Ct.className=Ea;Ct.defaultOptions=_r;Ct.moduleName=dn;Ct.folderName=mn;var Gr={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4","#ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}};import{jsx as vE}from"react/jsx-runtime";var cn="color-editor",pn="coloreditor";import{jsx as Ae,jsxs as bo}from"react/jsx-runtime";var Sa="k-coloreditor",gc=[r.focus],Mc={size:[s.small,s.medium,s.large]},To={size:s.medium,view:"gradient",palette:Gr.office,actionButtons:!0,canvasOrientation:"horizontal"},we=e=>{let{size:t=To.size,view:o=To.view,palette:l=To.palette,color:n,currentColor:i,focus:d,focusView:m,dir:p,group:b,actionButtons:x=To.actionButtons,canvasOrientation:k=To.canvasOrientation,...c}=e;return bo("div",{...c,className:a(e.className,"k-flatcolorpicker",Sa,v(Sa,{size:t}),L(Sa,{focus:d})),dir:p,children:[bo("div",{className:"k-coloreditor-header k-hstack",children:[Ae("div",{className:"k-coloreditor-header-actions k-hstack",children:b&&bo(I,{fillMode:"flat",children:[Ae(N,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),Ae(N,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),Ae("div",{className:"k-spacer"}),bo("div",{className:"k-coloreditor-header-actions k-hstack",children:[Ae(N,{fillMode:"flat",icon:"droplet-slash",size:t}),bo("div",{className:"k-coloreditor-preview k-vstack",children:[Ae(bt,{className:"k-coloreditor-preview-color",color:n}),Ae(bt,{className:"k-coloreditor-current-color",color:i})]})]})]}),Ae("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?Ae(Je,{focus:m,size:t,canvasOrientation:k}):Ae(Ct,{palette:l,size:t})}),x&&bo(We,{className:"k-coloreditor-footer",alignment:"start",children:[Ae(N,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Ae(N,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};we.states=gc;we.options=Mc;we.className=Sa;we.defaultOptions=To;we.moduleName=cn;we.folderName=pn;import{jsx as VE}from"react/jsx-runtime";import{jsx as qE}from"react/jsx-runtime";import{jsx as jE}from"react/jsx-runtime";import{jsx as aS}from"react/jsx-runtime";var un="color-picker",fn="colorpicker";import{Fragment as Cc,jsx as Re,jsxs as zr}from"react/jsx-runtime";var bn="k-colorpicker",kc=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled],vc={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[T.solid,T.flat,T.outline]},jo={arrowIconName:"caret-alt-down",size:Te.defaultOptions.size,rounded:Te.defaultOptions.rounded,fillMode:Te.defaultOptions.fillMode},Ge=e=>{let{size:t=jo.size,rounded:o=jo.rounded,fillMode:l=jo.fillMode,arrowIconName:n=jo.arrowIconName,prefix:i,suffix:d,value:m,placeholder:p,hover:b,focus:x,valid:k,invalid:c,required:h,disabled:g,valueIconName:C,popup:E,opened:S,adaptive:R,adaptiveSettings:D,adaptiveTitle:$,adaptiveSubtitle:Kt,...Ho}=e;return zr(Cc,{children:[zr(Te,{...Ho,size:t,rounded:o,fillMode:l,hover:b,focus:x,valid:k,inva