@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 78.6 kB
JavaScript
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,r)=>t[r]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var v=(e,t)=>a({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),y=(e,t)=>a({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var s={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},b={small:"small",medium:"medium",large:"large",full:"full"},f={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},p={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={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{jsx as ys,jsxs as Ss}from"react/jsx-runtime";var ao="k-grid",vs=[],Ls={size:[s.small,s.medium,s.large]},Ro={size:s.medium,pagerPosition:"bottom"},D=e=>{let{size:t=Ro.size,pagerPosition:o=Ro.pagerPosition,toolbar:r,pager:n,groupingHeader:i,gridSelectionAggregates:d,_renderAriaRoot:m,resizable:u,...T}=e;return Ss("div",{...T,className:a(e.className,ao,{[`${ao}-resizable`]:u},v(ao,{size:t})),children:[r,o==="top"&&n,i,e.children&&m?ys("div",{className:"k-grid-aria-root",children:e.children}):e.children,d,o==="bottom"&&n]})};D.states=vs;D.options=Ls;D.className=ao;D.defaultOptions=Ro;import{jsx as ws}from"react/jsx-runtime";var Cs="k-grid-header",oe=e=>{let{draggable:t}=e;return ws("div",{...e,className:a(e.className,Cs,{"k-grid-draggable-header":t}),children:e.children})};import{jsx as rc,jsxs as ic}from"react/jsx-runtime";import{jsx as As}from"react/jsx-runtime";var Va="k-data-table",Ms=[],Is={size:[s.small,s.medium,s.large]},Xa={size:s.medium},Fe=e=>{let{size:t=Xa.size,...o}=e;return As("div",{...o,className:a(e.className,Va,v("k-table",{size:t})),children:e.children})};Fe.states=Ms;Fe.options=Is;Fe.className=Va;Fe.defaultOptions=Xa;import{jsx as bc}from"react/jsx-runtime";import{jsx as Nc}from"react/jsx-runtime";import{jsx as Lc}from"react/jsx-runtime";import{jsx as Ps}from"react/jsx-runtime";var Go="k-table",Rs=[],Gs={size:[s.small,s.medium,s.large]},Hs={},se=e=>{let{size:t,...o}=e;return Ps("table",{...o,className:a(e.className,Go,v(Go,{size:t})),children:e.children})};se.states=Rs;se.options=Gs;se.className=Go;se.defaultOptions=Hs;import{jsx as Os}from"react/jsx-runtime";var Ho="k-table-list",zs=[],Bs={size:[s.small,s.medium,s.large]},Es={},dt=e=>{let{size:t,virtualization:o,...r}=e;return Os("ul",{...r,className:a(e.className,"k-table",Ho,v(Ho,{size:t}),{"k-virtual-table":o}),children:e.children})};dt.states=zs;dt.options=Bs;dt.className=Ho;dt.defaultOptions=Es;import{jsx as Ds}from"react/jsx-runtime";var Ks="k-table-thead",X=e=>Ds("thead",{className:a(e.className,Ks),children:e.children});import{jsx as _s}from"react/jsx-runtime";var $s="k-table-tbody",W=e=>_s("tbody",{className:a(e.className,$s),children:e.children});import{jsx as Kc}from"react/jsx-runtime";import{jsx as Xs}from"react/jsx-runtime";var Po="k-table-row",Vs=[l.hover,l.focus,l.selected,l.disabled,l.highlighted],P=e=>{let{hover:t,focus:o,selected:r,highlighted:n,disabled:i,alt:d,...m}=e;return Xs("tr",{...m,className:a(e.className,Po,{"k-table-alt-row":d},y(Po,{hover:t,focus:o,disabled:i,selected:r,highlighted:n})),children:e.children})};P.states=Vs;P.className=Po;import{jsx as Js}from"react/jsx-runtime";var zo="k-table-row",Fs=[l.hover,l.focus,l.selected,l.disabled],lo=e=>{let{hover:t,focus:o,selected:r,disabled:n,alt:i,...d}=e;return Js("li",{...d,className:a(e.className,zo,{"k-table-alt-row":i},y(zo,{hover:t,focus:o,disabled:n,selected:r})),children:e.children})};lo.states=Fs;lo.className=zo;import{jsx as Us}from"react/jsx-runtime";var Ws="k-table-th",ct=e=>{let{text:t,colspan:o,rowspan:r,...n}=e,i=t||e.children;return Us("th",{colSpan:o,rowSpan:r,...n,className:a(e.className,Ws),children:i})};import{jsx as Zc}from"react/jsx-runtime";import{jsx as Qs}from"react/jsx-runtime";var Bo="k-table-td",qs=[l.focus,l.selected,l.highlighted],A=e=>{let{focus:t,selected:o,highlighted:r,text:n,colspan:i,rowspan:d,...m}=e,u=n||e.children;return Qs("td",{colSpan:i,rowSpan:d,...m,className:a(e.className,Bo,y(Bo,{focus:t,selected:o,highlighted:r})),children:u})};A.states=qs;A.className=Bo;import{jsx as sp}from"react/jsx-runtime";import{jsx as dp}from"react/jsx-runtime";import{jsx as up}from"react/jsx-runtime";import{jsx as hp}from"react/jsx-runtime";import{jsx as kp}from"react/jsx-runtime";import{jsx as Mp,jsxs as Ip}from"react/jsx-runtime";import{jsx as Hp,jsxs as Pp}from"react/jsx-runtime";import{jsx as Op,jsxs as Kp}from"react/jsx-runtime";import{Fragment as Fp,jsx as Vp,jsxs as Xp}from"react/jsx-runtime";import{jsx as or}from"react/jsx-runtime";var tr="k-grid-header-table",ae=e=>or(se,{size:"medium",...e,className:a(e.className,tr),children:e.children});import{Fragment as rr,jsx as Wa}from"react/jsx-runtime";var Eo="k-icon k-font-icon",ar=[],lr={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info,p.light,p.dark]},sr={},Pt=e=>{let{size:t,themeColor:o,icon:r,rotate:n,flip:i,...d}=e;return r?Wa("span",{...d,className:a(e.className,Eo,v(Eo,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"})}):Wa(rr,{})};Pt.states=ar;Pt.options=lr;Pt.className=Eo;Pt.defaultOptions=sr;var Ua=Pt;import{Fragment as dr,jsx as so}from"react/jsx-runtime";var Oo="k-icon k-svg-icon",ir=[],nr={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info,p.light,p.dark]},qa={viewBox:"0 0 24 24"},zt=e=>{let{size:t,themeColor:o,rotate:r,flip:n,viewBox:i=qa.viewBox,icon:d,...m}=e;if(!d)return so(dr,{});d==="none"&&{...m,className:a(e.className,Oo,"k-none")};let u=typeof d=="object"&&d.name&&d.name;return so("span",{...m,className:a(e.className,Oo,v("k-icon",{size:t}),{[`k-svg-i-${u}`]:u,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),children:so("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:i,dangerouslySetInnerHTML:typeof d=="object"?{__html:d.content}:void 0,children:d?void 0:e.children})})};zt.states=ir;zt.options=nr;zt.className=Oo;zt.defaultOptions=qa;var Ko=zt;import*as Qa from"@progress/kendo-svg-icons";import{Fragment as Ya,jsx as Bt}from"react/jsx-runtime";var cr=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),pr=[],mr={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info,p.light,p.dark]},Do={viewBox:"0 0 24 24",type:"svg"},S=e=>{let{size:t,themeColor:o,icon:r,type:n=Do.type,rotate:i,flip:d,viewBox:m=Do.viewBox,...u}=e;if(!r)return Bt(Ya,{});if(n==="svg"){if(r==="none")return Bt(Ko,{...u,icon:r,size:t});let T=cr(`${r}-icon`);return Qa[T]?Bt(Ko,{...u,icon:Qa[T],size:t,themeColor:o,rotate:i,flip:d,viewBox:m}):Bt(Ya,{})}return Bt(Ua,{...u,icon:r,size:t,themeColor:o,rotate:i,flip:d})};S.states=pr;S.options=mr;S.defaultOptions=Do;import{jsx as Je,jsxs as $o}from"react/jsx-runtime";var _o="k-header",ur=[l.hover,l.focus,l.active],Za={sortIcon:"sort-asc-small"},$=e=>{let{menu:t,sortable:o,filterable:r,sticky:n,resizable:i,columnTitle:d,hover:m,focus:u,active:T,sortIcon:x=Za.sortIcon,sortOrder:k,...c}=e;return $o(ct,{...c,className:a(e.className,_o,{"k-filterable":t||r,"k-sorted":o,"k-grid-header-sticky":n,"k-touch-action-none":i},y(_o,{hover:m,focus:u,active:T})),children:[d&&$o("span",{className:"k-cell-inner",children:[$o("span",{className:"k-link",children:[Je("span",{className:"k-column-title",children:d}),o&&Je("span",{className:"k-sort-icon",children:Je(S,{icon:x})}),k&&Je("span",{className:"k-sort-order",children:k})]}),t&&Je("a",{href:"#",className:a("k-grid-header-menu",{"k-active":T,"k-grid-filter-menu":t==="filter","k-grid-column-menu":t==="column"}),children:Je(S,{icon:t==="filter"?"filter":"more-vertical"})})]}),e.children,i&&Je("span",{className:"k-column-resizer k-touch-action-none"})]})};$.states=ur;$.className=_o;$.defaultOptions=Za;import{jsx as br}from"react/jsx-runtime";var fr="k-grid-container",q=e=>br("div",{...e,className:a(e.className,fr),children:e.children});import{jsx as hr}from"react/jsx-runtime";var Tr="k-grid-content",Q=e=>hr("div",{...e,className:a(e.className,Tr),children:e.children});import{jsx as Nr}from"react/jsx-runtime";var xr="k-grid-table",Y=e=>Nr(se,{size:"medium",...e,className:a(e.className,xr),children:e.children});import{jsx as ou}from"react/jsx-runtime";import{jsx as nu}from"react/jsx-runtime";import{Fragment as vr,jsx as Et,jsxs as ja}from"react/jsx-runtime";var ro="k-button",gr=[l.hover,l.focus,l.active,l.selected,l.disabled],kr={size:[s.small,s.medium,s.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info,p.light,p.dark,p.inverse]},We={size:s.medium,rounded:b.medium,fillMode:f.solid,themeColor:p.base,showArrow:!1,arrowIconName:"caret-alt-down"},h=e=>{let{size:t=We.size,rounded:o=We.rounded,fillMode:r=We.fillMode,themeColor:n=We.themeColor,showArrow:i=We.showArrow,arrowIconName:d=We.arrowIconName,hover:m,focus:u,active:T,selected:x,disabled:k,icon:c,text:N,iconClassName:g,...L}=e,C=c!==void 0,M=e.children!==void 0;return ja("button",{...L,className:a(e.className,ro,v(ro,{size:t,rounded:o,fillMode:r,themeColor:n}),y(ro,{hover:m,focus:u,active:T,disabled:k,selected:x}),{"k-icon-button":!N&&!M&&C}),children:[c&&Et(S,{className:a(g,"k-button-icon"),icon:c}),N?ja(vr,{children:[N&&Et("span",{className:"k-button-text",children:N}),e.children]}):e.children&&Et("span",{className:"k-button-text",children:e.children}),i&&Et("span",{className:"k-menu-button-arrow k-button-arrow",children:Et(S,{icon:d})})]})};h.states=gr;h.options=kr;h.className=ro;h.defaultOptions=We;import{jsx as Lr}from"react/jsx-runtime";var io=e=>Lr(h,{icon:"folder",...e,children:void 0});import{jsx as yr}from"react/jsx-runtime";var Vo=e=>yr(h,{icon:"folder",children:"Button",...e});import{jsx as vu}from"react/jsx-runtime";import{jsx as wr}from"react/jsx-runtime";var no="k-input",Sr=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Cr={size:[s.small,s.medium,s.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},co={size:s.medium,rounded:s.medium,fillMode:f.solid},z=e=>{let{hover:t,focus:o,disabled:r,invalid:n,valid:i,loading:d,readonly:m,size:u=co.size,rounded:T=co.rounded,fillMode:x=co.fillMode,...k}=e;return wr("span",{...k,className:a(e.className,no,v(no,{size:u,rounded:T,fillMode:x}),y(no,{hover:t,focus:o,disabled:r,invalid:n,valid:i,loading:d,readonly:m}))})};z.states=Sr;z.options=Cr;z.className=no;z.defaultOptions=co;import{jsx as Ar}from"react/jsx-runtime";var po="k-picker",Mr=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Ir={size:[s.small,s.medium,s.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},mo={size:s.medium,rounded:b.medium,fillMode:f.solid},fe=e=>{let{hover:t,focus:o,disabled:r,invalid:n,valid:i,loading:d,readonly:m,size:u=mo.size,rounded:T=mo.rounded,fillMode:x=mo.fillMode,...k}=e;return Ar("span",{...k,className:a(e.className,po,v(po,{size:u,rounded:T,fillMode:x}),y(po,{hover:t,focus:o,disabled:r,invalid:n,valid:i,loading:d,readonly:m})),children:e.children})};fe.states=Mr;fe.options=Ir;fe.className=po;fe.defaultOptions=mo;import{Fragment as Hr,jsx as Xo}from"react/jsx-runtime";var el="k-clear-value",Rr=[l.disabled,l.loading,l.readonly],Gr={},be=e=>{let{disabled:t,loading:o,readonly:r,value:n}=e;return t||r||o||!n?Xo(Hr,{}):Xo("span",{className:a(e.className,el),children:Xo(S,{icon:"x"})})};be.states=Rr;be.options=Gr;be.className=el;import{jsx as Br}from"react/jsx-runtime";var Fo="k-input-inner",Pr=[],zr={},uo={type:"text",autocomplete:"off",value:"",placeholder:""},Te=e=>{let{value:t=uo.value,type:o=uo.type,placeholder:r=uo.placeholder,autocomplete:n=uo.autocomplete,...i}=e;return Br("input",{...i,type:o,className:a(e.className,Fo,v(Fo,e)),placeholder:r,autoComplete:n,defaultValue:t})};Te.states=Pr;Te.options=zr;Te.className=Fo;import{jsx as tl,jsxs as Kr}from"react/jsx-runtime";var Jo="k-input-inner",Er=[],Or={},Ue=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:n,valueIconName:i,...d}=e;return Kr("span",{...d,className:a(e.className,Jo,v(Jo,e)),children:[n,!n&&i&&tl(S,{className:"k-input-value-icon",icon:i}),r&&!t&&o,r&&t&&tl("span",{className:"k-input-value-text",children:t})]})};Ue.states=Er;Ue.options=Or;Ue.className=Jo;import{jsx as _r}from"react/jsx-runtime";var Wo="k-input-inner",Dr=[],$r={},ol={value:"",placeholder:""},Uo=e=>{let{value:t=ol.value,placeholder:o=ol.placeholder,rows:r,...n}=e;return _r("textarea",{...n,className:a(e.className,Wo,v(Wo,e)),placeholder:o,rows:r,defaultValue:t})};Uo.states=Dr;Uo.options=$r;Uo.className=Wo;import{Fragment as Xr,jsx as al}from"react/jsx-runtime";var ll="k-input-loading-icon",Vr=[l.disabled,l.loading],re=e=>{let{disabled:t,loading:o}=e;return t||!o?al(Xr,{}):al("span",{className:a(e.className,ll,"k-icon k-i-loading")})};re.states=Vr;re.className=ll;import{Fragment as Wr,jsx as sl}from"react/jsx-runtime";var rl="k-input-validation-icon",Fr=[l.valid,l.invalid,l.disabled,l.loading],Jr={},le=e=>{let{valid:t,invalid:o,disabled:r,loading:n}=e,i=o?"warning-circle":"check-circle";return r||n||!!!(t||o)?sl(Wr,{}):sl(S,{className:a(rl),icon:i})};le.states=Fr;le.options=Jr;le.className=rl;import{Fragment as Qr,jsx as il}from"react/jsx-runtime";var Ur="k-input-prefix",qr={direction:"horizontal"},ge=e=>{let{direction:t=qr.direction,...o}=e;return e.children?il("span",{...o,className:a(Ur,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):il(Qr,{})};import{Fragment as jr,jsx as nl}from"react/jsx-runtime";var Yr="k-input-suffix",Zr={direction:"horizontal"},ke=e=>{let{direction:t=Zr.direction,...o}=e;return e.children?nl("span",{...o,className:a(Yr,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):nl(jr,{})};import{jsx as pf}from"react/jsx-runtime";import{jsx as bf}from"react/jsx-runtime";import{jsx as ti}from"react/jsx-runtime";var dl="k-input-separator",ei={direction:"vertical"},Ce=e=>{let{direction:t=ei.direction,...o}=e;return ti("span",{...o,className:a(dl,e.className,{[`${dl}-${t}`]:t})})};import{jsx as cl}from"react/jsx-runtime";var pl="k-animation-container",oi=[],ai={},ml={positionMode:"absolute"},ze=e=>{let{positionMode:t=ml.positionMode,animationStyle:o,offset:r,...n}=e;return cl("div",{...n,style:{...r,...e.style},className:a(e.className,pl,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:cl("div",{className:"k-child-animation-container",style:o,children:e.children})})};ze.states=oi;ze.options=ai;ze.className=pl;ze.defaultOptions=ml;import{jsx as ul}from"react/jsx-runtime";var fl="k-popup",li=[],si={},bl={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:o=bl.positionMode,animationStyle:r,...n}=e;return ul(ze,{positionMode:o,offset:t,animationStyle:r,children:ul("div",{...n,className:a(e.className,fl),children:e.children})})};F.states=li;F.options=si;F.className=fl;F.defaultOptions=bl;import{jsx as ni}from"react/jsx-runtime";var fo="k-actions",ri=[],ii={},qo={alignment:"start",orientation:"horizontal"},Be=e=>{let{alignment:t=qo.alignment,orientation:o=qo.orientation,...r}=e;return ni("div",{...r,className:a(fo,{[`${fo}-${t}`]:t,[`${fo}-${o}`]:o},e.className),children:e.children})};Be.states=ri;Be.options=ii;Be.className=fo;Be.defaultOptions=qo;import{jsx as ci}from"react/jsx-runtime";var di="k-actionsheet-footer",Tl={alignment:"stretched",orientation:"horizontal"},Ot=e=>{let{alignment:t=Tl.alignment,orientation:o=Tl.orientation,template:r,as:n=r?"div":Be,...i}=e;return ci(n,{...i,...!r&&{alignment:t,orientation:o},className:a(e.className,di),children:e.children})};import{jsx as Kt,jsxs as ui}from"react/jsx-runtime";var hl="k-searchbox",pi=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],mi={size:[s.small,s.medium,s.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},Qo={showIcon:!0,icon:"search",size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode},we=e=>{let{value:t,placeholder:o,size:r,rounded:n,fillMode:i,hover:d,focus:m,valid:u,invalid:T,required:x,loading:k,disabled:c,showIcon:N=Qo.showIcon,icon:g=Qo.icon,...L}=e;return ui(z,{...L,size:r,rounded:n,fillMode:i,hover:d,focus:m,valid:u,invalid:T,required:x,loading:k,disabled:c,className:a(e.className,hl),children:[N&&Kt(S,{className:"k-input-icon",icon:g}),Kt(Te,{placeholder:o,value:t}),Kt(re,{...e}),Kt(le,{...e}),Kt(be,{...e})]})};we.states=pi;we.options=mi;we.className=hl;we.defaultOptions=Qo;import{jsx as nb}from"react/jsx-runtime";import{Fragment as xl,jsx as Ee,jsxs as Yo}from"react/jsx-runtime";var Nl="k-textbox",fi=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],bi={size:[s.small,s.medium,s.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},qe={showClearButton:!0,showValidationIcon:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},ve=e=>{let{size:t=qe.size,rounded:o=qe.rounded,fillMode:r=qe.fillMode,separators:n=qe.separators,showClearButton:i=qe.showClearButton,showValidationIcon:d=qe.showValidationIcon,prefix:m,suffix:u,type:T,value:x,placeholder:k,hover:c,focus:N,valid:g,invalid:L,required:C,loading:M,disabled:H,readonly:V,...U}=e;return Yo(z,{...U,size:t,rounded:o,fillMode:r,hover:c,focus:N,valid:g,invalid:L,required:C,loading:M,disabled:H,readonly:V,className:a(e.className,Nl),children:[m&&Yo(xl,{children:[Ee(ge,{children:m}),n&&Ee(Ce,{})]}),Ee(Te,{placeholder:k,value:x,type:T}),d&&Ee(le,{valid:g,invalid:L,loading:M,disabled:H}),Ee(re,{loading:M,disabled:H}),i&&Ee(be,{loading:M,disabled:H,readonly:V,value:x}),u&&Yo(xl,{children:[n&&Ee(Ce,{}),Ee(ke,{children:u})]})]})};ve.states=fi;ve.options=bi;ve.className=Nl;ve.defaultOptions=qe;import{jsx as Nb}from"react/jsx-runtime";import{Fragment as Sb,jsx as yb}from"react/jsx-runtime";import{Fragment as Gb,jsx as Rb}from"react/jsx-runtime";import{jsx as Oe,jsxs as Zo}from"react/jsx-runtime";var kl="k-actionsheet-titlebar",Ti={},ie=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:n,filter:i,input:d,inputValue:m,inputPlaceholder:u,adaptive:T,children:x,...k}=e;return Zo("div",{...k,className:a(e.className,kl),children:[Zo("div",{className:"k-actionsheet-titlebar-group",children:[r&&Oe("div",{className:"k-actionsheet-actions",children:r}),!x&&Zo("div",{className:"k-actionsheet-title",children:[t&&Oe("div",{className:"k-text-center",children:t}),o&&Oe("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&Oe("div",{className:"k-actionsheet-title",children:x}),n&&Oe("div",{className:"k-actionsheet-actions",children:n})]}),(d||i)&&Oe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Oe(ve,{value:m,placeholder:u,size:T?"large":"medium"}):Oe(we,{placeholder:"Filter",size:T?"large":"medium"})})]})};ie.className=kl;ie.defaultOptions=Ti;import{jsx as jo,jsxs as gi}from"react/jsx-runtime";var ea="k-actionsheet-view",hi=[],xi={},Ni={},pt=e=>{let{adaptive:t,animated:o,children:r,header:n,footer:i,...d}=e,m=n?.type===ie&&jo(ie,{adaptive:t,...n?.props}),u=i?.type===Ot&&jo(Ot,{...i?.props});return gi("div",{...d,className:a(e.className,ea,{[`${ea}-animated`]:o}),children:[m,jo("div",{className:"k-actionsheet-content",children:r}),u]})};pt.states=hi;pt.options=xi;pt.className=ea;pt.defaultOptions=Ni;import{jsx as bo,jsxs as Li}from"react/jsx-runtime";var vl="k-actionsheet",ki=[],vi={},Dt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},he=e=>{let{side:t=Dt.side,fullscreen:o=Dt.fullscreen,adaptive:r=Dt.adaptive,overlay:n=Dt.overlay,template:i,children:d,header:m,footer:u,...T}=e;return Li("div",{className:"k-actionsheet-container",children:[n&&bo("div",{className:"k-overlay"}),bo(ze,{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:bo("div",{...T,className:a(e.className,vl,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:i||bo(pt,{header:m,footer:u,adaptive:r,...e,children:d})})})]})};he.states=ki;he.options=vi;he.className=vl;he.defaultOptions=Dt;import{jsx as oT}from"react/jsx-runtime";import{Fragment as Si,jsx as $t,jsxs as ta}from"react/jsx-runtime";var oa="k-actionsheet-item",yi=[l.hover,l.focus,l.selected,l.disabled],aa=e=>{let{iconName:t,text:o,description:r,hover:n,focus:i,selected:d,disabled:m,...u}=e;return ta("span",{...u,className:a(e.className,oa,y(oa,{hover:n,focus:i,selected:d,disabled:m})),children:[!e.children&&$t(Si,{children:ta("span",{className:"k-actionsheet-action",children:[t&&$t("span",{className:"k-icon-wrap",children:$t(S,{className:"k-actionsheet-item-icon",icon:t})}),ta("span",{className:"k-actionsheet-item-text",children:[o&&$t("span",{className:"k-actionsheet-item-title",children:o}),r&&$t("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};aa.states=yi;aa.className=oa;import{jsx as pT,jsxs as mT}from"react/jsx-runtime";import{jsx as TT}from"react/jsx-runtime";import{jsx as gT}from"react/jsx-runtime";import{jsx as yT}from"react/jsx-runtime";import{jsx as wi}from"react/jsx-runtime";var Ci="k-no-data",_t=e=>wi("span",{className:a(Ci,e.className),children:e.children});import{jsx as mt,jsxs as yl}from"react/jsx-runtime";var la="k-list",Mi=[],Ii={size:[s.small,s.medium,s.large]},Sl={size:s.medium},B=e=>{let{size:t=Sl.size,virtualization:o,children:r,optionLabel:n,customValue:i,screenReaders:d,...m}=e,u,T,x,k,c=[];return r?r.map((N,g)=>{N.type===J?(N.props.root===!0?(u=N.props.label,N.props.children.map((L,C)=>{c.push(mt(w,{...L.props},`optChild-${C}-${new Date().getTime()}`))})):N.props.children.forEach((L,C)=>{let M="";C===0&&(M=N.props.label),c.push(mt(w,{className:C===0?"k-first":"",...L.props,groupLabel:M},`groupLabel-${C}-${new Date().getTime()}`))}),T=mt(J,{label:u,virtualization:o,children:c})):N.type===w&&(c.push(mt(w,{...N.props},`${N.type}-${g}`)),x=mt(ut,{virtualization:o,children:c}),d&&(k=yl(_t,{className:"k-sr-only",children:[c.length," items found."]})))}):k=mt(_t,{children:"No data found."}),yl("div",{...m,className:a(e.className,la,v(la,{size:t}),{"k-virtual-list":o}),children:[n,i,T,x,k]})};B.states=Mi;B.options=Ii;B.className=la;B.defaultOptions=Sl;import{jsx as Qe,jsxs as Gi}from"react/jsx-runtime";var sa="k-list",Ai=[],Ri={size:[s.small,s.medium,s.large]},Cl={size:s.medium},Ye=e=>{let{size:t=Cl.size,virtualization:o,children:r,...n}=e,i,d,m,u=[];return r?r.map((T,x)=>{T.type===J?(T.props.root===!0?(i=T.props.label,T.props.children.map((k,c)=>{u.push(Qe(w,{...k.props},`optChild-${c}-${new Date().getTime()}`))})):(u.push(Qe(wl,{...T.props,children:T.props.label},`listChild-${x}`)),T.props.children.map((k,c)=>{u.push(Qe(w,{...k.props},`fwOptChild-${c}-${new Date().getTime()}`))})),d=Qe(J,{label:i,virtualization:o,children:u})):T.type===w&&(u.push(Qe(w,{...T.props},`${T.type}-${x}`)),m=Qe(ut,{virtualization:o,children:u}))}):m=Qe(_t,{children:"No data found."}),Gi("div",{...n,className:a(e.className,sa,v(sa,{size:t}),{"k-virtual-list":o}),children:[d,m]})};Ye.states=Ai;Ye.options=Ri;Ye.className=sa;Ye.defaultOptions=Cl;import{jsx as Ml}from"react/jsx-runtime";var To="k-checkbox",Hi=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],Pi={size:[s.small,s.medium,s.large],rounded:[b.small,b.medium,b.large,b.full]},ra={size:s.medium,rounded:b.medium},Me=e=>{let{id:t,checked:o,indeterminate:r,hover:n,focus:i,disabled:d,invalid:m,valid:u,required:T,size:x=ra.size,rounded:k=ra.rounded,...c}=e;return Ml("span",{className:"k-checkbox-wrap",children:Ml("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:T,className:a(e.className,To,v(To,{size:x,rounded:k}),y(To,{hover:n,focus:i,disabled:d,invalid:m,valid:u,indeterminate:r,checked:o}))})})};Me.states=Hi;Me.options=Pi;Me.className=To;Me.defaultOptions=ra;import{jsx as Ei}from"react/jsx-runtime";var Il="k-checkbox-list",zi=[],Bi={},Al={layout:"vertical"},ft=e=>{let{layout:t=Al.layout,...o}=e;return Ei("ul",{...o,className:a(e.className,Il,{[`k-list-${t}`]:t}),children:e.children})};ft.states=zi;ft.options=Bi;ft.className=Il;ft.defaultOptions=Al;import{jsx as $i}from"react/jsx-runtime";var Rl="k-checkbox-list-item",Oi=[],Ki={},Di={},bt=e=>{let{...t}=e;return $i("li",{...t,className:a(e.className,Rl),children:e.children})};bt.states=Oi;bt.options=Ki;bt.className=Rl;bt.defaultOptions=Di;import{Fragment as ch,jsx as dh,jsxs as ph}from"react/jsx-runtime";import{Fragment as Th,jsx as bh,jsxs as hh}from"react/jsx-runtime";import{Fragment as vh,jsx as kh,jsxs as Lh}from"react/jsx-runtime";import{Fragment as Mh,jsx as wh,jsxs as Ih}from"react/jsx-runtime";import{jsx as Hh}from"react/jsx-runtime";import{jsx as Eh}from"react/jsx-runtime";import{jsx as ho,jsxs as Fi}from"react/jsx-runtime";var na="k-list-item",_i=[l.hover,l.focus,l.selected,l.disabled],Vi={},Xi={},w=e=>{let{text:t,groupLabel:o,group:r,showIcon:n,iconName:i,showCheckbox:d,checked:m,hover:u,focus:T,selected:x,disabled:k,...c}=e,N=t||e.children;return Fi("li",{...c,className:a(e.className,r?"k-list-group-item":na,y(na,{hover:u,focus:T,disabled:k,selected:x})),children:[d&&ho(Me,{checked:m}),n&&ho(S,{icon:i}),ho("span",{className:"k-list-item-text",children:N}),o&&o!==""&&ho("div",{className:"k-list-item-group-label",children:o})]})};w.states=_i;w.options=Vi;w.className=na;w.defaultOptions=Xi;import{jsx as da,jsxs as Wi}from"react/jsx-runtime";var Ji="k-list-content",ut=e=>{let{virtualization:t,...o}=e;return Wi("div",{...o,className:a(Ji,e.className),children:[da("ul",{className:a("k-list-ul"),children:e.children}),t&&da("div",{className:"k-height-container",children:da("div",{})})]})};import{jsx as Gl}from"react/jsx-runtime";var Ui="k-list-group-sticky-header",Hl=e=>Gl("div",{className:a(Ui,e.className),children:Gl("div",{className:"k-list-header-text",children:e.children})});import{Fragment as qi,jsx as Pl,jsxs as Qi}from"react/jsx-runtime";var J=e=>{let{virtualization:t,label:o}=e;return Qi(qi,{children:[o&&Pl(Hl,{children:o}),e.children&&Pl(ut,{virtualization:t,children:e.children})]})};import{jsx as zl}from"react/jsx-runtime";var Yi="k-list-group-item",wl=e=>zl("li",{className:a(Yi,e.className),children:zl("span",{className:"k-list-item-text",children:e.children})});import{jsx as tn}from"react/jsx-runtime";var ca="k-list-optionlabel",Zi=[l.hover,l.focus,l.selected,l.disabled],ji={},en={},xo=e=>{let{text:t,hover:o,focus:r,selected:n,disabled:i,...d}=e;return tn("div",{...d,className:a(ca,y(ca,{hover:o,focus:r,selected:n,disabled:i})),children:t})};xo.states=Zi;xo.options=ji;xo.className=ca;xo.defaultOptions=en;import{jsx as sn}from"react/jsx-runtime";var pa="k-list-custom-value",on=[l.hover,l.focus,l.selected,l.disabled],an={},ln={},Ke=e=>{let{text:t,hover:o,focus:r,selected:n,disabled:i,...d}=e;return sn("div",{...d,className:a(pa,y(pa,{hover:o,focus:r,selected:n,disabled:i})),children:t})};Ke.states=on;Ke.options=an;Ke.className=pa;Ke.defaultOptions=ln;import{jsx as gx}from"react/jsx-runtime";import{jsx as yx}from"react/jsx-runtime";import{jsx as Mx,jsxs as Ix}from"react/jsx-runtime";import{jsx as Hx,jsxs as Px}from"react/jsx-runtime";import{jsx as Ox}from"react/jsx-runtime";import{jsx as _x,jsxs as Vx}from"react/jsx-runtime";import{jsx as Wx,jsxs as Ux}from"react/jsx-runtime";import{Fragment as dn,jsx as Z,jsxs as ma}from"react/jsx-runtime";var Bl="k-dropdownlist",rn=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],nn={size:[s.small,s.medium,s.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},Tt={showValue:!0,arrowIconName:"caret-alt-down",size:s.medium,rounded:b.medium,fillMode:f.solid},xe=e=>{let{size:t=Tt.size,rounded:o=Tt.rounded,fillMode:r=Tt.fillMode,arrowIconName:n=Tt.arrowIconName,showValue:i=Tt.showValue,valueIconName:d,prefix:m,suffix:u,value:T,placeholder:x,hover:k,focus:c,valid:N,invalid:g,required:L,loading:C,disabled:M,readonly:H,popup:V,opened:U,adaptive:Gt,adaptiveSettings:Ht,adaptiveTitle:Io,adaptiveSubtitle:Ao,adaptiveFilter:gs,...ks}=e;return ma(dn,{children:[ma(fe,{...ks,size:t,rounded:o,fillMode:r,hover:k,focus:c,valid:N,invalid:g,required:L,loading:C,disabled:M,readonly:H,className:a(e.className,Bl,{"k-icon-picker":!i&&d}),children:[Z(ge,{children:m}),Z(Ue,{placeholder:x,value:T,showValue:i,valueIconName:d}),Z(le,{valid:N,invalid:g,loading:C,disabled:M}),Z(re,{loading:C,disabled:M}),Z(ke,{children:u}),Z(h,{className:"k-input-button",icon:n,rounded:null,size:e.size,fillMode:e.fillMode})]}),U&&V&&Z(F,{className:"k-list-container k-dropdownlist-popup",children:V}),Gt&&Z(he,{adaptive:!0,...Ht,header:Z(ie,{actionsEnd:Z(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:gs,inputValue:T,inputPlaceholder:x,title:Io,subtitle:Ao}),children:Z("div",{className:"k-list-container",children:ma(B,{size:"large",children:[Z(w,{text:"List item"}),Z(w,{text:"List item"}),Z(w,{text:"List item"})]})})})]})};xe.states=rn;xe.options=nn;xe.className=Bl;xe.defaultOptions=Tt;import{jsx as yN}from"react/jsx-runtime";import{jsx as IN,jsxs as AN}from"react/jsx-runtime";import{Fragment as ON,jsx as BN,jsxs as EN}from"react/jsx-runtime";import{jsx as _N}from"react/jsx-runtime";import{jsx as WN,jsxs as UN}from"react/jsx-runtime";import{jsx as jN,jsxs as eg}from"react/jsx-runtime";import{Fragment as ng,jsx as rg,jsxs as ig}from"react/jsx-runtime";import{Fragment as Tg,jsx as fg,jsxs as bg}from"react/jsx-runtime";import{jsx as El,jsxs as mn}from"react/jsx-runtime";var Ol="k-spin-button",cn=[],pn={size:[s.small,s.medium,s.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},ua={size:s.medium,fillMode:f.solid},ht=e=>{let{size:t=ua.size,fillMode:o=ua.fillMode,...r}=e;return mn("span",{...r,className:a(Ol,e.className),children:[El(h,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),El(h,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};ht.states=cn;ht.options=pn;ht.className=Ol;ht.defaultOptions=ua;import{Fragment as Kl,jsx as Ie,jsxs as fa}from"react/jsx-runtime";var Dl="k-numerictextbox",un=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],fn={size:[s.small,s.medium,s.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},je={showSpinButton:!0,showClearButton:!0,size:z.defaultOptions.size,rounded:z.defaultOptions.rounded,fillMode:z.defaultOptions.fillMode,separators:!0},E=e=>{let{size:t=je.size,rounded:o=je.rounded,fillMode:r=je.fillMode,separators:n=je.separators,showClearButton:i=je.showClearButton,showSpinButton:d=je.showSpinButton,prefix:m,suffix:u,value:T,placeholder:x,hover:k,focus:c,valid:N,invalid:g,required:L,loading:C,disabled:M,readonly:H,...V}=e;return fa(z,{...V,size:t,rounded:o,fillMode:r,hover:k,focus:c,valid:N,invalid:g,required:L,loading:C,disabled:M,readonly:H,className:a(e.className,Dl),children:[m&&fa(Kl,{children:[Ie(ge,{children:m}),n&&Ie(Ce,{})]}),Ie(Te,{placeholder:x,value:T}),Ie(le,{valid:N,invalid:g,loading:C,disabled:M}),Ie(re,{loading:C,disabled:M}),i&&Ie(be,{loading:C,disabled:M,readonly:H,value:T}),u&&fa(Kl,{children:[n&&Ie(Ce,{}),Ie(ke,{children:u})]}),d&&Ie(ht,{className:"k-input-spinner",size:t,fillMode:r})]})};E.states=un;E.options=fn;E.className=Dl;E.defaultOptions=je;import{jsx as $g}from"react/jsx-runtime";import{Fragment as Wg,jsx as Jg}from"react/jsx-runtime";import{Fragment as ek,jsx as jg}from"react/jsx-runtime";import{Fragment as _l,jsx as j,jsxs as xt}from"react/jsx-runtime";var No="k-pager",bn=[l.focus,l.disabled],Tn={size:[s.small,s.medium,s.large]},ee={responsive:!0,size:s.medium,pagerSizeInfo:!0,pageTitleInfo:!0,maxPagesInfo:!0,type:"numeric",pageSizes:!0,refresh:!0,previousNext:!0,info:"1 - 5 of 20 items",itemsPerPage:5,maxPages:6,currentPage:1},Ae=e=>{let{responsive:t=ee.responsive,size:o=ee.size,pagerSizeInfo:r=ee.pagerSizeInfo,pageTitleInfo:n=ee.pageTitleInfo,maxPagesInfo:i=ee.maxPagesInfo,itemsPerPage:d=ee.itemsPerPage,maxPages:m=ee.maxPages,currentPage:u=ee.currentPage,previousNext:T=ee.previousNext,type:x=ee.type,pageSizes:k=ee.pageSizes,refresh:c=ee.refresh,info:N=ee.info,focus:g,disabled:L,dir:C,...M}=e,H=[],V=[];for(let U=1;U<=m;U++)H.push(j(h,{selected:U===u,fillMode:"flat",themeColor:"primary",size:o,rounded:null,children:U})),V.push(j("option",{selected:U===u,children:U}));return xt("div",{dir:C,...M,className:a(e.className,No,v(No,{size:o}),y(No,{focus:g,disabled:L}),{"k-pager-responsive":t}),children:[xt("div",{className:a("k-pager-numbers-wrap"),children:[T&&xt(_l,{children:[j(h,{className:a("k-pager-nav","k-pager-first"),disabled:u===1&&!L,fillMode:"flat",size:o,rounded:null,icon:C==="rtl"?"caret-alt-to-right":"caret-alt-to-left"}),j(h,{className:a("k-pager-nav"),disabled:u===1&&!L,fillMode:"flat",size:o,rounded:null,icon:C==="rtl"?"caret-alt-right":"caret-alt-left"})]}),x==="numeric"&&j("div",{className:a("k-pager-numbers"),children:H}),x==="input"&&xt("span",{className:a("k-pager-input"),children:[n&&j("span",{children:"Page"}),j(E,{value:`${u}`,size:o,showSpinButton:!1,showClearButton:!1}),j("span",{children:i&&`of ${m}`})]}),T&&xt(_l,{children:[j(h,{className:a("k-pager-nav"),disabled:u===m&&!L,fillMode:"flat",size:o,rounded:null,icon:C==="rtl"?"caret-alt-left":"caret-alt-right"}),j(h,{className:a("k-pager-nav","k-pager-last"),disabled:u===m&&!L,fillMode:"flat",size:o,rounded:null,icon:C==="rtl"?"caret-alt-to-left":"caret-alt-to-right"})]})]}),k&&xt("span",{className:a("k-pager-sizes"),children:[j(xe,{value:`${d}`,size:o}),r&&j("span",{children:"items per page"})]}),c&&j(h,{className:a("k-pager-refresh"),fillMode:"flat",size:o,rounded:null,icon:"arrow-rotate-cw"}),N&&j("span",{className:a("k-pager-info"),children:N})]})};Ae.states=bn;Ae.options=Tn;Ae.className=No;Ae.defaultOptions=ee;import{jsx as bk}from"react/jsx-runtime";import{jsx as Nk}from"react/jsx-runtime";import{jsx as Lk}from"react/jsx-runtime";import{jsx as xn}from"react/jsx-runtime";var hn="k-grid-pager",et=e=>xn(Ae,{...e,className:a(e.className,hn),children:e.children});import{jsx as kn}from"react/jsx-runtime";var Vt="k-button-group",Nn=[l.disabled],gn={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Vl={fillMode:f.solid},O=e=>{let{fillMode:t=Vl.fillMode,disabled:o,stretched:r,...n}=e;return kn("div",{...n,className:a(e.className,Vt,v(Vt,{fillMode:t}),y(Vt,{disabled:o}),{[`${Vt}-stretched`]:r}),children:e.children})};O.states=Nn;O.options=gn;O.className=Vt;O.defaultOptions=Vl;import{Fragment as _k,jsx as $k,jsxs as Vk}from"react/jsx-runtime";import{Fragment as qk,jsx as Uk,jsxs as Qk}from"react/jsx-runtime";import{Fragment as ov,jsx as tv,jsxs as av}from"react/jsx-runtime";import{Fragment as dv,jsx as nv,jsxs as cv}from"react/jsx-runtime";import{jsx as Xl,jsxs as yn}from"react/jsx-runtime";var Fl="k-color-preview",vn=[],Ln={},De=e=>{let{color:t,iconName:o,...r}=e;return yn("span",{...r,className:a(e.className,Fl,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Xl(S,{icon:o,className:"k-color-preview-icon"}),Xl("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};De.states=vn;De.options=Ln;De.className=Fl;import{jsx as Nt,jsxs as ba}from"react/jsx-runtime";var Xt="k-slider",Sn=[l.hover,l.focus,l.active,l.disabled,l.readonly],Cn={},$e={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},ne=e=>{let{type:t=$e.type,orientation:o=$e.orientation,readonly:r=$e.readonly,disabled:n=$e.disabled,handlePosition:i=$e.handlePosition,showButtons:d=$e.showButtons,showTicks:m=$e.showTicks,hover:u,focus:T,active:x,trackStyle:k,dir:c,...N}=e,g,L;return o==="horizontal"?(g=c==="rtl"?"caret-alt-left":"caret-alt-right",L=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(g="caret-alt-up",L="caret-alt-down"),ba("div",{...N,className:a(Xt,e.className,y(Xt,{readonly:r,disabled:n}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[d&&Nt(h,{className:"k-button-decrease",rounded:"full",icon:L}),ba("div",{className:"k-slider-track-wrap",children:[m&&Nt("ul",{className:"k-reset k-slider-items",children:e.children}),ba("div",{className:"k-slider-track",style:k,children:[Nt("div",{className:"k-slider-selection"}),t==="range"&&Nt("span",{className:a("k-draghandle","k-draghandle-start",y(Xt,{hover:u,focus:T,active:x}))}),Nt("span",{className:a("k-draghandle",`k-draghandle-${i}`,y(Xt,{hover:u,focus:T,active:x}))})]})]}),d&&Nt(h,{className:"k-button-increase",rounded:"full",icon:g})]})};ne.states=Sn;ne.options=Cn;ne.className=Xt;ne.defaultOptions=$e;import{jsx as Jl}from"react/jsx-runtime";var Wl="k-tick",wn=[],Mn={},Ul={label:!1},_e=e=>{let{style:t,label:o=Ul.label,orientation:r,large:n,text:i,...d}=e;return Jl("li",{...d,className:a(e.className,Wl,{[`k-tick-${r}`]:r,"k-tick-large":n}),style:t,children:o&&Jl("span",{className:"k-label",children:i})})};_e.states=wn;_e.options=Mn;_e.className=Wl;_e.defaultOptions=Ul;import{Fragment as Pv,jsx as Hv,jsxs as zv}from"react/jsx-runtime";import{Fragment as Dv,jsx as Kv,jsxs as $v}from"react/jsx-runtime";import{Fragment as Jv,jsx as Fv,jsxs as Wv}from"react/jsx-runtime";import{Fragment as Zv,jsx as Yv,jsxs as jv}from"react/jsx-runtime";import{jsx as In}from"react/jsx-runtime";var Ta=e=>In(ne,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as An}from"react/jsx-runtime";var ha=e=>An(ne,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{Fragment as Ft,jsx as I,jsxs as K}from"react/jsx-runtime";var ql="k-colorgradient-inputs",Rn=[],Gn={size:[s.small,s.medium,s.large]},Ql={mode:"rgba",size:s.medium},gt=e=>{let{mode:t=Ql.mode,size:o,...r}=e;return K("div",{...r,className:a(ql,"k-hstack"),children:[I("div",{className:"k-vstack",children:I(h,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&K(Ft,{children:[K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),I("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),I("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),I("label",{className:"k-colorgradient-input-label",children:"B"})]}),K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),I("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&K(Ft,{children:[K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&K(Ft,{children:[K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"V"})]}),K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),I("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&K(Ft,{children:[K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[I(E,{showSpinButton:!1,showClearButton:!1,value:"132"}),I("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&I(Ft,{children:K("div",{className:"k-vstack k-flex-1",children:[I(ve,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),I("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};gt.states=Rn;gt.options=Gn;gt.className=ql;gt.defaultOptions=Ql;import{jsx as tt,jsxs as ot}from"react/jsx-runtime";var Yl="k-colorgradient-color-contrast",Hn=[],Pn={},zn={},kt=()=>ot("div",{className:a(Yl,"k-vbox"),children:[ot("div",{className:"k-contrast-ratio",children:[tt("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),ot("span",{className:"k-contrast-validation !k-text-success",children:[tt(S,{icon:"check"}),tt(S,{icon:"check"})]})]}),ot("div",{children:[tt("span",{children:"AA: 4.5"}),ot("span",{className:"k-contrast-validation !k-text-success",children:["Pass",tt(S,{icon:"check"})]})]}),ot("div",{children:[tt("span",{children:"AAA: 7.0"}),ot("span",{className:"k-contrast-validation !k-text-error",children:["Fail",tt(S,{icon:"x"})]})]})]});kt.states=Hn;kt.options=Pn;kt.className=Yl;kt.defaultOptions=zn;import{jsx as de,jsxs as Jt}from"react/jsx-runtime";var go="k-colorgradient",Bn=[l.hover,l.focus,l.readonly,l.disabled],En={size:[s.small,s.medium,s.large]},Ne={size:s.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},Ve=e=>{let{size:t=Ne.size,mode:o=Ne.mode,readonly:r=Ne.readonly,disabled:n=Ne.disabled,gradientStyle:i=Ne.gradientStyle,dragHandleStyle:d=Ne.dragHandleStyle,alphaStyle:m=Ne.alphaStyle,alphaStyleHorizontal:u=Ne.alphaStyleHorizontal,contrast:T=Ne.contrast,dir:x,hover:k,focus:c,hoverHandle:N,focusHandle:g,canvasOrientation:L=Ne.canvasOrientation,...C}=e;return Jt("div",{...C,className:a(e.className,go,v(go,{size:t}),y(go,{hover:k,focus:c,readonly:r,disabled:n})),dir:x,children:[!L||L==="horizontal"&&Jt("div",{className:"k-colorgradient-canvas k-hstack",children:[de("div",{className:"k-hsv-rectangle",style:i,children:de("div",{className:"k-hsv-gradient",children:de("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":g}),style:d})})}),Jt("div",{className:"k-hsv-controls k-hstack",children:[de(ha,{className:"k-hue-slider",hover:N,focus:g}),o!=="rgb"&&o!=="hsv"&&de(ha,{className:"k-alpha-slider",hover:N,focus:g,trackStyle:m})]})]}),L==="vertical"&&Jt("div",{className:"k-colorgradient-canvas k-vstack",children:[de("div",{className:"k-hsv-rectangle",style:i,children:de("div",{className:"k-hsv-gradient",children:de("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":g}),style:d})})}),Jt("div",{className:"k-hsv-controls k-vstack",children:[de(Ta,{className:"k-hue-slider",hover:N,focus:g}),o!=="rgb"&&o!=="hsv"&&de(Ta,{className:"k-alpha-slider",hover:N,focus:g,trackStyle:u})]})]}),de(gt,{mode:e.mode,size:t}),T&&de(kt,{})]})};Ve.states=Bn;Ve.options=En;Ve.className=go;Ve.defaultOptions=Ne;import{jsx as PL}from"react/jsx-runtime";import{jsx as OL}from"react/jsx-runtime";import{jsx as On}from"react/jsx-runtime";var Zl=e=>On("tr",{children:e.children});import{jsx as $n}from"react/jsx-runtime";var xa="k-colorpalette-tile",Kn=[l.hover,l.focus,l.selected],Dn={},Wt=e=>{let{color:t,tileSize:o,hover:r,focus:n,selected:i,...d}=e,m={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return $n("td",{...d,className:a(e.className,xa,y(xa,{hover:r,focus:n,selected:i})),style:m})};Wt.states=Kn;Wt.options=Dn;Wt.className=xa;import{jsx as Ut}from"react/jsx-runtime";var ko="k-colorpalette",_n=[l.disabled],Vn={size:[s.small,s.medium,s.large]},Na={columns:10,size:s.medium},vt=e=>{let{size:t=Na.size,palette:o,columns:r=Na.columns,tileSize:n,disabled:i,...d}=e,m=[];if(o){let u=r||o.columns,T=o.colors?o.colors:o;Array.isArray(T)&&Array.from({length:Math.ceil(T.length/u)},(x,k)=>{let c=[];T.slice(k*u,(k+1)*u).map((g,L)=>{c.push(Ut(Wt,{color:g,tileSize:n},L))});let N=Ut(Zl,{children:c},k);m.push(N)})}return Ut("div",{...d,className:a(e.className,ko,y(ko,{disabled:i}),v(ko,{size:t})),children:Ut("table",{className:"k-colorpalette-table",children:Ut("tbody",{children:m.length>0?m:e.children})})})};vt.states=_n;vt.options=Vn;vt.className=ko;vt.defaultOptions=Na;var ga={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