tamagui 1.85.4 → 1.85.6

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.
@@ -1336,17 +1336,20 @@ var require_insertStyleRule_native = __commonJS({
1336
1336
  !0
1337
1337
  );
1338
1338
  }
1339
- let dedupedEntry = {
1340
- names: [],
1339
+ return {
1340
+ names: [
1341
+ ...new Set(
1342
+ selectors.map((selector) => {
1343
+ let parts = selector.replace(/(.t_|:root)/g, "").trim().split(" "), [first] = parts, scheme = first.includes("dark") ? "dark" : first.includes("light") ? "light" : "", name = (() => {
1344
+ let _ = parts[parts.length - 1];
1345
+ return scheme && _.startsWith(scheme) && (_ = _.slice(scheme.length + 1)), _;
1346
+ })();
1347
+ return `${scheme}${scheme && name ? "_" : ""}${name}`;
1348
+ })
1349
+ )
1350
+ ],
1341
1351
  theme: values
1342
1352
  };
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);
1345
- name.startsWith(scheme) && (name = name.slice(scheme.length + 1)), scheme === name && (scheme = "");
1346
- let themeName = `${scheme}${scheme && name ? "_" : ""}${name}`;
1347
- dedupedEntry.names.includes(themeName) || dedupedEntry.names.push(themeName);
1348
- }
1349
- return dedupedEntry;
1350
1353
  }
1351
1354
  function getTamaguiSelector(rule, collectThemes = !1) {
1352
1355
  if (rule instanceof CSSStyleRule) {