UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 2.02 kB
var d=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var O=Object.prototype.hasOwnProperty;var v=(t,e)=>{for(var n in e)d(t,n,{get:e[n],enumerable:!0})},E=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of y(e))!O.call(t,o)&&o!==n&&d(t,o,{get:()=>e[o],enumerable:!(r=b(e,o))||r.enumerable});return t};var P=t=>E(d({},"__esModule",{value:!0}),t);var I={};v(I,{POPUP_CLASSNAME:()=>x,Popup:()=>i,default:()=>T});module.exports=P(I);var s=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?s(...e):typeof e=="object"?Object.keys(e).map((n,r)=>e[r]||e[n]&&n||null).filter(n=>n!==null).join(" "):e).filter(e=>!!e).join(" ");var c="popup",g=c;var u=require("react/jsx-runtime"),A="k-animation-container",_=[],C={},m={positionMode:"absolute",shown:!0},a=t=>{let{positionMode:e=m.positionMode,shown:n=m.shown,animationStyle:r,offset:o,...l}=t;return(0,u.jsx)("div",{...l,style:{...o,...t.style},className:s(t.className,A,{"k-animation-container-shown":n,"k-animation-container-fixed":e==="fixed"}),children:(0,u.jsx)("div",{className:"k-child-animation-container",style:r,children:t.children})})};a.states=_;a.options=C;a.className=A;a.defaultOptions=m;a.moduleName=c;a.folderName=g;var f="popup",N=f;var p=require("react/jsx-runtime"),x="k-popup",R=[],L={},h={positionMode:"absolute"},i=t=>{let{offset:e,positionMode:n=h.positionMode,animationStyle:r,containerClassName:o,containerRole:l,containerAriaLabel:M,...k}=t;return(0,p.jsx)(a,{positionMode:n,offset:e,animationStyle:r,className:o,role:l,"aria-label":M,children:(0,p.jsx)("div",{...k,className:s(t.className,x),children:t.children})})};i.states=R;i.options=L;i.className=x;i.defaultOptions=h;i.moduleName=f;i.folderName=N;i.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var T=i;