UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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