@tamagui/core 1.79.8 → 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
@@ -3295,7 +3295,10 @@ var require_propMapper_native = __commonJS({
3295
3295
  return;
3296
3296
  if (value === "unset") {
3297
3297
  let unsetVal = (_a = styleStateIn.conf.unset) == null ? void 0 : _a[key];
3298
- unsetVal != null && (value = unsetVal);
3298
+ if (unsetVal != null)
3299
+ value = unsetVal;
3300
+ else
3301
+ return;
3299
3302
  }
3300
3303
  let subProps = styleStateIn.styleProps.fallbackProps || subPropsIn, styleState = subProps ? new Proxy(styleStateIn, {
3301
3304
  get(_, k) {
@@ -3626,7 +3629,7 @@ var require_getSplitStyles_native = __commonJS({
3626
3629
  parentStaticConfig
3627
3630
  }), console.groupEnd()), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || !styleProps.noSkip && keyInit in skipProps)
3628
3631
  continue;
3629
- if (isText && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit), isValidStyleKeyInit && !variants && (valInitType === "number" || valInitType === "string" && valInit[0] !== "$")) {
3632
+ if (isText && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit), isValidStyleKeyInit && !variants && valInit !== "unset" && (valInitType === "number" || valInitType === "string" && valInit[0] !== "$")) {
3630
3633
  style[keyInit] = valInit;
3631
3634
  continue;
3632
3635
  }
@@ -4813,7 +4816,8 @@ var require_createComponent_native = __commonJS({
4813
4816
  defaultPropsKeyOrder: defaultProps ? Object.keys(defaultProps) : []
4814
4817
  });
4815
4818
  let component = (0, import_react3.forwardRef)((propsIn, forwardedRef) => {
4816
- 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)() : "";
4817
4821
  if (process.env.NODE_ENV === "development" && startVisualizer && (startVisualizer(), startVisualizer = void 0), !hasSetupBaseViews) {
4818
4822
  hasSetupBaseViews = !0;
4819
4823
  let baseViews2 = (_b = (_a2 = import_setupHooks.hooks).getBaseViews) == null ? void 0 : _b.call(_a2);
@@ -4904,32 +4908,29 @@ var require_createComponent_native = __commonJS({
4904
4908
  };
4905
4909
  typeof stateRef.current.isListeningToTheme == "boolean" && (themeStateProps.shouldUpdate = () => stateRef.current.isListeningToTheme), themeStateProps.deopt = willBeAnimated;
4906
4910
  let isExiting = !state.unmounted && (presence == null ? void 0 : presence[0]) === !1;
4907
- if (process.env.NODE_ENV === "development") {
4908
- let id = (0, import_react3.useId)();
4909
- if (debugProp && debugProp !== "profile") {
4910
- 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}`;
4911
- console.group(
4912
- `%c ${banner} (unmounted: ${state.unmounted})${presence ? ` (presence: ${presence[0]})` : ""} ${isHydrated ? "\u{1F4A6}" : "\u{1F3DC}\uFE0F"}`,
4913
- "background: green; color: white;"
4914
- ), import_constants2.isServer || (console.groupCollapsed(
4915
- `Info (collapsed): ${state.press || state.pressIn ? "PRESSED " : ""}${state.hover ? "HOVERED " : ""}${state.focus ? "FOCUSED" : " "}`
4916
- ), (0, import_log.log)({
4917
- propsIn,
4918
- props,
4919
- state,
4920
- staticConfig,
4921
- elementType,
4922
- themeStateProps,
4923
- styledContext: { contextProps: styledContextProps, overriddenContextProps },
4924
- presence,
4925
- isAnimated,
4926
- isHOC,
4927
- hasAnimationProp,
4928
- useAnimations,
4929
- propsInOrder: Object.keys(propsIn),
4930
- propsOrder: Object.keys(props)
4931
- }), console.groupEnd());
4932
- }
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());
4933
4934
  }
4934
4935
  process.env.NODE_ENV === "development" && time && time`pre-theme-media`;
4935
4936
  let [themeState, theme] = (0, import_useTheme.useThemeWithState)(themeStateProps);
@@ -5155,8 +5156,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5155
5156
  direction,
5156
5157
  isZStack,
5157
5158
  debug: debugProp
5158
- });
5159
- 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`;
5160
5161
  let useChildrenResult;
5161
5162
  import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(
5162
5163
  elementType,
@@ -5194,7 +5195,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5194
5195
  content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { ...contextValue, ...overriddenContextProps, children: content });
5195
5196
  }
5196
5197
  if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile") {
5197
- console.groupCollapsed(`render <${typeof elementType == "string" ? elementType : "Component"} /> with props`);
5198
+ console.groupCollapsed(`render <${typeof elementType == "string" ? elementType : "Component"} /> (${internalID}) with props`);
5198
5199
  try {
5199
5200
  (0, import_log.log)("viewProps", viewProps), (0, import_log.log)("viewPropsOrder", Object.keys(viewProps));
5200
5201
  for (let key in viewProps)
@@ -5212,8 +5213,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5212
5213
  handlesPressEvents,
5213
5214
  willBeAnimated,
5214
5215
  isStringElement,
5215
- classNamesIn: (_l = props.className) == null ? void 0 : _l.split(" "),
5216
- 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(" "),
5217
5218
  events,
5218
5219
  shouldAttach,
5219
5220
  pseudos,