@tamagui/core 1.75.4 → 1.75.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.
- package/dist/native.js +5 -14
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +4 -6
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
package/dist/test.native.js
CHANGED
|
@@ -3895,9 +3895,7 @@ var require_ThemeManager_native = __commonJS({
|
|
|
3895
3895
|
return this.updateState(nextState, shouldNotify), nextState;
|
|
3896
3896
|
}
|
|
3897
3897
|
updateState(nextState, shouldNotify = !0) {
|
|
3898
|
-
this.state = nextState, this._allKeys = null, this._numChangeEventsSent ??= 0, this._numChangeEventsSent++, shouldNotify &&
|
|
3899
|
-
this.notify();
|
|
3900
|
-
});
|
|
3898
|
+
this.state = nextState, this._allKeys = null, this._numChangeEventsSent ??= 0, this._numChangeEventsSent++, shouldNotify && this.notify();
|
|
3901
3899
|
}
|
|
3902
3900
|
getStateIfChanged(props = this.props, state = this.state, parentManager = this.parentManager) {
|
|
3903
3901
|
let _ = this.getState(props, parentManager);
|
|
@@ -3944,7 +3942,7 @@ var require_ThemeManager_native = __commonJS({
|
|
|
3944
3942
|
let nextName = props.reset ? baseName : props.name || "", allComponentThemes = componentManagers.map((x) => (x == null ? void 0 : x.state.name) || "");
|
|
3945
3943
|
isDirectParentAComponentTheme && allComponentThemes.shift();
|
|
3946
3944
|
let base = baseName.split(import_constants22.THEME_NAME_SEPARATOR), max = base.length, min = props.componentName && !nextName ? max : 0;
|
|
3947
|
-
typeof props.debug == "string" && (console.groupCollapsed("ThemeManager.getState()"), console.info({ props, baseName, base, min, max }));
|
|
3945
|
+
typeof props.debug == "string" && typeof window < "u" && (console.groupCollapsed("ThemeManager.getState()"), console.info({ props, baseName, base, min, max }));
|
|
3948
3946
|
for (let i = max; i >= min; i--) {
|
|
3949
3947
|
let prefix = base.slice(0, i).join(import_constants22.THEME_NAME_SEPARATOR);
|
|
3950
3948
|
props.inverse && (prefix = inverseThemeName(prefix));
|
|
@@ -4124,9 +4122,9 @@ var require_useTheme_native = __commonJS({
|
|
|
4124
4122
|
let cur = manager;
|
|
4125
4123
|
for (; cur; ) {
|
|
4126
4124
|
if (!cur.parentManager)
|
|
4127
|
-
return !0;
|
|
4128
|
-
if (cur.parentManager.state.scheme !== cur.state.scheme)
|
|
4129
4125
|
return !1;
|
|
4126
|
+
if (cur.parentManager.state.scheme !== cur.state.scheme)
|
|
4127
|
+
return !0;
|
|
4130
4128
|
cur = cur.parentManager;
|
|
4131
4129
|
}
|
|
4132
4130
|
}
|