@codecademy/gamut
68.3.068.3.1-alpha.a2040c.0
dist/PopoverContainer/types.d.ts~
dist/PopoverContainer/types.d.tsModified+2−1
Index: package/dist/PopoverContainer/types.d.ts
===================================================================
--- package/dist/PopoverContainer/types.d.ts
+++ package/dist/PopoverContainer/types.d.ts
@@ -1,5 +1,6 @@
import { RefObject } from 'react';
+import { FocusTrapProps } from '../FocusTrap';
import { WithChildrenProp } from '../utils';
export type Alignments = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top' | 'bottom' | 'left' | 'right';
export type TargetRef = Pick<HTMLDivElement, 'getBoundingClientRect' | 'contains' | 'offsetHeight' | 'offsetWidth' | 'offsetTop' | 'offsetLeft' | 'offsetParent'> & HTMLElement;
export interface PositionContext {
@@ -39,9 +40,9 @@
export interface PopoverPositionConfig extends PopoverAlignment {
container: PositionContext;
alignment: Alignments;
}
-export interface PopoverContainerProps extends PopoverAlignment, WithChildrenProp {
+export interface PopoverContainerProps extends PopoverAlignment, WithChildrenProp, Pick<FocusTrapProps, 'focusOnProps'> {
className?: string;
/**
* Whether the popover is rendered.
*/