@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 75.2 kB
JavaScript
var Yr=Object.create;var to=Object.defineProperty;var jr=Object.getOwnPropertyDescriptor;var en=Object.getOwnPropertyNames;var tn=Object.getPrototypeOf,on=Object.prototype.hasOwnProperty;var an=(e,t)=>{for(var o in t)to(e,o,{get:t[o],enumerable:!0})},Ya=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of en(t))!on.call(e,i)&&i!==o&&to(e,i,{get:()=>t[i],enumerable:!(n=jr(t,i))||n.enumerable});return e};var sn=(e,t,o)=>(o=e!=null?Yr(tn(e)):{},Ya(t||!e||!e.__esModule?to(o,"default",{value:e,enumerable:!0}):o,e)),rn=e=>Ya(to({},"__esModule",{value:!0}),e);var Ap={};an(Ap,{ImageEditorCrop:()=>Bp});module.exports=rn(Ap);var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var S=(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"}),M=(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 r={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},N={small:"small",medium:"medium",large:"large",full:"full"},f={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},b={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 Pt=require("react/jsx-runtime"),yo="k-icon k-font-icon",nn=[],ln={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},pn={},Ot=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:l,...p}=e;return n?(0,Pt.jsx)("span",{...p,className:s(e.className,yo,S(yo,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):(0,Pt.jsx)(Pt.Fragment,{})};Ot.states=nn;Ot.options=ln;Ot.className=yo;Ot.defaultOptions=pn;var ja=Ot;var je=require("react/jsx-runtime"),Io="k-icon k-svg-icon",cn=[],mn={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},es={viewBox:"0 0 24 24"},Rt=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:l=es.viewBox,icon:p,...u}=e;if(!p)return(0,je.jsx)(je.Fragment,{});p==="none"&&{...u,className:s(e.className,Io,"k-none")};let d=typeof p=="object"&&p.name&&p.name;return(0,je.jsx)("span",{...u,className:s(e.className,Io,S("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:(0,je.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:e.children})})};Rt.states=cn;Rt.options=mn;Rt.className=Io;Rt.defaultOptions=es;var Mo=Rt;var ts=sn(require("@progress/kendo-svg-icons")),Te=require("react/jsx-runtime"),dn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),un=[],fn={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark]},Co={viewBox:"0 0 24 24",type:"svg"},T=e=>{let{size:t,themeColor:o,icon:n,type:i=Co.type,rotate:l,flip:p,viewBox:u=Co.viewBox,...d}=e;if(!n)return(0,Te.jsx)(Te.Fragment,{});if(i==="svg"){if(n==="none")return(0,Te.jsx)(Mo,{...d,icon:n,size:t});let x=dn(`${n}-icon`);return ts[x]?(0,Te.jsx)(Mo,{...d,icon:ts[x],size:t,themeColor:o,rotate:l,flip:p,viewBox:u}):(0,Te.jsx)(Te.Fragment,{})}return(0,Te.jsx)(ja,{...d,icon:n,size:t,themeColor:o,rotate:l,flip:p})};T.states=un;T.options=fn;T.defaultOptions=Co;var me=require("react/jsx-runtime"),oo="k-button",bn=[a.hover,a.focus,a.active,a.selected,a.disabled],xn={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.light,b.dark,b.inverse]},et={size:r.medium,rounded:N.medium,fillMode:f.solid,themeColor:b.base,showArrow:!1,arrowIconName:"caret-alt-down"},m=e=>{let{size:t=et.size,rounded:o=et.rounded,fillMode:n=et.fillMode,themeColor:i=et.themeColor,showArrow:l=et.showArrow,arrowIconName:p=et.arrowIconName,hover:u,focus:d,active:x,selected:h,disabled:v,icon:c,text:k,iconClassName:g,...I}=e,A=c!==void 0,z=e.children!==void 0;return(0,me.jsxs)("button",{...I,className:s(e.className,oo,S(oo,{size:t,rounded:o,fillMode:n,themeColor:i}),M(oo,{hover:u,focus:d,active:x,disabled:v,selected:h}),{"k-icon-button":!k&&!z&&A}),children:[c&&(0,me.jsx)(T,{className:s(g,"k-button-icon"),icon:c}),k?(0,me.jsxs)(me.Fragment,{children:[k&&(0,me.jsx)("span",{className:"k-button-text",children:k}),e.children]}):e.children&&(0,me.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,me.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,me.jsx)(T,{icon:p})})]})};m.states=bn;m.options=xn;m.className=oo;m.defaultOptions=et;var os=require("react/jsx-runtime"),ao=e=>(0,os.jsx)(m,{icon:"folder",...e,children:void 0});var as=require("react/jsx-runtime"),To=e=>(0,as.jsx)(m,{icon:"folder",children:"Button",...e});var hn=require("react/jsx-runtime");var rs=require("react/jsx-runtime"),Kt="k-button-group",Nn=[a.disabled],kn={fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},ss={fillMode:f.solid},H=e=>{let{fillMode:t=ss.fillMode,disabled:o,stretched:n,...i}=e;return(0,rs.jsx)("div",{...i,className:s(e.className,Kt,S(Kt,{fillMode:t}),M(Kt,{disabled:o}),{[`${Kt}-stretched`]:n}),children:e.children})};H.states=Nn;H.options=kn;H.className=Kt;H.defaultOptions=ss;var Bo=require("react/jsx-runtime");var Ao=require("react/jsx-runtime");var zo=require("react/jsx-runtime");var wo=require("react/jsx-runtime");var ns=require("react/jsx-runtime"),so="k-input",vn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Ln={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},ro={size:r.medium,rounded:r.medium,fillMode:f.solid},E=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:u,size:d=ro.size,rounded:x=ro.rounded,fillMode:h=ro.fillMode,...v}=e;return(0,ns.jsx)("span",{...v,className:s(e.className,so,S(so,{size:d,rounded:x,fillMode:h}),M(so,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:u}))})};E.states=vn;E.options=Ln;E.className=so;E.defaultOptions=ro;var is=require("react/jsx-runtime"),no="k-picker",gn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Sn={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},io={size:r.medium,rounded:N.medium,fillMode:f.solid},de=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:u,size:d=io.size,rounded:x=io.rounded,fillMode:h=io.fillMode,...v}=e;return(0,is.jsx)("span",{...v,className:s(e.className,no,S(no,{size:d,rounded:x,fillMode:h}),M(no,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:p,readonly:u})),children:e.children})};de.states=gn;de.options=Sn;de.className=no;de.defaultOptions=io;var ft=require("react/jsx-runtime"),ls="k-clear-value",yn=[a.disabled,a.loading,a.readonly],In={},ue=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?(0,ft.jsx)(ft.Fragment,{}):(0,ft.jsx)("span",{className:s(e.className,ls),children:(0,ft.jsx)(T,{icon:"x"})})};ue.states=yn;ue.options=In;ue.className=ls;var ps=require("react/jsx-runtime"),Eo="k-input-inner",Mn=[],Cn={},lo={type:"text",autocomplete:"off",value:"",placeholder:""},fe=e=>{let{value:t=lo.value,type:o=lo.type,placeholder:n=lo.placeholder,autocomplete:i=lo.autocomplete,...l}=e;return(0,ps.jsx)("input",{...l,type:o,className:s(e.className,Eo,S(Eo,e)),placeholder:n,autoComplete:i,defaultValue:t})};fe.states=Mn;fe.options=Cn;fe.className=Eo;var Ht=require("react/jsx-runtime"),Po="k-input-inner",Tn=[],Bn={},tt=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:l,...p}=e;return(0,Ht.jsxs)("span",{...p,className:s(e.className,Po,S(Po,e)),children:[i,!i&&l&&(0,Ht.jsx)(T,{className:"k-input-value-icon",icon:l}),n&&!t&&o,n&&t&&(0,Ht.jsx)("span",{className:"k-input-value-text",children:t})]})};tt.states=Tn;tt.options=Bn;tt.className=Po;var ms=require("react/jsx-runtime"),Oo="k-input-inner",An=[],zn={},cs={value:"",placeholder:""},Ro=e=>{let{value:t=cs.value,placeholder:o=cs.placeholder,rows:n,...i}=e;return(0,ms.jsx)("textarea",{...i,className:s(e.className,Oo,S(Oo,e)),placeholder:o,rows:n,defaultValue:t})};Ro.states=An;Ro.options=zn;Ro.className=Oo;var Gt=require("react/jsx-runtime"),ds="k-input-loading-icon",wn=[a.disabled,a.loading],ae=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Gt.jsx)(Gt.Fragment,{}):(0,Gt.jsx)("span",{className:s(e.className,ds,"k-icon k-i-loading")})};ae.states=wn;ae.className=ds;var Ft=require("react/jsx-runtime"),us="k-input-validation-icon",En=[a.valid,a.invalid,a.disabled,a.loading],Pn={},te=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,l=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?(0,Ft.jsx)(Ft.Fragment,{}):(0,Ft.jsx)(T,{className:s(us),icon:l})};te.states=En;te.options=Pn;te.className=us;var $t=require("react/jsx-runtime"),On="k-input-prefix",Rn={direction:"horizontal"},ve=e=>{let{direction:t=Rn.direction,...o}=e;return e.children?(0,$t.jsx)("span",{...o,className:s(On,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,$t.jsx)($t.Fragment,{})};var Dt=require("react/jsx-runtime"),Kn="k-input-suffix",Hn={direction:"horizontal"},Le=e=>{let{direction:t=Hn.direction,...o}=e;return e.children?(0,Dt.jsx)("span",{...o,className:s(Kn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Dt.jsx)(Dt.Fragment,{})};var Gn=require("react/jsx-runtime");var Fn=require("react/jsx-runtime");var bs=require("react/jsx-runtime"),fs="k-input-separator",$n={direction:"vertical"},Be=e=>{let{direction:t=$n.direction,...o}=e;return(0,bs.jsx)("span",{...o,className:s(fs,e.className,{[`${fs}-${t}`]:t})})};var Vt=require("react/jsx-runtime"),xs="k-color-preview",Dn=[],Vn={},$e=e=>{let{color:t,iconName:o,...n}=e;return(0,Vt.jsxs)("span",{...n,className:s(e.className,xs,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&(0,Vt.jsx)(T,{icon:o,className:"k-color-preview-icon"}),(0,Vt.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};$e.states=Dn;$e.options=Vn;$e.className=xs;var Ko=require("react/jsx-runtime"),hs="k-animation-container",_n=[],Xn={},Ns={positionMode:"absolute"},De=e=>{let{positionMode:t=Ns.positionMode,animationStyle:o,offset:n,...i}=e;return(0,Ko.jsx)("div",{...i,style:{...n,...e.style},className:s(e.className,hs,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:(0,Ko.jsx)("div",{className:"k-child-animation-container",style:o,children:e.children})})};De.states=_n;De.options=Xn;De.className=hs;De.defaultOptions=Ns;var Ho=require("react/jsx-runtime"),ks="k-popup",Jn=[],Un={},vs={positionMode:"absolute"},X=e=>{let{offset:t,positionMode:o=vs.positionMode,animationStyle:n,...i}=e;return(0,Ho.jsx)(De,{positionMode:o,offset:t,animationStyle:n,children:(0,Ho.jsx)("div",{...i,className:s(e.className,ks),children:e.children})})};X.states=Jn;X.options=Un;X.className=ks;X.defaultOptions=vs;var Ls=require("react/jsx-runtime"),po="k-actions",qn=[],Wn={},Go={alignment:"start",orientation:"horizontal"},Ve=e=>{let{alignment:t=Go.alignment,orientation:o=Go.orientation,...n}=e;return(0,Ls.jsx)("div",{...n,className:s(po,{[`${po}-${t}`]:t,[`${po}-${o}`]:o},e.className),children:e.children})};Ve.states=qn;Ve.options=Wn;Ve.className=po;Ve.defaultOptions=Go;var Ss=require("react/jsx-runtime"),Zn="k-actionsheet-footer",gs={alignment:"stretched",orientation:"horizontal"},_t=e=>{let{alignment:t=gs.alignment,orientation:o=gs.orientation,template:n,as:i=n?"div":Ve,...l}=e;return(0,Ss.jsx)(i,{...l,...!n&&{alignment:t,orientation:o},className:s(e.className,Zn),children:e.children})};var _e=require("react/jsx-runtime"),ys="k-searchbox",Qn=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],Yn={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Fo={showIcon:!0,icon:"search",size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},Ae=e=>{let{value:t,placeholder:o,size:n,rounded:i,fillMode:l,hover:p,focus:u,valid:d,invalid:x,required:h,loading:v,disabled:c,showIcon:k=Fo.showIcon,icon:g=Fo.icon,...I}=e;return(0,_e.jsxs)(E,{...I,size:n,rounded:i,fillMode:l,hover:p,focus:u,valid:d,invalid:x,required:h,loading:v,disabled:c,className:s(e.className,ys),children:[k&&(0,_e.jsx)(T,{className:"k-input-icon",icon:g}),(0,_e.jsx)(fe,{placeholder:o,value:t}),(0,_e.jsx)(ae,{...e}),(0,_e.jsx)(te,{...e}),(0,_e.jsx)(ue,{...e})]})};Ae.states=Qn;Ae.options=Yn;Ae.className=ys;Ae.defaultOptions=Fo;var jn=require("react/jsx-runtime");var W=require("react/jsx-runtime"),Is="k-textbox",ei=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ti={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},ot={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},se=e=>{let{size:t=ot.size,rounded:o=ot.rounded,fillMode:n=ot.fillMode,separators:i=ot.separators,showClearButton:l=ot.showClearButton,showValidationIcon:p=ot.showValidationIcon,prefix:u,suffix:d,type:x,value:h,placeholder:v,hover:c,focus:k,valid:g,invalid:I,required:A,loading:z,disabled:O,readonly:Q,...Fe}=e;return(0,W.jsxs)(E,{...Fe,size:t,rounded:o,fillMode:n,hover:c,focus:k,valid:g,invalid:I,required:A,loading:z,disabled:O,readonly:Q,className:s(e.className,Is),children:[u&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(ve,{children:u}),i&&(0,W.jsx)(Be,{})]}),(0,W.jsx)(fe,{placeholder:v,value:h,type:x}),p&&(0,W.jsx)(te,{valid:g,invalid:I,loading:z,disabled:O}),(0,W.jsx)(ae,{loading:z,disabled:O}),l&&(0,W.jsx)(ue,{loading:z,disabled:O,readonly:Q,value:h}),d&&(0,W.jsxs)(W.Fragment,{children:[i&&(0,W.jsx)(Be,{}),(0,W.jsx)(Le,{children:d})]})]})};se.states=ei;se.options=ti;se.className=Is;se.defaultOptions=ot;var oi=require("react/jsx-runtime");var Cs=require("react/jsx-runtime");var Ts=require("react/jsx-runtime");var oe=require("react/jsx-runtime"),Bs="k-actionsheet-titlebar",ai={},re=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:i,filter:l,input:p,inputValue:u,inputPlaceholder:d,adaptive:x,children:h,...v}=e;return(0,oe.jsxs)("div",{...v,className:s(e.className,Bs),children:[(0,oe.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[n&&(0,oe.jsx)("div",{className:"k-actionsheet-actions",children:n}),!h&&(0,oe.jsxs)("div",{className:"k-actionsheet-title",children:[t&&(0,oe.jsx)("div",{className:"k-text-center",children:t}),o&&(0,oe.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&(0,oe.jsx)("div",{className:"k-actionsheet-title",children:h}),i&&(0,oe.jsx)("div",{className:"k-actionsheet-actions",children:i})]}),(p||l)&&(0,oe.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?(0,oe.jsx)(se,{value:u,placeholder:d,size:x?"large":"medium"}):(0,oe.jsx)(Ae,{placeholder:"Filter",size:x?"large":"medium"})})]})};re.className=Bs;re.defaultOptions=ai;var bt=require("react/jsx-runtime"),$o="k-actionsheet-view",si=[],ri={},ni={},xt=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:l,...p}=e,u=(i==null?void 0:i.type)===re&&(0,bt.jsx)(re,{adaptive:t,...i==null?void 0:i.props}),d=(l==null?void 0:l.type)===_t&&(0,bt.jsx)(_t,{...l==null?void 0:l.props});return(0,bt.jsxs)("div",{...p,className:s(e.className,$o,{[`${$o}-animated`]:o}),children:[u,(0,bt.jsx)("div",{className:"k-actionsheet-content",children:n}),d]})};xt.states=si;xt.options=ri;xt.className=$o;xt.defaultOptions=ni;var at=require("react/jsx-runtime"),As="k-actionsheet",ii=[],li={},Xt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},be=e=>{let{side:t=Xt.side,fullscreen:o=Xt.fullscreen,adaptive:n=Xt.adaptive,overlay:i=Xt.overlay,template:l,children:p,header:u,footer:d,...x}=e;return(0,at.jsxs)("div",{className:"k-actionsheet-container",children:[i&&(0,at.jsx)("div",{className:"k-overlay"}),(0,at.jsx)(De,{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,at.jsx)("div",{...x,className:s(e.className,As,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:l||(0,at.jsx)(xt,{header:u,footer:d,adaptive:n,...e,children:p})})})]})};be.states=ii;be.options=li;be.className=As;be.defaultOptions=Xt;var pi=require("react/jsx-runtime");var ne=require("react/jsx-runtime"),Do="k-actionsheet-item",ci=[a.hover,a.focus,a.selected,a.disabled],Vo=e=>{let{iconName:t,text:o,description:n,hover:i,focus:l,selected:p,disabled:u,...d}=e;return(0,ne.jsxs)("span",{...d,className:s(e.className,Do,M(Do,{hover:i,focus:l,selected:p,disabled:u})),children:[!e.children&&(0,ne.jsx)(ne.Fragment,{children:(0,ne.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,ne.jsx)("span",{className:"k-icon-wrap",children:(0,ne.jsx)(T,{className:"k-actionsheet-item-icon",icon:t})}),(0,ne.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,ne.jsx)("span",{className:"k-actionsheet-item-title",children:o}),n&&(0,ne.jsx)("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Vo.states=ci;Vo.className=Do;var zs=require("react/jsx-runtime");var mi=require("react/jsx-runtime");var di=require("react/jsx-runtime");var ui=require("react/jsx-runtime");var xe=require("react/jsx-runtime"),Jt="k-slider",fi=[a.hover,a.focus,a.active,a.disabled,a.readonly],bi={},Xe={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},ie=e=>{let{type:t=Xe.type,orientation:o=Xe.orientation,readonly:n=Xe.readonly,disabled:i=Xe.disabled,handlePosition:l=Xe.handlePosition,showButtons:p=Xe.showButtons,showTicks:u=Xe.showTicks,hover:d,focus:x,active:h,trackStyle:v,dir:c,...k}=e,g,I;return o==="horizontal"?(g=c==="rtl"?"caret-alt-left":"caret-alt-right",I=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(g="caret-alt-up",I="caret-alt-down"),(0,xe.jsxs)("div",{...k,className:s(Jt,e.className,M(Jt,{readonly:n,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[p&&(0,xe.jsx)(m,{className:"k-button-decrease",rounded:"full",icon:I}),(0,xe.jsxs)("div",{className:"k-slider-track-wrap",children:[u&&(0,xe.jsx)("ul",{className:"k-reset k-slider-items",children:e.children}),(0,xe.jsxs)("div",{className:"k-slider-track",style:v,children:[(0,xe.jsx)("div",{className:"k-slider-selection"}),t==="range"&&(0,xe.jsx)("span",{className:s("k-draghandle","k-draghandle-start",M(Jt,{hover:d,focus:x,active:h}))}),(0,xe.jsx)("span",{className:s("k-draghandle",`k-draghandle-${l}`,M(Jt,{hover:d,focus:x,active:h}))})]})]}),p&&(0,xe.jsx)(m,{className:"k-button-increase",rounded:"full",icon:g})]})};ie.states=fi;ie.options=bi;ie.className=Jt;ie.defaultOptions=Xe;var _o=require("react/jsx-runtime"),Es="k-tick",xi=[],hi={},Ps={label:!1},Je=e=>{let{style:t,label:o=Ps.label,orientation:n,large:i,text:l,...p}=e;return(0,_o.jsx)("li",{...p,className:s(e.className,Es,{[`k-tick-${n}`]:n,"k-tick-large":i}),style:t,children:o&&(0,_o.jsx)("span",{className:"k-label",children:l})})};Je.states=xi;Je.options=hi;Je.className=Es;Je.defaultOptions=Ps;var Xo=require("react/jsx-runtime");var Jo=require("react/jsx-runtime");var Uo=require("react/jsx-runtime");var qo=require("react/jsx-runtime");var Os=require("react/jsx-runtime"),Wo=e=>(0,Os.jsx)(ie,{type:"gradient",showButtons:!1,showTicks:!1,...e});var Rs=require("react/jsx-runtime"),Zo=e=>(0,Rs.jsx)(ie,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});var Ut=require("react/jsx-runtime"),Ks="k-spin-button",Ni=[],ki={size:[r.small,r.medium,r.large],fillMode:[f.solid,f.flat,f.outline,f.clear,f.link]},Qo={size:r.medium,fillMode:f.solid},ht=e=>{let{size:t=Qo.size,fillMode:o=Qo.fillMode,...n}=e;return(0,Ut.jsxs)("span",{...n,className:s(Ks,e.className),children:[(0,Ut.jsx)(m,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),(0,Ut.jsx)(m,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};ht.states=Ni;ht.options=ki;ht.className=Ks;ht.defaultOptions=Qo;var J=require("react/jsx-runtime"),Hs="k-numerictextbox",vi=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Li={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},st={showSpinButton:!0,showClearButton:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},R=e=>{let{size:t=st.size,rounded:o=st.rounded,fillMode:n=st.fillMode,separators:i=st.separators,showClearButton:l=st.showClearButton,showSpinButton:p=st.showSpinButton,prefix:u,suffix:d,value:x,placeholder:h,hover:v,focus:c,valid:k,invalid:g,required:I,loading:A,disabled:z,readonly:O,...Q}=e;return(0,J.jsxs)(E,{...Q,size:t,rounded:o,fillMode:n,hover:v,focus:c,valid:k,invalid:g,required:I,loading:A,disabled:z,readonly:O,className:s(e.className,Hs),children:[u&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(ve,{children:u}),i&&(0,J.jsx)(Be,{})]}),(0,J.jsx)(fe,{placeholder:h,value:x}),(0,J.jsx)(te,{valid:k,invalid:g,loading:A,disabled:z}),(0,J.jsx)(ae,{loading:A,disabled:z}),l&&(0,J.jsx)(ue,{loading:A,disabled:z,readonly:O,value:x}),d&&(0,J.jsxs)(J.Fragment,{children:[i&&(0,J.jsx)(Be,{}),(0,J.jsx)(Le,{children:d})]}),p&&(0,J.jsx)(ht,{className:"k-input-spinner",size:t,fillMode:n})]})};R.states=vi;R.options=Li;R.className=Hs;R.defaultOptions=st;var gi=require("react/jsx-runtime");var Fs=require("react/jsx-runtime"),Si="k-no-data",qt=e=>(0,Fs.jsx)("span",{className:s(Si,e.className),children:e.children});var ge=require("react/jsx-runtime"),Yo="k-list",yi=[],Ii={size:[r.small,r.medium,r.large]},$s={size:r.medium},K=e=>{let{size:t=$s.size,virtualization:o,children:n,optionLabel:i,customValue:l,screenReaders:p,...u}=e,d,x,h,v,c=[];return n?n.map((k,g)=>{k.type===U?(k.props.root===!0?(d=k.props.label,k.props.children.map((I,A)=>{c.push((0,ge.jsx)(B,{...I.props},`optChild-${A}-${new Date().getTime()}`))})):k.props.children.forEach((I,A)=>{let z="";A===0&&(z=k.props.label),c.push((0,ge.jsx)(B,{className:A===0?"k-first":"",...I.props,groupLabel:z},`groupLabel-${A}-${new Date().getTime()}`))}),x=(0,ge.jsx)(U,{label:d,virtualization:o,children:c})):k.type===B&&(c.push((0,ge.jsx)(B,{...k.props},`${k.type}-${g}`)),h=(0,ge.jsx)(Nt,{virtualization:o,children:c}),p&&(v=(0,ge.jsxs)(qt,{className:"k-sr-only",children:[c.length," items found."]})))}):v=(0,ge.jsx)(qt,{children:"No data found."}),(0,ge.jsxs)("div",{...u,className:s(e.className,Yo,S(Yo,{size:t}),{"k-virtual-list":o}),children:[i,l,x,h,v]})};K.states=yi;K.options=Ii;K.className=Yo;K.defaultOptions=$s;var Se=require("react/jsx-runtime"),jo="k-list",Mi=[],Ci={size:[r.small,r.medium,r.large]},Ds={size:r.medium},rt=e=>{let{size:t=Ds.size,virtualization:o,children:n,...i}=e,l,p,u,d=[];return n?n.map((x,h)=>{x.type===U?(x.props.root===!0?(l=x.props.label,x.props.children.map((v,c)=>{d.push((0,Se.jsx)(B,{...v.props},`optChild-${c}-${new Date().getTime()}`))})):(d.push((0,Se.jsx)(Vs,{...x.props,children:x.props.label},`listChild-${h}`)),x.props.children.map((v,c)=>{d.push((0,Se.jsx)(B,{...v.props},`fwOptChild-${c}-${new Date().getTime()}`))})),p=(0,Se.jsx)(U,{label:l,virtualization:o,children:d})):x.type===B&&(d.push((0,Se.jsx)(B,{...x.props},`${x.type}-${h}`)),u=(0,Se.jsx)(Nt,{virtualization:o,children:d}))}):u=(0,Se.jsx)(qt,{children:"No data found."}),(0,Se.jsxs)("div",{...i,className:s(e.className,jo,S(jo,{size:t}),{"k-virtual-list":o}),children:[p,u]})};rt.states=Mi;rt.options=Ci;rt.className=jo;rt.defaultOptions=Ds;var ta=require("react/jsx-runtime"),co="k-checkbox",Ti=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],Bi={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full]},ea={size:r.medium,rounded:N.medium},ze=e=>{let{id:t,checked:o,indeterminate:n,hover:i,focus:l,disabled:p,invalid:u,valid:d,required:x,size:h=ea.size,rounded:v=ea.rounded,...c}=e;return(0,ta.jsx)("span",{className:"k-checkbox-wrap",children:(0,ta.jsx)("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:x,className:s(e.className,co,S(co,{size:h,rounded:v}),M(co,{hover:i,focus:l,disabled:p,invalid:u,valid:d,indeterminate:n,checked:o}))})})};ze.states=Ti;ze.options=Bi;ze.className=co;ze.defaultOptions=ea;var Wt=ze;var Js=require("react/jsx-runtime"),_s="k-checkbox-list",Ai=[],zi={},Xs={layout:"vertical"},kt=e=>{let{layout:t=Xs.layout,...o}=e;return(0,Js.jsx)("ul",{...o,className:s(e.className,_s,{[`k-list-${t}`]:t}),children:e.children})};kt.states=Ai;kt.options=zi;kt.className=_s;kt.defaultOptions=Xs;var qs=require("react/jsx-runtime"),Us="k-checkbox-list-item",wi=[],Ei={},Pi={},vt=e=>{let{...t}=e;return(0,qs.jsx)("li",{...t,className:s(e.className,Us),children:e.children})};vt.states=wi;vt.options=Ei;vt.className=Us;vt.defaultOptions=Pi;var nt=require("react/jsx-runtime"),oa=({children:e,id:t,...o})=>(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(Wt,{id:t,...o}),(0,nt.jsx)("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});var aa=require("react/jsx-runtime");var sa=require("react/jsx-runtime");var ra=require("react/jsx-runtime");var Oi=require("react/jsx-runtime");var Ri=require("react/jsx-runtime");var it=require("react/jsx-runtime"),na="k-list-item",Ki=[a.hover,a.focus,a.selected,a.disabled],Hi={},Gi={},B=e=>{let{text:t,groupLabel:o,group:n,showIcon:i,iconName:l,showCheckbox:p,checked:u,hover:d,focus:x,selected:h,disabled:v,...c}=e,k=t||e.children;return(0,it.jsxs)("li",{...c,className:s(e.className,n?"k-list-group-item":na,M(na,{hover:d,focus:x,disabled:v,selected:h})),children:[p&&(0,it.jsx)(ze,{checked:u}),i&&(0,it.jsx)(T,{icon:l}),(0,it.jsx)("span",{className:"k-list-item-text",children:k}),o&&o!==""&&(0,it.jsx)("div",{className:"k-list-item-group-label",children:o})]})};B.states=Ki;B.options=Hi;B.className=na;B.defaultOptions=Gi;var Lt=require("react/jsx-runtime"),Fi="k-list-content",Nt=e=>{let{virtualization:t,...o}=e;return(0,Lt.jsxs)("div",{...o,className:s(Fi,e.className),children:[(0,Lt.jsx)("ul",{className:s("k-list-ul"),children:e.children}),t&&(0,Lt.jsx)("div",{className:"k-height-container",children:(0,Lt.jsx)("div",{})})]})};var ia=require("react/jsx-runtime"),$i="k-list-group-sticky-header",Ws=e=>(0,ia.jsx)("div",{className:s($i,e.className),children:(0,ia.jsx)("div",{className:"k-list-header-text",children:e.children})});var lt=require("react/jsx-runtime"),U=e=>{let{virtualization:t,label:o}=e;return(0,lt.jsxs)(lt.Fragment,{children:[o&&(0,lt.jsx)(Ws,{children:o}),e.children&&(0,lt.jsx)(Nt,{virtualization:t,children:e.children})]})};var la=require("react/jsx-runtime"),Di="k-list-group-item",Vs=e=>(0,la.jsx)("li",{className:s(Di,e.className),children:(0,la.jsx)("span",{className:"k-list-item-text",children:e.children})});var Zs=require("react/jsx-runtime"),pa="k-list-optionlabel",Vi=[a.hover,a.focus,a.selected,a.disabled],_i={},Xi={},mo=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:l,...p}=e;return(0,Zs.jsx)("div",{...p,className:s(pa,M(pa,{hover:o,focus:n,selected:i,disabled:l})),children:t})};mo.states=Vi;mo.options=_i;mo.className=pa;mo.defaultOptions=Xi;var Qs=require("react/jsx-runtime"),ca="k-list-custom-value",Ji=[a.hover,a.focus,a.selected,a.disabled],Ui={},qi={},Ue=e=>{let{text:t,hover:o,focus:n,selected:i,disabled:l,...p}=e;return(0,Qs.jsx)("div",{...p,className:s(ca,M(ca,{hover:o,focus:n,selected:i,disabled:l})),children:t})};Ue.states=Ji;Ue.options=Ui;Ue.className=ca;Ue.defaultOptions=qi;var Wi=require("react/jsx-runtime");var Zi=require("react/jsx-runtime");var Ys=require("react/jsx-runtime");var js=require("react/jsx-runtime");var Qi=require("react/jsx-runtime");var er=require("react/jsx-runtime");var tr=require("react/jsx-runtime");var G=require("react/jsx-runtime"),or="k-dropdownlist",Yi=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ji={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},gt={showValue:!0,arrowIconName:"caret-alt-down",size:r.medium,rounded:N.medium,fillMode:f.solid},_=e=>{let{size:t=gt.size,rounded:o=gt.rounded,fillMode:n=gt.fillMode,arrowIconName:i=gt.arrowIconName,showValue:l=gt.showValue,valueIconName:p,prefix:u,suffix:d,value:x,placeholder:h,hover:v,focus:c,valid:k,invalid:g,required:I,loading:A,disabled:z,readonly:O,popup:Q,opened:Fe,adaptive:wt,adaptiveSettings:Et,adaptiveTitle:go,adaptiveSubtitle:So,adaptiveFilter:Zr,...Qr}=e;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(de,{...Qr,size:t,rounded:o,fillMode:n,hover:v,focus:c,valid:k,invalid:g,required:I,loading:A,disabled:z,readonly:O,className:s(e.className,or,{"k-icon-picker":!l&&p}),children:[(0,G.jsx)(ve,{children:u}),(0,G.jsx)(tt,{placeholder:h,value:x,showValue:l,valueIconName:p}),(0,G.jsx)(te,{valid:k,invalid:g,loading:A,disabled:z}),(0,G.jsx)(ae,{loading:A,disabled:z}),(0,G.jsx)(Le,{children:d}),(0,G.jsx)(m,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),Fe&&Q&&(0,G.jsx)(X,{className:"k-list-container k-dropdownlist-popup",children:Q}),wt&&(0,G.jsx)(be,{adaptive:!0,...Et,header:(0,G.jsx)(re,{actionsEnd:(0,G.jsx)(m,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Zr,inputValue:x,inputPlaceholder:h,title:go,subtitle:So}),children:(0,G.jsx)("div",{className:"k-list-container",children:(0,G.jsxs)(K,{size:"large",children:[(0,G.jsx)(B,{text:"List item"}),(0,G.jsx)(B,{text:"List item"}),(0,G.jsx)(B,{text:"List item"})]})})})]})};_.states=Yi;_.options=ji;_.className=or;_.defaultOptions=gt;var el=require("react/jsx-runtime");var ar=require("react/jsx-runtime");var ma=require("react/jsx-runtime");var tl=require("react/jsx-runtime");var sr=require("react/jsx-runtime");var rr=require("react/jsx-runtime");var da=require("react/jsx-runtime");var ua=require("react/jsx-runtime");var nr=require("react/jsx-runtime");var ir=require("react/jsx-runtime");var L=require("react/jsx-runtime"),lr="k-colorgradient-inputs",ol=[],al={size:[r.small,r.medium,r.large]},pr={mode:"rgba",size:r.medium},St=e=>{let{mode:t=pr.mode,size:o,...n}=e;return(0,L.jsxs)("div",{...n,className:s(lr,"k-hstack"),children:[(0,L.jsx)("div",{className:"k-vstack",children:(0,L.jsx)(m,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(R,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("div",{className:"k-vstack k-flex-1",children:[(0,L.jsx)(se,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};St.states=ol;St.options=al;St.className=lr;St.defaultOptions=pr;var Z=require("react/jsx-runtime"),cr="k-colorgradient-color-contrast",sl=[],rl={},nl={},yt=()=>(0,Z.jsxs)("div",{className:s(cr,"k-vbox"),children:[(0,Z.jsxs)("div",{className:"k-contrast-ratio",children:[(0,Z.jsx)("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),(0,Z.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:[(0,Z.jsx)(T,{icon:"check"}),(0,Z.jsx)(T,{icon:"check"})]})]}),(0,Z.jsxs)("div",{children:[(0,Z.jsx)("span",{children:"AA: 4.5"}),(0,Z.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:["Pass",(0,Z.jsx)(T,{icon:"check"})]})]}),(0,Z.jsxs)("div",{children:[(0,Z.jsx)("span",{children:"AAA: 7.0"}),(0,Z.jsxs)("span",{className:"k-contrast-validation !k-text-error",children:["Fail",(0,Z.jsx)(T,{icon:"x"})]})]})]});yt.states=sl;yt.options=rl;yt.className=cr;yt.defaultOptions=nl;var D=require("react/jsx-runtime"),uo="k-colorgradient",il=[a.hover,a.focus,a.readonly,a.disabled],ll={size:[r.small,r.medium,r.large]},he={size:r.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"},qe=e=>{let{size:t=he.size,mode:o=he.mode,readonly:n=he.readonly,disabled:i=he.disabled,gradientStyle:l=he.gradientStyle,dragHandleStyle:p=he.dragHandleStyle,alphaStyle:u=he.alphaStyle,alphaStyleHorizontal:d=he.alphaStyleHorizontal,contrast:x=he.contrast,dir:h,hover:v,focus:c,hoverHandle:k,focusHandle:g,canvasOrientation:I=he.canvasOrientation,...A}=e;return(0,D.jsxs)("div",{...A,className:s(e.className,uo,S(uo,{size:t}),M(uo,{hover:v,focus:c,readonly:n,disabled:i})),dir:h,children:[!I||I==="horizontal"&&(0,D.jsxs)("div",{className:"k-colorgradient-canvas k-hstack",children:[(0,D.jsx)("div",{className:"k-hsv-rectangle",style:l,children:(0,D.jsx)("div",{className:"k-hsv-gradient",children:(0,D.jsx)("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":g}),style:p})})}),(0,D.jsxs)("div",{className:"k-hsv-controls k-hstack",children:[(0,D.jsx)(Zo,{className:"k-hue-slider",hover:k,focus:g}),o!=="rgb"&&o!=="hsv"&&(0,D.jsx)(Zo,{className:"k-alpha-slider",hover:k,focus:g,trackStyle:u})]})]}),I==="vertical"&&(0,D.jsxs)("div",{className:"k-colorgradient-canvas k-vstack",children:[(0,D.jsx)("div",{className:"k-hsv-rectangle",style:l,children:(0,D.jsx)("div",{className:"k-hsv-gradient",children:(0,D.jsx)("div",{className:s("k-hsv-draghandle","k-draghandle",{"k-hover":k,"k-focus":g}),style:p})})}),(0,D.jsxs)("div",{className:"k-hsv-controls k-vstack",children:[(0,D.jsx)(Wo,{className:"k-hue-slider",hover:k,focus:g}),o!=="rgb"&&o!=="hsv"&&(0,D.jsx)(Wo,{className:"k-alpha-slider",hover:k,focus:g,trackStyle:d})]})]}),(0,D.jsx)(St,{mode:e.mode,size:t}),x&&(0,D.jsx)(yt,{})]})};qe.states=il;qe.options=ll;qe.className=uo;qe.defaultOptions=he;var pl=require("react/jsx-runtime");var cl=require("react/jsx-runtime");var dr=require("react/jsx-runtime"),mr=e=>(0,dr.jsx)("tr",{children:e.children});var ur=require("react/jsx-runtime"),fa="k-colorpalette-tile",ml=[a.hover,a.focus,a.selected],dl={},Zt=e=>{let{color:t,tileSize:o,hover:n,focus:i,selected:l,...p}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return(0,ur.jsx)("td",{...p,className:s(e.className,fa,M(fa,{hover:n,focus:i,selected:l})),style:u})};Zt.states=ml;Zt.options=dl;Zt.className=fa;var It=require("react/jsx-runtime"),fo="k-colorpalette",ul=[a.disabled],fl={size:[r.small,r.medium,r.large]},ba={columns:10,size:r.medium},Mt=e=>{let{size:t=ba.size,palette:o,columns:n=ba.columns,tileSize:i,disabled:l,...p}=e,u=[];if(o){let d=n||o.columns,x=o.colors?o.colors:o;Array.isArray(x)&&Array.from({length:Math.ceil(x.length/d)},(h,v)=>{let c=[];x.slice(v*d,(v+1)*d).map((g,I)=>{c.push((0,It.jsx)(Zt,{color:g,tileSize:i},I))});let k=(0,It.jsx)(mr,{children:c},v);u.push(k)})}return(0,It.jsx)("div",{...p,className:s(e.className,fo,M(fo,{disabled:l}),S(fo,{size:t})),children:(0,It.jsx)("table",{className:"k-colorpalette-table",children:(0,It.jsx)("tbody",{children:u.length>0?u:e.children})})})};Mt.states=ul;Mt.options=fl;Mt.className=fo;Mt.defaultOptions=ba;var xa={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 bl=require("react/jsx-runtime");var F=require("react/jsx-runtime"),bo="k-coloreditor",xl=[a.focus],hl={size:[r.small,r.medium,r.large]},Ct={size:r.medium,view:"gradient",palette:xa.office,actionButtons:!0,canvasOrientation:"horizontal"},ye=e=>{let{size:t=Ct.size,view:o=Ct.view,palette:n=Ct.palette,color:i,currentColor:l,focus:p,focusView:u,dir:d,group:x,actionButtons:h=Ct.actionButtons,canvasOrientation:v=Ct.canvasOrientation,...c}=e;return(0,F.jsxs)("div",{...c,className:s(e.className,"k-flatcolorpicker",bo,S(bo,{size:t}),M(bo,{focus:p})),dir:d,children:[(0,F.jsxs)("div",{className:"k-coloreditor-header k-hstack",children:[(0,F.jsx)("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&(0,F.jsxs)(H,{fillMode:"flat",children:[(0,F.jsx)(m,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),(0,F.jsx)(m,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),(0,F.jsx)("div",{className:"k-spacer"}),(0,F.jsxs)("div",{className:"k-coloreditor-header-actions k-hstack",children:[(0,F.jsx)(m,{fillMode:"flat",icon:"droplet-slash",size:t}),(0,F.jsxs)("div",{className:"k-coloreditor-preview k-vstack",children:[(0,F.jsx)($e,{className:"k-coloreditor-preview-color",color:i}),(0,F.jsx)($e,{className:"k-coloreditor-current-color",color:l})]})]})]}),(0,F.jsx)("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?(0,F.jsx)(qe,{focus:u,size:t,canvasOrientation:v}):(0,F.jsx)(Mt,{palette:n,size:t})}),h&&(0,F.jsxs)(Ve,{className:"k-coloreditor-footer",alignment:"start",children:[(0,F.jsx)(m,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),(0,F.jsx)(m,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ye.states=xl;ye.options=hl;ye.className=bo;ye.defaultOptions=Ct;var Nl=require("react/jsx-runtime");var kl=require("react/jsx-runtime");var vl=require("react/jsx-runtime");var Ll=require("react/jsx-runtime");var V=require("react/jsx-runtime"),fr="k-colorpicker",gl=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],Sl={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[f.solid,f.flat,f.outline]},Qt={arrowIconName:"caret-alt-down",size:de.defaultOptions.size,rounded:de.defaultOptions.rounded,fillMode:de.defaultOptions.fillMode},we=e=>{let{size:t=Qt.size,rounded:o=Qt.rounded,fillMode:n=Qt.fillMode,arrowIconName:i=Qt.arrowIconName,prefix:l,suffix:p,value:u,placeholder:d,hover:x,focus:h,valid:v,invalid:c,required:k,disabled:g,valueIconName:I,popup:A,opened:z,adaptive:O,adaptiveSettings:Q,adaptiveTitle:Fe,adaptiveSubtitle:wt,...Et}=e;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(de,{...Et,size:t,rounded:o,fillMode:n,hover:x,focus:h,valid:v,invalid:c,required:k,disabled:g,className:s(e.className,fr,"k-icon-picker"),children:[(0,V.jsx)(ve,{children:l}),(0,V.jsx)(tt,{placeholder:d,value:u,showValue:!1,valueIcon:(0,V.jsx)($e,{className:"k-value-icon",color:u,iconName:I}),valueIconName:I}),(0,V.jsx)(Le,{children:p}),(0,V.jsx)(m,{className:"k-input-button",icon:i,rounded:null,size:t,fillMode:n})]}),z&&A&&(0,V.jsx)(X,{className:"k-colorpicker-popup",children:A}),O&&(0,V.jsx)(be,{adaptive:!0,...Q,header:(0,V.jsx)(re,{actionsEnd:(0,V.jsx)(m,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:Fe,subtitle:wt}),footer:(0,V.jsxs)(_t,{children:[(0,V.jsx)(m,{text:"Cancel",size:"large",themeColor:"base"}),(0,V.jsx)(m,{text:"Set",size:"large",themeColor:"primary"})]}),children:(0,V.jsx)(ye,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group