UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 70.3 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 g=(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"}),y=(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,"k-highlighted":t.highlighted});var r={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},N={small:"small",medium:"medium",large:"large",full:"full"},u={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},f={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"};import{Fragment as Zs,jsx as ha}from"react/jsx-runtime";var co="k-icon k-font-icon",Us=[],qs={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark]},Ws={},ht=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:p,...l}=e;return n?ha("span",{...l,className:s(e.className,co,g(co,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):ha(Zs,{})};ht.states=Us;ht.options=qs;ht.className=co;ht.defaultOptions=Ws;var Na=ht;import{Fragment as js,jsx as Ft}from"react/jsx-runtime";var mo="k-icon k-svg-icon",Qs=[],Ys={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark]},ka={viewBox:"0 0 24 24"},Nt=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:p=ka.viewBox,icon:l,...d}=e;if(!l)return Ft(js,{});l==="none"&&{...d,className:s(e.className,mo,"k-none")};let m=typeof l=="object"&&l.name&&l.name;return Ft("span",{...d,className:s(e.className,mo,g("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:Ft("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:p,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};Nt.states=Qs;Nt.options=Ys;Nt.className=mo;Nt.defaultOptions=ka;var uo=Nt;import*as va from"@progress/kendo-svg-icons";import{Fragment as La,jsx as kt}from"react/jsx-runtime";var er=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),tr=[],or={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark]},fo={viewBox:"0 0 24 24",type:"svg"},I=e=>{let{size:t,themeColor:o,icon:n,type:i=fo.type,rotate:p,flip:l,viewBox:d=fo.viewBox,...m}=e;if(!n)return kt(La,{});if(i==="svg"){if(n==="none")return kt(uo,{...m,icon:n,size:t});let b=er(`${n}-icon`);return va[b]?kt(uo,{...m,icon:va[b],size:t,themeColor:o,rotate:p,flip:l,viewBox:d}):kt(La,{})}return kt(Na,{...m,icon:n,size:t,themeColor:o,rotate:p,flip:l})};I.states=tr;I.options=or;I.defaultOptions=fo;import{Fragment as rr,jsx as vt,jsxs as ga}from"react/jsx-runtime";var $t="k-button",ar=[a.hover,a.focus,a.active,a.selected,a.disabled],sr={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark,f.inverse]},Pe={size:r.medium,rounded:N.medium,fillMode:u.solid,themeColor:f.base,showArrow:!1,arrowIconName:"caret-alt-down"},h=e=>{let{size:t=Pe.size,rounded:o=Pe.rounded,fillMode:n=Pe.fillMode,themeColor:i=Pe.themeColor,showArrow:p=Pe.showArrow,arrowIconName:l=Pe.arrowIconName,hover:d,focus:m,active:b,selected:x,disabled:v,icon:c,text:k,iconClassName:L,...S}=e,C=c!==void 0,T=e.children!==void 0;return ga("button",{...S,className:s(e.className,$t,g($t,{size:t,rounded:o,fillMode:n,themeColor:i}),y($t,{hover:d,focus:m,active:b,disabled:v,selected:x}),{"k-icon-button":!k&&!T&&C}),children:[c&&vt(I,{className:s(L,"k-button-icon"),icon:c}),k?ga(rr,{children:[k&&vt("span",{className:"k-button-text",children:k}),e.children]}):e.children&&vt("span",{className:"k-button-text",children:e.children}),p&&vt("span",{className:"k-menu-button-arrow k-button-arrow",children:vt(I,{icon:l})})]})};h.states=ar;h.options=sr;h.className=$t;h.defaultOptions=Pe;import{jsx as nr}from"react/jsx-runtime";var Dt=e=>nr(h,{icon:"folder",...e,children:void 0});import{jsx as ir}from"react/jsx-runtime";var bo=e=>ir(h,{icon:"folder",children:"Button",...e});import{jsx as hp}from"react/jsx-runtime";import{jsx as cr}from"react/jsx-runtime";var Lt="k-button-group",lr=[a.disabled],pr={fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},Sa={fillMode:u.solid},P=e=>{let{fillMode:t=Sa.fillMode,disabled:o,stretched:n,...i}=e;return cr("div",{...i,className:s(e.className,Lt,g(Lt,{fillMode:t}),y(Lt,{disabled:o}),{[`${Lt}-stretched`]:n}),children:e.children})};P.states=lr;P.options=pr;P.className=Lt;P.defaultOptions=Sa;import{Fragment as zp,jsx as Ap,jsxs as wp}from"react/jsx-runtime";import{Fragment as Hp,jsx as Kp,jsxs as Gp}from"react/jsx-runtime";import{Fragment as Xp,jsx as _p,jsxs as Jp}from"react/jsx-runtime";import{Fragment as Yp,jsx as Qp,jsxs as jp}from"react/jsx-runtime";import{jsx as ur}from"react/jsx-runtime";var Vt="k-input",mr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],dr={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},_t={size:r.medium,rounded:r.medium,fillMode:u.solid},z=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:d,size:m=_t.size,rounded:b=_t.rounded,fillMode:x=_t.fillMode,...v}=e;return ur("span",{...v,className:s(e.className,Vt,g(Vt,{size:m,rounded:b,fillMode:x}),y(Vt,{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:d}))})};z.states=mr;z.options=dr;z.className=Vt;z.defaultOptions=_t;import{jsx as xr}from"react/jsx-runtime";var Xt="k-picker",fr=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],br={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},Jt={size:r.medium,rounded:N.medium,fillMode:u.solid},te=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:d,size:m=Jt.size,rounded:b=Jt.rounded,fillMode:x=Jt.fillMode,...v}=e;return xr("span",{...v,className:s(e.className,Xt,g(Xt,{size:m,rounded:b,fillMode:x}),y(Xt,{hover:t,focus:o,disabled:n,invalid:i,valid:p,loading:l,readonly:d})),children:e.children})};te.states=fr;te.options=br;te.className=Xt;te.defaultOptions=Jt;import{Fragment as kr,jsx as xo}from"react/jsx-runtime";var ya="k-clear-value",hr=[a.disabled,a.loading,a.readonly],Nr={},oe=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?xo(kr,{}):xo("span",{className:s(e.className,ya),children:xo(I,{icon:"x"})})};oe.states=hr;oe.options=Nr;oe.className=ya;import{jsx as gr}from"react/jsx-runtime";var ho="k-input-inner",vr=[],Lr={},Ut={type:"text",autocomplete:"off",value:"",placeholder:""},ae=e=>{let{value:t=Ut.value,type:o=Ut.type,placeholder:n=Ut.placeholder,autocomplete:i=Ut.autocomplete,...p}=e;return gr("input",{...p,type:o,className:s(e.className,ho,g(ho,e)),placeholder:n,autoComplete:i,defaultValue:t})};ae.states=vr;ae.options=Lr;ae.className=ho;import{jsx as Ia,jsxs as Ir}from"react/jsx-runtime";var No="k-input-inner",Sr=[],yr={},Oe=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:p,...l}=e;return Ir("span",{...l,className:s(e.className,No,g(No,e)),children:[i,!i&&p&&Ia(I,{className:"k-input-value-icon",icon:p}),n&&!t&&o,n&&t&&Ia("span",{className:"k-input-value-text",children:t})]})};Oe.states=Sr;Oe.options=yr;Oe.className=No;import{jsx as Tr}from"react/jsx-runtime";var ko="k-input-inner",Mr=[],Cr={},Ma={value:"",placeholder:""},vo=e=>{let{value:t=Ma.value,placeholder:o=Ma.placeholder,rows:n,...i}=e;return Tr("textarea",{...i,className:s(e.className,ko,g(ko,e)),placeholder:o,rows:n,defaultValue:t})};vo.states=Mr;vo.options=Cr;vo.className=ko;import{Fragment as Ar,jsx as Ca}from"react/jsx-runtime";var Ta="k-input-loading-icon",Br=[a.disabled,a.loading],J=e=>{let{disabled:t,loading:o}=e;return t||!o?Ca(Ar,{}):Ca("span",{className:s(e.className,Ta,"k-icon k-i-loading")})};J.states=Br;J.className=Ta;import{Fragment as Er,jsx as Ba}from"react/jsx-runtime";var Aa="k-input-validation-icon",zr=[a.valid,a.invalid,a.disabled,a.loading],wr={},_=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,p=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?Ba(Er,{}):Ba(I,{className:s(Aa),icon:p})};_.states=zr;_.options=wr;_.className=Aa;import{Fragment as Rr,jsx as za}from"react/jsx-runtime";var Pr="k-input-prefix",Or={direction:"horizontal"},le=e=>{let{direction:t=Or.direction,...o}=e;return e.children?za("span",{...o,className:s(Pr,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):za(Rr,{})};import{Fragment as Gr,jsx as wa}from"react/jsx-runtime";var Kr="k-input-suffix",Hr={direction:"horizontal"},pe=e=>{let{direction:t=Hr.direction,...o}=e;return e.children?wa("span",{...o,className:s(Kr,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):wa(Gr,{})};import{jsx as Dc}from"react/jsx-runtime";import{jsx as Jc}from"react/jsx-runtime";import{jsx as $r}from"react/jsx-runtime";var Ea="k-input-separator",Fr={direction:"vertical"},de=e=>{let{direction:t=Fr.direction,...o}=e;return $r("span",{...o,className:s(Ea,e.className,{[`${Ea}-${t}`]:t})})};import{jsx as Pa,jsxs as _r}from"react/jsx-runtime";var Oa="k-color-preview",Dr=[],Vr={},Le=e=>{let{color:t,iconName:o,...n}=e;return _r("span",{...n,className:s(e.className,Oa,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Pa(I,{icon:o,className:"k-color-preview-icon"}),Pa("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Le.states=Dr;Le.options=Vr;Le.className=Oa;import{jsx as Ra}from"react/jsx-runtime";var Ka="k-animation-container",Xr=[],Jr={},Ha={positionMode:"absolute"},ge=e=>{let{positionMode:t=Ha.positionMode,animationStyle:o,offset:n,...i}=e;return Ra("div",{...i,style:{...n,...e.style},className:s(e.className,Ka,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Ra("div",{className:"k-child-animation-container",style:o,children:e.children})})};ge.states=Xr;ge.options=Jr;ge.className=Ka;ge.defaultOptions=Ha;import{jsx as Ga}from"react/jsx-runtime";var Fa="k-popup",Ur=[],qr={},$a={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:o=$a.positionMode,animationStyle:n,...i}=e;return Ga(ge,{positionMode:o,offset:t,animationStyle:n,children:Ga("div",{...i,className:s(e.className,Fa),children:e.children})})};H.states=Ur;H.options=qr;H.className=Fa;H.defaultOptions=$a;import{jsx as Qr}from"react/jsx-runtime";var qt="k-actions",Wr=[],Zr={},Lo={alignment:"start",orientation:"horizontal"},Se=e=>{let{alignment:t=Lo.alignment,orientation:o=Lo.orientation,...n}=e;return Qr("div",{...n,className:s(qt,{[`${qt}-${t}`]:t,[`${qt}-${o}`]:o},e.className),children:e.children})};Se.states=Wr;Se.options=Zr;Se.className=qt;Se.defaultOptions=Lo;import{jsx as jr}from"react/jsx-runtime";var Yr="k-actionsheet-footer",Da={alignment:"stretched",orientation:"horizontal"},gt=e=>{let{alignment:t=Da.alignment,orientation:o=Da.orientation,template:n,as:i=n?"div":Se,...p}=e;return jr(i,{...p,...!n&&{alignment:t,orientation:o},className:s(e.className,Yr),children:e.children})};import{jsx as St,jsxs as on}from"react/jsx-runtime";var Va="k-searchbox",en=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],tn={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},go={showIcon:!0,icon:"search",size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode},ue=e=>{let{value:t,placeholder:o,size:n,rounded:i,fillMode:p,hover:l,focus:d,valid:m,invalid:b,required:x,loading:v,disabled:c,showIcon:k=go.showIcon,icon:L=go.icon,...S}=e;return on(z,{...S,size:n,rounded:i,fillMode:p,hover:l,focus:d,valid:m,invalid:b,required:x,loading:v,disabled:c,className:s(e.className,Va),children:[k&&St(I,{className:"k-input-icon",icon:L}),St(ae,{placeholder:o,value:t}),St(J,{...e}),St(_,{...e}),St(oe,{...e})]})};ue.states=en;ue.options=tn;ue.className=Va;ue.defaultOptions=go;import{jsx as Xm}from"react/jsx-runtime";import{Fragment as _a,jsx as ye,jsxs as So}from"react/jsx-runtime";var Xa="k-textbox",an=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],sn={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},Re={showClearButton:!0,showValidationIcon:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},se=e=>{let{size:t=Re.size,rounded:o=Re.rounded,fillMode:n=Re.fillMode,separators:i=Re.separators,showClearButton:p=Re.showClearButton,showValidationIcon:l=Re.showValidationIcon,prefix:d,suffix:m,type:b,value:x,placeholder:v,hover:c,focus:k,valid:L,invalid:S,required:C,loading:T,disabled:w,readonly:F,...ve}=e;return So(z,{...ve,size:t,rounded:o,fillMode:n,hover:c,focus:k,valid:L,invalid:S,required:C,loading:T,disabled:w,readonly:F,className:s(e.className,Xa),children:[d&&So(_a,{children:[ye(le,{children:d}),i&&ye(de,{})]}),ye(ae,{placeholder:v,value:x,type:b}),l&&ye(_,{valid:L,invalid:S,loading:T,disabled:w}),ye(J,{loading:T,disabled:w}),p&&ye(oe,{loading:T,disabled:w,readonly:F,value:x}),m&&So(_a,{children:[i&&ye(de,{}),ye(pe,{children:m})]})]})};se.states=an;se.options=sn;se.className=Xa;se.defaultOptions=Re;import{jsx as od}from"react/jsx-runtime";import{Fragment as ld,jsx as id}from"react/jsx-runtime";import{Fragment as bd,jsx as fd}from"react/jsx-runtime";import{jsx as Ie,jsxs as yo}from"react/jsx-runtime";var Ua="k-actionsheet-titlebar",rn={},U=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:i,filter:p,input:l,inputValue:d,inputPlaceholder:m,adaptive:b,children:x,...v}=e;return yo("div",{...v,className:s(e.className,Ua),children:[yo("div",{className:"k-actionsheet-titlebar-group",children:[n&&Ie("div",{className:"k-actionsheet-actions",children:n}),!x&&yo("div",{className:"k-actionsheet-title",children:[t&&Ie("div",{className:"k-text-center",children:t}),o&&Ie("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&Ie("div",{className:"k-actionsheet-title",children:x}),i&&Ie("div",{className:"k-actionsheet-actions",children:i})]}),(l||p)&&Ie("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Ie(se,{value:d,placeholder:m,size:b?"large":"medium"}):Ie(ue,{placeholder:"Filter",size:b?"large":"medium"})})]})};U.className=Ua;U.defaultOptions=rn;import{jsx as Io,jsxs as cn}from"react/jsx-runtime";var Mo="k-actionsheet-view",nn=[],ln={},pn={},qe=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:p,...l}=e,d=i?.type===U&&Io(U,{adaptive:t,...i?.props}),m=p?.type===gt&&Io(gt,{...p?.props});return cn("div",{...l,className:s(e.className,Mo,{[`${Mo}-animated`]:o}),children:[d,Io("div",{className:"k-actionsheet-content",children:n}),m]})};qe.states=nn;qe.options=ln;qe.className=Mo;qe.defaultOptions=pn;import{jsx as Wt,jsxs as un}from"react/jsx-runtime";var qa="k-actionsheet",mn=[],dn={},yt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},re=e=>{let{side:t=yt.side,fullscreen:o=yt.fullscreen,adaptive:n=yt.adaptive,overlay:i=yt.overlay,template:p,children:l,header:d,footer:m,...b}=e;return un("div",{className:"k-actionsheet-container",children:[i&&Wt("div",{className:"k-overlay"}),Wt(ge,{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:Wt("div",{...b,className:s(e.className,qa,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:p||Wt(qe,{header:d,footer:m,adaptive:n,...e,children:l})})})]})};re.states=mn;re.options=dn;re.className=qa;re.defaultOptions=yt;import{jsx as Gd}from"react/jsx-runtime";import{Fragment as bn,jsx as It,jsxs as Co}from"react/jsx-runtime";var To="k-actionsheet-item",fn=[a.hover,a.focus,a.selected,a.disabled],Bo=e=>{let{iconName:t,text:o,description:n,hover:i,focus:p,selected:l,disabled:d,...m}=e;return Co("span",{...m,className:s(e.className,To,y(To,{hover:i,focus:p,selected:l,disabled:d})),children:[!e.children&&It(bn,{children:Co("span",{className:"k-actionsheet-action",children:[t&&It("span",{className:"k-icon-wrap",children:It(I,{className:"k-actionsheet-item-icon",icon:t})}),Co("span",{className:"k-actionsheet-item-text",children:[o&&It("span",{className:"k-actionsheet-item-title",children:o}),n&&It("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Bo.states=fn;Bo.className=To;import{jsx as qd,jsxs as Wd}from"react/jsx-runtime";import{jsx as jd}from"react/jsx-runtime";import{jsx as au}from"react/jsx-runtime";import{jsx as iu}from"react/jsx-runtime";import{jsx as We,jsxs as Ao}from"react/jsx-runtime";var Mt="k-slider",xn=[a.hover,a.focus,a.active,a.disabled,a.readonly],hn={},Me={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},q=e=>{let{type:t=Me.type,orientation:o=Me.orientation,readonly:n=Me.readonly,disabled:i=Me.disabled,handlePosition:p=Me.handlePosition,showButtons:l=Me.showButtons,showTicks:d=Me.showTicks,hover:m,focus:b,active:x,trackStyle:v,dir:c,...k}=e,L,S;return o==="horizontal"?(L=c==="rtl"?"caret-alt-left":"caret-alt-right",S=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(L="caret-alt-up",S="caret-alt-down"),Ao("div",{...k,className:s(Mt,e.className,y(Mt,{readonly:n,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[l&&We(h,{className:"k-button-decrease",rounded:"full",icon:S}),Ao("div",{className:"k-slider-track-wrap",children:[d&&We("ul",{className:"k-reset k-slider-items",children:e.children}),Ao("div",{className:"k-slider-track",style:v,children:[We("div",{className:"k-slider-selection"}),t==="range"&&We("span",{className:s("k-draghandle","k-draghandle-start",y(Mt,{hover:m,focus:b,active:x}))}),We("span",{className:s("k-draghandle",`k-draghandle-${p}`,y(Mt,{hover:m,focus:b,active:x}))})]})]}),l&&We(h,{className:"k-button-increase",rounded:"full",icon:L})]})};q.states=xn;q.options=hn;q.className=Mt;q.defaultOptions=Me;import{jsx as Za}from"react/jsx-runtime";var Qa="k-tick",Nn=[],kn={},Ya={label:!1},Ce=e=>{let{style:t,label:o=Ya.label,orientation:n,large:i,text:p,...l}=e;return Za("li",{...l,className:s(e.className,Qa,{[`k-tick-${n}`]:n,"k-tick-large":i}),style:t,children:o&&Za("span",{className:"k-label",children:p})})};Ce.states=Nn;Ce.options=kn;Ce.className=Qa;Ce.defaultOptions=Ya;import{Fragment as Au,jsx as Bu,jsxs as zu}from"react/jsx-runtime";import{Fragment as Ru,jsx as Ou,jsxs as Ku}from"react/jsx-runtime";import{Fragment as Du,jsx as $u,jsxs as Vu}from"react/jsx-runtime";import{Fragment as qu,jsx as Uu,jsxs as Wu}from"react/jsx-runtime";import{jsx as vn}from"react/jsx-runtime";var zo=e=>vn(q,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Ln}from"react/jsx-runtime";var wo=e=>Ln(q,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as ja,jsxs as yn}from"react/jsx-runtime";var es="k-spin-button",gn=[],Sn={size:[r.small,r.medium,r.large],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},Eo={size:r.medium,fillMode:u.solid},Ze=e=>{let{size:t=Eo.size,fillMode:o=Eo.fillMode,...n}=e;return yn("span",{...n,className:s(es,e.className),children:[ja(h,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),ja(h,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Ze.states=gn;Ze.options=Sn;Ze.className=es;Ze.defaultOptions=Eo;import{Fragment as ts,jsx as fe,jsxs as Po}from"react/jsx-runtime";var os="k-numerictextbox",In=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Mn={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},Ke={showSpinButton:!0,showClearButton:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},O=e=>{let{size:t=Ke.size,rounded:o=Ke.rounded,fillMode:n=Ke.fillMode,separators:i=Ke.separators,showClearButton:p=Ke.showClearButton,showSpinButton:l=Ke.showSpinButton,prefix:d,suffix:m,value:b,placeholder:x,hover:v,focus:c,valid:k,invalid:L,required:S,loading:C,disabled:T,readonly:w,...F}=e;return Po(z,{...F,size:t,rounded:o,fillMode:n,hover:v,focus:c,valid:k,invalid:L,required:S,loading:C,disabled:T,readonly:w,className:s(e.className,os),children:[d&&Po(ts,{children:[fe(le,{children:d}),i&&fe(de,{})]}),fe(ae,{placeholder:x,value:b}),fe(_,{valid:k,invalid:L,loading:C,disabled:T}),fe(J,{loading:C,disabled:T}),p&&fe(oe,{loading:C,disabled:T,readonly:w,value:b}),m&&Po(ts,{children:[i&&fe(de,{}),fe(pe,{children:m})]}),l&&fe(Ze,{className:"k-input-spinner",size:t,fillMode:n})]})};O.states=In;O.options=Mn;O.className=os;O.defaultOptions=Ke;import{jsx as Mf}from"react/jsx-runtime";import{jsx as Tn}from"react/jsx-runtime";var Cn="k-no-data",Ct=e=>Tn("span",{className:s(Cn,e.className),children:e.children});import{jsx as Qe,jsxs as ss}from"react/jsx-runtime";var Oo="k-list",Bn=[],An={size:[r.small,r.medium,r.large]},rs={size:r.medium},E=e=>{let{size:t=rs.size,virtualization:o,children:n,optionLabel:i,customValue:p,screenReaders:l,...d}=e,m,b,x,v,c=[];return n?n.map((k,L)=>{k.type===G?(k.props.root===!0?(m=k.props.label,k.props.children.map((S,C)=>{c.push(Qe(M,{...S.props},`optChild-${C}-${new Date().getTime()}`))})):k.props.children.forEach((S,C)=>{let T="";C===0&&(T=k.props.label),c.push(Qe(M,{className:C===0?"k-first":"",...S.props,groupLabel:T},`groupLabel-${C}-${new Date().getTime()}`))}),b=Qe(G,{label:m,virtualization:o,children:c})):k.type===M&&(c.push(Qe(M,{...k.props},`${k.type}-${L}`)),x=Qe(Ye,{virtualization:o,children:c}),l&&(v=ss(Ct,{className:"k-sr-only",children:[c.length," items found."]})))}):v=Qe(Ct,{children:"No data found."}),ss("div",{...d,className:s(e.className,Oo,g(Oo,{size:t}),{"k-virtual-list":o}),children:[i,p,b,x,v]})};E.states=Bn;E.options=An;E.className=Oo;E.defaultOptions=rs;import{jsx as He,jsxs as En}from"react/jsx-runtime";var Ro="k-list",zn=[],wn={size:[r.small,r.medium,r.large]},ns={size:r.medium},Ge=e=>{let{size:t=ns.size,virtualization:o,children:n,...i}=e,p,l,d,m=[];return n?n.map((b,x)=>{b.type===G?(b.props.root===!0?(p=b.props.label,b.props.children.map((v,c)=>{m.push(He(M,{...v.props},`optChild-${c}-${new Date().getTime()}`))})):(m.push(He(is,{...b.props,children:b.props.label},`listChild-${x}`)),b.props.children.map((v,c)=>{m.push(He(M,{...v.props},`fwOptChild-${c}-${new Date().getTime()}`))})),l=He(G,{label:p,virtualization:o,children:m})):b.type===M&&(m.push(He(M,{...b.props},`${b.type}-${x}`)),d=He(Ye,{virtualization:o,children:m}))}):d=He(Ct,{children:"No data found."}),En("div",{...i,className:s(e.className,Ro,g(Ro,{size:t}),{"k-virtual-list":o}),children:[l,d]})};Ge.states=zn;Ge.options=wn;Ge.className=Ro;Ge.defaultOptions=ns;import{jsx as ls}from"react/jsx-runtime";var Zt="k-checkbox",Pn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],On={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full]},Ko={size:r.medium,rounded:N.medium},Te=e=>{let{id:t,checked:o,indeterminate:n,hover:i,focus:p,disabled:l,invalid:d,valid:m,required:b,size:x=Ko.size,rounded:v=Ko.rounded,...c}=e;return ls("span",{className:"k-checkbox-wrap",children:ls("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:b,className:s(e.className,Zt,g(Zt,{size:x,rounded:v}),y(Zt,{hover:i,focus:p,disabled:l,invalid:d,valid:m,indeterminate:n,checked:o}))})})};Te.states=Pn;Te.options=On;Te.className=Zt;Te.defaultOptions=Ko;import{jsx as Hn}from"react/jsx-runtime";var ps="k-checkbox-list",Rn=[],Kn={},cs={layout:"vertical"},je=e=>{let{layout:t=cs.layout,...o}=e;return Hn("ul",{...o,className:s(e.className,ps,{[`k-list-${t}`]:t}),children:e.children})};je.states=Rn;je.options=Kn;je.className=ps;je.defaultOptions=cs;import{jsx as Dn}from"react/jsx-runtime";var ms="k-checkbox-list-item",Gn=[],Fn={},$n={},et=e=>{let{...t}=e;return Dn("li",{...t,className:s(e.className,ms),children:e.children})};et.states=Gn;et.options=Fn;et.className=ms;et.defaultOptions=$n;import{Fragment as tb,jsx as eb,jsxs as ob}from"react/jsx-runtime";import{Fragment as ib,jsx as nb,jsxs as lb}from"react/jsx-runtime";import{Fragment as ub,jsx as db,jsxs as fb}from"react/jsx-runtime";import{Fragment as kb,jsx as Nb,jsxs as vb}from"react/jsx-runtime";import{jsx as yb}from"react/jsx-runtime";import{jsx as Tb}from"react/jsx-runtime";import{jsx as Qt,jsxs as Jn}from"react/jsx-runtime";var Go="k-list-item",Vn=[a.hover,a.focus,a.selected,a.disabled],_n={},Xn={},M=e=>{let{text:t,groupLabel:o,group:n,showIcon:i,iconName:p,showCheckbox:l,checked:d,hover:m,focus:b,selected:x,disabled:v,...c}=e,k=t||e.children;return Jn("li",{...c,className:s(e.className,n?"k-list-group-item":Go,y(Go,{hover:m,focus:b,disabled:v,selected:x})),children:[l&&Qt(Te,{checked:d}),i&&Qt(I,{icon:p}),Qt("span",{className:"k-list-item-text",children:k}),o&&o!==""&&Qt("div",{className:"k-list-item-group-label",children:o})]})};M.states=Vn;M.options=_n;M.className=Go;M.defaultOptions=Xn;import{jsx as Fo,jsxs as qn}from"react/jsx-runtime";var Un="k-list-content",Ye=e=>{let{virtualization:t,...o}=e;return qn("div",{...o,className:s(Un,e.className),children:[Fo("ul",{className:s("k-list-ul"),children:e.children}),t&&Fo("div",{className:"k-height-container",children:Fo("div",{})})]})};import{jsx as ds}from"react/jsx-runtime";var Wn="k-list-group-sticky-header",us=e=>ds("div",{className:s(Wn,e.className),children:ds("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Zn,jsx as fs,jsxs as Qn}from"react/jsx-runtime";var G=e=>{let{virtualization:t,label:o}=e;return Qn(Zn,{children:[o&&fs(us,{children:o}),e.children&&fs(Ye,{virtualization:t,children:e.children})]})};import{jsx as bs}from"react/jsx-runtime";var Yn="k-list-group-item",is=e=>bs("li",{className:s(Yn,e.className),children:bs("span",{className:"k-list-item-text",children:e.children})});import{jsx as oi}from"react/jsx-runtime";var $o="k-list-optionlabel",jn=[a.hover,a.focus,a.selected,a.disabled],ei={},ti={},Yt=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:p,...l}=e;return oi("div",{...l,className:s($o,y($o,{hover:o,focus:n,selected:i,disabled:p})),children:t})};Yt.states=jn;Yt.options=ei;Yt.className=$o;Yt.defaultOptions=ti;import{jsx as ni}from"react/jsx-runtime";var Do="k-list-custom-value",ai=[a.hover,a.focus,a.selected,a.disabled],si={},ri={},Be=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:p,...l}=e;return ni("div",{...l,className:s(Do,y(Do,{hover:o,focus:n,selected:i,disabled:p})),children:t})};Be.states=ai;Be.options=si;Be.className=Do;Be.defaultOptions=ri;import{jsx as mx}from"react/jsx-runtime";import{jsx as bx}from"react/jsx-runtime";import{jsx as kx,jsxs as vx}from"react/jsx-runtime";import{jsx as yx,jsxs as Ix}from"react/jsx-runtime";import{jsx as Bx}from"react/jsx-runtime";import{jsx as Ex,jsxs as Px}from"react/jsx-runtime";import{jsx as Hx,jsxs as Gx}from"react/jsx-runtime";import{Fragment as pi,jsx as D,jsxs as Vo}from"react/jsx-runtime";var xs="k-dropdownlist",ii=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],li={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},tt={showValue:!0,arrowIconName:"caret-alt-down",size:r.medium,rounded:N.medium,fillMode:u.solid},$=e=>{let{size:t=tt.size,rounded:o=tt.rounded,fillMode:n=tt.fillMode,arrowIconName:i=tt.arrowIconName,showValue:p=tt.showValue,valueIconName:l,prefix:d,suffix:m,value:b,placeholder:x,hover:v,focus:c,valid:k,invalid:L,required:S,loading:C,disabled:T,readonly:w,popup:F,opened:ve,adaptive:bt,adaptiveSettings:xt,adaptiveTitle:lo,adaptiveSubtitle:po,adaptiveFilter:Xs,...Js}=e;return Vo(pi,{children:[Vo(te,{...Js,size:t,rounded:o,fillMode:n,hover:v,focus:c,valid:k,invalid:L,required:S,loading:C,disabled:T,readonly:w,className:s(e.className,xs,{"k-icon-picker":!p&&l}),children:[D(le,{children:d}),D(Oe,{placeholder:x,value:b,showValue:p,valueIconName:l}),D(_,{valid:k,invalid:L,loading:C,disabled:T}),D(J,{loading:C,disabled:T}),D(pe,{children:m}),D(h,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),ve&&F&&D(H,{className:"k-list-container k-dropdownlist-popup",children:F}),bt&&D(re,{adaptive:!0,...xt,header:D(U,{actionsEnd:D(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Xs,inputValue:b,inputPlaceholder:x,title:lo,subtitle:po}),children:D("div",{className:"k-list-container",children:Vo(E,{size:"large",children:[D(M,{text:"List item"}),D(M,{text:"List item"}),D(M,{text:"List item"})]})})})]})};$.states=ii;$.options=li;$.className=xs;$.defaultOptions=tt;import{jsx as bh}from"react/jsx-runtime";import{jsx as vh,jsxs as Lh}from"react/jsx-runtime";import{Fragment as Bh,jsx as Ch,jsxs as Th}from"react/jsx-runtime";import{jsx as Eh}from"react/jsx-runtime";import{jsx as Hh,jsxs as Gh}from"react/jsx-runtime";import{jsx as _h,jsxs as Xh}from"react/jsx-runtime";import{Fragment as jh,jsx as Qh,jsxs as Yh}from"react/jsx-runtime";import{Fragment as iN,jsx as rN,jsxs as nN}from"react/jsx-runtime";import{Fragment as SN,jsx as gN}from"react/jsx-runtime";import{Fragment as AN,jsx as BN}from"react/jsx-runtime";import{Fragment as Tt,jsx as B,jsxs as R}from"react/jsx-runtime";var hs="k-colorgradient-inputs",ci=[],mi={size:[r.small,r.medium,r.large]},Ns={mode:"rgba",size:r.medium},ot=e=>{let{mode:t=Ns.mode,size:o,...n}=e;return R("div",{...n,className:s(hs,"k-hstack"),children:[B("div",{className:"k-vstack",children:B(h,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&R(Tt,{children:[R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),B("label",{className:"k-colorgradient-input-label",children:"R"})]}),R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),B("label",{className:"k-colorgradient-input-label",children:"G"})]}),R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),B("label",{className:"k-colorgradient-input-label",children:"B"})]}),R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),B("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&R(Tt,{children:[R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"R"})]}),R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"G"})]}),R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&R(Tt,{children:[R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"H"})]}),R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"S"})]}),R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"V"})]}),R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),B("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&R(Tt,{children:[R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"H"})]}),R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"S"})]}),R("div",{className:"k-vstack",children:[B(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),B("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&B(Tt,{children:R("div",{className:"k-vstack k-flex-1",children:[B(se,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),B("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};ot.states=ci;ot.options=mi;ot.className=hs;ot.defaultOptions=Ns;import{jsx as $e,jsxs as De}from"react/jsx-runtime";var ks="k-colorgradient-color-contrast",di=[],ui={},fi={},at=()=>De("div",{className:s(ks,"k-vbox"),children:[De("div",{className:"k-contrast-ratio",children:[$e("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),De("span",{className:"k-contrast-validation !k-text-success",children:[$e(I,{icon:"check"}),$e(I,{icon:"check"})]})]}),De("div",{children:[$e("span",{children:"AA: 4.5"}),De("span",{className:"k-contrast-validation !k-text-success",children:["Pass",$e(I,{icon:"check"})]})]}),De("div",{children:[$e("span",{children:"AAA: 7.0"}),De("span",{className:"k-contrast-validation !k-text-error",children:["Fail",$e(I,{icon:"x"})]})]})]});at.states=di;at.options=ui;at.className=ks;at.defaultOptions=fi;import{jsx as W,jsxs as Bt}from"react/jsx-runtime";var jt="k-colorgradient",bi=[a.hover,a.focus,a.readonly,a.disabled],xi={size:[r.small,r.medium,r.large]},ne={size:r.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},Ae=e=>{let{size:t=ne.size,mode:o=ne.mode,readonly:n=ne.readonly,disabled:i=ne.disabled,gradientStyle:p=ne.gradientStyle,dragHandleStyle:l=ne.dragHandleStyle,alphaStyle:d=ne.alphaStyle,alphaStyleHorizontal:m=ne.alphaStyleHorizontal,contrast:b=ne.contrast,dir:x,hover:v,focus:c,hoverHandle:k,focusHandle:L,canvasOrientation:S=ne.canvasOrientation,...C}=e;return Bt("div",{...C,className:s(e.className,jt,g(jt,{size:t}),y(jt,{hover:v,focus:c,readonly:n,disabled:i})),dir:x,children:[!S||S==="horizontal"&&Bt("div",{className:"k-colorgradient-canvas k-hstack",children:[W("div",{className:"k-hsv-rectangle",style:p,children:W("div",{className:"k-hsv-gradient",children:W("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":L}),style:l})})}),Bt("div",{className:"k-hsv-controls k-hstack",children:[W(wo,{className:"k-hue-slider",hover:k,focus:L}),o!=="rgb"&&o!=="hsv"&&W(wo,{className:"k-alpha-slider",hover:k,focus:L,trackStyle:d})]})]}),S==="vertical"&&Bt("div",{className:"k-colorgradient-canvas k-vstack",children:[W("div",{className:"k-hsv-rectangle",style:p,children:W("div",{className:"k-hsv-gradient",children:W("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":L}),style:l})})}),Bt("div",{className:"k-hsv-controls k-vstack",children:[W(zo,{className:"k-hue-slider",hover:k,focus:L}),o!=="rgb"&&o!=="hsv"&&W(zo,{className:"k-alpha-slider",hover:k,focus:L,trackStyle:m})]})]}),W(ot,{mode:e.mode,size:t}),b&&W(at,{})]})};Ae.states=bi;Ae.options=xi;Ae.className=jt;Ae.defaultOptions=ne;import{jsx as tk}from"react/jsx-runtime";import{jsx as rk}from"react/jsx-runtime";import{jsx as hi}from"react/jsx-runtime";var vs=e=>hi("tr",{children:e.children});import{jsx as vi}from"react/jsx-runtime";var _o="k-colorpalette-tile",Ni=[a.hover,a.focus,a.selected],ki={},At=e=>{let{color:t,tileSize:o,hover:n,focus:i,selected:p,...l}=e,d={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return vi("td",{...l,className:s(e.className,_o,y(_o,{hover:n,focus:i,selected:p})),style:d})};At.states=Ni;At.options=ki;At.className=_o;import{jsx as zt}from"react/jsx-runtime";var eo="k-colorpalette",Li=[a.disabled],gi={size:[r.small,r.medium,r.large]},Xo={columns:10,size:r.medium},st=e=>{let{size:t=Xo.size,palette:o,columns:n=Xo.columns,tileSize:i,disabled:p,...l}=e,d=[];if(o){let m=n||o.columns,b=o.colors?o.colors:o;Array.isArray(b)&&Array.from({length:Math.ceil(b.length/m)},(x,v)=>{let c=[];b.slice(v*m,(v+1)*m).map((L,S)=>{c.push(zt(At,{color:L,tileSize:i},S))});let k=zt(vs,{children:c},v);d.push(k)})}return zt("div",{...l,className:s(e.className,eo,y(eo,{disabled:p}),g(eo,{size:t})),children:zt("table",{className:"k-colorpalette-table",children:zt("tbody",{children:d.length>0?d:e.children})})})};st.states=Li;st.options=gi;st.className=eo;st.defaultOptions=Xo;var Jo={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 Tk}from"react/jsx-runtime";import{jsx as Z,jsxs as rt}from"react/jsx-runtime";var to="k-coloreditor",Si=[a.focus],yi={size:[r.small,r.medium,r.large]},nt={size:r.medium,view:"gradient",palette:Jo.office,actionButtons:!0,canvasOrientation:"horizontal"},ce=e=>{let{size:t=nt.size,view:o=nt.view,palette:n=nt.palette,color:i,currentColor:p,focus:l,focusView:d,dir:m,group:b,actionButtons:x=nt.actionButtons,canvasOrientation:v=nt.canvasOrientation,...c}=e;return rt("div",{...c,className:s(e.className,"k-flatcolorpicker",to,g(to,{size:t}),y(to,{focus:l})),dir:m,children:[rt("div",{className:"k-coloreditor-header k-hstack",children:[Z("div",{className:"k-coloreditor-header-actions k-hstack",children:b&&rt(P,{fillMode:"flat",children:[Z(h,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),Z(h,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),Z("div",{className:"k-spacer"}),rt("div",{className:"k-coloreditor-header-actions k-hstack",children:[Z(h,{fillMode:"flat",icon:"droplet-slash",size:t}),rt("div",{className:"k-coloreditor-preview k-vstack",children:[Z(Le,{className:"k-coloreditor-preview-color",color:i}),Z(Le,{className:"k-coloreditor-current-color",color:p})]})]})]}),Z("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?Z(Ae,{focus:d,size:t,canvasOrientation:v}):Z(st,{palette:n,size:t})}),x&&rt(Se,{className:"k-coloreditor-footer",alignment:"start",children:[Z(h,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Z(h,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ce.states=Si;ce.options=yi;ce.className=to;ce.defaultOptions=nt;import{jsx as Uk}from"react/jsx-runtime";import{jsx as Qk}from"react/jsx-runtime";import{jsx as tv}from"react/jsx-runtime";import{jsx as rv}from"react/jsx-runtime";import{Fragment as Ci,jsx as Q,jsxs as qo}from"react/jsx-runtime";var Ls="k-colorpicker",Ii=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],Mi={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},wt={arrowIconName:"caret-alt-down",size:te.defaultOptions.size,rounded:te.defaultOptions.rounded,fillMode:te.defaultOptions.fillMode},be=e=>{let{size:t=wt.size,rounded:o=wt.rounded,fillMode:n=wt.fillMode,arrowIconName:i=wt.arrowIconName,prefix:p,suffix:l,value:d,placeholder:m,hover:b,focus:x,valid:v,invalid:c,required:k,disabled:L,valueIconName:S,popup:C,opened:T,adaptive:w,adaptiveSettings:F,adaptiveTitle:ve,adaptiveSubtitle:bt,...xt}=e;return qo(Ci,{children:[qo(te,{...xt,size:t,rounded:o,fillMode:n,hover:b,focus:x,valid:v,invalid:c,required:k,disabled:L,className:s(e.className,Ls,"k-icon-picker"),children:[Q(le,{children:p}),Q(Oe,{placeholder:m,value:d,showValue:!1,valueIcon:Q(Le,{className:"k-value-icon",color:d,iconName:S}),valueIconName:S}),Q(pe,{children:l}),Q(h,{className:"k-input-button",icon:i,rounded:null,size:t,fillMode:n})]}),T&&C&&Q(H,{className:"k-colorpicker-popup",children:C}),w&&Q(re,{adaptive:!0,...F,header:Q(U,{actionsEnd:Q(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:ve,subtitle:bt}),footer:qo(gt,{children:[Q(h,{text:"Cancel",size:"large",themeColor:"base"}),Q(h,{text:"Set",size:"large",themeColor:"primary"})]}),children:Q(ce,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};be.states=Ii;be.options=Mi;be.className=Ls;be.defaultOptions=wt;import{jsx as Iv}from"react/jsx-runtime";import{jsx as Av}from"react/jsx-runtime";import{jsx as Ov}from"react/jsx-runtime";import{jsx as Gv}from"react/jsx-runtime";import{jsx as Vv}from"react/jsx-runtime";import{jsx as Uv}from"react/jsx-runtime";import{Fragment as Wo,jsx as K,jsxs as Et}from"react/jsx-runtime";var gs="k-combobox",Bi=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Ai={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},Pt={size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},Ve=e=>{let{size:t=Pt.size,rounded:o=Pt.rounded,fillMode:n=Pt.fillMode,separators:i=Pt.separators,prefix:p,suffix:l,value:d,placeholder:m,hover:b,focus:x,valid:v,invalid:c,required:k,loading:L,disabled:S,popup:C,opened:T,readonly:w,adaptive:F,adaptiveSettings:ve,adaptiveTitle:bt,adaptiveSubtitle:xt,adaptiveCustomValue:lo,...po}=e;return Et(Wo,{children:[Et(z,{...po,size:t,rounded:o,fillMode:n,hover:b,focus:x,valid:v,invalid:c,required:k,loading:L,disabled:S,readonly:w,className:s(e.className,gs),children:[p&&Et(Wo,{children:[K(le,{children:p}),i&&K(de,{})]}),K(ae,{placeholder:m,value:d}),K(_,{valid:v,invalid:c,loading:L,disabled:S}),K(J,{loading:L,disabled:S}),K(oe,{loading:L,disabled:S,readonly:w,value:d}),l&&Et(Wo,{children:[i&&K(de,{}),K(pe,{children:l})]}),K(h,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:n})]}),T&&C&&K(H,{className:"k-list-container k-combobox-popup",children:C}),F&&K(re,{adaptive:!0,...ve,header:K(U