UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 1.54 kB
var r=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var v=(t,e)=>{for(var i in e)r(t,i,{get:e[i],enumerable:!0})},g=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of y(e))!h.call(t,o)&&o!==i&&r(t,o,{get:()=>e[o],enumerable:!(n=k(e,o))||n.enumerable});return t};var M=t=>g(r({},"__esModule",{value:!0}),t);var N={};v(N,{POPUP_CLASSNAME:()=>m,Popup:()=>s,default:()=>P});module.exports=M(N);var a=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?a(...e):typeof e=="object"?Object.keys(e).map((i,n)=>e[n]||e[i]&&i||null).filter(i=>i!==null).join(" "):e).filter(e=>!!e).join(" ");var d=require("react/jsx-runtime"),u="k-animation-container",b=[],A={},f={positionMode:"absolute"},l=t=>{let{positionMode:e=f.positionMode,animationStyle:i,offset:n,...o}=t;return(0,d.jsx)("div",{...o,style:{...n,...t.style},className:a(t.className,u,"k-animation-container-shown",{"k-animation-container-fixed":e==="fixed"}),children:(0,d.jsx)("div",{className:"k-child-animation-container",style:i,children:t.children})})};l.states=b;l.options=A;l.className=u;l.defaultOptions=f;var c=require("react/jsx-runtime"),m="k-popup",S=[],$={},x={positionMode:"absolute"},s=t=>{let{offset:e,positionMode:i=x.positionMode,animationStyle:n,...o}=t;return(0,c.jsx)(l,{positionMode:i,offset:e,animationStyle:n,children:(0,c.jsx)("div",{...o,className:a(t.className,m),children:t.children})})};s.states=S;s.options=$;s.className=m;s.defaultOptions=x;var P=s;