@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 72.2 kB
JavaScript
var Gr=Object.create;var lo=Object.defineProperty;var Ur=Object.getOwnPropertyDescriptor;var Fr=Object.getOwnPropertyNames;var $r=Object.getPrototypeOf,Xr=Object.prototype.hasOwnProperty;var Vr=(e,t)=>{for(var o in t)lo(e,o,{get:t[o],enumerable:!0})},cs=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Fr(t))!Xr.call(e,i)&&i!==o&&lo(e,i,{get:()=>t[i],enumerable:!(a=Ur(t,i))||a.enumerable});return e};var Jr=(e,t,o)=>(o=e!=null?Gr($r(e)):{},cs(t||!e||!e.__esModule?lo(o,"default",{value:e,enumerable:!0}):o,e)),qr=e=>cs(lo({},"__esModule",{value:!0}),e);var vm={};Vr(vm,{DOCKMANAGER_CLASSNAME:()=>ms,DockManager:()=>ot,default:()=>Sm});module.exports=qr(vm);var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(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)=>{let{valid:o,invalid:a,hover:i,focus:l,checked:p,active:c,selected:d,disabled:b,indeterminate:L,loading:v,empty:m,readonly:M,highlighted:x,...E}=t;return s({"k-valid":o,"k-invalid":a,"k-hover":i,"k-focus":l,"k-checked":p,"k-active":c,"k-selected":d,"k-disabled":b,"k-indeterminate":L&&!p,"k-loading":v,"k-empty":m,"k-readonly":M,"k-highlighted":x},Object.keys(E).reduce((O,I)=>(I.startsWith("k-")?O[I]=E[I]:O[`k-${I}`]=E[I],O),{}))};function ds(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},N={small:"small",medium:"medium",large:"large",full:"full"},u={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},f={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},n={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var us=require("react/jsx-runtime"),nt="k-pane",Wr=[],Qr={},Ao={resizable:!0,flex:!1},de=e=>{let{scrollable:t,flexBasis:o,flex:a=Ao.flex,collapsible:i,resizable:l=Ao.resizable,pinned:p,unpinned:c,tabbed:d,...b}=e;return(0,us.jsx)("div",{...b,style:{flexBasis:o,...e.style},className:s(e.className,nt,{[`${nt}-static`]:o,[`${nt}-flex`]:a,"k-scrollable":t,[`${nt}-pinned`]:p,[`${nt}-unpinned`]:c,[`${nt}-tabbed`]:d}),children:e.children})};de.states=Wr;de.options=Qr;de.className=nt;de.defaultOptions=Ao;var Gt=require("react/jsx-runtime"),Io="k-font-icon",Yr=[],Zr={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark]},jr={},Ut=e=>{let{size:t,themeColor:o,icon:a,rotate:i,flip:l,...p}=e;return a?(0,Gt.jsx)("span",{...p,className:s(e.className,Io,C(Io,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):(0,Gt.jsx)(Gt.Fragment,{})};Ut.states=Yr;Ut.options=Zr;Ut.className=Io;Ut.defaultOptions=jr;var fs=Ut;var st=require("react/jsx-runtime"),Oo="k-svg-icon",ei=[],ti={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark]},bs={viewBox:"0 0 24 24"},Ft=e=>{let{size:t,themeColor:o,rotate:a,flip:i,viewBox:l=bs.viewBox,icon:p,...c}=e;if(!p)return(0,st.jsx)(st.Fragment,{});p==="none"&&{...c,className:s(e.className,Oo,"k-none")};let d=typeof p=="object"&&p.name&&p.name;return(0,st.jsx)("span",{...c,className:s(e.className,Oo,C("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:(0,st.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})})};Ft.states=ei;Ft.options=ti;Ft.className=Oo;Ft.defaultOptions=bs;var yo=Ft;var Ro=Jr(require("@progress/kendo-svg-icons"));var Ns="icon",Ls="icons";var Re=require("react/jsx-runtime"),po="k-icon",oi=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ni=[],si={size:[r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark]},Po={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{size:t,themeColor:o,icon:a,type:i=Po.type,rotate:l,flip:p,viewBox:c=Po.viewBox,...d}=e;if(!a)return(0,Re.jsx)(Re.Fragment,{});if(i==="svg"){if(a==="none")return(0,Re.jsx)(yo,{...d,className:s(e.className,po),icon:a,size:t});let b=Ro[a]?a:oi(`${a}-icon`);return Ro[b]?(0,Re.jsx)(yo,{...d,className:s(e.className,po),icon:Ro[b],size:t,themeColor:o,rotate:l,flip:p,viewBox:c}):(0,Re.jsx)(Re.Fragment,{})}return(0,Re.jsx)(fs,{...d,className:s(e.className,po),icon:a,size:t,themeColor:o,rotate:l,flip:p})};k.states=ni;k.options=si;k.defaultOptions=Po;k.className=po;k.moduleName=Ns;k.folderName=Ls;var Y=require("react/jsx-runtime"),ht="k-splitbar",ai=[n.hover,n.focus],ri={},Ko={orientation:"horizontal",draggable:!0},Ue=e=>{let{hover:t,focus:o,orientation:a=Ko.orientation,draggable:i=Ko.draggable,collapsePrev:l,collapseNext:p,...c}=e;return(0,Y.jsxs)("div",{...c,className:s(e.className,ht,g(ht,{hover:t,focus:o}),{[`${ht}-${a}`]:a,[`${ht}-draggable-${a}`]:i,[`${ht}-static-${a}`]:!i&&!l&&!p}),children:[l&&(0,Y.jsx)(Y.Fragment,{children:(0,Y.jsx)("div",{className:"k-collapse-prev",children:(0,Y.jsx)(k,{icon:`caret-alt-${a==="horizontal"?"left":"up"}`,size:"xsmall"})})}),(0,Y.jsx)("div",{className:"k-resize-handle"}),p&&(0,Y.jsx)(Y.Fragment,{children:(0,Y.jsx)("div",{className:"k-collapse-next",children:(0,Y.jsx)(k,{icon:`caret-alt-${a==="horizontal"?"right":"down"}`,size:"xsmall"})})})]})};Ue.states=ai;Ue.options=ri;Ue.className=ht;Ue.defaultOptions=Ko;var Bo="splitter",xs=Bo;var zo=require("react/jsx-runtime"),hs=require("react"),_o="k-splitter",ii={},Ms={orientation:"horizontal"},at=e=>{let{orientation:t=Ms.orientation,children:o,...a}=e,i=[];return o&&Array.isArray(o)&&o.map((l,p)=>{if(l.type===de){let c=o[p+1],d=l.props,b=c==null?void 0:c.props;i.push((0,hs.createElement)(de,{...d,key:p}),c&&(0,zo.jsx)(Ue,{draggable:d.resizable!==!1&&b.resizable!==!1,collapsePrev:d.collapsible,collapseNext:b.collapsible,orientation:t},`splitbar-${p}`))}else i.push(l)}),(0,zo.jsx)("div",{...a,className:s(e.className,_o,{[`${_o}-${t}`]:t},"k-splitter-flex"),children:i})};at.options=ii;at.className=_o;at.defaultOptions=Ms;at.moduleName=Bo;at.folderName=xs;var Ss=require("react/jsx-runtime");var vs=require("react/jsx-runtime");var Ho="button",Es=Ho;var ue=require("react/jsx-runtime"),$t="k-button",li=["icon-button"],pi=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],mi={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link],themeColor:[f.base,f.primary,f.secondary,f.tertiary,f.success,f.warning,f.error,f.info,f.light,f.dark,f.inverse]},rt={size:r.medium,rounded:N.medium,fillMode:u.solid,themeColor:f.base,showArrow:!1,arrowIconName:"caret-alt-down"},h=e=>{let{size:t=rt.size,rounded:o=rt.rounded,fillMode:a=rt.fillMode,themeColor:i=rt.themeColor,showArrow:l=rt.showArrow,arrowIconName:p=rt.arrowIconName,variant:c,hover:d,focus:b,active:L,selected:v,disabled:m,icon:M,text:x,iconClassName:E,...O}=e,I=M!==void 0,P=e.children!==void 0;return(0,ue.jsxs)("button",{...O,className:s(e.className,$t,ds($t,c),C($t,{size:t,rounded:o,fillMode:a,themeColor:i}),g($t,{hover:d,focus:b,active:L,disabled:m,selected:v}),{"k-icon-button":!x&&!P&&I}),children:[M&&(0,ue.jsx)(k,{className:s(E,"k-button-icon"),icon:M}),x?(0,ue.jsxs)(ue.Fragment,{children:[x&&(0,ue.jsx)("span",{className:"k-button-text",children:x}),e.children]}):e.children&&(0,ue.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,ue.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,ue.jsx)(k,{icon:p})})]})};h.states=pi;h.options=mi;h.variants=li;h.className=$t;h.defaultOptions=rt;h.moduleName=Ho;h.folderName=Es;var ks=require("react/jsx-runtime"),mo=e=>(0,ks.jsx)(h,{icon:"folder",...e,children:void 0});var Cs=require("react/jsx-runtime"),wo=e=>(0,Cs.jsx)(h,{icon:"folder",children:"Button",...e});var ci=require("react/jsx-runtime");var Do="button",Ts=Do;var As=require("react/jsx-runtime"),Xt="k-button-group",di=[n.disabled],ui={fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},gs={fillMode:u.solid},B=e=>{let{fillMode:t=gs.fillMode,disabled:o,stretched:a,...i}=e;return(0,As.jsx)("div",{...i,className:s(e.className,Xt,C(Xt,{fillMode:t}),g(Xt,{disabled:o}),{[`${Xt}-stretched`]:a}),children:e.children})};B.states=di;B.options=ui;B.className=Xt;B.defaultOptions=gs;B.moduleName=Do;B.folderName=Ts;var Go=require("react/jsx-runtime");var Uo=require("react/jsx-runtime");var Fo=require("react/jsx-runtime");var $o=require("react/jsx-runtime");var Vt="input",co=Vt;var Is=require("react/jsx-runtime"),uo="k-input",fi=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],bi={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},fo={size:r.medium,rounded:r.medium,fillMode:u.solid},R=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:l,loading:p,readonly:c,size:d=fo.size,rounded:b=fo.rounded,fillMode:L=fo.fillMode,...v}=e;return(0,Is.jsx)("span",{...v,className:s(e.className,uo,C(uo,{size:d,rounded:b,fillMode:L}),g(uo,{hover:t,focus:o,disabled:a,invalid:i,valid:l,loading:p,readonly:c}))})};R.states=fi;R.options=bi;R.className=uo;R.defaultOptions=fo;R.moduleName=Vt;R.folderName=co;var Os=require("react/jsx-runtime"),bo="k-picker",Ni=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Li={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},No={size:r.medium,rounded:N.medium,fillMode:u.solid},Z=e=>{let{hover:t,focus:o,disabled:a,invalid:i,valid:l,loading:p,readonly:c,size:d=No.size,rounded:b=No.rounded,fillMode:L=No.fillMode,...v}=e;return(0,Os.jsx)("span",{...v,className:s(e.className,bo,C(bo,{size:d,rounded:b,fillMode:L}),g(bo,{hover:t,focus:o,disabled:a,invalid:i,valid:l,loading:p,readonly:c})),children:e.children})};Z.states=Ni;Z.options=Li;Z.className=bo;Z.defaultOptions=No;Z.moduleName=Vt;Z.folderName=co;var St=require("react/jsx-runtime"),ys="k-clear-value",xi=[n.disabled,n.loading,n.readonly],Mi={},fe=e=>{let{disabled:t,loading:o,readonly:a,value:i}=e;return t||a||o||!i?(0,St.jsx)(St.Fragment,{}):(0,St.jsx)("span",{className:s(e.className,ys),children:(0,St.jsx)(k,{icon:"x"})})};fe.states=xi;fe.options=Mi;fe.className=ys;var Rs=require("react/jsx-runtime"),Xo="k-input-inner",hi=[],Si={},Lo={type:"text",autocomplete:"off",value:"",placeholder:""},be=e=>{let{value:t=Lo.value,type:o=Lo.type,placeholder:a=Lo.placeholder,autocomplete:i=Lo.autocomplete,...l}=e;return(0,Rs.jsx)("input",{...l,type:o,className:s(e.className,Xo,C(Xo,e)),placeholder:a,autoComplete:i,defaultValue:t})};be.states=hi;be.options=Si;be.className=Xo;var Jt=require("react/jsx-runtime"),Vo="k-input-inner",vi=[],Ei={},it=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:i,valueIconName:l,...p}=e;return(0,Jt.jsxs)("span",{...p,className:s(e.className,Vo,C(Vo,e)),children:[i,!i&&l&&(0,Jt.jsx)(k,{className:"k-input-value-icon",icon:l}),a&&!t&&o,a&&t&&(0,Jt.jsx)("span",{className:"k-input-value-text",children:t})]})};it.states=vi;it.options=Ei;it.className=Vo;var Ks=require("react/jsx-runtime"),Jo="k-input-inner",ki=[],Ci={},Ps={value:"",placeholder:""},qo=e=>{let{value:t=Ps.value,placeholder:o=Ps.placeholder,rows:a,...i}=e;return(0,Ks.jsx)("textarea",{...i,className:s(e.className,Jo,C(Jo,e)),placeholder:o,rows:a,defaultValue:t})};qo.states=ki;qo.options=Ci;qo.className=Jo;var qt=require("react/jsx-runtime"),Bs="k-input-loading-icon",Ti=[n.disabled,n.loading],se=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,qt.jsx)(qt.Fragment,{}):(0,qt.jsx)("span",{className:s(e.className,Bs,"k-icon k-i-loading")})};se.states=Ti;se.className=Bs;var Wt=require("react/jsx-runtime"),_s="k-input-validation-icon",gi=[n.valid,n.invalid,n.disabled,n.loading],Ai={},j=e=>{let{valid:t,invalid:o,disabled:a,loading:i}=e,l=o?"warning-circle":"check-circle";return a||i||!!!(t||o)?(0,Wt.jsx)(Wt.Fragment,{}):(0,Wt.jsx)(k,{className:s(_s),icon:l})};j.states=gi;j.options=Ai;j.className=_s;var Qt=require("react/jsx-runtime"),Ii="k-input-prefix",Oi={direction:"horizontal"},ve=e=>{let{direction:t=Oi.direction,...o}=e;return e.children?(0,Qt.jsx)("span",{...o,className:s(Ii,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Qt.jsx)(Qt.Fragment,{})};var Yt=require("react/jsx-runtime"),yi="k-input-suffix",Ri={direction:"horizontal"},Ee=e=>{let{direction:t=Ri.direction,...o}=e;return e.children?(0,Yt.jsx)("span",{...o,className:s(yi,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Yt.jsx)(Yt.Fragment,{})};var Pi=require("react/jsx-runtime");var Ki=require("react/jsx-runtime");var Hs=require("react/jsx-runtime"),zs="k-input-separator",Bi={direction:"vertical"},Pe=e=>{let{direction:t=Bi.direction,...o}=e;return(0,Hs.jsx)("span",{...o,className:s(zs,e.className,{[`${zs}-${t}`]:t})})};var Zt=require("react/jsx-runtime"),ws="k-color-preview",_i=[],zi={},Fe=e=>{let{color:t,iconName:o,...a}=e;return(0,Zt.jsxs)("span",{...a,className:s(e.className,ws,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&(0,Zt.jsx)(k,{icon:o,className:"k-color-preview-icon"}),(0,Zt.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Fe.states=_i;Fe.options=zi;Fe.className=ws;var Wo="popup",Ds=Wo;var Qo=require("react/jsx-runtime"),Gs="k-animation-container",Hi=[],wi={},Us={positionMode:"absolute"},ke=e=>{let{positionMode:t=Us.positionMode,animationStyle:o,offset:a,...i}=e;return(0,Qo.jsx)("div",{...i,style:{...a,...e.style},className:s(e.className,Gs,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:(0,Qo.jsx)("div",{className:"k-child-animation-container",style:o,children:e.children})})};ke.states=Hi;ke.options=wi;ke.className=Gs;ke.defaultOptions=Us;ke.moduleName=Wo;ke.folderName=Ds;var Yo="popup",Fs=Yo;var Zo=require("react/jsx-runtime"),$s="k-popup",Di=[],Gi={},Xs={positionMode:"absolute"},w=e=>{let{offset:t,positionMode:o=Xs.positionMode,animationStyle:a,...i}=e;return(0,Zo.jsx)(ke,{positionMode:o,offset:t,animationStyle:a,children:(0,Zo.jsx)("div",{...i,className:s(e.className,$s),children:e.children})})};w.states=Di;w.options=Gi;w.className=$s;w.defaultOptions=Xs;w.moduleName=Yo;w.folderName=Fs;var jo="action-buttons",Vs=jo;var Js=require("react/jsx-runtime"),xo="k-actions",Ui=[],Fi={},en={alignment:"start",orientation:"horizontal"},Ce=e=>{let{alignment:t=en.alignment,orientation:o=en.orientation,...a}=e;return(0,Js.jsx)("div",{...a,className:s(xo,{[`${xo}-${t}`]:t,[`${xo}-${o}`]:o},e.className),children:e.children})};Ce.states=Ui;Ce.options=Fi;Ce.className=xo;Ce.defaultOptions=en;Ce.moduleName=jo;Ce.folderName=Vs;var Ws=require("react/jsx-runtime"),$i="k-actionsheet-footer",qs={alignment:"stretched",orientation:"horizontal"},jt=e=>{let{alignment:t=qs.alignment,orientation:o=qs.orientation,template:a,as:i=a?"div":Ce,...l}=e;return(0,Ws.jsx)(i,{...l,...!a&&{alignment:t,orientation:o},className:s(e.className,$i),children:e.children})};var tn="searchbox",Qs=tn;var $e=require("react/jsx-runtime"),Ys="k-searchbox",Xi=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],Vi={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},on={showIcon:!0,icon:"search",size:R.defaultOptions.size,rounded:R.defaultOptions.rounded,fillMode:R.defaultOptions.fillMode},Ne=e=>{let{value:t,placeholder:o,size:a,rounded:i,fillMode:l,hover:p,focus:c,valid:d,invalid:b,required:L,loading:v,disabled:m,showIcon:M=on.showIcon,icon:x=on.icon,...E}=e;return(0,$e.jsxs)(R,{...E,size:a,rounded:i,fillMode:l,hover:p,focus:c,valid:d,invalid:b,required:L,loading:v,disabled:m,className:s(e.className,Ys),children:[M&&(0,$e.jsx)(k,{className:"k-input-icon",icon:x}),(0,$e.jsx)(be,{placeholder:o,value:t}),(0,$e.jsx)(se,{...e}),(0,$e.jsx)(j,{...e}),(0,$e.jsx)(fe,{...e})]})};Ne.states=Xi;Ne.options=Vi;Ne.className=Ys;Ne.defaultOptions=on;Ne.moduleName=tn;Ne.folderName=Qs;var Ji=require("react/jsx-runtime");var nn="textbox",Zs=nn;var X=require("react/jsx-runtime"),js="k-textbox",qi=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Wi={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},lt={showClearButton:!0,showValidationIcon:!0,size:R.defaultOptions.size,rounded:R.defaultOptions.rounded,fillMode:R.defaultOptions.fillMode,separators:!0},Te=e=>{let{size:t=lt.size,rounded:o=lt.rounded,fillMode:a=lt.fillMode,separators:i=lt.separators,showClearButton:l=lt.showClearButton,showValidationIcon:p=lt.showValidationIcon,prefix:c,suffix:d,type:b,value:L,placeholder:v,hover:m,focus:M,valid:x,invalid:E,required:O,loading:I,disabled:P,readonly:q,...Ge}=e;return(0,X.jsxs)(R,{...Ge,size:t,rounded:o,fillMode:a,hover:m,focus:M,valid:x,invalid:E,required:O,loading:I,disabled:P,readonly:q,className:s(e.className,js),children:[c&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ve,{children:c}),i&&(0,X.jsx)(Pe,{})]}),(0,X.jsx)(be,{placeholder:v,value:L,type:b}),p&&(0,X.jsx)(j,{valid:x,invalid:E,loading:I,disabled:P}),(0,X.jsx)(se,{loading:I,disabled:P}),l&&(0,X.jsx)(fe,{loading:I,disabled:P,readonly:q,value:L}),d&&(0,X.jsxs)(X.Fragment,{children:[i&&(0,X.jsx)(Pe,{}),(0,X.jsx)(Ee,{children:d})]})]})};Te.states=qi;Te.options=Wi;Te.className=js;Te.defaultOptions=lt;Te.moduleName=nn;Te.folderName=Zs;var Qi=require("react/jsx-runtime");var ta=require("react/jsx-runtime");var oa=require("react/jsx-runtime");var ee=require("react/jsx-runtime"),na="k-actionsheet-titlebar",Yi={},ae=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:i,filter:l,input:p,inputValue:c,inputPlaceholder:d,adaptive:b,children:L,...v}=e;return(0,ee.jsxs)("div",{...v,className:s(e.className,na),children:[(0,ee.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[a&&(0,ee.jsx)("div",{className:"k-actionsheet-actions",children:a}),!L&&(0,ee.jsxs)("div",{className:"k-actionsheet-title",children:[t&&(0,ee.jsx)("div",{className:"k-text-center",children:t}),o&&(0,ee.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),L&&(0,ee.jsx)("div",{className:"k-actionsheet-title",children:L}),i&&(0,ee.jsx)("div",{className:"k-actionsheet-actions",children:i})]}),(p||l)&&(0,ee.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?(0,ee.jsx)(Te,{value:c,placeholder:d,size:b?"large":"medium"}):(0,ee.jsx)(Ne,{placeholder:"Filter",size:b?"large":"medium"})})]})};ae.className=na;ae.defaultOptions=Yi;var vt=require("react/jsx-runtime"),sn="k-actionsheet-view",Zi=[],ji={},el={},Et=e=>{let{adaptive:t,animated:o,children:a,header:i,footer:l,...p}=e,c=(i==null?void 0:i.type)===ae&&(0,vt.jsx)(ae,{adaptive:t,...i==null?void 0:i.props}),d=(l==null?void 0:l.type)===jt&&(0,vt.jsx)(jt,{...l==null?void 0:l.props});return(0,vt.jsxs)("div",{...p,className:s(e.className,sn,{[`${sn}-animated`]:o}),children:[c,(0,vt.jsx)("div",{className:"k-actionsheet-content",children:a}),d]})};Et.states=Zi;Et.options=ji;Et.className=sn;Et.defaultOptions=el;var eo="action-sheet",Mo=eo;var pt=require("react/jsx-runtime"),sa="k-actionsheet",tl=[],ol={},to={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},te=e=>{let{side:t=to.side,fullscreen:o=to.fullscreen,adaptive:a=to.adaptive,overlay:i=to.overlay,template:l,children:p,header:c,footer:d,...b}=e;return(0,pt.jsxs)("div",{className:"k-actionsheet-container",children:[i&&(0,pt.jsx)("div",{className:"k-overlay"}),(0,pt.jsx)(ke,{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,pt.jsx)("div",{...b,className:s(e.className,sa,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:l||(0,pt.jsx)(Et,{header:c,footer:d,adaptive:a,...e,children:p})})})]})};te.states=tl;te.options=ol;te.className=sa;te.defaultOptions=to;te.moduleName=eo;te.folderName=Mo;var ra=require("react/jsx-runtime"),aa="k-actionsheet-container",nl=[],sl={},al={},kt=e=>{let{children:t,...o}=e;return(0,ra.jsx)("div",{...o,className:aa,children:t})};kt.states=nl;kt.options=sl;kt.className=aa;kt.defaultOptions=al;kt.moduleName=eo;kt.folderName=Mo;var rl=require("react/jsx-runtime");var re=require("react/jsx-runtime"),an="k-actionsheet-item",il=[n.hover,n.focus,n.selected,n.disabled],rn=e=>{let{iconName:t,text:o,description:a,hover:i,focus:l,selected:p,disabled:c,...d}=e;return(0,re.jsxs)("span",{...d,className:s(e.className,an,g(an,{hover:i,focus:l,selected:p,disabled:c})),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)(k,{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}),a&&(0,re.jsx)("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};rn.states=il;rn.className=an;var ia=require("react/jsx-runtime");var ll=require("react/jsx-runtime");var pl=require("react/jsx-runtime");var ml=require("react/jsx-runtime");var ln="slider",pa=ln;var Le=require("react/jsx-runtime"),oo="k-slider",cl=[n.hover,n.focus,n.active,n.disabled,n.readonly],dl={},Xe={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},W=e=>{let{type:t=Xe.type,orientation:o=Xe.orientation,readonly:a=Xe.readonly,disabled:i=Xe.disabled,handlePosition:l=Xe.handlePosition,showButtons:p=Xe.showButtons,showTicks:c=Xe.showTicks,hover:d,focus:b,active:L,trackStyle:v,dir:m,...M}=e,x,E;return o==="horizontal"?(x=m==="rtl"?"caret-alt-left":"caret-alt-right",E=m==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(x="caret-alt-up",E="caret-alt-down"),(0,Le.jsxs)("div",{...M,className:s(oo,e.className,g(oo,{readonly:a,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:m,children:[p&&(0,Le.jsx)(h,{className:"k-button-decrease",rounded:"full",icon:E}),(0,Le.jsxs)("div",{className:"k-slider-track-wrap",children:[c&&(0,Le.jsx)("ul",{className:"k-reset k-slider-items",children:e.children}),(0,Le.jsxs)("div",{className:"k-slider-track",style:v,children:[(0,Le.jsx)("div",{className:"k-slider-selection"}),t==="range"&&(0,Le.jsx)("span",{className:s("k-draghandle","k-draghandle-start",g(oo,{hover:d,focus:b,active:L}))}),(0,Le.jsx)("span",{className:s("k-draghandle",`k-draghandle-${l}`,g(oo,{hover:d,focus:b,active:L}))})]})]}),p&&(0,Le.jsx)(h,{className:"k-button-increase",rounded:"full",icon:x})]})};W.states=cl;W.options=dl;W.className=oo;W.defaultOptions=Xe;W.moduleName=ln;W.folderName=pa;var pn=require("react/jsx-runtime"),ma="k-tick",ul=[],fl={},ca={label:!1},Ve=e=>{let{style:t,label:o=ca.label,orientation:a,large:i,text:l,...p}=e;return(0,pn.jsx)("li",{...p,className:s(e.className,ma,{[`k-tick-${a}`]:a,"k-tick-large":i}),style:t,children:o&&(0,pn.jsx)("span",{className:"k-label",children:l})})};Ve.states=ul;Ve.options=fl;Ve.className=ma;Ve.defaultOptions=ca;var mn=require("react/jsx-runtime");var cn=require("react/jsx-runtime");var dn=require("react/jsx-runtime");var un=require("react/jsx-runtime");var da=require("react/jsx-runtime"),fn=e=>(0,da.jsx)(W,{type:"gradient",showButtons:!1,showTicks:!1,...e});var ua=require("react/jsx-runtime"),bn=e=>(0,ua.jsx)(W,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});var no=require("react/jsx-runtime"),fa="k-spin-button",Ll=[],xl={size:[r.small,r.medium,r.large],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link]},Nn={size:r.medium,fillMode:u.solid},Je=e=>{let{size:t=Nn.size,fillMode:o=Nn.fillMode,...a}=e;return(0,no.jsxs)("span",{...a,className:s(fa,e.className),children:[(0,no.jsx)(h,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),(0,no.jsx)(h,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};Je.states=Ll;Je.options=xl;Je.className=fa;Je.defaultOptions=Nn;Je.moduleName=null;Je.folderName=null;var ba="numeric-textbox",Na="numerictextbox";var U=require("react/jsx-runtime"),La="k-numerictextbox",Ml=[n.hover,n.focus,n.valid,n.invalid,n.loading,n.required,n.disabled,n.readonly],hl={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},mt={showSpinButton:!0,showClearButton:!0,size:R.defaultOptions.size,rounded:R.defaultOptions.rounded,fillMode:R.defaultOptions.fillMode,separators:!0},_=e=>{let{size:t=mt.size,rounded:o=mt.rounded,fillMode:a=mt.fillMode,separators:i=mt.separators,showClearButton:l=mt.showClearButton,showSpinButton:p=mt.showSpinButton,prefix:c,suffix:d,value:b,placeholder:L,hover:v,focus:m,valid:M,invalid:x,required:E,loading:O,disabled:I,readonly:P,...q}=e;return(0,U.jsxs)(R,{...q,size:t,rounded:o,fillMode:a,hover:v,focus:m,valid:M,invalid:x,required:E,loading:O,disabled:I,readonly:P,className:s(e.className,La),children:[c&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(ve,{children:c}),i&&(0,U.jsx)(Pe,{})]}),(0,U.jsx)(be,{placeholder:L,value:b}),(0,U.jsx)(j,{valid:M,invalid:x,loading:O,disabled:I}),(0,U.jsx)(se,{loading:O,disabled:I}),l&&(0,U.jsx)(fe,{loading:O,disabled:I,readonly:P,value:b}),d&&(0,U.jsxs)(U.Fragment,{children:[i&&(0,U.jsx)(Pe,{}),(0,U.jsx)(Ee,{children:d})]}),p&&(0,U.jsx)(Je,{className:"k-input-spinner",size:t,fillMode:a})]})};_.states=Ml;_.options=hl;_.className=La;_.defaultOptions=mt;_.moduleName=ba;_.folderName=Na;var Sl=require("react/jsx-runtime");var Ma=require("react/jsx-runtime"),vl="k-no-data",so=e=>(0,Ma.jsx)("span",{className:s(vl,e.className),children:e.children});var Ke="list",qe=Ke;var ge=require("react/jsx-runtime"),Ln="k-list",El=[],kl={size:[r.small,r.medium,r.large]},ha={size:r.medium},K=e=>{let{size:t=ha.size,virtualization:o,children:a,optionLabel:i,customValue:l,screenReaders:p,...c}=e,d,b,L,v,m=[];return a?a.map((M,x)=>{M.type===F?(M.props.root===!0?(d=M.props.label,M.props.children.map((E,O)=>{m.push((0,ge.jsx)(A,{...E.props},`optChild-${O}-${new Date().getTime()}`))})):M.props.children.forEach((E,O)=>{let I="";O===0&&(I=M.props.label),m.push((0,ge.jsx)(A,{className:O===0?"k-first":"",...E.props,groupLabel:I},`groupLabel-${O}-${new Date().getTime()}`))}),b=(0,ge.jsx)(F,{label:d,virtualization:o,children:m})):M.type===A&&(m.push((0,ge.jsx)(A,{...M.props},`${M.type}-${x}`)),L=(0,ge.jsx)(Ct,{virtualization:o,children:m}),p&&(v=(0,ge.jsxs)(so,{className:"k-sr-only",children:[m.length," items found."]})))}):v=(0,ge.jsx)(so,{children:"No data found."}),(0,ge.jsxs)("div",{...c,className:s(e.className,Ln,C(Ln,{size:t}),{"k-virtual-list":o}),children:[i,l,b,L,v]})};K.states=El;K.options=kl;K.className=Ln;K.defaultOptions=ha;K.moduleName=Ke;K.folderName=qe;var va=require("react/jsx-runtime"),Sa="k-list-container",Cl=[],Tl={},gl={},Tt=e=>{let{...t}=e;return(0,va.jsx)("div",{...t,className:s(e.className,Sa),children:e.children})};Tt.states=Cl;Tt.options=Tl;Tt.className=Sa;Tt.defaultOptions=gl;Tt.moduleName=Ke;Tt.folderName=qe;var Ae=require("react/jsx-runtime"),xn="k-list",Al=[],Il={size:[r.small,r.medium,r.large]},Ea={size:r.medium},Be=e=>{let{size:t=Ea.size,virtualization:o,children:a,...i}=e,l,p,c,d=[];return a?a.map((b,L)=>{b.type===F?(b.props.root===!0?(l=b.props.label,b.props.children.map((v,m)=>{d.push((0,Ae.jsx)(A,{...v.props},`optChild-${m}-${new Date().getTime()}`))})):(d.push((0,Ae.jsx)(ka,{...b.props,children:b.props.label},`listChild-${L}`)),b.props.children.map((v,m)=>{d.push((0,Ae.jsx)(A,{...v.props},`fwOptChild-${m}-${new Date().getTime()}`))})),p=(0,Ae.jsx)(F,{label:l,virtualization:o,children:d})):b.type===A&&(d.push((0,Ae.jsx)(A,{...b.props},`${b.type}-${L}`)),c=(0,Ae.jsx)(Ct,{virtualization:o,children:d}))}):c=(0,Ae.jsx)(so,{children:"No data found."}),(0,Ae.jsxs)("div",{...i,className:s(e.className,xn,C(xn,{size:t}),{"k-virtual-list":o}),children:[p,c]})};Be.states=Al;Be.options=Il;Be.className=xn;Be.defaultOptions=Ea;Be.moduleName=Ke;Be.folderName=qe;var ct="checkbox",gt=ct;var hn=require("react/jsx-runtime"),ho="k-checkbox",Ol=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],yl={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full]},Mn={size:r.medium,rounded:N.medium},Ie=e=>{let{id:t,checked:o,indeterminate:a,hover:i,focus:l,disabled:p,invalid:c,valid:d,required:b,size:L=Mn.size,rounded:v=Mn.rounded,...m}=e;return(0,hn.jsx)("span",{className:"k-checkbox-wrap",children:(0,hn.jsx)("input",{...m,id:t,type:"checkbox",defaultChecked:o,required:b,className:s(e.className,ho,C(ho,{size:L,rounded:v}),g(ho,{hover:i,focus:l,disabled:p,invalid:c,valid:d,indeterminate:a,checked:o}))})})};Ie.states=Ol;Ie.options=yl;Ie.className=ho;Ie.defaultOptions=Mn;Ie.moduleName=ct;Ie.folderName=gt;var ga=require("react/jsx-runtime"),Ca="k-checkbox-list",Rl=[],Pl={},Ta={layout:"vertical"},We=e=>{let{layout:t=Ta.layout,...o}=e;return(0,ga.jsx)("ul",{...o,className:s(e.className,Ca,{[`k-list-${t}`]:t}),children:e.children})};We.states=Rl;We.options=Pl;We.className=Ca;We.defaultOptions=Ta;We.moduleName=ct;We.folderName=gt;var Ia=require("react/jsx-runtime"),Aa="k-checkbox-list-item",Kl=[],Bl={},_l={},Qe=e=>{let{...t}=e;return(0,Ia.jsx)("li",{...t,className:s(e.className,Aa),children:e.children})};Qe.states=Kl;Qe.options=Bl;Qe.className=Aa;Qe.defaultOptions=_l;Qe.moduleName=ct;Qe.folderName=gt;var vn=require("react/jsx-runtime");var En=require("react/jsx-runtime");var kn=require("react/jsx-runtime");var Cn=require("react/jsx-runtime");var zl=require("react/jsx-runtime");var Hl=require("react/jsx-runtime");var dt=require("react/jsx-runtime"),Tn="k-list-item",wl=[n.hover,n.focus,n.selected,n.disabled],Dl={},Gl={},A=e=>{let{text:t,groupLabel:o,group:a,showIcon:i,iconName:l,showCheckbox:p,checked:c,hover:d,focus:b,selected:L,disabled:v,...m}=e,M=t||e.children;return(0,dt.jsxs)("li",{...m,className:s(e.className,a?"k-list-group-item":Tn,g(Tn,{hover:d,focus:b,disabled:v,selected:L})),children:[p&&(0,dt.jsx)(Ie,{checked:c}),i&&(0,dt.jsx)(k,{icon:l}),(0,dt.jsx)("span",{className:"k-list-item-text",children:M}),o&&o!==""&&(0,dt.jsx)("div",{className:"k-list-item-group-label",children:o})]})};A.states=wl;A.options=Dl;A.className=Tn;A.defaultOptions=Gl;A.moduleName=Ke;A.folderName=qe;var At=require("react/jsx-runtime"),Ul="k-list-content",Ct=e=>{let{virtualization:t,...o}=e;return(0,At.jsxs)("div",{...o,className:s(Ul,e.className),children:[(0,At.jsx)("ul",{className:s("k-list-ul"),children:e.children}),t&&(0,At.jsx)("div",{className:"k-height-container",children:(0,At.jsx)("div",{})})]})};var gn=require("react/jsx-runtime"),Fl="k-list-group-sticky-header",Oa=e=>(0,gn.jsx)("div",{className:s(Fl,e.className),children:(0,gn.jsx)("div",{className:"k-list-header-text",children:e.children})});var ut=require("react/jsx-runtime"),F=e=>{let{virtualization:t,label:o}=e;return(0,ut.jsxs)(ut.Fragment,{children:[o&&(0,ut.jsx)(Oa,{children:o}),e.children&&(0,ut.jsx)(Ct,{virtualization:t,children:e.children})]})};var An=require("react/jsx-runtime"),$l="k-list-group-item",ka=e=>(0,An.jsx)("li",{className:s($l,e.className),children:(0,An.jsx)("span",{className:"k-list-item-text",children:e.children})});var ya=require("react/jsx-runtime"),In="k-list-optionlabel",Xl=[n.hover,n.focus,n.selected,n.disabled],Vl={},Jl={},So=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:l,...p}=e;return(0,ya.jsx)("div",{...p,className:s(In,g(In,{hover:o,focus:a,selected:i,disabled:l})),children:t})};So.states=Xl;So.options=Vl;So.className=In;So.defaultOptions=Jl;var Ra=require("react/jsx-runtime"),On="k-list-custom-value",ql=[n.hover,n.focus,n.selected,n.disabled],Wl={},Ql={},Ye=e=>{let{text:t,hover:o,focus:a,selected:i,disabled:l,...p}=e;return(0,Ra.jsx)("div",{...p,className:s(On,g(On,{hover:o,focus:a,selected:i,disabled:l})),children:t})};Ye.states=ql;Ye.options=Wl;Ye.className=On;Ye.defaultOptions=Ql;var Yl=require("react/jsx-runtime");var Zl=require("react/jsx-runtime");var Pa=require("react/jsx-runtime");var Ka=require("react/jsx-runtime");var jl=require("react/jsx-runtime");var Ba=require("react/jsx-runtime");var _a=require("react/jsx-runtime");var za="dropdown-list",Ha="dropdownlist";var z=require("react/jsx-runtime"),wa="k-dropdownlist",ep=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],tp={size:[r.small,r.medium,r.large],rounded:[N.small,N.medium,N.large,N.full],fillMode:[u.solid,u.flat,u.outline]},It={showValue:!0,arrowIconName:"caret-alt-down",size:r.medium,rounded:N.medium,fillMode:u.solid},Oe=e=>{let{size:t=It.size,rounded:o=It.rounded,fillMode:a=It.fillMode,arrowIconName:i=It.arrowIconName,showValue:l=It.showValue,valueIconName:p,prefix:c,suffix:d,value:b,placeholder:L,hover:v,focus:m,valid:M,invalid:x,required:E,loading:O,disabled:I,readonly:P,popup:q,opened:Ge,adaptive:wt,adaptiveSettings:Dt,adaptiveTitle:To,adaptiveSubtitle:go,adaptiveFilter:wr,...Dr}=e;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(Z,{...Dr,size:t,rounded:o,fillMode:a,hover:v,focus:m,valid:M,invalid:x,required:E,loading:O,disabled:I,readonly:P,className:s(e.className,wa,{"k-icon-picker":!l&&p}),children:[(0,z.jsx)(ve,{children:c}),(0,z.jsx)(it,{placeholder:L,value:b,showValue:l,valueIconName:p}),(0,z.jsx)(j,{valid:M,invalid:x,loading:O,disabled:I}),(0,z.jsx)(se,{loading:O,disabled:I}),(0,z.jsx)(Ee,{children:d}),(0,z.jsx)(h,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),Ge&&q&&(0,z.jsx)(w,{className:"k-list-container k-dropdownlist-popup",children:q}),wt&&(0,z.jsx)(te,{adaptive:!0,...Dt,header:(0,z.jsx)(ae,{actionsEnd:(0,z.jsx)(h,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:wr,inputValue:b,inputPlaceholder:L,title:To,subtitle:go}),children:(0,z.jsx)("div",{className:"k-list-container",children:(0,z.jsxs)(K,{size:"large",children:[(0,z.jsx)(A,{text:"List item"}),(0,z.jsx)(A,{text:"List item"}),(0,z.jsx)(A,{text:"List item"})]})})})]})};Oe.states=ep;Oe.options=tp;Oe.className=wa;Oe.defaultOptions=It;Oe.moduleName=za;Oe.folderName=Ha;var op=require("react/jsx-runtime");var Da=require("react/jsx-runtime");var yn=require("react/jsx-runtime");var np=require("react/jsx-runtime");var Ga=require("react/jsx-runtime");var Ua=require("react/jsx-runtime");var Rn=require("react/jsx-runtime");var Pn=require("react/jsx-runtime");var Fa=require("react/jsx-runtime");var $a=require("react/jsx-runtime");var S=require("react/jsx-runtime"),Xa="k-colorgradient-inputs",sp=[],ap={size:[r.small,r.medium,r.large]},Va={mode:"rgba",size:r.medium},Ot=e=>{let{mode:t=Va.mode,size:o,...a}=e;return(0,S.jsxs)("div",{...a,className:s(Xa,"k-hstack"),children:[(0,S.jsx)("div",{className:"k-vstack",children:(0,S.jsx)(h,{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)(_,{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)(_,{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)(_,{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)(_,{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)(_,{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)(_,{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)(_,{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)(_,{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)(_,{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)(_,{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)(_,{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)(_,{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)(_,{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)(_,{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)(Te,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),(0,S.jsx)("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Ot.states=sp;Ot.options=ap;Ot.className=Xa;Ot.defaultOptions=Va;var V=require("react/jsx-runtime"),Ja="k-colorgradient-color-contrast",rp=[],ip={},lp={},yt=()=>(0,V.jsxs)("div",{className:s(Ja,"k-vbox"),children:[(0,V.jsxs)("div",{className:"k-contrast-ratio",children:[(0,V.jsx)("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),(0,V.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:[(0,V.jsx)(k,{icon:"check"}),(0,V.jsx)(k,{icon:"check"})]})]}),(0,V.jsxs)("div",{children:[(0,V.jsx)("span",{children:"AA: 4.5"}),(0,V.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:["Pass",(0,V.jsx)(k,{icon:"check"})]})]}),(0,V.jsxs)("div",{children:[(0,V.jsx)("span",{children:"AAA: 7.0"}),(0,V.jsxs)("span",{className:"k-contrast-validation !k-text-error",children:["Fail",(0,V.jsx)(k,{icon:"x"})]})]})]});yt.states=rp;yt.options=ip;yt.className=Ja;yt.defaultOptions=lp;var qa="color-gradient",Wa="colorgradient";var D=require("react/jsx-runtime"),vo="k-colorgradient",pp=[n.hover,n.focus,n.readonly,n.disabled],mp={size:[r.small,r.medium,r.large]},xe={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"},ye=e=>{let{size:t=xe.size,mode:o=xe.mode,readonly:a=xe.readonly,disabled:i=xe.disabled,gradientStyle:l=xe.gradientStyle,dragHandleStyle:p=xe.dragHandleStyle,alphaStyle:c=xe.alphaStyle,alphaStyleHorizontal:d=xe.alphaStyleHorizontal,contrast:b=xe.contrast,dir:L,hover:v,focus:m,hoverHandle:M,focusHandle:x,canvasOrientation:E=xe.canvasOrientation,...O}=e;return(0,D.jsxs)("div",{...O,className:s(e.className,vo,C(vo,{size:t}),g(vo,{hover:v,focus:m,readonly:a,disabled:i})),dir:L,children:[!E||E==="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":M,"k-focus":x}),style:p})})}),(0,D.jsxs)("div",{className:"k-hsv-controls k-hstack",children:[(0,D.jsx)(bn,{className:"k-hue-slider",hover:M,focus:x}),o!=="rgb"&&o!=="hsv"&&(0,D.jsx)(bn,{className:"k-alpha-slider",hover:M,focus:x,trackStyle:c})]})]}),E==="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":M,"k-focus":x}),style:p})})}),(0,D.jsxs)("div",{className:"k-hsv-controls k-vstack",children:[(0,D.jsx)(fn,{className:"k-hue-slider",hover:M,focus:x}),o!=="rgb"&&o!=="hsv"&&(0,D.jsx)(fn,{className:"k-alpha-slider",hover:M,focus:x,trackStyle:d})]})]}),(0,D.jsx)(Ot,{mode:e.mode,size:t}),b&&(0,D.jsx)(yt,{})]})};ye.states=pp;ye.options=mp;ye.className=vo;ye.defaultOptions=xe;ye.moduleName=qa;ye.folderName=Wa;var cp=require("react/jsx-runtime");var dp=require("react/jsx-runtime");var Ya=require("react/jsx-runtime"),Qa=e=>(0,Ya.jsx)("tr",{children:e.children});var Za=require("react/jsx-runtime"),Kn="k-colorpalette-tile",up=[n.hover,n.focus,n.selected],fp={},ao=e=>{let{color:t,tileSize:o,hover:a,focus:i,selected:l,...p}=e,c={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return(0,Za.jsx)("td",{...p,className:s(e.className,Kn,g(Kn,{hover:a,focus:i,selected:l})),style:c})};ao.states=up;ao.options=fp;ao.className=Kn;var ja="color-palette",er="colorpalette";var Rt=require("react/jsx-runtime"),Eo="k-colorpalette",bp=[n.disabled],Np={size:[r.small,r.medium,r.large]},Bn={columns:10,size:r.medium},Ze=e=>{let{size:t=Bn.size,palette:o,columns:a=Bn.columns,tileSize:i,disabled:l,...p}=e,c=[];if(o){let d=a||o.columns,b=o.colors?o.colors:o;Array.isArray(b)&&Array.from({length:Math.ceil(b.length/d)},(L,v)=>{let m=[];b.slice(v*d,(v+1)*d).map((x,E)=>{m.push((0,Rt.jsx)(ao,{color:x,tileSize:i},E))});let M=(0,Rt.jsx)(Qa,{children:m},v);c.push(M)})}return(0,Rt.jsx)("div",{...p,className:s(e.className,Eo,g(Eo,{disabled:l}),C(Eo,{size:t})),children:(0,Rt.jsx)("table",{className:"k-colorpalette-table",children:(0,Rt.jsx)("tbody",{children:c.length>0?c:e.children})})})};Ze.states=bp;Ze.options=Np;Ze.className=Eo;Ze.defaultOptions=Bn;Ze.moduleName=ja;Ze.folderName=er;var _n={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","#f