@tamagui/core 1.134.0 → 1.134.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 +37 -38
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +8 -19
- package/dist/test.native.js.map +2 -2
- package/package.json +10 -10
package/dist/native.js
CHANGED
|
@@ -7534,33 +7534,41 @@ var require_createComponent_native = __commonJS({
|
|
|
7534
7534
|
if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "theme" in props && (themeStateProps.name = props.theme), typeof stateRef.current.isListeningToTheme == "boolean" && (themeStateProps.needsUpdate = function() {
|
|
7535
7535
|
return !!stateRef.current.isListeningToTheme;
|
|
7536
7536
|
}), themeStateProps.deopt = willBeAnimated, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
7537
|
-
var name = `${componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = (hasEnterStyle ? "(hasEnter)" : " ") + (isAnimated ? "(animated)" : " ") + (isReactNative ? "(rnw)" : " ") + (noClass ? "(noClass)" : " ") + (state.press || state.pressIn ? "(PRESSED)" : " ") + (state.hover ? "(HOVERED)" : " ") + (state.focus ? "(FOCUSED)" : " ") + (state.focusWithin ? "(WITHIN FOCUSED)" : " ") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner = `<${name} /> ${internalID} ${dataIs ? ` ${dataIs}` : ""} ${type.trim()}
|
|
7538
|
-
|
|
7537
|
+
var name = `${componentName2 || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = (hasEnterStyle ? "(hasEnter)" : " ") + (isAnimated ? "(animated)" : " ") + (isReactNative ? "(rnw)" : " ") + (noClass ? "(noClass)" : " ") + (state.press || state.pressIn ? "(PRESSED)" : " ") + (state.hover ? "(HOVERED)" : " ") + (state.focus ? "(FOCUSED)" : " ") + (state.focusWithin ? "(WITHIN FOCUSED)" : " ") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner = `<${name} /> ${internalID} ${dataIs ? ` ${dataIs}` : ""} ${type.trim()} (hydrated: ${isHydrated}) (unmounted: ${state.unmounted})`, ch = propsIn.children, childLog = typeof ch == "string" ? ch.length > 4 ? ch.slice(0, 4) + "..." : ch : "";
|
|
7538
|
+
childLog.length && (childLog = `(children: ${childLog})`), import_constants.isWeb ? (console.info(`%c ${banner}`, "background: green; color: white;"), import_constants.isServer ? (0, import_log.log)({
|
|
7539
7539
|
noClass,
|
|
7540
7540
|
isAnimated,
|
|
7541
7541
|
isWeb: import_constants.isWeb,
|
|
7542
7542
|
supportsCSS
|
|
7543
|
-
})
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7543
|
+
}) : (console.groupEnd(), console.groupCollapsed(`${childLog} [inspect props, state, context \u{1F447}]`), (0, import_log.log)("props in:", propsIn), (0, import_log.log)("final props:", props, Object.keys(props)), (0, import_log.log)({
|
|
7544
|
+
state,
|
|
7545
|
+
staticConfig,
|
|
7546
|
+
elementType,
|
|
7547
|
+
themeStateProps
|
|
7548
|
+
}), (0, import_log.log)({
|
|
7549
|
+
context,
|
|
7550
|
+
overriddenContextProps,
|
|
7551
|
+
componentContext
|
|
7552
|
+
}), (0, import_log.log)({
|
|
7553
|
+
presence,
|
|
7554
|
+
isAnimated,
|
|
7555
|
+
isHOC,
|
|
7556
|
+
hasAnimationProp,
|
|
7557
|
+
useAnimations
|
|
7558
|
+
}), console.groupEnd())) : (console.info(`
|
|
7559
|
+
|
|
7560
|
+
------------------------------
|
|
7561
|
+
${banner}
|
|
7562
|
+
------------------------------
|
|
7563
|
+
`), (0, import_log.log)("children:", props.children), (0, import_log.log)({
|
|
7564
|
+
overriddenContextProps,
|
|
7565
|
+
styledContextValue
|
|
7566
|
+
}), (0, import_log.log)({
|
|
7567
|
+
noClass,
|
|
7568
|
+
isAnimated,
|
|
7569
|
+
isWeb: import_constants.isWeb,
|
|
7570
|
+
supportsCSS
|
|
7571
|
+
}));
|
|
7564
7572
|
}
|
|
7565
7573
|
process.env.NODE_ENV === "development" && time2 && time2`pre-theme-media`;
|
|
7566
7574
|
var [theme, themeState] = (0, import_useTheme.useThemeWithState)(themeStateProps);
|
|
@@ -7612,8 +7620,8 @@ var require_createComponent_native = __commonJS({
|
|
|
7612
7620
|
}), stateRef.current.setStateShallow = function(nextOrGetNext) {
|
|
7613
7621
|
var prev = stateRef.current.nextState || state, next = typeof nextOrGetNext == "function" ? nextOrGetNext(prev) : nextOrGetNext;
|
|
7614
7622
|
if (!(next === prev || (0, import_is_equal_shallow.isEqualShallow)(prev, next))) {
|
|
7615
|
-
var canAvoidReRender = Object.keys(next).every(function(
|
|
7616
|
-
return avoidReRenderKeys.has(
|
|
7623
|
+
var canAvoidReRender = Object.keys(next).every(function(key2) {
|
|
7624
|
+
return avoidReRenderKeys.has(key2);
|
|
7617
7625
|
}), updatedState = {
|
|
7618
7626
|
...prev,
|
|
7619
7627
|
...next
|
|
@@ -7890,19 +7898,10 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7890
7898
|
})), "group" in props && (content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_GroupContext.GroupContext.Provider, {
|
|
7891
7899
|
value: allGroupContexts,
|
|
7892
7900
|
children: content
|
|
7893
|
-
})), process.env.NODE_ENV === "development" && time2 && time2`group-context`, content = disableTheme || !splitStyles ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), process.env.NODE_ENV === "development" && time2 && time2`themed-children`,
|
|
7894
|
-
var contextProps = staticConfig.context.props;
|
|
7895
|
-
for (var key in contextProps) if (viewProps.style && key in viewProps.style || key in viewProps) {
|
|
7896
|
-
var _viewProps_style;
|
|
7897
|
-
overriddenContextProps || (overriddenContextProps = {});
|
|
7898
|
-
var _viewProps_style_key;
|
|
7899
|
-
overriddenContextProps[key] = (_viewProps_style_key = (_viewProps_style = viewProps.style) === null || _viewProps_style === void 0 ? void 0 : _viewProps_style[key]) !== null && _viewProps_style_key !== void 0 ? _viewProps_style_key : viewProps[key];
|
|
7900
|
-
}
|
|
7901
|
-
}
|
|
7902
|
-
if (overriddenContextProps) {
|
|
7901
|
+
})), process.env.NODE_ENV === "development" && time2 && time2`group-context`, content = disableTheme || !splitStyles ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), process.env.NODE_ENV === "development" && time2 && time2`themed-children`, overriddenContextProps) {
|
|
7903
7902
|
var Provider = staticConfig.context.Provider;
|
|
7904
|
-
for (var
|
|
7905
|
-
content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Provider, {
|
|
7903
|
+
for (var key in styledContextValue) key in overriddenContextProps || (overriddenContextProps[key] = styledContextValue[key]);
|
|
7904
|
+
debugProp && console.info("overriddenContextProps", overriddenContextProps), content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Provider, {
|
|
7906
7905
|
__disableMergeDefaultValues: !0,
|
|
7907
7906
|
...overriddenContextProps,
|
|
7908
7907
|
children: content
|
|
@@ -7949,7 +7948,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7949
7948
|
}
|
|
7950
7949
|
} else {
|
|
7951
7950
|
(0, import_log.log)(title), (0, import_log.log)("state: ", state), import_isDevTools.isDevTools && (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("final styles:");
|
|
7952
|
-
for (var
|
|
7951
|
+
for (var key1 in splitStylesStyle) (0, import_log.log)(key1, splitStylesStyle[key1]);
|
|
7953
7952
|
}
|
|
7954
7953
|
if (debugProp === "break") debugger;
|
|
7955
7954
|
}
|