tamagui 1.116.7 → 1.116.9
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 +45 -45
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +17 -21
- package/dist/test.native.js.map +1 -1
- package/package.json +54 -54
package/dist/native.js
CHANGED
|
@@ -3896,7 +3896,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
3896
3896
|
}
|
|
3897
3897
|
function getIsInversed(manager) {
|
|
3898
3898
|
for (var isInversed = !1, cur = manager; cur; ) {
|
|
3899
|
-
if (!cur.parentManager) return
|
|
3899
|
+
if (!cur.parentManager) return isInversed;
|
|
3900
3900
|
cur.parentManager.state.scheme !== cur.state.scheme && (isInversed = !isInversed), cur = cur.parentManager;
|
|
3901
3901
|
}
|
|
3902
3902
|
return !1;
|
|
@@ -7286,7 +7286,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7286
7286
|
viewProps[key] = val;
|
|
7287
7287
|
}
|
|
7288
7288
|
}, keyInit = keyOg, valInit = props[keyInit];
|
|
7289
|
-
if (accept) {
|
|
7289
|
+
if (process.env.NODE_ENV === "development" && debug === "profile" && time`prop-${keyInit}`, accept) {
|
|
7290
7290
|
var accepted = accept[keyInit];
|
|
7291
7291
|
if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") {
|
|
7292
7292
|
viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass);
|
|
@@ -7392,6 +7392,7 @@ current`, {
|
|
|
7392
7392
|
}
|
|
7393
7393
|
}
|
|
7394
7394
|
}
|
|
7395
|
+
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
|
|
7395
7396
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
7396
7397
|
if (!avoidNormalize) {
|
|
7397
7398
|
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.flatTransforms) {
|
|
@@ -7455,6 +7456,7 @@ current`, {
|
|
|
7455
7456
|
}
|
|
7456
7457
|
process.env.NODE_ENV === "development" && debug && debug !== "profile" && (0, import_log.log)(`Found fontFamily native: ${style1.fontFamily}`, faceInfo);
|
|
7457
7458
|
}
|
|
7459
|
+
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-pre-result`;
|
|
7458
7460
|
var result = {
|
|
7459
7461
|
space,
|
|
7460
7462
|
hasMedia,
|
|
@@ -7502,7 +7504,7 @@ current`, {
|
|
|
7502
7504
|
}
|
|
7503
7505
|
console.groupEnd();
|
|
7504
7506
|
}
|
|
7505
|
-
return result;
|
|
7507
|
+
return process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-done`, result;
|
|
7506
7508
|
};
|
|
7507
7509
|
function mergeClassName(transforms, classNames, key, val) {
|
|
7508
7510
|
var isMediaOrPseudo = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, isInsertingNow = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !1;
|
|
@@ -8514,7 +8516,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8514
8516
|
}
|
|
8515
8517
|
});
|
|
8516
8518
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8517
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_wrapStyleTags = require_wrapStyleTags_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), tamaguiConfig,
|
|
8519
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_wrapStyleTags = require_wrapStyleTags_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), tamaguiConfig, time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
|
|
8518
8520
|
typeof document < "u" && (cancelTouches = function() {
|
|
8519
8521
|
componentSetStates.forEach(function(setState) {
|
|
8520
8522
|
return setState(function(prev) {
|
|
@@ -8592,7 +8594,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8592
8594
|
}
|
|
8593
8595
|
var componentContext = import_react3.default.useContext(import_ComponentContext.ComponentContext), styledContextProps, overriddenContextProps, contextValue, { context, isReactNative } = staticConfig;
|
|
8594
8596
|
if (context && (contextValue = import_react3.default.useContext(context), contextValue)) {
|
|
8595
|
-
process.env.NODE_ENV === "development" && (
|
|
8597
|
+
process.env.NODE_ENV === "development" && (defaultProps == null ? void 0 : defaultProps.debug) === "verbose" && (0, import_log.log)(" \u{1F447} contextValue", contextValue);
|
|
8596
8598
|
for (var key in context.props) {
|
|
8597
8599
|
var propVal = propsIn[key];
|
|
8598
8600
|
if (propVal === void 0) {
|
|
@@ -8625,15 +8627,15 @@ var require_createComponent_native = __commonJS({
|
|
|
8625
8627
|
componentName2
|
|
8626
8628
|
]), !1)
|
|
8627
8629
|
var timer;
|
|
8628
|
-
process.env.NODE_ENV === "development" &&
|
|
8630
|
+
process.env.NODE_ENV === "development" && time2 && time2`start (ignore)`;
|
|
8629
8631
|
var animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, { curStateRef, disabled, groupName, hasAnimationProp, hasEnterStyle, isAnimated, isExiting, isHydrated, presence, presenceState, setState, setStateShallow, noClass, state, stateRef, supportsCSSVars, willBeAnimated, willBeAnimatedClient } = (0, import_useComponentState.useComponentState)(props, componentContext, staticConfig, config);
|
|
8630
|
-
process.env.NODE_ENV === "development" &&
|
|
8632
|
+
process.env.NODE_ENV === "development" && time2 && time2`use-state`;
|
|
8631
8633
|
var hasTextAncestor = !!(import_constants4.isWeb && isText && componentContext.inText);
|
|
8632
|
-
process.env.NODE_ENV === "development" &&
|
|
8634
|
+
process.env.NODE_ENV === "development" && time2 && time2`use-context`;
|
|
8633
8635
|
var isTaggable = !Component || typeof Component == "string", tagProp = props.tag, element = import_constants4.isWeb && isTaggable && tagProp || Component, BaseTextComponent = BaseText || element || "span", BaseViewComponent = BaseView || element || (hasTextAncestor ? "span" : "div"), elementType = isText ? BaseTextComponent : BaseViewComponent;
|
|
8634
8636
|
animationDriver && isAnimated && (elementType = animationDriver[isText ? "Text" : "View"] || elementType);
|
|
8635
8637
|
var disableThemeProp = !1, disableTheme = disableThemeProp || isHOC;
|
|
8636
|
-
process.env.NODE_ENV === "development" &&
|
|
8638
|
+
process.env.NODE_ENV === "development" && time2 && time2`theme-props`, props.themeShallow && (curStateRef.themeShallow = !0);
|
|
8637
8639
|
var themeStateProps = {
|
|
8638
8640
|
componentName: componentName2,
|
|
8639
8641
|
disable: disableTheme,
|
|
@@ -8670,13 +8672,13 @@ var require_createComponent_native = __commonJS({
|
|
|
8670
8672
|
}), console.groupEnd();
|
|
8671
8673
|
}
|
|
8672
8674
|
}
|
|
8673
|
-
process.env.NODE_ENV === "development" &&
|
|
8675
|
+
process.env.NODE_ENV === "development" && time2 && time2`pre-theme-media`;
|
|
8674
8676
|
var [themeState, theme] = (0, import_useTheme.useThemeWithState)(themeStateProps);
|
|
8675
8677
|
elementType = Component || elementType;
|
|
8676
8678
|
var isStringElement = typeof elementType == "string";
|
|
8677
|
-
process.env.NODE_ENV === "development" &&
|
|
8679
|
+
process.env.NODE_ENV === "development" && time2 && time2`theme`;
|
|
8678
8680
|
var mediaState3 = (0, import_useMedia.useMedia)(componentContext, debugProp);
|
|
8679
|
-
(0, import_createVariable.setDidGetVariableValue)(!1), process.env.NODE_ENV === "development" &&
|
|
8681
|
+
(0, import_createVariable.setDidGetVariableValue)(!1), process.env.NODE_ENV === "development" && time2 && time2`media`;
|
|
8680
8682
|
var resolveValues = (
|
|
8681
8683
|
// if HOC + mounted + has animation prop, resolve as value so it passes non-variable to child
|
|
8682
8684
|
isAnimated && !supportsCSSVars || isHOC && state.unmounted == !1 && hasAnimationProp ? "value" : "auto"
|
|
@@ -8688,12 +8690,14 @@ var require_createComponent_native = __commonJS({
|
|
|
8688
8690
|
isAnimated,
|
|
8689
8691
|
willBeAnimated,
|
|
8690
8692
|
styledContextProps
|
|
8691
|
-
},
|
|
8692
|
-
|
|
8693
|
+
}, themeName = (themeState == null || (_themeState_state = themeState.state) === null || _themeState_state === void 0 ? void 0 : _themeState_state.name) || "";
|
|
8694
|
+
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
8695
|
+
var splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, elementType, debugProp);
|
|
8696
|
+
if (process.env.NODE_ENV === "development" && time2 && time2`split-styles`, props.group && props.untilMeasured === "hide" && !curStateRef.hasMeasured) {
|
|
8693
8697
|
var _splitStyles;
|
|
8694
8698
|
(_splitStyles = splitStyles).style || (_splitStyles.style = {}), splitStyles.style.opacity = 0;
|
|
8695
8699
|
}
|
|
8696
|
-
|
|
8700
|
+
curStateRef.isListeningToTheme = splitStyles.dynamicThemeAccess;
|
|
8697
8701
|
var hasRuntimeMediaKeys = splitStyles.hasMedia && splitStyles.hasMedia !== !0, shouldListenForMedia = (0, import_createVariable.didGetVariableValue)() || hasRuntimeMediaKeys || noClass && splitStyles.hasMedia === !0, mediaListeningKeys = hasRuntimeMediaKeys ? splitStyles.hasMedia : null;
|
|
8698
8702
|
process.env.NODE_ENV === "development" && debugProp === "verbose" && console.info("useMedia() createComponent", shouldListenForMedia, mediaListeningKeys), (0, import_useMedia.setMediaShouldUpdate)(stateRef, shouldListenForMedia, mediaListeningKeys);
|
|
8699
8703
|
var { viewProps: viewPropsIn, pseudos, style: splitStylesStyle, classNames, space } = splitStyles, propsWithAnimation = props, {
|
|
@@ -8739,11 +8743,11 @@ var require_createComponent_native = __commonJS({
|
|
|
8739
8743
|
staticConfig,
|
|
8740
8744
|
stateRef
|
|
8741
8745
|
});
|
|
8742
|
-
(isAnimated || supportsCSSVars) && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)), process.env.NODE_ENV === "development" &&
|
|
8746
|
+
(isAnimated || supportsCSSVars) && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)), process.env.NODE_ENV === "development" && time2 && time2`animations`;
|
|
8743
8747
|
}
|
|
8744
8748
|
process.env.NODE_ENV === "development" && props.untilMeasured && !props.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
|
|
8745
8749
|
|
|
8746
|
-
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" &&
|
|
8750
|
+
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, groupName && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8747
8751
|
stateRef.current.group.emit(groupName, {
|
|
8748
8752
|
layout: e.nativeEvent.layout
|
|
8749
8753
|
}), !stateRef.current.hasMeasured && props.untilMeasured === "hide" && setState(function(prev) {
|
|
@@ -8756,7 +8760,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8756
8760
|
}, forwardedRef, import_setElementProps.setElementProps)), viewProps.ref = curStateRef.composedRef, process.env.NODE_ENV === "development" && !isReactNative && !isText && import_constants4.isWeb && !isHOC && import_react3.default.Children.toArray(props.children).forEach(function(item) {
|
|
8757
8761
|
typeof item == "string" && item !== `
|
|
8758
8762
|
` && console.error(`Unexpected text node: ${item}. A text node cannot be a child of a <View>.`);
|
|
8759
|
-
}), process.env.NODE_ENV === "development" &&
|
|
8763
|
+
}), process.env.NODE_ENV === "development" && time2 && time2`events-hooks`;
|
|
8760
8764
|
var { pseudoGroups, mediaGroups } = splitStyles, unPress = function() {
|
|
8761
8765
|
return setStateShallow({
|
|
8762
8766
|
press: !1,
|
|
@@ -8813,7 +8817,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8813
8817
|
]).join("") : 0
|
|
8814
8818
|
]);
|
|
8815
8819
|
var runtimePressStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.focusStyle), runtimeFocusVisibleStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.focusVisibleStyle), attachFocus = !!(runtimePressStyle || runtimeFocusStyle || runtimeFocusVisibleStyle || onFocus || onBlur), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick || pseudos != null && pseudos.focusVisibleStyle), runtimeHoverStyle = !disabled && noClass && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = !!(groupName || runtimeHoverStyle || onHoverIn || onHoverOut), attachHover = import_constants4.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), shouldAttach = !disabled && !props.asChild && !!(attachFocus || attachPress || attachHover || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle), needsPressState = !!(groupName || runtimePressStyle);
|
|
8816
|
-
process.env.NODE_ENV === "development" &&
|
|
8820
|
+
process.env.NODE_ENV === "development" && time2 && time2`events-setup`, process.env.NODE_ENV === "development" && debugProp === "verbose" && (0, import_log.log)("\u{1FAA9} events()", {
|
|
8817
8821
|
runtimeFocusStyle,
|
|
8818
8822
|
runtimePressStyle,
|
|
8819
8823
|
runtimeHoverStyle,
|
|
@@ -8885,13 +8889,13 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8885
8889
|
minPressDuration: 0
|
|
8886
8890
|
});
|
|
8887
8891
|
}
|
|
8888
|
-
process.env.NODE_ENV === "development" &&
|
|
8892
|
+
process.env.NODE_ENV === "development" && time2 && time2`events`, process.env.NODE_ENV === "development" && debugProp === "verbose" && (0, import_log.log)("events", {
|
|
8889
8893
|
events,
|
|
8890
8894
|
attachHover,
|
|
8891
8895
|
attachPress
|
|
8892
8896
|
}), (_hooks_useEvents = import_setupHooks.hooks.useEvents) === null || _hooks_useEvents === void 0 || _hooks_useEvents.call(import_setupHooks.hooks, viewProps, events, splitStyles, setStateShallow, staticConfig);
|
|
8893
8897
|
var direction = props.spaceDirection || "both";
|
|
8894
|
-
process.env.NODE_ENV === "development" &&
|
|
8898
|
+
process.env.NODE_ENV === "development" && time2 && time2`hooks`;
|
|
8895
8899
|
var content = !children || asChild ? children : spacedChildren2({
|
|
8896
8900
|
separator,
|
|
8897
8901
|
children,
|
|
@@ -8905,13 +8909,13 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8905
8909
|
onPress,
|
|
8906
8910
|
onLongPress
|
|
8907
8911
|
});
|
|
8908
|
-
process.env.NODE_ENV === "development" &&
|
|
8912
|
+
process.env.NODE_ENV === "development" && time2 && time2`spaced-as-child`;
|
|
8909
8913
|
var useChildrenResult;
|
|
8910
8914
|
import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(elementType, content, viewProps, events, staticConfig)), useChildrenResult ? content = useChildrenResult : content = /* @__PURE__ */ import_react3.default.createElement(elementType, viewProps, content);
|
|
8911
8915
|
var ResetPresence2 = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence;
|
|
8912
8916
|
ResetPresence2 && willBeAnimated && (hasEnterStyle || presenceState) && content && typeof content != "string" && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ResetPresence2, {
|
|
8913
8917
|
children: content
|
|
8914
|
-
})), process.env.NODE_ENV === "development" &&
|
|
8918
|
+
})), process.env.NODE_ENV === "development" && time2 && time2`create-element`;
|
|
8915
8919
|
var groupState = curStateRef.group, subGroupContext = import_react3.default.useMemo(function() {
|
|
8916
8920
|
var _splitStyles_style, _splitStyles_style1;
|
|
8917
8921
|
if (!(!groupState || !groupName)) return groupState.listeners.clear(), {
|
|
@@ -8939,7 +8943,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8939
8943
|
...componentContext,
|
|
8940
8944
|
groups: subGroupContext,
|
|
8941
8945
|
children: content
|
|
8942
|
-
})), process.env.NODE_ENV === "development" &&
|
|
8946
|
+
})), process.env.NODE_ENV === "development" && time2 && time2`group-context`, content = disableTheme ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), process.env.NODE_ENV === "development" && time2 && time2`themed-children`, process.env.NODE_ENV === "development" && props.debug === "visualize" && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeDebug.ThemeDebug, {
|
|
8943
8947
|
themeState,
|
|
8944
8948
|
themeProps: props,
|
|
8945
8949
|
children: content
|
|
@@ -9004,8 +9008,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9004
9008
|
}
|
|
9005
9009
|
if (debugProp === "break") debugger;
|
|
9006
9010
|
}
|
|
9007
|
-
return process.env.NODE_ENV === "development" &&
|
|
9008
|
-
delete globalThis.willPrint,
|
|
9011
|
+
return process.env.NODE_ENV === "development" && time2 && (time2`rest`, globalThis.willPrint || (globalThis.willPrint = !0, setTimeout(function() {
|
|
9012
|
+
delete globalThis.willPrint, time2.print(), time2 = null;
|
|
9009
9013
|
}, 50))), content;
|
|
9010
9014
|
});
|
|
9011
9015
|
staticConfig.componentName && (component.displayName = staticConfig.componentName);
|
|
@@ -16080,6 +16084,9 @@ var require_Adapt_native = __commonJS({
|
|
|
16080
16084
|
AdaptPortalContents: function() {
|
|
16081
16085
|
return AdaptPortalContents;
|
|
16082
16086
|
},
|
|
16087
|
+
ProvideAdaptContext: function() {
|
|
16088
|
+
return ProvideAdaptContext;
|
|
16089
|
+
},
|
|
16083
16090
|
useAdaptContext: function() {
|
|
16084
16091
|
return useAdaptContext;
|
|
16085
16092
|
},
|
|
@@ -17497,7 +17504,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
17497
17504
|
}
|
|
17498
17505
|
});
|
|
17499
17506
|
module2.exports = __toCommonJS2(SheetImplementationCustom_exports);
|
|
17500
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_animate_presence = require_index_native4(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native17(), import_portal2 = require_index_native26(), import_react3 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_contexts = require_contexts_native(), import_helpers = require_helpers_native(), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), hiddenSize = 10000.1, sheetHiddenStyleSheet = null, relativeDimensionTo = import_constants4.isWeb ? "window" : "screen", SheetImplementationCustom = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
17507
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_animate_presence = require_index_native4(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native17(), import_portal2 = require_index_native26(), import_react3 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_contexts = require_contexts_native(), import_helpers = require_helpers_native(), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), import_adapt = require_index_native27(), hiddenSize = 10000.1, sheetHiddenStyleSheet = null, relativeDimensionTo = import_constants4.isWeb ? "window" : "screen", SheetImplementationCustom = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
17501
17508
|
var parentSheet = import_react3.default.useContext(import_contexts.ParentSheetContext), { animation, animationConfig: animationConfigProp, modal = !1, zIndex = parentSheet.zIndex + 1, moveOnKeyboardChange = !1, unmountChildrenWhenHidden = !1, portalProps, containerComponent: ContainerComponent = import_react3.default.Fragment } = props, state = (0, import_useSheetOpenState.useSheetOpenState)(props), [overlayComponent, setOverlayComponent] = import_react3.default.useState(null), providerProps = (0, import_useSheetProviderProps.useSheetProviderProps)(props, state, {
|
|
17502
17509
|
onOverlayComponent: setOverlayComponent
|
|
17503
17510
|
}), { frameSize, setFrameSize, snapPoints, snapPointsMode, hasFit, position, setPosition, scrollBridge, screenSize, setMaxContentSize, maxSnapPoint } = providerProps, { open, controller, isHidden } = state, sheetRef = import_react3.default.useRef(null), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, sheetRef, providerProps.contentRef), animationConfig = function() {
|
|
@@ -17749,7 +17756,15 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
17749
17756
|
})
|
|
17750
17757
|
]
|
|
17751
17758
|
})
|
|
17752
|
-
})
|
|
17759
|
+
});
|
|
17760
|
+
if (import_constants4.isAndroid) {
|
|
17761
|
+
var adaptContext = (0, import_adapt.useAdaptContext)();
|
|
17762
|
+
contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.ProvideAdaptContext, {
|
|
17763
|
+
...adaptContext,
|
|
17764
|
+
children: contents
|
|
17765
|
+
});
|
|
17766
|
+
}
|
|
17767
|
+
var shouldMountChildren = unmountChildrenWhenHidden ? !!opacity : !0;
|
|
17753
17768
|
if (modal) {
|
|
17754
17769
|
var modalContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
17755
17770
|
stackZIndex: zIndex,
|
|
@@ -20446,9 +20461,6 @@ var require_Button_native = __commonJS({
|
|
|
20446
20461
|
ButtonText: function() {
|
|
20447
20462
|
return ButtonText;
|
|
20448
20463
|
},
|
|
20449
|
-
buttonStaticConfig: function() {
|
|
20450
|
-
return buttonStaticConfig;
|
|
20451
|
-
},
|
|
20452
20464
|
useButton: function() {
|
|
20453
20465
|
return useButton;
|
|
20454
20466
|
}
|
|
@@ -20554,23 +20566,11 @@ var require_Button_native = __commonJS({
|
|
|
20554
20566
|
}, ButtonComponent = ButtonFrame.styleable(function(props, ref) {
|
|
20555
20567
|
var { props: buttonProps } = useButton(props);
|
|
20556
20568
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ButtonFrame, {
|
|
20569
|
+
"data-disable-theme": !0,
|
|
20557
20570
|
...buttonProps,
|
|
20558
20571
|
ref
|
|
20559
20572
|
});
|
|
20560
|
-
}),
|
|
20561
|
-
inlineProps: /* @__PURE__ */ new Set([
|
|
20562
|
-
// text props go here (can't really optimize them, but we never fully extract button anyway)
|
|
20563
|
-
// may be able to remove this entirely, as the compiler / runtime have gotten better
|
|
20564
|
-
"color",
|
|
20565
|
-
"fontWeight",
|
|
20566
|
-
"fontSize",
|
|
20567
|
-
"fontFamily",
|
|
20568
|
-
"fontStyle",
|
|
20569
|
-
"letterSpacing",
|
|
20570
|
-
"textAlign",
|
|
20571
|
-
"unstyled"
|
|
20572
|
-
])
|
|
20573
|
-
}, Button2 = (0, import_helpers.withStaticProperties)(ButtonComponent, {
|
|
20573
|
+
}), Button2 = (0, import_helpers.withStaticProperties)(ButtonComponent, {
|
|
20574
20574
|
Text: ButtonText,
|
|
20575
20575
|
Icon: ButtonIcon
|
|
20576
20576
|
});
|