Skip to content

Commit fe1e28b

Browse files
fix: remove floating-ui exports
1 parent d6c7d0d commit fe1e28b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import { TooltipController as Tooltip } from 'components/TooltipController'
44
import { IPosition } from 'components/Tooltip/TooltipTypes.d'
55
import { useState } from 'react'
6+
import { inline, offset } from '@floating-ui/dom'
67
import styles from './styles.module.css'
7-
import { inline, offset } from './index'
88

99
function App() {
1010
const [anchorId, setAnchorId] = useState('button')

src/components/Tooltip/TooltipTypes.d.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import type { ElementType, ReactNode, CSSProperties } from 'react'
2-
import type { Middleware } from '@floating-ui/dom'
3-
4-
export type { Middleware }
52

63
export type PlacesType = 'top' | 'right' | 'bottom' | 'left'
74

@@ -28,6 +25,12 @@ export type DataAttribute =
2825
| 'delay-hide'
2926
| 'float'
3027

28+
/**
29+
* @description floating-ui middleware
30+
*/
31+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
32+
export type Middleware = any
33+
3134
export interface IPosition {
3235
x: number
3336
y: number

src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import type {
1313
import type { ITooltipController } from './components/TooltipController/TooltipControllerTypes'
1414
import type { ITooltipWrapper } from './components/TooltipProvider/TooltipProviderTypes'
1515

16-
export { offset, inline, shift, flip, autoPlacement, size } from '@floating-ui/dom'
1716
export { TooltipController as Tooltip } from './components/TooltipController'
1817
export { TooltipProvider, TooltipWrapper } from './components/TooltipProvider'
1918
export type {

0 commit comments

Comments
 (0)