@tamagui/core 1.85.4 → 1.85.5

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.
@@ -1467,7 +1467,7 @@ var require_insertStyleRule_native = __commonJS({
1467
1467
  theme: values
1468
1468
  };
1469
1469
  for (let selector of selectors) {
1470
- let scheme = selector.includes("t_dark") ? "dark" : selector.includes("t_light") ? "light" : "", name = selector.slice(selector.lastIndexOf(".t_") + 3);
1470
+ let di = selector.indexOf("t_dark"), li = selector.indexOf("t_light"), scheme = di && li ? di < li ? "dark" : "light" : "", name = selector.slice(selector.lastIndexOf(".t_") + 3);
1471
1471
  name.startsWith(scheme) && (name = name.slice(scheme.length + 1)), scheme === name && (scheme = "");
1472
1472
  let themeName = `${scheme}${scheme && name ? "_" : ""}${name}`;
1473
1473
  dedupedEntry.names.includes(themeName) || dedupedEntry.names.push(themeName);