tamagui 1.74.0 → 1.74.2
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 +2 -2
- package/dist/test.native.js +6 -6
- package/dist/test.native.js.map +2 -2
- package/package.json +52 -52
package/dist/native.js
CHANGED
|
@@ -3581,6 +3581,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
3581
3581
|
function getThemeProxied({ theme, name }, deopt = !1, themeManager, keys, debug) {
|
|
3582
3582
|
if (!theme)
|
|
3583
3583
|
return {};
|
|
3584
|
+
let config = (0, import_config.getConfig)();
|
|
3584
3585
|
function track(key) {
|
|
3585
3586
|
keys && !keys.includes(key) && (keys.push(key), process.env.NODE_ENV === "development" && debug && console.log(` \u{1F3A8} useTheme() tracking new key: ${key}`));
|
|
3586
3587
|
}
|
|
@@ -3610,13 +3611,13 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
3610
3611
|
else if (subkey === "get")
|
|
3611
3612
|
return () => {
|
|
3612
3613
|
let outVal = (0, import_createVariable.getVariable)(val);
|
|
3613
|
-
if (import_constants.isIos && !deopt) {
|
|
3614
|
+
if (import_constants.isIos && !deopt && config.settings.fastSchemeChange) {
|
|
3614
3615
|
let isDark = name.startsWith("dark"), isLight = !isDark && name.startsWith("light");
|
|
3615
3616
|
if (isDark || isLight) {
|
|
3616
3617
|
let oppositeThemeName = name.replace(
|
|
3617
3618
|
isDark ? "dark" : "light",
|
|
3618
3619
|
isDark ? "light" : "dark"
|
|
3619
|
-
), oppositeTheme =
|
|
3620
|
+
), oppositeTheme = config.themes[oppositeThemeName], oppositeVal = (0, import_createVariable.getVariable)(oppositeTheme == null ? void 0 : oppositeTheme[keyString]);
|
|
3620
3621
|
if (oppositeVal)
|
|
3621
3622
|
return {
|
|
3622
3623
|
dynamic: {
|
|
@@ -3664,7 +3665,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
3664
3665
|
let selfListenerDispose = themeManager.onChangeTheme((_a, _b, forced) => {
|
|
3665
3666
|
forced && setThemeState((prev) => createState(prev, !0));
|
|
3666
3667
|
}), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme((name, manager) => {
|
|
3667
|
-
let force = (shouldUpdate == null ? void 0 : shouldUpdate()) || props.deopt || props["disable-child-theme"], doUpdate = force ?? !!(keys != null && keys.length);
|
|
3668
|
+
let force = (shouldUpdate == null ? void 0 : shouldUpdate()) || props.deopt || props["disable-child-theme"], doUpdate = force ?? !!(keys != null && keys.length || isNewTheme);
|
|
3668
3669
|
process.env.NODE_ENV === "development" && props.debug && console.log(" \u{1F538} onChange", themeManager.id, {
|
|
3669
3670
|
force,
|
|
3670
3671
|
doUpdate,
|
|
@@ -4169,7 +4170,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4169
4170
|
),
|
|
4170
4171
|
debug: debugProp
|
|
4171
4172
|
};
|
|
4172
|
-
themeStateProps.deopt =
|
|
4173
|
+
themeStateProps.deopt = willBeAnimated;
|
|
4173
4174
|
let isExiting = !state.unmounted && (presence == null ? void 0 : presence[0]) === !1;
|
|
4174
4175
|
if (process.env.NODE_ENV === "development") {
|
|
4175
4176
|
let id = (0, import_react2.useId)();
|
|
@@ -13193,8 +13194,7 @@ var require_Group_native = __commonJS({
|
|
|
13193
13194
|
variants: {
|
|
13194
13195
|
unstyled: {
|
|
13195
13196
|
false: {
|
|
13196
|
-
size: "$true"
|
|
13197
|
-
y: 0
|
|
13197
|
+
size: "$true"
|
|
13198
13198
|
}
|
|
13199
13199
|
},
|
|
13200
13200
|
size: (val, { tokens }) => ({
|