@tamagui/core 1.85.10 → 1.85.12
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 +6 -6
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +6 -6
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -1503,7 +1503,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1503
1503
|
};
|
|
1504
1504
|
for (let selector of selectors) {
|
|
1505
1505
|
let matches = selector.match(/(.t_(light|dark))?[\s]?(.t_([a-z0-9_]+))[\s]*$/i) || [], [_0, _1, scheme, _2, name] = matches, themeName = name && scheme && scheme !== name ? `${scheme}_${name}` : name || scheme;
|
|
1506
|
-
dedupedEntry.names.includes(themeName) || dedupedEntry.names.push(themeName);
|
|
1506
|
+
dedupedEntry.names.includes(themeName) || themeName === "light_dark" || dedupedEntry.names.push(themeName);
|
|
1507
1507
|
}
|
|
1508
1508
|
return dedupedEntry;
|
|
1509
1509
|
}
|
|
@@ -2208,11 +2208,11 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
2208
2208
|
}
|
|
2209
2209
|
return !1;
|
|
2210
2210
|
}
|
|
2211
|
-
var activeThemeManagers = /* @__PURE__ */ new Set(),
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2211
|
+
var activeThemeManagers = /* @__PURE__ */ new Set(), _uidToManager = /* @__PURE__ */ new WeakMap(), _idToUID = {}, getId = (id) => _idToUID[id], getThemeManager = (id) => _uidToManager.get(getId(id)), registerThemeManager = (t) => {
|
|
2212
|
+
if (!_idToUID[t.id]) {
|
|
2213
|
+
let id = _idToUID[t.id] = {};
|
|
2214
|
+
_uidToManager.set(id, t);
|
|
2215
|
+
}
|
|
2216
2216
|
}, useChangeThemeEffect = (props, isRoot = !1, keys, shouldUpdate) => {
|
|
2217
2217
|
let { disable } = props, parentManagerId = (0, import_react3.useContext)(import_ThemeManagerContext.ThemeManagerIDContext), parentManager = getThemeManager(parentManagerId);
|
|
2218
2218
|
if (!isRoot && !parentManager || disable)
|