@hanzogui/popper 2.0.0 → 2.0.5
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/dist/cjs/Popper.cjs +8 -8
- package/dist/cjs/Popper.native.js +8 -8
- package/dist/esm/Popper.mjs +10 -10
- package/dist/esm/Popper.native.js +10 -10
- package/dist/jsx/Popper.mjs +10 -10
- package/dist/jsx/Popper.native.js +8 -8
- package/package.json +10 -10
package/dist/cjs/Popper.cjs
CHANGED
|
@@ -49,14 +49,14 @@ __export(Popper_exports, {
|
|
|
49
49
|
});
|
|
50
50
|
module.exports = __toCommonJS(Popper_exports);
|
|
51
51
|
var import_react_dom = require("react-dom"),
|
|
52
|
-
import_gui_compose_refs = require("@
|
|
53
|
-
import_gui_constants = require("@
|
|
54
|
-
import_gui_core = require("@
|
|
55
|
-
import_gui_floating = require("@
|
|
56
|
-
import_gui_floating2 = require("@
|
|
57
|
-
import_gui_get_token = require("@
|
|
58
|
-
import_gui_stacks = require("@
|
|
59
|
-
import_gui_start_transition = require("@
|
|
52
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
53
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
54
|
+
import_gui_core = require("@hanzogui/core"),
|
|
55
|
+
import_gui_floating = require("@hanzogui/floating"),
|
|
56
|
+
import_gui_floating2 = require("@hanzogui/floating"),
|
|
57
|
+
import_gui_get_token = require("@hanzogui/get-token"),
|
|
58
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
59
|
+
import_gui_start_transition = require("@hanzogui/start-transition"),
|
|
60
60
|
React = __toESM(require("react"), 1),
|
|
61
61
|
import_react_native = require("react-native-web"),
|
|
62
62
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -52,14 +52,14 @@ __export(Popper_exports, {
|
|
|
52
52
|
module.exports = __toCommonJS(Popper_exports);
|
|
53
53
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
54
54
|
import_react_dom = require("react-dom"),
|
|
55
|
-
import_gui_compose_refs = require("@
|
|
56
|
-
import_gui_constants = require("@
|
|
57
|
-
import_gui_core = require("@
|
|
58
|
-
import_gui_floating = require("@
|
|
59
|
-
import_gui_floating2 = require("@
|
|
60
|
-
import_gui_get_token = require("@
|
|
61
|
-
import_gui_stacks = require("@
|
|
62
|
-
import_gui_start_transition = require("@
|
|
55
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
56
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
57
|
+
import_gui_core = require("@hanzogui/core"),
|
|
58
|
+
import_gui_floating = require("@hanzogui/floating"),
|
|
59
|
+
import_gui_floating2 = require("@hanzogui/floating"),
|
|
60
|
+
import_gui_get_token = require("@hanzogui/get-token"),
|
|
61
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
62
|
+
import_gui_start_transition = require("@hanzogui/start-transition"),
|
|
63
63
|
React = __toESM(require("react"), 1),
|
|
64
64
|
import_react_native = require("react-native");
|
|
65
65
|
function _instanceof(left, right) {
|
package/dist/esm/Popper.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { flushSync } from "react-dom";
|
|
2
|
-
import { useComposedRefs } from "@
|
|
3
|
-
import { isWeb, useIsomorphicLayoutEffect } from "@
|
|
4
|
-
import { LayoutMeasurementController, View as
|
|
5
|
-
import { FloatingOverrideContext } from "@
|
|
6
|
-
import { arrow, flip, getOverflowAncestors, offset as offsetFn, platform, shift, size as sizeMiddleware, useFloating } from "@
|
|
7
|
-
import { getSpace } from "@
|
|
8
|
-
import { YStack } from "@
|
|
9
|
-
import { startTransition } from "@
|
|
2
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
3
|
+
import { isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
4
|
+
import { LayoutMeasurementController, View as GuiView, createStyledContext, getVariableValue, registerLayoutNode, styled } from "@hanzogui/core";
|
|
5
|
+
import { FloatingOverrideContext } from "@hanzogui/floating";
|
|
6
|
+
import { arrow, flip, getOverflowAncestors, offset as offsetFn, platform, shift, size as sizeMiddleware, useFloating } from "@hanzogui/floating";
|
|
7
|
+
import { getSpace } from "@hanzogui/get-token";
|
|
8
|
+
import { YStack } from "@hanzogui/stacks";
|
|
9
|
+
import { startTransition } from "@hanzogui/start-transition";
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
12
|
const PopperContextFast = createStyledContext(
|
|
@@ -268,7 +268,7 @@ const PopperAnchor = YStack.styleable(function (props, forwardedRef) {
|
|
|
268
268
|
composedRefs = useComposedRefs(forwardedRef, ref,
|
|
269
269
|
// web handles this onMouseEnter below so it can support multiple targets + hovering
|
|
270
270
|
shouldHandleInHover ? void 0 : safeSetReference);
|
|
271
|
-
return /* @__PURE__ */jsx(
|
|
271
|
+
return /* @__PURE__ */jsx(GuiView, {
|
|
272
272
|
...rest,
|
|
273
273
|
...refProps,
|
|
274
274
|
ref: composedRefs,
|
|
@@ -399,7 +399,7 @@ const PopperAnchor = YStack.styleable(function (props, forwardedRef) {
|
|
|
399
399
|
} : void 0;
|
|
400
400
|
return /* @__PURE__ */jsx(LayoutMeasurementController, {
|
|
401
401
|
disable: !context.open,
|
|
402
|
-
children: /* @__PURE__ */jsx(
|
|
402
|
+
children: /* @__PURE__ */jsx(GuiView, {
|
|
403
403
|
passThrough,
|
|
404
404
|
ref: contentRefs,
|
|
405
405
|
direction: rest.direction,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { flushSync } from "react-dom";
|
|
3
|
-
import { useComposedRefs } from "@
|
|
4
|
-
import { isWeb, useIsomorphicLayoutEffect } from "@
|
|
5
|
-
import { LayoutMeasurementController, View as
|
|
6
|
-
import { FloatingOverrideContext } from "@
|
|
7
|
-
import { arrow, flip, getOverflowAncestors, offset as offsetFn, platform, shift, useFloating } from "@
|
|
8
|
-
import { getSpace } from "@
|
|
9
|
-
import { YStack } from "@
|
|
10
|
-
import { startTransition } from "@
|
|
3
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
4
|
+
import { isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
5
|
+
import { LayoutMeasurementController, View as GuiView, createStyledContext, getVariableValue, registerLayoutNode, styled } from "@hanzogui/core";
|
|
6
|
+
import { FloatingOverrideContext } from "@hanzogui/floating";
|
|
7
|
+
import { arrow, flip, getOverflowAncestors, offset as offsetFn, platform, shift, useFloating } from "@hanzogui/floating";
|
|
8
|
+
import { getSpace } from "@hanzogui/get-token";
|
|
9
|
+
import { YStack } from "@hanzogui/stacks";
|
|
10
|
+
import { startTransition } from "@hanzogui/start-transition";
|
|
11
11
|
import * as React from "react";
|
|
12
12
|
import { Keyboard, useWindowDimensions } from "react-native";
|
|
13
13
|
function _instanceof(left, right) {
|
|
@@ -283,7 +283,7 @@ var PopperAnchor = YStack.styleable(function (props, forwardedRef) {
|
|
|
283
283
|
composedRefs = useComposedRefs(forwardedRef, ref,
|
|
284
284
|
// web handles this onMouseEnter below so it can support multiple targets + hovering
|
|
285
285
|
shouldHandleInHover ? void 0 : safeSetReference);
|
|
286
|
-
return /* @__PURE__ */_jsx(
|
|
286
|
+
return /* @__PURE__ */_jsx(GuiView, {
|
|
287
287
|
...rest,
|
|
288
288
|
...refProps,
|
|
289
289
|
ref: composedRefs,
|
|
@@ -433,7 +433,7 @@ var PopperAnchor = YStack.styleable(function (props, forwardedRef) {
|
|
|
433
433
|
} : void 0;
|
|
434
434
|
return /* @__PURE__ */_jsx(LayoutMeasurementController, {
|
|
435
435
|
disable: !context.open,
|
|
436
|
-
children: /* @__PURE__ */_jsx(
|
|
436
|
+
children: /* @__PURE__ */_jsx(GuiView, {
|
|
437
437
|
passThrough,
|
|
438
438
|
ref: contentRefs,
|
|
439
439
|
direction: rest.direction,
|
package/dist/jsx/Popper.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { flushSync } from "react-dom";
|
|
2
|
-
import { useComposedRefs } from "@
|
|
3
|
-
import { isWeb, useIsomorphicLayoutEffect } from "@
|
|
4
|
-
import { LayoutMeasurementController, View as
|
|
5
|
-
import { FloatingOverrideContext } from "@
|
|
6
|
-
import { arrow, flip, getOverflowAncestors, offset as offsetFn, platform, shift, size as sizeMiddleware, useFloating } from "@
|
|
7
|
-
import { getSpace } from "@
|
|
8
|
-
import { YStack } from "@
|
|
9
|
-
import { startTransition } from "@
|
|
2
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
3
|
+
import { isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
4
|
+
import { LayoutMeasurementController, View as GuiView, createStyledContext, getVariableValue, registerLayoutNode, styled } from "@hanzogui/core";
|
|
5
|
+
import { FloatingOverrideContext } from "@hanzogui/floating";
|
|
6
|
+
import { arrow, flip, getOverflowAncestors, offset as offsetFn, platform, shift, size as sizeMiddleware, useFloating } from "@hanzogui/floating";
|
|
7
|
+
import { getSpace } from "@hanzogui/get-token";
|
|
8
|
+
import { YStack } from "@hanzogui/stacks";
|
|
9
|
+
import { startTransition } from "@hanzogui/start-transition";
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
12
|
const PopperContextFast = createStyledContext(
|
|
@@ -268,7 +268,7 @@ const PopperAnchor = YStack.styleable(function (props, forwardedRef) {
|
|
|
268
268
|
composedRefs = useComposedRefs(forwardedRef, ref,
|
|
269
269
|
// web handles this onMouseEnter below so it can support multiple targets + hovering
|
|
270
270
|
shouldHandleInHover ? void 0 : safeSetReference);
|
|
271
|
-
return /* @__PURE__ */jsx(
|
|
271
|
+
return /* @__PURE__ */jsx(GuiView, {
|
|
272
272
|
...rest,
|
|
273
273
|
...refProps,
|
|
274
274
|
ref: composedRefs,
|
|
@@ -399,7 +399,7 @@ const PopperAnchor = YStack.styleable(function (props, forwardedRef) {
|
|
|
399
399
|
} : void 0;
|
|
400
400
|
return /* @__PURE__ */jsx(LayoutMeasurementController, {
|
|
401
401
|
disable: !context.open,
|
|
402
|
-
children: /* @__PURE__ */jsx(
|
|
402
|
+
children: /* @__PURE__ */jsx(GuiView, {
|
|
403
403
|
passThrough,
|
|
404
404
|
ref: contentRefs,
|
|
405
405
|
direction: rest.direction,
|
|
@@ -52,14 +52,14 @@ __export(Popper_exports, {
|
|
|
52
52
|
module.exports = __toCommonJS(Popper_exports);
|
|
53
53
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
54
54
|
import_react_dom = require("react-dom"),
|
|
55
|
-
import_gui_compose_refs = require("@
|
|
56
|
-
import_gui_constants = require("@
|
|
57
|
-
import_gui_core = require("@
|
|
58
|
-
import_gui_floating = require("@
|
|
59
|
-
import_gui_floating2 = require("@
|
|
60
|
-
import_gui_get_token = require("@
|
|
61
|
-
import_gui_stacks = require("@
|
|
62
|
-
import_gui_start_transition = require("@
|
|
55
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
56
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
57
|
+
import_gui_core = require("@hanzogui/core"),
|
|
58
|
+
import_gui_floating = require("@hanzogui/floating"),
|
|
59
|
+
import_gui_floating2 = require("@hanzogui/floating"),
|
|
60
|
+
import_gui_get_token = require("@hanzogui/get-token"),
|
|
61
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
62
|
+
import_gui_start_transition = require("@hanzogui/start-transition"),
|
|
63
63
|
React = __toESM(require("react"), 1),
|
|
64
64
|
import_react_native = require("react-native");
|
|
65
65
|
function _instanceof(left, right) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/popper",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
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
|
},
|