@tamagui/core 3.0.12 → 3.0.14
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.cjs +32 -19
- package/dist/test.native.cjs +30 -17
- package/package.json +13 -13
package/dist/native.cjs
CHANGED
|
@@ -14316,7 +14316,7 @@ function resolveThemeName(parentName, name, themes2) {
|
|
|
14316
14316
|
if (!forceUpdate && found === parentName && found !== "light" && found !== "dark") return null;
|
|
14317
14317
|
return found;
|
|
14318
14318
|
}
|
|
14319
|
-
var ThemeStateContext, allListeners, listenersByParent, HasRenderedOnce, HadTheme, PendingUpdate, states, shouldForce, forceUpdateThemes, getThemeState, themeUpdateLayers, themeProviderParents, getThemeUpdateLayer, getThemeProviderParent, getThemeProviderChainSizes, registerThemeProviderChain, cacheVersion, themeNameCache, themeNameCacheVer, themes, rootThemeState, getRootThemeState, getThemeBaseName, incReducer, useThemeState, shouldSubscribeToTheme, getSnapshotImpl, getNextState, hasThemeUpdatingProps;
|
|
14319
|
+
var ThemeStateContext, allListeners, listenersByParent, HasRenderedOnce, HadTheme, PendingUpdate, states, shouldForce, forceUpdateThemes, getThemeState, themeUpdateLayers, themeProviderParents, getThemeUpdateLayer, getThemeProviderParent, getThemeProviderScope, getThemeProviderChainSizes, registerThemeProviderChain, cacheVersion, themeNameCache, themeNameCacheVer, themes, rootThemeState, getRootThemeState, getThemeBaseName, incReducer, useThemeState, shouldSubscribeToTheme, getSnapshotImpl, getNextState, hasThemeUpdatingProps;
|
|
14320
14320
|
var init_useThemeState_native = __esmMin((() => {
|
|
14321
14321
|
init_index_native$6();
|
|
14322
14322
|
init_index_native$4();
|
|
@@ -14349,7 +14349,12 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14349
14349
|
return themeUpdateLayers.get(id);
|
|
14350
14350
|
};
|
|
14351
14351
|
getThemeProviderParent = function getThemeProviderParent2(id) {
|
|
14352
|
-
|
|
14352
|
+
var _themeProviderParents_get;
|
|
14353
|
+
return (_themeProviderParents_get = themeProviderParents.get(id)) === null || _themeProviderParents_get === void 0 ? void 0 : _themeProviderParents_get.parentId;
|
|
14354
|
+
};
|
|
14355
|
+
getThemeProviderScope = function getThemeProviderScope2(id) {
|
|
14356
|
+
var _themeProviderParents_get;
|
|
14357
|
+
return (_themeProviderParents_get = themeProviderParents.get(id)) === null || _themeProviderParents_get === void 0 ? void 0 : _themeProviderParents_get.keys;
|
|
14353
14358
|
};
|
|
14354
14359
|
getThemeProviderChainSizes = function getThemeProviderChainSizes2() {
|
|
14355
14360
|
return {
|
|
@@ -14357,8 +14362,13 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14357
14362
|
parents: themeProviderParents.size
|
|
14358
14363
|
};
|
|
14359
14364
|
};
|
|
14360
|
-
registerThemeProviderChain = function registerThemeProviderChain2(id, parentId, props) {
|
|
14361
|
-
themeProviderParents.
|
|
14365
|
+
registerThemeProviderChain = function registerThemeProviderChain2(id, parentId, props, keys) {
|
|
14366
|
+
var scope = themeProviderParents.get(id);
|
|
14367
|
+
if (scope) scope.parentId = parentId;
|
|
14368
|
+
else themeProviderParents.set(id, {
|
|
14369
|
+
parentId,
|
|
14370
|
+
keys
|
|
14371
|
+
});
|
|
14362
14372
|
if (props._themeUpdate) themeUpdateLayers.set(id, props._themeUpdate);
|
|
14363
14373
|
else themeUpdateLayers.delete(id);
|
|
14364
14374
|
};
|
|
@@ -14391,7 +14401,7 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14391
14401
|
};
|
|
14392
14402
|
var id = (0, react.useId)();
|
|
14393
14403
|
var propsKey = `${props.name || ""}${props.forceClassName || ""}${((_props__themeUpdate = props._themeUpdate) === null || _props__themeUpdate === void 0 ? void 0 : _props__themeUpdate.key) || ""}`;
|
|
14394
|
-
if (cascadeOnChange) registerThemeProviderChain(id, parentId, props);
|
|
14404
|
+
if (cascadeOnChange) registerThemeProviderChain(id, parentId, props, keys);
|
|
14395
14405
|
var r = (_ref = (0, react.useRef)(null)).current || (_ref.current = {
|
|
14396
14406
|
id,
|
|
14397
14407
|
optimizeForFirstRender,
|
|
@@ -14413,7 +14423,7 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14413
14423
|
states.set(r.id, r.lastSnap);
|
|
14414
14424
|
r.state = r.lastSnap;
|
|
14415
14425
|
}
|
|
14416
|
-
if (cascadeOnChange && !themeProviderParents.has(r.id)) registerThemeProviderChain(r.id, r.parentId, r.props);
|
|
14426
|
+
if (cascadeOnChange && !themeProviderParents.has(r.id)) registerThemeProviderChain(r.id, r.parentId, r.props, r.keys);
|
|
14417
14427
|
if (r.unsubscribe && r.subscribedTo !== r.parentId) {
|
|
14418
14428
|
var _r_unsubscribe;
|
|
14419
14429
|
(_r_unsubscribe = r.unsubscribe) === null || _r_unsubscribe === void 0 || _r_unsubscribe.call(r);
|
|
@@ -15172,7 +15182,7 @@ var init__withNativeStyle_native = __esmMin((() => {
|
|
|
15172
15182
|
var TextAncestorProvider = TextAncestor === null || TextAncestor === void 0 ? void 0 : TextAncestor.Provider;
|
|
15173
15183
|
var HostText = host === "text" && !("userSelect" in baseStyle) && !("verticalAlign" in baseStyle) ? baseViews === null || baseViews === void 0 ? void 0 : baseViews.NativeText : void 0;
|
|
15174
15184
|
var hostTextBase = HostText ? _objectSpread2(_objectSpread2({ overflow: "hidden" }, baseStyle), typeof baseStyle.fontWeight === "number" && { fontWeight: String(baseStyle.fontWeight) }) : baseStyle;
|
|
15175
|
-
var entries = /* @__PURE__ */ new
|
|
15185
|
+
var entries = /* @__PURE__ */ new WeakMap();
|
|
15176
15186
|
var createEntry = function createEntry2() {
|
|
15177
15187
|
var entry = {
|
|
15178
15188
|
style: [baseStyle, null],
|
|
@@ -15191,6 +15201,7 @@ var init__withNativeStyle_native = __esmMin((() => {
|
|
|
15191
15201
|
var ScopeContext = ThemeStateContext;
|
|
15192
15202
|
var engineOf = getNativeStyleEngine;
|
|
15193
15203
|
var scopeState = getThemeState;
|
|
15204
|
+
var scopeOwner = getThemeProviderScope;
|
|
15194
15205
|
var resolve = resolveNativeStyleMapping;
|
|
15195
15206
|
var linkState = createNativeStyleLinkState;
|
|
15196
15207
|
var linkHost = linkNativeStyleHost;
|
|
@@ -15202,8 +15213,9 @@ var init__withNativeStyle_native = __esmMin((() => {
|
|
|
15202
15213
|
var scopeId = (0, react.use)(ScopeContext);
|
|
15203
15214
|
var inText = TextAncestor ? (0, react.use)(TextAncestor) : false;
|
|
15204
15215
|
var themeState = scopeId && engineOf() ? scopeState(scopeId) : void 0;
|
|
15216
|
+
var owner = scopeOwner(scopeId);
|
|
15205
15217
|
var resetsText = inText && host === "view";
|
|
15206
|
-
if (!themeState) return resetsText ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextAncestorProvider, {
|
|
15218
|
+
if (!themeState || !owner) return resetsText ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextAncestorProvider, {
|
|
15207
15219
|
value: false,
|
|
15208
15220
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Fallback, _objectSpread2({}, props))
|
|
15209
15221
|
}, key) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Fallback, _objectSpread2({}, props), key);
|
|
@@ -15216,10 +15228,10 @@ var init__withNativeStyle_native = __esmMin((() => {
|
|
|
15216
15228
|
var { name, theme } = themeState;
|
|
15217
15229
|
var asHostText = HostText && !inText;
|
|
15218
15230
|
var Rendered = asHostText ? HostText : Component;
|
|
15219
|
-
var entry = entries.get(
|
|
15231
|
+
var entry = entries.get(owner);
|
|
15220
15232
|
if (!entry) {
|
|
15221
15233
|
entry = createEntry();
|
|
15222
|
-
entries.set(
|
|
15234
|
+
entries.set(owner, entry);
|
|
15223
15235
|
}
|
|
15224
15236
|
if (entry.stateName !== name || entry.theme !== theme) {
|
|
15225
15237
|
var themed = resolve(themeStyleKeys, name, theme);
|
|
@@ -15252,7 +15264,8 @@ var init__withNativeStyle_native = __esmMin((() => {
|
|
|
15252
15264
|
return render(props);
|
|
15253
15265
|
};
|
|
15254
15266
|
NativeStyleView.inline = function(element) {
|
|
15255
|
-
|
|
15267
|
+
var _element_key;
|
|
15268
|
+
return render(element.props, (_element_key = element.key) !== null && _element_key !== void 0 ? _element_key : void 0);
|
|
15256
15269
|
};
|
|
15257
15270
|
return NativeStyleView;
|
|
15258
15271
|
};
|
|
@@ -15988,13 +16001,12 @@ var init_resolveSizing_native = __esmMin((() => {
|
|
|
15988
16001
|
//#endregion
|
|
15989
16002
|
//#region ../web/dist/esm/helpers/styledDynamic.native.js
|
|
15990
16003
|
function getFontsForLanguage(fonts, language) {
|
|
15991
|
-
if (fontLanguageCache.has(language)) return fontLanguageCache.get(language);
|
|
15992
16004
|
var next = _objectSpread2({}, fonts);
|
|
15993
16005
|
for (var name in language) {
|
|
16006
|
+
var _fonts_;
|
|
15994
16007
|
var lang = language[name];
|
|
15995
|
-
if (lang !== "default") next[name] = fonts[`${name}_${lang}`];
|
|
16008
|
+
if (lang !== "default") next[name] = (_fonts_ = fonts[`${name}_${lang}`]) !== null && _fonts_ !== void 0 ? _fonts_ : fonts[name];
|
|
15996
16009
|
}
|
|
15997
|
-
fontLanguageCache.set(language, next);
|
|
15998
16010
|
return next;
|
|
15999
16011
|
}
|
|
16000
16012
|
function isStyledDynamic(value) {
|
|
@@ -16032,14 +16044,13 @@ function getDynamicEnv(styleState) {
|
|
|
16032
16044
|
}
|
|
16033
16045
|
};
|
|
16034
16046
|
}
|
|
16035
|
-
var
|
|
16047
|
+
var bareStyledDynamic;
|
|
16036
16048
|
var init_styledDynamic_native = __esmMin((() => {
|
|
16037
16049
|
init_config_native();
|
|
16038
16050
|
init_createVariable_native();
|
|
16039
16051
|
init_resolveSizing_native();
|
|
16040
16052
|
init_types_native();
|
|
16041
16053
|
init_objectSpread2();
|
|
16042
|
-
fontLanguageCache = /* @__PURE__ */ new WeakMap();
|
|
16043
16054
|
bareStyledDynamic = { [styledDynamicSymbol]: true };
|
|
16044
16055
|
}));
|
|
16045
16056
|
//#endregion
|
|
@@ -17475,6 +17486,7 @@ function emitUnderCondition(state, property, value, cursor, originalValue, conte
|
|
|
17475
17486
|
}
|
|
17476
17487
|
function configuredValue(state, property, raw) {
|
|
17477
17488
|
var embedded = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, nativeColors = arguments.length > 4 ? arguments[4] : void 0;
|
|
17489
|
+
var _state_context;
|
|
17478
17490
|
var grammar = getConfigRevisionState(state.conf);
|
|
17479
17491
|
var name = raw;
|
|
17480
17492
|
var opacity;
|
|
@@ -17524,14 +17536,15 @@ function configuredValue(state, property, raw) {
|
|
|
17524
17536
|
var lookupName = name.charCodeAt(0) === 36 ? name.slice(1) : name;
|
|
17525
17537
|
var value;
|
|
17526
17538
|
var fromTheme = false;
|
|
17539
|
+
var fonts = fontProperty && ((_state_context = state.context) === null || _state_context === void 0 ? void 0 : _state_context.language) ? getDynamicEnv(state).fonts : state.conf.fontsParsed;
|
|
17527
17540
|
if (property === "fontFamily") {
|
|
17528
|
-
var
|
|
17529
|
-
value = (
|
|
17541
|
+
var _fonts_lookupName;
|
|
17542
|
+
value = (_fonts_lookupName = fonts[lookupName]) === null || _fonts_lookupName === void 0 ? void 0 : _fonts_lookupName.family;
|
|
17530
17543
|
} else {
|
|
17531
17544
|
var fontKey = property === "fontSize" ? "size" : property === "fontWeight" ? "weight" : property === "lineHeight" || property === "letterSpacing" ? property : "";
|
|
17532
17545
|
if (fontKey) {
|
|
17533
17546
|
var _font_fontKey;
|
|
17534
|
-
var font =
|
|
17547
|
+
var font = fonts[state.fontFamily || state.conf.defaultFontToken] || fonts[state.conf.defaultFontToken];
|
|
17535
17548
|
value = font === null || font === void 0 ? void 0 : (_font_fontKey = font[fontKey]) === null || _font_fontKey === void 0 ? void 0 : _font_fontKey[lookupName];
|
|
17536
17549
|
} else {
|
|
17537
17550
|
var _state_conf_tokensParsed_category;
|
package/dist/test.native.cjs
CHANGED
|
@@ -3305,7 +3305,12 @@ var getThemeUpdateLayer = function getThemeUpdateLayer2(id) {
|
|
|
3305
3305
|
return themeUpdateLayers.get(id);
|
|
3306
3306
|
};
|
|
3307
3307
|
var getThemeProviderParent = function getThemeProviderParent2(id) {
|
|
3308
|
-
|
|
3308
|
+
var _themeProviderParents_get;
|
|
3309
|
+
return (_themeProviderParents_get = themeProviderParents.get(id)) === null || _themeProviderParents_get === void 0 ? void 0 : _themeProviderParents_get.parentId;
|
|
3310
|
+
};
|
|
3311
|
+
var getThemeProviderScope = function getThemeProviderScope2(id) {
|
|
3312
|
+
var _themeProviderParents_get;
|
|
3313
|
+
return (_themeProviderParents_get = themeProviderParents.get(id)) === null || _themeProviderParents_get === void 0 ? void 0 : _themeProviderParents_get.keys;
|
|
3309
3314
|
};
|
|
3310
3315
|
var getThemeProviderChainSizes = function getThemeProviderChainSizes2() {
|
|
3311
3316
|
return {
|
|
@@ -3313,8 +3318,13 @@ var getThemeProviderChainSizes = function getThemeProviderChainSizes2() {
|
|
|
3313
3318
|
parents: themeProviderParents.size
|
|
3314
3319
|
};
|
|
3315
3320
|
};
|
|
3316
|
-
var registerThemeProviderChain = function registerThemeProviderChain2(id, parentId, props) {
|
|
3317
|
-
themeProviderParents.
|
|
3321
|
+
var registerThemeProviderChain = function registerThemeProviderChain2(id, parentId, props, keys) {
|
|
3322
|
+
var scope = themeProviderParents.get(id);
|
|
3323
|
+
if (scope) scope.parentId = parentId;
|
|
3324
|
+
else themeProviderParents.set(id, {
|
|
3325
|
+
parentId,
|
|
3326
|
+
keys
|
|
3327
|
+
});
|
|
3318
3328
|
if (props._themeUpdate) themeUpdateLayers.set(id, props._themeUpdate);
|
|
3319
3329
|
else themeUpdateLayers.delete(id);
|
|
3320
3330
|
};
|
|
@@ -3349,7 +3359,7 @@ Looked for theme${props.name ? ` "${props.name}"` : ""}, but no parent theme con
|
|
|
3349
3359
|
};
|
|
3350
3360
|
var id = (0, react.useId)();
|
|
3351
3361
|
var propsKey = `${props.name || ""}${props.forceClassName || ""}${((_props__themeUpdate = props._themeUpdate) === null || _props__themeUpdate === void 0 ? void 0 : _props__themeUpdate.key) || ""}`;
|
|
3352
|
-
if (cascadeOnChange) registerThemeProviderChain(id, parentId, props);
|
|
3362
|
+
if (cascadeOnChange) registerThemeProviderChain(id, parentId, props, keys);
|
|
3353
3363
|
var r = (_ref = (0, react.useRef)(null)).current || (_ref.current = {
|
|
3354
3364
|
id,
|
|
3355
3365
|
optimizeForFirstRender,
|
|
@@ -3371,7 +3381,7 @@ Looked for theme${props.name ? ` "${props.name}"` : ""}, but no parent theme con
|
|
|
3371
3381
|
states.set(r.id, r.lastSnap);
|
|
3372
3382
|
r.state = r.lastSnap;
|
|
3373
3383
|
}
|
|
3374
|
-
if (cascadeOnChange && !themeProviderParents.has(r.id)) registerThemeProviderChain(r.id, r.parentId, r.props);
|
|
3384
|
+
if (cascadeOnChange && !themeProviderParents.has(r.id)) registerThemeProviderChain(r.id, r.parentId, r.props, r.keys);
|
|
3375
3385
|
if (r.unsubscribe && r.subscribedTo !== r.parentId) {
|
|
3376
3386
|
var _r_unsubscribe;
|
|
3377
3387
|
(_r_unsubscribe = r.unsubscribe) === null || _r_unsubscribe === void 0 || _r_unsubscribe.call(r);
|
|
@@ -4167,7 +4177,7 @@ var _withNativeStyle = function _withNativeStyle2(Component, baseStyle, themeSty
|
|
|
4167
4177
|
var TextAncestorProvider = TextAncestor === null || TextAncestor === void 0 ? void 0 : TextAncestor.Provider;
|
|
4168
4178
|
var HostText = host === "text" && !("userSelect" in baseStyle) && !("verticalAlign" in baseStyle) ? baseViews === null || baseViews === void 0 ? void 0 : baseViews.NativeText : void 0;
|
|
4169
4179
|
var hostTextBase = HostText ? _objectSpread2(_objectSpread2({ overflow: "hidden" }, baseStyle), typeof baseStyle.fontWeight === "number" && { fontWeight: String(baseStyle.fontWeight) }) : baseStyle;
|
|
4170
|
-
var entries = /* @__PURE__ */ new
|
|
4180
|
+
var entries = /* @__PURE__ */ new WeakMap();
|
|
4171
4181
|
var createEntry = function createEntry2() {
|
|
4172
4182
|
var entry = {
|
|
4173
4183
|
style: [baseStyle, null],
|
|
@@ -4186,6 +4196,7 @@ var _withNativeStyle = function _withNativeStyle2(Component, baseStyle, themeSty
|
|
|
4186
4196
|
var ScopeContext = ThemeStateContext;
|
|
4187
4197
|
var engineOf = getNativeStyleEngine;
|
|
4188
4198
|
var scopeState = getThemeState;
|
|
4199
|
+
var scopeOwner = getThemeProviderScope;
|
|
4189
4200
|
var resolve = resolveNativeStyleMapping;
|
|
4190
4201
|
var linkState = createNativeStyleLinkState;
|
|
4191
4202
|
var linkHost = linkNativeStyleHost;
|
|
@@ -4197,8 +4208,9 @@ var _withNativeStyle = function _withNativeStyle2(Component, baseStyle, themeSty
|
|
|
4197
4208
|
var scopeId = (0, react.use)(ScopeContext);
|
|
4198
4209
|
var inText = TextAncestor ? (0, react.use)(TextAncestor) : false;
|
|
4199
4210
|
var themeState = scopeId && engineOf() ? scopeState(scopeId) : void 0;
|
|
4211
|
+
var owner = scopeOwner(scopeId);
|
|
4200
4212
|
var resetsText = inText && host === "view";
|
|
4201
|
-
if (!themeState) return resetsText ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextAncestorProvider, {
|
|
4213
|
+
if (!themeState || !owner) return resetsText ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextAncestorProvider, {
|
|
4202
4214
|
value: false,
|
|
4203
4215
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Fallback, _objectSpread2({}, props))
|
|
4204
4216
|
}, key) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Fallback, _objectSpread2({}, props), key);
|
|
@@ -4211,10 +4223,10 @@ var _withNativeStyle = function _withNativeStyle2(Component, baseStyle, themeSty
|
|
|
4211
4223
|
var { name, theme } = themeState;
|
|
4212
4224
|
var asHostText = HostText && !inText;
|
|
4213
4225
|
var Rendered = asHostText ? HostText : Component;
|
|
4214
|
-
var entry = entries.get(
|
|
4226
|
+
var entry = entries.get(owner);
|
|
4215
4227
|
if (!entry) {
|
|
4216
4228
|
entry = createEntry();
|
|
4217
|
-
entries.set(
|
|
4229
|
+
entries.set(owner, entry);
|
|
4218
4230
|
}
|
|
4219
4231
|
if (entry.stateName !== name || entry.theme !== theme) {
|
|
4220
4232
|
var themed = resolve(themeStyleKeys, name, theme);
|
|
@@ -4247,7 +4259,8 @@ var _withNativeStyle = function _withNativeStyle2(Component, baseStyle, themeSty
|
|
|
4247
4259
|
return render(props);
|
|
4248
4260
|
};
|
|
4249
4261
|
NativeStyleView.inline = function(element) {
|
|
4250
|
-
|
|
4262
|
+
var _element_key;
|
|
4263
|
+
return render(element.props, (_element_key = element.key) !== null && _element_key !== void 0 ? _element_key : void 0);
|
|
4251
4264
|
};
|
|
4252
4265
|
return NativeStyleView;
|
|
4253
4266
|
};
|
|
@@ -5213,15 +5226,13 @@ function resolveSizing(size, env) {
|
|
|
5213
5226
|
}
|
|
5214
5227
|
//#endregion
|
|
5215
5228
|
//#region ../web/dist/esm/helpers/styledDynamic.native.js
|
|
5216
|
-
var fontLanguageCache = /* @__PURE__ */ new WeakMap();
|
|
5217
5229
|
function getFontsForLanguage(fonts, language) {
|
|
5218
|
-
if (fontLanguageCache.has(language)) return fontLanguageCache.get(language);
|
|
5219
5230
|
var next = _objectSpread2({}, fonts);
|
|
5220
5231
|
for (var name in language) {
|
|
5232
|
+
var _fonts_;
|
|
5221
5233
|
var lang = language[name];
|
|
5222
|
-
if (lang !== "default") next[name] = fonts[`${name}_${lang}`];
|
|
5234
|
+
if (lang !== "default") next[name] = (_fonts_ = fonts[`${name}_${lang}`]) !== null && _fonts_ !== void 0 ? _fonts_ : fonts[name];
|
|
5223
5235
|
}
|
|
5224
|
-
fontLanguageCache.set(language, next);
|
|
5225
5236
|
return next;
|
|
5226
5237
|
}
|
|
5227
5238
|
function isStyledDynamic(value) {
|
|
@@ -7364,6 +7375,7 @@ var shadowRecipeProperties = /* @__PURE__ */ new Set([
|
|
|
7364
7375
|
var shadowRecipeKeywords = /* @__PURE__ */ new Set(["inset", "none"]);
|
|
7365
7376
|
function configuredValue(state, property, raw) {
|
|
7366
7377
|
var embedded = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, nativeColors = arguments.length > 4 ? arguments[4] : void 0;
|
|
7378
|
+
var _state_context;
|
|
7367
7379
|
var grammar = getConfigRevisionState(state.conf);
|
|
7368
7380
|
var name = raw;
|
|
7369
7381
|
var opacity;
|
|
@@ -7413,14 +7425,15 @@ function configuredValue(state, property, raw) {
|
|
|
7413
7425
|
var lookupName = name.charCodeAt(0) === 36 ? name.slice(1) : name;
|
|
7414
7426
|
var value;
|
|
7415
7427
|
var fromTheme = false;
|
|
7428
|
+
var fonts = fontProperty && ((_state_context = state.context) === null || _state_context === void 0 ? void 0 : _state_context.language) ? getDynamicEnv(state).fonts : state.conf.fontsParsed;
|
|
7416
7429
|
if (property === "fontFamily") {
|
|
7417
|
-
var
|
|
7418
|
-
value = (
|
|
7430
|
+
var _fonts_lookupName;
|
|
7431
|
+
value = (_fonts_lookupName = fonts[lookupName]) === null || _fonts_lookupName === void 0 ? void 0 : _fonts_lookupName.family;
|
|
7419
7432
|
} else {
|
|
7420
7433
|
var fontKey = property === "fontSize" ? "size" : property === "fontWeight" ? "weight" : property === "lineHeight" || property === "letterSpacing" ? property : "";
|
|
7421
7434
|
if (fontKey) {
|
|
7422
7435
|
var _font_fontKey;
|
|
7423
|
-
var font =
|
|
7436
|
+
var font = fonts[state.fontFamily || state.conf.defaultFontToken] || fonts[state.conf.defaultFontToken];
|
|
7424
7437
|
value = font === null || font === void 0 ? void 0 : (_font_fontKey = font[fontKey]) === null || _font_fontKey === void 0 ? void 0 : _font_fontKey[lookupName];
|
|
7425
7438
|
} else {
|
|
7426
7439
|
var _state_conf_tokensParsed_category;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.14",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -137,19 +137,19 @@
|
|
|
137
137
|
"clean:build": "tamagui-build clean:build"
|
|
138
138
|
},
|
|
139
139
|
"dependencies": {
|
|
140
|
-
"@tamagui/compose-refs": "3.0.
|
|
141
|
-
"@tamagui/constants": "3.0.
|
|
142
|
-
"@tamagui/helpers": "3.0.
|
|
143
|
-
"@tamagui/react-native-media-driver": "3.0.
|
|
144
|
-
"@tamagui/react-native-use-pressable": "3.0.
|
|
145
|
-
"@tamagui/use-element-layout": "3.0.
|
|
146
|
-
"@tamagui/use-event": "3.0.
|
|
147
|
-
"@tamagui/web": "3.0.
|
|
140
|
+
"@tamagui/compose-refs": "3.0.14",
|
|
141
|
+
"@tamagui/constants": "3.0.14",
|
|
142
|
+
"@tamagui/helpers": "3.0.14",
|
|
143
|
+
"@tamagui/react-native-media-driver": "3.0.14",
|
|
144
|
+
"@tamagui/react-native-use-pressable": "3.0.14",
|
|
145
|
+
"@tamagui/use-element-layout": "3.0.14",
|
|
146
|
+
"@tamagui/use-event": "3.0.14",
|
|
147
|
+
"@tamagui/web": "3.0.14"
|
|
148
148
|
},
|
|
149
149
|
"devDependencies": {
|
|
150
|
-
"@tamagui/build": "3.0.
|
|
151
|
-
"@tamagui/native-bundle": "3.0.
|
|
152
|
-
"@tamagui/react-native-web-lite": "3.0.
|
|
150
|
+
"@tamagui/build": "3.0.14",
|
|
151
|
+
"@tamagui/native-bundle": "3.0.14",
|
|
152
|
+
"@tamagui/react-native-web-lite": "3.0.14",
|
|
153
153
|
"@testing-library/react": "^16.1.0",
|
|
154
154
|
"csstype": "^3.0.10",
|
|
155
155
|
"react": "19.2.3",
|
|
@@ -164,5 +164,5 @@
|
|
|
164
164
|
"./dist/cjs": "./dist/esm/index.native.js",
|
|
165
165
|
"./theme-update": "./dist/esm/theme-update.native.js"
|
|
166
166
|
},
|
|
167
|
-
"releaseSourceCommit": "
|
|
167
|
+
"releaseSourceCommit": "61a8bd09550319d14c141581a8e4bb286a9795a6"
|
|
168
168
|
}
|