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/test.native.js
CHANGED
|
@@ -9581,7 +9581,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
9581
9581
|
var sep;
|
|
9582
9582
|
if (fontDeclarations) for (var key22 in fontDeclarations) var name1, declarations1, language1, fontSelector, langSelector, selectors, specificRuleSet;
|
|
9583
9583
|
}
|
|
9584
|
-
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
9584
|
+
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn, tokens.color), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
9585
9585
|
return {
|
|
9586
9586
|
themes,
|
|
9587
9587
|
cssRuleSets,
|
|
@@ -9683,7 +9683,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
9683
9683
|
var _process_env_DEBUG;
|
|
9684
9684
|
return config;
|
|
9685
9685
|
}
|
|
9686
|
-
function getThemesDeduped(themes) {
|
|
9686
|
+
function getThemesDeduped(themes, colorTokens) {
|
|
9687
9687
|
var dedupedThemes = [], existing = /* @__PURE__ */ new Map();
|
|
9688
9688
|
for (var themeName in themes) {
|
|
9689
9689
|
var darkOrLightSpecificPrefix = themeName.startsWith("dark") ? "dark" : themeName.startsWith("light") ? "light" : "", rawTheme = themes[themeName], key = darkOrLightSpecificPrefix + JSON.stringify(rawTheme);
|
|
@@ -9695,6 +9695,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
9695
9695
|
var theme = {
|
|
9696
9696
|
...rawTheme
|
|
9697
9697
|
};
|
|
9698
|
+
colorTokens && Object.assign(theme, colorTokens);
|
|
9698
9699
|
for (var key1 in theme) (0, import_themes.ensureThemeVariable)(theme, key1);
|
|
9699
9700
|
var deduped = {
|
|
9700
9701
|
names: [
|
|
@@ -10933,12 +10934,13 @@ var require_FontLanguage_native = __commonJS({
|
|
|
10933
10934
|
});
|
|
10934
10935
|
module2.exports = __toCommonJS2(FontLanguage_native_exports);
|
|
10935
10936
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), FontLanguage2 = function(param) {
|
|
10936
|
-
var { children, ...props } = param, language = import_react3.default.useMemo(function() {
|
|
10937
|
+
var { children, ...props } = param, parentProps = import_react3.default.useContext(import_ComponentContext.ComponentContext), language = import_react3.default.useMemo(function() {
|
|
10937
10938
|
return props;
|
|
10938
10939
|
}, [
|
|
10939
10940
|
JSON.stringify(props)
|
|
10940
10941
|
]);
|
|
10941
10942
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10943
|
+
...parentProps,
|
|
10942
10944
|
language,
|
|
10943
10945
|
children
|
|
10944
10946
|
});
|