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/native.js
CHANGED
|
@@ -8214,9 +8214,9 @@ var require_ClientOnly_native = __commonJS({
|
|
|
8214
8214
|
});
|
|
8215
8215
|
module2.exports = __toCommonJS2(ClientOnly_exports);
|
|
8216
8216
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
|
|
8217
|
-
var { children } = param;
|
|
8217
|
+
var { children, value = !0 } = param;
|
|
8218
8218
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ClientOnlyContext2.Provider, {
|
|
8219
|
-
value
|
|
8219
|
+
value,
|
|
8220
8220
|
children
|
|
8221
8221
|
});
|
|
8222
8222
|
};
|
|
@@ -8745,8 +8745,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8745
8745
|
}
|
|
8746
8746
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
8747
8747
|
var _stateRef_current_group;
|
|
8748
|
-
if (!groupName || props.passThrough
|
|
8749
|
-
props.containerType === "normal") return groupContextParent;
|
|
8748
|
+
if (!groupName || props.passThrough) return groupContextParent;
|
|
8750
8749
|
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
8751
8750
|
var listeners = /* @__PURE__ */ new Set();
|
|
8752
8751
|
return stateRef.current.group = {
|
|
@@ -8849,7 +8848,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8849
8848
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
8850
8849
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
8851
8850
|
var 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;
|
|
8852
|
-
if (splitStyles && groupContext
|
|
8851
|
+
if (splitStyles && groupContext && // avoids onLayout if we don't need it
|
|
8852
|
+
props.containerType !== "normal") {
|
|
8853
8853
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
8854
8854
|
if (groupState && groupState.layout === void 0) {
|
|
8855
8855
|
var _splitStyles_style, _splitStyles_style1;
|
|
@@ -8959,7 +8959,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8959
8959
|
}
|
|
8960
8960
|
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.
|
|
8961
8961
|
|
|
8962
|
-
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`, splitStyles && groupContext &&
|
|
8962
|
+
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`, splitStyles && groupContext && // avoids onLayout if we don't need it
|
|
8963
|
+
props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8963
8964
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
8964
8965
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
8965
8966
|
layout
|
|
@@ -11561,7 +11562,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11561
11562
|
}
|
|
11562
11563
|
});
|
|
11563
11564
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
11564
|
-
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(),
|
|
11565
|
+
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();
|
|
11565
11566
|
function TamaguiProvider2(param) {
|
|
11566
11567
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
11567
11568
|
import_constants4.IS_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
@@ -11671,13 +11672,14 @@ var require_Configuration_native = __commonJS({
|
|
|
11671
11672
|
});
|
|
11672
11673
|
module2.exports = __toCommonJS2(Configuration_exports);
|
|
11673
11674
|
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) {
|
|
11674
|
-
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext)
|
|
11675
|
-
|
|
11676
|
-
|
|
11675
|
+
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext);
|
|
11676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
11677
|
+
value: typeof props.disableSSR == "boolean" && props.disableSSR !== current.disableSSR ? props.disableSSR : current.disableSSR,
|
|
11678
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
11679
|
+
...current,
|
|
11680
|
+
...props
|
|
11681
|
+
})
|
|
11677
11682
|
});
|
|
11678
|
-
return clientOnly ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
11679
|
-
children
|
|
11680
|
-
}) : children;
|
|
11681
11683
|
};
|
|
11682
11684
|
Configuration2.displayName = "Configuration";
|
|
11683
11685
|
}
|
|
@@ -24633,6 +24635,8 @@ var require_Popper_native = __commonJS({
|
|
|
24633
24635
|
size2,
|
|
24634
24636
|
floating.x,
|
|
24635
24637
|
floating.y,
|
|
24638
|
+
floating.placement,
|
|
24639
|
+
JSON.stringify(middlewareData.arrow || null),
|
|
24636
24640
|
floating.isPositioned
|
|
24637
24641
|
]);
|
|
24638
24642
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProvider, {
|
|
@@ -24648,23 +24652,30 @@ var require_Popper_native = __commonJS({
|
|
|
24648
24652
|
}, [
|
|
24649
24653
|
virtualRef
|
|
24650
24654
|
]);
|
|
24651
|
-
var stackProps = anchorProps, refProps = getReferenceProps ? getReferenceProps(stackProps) : null, composedRefs = (0, import_compose_refs.useComposedRefs)(
|
|
24655
|
+
var stackProps = anchorProps, refProps = getReferenceProps ? getReferenceProps(stackProps) : null, shouldHandleInHover = import_constants4.isWeb && scope, composedRefs = (0, import_compose_refs.useComposedRefs)(
|
|
24656
|
+
forwardedRef,
|
|
24657
|
+
ref,
|
|
24658
|
+
// web handles this onMouseEnter below so it can support multiple targets + hovering
|
|
24659
|
+
shouldHandleInHover ? void 0 : refs.setReference
|
|
24660
|
+
);
|
|
24652
24661
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.View, {
|
|
24653
24662
|
...stackProps,
|
|
24654
24663
|
...refProps,
|
|
24655
24664
|
ref: composedRefs,
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24665
|
+
...shouldHandleInHover && {
|
|
24666
|
+
// this helps us with handling scoped poppers with many different targets
|
|
24667
|
+
// basically we wait for mouseEnter to ever set a reference and remove it on leave
|
|
24668
|
+
// otherwise floating ui gets confused by having >1 reference
|
|
24669
|
+
onMouseEnter: function(e) {
|
|
24670
|
+
if (ref.current instanceof HTMLElement) {
|
|
24671
|
+
var _refProps_onPointerEnter;
|
|
24672
|
+
refs.setReference(ref.current), (_refProps_onPointerEnter = refProps.onPointerEnter) === null || _refProps_onPointerEnter === void 0 || _refProps_onPointerEnter.call(refProps, e), update();
|
|
24673
|
+
}
|
|
24674
|
+
},
|
|
24675
|
+
onMouseLeave: function(e) {
|
|
24676
|
+
var _refProps_onMouseLeave;
|
|
24677
|
+
refProps == null || (_refProps_onMouseLeave = refProps.onMouseLeave) === null || _refProps_onMouseLeave === void 0 || _refProps_onMouseLeave.call(refProps, e);
|
|
24678
|
+
}
|
|
24668
24679
|
}
|
|
24669
24680
|
});
|
|
24670
24681
|
})), PopperContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|