@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/test.native.js
CHANGED
|
@@ -8476,7 +8476,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
8476
8476
|
var sep;
|
|
8477
8477
|
if (fontDeclarations) for (var key22 in fontDeclarations) var name1, declarations1, language1, fontSelector, langSelector, selectors, specificRuleSet;
|
|
8478
8478
|
}
|
|
8479
|
-
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
8479
|
+
var themesIn = configIn.themes, dedupedThemes = foundThemes ?? getThemesDeduped(themesIn, tokens.color), themes = (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes);
|
|
8480
8480
|
return {
|
|
8481
8481
|
themes,
|
|
8482
8482
|
cssRuleSets,
|
|
@@ -8578,7 +8578,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
8578
8578
|
var _process_env_DEBUG;
|
|
8579
8579
|
return config;
|
|
8580
8580
|
}
|
|
8581
|
-
function getThemesDeduped(themes) {
|
|
8581
|
+
function getThemesDeduped(themes, colorTokens) {
|
|
8582
8582
|
var dedupedThemes = [], existing = /* @__PURE__ */ new Map();
|
|
8583
8583
|
for (var themeName in themes) {
|
|
8584
8584
|
var darkOrLightSpecificPrefix = themeName.startsWith("dark") ? "dark" : themeName.startsWith("light") ? "light" : "", rawTheme = themes[themeName], key = darkOrLightSpecificPrefix + JSON.stringify(rawTheme);
|
|
@@ -8590,6 +8590,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
8590
8590
|
var theme = {
|
|
8591
8591
|
...rawTheme
|
|
8592
8592
|
};
|
|
8593
|
+
colorTokens && Object.assign(theme, colorTokens);
|
|
8593
8594
|
for (var key1 in theme) (0, import_themes.ensureThemeVariable)(theme, key1);
|
|
8594
8595
|
var deduped = {
|
|
8595
8596
|
names: [
|
|
@@ -9828,12 +9829,13 @@ var require_FontLanguage_native = __commonJS({
|
|
|
9828
9829
|
});
|
|
9829
9830
|
module2.exports = __toCommonJS2(FontLanguage_native_exports);
|
|
9830
9831
|
var import_jsx_runtime2 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), FontLanguage = function(param) {
|
|
9831
|
-
var { children, ...props } = param, language = import_react3.default.useMemo(function() {
|
|
9832
|
+
var { children, ...props } = param, parentProps = import_react3.default.useContext(import_ComponentContext.ComponentContext), language = import_react3.default.useMemo(function() {
|
|
9832
9833
|
return props;
|
|
9833
9834
|
}, [
|
|
9834
9835
|
JSON.stringify(props)
|
|
9835
9836
|
]);
|
|
9836
9837
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
9838
|
+
...parentProps,
|
|
9837
9839
|
language,
|
|
9838
9840
|
children
|
|
9839
9841
|
});
|