tamagui 1.132.6 → 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 +32 -22
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +32 -22
- 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
|
};
|
|
@@ -11562,7 +11562,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11562
11562
|
}
|
|
11563
11563
|
});
|
|
11564
11564
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
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(),
|
|
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();
|
|
11566
11566
|
function TamaguiProvider2(param) {
|
|
11567
11567
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
11568
11568
|
import_constants4.IS_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
@@ -11672,13 +11672,14 @@ var require_Configuration_native = __commonJS({
|
|
|
11672
11672
|
});
|
|
11673
11673
|
module2.exports = __toCommonJS2(Configuration_exports);
|
|
11674
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) {
|
|
11675
|
-
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext)
|
|
11676
|
-
|
|
11677
|
-
|
|
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
|
+
})
|
|
11678
11682
|
});
|
|
11679
|
-
return clientOnly ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
11680
|
-
children
|
|
11681
|
-
}) : children;
|
|
11682
11683
|
};
|
|
11683
11684
|
Configuration2.displayName = "Configuration";
|
|
11684
11685
|
}
|
|
@@ -24634,6 +24635,8 @@ var require_Popper_native = __commonJS({
|
|
|
24634
24635
|
size2,
|
|
24635
24636
|
floating.x,
|
|
24636
24637
|
floating.y,
|
|
24638
|
+
floating.placement,
|
|
24639
|
+
JSON.stringify(middlewareData.arrow || null),
|
|
24637
24640
|
floating.isPositioned
|
|
24638
24641
|
]);
|
|
24639
24642
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProvider, {
|
|
@@ -24649,23 +24652,30 @@ var require_Popper_native = __commonJS({
|
|
|
24649
24652
|
}, [
|
|
24650
24653
|
virtualRef
|
|
24651
24654
|
]);
|
|
24652
|
-
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
|
+
);
|
|
24653
24661
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.View, {
|
|
24654
24662
|
...stackProps,
|
|
24655
24663
|
...refProps,
|
|
24656
24664
|
ref: composedRefs,
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
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
|
+
}
|
|
24669
24679
|
}
|
|
24670
24680
|
});
|
|
24671
24681
|
})), PopperContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|