tamagui 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 +55 -55
package/dist/native.js
CHANGED
|
@@ -10145,7 +10145,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
10145
10145
|
var sep;
|
|
10146
10146
|
if (fontDeclarations) for (var key22 in fontDeclarations) var name1, declarations1, language1, fontSelector, langSelector, selectors, specificRuleSet;
|
|
10147
10147
|
}
|
|
10148
|
-
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
10148
|
+
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn, tokens.color), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
10149
10149
|
return {
|
|
10150
10150
|
themes,
|
|
10151
10151
|
cssRuleSets,
|
|
@@ -10249,7 +10249,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
10249
10249
|
}
|
|
10250
10250
|
return config;
|
|
10251
10251
|
}
|
|
10252
|
-
function getThemesDeduped(themes) {
|
|
10252
|
+
function getThemesDeduped(themes, colorTokens) {
|
|
10253
10253
|
var dedupedThemes = [], existing = /* @__PURE__ */ new Map();
|
|
10254
10254
|
for (var themeName in themes) {
|
|
10255
10255
|
var darkOrLightSpecificPrefix = themeName.startsWith("dark") ? "dark" : themeName.startsWith("light") ? "light" : "", rawTheme = themes[themeName], key = darkOrLightSpecificPrefix + JSON.stringify(rawTheme);
|
|
@@ -10261,6 +10261,7 @@ ${JSON.stringify(variable, null, 2)}`);
|
|
|
10261
10261
|
var theme = {
|
|
10262
10262
|
...rawTheme
|
|
10263
10263
|
};
|
|
10264
|
+
colorTokens && Object.assign(theme, colorTokens);
|
|
10264
10265
|
for (var key1 in theme) (0, import_themes.ensureThemeVariable)(theme, key1);
|
|
10265
10266
|
var deduped = {
|
|
10266
10267
|
names: [
|
|
@@ -11499,12 +11500,13 @@ var require_FontLanguage_native = __commonJS({
|
|
|
11499
11500
|
});
|
|
11500
11501
|
module2.exports = __toCommonJS2(FontLanguage_native_exports);
|
|
11501
11502
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), FontLanguage2 = function(param) {
|
|
11502
|
-
var { children, ...props } = param, language = import_react3.default.useMemo(function() {
|
|
11503
|
+
var { children, ...props } = param, parentProps = import_react3.default.useContext(import_ComponentContext.ComponentContext), language = import_react3.default.useMemo(function() {
|
|
11503
11504
|
return props;
|
|
11504
11505
|
}, [
|
|
11505
11506
|
JSON.stringify(props)
|
|
11506
11507
|
]);
|
|
11507
11508
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
11509
|
+
...parentProps,
|
|
11508
11510
|
language,
|
|
11509
11511
|
children
|
|
11510
11512
|
});
|