@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 79.2 kB
JavaScript
var ni=Object.create;var ko=Object.defineProperty;var ai=Object.getOwnPropertyDescriptor;var ri=Object.getOwnPropertyNames;var si=Object.getPrototypeOf,ii=Object.prototype.hasOwnProperty;var li=(t,e)=>{for(var o in e)ko(t,o,{get:e[o],enumerable:!0})},Ta=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ri(e))!ii.call(t,i)&&i!==o&&ko(t,i,{get:()=>e[i],enumerable:!(r=ai(e,i))||r.enumerable});return t};var pi=(t,e,o)=>(o=t!=null?ni(si(t)):{},Ta(e||!t||!t.__esModule?ko(o,"default",{value:t,enumerable:!0}):o,t)),ci=t=>Ta(ko({},"__esModule",{value:!0}),t);var Cm={};li(Cm,{PromptNormal:()=>Lm});module.exports=ci(Cm);var a=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?a(...e):typeof e=="object"?Object.keys(e).map((o,r)=>e[r]||e[o]&&o||null).filter(o=>o!==null).join(" "):e).filter(e=>!!e).join(" ");var L=(t,e)=>a({[`${t}-xs`]:e.size==="xsmall",[`${t}-sm`]:e.size==="small",[`${t}-md`]:e.size==="medium",[`${t}-lg`]:e.size==="large",[`${t}-xl`]:e.size==="xlarge",[`${t}-xxl`]:e.size==="xxlarge",[`${t}-xxxl`]:e.size==="xxxlarge"},{[`${t}-${e.fillMode}`]:e.fillMode},{[`${t}-${e.fillMode}-${e.themeColor}`]:e.fillMode&&e.themeColor},{[`${t}-${e.themeColor}`]:e.themeColor&&e.fillMode===void 0},{"k-rounded-sm":e.rounded==="small","k-rounded-md":e.rounded==="medium","k-rounded-lg":e.rounded==="large","k-rounded-full":e.rounded==="full"}),C=(t,e)=>a({"k-valid":e.valid,"k-invalid":e.invalid,"k-hover":e.hover,"k-focus":e.focus,"k-checked":e.checked,"k-active":e.active,"k-selected":e.selected,"k-disabled":e.disabled,"k-indeterminate":e.indeterminate&&!e.checked,"k-loading":e.loading,"k-empty":e.empty,"k-readonly":e.readonly,"k-highlighted":e.highlighted});var s={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},d={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},c={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},n={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"},Aa={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var Ba=require("react/jsx-runtime"),Lo="k-actions",mi=[],di={},Uo={alignment:"start",orientation:"horizontal"},F=t=>{let{alignment:e=Uo.alignment,orientation:o=Uo.orientation,...r}=t;return(0,Ba.jsx)("div",{...r,className:a(Lo,{[`${Lo}-${e}`]:e,[`${Lo}-${o}`]:o},t.className),children:t.children})};F.states=mi;F.options=di;F.className=Lo;F.defaultOptions=Uo;var Xe=require("react/jsx-runtime"),qo="k-icon k-font-icon",ui=[],fi={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},bi={},Je=t=>{let{size:e,themeColor:o,icon:r,rotate:i,flip:l,...p}=t;return r?(0,Xe.jsx)("span",{...p,className:a(t.className,qo,L(qo,{size:e}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):(0,Xe.jsx)(Xe.Fragment,{})};Je.states=ui;Je.options=fi;Je.className=qo;Je.defaultOptions=bi;var Pa=Je;var te=require("react/jsx-runtime"),Wo="k-icon k-svg-icon",xi=[],hi={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},Ea={viewBox:"0 0 24 24"},Ue=t=>{let{size:e,themeColor:o,rotate:r,flip:i,viewBox:l=Ea.viewBox,icon:p,...u}=t;if(!p)return(0,te.jsx)(te.Fragment,{});p==="none"&&{...u,className:a(t.className,Wo,"k-none")};let b=typeof p=="object"&&p.name&&p.name;return(0,te.jsx)("span",{...u,className:a(t.className,Wo,L("k-icon",{size:e}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:(0,te.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:l,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:t.children})})};Ue.states=xi;Ue.options=hi;Ue.className=Wo;Ue.defaultOptions=Ea;var Yo=Ue;var za=pi(require("@progress/kendo-svg-icons")),Tt=require("react/jsx-runtime"),Ni=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),Si=[],vi={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},Qo={viewBox:"0 0 24 24",type:"svg"},M=t=>{let{size:e,themeColor:o,icon:r,type:i=Qo.type,rotate:l,flip:p,viewBox:u=Qo.viewBox,...b}=t;if(!r)return(0,Tt.jsx)(Tt.Fragment,{});if(i==="svg"){if(r==="none")return(0,Tt.jsx)(Yo,{...b,icon:r,size:e});let x=Ni(`${r}-icon`);return za[x]?(0,Tt.jsx)(Yo,{...b,icon:za[x],size:e,themeColor:o,rotate:l,flip:p,viewBox:u}):(0,Tt.jsx)(Tt.Fragment,{})}return(0,Tt.jsx)(Pa,{...b,icon:r,size:e,themeColor:o,rotate:l,flip:p})};M.states=Si;M.options=vi;M.defaultOptions=Qo;var bt=require("react/jsx-runtime"),Co="k-button",gi=[n.hover,n.focus,n.active,n.selected,n.disabled],ki={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark,c.inverse]},ee={size:s.medium,rounded:f.medium,fillMode:d.solid,themeColor:c.base,showArrow:!1,arrowIconName:"caret-alt-down"},h=t=>{let{size:e=ee.size,rounded:o=ee.rounded,fillMode:r=ee.fillMode,themeColor:i=ee.themeColor,showArrow:l=ee.showArrow,arrowIconName:p=ee.arrowIconName,hover:u,focus:b,active:x,selected:N,disabled:g,icon:m,text:S,iconClassName:v,...I}=t,A=m!==void 0,B=t.children!==void 0;return(0,bt.jsxs)("button",{...I,className:a(t.className,Co,L(Co,{size:e,rounded:o,fillMode:r,themeColor:i}),C(Co,{hover:u,focus:b,active:x,disabled:g,selected:N}),{"k-icon-button":!S&&!B&&A}),children:[m&&(0,bt.jsx)(M,{className:a(v,"k-button-icon"),icon:m}),S?(0,bt.jsxs)(bt.Fragment,{children:[S&&(0,bt.jsx)("span",{className:"k-button-text",children:S}),t.children]}):t.children&&(0,bt.jsx)("span",{className:"k-button-text",children:t.children}),l&&(0,bt.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,bt.jsx)(M,{icon:p})})]})};h.states=gi;h.options=ki;h.className=Co;h.defaultOptions=ee;var Oa=require("react/jsx-runtime"),Q=t=>(0,Oa.jsx)(h,{icon:"folder",...t,children:void 0});var wa=require("react/jsx-runtime"),Z=t=>(0,wa.jsx)(h,{icon:"folder",children:"Button",...t});var Li=require("react/jsx-runtime");var Ra=require("react/jsx-runtime"),qe="k-button-group",Ci=[n.disabled],Mi={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Ka={fillMode:d.solid},K=t=>{let{fillMode:e=Ka.fillMode,disabled:o,stretched:r,...i}=t;return(0,Ra.jsx)("div",{...i,className:a(t.className,qe,L(qe,{fillMode:e}),C(qe,{disabled:o}),{[`${qe}-stretched`]:r}),children:t.children})};K.states=Ci;K.options=Mi;K.className=qe;K.defaultOptions=Ka;var Zo=require("react/jsx-runtime");var jo=require("react/jsx-runtime");var tn=require("react/jsx-runtime");var en=require("react/jsx-runtime");var Ha=require("react/jsx-runtime"),Mo="k-input",Ii=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],yi={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Io={size:s.medium,rounded:s.medium,fillMode:d.solid},P=t=>{let{hover:e,focus:o,disabled:r,invalid:i,valid:l,loading:p,readonly:u,size:b=Io.size,rounded:x=Io.rounded,fillMode:N=Io.fillMode,...g}=t;return(0,Ha.jsx)("span",{...g,className:a(t.className,Mo,L(Mo,{size:b,rounded:x,fillMode:N}),C(Mo,{hover:e,focus:o,disabled:r,invalid:i,valid:l,loading:p,readonly:u}))})};P.states=Ii;P.options=yi;P.className=Mo;P.defaultOptions=Io;var Ga=require("react/jsx-runtime"),yo="k-picker",Ti=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Ai={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},To={size:s.medium,rounded:f.medium,fillMode:d.solid},xt=t=>{let{hover:e,focus:o,disabled:r,invalid:i,valid:l,loading:p,readonly:u,size:b=To.size,rounded:x=To.rounded,fillMode:N=To.fillMode,...g}=t;return(0,Ga.jsx)("span",{...g,className:a(t.className,yo,L(yo,{size:b,rounded:x,fillMode:N}),C(yo,{hover:e,focus:o,disabled:r,invalid:i,valid:l,loading:p,readonly:u})),children:t.children})};xt.states=Ti;xt.options=Ai;xt.className=yo;xt.defaultOptions=To;var ke=require("react/jsx-runtime"),Da="k-clear-value",Bi=[n.disabled,n.loading,n.readonly],Pi={},ht=t=>{let{disabled:e,loading:o,readonly:r,value:i}=t;return e||r||o||!i?(0,ke.jsx)(ke.Fragment,{}):(0,ke.jsx)("span",{className:a(t.className,Da),children:(0,ke.jsx)(M,{icon:"x"})})};ht.states=Bi;ht.options=Pi;ht.className=Da;var $a=require("react/jsx-runtime"),on="k-input-inner",Ei=[],zi={},Ao={type:"text",autocomplete:"off",value:"",placeholder:""},Nt=t=>{let{value:e=Ao.value,type:o=Ao.type,placeholder:r=Ao.placeholder,autocomplete:i=Ao.autocomplete,...l}=t;return(0,$a.jsx)("input",{...l,type:o,className:a(t.className,on,L(on,t)),placeholder:r,autoComplete:i,defaultValue:e})};Nt.states=Ei;Nt.options=zi;Nt.className=on;var We=require("react/jsx-runtime"),nn="k-input-inner",Oi=[],wi={},oe=t=>{let{value:e,placeholder:o,showValue:r,valueIcon:i,valueIconName:l,...p}=t;return(0,We.jsxs)("span",{...p,className:a(t.className,nn,L(nn,t)),children:[i,!i&&l&&(0,We.jsx)(M,{className:"k-input-value-icon",icon:l}),r&&!e&&o,r&&e&&(0,We.jsx)("span",{className:"k-input-value-text",children:e})]})};oe.states=Oi;oe.options=wi;oe.className=nn;var _a=require("react/jsx-runtime"),an="k-input-inner",Ki=[],Ri={},Va={value:"",placeholder:""},Ye=t=>{let{value:e=Va.value,placeholder:o=Va.placeholder,rows:r,...i}=t;return(0,_a.jsx)("textarea",{...i,className:a(t.className,an,L(an,t)),placeholder:o,rows:r,defaultValue:e})};Ye.states=Ki;Ye.options=Ri;Ye.className=an;var Qe=require("react/jsx-runtime"),Fa="k-input-loading-icon",Hi=[n.disabled,n.loading],rt=t=>{let{disabled:e,loading:o}=t;return e||!o?(0,Qe.jsx)(Qe.Fragment,{}):(0,Qe.jsx)("span",{className:a(t.className,Fa,"k-icon k-i-loading")})};rt.states=Hi;rt.className=Fa;var Ze=require("react/jsx-runtime"),Xa="k-input-validation-icon",Gi=[n.valid,n.invalid,n.disabled,n.loading],Di={},tt=t=>{let{valid:e,invalid:o,disabled:r,loading:i}=t,l=o?"warning-circle":"check-circle";return r||i||!!!(e||o)?(0,Ze.jsx)(Ze.Fragment,{}):(0,Ze.jsx)(M,{className:a(Xa),icon:l})};tt.states=Gi;tt.options=Di;tt.className=Xa;var je=require("react/jsx-runtime"),$i="k-input-prefix",Vi={direction:"horizontal"},st=t=>{let{direction:e=Vi.direction,...o}=t;return t.children?(0,je.jsx)("span",{...o,className:a($i,t.className,{[`k-input-prefix-${e}`]:e}),children:t.children}):(0,je.jsx)(je.Fragment,{})};var to=require("react/jsx-runtime"),_i="k-input-suffix",Fi={direction:"horizontal"},it=t=>{let{direction:e=Fi.direction,...o}=t;return t.children?(0,to.jsx)("span",{...o,className:a(_i,t.className,{[`k-input-suffix-${e}`]:e}),children:t.children}):(0,to.jsx)(to.Fragment,{})};var Xi=require("react/jsx-runtime");var Ji=require("react/jsx-runtime");var Ua=require("react/jsx-runtime"),Ja="k-input-separator",Ui={direction:"vertical"},lt=t=>{let{direction:e=Ui.direction,...o}=t;return(0,Ua.jsx)("span",{...o,className:a(Ja,t.className,{[`${Ja}-${e}`]:e})})};var eo=require("react/jsx-runtime"),qa="k-color-preview",qi=[],Wi={},Dt=t=>{let{color:e,iconName:o,...r}=t;return(0,eo.jsxs)("span",{...r,className:a(t.className,qa,{"k-icon-color-preview":o,"k-no-color":!e}),children:[o&&(0,eo.jsx)(M,{icon:o,className:"k-color-preview-icon"}),(0,eo.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:e}})]})};Dt.states=qi;Dt.options=Wi;Dt.className=qa;var rn=require("react/jsx-runtime"),Wa="k-animation-container",Yi=[],Qi={},Ya={positionMode:"absolute"},$t=t=>{let{positionMode:e=Ya.positionMode,animationStyle:o,offset:r,...i}=t;return(0,rn.jsx)("div",{...i,style:{...r,...t.style},className:a(t.className,Wa,"k-animation-container-shown",{"k-animation-container-fixed":e==="fixed"}),children:(0,rn.jsx)("div",{className:"k-child-animation-container",style:o,children:t.children})})};$t.states=Yi;$t.options=Qi;$t.className=Wa;$t.defaultOptions=Ya;var sn=require("react/jsx-runtime"),Qa="k-popup",Zi=[],ji={},Za={positionMode:"absolute"},$=t=>{let{offset:e,positionMode:o=Za.positionMode,animationStyle:r,...i}=t;return(0,sn.jsx)($t,{positionMode:o,offset:e,animationStyle:r,children:(0,sn.jsx)("div",{...i,className:a(t.className,Qa),children:t.children})})};$.states=Zi;$.options=ji;$.className=Qa;$.defaultOptions=Za;var tr=require("react/jsx-runtime"),tl="k-actionsheet-footer",ja={alignment:"stretched",orientation:"horizontal"},oo=t=>{let{alignment:e=ja.alignment,orientation:o=ja.orientation,template:r,as:i=r?"div":F,...l}=t;return(0,tr.jsx)(i,{...l,...!r&&{alignment:e,orientation:o},className:a(t.className,tl),children:t.children})};var Vt=require("react/jsx-runtime"),er="k-searchbox",el=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],ol={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},ln={showIcon:!0,icon:"search",size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode},At=t=>{let{value:e,placeholder:o,size:r,rounded:i,fillMode:l,hover:p,focus:u,valid:b,invalid:x,required:N,loading:g,disabled:m,showIcon:S=ln.showIcon,icon:v=ln.icon,...I}=t;return(0,Vt.jsxs)(P,{...I,size:r,rounded:i,fillMode:l,hover:p,focus:u,valid:b,invalid:x,required:N,loading:g,disabled:m,className:a(t.className,er),children:[S&&(0,Vt.jsx)(M,{className:"k-input-icon",icon:v}),(0,Vt.jsx)(Nt,{placeholder:o,value:e}),(0,Vt.jsx)(rt,{...t}),(0,Vt.jsx)(tt,{...t}),(0,Vt.jsx)(ht,{...t})]})};At.states=el;At.options=ol;At.className=er;At.defaultOptions=ln;var nl=require("react/jsx-runtime");var q=require("react/jsx-runtime"),or="k-textbox",al=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],rl={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},ne={showClearButton:!0,showValidationIcon:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},_t=t=>{let{size:e=ne.size,rounded:o=ne.rounded,fillMode:r=ne.fillMode,separators:i=ne.separators,showClearButton:l=ne.showClearButton,showValidationIcon:p=ne.showValidationIcon,prefix:u,suffix:b,type:x,value:N,placeholder:g,hover:m,focus:S,valid:v,invalid:I,required:A,loading:B,disabled:z,readonly:_,...Lt}=t;return(0,q.jsxs)(P,{...Lt,size:e,rounded:o,fillMode:r,hover:m,focus:S,valid:v,invalid:I,required:A,loading:B,disabled:z,readonly:_,className:a(t.className,or),children:[u&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(st,{children:u}),i&&(0,q.jsx)(lt,{})]}),(0,q.jsx)(Nt,{placeholder:g,value:N,type:x}),p&&(0,q.jsx)(tt,{valid:v,invalid:I,loading:B,disabled:z}),(0,q.jsx)(rt,{loading:B,disabled:z}),l&&(0,q.jsx)(ht,{loading:B,disabled:z,readonly:_,value:N}),b&&(0,q.jsxs)(q.Fragment,{children:[i&&(0,q.jsx)(lt,{}),(0,q.jsx)(it,{children:b})]})]})};_t.states=al;_t.options=rl;_t.className=or;_t.defaultOptions=ne;var sl=require("react/jsx-runtime");var ar=require("react/jsx-runtime");var rr=require("react/jsx-runtime");var et=require("react/jsx-runtime"),sr="k-actionsheet-titlebar",il={},pt=t=>{let{title:e,subtitle:o,actionsStart:r,actionsEnd:i,filter:l,input:p,inputValue:u,inputPlaceholder:b,adaptive:x,children:N,...g}=t;return(0,et.jsxs)("div",{...g,className:a(t.className,sr),children:[(0,et.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[r&&(0,et.jsx)("div",{className:"k-actionsheet-actions",children:r}),!N&&(0,et.jsxs)("div",{className:"k-actionsheet-title",children:[e&&(0,et.jsx)("div",{className:"k-text-center",children:e}),o&&(0,et.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&(0,et.jsx)("div",{className:"k-actionsheet-title",children:N}),i&&(0,et.jsx)("div",{className:"k-actionsheet-actions",children:i})]}),(p||l)&&(0,et.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?(0,et.jsx)(_t,{value:u,placeholder:b,size:x?"large":"medium"}):(0,et.jsx)(At,{placeholder:"Filter",size:x?"large":"medium"})})]})};pt.className=sr;pt.defaultOptions=il;var Le=require("react/jsx-runtime"),pn="k-actionsheet-view",ll=[],pl={},cl={},Ce=t=>{let{adaptive:e,animated:o,children:r,header:i,footer:l,...p}=t,u=(i==null?void 0:i.type)===pt&&(0,Le.jsx)(pt,{adaptive:e,...i==null?void 0:i.props}),b=(l==null?void 0:l.type)===oo&&(0,Le.jsx)(oo,{...l==null?void 0:l.props});return(0,Le.jsxs)("div",{...p,className:a(t.className,pn,{[`${pn}-animated`]:o}),children:[u,(0,Le.jsx)("div",{className:"k-actionsheet-content",children:r}),b]})};Ce.states=ll;Ce.options=pl;Ce.className=pn;Ce.defaultOptions=cl;var ae=require("react/jsx-runtime"),ir="k-actionsheet",ml=[],dl={},no={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},St=t=>{let{side:e=no.side,fullscreen:o=no.fullscreen,adaptive:r=no.adaptive,overlay:i=no.overlay,template:l,children:p,header:u,footer:b,...x}=t;return(0,ae.jsxs)("div",{className:"k-actionsheet-container",children:[i&&(0,ae.jsx)("div",{className:"k-overlay"}),(0,ae.jsx)($t,{animationStyle:{[`${o===!0?"top":e}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${e==="top"||e==="bottom"?"width":null}`]:"100%",[`${e==="left"||e==="right"?"height":null}`]:"100%"},children:(0,ae.jsx)("div",{...x,className:a(t.className,ir,{[`k-actionsheet-${e}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:l||(0,ae.jsx)(Ce,{header:u,footer:b,adaptive:r,...t,children:p})})})]})};St.states=ml;St.options=dl;St.className=ir;St.defaultOptions=no;var ul=require("react/jsx-runtime");var ct=require("react/jsx-runtime"),cn="k-actionsheet-item",fl=[n.hover,n.focus,n.selected,n.disabled],mn=t=>{let{iconName:e,text:o,description:r,hover:i,focus:l,selected:p,disabled:u,...b}=t;return(0,ct.jsxs)("span",{...b,className:a(t.className,cn,C(cn,{hover:i,focus:l,selected:p,disabled:u})),children:[!t.children&&(0,ct.jsx)(ct.Fragment,{children:(0,ct.jsxs)("span",{className:"k-actionsheet-action",children:[e&&(0,ct.jsx)("span",{className:"k-icon-wrap",children:(0,ct.jsx)(M,{className:"k-actionsheet-item-icon",icon:e})}),(0,ct.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,ct.jsx)("span",{className:"k-actionsheet-item-title",children:o}),r&&(0,ct.jsx)("span",{className:"k-actionsheet-item-description",children:r})]})]})}),t.children]})};mn.states=fl;mn.className=cn;var lr=require("react/jsx-runtime");var bl=require("react/jsx-runtime");var xl=require("react/jsx-runtime");var hl=require("react/jsx-runtime");var vt=require("react/jsx-runtime"),ao="k-slider",Nl=[n.hover,n.focus,n.active,n.disabled,n.readonly],Sl={},Ft={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},mt=t=>{let{type:e=Ft.type,orientation:o=Ft.orientation,readonly:r=Ft.readonly,disabled:i=Ft.disabled,handlePosition:l=Ft.handlePosition,showButtons:p=Ft.showButtons,showTicks:u=Ft.showTicks,hover:b,focus:x,active:N,trackStyle:g,dir:m,...S}=t,v,I;return o==="horizontal"?(v=m==="rtl"?"caret-alt-left":"caret-alt-right",I=m==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(v="caret-alt-up",I="caret-alt-down"),(0,vt.jsxs)("div",{...S,className:a(ao,t.className,C(ao,{readonly:r,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":e==="gradient"}),dir:m,children:[p&&(0,vt.jsx)(h,{className:"k-button-decrease",rounded:"full",icon:I}),(0,vt.jsxs)("div",{className:"k-slider-track-wrap",children:[u&&(0,vt.jsx)("ul",{className:"k-reset k-slider-items",children:t.children}),(0,vt.jsxs)("div",{className:"k-slider-track",style:g,children:[(0,vt.jsx)("div",{className:"k-slider-selection"}),e==="range"&&(0,vt.jsx)("span",{className:a("k-draghandle","k-draghandle-start",C(ao,{hover:b,focus:x,active:N}))}),(0,vt.jsx)("span",{className:a("k-draghandle",`k-draghandle-${l}`,C(ao,{hover:b,focus:x,active:N}))})]})]}),p&&(0,vt.jsx)(h,{className:"k-button-increase",rounded:"full",icon:v})]})};mt.states=Nl;mt.options=Sl;mt.className=ao;mt.defaultOptions=Ft;var dn=require("react/jsx-runtime"),cr="k-tick",vl=[],gl={},mr={label:!1},Xt=t=>{let{style:e,label:o=mr.label,orientation:r,large:i,text:l,...p}=t;return(0,dn.jsx)("li",{...p,className:a(t.className,cr,{[`k-tick-${r}`]:r,"k-tick-large":i}),style:e,children:o&&(0,dn.jsx)("span",{className:"k-label",children:l})})};Xt.states=vl;Xt.options=gl;Xt.className=cr;Xt.defaultOptions=mr;var un=require("react/jsx-runtime");var fn=require("react/jsx-runtime");var bn=require("react/jsx-runtime");var xn=require("react/jsx-runtime");var dr=require("react/jsx-runtime"),hn=t=>(0,dr.jsx)(mt,{type:"gradient",showButtons:!1,showTicks:!1,...t});var ur=require("react/jsx-runtime"),Nn=t=>(0,ur.jsx)(mt,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...t});var ro=require("react/jsx-runtime"),fr="k-spin-button",kl=[],Ll={size:[s.small,s.medium,s.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},Sn={size:s.medium,fillMode:d.solid},Me=t=>{let{size:e=Sn.size,fillMode:o=Sn.fillMode,...r}=t;return(0,ro.jsxs)("span",{...r,className:a(fr,t.className),children:[(0,ro.jsx)(h,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:e,fillMode:o}),(0,ro.jsx)(h,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:e,fillMode:o})]})};Me.states=kl;Me.options=Ll;Me.className=fr;Me.defaultOptions=Sn;var X=require("react/jsx-runtime"),br="k-numerictextbox",Cl=[n.hover,n.focus,n.valid,n.invalid,n.loading,n.required,n.disabled,n.readonly],Ml={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},re={showSpinButton:!0,showClearButton:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},H=t=>{let{size:e=re.size,rounded:o=re.rounded,fillMode:r=re.fillMode,separators:i=re.separators,showClearButton:l=re.showClearButton,showSpinButton:p=re.showSpinButton,prefix:u,suffix:b,value:x,placeholder:N,hover:g,focus:m,valid:S,invalid:v,required:I,loading:A,disabled:B,readonly:z,..._}=t;return(0,X.jsxs)(P,{..._,size:e,rounded:o,fillMode:r,hover:g,focus:m,valid:S,invalid:v,required:I,loading:A,disabled:B,readonly:z,className:a(t.className,br),children:[u&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(st,{children:u}),i&&(0,X.jsx)(lt,{})]}),(0,X.jsx)(Nt,{placeholder:N,value:x}),(0,X.jsx)(tt,{valid:S,invalid:v,loading:A,disabled:B}),(0,X.jsx)(rt,{loading:A,disabled:B}),l&&(0,X.jsx)(ht,{loading:A,disabled:B,readonly:z,value:x}),b&&(0,X.jsxs)(X.Fragment,{children:[i&&(0,X.jsx)(lt,{}),(0,X.jsx)(it,{children:b})]}),p&&(0,X.jsx)(Me,{className:"k-input-spinner",size:e,fillMode:r})]})};H.states=Cl;H.options=Ml;H.className=br;H.defaultOptions=re;var Il=require("react/jsx-runtime");var hr=require("react/jsx-runtime"),yl="k-no-data",so=t=>(0,hr.jsx)("span",{className:a(yl,t.className),children:t.children});var Ct=require("react/jsx-runtime"),vn="k-list",Tl=[],Al={size:[s.small,s.medium,s.large]},Nr={size:s.medium},O=t=>{let{size:e=Nr.size,virtualization:o,children:r,optionLabel:i,customValue:l,screenReaders:p,...u}=t,b,x,N,g,m=[];return r?r.map((S,v)=>{S.type===J?(S.props.root===!0?(b=S.props.label,S.props.children.map((I,A)=>{m.push((0,Ct.jsx)(T,{...I.props},`optChild-${A}-${new Date().getTime()}`))})):S.props.children.forEach((I,A)=>{let B="";A===0&&(B=S.props.label),m.push((0,Ct.jsx)(T,{className:A===0?"k-first":"",...I.props,groupLabel:B},`groupLabel-${A}-${new Date().getTime()}`))}),x=(0,Ct.jsx)(J,{label:b,virtualization:o,children:m})):S.type===T&&(m.push((0,Ct.jsx)(T,{...S.props},`${S.type}-${v}`)),N=(0,Ct.jsx)(Ie,{virtualization:o,children:m}),p&&(g=(0,Ct.jsxs)(so,{className:"k-sr-only",children:[m.length," items found."]})))}):g=(0,Ct.jsx)(so,{children:"No data found."}),(0,Ct.jsxs)("div",{...u,className:a(t.className,vn,L(vn,{size:e}),{"k-virtual-list":o}),children:[i,l,x,N,g]})};O.states=Tl;O.options=Al;O.className=vn;O.defaultOptions=Nr;var Mt=require("react/jsx-runtime"),gn="k-list",Bl=[],Pl={size:[s.small,s.medium,s.large]},Sr={size:s.medium},se=t=>{let{size:e=Sr.size,virtualization:o,children:r,...i}=t,l,p,u,b=[];return r?r.map((x,N)=>{x.type===J?(x.props.root===!0?(l=x.props.label,x.props.children.map((g,m)=>{b.push((0,Mt.jsx)(T,{...g.props},`optChild-${m}-${new Date().getTime()}`))})):(b.push((0,Mt.jsx)(vr,{...x.props,children:x.props.label},`listChild-${N}`)),x.props.children.map((g,m)=>{b.push((0,Mt.jsx)(T,{...g.props},`fwOptChild-${m}-${new Date().getTime()}`))})),p=(0,Mt.jsx)(J,{label:l,virtualization:o,children:b})):x.type===T&&(b.push((0,Mt.jsx)(T,{...x.props},`${x.type}-${N}`)),u=(0,Mt.jsx)(Ie,{virtualization:o,children:b}))}):u=(0,Mt.jsx)(so,{children:"No data found."}),(0,Mt.jsxs)("div",{...i,className:a(t.className,gn,L(gn,{size:e}),{"k-virtual-list":o}),children:[p,u]})};se.states=Bl;se.options=Pl;se.className=gn;se.defaultOptions=Sr;var Ln=require("react/jsx-runtime"),Bo="k-checkbox",El=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],zl={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full]},kn={size:s.medium,rounded:f.medium},Jt=t=>{let{id:e,checked:o,indeterminate:r,hover:i,focus:l,disabled:p,invalid:u,valid:b,required:x,size:N=kn.size,rounded:g=kn.rounded,...m}=t;return(0,Ln.jsx)("span",{className:"k-checkbox-wrap",children:(0,Ln.jsx)("input",{...m,id:e,type:"checkbox",defaultChecked:o,required:x,className:a(t.className,Bo,L(Bo,{size:N,rounded:g}),C(Bo,{hover:i,focus:l,disabled:p,invalid:u,valid:b,indeterminate:r,checked:o}))})})};Jt.states=El;Jt.options=zl;Jt.className=Bo;Jt.defaultOptions=kn;var Lr=require("react/jsx-runtime"),gr="k-checkbox-list",Ol=[],wl={},kr={layout:"vertical"},ye=t=>{let{layout:e=kr.layout,...o}=t;return(0,Lr.jsx)("ul",{...o,className:a(t.className,gr,{[`k-list-${e}`]:e}),children:t.children})};ye.states=Ol;ye.options=wl;ye.className=gr;ye.defaultOptions=kr;var Mr=require("react/jsx-runtime"),Cr="k-checkbox-list-item",Kl=[],Rl={},Hl={},Te=t=>{let{...e}=t;return(0,Mr.jsx)("li",{...e,className:a(t.className,Cr),children:t.children})};Te.states=Kl;Te.options=Rl;Te.className=Cr;Te.defaultOptions=Hl;var Mn=require("react/jsx-runtime");var In=require("react/jsx-runtime");var yn=require("react/jsx-runtime");var Tn=require("react/jsx-runtime");var Gl=require("react/jsx-runtime");var Dl=require("react/jsx-runtime");var ie=require("react/jsx-runtime"),An="k-list-item",$l=[n.hover,n.focus,n.selected,n.disabled],Vl={},_l={},T=t=>{let{text:e,groupLabel:o,group:r,showIcon:i,iconName:l,showCheckbox:p,checked:u,hover:b,focus:x,selected:N,disabled:g,...m}=t,S=e||t.children;return(0,ie.jsxs)("li",{...m,className:a(t.className,r?"k-list-group-item":An,C(An,{hover:b,focus:x,disabled:g,selected:N})),children:[p&&(0,ie.jsx)(Jt,{checked:u}),i&&(0,ie.jsx)(M,{icon:l}),(0,ie.jsx)("span",{className:"k-list-item-text",children:S}),o&&o!==""&&(0,ie.jsx)("div",{className:"k-list-item-group-label",children:o})]})};T.states=$l;T.options=Vl;T.className=An;T.defaultOptions=_l;var Ae=require("react/jsx-runtime"),Fl="k-list-content",Ie=t=>{let{virtualization:e,...o}=t;return(0,Ae.jsxs)("div",{...o,className:a(Fl,t.className),children:[(0,Ae.jsx)("ul",{className:a("k-list-ul"),children:t.children}),e&&(0,Ae.jsx)("div",{className:"k-height-container",children:(0,Ae.jsx)("div",{})})]})};var Bn=require("react/jsx-runtime"),Xl="k-list-group-sticky-header",Ir=t=>(0,Bn.jsx)("div",{className:a(Xl,t.className),children:(0,Bn.jsx)("div",{className:"k-list-header-text",children:t.children})});var le=require("react/jsx-runtime"),J=t=>{let{virtualization:e,label:o}=t;return(0,le.jsxs)(le.Fragment,{children:[o&&(0,le.jsx)(Ir,{children:o}),t.children&&(0,le.jsx)(Ie,{virtualization:e,children:t.children})]})};var Pn=require("react/jsx-runtime"),Jl="k-list-group-item",vr=t=>(0,Pn.jsx)("li",{className:a(Jl,t.className),children:(0,Pn.jsx)("span",{className:"k-list-item-text",children:t.children})});var yr=require("react/jsx-runtime"),En="k-list-optionlabel",Ul=[n.hover,n.focus,n.selected,n.disabled],ql={},Wl={},Po=t=>{let{text:e,hover:o,focus:r,selected:i,disabled:l,...p}=t;return(0,yr.jsx)("div",{...p,className:a(En,C(En,{hover:o,focus:r,selected:i,disabled:l})),children:e})};Po.states=Ul;Po.options=ql;Po.className=En;Po.defaultOptions=Wl;var Tr=require("react/jsx-runtime"),zn="k-list-custom-value",Yl=[n.hover,n.focus,n.selected,n.disabled],Ql={},Zl={},Ut=t=>{let{text:e,hover:o,focus:r,selected:i,disabled:l,...p}=t;return(0,Tr.jsx)("div",{...p,className:a(zn,C(zn,{hover:o,focus:r,selected:i,disabled:l})),children:e})};Ut.states=Yl;Ut.options=Ql;Ut.className=zn;Ut.defaultOptions=Zl;var jl=require("react/jsx-runtime");var tp=require("react/jsx-runtime");var Ar=require("react/jsx-runtime");var Br=require("react/jsx-runtime");var ep=require("react/jsx-runtime");var Pr=require("react/jsx-runtime");var Er=require("react/jsx-runtime");var w=require("react/jsx-runtime"),zr="k-dropdownlist",op=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],np={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Be={showValue:!0,arrowIconName:"caret-alt-down",size:s.medium,rounded:f.medium,fillMode:d.solid},qt=t=>{let{size:e=Be.size,rounded:o=Be.rounded,fillMode:r=Be.fillMode,arrowIconName:i=Be.arrowIconName,showValue:l=Be.showValue,valueIconName:p,prefix:u,suffix:b,value:x,placeholder:N,hover:g,focus:m,valid:S,invalid:v,required:I,loading:A,disabled:B,readonly:z,popup:_,opened:Lt,adaptive:_e,adaptiveSettings:Fe,adaptiveTitle:Xo,adaptiveSubtitle:Jo,adaptiveFilter:ei,...oi}=t;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(xt,{...oi,size:e,rounded:o,fillMode:r,hover:g,focus:m,valid:S,invalid:v,required:I,loading:A,disabled:B,readonly:z,className:a(t.className,zr,{"k-icon-picker":!l&&p}),children:[(0,w.jsx)(st,{children:u}),(0,w.jsx)(oe,{placeholder:N,value:x,showValue:l,valueIconName:p}),(0,w.jsx)(tt,{valid:S,invalid:v,loading:A,disabled:B}),(0,w.jsx)(rt,{loading:A,disabled:B}),(0,w.jsx)(it,{children:b}),(0,w.jsx)(h,{className:"k-input-button",icon:i,rounded:null,size:t.size,fillMode:t.fillMode})]}),Lt&&_&&(0,w.jsx)($,{className:"k-list-container k-dropdownlist-popup",children:_}),_e&&(0,w.jsx)(St,{adaptive:!0,...Fe,header:(0,w.jsx)(pt,{actionsEnd:(0,w.jsx)(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ei,inputValue:x,inputPlaceholder:N,title:Xo,subtitle:Jo}),children:(0,w.jsx)("div",{className:"k-list-container",children:(0,w.jsxs)(O,{size:"large",children:[(0,w.jsx)(T,{text:"List item"}),(0,w.jsx)(T,{text:"List item"}),(0,w.jsx)(T,{text:"List item"})]})})})]})};qt.states=op;qt.options=np;qt.className=zr;qt.defaultOptions=Be;var ap=require("react/jsx-runtime");var Or=require("react/jsx-runtime");var On=require("react/jsx-runtime");var rp=require("react/jsx-runtime");var wr=require("react/jsx-runtime");var Kr=require("react/jsx-runtime");var wn=require("react/jsx-runtime");var Kn=require("react/jsx-runtime");var Rr=require("react/jsx-runtime");var Hr=require("react/jsx-runtime");var k=require("react/jsx-runtime"),Gr="k-colorgradient-inputs",sp=[],ip={size:[s.small,s.medium,s.large]},Dr={mode:"rgba",size:s.medium},Pe=t=>{let{mode:e=Dr.mode,size:o,...r}=t;return(0,k.jsxs)("div",{...r,className:a(Gr,"k-hstack"),children:[(0,k.jsx)("div",{className:"k-vstack",children:(0,k.jsx)(h,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),e==="rgba"&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]}),(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),e==="rgb"&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),e==="hsva"&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]}),(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),e==="hsv"&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,k.jsxs)("div",{className:"k-vstack",children:[(0,k.jsx)(H,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),e==="hex"&&(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)("div",{className:"k-vstack k-flex-1",children:[(0,k.jsx)(_t,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),(0,k.jsx)("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Pe.states=sp;Pe.options=ip;Pe.className=Gr;Pe.defaultOptions=Dr;var W=require("react/jsx-runtime"),$r="k-colorgradient-color-contrast",lp=[],pp={},cp={},Ee=()=>(0,W.jsxs)("div",{className:a($r,"k-vbox"),children:[(0,W.jsxs)("div",{className:"k-contrast-ratio",children:[(0,W.jsx)("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),(0,W.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:[(0,W.jsx)(M,{icon:"check"}),(0,W.jsx)(M,{icon:"check"})]})]}),(0,W.jsxs)("div",{children:[(0,W.jsx)("span",{children:"AA: 4.5"}),(0,W.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:["Pass",(0,W.jsx)(M,{icon:"check"})]})]}),(0,W.jsxs)("div",{children:[(0,W.jsx)("span",{children:"AAA: 7.0"}),(0,W.jsxs)("span",{className:"k-contrast-validation !k-text-error",children:["Fail",(0,W.jsx)(M,{icon:"x"})]})]})]});Ee.states=lp;Ee.options=pp;Ee.className=$r;Ee.defaultOptions=cp;var G=require("react/jsx-runtime"),Eo="k-colorgradient",mp=[n.hover,n.focus,n.readonly,n.disabled],dp={size:[s.small,s.medium,s.large]},gt={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"},Wt=t=>{let{size:e=gt.size,mode:o=gt.mode,readonly:r=gt.readonly,disabled:i=gt.disabled,gradientStyle:l=gt.gradientStyle,dragHandleStyle:p=gt.dragHandleStyle,alphaStyle:u=gt.alphaStyle,alphaStyleHorizontal:b=gt.alphaStyleHorizontal,contrast:x=gt.contrast,dir:N,hover:g,focus:m,hoverHandle:S,focusHandle:v,canvasOrientation:I=gt.canvasOrientation,...A}=t;return(0,G.jsxs)("div",{...A,className:a(t.className,Eo,L(Eo,{size:e}),C(Eo,{hover:g,focus:m,readonly:r,disabled:i})),dir:N,children:[!I||I==="horizontal"&&(0,G.jsxs)("div",{className:"k-colorgradient-canvas k-hstack",children:[(0,G.jsx)("div",{className:"k-hsv-rectangle",style:l,children:(0,G.jsx)("div",{className:"k-hsv-gradient",children:(0,G.jsx)("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":S,"k-focus":v}),style:p})})}),(0,G.jsxs)("div",{className:"k-hsv-controls k-hstack",children:[(0,G.jsx)(Nn,{className:"k-hue-slider",hover:S,focus:v}),o!=="rgb"&&o!=="hsv"&&(0,G.jsx)(Nn,{className:"k-alpha-slider",hover:S,focus:v,trackStyle:u})]})]}),I==="vertical"&&(0,G.jsxs)("div",{className:"k-colorgradient-canvas k-vstack",children:[(0,G.jsx)("div",{className:"k-hsv-rectangle",style:l,children:(0,G.jsx)("div",{className:"k-hsv-gradient",children:(0,G.jsx)("div",{className:a("k-hsv-draghandle","k-draghandle",{"k-hover":S,"k-focus":v}),style:p})})}),(0,G.jsxs)("div",{className:"k-hsv-controls k-vstack",children:[(0,G.jsx)(hn,{className:"k-hue-slider",hover:S,focus:v}),o!=="rgb"&&o!=="hsv"&&(0,G.jsx)(hn,{className:"k-alpha-slider",hover:S,focus:v,trackStyle:b})]})]}),(0,G.jsx)(Pe,{mode:t.mode,size:e}),x&&(0,G.jsx)(Ee,{})]})};Wt.states=mp;Wt.options=dp;Wt.className=Eo;Wt.defaultOptions=gt;var up=require("react/jsx-runtime");var fp=require("react/jsx-runtime");var _r=require("react/jsx-runtime"),Vr=t=>(0,_r.jsx)("tr",{children:t.children});var Fr=require("react/jsx-runtime"),Rn="k-colorpalette-tile",bp=[n.hover,n.focus,n.selected],xp={},io=t=>{let{color:e,tileSize:o,hover:r,focus:i,selected:l,...p}=t,u={backgroundColor:e,width:o?o+"px":"",height:o?o+"px":""};return(0,Fr.jsx)("td",{...p,className:a(t.className,Rn,C(Rn,{hover:r,focus:i,selected:l})),style:u})};io.states=bp;io.options=xp;io.className=Rn;var ze=require("react/jsx-runtime"),zo="k-colorpalette",hp=[n.disabled],Np={size:[s.small,s.medium,s.large]},Hn={columns:10,size:s.medium},Oe=t=>{let{size:e=Hn.size,palette:o,columns:r=Hn.columns,tileSize:i,disabled:l,...p}=t,u=[];if(o){let b=r||o.columns,x=o.colors?o.colors:o;Array.isArray(x)&&Array.from({length:Math.ceil(x.length/b)},(N,g)=>{let m=[];x.slice(g*b,(g+1)*b).map((v,I)=>{m.push((0,ze.jsx)(io,{color:v,tileSize:i},I))});let S=(0,ze.jsx)(Vr,{children:m},g);u.push(S)})}return(0,ze.jsx)("div",{...p,className:a(t.className,zo,C(zo,{disabled:l}),L(zo,{size:e})),children:(0,ze.jsx)("table",{className:"k-colorpalette-table",children:(0,ze.jsx)("tbody",{children:u.length>0?u:t.children})})})};Oe.states=hp;Oe.options=Np;Oe.className=zo;Oe.defaultOptions=Hn;var Gn={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}};var Sp=require("react/jsx-runtime");var R=require("react/jsx-runtime"),Oo="k-coloreditor",vp=[n.focus],gp={size:[s.small,s.medium,s.large]},we={size:s.medium,view:"gradient",palette:Gn.office,actionButtons:!0,canvasOrientation:"horizontal"},It=t=>{let{size:e=we.size,view:o=we.view,palette:r=we.palette,color:i,currentColor:l,focus:p,focusView:u,dir:b,group:x,actionButtons:N=we.actionButtons,canvasOrientation:g=we.canvasOrientation,...m}=t;return(0,R.jsxs)("div",{...m,className:a(t.className,"k-flatcolorpicker",Oo,L(Oo,{size:e}),C(Oo,{focus:p})),dir:b,children:[(0,R.jsxs)("div",{className:"k-coloreditor-header k-hstack",children:[(0,R.jsx)("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&(0,R.jsxs)(K,{fillMode:"flat",children:[(0,R.jsx)(h,{className:"k-group-start",size:e,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),(0,R.jsx)(h,{className:"k-group-end",size:e,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),(0,R.jsx)("div",{className:"k-spacer"}),(0,R.jsxs)("div",{className:"k-coloreditor-header-actions k-hstack",children:[(0,R.jsx)(h,{fillMode:"flat",icon:"droplet-slash",size:e}),(0,R.jsxs)("div",{className:"k-coloreditor-preview k-vstack",children:[(0,R.jsx)(Dt,{className:"k-coloreditor-preview-color",color:i}),(0,R.jsx)(Dt,{className:"k-coloreditor-current-color",color:l})]})]})]}),(0,R.jsx)("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?(0,R.jsx)(Wt,{focus:u,size:e,canvasOrientation:g}):(0,R.jsx)(Oe,{palette:r,size:e})}),N&&(0,R.jsxs)(F,{className:"k-coloreditor-footer",alignment:"start",children:[(0,R.jsx)(h,{themeColor:"primary",size:e,className:"k-coloreditor-apply",children:"Apply"}),(0,R.jsx)(h,{className:"k-coloreditor-cancel",size:e,children:"Cancel"})]})]})};It.states=vp;It.options=gp;It.className=Oo;It.defaultOptions=we;var kp=require("react/jsx-runtime");var Lp=require("react/jsx-runtime");var Cp=require("react/jsx-runtime");var Mp=require("react/jsx-runtime");var D=require("react/jsx-runtime"),Xr="k-colorpicker",Ip=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled],yp={size:[s.small,s.medium,s.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},lo={arrowIconName:"caret-alt-down",size:xt.defaultOptions.size,rounded:xt.defaultOptions.rounded,fillMode:xt.defaultOptions.fillMode},Bt=t=>{let{size:e=lo.size,rounded:o=lo.rounded,fillMode:r=lo.fillMode,arrowIconName:i=lo.arrowIconName,prefix:l,suffix:p,value:u,placeholder:b,hover:x,focus:N,valid:g,invalid:m,required:S,disabled:v,valueIconName:I,popup:A,opened:B,adaptive:z,adaptiveSettings:_,adaptiveTitle:Lt,adaptiveSubtitle:_e,...Fe}=t;return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(xt,{...Fe,size:e,rounded:o,fillMode:r,hover:x,focus:N,valid:g,invalid:m,required:S,disabled:v,className:a(t.className,Xr,"k-icon-picker"),children:[(0,D.jsx)(st,{children:l}),(0,D.jsx)(oe,{placeholder:b,value:u,showValue:!1,valueIcon:(0,D.jsx)(Dt,{className:"k-value-icon",color:u,iconName:I}),valueIconName:I}),(0,D.jsx)(it,{children:p}),(0,D.jsx)(h,{className:"k-input-button",icon:i,rounded:null,size:e,fillMode:r})]}),B&&A&&(0,D.jsx)($,{className:"k-colorpicker-popup",children:A}),z&&(0,D.jsx)(St,{adaptive:!0,..._,header:(0,D.jsx)(pt,{actionsEnd:(0,D.jsx)(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:Lt,subtitle:_e}),footer:(0,D.jsxs)(oo,{children:[(0,D.jsx)(h,{text:"Cancel",size:"large",themeColor:"base"}),(0,D.jsx)(h,{text:"Set",size:"large",themeColor:"primary"})]}),children:(0,D.jsx)(It,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};Bt.states=Ip;Bt.options=yp;Bt.className=Xr;Bt.defaultOptions