@hanzogui/popper 2.0.0 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/src/Popper.tsx +12 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/popper",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"clean:build": "hanzo-gui-build clean:build"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@hanzogui/compose-refs": "2.0.
|
|
40
|
-
"@hanzogui/constants": "2.0.
|
|
41
|
-
"@hanzogui/core": "2.0.
|
|
42
|
-
"@hanzogui/floating": "2.0.
|
|
43
|
-
"@hanzogui/get-token": "2.0.
|
|
44
|
-
"@hanzogui/stacks": "2.0.
|
|
45
|
-
"@hanzogui/start-transition": "2.0.
|
|
46
|
-
"@hanzogui/use-controllable-state": "2.0.
|
|
39
|
+
"@hanzogui/compose-refs": "2.0.1",
|
|
40
|
+
"@hanzogui/constants": "2.0.1",
|
|
41
|
+
"@hanzogui/core": "2.0.1",
|
|
42
|
+
"@hanzogui/floating": "2.0.1",
|
|
43
|
+
"@hanzogui/get-token": "2.0.1",
|
|
44
|
+
"@hanzogui/stacks": "2.0.1",
|
|
45
|
+
"@hanzogui/start-transition": "2.0.1",
|
|
46
|
+
"@hanzogui/use-controllable-state": "2.0.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@hanzogui/build": "2.0.
|
|
49
|
+
"@hanzogui/build": "2.0.1",
|
|
50
50
|
"react": ">=19",
|
|
51
51
|
"react-native": "0.83.2"
|
|
52
52
|
},
|
package/src/Popper.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// adapted from radix-ui popper
|
|
2
2
|
import { flushSync } from 'react-dom'
|
|
3
|
-
import { useComposedRefs } from '@
|
|
4
|
-
import { isWeb, useIsomorphicLayoutEffect } from '@
|
|
5
|
-
import type { SizeTokens, GuiElement, ViewProps } from '@
|
|
3
|
+
import { useComposedRefs } from '@hanzo/gui-compose-refs'
|
|
4
|
+
import { isWeb, useIsomorphicLayoutEffect } from '@hanzo/gui-constants'
|
|
5
|
+
import type { SizeTokens, GuiElement, ViewProps } from '@hanzo/gui-core'
|
|
6
6
|
import {
|
|
7
7
|
LayoutMeasurementController,
|
|
8
8
|
View as GuiView,
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
getVariableValue,
|
|
11
11
|
registerLayoutNode,
|
|
12
12
|
styled,
|
|
13
|
-
} from '@
|
|
14
|
-
import type { PopupTriggerMap } from '@
|
|
15
|
-
import { FloatingOverrideContext } from '@
|
|
13
|
+
} from '@hanzo/gui-core'
|
|
14
|
+
import type { PopupTriggerMap } from '@hanzo/gui-floating'
|
|
15
|
+
import { FloatingOverrideContext } from '@hanzo/gui-floating'
|
|
16
16
|
import type {
|
|
17
17
|
Coords,
|
|
18
18
|
Middleware,
|
|
@@ -23,7 +23,7 @@ import type {
|
|
|
23
23
|
SizeOptions,
|
|
24
24
|
Strategy,
|
|
25
25
|
UseFloatingReturn,
|
|
26
|
-
} from '@
|
|
26
|
+
} from '@hanzo/gui-floating'
|
|
27
27
|
import {
|
|
28
28
|
arrow,
|
|
29
29
|
flip,
|
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
shift,
|
|
34
34
|
size as sizeMiddleware,
|
|
35
35
|
useFloating,
|
|
36
|
-
} from '@
|
|
37
|
-
import { getSpace } from '@
|
|
38
|
-
import type { SizableStackProps, YStackProps } from '@
|
|
39
|
-
import { YStack } from '@
|
|
40
|
-
import { startTransition } from '@
|
|
36
|
+
} from '@hanzo/gui-floating'
|
|
37
|
+
import { getSpace } from '@hanzo/gui-get-token'
|
|
38
|
+
import type { SizableStackProps, YStackProps } from '@hanzo/gui-stacks'
|
|
39
|
+
import { YStack } from '@hanzo/gui-stacks'
|
|
40
|
+
import { startTransition } from '@hanzo/gui-start-transition'
|
|
41
41
|
import * as React from 'react'
|
|
42
42
|
import { Keyboard, useWindowDimensions } from 'react-native'
|
|
43
43
|
|