@tamagui/core 1.104.2 → 1.105.1
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 -33
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +3 -22
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -9461,18 +9461,8 @@ var require_createComponent_native = __commonJS({
|
|
|
9461
9461
|
}
|
|
9462
9462
|
var shouldAvoidClasses = !import_constants.isWeb;
|
|
9463
9463
|
if (import_constants.isWeb) {
|
|
9464
|
-
var disableClassName = props.disableClassName, isAnimatedAndHydrated = isAnimated && !supportsCSSVars && didHydrateOnce && !import_constants.isServer, isDisabledManually = disableClassName && !import_constants.isServer && didHydrateOnce && state.unmounted === !0;
|
|
9465
|
-
(isAnimatedAndHydrated || isDisabledManually) && (shouldAvoidClasses = !0
|
|
9466
|
-
isAnimatedAndHydrated,
|
|
9467
|
-
isDisabledManually
|
|
9468
|
-
}, {
|
|
9469
|
-
isAnimated,
|
|
9470
|
-
supportsCSSVars,
|
|
9471
|
-
didHydrateOnce,
|
|
9472
|
-
disableClassName,
|
|
9473
|
-
isServer: import_constants.isServer,
|
|
9474
|
-
willBeAnimated
|
|
9475
|
-
}));
|
|
9464
|
+
var disableClassName = props.disableClassName, isAnimatedAndHydrated = isAnimated && !supportsCSSVars && didHydrateOnce && !import_constants.isServer, isClassNameDisabled = !staticConfig.acceptsClassName && (config.disableSSR || didHydrateOnce), isDisabledManually = disableClassName && !import_constants.isServer && didHydrateOnce && state.unmounted === !0;
|
|
9465
|
+
(isAnimatedAndHydrated || isDisabledManually || isClassNameDisabled) && (shouldAvoidClasses = !0);
|
|
9476
9466
|
}
|
|
9477
9467
|
var groupName = props.group;
|
|
9478
9468
|
if (groupName && !curStateRef.group) {
|
|
@@ -9608,7 +9598,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9608
9598
|
if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "theme" in props && (themeStateProps.name = props.theme), typeof curStateRef.isListeningToTheme == "boolean" && (themeStateProps.shouldUpdate = function() {
|
|
9609
9599
|
return stateRef.current.isListeningToTheme;
|
|
9610
9600
|
}), themeStateProps.deopt = willBeAnimated, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
9611
|
-
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);
|
|
9601
|
+
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)" : " ") + (shouldAvoidClasses ? "(shouldAvoidClasses)" : " ") + ((presenceState == null ? void 0 : presenceState.isPresent) === !1 ? "(EXIT)" : ""), dataIs = propsIn["data-is"] || "", banner = "".concat(internalID, " ").concat(name).concat(dataIs ? " ".concat(dataIs) : "", " ").concat(type);
|
|
9612
9602
|
if (console.info("%c ".concat(banner, " (hydrated: ").concat(isHydrated, ") (unmounted: ").concat(state.unmounted, ")"), "background: green; color: white;"), import_constants.isServer) (0, import_log.log)({
|
|
9613
9603
|
noClassNames,
|
|
9614
9604
|
isAnimated,
|
|
@@ -9889,26 +9879,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9889
9879
|
children: content
|
|
9890
9880
|
}));
|
|
9891
9881
|
}
|
|
9892
|
-
if (process.env.TAMAGUI_REACT_19)
|
|
9893
|
-
var rulesToInsert = splitStyles.rulesToInsert, keys = Object.keys(splitStyles.rulesToInsert);
|
|
9894
|
-
keys.length && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
9895
|
-
children: [
|
|
9896
|
-
content,
|
|
9897
|
-
/* lets see if we can put a single style tag per rule for optimal de-duping */
|
|
9898
|
-
keys.map(function(key3) {
|
|
9899
|
-
var styleObject = rulesToInsert[key3], identifier = styleObject[import_helpers.StyleObjectIdentifier];
|
|
9900
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", {
|
|
9901
|
-
// @ts-ignore
|
|
9902
|
-
href: "t_".concat(identifier),
|
|
9903
|
-
// @ts-ignore
|
|
9904
|
-
precedence: "default",
|
|
9905
|
-
children: styleObject[import_helpers.StyleObjectRules].join(`
|
|
9906
|
-
`)
|
|
9907
|
-
}, identifier);
|
|
9908
|
-
})
|
|
9909
|
-
]
|
|
9910
|
-
}));
|
|
9911
|
-
}
|
|
9882
|
+
if (process.env.TAMAGUI_REACT_19 && !1) var rulesToInsert, keys;
|
|
9912
9883
|
if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
|
|
9913
9884
|
var element1 = typeof elementType == "string" ? elementType : "Component", title = "render <".concat(element1, " /> (").concat(internalID, ") with props");
|
|
9914
9885
|
if (import_constants.isWeb) {
|