Skip to content

Commit

Permalink
fix(types): use types from @popperjs/core
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoebe Gao authored and phwebi committed Oct 27, 2021
1 parent 1c6db58 commit 10fd0b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions types/lib/DropdownMenu.d.ts
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Popper from 'popper.js';
import type { Modifier } from '@popperjs/core';
import { CSSModule } from './index';

export interface DropdownMenuProps extends React.HTMLAttributes<HTMLElement> {
Expand All @@ -8,7 +8,7 @@ export interface DropdownMenuProps extends React.HTMLAttributes<HTMLElement> {
dark?: boolean;
right?: boolean;
flip?: boolean;
modifiers?: Popper.Modifiers;
modifiers?: Modifier<string, any>[];
cssModule?: CSSModule;
persist?: boolean;
strategy?: string;
Expand Down
8 changes: 4 additions & 4 deletions types/lib/Popover.d.ts
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Popper from 'popper.js';
import type { Modifier, Boundary, Placement } from '@popperjs/core';
import { CSSModule } from './index';

interface PopoverChildrenRenderProps {
Expand All @@ -16,15 +16,15 @@ export interface PopoverProps extends React.HTMLAttributes<HTMLElement> {
toggle?: React.MouseEventHandler<any> | (() => void);
target: string | HTMLElement | React.RefObject<HTMLElement>;
container?: string | HTMLElement | React.RefObject<HTMLElement>;
boundariesElement?: Popper.Boundary | Element;
placement?: Popper.Placement;
boundariesElement?: Boundary | Element;
placement?: Placement;
popperClassName?: string;
innerClassName?: string;
disabled?: boolean;
hideArrow?: boolean;
placementPrefix?: string;
delay?: number | { show: number; hide: number };
modifiers?: Popper.Modifiers;
modifiers?: Modifier<string, any>[];
strategy?: string;
cssModule?: CSSModule;
fade?: boolean;
Expand Down
6 changes: 3 additions & 3 deletions types/lib/Tooltip.d.ts
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Popper from 'popper.js';
import type { Modifier, Placement } from '@popperjs/core';
import { CSSModule } from './index';

interface TooltipChildrenRenderProps {
Expand All @@ -19,8 +19,8 @@ export interface UncontrolledTooltipProps
popperClassName?: string;
innerClassName?: string;
autohide?: boolean;
placement?: Popper.Placement;
modifiers?: Popper.Modifiers;
placement?: Placement;
modifiers?: Modifier<string, any>[];
strategy?: string;
cssModule?: CSSModule;
fade?: boolean;
Expand Down

0 comments on commit 10fd0b2

Please sign in to comment.