@tamagui/core 1.79.0 → 1.79.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 CHANGED
@@ -3445,18 +3445,18 @@ var require_propMapper_native = __commonJS({
3445
3445
  fontSize: "size",
3446
3446
  fontWeight: "weight"
3447
3447
  }, lastFontFamilyToken = null, getTokenForKey = (key, value, resolveAs = "none", styleState) => {
3448
- var _a, _b;
3448
+ var _a, _b, _c;
3449
3449
  if (resolveAs === "none")
3450
3450
  return value;
3451
3451
  let { theme, conf = (0, import_config.getConfig)(), context, fontFamily } = styleState, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1;
3452
3452
  if (theme && value in theme)
3453
- process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.info(` - getting theme value for ${key} from ${value}`), valOrVar = theme[value], hasSet = !0;
3453
+ valOrVar = theme[value], process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.info(` - resolving ${key} to theme value ${value}: ${(_a = valOrVar == null ? void 0 : valOrVar.get) == null ? void 0 : _a.call(valOrVar)}`), hasSet = !0;
3454
3454
  else if (value in conf.specificTokens)
3455
3455
  hasSet = !0, valOrVar = conf.specificTokens[value];
3456
3456
  else {
3457
3457
  switch (key) {
3458
3458
  case "fontFamily": {
3459
- valOrVar = ((_a = (context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed)[value]) == null ? void 0 : _a.family) || value, lastFontFamilyToken = value, hasSet = !0;
3459
+ valOrVar = ((_b = (context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed)[value]) == null ? void 0 : _b.family) || value, lastFontFamilyToken = value, hasSet = !0;
3460
3460
  break;
3461
3461
  }
3462
3462
  case "fontSize":
@@ -3466,7 +3466,7 @@ var require_propMapper_native = __commonJS({
3466
3466
  let defaultFont = conf.defaultFont || "$body", fam = fontFamily || defaultFont;
3467
3467
  if (fam) {
3468
3468
  let fontsParsed = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed[fam] || fontsParsed[defaultFont];
3469
- valOrVar = ((_b = font == null ? void 0 : font[fontShorthand[key] || key]) == null ? void 0 : _b[value]) || value, hasSet = !0;
3469
+ valOrVar = ((_c = font == null ? void 0 : font[fontShorthand[key] || key]) == null ? void 0 : _c[value]) || value, hasSet = !0;
3470
3470
  }
3471
3471
  break;
3472
3472
  }
@@ -3483,7 +3483,7 @@ var require_propMapper_native = __commonJS({
3483
3483
  }
3484
3484
  if (hasSet) {
3485
3485
  let out = resolveVariableValue(key, valOrVar, resolveAs);
3486
- return process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.info("resolved", resolveAs, valOrVar.get, out), out;
3486
+ return process.env.NODE_ENV === "development" && styleState.debug === "verbose" && console.info("resolved", resolveAs, valOrVar, out), out;
3487
3487
  }
3488
3488
  return process.env.NODE_ENV === "development" && import_isDevTools.isDevTools && styleState.debug === "verbose" && (console.groupCollapsed(" \uFE52 propMap (val)", key, value), console.info({ valOrVar, theme, hasSet }, theme ? theme[key] : ""), console.groupEnd()), value;
3489
3489
  };
@@ -3493,7 +3493,7 @@ var require_propMapper_native = __commonJS({
3493
3493
  if ((0, import_createVariable.isVariable)(valOrVar)) {
3494
3494
  if (resolveValues === "value")
3495
3495
  return valOrVar.val;
3496
- let get = valOrVar.get;
3496
+ let get = valOrVar == null ? void 0 : valOrVar.get;
3497
3497
  return key !== "shadowColor" && typeof get == "function" ? get(resolveValues === "web" ? "web" : void 0) : valOrVar.val;
3498
3498
  }
3499
3499
  return valOrVar;
@@ -4899,6 +4899,7 @@ var require_createComponent_native = __commonJS({
4899
4899
  componentName,
4900
4900
  disable: disableTheme,
4901
4901
  shallow: stateRef.current.themeShallow,
4902
+ inverse: props.themeInverse,
4902
4903
  debug: debugProp
4903
4904
  };
4904
4905
  typeof stateRef.current.isListeningToTheme == "boolean" && (themeStateProps.shouldUpdate = () => stateRef.current.isListeningToTheme), themeStateProps.deopt = willBeAnimated;