UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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