@tamagui/portal
Advanced tools
Comparing version 1.117.1 to 1.117.2
@@ -17,2 +17,3 @@ var __defProp = Object.defineProperty; | ||
__reExport(src_exports, require("./GorhomPortal"), module.exports); | ||
__reExport(src_exports, require("./constants"), module.exports); | ||
//# sourceMappingURL=index.js.map |
@@ -18,2 +18,3 @@ "use strict"; | ||
__reExport(src_exports, require("./GorhomPortal"), module.exports); | ||
__reExport(src_exports, require("./constants"), module.exports); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -23,4 +24,5 @@ 0 && (module.exports = { | ||
...require("./PortalProps"), | ||
...require("./GorhomPortal") | ||
...require("./GorhomPortal"), | ||
...require("./constants") | ||
}); | ||
//# sourceMappingURL=index.js.map |
@@ -29,5 +29,5 @@ "use strict"; | ||
module.exports = __toCommonJS(Portal_native_exports); | ||
var import_jsx_runtime = require("react/jsx-runtime"), import_stacks = require("@tamagui/stacks"), React = __toESM(require("react")), import_react_native = require("react-native"), import_GorhomPortal = require("./GorhomPortal"), import_useStackedZIndex = require("./useStackedZIndex"), _global, isFabric = (_global = global) === null || _global === void 0 ? void 0 : _global.nativeFabricUIManager, createPortal; | ||
isFabric ? createPortal = require("react-native/Libraries/Renderer/shims/ReactFabric").createPortal : createPortal = require("react-native/Libraries/Renderer/shims/ReactNative").createPortal; | ||
var Portal = function(propsIn) { | ||
var import_jsx_runtime = require("react/jsx-runtime"), import_stacks = require("@tamagui/stacks"), React = __toESM(require("react")), import_react_native = require("react-native"), import_constants = require("./constants"), import_GorhomPortal = require("./GorhomPortal"), import_useStackedZIndex = require("./useStackedZIndex"), createPortal = function() { | ||
return import_constants.IS_FABRIC ? require("react-native/Libraries/Renderer/shims/ReactFabric").createPortal : require("react-native/Libraries/Renderer/shims/ReactNative").createPortal; | ||
}(), Portal = function(propsIn) { | ||
var { stackZIndex, ...props } = propsIn, rootTag = React.useContext(import_react_native.RootTagContext), zIndex = (0, import_useStackedZIndex.useStackedZIndex)(propsIn), contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stacks.YStack, { | ||
@@ -41,3 +41,3 @@ pointerEvents: "box-none", | ||
}); | ||
return process.env.TAMAGUI_USE_NATIVE_PORTAL === "false" || import_react_native.Platform.OS === "android" || !rootTag ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GorhomPortal.PortalItem, { | ||
return !import_constants.USE_NATIVE_PORTAL || !rootTag ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GorhomPortal.PortalItem, { | ||
hostName: "root", | ||
@@ -44,0 +44,0 @@ children: contents |
export * from "./Portal"; | ||
export * from "./PortalProps"; | ||
export * from "./GorhomPortal"; | ||
export * from "./constants"; | ||
//# sourceMappingURL=index.js.map |
export * from "./Portal"; | ||
export * from "./PortalProps"; | ||
export * from "./GorhomPortal"; | ||
export * from "./constants"; | ||
//# sourceMappingURL=index.js.map |
import { jsx as _jsx } from "react/jsx-runtime"; | ||
import { YStack } from "@tamagui/stacks"; | ||
import * as React from "react"; | ||
import { Platform, RootTagContext } from "react-native"; | ||
import { RootTagContext } from "react-native"; | ||
import { IS_FABRIC, USE_NATIVE_PORTAL } from "./constants"; | ||
import { PortalItem } from "./GorhomPortal"; | ||
import { useStackedZIndex } from "./useStackedZIndex"; | ||
var _global, isFabric = (_global = global) === null || _global === void 0 ? void 0 : _global.nativeFabricUIManager, createPortal; | ||
isFabric ? createPortal = require("react-native/Libraries/Renderer/shims/ReactFabric").createPortal : createPortal = require("react-native/Libraries/Renderer/shims/ReactNative").createPortal; | ||
var Portal = function(propsIn) { | ||
var createPortal = function() { | ||
return IS_FABRIC ? require("react-native/Libraries/Renderer/shims/ReactFabric").createPortal : require("react-native/Libraries/Renderer/shims/ReactNative").createPortal; | ||
}(), Portal = function(propsIn) { | ||
var { stackZIndex, ...props } = propsIn, rootTag = React.useContext(RootTagContext), zIndex = useStackedZIndex(propsIn), contents = /* @__PURE__ */ _jsx(YStack, { | ||
@@ -18,3 +19,3 @@ pointerEvents: "box-none", | ||
}); | ||
return process.env.TAMAGUI_USE_NATIVE_PORTAL === "false" || Platform.OS === "android" || !rootTag ? /* @__PURE__ */ _jsx(PortalItem, { | ||
return !USE_NATIVE_PORTAL || !rootTag ? /* @__PURE__ */ _jsx(PortalItem, { | ||
hostName: "root", | ||
@@ -21,0 +22,0 @@ children: contents |
{ | ||
"name": "@tamagui/portal", | ||
"version": "1.117.1", | ||
"version": "1.117.2", | ||
"source": "src/index.ts", | ||
@@ -35,11 +35,11 @@ "types": "./types/index.d.ts", | ||
"dependencies": { | ||
"@tamagui/constants": "1.117.1", | ||
"@tamagui/core": "1.117.1", | ||
"@tamagui/stacks": "1.117.1", | ||
"@tamagui/start-transition": "1.117.1", | ||
"@tamagui/use-did-finish-ssr": "1.117.1", | ||
"@tamagui/use-event": "1.117.1" | ||
"@tamagui/constants": "1.117.2", | ||
"@tamagui/core": "1.117.2", | ||
"@tamagui/stacks": "1.117.2", | ||
"@tamagui/start-transition": "1.117.2", | ||
"@tamagui/use-did-finish-ssr": "1.117.2", | ||
"@tamagui/use-event": "1.117.2" | ||
}, | ||
"devDependencies": { | ||
"@tamagui/build": "1.117.1", | ||
"@tamagui/build": "1.117.2", | ||
"react-native": "0.74.1" | ||
@@ -46,0 +46,0 @@ }, |
export * from './Portal' | ||
export * from './PortalProps' | ||
export * from './GorhomPortal' | ||
export * from './constants' |
export * from './Portal'; | ||
export * from './PortalProps'; | ||
export * from './GorhomPortal'; | ||
export * from './constants'; | ||
//# sourceMappingURL=index.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152578
89
2684
7
32
+ Added@tamagui/compose-refs@1.117.2(transitive)
+ Added@tamagui/constants@1.117.2(transitive)
+ Added@tamagui/core@1.117.2(transitive)
+ Added@tamagui/helpers@1.117.2(transitive)
+ Added@tamagui/normalize-css-color@1.117.2(transitive)
+ Added@tamagui/react-native-use-pressable@1.117.2(transitive)
+ Added@tamagui/react-native-use-responder-events@1.117.2(transitive)
+ Added@tamagui/simple-hash@1.117.2(transitive)
+ Added@tamagui/stacks@1.117.2(transitive)
+ Added@tamagui/start-transition@1.117.2(transitive)
+ Added@tamagui/timer@1.117.2(transitive)
+ Added@tamagui/types@1.117.2(transitive)
+ Added@tamagui/use-did-finish-ssr@1.117.2(transitive)
+ Added@tamagui/use-event@1.117.2(transitive)
+ Added@tamagui/use-force-update@1.117.2(transitive)
+ Added@tamagui/web@1.117.2(transitive)
- Removed@tamagui/compose-refs@1.117.1(transitive)
- Removed@tamagui/constants@1.117.1(transitive)
- Removed@tamagui/core@1.117.1(transitive)
- Removed@tamagui/helpers@1.117.1(transitive)
- Removed@tamagui/normalize-css-color@1.117.1(transitive)
- Removed@tamagui/react-native-use-pressable@1.117.1(transitive)
- Removed@tamagui/react-native-use-responder-events@1.117.1(transitive)
- Removed@tamagui/simple-hash@1.117.1(transitive)
- Removed@tamagui/stacks@1.117.1(transitive)
- Removed@tamagui/start-transition@1.117.1(transitive)
- Removed@tamagui/timer@1.117.1(transitive)
- Removed@tamagui/types@1.117.1(transitive)
- Removed@tamagui/use-did-finish-ssr@1.117.1(transitive)
- Removed@tamagui/use-event@1.117.1(transitive)
- Removed@tamagui/use-force-update@1.117.1(transitive)
- Removed@tamagui/web@1.117.1(transitive)
Updated@tamagui/constants@1.117.2
Updated@tamagui/core@1.117.2
Updated@tamagui/stacks@1.117.2
Updated@tamagui/use-event@1.117.2