@tamagui/core 1.85.9-1705340264375 → 1.85.10
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 +3 -5
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +3 -5
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
package/dist/test.native.js
CHANGED
|
@@ -1467,9 +1467,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1467
1467
|
theme: values
|
|
1468
1468
|
};
|
|
1469
1469
|
for (let selector of selectors) {
|
|
1470
|
-
let
|
|
1471
|
-
name.startsWith(scheme) && (name = name.slice(scheme.length + 1)), scheme === name && (scheme = "");
|
|
1472
|
-
let themeName = `${scheme}${scheme && name ? "_" : ""}${name}`;
|
|
1470
|
+
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;
|
|
1473
1471
|
dedupedEntry.names.includes(themeName) || dedupedEntry.names.push(themeName);
|
|
1474
1472
|
}
|
|
1475
1473
|
return dedupedEntry;
|
|
@@ -1894,7 +1892,7 @@ var require_ThemeManager_native = __commonJS({
|
|
|
1894
1892
|
return this.updateState(nextState, shouldNotify), nextState;
|
|
1895
1893
|
}
|
|
1896
1894
|
updateState(nextState, shouldNotify = !0) {
|
|
1897
|
-
this.state = nextState, this._allKeys = null,
|
|
1895
|
+
this.state = nextState, this._allKeys = null, shouldNotify && this.notify();
|
|
1898
1896
|
}
|
|
1899
1897
|
getStateIfChanged(props = this.props, state = this.state, parentManager = this.parentManager) {
|
|
1900
1898
|
let _ = this.getState(props, parentManager);
|
|
@@ -1917,7 +1915,7 @@ var require_ThemeManager_native = __commonJS({
|
|
|
1917
1915
|
]), this._allKeys;
|
|
1918
1916
|
}
|
|
1919
1917
|
notify(forced = !1) {
|
|
1920
|
-
this.themeListeners.forEach((cb) => cb(this.state.name, this, forced))
|
|
1918
|
+
this.themeListeners.forEach((cb) => cb(this.state.name, this, forced)), this._numChangeEventsSent ??= 0, this._numChangeEventsSent++;
|
|
1921
1919
|
}
|
|
1922
1920
|
onChangeTheme(cb, debugId) {
|
|
1923
1921
|
return debugId && (this._listeningIds ??= /* @__PURE__ */ new Set(), this._listeningIds.add(debugId)), this.themeListeners.add(cb), () => {
|