@tamagui/core 1.94.2 → 1.94.3

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.
@@ -5699,12 +5699,17 @@ var require_normalizeColor_native = __commonJS({
5699
5699
  module2.exports = __toCommonJS2(normalizeColor_exports);
5700
5700
  var import_normalize_css_color = require_index_native7(), import_normalize_css_color2 = require_index_native7(), normalizeColor = function(color, opacity) {
5701
5701
  if (color) {
5702
- if (color[0] === "$" || color.startsWith("var("))
5702
+ if (color[0] === "$")
5703
5703
  return color;
5704
- var rgba3 = getRgba(color);
5705
- if (rgba3) {
5706
- var colors = "".concat(rgba3.r, ",").concat(rgba3.g, ",").concat(rgba3.b), _ref;
5707
- return opacity === 1 ? "rgb(".concat(colors, ")") : "rgba(".concat(colors, ",").concat((_ref = opacity ?? rgba3.a) !== null && _ref !== void 0 ? _ref : 1, ")");
5704
+ if (color.startsWith("var(")) {
5705
+ if (typeof opacity == "number" && opacity < 1)
5706
+ return "color-mix(in srgb, ".concat(color, " ").concat(opacity * 100, "%, transparent)");
5707
+ } else {
5708
+ var rgba3 = getRgba(color);
5709
+ if (rgba3) {
5710
+ var colors = "".concat(rgba3.r, ",").concat(rgba3.g, ",").concat(rgba3.b), _ref;
5711
+ return opacity === 1 ? "rgb(".concat(colors, ")") : "rgba(".concat(colors, ",").concat((_ref = opacity ?? rgba3.a) !== null && _ref !== void 0 ? _ref : 1, ")");
5712
+ }
5708
5713
  }
5709
5714
  return color;
5710
5715
  }
@@ -5826,7 +5831,7 @@ var require_expandStyles_native = __commonJS({
5826
5831
  module2.exports = __toCommonJS2(expandStyles_exports);
5827
5832
  var import_constants = require_index_native3(), import_normalizeShadow = require_normalizeShadow_native();
5828
5833
  function fixStyles(style) {
5829
- "elevationAndroid" in style && (style.elevation = style.elevationAndroid, delete style.elevationAndroid), (style.shadowRadius || style.shadowColor || style.shadowOpacity || style.shadowOffset) && Object.assign(style, (0, import_normalizeShadow.normalizeShadow)(style));
5834
+ "elevationAndroid" in style && (style.elevation = style.elevationAndroid, delete style.elevationAndroid), (style.shadowRadius != null || style.shadowColor || style.shadowOpacity != null || style.shadowOffset) && Object.assign(style, (0, import_normalizeShadow.normalizeShadow)(style));
5830
5835
  for (var key in borderDefaults)
5831
5836
  if (key in style) {
5832
5837
  var _style, _borderDefaults_key;