@tamagui/core 3.0.0-beta.1101.1 → 3.0.0-beta.1111.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 +3 -3
- package/dist/test.native.cjs +3 -3
- package/package.json +13 -13
package/dist/native.cjs
CHANGED
|
@@ -13972,7 +13972,7 @@ var normalizeColor = function(color, opacity) {
|
|
|
13972
13972
|
};
|
|
13973
13973
|
var getRgba = function(color) {
|
|
13974
13974
|
if (typeof color !== "string") return;
|
|
13975
|
-
var colorNum = normalizeCSSColor(color);
|
|
13975
|
+
var colorNum = normalizeCSSColor(color.replace(/^(rgb|hsl)\((?=[^)]*\/)/, "$1a("));
|
|
13976
13976
|
if (colorNum != null) return rgba(colorNum);
|
|
13977
13977
|
};
|
|
13978
13978
|
//#endregion
|
|
@@ -14199,7 +14199,7 @@ function parseNativeStyle(key, cssString, tokenMap) {
|
|
|
14199
14199
|
}
|
|
14200
14200
|
function resolveColor(raw, tokenMap) {
|
|
14201
14201
|
if (tokenMap && tokenMap.has(raw)) return tokenMap.get(raw);
|
|
14202
|
-
return raw;
|
|
14202
|
+
return raw.includes("(") && !raw.includes(",") ? normalizeColor(raw) : raw;
|
|
14203
14203
|
}
|
|
14204
14204
|
var gradientAngle = /^([+-]?\d*\.?\d+)(deg|grad|rad|turn)$/i;
|
|
14205
14205
|
var gradientKeyword = /^to\s+(?:top|bottom|left|right)(?:\s+(?:top|bottom|left|right))?$/i;
|
|
@@ -14540,7 +14540,7 @@ function resolveVariableValue(key, valOrVar, resolveValues) {
|
|
|
14540
14540
|
if (isVariable(valOrVar)) {
|
|
14541
14541
|
if (resolveValues === "value") return valOrVar.val;
|
|
14542
14542
|
var get = valOrVar === null || valOrVar === void 0 ? void 0 : valOrVar.get;
|
|
14543
|
-
if (key
|
|
14543
|
+
if (!(key === "shadowColor" || key === "boxShadow" || key === "textShadow" || key === "backgroundImage")) {
|
|
14544
14544
|
if (typeof get === "function") return get(resolveValues === "web" ? "web" : void 0);
|
|
14545
14545
|
}
|
|
14546
14546
|
return valOrVar.val;
|
package/dist/test.native.cjs
CHANGED
|
@@ -4512,7 +4512,7 @@ var normalizeColor = function(color, opacity) {
|
|
|
4512
4512
|
};
|
|
4513
4513
|
var getRgba = function(color) {
|
|
4514
4514
|
if (typeof color !== "string") return;
|
|
4515
|
-
var colorNum = normalizeCSSColor(color);
|
|
4515
|
+
var colorNum = normalizeCSSColor(color.replace(/^(rgb|hsl)\((?=[^)]*\/)/, "$1a("));
|
|
4516
4516
|
if (colorNum != null) return rgba(colorNum);
|
|
4517
4517
|
};
|
|
4518
4518
|
//#endregion
|
|
@@ -4886,7 +4886,7 @@ function parseNativeStyle(key, cssString, tokenMap) {
|
|
|
4886
4886
|
}
|
|
4887
4887
|
function resolveColor(raw, tokenMap) {
|
|
4888
4888
|
if (tokenMap && tokenMap.has(raw)) return tokenMap.get(raw);
|
|
4889
|
-
return raw;
|
|
4889
|
+
return raw.includes("(") && !raw.includes(",") ? normalizeColor(raw) : raw;
|
|
4890
4890
|
}
|
|
4891
4891
|
var gradientAngle = /^([+-]?\d*\.?\d+)(deg|grad|rad|turn)$/i;
|
|
4892
4892
|
var gradientKeyword = /^to\s+(?:top|bottom|left|right)(?:\s+(?:top|bottom|left|right))?$/i;
|
|
@@ -5227,7 +5227,7 @@ function resolveVariableValue(key, valOrVar, resolveValues) {
|
|
|
5227
5227
|
if (isVariable(valOrVar)) {
|
|
5228
5228
|
if (resolveValues === "value") return valOrVar.val;
|
|
5229
5229
|
var get = valOrVar === null || valOrVar === void 0 ? void 0 : valOrVar.get;
|
|
5230
|
-
if (key
|
|
5230
|
+
if (!(key === "shadowColor" || key === "boxShadow" || key === "textShadow" || key === "backgroundImage")) {
|
|
5231
5231
|
if (typeof get === "function") return get(resolveValues === "web" ? "web" : void 0);
|
|
5232
5232
|
}
|
|
5233
5233
|
return valOrVar.val;
|
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.1111.1",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -137,20 +137,20 @@
|
|
|
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.1111.1",
|
|
141
|
+
"@tamagui/constants": "3.0.0-beta.1111.1",
|
|
142
|
+
"@tamagui/helpers": "3.0.0-beta.1111.1",
|
|
143
|
+
"@tamagui/react-native-media-driver": "3.0.0-beta.1111.1",
|
|
144
|
+
"@tamagui/react-native-use-pressable": "3.0.0-beta.1111.1",
|
|
145
|
+
"@tamagui/size": "3.0.0-beta.1111.1",
|
|
146
|
+
"@tamagui/use-element-layout": "3.0.0-beta.1111.1",
|
|
147
|
+
"@tamagui/use-event": "3.0.0-beta.1111.1",
|
|
148
|
+
"@tamagui/web": "3.0.0-beta.1111.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.1111.1",
|
|
152
|
+
"@tamagui/native-bundle": "3.0.0-beta.1111.1",
|
|
153
|
+
"@tamagui/react-native-web-lite": "3.0.0-beta.1111.1",
|
|
154
154
|
"@testing-library/react": "^16.1.0",
|
|
155
155
|
"csstype": "^3.0.10",
|
|
156
156
|
"react": "19.2.3",
|