tamagui 1.125.0 → 1.125.2
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 +69 -79
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +68 -78
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -3045,7 +3045,7 @@ var require_useMedia_native = __commonJS({
|
|
|
3045
3045
|
currentKeys.size && update();
|
|
3046
3046
|
}), dispose2 = subscribe(update);
|
|
3047
3047
|
return function() {
|
|
3048
|
-
dispose2(), clearTimeout(tm);
|
|
3048
|
+
dispose2(), tm && clearTimeout(tm);
|
|
3049
3049
|
};
|
|
3050
3050
|
}, [
|
|
3051
3051
|
setState
|
|
@@ -6770,7 +6770,8 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6770
6770
|
var import_react3 = require("react"), callImmediate = function(cb) {
|
|
6771
6771
|
return cb();
|
|
6772
6772
|
};
|
|
6773
|
-
function createShallowSetState(setter, onlyAllow, transition,
|
|
6773
|
+
function createShallowSetState(setter, onlyAllow, transition, debugIn, callback) {
|
|
6774
|
+
var debug = !0;
|
|
6774
6775
|
return (0, import_react3.useCallback)(function(next) {
|
|
6775
6776
|
var wrap = transition ? import_react3.startTransition : callImmediate;
|
|
6776
6777
|
wrap(function() {
|
|
@@ -6783,7 +6784,8 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6783
6784
|
setter,
|
|
6784
6785
|
onlyAllow ? onlyAllow.join("") : "",
|
|
6785
6786
|
transition,
|
|
6786
|
-
debug
|
|
6787
|
+
debug,
|
|
6788
|
+
callback
|
|
6787
6789
|
]);
|
|
6788
6790
|
}
|
|
6789
6791
|
function mergeIfNotShallowEqual(prev, next, onlyAllow, debug) {
|
|
@@ -6848,7 +6850,7 @@ var require_subscribeToContextGroup_native = __commonJS({
|
|
|
6848
6850
|
});
|
|
6849
6851
|
module2.exports = __toCommonJS2(subscribeToContextGroup_exports);
|
|
6850
6852
|
var import_createShallowSetState = require_createShallowSetState_native(), import_useMedia = require_useMedia_native(), subscribeToContextGroup = function(param) {
|
|
6851
|
-
var {
|
|
6853
|
+
var { setStateShallow, pseudoGroups, mediaGroups, componentContext, state } = param;
|
|
6852
6854
|
if (pseudoGroups || mediaGroups) {
|
|
6853
6855
|
var _componentContext_groups_subscribe, _componentContext_groups, current = {
|
|
6854
6856
|
pseudo: {},
|
|
@@ -7724,10 +7726,8 @@ var require_useComponentState_native = __commonJS({
|
|
|
7724
7726
|
import_constants4.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (state.disabled = disabled, disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), setState({
|
|
7725
7727
|
...state
|
|
7726
7728
|
}));
|
|
7727
|
-
var groupName = props.group, setStateWrapper
|
|
7728
|
-
|
|
7729
|
-
var groupContextState = groups.state;
|
|
7730
|
-
setStateWrapper = function(state2) {
|
|
7729
|
+
var groupName = props.group, groupContextState = groups == null ? void 0 : groups.state, setStateWrapper = (0, import_react3.useMemo)(function() {
|
|
7730
|
+
if (groupContextState && groupName) return function(state2) {
|
|
7731
7731
|
curStateRef.group.emit(groupName, {
|
|
7732
7732
|
pseudo: state2
|
|
7733
7733
|
});
|
|
@@ -7737,8 +7737,11 @@ var require_useComponentState_native = __commonJS({
|
|
|
7737
7737
|
};
|
|
7738
7738
|
groupContextState[groupName] = next;
|
|
7739
7739
|
};
|
|
7740
|
-
}
|
|
7741
|
-
|
|
7740
|
+
}, [
|
|
7741
|
+
groupContextState,
|
|
7742
|
+
curStateRef,
|
|
7743
|
+
groupName
|
|
7744
|
+
]), setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled ? [
|
|
7742
7745
|
"disabled"
|
|
7743
7746
|
] : void 0, !1, props.debug, setStateWrapper);
|
|
7744
7747
|
if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
@@ -8195,18 +8198,17 @@ var require_createComponent_native = __commonJS({
|
|
|
8195
8198
|
unmounted: !1
|
|
8196
8199
|
});
|
|
8197
8200
|
}), function() {
|
|
8198
|
-
|
|
8201
|
+
tm && clearTimeout(tm);
|
|
8199
8202
|
};
|
|
8200
|
-
var dispose = (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
8201
|
-
disabled,
|
|
8203
|
+
var dispose = pseudoGroups || mediaGroups ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
8202
8204
|
componentContext,
|
|
8203
8205
|
setStateShallow,
|
|
8204
8206
|
state,
|
|
8205
8207
|
mediaGroups,
|
|
8206
8208
|
pseudoGroups
|
|
8207
|
-
});
|
|
8209
|
+
}) : null;
|
|
8208
8210
|
return function() {
|
|
8209
|
-
clearTimeout(tm), dispose == null || dispose(), componentSetStates.delete(setState);
|
|
8211
|
+
tm && clearTimeout(tm), dispose == null || dispose(), componentSetStates.delete(setState);
|
|
8210
8212
|
};
|
|
8211
8213
|
}
|
|
8212
8214
|
}, [
|
|
@@ -9192,6 +9194,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
9192
9194
|
var import_constants4 = require_index_native6(), import_config = require_config_native(), import_createVariables = require_createVariables_native(), import_getThemeCSSRules = require_getThemeCSSRules_native(), import_insertStyleRule = require_insertStyleRule_native(), import_proxyThemeToParents = require_proxyThemeToParents_native(), import_registerCSSVariable = require_registerCSSVariable_native(), import_themes = require_themes_native(), import_useMedia = require_useMedia_native(), import_insertFont = require_insertFont_native(), import_Tamagui = require_Tamagui_native(), createdConfigs = /* @__PURE__ */ new WeakMap();
|
|
9193
9195
|
function createTamagui2(configIn) {
|
|
9194
9196
|
var _configIn_settings;
|
|
9197
|
+
if (globalThis.__tamaguiConfig) return console.warn("Warning: You somehow have duplicate Tamagui dependencies, this can cause issues. Tamagui is working around this by loading a previously loaded config in test mode. "), globalThis.__tamaguiConfig;
|
|
9195
9198
|
if (createdConfigs.has(configIn)) return configIn;
|
|
9196
9199
|
var tokensParsed = {}, tokens = (0, import_createVariables.createVariables)(configIn.tokens || {});
|
|
9197
9200
|
if (configIn.tokens) {
|
|
@@ -9337,7 +9340,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
9337
9340
|
specificTokens,
|
|
9338
9341
|
defaultFontToken
|
|
9339
9342
|
};
|
|
9340
|
-
if ((0, import_config.setConfig)(config), (0, import_useMedia.configureMedia)(config), createdConfigs.set(config, !0), import_config.configListeners.size && (import_config.configListeners.forEach(function(cb) {
|
|
9343
|
+
if ((0, import_config.setConfig)(config), (0, import_useMedia.configureMedia)(config), createdConfigs.set(config, !0), globalThis.__tamaguiConfig = config, import_config.configListeners.size && (import_config.configListeners.forEach(function(cb) {
|
|
9341
9344
|
return cb(config);
|
|
9342
9345
|
}), import_config.configListeners.clear()), !1)
|
|
9343
9346
|
var _process_env_DEBUG;
|
|
@@ -10314,7 +10317,6 @@ var require_useProps_native = __commonJS({
|
|
|
10314
10317
|
return;
|
|
10315
10318
|
}
|
|
10316
10319
|
return (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
10317
|
-
disabled,
|
|
10318
10320
|
componentContext,
|
|
10319
10321
|
setStateShallow,
|
|
10320
10322
|
state,
|
|
@@ -18234,7 +18236,7 @@ var require_createSheet_native = __commonJS({
|
|
|
18234
18236
|
}
|
|
18235
18237
|
});
|
|
18236
18238
|
module2.exports = __toCommonJS2(createSheet_exports);
|
|
18237
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_helpers = require_index_native7(),
|
|
18239
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_helpers = require_index_native7(), import_remove_scroll = require_index_native34(), import_use_did_finish_ssr = require_index_native11(), import_react3 = require("react"), import_react_native4 = require("react-native"), import_constants22 = require_constants_native4(), import_nativeSheet = require_nativeSheet_native(), import_SheetContext = require_SheetContext_native(), import_SheetImplementationCustom = require_SheetImplementationCustom_native(), import_SheetScrollView = require_SheetScrollView_native(), import_useSheetController = require_useSheetController_native(), import_useSheetOffscreenSize = require_useSheetOffscreenSize_native();
|
|
18238
18240
|
function createSheet(param) {
|
|
18239
18241
|
var { Handle, Frame, Overlay } = param, SheetHandle = Handle.styleable(function(param2, forwardedRef) {
|
|
18240
18242
|
var { __scopeSheet, ...props } = param2, context = (0, import_SheetContext.useSheetContext)(import_constants22.SHEET_HANDLE_NAME, __scopeSheet), composedRef = (0, import_compose_refs.useComposedRefs)(context.handleRef, forwardedRef);
|
|
@@ -18274,27 +18276,24 @@ var require_createSheet_native = __commonJS({
|
|
|
18274
18276
|
]), context.onlyShowFrame, null;
|
|
18275
18277
|
})), SheetFrame = Frame.extractable(/* @__PURE__ */ (0, import_react3.forwardRef)(function(param2, forwardedRef) {
|
|
18276
18278
|
var { __scopeSheet, adjustPaddingForOffscreenContent, disableHideBottomOverflow, children, ...props } = param2, context = (0, import_SheetContext.useSheetContext)(import_constants22.SHEET_NAME, __scopeSheet), { hasFit, removeScrollEnabled, frameSize, contentRef, open } = context, composedContentRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), offscreenSize = (0, import_useSheetOffscreenSize.useSheetOffscreenSize)(context), sheetContents = (0, import_react3.useMemo)(function() {
|
|
18277
|
-
return
|
|
18278
|
-
|
|
18279
|
-
|
|
18280
|
-
|
|
18281
|
-
|
|
18282
|
-
|
|
18283
|
-
|
|
18284
|
-
|
|
18285
|
-
|
|
18286
|
-
|
|
18287
|
-
|
|
18288
|
-
|
|
18289
|
-
|
|
18290
|
-
|
|
18291
|
-
|
|
18292
|
-
|
|
18293
|
-
|
|
18294
|
-
|
|
18295
|
-
})
|
|
18296
|
-
)
|
|
18297
|
-
});
|
|
18279
|
+
return (
|
|
18280
|
+
// @ts-ignore
|
|
18281
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Frame, {
|
|
18282
|
+
ref: composedContentRef,
|
|
18283
|
+
flex: hasFit ? 0 : 1,
|
|
18284
|
+
height: hasFit ? void 0 : frameSize,
|
|
18285
|
+
pointerEvents: open ? "auto" : "none",
|
|
18286
|
+
...props,
|
|
18287
|
+
children: [
|
|
18288
|
+
children,
|
|
18289
|
+
adjustPaddingForOffscreenContent && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
|
|
18290
|
+
"data-sheet-offscreen-pad": !0,
|
|
18291
|
+
height: offscreenSize,
|
|
18292
|
+
width: "100%"
|
|
18293
|
+
})
|
|
18294
|
+
]
|
|
18295
|
+
})
|
|
18296
|
+
);
|
|
18298
18297
|
}, [
|
|
18299
18298
|
open,
|
|
18300
18299
|
props,
|
|
@@ -18804,7 +18803,7 @@ var require_Dialog_native = __commonJS({
|
|
|
18804
18803
|
}
|
|
18805
18804
|
});
|
|
18806
18805
|
module2.exports = __toCommonJS2(Dialog_exports);
|
|
18807
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native31(), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_create_context = require_index_native30(), import_dismissable = require_index_native32(), import_focus_scope = require_index_native33(), import_helpers = require_index_native7(), import_portal2 = require_index_native28(), import_remove_scroll = require_index_native34(), import_sheet = require_index_native36(), import_stacks3 = require_index_native22(), import_text2 = require_index_native24(), import_use_controllable_state = require_index_native10(),
|
|
18806
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native29(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native31(), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_create_context = require_index_native30(), import_dismissable = require_index_native32(), import_focus_scope = require_index_native33(), import_helpers = require_index_native7(), import_portal2 = require_index_native28(), import_remove_scroll = require_index_native34(), import_sheet = require_index_native36(), import_stacks3 = require_index_native22(), import_text2 = require_index_native24(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), DIALOG_NAME = "Dialog", [createDialogContext, createDialogScope] = (0, import_create_context.createContextScope)(DIALOG_NAME), [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME), TRIGGER_NAME = "DialogTrigger", DialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
18808
18807
|
name: TRIGGER_NAME
|
|
18809
18808
|
}), DialogTrigger = DialogTriggerFrame.styleable(function(props, forwardedRef) {
|
|
18810
18809
|
var { __scopeDialog, ...triggerProps } = props, isInsideButton = React4.useContext(import_stacks3.ButtonNestingContext), context = useDialogContext(TRIGGER_NAME, __scopeDialog), composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
|
@@ -18831,6 +18830,7 @@ var require_Dialog_native = __commonJS({
|
|
|
18831
18830
|
alignItems: "center",
|
|
18832
18831
|
justifyContent: "center",
|
|
18833
18832
|
fullscreen: !0,
|
|
18833
|
+
zIndex: 1e5,
|
|
18834
18834
|
...import_constants4.isWeb && {
|
|
18835
18835
|
maxHeight: "100vh",
|
|
18836
18836
|
position: "fixed"
|
|
@@ -18865,12 +18865,9 @@ var require_Dialog_native = __commonJS({
|
|
|
18865
18865
|
setIsFullyHidden(!0);
|
|
18866
18866
|
}, []);
|
|
18867
18867
|
if (context.modal) {
|
|
18868
|
-
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
18869
|
-
|
|
18870
|
-
children:
|
|
18871
|
-
onExitComplete: handleExitComplete,
|
|
18872
|
-
children: isShowing || isAdapted ? children : null
|
|
18873
|
-
})
|
|
18868
|
+
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.AnimatePresence, {
|
|
18869
|
+
onExitComplete: handleExitComplete,
|
|
18870
|
+
children: isShowing || isAdapted ? children : null
|
|
18874
18871
|
});
|
|
18875
18872
|
if (isFullyHidden && !isAdapted) return null;
|
|
18876
18873
|
var framedContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PortalProvider2, {
|
|
@@ -18882,15 +18879,16 @@ var require_Dialog_native = __commonJS({
|
|
|
18882
18879
|
children: contents
|
|
18883
18880
|
})
|
|
18884
18881
|
});
|
|
18885
|
-
|
|
18886
|
-
|
|
18887
|
-
|
|
18888
|
-
|
|
18889
|
-
|
|
18890
|
-
|
|
18891
|
-
|
|
18892
|
-
})
|
|
18893
|
-
}
|
|
18882
|
+
if (import_constants4.isWeb) {
|
|
18883
|
+
var _props_zIndex;
|
|
18884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
18885
|
+
zIndex: (_props_zIndex = props.zIndex) !== null && _props_zIndex !== void 0 ? _props_zIndex : 1e5,
|
|
18886
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PassthroughTheme, {
|
|
18887
|
+
children: framedContents
|
|
18888
|
+
})
|
|
18889
|
+
});
|
|
18890
|
+
}
|
|
18891
|
+
return framedContents;
|
|
18894
18892
|
}
|
|
18895
18893
|
return children;
|
|
18896
18894
|
}, PassthroughTheme = function(param) {
|
|
@@ -18936,16 +18934,14 @@ var require_Dialog_native = __commonJS({
|
|
|
18936
18934
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
18937
18935
|
}
|
|
18938
18936
|
}), DialogContent = DialogContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(param, forwardedRef) {
|
|
18939
|
-
var { __scopeDialog, ...props } = param, portalContext = usePortalContext(CONTENT_NAME, __scopeDialog), { forceMount = portalContext.forceMount, ...contentProps } = props, context = useDialogContext(CONTENT_NAME, __scopeDialog), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18944
|
-
|
|
18945
|
-
|
|
18946
|
-
|
|
18947
|
-
ref: forwardedRef
|
|
18948
|
-
})
|
|
18937
|
+
var { __scopeDialog, ...props } = param, portalContext = usePortalContext(CONTENT_NAME, __scopeDialog), { forceMount = portalContext.forceMount, ...contentProps } = props, context = useDialogContext(CONTENT_NAME, __scopeDialog), contents = context.modal ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentModal, {
|
|
18938
|
+
context,
|
|
18939
|
+
...contentProps,
|
|
18940
|
+
ref: forwardedRef
|
|
18941
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentNonModal, {
|
|
18942
|
+
context,
|
|
18943
|
+
...contentProps,
|
|
18944
|
+
ref: forwardedRef
|
|
18949
18945
|
});
|
|
18950
18946
|
return !import_constants4.isWeb || context.disableRemoveScroll ? contents : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_remove_scroll.RemoveScroll, {
|
|
18951
18947
|
forwardProps: !0,
|
|
@@ -24874,7 +24870,7 @@ var require_Popover_native = __commonJS({
|
|
|
24874
24870
|
}
|
|
24875
24871
|
});
|
|
24876
24872
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
24877
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native29(), import_animate = require_index_native55(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native31(), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_floating = require_index_native56(), import_focus_scope = require_index_native33(), import_helpers = require_index_native7(), import_popper = require_index_native57(), import_portal2 = require_index_native28(), import_remove_scroll = require_index_native34(), import_sheet = require_index_native36(), import_stacks3 = require_index_native22(), import_use_controllable_state = require_index_native10(),
|
|
24873
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native29(), import_animate = require_index_native55(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native31(), import_compose_refs = require_index_native12(), import_constants4 = require_index_native6(), import_core12 = require_index_native18(), import_floating = require_index_native56(), import_focus_scope = require_index_native33(), import_helpers = require_index_native7(), import_popper = require_index_native57(), import_portal2 = require_index_native28(), import_remove_scroll = require_index_native34(), import_sheet = require_index_native36(), import_stacks3 = require_index_native22(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_useFloatingContext = require_useFloatingContext_native(), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core12.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
24878
24874
|
var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
24879
24875
|
return React4.useEffect(function() {
|
|
24880
24876
|
return onCustomAnchorAdd(), function() {
|
|
@@ -24930,20 +24926,18 @@ var require_Popover_native = __commonJS({
|
|
|
24930
24926
|
});
|
|
24931
24927
|
}), PopoverContent = import_popper.PopperContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
24932
24928
|
var { allowPinchZoom, trapFocus, disableRemoveScroll = !0, zIndex, __scopePopover, ...contentImplProps } = props, context = usePopoverContext(__scopePopover), contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isRightClickOutsideRef = React4.useRef(!1), [isFullyHidden, setIsFullyHidden] = React4.useState(!context.open);
|
|
24933
|
-
|
|
24929
|
+
return context.open && isFullyHidden && setIsFullyHidden(!1), React4.useEffect(function() {
|
|
24934
24930
|
if (context.open) {
|
|
24935
24931
|
var content = contentRef.current;
|
|
24936
24932
|
if (content) return (0, import_aria_hidden.hideOthers)(content);
|
|
24937
24933
|
}
|
|
24938
24934
|
}, [
|
|
24939
24935
|
context.open
|
|
24940
|
-
]), !context.keepChildrenMounted && isFullyHidden
|
|
24941
|
-
var _contentImplProps_pointerEvents;
|
|
24942
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentPortal, {
|
|
24936
|
+
]), !context.keepChildrenMounted && isFullyHidden ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentPortal, {
|
|
24943
24937
|
__scopePopover,
|
|
24944
|
-
zIndex,
|
|
24938
|
+
zIndex: props.zIndex,
|
|
24945
24939
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
|
|
24946
|
-
pointerEvents: context.open ?
|
|
24940
|
+
pointerEvents: context.open ? "auto" : "none",
|
|
24947
24941
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentImpl, {
|
|
24948
24942
|
...contentImplProps,
|
|
24949
24943
|
disableRemoveScroll,
|
|
@@ -24989,7 +24983,7 @@ var require_Popover_native = __commonJS({
|
|
|
24989
24983
|
});
|
|
24990
24984
|
}
|
|
24991
24985
|
function PopoverContentPortal(props) {
|
|
24992
|
-
var { __scopePopover } = props, zIndex = props.zIndex, context = usePopoverContext(__scopePopover), popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), themeName = (0, import_core12.useThemeName)(), adaptContext = (0, import_adapt.useAdaptContext)(), contents = props.children;
|
|
24986
|
+
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;
|
|
24993
24987
|
return (import_react_native4.Platform.OS === "android" || import_react_native4.Platform.OS === "ios") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverRepropagateContext, {
|
|
24994
24988
|
scope: __scopePopover || POPOVER_SCOPE,
|
|
24995
24989
|
popperContext,
|
|
@@ -24997,7 +24991,6 @@ var require_Popover_native = __commonJS({
|
|
|
24997
24991
|
adaptContext,
|
|
24998
24992
|
children: props.children
|
|
24999
24993
|
})), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
25000
|
-
stackZIndex: !0,
|
|
25001
24994
|
zIndex,
|
|
25002
24995
|
children: (
|
|
25003
24996
|
/* forceClassName avoids forced re-mount renders for some reason... see the HeadMenu as you change tints a few times */
|
|
@@ -25010,10 +25003,7 @@ var require_Popover_native = __commonJS({
|
|
|
25010
25003
|
fullscreen: !0,
|
|
25011
25004
|
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle)
|
|
25012
25005
|
}),
|
|
25013
|
-
|
|
25014
|
-
zIndex: (0, import_portal2.resolveViewZIndex)(zIndex),
|
|
25015
|
-
children: contents
|
|
25016
|
-
})
|
|
25006
|
+
contents
|
|
25017
25007
|
]
|
|
25018
25008
|
})
|
|
25019
25009
|
)
|