@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 287 kB
JavaScript
var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,r)=>t[r]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>o({[`${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"}),b=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},x={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},u={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"},xt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};import{jsx as gv}from"react/jsx-runtime";var Ta="k-pane",hv=[],fv={},Dc={resizable:!0,flex:!1},he=e=>{let{scrollable:t,flexBasis:a,flex:r=Dc.flex,collapsible:s,resizable:i=Dc.resizable,pinned:d,unpinned:p,tabbed:m,...k}=e;return gv("div",{...k,style:{flexBasis:a,...e.style},className:o(e.className,Ta,{[`${Ta}-static`]:a,[`${Ta}-flex`]:r,"k-scrollable":t,[`${Ta}-pinned`]:d,[`${Ta}-unpinned`]:p,[`${Ta}-tabbed`]:m}),children:e.children})};he.states=hv;he.options=fv;he.className=Ta;he.defaultOptions=Dc;import{Fragment as yv,jsx as nk}from"react/jsx-runtime";var Fc="k-icon k-font-icon",xv=[],bv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},vv={},cs=e=>{let{size:t,themeColor:a,icon:r,rotate:s,flip:i,...d}=e;return r?nk("span",{...d,className:o(e.className,Fc,C(Fc,{size:t}),{[`k-i-${r}`]:r,[`k-color-${a}`]:a,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"})}):nk(yv,{})};cs.states=xv;cs.options=bv;cs.className=Fc;cs.defaultOptions=vv;var dk=cs;import{Fragment as Tv,jsx as bn}from"react/jsx-runtime";var zc="k-icon k-svg-icon",wv=[],Av={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},ck={viewBox:"0 0 24 24"},ps=e=>{let{size:t,themeColor:a,rotate:r,flip:s,viewBox:i=ck.viewBox,icon:d,...p}=e;if(!d)return bn(Tv,{});d==="none"&&{...p,className:o(e.className,zc,"k-none")};let m=typeof d=="object"&&d.name&&d.name;return bn("span",{...p,className:o(e.className,zc,C("k-icon",{size:t}),{[`k-svg-i-${m}`]:m,[`k-color-${a}`]:a,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),children:bn("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})})};ps.states=wv;ps.options=Av;ps.className=zc;ps.defaultOptions=ck;var Rc=ps;import*as pk from"@progress/kendo-svg-icons";import{Fragment as mk,jsx as ms}from"react/jsx-runtime";var Nv=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Cv=[],Sv={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark]},Hc={viewBox:"0 0 24 24",type:"svg"},v=e=>{let{size:t,themeColor:a,icon:r,type:s=Hc.type,rotate:i,flip:d,viewBox:p=Hc.viewBox,...m}=e;if(!r)return ms(mk,{});if(s==="svg"){if(r==="none")return ms(Rc,{...m,icon:r,size:t});let k=Nv(`${r}-icon`);return pk[k]?ms(Rc,{...m,icon:pk[k],size:t,themeColor:a,rotate:i,flip:d,viewBox:p}):ms(mk,{})}return ms(dk,{...m,icon:r,size:t,themeColor:a,rotate:i,flip:d})};v.states=Cv;v.options=Sv;v.defaultOptions=Hc;var Wc=v;import{Fragment as uk,jsx as Na,jsxs as Mv}from"react/jsx-runtime";var wl="k-splitbar",Iv=[l.hover,l.focus],Bv={},Oc={orientation:"horizontal",draggable:!0},Eo=e=>{let{hover:t,focus:a,orientation:r=Oc.orientation,draggable:s=Oc.draggable,collapsePrev:i,collapseNext:d,...p}=e;return Mv("div",{...p,className:o(e.className,wl,b(wl,{hover:t,focus:a}),{[`${wl}-${r}`]:r,[`${wl}-draggable-${r}`]:s,[`${wl}-static-${r}`]:!s&&!i&&!d}),children:[i&&Na(uk,{children:Na("div",{className:"k-collapse-prev",children:Na(v,{icon:`caret-alt-${r==="horizontal"?"left":"up"}`,size:"xsmall"})})}),Na("div",{className:"k-resize-handle"}),d&&Na(uk,{children:Na("div",{className:"k-collapse-next",children:Na(v,{icon:`caret-alt-${r==="horizontal"?"right":"down"}`,size:"xsmall"})})})]})};Eo.states=Iv;Eo.options=Bv;Eo.className=wl;Eo.defaultOptions=Oc;import{jsx as kk}from"react/jsx-runtime";import{createElement as Ev}from"react";var Qc="k-splitter",Lv={},hk={orientation:"horizontal"},Ze=e=>{let{orientation:t=hk.orientation,children:a,...r}=e,s=[];return a&&Array.isArray(a)&&a.map((i,d)=>{if(i.type===he){let p=a[d+1],m=i.props,k=p?.props;s.push(Ev(he,{...m,key:d}),p&&kk(Eo,{draggable:m.resizable!==!1&&k.resizable!==!1,collapsePrev:m.collapsible,collapseNext:k.collapsible,orientation:t},`splitbar-${d}`))}else s.push(i)}),kk("div",{...r,className:o(e.className,Qc,{[`${Qc}-${t}`]:t},"k-splitter-flex"),children:s})};Ze.options=Lv;Ze.className=Qc;Ze.defaultOptions=hk;import{jsx as pG,jsxs as mG}from"react/jsx-runtime";import{jsx as fG,jsxs as gG}from"react/jsx-runtime";import{Fragment as Gv,jsx as us,jsxs as fk}from"react/jsx-runtime";var vn="k-button",Yv=[l.hover,l.focus,l.active,l.selected,l.disabled],Pv={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.light,u.dark,u.inverse]},Ca={size:n.medium,rounded:f.medium,fillMode:x.solid,themeColor:u.base,showArrow:!1,arrowIconName:"caret-alt-down"},c=e=>{let{size:t=Ca.size,rounded:a=Ca.rounded,fillMode:r=Ca.fillMode,themeColor:s=Ca.themeColor,showArrow:i=Ca.showArrow,arrowIconName:d=Ca.arrowIconName,hover:p,focus:m,active:k,selected:y,disabled:A,icon:g,text:T,iconClassName:N,...S}=e,B=g!==void 0,L=e.children!==void 0;return fk("button",{...S,className:o(e.className,vn,C(vn,{size:t,rounded:a,fillMode:r,themeColor:s}),b(vn,{hover:p,focus:m,active:k,disabled:A,selected:y}),{"k-icon-button":!T&&!L&&B}),children:[g&&us(v,{className:o(N,"k-button-icon"),icon:g}),T?fk(Gv,{children:[T&&us("span",{className:"k-button-text",children:T}),e.children]}):e.children&&us("span",{className:"k-button-text",children:e.children}),i&&us("span",{className:"k-menu-button-arrow k-button-arrow",children:us(v,{icon:d})})]})};c.states=Yv;c.options=Pv;c.className=vn;c.defaultOptions=Ca;import{jsx as Kv}from"react/jsx-runtime";var et=e=>Kv(c,{icon:"folder",...e,children:void 0});import{jsx as Dv}from"react/jsx-runtime";var zt=e=>Dv(c,{icon:"folder",children:"Button",...e});import{jsx as DG}from"react/jsx-runtime";import{jsx as Rv}from"react/jsx-runtime";var ks="k-button-group",Fv=[l.disabled],zv={fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},gk={fillMode:x.solid},Y=e=>{let{fillMode:t=gk.fillMode,disabled:a,stretched:r,...s}=e;return Rv("div",{...s,className:o(e.className,ks,C(ks,{fillMode:t}),b(ks,{disabled:a}),{[`${ks}-stretched`]:r}),children:e.children})};Y.states=Fv;Y.options=zv;Y.className=ks;Y.defaultOptions=gk;import{Fragment as qG,jsx as UG,jsxs as _G}from"react/jsx-runtime";import{Fragment as lK,jsx as aK,jsxs as rK}from"react/jsx-runtime";import{Fragment as pK,jsx as cK,jsxs as mK}from"react/jsx-runtime";import{Fragment as xK,jsx as gK,jsxs as bK}from"react/jsx-runtime";import{jsx as Ov}from"react/jsx-runtime";var yn="k-input",Hv=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Wv={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},wn={size:n.medium,rounded:n.medium,fillMode:x.solid},M=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=wn.size,rounded:k=wn.rounded,fillMode:y=wn.fillMode,...A}=e;return Ov("span",{...A,className:o(e.className,yn,C(yn,{size:m,rounded:k,fillMode:y}),b(yn,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p}))})};M.states=Hv;M.options=Wv;M.className=yn;M.defaultOptions=wn;import{jsx as Xv}from"react/jsx-runtime";var An="k-picker",Qv=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Vv={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Tn={size:n.medium,rounded:f.medium,fillMode:x.solid},bt=e=>{let{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p,size:m=Tn.size,rounded:k=Tn.rounded,fillMode:y=Tn.fillMode,...A}=e;return Xv("span",{...A,className:o(e.className,An,C(An,{size:m,rounded:k,fillMode:y}),b(An,{hover:t,focus:a,disabled:r,invalid:s,valid:i,loading:d,readonly:p})),children:e.children})};bt.states=Qv;bt.options=Vv;bt.className=An;bt.defaultOptions=Tn;import{Fragment as jv,jsx as Vc}from"react/jsx-runtime";var xk="k-clear-value",Zv=[l.disabled,l.loading,l.readonly],Jv={},te=e=>{let{disabled:t,loading:a,readonly:r,value:s}=e;return t||r||a||!s?Vc(jv,{}):Vc("span",{className:o(e.className,xk),children:Vc(v,{icon:"x"})})};te.states=Zv;te.options=Jv;te.className=xk;import{jsx as _v}from"react/jsx-runtime";var Xc="k-input-inner",Uv=[],qv={},Nn={type:"text",autocomplete:"off",value:"",placeholder:""},le=e=>{let{value:t=Nn.value,type:a=Nn.type,placeholder:r=Nn.placeholder,autocomplete:s=Nn.autocomplete,...i}=e;return _v("input",{...i,type:a,className:o(e.className,Xc,C(Xc,e)),placeholder:r,autoComplete:s,defaultValue:t})};le.states=Uv;le.options=qv;le.className=Xc;import{jsx as bk,jsxs as ty}from"react/jsx-runtime";var Zc="k-input-inner",$v=[],ey={},bo=e=>{let{value:t,placeholder:a,showValue:r,valueIcon:s,valueIconName:i,...d}=e;return ty("span",{...d,className:o(e.className,Zc,C(Zc,e)),children:[s,!s&&i&&bk(v,{className:"k-input-value-icon",icon:i}),r&&!t&&a,r&&t&&bk("span",{className:"k-input-value-text",children:t})]})};bo.states=$v;bo.options=ey;bo.className=Zc;import{jsx as ly}from"react/jsx-runtime";var Jc="k-input-inner",oy=[],ay={},vk={value:"",placeholder:""},hs=e=>{let{value:t=vk.value,placeholder:a=vk.placeholder,rows:r,...s}=e;return ly("textarea",{...s,className:o(e.className,Jc,C(Jc,e)),placeholder:a,rows:r,defaultValue:t})};hs.states=oy;hs.options=ay;hs.className=Jc;import{Fragment as sy,jsx as yk}from"react/jsx-runtime";var wk="k-input-loading-icon",ry=[l.disabled,l.loading],J=e=>{let{disabled:t,loading:a}=e;return t||!a?yk(sy,{}):yk("span",{className:o(e.className,wk,"k-icon k-i-loading")})};J.states=ry;J.className=wk;import{Fragment as dy,jsx as Ak}from"react/jsx-runtime";var Tk="k-input-validation-icon",iy=[l.valid,l.invalid,l.disabled,l.loading],ny={},X=e=>{let{valid:t,invalid:a,disabled:r,loading:s}=e,i=a?"warning-circle":"check-circle";return r||s||!!!(t||a)?Ak(dy,{}):Ak(v,{className:o(Tk),icon:i})};X.states=iy;X.options=ny;X.className=Tk;import{Fragment as my,jsx as Nk}from"react/jsx-runtime";var cy="k-input-prefix",py={direction:"horizontal"},$=e=>{let{direction:t=py.direction,...a}=e;return e.children?Nk("span",{...a,className:o(cy,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Nk(my,{})};import{Fragment as hy,jsx as Ck}from"react/jsx-runtime";var uy="k-input-suffix",ky={direction:"horizontal"},ee=e=>{let{direction:t=ky.direction,...a}=e;return e.children?Ck("span",{...a,className:o(uy,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ck(hy,{})};import{jsx as nD}from"react/jsx-runtime";import{jsx as mD}from"react/jsx-runtime";import{jsx as gy}from"react/jsx-runtime";var Sk="k-input-separator",fy={direction:"vertical"},xe=e=>{let{direction:t=fy.direction,...a}=e;return gy("span",{...a,className:o(Sk,e.className,{[`${Sk}-${t}`]:t})})};import{jsx as Ik,jsxs as vy}from"react/jsx-runtime";var Bk="k-color-preview",xy=[],by={},Yo=e=>{let{color:t,iconName:a,...r}=e;return vy("span",{...r,className:o(e.className,Bk,{"k-icon-color-preview":a,"k-no-color":!t}),children:[a&&Ik(v,{icon:a,className:"k-color-preview-icon"}),Ik("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Yo.states=xy;Yo.options=by;Yo.className=Bk;import{jsx as Mk}from"react/jsx-runtime";var Lk="k-animation-container",yy=[],wy={},Ek={positionMode:"absolute"},Po=e=>{let{positionMode:t=Ek.positionMode,animationStyle:a,offset:r,...s}=e;return Mk("div",{...s,style:{...r,...e.style},className:o(e.className,Lk,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Mk("div",{className:"k-child-animation-container",style:a,children:e.children})})};Po.states=yy;Po.options=wy;Po.className=Lk;Po.defaultOptions=Ek;import{jsx as Yk}from"react/jsx-runtime";var Pk="k-popup",Ay=[],Ty={},Gk={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:a=Gk.positionMode,animationStyle:r,...s}=e;return Yk(Po,{positionMode:a,offset:t,animationStyle:r,children:Yk("div",{...s,className:o(e.className,Pk),children:e.children})})};F.states=Ay;F.options=Ty;F.className=Pk;F.defaultOptions=Gk;import{jsx as Sy}from"react/jsx-runtime";var Cn="k-actions",Ny=[],Cy={},jc={alignment:"start",orientation:"horizontal"},O=e=>{let{alignment:t=jc.alignment,orientation:a=jc.orientation,...r}=e;return Sy("div",{...r,className:o(Cn,{[`${Cn}-${t}`]:t,[`${Cn}-${a}`]:a},e.className),children:e.children})};O.states=Ny;O.options=Cy;O.className=Cn;O.defaultOptions=jc;var Kk=O;import{jsx as By}from"react/jsx-runtime";var Iy="k-actionsheet-footer",Dk={alignment:"stretched",orientation:"horizontal"},Rt=e=>{let{alignment:t=Dk.alignment,orientation:a=Dk.orientation,template:r,as:s=r?"div":O,...i}=e;return By(s,{...i,...!r&&{alignment:t,orientation:a},className:o(e.className,Iy),children:e.children})};import{jsx as fs,jsxs as Ey}from"react/jsx-runtime";var Fk="k-searchbox",My=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],Ly={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Uc={showIcon:!0,icon:"search",size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode},ze=e=>{let{value:t,placeholder:a,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:y,loading:A,disabled:g,showIcon:T=Uc.showIcon,icon:N=Uc.icon,...S}=e;return Ey(M,{...S,size:r,rounded:s,fillMode:i,hover:d,focus:p,valid:m,invalid:k,required:y,loading:A,disabled:g,className:o(e.className,Fk),children:[T&&fs(v,{className:"k-input-icon",icon:N}),fs(le,{placeholder:a,value:t}),fs(J,{...e}),fs(X,{...e}),fs(te,{...e})]})};ze.states=My;ze.options=Ly;ze.className=Fk;ze.defaultOptions=Uc;import{jsx as pF}from"react/jsx-runtime";import{Fragment as zk,jsx as Go,jsxs as qc}from"react/jsx-runtime";var Rk="k-textbox",Yy=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Py={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Sa={showClearButton:!0,showValidationIcon:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},Z=e=>{let{size:t=Sa.size,rounded:a=Sa.rounded,fillMode:r=Sa.fillMode,separators:s=Sa.separators,showClearButton:i=Sa.showClearButton,showValidationIcon:d=Sa.showValidationIcon,prefix:p,suffix:m,type:k,value:y,placeholder:A,hover:g,focus:T,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,...W}=e;return qc(M,{...W,size:t,rounded:a,fillMode:r,hover:g,focus:T,valid:N,invalid:S,required:B,loading:L,disabled:E,readonly:D,className:o(e.className,Rk),children:[p&&qc(zk,{children:[Go($,{children:p}),s&&Go(xe,{})]}),Go(le,{placeholder:A,value:y,type:k}),d&&Go(X,{valid:N,invalid:S,loading:L,disabled:E}),Go(J,{loading:L,disabled:E}),i&&Go(te,{loading:L,disabled:E,readonly:D,value:y}),m&&qc(zk,{children:[s&&Go(xe,{}),Go(ee,{children:m})]})]})};Z.states=Yy;Z.options=Py;Z.className=Rk;Z.defaultOptions=Sa;import{jsx as wF}from"react/jsx-runtime";import{Fragment as IF,jsx as SF}from"react/jsx-runtime";import{Fragment as PF,jsx as YF}from"react/jsx-runtime";import{jsx as Ko,jsxs as _c}from"react/jsx-runtime";var Ok="k-actionsheet-titlebar",Gy={},ae=e=>{let{title:t,subtitle:a,actionsStart:r,actionsEnd:s,filter:i,input:d,inputValue:p,inputPlaceholder:m,adaptive:k,children:y,...A}=e;return _c("div",{...A,className:o(e.className,Ok),children:[_c("div",{className:"k-actionsheet-titlebar-group",children:[r&&Ko("div",{className:"k-actionsheet-actions",children:r}),!y&&_c("div",{className:"k-actionsheet-title",children:[t&&Ko("div",{className:"k-text-center",children:t}),a&&Ko("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),y&&Ko("div",{className:"k-actionsheet-title",children:y}),s&&Ko("div",{className:"k-actionsheet-actions",children:s})]}),(d||i)&&Ko("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?Ko(Z,{value:p,placeholder:m,size:k?"large":"medium"}):Ko(ze,{placeholder:"Filter",size:k?"large":"medium"})})]})};ae.className=Ok;ae.defaultOptions=Gy;import{jsx as $c,jsxs as zy}from"react/jsx-runtime";var ep="k-actionsheet-view",Ky=[],Dy={},Fy={},Al=e=>{let{adaptive:t,animated:a,children:r,header:s,footer:i,...d}=e,p=s?.type===ae&&$c(ae,{adaptive:t,...s?.props}),m=i?.type===Rt&&$c(Rt,{...i?.props});return zy("div",{...d,className:o(e.className,ep,{[`${ep}-animated`]:a}),children:[p,$c("div",{className:"k-actionsheet-content",children:r}),m]})};Al.states=Ky;Al.options=Dy;Al.className=ep;Al.defaultOptions=Fy;import{jsx as Sn,jsxs as Wy}from"react/jsx-runtime";var Qk="k-actionsheet",Ry=[],Hy={},gs={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},re=e=>{let{side:t=gs.side,fullscreen:a=gs.fullscreen,adaptive:r=gs.adaptive,overlay:s=gs.overlay,template:i,children:d,header:p,footer:m,...k}=e;return Wy("div",{className:"k-actionsheet-container",children:[s&&Sn("div",{className:"k-overlay"}),Sn(Po,{animationStyle:{[`${a===!0?"top":t}`]:0,[`${a===!0?"width":null}`]:"100%",[`${a===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:Sn("div",{...k,className:o(e.className,Qk,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":r}),children:i||Sn(Al,{header:p,footer:m,adaptive:r,...e,children:d})})})]})};re.states=Ry;re.options=Hy;re.className=Qk;re.defaultOptions=gs;import{jsx as lz}from"react/jsx-runtime";import{Fragment as Qy,jsx as xs,jsxs as tp}from"react/jsx-runtime";var op="k-actionsheet-item",Oy=[l.hover,l.focus,l.selected,l.disabled],ap=e=>{let{iconName:t,text:a,description:r,hover:s,focus:i,selected:d,disabled:p,...m}=e;return tp("span",{...m,className:o(e.className,op,b(op,{hover:s,focus:i,selected:d,disabled:p})),children:[!e.children&&xs(Qy,{children:tp("span",{className:"k-actionsheet-action",children:[t&&xs("span",{className:"k-icon-wrap",children:xs(v,{className:"k-actionsheet-item-icon",icon:t})}),tp("span",{className:"k-actionsheet-item-text",children:[a&&xs("span",{className:"k-actionsheet-item-title",children:a}),r&&xs("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};ap.states=Oy;ap.className=op;import{jsx as uz,jsxs as kz}from"react/jsx-runtime";import{jsx as xz}from"react/jsx-runtime";import{jsx as wz}from"react/jsx-runtime";import{jsx as Cz}from"react/jsx-runtime";import{jsx as Tl,jsxs as lp}from"react/jsx-runtime";var bs="k-slider",Vy=[l.hover,l.focus,l.active,l.disabled,l.readonly],Xy={},Do={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},vt=e=>{let{type:t=Do.type,orientation:a=Do.orientation,readonly:r=Do.readonly,disabled:s=Do.disabled,handlePosition:i=Do.handlePosition,showButtons:d=Do.showButtons,showTicks:p=Do.showTicks,hover:m,focus:k,active:y,trackStyle:A,dir:g,...T}=e,N,S;return a==="horizontal"?(N=g==="rtl"?"caret-alt-left":"caret-alt-right",S=g==="rtl"?"caret-alt-right":"caret-alt-left"):a==="vertical"&&(N="caret-alt-up",S="caret-alt-down"),lp("div",{...T,className:o(bs,e.className,b(bs,{readonly:r,disabled:s}),{[`k-slider-${a}`]:a,"k-colorgradient-slider":t==="gradient"}),dir:g,children:[d&&Tl(c,{className:"k-button-decrease",rounded:"full",icon:S}),lp("div",{className:"k-slider-track-wrap",children:[p&&Tl("ul",{className:"k-reset k-slider-items",children:e.children}),lp("div",{className:"k-slider-track",style:A,children:[Tl("div",{className:"k-slider-selection"}),t==="range"&&Tl("span",{className:o("k-draghandle","k-draghandle-start",b(bs,{hover:m,focus:k,active:y}))}),Tl("span",{className:o("k-draghandle",`k-draghandle-${i}`,b(bs,{hover:m,focus:k,active:y}))})]})]}),d&&Tl(c,{className:"k-button-increase",rounded:"full",icon:N})]})};vt.states=Vy;vt.options=Xy;vt.className=bs;vt.defaultOptions=Do;import{jsx as Xk}from"react/jsx-runtime";var Zk="k-tick",Zy=[],Jy={},Jk={label:!1},Pe=e=>{let{style:t,label:a=Jk.label,orientation:r,large:s,text:i,...d}=e;return Xk("li",{...d,className:o(e.className,Zk,{[`k-tick-${r}`]:r,"k-tick-large":s}),style:t,children:a&&Xk("span",{className:"k-label",children:i})})};Pe.states=Zy;Pe.options=Jy;Pe.className=Zk;Pe.defaultOptions=Jk;import{Fragment as jy,jsx as It,jsxs as Uy}from"react/jsx-runtime";var In=e=>It(vt,{children:Uy(jy,{children:[It(Pe,{className:"k-first",label:!0,large:!0,text:"0"}),It(Pe,{}),It(Pe,{}),It(Pe,{}),It(Pe,{}),It(Pe,{label:!0,large:!0,text:"5"}),It(Pe,{}),It(Pe,{}),It(Pe,{}),It(Pe,{}),It(Pe,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as _z,jsx as qz,jsxs as $z}from"react/jsx-runtime";import{Fragment as lR,jsx as aR,jsxs as rR}from"react/jsx-runtime";import{Fragment as cR,jsx as dR,jsxs as pR}from"react/jsx-runtime";import{jsx as qy}from"react/jsx-runtime";var rp=e=>qy(vt,{type:"gradient",showButtons:!1,showTicks:!1,...e});import{jsx as _y}from"react/jsx-runtime";var sp=e=>_y(vt,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});import{jsx as jk,jsxs as tw}from"react/jsx-runtime";var Uk="k-spin-button",$y=[],ew={size:[n.small,n.medium,n.large],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},ip={size:n.medium,fillMode:x.solid},Fo=e=>{let{size:t=ip.size,fillMode:a=ip.fillMode,...r}=e;return tw("span",{...r,className:o(Uk,e.className),children:[jk(c,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:a}),jk(c,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:a})]})};Fo.states=$y;Fo.options=ew;Fo.className=Uk;Fo.defaultOptions=ip;import{Fragment as qk,jsx as vo,jsxs as np}from"react/jsx-runtime";var _k="k-numerictextbox",ow=[l.hover,l.focus,l.valid,l.invalid,l.loading,l.required,l.disabled,l.readonly],aw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Ia={showSpinButton:!0,showClearButton:!0,size:M.defaultOptions.size,rounded:M.defaultOptions.rounded,fillMode:M.defaultOptions.fillMode,separators:!0},ce=e=>{let{size:t=Ia.size,rounded:a=Ia.rounded,fillMode:r=Ia.fillMode,separators:s=Ia.separators,showClearButton:i=Ia.showClearButton,showSpinButton:d=Ia.showSpinButton,prefix:p,suffix:m,value:k,placeholder:y,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:L,readonly:E,...D}=e;return np(M,{...D,size:t,rounded:a,fillMode:r,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:L,readonly:E,className:o(e.className,_k),children:[p&&np(qk,{children:[vo($,{children:p}),s&&vo(xe,{})]}),vo(le,{placeholder:y,value:k}),vo(X,{valid:T,invalid:N,loading:B,disabled:L}),vo(J,{loading:B,disabled:L}),i&&vo(te,{loading:B,disabled:L,readonly:E,value:k}),m&&np(qk,{children:[s&&vo(xe,{}),vo(ee,{children:m})]}),d&&vo(Fo,{className:"k-input-spinner",size:t,fillMode:r})]})};ce.states=ow;ce.options=aw;ce.className=_k;ce.defaultOptions=Ia;import{jsx as HR}from"react/jsx-runtime";import{jsx as rw}from"react/jsx-runtime";var lw="k-no-data",vs=e=>rw("span",{className:o(lw,e.className),children:e.children});import{jsx as Nl,jsxs as eh}from"react/jsx-runtime";var dp="k-list",sw=[],iw={size:[n.small,n.medium,n.large]},th={size:n.medium},Q=e=>{let{size:t=th.size,virtualization:a,children:r,optionLabel:s,customValue:i,screenReaders:d,...p}=e,m,k,y,A,g=[];return r?r.map((T,N)=>{T.type===be?(T.props.root===!0?(m=T.props.label,T.props.children.map((S,B)=>{g.push(Nl(P,{...S.props},`optChild-${B}-${new Date().getTime()}`))})):T.props.children.forEach((S,B)=>{let L="";B===0&&(L=T.props.label),g.push(Nl(P,{className:B===0?"k-first":"",...S.props,groupLabel:L},`groupLabel-${B}-${new Date().getTime()}`))}),k=Nl(be,{label:m,virtualization:a,children:g})):T.type===P&&(g.push(Nl(P,{...T.props},`${T.type}-${N}`)),y=Nl(Cl,{virtualization:a,children:g}),d&&(A=eh(vs,{className:"k-sr-only",children:[g.length," items found."]})))}):A=Nl(vs,{children:"No data found."}),eh("div",{...p,className:o(e.className,dp,C(dp,{size:t}),{"k-virtual-list":a}),children:[s,i,k,y,A]})};Q.states=sw;Q.options=iw;Q.className=dp;Q.defaultOptions=th;import{jsx as Ba,jsxs as cw}from"react/jsx-runtime";var cp="k-list",nw=[],dw={size:[n.small,n.medium,n.large]},oh={size:n.medium},Ma=e=>{let{size:t=oh.size,virtualization:a,children:r,...s}=e,i,d,p,m=[];return r?r.map((k,y)=>{k.type===be?(k.props.root===!0?(i=k.props.label,k.props.children.map((A,g)=>{m.push(Ba(P,{...A.props},`optChild-${g}-${new Date().getTime()}`))})):(m.push(Ba(ah,{...k.props,children:k.props.label},`listChild-${y}`)),k.props.children.map((A,g)=>{m.push(Ba(P,{...A.props},`fwOptChild-${g}-${new Date().getTime()}`))})),d=Ba(be,{label:i,virtualization:a,children:m})):k.type===P&&(m.push(Ba(P,{...k.props},`${k.type}-${y}`)),p=Ba(Cl,{virtualization:a,children:m}))}):p=Ba(vs,{children:"No data found."}),cw("div",{...s,className:o(e.className,cp,C(cp,{size:t}),{"k-virtual-list":a}),children:[d,p]})};Ma.states=nw;Ma.options=dw;Ma.className=cp;Ma.defaultOptions=oh;import{jsx as lh}from"react/jsx-runtime";var Bn="k-checkbox",pw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.checked,l.indeterminate],mw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},pp={size:n.medium,rounded:f.medium},Qe=e=>{let{id:t,checked:a,indeterminate:r,hover:s,focus:i,disabled:d,invalid:p,valid:m,required:k,size:y=pp.size,rounded:A=pp.rounded,...g}=e;return lh("span",{className:"k-checkbox-wrap",children:lh("input",{...g,id:t,type:"checkbox",defaultChecked:a,required:k,className:o(e.className,Bn,C(Bn,{size:y,rounded:A}),b(Bn,{hover:s,focus:i,disabled:d,invalid:p,valid:m,indeterminate:r,checked:a}))})})};Qe.states=pw;Qe.options=mw;Qe.className=Bn;Qe.defaultOptions=pp;import{jsx as hw}from"react/jsx-runtime";var rh="k-checkbox-list",uw=[],kw={},sh={layout:"vertical"},Sl=e=>{let{layout:t=sh.layout,...a}=e;return hw("ul",{...a,className:o(e.className,rh,{[`k-list-${t}`]:t}),children:e.children})};Sl.states=uw;Sl.options=kw;Sl.className=rh;Sl.defaultOptions=sh;import{jsx as bw}from"react/jsx-runtime";var ih="k-checkbox-list-item",fw=[],gw={},xw={},Il=e=>{let{...t}=e;return bw("li",{...t,className:o(e.className,ih),children:e.children})};Il.states=fw;Il.options=gw;Il.className=ih;Il.defaultOptions=xw;import{Fragment as f0,jsx as h0,jsxs as g0}from"react/jsx-runtime";import{Fragment as w0,jsx as y0,jsxs as A0}from"react/jsx-runtime";import{Fragment as I0,jsx as S0,jsxs as B0}from"react/jsx-runtime";import{Fragment as P0,jsx as Y0,jsxs as G0}from"react/jsx-runtime";import{jsx as z0}from"react/jsx-runtime";import{jsx as O0}from"react/jsx-runtime";import{jsx as Mn,jsxs as Aw}from"react/jsx-runtime";var up="k-list-item",vw=[l.hover,l.focus,l.selected,l.disabled],yw={},ww={},P=e=>{let{text:t,groupLabel:a,group:r,showIcon:s,iconName:i,showCheckbox:d,checked:p,hover:m,focus:k,selected:y,disabled:A,...g}=e,T=t||e.children;return Aw("li",{...g,className:o(e.className,r?"k-list-group-item":up,b(up,{hover:m,focus:k,disabled:A,selected:y})),children:[d&&Mn(Qe,{checked:p}),s&&Mn(v,{icon:i}),Mn("span",{className:"k-list-item-text",children:T}),a&&a!==""&&Mn("div",{className:"k-list-item-group-label",children:a})]})};P.states=vw;P.options=yw;P.className=up;P.defaultOptions=ww;import{jsx as kp,jsxs as Nw}from"react/jsx-runtime";var Tw="k-list-content",Cl=e=>{let{virtualization:t,...a}=e;return Nw("div",{...a,className:o(Tw,e.className),children:[kp("ul",{className:o("k-list-ul"),children:e.children}),t&&kp("div",{className:"k-height-container",children:kp("div",{})})]})};import{jsx as nh}from"react/jsx-runtime";var Cw="k-list-group-sticky-header",dh=e=>nh("div",{className:o(Cw,e.className),children:nh("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Sw,jsx as ch,jsxs as Iw}from"react/jsx-runtime";var be=e=>{let{virtualization:t,label:a}=e;return Iw(Sw,{children:[a&&ch(dh,{children:a}),e.children&&ch(Cl,{virtualization:t,children:e.children})]})};import{jsx as ph}from"react/jsx-runtime";var Bw="k-list-group-item",ah=e=>ph("li",{className:o(Bw,e.className),children:ph("span",{className:"k-list-item-text",children:e.children})});import{jsx as Yw}from"react/jsx-runtime";var hp="k-list-optionlabel",Mw=[l.hover,l.focus,l.selected,l.disabled],Lw={},Ew={},Ln=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Yw("div",{...d,className:o(hp,b(hp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Ln.states=Mw;Ln.options=Lw;Ln.className=hp;Ln.defaultOptions=Ew;import{jsx as Dw}from"react/jsx-runtime";var fp="k-list-custom-value",Pw=[l.hover,l.focus,l.selected,l.disabled],Gw={},Kw={},Je=e=>{let{text:t,hover:a,focus:r,selected:s,disabled:i,...d}=e;return Dw("div",{...d,className:o(fp,b(fp,{hover:a,focus:r,selected:s,disabled:i})),children:t})};Je.states=Pw;Je.options=Gw;Je.className=fp;Je.defaultOptions=Kw;import{jsx as CH}from"react/jsx-runtime";import{jsx as MH}from"react/jsx-runtime";import{jsx as PH,jsxs as GH}from"react/jsx-runtime";import{jsx as zH,jsxs as RH}from"react/jsx-runtime";import{jsx as QH}from"react/jsx-runtime";import{jsx as JH,jsxs as jH}from"react/jsx-runtime";import{jsx as $H,jsxs as e8}from"react/jsx-runtime";import{Fragment as Rw,jsx as st,jsxs as gp}from"react/jsx-runtime";var mh="k-dropdownlist",Fw=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],zw={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Bl={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:x.solid},se=e=>{let{size:t=Bl.size,rounded:a=Bl.rounded,fillMode:r=Bl.fillMode,arrowIconName:s=Bl.arrowIconName,showValue:i=Bl.showValue,valueIconName:d,prefix:p,suffix:m,value:k,placeholder:y,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:L,readonly:E,popup:D,opened:W,adaptive:ge,adaptiveSettings:Ye,adaptiveTitle:$e,adaptiveSubtitle:Ft,adaptiveFilter:Aa,...yl}=e;return gp(Rw,{children:[gp(bt,{...yl,size:t,rounded:a,fillMode:r,hover:A,focus:g,valid:T,invalid:N,required:S,loading:B,disabled:L,readonly:E,className:o(e.className,mh,{"k-icon-picker":!i&&d}),children:[st($,{children:p}),st(bo,{placeholder:y,value:k,showValue:i,valueIconName:d}),st(X,{valid:T,invalid:N,loading:B,disabled:L}),st(J,{loading:B,disabled:L}),st(ee,{children:m}),st(c,{className:"k-input-button",icon:s,rounded:null,size:e.size,fillMode:e.fillMode})]}),W&&D&&st(F,{className:"k-list-container k-dropdownlist-popup",children:D}),ge&&st(re,{adaptive:!0,...Ye,header:st(ae,{actionsEnd:st(c,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Aa,inputValue:k,inputPlaceholder:y,title:$e,subtitle:Ft}),children:st("div",{className:"k-list-container",children:gp(Q,{size:"large",children:[st(P,{text:"List item"}),st(P,{text:"List item"}),st(P,{text:"List item"})]})})})]})};se.states=Fw;se.options=zw;se.className=mh;se.defaultOptions=Bl;import{jsx as M8}from"react/jsx-runtime";import{jsx as G8,jsxs as K8}from"react/jsx-runtime";import{Fragment as Q8,jsx as W8,jsxs as O8}from"react/jsx-runtime";import{jsx as J8}from"react/jsx-runtime";import{jsx as $8,jsxs as eW}from"react/jsx-runtime";import{jsx as rW,jsxs as sW}from"react/jsx-runtime";import{Fragment as kW,jsx as mW,jsxs as uW}from"react/jsx-runtime";import{Fragment as wW,jsx as vW,jsxs as yW}from"react/jsx-runtime";import{Fragment as FW,jsx as DW}from"react/jsx-runtime";import{Fragment as VW,jsx as QW}from"react/jsx-runtime";import{Fragment as ys,jsx as U,jsxs as Se}from"react/jsx-runtime";var uh="k-colorgradient-inputs",Hw=[],Ww={size:[n.small,n.medium,n.large]},kh={mode:"rgba",size:n.medium},Ml=e=>{let{mode:t=kh.mode,size:a,...r}=e;return Se("div",{...r,className:o(uh,"k-hstack"),children:[U("div",{className:"k-vstack",children:U(c,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:a})}),t==="rgba"&&Se(ys,{children:[Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),U("label",{className:"k-colorgradient-input-label",children:"R"})]}),Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),U("label",{className:"k-colorgradient-input-label",children:"G"})]}),Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132",size:a}),U("label",{className:"k-colorgradient-input-label",children:"B"})]}),Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:a}),U("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&Se(ys,{children:[Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"R"})]}),Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"G"})]}),Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&Se(ys,{children:[Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"H"})]}),Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"S"})]}),Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"V"})]}),Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),U("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&Se(ys,{children:[Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"H"})]}),Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"S"})]}),Se("div",{className:"k-vstack",children:[U(ce,{showSpinButton:!1,showClearButton:!1,value:"132"}),U("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&U(ys,{children:Se("div",{className:"k-vstack k-flex-1",children:[U(Z,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),U("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Ml.states=Hw;Ml.options=Ww;Ml.className=uh;Ml.defaultOptions=kh;import{jsx as Ea,jsxs as Ya}from"react/jsx-runtime";var hh="k-colorgradient-color-contrast",Ow=[],Qw={},Vw={},Ll=()=>Ya("div",{className:o(hh,"k-vbox"),children:[Ya("div",{className:"k-contrast-ratio",children:[Ea("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),Ya("span",{className:"k-contrast-validation !k-text-success",children:[Ea(v,{icon:"check"}),Ea(v,{icon:"check"})]})]}),Ya("div",{children:[Ea("span",{children:"AA: 4.5"}),Ya("span",{className:"k-contrast-validation !k-text-success",children:["Pass",Ea(v,{icon:"check"})]})]}),Ya("div",{children:[Ea("span",{children:"AAA: 7.0"}),Ya("span",{className:"k-contrast-validation !k-text-error",children:["Fail",Ea(v,{icon:"x"})]})]})]});Ll.states=Ow;Ll.options=Qw;Ll.className=hh;Ll.defaultOptions=Vw;import{jsx as Bt,jsxs as ws}from"react/jsx-runtime";var En="k-colorgradient",Xw=[l.hover,l.focus,l.readonly,l.disabled],Zw={size:[n.small,n.medium,n.large]},Ht={size:n.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"},zo=e=>{let{size:t=Ht.size,mode:a=Ht.mode,readonly:r=Ht.readonly,disabled:s=Ht.disabled,gradientStyle:i=Ht.gradientStyle,dragHandleStyle:d=Ht.dragHandleStyle,alphaStyle:p=Ht.alphaStyle,alphaStyleHorizontal:m=Ht.alphaStyleHorizontal,contrast:k=Ht.contrast,dir:y,hover:A,focus:g,hoverHandle:T,focusHandle:N,canvasOrientation:S=Ht.canvasOrientation,...B}=e;return ws("div",{...B,className:o(e.className,En,C(En,{size:t}),b(En,{hover:A,focus:g,readonly:r,disabled:s})),dir:y,children:[!S||S==="horizontal"&&ws("div",{className:"k-colorgradient-canvas k-hstack",children:[Bt("div",{className:"k-hsv-rectangle",style:i,children:Bt("div",{className:"k-hsv-gradient",children:Bt("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":T,"k-focus":N}),style:d})})}),ws("div",{className:"k-hsv-controls k-hstack",children:[Bt(sp,{className:"k-hue-slider",hover:T,focus:N}),a!=="rgb"&&a!=="hsv"&&Bt(sp,{className:"k-alpha-slider",hover:T,focus:N,trackStyle:p})]})]}),S==="vertical"&&ws("div",{className:"k-colorgradient-canvas k-vstack",children:[Bt("div",{className:"k-hsv-rectangle",style:i,children:Bt("div",{className:"k-hsv-gradient",children:Bt("div",{className:o("k-hsv-draghandle","k-draghandle",{"k-hover":T,"k-focus":N}),style:d})})}),ws("div",{className:"k-hsv-controls k-vstack",children:[Bt(rp,{className:"k-hue-slider",hover:T,focus:N}),a!=="rgb"&&a!=="hsv"&&Bt(rp,{className:"k-alpha-slider",hover:T,focus:N,trackStyle:m})]})]}),Bt(Ml,{mode:e.mode,size:t}),k&&Bt(Ll,{})]})};zo.states=Xw;zo.options=Zw;zo.className=En;zo.defaultOptions=Ht;import{jsx as fO}from"react/jsx-runtime";import{jsx as vO}from"react/jsx-runtime";import{jsx as Jw}from"react/jsx-runtime";var fh=e=>Jw("tr",{children:e.children});import{jsx as qw}from"react/jsx-runtime";var xp="k-colorpalette-tile",jw=[l.hover,l.focus,l.selected],Uw={},As=e=>{let{color:t,tileSize:a,hover:r,focus:s,selected:i,...d}=e,p={backgroundColor:t,width:a?a+"px":"",height:a?a+"px":""};return qw("td",{...d,className:o(e.className,xp,b(xp,{hover:r,focus:s,selected:i})),style:p})};As.states=jw;As.options=Uw;As.className=xp;import{jsx as Ts}from"react/jsx-runtime";var Yn="k-colorpalette",_w=[l.disabled],$w={size:[n.small,n.medium,n.large]},bp={columns:10,size:n.medium},El=e=>{let{size:t=bp.size,palette:a,columns:r=bp.columns,tileSize:s,disabled:i,...d}=e,p=[];if(a){let m=r||a.columns,k=a.colors?a.colors:a;Array.isArray(k)&&Array.from({length:Math.ceil(k.length/m)},(y,A)=>{let g=[];k.slice(A*m,(A+1)*m).map((N,S)=>{g.push(Ts(As,{color:N,tileSize:s},S))});let T=Ts(fh,{children:g},A);p.push(T)})}return Ts("div",{...d,className:o(e.className,Yn,b(Yn,{disabled:i}),C(Yn,{size:t})),children:Ts("table",{className:"k-colorpalette-table",children:Ts("tbody",{children:p.length>0?p:e.children})})})};El.states=_w;El.options=$w;El.className=Yn;El.defaultOptions=bp;var vp={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4","#ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}};import{jsx as OO}from"react/jsx-runtime";import{jsx as Mt,jsxs as Yl}from"react/jsx-runtime";var Pn="k-coloreditor",eA=[l.focus],tA={size:[n.small,n.medium,n.large]},Pl={size:n.medium,view:"gradient",palette:vp.office,actionButtons:!0,canvasOrientation:"horizontal"},to=e=>{let{size:t=Pl.size,view:a=Pl.view,palette:r=Pl.palette,color:s,currentColor:i,focus:d,focusView:p,dir:m,group:k,actionButtons:y=Pl.actionButtons,canvasOrientation:A=Pl.canvasOrientation,...g}=e;return Yl("div",{...g,className:o(e.className,"k-flatcolorpicker",Pn,C(Pn,{size:t}),b(Pn,{focus:d})),dir:m,children:[Yl("div",{className:"k-coloreditor-header k-hstack",children:[Mt("div",{className:"k-coloreditor-header-actions k-hstack",children:k&&Yl(Y,{fillMode:"flat",children:[Mt(c,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:a==="gradient"}),Mt(c,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:a==="palette"})]})}),Mt("div",{className:"k-spacer"}),Yl("div",{className:"k-coloreditor-header-actions k-hstack",children:[Mt(c,{fillMode:"flat",icon:"droplet-slash",size:t}),Yl("div",{className:"k-coloreditor-preview k-vstack",children:[Mt(Yo,{className:"k-coloreditor-preview-color",color:s}),Mt(Yo,{className:"k-coloreditor-current-color",color:i})]})]})]}),Mt("div",{className:"k-coloreditor-views k-vstack",children:a==="gradient"?Mt(zo,{focus:p,size:t,canvasOrientation:A}):Mt(El,{palette:r,size:t})}),y&&Yl(O,{className:"k-coloreditor-footer",alignment:"start",children:[Mt(c,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),Mt(c,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};to.states=eA;to.options=tA;to.className=Pn;to.defaultOptions=Pl;import{jsx as nQ}from"react/jsx-runtime";import{jsx as mQ}from"react/jsx-runtime";import{jsx as fQ}from"react/jsx-runtime";import{jsx as vQ}from"react/jsx-runtime";import{Fragment as lA,jsx as Lt,jsxs as wp}from"react/jsx-runtime";var gh="k-colorpicker",oA=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled],aA={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Ns={arrowIconName:"caret-alt-down",size:bt.defaultOptions.size,rounded:bt.defaultOptions.rounded,fillMode:bt.defaultOptions.fillMode},Et=e=>{let{size:t=Ns.size,rounded:a=Ns.rounded,fillMode:r=Ns.fillMode,arrowIconName:s=Ns.arrowIconName,prefix:i,suffix:d,value:p,placeholder:m,hover:k,focus:y,valid:A,invalid:g,required:T,disabled:N,valueIconName:S,popup:B,opened:L,adaptive:E,adaptiveSettings:D,adaptiveTitle:W,adaptiveSubtitle:ge,...Ye}=e;retu