@tamagui/core 1.131.1 → 1.131.3
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 +2 -0
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +2 -0
- package/dist/test.native.js.map +2 -2
- package/package.json +10 -10
package/dist/native.js
CHANGED
|
@@ -6460,6 +6460,8 @@ var require_useThemeState_native = __commonJS({
|
|
|
6460
6460
|
if (name && reset) throw new Error(process.env.NODE_ENV === "production" ? "\u274C004" : "Cannot reset and set a new name at the same time.");
|
|
6461
6461
|
var { themes: themes2 } = (0, import_config.getConfig)();
|
|
6462
6462
|
if (reset) {
|
|
6463
|
+
var isSchemeOnly = parentName === "light" || parentName === "dark";
|
|
6464
|
+
if (isSchemeOnly) return parentName === "light" ? "dark" : "light";
|
|
6463
6465
|
var lastPartIndex = parentName.lastIndexOf("_"), name1 = lastPartIndex <= 0 ? parentName : parentName.slice(lastPartIndex), scheme = parentName.slice(0, lastPartIndex), result = themes2[name1] ? name1 : scheme;
|
|
6464
6466
|
return result;
|
|
6465
6467
|
}
|