@tamagui/core 1.131.1 → 1.131.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.
@@ -6063,6 +6063,8 @@ var require_useThemeState_native = __commonJS({
6063
6063
  if (name && reset) throw new Error("Cannot reset and set a new name at the same time.");
6064
6064
  var { themes: themes2 } = (0, import_config.getConfig)();
6065
6065
  if (reset) {
6066
+ var isSchemeOnly = parentName === "light" || parentName === "dark";
6067
+ if (isSchemeOnly) return parentName === "light" ? "dark" : "light";
6066
6068
  var lastPartIndex = parentName.lastIndexOf("_"), name1 = lastPartIndex <= 0 ? parentName : parentName.slice(lastPartIndex), scheme = parentName.slice(0, lastPartIndex), result = themes2[name1] ? name1 : scheme;
6067
6069
  return result;
6068
6070
  }