UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 50.7 kB
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var k=(e,t)=>s({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),A=(e,t)=>{let{valid:o,invalid:n,hover:r,focus:d,checked:l,active:m,selected:c,disabled:p,indeterminate:N,loading:x,empty:h,readonly:L,highlighted:S,...M}=t;return s({"k-valid":o,"k-invalid":n,"k-hover":r,"k-focus":d,"k-checked":l,"k-active":m,"k-selected":c,"k-disabled":p,"k-indeterminate":N&&!l,"k-loading":x,"k-empty":h,"k-readonly":L,"k-highlighted":S},Object.keys(M).reduce((T,O)=>(O.startsWith("k-")?T[O]=M[O]:T[`k-${O}`]=M[O],T),{}))};function Mo(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(n=>[`k-${n}`,!0]))}var i={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},u={small:"small",medium:"medium",large:"large",full:"full"},f={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},b={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},a={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var Ve="input",ct=Ve;import{jsx as ss}from"react/jsx-runtime";var pt="k-input",os=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],as={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},mt={size:i.medium,rounded:i.medium,fillMode:f.solid},I=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:d,loading:l,readonly:m,size:c=mt.size,rounded:p=mt.rounded,fillMode:N=mt.fillMode,...x}=e;return ss("span",{...x,className:s(e.className,pt,k(pt,{size:c,rounded:p,fillMode:N}),A(pt,{hover:t,focus:o,disabled:n,invalid:r,valid:d,loading:l,readonly:m}))})};I.states=os;I.options=as;I.className=pt;I.defaultOptions=mt;I.moduleName=Ve;I.folderName=ct;import{jsx as rs}from"react/jsx-runtime";var ft="k-picker",ns=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],is={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},ut={size:i.medium,rounded:u.medium,fillMode:f.solid},w=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:d,loading:l,readonly:m,size:c=ut.size,rounded:p=ut.rounded,fillMode:N=ut.fillMode,...x}=e;return rs("span",{...x,className:s(e.className,ft,k(ft,{size:c,rounded:p,fillMode:N}),A(ft,{hover:t,focus:o,disabled:n,invalid:r,valid:d,loading:l,readonly:m})),children:e.children})};w.states=ns;w.options=is;w.className=ft;w.defaultOptions=ut;w.moduleName=Ve;w.folderName=ct;import{Fragment as ps,jsx as Co}from"react/jsx-runtime";var It="k-font-icon",ls=[],ds={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},cs={},$e=e=>{let{size:t,themeColor:o,icon:n,rotate:r,flip:d,...l}=e;return n?Co("span",{...l,className:s(e.className,It,k(It,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"})}):Co(ps,{})};$e.states=ls;$e.options=ds;$e.className=It;$e.defaultOptions=cs;var ko=$e;import{Fragment as us,jsx as bt}from"react/jsx-runtime";var yt="k-svg-icon",ms=[],fs={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},Ao={viewBox:"0 0 24 24"},Je=e=>{let{size:t,themeColor:o,rotate:n,flip:r,viewBox:d=Ao.viewBox,icon:l,...m}=e;if(!l)return bt(us,{});l==="none"&&{...m,className:s(e.className,yt,"k-none")};let c=typeof l=="object"&&l.name&&l.name;return bt("span",{...m,className:s(e.className,yt,k("k-icon",{size:t}),{[`k-svg-i-${c}`]:c,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:bt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:d,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};Je.states=ms;Je.options=fs;Je.className=yt;Je.defaultOptions=Ao;var Rt=Je;import*as Kt from"@progress/kendo-svg-icons";var go="icon",To="icons";import{Fragment as Oo,jsx as qe}from"react/jsx-runtime";var Nt="k-icon",bs=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ns=[],xs={size:[i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},_t={viewBox:"0 0 24 24",type:"svg"},g=e=>{let{size:t,themeColor:o,icon:n,type:r=_t.type,rotate:d,flip:l,viewBox:m=_t.viewBox,...c}=e;if(!n)return qe(Oo,{});if(r==="svg"){if(n==="none")return qe(Rt,{...c,className:s(e.className,Nt),icon:n,size:t});let p=Kt[n]?n:bs(`${n}-icon`);return Kt[p]?qe(Rt,{...c,className:s(e.className,Nt),icon:Kt[p],size:t,themeColor:o,rotate:d,flip:l,viewBox:m}):qe(Oo,{})}return qe(ko,{...c,className:s(e.className,Nt),icon:n,size:t,themeColor:o,rotate:d,flip:l})};g.states=Ns;g.options=xs;g.defaultOptions=_t;g.className=Nt;g.moduleName=go;g.folderName=To;import{Fragment as vs,jsx as Pt}from"react/jsx-runtime";var Io="k-clear-value",Ls=[a.disabled,a.loading,a.readonly],hs={},oe=e=>{let{disabled:t,loading:o,readonly:n,value:r}=e;return t||n||o||!r?Pt(vs,{}):Pt("span",{className:s(e.className,Io),children:Pt(g,{icon:"x"})})};oe.states=Ls;oe.options=hs;oe.className=Io;import{jsx as Ms}from"react/jsx-runtime";var Ht="k-input-inner",Ss=[],Es={},xt={type:"text",autocomplete:"off",value:"",placeholder:""},ae=e=>{let{value:t=xt.value,type:o=xt.type,placeholder:n=xt.placeholder,autocomplete:r=xt.autocomplete,...d}=e;return Ms("input",{...d,type:o,className:s(e.className,Ht,k(Ht,e)),placeholder:n,autoComplete:r,defaultValue:t})};ae.states=Ss;ae.options=Es;ae.className=Ht;import{jsx as yo,jsxs as As}from"react/jsx-runtime";var zt="k-input-inner",Cs=[],ks={},ve=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:r,valueIconName:d,...l}=e;return As("span",{...l,className:s(e.className,zt,k(zt,e)),children:[r,!r&&d&&yo(g,{className:"k-input-value-icon",icon:d}),n&&!t&&o,n&&t&&yo("span",{className:"k-input-value-text",children:t})]})};ve.states=Cs;ve.options=ks;ve.className=zt;import{jsx as Os}from"react/jsx-runtime";var wt="k-input-inner",gs=[],Ts={},Ro={value:"",placeholder:""},Bt=e=>{let{value:t=Ro.value,placeholder:o=Ro.placeholder,rows:n,...r}=e;return Os("textarea",{...r,className:s(e.className,wt,k(wt,e)),placeholder:o,rows:n,defaultValue:t})};Bt.states=gs;Bt.options=Ts;Bt.className=wt;import{Fragment as ys,jsx as Ko}from"react/jsx-runtime";var _o="k-input-loading-icon",Is=[a.disabled,a.loading],J=e=>{let{disabled:t,loading:o}=e;return t||!o?Ko(ys,{}):Ko("span",{className:s(e.className,_o,"k-icon k-i-loading")})};J.states=Is;J.className=_o;import{Fragment as _s,jsx as Po}from"react/jsx-runtime";var Ho="k-input-validation-icon",Rs=[a.valid,a.invalid,a.disabled,a.loading],Ks={},F=e=>{let{valid:t,invalid:o,disabled:n,loading:r}=e,d=o?"warning-circle":"check-circle";return n||r||!!!(t||o)?Po(_s,{}):Po(g,{className:s(Ho),icon:d})};F.states=Rs;F.options=Ks;F.className=Ho;import{Fragment as zs,jsx as zo}from"react/jsx-runtime";var Ps="k-input-prefix",Hs={direction:"horizontal"},re=e=>{let{direction:t=Hs.direction,...o}=e;return e.children?zo("span",{...o,className:s(Ps,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):zo(zs,{})};import{Fragment as Ds,jsx as wo}from"react/jsx-runtime";var ws="k-input-suffix",Bs={direction:"horizontal"},le=e=>{let{direction:t=Bs.direction,...o}=e;return e.children?wo("span",{...o,className:s(ws,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):wo(Ds,{})};import{jsx as tl}from"react/jsx-runtime";import{jsx as nl}from"react/jsx-runtime";import{jsx as Us}from"react/jsx-runtime";var Bo="k-input-separator",Gs={direction:"vertical"},ye=e=>{let{direction:t=Gs.direction,...o}=e;return Us("span",{...o,className:s(Bo,e.className,{[`${Bo}-${t}`]:t})})};var Dt="button",Do=Dt;import{Fragment as $s,jsx as We,jsxs as Go}from"react/jsx-runtime";var Qe="k-button",Fs=["icon-button"],Xs=[a.hover,a.focus,a.active,a.selected,a.disabled,a.generating],Vs={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark,b.inverse]},Se={size:i.medium,rounded:u.medium,fillMode:f.solid,themeColor:b.base,showArrow:!1,arrowIconName:"caret-alt-down"},v=e=>{let{size:t=Se.size,rounded:o=Se.rounded,fillMode:n=Se.fillMode,themeColor:r=Se.themeColor,showArrow:d=Se.showArrow,arrowIconName:l=Se.arrowIconName,variant:m,hover:c,focus:p,active:N,selected:x,disabled:h,icon:L,text:S,iconClassName:M,...T}=e,O=L!==void 0,z=e.children!==void 0;return Go("button",{...T,className:s(e.className,Qe,Mo(Qe,m),k(Qe,{size:t,rounded:o,fillMode:n,themeColor:r}),A(Qe,{hover:c,focus:p,active:N,disabled:h,selected:x}),{"k-icon-button":!S&&!z&&O}),children:[L&&We(g,{className:s(M,"k-button-icon"),icon:L}),S?Go($s,{children:[S&&We("span",{className:"k-button-text",children:S}),e.children]}):e.children&&We("span",{className:"k-button-text",children:e.children}),d&&We("span",{className:"k-menu-button-arrow k-button-arrow",children:We(g,{icon:l})})]})};v.states=Xs;v.options=Vs;v.variants=Fs;v.className=Qe;v.defaultOptions=Se;v.moduleName=Dt;v.folderName=Do;import{jsx as Rl}from"react/jsx-runtime";import{jsx as Hl}from"react/jsx-runtime";import{jsx as Dl}from"react/jsx-runtime";import{jsx as Uo,jsxs as Ws}from"react/jsx-runtime";var Fo="k-color-preview",Js=[],qs={},de=e=>{let{color:t,iconName:o,...n}=e;return Ws("span",{...n,className:s(e.className,Fo,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Uo(g,{icon:o,className:"k-color-preview-icon"}),Uo("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};de.states=Js;de.options=qs;de.className=Fo;var Gt="popup",Xo=Gt;import{jsx as Vo}from"react/jsx-runtime";var $o="k-animation-container",Qs=[],Ys={},Jo={positionMode:"absolute"},q=e=>{let{positionMode:t=Jo.positionMode,animationStyle:o,offset:n,...r}=e;return Vo("div",{...r,style:{...n,...e.style},className:s(e.className,$o,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Vo("div",{className:"k-child-animation-container",style:o,children:e.children})})};q.states=Qs;q.options=Ys;q.className=$o;q.defaultOptions=Jo;q.moduleName=Gt;q.folderName=Xo;var Ut="popup",qo=Ut;import{jsx as Wo}from"react/jsx-runtime";var Qo="k-popup",Zs=[],js={},Yo={positionMode:"absolute"},W=e=>{let{offset:t,positionMode:o=Yo.positionMode,animationStyle:n,...r}=e;return Wo(q,{positionMode:o,offset:t,animationStyle:n,children:Wo("div",{...r,className:s(e.className,Qo),children:e.children})})};W.states=Zs;W.options=js;W.className=Qo;W.defaultOptions=Yo;W.moduleName=Ut;W.folderName=qo;var Ft="action-buttons",Zo=Ft;import{jsx as on}from"react/jsx-runtime";var Lt="k-actions",en=[],tn={},Xt={alignment:"start",orientation:"horizontal"},Q=e=>{let{alignment:t=Xt.alignment,orientation:o=Xt.orientation,...n}=e;return on("div",{...n,className:s(Lt,{[`${Lt}-${t}`]:t,[`${Lt}-${o}`]:o},e.className),children:e.children})};Q.states=en;Q.options=tn;Q.className=Lt;Q.defaultOptions=Xt;Q.moduleName=Ft;Q.folderName=Zo;import{jsx as sn}from"react/jsx-runtime";var an="k-actionsheet-footer",jo={alignment:"stretched",orientation:"horizontal"},Ye=e=>{let{alignment:t=jo.alignment,orientation:o=jo.orientation,template:n,as:r=n?"div":Q,...d}=e;return sn(r,{...d,...!n&&{alignment:t,orientation:o},className:s(e.className,an),children:e.children})};var Vt="searchbox",ea=Vt;import{jsx as Ze,jsxs as ln}from"react/jsx-runtime";var ta="k-searchbox",nn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],rn={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},$t={showIcon:!0,icon:"search",size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode},X=e=>{let{value:t,placeholder:o,size:n,rounded:r,fillMode:d,hover:l,focus:m,valid:c,invalid:p,required:N,loading:x,disabled:h,showIcon:L=$t.showIcon,icon:S=$t.icon,...M}=e;return ln(I,{...M,size:n,rounded:r,fillMode:d,hover:l,focus:m,valid:c,invalid:p,required:N,loading:x,disabled:h,className:s(e.className,ta),children:[L&&Ze(g,{className:"k-input-icon",icon:S}),Ze(ae,{placeholder:o,value:t}),Ze(J,{...e}),Ze(F,{...e}),Ze(oe,{...e})]})};X.states=nn;X.options=rn;X.className=ta;X.defaultOptions=$t;X.moduleName=Vt;X.folderName=ea;import{jsx as Pd}from"react/jsx-runtime";var Jt="textbox",oa=Jt;import{Fragment as aa,jsx as ce,jsxs as qt}from"react/jsx-runtime";var sa="k-textbox",dn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],cn={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},Ee={showClearButton:!0,showValidationIcon:!0,size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode,separators:!0},Y=e=>{let{size:t=Ee.size,rounded:o=Ee.rounded,fillMode:n=Ee.fillMode,separators:r=Ee.separators,showClearButton:d=Ee.showClearButton,showValidationIcon:l=Ee.showValidationIcon,prefix:m,suffix:c,type:p,value:N,placeholder:x,hover:h,focus:L,valid:S,invalid:M,required:T,loading:O,disabled:z,readonly:te,...Xe}=e;return qt(I,{...Xe,size:t,rounded:o,fillMode:n,hover:h,focus:L,valid:S,invalid:M,required:T,loading:O,disabled:z,readonly:te,className:s(e.className,sa),children:[m&&qt(aa,{children:[ce(re,{children:m}),r&&ce(ye,{})]}),ce(ae,{placeholder:x,value:N,type:p}),l&&ce(F,{valid:S,invalid:M,loading:O,disabled:z}),ce(J,{loading:O,disabled:z}),d&&ce(oe,{loading:O,disabled:z,readonly:te,value:N}),c&&qt(aa,{children:[r&&ce(ye,{}),ce(le,{children:c})]})]})};Y.states=dn;Y.options=cn;Y.className=sa;Y.defaultOptions=Ee;Y.moduleName=Jt;Y.folderName=oa;import{jsx as qd}from"react/jsx-runtime";import{Fragment as ec,jsx as jd}from"react/jsx-runtime";import{Fragment as rc,jsx as ic}from"react/jsx-runtime";import{jsx as pe,jsxs as Wt}from"react/jsx-runtime";var ia="k-actionsheet-titlebar",pn={},Z=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:r,filter:d,input:l,inputValue:m,inputPlaceholder:c,adaptive:p,children:N,...x}=e;return Wt("div",{...x,className:s(e.className,ia),children:[Wt("div",{className:"k-actionsheet-titlebar-group",children:[n&&pe("div",{className:"k-actionsheet-actions",children:n}),!N&&Wt("div",{className:"k-actionsheet-title",children:[t&&pe("div",{className:"k-text-center",children:t}),o&&pe("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&pe("div",{className:"k-actionsheet-title",children:N}),r&&pe("div",{className:"k-actionsheet-actions",children:r})]}),(l||d)&&pe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?pe(Y,{value:m,placeholder:c,size:p?"large":"medium"}):pe(X,{placeholder:"Filter",size:p?"large":"medium"})})]})};Z.className=ia;Z.defaultOptions=pn;import{jsx as Qt,jsxs as bn}from"react/jsx-runtime";var Yt="k-actionsheet-view",mn=[],fn={},un={},Re=e=>{let{adaptive:t,animated:o,children:n,header:r,footer:d,...l}=e,m=r?.type===Z&&Qt(Z,{adaptive:t,...r?.props}),c=d?.type===Ye&&Qt(Ye,{...d?.props});return bn("div",{...l,className:s(e.className,Yt,{[`${Yt}-animated`]:o}),children:[m,Qt("div",{className:"k-actionsheet-content",children:n}),c]})};Re.states=mn;Re.options=fn;Re.className=Yt;Re.defaultOptions=un;var je="action-sheet",ht=je;import{jsx as vt,jsxs as Ln}from"react/jsx-runtime";var ra="k-actionsheet",Nn=[],xn={},et={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},V=e=>{let{side:t=et.side,fullscreen:o=et.fullscreen,adaptive:n=et.adaptive,overlay:r=et.overlay,template:d,children:l,header:m,footer:c,...p}=e;return Ln("div",{className:"k-actionsheet-container",children:[r&&vt("div",{className:"k-overlay"}),vt(q,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:vt("div",{...p,className:s(e.className,ra,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:d||vt(Re,{header:m,footer:c,adaptive:n,...e,children:l})})})]})};V.states=Nn;V.options=xn;V.className=ra;V.defaultOptions=et;V.moduleName=je;V.folderName=ht;import{jsx as En}from"react/jsx-runtime";var la="k-actionsheet-container",hn=[],vn={},Sn={},Ke=e=>{let{children:t,...o}=e;return En("div",{...o,className:la,children:t})};Ke.states=hn;Ke.options=vn;Ke.className=la;Ke.defaultOptions=Sn;Ke.moduleName=je;Ke.folderName=ht;import{jsx as Hc}from"react/jsx-runtime";import{Fragment as Cn,jsx as tt,jsxs as Zt}from"react/jsx-runtime";var jt="k-actionsheet-item",Mn=[a.hover,a.focus,a.selected,a.disabled],eo=e=>{let{iconName:t,text:o,description:n,hover:r,focus:d,selected:l,disabled:m,...c}=e;return Zt("span",{...c,className:s(e.className,jt,A(jt,{hover:r,focus:d,selected:l,disabled:m})),children:[!e.children&&tt(Cn,{children:Zt("span",{className:"k-actionsheet-action",children:[t&&tt("span",{className:"k-icon-wrap",children:tt(g,{className:"k-actionsheet-item-icon",icon:t})}),Zt("span",{className:"k-actionsheet-item-text",children:[o&&tt("span",{className:"k-actionsheet-item-title",children:o}),n&&tt("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};eo.states=Mn;eo.className=jt;import{jsx as Vc,jsxs as $c}from"react/jsx-runtime";import{jsx as Qc}from"react/jsx-runtime";import{jsx as ep}from"react/jsx-runtime";import{jsx as sp}from"react/jsx-runtime";var to="button",ca=to;import{jsx as gn}from"react/jsx-runtime";var ot="k-button-group",kn=[a.disabled],An={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},pa={fillMode:f.solid},B=e=>{let{fillMode:t=pa.fillMode,disabled:o,stretched:n,...r}=e;return gn("div",{...r,className:s(e.className,ot,k(ot,{fillMode:t}),A(ot,{disabled:o}),{[`${ot}-stretched`]:n}),children:e.children})};B.states=kn;B.options=An;B.className=ot;B.defaultOptions=pa;B.moduleName=to;B.folderName=ca;import{Fragment as gp,jsx as Ap,jsxs as Tp}from"react/jsx-runtime";import{Fragment as _p,jsx as Kp,jsxs as Pp}from"react/jsx-runtime";import{Fragment as Gp,jsx as Dp,jsxs as Up}from"react/jsx-runtime";import{Fragment as qp,jsx as Jp,jsxs as Wp}from"react/jsx-runtime";var oo="slider",ma=oo;import{jsx as _e,jsxs as ao}from"react/jsx-runtime";var at="k-slider",Tn=[a.hover,a.focus,a.active,a.disabled,a.readonly],On={},me={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},_=e=>{let{type:t=me.type,orientation:o=me.orientation,readonly:n=me.readonly,disabled:r=me.disabled,handlePosition:d=me.handlePosition,showButtons:l=me.showButtons,showTicks:m=me.showTicks,hover:c,focus:p,active:N,trackStyle:x,dir:h,...L}=e,S,M;return o==="horizontal"?(S=h==="rtl"?"caret-alt-left":"caret-alt-right",M=h==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(S="caret-alt-up",M="caret-alt-down"),ao("div",{...L,className:s(at,e.className,A(at,{readonly:n,disabled:r}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:h,children:[l&&_e(v,{className:"k-button-decrease",rounded:"full",icon:M}),ao("div",{className:"k-slider-track-wrap",children:[m&&_e("ul",{className:"k-reset k-slider-items",children:e.children}),ao("div",{className:"k-slider-track",style:x,children:[_e("div",{className:"k-slider-selection"}),t==="range"&&_e("span",{className:s("k-draghandle","k-draghandle-start",A(at,{hover:c,focus:p,active:N}))}),_e("span",{className:s("k-draghandle",`k-draghandle-${d}`,A(at,{hover:c,focus:p,active:N}))})]})]}),l&&_e(v,{className:"k-button-increase",rounded:"full",icon:S})]})};_.states=Tn;_.options=On;_.className=at;_.defaultOptions=me;_.moduleName=oo;_.folderName=ma;import{jsx as fa}from"react/jsx-runtime";var ua="k-tick",In=[],yn={},ba={label:!1},fe=e=>{let{style:t,label:o=ba.label,orientation:n,large:r,text:d,...l}=e;return fa("li",{...l,className:s(e.className,ua,{[`k-tick-${n}`]:n,"k-tick-large":r}),style:t,children:o&&fa("span",{className:"k-label",children:d})})};fe.states=In;fe.options=yn;fe.className=ua;fe.defaultOptions=ba;import{Fragment as bm,jsx as um,jsxs as Nm}from"react/jsx-runtime";import{Fragment as Sm,jsx as vm,jsxs as Em}from"react/jsx-runtime";import{Fragment as gm,jsx as Am,jsxs as Tm}from"react/jsx-runtime";import{Fragment as Km,jsx as Rm,jsxs as _m}from"react/jsx-runtime";import{jsx as Rn}from"react/jsx-runtime";var so=e=>Rn(_,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Kn}from"react/jsx-runtime";var no=e=>Kn(_,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Na,jsxs as wn}from"react/jsx-runtime";var xa="k-spin-button",Hn=[],zn={size:[i.small,i.medium,i.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},io={size:i.medium,fillMode:f.solid},ue=e=>{let{size:t=io.size,fillMode:o=io.fillMode,...n}=e;return wn("span",{...n,className:s(xa,e.className),children:[Na(v,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),Na(v,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};ue.states=Hn;ue.options=zn;ue.className=xa;ue.defaultOptions=io;ue.moduleName=null;ue.folderName=null;var La="numeric-textbox",ha="numerictextbox";import{Fragment as va,jsx as se,jsxs as ro}from"react/jsx-runtime";var Sa="k-numerictextbox",Bn=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Dn={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},Me={showSpinButton:!0,showClearButton:!0,size:I.defaultOptions.size,rounded:I.defaultOptions.rounded,fillMode:I.defaultOptions.fillMode,separators:!0},y=e=>{let{size:t=Me.size,rounded:o=Me.rounded,fillMode:n=Me.fillMode,separators:r=Me.separators,showClearButton:d=Me.showClearButton,showSpinButton:l=Me.showSpinButton,prefix:m,suffix:c,value:p,placeholder:N,hover:x,focus:h,valid:L,invalid:S,required:M,loading:T,disabled:O,readonly:z,...te}=e;return ro(I,{...te,size:t,rounded:o,fillMode:n,hover:x,focus:h,valid:L,invalid:S,required:M,loading:T,disabled:O,readonly:z,className:s(e.className,Sa),children:[m&&ro(va,{children:[se(re,{children:m}),r&&se(ye,{})]}),se(ae,{placeholder:N,value:p}),se(F,{valid:L,invalid:S,loading:T,disabled:O}),se(J,{loading:T,disabled:O}),d&&se(oe,{loading:T,disabled:O,readonly:z,value:p}),c&&ro(va,{children:[r&&se(ye,{}),se(le,{children:c})]}),l&&se(ue,{className:"k-input-spinner",size:t,fillMode:n})]})};y.states=Bn;y.options=Dn;y.className=Sa;y.defaultOptions=Me;y.moduleName=La;y.folderName=ha;import{jsx as bf}from"react/jsx-runtime";import{jsx as Un}from"react/jsx-runtime";var Gn="k-no-data",st=e=>Un("span",{className:s(Gn,e.className),children:e.children});var ne="list",be=ne;import{jsx as Pe,jsxs as Ma}from"react/jsx-runtime";var lo="k-list",Fn=[],Xn={size:[i.small,i.medium,i.large]},Ca={size:i.medium},K=e=>{let{size:t=Ca.size,virtualization:o,children:n,optionLabel:r,customValue:d,screenReaders:l,...m}=e,c,p,N,x,h=[];return n?n.map((L,S)=>{L.type===P?(L.props.root===!0?(c=L.props.label,L.props.children.map((M,T)=>{h.push(Pe(C,{...M.props},`optChild-${T}-${new Date().getTime()}`))})):L.props.children.forEach((M,T)=>{let O="";T===0&&(O=L.props.label),h.push(Pe(C,{className:T===0?"k-first":"",...M.props,groupLabel:O},`groupLabel-${T}-${new Date().getTime()}`))}),p=Pe(P,{label:c,virtualization:o,children:h})):L.type===C&&(h.push(Pe(C,{...L.props},`${L.type}-${S}`)),N=Pe(He,{virtualization:o,children:h}),l&&(x=Ma(st,{className:"k-sr-only",children:[h.length," items found."]})))}):x=Pe(st,{children:"No data found."}),Ma("div",{...m,className:s(e.className,lo,k(lo,{size:t}),{"k-virtual-list":o}),children:[r,d,p,N,x]})};K.states=Fn;K.options=Xn;K.className=lo;K.defaultOptions=Ca;K.moduleName=ne;K.folderName=be;import{jsx as qn}from"react/jsx-runtime";var ka="k-list-container",Vn=[],$n={},Jn={},ze=e=>{let{...t}=e;return qn("div",{...t,className:s(e.className,ka),children:e.children})};ze.states=Vn;ze.options=$n;ze.className=ka;ze.defaultOptions=Jn;ze.moduleName=ne;ze.folderName=be;import{jsx as Ce,jsxs as Yn}from"react/jsx-runtime";var co="k-list",Wn=[],Qn={size:[i.small,i.medium,i.large]},Aa={size:i.medium},ie=e=>{let{size:t=Aa.size,virtualization:o,children:n,...r}=e,d,l,m,c=[];return n?n.map((p,N)=>{p.type===P?(p.props.root===!0?(d=p.props.label,p.props.children.map((x,h)=>{c.push(Ce(C,{...x.props},`optChild-${h}-${new Date().getTime()}`))})):(c.push(Ce(ga,{...p.props,children:p.props.label},`listChild-${N}`)),p.props.children.map((x,h)=>{c.push(Ce(C,{...x.props},`fwOptChild-${h}-${new Date().getTime()}`))})),l=Ce(P,{label:d,virtualization:o,children:c})):p.type===C&&(c.push(Ce(C,{...p.props},`${p.type}-${N}`)),m=Ce(He,{virtualization:o,children:c}))}):m=Ce(st,{children:"No data found."}),Yn("div",{...r,className:s(e.className,co,k(co,{size:t}),{"k-virtual-list":o}),children:[l,m]})};ie.states=Wn;ie.options=Qn;ie.className=co;ie.defaultOptions=Aa;ie.moduleName=ne;ie.folderName=be;var ke="checkbox",we=ke;import{jsx as Ta}from"react/jsx-runtime";var St="k-checkbox",Zn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],jn={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full]},po={size:i.medium,rounded:u.medium},j=e=>{let{id:t,checked:o,indeterminate:n,hover:r,focus:d,disabled:l,invalid:m,valid:c,required:p,size:N=po.size,rounded:x=po.rounded,...h}=e;return Ta("span",{className:"k-checkbox-wrap",children:Ta("input",{...h,id:t,type:"checkbox",defaultChecked:o,required:p,className:s(e.className,St,k(St,{size:N,rounded:x}),A(St,{hover:r,focus:d,disabled:l,invalid:m,valid:c,indeterminate:n,checked:o}))})})};j.states=Zn;j.options=jn;j.className=St;j.defaultOptions=po;j.moduleName=ke;j.folderName=we;import{jsx as oi}from"react/jsx-runtime";var Oa="k-checkbox-list",ei=[],ti={},Ia={layout:"vertical"},Ne=e=>{let{layout:t=Ia.layout,...o}=e;return oi("ul",{...o,className:s(e.className,Oa,{[`k-list-${t}`]:t}),children:e.children})};Ne.states=ei;Ne.options=ti;Ne.className=Oa;Ne.defaultOptions=Ia;Ne.moduleName=ke;Ne.folderName=we;import{jsx as ii}from"react/jsx-runtime";var ya="k-checkbox-list-item",ai=[],si={},ni={},xe=e=>{let{...t}=e;return ii("li",{...t,className:s(e.className,ya),children:e.children})};xe.states=ai;xe.options=si;xe.className=ya;xe.defaultOptions=ni;xe.moduleName=ke;xe.folderName=we;import{Fragment as tu,jsx as eu,jsxs as ou}from"react/jsx-runtime";import{Fragment as ru,jsx as iu,jsxs as lu}from"react/jsx-runtime";import{Fragment as fu,jsx as mu,jsxs as uu}from"react/jsx-runtime";import{Fragment as hu,jsx as Lu,jsxs as vu}from"react/jsx-runtime";import{jsx as Cu}from"react/jsx-runtime";import{jsx as Tu}from"react/jsx-runtime";import{jsx as Et,jsxs as ci}from"react/jsx-runtime";var fo="k-list-item",ri=[a.hover,a.focus,a.selected,a.disabled],li={},di={},C=e=>{let{text:t,groupLabel:o,group:n,showIcon:r,iconName:d,showCheckbox:l,checked:m,hover:c,focus:p,selected:N,disabled:x,...h}=e,L=t||e.children;return ci("li",{...h,className:s(e.className,n?"k-list-group-item":fo,A(fo,{hover:c,focus:p,disabled:x,selected:N})),children:[l&&Et(j,{checked:m}),r&&Et(g,{icon:d}),Et("span",{className:"k-list-item-text",children:L}),o&&o!==""&&Et("div",{className:"k-list-item-group-label",children:o})]})};C.states=ri;C.options=li;C.className=fo;C.defaultOptions=di;C.moduleName=ne;C.folderName=be;import{jsx as uo,jsxs as mi}from"react/jsx-runtime";var pi="k-list-content",He=e=>{let{virtualization:t,...o}=e;return mi("div",{...o,className:s(pi,e.className),children:[uo("ul",{className:s("k-list-ul"),children:e.children}),t&&uo("div",{className:"k-height-container",children:uo("div",{})})]})};import{jsx as Ra}from"react/jsx-runtime";var fi="k-list-group-sticky-header",Ka=e=>Ra("div",{className:s(fi,e.className),children:Ra("div",{className:"k-list-header-text",children:e.children})});import{Fragment as ui,jsx as _a,jsxs as bi}from"react/jsx-runtime";var P=e=>{let{virtualization:t,label:o}=e;return bi(ui,{children:[o&&_a(Ka,{children:o}),e.children&&_a(He,{virtualization:t,children:e.children})]})};import{jsx as Pa}from"react/jsx-runtime";var Ni="k-list-group-item",ga=e=>Pa("li",{className:s(Ni,e.className),children:Pa("span",{className:"k-list-item-text",children:e.children})});import{jsx as vi}from"react/jsx-runtime";var bo="k-list-optionlabel",xi=[a.hover,a.focus,a.selected,a.disabled],Li={},hi={},Mt=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:d,...l}=e;return vi("div",{...l,className:s(bo,A(bo,{hover:o,focus:n,selected:r,disabled:d})),children:t})};Mt.states=xi;Mt.options=Li;Mt.className=bo;Mt.defaultOptions=hi;import{jsx as Ci}from"react/jsx-runtime";var No="k-list-custom-value",Si=[a.hover,a.focus,a.selected,a.disabled],Ei={},Mi={},Ct=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:d,...l}=e;return Ci("div",{...l,className:s(No,A(No,{hover:o,focus:n,selected:r,disabled:d})),children:t})};Ct.states=Si;Ct.options=Ei;Ct.className=No;Ct.defaultOptions=Mi;import{jsx as mb}from"react/jsx-runtime";import{jsx as Nb}from"react/jsx-runtime";import{jsx as vb,jsxs as Sb}from"react/jsx-runtime";import{jsx as kb,jsxs as Ab}from"react/jsx-runtime";import{jsx as Ib}from"react/jsx-runtime";import{jsx as _b,jsxs as Pb}from"react/jsx-runtime";import{jsx as Bb,jsxs as Db}from"react/jsx-runtime";var Ha="dropdown-list",za="dropdownlist";import{Fragment as gi,jsx as H,jsxs as xo}from"react/jsx-runtime";var wa="k-dropdownlist",ki=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ai={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},Be={showValue:!0,arrowIconName:"caret-alt-down",size:i.medium,rounded:u.medium,fillMode:f.solid},Ae=e=>{let{size:t=Be.size,rounded:o=Be.rounded,fillMode:n=Be.fillMode,arrowIconName:r=Be.arrowIconName,showValue:d=Be.showValue,valueIconName:l,prefix:m,suffix:c,value:p,placeholder:N,hover:x,focus:h,valid:L,invalid:S,required:M,loading:T,disabled:O,readonly:z,popup:te,opened:Xe,adaptive:Tt,adaptiveSettings:Ot,adaptiveTitle:Za,adaptiveSubtitle:ja,adaptiveFilter:es,...ts}=e;return xo(gi,{children:[xo(w,{...ts,size:t,rounded:o,fillMode:n,hover:x,focus:h,valid:L,invalid:S,required:M,loading:T,disabled:O,readonly:z,className:s(e.className,wa,{"k-icon-picker":!d&&l}),children:[H(re,{children:m}),H(ve,{placeholder:N,value:p,showValue:d,valueIconName:l}),H(F,{valid:L,invalid:S,loading:T,disabled:O}),H(J,{loading:T,disabled:O}),H(le,{children:c}),H(v,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),Xe&&te&&H(W,{className:"k-list-container k-dropdownlist-popup",children:te}),Tt&&H(V,{adaptive:!0,...Ot,header:H(Z,{actionsEnd:H(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:es,inputValue:p,inputPlaceholder:N,title:Za,subtitle:ja}),children:H("div",{className:"k-list-container",children:xo(K,{size:"large",children:[H(C,{text:"List item"}),H(C,{text:"List item"}),H(C,{text:"List item"})]})})})]})};Ae.states=ki;Ae.options=Ai;Ae.className=wa;Ae.defaultOptions=Be;Ae.moduleName=Ha;Ae.folderName=za;import{jsx as hN}from"react/jsx-runtime";import{jsx as CN,jsxs as kN}from"react/jsx-runtime";import{Fragment as KN,jsx as yN,jsxs as RN}from"react/jsx-runtime";import{jsx as zN}from"react/jsx-runtime";import{jsx as UN,jsxs as FN}from"react/jsx-runtime";import{jsx as qN,jsxs as WN}from"react/jsx-runtime";import{Fragment as ax,jsx as tx,jsxs as ox}from"react/jsx-runtime";import{Fragment as px,jsx as dx,jsxs as cx}from"react/jsx-runtime";import{Fragment as gx,jsx as Ax}from"react/jsx-runtime";import{Fragment as _x,jsx as Kx}from"react/jsx-runtime";import{Fragment as nt,jsx as E,jsxs as R}from"react/jsx-runtime";var Ba="k-colorgradient-inputs",Ti=[],Oi={size:[i.small,i.medium,i.large]},Da={mode:"rgba",size:i.medium},De=e=>{let{mode:t=Da.mode,size:o,...n}=e;return R("div",{...n,className:s(Ba,"k-hstack"),children:[E("div",{className:"k-vstack",children:E(v,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&R(nt,{children:[R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),E("label",{className:"k-colorgradient-input-label",children:"R"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),E("label",{className:"k-colorgradient-input-label",children:"G"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),E("label",{className:"k-colorgradient-input-label",children:"B"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),E("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&R(nt,{children:[R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"R"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"G"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&R(nt,{children:[R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"H"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"S"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"V"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),E("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&R(nt,{children:[R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"H"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"S"})]}),R("div",{className:"k-vstack",children:[E(y,{showSpinButton:!1,showClearButton:!1,value:"132"}),E("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&E(nt,{children:R("div",{className:"k-vstack k-flex-1",children:[E(Y,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),E("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};De.states=Ti;De.options=Oi;De.className=Ba;De.defaultOptions=Da;import{jsx as Te,jsxs as Oe}from"react/jsx-runtime";var Ga="k-colorgradient-color-contrast",Ii=[],yi={},Ri={},Ge=()=>Oe("div",{className:s(Ga,"k-vbox"),children:[Oe("div",{className:"k-contrast-ratio",children:[Te("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Oe("span",{className:"k-contrast-validation !k-text-success",children:[Te(g,{icon:"check"}),Te(g,{icon:"check"})]})]}),Oe("div",{children:[Te("span",{children:"AA: 4.5"}),Oe("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Te(g,{icon:"check"})]})]}),Oe("div",{children:[Te("span",{children:"AAA: 7.0"}),Oe("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Te(g,{icon:"x"})]})]})]});Ge.states=Ii;Ge.options=yi;Ge.className=Ga;Ge.defaultOptions=Ri;var Ua="color-gradient",Fa="colorgradient";import{jsx as D,jsxs as it}from"react/jsx-runtime";var kt="k-colorgradient",Ki=[a.hover,a.focus,a.readonly,a.disabled],_i={size:[i.small,i.medium,i.large]},$={size:i.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},ee=e=>{let{size:t=$.size,mode:o=$.mode,readonly:n=$.readonly,disabled:r=$.disabled,gradientStyle:d=$.gradientStyle,dragHandleStyle:l=$.dragHandleStyle,alphaStyle:m=$.alphaStyle,alphaStyleHorizontal:c=$.alphaStyleHorizontal,contrast:p=$.contrast,dir:N,hover:x,focus:h,hoverHandle:L,focusHandle:S,canvasOrientation:M=$.canvasOrientation,...T}=e;return it("div",{...T,className:s(e.className,kt,k(kt,{size:t}),A(kt,{hover:x,focus:h,readonly:n,disabled:r})),dir:N,children:[!M||M==="horizontal"&&it("div",{className:"k-colorgradient-canvas k-hstack",children:[D("div",{className:"k-hsv-rectangle",style:d,children:D("div",{className:"k-hsv-gradient",children:D("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":L,"k-focus":S}),style:l})})}),it("div",{className:"k-hsv-controls k-hstack",children:[D(no,{className:"k-hue-slider",hover:L,focus:S}),o!=="rgb"&&o!=="hsv"&&D(no,{className:"k-alpha-slider",hover:L,focus:S,trackStyle:m})]})]}),M==="vertical"&&it("div",{className:"k-colorgradient-canvas k-vstack",children:[D("div",{className:"k-hsv-rectangle",style:d,children:D("div",{className:"k-hsv-gradient",children:D("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":L,"k-focus":S}),style:l})})}),it("div",{className:"k-hsv-controls k-vstack",children:[D(so,{className:"k-hue-slider",hover:L,focus:S}),o!=="rgb"&&o!=="hsv"&&D(so,{className:"k-alpha-slider",hover:L,focus:S,trackStyle:c})]})]}),D(De,{mode:e.mode,size:t}),p&&D(Ge,{})]})};ee.states=Ki;ee.options=_i;ee.className=kt;ee.defaultOptions=$;ee.moduleName=Ua;ee.folderName=Fa;import{jsx as rL}from"react/jsx-runtime";import{jsx as pL}from"react/jsx-runtime";import{jsx as Pi}from"react/jsx-runtime";var Xa=e=>Pi("tr",{children:e.children});import{jsx as wi}from"react/jsx-runtime";var Lo="k-colorpalette-tile",Hi=[a.hover,a.focus,a.selected],zi={},rt=e=>{let{color:t,tileSize:o,hover:n,focus:r,selected:d,...l}=e,m={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return wi("td",{...l,className:s(e.className,Lo,A(Lo,{hover:n,focus:r,selected:d})),style:m})};rt.states=Hi;rt.options=zi;rt.className=Lo;var Va="color-palette",$a="colorpalette";import{jsx as lt}from"react/jsx-runtime";var At="k-colorpalette",Bi=[a.disabled],Di={size:[i.small,i.medium,i.large]},ho={columns:10,size:i.medium},Le=e=>{let{size:t=ho.size,palette:o,columns:n=ho.columns,tileSize:r,disabled:d,...l}=e,m=[];if(o){let c=n||o.columns,p=o.colors?o.colors:o;Array.isArray(p)&&Array.from({length:Math.ceil(p.length/c)},(N,x)=>{let h=[];p.slice(x*c,(x+1)*c).map((S,M)=>{h.push(lt(rt,{color:S,tileSize:r},M))});let L=lt(Xa,{children:h},x);m.push(L)})}return lt("div",{...l,className:s(e.className,At,A(At,{disabled:d}),k(At,{size:t})),children:lt("table",{className:"k-colorpalette-table",children:lt("tbody",{children:m.length>0?m:e.children})})})};Le.states=Bi;Le.options=Di;Le.className=At;Le.defaultOptions=ho;Le.moduleName=Va;Le.folderName=$a;var vo={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4","#ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}};import{jsx as HL}from"react/jsx-runtime";var Ja="color-editor",qa="coloreditor";import{jsx as G,jsxs as Ue}from"react/jsx-runtime";var gt="k-coloreditor",Gi=[a.focus],Ui={size:[i.small,i.medium,i.large]},Fe={size:i.medium,view:"gradient",palette:vo.office,actionButtons:!0,canvasOrientation:"horizontal"},he=e=>{let{size:t=Fe.size,view:o=Fe.view,palette:n=Fe.palette,color:r,currentColor:d,focus:l,focusView:m,dir:c,group:p,actionButtons:N=Fe.actionButtons,canvasOrientation:x=Fe.canvasOrientation,...h}=e;return Ue("div",{...h,className:s(e.className,"k-flatcolorpicker",gt,k(gt,{size:t}),A(gt,{focus:l})),dir:c,children:[Ue("div",{className:"k-coloreditor-header k-hstack",children:[G("div",{className:"k-coloreditor-header-actions k-hstack",children:p&&Ue(B,{fillMode:"flat",children:[G(v,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),G(v,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),G("div",{className:"k-spacer"}),Ue("div",{className:"k-coloreditor-header-actions k-hstack",children:[G(v,{fillMode:"flat",icon:"droplet-slash",size:t}),Ue("div",{className:"k-coloreditor-preview k-vstack",children:[G(de,{className:"k-coloreditor-preview-color",color:r}),G(de,{className:"k-coloreditor-current-color",color:d})]})]})]}),G("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?G(ee,{focus:m,size:t,canvasOrientation:x}):G(Le,{palette:n,size:t})}),N&&Ue(Q,{className:"k-coloreditor-footer",alignment:"start",children:[G(v,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),G(v,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};he.states=Gi;he.options=Ui;he.className=gt;he.defaultOptions=Fe;he.moduleName=Ja;he.folderName=qa;import{jsx as ah}from"react/jsx-runtime";import{jsx as rh}from"react/jsx-runtime";import{jsx as ph}from"react/jsx-runtime";import{jsx as bh}from"react/jsx-runtime";var Wa="color-picker",Qa="colorpicker";import{Fragment as Vi,jsx as U,jsxs as Eo}from"react/jsx-runtime";var Ya="k-colorpicker",Fi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],Xi={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},dt={arrowIconName:"caret-alt-down",size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode},Ie=e=>{let{size:t=dt.size,rounded:o=dt.rounded,fillMode:n=dt.fillMode,arrowIconName:r=dt.arrowIconName,prefix:d,suffix:l,value:m,placeholder:c,hover:p,focus:N,valid:x,invalid:h,required:L,disabled:S,valueIconName:M,popup:T,opened:O,adaptive:z,adaptiveSettings:te,adaptiveTitle:Xe,adaptiveSubtitle:Tt,...Ot}=e;return Eo(Vi,{children:[Eo(w,{...Ot,size:t,rounded:o,fillMode:n,hover:p,focus:N,valid:x,invalid:h,required:L,disabled:S,className:s(e.className,Ya,"k-icon-picker"),children:[U(re,{children:d}),U(ve,{placeholder:c,value:m,showValue:!1,valueIcon:U(de,{className:"k-value-icon",color:m,iconName:M}),valueIconName:M}),U(le,{child