tamagui 1.123.1 → 1.123.3

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.
@@ -13381,8 +13381,8 @@ var require_addNativeValidStyles_native = __commonJS({
13381
13381
  module2.exports = __toCommonJS2(addNativeValidStyles_native_exports);
13382
13382
  var import_helpers = require_index_native7();
13383
13383
  function getReactNativeVersion() {
13384
- var version = process.env.REACT_NATIVE_VERSION;
13385
- if (!version) try {
13384
+ var version = process.env.REACT_NATIVE_VERSION || "";
13385
+ if (!process.env.REACT_NATIVE_VERSION) try {
13386
13386
  var ReactNativeOfficalVersion = require("react-native/Libraries/Core/ReactNativeVersion");
13387
13387
  if (ReactNativeOfficalVersion) {
13388
13388
  var { version: { major, minor, patch } } = ReactNativeOfficalVersion;
@@ -16225,7 +16225,7 @@ var require_Adapt_native = __commonJS({
16225
16225
  var Component = context == null ? void 0 : context.Contents;
16226
16226
  output = children(Component ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Component, {}) : null);
16227
16227
  } else output = children;
16228
- return (0, import_react3.useEffect)(function() {
16228
+ return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
16229
16229
  typeof children == "function" && output !== void 0 && (context == null || context.setChildren(output));
16230
16230
  }, [
16231
16231
  output
@@ -17795,7 +17795,10 @@ var require_SheetImplementationCustom_native = __commonJS({
17795
17795
  var adaptContext = (0, import_adapt.useAdaptContext)();
17796
17796
  contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.ProvideAdaptContext, {
17797
17797
  ...adaptContext,
17798
- children: contents
17798
+ children: (
17799
+ /* @ts-ignore */
17800
+ contents
17801
+ )
17799
17802
  });
17800
17803
  }
17801
17804
  var shouldMountChildren = unmountChildrenWhenHidden ? !!opacity : !0;
@@ -24505,7 +24508,7 @@ var require_Popper_native = __commonJS({
24505
24508
  unstyled: process.env.TAMAGUI_HEADLESS === "1"
24506
24509
  }
24507
24510
  }), PopperContent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
24508
- var { __scopePopper, enableAnimationForPositionChange, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size: size4, update, floatingStyles, hasFloating } = usePopperContext(__scopePopper), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), contents = React4.useMemo(function() {
24511
+ var { __scopePopper, enableAnimationForPositionChange, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size: size4 } = usePopperContext(__scopePopper), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), contents = React4.useMemo(function() {
24509
24512
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperContentFrame, {
24510
24513
  "data-placement": placement,
24511
24514
  "data-strategy": strategy,
@@ -24921,16 +24924,20 @@ var require_Popover_native = __commonJS({
24921
24924
  ...props.popperContext,
24922
24925
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContext.Provider, {
24923
24926
  ...props.context,
24924
- children: props.children
24927
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.ProvideAdaptContext, {
24928
+ ...props.adaptContext,
24929
+ children: props.children
24930
+ })
24925
24931
  })
24926
24932
  });
24927
24933
  }
24928
24934
  function PopoverContentPortal(props) {
24929
- var { __scopePopover } = props, _props_zIndex, zIndex = (_props_zIndex = props.zIndex) !== null && _props_zIndex !== void 0 ? _props_zIndex : 15e4, context = usePopoverContext(__scopePopover), popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), themeName = (0, import_core12.useThemeName)(), contents = props.children;
24935
+ var { __scopePopover } = props, _props_zIndex, zIndex = (_props_zIndex = props.zIndex) !== null && _props_zIndex !== void 0 ? _props_zIndex : 15e4, context = usePopoverContext(__scopePopover), popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), themeName = (0, import_core12.useThemeName)(), adaptContext = (0, import_adapt.useAdaptContext)(), contents = props.children;
24930
24936
  return (import_react_native4.Platform.OS === "android" || import_react_native4.Platform.OS === "ios") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverRepropagateContext, {
24931
24937
  scope: __scopePopover || POPOVER_SCOPE,
24932
24938
  popperContext,
24933
24939
  context,
24940
+ adaptContext,
24934
24941
  children: props.children
24935
24942
  })), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
24936
24943
  zIndex,
@@ -24956,19 +24963,19 @@ var require_Popover_native = __commonJS({
24956
24963
  setIsFullyHidden == null || setIsFullyHidden(!0);
24957
24964
  }, [
24958
24965
  setIsFullyHidden
24959
- ]);
24966
+ ]), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.ResetPresence, {
24967
+ children
24968
+ });
24960
24969
  if (context.breakpointActive) {
24961
24970
  var childrenWithoutScrollView = React4.Children.toArray(children).map(function(child) {
24962
24971
  return /* @__PURE__ */ React4.isValidElement(child) && child.type === import_react_native4.ScrollView ? child.props.children : child;
24963
- }), content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.ResetPresence, {
24964
- children: childrenWithoutScrollView
24965
24972
  });
24966
- return (import_react_native4.Platform.OS === "android" || import_react_native4.Platform.OS === "ios") && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperContext.Provider, {
24967
- scope: __scopePopover || POPOVER_SCOPE,
24968
- ...popperContext,
24969
- children: childrenWithoutScrollView
24970
- })), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
24971
- children: content
24973
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
24974
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperContext.Provider, {
24975
+ scope: __scopePopover || POPOVER_SCOPE,
24976
+ ...popperContext,
24977
+ children: childrenWithoutScrollView
24978
+ })
24972
24979
  });
24973
24980
  }
24974
24981
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate.Animate, {
@@ -24982,31 +24989,10 @@ var require_Popover_native = __commonJS({
24982
24989
  id: context.contentId,
24983
24990
  ref: forwardedRef,
24984
24991
  ...contentProps,
24985
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_remove_scroll.RemoveScroll, {
24986
- enabled: disableRemoveScroll ? !1 : open,
24987
- allowPinchZoom: !0,
24988
- // causes lots of bugs on touch web on site
24989
- removeScrollBar: !1,
24990
- style: dspContentsStyle,
24991
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.ResetPresence, {
24992
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_focus_scope.FocusScope, {
24993
- loop: !0,
24994
- enabled: disableFocusScope ? !1 : open,
24995
- trapped: trapFocus,
24996
- onMountAutoFocus: onOpenAutoFocus,
24997
- onUnmountAutoFocus: onCloseAutoFocus,
24998
- children: import_constants4.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
24999
- style: dspContentsStyle,
25000
- children
25001
- }) : children
25002
- })
25003
- })
25004
- })
24992
+ children: contents
25005
24993
  }, context.contentId)
25006
24994
  });
25007
- }), dspContentsStyle = {
25008
- display: "contents"
25009
- }, PopoverClose = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
24995
+ }), PopoverClose = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
25010
24996
  var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
25011
24997
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_stacks3.YStack, {
25012
24998
  ...rest,