@tamagui/core 3.0.0-beta.1216.1 → 3.0.0-beta.1309.1
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 +30 -17
- package/dist/test.native.cjs +30 -17
- package/package.json +14 -14
package/dist/native.cjs
CHANGED
|
@@ -13816,7 +13816,6 @@ var _loop = function(parent2) {
|
|
|
13816
13816
|
};
|
|
13817
13817
|
function expandStyle(key, value) {
|
|
13818
13818
|
arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : getStyleCompat();
|
|
13819
|
-
if (isAndroid && key === "elevationAndroid") return [["elevation", value]];
|
|
13820
13819
|
switch (key) {
|
|
13821
13820
|
case "objectFit": return [["resizeMode", resizeModeMap[value] || "cover"]];
|
|
13822
13821
|
case "verticalAlign": return [["textAlignVertical", verticalAlignMap[value] || "auto"]];
|
|
@@ -14005,10 +14004,6 @@ function normalizeShadow(param) {
|
|
|
14005
14004
|
//#endregion
|
|
14006
14005
|
//#region ../web/dist/esm/helpers/expandStyles.native.js
|
|
14007
14006
|
function fixStyles(style) {
|
|
14008
|
-
if ("elevationAndroid" in style) {
|
|
14009
|
-
style["elevation"] = style.elevationAndroid;
|
|
14010
|
-
delete style.elevationAndroid;
|
|
14011
|
-
}
|
|
14012
14007
|
if (style.shadowRadius != null || style.shadowColor || style.shadowOpacity != null || style.shadowOffset) Object.assign(style, normalizeShadow(style));
|
|
14013
14008
|
for (var key in borderDefaults) if (key in style) {
|
|
14014
14009
|
var _style, _borderDefaults_key;
|
|
@@ -15003,6 +14998,7 @@ function contributeProp(pass, keyOg, valOg) {
|
|
|
15003
14998
|
if (hocSlots) {
|
|
15004
14999
|
var _direct1;
|
|
15005
15000
|
var slots = (_direct1 = direct).flatSlots || (_direct1.flatSlots = /* @__PURE__ */ new Map());
|
|
15001
|
+
var markerLayer = pass[passSourceLayer];
|
|
15006
15002
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
15007
15003
|
try {
|
|
15008
15004
|
for (var _iterator = hocSlots[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
@@ -15011,6 +15007,7 @@ function contributeProp(pass, keyOg, valOg) {
|
|
|
15011
15007
|
try {
|
|
15012
15008
|
for (var _iterator1 = entries[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
15013
15009
|
var entry = _step1.value;
|
|
15010
|
+
pass[passSourceLayer] = Math.max(entry[7] >> 5, sourceLayerResolver);
|
|
15014
15011
|
if (!ownsSourceLayer(styleState, entry[0], !!entry[2])) continue;
|
|
15015
15012
|
if (!isHOC && styleState.styleProps.isAnimated && (slot === "transition" || entry[8]) && !(entry[0] in nonAnimatableStyleProps)) {
|
|
15016
15013
|
var _styleState_animationDriver;
|
|
@@ -15040,6 +15037,7 @@ function contributeProp(pass, keyOg, valOg) {
|
|
|
15040
15037
|
if (_didIteratorError) throw _iteratorError;
|
|
15041
15038
|
}
|
|
15042
15039
|
}
|
|
15040
|
+
pass[passSourceLayer] = markerLayer;
|
|
15043
15041
|
}
|
|
15044
15042
|
}
|
|
15045
15043
|
return;
|
|
@@ -15098,9 +15096,6 @@ function contributeProp(pass, keyOg, valOg) {
|
|
|
15098
15096
|
else return;
|
|
15099
15097
|
var isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles);
|
|
15100
15098
|
if (!isValidStyleKeyInit) {
|
|
15101
|
-
if (!isAndroid) {
|
|
15102
|
-
if (keyInit === "elevationAndroid") return;
|
|
15103
|
-
}
|
|
15104
15099
|
if (keyInit === "userSelect") {
|
|
15105
15100
|
keyInit = "selectable";
|
|
15106
15101
|
valInit = valInit !== "none";
|
|
@@ -15220,6 +15215,12 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
15220
15215
|
animationDriver: resolvedDriver
|
|
15221
15216
|
};
|
|
15222
15217
|
styleState.flatStyleStaticConfig = styleStaticConfig;
|
|
15218
|
+
var prev = styleProps.prevStyle;
|
|
15219
|
+
if (prev) {
|
|
15220
|
+
styleState.flatPrevStyle = prev;
|
|
15221
|
+
styleState.flatStyleChanged = false;
|
|
15222
|
+
styleState.flatStyleKeyCount = 0;
|
|
15223
|
+
}
|
|
15223
15224
|
var { asChild } = props;
|
|
15224
15225
|
var { neverSkipProps } = staticConfig;
|
|
15225
15226
|
var { noSkip, disableExpandShorthands, noExpand, noClass, noMergeStyle, noNormalize, isAnimated, styledContext } = styleProps;
|
|
@@ -15419,6 +15420,9 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
15419
15420
|
}
|
|
15420
15421
|
if (hasProvenance) setStyleTokenProvenance(styleState.style, provenance);
|
|
15421
15422
|
}
|
|
15423
|
+
var direct = styleState;
|
|
15424
|
+
var prevStyle = direct.flatPrevStyle;
|
|
15425
|
+
if (prevStyle && styleState.style && !direct.flatStyleChanged && Object.keys(prevStyle).length === Object.keys(styleState.style).length) styleState.style = prevStyle;
|
|
15422
15426
|
var result = {
|
|
15423
15427
|
hasMedia,
|
|
15424
15428
|
fontFamily: styleState.fontFamily,
|
|
@@ -15540,6 +15544,11 @@ function mergeStyle(styleState, key, val) {
|
|
|
15540
15544
|
if (staticConfig.isInput && key in nativeTextInputColorProps) viewProps[nativeTextInputColorProps[key]] = out;
|
|
15541
15545
|
else {
|
|
15542
15546
|
var _styleState4;
|
|
15547
|
+
var direct = styleState;
|
|
15548
|
+
if (direct.flatPrevStyle) {
|
|
15549
|
+
direct.flatStyleKeyCount = (direct.flatStyleKeyCount || 0) + 1;
|
|
15550
|
+
if (!direct.flatStyleChanged && direct.flatPrevStyle[key] !== out) direct.flatStyleChanged = true;
|
|
15551
|
+
}
|
|
15543
15552
|
(_styleState4 = styleState).style || (_styleState4.style = {});
|
|
15544
15553
|
styleState.style[key] = out;
|
|
15545
15554
|
if (shouldTrackStyleTokenProvenance) recordStyleTokenProvenance(styleState, key, originalVal);
|
|
@@ -16215,9 +16224,10 @@ function walkConditionalValue(state, property, value, parent, sink) {
|
|
|
16215
16224
|
}
|
|
16216
16225
|
}
|
|
16217
16226
|
if (warnMode === 1 && conditions & 12 && !hasBase) {
|
|
16218
|
-
var _state_flatPropertyLayers;
|
|
16219
16227
|
var resting = property === "opacity" || property.startsWith("scale") ? 1 : property === "rotate" ? "0deg" : property === "x" || property === "y" ? 0 : null;
|
|
16220
|
-
|
|
16228
|
+
var layers = state.flatPropertyLayers;
|
|
16229
|
+
var owned = layers === null || layers === void 0 ? void 0 : layers.has(property);
|
|
16230
|
+
if (resting !== null && !owned) emitConditionalValue(state, property, resting, parentCondition, resting, sink, warnMode, contextOnly);
|
|
16221
16231
|
}
|
|
16222
16232
|
return true;
|
|
16223
16233
|
}
|
|
@@ -16817,8 +16827,9 @@ function getThemedChildren(themeState, children, props) {
|
|
|
16817
16827
|
});
|
|
16818
16828
|
var { isInverse } = themeState;
|
|
16819
16829
|
var requiresExtraWrapper = isInverse || forceClassName;
|
|
16820
|
-
|
|
16821
|
-
if (
|
|
16830
|
+
var isFirstThemedRender = !state.hasEverThemed;
|
|
16831
|
+
if (isFirstThemedRender) state.hasEverThemed = true;
|
|
16832
|
+
if (requiresExtraWrapper || isFirstThemedRender && (themeState.name === "dark" || themeState.name === "light")) state.hasEverThemed = "wrapped";
|
|
16822
16833
|
if (shallow) if (!themeState.parentId) {} else {
|
|
16823
16834
|
var parentState = getThemeState(themeState.isNew ? themeState.id : themeState.parentId);
|
|
16824
16835
|
if (!parentState) throw new Error("❌ Error 014");
|
|
@@ -17010,7 +17021,8 @@ function createComponent(staticConfig) {
|
|
|
17010
17021
|
willBeAnimated,
|
|
17011
17022
|
canPlatformPseudo: componentState.platformPseudo,
|
|
17012
17023
|
displayName,
|
|
17013
|
-
styledContext: styledContextValue
|
|
17024
|
+
styledContext: styledContextValue,
|
|
17025
|
+
prevStyle: stateRef.current.prevStyle
|
|
17014
17026
|
};
|
|
17015
17027
|
var themeName = (themeState === null || themeState === void 0 ? void 0 : themeState.name) || "";
|
|
17016
17028
|
var splitStyles = useSplitStyles(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, groupContextParent, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
|
|
@@ -17282,6 +17294,7 @@ function createComponent(staticConfig) {
|
|
|
17282
17294
|
setMediaShouldUpdate(stateRef.current, shouldListenForMedia, mediaListeningKeys, stateRef.current.optimizeForFirstRender);
|
|
17283
17295
|
var { viewProps: viewPropsIn, style: splitStylesStyle, classNames, pseudoGroups, mediaGroups } = splitStyles || {};
|
|
17284
17296
|
var groupSetRevision = useGroupSetRevision(pseudoGroups, mediaGroups);
|
|
17297
|
+
stateRef.current.prevStyle = splitStylesStyle || null;
|
|
17285
17298
|
var propsWithAnimation = props;
|
|
17286
17299
|
var _ref6 = viewPropsIn || {}, { asChild, children, themeShallow, spaceDirection: _spaceDirection, onPress, onLongPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onMouseUp, onMouseDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onTransition, separator, passThrough, forceStyle: _forceStyle, onClick, theme: _themeProp } = _ref6, nonTamaguiProps = _objectWithoutProperties(_ref6, _excluded2$2);
|
|
17287
17300
|
var viewProps = nonTamaguiProps;
|
|
@@ -18047,11 +18060,11 @@ function buildCSSRuleSets(declarations, fontDeclarations) {
|
|
|
18047
18060
|
var defaultFontToken = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
|
|
18048
18061
|
if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
|
|
18049
18062
|
let declarationsToRuleSet2 = function(decs) {
|
|
18050
|
-
return `:root${arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""}
|
|
18051
|
-
}`;
|
|
18063
|
+
return `:root${arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""}${sep}{${sep}${[...decs].join(`;${sep}`)}${developmentWhitespace ? "\n" : ""}}`;
|
|
18052
18064
|
};
|
|
18053
18065
|
var cssRuleSets = [];
|
|
18054
|
-
var
|
|
18066
|
+
var developmentWhitespace = false;
|
|
18067
|
+
var sep = developmentWhitespace ? " " : "";
|
|
18055
18068
|
if (declarations.length) cssRuleSets.push(declarationsToRuleSet2(declarations));
|
|
18056
18069
|
var fontSelectors = [];
|
|
18057
18070
|
var sortedFontDeclarationKeys = Object.keys(fontDeclarations).sort();
|
|
@@ -18079,7 +18092,7 @@ function buildCSSRuleSets(declarations, fontDeclarations) {
|
|
|
18079
18092
|
var defaultFont = fontDeclarations[defaultFontToken];
|
|
18080
18093
|
if (defaultFont === null || defaultFont === void 0 ? void 0 : defaultFont.fontParsed) {
|
|
18081
18094
|
var sharedSelectors = `:where(${[...fontSelectors, ".is_View"].join(", ")})`;
|
|
18082
|
-
cssRuleSets.push(`${sharedSelectors}
|
|
18095
|
+
cssRuleSets.push(`${sharedSelectors}${sep}{font-family:${sep}var(--f-family)}`);
|
|
18083
18096
|
}
|
|
18084
18097
|
}
|
|
18085
18098
|
return cssRuleSets;
|
package/dist/test.native.cjs
CHANGED
|
@@ -4090,7 +4090,6 @@ var _loop = function(parent2) {
|
|
|
4090
4090
|
};
|
|
4091
4091
|
function expandStyle(key, value) {
|
|
4092
4092
|
arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : getStyleCompat();
|
|
4093
|
-
if (isAndroid && key === "elevationAndroid") return [["elevation", value]];
|
|
4094
4093
|
switch (key) {
|
|
4095
4094
|
case "objectFit": return [["resizeMode", resizeModeMap[value] || "cover"]];
|
|
4096
4095
|
case "verticalAlign": return [["textAlignVertical", verticalAlignMap[value] || "auto"]];
|
|
@@ -4550,10 +4549,6 @@ function normalizeShadow(param) {
|
|
|
4550
4549
|
//#endregion
|
|
4551
4550
|
//#region ../web/dist/esm/helpers/expandStyles.native.js
|
|
4552
4551
|
function fixStyles(style) {
|
|
4553
|
-
if ("elevationAndroid" in style) {
|
|
4554
|
-
style["elevation"] = style.elevationAndroid;
|
|
4555
|
-
delete style.elevationAndroid;
|
|
4556
|
-
}
|
|
4557
4552
|
if (style.shadowRadius != null || style.shadowColor || style.shadowOpacity != null || style.shadowOffset) Object.assign(style, normalizeShadow(style));
|
|
4558
4553
|
for (var key in borderDefaults) if (key in style) {
|
|
4559
4554
|
var _style, _borderDefaults_key;
|
|
@@ -5708,6 +5703,7 @@ function contributeProp(pass, keyOg, valOg) {
|
|
|
5708
5703
|
if (hocSlots) {
|
|
5709
5704
|
var _direct1;
|
|
5710
5705
|
var slots = (_direct1 = direct).flatSlots || (_direct1.flatSlots = /* @__PURE__ */ new Map());
|
|
5706
|
+
var markerLayer = pass[passSourceLayer];
|
|
5711
5707
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
5712
5708
|
try {
|
|
5713
5709
|
for (var _iterator = hocSlots[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
@@ -5716,6 +5712,7 @@ function contributeProp(pass, keyOg, valOg) {
|
|
|
5716
5712
|
try {
|
|
5717
5713
|
for (var _iterator1 = entries[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
5718
5714
|
var entry = _step1.value;
|
|
5715
|
+
pass[passSourceLayer] = Math.max(entry[7] >> 5, sourceLayerResolver);
|
|
5719
5716
|
if (!ownsSourceLayer(styleState, entry[0], !!entry[2])) continue;
|
|
5720
5717
|
if (!isHOC && styleState.styleProps.isAnimated && (slot === "transition" || entry[8]) && !(entry[0] in nonAnimatableStyleProps)) {
|
|
5721
5718
|
var _styleState_animationDriver;
|
|
@@ -5745,6 +5742,7 @@ function contributeProp(pass, keyOg, valOg) {
|
|
|
5745
5742
|
if (_didIteratorError) throw _iteratorError;
|
|
5746
5743
|
}
|
|
5747
5744
|
}
|
|
5745
|
+
pass[passSourceLayer] = markerLayer;
|
|
5748
5746
|
}
|
|
5749
5747
|
}
|
|
5750
5748
|
return;
|
|
@@ -5816,9 +5814,6 @@ function contributeProp(pass, keyOg, valOg) {
|
|
|
5816
5814
|
}
|
|
5817
5815
|
}
|
|
5818
5816
|
if (!isValidStyleKeyInit) {
|
|
5819
|
-
if (!isAndroid) {
|
|
5820
|
-
if (keyInit === "elevationAndroid") return;
|
|
5821
|
-
}
|
|
5822
5817
|
if (keyInit === "userSelect") {
|
|
5823
5818
|
keyInit = "selectable";
|
|
5824
5819
|
valInit = valInit !== "none";
|
|
@@ -5971,6 +5966,12 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
5971
5966
|
animationDriver: resolvedDriver
|
|
5972
5967
|
};
|
|
5973
5968
|
styleState.flatStyleStaticConfig = styleStaticConfig;
|
|
5969
|
+
var prev = styleProps.prevStyle;
|
|
5970
|
+
if (prev) {
|
|
5971
|
+
styleState.flatPrevStyle = prev;
|
|
5972
|
+
styleState.flatStyleChanged = false;
|
|
5973
|
+
styleState.flatStyleKeyCount = 0;
|
|
5974
|
+
}
|
|
5974
5975
|
if (globalThis.process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`style-state`;
|
|
5975
5976
|
if (globalThis.process.env.NODE_ENV === "development" && debug === "verbose" && true) {
|
|
5976
5977
|
if (isDevTools) {
|
|
@@ -6189,6 +6190,9 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
6189
6190
|
}
|
|
6190
6191
|
if (hasProvenance) setStyleTokenProvenance(styleState.style, provenance);
|
|
6191
6192
|
}
|
|
6193
|
+
var direct = styleState;
|
|
6194
|
+
var prevStyle = direct.flatPrevStyle;
|
|
6195
|
+
if (prevStyle && styleState.style && !direct.flatStyleChanged && Object.keys(prevStyle).length === Object.keys(styleState.style).length) styleState.style = prevStyle;
|
|
6192
6196
|
var result = {
|
|
6193
6197
|
hasMedia,
|
|
6194
6198
|
fontFamily: styleState.fontFamily,
|
|
@@ -6328,6 +6332,11 @@ function mergeStyle(styleState, key, val) {
|
|
|
6328
6332
|
if (staticConfig.isInput && key in nativeTextInputColorProps) viewProps[nativeTextInputColorProps[key]] = out;
|
|
6329
6333
|
else {
|
|
6330
6334
|
var _styleState4;
|
|
6335
|
+
var direct = styleState;
|
|
6336
|
+
if (direct.flatPrevStyle) {
|
|
6337
|
+
direct.flatStyleKeyCount = (direct.flatStyleKeyCount || 0) + 1;
|
|
6338
|
+
if (!direct.flatStyleChanged && direct.flatPrevStyle[key] !== out) direct.flatStyleChanged = true;
|
|
6339
|
+
}
|
|
6331
6340
|
(_styleState4 = styleState).style || (_styleState4.style = {});
|
|
6332
6341
|
styleState.style[key] = out;
|
|
6333
6342
|
if (shouldTrackStyleTokenProvenance) recordStyleTokenProvenance(styleState, key, originalVal);
|
|
@@ -7122,9 +7131,10 @@ function walkConditionalValue(state, property, value, parent, sink) {
|
|
|
7122
7131
|
}
|
|
7123
7132
|
if (warnMode && globalThis.process.env.NODE_ENV === "development" && typeof value === "string" && !hasBase && conditions && getConfigRevisionState(state.conf).tokenCategory(property) && getConfigRevisionState(state.conf).propertyKind(property) !== 8 && property !== "boxShadow" && property !== "textShadow" && property !== "fontFamily" && property !== "gap" && splitComponents(lastPayload).length > 1) warnOnce(`${property}="${value}" has multiple values after its first conditional. Write the base value before the first conditional.`);
|
|
7124
7133
|
if (warnMode === 1 && conditions & 12 && !hasBase) {
|
|
7125
|
-
var _state_flatPropertyLayers;
|
|
7126
7134
|
var resting = property === "opacity" || property.startsWith("scale") ? 1 : property === "rotate" ? "0deg" : property === "x" || property === "y" ? 0 : null;
|
|
7127
|
-
|
|
7135
|
+
var layers = state.flatPropertyLayers;
|
|
7136
|
+
var owned = layers === null || layers === void 0 ? void 0 : layers.has(property);
|
|
7137
|
+
if (resting !== null && !owned) emitConditionalValue(state, property, resting, parentCondition, resting, sink, warnMode, contextOnly);
|
|
7128
7138
|
}
|
|
7129
7139
|
return true;
|
|
7130
7140
|
}
|
|
@@ -7744,8 +7754,9 @@ function getThemedChildren(themeState, children, props) {
|
|
|
7744
7754
|
});
|
|
7745
7755
|
var { isInverse } = themeState;
|
|
7746
7756
|
var requiresExtraWrapper = isInverse || forceClassName;
|
|
7747
|
-
|
|
7748
|
-
if (
|
|
7757
|
+
var isFirstThemedRender = !state.hasEverThemed;
|
|
7758
|
+
if (isFirstThemedRender) state.hasEverThemed = true;
|
|
7759
|
+
if (requiresExtraWrapper || isFirstThemedRender && (themeState.name === "dark" || themeState.name === "light")) state.hasEverThemed = "wrapped";
|
|
7749
7760
|
if (shallow) if (!themeState.parentId) {} else {
|
|
7750
7761
|
var parentState = getThemeState(themeState.isNew ? themeState.id : themeState.parentId);
|
|
7751
7762
|
if (!parentState) throw new Error(globalThis.process.env.NODE_ENV !== "production" ? formatDiagnostic("‼️010", "Theme", "parent theme state is missing for shallow rendering", "Keep <Theme shallow> inside its mounted parent Theme", "name,parentId", {
|
|
@@ -8061,7 +8072,8 @@ ${banner}
|
|
|
8061
8072
|
willBeAnimated,
|
|
8062
8073
|
canPlatformPseudo: componentState.platformPseudo,
|
|
8063
8074
|
displayName,
|
|
8064
|
-
styledContext: styledContextValue
|
|
8075
|
+
styledContext: styledContextValue,
|
|
8076
|
+
prevStyle: stateRef.current.prevStyle
|
|
8065
8077
|
};
|
|
8066
8078
|
var themeName = (themeState === null || themeState === void 0 ? void 0 : themeState.name) || "";
|
|
8067
8079
|
if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`split-styles-prepare`;
|
|
@@ -8350,6 +8362,7 @@ ${banner}
|
|
|
8350
8362
|
setMediaShouldUpdate(stateRef.current, shouldListenForMedia, mediaListeningKeys, stateRef.current.optimizeForFirstRender);
|
|
8351
8363
|
var { viewProps: viewPropsIn, style: splitStylesStyle, classNames, pseudoGroups, mediaGroups } = splitStyles || {};
|
|
8352
8364
|
var groupSetRevision = useGroupSetRevision(pseudoGroups, mediaGroups);
|
|
8365
|
+
stateRef.current.prevStyle = splitStylesStyle || null;
|
|
8353
8366
|
var propsWithAnimation = props;
|
|
8354
8367
|
var _ref6 = viewPropsIn || {}, { asChild, children, themeShallow, spaceDirection: _spaceDirection, onPress, onLongPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onMouseUp, onMouseDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onTransition, separator, passThrough, forceStyle: _forceStyle, onClick, theme: _themeProp } = _ref6, nonTamaguiProps = _objectWithoutProperties(_ref6, _excluded2$2);
|
|
8355
8368
|
var viewProps = nonTamaguiProps;
|
|
@@ -9167,11 +9180,11 @@ function buildCSSRuleSets(declarations, fontDeclarations) {
|
|
|
9167
9180
|
var defaultFontToken = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
|
|
9168
9181
|
if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
|
|
9169
9182
|
let declarationsToRuleSet2 = function(decs) {
|
|
9170
|
-
return `:root${arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""}
|
|
9171
|
-
}`;
|
|
9183
|
+
return `:root${arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""}${sep}{${sep}${[...decs].join(`;${sep}`)}${developmentWhitespace ? "\n" : ""}}`;
|
|
9172
9184
|
};
|
|
9173
9185
|
var cssRuleSets = [];
|
|
9174
|
-
var
|
|
9186
|
+
var developmentWhitespace = globalThis.process.env.NODE_ENV === "development";
|
|
9187
|
+
var sep = developmentWhitespace ? " " : "";
|
|
9175
9188
|
if (declarations.length) cssRuleSets.push(declarationsToRuleSet2(declarations));
|
|
9176
9189
|
var fontSelectors = [];
|
|
9177
9190
|
var sortedFontDeclarationKeys = Object.keys(fontDeclarations).sort();
|
|
@@ -9199,7 +9212,7 @@ function buildCSSRuleSets(declarations, fontDeclarations) {
|
|
|
9199
9212
|
var defaultFont = fontDeclarations[defaultFontToken];
|
|
9200
9213
|
if (defaultFont === null || defaultFont === void 0 ? void 0 : defaultFont.fontParsed) {
|
|
9201
9214
|
var sharedSelectors = `:where(${[...fontSelectors, ".is_View"].join(", ")})`;
|
|
9202
|
-
cssRuleSets.push(`${sharedSelectors}
|
|
9215
|
+
cssRuleSets.push(`${sharedSelectors}${sep}{font-family:${sep}var(--f-family)}`);
|
|
9203
9216
|
}
|
|
9204
9217
|
}
|
|
9205
9218
|
return cssRuleSets;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/core",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.1309.1",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -137,25 +137,25 @@
|
|
|
137
137
|
"clean:build": "tamagui-build clean:build"
|
|
138
138
|
},
|
|
139
139
|
"dependencies": {
|
|
140
|
-
"@tamagui/compose-refs": "3.0.0-beta.
|
|
141
|
-
"@tamagui/constants": "3.0.0-beta.
|
|
142
|
-
"@tamagui/helpers": "3.0.0-beta.
|
|
143
|
-
"@tamagui/react-native-media-driver": "3.0.0-beta.
|
|
144
|
-
"@tamagui/react-native-use-pressable": "3.0.0-beta.
|
|
145
|
-
"@tamagui/size": "3.0.0-beta.
|
|
146
|
-
"@tamagui/use-element-layout": "3.0.0-beta.
|
|
147
|
-
"@tamagui/use-event": "3.0.0-beta.
|
|
148
|
-
"@tamagui/web": "3.0.0-beta.
|
|
140
|
+
"@tamagui/compose-refs": "3.0.0-beta.1309.1",
|
|
141
|
+
"@tamagui/constants": "3.0.0-beta.1309.1",
|
|
142
|
+
"@tamagui/helpers": "3.0.0-beta.1309.1",
|
|
143
|
+
"@tamagui/react-native-media-driver": "3.0.0-beta.1309.1",
|
|
144
|
+
"@tamagui/react-native-use-pressable": "3.0.0-beta.1309.1",
|
|
145
|
+
"@tamagui/size": "3.0.0-beta.1309.1",
|
|
146
|
+
"@tamagui/use-element-layout": "3.0.0-beta.1309.1",
|
|
147
|
+
"@tamagui/use-event": "3.0.0-beta.1309.1",
|
|
148
|
+
"@tamagui/web": "3.0.0-beta.1309.1"
|
|
149
149
|
},
|
|
150
150
|
"devDependencies": {
|
|
151
|
-
"@tamagui/build": "3.0.0-beta.
|
|
152
|
-
"@tamagui/native-bundle": "3.0.0-beta.
|
|
153
|
-
"@tamagui/react-native-web-lite": "3.0.0-beta.
|
|
151
|
+
"@tamagui/build": "3.0.0-beta.1309.1",
|
|
152
|
+
"@tamagui/native-bundle": "3.0.0-beta.1309.1",
|
|
153
|
+
"@tamagui/react-native-web-lite": "3.0.0-beta.1309.1",
|
|
154
154
|
"@testing-library/react": "^16.1.0",
|
|
155
155
|
"csstype": "^3.0.10",
|
|
156
156
|
"react": "19.2.3",
|
|
157
157
|
"react-native": "0.86.2",
|
|
158
|
-
"typescript": "
|
|
158
|
+
"typescript": "7.0.2",
|
|
159
159
|
"vitest": "4.1.0"
|
|
160
160
|
},
|
|
161
161
|
"peerDependencies": {
|