@tamagui/core 1.103.1 → 1.103.3
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 +4 -8
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +4 -8
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -12908,7 +12908,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
12908
12908
|
}
|
|
12909
12909
|
function TamaguiProvider(param) {
|
|
12910
12910
|
var children = param.children, disableInjectCSS = param.disableInjectCSS, config = param.config, className = param.className, defaultTheme = param.defaultTheme, disableRootThemeClass = param.disableRootThemeClass, reset = param.reset, themeClassNameOnRoot = param.themeClassNameOnRoot;
|
|
12911
|
-
(0, import_useMedia.setupMediaListeners)(), import_constants.isClient && ((0, import_useDidHydrateOnce.useDidHydrateOnceRoot)(), (0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
12911
|
+
return (0, import_useMedia.setupMediaListeners)(), import_constants.isClient && ((0, import_useDidHydrateOnce.useDidHydrateOnceRoot)(), (0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
12912
12912
|
if (config && !disableInjectCSS) {
|
|
12913
12913
|
var style = document.createElement("style");
|
|
12914
12914
|
return style.appendChild(document.createTextNode(config.getCSS())), document.head.appendChild(style), function() {
|
|
@@ -12918,9 +12918,8 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
12918
12918
|
}, [
|
|
12919
12919
|
config,
|
|
12920
12920
|
disableInjectCSS
|
|
12921
|
-
]))
|
|
12922
|
-
|
|
12923
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
12921
|
+
])), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UnmountedClassName, {
|
|
12922
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
12924
12923
|
animationDriver: config == null ? void 0 : config.animations,
|
|
12925
12924
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeProvider.ThemeProvider, {
|
|
12926
12925
|
themeClassNameOnRoot: themeClassNameOnRoot ?? (config == null ? void 0 : config.themeClassNameOnRoot),
|
|
@@ -12930,10 +12929,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
12930
12929
|
className,
|
|
12931
12930
|
children
|
|
12932
12931
|
})
|
|
12933
|
-
})
|
|
12934
|
-
}, []);
|
|
12935
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UnmountedClassName, {
|
|
12936
|
-
children: contents
|
|
12932
|
+
})
|
|
12937
12933
|
});
|
|
12938
12934
|
}
|
|
12939
12935
|
function UnmountedClassName(props) {
|