@tamagui/core 1.79.9 → 1.79.10

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
@@ -4816,7 +4816,8 @@ var require_createComponent_native = __commonJS({
4816
4816
  defaultPropsKeyOrder: defaultProps ? Object.keys(defaultProps) : []
4817
4817
  });
4818
4818
  let component = (0, import_react3.forwardRef)((propsIn, forwardedRef) => {
4819
- var _a2, _b, _c, _d, _e, _f, _i, _j, _k, _l, _m;
4819
+ var _a2, _b, _c, _d, _e, _f, _i, _j, _k, _l, _m, _n;
4820
+ let internalID = process.env.NODE_ENV === "development" ? (0, import_react3.useId)() : "";
4820
4821
  if (process.env.NODE_ENV === "development" && startVisualizer && (startVisualizer(), startVisualizer = void 0), !hasSetupBaseViews) {
4821
4822
  hasSetupBaseViews = !0;
4822
4823
  let baseViews2 = (_b = (_a2 = import_setupHooks.hooks).getBaseViews) == null ? void 0 : _b.call(_a2);
@@ -4907,32 +4908,29 @@ var require_createComponent_native = __commonJS({
4907
4908
  };
4908
4909
  typeof stateRef.current.isListeningToTheme == "boolean" && (themeStateProps.shouldUpdate = () => stateRef.current.isListeningToTheme), themeStateProps.deopt = willBeAnimated;
4909
4910
  let isExiting = !state.unmounted && (presence == null ? void 0 : presence[0]) === !1;
4910
- if (process.env.NODE_ENV === "development") {
4911
- let id = (0, import_react3.useId)();
4912
- if (debugProp && debugProp !== "profile") {
4913
- let name = `${componentName || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = isAnimatedReactNative ? "(animated)" : isReactNative ? "(rnw)" : "", dataIs = propsIn["data-is"] || "", banner = `${name}${dataIs ? ` ${dataIs}` : ""} ${type} id ${id}`;
4914
- console.group(
4915
- `%c ${banner} (unmounted: ${state.unmounted})${presence ? ` (presence: ${presence[0]})` : ""} ${isHydrated ? "\u{1F4A6}" : "\u{1F3DC}\uFE0F"}`,
4916
- "background: green; color: white;"
4917
- ), import_constants2.isServer || (console.groupCollapsed(
4918
- `Info (collapsed): ${state.press || state.pressIn ? "PRESSED " : ""}${state.hover ? "HOVERED " : ""}${state.focus ? "FOCUSED" : " "}`
4919
- ), (0, import_log.log)({
4920
- propsIn,
4921
- props,
4922
- state,
4923
- staticConfig,
4924
- elementType,
4925
- themeStateProps,
4926
- styledContext: { contextProps: styledContextProps, overriddenContextProps },
4927
- presence,
4928
- isAnimated,
4929
- isHOC,
4930
- hasAnimationProp,
4931
- useAnimations,
4932
- propsInOrder: Object.keys(propsIn),
4933
- propsOrder: Object.keys(props)
4934
- }), console.groupEnd());
4935
- }
4911
+ if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
4912
+ let name = `${componentName || (Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "[Unnamed Component]"}`, type = isAnimatedReactNative ? "(animated)" : isReactNative ? "(rnw)" : "", dataIs = propsIn["data-is"] || "", banner = `${name}${dataIs ? ` ${dataIs}` : ""} ${type} id ${internalID}`;
4913
+ console.group(
4914
+ `%c ${banner} (unmounted: ${state.unmounted})${presence ? ` (presence: ${presence[0]})` : ""} ${isHydrated ? "\u{1F4A6}" : "\u{1F3DC}\uFE0F"}`,
4915
+ "background: green; color: white;"
4916
+ ), import_constants2.isServer || (console.groupCollapsed(
4917
+ `Info (collapsed): ${state.press || state.pressIn ? "PRESSED " : ""}${state.hover ? "HOVERED " : ""}${state.focus ? "FOCUSED" : " "}`
4918
+ ), (0, import_log.log)({
4919
+ propsIn,
4920
+ props,
4921
+ state,
4922
+ staticConfig,
4923
+ elementType,
4924
+ themeStateProps,
4925
+ styledContext: { contextProps: styledContextProps, overriddenContextProps },
4926
+ presence,
4927
+ isAnimated,
4928
+ isHOC,
4929
+ hasAnimationProp,
4930
+ useAnimations,
4931
+ propsInOrder: Object.keys(propsIn),
4932
+ propsOrder: Object.keys(props)
4933
+ }), console.groupEnd());
4936
4934
  }
4937
4935
  process.env.NODE_ENV === "development" && time && time`pre-theme-media`;
4938
4936
  let [themeState, theme] = (0, import_useTheme.useThemeWithState)(themeStateProps);
@@ -5158,8 +5156,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5158
5156
  direction,
5159
5157
  isZStack,
5160
5158
  debug: debugProp
5161
- });
5162
- asChild && (elementType = import_Slot.Slot, Object.assign(viewProps, { onPress, onLongPress })), process.env.NODE_ENV === "development" && time && time`spaced-as-child`;
5159
+ }), ResetPresence = (_l = config == null ? void 0 : config.animations) == null ? void 0 : _l.ResetPresence;
5160
+ willBeAnimated && presence && ResetPresence && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ResetPresence, { children: content })), asChild && (elementType = import_Slot.Slot, Object.assign(viewProps, { onPress, onLongPress })), process.env.NODE_ENV === "development" && time && time`spaced-as-child`;
5163
5161
  let useChildrenResult;
5164
5162
  import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(
5165
5163
  elementType,
@@ -5197,7 +5195,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5197
5195
  content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { ...contextValue, ...overriddenContextProps, children: content });
5198
5196
  }
5199
5197
  if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
5200
- console.groupCollapsed(`render <${typeof elementType == "string" ? elementType : "Component"} /> with props`);
5198
+ console.groupCollapsed(`render <${typeof elementType == "string" ? elementType : "Component"} /> (${internalID}) with props`);
5201
5199
  try {
5202
5200
  (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("viewPropsOrder", Object.keys(viewProps));
5203
5201
  for (let key in viewProps)
@@ -5215,8 +5213,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5215
5213
  handlesPressEvents,
5216
5214
  willBeAnimated,
5217
5215
  isStringElement,
5218
- classNamesIn: (_l = props.className) == null ? void 0 : _l.split(" "),
5219
- classNamesOut: (_m = viewProps.className) == null ? void 0 : _m.split(" "),
5216
+ classNamesIn: (_m = props.className) == null ? void 0 : _m.split(" "),
5217
+ classNamesOut: (_n = viewProps.className) == null ? void 0 : _n.split(" "),
5220
5218
  events,
5221
5219
  shouldAttach,
5222
5220
  pseudos,