@tamagui/core 1.132.15 → 1.132.16
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 -3
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +5 -3
- package/dist/test.native.js.map +2 -2
- package/package.json +10 -10
package/dist/native.js
CHANGED
|
@@ -9040,7 +9040,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
9040
9040
|
var sep;
|
|
9041
9041
|
if (fontDeclarations) for (var key22 in fontDeclarations) var name1, declarations1, language1, fontSelector, langSelector, selectors, specificRuleSet;
|
|
9042
9042
|
}
|
|
9043
|
-
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
9043
|
+
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn, tokens.color), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
9044
9044
|
return {
|
|
9045
9045
|
themes,
|
|
9046
9046
|
cssRuleSets,
|
|
@@ -9144,7 +9144,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
9144
9144
|
}
|
|
9145
9145
|
return config;
|
|
9146
9146
|
}
|
|
9147
|
-
function getThemesDeduped(themes) {
|
|
9147
|
+
function getThemesDeduped(themes, colorTokens) {
|
|
9148
9148
|
var dedupedThemes = [], existing = /* @__PURE__ */ new Map();
|
|
9149
9149
|
for (var themeName in themes) {
|
|
9150
9150
|
var darkOrLightSpecificPrefix = themeName.startsWith("dark") ? "dark" : themeName.startsWith("light") ? "light" : "", rawTheme = themes[themeName], key = darkOrLightSpecificPrefix + JSON.stringify(rawTheme);
|
|
@@ -9156,6 +9156,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
9156
9156
|
var theme = {
|
|
9157
9157
|
...rawTheme
|
|
9158
9158
|
};
|
|
9159
|
+
colorTokens && Object.assign(theme, colorTokens);
|
|
9159
9160
|
for (var key1 in theme) (0, import_themes.ensureThemeVariable)(theme, key1);
|
|
9160
9161
|
var deduped = {
|
|
9161
9162
|
names: [
|
|
@@ -10394,12 +10395,13 @@ var require_FontLanguage_native = __commonJS({
|
|
|
10394
10395
|
});
|
|
10395
10396
|
module2.exports = __toCommonJS2(FontLanguage_native_exports);
|
|
10396
10397
|
var import_jsx_runtime2 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), FontLanguage = function(param) {
|
|
10397
|
-
var { children, ...props } = param, language = import_react3.default.useMemo(function() {
|
|
10398
|
+
var { children, ...props } = param, parentProps = import_react3.default.useContext(import_ComponentContext.ComponentContext), language = import_react3.default.useMemo(function() {
|
|
10398
10399
|
return props;
|
|
10399
10400
|
}, [
|
|
10400
10401
|
JSON.stringify(props)
|
|
10401
10402
|
]);
|
|
10402
10403
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10404
|
+
...parentProps,
|
|
10403
10405
|
language,
|
|
10404
10406
|
children
|
|
10405
10407
|
});
|