tamagui 1.134.1 → 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 +38 -38
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +9 -19
- package/dist/test.native.js.map +2 -2
- package/package.json +55 -55
package/dist/native.js
CHANGED
|
@@ -8639,33 +8639,41 @@ var require_createComponent_native = __commonJS({
|
|
|
8639
8639
|
if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "theme" in props && (themeStateProps.name = props.theme), typeof stateRef.current.isListeningToTheme == "boolean" && (themeStateProps.needsUpdate = function() {
|
|
8640
8640
|
return !!stateRef.current.isListeningToTheme;
|
|
8641
8641
|
}), themeStateProps.deopt = willBeAnimated, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
8642
|
-
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()}
|
|
8643
|
-
|
|
8642
|
+
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 : "";
|
|
8643
|
+
childLog.length && (childLog = `(children: ${childLog})`), import_constants4.isWeb ? (console.info(`%c ${banner}`, "background: green; color: white;"), import_constants4.isServer ? (0, import_log.log)({
|
|
8644
8644
|
noClass,
|
|
8645
8645
|
isAnimated,
|
|
8646
8646
|
isWeb: import_constants4.isWeb,
|
|
8647
8647
|
supportsCSS
|
|
8648
|
-
})
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8648
|
+
}) : (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)({
|
|
8649
|
+
state,
|
|
8650
|
+
staticConfig,
|
|
8651
|
+
elementType,
|
|
8652
|
+
themeStateProps
|
|
8653
|
+
}), (0, import_log.log)({
|
|
8654
|
+
context,
|
|
8655
|
+
overriddenContextProps,
|
|
8656
|
+
componentContext
|
|
8657
|
+
}), (0, import_log.log)({
|
|
8658
|
+
presence,
|
|
8659
|
+
isAnimated,
|
|
8660
|
+
isHOC,
|
|
8661
|
+
hasAnimationProp,
|
|
8662
|
+
useAnimations
|
|
8663
|
+
}), console.groupEnd())) : (console.info(`
|
|
8664
|
+
|
|
8665
|
+
------------------------------
|
|
8666
|
+
${banner}
|
|
8667
|
+
------------------------------
|
|
8668
|
+
`), (0, import_log.log)("children:", props.children), (0, import_log.log)({
|
|
8669
|
+
overriddenContextProps,
|
|
8670
|
+
styledContextValue
|
|
8671
|
+
}), (0, import_log.log)({
|
|
8672
|
+
noClass,
|
|
8673
|
+
isAnimated,
|
|
8674
|
+
isWeb: import_constants4.isWeb,
|
|
8675
|
+
supportsCSS
|
|
8676
|
+
}));
|
|
8669
8677
|
}
|
|
8670
8678
|
process.env.NODE_ENV === "development" && time2 && time2`pre-theme-media`;
|
|
8671
8679
|
var [theme, themeState] = (0, import_useTheme.useThemeWithState)(themeStateProps);
|
|
@@ -8717,8 +8725,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8717
8725
|
}), stateRef.current.setStateShallow = function(nextOrGetNext) {
|
|
8718
8726
|
var prev = stateRef.current.nextState || state, next = typeof nextOrGetNext == "function" ? nextOrGetNext(prev) : nextOrGetNext;
|
|
8719
8727
|
if (!(next === prev || (0, import_is_equal_shallow.isEqualShallow)(prev, next))) {
|
|
8720
|
-
var canAvoidReRender = Object.keys(next).every(function(
|
|
8721
|
-
return avoidReRenderKeys.has(
|
|
8728
|
+
var canAvoidReRender = Object.keys(next).every(function(key2) {
|
|
8729
|
+
return avoidReRenderKeys.has(key2);
|
|
8722
8730
|
}), updatedState = {
|
|
8723
8731
|
...prev,
|
|
8724
8732
|
...next
|
|
@@ -8995,19 +9003,10 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8995
9003
|
})), "group" in props && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_GroupContext.GroupContext.Provider, {
|
|
8996
9004
|
value: allGroupContexts,
|
|
8997
9005
|
children: content
|
|
8998
|
-
})), 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`,
|
|
8999
|
-
var contextProps = staticConfig.context.props;
|
|
9000
|
-
for (var key in contextProps) if (viewProps.style && key in viewProps.style || key in viewProps) {
|
|
9001
|
-
var _viewProps_style;
|
|
9002
|
-
overriddenContextProps || (overriddenContextProps = {});
|
|
9003
|
-
var _viewProps_style_key;
|
|
9004
|
-
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];
|
|
9005
|
-
}
|
|
9006
|
-
}
|
|
9007
|
-
if (overriddenContextProps) {
|
|
9006
|
+
})), 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) {
|
|
9008
9007
|
var Provider = staticConfig.context.Provider;
|
|
9009
|
-
for (var
|
|
9010
|
-
content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Provider, {
|
|
9008
|
+
for (var key in styledContextValue) key in overriddenContextProps || (overriddenContextProps[key] = styledContextValue[key]);
|
|
9009
|
+
debugProp && console.info("overriddenContextProps", overriddenContextProps), content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Provider, {
|
|
9011
9010
|
__disableMergeDefaultValues: !0,
|
|
9012
9011
|
...overriddenContextProps,
|
|
9013
9012
|
children: content
|
|
@@ -9054,7 +9053,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9054
9053
|
}
|
|
9055
9054
|
} else {
|
|
9056
9055
|
(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:");
|
|
9057
|
-
for (var
|
|
9056
|
+
for (var key1 in splitStylesStyle) (0, import_log.log)(key1, splitStylesStyle[key1]);
|
|
9058
9057
|
}
|
|
9059
9058
|
if (debugProp === "break") debugger;
|
|
9060
9059
|
}
|
|
@@ -21636,6 +21635,7 @@ var require_Button_native = __commonJS({
|
|
|
21636
21635
|
propsIn.children
|
|
21637
21636
|
] : (0, import_text2.wrapChildrenInText)(Text3, {
|
|
21638
21637
|
children: propsIn.children,
|
|
21638
|
+
color,
|
|
21639
21639
|
fontFamily,
|
|
21640
21640
|
fontSize,
|
|
21641
21641
|
textProps,
|