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.
package/dist/native.js CHANGED
@@ -1366,7 +1366,7 @@ var require_insertStyleRule_native = __commonJS({
1366
1366
  theme: values
1367
1367
  };
1368
1368
  for (let selector of selectors) {
1369
- let scheme = selector.includes("t_dark") ? "dark" : selector.includes("t_light") ? "light" : "", name = selector.slice(selector.lastIndexOf(".t_") + 3);
1369
+ 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);
1370
1370
  name.startsWith(scheme) && (name = name.slice(scheme.length + 1)), scheme === name && (scheme = "");
1371
1371
  let themeName = `${scheme}${scheme && name ? "_" : ""}${name}`;
1372
1372
  dedupedEntry.names.includes(themeName) || dedupedEntry.names.push(themeName);