@tamagui/core 1.112.3 → 1.112.4
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 +26 -14
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +26 -14
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -910,7 +910,7 @@ var require_useResponderEvents_native = __commonJS({
|
|
|
910
910
|
}, [
|
|
911
911
|
id
|
|
912
912
|
]), React3.useEffect(function() {
|
|
913
|
-
var { onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onScrollShouldSetResponder, onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder, onStartShouldSetResponderCapture } = config, requiresResponderSystem = onMoveShouldSetResponder
|
|
913
|
+
var { onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onScrollShouldSetResponder, onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder, onStartShouldSetResponderCapture } = config, requiresResponderSystem = !!(onMoveShouldSetResponder || onMoveShouldSetResponderCapture || onScrollShouldSetResponder || onScrollShouldSetResponderCapture || onSelectionChangeShouldSetResponder || onSelectionChangeShouldSetResponderCapture || onStartShouldSetResponder || onStartShouldSetResponderCapture), node = hostRef.current.host;
|
|
914
914
|
requiresResponderSystem ? (ResponderSystem.addNode(id, node, config), isAttachedRef.current = !0) : isAttachedRef.current && (ResponderSystem.removeNode(id), isAttachedRef.current = !1);
|
|
915
915
|
}, [
|
|
916
916
|
config,
|
|
@@ -11192,7 +11192,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11192
11192
|
var import_jsx_runtime = require("react/jsx-runtime"), import_constants2 = require_index_native3(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_useMedia = require_useMedia_native(), import_ThemeProvider = require_ThemeProvider_native();
|
|
11193
11193
|
function TamaguiProvider(param) {
|
|
11194
11194
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
11195
|
-
return (0, import_useMedia.setupMediaListeners)(), import_constants2.isClient && (0, import_constants2.useIsomorphicLayoutEffect)(function() {
|
|
11195
|
+
return (0, import_useMedia.setupMediaListeners)(), process.env.TAMAGUI_REACT_19 || import_constants2.isClient && (0, import_constants2.useIsomorphicLayoutEffect)(function() {
|
|
11196
11196
|
if (config && !disableInjectCSS) {
|
|
11197
11197
|
var style = document.createElement("style");
|
|
11198
11198
|
return style.appendChild(document.createTextNode(config.getCSS())), document.head.appendChild(style), function() {
|
|
@@ -11202,18 +11202,30 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11202
11202
|
}, [
|
|
11203
11203
|
config,
|
|
11204
11204
|
disableInjectCSS
|
|
11205
|
-
]), /* @__PURE__ */ (0, import_jsx_runtime.
|
|
11206
|
-
children:
|
|
11207
|
-
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
|
|
11213
|
-
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
|
|
11205
|
+
]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
11206
|
+
children: [
|
|
11207
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(UnmountedClassName, {
|
|
11208
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
11209
|
+
animationDriver: config == null ? void 0 : config.animations,
|
|
11210
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeProvider.ThemeProvider, {
|
|
11211
|
+
themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
|
|
11212
|
+
disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
|
|
11213
|
+
defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
|
|
11214
|
+
reset,
|
|
11215
|
+
className,
|
|
11216
|
+
children
|
|
11217
|
+
})
|
|
11218
|
+
})
|
|
11219
|
+
}),
|
|
11220
|
+
process.env.TAMAGUI_REACT_19 && config && !disableInjectCSS && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", {
|
|
11221
|
+
// react 19 feature to hoist style tags to header:
|
|
11222
|
+
// https://react.dev/reference/react-dom/components/style
|
|
11223
|
+
// @ts-ignore
|
|
11224
|
+
precedence: "default",
|
|
11225
|
+
href: "tamagui-css",
|
|
11226
|
+
children: config.getCSS()
|
|
11227
|
+
}, "tamagui-css")
|
|
11228
|
+
]
|
|
11217
11229
|
});
|
|
11218
11230
|
}
|
|
11219
11231
|
function UnmountedClassName(props) {
|