tamagui 1.125.30 → 1.125.31

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/native.js CHANGED
@@ -13338,7 +13338,7 @@ var require_getBaseViews_native = __commonJS({
13338
13338
  if (process.env.NODE_ENV !== "test") {
13339
13339
  View2 = require("react-native/Libraries/Components/View/ViewNativeComponent").default;
13340
13340
  var TextAncestorModule = require("react-native/Libraries/Text/TextAncestor"), _TextAncestorModule_default;
13341
- TextAncestor = (_TextAncestorModule_default = TextAncestorModule.default) !== null && _TextAncestorModule_default !== void 0 ? _TextAncestorModule_default : TextAncestor;
13341
+ TextAncestor = (_TextAncestorModule_default = TextAncestorModule.default) !== null && _TextAncestorModule_default !== void 0 ? _TextAncestorModule_default : TextAncestorModule;
13342
13342
  }
13343
13343
  return View2 || (View2 = native.View || native.default.View), {
13344
13344
  View: View2,
@@ -15977,20 +15977,20 @@ var require_useStackedZIndex_native = __commonJS({
15977
15977
  });
15978
15978
  module2.exports = __toCommonJS2(useStackedZIndex_exports);
15979
15979
  var import_react3 = require("react"), import_context = require_context_native(), ZIndicesByContext = {}, useStackedZIndex = function(props) {
15980
- var _ZIndicesByContext, _stackingContextLevel, { stackZIndex, zIndex: zIndexProp } = props, id = (0, import_react3.useId)(), stackingContextLevel = (0, import_react3.useContext)(import_context.ZIndexStackContext), hardcoded = (0, import_react3.useContext)(import_context.ZIndexHardcodedContext);
15981
- (_ZIndicesByContext = ZIndicesByContext)[_stackingContextLevel = stackingContextLevel] || (_ZIndicesByContext[_stackingContextLevel] = {});
15982
- var stackContext = ZIndicesByContext[stackingContextLevel], zIndex = (0, import_react3.useMemo)(function() {
15980
+ var _ZIndicesByContext, _stackLayer, { stackZIndex, zIndex: zIndexProp } = props, id = (0, import_react3.useId)(), stackingContextLevel = (0, import_react3.useContext)(import_context.ZIndexStackContext), stackLayer = stackZIndex === "global" ? 0 : stackingContextLevel, hardcoded = (0, import_react3.useContext)(import_context.ZIndexHardcodedContext);
15981
+ (_ZIndicesByContext = ZIndicesByContext)[_stackLayer = stackLayer] || (_ZIndicesByContext[_stackLayer] = {});
15982
+ var stackContext = ZIndicesByContext[stackLayer], zIndex = (0, import_react3.useMemo)(function() {
15983
15983
  if (typeof zIndexProp == "number") return zIndexProp;
15984
15984
  if (stackZIndex) {
15985
15985
  if (hardcoded) return hardcoded + 1;
15986
15986
  var highest = Object.values(stackContext).reduce(function(acc, cur) {
15987
15987
  return Math.max(acc, cur);
15988
- }, 0), found = stackingContextLevel * 5e3 + highest + 1;
15988
+ }, 0), found = stackLayer * 5e3 + highest + 1;
15989
15989
  return typeof stackZIndex == "number" ? stackZIndex + found : found;
15990
15990
  }
15991
15991
  return 1;
15992
15992
  }, [
15993
- stackingContextLevel,
15993
+ stackLayer,
15994
15994
  zIndexProp,
15995
15995
  stackZIndex
15996
15996
  ]);
@@ -16570,13 +16570,13 @@ var require_Portal_native = __commonJS({
16570
16570
  var import_jsx_runtime6 = require("react/jsx-runtime"), import_stacks3 = require_index_native22(), import_z_index_stack2 = require_index_native27(), React4 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_constants4 = require_constants_native3(), import_GorhomPortalItem = require_GorhomPortalItem_native(), import_helpers = require_helpers_native(), createPortal = function() {
16571
16571
  if (import_constants4.IS_FABRIC) try {
16572
16572
  var _ReactFabricShimModule_default, ReactFabricShimModule = require("react-native/Libraries/Renderer/shims/ReactFabric"), _ReactFabricShimModule_default_createPortal;
16573
- return (_ReactFabricShimModule_default_createPortal = (_ReactFabricShimModule_default = ReactFabricShimModule.default) === null || _ReactFabricShimModule_default === void 0 ? void 0 : _ReactFabricShimModule_default.createPortal) !== null && _ReactFabricShimModule_default_createPortal !== void 0 ? _ReactFabricShimModule_default_createPortal : ReactFabricShimModule.createPortal;
16573
+ return (_ReactFabricShimModule_default_createPortal = ReactFabricShimModule == null || (_ReactFabricShimModule_default = ReactFabricShimModule.default) === null || _ReactFabricShimModule_default === void 0 ? void 0 : _ReactFabricShimModule_default.createPortal) !== null && _ReactFabricShimModule_default_createPortal !== void 0 ? _ReactFabricShimModule_default_createPortal : ReactFabricShimModule.createPortal;
16574
16574
  } catch (err) {
16575
16575
  return console.info("Note: error importing portal, defaulting to non-native portals", err), null;
16576
16576
  }
16577
16577
  try {
16578
16578
  var _ReactNativeShimModule_default, ReactNativeShimModule = require("react-native/Libraries/Renderer/shims/ReactNative").createPortal, _ReactNativeShimModule_default_createPortal;
16579
- return (_ReactNativeShimModule_default_createPortal = (_ReactNativeShimModule_default = ReactNativeShimModule.default) === null || _ReactNativeShimModule_default === void 0 ? void 0 : _ReactNativeShimModule_default.createPortal) !== null && _ReactNativeShimModule_default_createPortal !== void 0 ? _ReactNativeShimModule_default_createPortal : ReactNativeShimModule.createPortal;
16579
+ return (_ReactNativeShimModule_default_createPortal = ReactNativeShimModule == null || (_ReactNativeShimModule_default = ReactNativeShimModule.default) === null || _ReactNativeShimModule_default === void 0 ? void 0 : _ReactNativeShimModule_default.createPortal) !== null && _ReactNativeShimModule_default_createPortal !== void 0 ? _ReactNativeShimModule_default_createPortal : ReactNativeShimModule.createPortal;
16580
16580
  } catch (err) {
16581
16581
  return console.info("Note: error importing portal, defaulting to non-native portals", err), null;
16582
16582
  }