File tree Expand file tree Collapse file tree 4 files changed +1345
-73
lines changed
Expand file tree Collapse file tree 4 files changed +1345
-73
lines changed Original file line number Diff line number Diff line change 1- import type { Placement } from '@ floating-ui/dom ' ;
1+ import type { Placement } from '../functions/ floating-types.js ' ;
22import type { LitElement , ReactiveController , ReactiveControllerHost } from 'lit' ;
33import type { StyleInfo } from 'lit/directives/style-map.js' ;
4- import type { OffsetOptions as Offset } from '@ floating-ui/core ' ;
4+ import type { OffsetOptions as Offset } from '../functions/ floating-types.js ' ;
55
66export type { Placement } ;
77
88import {
99 autoUpdate ,
1010 computePosition ,
11+ } from '../functions/floating-dom.js' ;
12+ import {
1113 offset as offsetMiddleware ,
1214 shift as shiftMiddleware ,
1315 flip as flipMiddleware ,
1416 arrow as arrowMiddleware ,
15- } from '@ floating-ui/dom ' ;
17+ } from '../functions/ floating-core.js ' ;
1618
1719type Lazy < T > = T | ( ( ) => T | null | undefined ) ;
1820
Original file line number Diff line number Diff line change @@ -18,39 +18,21 @@ import {
1818 sides ,
1919 max ,
2020 getOppositeAxis ,
21- } from './floating-utils' ;
21+ } from './floating-utils.js ' ;
2222
2323import type {
24- AlignedPlacement ,
2524 Alignment ,
26- Axis ,
2725 ClientRectObject ,
2826 Coords ,
29- Dimensions ,
30- ElementRects ,
31- Length ,
32- Padding ,
3327 Placement ,
3428 Rect ,
3529 Side ,
3630 SideObject ,
37- Strategy ,
38- VirtualElement ,
39- Boundary ,
40- ElementContext ,
41- FloatingElement ,
42- ReferenceElement ,
43- RootBoundary ,
4431 Derivable ,
45- Elements ,
4632 MiddlewareData ,
4733 MiddlewareReturn ,
4834 MiddlewareState ,
4935 Middleware ,
50- MiddlewareArguments ,
51- Platform ,
52- ComputePositionConfig ,
53- ComputePositionReturn ,
5436 ComputePosition ,
5537 DetectOverflowOptions ,
5638 ArrowOptions ,
@@ -63,57 +45,7 @@ import type {
6345 ShiftOptions ,
6446 LimitShiftOptions ,
6547 SizeOptions ,
66- } from './floating-types' ;
67-
68- // Re-export from utils
69- export { rectToClientRect } from './floating-utils' ;
70-
71- // Re-export types
72- export type {
73- AlignedPlacement ,
74- Alignment ,
75- Axis ,
76- ClientRectObject ,
77- Coords ,
78- Dimensions ,
79- ElementRects ,
80- Length ,
81- Padding ,
82- Placement ,
83- Rect ,
84- Side ,
85- SideObject ,
86- Strategy ,
87- VirtualElement ,
88- Boundary ,
89- ElementContext ,
90- FloatingElement ,
91- ReferenceElement ,
92- RootBoundary ,
93- Derivable ,
94- Elements ,
95- MiddlewareData ,
96- MiddlewareReturn ,
97- MiddlewareState ,
98- Middleware ,
99- MiddlewareArguments ,
100- Platform ,
101- ComputePositionConfig ,
102- ComputePositionReturn ,
103- ComputePosition ,
104- DetectOverflowOptions ,
105- ArrowOptions ,
106- AutoPlacementOptions ,
107- FlipOptions ,
108- HideOptions ,
109- InlineOptions ,
110- OffsetOptions ,
111- OffsetValue ,
112- ShiftOptions ,
113- LimitShiftOptions ,
114- SizeOptions ,
115- } ;
116-
48+ } from './floating-types.js' ;
11749
11850// Helper function implementations
11951function computeCoordsFromPlacement (
You can’t perform that action at this time.
0 commit comments