diff --git a/src/components/popup/popup.ts b/src/components/popup/popup.ts index 205a501fc5..438ba7ba18 100644 --- a/src/components/popup/popup.ts +++ b/src/components/popup/popup.ts @@ -7,6 +7,14 @@ import ShoelaceElement from '../../internal/shoelace-element.js'; import styles from './popup.styles.js'; import type { CSSResultGroup } from 'lit'; +export interface VirtualElement { + getBoundingClientRect: () => DOMRect; +} + +function isVirtualElement(e: unknown): e is VirtualElement { + return e !== null && typeof e === 'object' && 'getBoundingClientRect' in e; +} + /** * @summary Popup is a utility that lets you declaratively anchor "popup" containers to another element. * @documentation https://shoelace.style/components/popup @@ -35,15 +43,6 @@ import type { CSSResultGroup } from 'lit'; * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only * available when using `auto-size`. */ - -export interface VirtualElement { - getBoundingClientRect: () => DOMRect; -} - -function isVirtualElement(e: unknown): e is VirtualElement { - return e !== null && typeof e === 'object' && 'getBoundingClientRect' in e; -} - @customElement('sl-popup') export default class SlPopup extends ShoelaceElement { static styles: CSSResultGroup = styles;