tamagui 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/cjs/setup.js +21 -1
- package/dist/cjs/setup.js.map +1 -1
- package/dist/cjs/setup.native.js +21 -1
- package/dist/cjs/setup.native.js.map +1 -1
- package/dist/cjs/views/Anchor.js +1 -1
- package/dist/cjs/views/Input.js +1 -1
- package/dist/cjs/views/Spinner.js +1 -1
- package/dist/esm/setup.js +2 -0
- package/dist/esm/setup.js.map +1 -1
- package/dist/esm/setup.native.js +2 -0
- package/dist/esm/setup.native.js.map +1 -1
- package/dist/esm/views/Anchor.js +1 -1
- package/dist/esm/views/Input.js +1 -1
- package/dist/esm/views/Spinner.js +1 -1
- package/dist/jsx/setup.js +2 -0
- package/dist/jsx/setup.js.map +1 -1
- package/dist/jsx/setup.native.js +2 -0
- package/dist/jsx/setup.native.js.map +1 -1
- package/dist/jsx/views/Anchor.js +1 -1
- package/dist/jsx/views/Input.js +1 -1
- package/dist/jsx/views/Spinner.js +1 -1
- package/dist/native.js +9 -15
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +8 -7
- package/dist/test.native.js.map +1 -1
- package/package.json +52 -52
- package/src/setup.ts +6 -0
package/dist/test.native.js
CHANGED
|
@@ -3264,9 +3264,7 @@ var require_ThemeManager_native = __commonJS({
|
|
|
3264
3264
|
return this.updateState(nextState, shouldNotify), nextState;
|
|
3265
3265
|
}
|
|
3266
3266
|
updateState(nextState, shouldNotify = !0) {
|
|
3267
|
-
this.state = nextState, this._allKeys = null, this._numChangeEventsSent ??= 0, this._numChangeEventsSent++, shouldNotify &&
|
|
3268
|
-
this.notify();
|
|
3269
|
-
});
|
|
3267
|
+
this.state = nextState, this._allKeys = null, this._numChangeEventsSent ??= 0, this._numChangeEventsSent++, shouldNotify && this.notify();
|
|
3270
3268
|
}
|
|
3271
3269
|
getStateIfChanged(props = this.props, state = this.state, parentManager = this.parentManager) {
|
|
3272
3270
|
let _ = this.getState(props, parentManager);
|
|
@@ -3313,7 +3311,7 @@ var require_ThemeManager_native = __commonJS({
|
|
|
3313
3311
|
let nextName = props.reset ? baseName : props.name || "", allComponentThemes = componentManagers.map((x) => (x == null ? void 0 : x.state.name) || "");
|
|
3314
3312
|
isDirectParentAComponentTheme && allComponentThemes.shift();
|
|
3315
3313
|
let base = baseName.split(import_constants2.THEME_NAME_SEPARATOR), max2 = base.length, min2 = props.componentName && !nextName ? max2 : 0;
|
|
3316
|
-
typeof props.debug == "string" && (console.groupCollapsed("ThemeManager.getState()"), console.info({ props, baseName, base, min: min2, max: max2 }));
|
|
3314
|
+
typeof props.debug == "string" && typeof window < "u" && (console.groupCollapsed("ThemeManager.getState()"), console.info({ props, baseName, base, min: min2, max: max2 }));
|
|
3317
3315
|
for (let i = max2; i >= min2; i--) {
|
|
3318
3316
|
let prefix = base.slice(0, i).join(import_constants2.THEME_NAME_SEPARATOR);
|
|
3319
3317
|
props.inverse && (prefix = inverseThemeName(prefix));
|
|
@@ -3493,9 +3491,9 @@ var require_useTheme_native = __commonJS({
|
|
|
3493
3491
|
let cur = manager;
|
|
3494
3492
|
for (; cur; ) {
|
|
3495
3493
|
if (!cur.parentManager)
|
|
3496
|
-
return !0;
|
|
3497
|
-
if (cur.parentManager.state.scheme !== cur.state.scheme)
|
|
3498
3494
|
return !1;
|
|
3495
|
+
if (cur.parentManager.state.scheme !== cur.state.scheme)
|
|
3496
|
+
return !0;
|
|
3499
3497
|
cur = cur.parentManager;
|
|
3500
3498
|
}
|
|
3501
3499
|
}
|
|
@@ -11434,8 +11432,11 @@ var require_useCurrentColor_native = __commonJS({
|
|
|
11434
11432
|
});
|
|
11435
11433
|
module2.exports = __toCommonJS2(useCurrentColor_exports);
|
|
11436
11434
|
var import_web = require_index_native9(), useCurrentColor = (colorProp) => {
|
|
11435
|
+
var _a;
|
|
11437
11436
|
let theme = (0, import_web.useTheme)();
|
|
11438
|
-
return (0, import_web.getVariable)(
|
|
11437
|
+
return (0, import_web.getVariable)(
|
|
11438
|
+
colorProp || ((_a = theme[colorProp]) == null ? void 0 : _a.get("web")) || theme.color.get("web")
|
|
11439
|
+
);
|
|
11439
11440
|
};
|
|
11440
11441
|
}
|
|
11441
11442
|
});
|