@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 50.1 kB
JavaScript
var $a=Object.create;var pt=Object.defineProperty;var _a=Object.getOwnPropertyDescriptor;var Fa=Object.getOwnPropertyNames;var Xa=Object.getPrototypeOf,Ja=Object.prototype.hasOwnProperty;var qa=(e,t)=>{for(var o in t)pt(e,o,{get:t[o],enumerable:!0})},go=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Fa(t))!Ja.call(e,r)&&r!==o&&pt(e,r,{get:()=>t[r],enumerable:!(i=_a(t,r))||i.enumerable});return e};var Ua=(e,t,o)=>(o=e!=null?$a(Xa(e)):{},go(t||!e||!e.__esModule?pt(o,"default",{value:e,enumerable:!0}):o,e)),Wa=e=>go(pt({},"__esModule",{value:!0}),e);var gn={};qa(gn,{ColorPickerPopupPalette:()=>kn});module.exports=Wa(gn);var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,i)=>t[i]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var k=(e,t)=>s({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),g=(e,t)=>s({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},b={small:"small",medium:"medium",large:"large",full:"full"},u={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},h={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},a={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"};var yo=require("react/jsx-runtime"),mt="k-actions",Qa=[],Ya={},Mt={alignment:"start",orientation:"horizontal"},le=e=>{let{alignment:t=Mt.alignment,orientation:o=Mt.orientation,...i}=e;return(0,yo.jsx)("div",{...i,className:s(mt,{[`${mt}-${t}`]:t,[`${mt}-${o}`]:o},e.className),children:e.children})};le.states=Qa;le.options=Ya;le.className=mt;le.defaultOptions=Mt;var qe=require("react/jsx-runtime"),At="k-icon k-font-icon",Za=[],ja={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info,h.light,h.dark]},es={},Ue=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:l,...c}=e;return i?(0,qe.jsx)("span",{...c,className:s(e.className,At,k(At,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):(0,qe.jsx)(qe.Fragment,{})};Ue.states=Za;Ue.options=ja;Ue.className=At;Ue.defaultOptions=es;var Co=Ue;var Se=require("react/jsx-runtime"),Tt="k-icon k-svg-icon",ts=[],os={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info,h.light,h.dark]},Io={viewBox:"0 0 24 24"},We=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:l=Io.viewBox,icon:c,...f}=e;if(!c)return(0,Se.jsx)(Se.Fragment,{});c==="none"&&{...f,className:s(e.className,Tt,"k-none")};let p=typeof c=="object"&&c.name&&c.name;return(0,Se.jsx)("span",{...f,className:s(e.className,Tt,k("k-icon",{size:t}),{[`k-svg-i-${p}`]:p,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:(0,Se.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:l,dangerouslySetInnerHTML:typeof c=="object"?{__html:c.content}:void 0,children:c?void 0:e.children})})};We.states=ts;We.options=os;We.className=Tt;We.defaultOptions=Io;var zt=We;var Mo=Ua(require("@progress/kendo-svg-icons")),ae=require("react/jsx-runtime"),as=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ss=[],is={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info,h.light,h.dark]},Et={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:i,type:r=Et.type,rotate:l,flip:c,viewBox:f=Et.viewBox,...p}=e;if(!i)return(0,ae.jsx)(ae.Fragment,{});if(r==="svg"){if(i==="none")return(0,ae.jsx)(zt,{...p,icon:i,size:t});let m=as(`${i}-icon`);return Mo[m]?(0,ae.jsx)(zt,{...p,icon:Mo[m],size:t,themeColor:o,rotate:l,flip:c,viewBox:f}):(0,ae.jsx)(ae.Fragment,{})}return(0,ae.jsx)(Co,{...p,icon:i,size:t,themeColor:o,rotate:l,flip:c})};M.states=ss;M.options=is;M.defaultOptions=Et;var X=require("react/jsx-runtime"),ft="k-button",ns=[a.hover,a.focus,a.active,a.selected,a.disabled],rs={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link],themeColor:[h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info,h.light,h.dark,h.inverse]},Le={size:n.medium,rounded:b.medium,fillMode:u.solid,themeColor:h.base,showArrow:!1,arrowIconName:"caret-alt-down"},L=e=>{let{size:t=Le.size,rounded:o=Le.rounded,fillMode:i=Le.fillMode,themeColor:r=Le.themeColor,showArrow:l=Le.showArrow,arrowIconName:c=Le.arrowIconName,hover:f,focus:p,active:m,selected:x,disabled:v,icon:N,text:S,iconClassName:y,...I}=e,A=N!==void 0,z=e.children!==void 0;return(0,X.jsxs)("button",{...I,className:s(e.className,ft,k(ft,{size:t,rounded:o,fillMode:i,themeColor:r}),g(ft,{hover:f,focus:p,active:m,disabled:v,selected:x}),{"k-icon-button":!S&&!z&&A}),children:[N&&(0,X.jsx)(M,{className:s(y,"k-button-icon"),icon:N}),S?(0,X.jsxs)(X.Fragment,{children:[S&&(0,X.jsx)("span",{className:"k-button-text",children:S}),e.children]}):e.children&&(0,X.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,X.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,X.jsx)(M,{icon:c})})]})};L.states=ns;L.options=rs;L.className=ft;L.defaultOptions=Le;var ls=require("react/jsx-runtime");var cs=require("react/jsx-runtime");var ds=require("react/jsx-runtime");var To=require("react/jsx-runtime"),Qe="k-button-group",ps=[a.disabled],ms={fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},Ao={fillMode:u.solid},Y=e=>{let{fillMode:t=Ao.fillMode,disabled:o,stretched:i,...r}=e;return(0,To.jsx)("div",{...r,className:s(e.className,Qe,k(Qe,{fillMode:t}),g(Qe,{disabled:o}),{[`${Qe}-stretched`]:i}),children:e.children})};Y.states=ps;Y.options=ms;Y.className=Qe;Y.defaultOptions=Ao;var wt=require("react/jsx-runtime");var Ot=require("react/jsx-runtime");var Pt=require("react/jsx-runtime");var Kt=require("react/jsx-runtime");var J=require("react/jsx-runtime"),Ye="k-slider",fs=[a.hover,a.focus,a.active,a.disabled,a.readonly],us={},ce={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},$=e=>{let{type:t=ce.type,orientation:o=ce.orientation,readonly:i=ce.readonly,disabled:r=ce.disabled,handlePosition:l=ce.handlePosition,showButtons:c=ce.showButtons,showTicks:f=ce.showTicks,hover:p,focus:m,active:x,trackStyle:v,dir:N,...S}=e,y,I;return o==="horizontal"?(y=N==="rtl"?"caret-alt-left":"caret-alt-right",I=N==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(y="caret-alt-up",I="caret-alt-down"),(0,J.jsxs)("div",{...S,className:s(Ye,e.className,g(Ye,{readonly:i,disabled:r}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:N,children:[c&&(0,J.jsx)(L,{className:"k-button-decrease",rounded:"full",icon:I}),(0,J.jsxs)("div",{className:"k-slider-track-wrap",children:[f&&(0,J.jsx)("ul",{className:"k-reset k-slider-items",children:e.children}),(0,J.jsxs)("div",{className:"k-slider-track",style:v,children:[(0,J.jsx)("div",{className:"k-slider-selection"}),t==="range"&&(0,J.jsx)("span",{className:s("k-draghandle","k-draghandle-start",g(Ye,{hover:p,focus:m,active:x}))}),(0,J.jsx)("span",{className:s("k-draghandle",`k-draghandle-${l}`,g(Ye,{hover:p,focus:m,active:x}))})]})]}),c&&(0,J.jsx)(L,{className:"k-button-increase",rounded:"full",icon:y})]})};$.states=fs;$.options=us;$.className=Ye;$.defaultOptions=ce;var Rt=require("react/jsx-runtime"),zo="k-tick",bs=[],hs={},Eo={label:!1},de=e=>{let{style:t,label:o=Eo.label,orientation:i,large:r,text:l,...c}=e;return(0,Rt.jsx)("li",{...c,className:s(e.className,zo,{[`k-tick-${i}`]:i,"k-tick-large":r}),style:t,children:o&&(0,Rt.jsx)("span",{className:"k-label",children:l})})};de.states=bs;de.options=hs;de.className=zo;de.defaultOptions=Eo;var Bt=require("react/jsx-runtime");var Ht=require("react/jsx-runtime");var Gt=require("react/jsx-runtime");var Dt=require("react/jsx-runtime");var wo=require("react/jsx-runtime"),Vt=e=>(0,wo.jsx)($,{type:"gradient",showButtons:!1,showTicks:!1,...e});var Oo=require("react/jsx-runtime"),$t=e=>(0,Oo.jsx)($,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});var Po=require("react/jsx-runtime"),ut="k-input",xs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],vs={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},bt={size:n.medium,rounded:n.medium,fillMode:u.solid},w=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:c,readonly:f,size:p=bt.size,rounded:m=bt.rounded,fillMode:x=bt.fillMode,...v}=e;return(0,Po.jsx)("span",{...v,className:s(e.className,ut,k(ut,{size:p,rounded:m,fillMode:x}),g(ut,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:c,readonly:f}))})};w.states=xs;w.options=vs;w.className=ut;w.defaultOptions=bt;var Ko=require("react/jsx-runtime"),ht="k-picker",Ns=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ss={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},xt={size:n.medium,rounded:b.medium,fillMode:u.solid},q=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:c,readonly:f,size:p=xt.size,rounded:m=xt.rounded,fillMode:x=xt.fillMode,...v}=e;return(0,Ko.jsx)("span",{...v,className:s(e.className,ht,k(ht,{size:p,rounded:m,fillMode:x}),g(ht,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:c,readonly:f})),children:e.children})};q.states=Ns;q.options=Ss;q.className=ht;q.defaultOptions=xt;var Ee=require("react/jsx-runtime"),Ro="k-clear-value",Ls=[a.disabled,a.loading,a.readonly],ks={},se=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?(0,Ee.jsx)(Ee.Fragment,{}):(0,Ee.jsx)("span",{className:s(e.className,Ro),children:(0,Ee.jsx)(M,{icon:"x"})})};se.states=Ls;se.options=ks;se.className=Ro;var Bo=require("react/jsx-runtime"),_t="k-input-inner",gs=[],ys={},vt={type:"text",autocomplete:"off",value:"",placeholder:""},ie=e=>{let{value:t=vt.value,type:o=vt.type,placeholder:i=vt.placeholder,autocomplete:r=vt.autocomplete,...l}=e;return(0,Bo.jsx)("input",{...l,type:o,className:s(e.className,_t,k(_t,e)),placeholder:i,autoComplete:r,defaultValue:t})};ie.states=gs;ie.options=ys;ie.className=_t;var Ze=require("react/jsx-runtime"),Ft="k-input-inner",Cs=[],Is={},ke=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:l,...c}=e;return(0,Ze.jsxs)("span",{...c,className:s(e.className,Ft,k(Ft,e)),children:[r,!r&&l&&(0,Ze.jsx)(M,{className:"k-input-value-icon",icon:l}),i&&!t&&o,i&&t&&(0,Ze.jsx)("span",{className:"k-input-value-text",children:t})]})};ke.states=Cs;ke.options=Is;ke.className=Ft;var Go=require("react/jsx-runtime"),Xt="k-input-inner",Ms=[],As={},Ho={value:"",placeholder:""},Jt=e=>{let{value:t=Ho.value,placeholder:o=Ho.placeholder,rows:i,...r}=e;return(0,Go.jsx)("textarea",{...r,className:s(e.className,Xt,k(Xt,e)),placeholder:o,rows:i,defaultValue:t})};Jt.states=Ms;Jt.options=As;Jt.className=Xt;var je=require("react/jsx-runtime"),Do="k-input-loading-icon",Ts=[a.disabled,a.loading],Z=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,je.jsx)(je.Fragment,{}):(0,je.jsx)("span",{className:s(e.className,Do,"k-icon k-i-loading")})};Z.states=Ts;Z.className=Do;var et=require("react/jsx-runtime"),Vo="k-input-validation-icon",zs=[a.valid,a.invalid,a.disabled,a.loading],Es={},U=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,l=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?(0,et.jsx)(et.Fragment,{}):(0,et.jsx)(M,{className:s(Vo),icon:l})};U.states=zs;U.options=Es;U.className=Vo;var tt=require("react/jsx-runtime"),ws="k-input-prefix",Os={direction:"horizontal"},pe=e=>{let{direction:t=Os.direction,...o}=e;return e.children?(0,tt.jsx)("span",{...o,className:s(ws,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,tt.jsx)(tt.Fragment,{})};var ot=require("react/jsx-runtime"),Ps="k-input-suffix",Ks={direction:"horizontal"},me=e=>{let{direction:t=Ks.direction,...o}=e;return e.children?(0,ot.jsx)("span",{...o,className:s(Ps,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,ot.jsx)(ot.Fragment,{})};var Rs=require("react/jsx-runtime");var Bs=require("react/jsx-runtime");var _o=require("react/jsx-runtime"),$o="k-input-separator",Hs={direction:"vertical"},we=e=>{let{direction:t=Hs.direction,...o}=e;return(0,_o.jsx)("span",{...o,className:s($o,e.className,{[`${$o}-${t}`]:t})})};var at=require("react/jsx-runtime"),Fo="k-spin-button",Gs=[],Ds={size:[n.small,n.medium,n.large],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},qt={size:n.medium,fillMode:u.solid},Oe=e=>{let{size:t=qt.size,fillMode:o=qt.fillMode,...i}=e;return(0,at.jsxs)("span",{...i,className:s(Fo,e.className),children:[(0,at.jsx)(L,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),(0,at.jsx)(L,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Oe.states=Gs;Oe.options=Ds;Oe.className=Fo;Oe.defaultOptions=qt;var R=require("react/jsx-runtime"),Xo="k-numerictextbox",Vs=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],$s={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},ge={showSpinButton:!0,showClearButton:!0,size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},O=e=>{let{size:t=ge.size,rounded:o=ge.rounded,fillMode:i=ge.fillMode,separators:r=ge.separators,showClearButton:l=ge.showClearButton,showSpinButton:c=ge.showSpinButton,prefix:f,suffix:p,value:m,placeholder:x,hover:v,focus:N,valid:S,invalid:y,required:I,loading:A,disabled:z,readonly:F,...oe}=e;return(0,R.jsxs)(w,{...oe,size:t,rounded:o,fillMode:i,hover:v,focus:N,valid:S,invalid:y,required:I,loading:A,disabled:z,readonly:F,className:s(e.className,Xo),children:[f&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(pe,{children:f}),r&&(0,R.jsx)(we,{})]}),(0,R.jsx)(ie,{placeholder:x,value:m}),(0,R.jsx)(U,{valid:S,invalid:y,loading:A,disabled:z}),(0,R.jsx)(Z,{loading:A,disabled:z}),l&&(0,R.jsx)(se,{loading:A,disabled:z,readonly:F,value:m}),p&&(0,R.jsxs)(R.Fragment,{children:[r&&(0,R.jsx)(we,{}),(0,R.jsx)(me,{children:p})]}),c&&(0,R.jsx)(Oe,{className:"k-input-spinner",size:t,fillMode:i})]})};O.states=Vs;O.options=$s;O.className=Xo;O.defaultOptions=ge;var _s=require("react/jsx-runtime");var Ut=require("react/jsx-runtime"),qo="k-animation-container",Fs=[],Xs={},Uo={positionMode:"absolute"},fe=e=>{let{positionMode:t=Uo.positionMode,animationStyle:o,offset:i,...r}=e;return(0,Ut.jsx)("div",{...r,style:{...i,...e.style},className:s(e.className,qo,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:(0,Ut.jsx)("div",{className:"k-child-animation-container",style:o,children:e.children})})};fe.states=Fs;fe.options=Xs;fe.className=qo;fe.defaultOptions=Uo;var Wt=require("react/jsx-runtime"),Wo="k-popup",Js=[],qs={},Qo={positionMode:"absolute"},ue=e=>{let{offset:t,positionMode:o=Qo.positionMode,animationStyle:i,...r}=e;return(0,Wt.jsx)(fe,{positionMode:o,offset:t,animationStyle:i,children:(0,Wt.jsx)("div",{...r,className:s(e.className,Wo),children:e.children})})};ue.states=Js;ue.options=qs;ue.className=Wo;ue.defaultOptions=Qo;var Zo=require("react/jsx-runtime"),Us="k-actionsheet-footer",Yo={alignment:"stretched",orientation:"horizontal"},st=e=>{let{alignment:t=Yo.alignment,orientation:o=Yo.orientation,template:i,as:r=i?"div":le,...l}=e;return(0,Zo.jsx)(r,{...l,...!i&&{alignment:t,orientation:o},className:s(e.className,Us),children:e.children})};var be=require("react/jsx-runtime"),jo="k-searchbox",Ws=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Qs={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},Qt={showIcon:!0,icon:"search",size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode},ne=e=>{let{value:t,placeholder:o,size:i,rounded:r,fillMode:l,hover:c,focus:f,valid:p,invalid:m,required:x,loading:v,disabled:N,showIcon:S=Qt.showIcon,icon:y=Qt.icon,...I}=e;return(0,be.jsxs)(w,{...I,size:i,rounded:r,fillMode:l,hover:c,focus:f,valid:p,invalid:m,required:x,loading:v,disabled:N,className:s(e.className,jo),children:[S&&(0,be.jsx)(M,{className:"k-input-icon",icon:y}),(0,be.jsx)(ie,{placeholder:o,value:t}),(0,be.jsx)(Z,{...e}),(0,be.jsx)(U,{...e}),(0,be.jsx)(se,{...e})]})};ne.states=Ws;ne.options=Qs;ne.className=jo;ne.defaultOptions=Qt;var Ys=require("react/jsx-runtime");var B=require("react/jsx-runtime"),ea="k-textbox",Zs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],js={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},ye={showClearButton:!0,showValidationIcon:!0,size:w.defaultOptions.size,rounded:w.defaultOptions.rounded,fillMode:w.defaultOptions.fillMode,separators:!0},he=e=>{let{size:t=ye.size,rounded:o=ye.rounded,fillMode:i=ye.fillMode,separators:r=ye.separators,showClearButton:l=ye.showClearButton,showValidationIcon:c=ye.showValidationIcon,prefix:f,suffix:p,type:m,value:x,placeholder:v,hover:N,focus:S,valid:y,invalid:I,required:A,loading:z,disabled:F,readonly:oe,...Je}=e;return(0,B.jsxs)(w,{...Je,size:t,rounded:o,fillMode:i,hover:N,focus:S,valid:y,invalid:I,required:A,loading:z,disabled:F,readonly:oe,className:s(e.className,ea),children:[f&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(pe,{children:f}),r&&(0,B.jsx)(we,{})]}),(0,B.jsx)(ie,{placeholder:v,value:x,type:m}),c&&(0,B.jsx)(U,{valid:y,invalid:I,loading:z,disabled:F}),(0,B.jsx)(Z,{loading:z,disabled:F}),l&&(0,B.jsx)(se,{loading:z,disabled:F,readonly:oe,value:x}),p&&(0,B.jsxs)(B.Fragment,{children:[r&&(0,B.jsx)(we,{}),(0,B.jsx)(me,{children:p})]})]})};he.states=Zs;he.options=js;he.className=ea;he.defaultOptions=ye;var ei=require("react/jsx-runtime");var oa=require("react/jsx-runtime");var aa=require("react/jsx-runtime");var V=require("react/jsx-runtime"),sa="k-actionsheet-titlebar",ti={},j=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:l,input:c,inputValue:f,inputPlaceholder:p,adaptive:m,children:x,...v}=e;return(0,V.jsxs)("div",{...v,className:s(e.className,sa),children:[(0,V.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[i&&(0,V.jsx)("div",{className:"k-actionsheet-actions",children:i}),!x&&(0,V.jsxs)("div",{className:"k-actionsheet-title",children:[t&&(0,V.jsx)("div",{className:"k-text-center",children:t}),o&&(0,V.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&(0,V.jsx)("div",{className:"k-actionsheet-title",children:x}),r&&(0,V.jsx)("div",{className:"k-actionsheet-actions",children:r})]}),(c||l)&&(0,V.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?(0,V.jsx)(he,{value:f,placeholder:p,size:m?"large":"medium"}):(0,V.jsx)(ne,{placeholder:"Filter",size:m?"large":"medium"})})]})};j.className=sa;j.defaultOptions=ti;var Pe=require("react/jsx-runtime"),Yt="k-actionsheet-view",oi=[],ai={},si={},Ke=e=>{let{adaptive:t,animated:o,children:i,header:r,footer:l,...c}=e,f=(r==null?void 0:r.type)===j&&(0,Pe.jsx)(j,{adaptive:t,...r==null?void 0:r.props}),p=(l==null?void 0:l.type)===st&&(0,Pe.jsx)(st,{...l==null?void 0:l.props});return(0,Pe.jsxs)("div",{...c,className:s(e.className,Yt,{[`${Yt}-animated`]:o}),children:[f,(0,Pe.jsx)("div",{className:"k-actionsheet-content",children:i}),p]})};Ke.states=oi;Ke.options=ai;Ke.className=Yt;Ke.defaultOptions=si;var Ce=require("react/jsx-runtime"),ia="k-actionsheet",ii=[],ni={},it={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},re=e=>{let{side:t=it.side,fullscreen:o=it.fullscreen,adaptive:i=it.adaptive,overlay:r=it.overlay,template:l,children:c,header:f,footer:p,...m}=e;return(0,Ce.jsxs)("div",{className:"k-actionsheet-container",children:[r&&(0,Ce.jsx)("div",{className:"k-overlay"}),(0,Ce.jsx)(fe,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:(0,Ce.jsx)("div",{...m,className:s(e.className,ia,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:l||(0,Ce.jsx)(Ke,{header:f,footer:p,adaptive:i,...e,children:c})})})]})};re.states=ii;re.options=ni;re.className=ia;re.defaultOptions=it;var ri=require("react/jsx-runtime");var _=require("react/jsx-runtime"),Zt="k-actionsheet-item",li=[a.hover,a.focus,a.selected,a.disabled],jt=e=>{let{iconName:t,text:o,description:i,hover:r,focus:l,selected:c,disabled:f,...p}=e;return(0,_.jsxs)("span",{...p,className:s(e.className,Zt,g(Zt,{hover:r,focus:l,selected:c,disabled:f})),children:[!e.children&&(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,_.jsx)("span",{className:"k-icon-wrap",children:(0,_.jsx)(M,{className:"k-actionsheet-item-icon",icon:t})}),(0,_.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,_.jsx)("span",{className:"k-actionsheet-item-title",children:o}),i&&(0,_.jsx)("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};jt.states=li;jt.className=Zt;var na=require("react/jsx-runtime");var ci=require("react/jsx-runtime");var di=require("react/jsx-runtime");var pi=require("react/jsx-runtime");var la=require("react/jsx-runtime"),mi="k-no-data",nt=e=>(0,la.jsx)("span",{className:s(mi,e.className),children:e.children});var ee=require("react/jsx-runtime"),eo="k-list",fi=[],ui={size:[n.small,n.medium,n.large]},ca={size:n.medium},H=e=>{let{size:t=ca.size,virtualization:o,children:i,optionLabel:r,customValue:l,screenReaders:c,...f}=e,p,m,x,v,N=[];return i?i.map((S,y)=>{S.type===D?(S.props.root===!0?(p=S.props.label,S.props.children.map((I,A)=>{N.push((0,ee.jsx)(C,{...I.props},`optChild-${A}-${new Date().getTime()}`))})):S.props.children.forEach((I,A)=>{let z="";A===0&&(z=S.props.label),N.push((0,ee.jsx)(C,{className:A===0?"k-first":"",...I.props,groupLabel:z},`groupLabel-${A}-${new Date().getTime()}`))}),m=(0,ee.jsx)(D,{label:p,virtualization:o,children:N})):S.type===C&&(N.push((0,ee.jsx)(C,{...S.props},`${S.type}-${y}`)),x=(0,ee.jsx)(Re,{virtualization:o,children:N}),c&&(v=(0,ee.jsxs)(nt,{className:"k-sr-only",children:[N.length," items found."]})))}):v=(0,ee.jsx)(nt,{children:"No data found."}),(0,ee.jsxs)("div",{...f,className:s(e.className,eo,k(eo,{size:t}),{"k-virtual-list":o}),children:[r,l,m,x,v]})};H.states=fi;H.options=ui;H.className=eo;H.defaultOptions=ca;var te=require("react/jsx-runtime"),to="k-list",bi=[],hi={size:[n.small,n.medium,n.large]},da={size:n.medium},Ie=e=>{let{size:t=da.size,virtualization:o,children:i,...r}=e,l,c,f,p=[];return i?i.map((m,x)=>{m.type===D?(m.props.root===!0?(l=m.props.label,m.props.children.map((v,N)=>{p.push((0,te.jsx)(C,{...v.props},`optChild-${N}-${new Date().getTime()}`))})):(p.push((0,te.jsx)(pa,{...m.props,children:m.props.label},`listChild-${x}`)),m.props.children.map((v,N)=>{p.push((0,te.jsx)(C,{...v.props},`fwOptChild-${N}-${new Date().getTime()}`))})),c=(0,te.jsx)(D,{label:l,virtualization:o,children:p})):m.type===C&&(p.push((0,te.jsx)(C,{...m.props},`${m.type}-${x}`)),f=(0,te.jsx)(Re,{virtualization:o,children:p}))}):f=(0,te.jsx)(nt,{children:"No data found."}),(0,te.jsxs)("div",{...r,className:s(e.className,to,k(to,{size:t}),{"k-virtual-list":o}),children:[c,f]})};Ie.states=bi;Ie.options=hi;Ie.className=to;Ie.defaultOptions=da;var ao=require("react/jsx-runtime"),Nt="k-checkbox",xi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],vi={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full]},oo={size:n.medium,rounded:b.medium},xe=e=>{let{id:t,checked:o,indeterminate:i,hover:r,focus:l,disabled:c,invalid:f,valid:p,required:m,size:x=oo.size,rounded:v=oo.rounded,...N}=e;return(0,ao.jsx)("span",{className:"k-checkbox-wrap",children:(0,ao.jsx)("input",{...N,id:t,type:"checkbox",defaultChecked:o,required:m,className:s(e.className,Nt,k(Nt,{size:x,rounded:v}),g(Nt,{hover:r,focus:l,disabled:c,invalid:f,valid:p,indeterminate:i,checked:o}))})})};xe.states=xi;xe.options=vi;xe.className=Nt;xe.defaultOptions=oo;var ua=require("react/jsx-runtime"),ma="k-checkbox-list",Ni=[],Si={},fa={layout:"vertical"},Be=e=>{let{layout:t=fa.layout,...o}=e;return(0,ua.jsx)("ul",{...o,className:s(e.className,ma,{[`k-list-${t}`]:t}),children:e.children})};Be.states=Ni;Be.options=Si;Be.className=ma;Be.defaultOptions=fa;var ha=require("react/jsx-runtime"),ba="k-checkbox-list-item",Li=[],ki={},gi={},He=e=>{let{...t}=e;return(0,ha.jsx)("li",{...t,className:s(e.className,ba),children:e.children})};He.states=Li;He.options=ki;He.className=ba;He.defaultOptions=gi;var io=require("react/jsx-runtime");var no=require("react/jsx-runtime");var ro=require("react/jsx-runtime");var lo=require("react/jsx-runtime");var yi=require("react/jsx-runtime");var Ci=require("react/jsx-runtime");var Me=require("react/jsx-runtime"),co="k-list-item",Ii=[a.hover,a.focus,a.selected,a.disabled],Mi={},Ai={},C=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:l,showCheckbox:c,checked:f,hover:p,focus:m,selected:x,disabled:v,...N}=e,S=t||e.children;return(0,Me.jsxs)("li",{...N,className:s(e.className,i?"k-list-group-item":co,g(co,{hover:p,focus:m,disabled:v,selected:x})),children:[c&&(0,Me.jsx)(xe,{checked:f}),r&&(0,Me.jsx)(M,{icon:l}),(0,Me.jsx)("span",{className:"k-list-item-text",children:S}),o&&o!==""&&(0,Me.jsx)("div",{className:"k-list-item-group-label",children:o})]})};C.states=Ii;C.options=Mi;C.className=co;C.defaultOptions=Ai;var Ge=require("react/jsx-runtime"),Ti="k-list-content",Re=e=>{let{virtualization:t,...o}=e;return(0,Ge.jsxs)("div",{...o,className:s(Ti,e.className),children:[(0,Ge.jsx)("ul",{className:s("k-list-ul"),children:e.children}),t&&(0,Ge.jsx)("div",{className:"k-height-container",children:(0,Ge.jsx)("div",{})})]})};var po=require("react/jsx-runtime"),zi="k-list-group-sticky-header",xa=e=>(0,po.jsx)("div",{className:s(zi,e.className),children:(0,po.jsx)("div",{className:"k-list-header-text",children:e.children})});var Ae=require("react/jsx-runtime"),D=e=>{let{virtualization:t,label:o}=e;return(0,Ae.jsxs)(Ae.Fragment,{children:[o&&(0,Ae.jsx)(xa,{children:o}),e.children&&(0,Ae.jsx)(Re,{virtualization:t,children:e.children})]})};var mo=require("react/jsx-runtime"),Ei="k-list-group-item",pa=e=>(0,mo.jsx)("li",{className:s(Ei,e.className),children:(0,mo.jsx)("span",{className:"k-list-item-text",children:e.children})});var va=require("react/jsx-runtime"),fo="k-list-optionlabel",wi=[a.hover,a.focus,a.selected,a.disabled],Oi={},Pi={},St=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...c}=e;return(0,va.jsx)("div",{...c,className:s(fo,g(fo,{hover:o,focus:i,selected:r,disabled:l})),children:t})};St.states=wi;St.options=Oi;St.className=fo;St.defaultOptions=Pi;var Na=require("react/jsx-runtime"),uo="k-list-custom-value",Ki=[a.hover,a.focus,a.selected,a.disabled],Ri={},Bi={},Lt=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...c}=e;return(0,Na.jsx)("div",{...c,className:s(uo,g(uo,{hover:o,focus:i,selected:r,disabled:l})),children:t})};Lt.states=Ki;Lt.options=Ri;Lt.className=uo;Lt.defaultOptions=Bi;var Hi=require("react/jsx-runtime");var Gi=require("react/jsx-runtime");var Sa=require("react/jsx-runtime");var La=require("react/jsx-runtime");var Di=require("react/jsx-runtime");var ka=require("react/jsx-runtime");var ga=require("react/jsx-runtime");var T=require("react/jsx-runtime"),ya="k-dropdownlist",Vi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],$i={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},De={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:b.medium,fillMode:u.solid},rt=e=>{let{size:t=De.size,rounded:o=De.rounded,fillMode:i=De.fillMode,arrowIconName:r=De.arrowIconName,showValue:l=De.showValue,valueIconName:c,prefix:f,suffix:p,value:m,placeholder:x,hover:v,focus:N,valid:S,invalid:y,required:I,loading:A,disabled:z,readonly:F,popup:oe,opened:Je,adaptive:Ct,adaptiveSettings:It,adaptiveTitle:Ha,adaptiveSubtitle:Ga,adaptiveFilter:Da,...Va}=e;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(q,{...Va,size:t,rounded:o,fillMode:i,hover:v,focus:N,valid:S,invalid:y,required:I,loading:A,disabled:z,readonly:F,className:s(e.className,ya,{"k-icon-picker":!l&&c}),children:[(0,T.jsx)(pe,{children:f}),(0,T.jsx)(ke,{placeholder:x,value:m,showValue:l,valueIconName:c}),(0,T.jsx)(U,{valid:S,invalid:y,loading:A,disabled:z}),(0,T.jsx)(Z,{loading:A,disabled:z}),(0,T.jsx)(me,{children:p}),(0,T.jsx)(L,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),Je&&oe&&(0,T.jsx)(ue,{className:"k-list-container k-dropdownlist-popup",children:oe}),Ct&&(0,T.jsx)(re,{adaptive:!0,...It,header:(0,T.jsx)(j,{actionsEnd:(0,T.jsx)(L,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Da,inputValue:m,inputPlaceholder:x,title:Ha,subtitle:Ga}),children:(0,T.jsx)("div",{className:"k-list-container",children:(0,T.jsxs)(H,{size:"large",children:[(0,T.jsx)(C,{text:"List item"}),(0,T.jsx)(C,{text:"List item"}),(0,T.jsx)(C,{text:"List item"})]})})})]})};rt.states=Vi;rt.options=$i;rt.className=ya;rt.defaultOptions=De;var _i=require("react/jsx-runtime");var Ca=require("react/jsx-runtime");var bo=require("react/jsx-runtime");var Fi=require("react/jsx-runtime");var Ia=require("react/jsx-runtime");var Ma=require("react/jsx-runtime");var ho=require("react/jsx-runtime");var xo=require("react/jsx-runtime");var Aa=require("react/jsx-runtime");var Ta=require("react/jsx-runtime");var d=require("react/jsx-runtime"),za="k-colorgradient-inputs",Xi=[],Ji={size:[n.small,n.medium,n.large]},Ea={mode:"rgba",size:n.medium},Ve=e=>{let{mode:t=Ea.mode,size:o,...i}=e;return(0,d.jsxs)("div",{...i,className:s(za,"k-hstack"),children:[(0,d.jsx)("div",{className:"k-vstack",children:(0,d.jsx)(L,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]}),(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]}),(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,d.jsxs)("div",{className:"k-vstack",children:[(0,d.jsx)(O,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{className:"k-vstack k-flex-1",children:[(0,d.jsx)(he,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),(0,d.jsx)("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Ve.states=Xi;Ve.options=Ji;Ve.className=za;Ve.defaultOptions=Ea;var G=require("react/jsx-runtime"),wa="k-colorgradient-color-contrast",qi=[],Ui={},Wi={},$e=()=>(0,G.jsxs)("div",{className:s(wa,"k-vbox"),children:[(0,G.jsxs)("div",{className:"k-contrast-ratio",children:[(0,G.jsx)("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),(0,G.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:[(0,G.jsx)(M,{icon:"check"}),(0,G.jsx)(M,{icon:"check"})]})]}),(0,G.jsxs)("div",{children:[(0,G.jsx)("span",{children:"AA: 4.5"}),(0,G.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:["Pass",(0,G.jsx)(M,{icon:"check"})]})]}),(0,G.jsxs)("div",{children:[(0,G.jsx)("span",{children:"AAA: 7.0"}),(0,G.jsxs)("span",{className:"k-contrast-validation !k-text-error",children:["Fail",(0,G.jsx)(M,{icon:"x"})]})]})]});$e.states=qi;$e.options=Ui;$e.className=wa;$e.defaultOptions=Wi;var P=require("react/jsx-runtime"),kt="k-colorgradient",Qi=[a.hover,a.focus,a.readonly,a.disabled],Yi={size:[n.small,n.medium,n.large]},W={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"},ve=e=>{let{size:t=W.size,mode:o=W.mode,readonly:i=W.readonly,disabled:r=W.disabled,gradientStyle:l=W.gradientStyle,dragHandleStyle:c=W.dragHandleStyle,alphaStyle:f=W.alphaStyle,alphaStyleHorizontal:p=W.alphaStyleHorizontal,contrast:m=W.contrast,dir:x,hover:v,focus:N,hoverHandle:S,focusHandle:y,canvasOrientation:I=W.canvasOrientation,...A}=e;return(0,P.jsxs)("div",{...A,className:s(e.className,kt,k(kt,{size:t}),g(kt,{hover:v,focus:N,readonly:i,disabled:r})),dir:x,children:[!I||I==="horizontal"&&(0,P.jsxs)("div",{className:"k-colorgradient-canvas k-hstack",children:[(0,P.jsx)("div",{className:"k-hsv-rectangle",style:l,children:(0,P.jsx)("div",{className:"k-hsv-gradient",children:(0,P.jsx)("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":S,"k-focus":y}),style:c})})}),(0,P.jsxs)("div",{className:"k-hsv-controls k-hstack",children:[(0,P.jsx)($t,{className:"k-hue-slider",hover:S,focus:y}),o!=="rgb"&&o!=="hsv"&&(0,P.jsx)($t,{className:"k-alpha-slider",hover:S,focus:y,trackStyle:f})]})]}),I==="vertical"&&(0,P.jsxs)("div",{className:"k-colorgradient-canvas k-vstack",children:[(0,P.jsx)("div",{className:"k-hsv-rectangle",style:l,children:(0,P.jsx)("div",{className:"k-hsv-gradient",children:(0,P.jsx)("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":S,"k-focus":y}),style:c})})}),(0,P.jsxs)("div",{className:"k-hsv-controls k-vstack",children:[(0,P.jsx)(Vt,{className:"k-hue-slider",hover:S,focus:y}),o!=="rgb"&&o!=="hsv"&&(0,P.jsx)(Vt,{className:"k-alpha-slider",hover:S,focus:y,trackStyle:p})]})]}),(0,P.jsx)(Ve,{mode:e.mode,size:t}),m&&(0,P.jsx)($e,{})]})};ve.states=Qi;ve.options=Yi;ve.className=kt;ve.defaultOptions=W;var Zi=require("react/jsx-runtime");var ji=require("react/jsx-runtime");var Pa=require("react/jsx-runtime"),Oa=e=>(0,Pa.jsx)("tr",{children:e.children});var Ka=require("react/jsx-runtime"),vo="k-colorpalette-tile",en=[a.hover,a.focus,a.selected],tn={},lt=e=>{let{color:t,tileSize:o,hover:i,focus:r,selected:l,...c}=e,f={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return(0,Ka.jsx)("td",{...c,className:s(e.className,vo,g(vo,{hover:i,focus:r,selected:l})),style:f})};lt.states=en;lt.options=tn;lt.className=vo;var _e=require("react/jsx-runtime"),gt="k-colorpalette",on=[a.disabled],an={size:[n.small,n.medium,n.large]},No={columns:10,size:n.medium},Fe=e=>{let{size:t=No.size,palette:o,columns:i=No.columns,tileSize:r,disabled:l,...c}=e,f=[];if(o){let p=i||o.columns,m=o.colors?o.colors:o;Array.isArray(m)&&Array.from({length:Math.ceil(m.length/p)},(x,v)=>{let N=[];m.slice(v*p,(v+1)*p).map((y,I)=>{N.push((0,_e.jsx)(lt,{color:y,tileSize:r},I))});let S=(0,_e.jsx)(Oa,{children:N},v);f.push(S)})}return(0,_e.jsx)("div",{...c,className:s(e.className,gt,g(gt,{disabled:l}),k(gt,{size:t})),children:(0,_e.jsx)("table",{className:"k-colorpalette-table",children:(0,_e.jsx)("tbody",{children:f.length>0?f:e.children})})})};Fe.states=on;Fe.options=an;Fe.className=gt;Fe.defaultOptions=No;var So={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 sn=require("react/jsx-runtime");var ct=require("react/jsx-runtime"),Ra="k-color-preview",nn=[],rn={},Ne=e=>{let{color:t,iconName:o,...i}=e;return(0,ct.jsxs)("span",{...i,className:s(e.className,Ra,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&(0,ct.jsx)(M,{icon:o,className:"k-color-preview-icon"}),(0,ct.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Ne.states=nn;Ne.options=rn;Ne.className=Ra;var E=require("react/jsx-runtime"),yt="k-coloreditor",ln=[a.focus],cn={size:[n.small,n.medium,n.large]},Xe={size:n.medium,view:"gradient",palette:So.office,actionButtons:!0,canvasOrientation:"horizontal"},Q=e=>{let{size:t=Xe.size,view:o=Xe.view,palette:i=Xe.palette,color:r,currentColor:l,focus:c,focusView:f,dir:p,group:m,actionButtons:x=Xe.actionButtons,canvasOrientation:v=Xe.canvasOrientation,...N}=e;return(0,E.jsxs)("div",{...N,className:s(e.className,"k-flatcolorpicker",yt,k(yt,{size:t}),g(yt,{focus:c})),dir:p,children:[(0,E.jsxs)("div",{className:"k-coloreditor-header k-hstack",children:[(0,E.jsx)("div",{className:"k-coloreditor-header-actions k-hstack",children:m&&(0,E.jsxs)(Y,{fillMode:"flat",children:[(0,E.jsx)(L,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),(0,E.jsx)(L,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),(0,E.jsx)("div",{className:"k-spacer"}),(0,E.jsxs)("div",{className:"k-coloreditor-header-actions k-hstack",children:[(0,E.jsx)(L,{fillMode:"flat",icon:"droplet-slash",size:t}),(0,E.jsxs)("div",{className:"k-coloreditor-preview k-vstack",children:[(0,E.jsx)(Ne,{className:"k-coloreditor-preview-color",color:r}),(0,E.jsx)(Ne,{className:"k-coloreditor-current-color",color:l})]})]})]}),(0,E.jsx)("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?(0,E.jsx)(ve,{focus:f,size:t,canvasOrientation:v}):(0,E.jsx)(Fe,{palette:i,size:t})}),x&&(0,E.jsxs)(le,{className:"k-coloreditor-footer",alignment:"start",children:[(0,E.jsx)(L,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),(0,E.jsx)(L,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};Q.states=ln;Q.options=cn;Q.className=yt;Q.defaultOptions=Xe;var dn=require("react/jsx-runtime");var pn=require("react/jsx-runtime");var mn=require("react/jsx-runtime");var fn=require("react/jsx-runtime");var K=require("react/jsx-runtime"),Ba="k-colorpicker",un=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],bn={size:[n.small,n.medium,n.large],rounded:[b.small,b.medium,b.large,b.full],fillMode:[u.solid,u.flat,u.outline]},dt={arrowIconName:"caret-alt-down",size:q.defaultOptions.size,rounded:q.defaultOptions.rounded,fillMode:q.defaultOptions.fillMode},ze=e=>{let{size:t=dt.size,rounded:o=dt.rounded,fillMode:i=dt.fillMode,arrowIconName:r=dt.arrowIconName,prefix:l,suffix:c,value:f,placeholder:p,hover:m,focus:x,valid:v,invalid:N,required:S,disabled:y,valueIconName:I,popup:A,opened:z,adaptive:F,adaptiveSettings:oe,adaptiveTitle:Je,adaptiveSubtitle:Ct,...It}=e;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(q,{...It,size:t,rounded:o,fillMode:i,hover:m,focus:x,valid:v,invalid:N,required:S,disabled:y,className:s(e.className,Ba,"k-icon-picker"),children:[(0,K.jsx)(pe,{children:l}),(0,K.jsx)(ke,{placeholder:p,value:f,showValue:!1,valueIcon:(0,K.jsx)(Ne,{className:"k-value-icon",color:f,iconName:I}),valueIconName:I}),(0,K.jsx)(me,{children:c}),(0,K.jsx)(L,{className:"k-input-button",icon:r,rounded:null,size:t,fillMode:i})]}),z&&A&&(0,K.jsx)(ue,{className:"k-colorpicker-popup",children:A}),F&&(0,K.jsx)(re,{adaptive:!0,...oe,header:(0,K.jsx)(j,{actionsEnd:(0,K.jsx)(L,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:Je,subtitle:Ct}),footer:(0,K.jsxs)(st,{children:[(0,K.jsx)(L,{text:"Cancel",size:"large",themeColor:"base"}),(0,K.jsx)(L,{text:"Set",size:"large",themeColor:"primary"})]}),children:(0,K.jsx)(Q,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};ze.states=un;ze.options=bn;ze.className=Ba;ze.defaultOptions=dt;var xn=require("react/jsx-runtime");var vn=require("react/jsx-runtime");var Nn=require("react/jsx-runtime");var Sn=require("react/jsx-runtime");var Ln=require("react/jsx-runtime");var ko=require("react/jsx-runtime"),kn=({value:e="fuchsia",color:t="fuchsia",currentColor:o="fuchsia",..