UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 31.8 kB
var $o=Object.create;var Ve=Object.defineProperty;var _o=Object.getOwnPropertyDescriptor;var Xo=Object.getOwnPropertyNames;var Fo=Object.getPrototypeOf,Jo=Object.prototype.hasOwnProperty;var qo=(e,t)=>{for(var o in t)Ve(e,o,{get:t[o],enumerable:!0})},Ot=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Xo(t))!Jo.call(e,l)&&l!==o&&Ve(e,l,{get:()=>t[l],enumerable:!(a=_o(t,l))||a.enumerable});return e};var Uo=(e,t,o)=>(o=e!=null?$o(Fo(e)):{},Ot(t||!e||!e.__esModule?Ve(o,"default",{value:e,enumerable:!0}):o,e)),Wo=e=>Ot(Ve({},"__esModule",{value:!0}),e);var $i={};qo($i,{ColorInput:()=>Me,default:()=>Di});module.exports=Wo($i);var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...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 I=(e,t)=>i({[`${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"}),z=(e,t)=>i({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},u={small:"small",medium:"medium",large:"large",full:"full"},x={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},d={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},s={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"};var Ae=require("react/jsx-runtime"),Ze="k-icon k-font-icon",Qo=[],Yo={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},Zo={},Ce=e=>{let{size:t,themeColor:o,icon:a,rotate:l,flip:p,...m}=e;return a?(0,Ae.jsx)("span",{...m,className:i(e.className,Ze,I(Ze,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${l}`]:l,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):(0,Ae.jsx)(Ae.Fragment,{})};Ce.states=Qo;Ce.options=Yo;Ce.className=Ze;Ce.defaultOptions=Zo;var Et=Ce;var te=require("react/jsx-runtime"),je="k-icon k-svg-icon",jo=[],es={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},Ht={viewBox:"0 0 24 24"},Te=e=>{let{size:t,themeColor:o,rotate:a,flip:l,viewBox:p=Ht.viewBox,icon:m,...h}=e;if(!m)return(0,te.jsx)(te.Fragment,{});m==="none"&&{...h,className:i(e.className,je,"k-none")};let c=typeof m=="object"&&m.name&&m.name;return(0,te.jsx)("span",{...h,className:i(e.className,je,I("k-icon",{size:t}),{[`k-svg-i-${c}`]:c,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),children:(0,te.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof m=="object"?m.viewBox:p,dangerouslySetInnerHTML:typeof m=="object"?{__html:m.content}:void 0,children:m?void 0:e.children})})};Te.states=jo;Te.options=es;Te.className=je;Te.defaultOptions=Ht;var et=Te;var Kt=Uo(require("@progress/kendo-svg-icons")),F=require("react/jsx-runtime"),ts=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),os=[],ss={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark]},tt={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{size:t,themeColor:o,icon:a,type:l=tt.type,rotate:p,flip:m,viewBox:h=tt.viewBox,...c}=e;if(!a)return(0,F.jsx)(F.Fragment,{});if(l==="svg"){if(a==="none")return(0,F.jsx)(et,{...c,icon:a,size:t});let f=ts(`${a}-icon`);return Kt[f]?(0,F.jsx)(et,{...c,icon:Kt[f],size:t,themeColor:o,rotate:p,flip:m,viewBox:h}):(0,F.jsx)(F.Fragment,{})}return(0,F.jsx)(Et,{...c,icon:a,size:t,themeColor:o,rotate:p,flip:m})};k.states=os;k.options=ss;k.defaultOptions=tt;var G=require("react/jsx-runtime"),De="k-button",is=[s.hover,s.focus,s.active,s.selected,s.disabled],ns={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.light,d.dark,d.inverse]},oe={size:n.medium,rounded:u.medium,fillMode:x.solid,themeColor:d.base,showArrow:!1,arrowIconName:"caret-alt-down"},E=e=>{let{size:t=oe.size,rounded:o=oe.rounded,fillMode:a=oe.fillMode,themeColor:l=oe.themeColor,showArrow:p=oe.showArrow,arrowIconName:m=oe.arrowIconName,hover:h,focus:c,active:f,selected:b,disabled:v,icon:N,text:S,iconClassName:H,...K}=e,A=N!==void 0,C=e.children!==void 0;return(0,G.jsxs)("button",{...K,className:i(e.className,De,I(De,{size:t,rounded:o,fillMode:a,themeColor:l}),z(De,{hover:h,focus:c,active:f,disabled:v,selected:b}),{"k-icon-button":!S&&!C&&A}),children:[N&&(0,G.jsx)(k,{className:i(H,"k-button-icon"),icon:N}),S?(0,G.jsxs)(G.Fragment,{children:[S&&(0,G.jsx)("span",{className:"k-button-text",children:S}),e.children]}):e.children&&(0,G.jsx)("span",{className:"k-button-text",children:e.children}),p&&(0,G.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,G.jsx)(k,{icon:m})})]})};E.states=is;E.options=ns;E.className=De;E.defaultOptions=oe;var as=require("react/jsx-runtime");var ls=require("react/jsx-runtime");var rs=require("react/jsx-runtime");var Rt=require("react/jsx-runtime"),$e="k-input",ps=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],ms={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},_e={size:n.medium,rounded:n.medium,fillMode:x.solid},y=e=>{let{hover:t,focus:o,disabled:a,invalid:l,valid:p,loading:m,readonly:h,size:c=_e.size,rounded:f=_e.rounded,fillMode:b=_e.fillMode,...v}=e;return(0,Rt.jsx)("span",{...v,className:i(e.className,$e,I($e,{size:c,rounded:f,fillMode:b}),z($e,{hover:t,focus:o,disabled:a,invalid:l,valid:p,loading:m,readonly:h}))})};y.states=ps;y.options=ms;y.className=$e;y.defaultOptions=_e;var Pt=require("react/jsx-runtime"),Xe="k-picker",ds=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],cs={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},Fe={size:n.medium,rounded:u.medium,fillMode:x.solid},de=e=>{let{hover:t,focus:o,disabled:a,invalid:l,valid:p,loading:m,readonly:h,size:c=Fe.size,rounded:f=Fe.rounded,fillMode:b=Fe.fillMode,...v}=e;return(0,Pt.jsx)("span",{...v,className:i(e.className,Xe,I(Xe,{size:c,rounded:f,fillMode:b}),z(Xe,{hover:t,focus:o,disabled:a,invalid:l,valid:p,loading:m,readonly:h})),children:e.children})};de.states=ds;de.options=cs;de.className=Xe;de.defaultOptions=Fe;var ce=require("react/jsx-runtime"),Bt="k-clear-value",us=[s.disabled,s.loading,s.readonly],fs={},J=e=>{let{disabled:t,loading:o,readonly:a,value:l}=e;return t||a||o||!l?(0,ce.jsx)(ce.Fragment,{}):(0,ce.jsx)("span",{className:i(e.className,Bt),children:(0,ce.jsx)(k,{icon:"x"})})};J.states=us;J.options=fs;J.className=Bt;var Gt=require("react/jsx-runtime"),ot="k-input-inner",xs=[],hs={},Je={type:"text",autocomplete:"off",value:"",placeholder:""},q=e=>{let{value:t=Je.value,type:o=Je.type,placeholder:a=Je.placeholder,autocomplete:l=Je.autocomplete,...p}=e;return(0,Gt.jsx)("input",{...p,type:o,className:i(e.className,ot,I(ot,e)),placeholder:a,autoComplete:l,defaultValue:t})};q.states=xs;q.options=hs;q.className=ot;var ze=require("react/jsx-runtime"),st="k-input-inner",bs=[],Ls={},we=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:l,valueIconName:p,...m}=e;return(0,ze.jsxs)("span",{...m,className:i(e.className,st,I(st,e)),children:[l,!l&&p&&(0,ze.jsx)(k,{className:"k-input-value-icon",icon:p}),a&&!t&&o,a&&t&&(0,ze.jsx)("span",{className:"k-input-value-text",children:t})]})};we.states=bs;we.options=Ls;we.className=st;var Dt=require("react/jsx-runtime"),it="k-input-inner",vs=[],Ns={},Vt={value:"",placeholder:""},nt=e=>{let{value:t=Vt.value,placeholder:o=Vt.placeholder,rows:a,...l}=e;return(0,Dt.jsx)("textarea",{...l,className:i(e.className,it,I(it,e)),placeholder:o,rows:a,defaultValue:t})};nt.states=vs;nt.options=Ns;nt.className=it;var Oe=require("react/jsx-runtime"),$t="k-input-loading-icon",Ss=[s.disabled,s.loading],D=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,Oe.jsx)(Oe.Fragment,{}):(0,Oe.jsx)("span",{className:i(e.className,$t,"k-icon k-i-loading")})};D.states=Ss;D.className=$t;var Ee=require("react/jsx-runtime"),_t="k-input-validation-icon",Is=[s.valid,s.invalid,s.disabled,s.loading],gs={},V=e=>{let{valid:t,invalid:o,disabled:a,loading:l}=e,p=o?"warning-circle":"check-circle";return a||l||!!!(t||o)?(0,Ee.jsx)(Ee.Fragment,{}):(0,Ee.jsx)(k,{className:i(_t),icon:p})};V.states=Is;V.options=gs;V.className=_t;var He=require("react/jsx-runtime"),ks="k-input-prefix",ys={direction:"horizontal"},ue=e=>{let{direction:t=ys.direction,...o}=e;return e.children?(0,He.jsx)("span",{...o,className:i(ks,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,He.jsx)(He.Fragment,{})};var Ke=require("react/jsx-runtime"),Ms="k-input-suffix",As={direction:"horizontal"},fe=e=>{let{direction:t=As.direction,...o}=e;return e.children?(0,Ke.jsx)("span",{...o,className:i(Ms,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Ke.jsx)(Ke.Fragment,{})};var Cs=require("react/jsx-runtime");var Ts=require("react/jsx-runtime");var Ft=require("react/jsx-runtime"),Xt="k-input-separator",zs={direction:"vertical"},xe=e=>{let{direction:t=zs.direction,...o}=e;return(0,Ft.jsx)("span",{...o,className:i(Xt,e.className,{[`${Xt}-${t}`]:t})})};var Re=require("react/jsx-runtime"),Jt="k-spin-button",ws=[],Os={size:[n.small,n.medium,n.large],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link]},at={size:n.medium,fillMode:x.solid},he=e=>{let{size:t=at.size,fillMode:o=at.fillMode,...a}=e;return(0,Re.jsxs)("span",{...a,className:i(Jt,e.className),children:[(0,Re.jsx)(E,{className:"k-spinner-increase",icon:"caret-alt-up",rounded:null,size:t,fillMode:o}),(0,Re.jsx)(E,{className:"k-spinner-decrease",icon:"caret-alt-down",rounded:null,size:t,fillMode:o})]})};he.states=ws;he.options=Os;he.className=Jt;he.defaultOptions=at;var T=require("react/jsx-runtime"),qt="k-numerictextbox",Es=[s.hover,s.focus,s.valid,s.invalid,s.loading,s.required,s.disabled,s.readonly],Hs={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},se={showSpinButton:!0,showClearButton:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},M=e=>{let{size:t=se.size,rounded:o=se.rounded,fillMode:a=se.fillMode,separators:l=se.separators,showClearButton:p=se.showClearButton,showSpinButton:m=se.showSpinButton,prefix:h,suffix:c,value:f,placeholder:b,hover:v,focus:N,valid:S,invalid:H,required:K,loading:A,disabled:C,readonly:X,...ee}=e;return(0,T.jsxs)(y,{...ee,size:t,rounded:o,fillMode:a,hover:v,focus:N,valid:S,invalid:H,required:K,loading:A,disabled:C,readonly:X,className:i(e.className,qt),children:[h&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(ue,{children:h}),l&&(0,T.jsx)(xe,{})]}),(0,T.jsx)(q,{placeholder:b,value:f}),(0,T.jsx)(V,{valid:S,invalid:H,loading:A,disabled:C}),(0,T.jsx)(D,{loading:A,disabled:C}),p&&(0,T.jsx)(J,{loading:A,disabled:C,readonly:X,value:f}),c&&(0,T.jsxs)(T.Fragment,{children:[l&&(0,T.jsx)(xe,{}),(0,T.jsx)(fe,{children:c})]}),m&&(0,T.jsx)(he,{className:"k-input-spinner",size:t,fillMode:a})]})};M.states=Es;M.options=Hs;M.className=qt;M.defaultOptions=se;var Ks=require("react/jsx-runtime");var lt=require("react/jsx-runtime"),Wt="k-animation-container",Rs=[],Ps={},Qt={positionMode:"absolute"},W=e=>{let{positionMode:t=Qt.positionMode,animationStyle:o,offset:a,...l}=e;return(0,lt.jsx)("div",{...l,style:{...a,...e.style},className:i(e.className,Wt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:(0,lt.jsx)("div",{className:"k-child-animation-container",style:o,children:e.children})})};W.states=Rs;W.options=Ps;W.className=Wt;W.defaultOptions=Qt;var rt=require("react/jsx-runtime"),Yt="k-popup",Bs=[],Gs={},Zt={positionMode:"absolute"},be=e=>{let{offset:t,positionMode:o=Zt.positionMode,animationStyle:a,...l}=e;return(0,rt.jsx)(W,{positionMode:o,offset:t,animationStyle:a,children:(0,rt.jsx)("div",{...l,className:i(e.className,Yt),children:e.children})})};be.states=Bs;be.options=Gs;be.className=Yt;be.defaultOptions=Zt;var jt=require("react/jsx-runtime"),qe="k-actions",Vs=[],Ds={},pt={alignment:"start",orientation:"horizontal"},Le=e=>{let{alignment:t=pt.alignment,orientation:o=pt.orientation,...a}=e;return(0,jt.jsx)("div",{...a,className:i(qe,{[`${qe}-${t}`]:t,[`${qe}-${o}`]:o},e.className),children:e.children})};Le.states=Vs;Le.options=Ds;Le.className=qe;Le.defaultOptions=pt;var to=require("react/jsx-runtime"),$s="k-actionsheet-footer",eo={alignment:"stretched",orientation:"horizontal"},mt=e=>{let{alignment:t=eo.alignment,orientation:o=eo.orientation,template:a,as:l=a?"div":Le,...p}=e;return(0,to.jsx)(l,{...p,...!a&&{alignment:t,orientation:o},className:i(e.className,$s),children:e.children})};var Q=require("react/jsx-runtime"),oo="k-searchbox",_s=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Xs={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},dt={showIcon:!0,icon:"search",size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode},U=e=>{let{value:t,placeholder:o,size:a,rounded:l,fillMode:p,hover:m,focus:h,valid:c,invalid:f,required:b,loading:v,disabled:N,showIcon:S=dt.showIcon,icon:H=dt.icon,...K}=e;return(0,Q.jsxs)(y,{...K,size:a,rounded:l,fillMode:p,hover:m,focus:h,valid:c,invalid:f,required:b,loading:v,disabled:N,className:i(e.className,oo),children:[S&&(0,Q.jsx)(k,{className:"k-input-icon",icon:H}),(0,Q.jsx)(q,{placeholder:o,value:t}),(0,Q.jsx)(D,{...e}),(0,Q.jsx)(V,{...e}),(0,Q.jsx)(J,{...e})]})};U.states=_s;U.options=Xs;U.className=oo;U.defaultOptions=dt;var Fs=require("react/jsx-runtime");var w=require("react/jsx-runtime"),so="k-textbox",Js=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],qs={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},ie={showClearButton:!0,showValidationIcon:!0,size:y.defaultOptions.size,rounded:y.defaultOptions.rounded,fillMode:y.defaultOptions.fillMode,separators:!0},Y=e=>{let{size:t=ie.size,rounded:o=ie.rounded,fillMode:a=ie.fillMode,separators:l=ie.separators,showClearButton:p=ie.showClearButton,showValidationIcon:m=ie.showValidationIcon,prefix:h,suffix:c,type:f,value:b,placeholder:v,hover:N,focus:S,valid:H,invalid:K,required:A,loading:C,disabled:X,readonly:ee,...Ye}=e;return(0,w.jsxs)(y,{...Ye,size:t,rounded:o,fillMode:a,hover:N,focus:S,valid:H,invalid:K,required:A,loading:C,disabled:X,readonly:ee,className:i(e.className,so),children:[h&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(ue,{children:h}),l&&(0,w.jsx)(xe,{})]}),(0,w.jsx)(q,{placeholder:v,value:b,type:f}),m&&(0,w.jsx)(V,{valid:H,invalid:K,loading:C,disabled:X}),(0,w.jsx)(D,{loading:C,disabled:X}),p&&(0,w.jsx)(J,{loading:C,disabled:X,readonly:ee,value:b}),c&&(0,w.jsxs)(w.Fragment,{children:[l&&(0,w.jsx)(xe,{}),(0,w.jsx)(fe,{children:c})]})]})};Y.states=Js;Y.options=qs;Y.className=so;Y.defaultOptions=ie;var Us=require("react/jsx-runtime");var no=require("react/jsx-runtime");var ao=require("react/jsx-runtime");var P=require("react/jsx-runtime"),lo="k-actionsheet-titlebar",Ws={},Z=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:l,filter:p,input:m,inputValue:h,inputPlaceholder:c,adaptive:f,children:b,...v}=e;return(0,P.jsxs)("div",{...v,className:i(e.className,lo),children:[(0,P.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[a&&(0,P.jsx)("div",{className:"k-actionsheet-actions",children:a}),!b&&(0,P.jsxs)("div",{className:"k-actionsheet-title",children:[t&&(0,P.jsx)("div",{className:"k-text-center",children:t}),o&&(0,P.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),b&&(0,P.jsx)("div",{className:"k-actionsheet-title",children:b}),l&&(0,P.jsx)("div",{className:"k-actionsheet-actions",children:l})]}),(m||p)&&(0,P.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:m?(0,P.jsx)(Y,{value:h,placeholder:c,size:f?"large":"medium"}):(0,P.jsx)(U,{placeholder:"Filter",size:f?"large":"medium"})})]})};Z.className=lo;Z.defaultOptions=Ws;var ve=require("react/jsx-runtime"),ct="k-actionsheet-view",Qs=[],Ys={},Zs={},Ne=e=>{let{adaptive:t,animated:o,children:a,header:l,footer:p,...m}=e,h=(l==null?void 0:l.type)===Z&&(0,ve.jsx)(Z,{adaptive:t,...l==null?void 0:l.props}),c=(p==null?void 0:p.type)===mt&&(0,ve.jsx)(mt,{...p==null?void 0:p.props});return(0,ve.jsxs)("div",{...m,className:i(e.className,ct,{[`${ct}-animated`]:o}),children:[h,(0,ve.jsx)("div",{className:"k-actionsheet-content",children:a}),c]})};Ne.states=Qs;Ne.options=Ys;Ne.className=ct;Ne.defaultOptions=Zs;var ne=require("react/jsx-runtime"),ro="k-actionsheet",js=[],ei={},Pe={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ae=e=>{let{side:t=Pe.side,fullscreen:o=Pe.fullscreen,adaptive:a=Pe.adaptive,overlay:l=Pe.overlay,template:p,children:m,header:h,footer:c,...f}=e;return(0,ne.jsxs)("div",{className:"k-actionsheet-container",children:[l&&(0,ne.jsx)("div",{className:"k-overlay"}),(0,ne.jsx)(W,{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,ne.jsx)("div",{...f,className:i(e.className,ro,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:p||(0,ne.jsx)(Ne,{header:h,footer:c,adaptive:a,...e,children:m})})})]})};ae.states=js;ae.options=ei;ae.className=ro;ae.defaultOptions=Pe;var ti=require("react/jsx-runtime");var B=require("react/jsx-runtime"),ut="k-actionsheet-item",oi=[s.hover,s.focus,s.selected,s.disabled],ft=e=>{let{iconName:t,text:o,description:a,hover:l,focus:p,selected:m,disabled:h,...c}=e;return(0,B.jsxs)("span",{...c,className:i(e.className,ut,z(ut,{hover:l,focus:p,selected:m,disabled:h})),children:[!e.children&&(0,B.jsx)(B.Fragment,{children:(0,B.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,B.jsx)("span",{className:"k-icon-wrap",children:(0,B.jsx)(k,{className:"k-actionsheet-item-icon",icon:t})}),(0,B.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,B.jsx)("span",{className:"k-actionsheet-item-title",children:o}),a&&(0,B.jsx)("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};ft.states=oi;ft.className=ut;var po=require("react/jsx-runtime");var si=require("react/jsx-runtime");var ii=require("react/jsx-runtime");var ni=require("react/jsx-runtime");var co=require("react/jsx-runtime"),ai="k-no-data",Be=e=>(0,co.jsx)("span",{className:i(ai,e.className),children:e.children});var $=require("react/jsx-runtime"),xt="k-list",li=[],ri={size:[n.small,n.medium,n.large]},uo={size:n.medium},O=e=>{let{size:t=uo.size,virtualization:o,children:a,optionLabel:l,customValue:p,screenReaders:m,...h}=e,c,f,b,v,N=[];return a?a.map((S,H)=>{S.type===R?(S.props.root===!0?(c=S.props.label,S.props.children.map((K,A)=>{N.push((0,$.jsx)(L,{...K.props},`optChild-${A}-${new Date().getTime()}`))})):S.props.children.forEach((K,A)=>{let C="";A===0&&(C=S.props.label),N.push((0,$.jsx)(L,{className:A===0?"k-first":"",...K.props,groupLabel:C},`groupLabel-${A}-${new Date().getTime()}`))}),f=(0,$.jsx)(R,{label:c,virtualization:o,children:N})):S.type===L&&(N.push((0,$.jsx)(L,{...S.props},`${S.type}-${H}`)),b=(0,$.jsx)(Se,{virtualization:o,children:N}),m&&(v=(0,$.jsxs)(Be,{className:"k-sr-only",children:[N.length," items found."]})))}):v=(0,$.jsx)(Be,{children:"No data found."}),(0,$.jsxs)("div",{...h,className:i(e.className,xt,I(xt,{size:t}),{"k-virtual-list":o}),children:[l,p,f,b,v]})};O.states=li;O.options=ri;O.className=xt;O.defaultOptions=uo;var _=require("react/jsx-runtime"),ht="k-list",pi=[],mi={size:[n.small,n.medium,n.large]},fo={size:n.medium},le=e=>{let{size:t=fo.size,virtualization:o,children:a,...l}=e,p,m,h,c=[];return a?a.map((f,b)=>{f.type===R?(f.props.root===!0?(p=f.props.label,f.props.children.map((v,N)=>{c.push((0,_.jsx)(L,{...v.props},`optChild-${N}-${new Date().getTime()}`))})):(c.push((0,_.jsx)(xo,{...f.props,children:f.props.label},`listChild-${b}`)),f.props.children.map((v,N)=>{c.push((0,_.jsx)(L,{...v.props},`fwOptChild-${N}-${new Date().getTime()}`))})),m=(0,_.jsx)(R,{label:p,virtualization:o,children:c})):f.type===L&&(c.push((0,_.jsx)(L,{...f.props},`${f.type}-${b}`)),h=(0,_.jsx)(Se,{virtualization:o,children:c}))}):h=(0,_.jsx)(Be,{children:"No data found."}),(0,_.jsxs)("div",{...l,className:i(e.className,ht,I(ht,{size:t}),{"k-virtual-list":o}),children:[m,h]})};le.states=pi;le.options=mi;le.className=ht;le.defaultOptions=fo;var Lt=require("react/jsx-runtime"),Ue="k-checkbox",di=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],ci={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full]},bt={size:n.medium,rounded:u.medium},j=e=>{let{id:t,checked:o,indeterminate:a,hover:l,focus:p,disabled:m,invalid:h,valid:c,required:f,size:b=bt.size,rounded:v=bt.rounded,...N}=e;return(0,Lt.jsx)("span",{className:"k-checkbox-wrap",children:(0,Lt.jsx)("input",{...N,id:t,type:"checkbox",defaultChecked:o,required:f,className:i(e.className,Ue,I(Ue,{size:b,rounded:v}),z(Ue,{hover:l,focus:p,disabled:m,invalid:h,valid:c,indeterminate:a,checked:o}))})})};j.states=di;j.options=ci;j.className=Ue;j.defaultOptions=bt;var Lo=require("react/jsx-runtime"),ho="k-checkbox-list",ui=[],fi={},bo={layout:"vertical"},Ie=e=>{let{layout:t=bo.layout,...o}=e;return(0,Lo.jsx)("ul",{...o,className:i(e.className,ho,{[`k-list-${t}`]:t}),children:e.children})};Ie.states=ui;Ie.options=fi;Ie.className=ho;Ie.defaultOptions=bo;var No=require("react/jsx-runtime"),vo="k-checkbox-list-item",xi=[],hi={},bi={},ge=e=>{let{...t}=e;return(0,No.jsx)("li",{...t,className:i(e.className,vo),children:e.children})};ge.states=xi;ge.options=hi;ge.className=vo;ge.defaultOptions=bi;var Nt=require("react/jsx-runtime");var St=require("react/jsx-runtime");var It=require("react/jsx-runtime");var gt=require("react/jsx-runtime");var Li=require("react/jsx-runtime");var vi=require("react/jsx-runtime");var re=require("react/jsx-runtime"),kt="k-list-item",Ni=[s.hover,s.focus,s.selected,s.disabled],Si={},Ii={},L=e=>{let{text:t,groupLabel:o,group:a,showIcon:l,iconName:p,showCheckbox:m,checked:h,hover:c,focus:f,selected:b,disabled:v,...N}=e,S=t||e.children;return(0,re.jsxs)("li",{...N,className:i(e.className,a?"k-list-group-item":kt,z(kt,{hover:c,focus:f,disabled:v,selected:b})),children:[m&&(0,re.jsx)(j,{checked:h}),l&&(0,re.jsx)(k,{icon:p}),(0,re.jsx)("span",{className:"k-list-item-text",children:S}),o&&o!==""&&(0,re.jsx)("div",{className:"k-list-item-group-label",children:o})]})};L.states=Ni;L.options=Si;L.className=kt;L.defaultOptions=Ii;var ke=require("react/jsx-runtime"),gi="k-list-content",Se=e=>{let{virtualization:t,...o}=e;return(0,ke.jsxs)("div",{...o,className:i(gi,e.className),children:[(0,ke.jsx)("ul",{className:i("k-list-ul"),children:e.children}),t&&(0,ke.jsx)("div",{className:"k-height-container",children:(0,ke.jsx)("div",{})})]})};var yt=require("react/jsx-runtime"),ki="k-list-group-sticky-header",So=e=>(0,yt.jsx)("div",{className:i(ki,e.className),children:(0,yt.jsx)("div",{className:"k-list-header-text",children:e.children})});var pe=require("react/jsx-runtime"),R=e=>{let{virtualization:t,label:o}=e;return(0,pe.jsxs)(pe.Fragment,{children:[o&&(0,pe.jsx)(So,{children:o}),e.children&&(0,pe.jsx)(Se,{virtualization:t,children:e.children})]})};var Mt=require("react/jsx-runtime"),yi="k-list-group-item",xo=e=>(0,Mt.jsx)("li",{className:i(yi,e.className),children:(0,Mt.jsx)("span",{className:"k-list-item-text",children:e.children})});var Io=require("react/jsx-runtime"),At="k-list-optionlabel",Mi=[s.hover,s.focus,s.selected,s.disabled],Ai={},Ci={},We=e=>{let{text:t,hover:o,focus:a,selected:l,disabled:p,...m}=e;return(0,Io.jsx)("div",{...m,className:i(At,z(At,{hover:o,focus:a,selected:l,disabled:p})),children:t})};We.states=Mi;We.options=Ai;We.className=At;We.defaultOptions=Ci;var go=require("react/jsx-runtime"),Ct="k-list-custom-value",Ti=[s.hover,s.focus,s.selected,s.disabled],zi={},wi={},Qe=e=>{let{text:t,hover:o,focus:a,selected:l,disabled:p,...m}=e;return(0,go.jsx)("div",{...m,className:i(Ct,z(Ct,{hover:o,focus:a,selected:l,disabled:p})),children:t})};Qe.states=Ti;Qe.options=zi;Qe.className=Ct;Qe.defaultOptions=wi;var Oi=require("react/jsx-runtime");var Ei=require("react/jsx-runtime");var ko=require("react/jsx-runtime");var yo=require("react/jsx-runtime");var Hi=require("react/jsx-runtime");var Mo=require("react/jsx-runtime");var Ao=require("react/jsx-runtime");var g=require("react/jsx-runtime"),Co="k-dropdownlist",Ki=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ri={size:[n.small,n.medium,n.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[x.solid,x.flat,x.outline]},ye={showValue:!0,arrowIconName:"caret-alt-down",size:n.medium,rounded:u.medium,fillMode:x.solid},Ge=e=>{let{size:t=ye.size,rounded:o=ye.rounded,fillMode:a=ye.fillMode,arrowIconName:l=ye.arrowIconName,showValue:p=ye.showValue,valueIconName:m,prefix:h,suffix:c,value:f,placeholder:b,hover:v,focus:N,valid:S,invalid:H,required:K,loading:A,disabled:C,readonly:X,popup:ee,opened:Ye,adaptive:Ro,adaptiveSettings:Po,adaptiveTitle:Bo,adaptiveSubtitle:Go,adaptiveFilter:Vo,...Do}=e;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(de,{...Do,size:t,rounded:o,fillMode:a,hover:v,focus:N,valid:S,invalid:H,required:K,loading:A,disabled:C,readonly:X,className:i(e.className,Co,{"k-icon-picker":!p&&m}),children:[(0,g.jsx)(ue,{children:h}),(0,g.jsx)(we,{placeholder:b,value:f,showValue:p,valueIconName:m}),(0,g.jsx)(V,{valid:S,invalid:H,loading:A,disabled:C}),(0,g.jsx)(D,{loading:A,disabled:C}),(0,g.jsx)(fe,{children:c}),(0,g.jsx)(E,{className:"k-input-button",icon:l,rounded:null,size:e.size,fillMode:e.fillMode})]}),Ye&&ee&&(0,g.jsx)(be,{className:"k-list-container k-dropdownlist-popup",children:ee}),Ro&&(0,g.jsx)(ae,{adaptive:!0,...Po,header:(0,g.jsx)(Z,{actionsEnd:(0,g.jsx)(E,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Vo,inputValue:f,inputPlaceholder:b,title:Bo,subtitle:Go}),children:(0,g.jsx)("div",{className:"k-list-container",children:(0,g.jsxs)(O,{size:"large",children:[(0,g.jsx)(L,{text:"List item"}),(0,g.jsx)(L,{text:"List item"}),(0,g.jsx)(L,{text:"List item"})]})})})]})};Ge.states=Ki;Ge.options=Ri;Ge.className=Co;Ge.defaultOptions=ye;var Pi=require("react/jsx-runtime");var To=require("react/jsx-runtime");var Tt=require("react/jsx-runtime");var Bi=require("react/jsx-runtime");var zo=require("react/jsx-runtime");var wo=require("react/jsx-runtime");var zt=require("react/jsx-runtime");var wt=require("react/jsx-runtime");var Oo=require("react/jsx-runtime");var Eo=require("react/jsx-runtime");var r=require("react/jsx-runtime"),Ho="k-colorgradient-inputs",Gi=[],Vi={size:[n.small,n.medium,n.large]},Ko={mode:"rgba",size:n.medium},Me=e=>{let{mode:t=Ko.mode,size:o,...a}=e;return(0,r.jsxs)("div",{...a,className:i(Ho,"k-hstack"),children:[(0,r.jsx)("div",{className:"k-vstack",children:(0,r.jsx)(E,{fillMode:"flat",icon:"caret-alt-expand",className:"k-colorgradient-toggle-mode",size:o})}),t==="rgba"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"132",size:o}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]}),(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"1.00",size:o}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="rgb"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"R"})]}),(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"G"})]}),(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"B"})]})]}),t==="hsva"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]}),(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"1.00"}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"A"})]})]}),t==="hsv"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"H"})]}),(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"S"})]}),(0,r.jsxs)("div",{className:"k-vstack",children:[(0,r.jsx)(M,{showSpinButton:!1,showClearButton:!1,value:"132"}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"V"})]})]}),t==="hex"&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"k-vstack k-flex-1",children:[(0,r.jsx)(Y,{showClearButton:!1,value:"#b88484AA",className:"k-hex-value"}),(0,r.jsx)("label",{className:"k-colorgradient-input-label",children:"HEX"})]})})]})};Me.states=Gi;Me.options=Vi;Me.className=Ho;Me.defaultOptions=Ko;var Di=Me;