Skip to content

Commit c5a00aa

Browse files
authored
fix(react): import types from @floating-ui/react-dom package (floating-ui#2157)
1 parent 18ac733 commit c5a00aa

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/react/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export {safePolygon} from './safePolygon';
3131
export {useFloating} from './useFloating';
3232
export {useInteractions} from './useInteractions';
3333
export {
34+
arrow,
3435
autoPlacement,
3536
autoUpdate,
3637
computePosition,
@@ -44,5 +45,4 @@ export {
4445
platform,
4546
shift,
4647
size,
47-
} from '@floating-ui/dom';
48-
export {arrow} from '@floating-ui/react-dom';
48+
} from '@floating-ui/react-dom';

packages/react/src/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import type {
33
Middleware,
44
Placement,
55
Strategy,
6+
UseFloatingReturn as UsePositionFloatingReturn,
67
VirtualElement,
7-
} from '@floating-ui/dom';
8-
import type {UseFloatingReturn as UsePositionFloatingReturn} from '@floating-ui/react-dom';
8+
} from '@floating-ui/react-dom';
99
import * as React from 'react';
1010

1111
import type {DismissPayload} from './hooks/useDismiss';
@@ -56,8 +56,9 @@ export type {
5656
SizeOptions,
5757
Strategy,
5858
VirtualElement,
59-
} from '@floating-ui/dom';
59+
} from '@floating-ui/react-dom';
6060
export {
61+
arrow,
6162
autoPlacement,
6263
autoUpdate,
6364
computePosition,
@@ -71,8 +72,7 @@ export {
7172
platform,
7273
shift,
7374
size,
74-
} from '@floating-ui/dom';
75-
export {arrow} from '@floating-ui/react-dom';
75+
} from '@floating-ui/react-dom';
7676

7777
export type NarrowedElement<T> = T extends Element ? T : Element;
7878

0 commit comments

Comments
 (0)