@tamagui/core 1.88.12 → 1.88.13
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 +8 -2
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +5 -1
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -4862,7 +4862,11 @@ var require_createComponent_native = __commonJS({
|
|
|
4862
4862
|
let exv = exitVariant ?? enterExitVariant, env = enterVariant ?? enterExitVariant;
|
|
4863
4863
|
state.unmounted && env && staticConfig.variants[env] ? (process.env.NODE_ENV === "development" && debugProp === "verbose" && console.warn(`Animating presence ENTER "${env}"`), props[env] = !0) : isExiting && exv && (process.env.NODE_ENV === "development" && debugProp === "verbose" && console.warn(`Animating presence EXIT "${exv}"`), props[exv] = exitVariant !== enterExitVariant);
|
|
4864
4864
|
}
|
|
4865
|
-
let shouldAvoidClasses = !!(!import_constants.isWeb || isAnimated && !supportsCSSVars || !staticConfig.acceptsClassName ||
|
|
4865
|
+
let shouldAvoidClasses = !!(!import_constants.isWeb || isAnimated && !supportsCSSVars || !staticConfig.acceptsClassName || // on server for SSR and animation compat added the && isHydrated but perhaps we want
|
|
4866
|
+
// disableClassName="until-hydrated" to be more straightforward
|
|
4867
|
+
// see issue if not, Button sets disableClassName to true <Button animation="" /> with
|
|
4868
|
+
// the react-native driver errors because it tries to animate var(--color) to rbga(..)
|
|
4869
|
+
propsIn.disableClassName && isHydrated), shouldForcePseudo = !!propsIn.forceStyle, noClassNames = shouldAvoidClasses || shouldForcePseudo, groupName = props.group, groupClassName = groupName ? `t_group_${props.group}` : "";
|
|
4866
4870
|
if (groupName && !curState.group) {
|
|
4867
4871
|
let listeners = /* @__PURE__ */ new Set();
|
|
4868
4872
|
curState.group = {
|
|
@@ -4910,7 +4914,9 @@ var require_createComponent_native = __commonJS({
|
|
|
4910
4914
|
if (console.info(
|
|
4911
4915
|
`%c ${banner} (hydrated: ${isHydrated}) (unmounted: ${state.unmounted})`,
|
|
4912
4916
|
"background: green; color: white;"
|
|
4913
|
-
),
|
|
4917
|
+
), import_constants.isServer)
|
|
4918
|
+
(0, import_log.log)({ noClassNames, isAnimated, shouldAvoidClasses, isWeb: import_constants.isWeb, supportsCSSVars });
|
|
4919
|
+
else {
|
|
4914
4920
|
console.groupEnd();
|
|
4915
4921
|
let stateLog = `${`${state.press || state.pressIn ? " PRESS " : ""}`}${state.hover ? " HOVER " : ""}${state.focus ? " FOCUS" : " "}`, ch = propsIn.children, childLog = typeof ch == "string" ? ch.length > 4 ? ch.slice(0, 4) + "..." : ch : "";
|
|
4916
4922
|
childLog.length && (childLog = `(children: ${childLog})`), console.groupCollapsed(`${childLog}${stateLog}Props:`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props), (0, import_log.log)({ state, staticConfig, elementType, themeStateProps }), (0, import_log.log)({ contextProps: styledContextProps, overriddenContextProps }), (0, import_log.log)({ presence, isAnimated, isHOC, hasAnimationProp, useAnimations }), console.groupEnd();
|