tamagui 1.132.5 → 1.132.7
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 +37 -26
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +37 -26
- package/dist/test.native.js.map +2 -2
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -7798,9 +7798,9 @@ var require_ClientOnly_native = __commonJS({
|
|
|
7798
7798
|
});
|
|
7799
7799
|
module2.exports = __toCommonJS2(ClientOnly_exports);
|
|
7800
7800
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
|
|
7801
|
-
var { children } = param;
|
|
7801
|
+
var { children, value = !0 } = param;
|
|
7802
7802
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ClientOnlyContext2.Provider, {
|
|
7803
|
-
value
|
|
7803
|
+
value,
|
|
7804
7804
|
children
|
|
7805
7805
|
});
|
|
7806
7806
|
};
|
|
@@ -8293,8 +8293,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8293
8293
|
}
|
|
8294
8294
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
8295
8295
|
var _stateRef_current_group;
|
|
8296
|
-
if (!groupName || props.passThrough
|
|
8297
|
-
props.containerType === "normal") return groupContextParent;
|
|
8296
|
+
if (!groupName || props.passThrough) return groupContextParent;
|
|
8298
8297
|
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
8299
8298
|
var listeners = /* @__PURE__ */ new Set();
|
|
8300
8299
|
return stateRef.current.group = {
|
|
@@ -8367,7 +8366,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8367
8366
|
willBeAnimated,
|
|
8368
8367
|
styledContextProps
|
|
8369
8368
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "", splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
8370
|
-
if (splitStyles && groupContext
|
|
8369
|
+
if (splitStyles && groupContext && // avoids onLayout if we don't need it
|
|
8370
|
+
props.containerType !== "normal") {
|
|
8371
8371
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
8372
8372
|
if (groupState && groupState.layout === void 0) {
|
|
8373
8373
|
var _splitStyles_style, _splitStyles_style1;
|
|
@@ -8469,7 +8469,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8469
8469
|
});
|
|
8470
8470
|
animations && (animations.ref && (animatedRef = animations.ref), isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)));
|
|
8471
8471
|
}
|
|
8472
|
-
splitStyles && groupContext &&
|
|
8472
|
+
splitStyles && groupContext && // avoids onLayout if we don't need it
|
|
8473
|
+
props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8473
8474
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
8474
8475
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
8475
8476
|
layout
|
|
@@ -10994,7 +10995,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10994
10995
|
}
|
|
10995
10996
|
});
|
|
10996
10997
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
10997
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native14(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(),
|
|
10998
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native14(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_insertStyleRule = require_insertStyleRule_native(), import_useMedia = require_useMedia_native(), import_ThemeProvider = require_ThemeProvider_native();
|
|
10998
10999
|
function TamaguiProvider2(param) {
|
|
10999
11000
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
11000
11001
|
import_constants4.IS_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
@@ -11104,13 +11105,14 @@ var require_Configuration_native = __commonJS({
|
|
|
11104
11105
|
});
|
|
11105
11106
|
module2.exports = __toCommonJS2(Configuration_exports);
|
|
11106
11107
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_use_did_finish_ssr = require_index_native14(), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration2 = function(props) {
|
|
11107
|
-
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext)
|
|
11108
|
-
|
|
11109
|
-
|
|
11108
|
+
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext);
|
|
11109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
11110
|
+
value: typeof props.disableSSR == "boolean" && props.disableSSR !== current.disableSSR ? props.disableSSR : current.disableSSR,
|
|
11111
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
11112
|
+
...current,
|
|
11113
|
+
...props
|
|
11114
|
+
})
|
|
11110
11115
|
});
|
|
11111
|
-
return clientOnly ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
11112
|
-
children
|
|
11113
|
-
}) : children;
|
|
11114
11116
|
};
|
|
11115
11117
|
Configuration2.displayName = "Configuration";
|
|
11116
11118
|
}
|
|
@@ -23947,6 +23949,8 @@ var require_Popper_native = __commonJS({
|
|
|
23947
23949
|
size2,
|
|
23948
23950
|
floating.x,
|
|
23949
23951
|
floating.y,
|
|
23952
|
+
floating.placement,
|
|
23953
|
+
JSON.stringify(middlewareData.arrow || null),
|
|
23950
23954
|
floating.isPositioned
|
|
23951
23955
|
]);
|
|
23952
23956
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProvider, {
|
|
@@ -23962,23 +23966,30 @@ var require_Popper_native = __commonJS({
|
|
|
23962
23966
|
}, [
|
|
23963
23967
|
virtualRef
|
|
23964
23968
|
]);
|
|
23965
|
-
var stackProps = anchorProps, refProps = getReferenceProps ? getReferenceProps(stackProps) : null, composedRefs = (0, import_compose_refs.useComposedRefs)(
|
|
23969
|
+
var stackProps = anchorProps, refProps = getReferenceProps ? getReferenceProps(stackProps) : null, shouldHandleInHover = import_constants4.isWeb && scope, composedRefs = (0, import_compose_refs.useComposedRefs)(
|
|
23970
|
+
forwardedRef,
|
|
23971
|
+
ref,
|
|
23972
|
+
// web handles this onMouseEnter below so it can support multiple targets + hovering
|
|
23973
|
+
shouldHandleInHover ? void 0 : refs.setReference
|
|
23974
|
+
);
|
|
23966
23975
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.View, {
|
|
23967
23976
|
...stackProps,
|
|
23968
23977
|
...refProps,
|
|
23969
23978
|
ref: composedRefs,
|
|
23970
|
-
|
|
23971
|
-
|
|
23972
|
-
|
|
23973
|
-
|
|
23974
|
-
|
|
23975
|
-
|
|
23976
|
-
|
|
23977
|
-
|
|
23978
|
-
|
|
23979
|
-
|
|
23980
|
-
|
|
23981
|
-
|
|
23979
|
+
...shouldHandleInHover && {
|
|
23980
|
+
// this helps us with handling scoped poppers with many different targets
|
|
23981
|
+
// basically we wait for mouseEnter to ever set a reference and remove it on leave
|
|
23982
|
+
// otherwise floating ui gets confused by having >1 reference
|
|
23983
|
+
onMouseEnter: function(e) {
|
|
23984
|
+
if (ref.current instanceof HTMLElement) {
|
|
23985
|
+
var _refProps_onPointerEnter;
|
|
23986
|
+
refs.setReference(ref.current), (_refProps_onPointerEnter = refProps.onPointerEnter) === null || _refProps_onPointerEnter === void 0 || _refProps_onPointerEnter.call(refProps, e), update();
|
|
23987
|
+
}
|
|
23988
|
+
},
|
|
23989
|
+
onMouseLeave: function(e) {
|
|
23990
|
+
var _refProps_onMouseLeave;
|
|
23991
|
+
refProps == null || (_refProps_onMouseLeave = refProps.onMouseLeave) === null || _refProps_onMouseLeave === void 0 || _refProps_onMouseLeave.call(refProps, e);
|
|
23992
|
+
}
|
|
23982
23993
|
}
|
|
23983
23994
|
});
|
|
23984
23995
|
})), PopperContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|