tamagui 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 CHANGED
@@ -9567,18 +9567,8 @@ var require_createComponent_native = __commonJS({
9567
9567
  }
9568
9568
  var shouldAvoidClasses = !import_constants4.isWeb;
9569
9569
  if (import_constants4.isWeb) {
9570
- var disableClassName = props.disableClassName, isAnimatedAndHydrated = isAnimated && !supportsCSSVars && didHydrateOnce && !import_constants4.isServer, isDisabledManually = disableClassName && !import_constants4.isServer && didHydrateOnce && state.unmounted === !0;
9571
- (isAnimatedAndHydrated || isDisabledManually) && (shouldAvoidClasses = !0, process.env.NODE_ENV === "development" && props.debug && console.info("\u274C\u26F9\uFE0F no className", {
9572
- isAnimatedAndHydrated,
9573
- isDisabledManually
9574
- }, {
9575
- isAnimated,
9576
- supportsCSSVars,
9577
- didHydrateOnce,
9578
- disableClassName,
9579
- isServer: import_constants4.isServer,
9580
- willBeAnimated
9581
- }));
9570
+ var disableClassName = props.disableClassName, isAnimatedAndHydrated = isAnimated && !supportsCSSVars && didHydrateOnce && !import_constants4.isServer, isClassNameDisabled = !staticConfig.acceptsClassName && (config.disableSSR || didHydrateOnce), isDisabledManually = disableClassName && !import_constants4.isServer && didHydrateOnce && state.unmounted === !0;
9571
+ (isAnimatedAndHydrated || isDisabledManually || isClassNameDisabled) && (shouldAvoidClasses = !0);
9582
9572
  }
9583
9573
  var groupName = props.group;
9584
9574
  if (groupName && !curStateRef.group) {
@@ -9714,7 +9704,7 @@ var require_createComponent_native = __commonJS({
9714
9704
  if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "theme" in props && (themeStateProps.name = props.theme), typeof curStateRef.isListeningToTheme == "boolean" && (themeStateProps.shouldUpdate = function() {
9715
9705
  return stateRef.current.isListeningToTheme;
9716
9706
  }), themeStateProps.deopt = willBeAnimated, process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
9717
- 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);
9707
+ 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);
9718
9708
  if (console.info("%c ".concat(banner, " (hydrated: ").concat(isHydrated, ") (unmounted: ").concat(state.unmounted, ")"), "background: green; color: white;"), import_constants4.isServer) (0, import_log.log)({
9719
9709
  noClassNames,
9720
9710
  isAnimated,
@@ -9995,26 +9985,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
9995
9985
  children: content
9996
9986
  }));
9997
9987
  }
9998
- if (process.env.TAMAGUI_REACT_19) {
9999
- var rulesToInsert = splitStyles.rulesToInsert, keys = Object.keys(splitStyles.rulesToInsert);
10000
- keys.length && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
10001
- children: [
10002
- content,
10003
- /* lets see if we can put a single style tag per rule for optimal de-duping */
10004
- keys.map(function(key3) {
10005
- var styleObject = rulesToInsert[key3], identifier = styleObject[import_helpers.StyleObjectIdentifier];
10006
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("style", {
10007
- // @ts-ignore
10008
- href: "t_".concat(identifier),
10009
- // @ts-ignore
10010
- precedence: "default",
10011
- children: styleObject[import_helpers.StyleObjectRules].join(`
10012
- `)
10013
- }, identifier);
10014
- })
10015
- ]
10016
- }));
10017
- }
9988
+ if (process.env.TAMAGUI_REACT_19 && !1) var rulesToInsert, keys;
10018
9989
  if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
10019
9990
  var element1 = typeof elementType == "string" ? elementType : "Component", title = "render <".concat(element1, " /> (").concat(internalID, ") with props");
10020
9991
  if (import_constants4.isWeb) {