@tamagui/core 2.0.0-1768263318220 → 2.0.0-1768326993354

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 CHANGED
@@ -9480,7 +9480,7 @@ var defaultOffset = {
9480
9480
  };
9481
9481
  var normalizeColor = function(color, opacity) {
9482
9482
  if (color) {
9483
- if (color[0] === "$") return color;
9483
+ if (typeof color != "string" || color[0] === "$") return color;
9484
9484
  if (color.startsWith("var(")) {
9485
9485
  if (typeof opacity == "number" && opacity < 1) return `color-mix(in srgb, ${color} ${opacity * 100}%, transparent)`;
9486
9486
  } else {
@@ -9493,8 +9493,10 @@ var normalizeColor = function(color, opacity) {
9493
9493
  return color;
9494
9494
  }
9495
9495
  }, getRgba = function(color) {
9496
- var colorNum = normalizeCSSColor(color);
9497
- if (colorNum != null) return rgba(colorNum);
9496
+ if (typeof color == "string") {
9497
+ var colorNum = normalizeCSSColor(color);
9498
+ if (colorNum != null) return rgba(colorNum);
9499
+ }
9498
9500
  };
9499
9501
  function normalizeShadow(param) {
9500
9502
  var {
@@ -2173,7 +2173,7 @@ function rgba(colorInt) {
2173
2173
  }
2174
2174
  var normalizeColor = function(color, opacity) {
2175
2175
  if (color) {
2176
- if (color[0] === "$") return color;
2176
+ if (typeof color != "string" || color[0] === "$") return color;
2177
2177
  if (color.startsWith("var(")) {
2178
2178
  if (typeof opacity == "number" && opacity < 1) return `color-mix(in srgb, ${color} ${opacity * 100}%, transparent)`;
2179
2179
  } else {
@@ -2186,8 +2186,10 @@ var normalizeColor = function(color, opacity) {
2186
2186
  return color;
2187
2187
  }
2188
2188
  }, getRgba = function(color) {
2189
- var colorNum = normalizeCSSColor(color);
2190
- if (colorNum != null) return rgba(colorNum);
2189
+ if (typeof color == "string") {
2190
+ var colorNum = normalizeCSSColor(color);
2191
+ if (colorNum != null) return rgba(colorNum);
2192
+ }
2191
2193
  };
2192
2194
  function normalizeShadow(param) {
2193
2195
  var {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "2.0.0-1768263318220",
3
+ "version": "2.0.0-1768326993354",
4
4
  "type": "module",
5
5
  "source": "src/index.tsx",
6
6
  "main": "dist/cjs",
@@ -33,18 +33,18 @@
33
33
  "native-test.d.ts"
34
34
  ],
35
35
  "dependencies": {
36
- "@tamagui/helpers": "2.0.0-1768263318220",
37
- "@tamagui/react-native-media-driver": "2.0.0-1768263318220",
38
- "@tamagui/react-native-use-pressable": "2.0.0-1768263318220",
39
- "@tamagui/react-native-use-responder-events": "2.0.0-1768263318220",
40
- "@tamagui/use-element-layout": "2.0.0-1768263318220",
41
- "@tamagui/use-event": "2.0.0-1768263318220",
42
- "@tamagui/web": "2.0.0-1768263318220"
36
+ "@tamagui/helpers": "2.0.0-1768326993354",
37
+ "@tamagui/react-native-media-driver": "2.0.0-1768326993354",
38
+ "@tamagui/react-native-use-pressable": "2.0.0-1768326993354",
39
+ "@tamagui/react-native-use-responder-events": "2.0.0-1768326993354",
40
+ "@tamagui/use-element-layout": "2.0.0-1768326993354",
41
+ "@tamagui/use-event": "2.0.0-1768326993354",
42
+ "@tamagui/web": "2.0.0-1768326993354"
43
43
  },
44
44
  "devDependencies": {
45
- "@tamagui/build": "2.0.0-1768263318220",
46
- "@tamagui/native-bundle": "2.0.0-1768263318220",
47
- "@tamagui/react-native-web-lite": "2.0.0-1768263318220",
45
+ "@tamagui/build": "2.0.0-1768326993354",
46
+ "@tamagui/native-bundle": "2.0.0-1768326993354",
47
+ "@tamagui/react-native-web-lite": "2.0.0-1768326993354",
48
48
  "@testing-library/react": "^16.1.0",
49
49
  "csstype": "^3.0.10",
50
50
  "react": "*",