@tamagui/core 1.98.1 → 1.98.2
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 +2 -4
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +2 -4
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -8754,7 +8754,7 @@ var require_Theme_native = __commonJS({
|
|
|
8754
8754
|
var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, stateRef = arguments.length > 4 ? arguments[4] : void 0, themeManager = themeState.themeManager, isNewTheme = themeState.isNewTheme;
|
|
8755
8755
|
if (!themeManager)
|
|
8756
8756
|
throw new Error(process.env.NODE_ENV === "development" ? "\u274C No theme found, either incorrect name, potential duplicate tamagui deps, or TamaguiProvider not providing themes." : "\u274C 005");
|
|
8757
|
-
var shallow = props.shallow, forceClassName = props.forceClassName, shouldRenderChildrenWithTheme = isNewTheme || "inverse" in props || "
|
|
8757
|
+
var shallow = props.shallow, forceClassName = props.forceClassName, shouldRenderChildrenWithTheme = isNewTheme || "inverse" in props || "name" in props || stateRef.current.hasEverThemed || isRoot;
|
|
8758
8758
|
if (shouldRenderChildrenWithTheme && (stateRef.current.hasEverThemed = !0), !shouldRenderChildrenWithTheme)
|
|
8759
8759
|
return children;
|
|
8760
8760
|
var next = children;
|
|
@@ -9770,14 +9770,12 @@ var require_createComponent_native = __commonJS({
|
|
|
9770
9770
|
var disableThemeProp = !1, disableTheme = disableThemeProp || isHOC;
|
|
9771
9771
|
process.env.NODE_ENV === "development" && time && time(_templateObject6()), props.themeShallow && (curStateRef.themeShallow = !0);
|
|
9772
9772
|
var themeStateProps = {
|
|
9773
|
-
name: props.theme,
|
|
9774
9773
|
componentName: componentName2,
|
|
9775
9774
|
disable: disableTheme,
|
|
9776
9775
|
shallow: curStateRef.themeShallow,
|
|
9777
|
-
inverse: props.themeInverse,
|
|
9778
9776
|
debug: debugProp
|
|
9779
9777
|
};
|
|
9780
|
-
if (typeof curStateRef.isListeningToTheme == "boolean" && (themeStateProps.shouldUpdate = function() {
|
|
9778
|
+
if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "name" in props && (themeStateProps.name = props.theme), typeof curStateRef.isListeningToTheme == "boolean" && (themeStateProps.shouldUpdate = function() {
|
|
9781
9779
|
return stateRef.current.isListeningToTheme;
|
|
9782
9780
|
}), themeStateProps.deopt = willBeAnimated, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
9783
9781
|
var name = "".concat(componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"), type = (hasEnterStyle ? "(hasEnter)" : "") + (isAnimated ? "(animated)" : "") + (isReactNative ? "(rnw)" : "") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner = "".concat(internalID, " ").concat(name).concat(dataIs ? " ".concat(dataIs) : "", " ").concat(type);
|