UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

3 lines (2 loc) 1.21 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("tippy.js"),i=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],p=[!0,!1,"reference","popper"],c=(t,e)=>{const{contentElement:o}={...e};return delete e.contentElement,n(t,{...e,plugins:[n.sticky],render:()=>s(o)})},l=(t,e)=>n(t,{...e,plugins:[n.sticky]}),d=({boundary:t="clippingParents",fallbackPlacements:e=[],hasHideModifierEnabled:o=!1,tether:r=!0}={})=>({modifiers:[{name:"flip",options:{fallbackPlacements:e,boundary:t}},{name:"hide",enabled:o},{name:"preventOverflow",options:{altAxis:!r,tether:r}}]}),u=t=>{const e=document.createElement("span");return e.innerText=t.innerText||"",t.innerText="",t.appendChild(e),e},a=t=>{const e=t==null?void 0:t.children[0];return e||u(t)},s=t=>{const e=document.createElement("div");return e.className="tippy-box d-ps-absolute",e.appendChild(t),{popper:e}};exports.BASE_TIPPY_DIRECTIONS=i;exports.TIPPY_STICKY_VALUES=p;exports.createTippy=l;exports.createTippyPopover=c;exports.getAnchor=a;exports.getContentWrapper=s;exports.getPopperOptions=d; //# sourceMappingURL=tippy-utils.cjs.map