@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.
@@ -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("@hanzo/gui-compose-refs"),
53
- import_gui_constants = require("@hanzo/gui-constants"),
54
- import_gui_core = require("@hanzo/gui-core"),
55
- import_gui_floating = require("@hanzo/gui-floating"),
56
- import_gui_floating2 = require("@hanzo/gui-floating"),
57
- import_gui_get_token = require("@hanzo/gui-get-token"),
58
- import_gui_stacks = require("@hanzo/gui-stacks"),
59
- import_gui_start_transition = require("@hanzo/gui-start-transition"),
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("@hanzo/gui-compose-refs"),
56
- import_gui_constants = require("@hanzo/gui-constants"),
57
- import_gui_core = require("@hanzo/gui-core"),
58
- import_gui_floating = require("@hanzo/gui-floating"),
59
- import_gui_floating2 = require("@hanzo/gui-floating"),
60
- import_gui_get_token = require("@hanzo/gui-get-token"),
61
- import_gui_stacks = require("@hanzo/gui-stacks"),
62
- import_gui_start_transition = require("@hanzo/gui-start-transition"),
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) {
@@ -1,12 +1,12 @@
1
1
  import { flushSync } from "react-dom";
2
- import { useComposedRefs } from "@hanzo/gui-compose-refs";
3
- import { isWeb, useIsomorphicLayoutEffect } from "@hanzo/gui-constants";
4
- import { LayoutMeasurementController, View as TamaguiView, createStyledContext, getVariableValue, registerLayoutNode, styled } from "@hanzo/gui-core";
5
- import { FloatingOverrideContext } from "@hanzo/gui-floating";
6
- import { arrow, flip, getOverflowAncestors, offset as offsetFn, platform, shift, size as sizeMiddleware, useFloating } from "@hanzo/gui-floating";
7
- import { getSpace } from "@hanzo/gui-get-token";
8
- import { YStack } from "@hanzo/gui-stacks";
9
- import { startTransition } from "@hanzo/gui-start-transition";
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(TamaguiView, {
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(TamaguiView, {
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 "@hanzo/gui-compose-refs";
4
- import { isWeb, useIsomorphicLayoutEffect } from "@hanzo/gui-constants";
5
- import { LayoutMeasurementController, View as TamaguiView, createStyledContext, getVariableValue, registerLayoutNode, styled } from "@hanzo/gui-core";
6
- import { FloatingOverrideContext } from "@hanzo/gui-floating";
7
- import { arrow, flip, getOverflowAncestors, offset as offsetFn, platform, shift, useFloating } from "@hanzo/gui-floating";
8
- import { getSpace } from "@hanzo/gui-get-token";
9
- import { YStack } from "@hanzo/gui-stacks";
10
- import { startTransition } from "@hanzo/gui-start-transition";
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(TamaguiView, {
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(TamaguiView, {
436
+ children: /* @__PURE__ */_jsx(GuiView, {
437
437
  passThrough,
438
438
  ref: contentRefs,
439
439
  direction: rest.direction,
@@ -1,12 +1,12 @@
1
1
  import { flushSync } from "react-dom";
2
- import { useComposedRefs } from "@hanzo/gui-compose-refs";
3
- import { isWeb, useIsomorphicLayoutEffect } from "@hanzo/gui-constants";
4
- import { LayoutMeasurementController, View as TamaguiView, createStyledContext, getVariableValue, registerLayoutNode, styled } from "@hanzo/gui-core";
5
- import { FloatingOverrideContext } from "@hanzo/gui-floating";
6
- import { arrow, flip, getOverflowAncestors, offset as offsetFn, platform, shift, size as sizeMiddleware, useFloating } from "@hanzo/gui-floating";
7
- import { getSpace } from "@hanzo/gui-get-token";
8
- import { YStack } from "@hanzo/gui-stacks";
9
- import { startTransition } from "@hanzo/gui-start-transition";
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(TamaguiView, {
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(TamaguiView, {
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("@hanzo/gui-compose-refs"),
56
- import_gui_constants = require("@hanzo/gui-constants"),
57
- import_gui_core = require("@hanzo/gui-core"),
58
- import_gui_floating = require("@hanzo/gui-floating"),
59
- import_gui_floating2 = require("@hanzo/gui-floating"),
60
- import_gui_get_token = require("@hanzo/gui-get-token"),
61
- import_gui_stacks = require("@hanzo/gui-stacks"),
62
- import_gui_start_transition = require("@hanzo/gui-start-transition"),
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.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.0-rc.29",
40
- "@hanzogui/constants": "2.0.0-rc.29",
41
- "@hanzogui/core": "2.0.0-rc.29",
42
- "@hanzogui/floating": "2.0.0-rc.29",
43
- "@hanzogui/get-token": "2.0.0-rc.29",
44
- "@hanzogui/stacks": "2.0.0",
45
- "@hanzogui/start-transition": "2.0.0-rc.29",
46
- "@hanzogui/use-controllable-state": "2.0.0-rc.29"
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.0-rc.29",
49
+ "@hanzogui/build": "2.0.1",
50
50
  "react": ">=19",
51
51
  "react-native": "0.83.2"
52
52
  },