@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 79.2 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"}),S=(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 ws,jsxs as Ms}from"react/jsx-runtime";var so="k-grid",Ss=[],Cs={size:[s.small,s.medium,s.large]},Po={size:s.medium,pagerPosition:"bottom"},D=e=>{let{size:t=Po.size,pagerPosition:o=Po.pagerPosition,toolbar:r,pager:i,groupingHeader:n,gridSelectionAggregates:d,_renderAriaRoot:m,resizable:u,...T}=e;return Ms("div",{...T,className:a(e.className,so,{[`${so}-resizable`]:u},v(so,{size:t})),children:[r,o==="top"&&i,n,e.children&&m?ws("div",{className:"k-grid-aria-root",children:e.children}):e.children,d,o==="bottom"&&i]})};D.states=Ss;D.options=Cs;D.className=so;D.defaultOptions=Po;import{jsx as ec}from"react/jsx-runtime";import{jsx as lc,jsxs as sc}from"react/jsx-runtime";import{jsx as Rs}from"react/jsx-runtime";var Ua="k-data-table",Is=[],As={size:[s.small,s.medium,s.large]},qa={size:s.medium},Je=e=>{let{size:t=qa.size,...o}=e;return Rs("div",{...o,className:a(e.className,Ua,v("k-table",{size:t})),children:e.children})};Je.states=Is;Je.options=As;Je.className=Ua;Je.defaultOptions=qa;import{jsx as uc}from"react/jsx-runtime";import{jsx as hc}from"react/jsx-runtime";import{jsx as kc}from"react/jsx-runtime";import{jsx as zs}from"react/jsx-runtime";var zo="k-table",Gs=[],Hs={size:[s.small,s.medium,s.large]},Ps={},me=e=>{let{size:t,...o}=e;return zs("table",{...o,className:a(e.className,zo,v(zo,{size:t})),children:e.children})};me.states=Gs;me.options=Hs;me.className=zo;me.defaultOptions=Ps;import{jsx as Ks}from"react/jsx-runtime";var Bo="k-table-list",Bs=[],Es={size:[s.small,s.medium,s.large]},Os={},ct=e=>{let{size:t,virtualization:o,...r}=e;return Ks("ul",{...r,className:a(e.className,"k-table",Bo,v(Bo,{size:t}),{"k-virtual-table":o}),children:e.children})};ct.states=Bs;ct.options=Es;ct.className=Bo;ct.defaultOptions=Os;import{jsx as Rc}from"react/jsx-runtime";import{jsx as $s}from"react/jsx-runtime";var Ds="k-table-tbody",F=e=>$s("tbody",{className:a(e.className,Ds),children:e.children});import{jsx as Oc}from"react/jsx-runtime";import{jsx as Vs}from"react/jsx-runtime";var Eo="k-table-row",_s=[l.hover,l.focus,l.selected,l.disabled,l.highlighted],B=e=>{let{hover:t,focus:o,selected:r,highlighted:i,disabled:n,alt:d,...m}=e;return Vs("tr",{...m,className:a(e.className,Eo,{"k-table-alt-row":d},S(Eo,{hover:t,focus:o,disabled:n,selected:r,highlighted:i})),children:e.children})};B.states=_s;B.className=Eo;import{jsx as Fs}from"react/jsx-runtime";var Oo="k-table-row",Xs=[l.hover,l.focus,l.selected,l.disabled],ro=e=>{let{hover:t,focus:o,selected:r,disabled:i,alt:n,...d}=e;return Fs("li",{...d,className:a(e.className,Oo,{"k-table-alt-row":n},S(Oo,{hover:t,focus:o,disabled:i,selected:r})),children:e.children})};ro.states=Xs;ro.className=Oo;import{jsx as Ws}from"react/jsx-runtime";var Js="k-table-th",pt=e=>{let{text:t,colspan:o,rowspan:r,...i}=e,n=t||e.children;return Ws("th",{colSpan:o,rowSpan:r,...i,className:a(e.className,Js),children:n})};import{jsx as Yc}from"react/jsx-runtime";import{jsx as qs}from"react/jsx-runtime";var Ko="k-table-td",Us=[l.focus,l.selected,l.highlighted],E=e=>{let{focus:t,selected:o,highlighted:r,text:i,colspan:n,rowspan:d,...m}=e,u=i||e.children;return qs("td",{colSpan:n,rowSpan:d,...m,className:a(e.className,Ko,S(Ko,{focus:t,selected:o,highlighted:r})),children:u})};E.states=Us;E.className=Ko;import{jsx as lp}from"react/jsx-runtime";import{jsx as np}from"react/jsx-runtime";import{jsx as mp}from"react/jsx-runtime";import{jsx as Tp}from"react/jsx-runtime";import{jsx as gp}from"react/jsx-runtime";import{jsx as wp,jsxs as Mp}from"react/jsx-runtime";import{jsx as Gp,jsxs as Hp}from"react/jsx-runtime";import{jsx as Ep,jsxs as Op}from"react/jsx-runtime";import{Fragment as Xp,jsx as _p,jsxs as Vp}from"react/jsx-runtime";import{jsx as gm}from"react/jsx-runtime";import{Fragment as ar,jsx as Za}from"react/jsx-runtime";var Do="k-icon k-font-icon",er=[],tr={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]},or={},zt=e=>{let{size:t,themeColor:o,icon:r,rotate:i,flip:n,...d}=e;return r?Za("span",{...d,className:a(e.className,Do,v(Do,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"})}):Za(ar,{})};zt.states=er;zt.options=tr;zt.className=Do;zt.defaultOptions=or;var ja=zt;import{Fragment as rr,jsx as io}from"react/jsx-runtime";var $o="k-icon k-svg-icon",lr=[],sr={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]},el={viewBox:"0 0 24 24"},Bt=e=>{let{size:t,themeColor:o,rotate:r,flip:i,viewBox:n=el.viewBox,icon:d,...m}=e;if(!d)return io(rr,{});d==="none"&&{...m,className:a(e.className,$o,"k-none")};let u=typeof d=="object"&&d.name&&d.name;return io("span",{...m,className:a(e.className,$o,v("k-icon",{size:t}),{[`k-svg-i-${u}`]:u,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:io("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:n,dangerouslySetInnerHTML:typeof d=="object"?{__html:d.content}:void 0,children:d?void 0:e.children})})};Bt.states=lr;Bt.options=sr;Bt.className=$o;Bt.defaultOptions=el;var _o=Bt;import*as tl from"@progress/kendo-svg-icons";import{Fragment as ol,jsx as Et}from"react/jsx-runtime";var ir=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),nr=[],dr={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]},Vo={viewBox:"0 0 24 24",type:"svg"},L=e=>{let{size:t,themeColor:o,icon:r,type:i=Vo.type,rotate:n,flip:d,viewBox:m=Vo.viewBox,...u}=e;if(!r)return Et(ol,{});if(i==="svg"){if(r==="none")return Et(_o,{...u,icon:r,size:t});let T=ir(`${r}-icon`);return tl[T]?Et(_o,{...u,icon:tl[T],size:t,themeColor:o,rotate:n,flip:d,viewBox:m}):Et(ol,{})}return Et(ja,{...u,icon:r,size:t,themeColor:o,rotate:n,flip:d})};L.states=nr;L.options=dr;L.defaultOptions=Vo;import{jsx as We,jsxs as Xo}from"react/jsx-runtime";var Fo="k-header",cr=[l.hover,l.focus,l.active],al={sortIcon:"sort-asc-small"},U=e=>{let{menu:t,sortable:o,filterable:r,sticky:i,resizable:n,columnTitle:d,hover:m,focus:u,active:T,sortIcon:x=al.sortIcon,sortOrder:k,...c}=e;return Xo(pt,{...c,className:a(e.className,Fo,{"k-filterable":t||r,"k-sorted":o,"k-grid-header-sticky":i,"k-touch-action-none":n},S(Fo,{hover:m,focus:u,active:T})),children:[d&&Xo("span",{className:"k-cell-inner",children:[Xo("span",{className:"k-link",children:[We("span",{className:"k-column-title",children:d}),o&&We("span",{className:"k-sort-icon",children:We(L,{icon:x})}),k&&We("span",{className:"k-sort-order",children:k})]}),t&&We("a",{href:"#",className:a("k-grid-header-menu",{"k-active":T,"k-grid-filter-menu":t==="filter","k-grid-column-menu":t==="column"}),children:We(L,{icon:t==="filter"?"filter":"more-vertical"})})]}),e.children,n&&We("span",{className:"k-column-resizer k-touch-action-none"})]})};U.states=cr;U.className=Fo;U.defaultOptions=al;import{jsx as mr}from"react/jsx-runtime";var pr="k-grid-container",Q=e=>mr("div",{...e,className:a(e.className,pr),children:e.children});import{jsx as fr}from"react/jsx-runtime";var ur="k-grid-content",Y=e=>fr("div",{...e,className:a(e.className,ur),children:e.children});import{jsx as Tr}from"react/jsx-runtime";var br="k-grid-table",Z=e=>Tr(me,{size:"medium",...e,className:a(e.className,br),children:e.children});import{jsx as ou}from"react/jsx-runtime";import{jsx as nu}from"react/jsx-runtime";import{Fragment as Nr,jsx as Ot,jsxs as ll}from"react/jsx-runtime";var no="k-button",hr=[l.hover,l.focus,l.active,l.selected,l.disabled],xr={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]},Ue={size:s.medium,rounded:b.medium,fillMode:f.solid,themeColor:p.base,showArrow:!1,arrowIconName:"caret-alt-down"},h=e=>{let{size:t=Ue.size,rounded:o=Ue.rounded,fillMode:r=Ue.fillMode,themeColor:i=Ue.themeColor,showArrow:n=Ue.showArrow,arrowIconName:d=Ue.arrowIconName,hover:m,focus:u,active:T,selected:x,disabled:k,icon:c,text:N,iconClassName:g,...y}=e,w=c!==void 0,I=e.children!==void 0;return ll("button",{...y,className:a(e.className,no,v(no,{size:t,rounded:o,fillMode:r,themeColor:i}),S(no,{hover:m,focus:u,active:T,disabled:k,selected:x}),{"k-icon-button":!N&&!I&&w}),children:[c&&Ot(L,{className:a(g,"k-button-icon"),icon:c}),N?ll(Nr,{children:[N&&Ot("span",{className:"k-button-text",children:N}),e.children]}):e.children&&Ot("span",{className:"k-button-text",children:e.children}),n&&Ot("span",{className:"k-menu-button-arrow k-button-arrow",children:Ot(L,{icon:d})})]})};h.states=hr;h.options=xr;h.className=no;h.defaultOptions=Ue;import{jsx as gr}from"react/jsx-runtime";var co=e=>gr(h,{icon:"folder",...e,children:void 0});import{jsx as kr}from"react/jsx-runtime";var Jo=e=>kr(h,{icon:"folder",children:"Button",...e});import{jsx as vu}from"react/jsx-runtime";import{jsx as yr}from"react/jsx-runtime";var po="k-input",vr=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Lr={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:s.medium,fillMode:f.solid},H=e=>{let{hover:t,focus:o,disabled:r,invalid:i,valid:n,loading:d,readonly:m,size:u=mo.size,rounded:T=mo.rounded,fillMode:x=mo.fillMode,...k}=e;return yr("span",{...k,className:a(e.className,po,v(po,{size:u,rounded:T,fillMode:x}),S(po,{hover:t,focus:o,disabled:r,invalid:i,valid:n,loading:d,readonly:m}))})};H.states=vr;H.options=Lr;H.className=po;H.defaultOptions=mo;import{jsx as wr}from"react/jsx-runtime";var uo="k-picker",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]},fo={size:s.medium,rounded:b.medium,fillMode:f.solid},ue=e=>{let{hover:t,focus:o,disabled:r,invalid:i,valid:n,loading:d,readonly:m,size:u=fo.size,rounded:T=fo.rounded,fillMode:x=fo.fillMode,...k}=e;return wr("span",{...k,className:a(e.className,uo,v(uo,{size:u,rounded:T,fillMode:x}),S(uo,{hover:t,focus:o,disabled:r,invalid:i,valid:n,loading:d,readonly:m})),children:e.children})};ue.states=Sr;ue.options=Cr;ue.className=uo;ue.defaultOptions=fo;import{Fragment as Ar,jsx as Wo}from"react/jsx-runtime";var sl="k-clear-value",Mr=[l.disabled,l.loading,l.readonly],Ir={},fe=e=>{let{disabled:t,loading:o,readonly:r,value:i}=e;return t||r||o||!i?Wo(Ar,{}):Wo("span",{className:a(e.className,sl),children:Wo(L,{icon:"x"})})};fe.states=Mr;fe.options=Ir;fe.className=sl;import{jsx as Hr}from"react/jsx-runtime";var Uo="k-input-inner",Rr=[],Gr={},bo={type:"text",autocomplete:"off",value:"",placeholder:""},be=e=>{let{value:t=bo.value,type:o=bo.type,placeholder:r=bo.placeholder,autocomplete:i=bo.autocomplete,...n}=e;return Hr("input",{...n,type:o,className:a(e.className,Uo,v(Uo,e)),placeholder:r,autoComplete:i,defaultValue:t})};be.states=Rr;be.options=Gr;be.className=Uo;import{jsx as rl,jsxs as Br}from"react/jsx-runtime";var qo="k-input-inner",Pr=[],zr={},qe=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:i,valueIconName:n,...d}=e;return Br("span",{...d,className:a(e.className,qo,v(qo,e)),children:[i,!i&&n&&rl(L,{className:"k-input-value-icon",icon:n}),r&&!t&&o,r&&t&&rl("span",{className:"k-input-value-text",children:t})]})};qe.states=Pr;qe.options=zr;qe.className=qo;import{jsx as Kr}from"react/jsx-runtime";var Qo="k-input-inner",Er=[],Or={},il={value:"",placeholder:""},Yo=e=>{let{value:t=il.value,placeholder:o=il.placeholder,rows:r,...i}=e;return Kr("textarea",{...i,className:a(e.className,Qo,v(Qo,e)),placeholder:o,rows:r,defaultValue:t})};Yo.states=Er;Yo.options=Or;Yo.className=Qo;import{Fragment as $r,jsx as nl}from"react/jsx-runtime";var dl="k-input-loading-icon",Dr=[l.disabled,l.loading],le=e=>{let{disabled:t,loading:o}=e;return t||!o?nl($r,{}):nl("span",{className:a(e.className,dl,"k-icon k-i-loading")})};le.states=Dr;le.className=dl;import{Fragment as Xr,jsx as cl}from"react/jsx-runtime";var pl="k-input-validation-icon",_r=[l.valid,l.invalid,l.disabled,l.loading],Vr={},ae=e=>{let{valid:t,invalid:o,disabled:r,loading:i}=e,n=o?"warning-circle":"check-circle";return r||i||!!!(t||o)?cl(Xr,{}):cl(L,{className:a(pl),icon:n})};ae.states=_r;ae.options=Vr;ae.className=pl;import{Fragment as Wr,jsx as ml}from"react/jsx-runtime";var Fr="k-input-prefix",Jr={direction:"horizontal"},ke=e=>{let{direction:t=Jr.direction,...o}=e;return e.children?ml("span",{...o,className:a(Fr,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ml(Wr,{})};import{Fragment as Qr,jsx as ul}from"react/jsx-runtime";var Ur="k-input-suffix",qr={direction:"horizontal"},ve=e=>{let{direction:t=qr.direction,...o}=e;return e.children?ul("span",{...o,className:a(Ur,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):ul(Qr,{})};import{jsx as pf}from"react/jsx-runtime";import{jsx as bf}from"react/jsx-runtime";import{jsx as Zr}from"react/jsx-runtime";var fl="k-input-separator",Yr={direction:"vertical"},Me=e=>{let{direction:t=Yr.direction,...o}=e;return Zr("span",{...o,className:a(fl,e.className,{[`${fl}-${t}`]:t})})};import{jsx as bl}from"react/jsx-runtime";var Tl="k-animation-container",jr=[],ei={},hl={positionMode:"absolute"},Be=e=>{let{positionMode:t=hl.positionMode,animationStyle:o,offset:r,...i}=e;return bl("div",{...i,style:{...r,...e.style},className:a(e.className,Tl,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:bl("div",{className:"k-child-animation-container",style:o,children:e.children})})};Be.states=jr;Be.options=ei;Be.className=Tl;Be.defaultOptions=hl;import{jsx as xl}from"react/jsx-runtime";var Nl="k-popup",ti=[],oi={},gl={positionMode:"absolute"},V=e=>{let{offset:t,positionMode:o=gl.positionMode,animationStyle:r,...i}=e;return xl(Be,{positionMode:o,offset:t,animationStyle:r,children:xl("div",{...i,className:a(e.className,Nl),children:e.children})})};V.states=ti;V.options=oi;V.className=Nl;V.defaultOptions=gl;import{jsx as si}from"react/jsx-runtime";var To="k-actions",ai=[],li={},Zo={alignment:"start",orientation:"horizontal"},Ee=e=>{let{alignment:t=Zo.alignment,orientation:o=Zo.orientation,...r}=e;return si("div",{...r,className:a(To,{[`${To}-${t}`]:t,[`${To}-${o}`]:o},e.className),children:e.children})};Ee.states=ai;Ee.options=li;Ee.className=To;Ee.defaultOptions=Zo;import{jsx as ii}from"react/jsx-runtime";var ri="k-actionsheet-footer",kl={alignment:"stretched",orientation:"horizontal"},Kt=e=>{let{alignment:t=kl.alignment,orientation:o=kl.orientation,template:r,as:i=r?"div":Ee,...n}=e;return ii(i,{...n,...!r&&{alignment:t,orientation:o},className:a(e.className,ri),children:e.children})};import{jsx as Dt,jsxs as ci}from"react/jsx-runtime";var vl="k-searchbox",ni=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],di={size:[s.small,s.medium,s.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},jo={showIcon:!0,icon:"search",size:H.defaultOptions.size,rounded:H.defaultOptions.rounded,fillMode:H.defaultOptions.fillMode},Ie=e=>{let{value:t,placeholder:o,size:r,rounded:i,fillMode:n,hover:d,focus:m,valid:u,invalid:T,required:x,loading:k,disabled:c,showIcon:N=jo.showIcon,icon:g=jo.icon,...y}=e;return ci(H,{...y,size:r,rounded:i,fillMode:n,hover:d,focus:m,valid:u,invalid:T,required:x,loading:k,disabled:c,className:a(e.className,vl),children:[N&&Dt(L,{className:"k-input-icon",icon:g}),Dt(be,{placeholder:o,value:t}),Dt(le,{...e}),Dt(ae,{...e}),Dt(fe,{...e})]})};Ie.states=ni;Ie.options=di;Ie.className=vl;Ie.defaultOptions=jo;import{jsx as nb}from"react/jsx-runtime";import{Fragment as Ll,jsx as Oe,jsxs as ea}from"react/jsx-runtime";var yl="k-textbox",pi=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],mi={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:H.defaultOptions.size,rounded:H.defaultOptions.rounded,fillMode:H.defaultOptions.fillMode,separators:!0},Le=e=>{let{size:t=Qe.size,rounded:o=Qe.rounded,fillMode:r=Qe.fillMode,separators:i=Qe.separators,showClearButton:n=Qe.showClearButton,showValidationIcon:d=Qe.showValidationIcon,prefix:m,suffix:u,type:T,value:x,placeholder:k,hover:c,focus:N,valid:g,invalid:y,required:w,loading:I,disabled:G,readonly:_,...J}=e;return ea(H,{...J,size:t,rounded:o,fillMode:r,hover:c,focus:N,valid:g,invalid:y,required:w,loading:I,disabled:G,readonly:_,className:a(e.className,yl),children:[m&&ea(Ll,{children:[Oe(ke,{children:m}),i&&Oe(Me,{})]}),Oe(be,{placeholder:k,value:x,type:T}),d&&Oe(ae,{valid:g,invalid:y,loading:I,disabled:G}),Oe(le,{loading:I,disabled:G}),n&&Oe(fe,{loading:I,disabled:G,readonly:_,value:x}),u&&ea(Ll,{children:[i&&Oe(Me,{}),Oe(ve,{children:u})]})]})};Le.states=pi;Le.options=mi;Le.className=yl;Le.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 Ke,jsxs as ta}from"react/jsx-runtime";var Cl="k-actionsheet-titlebar",ui={},se=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:i,filter:n,input:d,inputValue:m,inputPlaceholder:u,adaptive:T,children:x,...k}=e;return ta("div",{...k,className:a(e.className,Cl),children:[ta("div",{className:"k-actionsheet-titlebar-group",children:[r&&Ke("div",{className:"k-actionsheet-actions",children:r}),!x&&ta("div",{className:"k-actionsheet-title",children:[t&&Ke("div",{className:"k-text-center",children:t}),o&&Ke("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&Ke("div",{className:"k-actionsheet-title",children:x}),i&&Ke("div",{className:"k-actionsheet-actions",children:i})]}),(d||n)&&Ke("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Ke(Le,{value:m,placeholder:u,size:T?"large":"medium"}):Ke(Ie,{placeholder:"Filter",size:T?"large":"medium"})})]})};se.className=Cl;se.defaultOptions=ui;import{jsx as oa,jsxs as hi}from"react/jsx-runtime";var aa="k-actionsheet-view",fi=[],bi={},Ti={},mt=e=>{let{adaptive:t,animated:o,children:r,header:i,footer:n,...d}=e,m=i?.type===se&&oa(se,{adaptive:t,...i?.props}),u=n?.type===Kt&&oa(Kt,{...n?.props});return hi("div",{...d,className:a(e.className,aa,{[`${aa}-animated`]:o}),children:[m,oa("div",{className:"k-actionsheet-content",children:r}),u]})};mt.states=fi;mt.options=bi;mt.className=aa;mt.defaultOptions=Ti;import{jsx as ho,jsxs as gi}from"react/jsx-runtime";var wl="k-actionsheet",xi=[],Ni={},$t={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Te=e=>{let{side:t=$t.side,fullscreen:o=$t.fullscreen,adaptive:r=$t.adaptive,overlay:i=$t.overlay,template:n,children:d,header:m,footer:u,...T}=e;return gi("div",{className:"k-actionsheet-container",children:[i&&ho("div",{className:"k-overlay"}),ho(Be,{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:ho("div",{...T,className:a(e.className,wl,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:n||ho(mt,{header:m,footer:u,adaptive:r,...e,children:d})})})]})};Te.states=xi;Te.options=Ni;Te.className=wl;Te.defaultOptions=$t;import{jsx as oT}from"react/jsx-runtime";import{Fragment as vi,jsx as _t,jsxs as la}from"react/jsx-runtime";var sa="k-actionsheet-item",ki=[l.hover,l.focus,l.selected,l.disabled],ra=e=>{let{iconName:t,text:o,description:r,hover:i,focus:n,selected:d,disabled:m,...u}=e;return la("span",{...u,className:a(e.className,sa,S(sa,{hover:i,focus:n,selected:d,disabled:m})),children:[!e.children&&_t(vi,{children:la("span",{className:"k-actionsheet-action",children:[t&&_t("span",{className:"k-icon-wrap",children:_t(L,{className:"k-actionsheet-item-icon",icon:t})}),la("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]})};ra.states=ki;ra.className=sa;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 yi}from"react/jsx-runtime";var Li="k-no-data",Vt=e=>yi("span",{className:a(Li,e.className),children:e.children});import{jsx as ut,jsxs as Il}from"react/jsx-runtime";var ia="k-list",Si=[],Ci={size:[s.small,s.medium,s.large]},Al={size:s.medium},P=e=>{let{size:t=Al.size,virtualization:o,children:r,optionLabel:i,customValue:n,screenReaders:d,...m}=e,u,T,x,k,c=[];return r?r.map((N,g)=>{N.type===X?(N.props.root===!0?(u=N.props.label,N.props.children.map((y,w)=>{c.push(ut(M,{...y.props},`optChild-${w}-${new Date().getTime()}`))})):N.props.children.forEach((y,w)=>{let I="";w===0&&(I=N.props.label),c.push(ut(M,{className:w===0?"k-first":"",...y.props,groupLabel:I},`groupLabel-${w}-${new Date().getTime()}`))}),T=ut(X,{label:u,virtualization:o,children:c})):N.type===M&&(c.push(ut(M,{...N.props},`${N.type}-${g}`)),x=ut(ft,{virtualization:o,children:c}),d&&(k=Il(Vt,{className:"k-sr-only",children:[c.length," items found."]})))}):k=ut(Vt,{children:"No data found."}),Il("div",{...m,className:a(e.className,ia,v(ia,{size:t}),{"k-virtual-list":o}),children:[i,n,T,x,k]})};P.states=Si;P.options=Ci;P.className=ia;P.defaultOptions=Al;import{jsx as Ye,jsxs as Ii}from"react/jsx-runtime";var na="k-list",wi=[],Mi={size:[s.small,s.medium,s.large]},Rl={size:s.medium},Ze=e=>{let{size:t=Rl.size,virtualization:o,children:r,...i}=e,n,d,m,u=[];return r?r.map((T,x)=>{T.type===X?(T.props.root===!0?(n=T.props.label,T.props.children.map((k,c)=>{u.push(Ye(M,{...k.props},`optChild-${c}-${new Date().getTime()}`))})):(u.push(Ye(Gl,{...T.props,children:T.props.label},`listChild-${x}`)),T.props.children.map((k,c)=>{u.push(Ye(M,{...k.props},`fwOptChild-${c}-${new Date().getTime()}`))})),d=Ye(X,{label:n,virtualization:o,children:u})):T.type===M&&(u.push(Ye(M,{...T.props},`${T.type}-${x}`)),m=Ye(ft,{virtualization:o,children:u}))}):m=Ye(Vt,{children:"No data found."}),Ii("div",{...i,className:a(e.className,na,v(na,{size:t}),{"k-virtual-list":o}),children:[d,m]})};Ze.states=wi;Ze.options=Mi;Ze.className=na;Ze.defaultOptions=Rl;import{jsx as Hl}from"react/jsx-runtime";var xo="k-checkbox",Ai=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],Ri={size:[s.small,s.medium,s.large],rounded:[b.small,b.medium,b.large,b.full]},da={size:s.medium,rounded:b.medium},ye=e=>{let{id:t,checked:o,indeterminate:r,hover:i,focus:n,disabled:d,invalid:m,valid:u,required:T,size:x=da.size,rounded:k=da.rounded,...c}=e;return Hl("span",{className:"k-checkbox-wrap",children:Hl("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:T,className:a(e.className,xo,v(xo,{size:x,rounded:k}),S(xo,{hover:i,focus:n,disabled:d,invalid:m,valid:u,indeterminate:r,checked:o}))})})};ye.states=Ai;ye.options=Ri;ye.className=xo;ye.defaultOptions=da;var Xt=ye;import{jsx as Pi}from"react/jsx-runtime";var Pl="k-checkbox-list",Gi=[],Hi={},zl={layout:"vertical"},bt=e=>{let{layout:t=zl.layout,...o}=e;return Pi("ul",{...o,className:a(e.className,Pl,{[`k-list-${t}`]:t}),children:e.children})};bt.states=Gi;bt.options=Hi;bt.className=Pl;bt.defaultOptions=zl;import{jsx as Oi}from"react/jsx-runtime";var Bl="k-checkbox-list-item",zi=[],Bi={},Ei={},Tt=e=>{let{...t}=e;return Oi("li",{...t,className:a(e.className,Bl),children:e.children})};Tt.states=zi;Tt.options=Bi;Tt.className=Bl;Tt.defaultOptions=Ei;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 Ki}from"react/jsx-runtime";var ca=e=>Ki(Xt,{...e});import{jsx as Bh}from"react/jsx-runtime";import{jsx as No,jsxs as Vi}from"react/jsx-runtime";var pa="k-list-item",Di=[l.hover,l.focus,l.selected,l.disabled],$i={},_i={},M=e=>{let{text:t,groupLabel:o,group:r,showIcon:i,iconName:n,showCheckbox:d,checked:m,hover:u,focus:T,selected:x,disabled:k,...c}=e,N=t||e.children;return Vi("li",{...c,className:a(e.className,r?"k-list-group-item":pa,S(pa,{hover:u,focus:T,disabled:k,selected:x})),children:[d&&No(ye,{checked:m}),i&&No(L,{icon:n}),No("span",{className:"k-list-item-text",children:N}),o&&o!==""&&No("div",{className:"k-list-item-group-label",children:o})]})};M.states=Di;M.options=$i;M.className=pa;M.defaultOptions=_i;import{jsx as ma,jsxs as Fi}from"react/jsx-runtime";var Xi="k-list-content",ft=e=>{let{virtualization:t,...o}=e;return Fi("div",{...o,className:a(Xi,e.className),children:[ma("ul",{className:a("k-list-ul"),children:e.children}),t&&ma("div",{className:"k-height-container",children:ma("div",{})})]})};import{jsx as El}from"react/jsx-runtime";var Ji="k-list-group-sticky-header",Ol=e=>El("div",{className:a(Ji,e.className),children:El("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Wi,jsx as Kl,jsxs as Ui}from"react/jsx-runtime";var X=e=>{let{virtualization:t,label:o}=e;return Ui(Wi,{children:[o&&Kl(Ol,{children:o}),e.children&&Kl(ft,{virtualization:t,children:e.children})]})};import{jsx as Dl}from"react/jsx-runtime";var qi="k-list-group-item",Gl=e=>Dl("li",{className:a(qi,e.className),children:Dl("span",{className:"k-list-item-text",children:e.children})});import{jsx as ji}from"react/jsx-runtime";var ua="k-list-optionlabel",Qi=[l.hover,l.focus,l.selected,l.disabled],Yi={},Zi={},go=e=>{let{text:t,hover:o,focus:r,selected:i,disabled:n,...d}=e;return ji("div",{...d,className:a(ua,S(ua,{hover:o,focus:r,selected:i,disabled:n})),children:t})};go.states=Qi;go.options=Yi;go.className=ua;go.defaultOptions=Zi;import{jsx as an}from"react/jsx-runtime";var fa="k-list-custom-value",en=[l.hover,l.focus,l.selected,l.disabled],tn={},on={},De=e=>{let{text:t,hover:o,focus:r,selected:i,disabled:n,...d}=e;return an("div",{...d,className:a(fa,S(fa,{hover:o,focus:r,selected:i,disabled:n})),children:t})};De.states=en;De.options=tn;De.className=fa;De.defaultOptions=on;import{jsx as Nx}from"react/jsx-runtime";import{jsx as Lx}from"react/jsx-runtime";import{jsx as wx,jsxs as Mx}from"react/jsx-runtime";import{jsx as Gx,jsxs as Hx}from"react/jsx-runtime";import{jsx as Ex}from"react/jsx-runtime";import{jsx as $x,jsxs as _x}from"react/jsx-runtime";import{jsx as Jx,jsxs as Wx}from"react/jsx-runtime";import{Fragment as rn,jsx as j,jsxs as ba}from"react/jsx-runtime";var $l="k-dropdownlist",ln=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],sn={size:[s.small,s.medium,s.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},ht={showValue:!0,arrowIconName:"caret-alt-down",size:s.medium,rounded:b.medium,fillMode:f.solid},he=e=>{let{size:t=ht.size,rounded:o=ht.rounded,fillMode:r=ht.fillMode,arrowIconName:i=ht.arrowIconName,showValue:n=ht.showValue,valueIconName:d,prefix:m,suffix:u,value:T,placeholder:x,hover:k,focus:c,valid:N,invalid:g,required:y,loading:w,disabled:I,readonly:G,popup:_,opened:J,adaptive:Ht,adaptiveSettings:Pt,adaptiveTitle:Go,adaptiveSubtitle:Ho,adaptiveFilter:Ls,...ys}=e;return ba(rn,{children:[ba(ue,{...ys,size:t,rounded:o,fillMode:r,hover:k,focus:c,valid:N,invalid:g,required:y,loading:w,disabled:I,readonly:G,className:a(e.className,$l,{"k-icon-picker":!n&&d}),children:[j(ke,{children:m}),j(qe,{placeholder:x,value:T,showValue:n,valueIconName:d}),j(ae,{valid:N,invalid:g,loading:w,disabled:I}),j(le,{loading:w,disabled:I}),j(ve,{children:u}),j(h,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),J&&_&&j(V,{className:"k-list-container k-dropdownlist-popup",children:_}),Ht&&j(Te,{adaptive:!0,...Pt,header:j(se,{actionsEnd:j(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Ls,inputValue:T,inputPlaceholder:x,title:Go,subtitle:Ho}),children:j("div",{className:"k-list-container",children:ba(P,{size:"large",children:[j(M,{text:"List item"}),j(M,{text:"List item"}),j(M,{text:"List item"})]})})})]})};he.states=ln;he.options=sn;he.className=$l;he.defaultOptions=ht;import{jsx as LN}from"react/jsx-runtime";import{jsx as MN,jsxs as IN}from"react/jsx-runtime";import{Fragment as EN,jsx as zN,jsxs as BN}from"react/jsx-runtime";import{jsx as $N}from"react/jsx-runtime";import{jsx as JN,jsxs as WN}from"react/jsx-runtime";import{jsx as ZN,jsxs as jN}from"react/jsx-runtime";import{Fragment as ig,jsx as sg,jsxs as rg}from"react/jsx-runtime";import{Fragment as bg,jsx as ug,jsxs as fg}from"react/jsx-runtime";import{jsx as _l,jsxs as cn}from"react/jsx-runtime";var Vl="k-spin-button",nn=[],dn={size:[s.small,s.medium,s.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Ta={size:s.medium,fillMode:f.solid},xt=e=>{let{size:t=Ta.size,fillMode:o=Ta.fillMode,...r}=e;return cn("span",{...r,className:a(Vl,e.className),children:[_l(h,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),_l(h,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};xt.states=nn;xt.options=dn;xt.className=Vl;xt.defaultOptions=Ta;import{Fragment as Xl,jsx as Ae,jsxs as ha}from"react/jsx-runtime";var Fl="k-numerictextbox",pn=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],mn={size:[s.small,s.medium,s.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[f.solid,f.flat,f.outline]},et={showSpinButton:!0,showClearButton:!0,size:H.defaultOptions.size,rounded:H.defaultOptions.rounded,fillMode:H.defaultOptions.fillMode,separators:!0},z=e=>{let{size:t=et.size,rounded:o=et.rounded,fillMode:r=et.fillMode,separators:i=et.separators,showClearButton:n=et.showClearButton,showSpinButton:d=et.showSpinButton,prefix:m,suffix:u,value:T,placeholder:x,hover:k,focus:c,valid:N,invalid:g,required:y,loading:w,disabled:I,readonly:G,..._}=e;return ha(H,{..._,size:t,rounded:o,fillMode:r,hover:k,focus:c,valid:N,invalid:g,required:y,loading:w,disabled:I,readonly:G,className:a(e.className,Fl),children:[m&&ha(Xl,{children:[Ae(ke,{children:m}),i&&Ae(Me,{})]}),Ae(be,{placeholder:x,value:T}),Ae(ae,{valid:N,invalid:g,loading:w,disabled:I}),Ae(le,{loading:w,disabled:I}),n&&Ae(fe,{loading:w,disabled:I,readonly:G,value:T}),u&&ha(Xl,{children:[i&&Ae(Me,{}),Ae(ve,{children:u})]}),d&&Ae(xt,{className:"k-input-spinner",size:t,fillMode:r})]})};z.states=pn;z.options=mn;z.className=Fl;z.defaultOptions=et;import{jsx as Dg}from"react/jsx-runtime";import{Fragment as Jg,jsx as Fg}from"react/jsx-runtime";import{Fragment as jg,jsx as Zg}from"react/jsx-runtime";import{Fragment as Wl,jsx as ee,jsxs as Nt}from"react/jsx-runtime";var ko="k-pager",un=[l.focus,l.disabled],fn={size:[s.small,s.medium,s.large]},te={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},Re=e=>{let{responsive:t=te.responsive,size:o=te.size,pagerSizeInfo:r=te.pagerSizeInfo,pageTitleInfo:i=te.pageTitleInfo,maxPagesInfo:n=te.maxPagesInfo,itemsPerPage:d=te.itemsPerPage,maxPages:m=te.maxPages,currentPage:u=te.currentPage,previousNext:T=te.previousNext,type:x=te.type,pageSizes:k=te.pageSizes,refresh:c=te.refresh,info:N=te.info,focus:g,disabled:y,dir:w,...I}=e,G=[],_=[];for(let J=1;J<=m;J++)G.push(ee(h,{selected:J===u,fillMode:"flat",themeColor:"primary",size:o,rounded:null,children:J})),_.push(ee("option",{selected:J===u,children:J}));return Nt("div",{dir:w,...I,className:a(e.className,ko,v(ko,{size:o}),S(ko,{focus:g,disabled:y}),{"k-pager-responsive":t}),children:[Nt("div",{className:a("k-pager-numbers-wrap"),children:[T&&Nt(Wl,{children:[ee(h,{className:a("k-pager-nav","k-pager-first"),disabled:u===1&&!y,fillMode:"flat",size:o,rounded:null,icon:w==="rtl"?"caret-alt-to-right":"caret-alt-to-left"}),ee(h,{className:a("k-pager-nav"),disabled:u===1&&!y,fillMode:"flat",size:o,rounded:null,icon:w==="rtl"?"caret-alt-right":"caret-alt-left"})]}),x==="numeric"&&ee("div",{className:a("k-pager-numbers"),children:G}),x==="input"&&Nt("span",{className:a("k-pager-input"),children:[i&&ee("span",{children:"Page"}),ee(z,{value:`${u}`,size:o,showSpinButton:!1,showClearButton:!1}),ee("span",{children:n&&`of ${m}`})]}),T&&Nt(Wl,{children:[ee(h,{className:a("k-pager-nav"),disabled:u===m&&!y,fillMode:"flat",size:o,rounded:null,icon:w==="rtl"?"caret-alt-left":"caret-alt-right"}),ee(h,{className:a("k-pager-nav","k-pager-last"),disabled:u===m&&!y,fillMode:"flat",size:o,rounded:null,icon:w==="rtl"?"caret-alt-to-left":"caret-alt-to-right"})]})]}),k&&Nt("span",{className:a("k-pager-sizes"),children:[ee(he,{value:`${d}`,size:o}),r&&ee("span",{children:"items per page"})]}),c&&ee(h,{className:a("k-pager-refresh"),fillMode:"flat",size:o,rounded:null,icon:"arrow-rotate-cw"}),N&&ee("span",{className:a("k-pager-info"),children:N})]})};Re.states=un;Re.options=fn;Re.className=ko;Re.defaultOptions=te;import{jsx as fk}from"react/jsx-runtime";import{jsx as xk}from"react/jsx-runtime";import{jsx as vk}from"react/jsx-runtime";import{jsx as Tn}from"react/jsx-runtime";var bn="k-grid-pager",tt=e=>Tn(Re,{...e,className:a(e.className,bn),children:e.children});import{jsx as Nn}from"react/jsx-runtime";var Ft="k-button-group",hn=[l.disabled],xn={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Ul={fillMode:f.solid},O=e=>{let{fillMode:t=Ul.fillMode,disabled:o,stretched:r,...i}=e;return Nn("div",{...i,className:a(e.className,Ft,v(Ft,{fillMode:t}),S(Ft,{disabled:o}),{[`${Ft}-stretched`]:r}),children:e.children})};O.states=hn;O.options=xn;O.className=Ft;O.defaultOptions=Ul;import{Fragment as $k,jsx as Dk,jsxs as _k}from"react/jsx-runtime";import{Fragment as Uk,jsx as Wk,jsxs as qk}from"react/jsx-runtime";import{Fragment as tv,jsx as ev,jsxs as ov}from"react/jsx-runtime";import{Fragment as nv,jsx as iv,jsxs as dv}from"react/jsx-runtime";import{jsx as ql,jsxs as vn}from"react/jsx-runtime";var Ql="k-color-preview",gn=[],kn={},$e=e=>{let{color:t,iconName:o,...r}=e;return vn("span",{...r,className:a(e.className,Ql,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&ql(L,{icon:o,className:"k-color-preview-icon"}),ql("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};$e.states=gn;$e.options=kn;$e.className=Ql;import{jsx as gt,jsxs as xa}from"react/jsx-runtime";var Jt="k-slider",Ln=[l.hover,l.focus,l.active,l.disabled,l.readonly],yn={},_e={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},re=e=>{let{type:t=_e.type,orientation:o=_e.orientation,readonly:r=_e.readonly,disabled:i=_e.disabled,handlePosition:n=_e.handlePosition,showButtons:d=_e.showButtons,showTicks:m=_e.showTicks,hover:u,focus:T,active:x,trackStyle:k,dir:c,...N}=e,g,y;return o==="horizontal"?(g=c==="rtl"?"caret-alt-left":"caret-alt-right",y=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(g="caret-alt-up",y="caret-alt-down"),xa("div",{...N,className:a(Jt,e.className,S(Jt,{readonly:r,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[d&>(h,{className:"k-button-decrease",rounded:"full",icon:y}),xa("div",{className:"k-slider-track-wrap",children:[m&>("ul",{className:"k-reset k-slider-items",children:e.children}),xa("div",{className:"k-slider-track",style:k,children:[gt("div",{className:"k-slider-selection"}),t==="range"&>("span",{className:a("k-draghandle","k-draghandle-start",S(Jt,{hover:u,focus:T,active:x}))}),gt("span",{className:a("k-draghandle",`k-draghandle-${n}`,S(Jt,{hover:u,focus:T,active:x}))})]})]}),d&>(h,{className:"k-button-increase",rounded:"full",icon:g})]})};re.states=Ln;re.options=yn;re.className=Jt;re.defaultOptions=_e;import{jsx as Yl}from"react/jsx-runtime";var Zl="k-tick",Sn=[],Cn={},jl={label:!1},Ve=e=>{let{style:t,label:o=jl.label,orientation:r,large:i,text:n,...d}=e;return Yl("li",{...d,className:a(e.className,Zl,{[`k-tick-${r}`]:r,"k-tick-large":i}),style:t,children:o&&Yl("span",{className:"k-label",children:n})})};Ve.states=Sn;Ve.options=Cn;Ve.className=Zl;Ve.defaultOptions=jl;import{Fragment as Hv,jsx as Gv,jsxs as Pv}from"react/jsx-runtime";import{Fragment as Kv,jsx as Ov,jsxs as Dv}from"react/jsx-runtime";import{Fragment as Fv,jsx as Xv,jsxs as Jv}from"react/jsx-runtime";import{Fragment as Yv,jsx as Qv,jsxs as Zv}from"react/jsx-runtime";import{jsx as wn}from"react/jsx-runtime";var Na=e=>wn(re,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as Mn}from"react/jsx-runtime";var ga=e=>Mn(re,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{Fragment as Wt,jsx as A,jsxs as K}from"react/jsx-runtime";var es="k-colorgradient-inputs",In=[],An={size:[s.small,s.medium,s.large]},ts={mode:"rgba",size:s.medium},kt=e=>{let{mode:t=ts.mode,size:o,...r}=e;return K("div",{...r,className:a(es,"k-hstack"),children:[A("div",{className:"k-vstack",children:A(h,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&K(Wt,{children:[K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),A("label",{className:"k-colorgradient-input-label",children:"B"})]}),K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&K(Wt,{children:[K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"R"})]}),K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"G"})]}),K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&K(Wt,{children:[K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]}),K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),A("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&K(Wt,{children:[K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"H"})]}),K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"S"})]}),K("div",{className:"k-vstack",children:[A(z,{showSpinButton:!1,showClearButton:!1,value:"132"}),A("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&A(Wt,{children:K("div",{className:"k-vstack k-flex-1",children:[A(Le,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),A("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};kt.states=In;kt.options=An;kt.className=es;kt.defaultOptions=ts;import{jsx as ot,jsxs as at}from"react/jsx-runtime";var os="k-colorgradient-color-contrast",Rn=[],Gn={},Hn={},vt=()=>at("div",{className:a(os,"k-vbox"),children:[at("div",{className:"k-contrast-ratio",children:[ot("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),at("span",{className:"k-contrast-validation !k-text-success",children:[ot(L,{icon:"check"}),ot(L,{icon:"check"})]})]}),at("div",{children:[ot("span",{children:"AA: 4.5"}),at("span",{className:"k-contrast-validation !k-text-success",children:["Pass",ot(L,{icon:"check"})]})]}),at("div",{children:[ot("span",{children:"AAA: 7.0"}),at("span",{className:"k-contrast-validation !k-text-error",children:["Fail",ot(L,{icon:"x"})]})]})]});vt.states=Rn;vt.options=Gn;vt.className=os;vt.defaultOptions=Hn;import{jsx as ie,jsxs as Ut}from"react/jsx-runtime";var vo="k-colorgradient",Pn=[l.hover,l.focus,l.readonly,l.disabled],zn={size:[s.small,s.medium,s.large]},xe={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"},Xe=e=>{let{size:t=xe.size,mode:o=xe.mode,readonly:r=xe.readonly,disabled:i=xe.disabled,gradientStyle:n=xe.gradientStyle,dragHandleStyle:d=xe.dragHandleStyle,alphaStyle:m=xe.alphaStyle,alphaStyleHorizontal:u=xe.alphaStyleHorizontal,contrast:T=xe.contrast,dir:x,hover:k,focus:c,hoverHandle:N,focusHandle:g,canvasOrientation:y=xe.canvasOrientation,...w}=e;return Ut("div",{...w,className:a(e.className,vo,v(vo,{size:t}),S(vo,{hover:k,focus:c,readonly:r,disabled:i})),dir:x,children:[!y||y==="horizontal"&&Ut("div",{className:"k-colorgradient-canvas k-hstack",children:[ie("div",{className:"k-hsv-rectangle",style:n,children:ie("div",{className:"k-hsv-gradient",children:ie("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":g}),style:d})})}),Ut("div",{className:"k-hsv-controls k-hstack",children:[ie(ga,{className:"k-hue-slider",hover:N,focus:g}),o!=="rgb"&&o!=="hsv"&&ie(ga,{className:"k-alpha-slider",hover:N,focus:g,trackStyle:m})]})]}),y==="vertical"&&Ut("div",{className:"k-colorgradient-canvas k-vstack",children:[ie("div",{className:"k-hsv-rectangle",style:n,children:ie("div",{className:"k-hsv-gradient",children:ie("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":g}),style:d})})}),Ut("div",{className:"k-hsv-controls k-vstack",children:[ie(Na,{className:"k-hue-slider",hover:N,focus:g}),o!=="rgb"&&o!=="hsv"&&ie(Na,{className:"k-alpha-slider",hover:N,focus:g,trackStyle:u})]})]}),ie(kt,{mode:e.mode,size:t}),T&&ie(vt,{})]})};Xe.states=Pn;Xe.options=zn;Xe.className=vo;Xe.defaultOptions=xe;import{jsx as HL}from"react/jsx-runtime";import{jsx as EL}from"react/jsx-runtime";import{jsx as Bn}from"react/jsx-runtime";var as=e=>Bn("tr",{children:e.children});import{jsx as Kn}from"react/jsx-runtime";var ka="k-colorpalette-tile",En=[l.hover,l.focus,l.selected],On={},qt=e=>{let{color:t,tileSize:o,hover:r,focus:i,selected:n,...d}=e,m={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return Kn("td",{...d,className:a(e.className,ka,S(ka,{hover:r,focus:i,selected:n})),style:m})};qt.states=En;qt.options=On;qt.className=ka;import{jsx as Qt}from"react/jsx-runtime";var Lo="k-colorpalette",Dn=[l.disabled],$n={size:[s.small,s.medium,s.large]},va={columns:10,size:s.medium},Lt=e=>{let{size:t=va.size,palette:o,columns:r=va.columns,tileSize:i,disabled:n,...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,y)=>{c.push(Qt(qt,{color:g,tileSize:i},y))});let N=Qt(as,{children:c},k);m.push(N)})}return Qt("div",{...d,className:a(e.className,Lo,S(Lo,{disabled:n}),v(Lo,{size:t})),children:Qt("table",{className:"k-colorpalette-table",children:Qt("tbody",{children:m.length>0?m:e.children})})})};Lt.states=Dn;Lt.options=$n;Lt.className=Lo;Lt.defaultOptions=va;var La={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","#