@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 48.6 kB
JavaScript
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"}),g=(e,t)=>s({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly});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"};import{jsx as ba}from"react/jsx-runtime";var tt="k-actions",fa=[],ua={},Nt={alignment:"start",orientation:"horizontal"},ee=e=>{let{alignment:t=Nt.alignment,orientation:o=Nt.orientation,...n}=e;return ba("div",{...n,className:s(tt,{[`${tt}-${t}`]:t,[`${tt}-${o}`]:o},e.className),children:e.children})};ee.states=fa;ee.options=ua;ee.className=tt;ee.defaultOptions=Nt;import{Fragment as Na,jsx as oo}from"react/jsx-runtime";var St="k-icon k-font-icon",ha=[],xa={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]},va={},He=e=>{let{size:t,themeColor:o,icon:n,rotate:r,flip:l,...c}=e;return n?oo("span",{...c,className:s(e.className,St,k(St,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):oo(Na,{})};He.states=ha;He.options=xa;He.className=St;He.defaultOptions=va;var ao=He;import{Fragment as ka,jsx as ot}from"react/jsx-runtime";var Lt="k-icon k-svg-icon",Sa=[],La={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]},so={viewBox:"0 0 24 24"},Ge=e=>{let{size:t,themeColor:o,rotate:n,flip:r,viewBox:l=so.viewBox,icon:c,...m}=e;if(!c)return ot(ka,{});c==="none"&&{...m,className:s(e.className,Lt,"k-none")};let d=typeof c=="object"&&c.name&&c.name;return ot("span",{...m,className:s(e.className,Lt,k("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:ot("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:l,dangerouslySetInnerHTML:typeof c=="object"?{__html:c.content}:void 0,children:c?void 0:e.children})})};Ge.states=Sa;Ge.options=La;Ge.className=Lt;Ge.defaultOptions=so;var kt=Ge;import*as io from"@progress/kendo-svg-icons";import{Fragment as no,jsx as De}from"react/jsx-runtime";var ga=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ya=[],Ca={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]},gt={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:n,type:r=gt.type,rotate:l,flip:c,viewBox:m=gt.viewBox,...d}=e;if(!n)return De(no,{});if(r==="svg"){if(n==="none")return De(kt,{...d,icon:n,size:t});let p=ga(`${n}-icon`);return io[p]?De(kt,{...d,icon:io[p],size:t,themeColor:o,rotate:l,flip:c,viewBox:m}):De(no,{})}return De(ao,{...d,icon:n,size:t,themeColor:o,rotate:l,flip:c})};M.states=ya;M.options=Ca;M.defaultOptions=gt;import{Fragment as Aa,jsx as Ve,jsxs as ro}from"react/jsx-runtime";var at="k-button",Ia=[a.hover,a.focus,a.active,a.selected,a.disabled],Ma={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]},fe={size:i.medium,rounded:u.medium,fillMode:f.solid,themeColor:b.base,showArrow:!1,arrowIconName:"caret-alt-down"},S=e=>{let{size:t=fe.size,rounded:o=fe.rounded,fillMode:n=fe.fillMode,themeColor:r=fe.themeColor,showArrow:l=fe.showArrow,arrowIconName:c=fe.arrowIconName,hover:m,focus:d,active:p,selected:h,disabled:x,icon:v,text:N,iconClassName:y,...I}=e,A=v!==void 0,T=e.children!==void 0;return ro("button",{...I,className:s(e.className,at,k(at,{size:t,rounded:o,fillMode:n,themeColor:r}),g(at,{hover:m,focus:d,active:p,disabled:x,selected:h}),{"k-icon-button":!N&&!T&&A}),children:[v&&Ve(M,{className:s(y,"k-button-icon"),icon:v}),N?ro(Aa,{children:[N&&Ve("span",{className:"k-button-text",children:N}),e.children]}):e.children&&Ve("span",{className:"k-button-text",children:e.children}),l&&Ve("span",{className:"k-menu-button-arrow k-button-arrow",children:Ve(M,{icon:c})})]})};S.states=Ia;S.options=Ma;S.className=at;S.defaultOptions=fe;import{jsx as Mn}from"react/jsx-runtime";import{jsx as En}from"react/jsx-runtime";import{jsx as Kn}from"react/jsx-runtime";import{jsx as Ea}from"react/jsx-runtime";var $e="k-button-group",Ta=[a.disabled],za={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},lo={fillMode:f.solid},X=e=>{let{fillMode:t=lo.fillMode,disabled:o,stretched:n,...r}=e;return Ea("div",{...r,className:s(e.className,$e,k($e,{fillMode:t}),g($e,{disabled:o}),{[`${$e}-stretched`]:n}),children:e.children})};X.states=Ta;X.options=za;X.className=$e;X.defaultOptions=lo;import{Fragment as Wn,jsx as Un,jsxs as Qn}from"react/jsx-runtime";import{Fragment as or,jsx as tr,jsxs as ar}from"react/jsx-runtime";import{Fragment as cr,jsx as lr,jsxs as dr}from"react/jsx-runtime";import{Fragment as hr,jsx as br,jsxs as xr}from"react/jsx-runtime";import{jsx as ge,jsxs as yt}from"react/jsx-runtime";var _e="k-slider",wa=[a.hover,a.focus,a.active,a.disabled,a.readonly],Oa={},te={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},R=e=>{let{type:t=te.type,orientation:o=te.orientation,readonly:n=te.readonly,disabled:r=te.disabled,handlePosition:l=te.handlePosition,showButtons:c=te.showButtons,showTicks:m=te.showTicks,hover:d,focus:p,active:h,trackStyle:x,dir:v,...N}=e,y,I;return o==="horizontal"?(y=v==="rtl"?"caret-alt-left":"caret-alt-right",I=v==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(y="caret-alt-up",I="caret-alt-down"),yt("div",{...N,className:s(_e,e.className,g(_e,{readonly:n,disabled:r}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:v,children:[c&&ge(S,{className:"k-button-decrease",rounded:"full",icon:I}),yt("div",{className:"k-slider-track-wrap",children:[m&&ge("ul",{className:"k-reset k-slider-items",children:e.children}),yt("div",{className:"k-slider-track",style:x,children:[ge("div",{className:"k-slider-selection"}),t==="range"&&ge("span",{className:s("k-draghandle","k-draghandle-start",g(_e,{hover:d,focus:p,active:h}))}),ge("span",{className:s("k-draghandle",`k-draghandle-${l}`,g(_e,{hover:d,focus:p,active:h}))})]})]}),c&&ge(S,{className:"k-button-increase",rounded:"full",icon:y})]})};R.states=wa;R.options=Oa;R.className=_e;R.defaultOptions=te;import{jsx as co}from"react/jsx-runtime";var po="k-tick",Pa=[],Ka={},mo={label:!1},oe=e=>{let{style:t,label:o=mo.label,orientation:n,large:r,text:l,...c}=e;return co("li",{...c,className:s(e.className,po,{[`k-tick-${n}`]:n,"k-tick-large":r}),style:t,children:o&&co("span",{className:"k-label",children:l})})};oe.states=Pa;oe.options=Ka;oe.className=po;oe.defaultOptions=mo;import{Fragment as Kr,jsx as Pr,jsxs as Rr}from"react/jsx-runtime";import{Fragment as Vr,jsx as Dr,jsxs as $r}from"react/jsx-runtime";import{Fragment as qr,jsx as Jr,jsxs as Ur}from"react/jsx-runtime";import{Fragment as jr,jsx as Zr,jsxs as el}from"react/jsx-runtime";import{jsx as Ra}from"react/jsx-runtime";var Ct=e=>Ra(R,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Ba}from"react/jsx-runtime";var It=e=>Ba(R,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as Da}from"react/jsx-runtime";var st="k-input",Ha=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ga={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},it={size:i.medium,rounded:i.medium,fillMode:f.solid},E=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:c,readonly:m,size:d=it.size,rounded:p=it.rounded,fillMode:h=it.fillMode,...x}=e;return Da("span",{...x,className:s(e.className,st,k(st,{size:d,rounded:p,fillMode:h}),g(st,{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:c,readonly:m}))})};E.states=Ha;E.options=Ga;E.className=st;E.defaultOptions=it;import{jsx as _a}from"react/jsx-runtime";var nt="k-picker",Va=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],$a={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},rt={size:i.medium,rounded:u.medium,fillMode:f.solid},V=e=>{let{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:c,readonly:m,size:d=rt.size,rounded:p=rt.rounded,fillMode:h=rt.fillMode,...x}=e;return _a("span",{...x,className:s(e.className,nt,k(nt,{size:d,rounded:p,fillMode:h}),g(nt,{hover:t,focus:o,disabled:n,invalid:r,valid:l,loading:c,readonly:m})),children:e.children})};V.states=Va;V.options=$a;V.className=nt;V.defaultOptions=rt;import{Fragment as Ja,jsx as Mt}from"react/jsx-runtime";var fo="k-clear-value",Fa=[a.disabled,a.loading,a.readonly],Xa={},W=e=>{let{disabled:t,loading:o,readonly:n,value:r}=e;return t||n||o||!r?Mt(Ja,{}):Mt("span",{className:s(e.className,fo),children:Mt(M,{icon:"x"})})};W.states=Fa;W.options=Xa;W.className=fo;import{jsx as Wa}from"react/jsx-runtime";var At="k-input-inner",qa=[],Ua={},lt={type:"text",autocomplete:"off",value:"",placeholder:""},Q=e=>{let{value:t=lt.value,type:o=lt.type,placeholder:n=lt.placeholder,autocomplete:r=lt.autocomplete,...l}=e;return Wa("input",{...l,type:o,className:s(e.className,At,k(At,e)),placeholder:n,autoComplete:r,defaultValue:t})};Q.states=qa;Q.options=Ua;Q.className=At;import{jsx as uo,jsxs as Za}from"react/jsx-runtime";var Tt="k-input-inner",Qa=[],Ya={},ue=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:r,valueIconName:l,...c}=e;return Za("span",{...c,className:s(e.className,Tt,k(Tt,e)),children:[r,!r&&l&&uo(M,{className:"k-input-value-icon",icon:l}),n&&!t&&o,n&&t&&uo("span",{className:"k-input-value-text",children:t})]})};ue.states=Qa;ue.options=Ya;ue.className=Tt;import{jsx as ts}from"react/jsx-runtime";var zt="k-input-inner",ja=[],es={},bo={value:"",placeholder:""},Et=e=>{let{value:t=bo.value,placeholder:o=bo.placeholder,rows:n,...r}=e;return ts("textarea",{...r,className:s(e.className,zt,k(zt,e)),placeholder:o,rows:n,defaultValue:t})};Et.states=ja;Et.options=es;Et.className=zt;import{Fragment as as,jsx as ho}from"react/jsx-runtime";var xo="k-input-loading-icon",os=[a.disabled,a.loading],J=e=>{let{disabled:t,loading:o}=e;return t||!o?ho(as,{}):ho("span",{className:s(e.className,xo,"k-icon k-i-loading")})};J.states=os;J.className=xo;import{Fragment as ns,jsx as vo}from"react/jsx-runtime";var No="k-input-validation-icon",ss=[a.valid,a.invalid,a.disabled,a.loading],is={},$=e=>{let{valid:t,invalid:o,disabled:n,loading:r}=e,l=o?"warning-circle":"check-circle";return n||r||!!!(t||o)?vo(ns,{}):vo(M,{className:s(No),icon:l})};$.states=ss;$.options=is;$.className=No;import{Fragment as cs,jsx as So}from"react/jsx-runtime";var rs="k-input-prefix",ls={direction:"horizontal"},ae=e=>{let{direction:t=ls.direction,...o}=e;return e.children?So("span",{...o,className:s(rs,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):So(cs,{})};import{Fragment as ms,jsx as Lo}from"react/jsx-runtime";var ds="k-input-suffix",ps={direction:"horizontal"},se=e=>{let{direction:t=ps.direction,...o}=e;return e.children?Lo("span",{...o,className:s(ds,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Lo(ms,{})};import{jsx as Zl}from"react/jsx-runtime";import{jsx as oc}from"react/jsx-runtime";import{jsx as us}from"react/jsx-runtime";var ko="k-input-separator",fs={direction:"vertical"},ye=e=>{let{direction:t=fs.direction,...o}=e;return us("span",{...o,className:s(ko,e.className,{[`${ko}-${t}`]:t})})};import{jsx as go,jsxs as xs}from"react/jsx-runtime";var yo="k-spin-button",bs=[],hs={size:[i.small,i.medium,i.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},wt={size:i.medium,fillMode:f.solid},Ce=e=>{let{size:t=wt.size,fillMode:o=wt.fillMode,...n}=e;return xs("span",{...n,className:s(yo,e.className),children:[go(S,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),go(S,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Ce.states=bs;Ce.options=hs;Ce.className=yo;Ce.defaultOptions=wt;import{Fragment as Co,jsx as Y,jsxs as Ot}from"react/jsx-runtime";var Io="k-numerictextbox",vs=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Ns={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},be={showSpinButton:!0,showClearButton:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},w=e=>{let{size:t=be.size,rounded:o=be.rounded,fillMode:n=be.fillMode,separators:r=be.separators,showClearButton:l=be.showClearButton,showSpinButton:c=be.showSpinButton,prefix:m,suffix:d,value:p,placeholder:h,hover:x,focus:v,valid:N,invalid:y,required:I,loading:A,disabled:T,readonly:D,...U}=e;return Ot(E,{...U,size:t,rounded:o,fillMode:n,hover:x,focus:v,valid:N,invalid:y,required:I,loading:A,disabled:T,readonly:D,className:s(e.className,Io),children:[m&&Ot(Co,{children:[Y(ae,{children:m}),r&&Y(ye,{})]}),Y(Q,{placeholder:h,value:p}),Y($,{valid:N,invalid:y,loading:A,disabled:T}),Y(J,{loading:A,disabled:T}),l&&Y(W,{loading:A,disabled:T,readonly:D,value:p}),d&&Ot(Co,{children:[r&&Y(ye,{}),Y(se,{children:d})]}),c&&Y(Ce,{className:"k-input-spinner",size:t,fillMode:n})]})};w.states=vs;w.options=Ns;w.className=Io;w.defaultOptions=be;import{jsx as Pc}from"react/jsx-runtime";import{jsx as Ao}from"react/jsx-runtime";var To="k-animation-container",Ss=[],Ls={},zo={positionMode:"absolute"},ie=e=>{let{positionMode:t=zo.positionMode,animationStyle:o,offset:n,...r}=e;return Ao("div",{...r,style:{...n,...e.style},className:s(e.className,To,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Ao("div",{className:"k-child-animation-container",style:o,children:e.children})})};ie.states=Ss;ie.options=Ls;ie.className=To;ie.defaultOptions=zo;import{jsx as Eo}from"react/jsx-runtime";var wo="k-popup",ks=[],gs={},Oo={positionMode:"absolute"},ne=e=>{let{offset:t,positionMode:o=Oo.positionMode,animationStyle:n,...r}=e;return Eo(ie,{positionMode:o,offset:t,animationStyle:n,children:Eo("div",{...r,className:s(e.className,wo),children:e.children})})};ne.states=ks;ne.options=gs;ne.className=wo;ne.defaultOptions=Oo;import{jsx as Cs}from"react/jsx-runtime";var ys="k-actionsheet-footer",Po={alignment:"stretched",orientation:"horizontal"},Fe=e=>{let{alignment:t=Po.alignment,orientation:o=Po.orientation,template:n,as:r=n?"div":ee,...l}=e;return Cs(r,{...l,...!n&&{alignment:t,orientation:o},className:s(e.className,ys),children:e.children})};import{jsx as Xe,jsxs as As}from"react/jsx-runtime";var Ko="k-searchbox",Is=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Ms={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},Pt={showIcon:!0,icon:"search",size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},Z=e=>{let{value:t,placeholder:o,size:n,rounded:r,fillMode:l,hover:c,focus:m,valid:d,invalid:p,required:h,loading:x,disabled:v,showIcon:N=Pt.showIcon,icon:y=Pt.icon,...I}=e;return As(E,{...I,size:n,rounded:r,fillMode:l,hover:c,focus:m,valid:d,invalid:p,required:h,loading:x,disabled:v,className:s(e.className,Ko),children:[N&&Xe(M,{className:"k-input-icon",icon:y}),Xe(Q,{placeholder:o,value:t}),Xe(J,{...e}),Xe($,{...e}),Xe(W,{...e})]})};Z.states=Is;Z.options=Ms;Z.className=Ko;Z.defaultOptions=Pt;import{jsx as id}from"react/jsx-runtime";import{Fragment as Ro,jsx as re,jsxs as Kt}from"react/jsx-runtime";var Bo="k-textbox",Ts=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],zs={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},he={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},le=e=>{let{size:t=he.size,rounded:o=he.rounded,fillMode:n=he.fillMode,separators:r=he.separators,showClearButton:l=he.showClearButton,showValidationIcon:c=he.showValidationIcon,prefix:m,suffix:d,type:p,value:h,placeholder:x,hover:v,focus:N,valid:y,invalid:I,required:A,loading:T,disabled:D,readonly:U,...Be}=e;return Kt(E,{...Be,size:t,rounded:o,fillMode:n,hover:v,focus:N,valid:y,invalid:I,required:A,loading:T,disabled:D,readonly:U,className:s(e.className,Bo),children:[m&&Kt(Ro,{children:[re(ae,{children:m}),r&&re(ye,{})]}),re(Q,{placeholder:x,value:h,type:p}),c&&re($,{valid:y,invalid:I,loading:T,disabled:D}),re(J,{loading:T,disabled:D}),l&&re(W,{loading:T,disabled:D,readonly:U,value:h}),d&&Kt(Ro,{children:[r&&re(ye,{}),re(se,{children:d})]})]})};le.states=Ts;le.options=zs;le.className=Bo;le.defaultOptions=he;import{jsx as hd}from"react/jsx-runtime";import{Fragment as kd,jsx as Ld}from"react/jsx-runtime";import{Fragment as Td,jsx as Ad}from"react/jsx-runtime";import{jsx as ce,jsxs as Rt}from"react/jsx-runtime";var Go="k-actionsheet-titlebar",Es={},q=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:r,filter:l,input:c,inputValue:m,inputPlaceholder:d,adaptive:p,children:h,...x}=e;return Rt("div",{...x,className:s(e.className,Go),children:[Rt("div",{className:"k-actionsheet-titlebar-group",children:[n&&ce("div",{className:"k-actionsheet-actions",children:n}),!h&&Rt("div",{className:"k-actionsheet-title",children:[t&&ce("div",{className:"k-text-center",children:t}),o&&ce("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&ce("div",{className:"k-actionsheet-title",children:h}),r&&ce("div",{className:"k-actionsheet-actions",children:r})]}),(c||l)&&ce("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?ce(le,{value:m,placeholder:d,size:p?"large":"medium"}):ce(Z,{placeholder:"Filter",size:p?"large":"medium"})})]})};q.className=Go;q.defaultOptions=Es;import{jsx as Bt,jsxs as Ks}from"react/jsx-runtime";var Ht="k-actionsheet-view",ws=[],Os={},Ps={},Ie=e=>{let{adaptive:t,animated:o,children:n,header:r,footer:l,...c}=e,m=r?.type===q&&Bt(q,{adaptive:t,...r?.props}),d=l?.type===Fe&&Bt(Fe,{...l?.props});return Ks("div",{...c,className:s(e.className,Ht,{[`${Ht}-animated`]:o}),children:[m,Bt("div",{className:"k-actionsheet-content",children:n}),d]})};Ie.states=ws;Ie.options=Os;Ie.className=Ht;Ie.defaultOptions=Ps;import{jsx as ct,jsxs as Hs}from"react/jsx-runtime";var Do="k-actionsheet",Rs=[],Bs={},Je={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},j=e=>{let{side:t=Je.side,fullscreen:o=Je.fullscreen,adaptive:n=Je.adaptive,overlay:r=Je.overlay,template:l,children:c,header:m,footer:d,...p}=e;return Hs("div",{className:"k-actionsheet-container",children:[r&&ct("div",{className:"k-overlay"}),ct(ie,{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:ct("div",{...p,className:s(e.className,Do,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:l||ct(Ie,{header:m,footer:d,adaptive:n,...e,children:c})})})]})};j.states=Rs;j.options=Bs;j.className=Do;j.defaultOptions=Je;import{jsx as jd}from"react/jsx-runtime";import{Fragment as Ds,jsx as qe,jsxs as Gt}from"react/jsx-runtime";var Dt="k-actionsheet-item",Gs=[a.hover,a.focus,a.selected,a.disabled],Vt=e=>{let{iconName:t,text:o,description:n,hover:r,focus:l,selected:c,disabled:m,...d}=e;return Gt("span",{...d,className:s(e.className,Dt,g(Dt,{hover:r,focus:l,selected:c,disabled:m})),children:[!e.children&&qe(Ds,{children:Gt("span",{className:"k-actionsheet-action",children:[t&&qe("span",{className:"k-icon-wrap",children:qe(M,{className:"k-actionsheet-item-icon",icon:t})}),Gt("span",{className:"k-actionsheet-item-text",children:[o&&qe("span",{className:"k-actionsheet-item-title",children:o}),n&&qe("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Vt.states=Gs;Vt.className=Dt;import{jsx as lp,jsxs as cp}from"react/jsx-runtime";import{jsx as fp}from"react/jsx-runtime";import{jsx as xp}from"react/jsx-runtime";import{jsx as Lp}from"react/jsx-runtime";import{jsx as $s}from"react/jsx-runtime";var Vs="k-no-data",Ue=e=>$s("span",{className:s(Vs,e.className),children:e.children});import{jsx as Me,jsxs as $o}from"react/jsx-runtime";var $t="k-list",_s=[],Fs={size:[i.small,i.medium,i.large]},_o={size:i.medium},O=e=>{let{size:t=_o.size,virtualization:o,children:n,optionLabel:r,customValue:l,screenReaders:c,...m}=e,d,p,h,x,v=[];return n?n.map((N,y)=>{N.type===P?(N.props.root===!0?(d=N.props.label,N.props.children.map((I,A)=>{v.push(Me(C,{...I.props},`optChild-${A}-${new Date().getTime()}`))})):N.props.children.forEach((I,A)=>{let T="";A===0&&(T=N.props.label),v.push(Me(C,{className:A===0?"k-first":"",...I.props,groupLabel:T},`groupLabel-${A}-${new Date().getTime()}`))}),p=Me(P,{label:d,virtualization:o,children:v})):N.type===C&&(v.push(Me(C,{...N.props},`${N.type}-${y}`)),h=Me(Ae,{virtualization:o,children:v}),c&&(x=$o(Ue,{className:"k-sr-only",children:[v.length," items found."]})))}):x=Me(Ue,{children:"No data found."}),$o("div",{...m,className:s(e.className,$t,k($t,{size:t}),{"k-virtual-list":o}),children:[r,l,p,h,x]})};O.states=_s;O.options=Fs;O.className=$t;O.defaultOptions=_o;import{jsx as xe,jsxs as qs}from"react/jsx-runtime";var _t="k-list",Xs=[],Js={size:[i.small,i.medium,i.large]},Fo={size:i.medium},ve=e=>{let{size:t=Fo.size,virtualization:o,children:n,...r}=e,l,c,m,d=[];return n?n.map((p,h)=>{p.type===P?(p.props.root===!0?(l=p.props.label,p.props.children.map((x,v)=>{d.push(xe(C,{...x.props},`optChild-${v}-${new Date().getTime()}`))})):(d.push(xe(Xo,{...p.props,children:p.props.label},`listChild-${h}`)),p.props.children.map((x,v)=>{d.push(xe(C,{...x.props},`fwOptChild-${v}-${new Date().getTime()}`))})),c=xe(P,{label:l,virtualization:o,children:d})):p.type===C&&(d.push(xe(C,{...p.props},`${p.type}-${h}`)),m=xe(Ae,{virtualization:o,children:d}))}):m=xe(Ue,{children:"No data found."}),qs("div",{...r,className:s(e.className,_t,k(_t,{size:t}),{"k-virtual-list":o}),children:[c,m]})};ve.states=Xs;ve.options=Js;ve.className=_t;ve.defaultOptions=Fo;import{jsx as Jo}from"react/jsx-runtime";var dt="k-checkbox",Us=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Ws={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full]},Ft={size:i.medium,rounded:u.medium},de=e=>{let{id:t,checked:o,indeterminate:n,hover:r,focus:l,disabled:c,invalid:m,valid:d,required:p,size:h=Ft.size,rounded:x=Ft.rounded,...v}=e;return Jo("span",{className:"k-checkbox-wrap",children:Jo("input",{...v,id:t,type:"checkbox",defaultChecked:o,required:p,className:s(e.className,dt,k(dt,{size:h,rounded:x}),g(dt,{hover:r,focus:l,disabled:c,invalid:m,valid:d,indeterminate:n,checked:o}))})})};de.states=Us;de.options=Ws;de.className=dt;de.defaultOptions=Ft;import{jsx as Zs}from"react/jsx-runtime";var qo="k-checkbox-list",Qs=[],Ys={},Uo={layout:"vertical"},Te=e=>{let{layout:t=Uo.layout,...o}=e;return Zs("ul",{...o,className:s(e.className,qo,{[`k-list-${t}`]:t}),children:e.children})};Te.states=Qs;Te.options=Ys;Te.className=qo;Te.defaultOptions=Uo;import{jsx as oi}from"react/jsx-runtime";var Wo="k-checkbox-list-item",js=[],ei={},ti={},ze=e=>{let{...t}=e;return oi("li",{...t,className:s(e.className,Wo),children:e.children})};ze.states=js;ze.options=ei;ze.className=Wo;ze.defaultOptions=ti;import{Fragment as rm,jsx as nm,jsxs as lm}from"react/jsx-runtime";import{Fragment as fm,jsx as mm,jsxs as um}from"react/jsx-runtime";import{Fragment as Nm,jsx as vm,jsxs as Sm}from"react/jsx-runtime";import{Fragment as Cm,jsx as ym,jsxs as Im}from"react/jsx-runtime";import{jsx as zm}from"react/jsx-runtime";import{jsx as Pm}from"react/jsx-runtime";import{jsx as pt,jsxs as ni}from"react/jsx-runtime";var Jt="k-list-item",ai=[a.hover,a.focus,a.selected,a.disabled],si={},ii={},C=e=>{let{text:t,groupLabel:o,group:n,showIcon:r,iconName:l,showCheckbox:c,checked:m,hover:d,focus:p,selected:h,disabled:x,...v}=e,N=t||e.children;return ni("li",{...v,className:s(e.className,n?"k-list-group-item":Jt,g(Jt,{hover:d,focus:p,disabled:x,selected:h})),children:[c&&pt(de,{checked:m}),r&&pt(M,{icon:l}),pt("span",{className:"k-list-item-text",children:N}),o&&o!==""&&pt("div",{className:"k-list-item-group-label",children:o})]})};C.states=ai;C.options=si;C.className=Jt;C.defaultOptions=ii;import{jsx as qt,jsxs as li}from"react/jsx-runtime";var ri="k-list-content",Ae=e=>{let{virtualization:t,...o}=e;return li("div",{...o,className:s(ri,e.className),children:[qt("ul",{className:s("k-list-ul"),children:e.children}),t&&qt("div",{className:"k-height-container",children:qt("div",{})})]})};import{jsx as Qo}from"react/jsx-runtime";var ci="k-list-group-sticky-header",Yo=e=>Qo("div",{className:s(ci,e.className),children:Qo("div",{className:"k-list-header-text",children:e.children})});import{Fragment as di,jsx as Zo,jsxs as pi}from"react/jsx-runtime";var P=e=>{let{virtualization:t,label:o}=e;return pi(di,{children:[o&&Zo(Yo,{children:o}),e.children&&Zo(Ae,{virtualization:t,children:e.children})]})};import{jsx as jo}from"react/jsx-runtime";var mi="k-list-group-item",Xo=e=>jo("li",{className:s(mi,e.className),children:jo("span",{className:"k-list-item-text",children:e.children})});import{jsx as hi}from"react/jsx-runtime";var Ut="k-list-optionlabel",fi=[a.hover,a.focus,a.selected,a.disabled],ui={},bi={},mt=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:l,...c}=e;return hi("div",{...c,className:s(Ut,g(Ut,{hover:o,focus:n,selected:r,disabled:l})),children:t})};mt.states=fi;mt.options=ui;mt.className=Ut;mt.defaultOptions=bi;import{jsx as Si}from"react/jsx-runtime";var Wt="k-list-custom-value",xi=[a.hover,a.focus,a.selected,a.disabled],vi={},Ni={},ft=e=>{let{text:t,hover:o,focus:n,selected:r,disabled:l,...c}=e;return Si("div",{...c,className:s(Wt,g(Wt,{hover:o,focus:n,selected:r,disabled:l})),children:t})};ft.states=xi;ft.options=vi;ft.className=Wt;ft.defaultOptions=Ni;import{jsx as vf}from"react/jsx-runtime";import{jsx as kf}from"react/jsx-runtime";import{jsx as If,jsxs as Mf}from"react/jsx-runtime";import{jsx as Ef,jsxs as wf}from"react/jsx-runtime";import{jsx as Rf}from"react/jsx-runtime";import{jsx as Df,jsxs as Vf}from"react/jsx-runtime";import{jsx as Xf,jsxs as Jf}from"react/jsx-runtime";import{Fragment as gi,jsx as K,jsxs as Qt}from"react/jsx-runtime";var ea="k-dropdownlist",Li=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ki={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},Ee={showValue:!0,arrowIconName:"caret-alt-down",size:i.medium,rounded:u.medium,fillMode:f.solid},We=e=>{let{size:t=Ee.size,rounded:o=Ee.rounded,fillMode:n=Ee.fillMode,arrowIconName:r=Ee.arrowIconName,showValue:l=Ee.showValue,valueIconName:c,prefix:m,suffix:d,value:p,placeholder:h,hover:x,focus:v,valid:N,invalid:y,required:I,loading:A,disabled:T,readonly:D,popup:U,opened:Be,adaptive:xt,adaptiveSettings:vt,adaptiveTitle:ca,adaptiveSubtitle:da,adaptiveFilter:pa,...ma}=e;return Qt(gi,{children:[Qt(V,{...ma,size:t,rounded:o,fillMode:n,hover:x,focus:v,valid:N,invalid:y,required:I,loading:A,disabled:T,readonly:D,className:s(e.className,ea,{"k-icon-picker":!l&&c}),children:[K(ae,{children:m}),K(ue,{placeholder:h,value:p,showValue:l,valueIconName:c}),K($,{valid:N,invalid:y,loading:A,disabled:T}),K(J,{loading:A,disabled:T}),K(se,{children:d}),K(S,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),Be&&U&&K(ne,{className:"k-list-container k-dropdownlist-popup",children:U}),xt&&K(j,{adaptive:!0,...vt,header:K(q,{actionsEnd:K(S,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:pa,inputValue:p,inputPlaceholder:h,title:ca,subtitle:da}),children:K("div",{className:"k-list-container",children:Qt(O,{size:"large",children:[K(C,{text:"List item"}),K(C,{text:"List item"}),K(C,{text:"List item"})]})})})]})};We.states=Li;We.options=ki;We.className=ea;We.defaultOptions=Ee;import{jsx as ku}from"react/jsx-runtime";import{jsx as Mu,jsxs as Au}from"react/jsx-runtime";import{Fragment as Ru,jsx as Pu,jsxs as Ku}from"react/jsx-runtime";import{jsx as Du}from"react/jsx-runtime";import{jsx as Xu,jsxs as Ju}from"react/jsx-runtime";import{jsx as Yu,jsxs as Zu}from"react/jsx-runtime";import{Fragment as nb,jsx as sb,jsxs as ib}from"react/jsx-runtime";import{Fragment as ub,jsx as mb,jsxs as fb}from"react/jsx-runtime";import{Fragment as zb,jsx as Tb}from"react/jsx-runtime";import{Fragment as Bb,jsx as Rb}from"react/jsx-runtime";import{Fragment as Qe,jsx as L,jsxs as z}from"react/jsx-runtime";var ta="k-colorgradient-inputs",yi=[],Ci={size:[i.small,i.medium,i.large]},oa={mode:"rgba",size:i.medium},we=e=>{let{mode:t=oa.mode,size:o,...n}=e;return z("div",{...n,className:s(ta,"k-hstack"),children:[L("div",{className:"k-vstack",children:L(S,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&z(Qe,{children:[z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),L("label",{className:"k-colorgradient-input-label",children:"R"})]}),z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),L("label",{className:"k-colorgradient-input-label",children:"G"})]}),z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),L("label",{className:"k-colorgradient-input-label",children:"B"})]}),z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),L("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&z(Qe,{children:[z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"R"})]}),z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"G"})]}),z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&z(Qe,{children:[z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"H"})]}),z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"S"})]}),z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"V"})]}),z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),L("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&z(Qe,{children:[z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"H"})]}),z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"S"})]}),z("div",{className:"k-vstack",children:[L(w,{showSpinButton:!1,showClearButton:!1,value:"132"}),L("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&L(Qe,{children:z("div",{className:"k-vstack k-flex-1",children:[L(le,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),L("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};we.states=yi;we.options=Ci;we.className=ta;we.defaultOptions=oa;import{jsx as Se,jsxs as Le}from"react/jsx-runtime";var aa="k-colorgradient-color-contrast",Ii=[],Mi={},Ai={},Oe=()=>Le("div",{className:s(aa,"k-vbox"),children:[Le("div",{className:"k-contrast-ratio",children:[Se("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Le("span",{className:"k-contrast-validation !k-text-success",children:[Se(M,{icon:"check"}),Se(M,{icon:"check"})]})]}),Le("div",{children:[Se("span",{children:"AA: 4.5"}),Le("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Se(M,{icon:"check"})]})]}),Le("div",{children:[Se("span",{children:"AAA: 7.0"}),Le("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Se(M,{icon:"x"})]})]})]});Oe.states=Ii;Oe.options=Mi;Oe.className=aa;Oe.defaultOptions=Ai;import{jsx as B,jsxs as Ye}from"react/jsx-runtime";var ut="k-colorgradient",Ti=[a.hover,a.focus,a.readonly,a.disabled],zi={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"},pe=e=>{let{size:t=_.size,mode:o=_.mode,readonly:n=_.readonly,disabled:r=_.disabled,gradientStyle:l=_.gradientStyle,dragHandleStyle:c=_.dragHandleStyle,alphaStyle:m=_.alphaStyle,alphaStyleHorizontal:d=_.alphaStyleHorizontal,contrast:p=_.contrast,dir:h,hover:x,focus:v,hoverHandle:N,focusHandle:y,canvasOrientation:I=_.canvasOrientation,...A}=e;return Ye("div",{...A,className:s(e.className,ut,k(ut,{size:t}),g(ut,{hover:x,focus:v,readonly:n,disabled:r})),dir:h,children:[!I||I==="horizontal"&&Ye("div",{className:"k-colorgradient-canvas k-hstack",children:[B("div",{className:"k-hsv-rectangle",style:l,children:B("div",{className:"k-hsv-gradient",children:B("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":y}),style:c})})}),Ye("div",{className:"k-hsv-controls k-hstack",children:[B(It,{className:"k-hue-slider",hover:N,focus:y}),o!=="rgb"&&o!=="hsv"&&B(It,{className:"k-alpha-slider",hover:N,focus:y,trackStyle:m})]})]}),I==="vertical"&&Ye("div",{className:"k-colorgradient-canvas k-vstack",children:[B("div",{className:"k-hsv-rectangle",style:l,children:B("div",{className:"k-hsv-gradient",children:B("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":y}),style:c})})}),Ye("div",{className:"k-hsv-controls k-vstack",children:[B(Ct,{className:"k-hue-slider",hover:N,focus:y}),o!=="rgb"&&o!=="hsv"&&B(Ct,{className:"k-alpha-slider",hover:N,focus:y,trackStyle:d})]})]}),B(we,{mode:e.mode,size:t}),p&&B(Oe,{})]})};pe.states=Ti;pe.options=zi;pe.className=ut;pe.defaultOptions=_;import{jsx as lh}from"react/jsx-runtime";import{jsx as mh}from"react/jsx-runtime";import{jsx as Ei}from"react/jsx-runtime";var sa=e=>Ei("tr",{children:e.children});import{jsx as Pi}from"react/jsx-runtime";var Yt="k-colorpalette-tile",wi=[a.hover,a.focus,a.selected],Oi={},Ze=e=>{let{color:t,tileSize:o,hover:n,focus:r,selected:l,...c}=e,m={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Pi("td",{...c,className:s(e.className,Yt,g(Yt,{hover:n,focus:r,selected:l})),style:m})};Ze.states=wi;Ze.options=Oi;Ze.className=Yt;import{jsx as je}from"react/jsx-runtime";var bt="k-colorpalette",Ki=[a.disabled],Ri={size:[i.small,i.medium,i.large]},Zt={columns:10,size:i.medium},Pe=e=>{let{size:t=Zt.size,palette:o,columns:n=Zt.columns,tileSize:r,disabled:l,...c}=e,m=[];if(o){let d=n||o.columns,p=o.colors?o.colors:o;Array.isArray(p)&&Array.from({length:Math.ceil(p.length/d)},(h,x)=>{let v=[];p.slice(x*d,(x+1)*d).map((y,I)=>{v.push(je(Ze,{color:y,tileSize:r},I))});let N=je(sa,{children:v},x);m.push(N)})}return je("div",{...c,className:s(e.className,bt,g(bt,{disabled:l}),k(bt,{size:t})),children:je("table",{className:"k-colorpalette-table",children:je("tbody",{children:m.length>0?m:e.children})})})};Pe.states=Ki;Pe.options=Ri;Pe.className=bt;Pe.defaultOptions=Zt;var jt={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 Kh}from"react/jsx-runtime";import{jsx as ia,jsxs as Gi}from"react/jsx-runtime";var na="k-color-preview",Bi=[],Hi={},me=e=>{let{color:t,iconName:o,...n}=e;return Gi("span",{...n,className:s(e.className,na,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ia(M,{icon:o,className:"k-color-preview-icon"}),ia("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};me.states=Bi;me.options=Hi;me.className=na;import{jsx as H,jsxs as Ke}from"react/jsx-runtime";var ht="k-coloreditor",Di=[a.focus],Vi={size:[i.small,i.medium,i.large]},Re={size:i.medium,view:"gradient",palette:jt.office,actionButtons:!0,canvasOrientation:"horizontal"},F=e=>{let{size:t=Re.size,view:o=Re.view,palette:n=Re.palette,color:r,currentColor:l,focus:c,focusView:m,dir:d,group:p,actionButtons:h=Re.actionButtons,canvasOrientation:x=Re.canvasOrientation,...v}=e;return Ke("div",{...v,className:s(e.className,"k-flatcolorpicker",ht,k(ht,{size:t}),g(ht,{focus:c})),dir:d,children:[Ke("div",{className:"k-coloreditor-header k-hstack",children:[H("div",{className:"k-coloreditor-header-actions k-hstack",children:p&&Ke(X,{fillMode:"flat",children:[H(S,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),H(S,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),H("div",{className:"k-spacer"}),Ke("div",{className:"k-coloreditor-header-actions k-hstack",children:[H(S,{fillMode:"flat",icon:"droplet-slash",size:t}),Ke("div",{className:"k-coloreditor-preview k-vstack",children:[H(me,{className:"k-coloreditor-preview-color",color:r}),H(me,{className:"k-coloreditor-current-color",color:l})]})]})]}),H("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?H(pe,{focus:m,size:t,canvasOrientation:x}):H(Pe,{palette:n,size:t})}),h&&Ke(ee,{className:"k-coloreditor-footer",alignment:"start",children:[H(S,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),H(S,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};F.states=Di;F.options=Vi;F.className=ht;F.defaultOptions=Re;import{jsx as nx}from"react/jsx-runtime";import{jsx as dx}from"react/jsx-runtime";import{jsx as ux}from"react/jsx-runtime";import{jsx as vx}from"react/jsx-runtime";import{Fragment as Fi,jsx as G,jsxs as to}from"react/jsx-runtime";var ra="k-colorpicker",$i=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],_i={size:[i.small,i.medium,i.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[f.solid,f.flat,f.outline]},et={arrowIconName:"caret-alt-down",size:V.defaultOptions.size,rounded:V.defaultOptions.rounded,fillMode:V.defaultOptions.fillMode},ke=e=>{let{size:t=et.size,rounded:o=et.rounded,fillMode:n=et.fillMode,arrowIconName:r=et.arrowIconName,prefix:l,suffix:c,value:m,placeholder:d,hover:p,focus:h,valid:x,invalid:v,required:N,disabled:y,valueIconName:I,popup:A,opened:T,adaptive:D,adaptiveSettings:U,adaptiveTitle:Be,adaptiveSubtitle:xt,...vt}=e;return to(Fi,{children:[to(V,{...vt,size:t,rounded:o,fillMode:n,hover:p,focus:h,valid:x,invalid:v,required:N,disabled:y,className:s(e.className,ra,"k-icon-picker"),children:[G(ae,{children:l}),G(ue,{placeholder:d,value:m,showValue:!1,valueIcon:G(me,{className:"k-value-icon",color:m,iconName:I}),valueIconName:I}),G(se,{children:c}),G(S,{className:"k-input-button",icon:r,rounded:null,size:t,fillMode:n})]}),T&&A&&G(ne,{className:"k-colorpicker-popup",children:A}),D&&G(j,{adaptive:!0,...U,header:G(q,{actionsEnd:G(S,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:Be,subtitle:xt}),footer:to(Fe,{children:[G(S,{text:"Cancel",size:"large",themeColor:"base"}),G(S,{text:"Set",size:"large",themeColor:"primary"})]}),children:G(F,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};ke.states=$i;ke.options=_i;ke.className=ra;ke.defaultOptions=et;import{jsx as Hx}from"react/jsx-runtime";import{jsx as _x}from"react/jsx-runtime";import{jsx as qx}from"react/jsx-runtime";import{jsx as Yx}from"react/jsx-runtime";import{jsx as tv}from"react/jsx-runtime";import{jsx as la}from"react/jsx-runtime";var fv=({value:e,color:t,currentColor:o,...n})=>la(ke,{value:e,opened:!0,popup:la(F,{group:!0,color:t,currentColor:o}),...n});export{fv as ColorPickerPopupGradient};