UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 76.1 kB
var Ts=Object.create;var uo=Object.defineProperty;var As=Object.getOwnPropertyDescriptor;var Bs=Object.getOwnPropertyNames;var Ps=Object.getPrototypeOf,Es=Object.prototype.hasOwnProperty;var zs=(e,t)=>{for(var o in t)uo(e,o,{get:t[o],enumerable:!0})},dr=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bs(t))!Es.call(e,i)&&i!==o&&uo(e,i,{get:()=>t[i],enumerable:!(s=As(t,i))||s.enumerable});return e};var ws=(e,t,o)=>(o=e!=null?Ts(Ps(e)):{},dr(t||!e||!e.__esModule?uo(o,"default",{value:e,enumerable:!0}):o,e)),Os=e=>dr(uo({},"__esModule",{value:!0}),e);var wc={};zs(wc,{PromptInPopup:()=>zc});module.exports=Os(wc);var r=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?r(...t):typeof t=="object"?Object.keys(t).map((o,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>r({[`${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)=>r({"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 n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={small:"small",medium:"medium",large:"large",full:"full"},d={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},m={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"},ur={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var fr=require("react/jsx-runtime"),fo="k-actions",Rs=[],Ks={},Ro={alignment:"start",orientation:"horizontal"},_=e=>{let{alignment:t=Ro.alignment,orientation:o=Ro.orientation,...s}=e;return(0,fr.jsx)("div",{...s,className:r(fo,{[`${fo}-${t}`]:t,[`${fo}-${o}`]:o},e.className),children:e.children})};_.states=Rs;_.options=Ks;_.className=fo;_.defaultOptions=Ro;var Gt=require("react/jsx-runtime"),Ko="k-icon k-font-icon",Hs=[],Gs={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Ds={},Dt=e=>{let{size:t,themeColor:o,icon:s,rotate:i,flip:l,...p}=e;return s?(0,Gt.jsx)("span",{...p,className:r(e.className,Ko,C(Ko,{size:t}),{[`k-i-${s}`]:s,[`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,{})};Dt.states=Hs;Dt.options=Gs;Dt.className=Ko;Dt.defaultOptions=Ds;var br=Dt;var Ze=require("react/jsx-runtime"),Ho="k-icon k-svg-icon",$s=[],Vs={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},xr={viewBox:"0 0 24 24"},$t=e=>{let{size:t,themeColor:o,rotate:s,flip:i,viewBox:l=xr.viewBox,icon:p,...u}=e;if(!p)return(0,Ze.jsx)(Ze.Fragment,{});p==="none"&&{...u,className:r(e.className,Ho,"k-none")};let b=typeof p=="object"&&p.name&&p.name;return(0,Ze.jsx)("span",{...u,className:r(e.className,Ho,C("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:(0,Ze.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})})};$t.states=$s;$t.options=Vs;$t.className=Ho;$t.defaultOptions=xr;var Go=$t;var hr=ws(require("@progress/kendo-svg-icons")),Ie=require("react/jsx-runtime"),_s=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Xs=[],Fs={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Do={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:s,type:i=Do.type,rotate:l,flip:p,viewBox:u=Do.viewBox,...b}=e;if(!s)return(0,Ie.jsx)(Ie.Fragment,{});if(i==="svg"){if(s==="none")return(0,Ie.jsx)(Go,{...b,icon:s,size:t});let x=_s(`${s}-icon`);return hr[x]?(0,Ie.jsx)(Go,{...b,icon:hr[x],size:t,themeColor:o,rotate:l,flip:p,viewBox:u}):(0,Ie.jsx)(Ie.Fragment,{})}return(0,Ie.jsx)(br,{...b,icon:s,size:t,themeColor:o,rotate:l,flip:p})};M.states=Xs;M.options=Fs;M.defaultOptions=Do;var be=require("react/jsx-runtime"),bo="k-button",Js=[a.hover,a.focus,a.active,a.selected,a.disabled],Us={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark,m.inverse]},je={size:n.medium,rounded:f.medium,fillMode:d.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},v=e=>{let{size:t=je.size,rounded:o=je.rounded,fillMode:s=je.fillMode,themeColor:i=je.themeColor,showArrow:l=je.showArrow,arrowIconName:p=je.arrowIconName,hover:u,focus:b,active:x,selected:h,disabled:S,icon:c,text:N,iconClassName:k,...g}=e,A=c!==void 0,B=e.children!==void 0;return(0,be.jsxs)("button",{...g,className:r(e.className,bo,C(bo,{size:t,rounded:o,fillMode:s,themeColor:i}),I(bo,{hover:u,focus:b,active:x,disabled:S,selected:h}),{"k-icon-button":!N&&!B&&A}),children:[c&&(0,be.jsx)(M,{className:r(k,"k-button-icon"),icon:c}),N?(0,be.jsxs)(be.Fragment,{children:[N&&(0,be.jsx)("span",{className:"k-button-text",children:N}),e.children]}):e.children&&(0,be.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,be.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,be.jsx)(M,{icon:p})})]})};v.states=Js;v.options=Us;v.className=bo;v.defaultOptions=je;var Nr=require("react/jsx-runtime"),Z=e=>(0,Nr.jsx)(v,{icon:"folder",...e,children:void 0});var vr=require("react/jsx-runtime"),U=e=>(0,vr.jsx)(v,{icon:"folder",children:"Button",...e});var qs=require("react/jsx-runtime");var Sr=require("react/jsx-runtime"),Vt="k-button-group",Ws=[a.disabled],Ys={fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},kr={fillMode:d.solid},R=e=>{let{fillMode:t=kr.fillMode,disabled:o,stretched:s,...i}=e;return(0,Sr.jsx)("div",{...i,className:r(e.className,Vt,C(Vt,{fillMode:t}),I(Vt,{disabled:o}),{[`${Vt}-stretched`]:s}),children:e.children})};R.states=Ws;R.options=Ys;R.className=Vt;R.defaultOptions=kr;var $o=require("react/jsx-runtime");var Vo=require("react/jsx-runtime");var _o=require("react/jsx-runtime");var Xo=require("react/jsx-runtime");var Lr=require("react/jsx-runtime"),xo="k-input",Qs=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Zs={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},ho={size:n.medium,rounded:n.medium,fillMode:d.solid},P=e=>{let{hover:t,focus:o,disabled:s,invalid:i,valid:l,loading:p,readonly:u,size:b=ho.size,rounded:x=ho.rounded,fillMode:h=ho.fillMode,...S}=e;return(0,Lr.jsx)("span",{...S,className:r(e.className,xo,C(xo,{size:b,rounded:x,fillMode:h}),I(xo,{hover:t,focus:o,disabled:s,invalid:i,valid:l,loading:p,readonly:u}))})};P.states=Qs;P.options=Zs;P.className=xo;P.defaultOptions=ho;var Cr=require("react/jsx-runtime"),No="k-picker",js=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],ei={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},vo={size:n.medium,rounded:f.medium,fillMode:d.solid},xe=e=>{let{hover:t,focus:o,disabled:s,invalid:i,valid:l,loading:p,readonly:u,size:b=vo.size,rounded:x=vo.rounded,fillMode:h=vo.fillMode,...S}=e;return(0,Cr.jsx)("span",{...S,className:r(e.className,No,C(No,{size:b,rounded:x,fillMode:h}),I(No,{hover:t,focus:o,disabled:s,invalid:i,valid:l,loading:p,readonly:u})),children:e.children})};xe.states=js;xe.options=ei;xe.className=No;xe.defaultOptions=vo;var Nt=require("react/jsx-runtime"),gr="k-clear-value",ti=[a.disabled,a.loading,a.readonly],oi={},he=e=>{let{disabled:t,loading:o,readonly:s,value:i}=e;return t||s||o||!i?(0,Nt.jsx)(Nt.Fragment,{}):(0,Nt.jsx)("span",{className:r(e.className,gr),children:(0,Nt.jsx)(M,{icon:"x"})})};he.states=ti;he.options=oi;he.className=gr;var Mr=require("react/jsx-runtime"),Fo="k-input-inner",ai=[],ri={},ko={type:"text",autocomplete:"off",value:"",placeholder:""},Ne=e=>{let{value:t=ko.value,type:o=ko.type,placeholder:s=ko.placeholder,autocomplete:i=ko.autocomplete,...l}=e;return(0,Mr.jsx)("input",{...l,type:o,className:r(e.className,Fo,C(Fo,e)),placeholder:s,autoComplete:i,defaultValue:t})};Ne.states=ai;Ne.options=ri;Ne.className=Fo;var _t=require("react/jsx-runtime"),Jo="k-input-inner",ni=[],si={},et=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:i,valueIconName:l,...p}=e;return(0,_t.jsxs)("span",{...p,className:r(e.className,Jo,C(Jo,e)),children:[i,!i&&l&&(0,_t.jsx)(M,{className:"k-input-value-icon",icon:l}),s&&!t&&o,s&&t&&(0,_t.jsx)("span",{className:"k-input-value-text",children:t})]})};et.states=ni;et.options=si;et.className=Jo;var yr=require("react/jsx-runtime"),Uo="k-input-inner",ii=[],li={},Ir={value:"",placeholder:""},Xt=e=>{let{value:t=Ir.value,placeholder:o=Ir.placeholder,rows:s,...i}=e;return(0,yr.jsx)("textarea",{...i,className:r(e.className,Uo,C(Uo,e)),placeholder:o,rows:s,defaultValue:t})};Xt.states=ii;Xt.options=li;Xt.className=Uo;var Ft=require("react/jsx-runtime"),Tr="k-input-loading-icon",pi=[a.disabled,a.loading],re=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Ft.jsx)(Ft.Fragment,{}):(0,Ft.jsx)("span",{className:r(e.className,Tr,"k-icon k-i-loading")})};re.states=pi;re.className=Tr;var Jt=require("react/jsx-runtime"),Ar="k-input-validation-icon",ci=[a.valid,a.invalid,a.disabled,a.loading],mi={},ee=e=>{let{valid:t,invalid:o,disabled:s,loading:i}=e,l=o?"warning-circle":"check-circle";return s||i||!!!(t||o)?(0,Jt.jsx)(Jt.Fragment,{}):(0,Jt.jsx)(M,{className:r(Ar),icon:l})};ee.states=ci;ee.options=mi;ee.className=Ar;var Ut=require("react/jsx-runtime"),di="k-input-prefix",ui={direction:"horizontal"},ne=e=>{let{direction:t=ui.direction,...o}=e;return e.children?(0,Ut.jsx)("span",{...o,className:r(di,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,Ut.jsx)(Ut.Fragment,{})};var qt=require("react/jsx-runtime"),fi="k-input-suffix",bi={direction:"horizontal"},se=e=>{let{direction:t=bi.direction,...o}=e;return e.children?(0,qt.jsx)("span",{...o,className:r(fi,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,qt.jsx)(qt.Fragment,{})};var xi=require("react/jsx-runtime");var hi=require("react/jsx-runtime");var Pr=require("react/jsx-runtime"),Br="k-input-separator",Ni={direction:"vertical"},ie=e=>{let{direction:t=Ni.direction,...o}=e;return(0,Pr.jsx)("span",{...o,className:r(Br,e.className,{[`${Br}-${t}`]:t})})};var Wt=require("react/jsx-runtime"),Er="k-color-preview",vi=[],ki={},Re=e=>{let{color:t,iconName:o,...s}=e;return(0,Wt.jsxs)("span",{...s,className:r(e.className,Er,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&(0,Wt.jsx)(M,{icon:o,className:"k-color-preview-icon"}),(0,Wt.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Re.states=vi;Re.options=ki;Re.className=Er;var qo=require("react/jsx-runtime"),zr="k-animation-container",Si=[],Li={},wr={positionMode:"absolute"},Ke=e=>{let{positionMode:t=wr.positionMode,animationStyle:o,offset:s,...i}=e;return(0,qo.jsx)("div",{...i,style:{...s,...e.style},className:r(e.className,zr,"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=Si;Ke.options=Li;Ke.className=zr;Ke.defaultOptions=wr;var Wo=require("react/jsx-runtime"),Or="k-popup",Ci=[],gi={},Rr={positionMode:"absolute"},H=e=>{let{offset:t,positionMode:o=Rr.positionMode,animationStyle:s,...i}=e;return(0,Wo.jsx)(Ke,{positionMode:o,offset:t,animationStyle:s,children:(0,Wo.jsx)("div",{...i,className:r(e.className,Or),children:e.children})})};H.states=Ci;H.options=gi;H.className=Or;H.defaultOptions=Rr;var Hr=require("react/jsx-runtime"),Mi="k-actionsheet-footer",Kr={alignment:"stretched",orientation:"horizontal"},Yt=e=>{let{alignment:t=Kr.alignment,orientation:o=Kr.orientation,template:s,as:i=s?"div":_,...l}=e;return(0,Hr.jsx)(i,{...l,...!s&&{alignment:t,orientation:o},className:r(e.className,Mi),children:e.children})};var He=require("react/jsx-runtime"),Gr="k-searchbox",Ii=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading],yi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},Yo={showIcon:!0,icon:"search",size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode},ye=e=>{let{value:t,placeholder:o,size:s,rounded:i,fillMode:l,hover:p,focus:u,valid:b,invalid:x,required:h,loading:S,disabled:c,showIcon:N=Yo.showIcon,icon:k=Yo.icon,...g}=e;return(0,He.jsxs)(P,{...g,size:s,rounded:i,fillMode:l,hover:p,focus:u,valid:b,invalid:x,required:h,loading:S,disabled:c,className:r(e.className,Gr),children:[N&&(0,He.jsx)(M,{className:"k-input-icon",icon:k}),(0,He.jsx)(Ne,{placeholder:o,value:t}),(0,He.jsx)(re,{...e}),(0,He.jsx)(ee,{...e}),(0,He.jsx)(he,{...e})]})};ye.states=Ii;ye.options=yi;ye.className=Gr;ye.defaultOptions=Yo;var Ti=require("react/jsx-runtime");var q=require("react/jsx-runtime"),Dr="k-textbox",Ai=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Bi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},tt={showClearButton:!0,showValidationIcon:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},Te=e=>{let{size:t=tt.size,rounded:o=tt.rounded,fillMode:s=tt.fillMode,separators:i=tt.separators,showClearButton:l=tt.showClearButton,showValidationIcon:p=tt.showValidationIcon,prefix:u,suffix:b,type:x,value:h,placeholder:S,hover:c,focus:N,valid:k,invalid:g,required:A,loading:B,disabled:z,readonly:V,...Oe}=e;return(0,q.jsxs)(P,{...Oe,size:t,rounded:o,fillMode:s,hover:c,focus:N,valid:k,invalid:g,required:A,loading:B,disabled:z,readonly:V,className:r(e.className,Dr),children:[u&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(ne,{children:u}),i&&(0,q.jsx)(ie,{})]}),(0,q.jsx)(Ne,{placeholder:S,value:h,type:x}),p&&(0,q.jsx)(ee,{valid:k,invalid:g,loading:B,disabled:z}),(0,q.jsx)(re,{loading:B,disabled:z}),l&&(0,q.jsx)(he,{loading:B,disabled:z,readonly:V,value:h}),b&&(0,q.jsxs)(q.Fragment,{children:[i&&(0,q.jsx)(ie,{}),(0,q.jsx)(se,{children:b})]})]})};Te.states=Ai;Te.options=Bi;Te.className=Dr;Te.defaultOptions=tt;var Pi=require("react/jsx-runtime");var Vr=require("react/jsx-runtime");var _r=require("react/jsx-runtime");var te=require("react/jsx-runtime"),Xr="k-actionsheet-titlebar",Ei={},le=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:i,filter:l,input:p,inputValue:u,inputPlaceholder:b,adaptive:x,children:h,...S}=e;return(0,te.jsxs)("div",{...S,className:r(e.className,Xr),children:[(0,te.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[s&&(0,te.jsx)("div",{className:"k-actionsheet-actions",children:s}),!h&&(0,te.jsxs)("div",{className:"k-actionsheet-title",children:[t&&(0,te.jsx)("div",{className:"k-text-center",children:t}),o&&(0,te.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&(0,te.jsx)("div",{className:"k-actionsheet-title",children:h}),i&&(0,te.jsx)("div",{className:"k-actionsheet-actions",children:i})]}),(p||l)&&(0,te.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?(0,te.jsx)(Te,{value:u,placeholder:b,size:x?"large":"medium"}):(0,te.jsx)(ye,{placeholder:"Filter",size:x?"large":"medium"})})]})};le.className=Xr;le.defaultOptions=Ei;var vt=require("react/jsx-runtime"),Qo="k-actionsheet-view",zi=[],wi={},Oi={},kt=e=>{let{adaptive:t,animated:o,children:s,header:i,footer:l,...p}=e,u=(i==null?void 0:i.type)===le&&(0,vt.jsx)(le,{adaptive:t,...i==null?void 0:i.props}),b=(l==null?void 0:l.type)===Yt&&(0,vt.jsx)(Yt,{...l==null?void 0:l.props});return(0,vt.jsxs)("div",{...p,className:r(e.className,Qo,{[`${Qo}-animated`]:o}),children:[u,(0,vt.jsx)("div",{className:"k-actionsheet-content",children:s}),b]})};kt.states=zi;kt.options=wi;kt.className=Qo;kt.defaultOptions=Oi;var ot=require("react/jsx-runtime"),Fr="k-actionsheet",Ri=[],Ki={},Qt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ve=e=>{let{side:t=Qt.side,fullscreen:o=Qt.fullscreen,adaptive:s=Qt.adaptive,overlay:i=Qt.overlay,template:l,children:p,header:u,footer:b,...x}=e;return(0,ot.jsxs)("div",{className:"k-actionsheet-container",children:[i&&(0,ot.jsx)("div",{className:"k-overlay"}),(0,ot.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,ot.jsx)("div",{...x,className:r(e.className,Fr,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:l||(0,ot.jsx)(kt,{header:u,footer:b,adaptive:s,...e,children:p})})})]})};ve.states=Ri;ve.options=Ki;ve.className=Fr;ve.defaultOptions=Qt;var Hi=require("react/jsx-runtime");var pe=require("react/jsx-runtime"),Zo="k-actionsheet-item",Gi=[a.hover,a.focus,a.selected,a.disabled],jo=e=>{let{iconName:t,text:o,description:s,hover:i,focus:l,selected:p,disabled:u,...b}=e;return(0,pe.jsxs)("span",{...b,className:r(e.className,Zo,I(Zo,{hover:i,focus:l,selected:p,disabled:u})),children:[!e.children&&(0,pe.jsx)(pe.Fragment,{children:(0,pe.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,pe.jsx)("span",{className:"k-icon-wrap",children:(0,pe.jsx)(M,{className:"k-actionsheet-item-icon",icon:t})}),(0,pe.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,pe.jsx)("span",{className:"k-actionsheet-item-title",children:o}),s&&(0,pe.jsx)("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};jo.states=Gi;jo.className=Zo;var Jr=require("react/jsx-runtime");var Di=require("react/jsx-runtime");var $i=require("react/jsx-runtime");var Vi=require("react/jsx-runtime");var ke=require("react/jsx-runtime"),Zt="k-slider",_i=[a.hover,a.focus,a.active,a.disabled,a.readonly],Xi={},Ge={type:"single",orientation:"horizontal",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0},ce=e=>{let{type:t=Ge.type,orientation:o=Ge.orientation,readonly:s=Ge.readonly,disabled:i=Ge.disabled,handlePosition:l=Ge.handlePosition,showButtons:p=Ge.showButtons,showTicks:u=Ge.showTicks,hover:b,focus:x,active:h,trackStyle:S,dir:c,...N}=e,k,g;return o==="horizontal"?(k=c==="rtl"?"caret-alt-left":"caret-alt-right",g=c==="rtl"?"caret-alt-right":"caret-alt-left"):o==="vertical"&&(k="caret-alt-up",g="caret-alt-down"),(0,ke.jsxs)("div",{...N,className:r(Zt,e.className,I(Zt,{readonly:s,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:c,children:[p&&(0,ke.jsx)(v,{className:"k-button-decrease",rounded:"full",icon:g}),(0,ke.jsxs)("div",{className:"k-slider-track-wrap",children:[u&&(0,ke.jsx)("ul",{className:"k-reset k-slider-items",children:e.children}),(0,ke.jsxs)("div",{className:"k-slider-track",style:S,children:[(0,ke.jsx)("div",{className:"k-slider-selection"}),t==="range"&&(0,ke.jsx)("span",{className:r("k-draghandle","k-draghandle-start",I(Zt,{hover:b,focus:x,active:h}))}),(0,ke.jsx)("span",{className:r("k-draghandle",`k-draghandle-${l}`,I(Zt,{hover:b,focus:x,active:h}))})]})]}),p&&(0,ke.jsx)(v,{className:"k-button-increase",rounded:"full",icon:k})]})};ce.states=_i;ce.options=Xi;ce.className=Zt;ce.defaultOptions=Ge;var ea=require("react/jsx-runtime"),qr="k-tick",Fi=[],Ji={},Wr={label:!1},De=e=>{let{style:t,label:o=Wr.label,orientation:s,large:i,text:l,...p}=e;return(0,ea.jsx)("li",{...p,className:r(e.className,qr,{[`k-tick-${s}`]:s,"k-tick-large":i}),style:t,children:o&&(0,ea.jsx)("span",{className:"k-label",children:l})})};De.states=Fi;De.options=Ji;De.className=qr;De.defaultOptions=Wr;var ta=require("react/jsx-runtime");var oa=require("react/jsx-runtime");var aa=require("react/jsx-runtime");var ra=require("react/jsx-runtime");var Yr=require("react/jsx-runtime"),na=e=>(0,Yr.jsx)(ce,{type:"gradient",showButtons:!1,showTicks:!1,...e});var Qr=require("react/jsx-runtime"),sa=e=>(0,Qr.jsx)(ce,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e});var jt=require("react/jsx-runtime"),Zr="k-spin-button",Ui=[],qi={size:[n.small,n.medium,n.large],fillMode:[d.solid,d.flat,d.outline,d.clear,d.link]},ia={size:n.medium,fillMode:d.solid},St=e=>{let{size:t=ia.size,fillMode:o=ia.fillMode,...s}=e;return(0,jt.jsxs)("span",{...s,className:r(Zr,e.className),children:[(0,jt.jsx)(v,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),(0,jt.jsx)(v,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};St.states=Ui;St.options=qi;St.className=Zr;St.defaultOptions=ia;var X=require("react/jsx-runtime"),jr="k-numerictextbox",Wi=[a.hover,a.focus,a.valid,a.invalid,a.loading,a.required,a.disabled,a.readonly],Yi={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},at={showSpinButton:!0,showClearButton:!0,size:P.defaultOptions.size,rounded:P.defaultOptions.rounded,fillMode:P.defaultOptions.fillMode,separators:!0},G=e=>{let{size:t=at.size,rounded:o=at.rounded,fillMode:s=at.fillMode,separators:i=at.separators,showClearButton:l=at.showClearButton,showSpinButton:p=at.showSpinButton,prefix:u,suffix:b,value:x,placeholder:h,hover:S,focus:c,valid:N,invalid:k,required:g,loading:A,disabled:B,readonly:z,...V}=e;return(0,X.jsxs)(P,{...V,size:t,rounded:o,fillMode:s,hover:S,focus:c,valid:N,invalid:k,required:g,loading:A,disabled:B,readonly:z,className:r(e.className,jr),children:[u&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ne,{children:u}),i&&(0,X.jsx)(ie,{})]}),(0,X.jsx)(Ne,{placeholder:h,value:x}),(0,X.jsx)(ee,{valid:N,invalid:k,loading:A,disabled:B}),(0,X.jsx)(re,{loading:A,disabled:B}),l&&(0,X.jsx)(he,{loading:A,disabled:B,readonly:z,value:x}),b&&(0,X.jsxs)(X.Fragment,{children:[i&&(0,X.jsx)(ie,{}),(0,X.jsx)(se,{children:b})]}),p&&(0,X.jsx)(St,{className:"k-input-spinner",size:t,fillMode:s})]})};G.states=Wi;G.options=Yi;G.className=jr;G.defaultOptions=at;var Qi=require("react/jsx-runtime");var tn=require("react/jsx-runtime"),Zi="k-no-data",eo=e=>(0,tn.jsx)("span",{className:r(Zi,e.className),children:e.children});var Le=require("react/jsx-runtime"),la="k-list",ji=[],el={size:[n.small,n.medium,n.large]},on={size:n.medium},w=e=>{let{size:t=on.size,virtualization:o,children:s,optionLabel:i,customValue:l,screenReaders:p,...u}=e,b,x,h,S,c=[];return s?s.map((N,k)=>{N.type===F?(N.props.root===!0?(b=N.props.label,N.props.children.map((g,A)=>{c.push((0,Le.jsx)(T,{...g.props},`optChild-${A}-${new Date().getTime()}`))})):N.props.children.forEach((g,A)=>{let B="";A===0&&(B=N.props.label),c.push((0,Le.jsx)(T,{className:A===0?"k-first":"",...g.props,groupLabel:B},`groupLabel-${A}-${new Date().getTime()}`))}),x=(0,Le.jsx)(F,{label:b,virtualization:o,children:c})):N.type===T&&(c.push((0,Le.jsx)(T,{...N.props},`${N.type}-${k}`)),h=(0,Le.jsx)(Lt,{virtualization:o,children:c}),p&&(S=(0,Le.jsxs)(eo,{className:"k-sr-only",children:[c.length," items found."]})))}):S=(0,Le.jsx)(eo,{children:"No data found."}),(0,Le.jsxs)("div",{...u,className:r(e.className,la,C(la,{size:t}),{"k-virtual-list":o}),children:[i,l,x,h,S]})};w.states=ji;w.options=el;w.className=la;w.defaultOptions=on;var Ce=require("react/jsx-runtime"),pa="k-list",tl=[],ol={size:[n.small,n.medium,n.large]},an={size:n.medium},rt=e=>{let{size:t=an.size,virtualization:o,children:s,...i}=e,l,p,u,b=[];return s?s.map((x,h)=>{x.type===F?(x.props.root===!0?(l=x.props.label,x.props.children.map((S,c)=>{b.push((0,Ce.jsx)(T,{...S.props},`optChild-${c}-${new Date().getTime()}`))})):(b.push((0,Ce.jsx)(rn,{...x.props,children:x.props.label},`listChild-${h}`)),x.props.children.map((S,c)=>{b.push((0,Ce.jsx)(T,{...S.props},`fwOptChild-${c}-${new Date().getTime()}`))})),p=(0,Ce.jsx)(F,{label:l,virtualization:o,children:b})):x.type===T&&(b.push((0,Ce.jsx)(T,{...x.props},`${x.type}-${h}`)),u=(0,Ce.jsx)(Lt,{virtualization:o,children:b}))}):u=(0,Ce.jsx)(eo,{children:"No data found."}),(0,Ce.jsxs)("div",{...i,className:r(e.className,pa,C(pa,{size:t}),{"k-virtual-list":o}),children:[p,u]})};rt.states=tl;rt.options=ol;rt.className=pa;rt.defaultOptions=an;var ma=require("react/jsx-runtime"),So="k-checkbox",al=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.checked,a.indeterminate],rl={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full]},ca={size:n.medium,rounded:f.medium},$e=e=>{let{id:t,checked:o,indeterminate:s,hover:i,focus:l,disabled:p,invalid:u,valid:b,required:x,size:h=ca.size,rounded:S=ca.rounded,...c}=e;return(0,ma.jsx)("span",{className:"k-checkbox-wrap",children:(0,ma.jsx)("input",{...c,id:t,type:"checkbox",defaultChecked:o,required:x,className:r(e.className,So,C(So,{size:h,rounded:S}),I(So,{hover:i,focus:l,disabled:p,invalid:u,valid:b,indeterminate:s,checked:o}))})})};$e.states=al;$e.options=rl;$e.className=So;$e.defaultOptions=ca;var ln=require("react/jsx-runtime"),nn="k-checkbox-list",nl=[],sl={},sn={layout:"vertical"},Ct=e=>{let{layout:t=sn.layout,...o}=e;return(0,ln.jsx)("ul",{...o,className:r(e.className,nn,{[`k-list-${t}`]:t}),children:e.children})};Ct.states=nl;Ct.options=sl;Ct.className=nn;Ct.defaultOptions=sn;var cn=require("react/jsx-runtime"),pn="k-checkbox-list-item",il=[],ll={},pl={},gt=e=>{let{...t}=e;return(0,cn.jsx)("li",{...t,className:r(e.className,pn),children:e.children})};gt.states=il;gt.options=ll;gt.className=pn;gt.defaultOptions=pl;var ua=require("react/jsx-runtime");var fa=require("react/jsx-runtime");var ba=require("react/jsx-runtime");var xa=require("react/jsx-runtime");var cl=require("react/jsx-runtime");var ml=require("react/jsx-runtime");var nt=require("react/jsx-runtime"),ha="k-list-item",dl=[a.hover,a.focus,a.selected,a.disabled],ul={},fl={},T=e=>{let{text:t,groupLabel:o,group:s,showIcon:i,iconName:l,showCheckbox:p,checked:u,hover:b,focus:x,selected:h,disabled:S,...c}=e,N=t||e.children;return(0,nt.jsxs)("li",{...c,className:r(e.className,s?"k-list-group-item":ha,I(ha,{hover:b,focus:x,disabled:S,selected:h})),children:[p&&(0,nt.jsx)($e,{checked:u}),i&&(0,nt.jsx)(M,{icon:l}),(0,nt.jsx)("span",{className:"k-list-item-text",children:N}),o&&o!==""&&(0,nt.jsx)("div",{className:"k-list-item-group-label",children:o})]})};T.states=dl;T.options=ul;T.className=ha;T.defaultOptions=fl;var Mt=require("react/jsx-runtime"),bl="k-list-content",Lt=e=>{let{virtualization:t,...o}=e;return(0,Mt.jsxs)("div",{...o,className:r(bl,e.className),children:[(0,Mt.jsx)("ul",{className:r("k-list-ul"),children:e.children}),t&&(0,Mt.jsx)("div",{className:"k-height-container",children:(0,Mt.jsx)("div",{})})]})};var Na=require("react/jsx-runtime"),xl="k-list-group-sticky-header",mn=e=>(0,Na.jsx)("div",{className:r(xl,e.className),children:(0,Na.jsx)("div",{className:"k-list-header-text",children:e.children})});var st=require("react/jsx-runtime"),F=e=>{let{virtualization:t,label:o}=e;return(0,st.jsxs)(st.Fragment,{children:[o&&(0,st.jsx)(mn,{children:o}),e.children&&(0,st.jsx)(Lt,{virtualization:t,children:e.children})]})};var va=require("react/jsx-runtime"),hl="k-list-group-item",rn=e=>(0,va.jsx)("li",{className:r(hl,e.className),children:(0,va.jsx)("span",{className:"k-list-item-text",children:e.children})});var dn=require("react/jsx-runtime"),ka="k-list-optionlabel",Nl=[a.hover,a.focus,a.selected,a.disabled],vl={},kl={},Lo=e=>{let{text:t,hover:o,focus:s,selected:i,disabled:l,...p}=e;return(0,dn.jsx)("div",{...p,className:r(ka,I(ka,{hover:o,focus:s,selected:i,disabled:l})),children:t})};Lo.states=Nl;Lo.options=vl;Lo.className=ka;Lo.defaultOptions=kl;var un=require("react/jsx-runtime"),Sa="k-list-custom-value",Sl=[a.hover,a.focus,a.selected,a.disabled],Ll={},Cl={},Ve=e=>{let{text:t,hover:o,focus:s,selected:i,disabled:l,...p}=e;return(0,un.jsx)("div",{...p,className:r(Sa,I(Sa,{hover:o,focus:s,selected:i,disabled:l})),children:t})};Ve.states=Sl;Ve.options=Ll;Ve.className=Sa;Ve.defaultOptions=Cl;var gl=require("react/jsx-runtime");var Ml=require("react/jsx-runtime");var fn=require("react/jsx-runtime");var bn=require("react/jsx-runtime");var Il=require("react/jsx-runtime");var xn=require("react/jsx-runtime");var hn=require("react/jsx-runtime");var O=require("react/jsx-runtime"),Nn="k-dropdownlist",yl=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled,a.loading,a.readonly],Tl={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},It={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:f.medium,fillMode:d.solid},_e=e=>{let{size:t=It.size,rounded:o=It.rounded,fillMode:s=It.fillMode,arrowIconName:i=It.arrowIconName,showValue:l=It.showValue,valueIconName:p,prefix:u,suffix:b,value:x,placeholder:h,hover:S,focus:c,valid:N,invalid:k,required:g,loading:A,disabled:B,readonly:z,popup:V,opened:Oe,adaptive:Kt,adaptiveSettings:Ht,adaptiveTitle:wo,adaptiveSubtitle:Oo,adaptiveFilter:Is,...ys}=e;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(xe,{...ys,size:t,rounded:o,fillMode:s,hover:S,focus:c,valid:N,invalid:k,required:g,loading:A,disabled:B,readonly:z,className:r(e.className,Nn,{"k-icon-picker":!l&&p}),children:[(0,O.jsx)(ne,{children:u}),(0,O.jsx)(et,{placeholder:h,value:x,showValue:l,valueIconName:p}),(0,O.jsx)(ee,{valid:N,invalid:k,loading:A,disabled:B}),(0,O.jsx)(re,{loading:A,disabled:B}),(0,O.jsx)(se,{children:b}),(0,O.jsx)(v,{className:"k-input-button",icon:i,rounded:null,size:e.size,fillMode:e.fillMode})]}),Oe&&V&&(0,O.jsx)(H,{className:"k-list-container k-dropdownlist-popup",children:V}),Kt&&(0,O.jsx)(ve,{adaptive:!0,...Ht,header:(0,O.jsx)(le,{actionsEnd:(0,O.jsx)(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Is,inputValue:x,inputPlaceholder:h,title:wo,subtitle:Oo}),children:(0,O.jsx)("div",{className:"k-list-container",children:(0,O.jsxs)(w,{size:"large",children:[(0,O.jsx)(T,{text:"List item"}),(0,O.jsx)(T,{text:"List item"}),(0,O.jsx)(T,{text:"List item"})]})})})]})};_e.states=yl;_e.options=Tl;_e.className=Nn;_e.defaultOptions=It;var Al=require("react/jsx-runtime");var vn=require("react/jsx-runtime");var La=require("react/jsx-runtime");var Bl=require("react/jsx-runtime");var kn=require("react/jsx-runtime");var Sn=require("react/jsx-runtime");var Ca=require("react/jsx-runtime");var ga=require("react/jsx-runtime");var Ln=require("react/jsx-runtime");var Cn=require("react/jsx-runtime");var L=require("react/jsx-runtime"),gn="k-colorgradient-inputs",Pl=[],El={size:[n.small,n.medium,n.large]},Mn={mode:"rgba",size:n.medium},yt=e=>{let{mode:t=Mn.mode,size:o,...s}=e;return(0,L.jsxs)("div",{...s,className:r(gn,"k-hstack"),children:[(0,L.jsx)("div",{className:"k-vstack",children:(0,L.jsx)(v,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,L.jsxs)("div",{className:"k-vstack",children:[(0,L.jsx)(G,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("div",{className:"k-vstack k-flex-1",children:[(0,L.jsx)(Te,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),(0,L.jsx)("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};yt.states=Pl;yt.options=El;yt.className=gn;yt.defaultOptions=Mn;var W=require("react/jsx-runtime"),In="k-colorgradient-color-contrast",zl=[],wl={},Ol={},Tt=()=>(0,W.jsxs)("div",{className:r(In,"k-vbox"),children:[(0,W.jsxs)("div",{className:"k-contrast-ratio",children:[(0,W.jsx)("span",{className:"k-contrast-ratio-text",children:"Contrast ratio: 7.1"}),(0,W.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:[(0,W.jsx)(M,{icon:"check"}),(0,W.jsx)(M,{icon:"check"})]})]}),(0,W.jsxs)("div",{children:[(0,W.jsx)("span",{children:"AA: 4.5"}),(0,W.jsxs)("span",{className:"k-contrast-validation !k-text-success",children:["Pass",(0,W.jsx)(M,{icon:"check"})]})]}),(0,W.jsxs)("div",{children:[(0,W.jsx)("span",{children:"AAA: 7.0"}),(0,W.jsxs)("span",{className:"k-contrast-validation !k-text-error",children:["Fail",(0,W.jsx)(M,{icon:"x"})]})]})]});Tt.states=zl;Tt.options=wl;Tt.className=In;Tt.defaultOptions=Ol;var D=require("react/jsx-runtime"),Co="k-colorgradient",Rl=[a.hover,a.focus,a.readonly,a.disabled],Kl={size:[n.small,n.medium,n.large]},Se={size:n.medium,mode:"rgba",readonly:!1,disabled:!1,contrast:!1,gradientStyle:{background:"rgb(255, 0, 0 )"},dragHandleStyle:{top:"50px",left:"73px"},alphaStyle:{background:"linear-gradient(to top, transparent, rgb(255, 0, 0))"},alphaStyleHorizontal:{background:"linear-gradient(to right, transparent, rgb(255, 0, 0))"},canvasOrientation:"horizontal"},Xe=e=>{let{size:t=Se.size,mode:o=Se.mode,readonly:s=Se.readonly,disabled:i=Se.disabled,gradientStyle:l=Se.gradientStyle,dragHandleStyle:p=Se.dragHandleStyle,alphaStyle:u=Se.alphaStyle,alphaStyleHorizontal:b=Se.alphaStyleHorizontal,contrast:x=Se.contrast,dir:h,hover:S,focus:c,hoverHandle:N,focusHandle:k,canvasOrientation:g=Se.canvasOrientation,...A}=e;return(0,D.jsxs)("div",{...A,className:r(e.className,Co,C(Co,{size:t}),I(Co,{hover:S,focus:c,readonly:s,disabled:i})),dir:h,children:[!g||g==="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:r("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:p})})}),(0,D.jsxs)("div",{className:"k-hsv-controls k-hstack",children:[(0,D.jsx)(sa,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&(0,D.jsx)(sa,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:u})]})]}),g==="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:r("k-hsv-draghandle","k-draghandle",{"k-hover":N,"k-focus":k}),style:p})})}),(0,D.jsxs)("div",{className:"k-hsv-controls k-vstack",children:[(0,D.jsx)(na,{className:"k-hue-slider",hover:N,focus:k}),o!=="rgb"&&o!=="hsv"&&(0,D.jsx)(na,{className:"k-alpha-slider",hover:N,focus:k,trackStyle:b})]})]}),(0,D.jsx)(yt,{mode:e.mode,size:t}),x&&(0,D.jsx)(Tt,{})]})};Xe.states=Rl;Xe.options=Kl;Xe.className=Co;Xe.defaultOptions=Se;var Hl=require("react/jsx-runtime");var Gl=require("react/jsx-runtime");var Tn=require("react/jsx-runtime"),yn=e=>(0,Tn.jsx)("tr",{children:e.children});var An=require("react/jsx-runtime"),Ma="k-colorpalette-tile",Dl=[a.hover,a.focus,a.selected],$l={},to=e=>{let{color:t,tileSize:o,hover:s,focus:i,selected:l,...p}=e,u={backgroundColor:t,width:o?o+"px":"",height:o?o+"px":""};return(0,An.jsx)("td",{...p,className:r(e.className,Ma,I(Ma,{hover:s,focus:i,selected:l})),style:u})};to.states=Dl;to.options=$l;to.className=Ma;var At=require("react/jsx-runtime"),go="k-colorpalette",Vl=[a.disabled],_l={size:[n.small,n.medium,n.large]},Ia={columns:10,size:n.medium},Bt=e=>{let{size:t=Ia.size,palette:o,columns:s=Ia.columns,tileSize:i,disabled:l,...p}=e,u=[];if(o){let b=s||o.columns,x=o.colors?o.colors:o;Array.isArray(x)&&Array.from({length:Math.ceil(x.length/b)},(h,S)=>{let c=[];x.slice(S*b,(S+1)*b).map((k,g)=>{c.push((0,At.jsx)(to,{color:k,tileSize:i},g))});let N=(0,At.jsx)(yn,{children:c},S);u.push(N)})}return(0,At.jsx)("div",{...p,className:r(e.className,go,I(go,{disabled:l}),C(go,{size:t})),children:(0,At.jsx)("table",{className:"k-colorpalette-table",children:(0,At.jsx)("tbody",{children:u.length>0?u:e.children})})})};Bt.states=Vl;Bt.options=_l;Bt.className=go;Bt.defaultOptions=Ia;var ya={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 Xl=require("react/jsx-runtime");var K=require("react/jsx-runtime"),Mo="k-coloreditor",Fl=[a.focus],Jl={size:[n.small,n.medium,n.large]},Pt={size:n.medium,view:"gradient",palette:ya.office,actionButtons:!0,canvasOrientation:"horizontal"},ge=e=>{let{size:t=Pt.size,view:o=Pt.view,palette:s=Pt.palette,color:i,currentColor:l,focus:p,focusView:u,dir:b,group:x,actionButtons:h=Pt.actionButtons,canvasOrientation:S=Pt.canvasOrientation,...c}=e;return(0,K.jsxs)("div",{...c,className:r(e.className,"k-flatcolorpicker",Mo,C(Mo,{size:t}),I(Mo,{focus:p})),dir:b,children:[(0,K.jsxs)("div",{className:"k-coloreditor-header k-hstack",children:[(0,K.jsx)("div",{className:"k-coloreditor-header-actions k-hstack",children:x&&(0,K.jsxs)(R,{fillMode:"flat",children:[(0,K.jsx)(v,{className:"k-group-start",size:t,fillMode:"flat",icon:"droplet-slider",selected:o==="gradient"}),(0,K.jsx)(v,{className:"k-group-end",size:t,fillMode:"flat",icon:"palette",selected:o==="palette"})]})}),(0,K.jsx)("div",{className:"k-spacer"}),(0,K.jsxs)("div",{className:"k-coloreditor-header-actions k-hstack",children:[(0,K.jsx)(v,{fillMode:"flat",icon:"droplet-slash",size:t}),(0,K.jsxs)("div",{className:"k-coloreditor-preview k-vstack",children:[(0,K.jsx)(Re,{className:"k-coloreditor-preview-color",color:i}),(0,K.jsx)(Re,{className:"k-coloreditor-current-color",color:l})]})]})]}),(0,K.jsx)("div",{className:"k-coloreditor-views k-vstack",children:o==="gradient"?(0,K.jsx)(Xe,{focus:u,size:t,canvasOrientation:S}):(0,K.jsx)(Bt,{palette:s,size:t})}),h&&(0,K.jsxs)(_,{className:"k-coloreditor-footer",alignment:"start",children:[(0,K.jsx)(v,{themeColor:"primary",size:t,className:"k-coloreditor-apply",children:"Apply"}),(0,K.jsx)(v,{className:"k-coloreditor-cancel",size:t,children:"Cancel"})]})]})};ge.states=Fl;ge.options=Jl;ge.className=Mo;ge.defaultOptions=Pt;var Ul=require("react/jsx-runtime");var ql=require("react/jsx-runtime");var Wl=require("react/jsx-runtime");var Yl=require("react/jsx-runtime");var $=require("react/jsx-runtime"),Bn="k-colorpicker",Ql=[a.hover,a.focus,a.valid,a.invalid,a.required,a.disabled],Zl={size:[n.small,n.medium,n.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[d.solid,d.flat,d.outline]},oo={arrowIconName:"caret-alt-down",size:xe.defaultOptions.size,rounded:xe.defaultOptions.rounded,fillMode:xe.defaultOptions.fillMode},Ae=e=>{let{size:t=oo.size,rounded:o=oo.rounded,fillMode:s=oo.fillMode,arrowIconName:i=oo.arrowIconName,prefix:l,suffix:p,value:u,placeholder:b,hover:x,focus:h,valid:S,invalid:c,required:N,disabled:k,valueIconName:g,popup:A,opened:B,adaptive:z,adaptiveSettings:V,adaptiveTitle:Oe,adaptiveSubtitle:Kt,...Ht}=e;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(xe,{...Ht,size:t,rounded:o,fillMode:s,hover:x,focus:h,valid:S,invalid:c,required:N,disabled:k,className:r(e.className,Bn,"k-icon-picker"),children:[(0,$.jsx)(ne,{children:l}),(0,$.jsx)(et,{placeholder:b,value:u,showValue:!1,valueIcon:(0,$.jsx)(Re,{className:"k-value-icon",color:u,iconName:g}),valueIconName:g}),(0,$.jsx)(se,{children:p}),(0,$.jsx)(v,{className:"k-input-button",icon:i,rounded:null,size:t,fillMode:s})]}),B&&A&&(0,$.jsx)(H,{className:"k-colorpicker-popup",children:A}),z&&(0,$.jsx)(ve,{adaptive:!0,...V,header:(0,$.jsx)(le,{actionsEnd:(0,$.jsx)(v,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),title:Oe,subtitle:Kt}),footer:(0,$.jsxs)(Yt,{children:[(0,$.jsx)(v,{text:"Cancel",size:"large",themeColor:"base"}),(0,$.jsx)(v,{text:"Set",size:"large",themeColor:"primary"})]}),children:(0,$.jsx)(ge,{canvasOrientation:"vertical",size:"large",actionButtons:!1,group:!0})})]})};Ae.states=Ql;Ae.options=Zl;Ae.className=Bn;Ae.defaultOptions=oo;var ep=require("react/jsx-runtime");var tp=require(