tamagui 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.
@@ -1341,7 +1341,7 @@ var require_insertStyleRule_native = __commonJS({
1341
1341
  theme: values
1342
1342
  };
1343
1343
  for (let selector of selectors) {
1344
- let scheme = selector.includes("t_dark") ? "dark" : selector.includes("t_light") ? "light" : "", name = selector.slice(selector.lastIndexOf(".t_") + 3);
1344
+ 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);
1345
1345
  name.startsWith(scheme) && (name = name.slice(scheme.length + 1)), scheme === name && (scheme = "");
1346
1346
  let themeName = `${scheme}${scheme && name ? "_" : ""}${name}`;
1347
1347
  dedupedEntry.names.includes(themeName) || dedupedEntry.names.push(themeName);