Skip to content

Commit

Permalink
[Popover] Export getOffsetTop & getOffsetLeft from Popover's inde…
Browse files Browse the repository at this point in the history
…x and add typings (#32959)
  • Loading branch information
rart committed Jun 8, 2022
1 parent e55bafd commit 3879455
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/mui-material/src/Popover/Popover.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ export interface PopoverActions {
updatePosition(): void;
}

export function getOffsetTop(rect: DOMRect, vertical: number | 'center' | 'bottom' | 'top'): number;

export function getOffsetLeft(
rect: DOMRect,
horizontal: number | 'center' | 'right' | 'left',
): number;

/**
*
* Demos:
Expand Down
1 change: 1 addition & 0 deletions packages/mui-material/src/Popover/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { default } from './Popover';

export * from './Popover';
export { default as popoverClasses } from './popoverClasses';
export * from './popoverClasses';

0 comments on commit 3879455

Please sign in to comment.