UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

3 lines (2 loc) 1.24 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("tippy.js"),p=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],c=[!0,!1,"reference","popper"],l=(t,e)=>{const{contentElement:o}={...e};return delete e.contentElement,n(t,{...e,plugins:[n.sticky],render:()=>s(o)})},d=(t,e)=>n(t,{...e,plugins:[n.sticky]}),a=({boundary:t="clippingParents",fallbackPlacements:e=[],onChangePlacement:o=()=>{},hasHideModifierEnabled:i=!1,tether:r=!0}={})=>({modifiers:[{name:"flip",options:{fallbackPlacements:e,boundary:t}},{name:"hide",enabled:i},{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},m=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=p;exports.TIPPY_STICKY_VALUES=c;exports.createTippy=d;exports.createTippyPopover=l;exports.getAnchor=m;exports.getContentWrapper=s;exports.getPopperOptions=a; //# sourceMappingURL=tippy-utils.cjs.map